Home
last modified time | relevance | path

Searched refs:mServiceListener (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHapClientProfileTest.java77 private BluetoothProfile.ServiceListener mServiceListener; field in HapClientProfileTest
86 mServiceListener = shadowBluetoothAdapter.getServiceListener(); in setUp()
91 mServiceListener.onServiceConnected(BluetoothProfile.HAP_CLIENT, mService); in onServiceConnected_isProfileReady()
99 mServiceListener.onServiceDisconnected(BluetoothProfile.HAP_CLIENT); in onServiceDisconnected_isProfileNotReady()
107 mServiceListener.onServiceConnected(BluetoothProfile.HAP_CLIENT, mService); in getConnectionStatus_returnCorrectConnectionState()
117 mServiceListener.onServiceConnected(BluetoothProfile.HAP_CLIENT, mService); in isEnabled_connectionPolicyAllowed_returnTrue()
125 mServiceListener.onServiceConnected(BluetoothProfile.HAP_CLIENT, mService); in isEnabled_connectionPolicyForbidden_returnFalse()
134 mServiceListener.onServiceConnected(BluetoothProfile.HAP_CLIENT, mService); in getConnectionPolicy_returnCorrectConnectionPolicy()
143 mServiceListener.onServiceConnected(BluetoothProfile.HAP_CLIENT, mService); in setEnabled_connectionPolicyAllowed_setConnectionPolicyAllowed_returnFalse()
153 mServiceListener.onServiceConnected(BluetoothProfile.HAP_CLIENT, mService); in setEnabled_connectionPolicyForbidden_setConnectionPolicyAllowed_returnTrue()
[all …]
DVolumeControlProfileTest.java67 private BluetoothProfile.ServiceListener mServiceListener; field in VolumeControlProfileTest
76 mServiceListener = shadowBluetoothAdapter.getServiceListener(); in setUp()
81 mServiceListener.onServiceConnected(BluetoothProfile.VOLUME_CONTROL, mService); in onServiceConnected_isProfileReady()
89 mServiceListener.onServiceDisconnected(BluetoothProfile.VOLUME_CONTROL); in onServiceDisconnected_isProfileNotReady()
97 mServiceListener.onServiceConnected(BluetoothProfile.VOLUME_CONTROL, mService); in getConnectionStatus_returnCorrectConnectionState()
107 mServiceListener.onServiceConnected(BluetoothProfile.VOLUME_CONTROL, mService); in isEnabled_connectionPolicyAllowed_returnTrue()
115 mServiceListener.onServiceConnected(BluetoothProfile.VOLUME_CONTROL, mService); in isEnabled_connectionPolicyForbidden_returnFalse()
124 mServiceListener.onServiceConnected(BluetoothProfile.VOLUME_CONTROL, mService); in getConnectionPolicy_returnCorrectConnectionPolicy()
133 mServiceListener.onServiceConnected(BluetoothProfile.VOLUME_CONTROL, mService); in setEnabled_connectionPolicyAllowed_setConnectionPolicyAllowed_returnFalse()
143 mServiceListener.onServiceConnected(BluetoothProfile.VOLUME_CONTROL, mService); in setEnabled_connectionPolicyForbidden_setConnectionPolicyAllowed_returnTrue()
[all …]
DHearingAidProfileTest.java56 private BluetoothProfile.ServiceListener mServiceListener; field in HearingAidProfileTest
69 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
80 mServiceListener.onServiceConnected(BluetoothProfile.HEARING_AID, mService); in onServiceConnected_isProfileReady()
88 mServiceListener.onServiceDisconnected(BluetoothProfile.HEARING_AID); in onServiceDisconnected_profileNotReady()
DPbapClientProfileTest.java52 private BluetoothProfile.ServiceListener mServiceListener; field in PbapClientProfileTest
62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
63 mServiceListener.onServiceConnected(BluetoothProfile.PBAP_CLIENT, mService); in setUp()
DA2dpSinkProfileTest.java52 private BluetoothProfile.ServiceListener mServiceListener; field in A2dpSinkProfileTest
62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
63 mServiceListener.onServiceConnected(BluetoothProfile.A2DP_SINK, mService); in setUp()
DHfpClientProfileTest.java52 private BluetoothProfile.ServiceListener mServiceListener; field in HfpClientProfileTest
62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
63 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET_CLIENT, mService); in setUp()
DHidDeviceProfileTest.java52 private BluetoothProfile.ServiceListener mServiceListener; field in HidDeviceProfileTest
62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
63 mServiceListener.onServiceConnected(BluetoothProfile.HID_DEVICE, mService); in setUp()
DMapClientProfileTest.java52 private BluetoothProfile.ServiceListener mServiceListener; field in MapClientProfileTest
62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
63 mServiceListener.onServiceConnected(BluetoothProfile.MAP_CLIENT, mService); in setUp()
DSapProfileTest.java52 private BluetoothProfile.ServiceListener mServiceListener; field in SapProfileTest
61 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
62 mServiceListener.onServiceConnected(BluetoothProfile.SAP, mService); in setUp()
DHeadsetProfileTest.java40 private BluetoothProfile.ServiceListener mServiceListener; field in HeadsetProfileTest
53 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
54 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET, mService); in setUp()
DA2dpProfileTest.java66 private BluetoothProfile.ServiceListener mServiceListener; field in A2dpProfileTest
76 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
77 mServiceListener.onServiceConnected(BluetoothProfile.A2DP, mBluetoothA2dp); in setUp()
91 mServiceListener.onServiceDisconnected(BluetoothProfile.A2DP); in onServiceDisconnected_profileNotReady()
/frameworks/base/native/android/
Dthermal.cpp70 sp<ThermalServiceListener> mServiceListener GUARDED_BY(mListenerMutex);
99 : mThermalSvc(std::move(service)), mServiceListener(nullptr) {} in AThermalManager()
105 if (mServiceListener != nullptr) { in ~AThermalManager()
107 mThermalSvc->unregisterThermalStatusListener(mServiceListener, &success); in ~AThermalManager()
108 mServiceListener = nullptr; in ~AThermalManager()
140 if (mServiceListener != nullptr) { in addListener()
144 mServiceListener = new ThermalServiceListener(this); in addListener()
145 if (mServiceListener == nullptr) { in addListener()
148 auto ret = mThermalSvc->registerThermalStatusListener(mServiceListener, &success); in addListener()
177 if (mServiceListener == nullptr) { in removeListener()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowBluetoothAdapter.java39 private BluetoothProfile.ServiceListener mServiceListener; field in ShadowBluetoothAdapter
47 mServiceListener = listener; in getProfileProxy()
52 return mServiceListener; in getServiceListener()
/frameworks/base/services/core/java/com/android/server/servicewatcher/
DServiceWatcherImpl.java62 final @Nullable ServiceListener<? super TBoundServiceInfo> mServiceListener; field in ServiceWatcherImpl
88 mServiceListener = serviceListener; in ServiceWatcherImpl()
275 if (mServiceListener != null) { in onServiceConnected()
277 mServiceListener.onBind(binder, mBoundServiceInfo); in onServiceConnected()
297 if (mServiceListener != null) { in onServiceDisconnected()
298 mServiceListener.onUnbind(); in onServiceDisconnected()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DBroadcastRadioService.java63 private final IServiceNotification.Stub mServiceListener = new IServiceNotification.Stub() { field in BroadcastRadioService
134 manager.registerForNotifications(IBroadcastRadio.kInterfaceName, "", mServiceListener); in BroadcastRadioService()
145 manager.registerForNotifications(IBroadcastRadio.kInterfaceName, "", mServiceListener); in BroadcastRadioService()
/frameworks/base/services/core/java/com/android/server/audio/
DServiceHolder.java65 private final IServiceCallback mServiceListener = field in ServiceHolder
122 mServiceProvider.registerForNotifications(mServiceName, mServiceListener); in ServiceHolder()
/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/
DBroadcastRadioServiceImpl.java65 private final IServiceCallback.Stub mServiceListener = new IServiceCallback.Stub() { field in BroadcastRadioServiceImpl
152 ServiceManager.registerForNotifications(serviceNameList.get(i), mServiceListener); in BroadcastRadioServiceImpl() local
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothLeBroadcastAssistant.java70 private final ServiceListener mServiceListener = field in LocalBluetoothLeBroadcastAssistant
135 context, mServiceListener, BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT); in LocalBluetoothLeBroadcastAssistant()
DLocalBluetoothLeBroadcast.java136 private final ServiceListener mServiceListener = field in LocalBluetoothLeBroadcast
414 .getProfileProxy(context, mServiceListener, BluetoothProfile.LE_AUDIO_BROADCAST); in LocalBluetoothLeBroadcast()
417 context, mServiceListener, BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT); in LocalBluetoothLeBroadcast()