Searched refs:frequencyKhz (Results 1 – 2 of 2) sorted by relevance
159 public static boolean isAmFrequency(long frequencyKhz) { in isAmFrequency() argument160 return frequencyKhz > 150 && frequencyKhz <= 30000; in isAmFrequency()175 public static boolean isFmFrequency(long frequencyKhz) { in isFmFrequency() argument176 return frequencyKhz > 60000 && frequencyKhz < 110000; in isFmFrequency()186 public static @Nullable String formatAmFmFrequency(long frequencyKhz, @NameFlag int flags) { in formatAmFmFrequency() argument190 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 …]
78 int frequencyKhz = leadingDigits * getLeadingDigitsFactor(); in isComplete() local81 if (band.getLowerLimit() <= frequencyKhz && frequencyKhz <= band.getUpperLimit() in isComplete()82 && (frequencyKhz - band.getLowerLimit()) % band.getSpacing() == 0) { in isComplete()