recordDeviceCounts_(availableDeviceCount, knownDeviceCount) {
    this.deviceCounts_ = {
      availableDeviceCount: availableDeviceCount,
      knownDeviceCount: knownDeviceCount
    };
    if (Date.now() - this.deviceCountMetricsRecordTime_ <
        SinkDiscoveryService.DEVICE_COUNT_METRIC_THRESHOLD_MS_) {
      return;
    }
    DialAnalytics.recordDeviceCounts(this.deviceCounts_);
    this.deviceCountMetricsRecordTime_ = Date.now();
  }
/**
   * Updates deviceCounts_ with the given counts, and reports to analytics if
   * applicable.
   * @param {number} availableDeviceCount
   * @param {number} knownDeviceCount
   * @private
   */
Updates deviceCounts_ with the given counts, and reports to analytics if
applicable.
@param {number} availableDeviceCount
@param {number} knownDeviceCount
@private
Updates deviceCounts_ with the given counts and reports to analytics if applicable . @param { number } availableDeviceCount @param { number } knownDeviceCount @private
recordDeviceCounts_(availableDeviceCount, knownDeviceCount) {
    this.deviceCounts_ = {
      availableDeviceCount: availableDeviceCount,
      knownDeviceCount: knownDeviceCount
    };
    if (Date.now() - this.deviceCountMetricsRecordTime_ <
        SinkDiscoveryService.DEVICE_COUNT_METRIC_THRESHOLD_MS_) {
      return;
    }
    DialAnalytics.recordDeviceCounts(this.deviceCounts_);
    this.deviceCountMetricsRecordTime_ = Date.now();
  }
recordDeviceCounts_ ( availableDeviceCount , knownDeviceCount ) { this . deviceCounts_ = { availableDeviceCount : availableDeviceCount , knownDeviceCount : knownDeviceCount } ; if ( Date . now ( ) - this . deviceCountMetricsRecordTime_ < SinkDiscoveryService . DEVICE_COUNT_METRIC_THRESHOLD_MS_ ) { return ; } DialAnalytics . recordDeviceCounts ( this . deviceCounts_ ) ; this . deviceCountMetricsRecordTime_ = Date . now ( ) ; }
Updates deviceCounts_ with the given counts, and reports to analytics if
 applicable.
Updates deviceCounts_ with the given counts and reports to analytics if applicable .