Home
last modified time | relevance | path

Searched refs:frequencyKhz (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/platform/
DProgramSelectorExt.java159 public static boolean isAmFrequency(long frequencyKhz) { in isAmFrequency() argument
160 return frequencyKhz > 150 && frequencyKhz <= 30000; in isAmFrequency()
175 public static boolean isFmFrequency(long frequencyKhz) { in isFmFrequency() argument
176 return frequencyKhz > 60000 && frequencyKhz < 110000; in isFmFrequency()
186 public static @Nullable String formatAmFmFrequency(long frequencyKhz, @NameFlag int flags) { in formatAmFmFrequency() argument
190 if (isAmFrequency(frequencyKhz)) { in formatAmFmFrequency()
191 channel = Long.toString(frequencyKhz); in formatAmFmFrequency()
193 } else if (isFmFrequency(frequencyKhz)) { in formatAmFmFrequency()
194 channel = FORMAT_FM.format(frequencyKhz / 1000f); in formatAmFmFrequency()
197 Log.w(TAG, "AM/FM frequency out of range: " + frequencyKhz); in formatAmFmFrequency()
[all …]
/packages/apps/Car/Radio/src/com/android/car/radio/bands/
DAMFMProgramType.java78 int frequencyKhz = leadingDigits * getLeadingDigitsFactor(); in isComplete() local
81 if (band.getLowerLimit() <= frequencyKhz && frequencyKhz <= band.getUpperLimit() in isComplete()
82 && (frequencyKhz - band.getLowerLimit()) % band.getSpacing() == 0) { in isComplete()