Home
last modified time | relevance | path

Searched refs:RadioTuner (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/
DConversionUtilsResultTest.java20 import android.hardware.radio.RadioTuner;
49 {Result.OK, RadioTuner.TUNER_RESULT_OK}, in inputParameters()
50 {Result.INTERNAL_ERROR, RadioTuner.TUNER_RESULT_INTERNAL_ERROR}, in inputParameters()
51 {Result.INVALID_ARGUMENTS, RadioTuner.TUNER_RESULT_INVALID_ARGUMENTS}, in inputParameters()
52 {Result.INVALID_STATE, RadioTuner.TUNER_RESULT_INVALID_STATE}, in inputParameters()
53 {Result.NOT_SUPPORTED, RadioTuner.TUNER_RESULT_NOT_SUPPORTED}, in inputParameters()
54 {Result.TIMEOUT, RadioTuner.TUNER_RESULT_TIMEOUT}, in inputParameters()
55 {Result.CANCELED, RadioTuner.TUNER_RESULT_CANCELED}, in inputParameters()
56 {Result.UNKNOWN_ERROR, RadioTuner.TUNER_RESULT_UNKNOWN_ERROR} in inputParameters()
DBroadcastRadioServiceImplTest.java38 import android.hardware.radio.RadioTuner;
187 verify(mFmRadioModuleMock).closeSessions(eq(RadioTuner.ERROR_HARDWARE_FAILURE)); in binderDied_forDeathRecipient()
DTunerSessionTest.java50 import android.hardware.radio.RadioTuner;
302 int errorCode = RadioTuner.ERROR_SERVER_DIED; in close_withOneSession_withError()
314 int errorCode = RadioTuner.ERROR_SERVER_DIED; in close_forMultipleTimes()
330 int errorCode = RadioTuner.ERROR_SERVER_DIED; in closeSessions_withMultipleSessions_withError()
552 .onTuneFailed(eq(RadioTuner.TUNER_RESULT_TIMEOUT), any()); in seek_callsOnTuneFailedWhenTimeout()
1217 .onTuneFailed(RadioTuner.TUNER_RESULT_CANCELED, sel); in onTuneFailed_forTunerCallback()
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/
DConvertResultTest.java20 import android.hardware.radio.RadioTuner;
49 {Result.OK, RadioTuner.TUNER_RESULT_OK}, in inputParameters()
50 {Result.INTERNAL_ERROR, RadioTuner.TUNER_RESULT_INTERNAL_ERROR}, in inputParameters()
51 {Result.INVALID_ARGUMENTS, RadioTuner.TUNER_RESULT_INVALID_ARGUMENTS}, in inputParameters()
52 {Result.INVALID_STATE, RadioTuner.TUNER_RESULT_INVALID_STATE}, in inputParameters()
53 {Result.NOT_SUPPORTED, RadioTuner.TUNER_RESULT_NOT_SUPPORTED}, in inputParameters()
54 {Result.TIMEOUT, RadioTuner.TUNER_RESULT_TIMEOUT}, in inputParameters()
55 {Result.UNKNOWN_ERROR, RadioTuner.TUNER_RESULT_UNKNOWN_ERROR} in inputParameters()
DBroadcastRadioServiceHidlTest.java37 import android.hardware.radio.RadioTuner;
203 verify(mFmRadioModuleMock).closeSessions(eq(RadioTuner.ERROR_HARDWARE_FAILURE)); in binderDied_forDeathRecipient()
DTunerSessionHidlTest.java46 import android.hardware.radio.RadioTuner;
304 int errorCode = RadioTuner.ERROR_SERVER_DIED; in close_withOneSession_withError()
316 int errorCode = RadioTuner.ERROR_SERVER_DIED; in close_forMultipleTimes()
332 int errorCode = RadioTuner.ERROR_SERVER_DIED; in closeSessions_withMultipleSessions_withError()
531 .onTuneFailed(eq(RadioTuner.TUNER_RESULT_TIMEOUT), any()); in seek_callsOnTuneFailedWhenTimeout()
/frameworks/base/core/java/android/hardware/radio/
DTunerCallbackAdapter.java37 private final RadioTuner.Callback mCallback;
56 TunerCallbackAdapter(RadioTuner.Callback callback, @Nullable Handler handler) { in TunerCallbackAdapter()
147 case RadioTuner.TUNER_RESULT_CANCELED: in onTuneFailed()
148 errorCode = RadioTuner.ERROR_CANCELLED; in onTuneFailed()
152 errorCode = RadioTuner.ERROR_SERVER_DIED; in onTuneFailed()
158 case RadioTuner.TUNER_RESULT_INTERNAL_ERROR: in onTuneFailed()
159 case RadioTuner.TUNER_RESULT_INVALID_ARGUMENTS: in onTuneFailed()
160 case RadioTuner.TUNER_RESULT_INVALID_STATE: in onTuneFailed()
161 case RadioTuner.TUNER_RESULT_NOT_SUPPORTED: in onTuneFailed()
162 case RadioTuner.TUNER_RESULT_UNKNOWN_ERROR: in onTuneFailed()
[all …]
DTunerAdapter.java34 final class TunerAdapter extends RadioTuner {
143 mTuner.step(/* directionDown= */ direction == RadioTuner.DIRECTION_DOWN, in step()
158 mTuner.seek(/* directionDown= */ direction == RadioTuner.DIRECTION_DOWN, in scan()
173 mTuner.seek(/* directionDown= */ direction == RadioTuner.DIRECTION_DOWN, in seek()
DRadioTuner.java44 public abstract class RadioTuner { class
DRadioManager.java1915 public RadioTuner openTuner(int moduleId, BandConfig config, boolean withAudio, in openTuner()
1916 RadioTuner.Callback callback, Handler handler) { in openTuner()
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
DTunerAdapterTest.java70 private RadioTuner mRadioTuner;
81 private RadioTuner.Callback mCallbackMock;
104 mTunerCallback.onTuneFailed(RadioTuner.TUNER_RESULT_INVALID_ARGUMENTS, program); in setUp()
253 int scanStatus = mRadioTuner.step(RadioTuner.DIRECTION_DOWN, /* skipSubChannel= */ false); in step_forTunerAdapter_succeeds()
266 .that(mRadioTuner.step(RadioTuner.DIRECTION_UP, /* skipSubChannel= */ false)) in step_whenIllegalState_fails()
275 .that(mRadioTuner.step(RadioTuner.DIRECTION_UP, /* skipSubChannel= */ false)) in step_whenServiceDied_fails()
286 int scanStatus = mRadioTuner.scan(RadioTuner.DIRECTION_DOWN, /* skipSubChannel= */ false); in scan_forTunerAdapter_succeeds()
299 .that(mRadioTuner.scan(RadioTuner.DIRECTION_UP, /* skipSubChannel= */ false)) in scan_whenIllegalState_fails()
308 .that(mRadioTuner.scan(RadioTuner.DIRECTION_UP, /* skipSubChannel= */ true)) in scan_whenServiceDied_fails()
319 int scanStatus = mRadioTuner.seek(RadioTuner.DIRECTION_DOWN, /* skipSubChannel= */ false); in seek_forTunerAdapter_succeeds()
[all …]
DDefaultRadioTunerTest.java34 private static final RadioTuner DEFAULT_RADIO_TUNER = new RadioTuner() {
124 DEFAULT_RADIO_TUNER.seek(RadioTuner.DIRECTION_DOWN, in seek_forRadioTuner_throwsException()
DProgramListTest.java133 private RadioTuner mRadioTuner;
146 private RadioTuner.Callback mTunerCallbackMock;
DRadioManagerTest.java166 private RadioTuner.Callback mCallbackMock;
1270 RadioTuner nullTuner = mRadioManager.openTuner(/* moduleId= */ 0, FM_BAND_CONFIG, in openTuner_whenServiceDied_returnsNull()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DConvert.java38 import android.hardware.radio.RadioTuner;
84 @RadioTuner.TunerResultType
88 return RadioTuner.TUNER_RESULT_OK; in halResultToTunerResult()
90 return RadioTuner.TUNER_RESULT_INTERNAL_ERROR; in halResultToTunerResult()
92 return RadioTuner.TUNER_RESULT_INVALID_ARGUMENTS; in halResultToTunerResult()
94 return RadioTuner.TUNER_RESULT_INVALID_STATE; in halResultToTunerResult()
96 return RadioTuner.TUNER_RESULT_NOT_SUPPORTED; in halResultToTunerResult()
98 return RadioTuner.TUNER_RESULT_TIMEOUT; in halResultToTunerResult()
101 return RadioTuner.TUNER_RESULT_UNKNOWN_ERROR; in halResultToTunerResult()
DBroadcastRadioService.java27 import android.hardware.radio.RadioTuner;
86 prevModule.closeSessions(RadioTuner.ERROR_HARDWARE_FAILURE);
112 prevModule.closeSessions(RadioTuner.ERROR_HARDWARE_FAILURE);
/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/
DConversionUtils.java41 import android.hardware.radio.RadioTuner;
130 @RadioTuner.TunerResultType
134 return RadioTuner.TUNER_RESULT_OK; in halResultToTunerResult()
136 return RadioTuner.TUNER_RESULT_INTERNAL_ERROR; in halResultToTunerResult()
138 return RadioTuner.TUNER_RESULT_INVALID_ARGUMENTS; in halResultToTunerResult()
140 return RadioTuner.TUNER_RESULT_INVALID_STATE; in halResultToTunerResult()
142 return RadioTuner.TUNER_RESULT_NOT_SUPPORTED; in halResultToTunerResult()
144 return RadioTuner.TUNER_RESULT_TIMEOUT; in halResultToTunerResult()
146 return RadioTuner.TUNER_RESULT_CANCELED; in halResultToTunerResult()
149 return RadioTuner.TUNER_RESULT_UNKNOWN_ERROR; in halResultToTunerResult()
DBroadcastRadioServiceImpl.java26 import android.hardware.radio.RadioTuner;
92 prevModule.closeSessions(RadioTuner.ERROR_HARDWARE_FAILURE);
125 prevModule.closeSessions(RadioTuner.ERROR_HARDWARE_FAILURE); in binderDied()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/
DTunerCallback.java25 import android.hardware.radio.RadioTuner;
86 onError(RadioTuner.ERROR_HARDWARE_FAILURE); in handleHwFailure()
/frameworks/base/api/
Djavadoc-lint-baseline49 …castradio/aidl/ConversionUtils.java:70: lint: Unresolved link/see tag "RadioTuner" in android [101]
52 … lint: Unresolved link/see tag "com.android.server.broadcastradio.aidl.RadioTuner" in android [101]
/frameworks/base/core/api/
Dsystem-current.txt6390 …id.hardware.radio.RadioTuner openTuner(int, android.hardware.radio.RadioManager.BandConfig, boolea…
6605 public abstract class RadioTuner {
6606 ctor public RadioTuner();
6652 public abstract static class RadioTuner.Callback {
6653 ctor public RadioTuner.Callback();
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt21887 Landroid/hardware/radio/RadioTuner;->getMetadataImage(I)Landroid/graphics/Bitmap;