Home
last modified time | relevance | path

Searched refs:addAnnouncementListener (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/
DIRadioServiceHidlImplTest.java95 when(mHal2Mock.addAnnouncementListener(any(), any())).thenReturn(mICloseHandle); in setup()
139 ICloseHandle closeHandle = mHidlImpl.addAnnouncementListener(ENABLE_TYPES, mListenerMock); in addAnnouncementListener_forHidlImpl()
141 verify(mHal2Mock).addAnnouncementListener(ENABLE_TYPES, mListenerMock); in addAnnouncementListener_forHidlImpl()
152 mHidlImpl.addAnnouncementListener(ENABLE_TYPES, mListenerMock); in addAnnouncementListener_withoutAnyModules()
154 verify(mHal2Mock, never()).addAnnouncementListener(ENABLE_TYPES, mListenerMock); in addAnnouncementListener_withoutAnyModules()
DIRadioServiceAidlImplTest.java88 when(mHalMock.addAnnouncementListener(any(), any())).thenReturn(mICloseHandle); in setUp()
136 ICloseHandle closeHandle = mAidlImpl.addAnnouncementListener(ENABLE_TYPES, mListenerMock); in addAnnouncementListener_forAidlImpl()
138 verify(mHalMock).addAnnouncementListener(ENABLE_TYPES, mListenerMock); in addAnnouncementListener_forAidlImpl()
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/
DRadioModuleTest.java119 mRadioModule.addAnnouncementListener(mListenerMock, new int[]{TEST_ENABLED_TYPE}); in addAnnouncementListener_listenerRegistered()
131 mRadioModule.addAnnouncementListener(mListenerMock, new int[]{TEST_ENABLED_TYPE})); in addAnnouncementListener_whenHalThrowsRemoteException()
141 mRadioModule.addAnnouncementListener(mListenerMock, new int[]{TEST_ENABLED_TYPE}); in onListUpdate_forAnnouncementListener()
154 mRadioModule.addAnnouncementListener(mListenerMock, new int[]{TEST_ENABLED_TYPE}); in close_forCloseHandle()
DBroadcastRadioServiceImplTest.java196 when(mFmRadioModuleMock.addAnnouncementListener(any(), any())) in addAnnouncementListener_addsOnAllRadioModules()
198 when(mDabRadioModuleMock.addAnnouncementListener(any(), any())) in addAnnouncementListener_addsOnAllRadioModules()
201 mBroadcastRadioService.addAnnouncementListener(TEST_ENABLED_TYPES, in addAnnouncementListener_addsOnAllRadioModules()
204 verify(mFmRadioModuleMock).addAnnouncementListener(any(), any()); in addAnnouncementListener_addsOnAllRadioModules()
205 verify(mDabRadioModuleMock).addAnnouncementListener(any(), any()); in addAnnouncementListener_addsOnAllRadioModules()
DAnnouncementAggregatorTest.java101 verify(mRadioModuleMocks[0]).addAnnouncementListener(moduleWatcherCaptor.capture(), any()); in onListUpdated_withOneModuleWatcher()
119 .addAnnouncementListener(moduleWatcherCaptor.capture(), any()); in onListUpdated_withMultipleModuleWatchers()
135 verify(mRadioModuleMocks[0]).addAnnouncementListener(moduleWatcherCaptor.capture(), any()); in onListUpdated_afterClosed_notUpdated()
210 when(mRadioModuleMocks[index].addAnnouncementListener(any(), any())) in watchModules()
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/
DBroadcastRadioServiceHidlTest.java185 when(mFmRadioModuleMock.addAnnouncementListener(any(), any())) in addAnnouncementListener_addsOnAllRadioModules()
187 when(mDabRadioModuleMock.addAnnouncementListener(any(), any())) in addAnnouncementListener_addsOnAllRadioModules()
190 mBroadcastRadioService.addAnnouncementListener(TEST_ENABLED_TYPES, in addAnnouncementListener_addsOnAllRadioModules()
193 verify(mFmRadioModuleMock).addAnnouncementListener(any(), any()); in addAnnouncementListener_addsOnAllRadioModules()
194 verify(mDabRadioModuleMock).addAnnouncementListener(any(), any()); in addAnnouncementListener_addsOnAllRadioModules()
DAnnouncementAggregatorHidlTest.java103 verify(mRadioModuleMocks[0]).addAnnouncementListener(any(), moduleWatcherCaptor.capture()); in onListUpdated_withOneModuleWatcher()
121 .addAnnouncementListener(any(), moduleWatcherCaptor.capture()); in onListUpdated_withMultipleModuleWatchers()
137 verify(mRadioModuleMocks[0]).addAnnouncementListener(any(), moduleWatcherCaptor.capture()); in onListUpdated_afterClosed_notUpdated()
212 when(mRadioModuleMocks[index].addAnnouncementListener(any(), any())) in watchModules()
DRadioModuleHidlTest.java122 mRadioModule.addAnnouncementListener(new int[]{TEST_ENABLED_TYPE}, mListenerMock); in addAnnouncementListener_listenerRegistered()
132 mRadioModule.addAnnouncementListener(new int[]{TEST_ENABLED_TYPE}, mListenerMock); in onListUpdate_forAnnouncementListener()
144 mRadioModule.addAnnouncementListener(new int[]{TEST_ENABLED_TYPE}, mListenerMock); in close_forCloseHandle()
/frameworks/base/core/java/android/hardware/radio/
DIRadioService.aidl36 ICloseHandle addAnnouncementListener(in int[] enabledTypes, in addAnnouncementListener() method
DRadioManager.java1949 public void addAnnouncementListener(@NonNull Set<Integer> enabledAnnouncementTypes, in addAnnouncementListener() method in RadioManager
1951 addAnnouncementListener(cmd -> cmd.run(), enabledAnnouncementTypes, listener); in addAnnouncementListener()
1962 public void addAnnouncementListener(@NonNull @CallbackExecutor Executor executor, in addAnnouncementListener() method in RadioManager
1976 closeHandle = mService.addAnnouncementListener(types, listenerIface); in addAnnouncementListener()
/frameworks/base/services/core/java/com/android/server/broadcastradio/
DIRadioServiceAidlImpl.java104 public ICloseHandle addAnnouncementListener(int[] enabledTypes, in addAnnouncementListener() method in IRadioServiceAidlImpl
113 return mAidlHalClient.addAnnouncementListener(enabledTypes, listener); in addAnnouncementListener()
DIRadioServiceHidlImpl.java114 public ICloseHandle addAnnouncementListener(int[] enabledTypes, in addAnnouncementListener() method in IRadioServiceHidlImpl
129 return mHal2Client.addAnnouncementListener(enabledTypes, listener); in addAnnouncementListener()
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
DRadioManagerTest.java1298 mRadioManager.addAnnouncementListener(enableTypeSet, mEventListener); in addAnnouncementListener_withListenerNotAddedBefore()
1300 verify(mRadioServiceMock).addAnnouncementListener(eq(enableTypesExpected), in addAnnouncementListener_withListenerNotAddedBefore()
1313 mRadioManager.addAnnouncementListener(enableTypeSet, mEventListener); in addAnnouncementListener_withListenerAddedBefore_closesPreviousOne()
1315 mRadioManager.addAnnouncementListener(enableTypeSet, mEventListener); in addAnnouncementListener_withListenerAddedBefore_closesPreviousOne()
1325 mRadioManager.addAnnouncementListener(enableTypeSet, mEventListener); in addAnnouncementListener_withListenerAddedBeforeAndCloseException_throws()
1329 () -> mRadioManager.addAnnouncementListener(enableTypeSet, mEventListener)); in addAnnouncementListener_withListenerAddedBeforeAndCloseException_throws()
1336 when(mRadioServiceMock.addAnnouncementListener(any(), any())) in addAnnouncementListener_whenServiceDied_throwException()
1341 () -> mRadioManager.addAnnouncementListener(enableTypeSet, mEventListener)); in addAnnouncementListener_whenServiceDied_throwException()
1361 mRadioManager.addAnnouncementListener(enableTypeSet, mEventListener); in removeAnnouncementListener_withListenerAddedTwice_closesTheFirstOne()
1420 when(mRadioServiceMock.addAnnouncementListener(any(), any())).thenReturn(mCloseHandleMock); in createRadioManager()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DAnnouncementAggregator.java114 closeHandle = module.addAnnouncementListener(enabledTypes, watcher); in watchModule()
DBroadcastRadioService.java199 public ICloseHandle addAnnouncementListener(@NonNull int[] enabledTypes, in addAnnouncementListener() method in BroadcastRadioService
DRadioModule.java403 android.hardware.radio.ICloseHandle addAnnouncementListener(int[] enabledTypes, in addAnnouncementListener() method in RadioModule
/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/
DAnnouncementAggregator.java155 closeHandle = radioModule.addAnnouncementListener(watcher, enabledTypes); in watchModule()
DBroadcastRadioServiceImpl.java235 public ICloseHandle addAnnouncementListener(int[] enabledTypes, in addAnnouncementListener() method in BroadcastRadioServiceImpl
DRadioModule.java463 android.hardware.radio.ICloseHandle addAnnouncementListener( in addAnnouncementListener() method in RadioModule
/frameworks/base/core/api/
Dsystem-current.txt6387 …(android.Manifest.permission.ACCESS_BROADCAST_RADIO) public void addAnnouncementListener(@NonNull …
6388 …(android.Manifest.permission.ACCESS_BROADCAST_RADIO) public void addAnnouncementListener(@NonNull …
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt21599 Landroid/hardware/radio/IRadioService$Stub$Proxy;->addAnnouncementListener([ILandroid/hardware/radi…
21610 Landroid/hardware/radio/IRadioService;->addAnnouncementListener([ILandroid/hardware/radio/IAnnounce…