/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | HapClientProfileTest.java | 77 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 …]
|
D | VolumeControlProfileTest.java | 67 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 …]
|
D | HearingAidProfileTest.java | 56 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()
|
D | PbapClientProfileTest.java | 52 private BluetoothProfile.ServiceListener mServiceListener; field in PbapClientProfileTest 62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp() 63 mServiceListener.onServiceConnected(BluetoothProfile.PBAP_CLIENT, mService); in setUp()
|
D | A2dpSinkProfileTest.java | 52 private BluetoothProfile.ServiceListener mServiceListener; field in A2dpSinkProfileTest 62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp() 63 mServiceListener.onServiceConnected(BluetoothProfile.A2DP_SINK, mService); in setUp()
|
D | HfpClientProfileTest.java | 52 private BluetoothProfile.ServiceListener mServiceListener; field in HfpClientProfileTest 62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp() 63 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET_CLIENT, mService); in setUp()
|
D | HidDeviceProfileTest.java | 52 private BluetoothProfile.ServiceListener mServiceListener; field in HidDeviceProfileTest 62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp() 63 mServiceListener.onServiceConnected(BluetoothProfile.HID_DEVICE, mService); in setUp()
|
D | MapClientProfileTest.java | 52 private BluetoothProfile.ServiceListener mServiceListener; field in MapClientProfileTest 62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp() 63 mServiceListener.onServiceConnected(BluetoothProfile.MAP_CLIENT, mService); in setUp()
|
D | SapProfileTest.java | 52 private BluetoothProfile.ServiceListener mServiceListener; field in SapProfileTest 61 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp() 62 mServiceListener.onServiceConnected(BluetoothProfile.SAP, mService); in setUp()
|
D | HeadsetProfileTest.java | 40 private BluetoothProfile.ServiceListener mServiceListener; field in HeadsetProfileTest 53 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp() 54 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET, mService); in setUp()
|
D | A2dpProfileTest.java | 66 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/ |
D | thermal.cpp | 70 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/ |
D | ShadowBluetoothAdapter.java | 39 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/ |
D | ServiceWatcherImpl.java | 62 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/ |
D | BroadcastRadioService.java | 63 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/ |
D | ServiceHolder.java | 65 private final IServiceCallback mServiceListener = field in ServiceHolder 122 mServiceProvider.registerForNotifications(mServiceName, mServiceListener); in ServiceHolder()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/ |
D | BroadcastRadioServiceImpl.java | 65 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/ |
D | LocalBluetoothLeBroadcastAssistant.java | 70 private final ServiceListener mServiceListener = field in LocalBluetoothLeBroadcastAssistant 135 context, mServiceListener, BluetoothProfile.LE_AUDIO_BROADCAST_ASSISTANT); in LocalBluetoothLeBroadcastAssistant()
|
D | LocalBluetoothLeBroadcast.java | 136 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()
|