Home
last modified time | relevance | path

Searched refs:presetNumber (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/service/src/com/android/car/hal/
DRadioHalService.java144 public CarRadioPreset getRadioPreset(int presetNumber) { in getRadioPreset() argument
147 Log.d(TAG, "getRadioPreset called with preset number " + presetNumber); in getRadioPreset()
149 if (!isValidPresetNumber(presetNumber)) { in getRadioPreset()
150 throw new IllegalArgumentException("Preset number not valid: " + presetNumber); in getRadioPreset()
155 presetNumberValue.value.int32Values.addAll(Arrays.asList(presetNumber, 0, 0, 0)); in getRadioPreset()
177 if (retPresetNumber != presetNumber) { in getRadioPreset()
178 Log.e(TAG, "Preset number is not the same: " + presetNumber + " vs " + retPresetNumber); in getRadioPreset()
215 private boolean isValidPresetNumber(int presetNumber) { in isValidPresetNumber() argument
217 if (presetNumber < VehicleRadioConstants.VEHICLE_RADIO_PRESET_MIN_VALUE in isValidPresetNumber()
218 || presetNumber > mPresetCount) { in isValidPresetNumber()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/radio/
DCarRadioPreset.java79 public CarRadioPreset(int presetNumber, int bandType, int channel, int subChannel) { in CarRadioPreset() argument
80 mPresetNumber = presetNumber; in CarRadioPreset()
DCarRadioManager.java181 public CarRadioPreset getPreset(int presetNumber) throws CarNotConnectedException { in getPreset() argument
186 CarRadioPreset preset = mService.getPreset(presetNumber); in getPreset()
DICarRadio.aidl42 CarRadioPreset getPreset(int presetNumber) = 3; in getPreset() argument