Home
last modified time | relevance | path

Searched refs:mEventManager (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingPreferenceController.java49 @Nullable private final BluetoothEventManager mEventManager; field in AudioSharingPreferenceController
93 mEventManager = mBtManager == null ? null : mBtManager.getEventManager(); in AudioSharingPreferenceController()
107 if (mEventManager == null || mBroadcast == null) { in onStart()
111 mEventManager.registerCallback(this); in onStart()
121 if (mEventManager == null || mBroadcast == null) { in onStop()
125 mEventManager.unregisterCallback(this); in onStop()
DAudioSharingCallAudioPreferenceController.java82 @Nullable private final BluetoothEventManager mEventManager; field in AudioSharingCallAudioPreferenceController
155 mEventManager = mBtManager == null ? null : mBtManager.getEventManager(); in AudioSharingCallAudioPreferenceController()
290 if (mEventManager == null || mContentResolver == null || mAssistant == null) { in registerCallbacks()
294 + (mEventManager == null) in registerCallbacks()
301 mEventManager.registerCallback(this); in registerCallbacks()
316 if (mEventManager == null || mContentResolver == null || mAssistant == null) { in unregisterCallbacks()
322 mEventManager.unregisterCallback(this); in unregisterCallbacks()
DAudioSharingDevicePreferenceController.java79 @Nullable private final BluetoothEventManager mEventManager; field in AudioSharingDevicePreferenceController
178 mEventManager = mBtManager == null ? null : mBtManager.getEventManager(); in AudioSharingDevicePreferenceController()
199 if (mEventManager == null in onStart()
207 mEventManager.registerCallback(this); in onStart()
223 if (mEventManager == null in onStop()
231 mEventManager.unregisterCallback(this); in onStop()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/wear/
DStreamingPacketFile.java37 private final EventManager mEventManager; field in StreamingPacketFile
58 mEventManager = eventManager; in StreamingPacketFile()
114 mEventManager.execute(() -> { in onBufferedFileInboundData()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/async/
DBufferedFile.java52 private final EventManager mEventManager; field in BufferedFile
86 mEventManager = eventManager; in BufferedFile()
261 mEventManager.execute(() -> { in scheduleOnIoError()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DAvailableMediaDeviceGroupControllerTest.java119 @Mock private BluetoothEventManager mEventManager; field in AvailableMediaDeviceGroupControllerTest
165 doReturn(mEventManager).when(mLocalBluetoothManager).getEventManager(); in setUp()
229 verify(mEventManager).registerCallback(any(BluetoothCallback.class)); in testRegister_audioSharingFlagOff()
249 verify(mEventManager).registerCallback(any(BluetoothCallback.class)); in testRegister_audioSharingFlagOn()
267 verify(mEventManager).unregisterCallback(any(BluetoothCallback.class)); in testUnregister_audioSharingFlagOff()
282 verify(mEventManager).unregisterCallback(any(BluetoothCallback.class)); in testUnregister_audioSharingFlagOn()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothPreferenceControllerTest.java68 private BluetoothEventManager mEventManager; field in BluetoothPreferenceControllerTest
81 ReflectionHelpers.setField(mLocalBluetoothManager, "mEventManager", mEventManager); in setUp()
269 verify(mEventManager).registerCallback(mController); in onStart_registersEventListener()
281 verify(mEventManager).unregisterCallback(mController); in onStop_unregistersEventListener()
DPairNewDevicePreferenceControllerTest.java69 private BluetoothEventManager mEventManager; field in PairNewDevicePreferenceControllerTest
84 ReflectionHelpers.setField(mLocalBluetoothManager, "mEventManager", mEventManager); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDevicePreferenceControllerTest.java116 @Mock private BluetoothEventManager mEventManager; field in AudioSharingDevicePreferenceControllerTest
153 when(mLocalBtManager.getEventManager()).thenReturn(mEventManager); in setUp()
193 verify(mEventManager, never()).registerCallback(any(BluetoothCallback.class)); in onStart_flagOff_doNothing()
206 verify(mEventManager).registerCallback(any(BluetoothCallback.class)); in onStart_flagOn_registerCallbacks()
219 verify(mEventManager, never()).unregisterCallback(any(BluetoothCallback.class)); in onStop_flagOff_doNothing()
230 verify(mEventManager).unregisterCallback(any(BluetoothCallback.class)); in onStop_flagOn_unregisterCallbacks()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityHearingAidPreferenceControllerTest.java103 private BluetoothEventManager mEventManager; field in AccessibilityHearingAidPreferenceControllerTest
298 doReturn(mEventManager).when(mLocalBluetoothManager).getEventManager(); in setupEnvironment()