Home
last modified time | relevance | path

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

/frameworks/base/native/android/
Dthermal.cpp60 sp<ThermalServiceListener> mServiceListener; member
85 mServiceListener(nullptr) { in AThermalManager()
92 if (mServiceListener != nullptr) { in ~AThermalManager()
94 mThermalSvc->unregisterThermalStatusListener(mServiceListener, &success); in ~AThermalManager()
95 mServiceListener = nullptr; in ~AThermalManager()
124 if (mServiceListener != nullptr) { in addListener()
128 mServiceListener = new ThermalServiceListener(this); in addListener()
129 if (mServiceListener == nullptr) { in addListener()
132 auto ret = mThermalSvc->registerThermalStatusListener(mServiceListener, &success); in addListener()
161 if (mServiceListener == nullptr) { in removeListener()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothProfileConnector.java42 private BluetoothProfile.ServiceListener mServiceListener; field in BluetoothProfileConnector
65 if (mServiceListener != null) {
66 mServiceListener.onServiceConnected(mProfileId, mProfileProxy);
73 if (mServiceListener != null) {
74 mServiceListener.onServiceDisconnected(mProfileId);
137 mServiceListener = listener; in connect()
160 mServiceListener = null; in disconnect()
DBluetoothPbap.java103 private ServiceListener mServiceListener; field in BluetoothPbap
138 mServiceListener = l; in BluetoothPbap()
228 mServiceListener = null; in close()
383 if (mServiceListener != null) {
384 mServiceListener.onServiceConnected(BluetoothProfile.PBAP, BluetoothPbap.this);
391 if (mServiceListener != null) {
392 mServiceListener.onServiceDisconnected(BluetoothProfile.PBAP);
DBluetoothHeadset.java346 private ServiceListener mServiceListener; field in BluetoothHeadset
369 mServiceListener = l; in BluetoothHeadset()
444 mServiceListener = null; in close()
1421 if (mServiceListener != null) {
1422 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET,
1428 if (mServiceListener != null) {
1429 mServiceListener.onServiceDisconnected(BluetoothProfile.HEADSET);
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DPbapClientProfileTest.java52 private BluetoothProfile.ServiceListener mServiceListener; field in PbapClientProfileTest
62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
63 mServiceListener.onServiceConnected(BluetoothProfile.PBAP_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()
DHfpClientProfileTest.java52 private BluetoothProfile.ServiceListener mServiceListener; field in HfpClientProfileTest
62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
63 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET_CLIENT, 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()
DA2dpSinkProfileTest.java52 private BluetoothProfile.ServiceListener mServiceListener; field in A2dpSinkProfileTest
62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
63 mServiceListener.onServiceConnected(BluetoothProfile.A2DP_SINK, 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()
DHearingAidProfileTest.java55 private BluetoothProfile.ServiceListener mServiceListener; field in HearingAidProfileTest
68 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
69 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET, 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.java60 private BluetoothProfile.ServiceListener mServiceListener; field in A2dpProfileTest
70 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
71 mServiceListener.onServiceConnected(BluetoothProfile.A2DP, mBluetoothA2dp); in setUp()
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowBluetoothAdapter.java39 private BluetoothProfile.ServiceListener mServiceListener; field in ShadowBluetoothAdapter
45 mServiceListener = listener; in getProfileProxy()
50 return mServiceListener; in getServiceListener()
/frameworks/base/services/core/java/com/android/server/servicewatcher/
DServiceWatcherImpl.java61 final @Nullable ServiceListener<? super TBoundServiceInfo> mServiceListener; field in ServiceWatcherImpl
87 mServiceListener = serviceListener; in ServiceWatcherImpl()
265 if (mServiceListener != null) { in onServiceConnected()
267 mServiceListener.onBind(binder, mBoundServiceInfo); in onServiceConnected()
287 if (mServiceListener != null) { in onServiceDisconnected()
288 mServiceListener.onUnbind(); in onServiceDisconnected()
/frameworks/base/core/java/android/net/
DEthernetManager.java49 private final IEthernetServiceListener.Stub mServiceListener = field in EthernetManager
181 mService.addListener(mServiceListener); in addListener()
217 mService.removeListener(mServiceListener); in removeListener()
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DBroadcastRadioService.java57 private IServiceNotification.Stub mServiceListener = new IServiceNotification.Stub() { field in BroadcastRadioService
127 manager.registerForNotifications(IBroadcastRadio.kInterfaceName, "", mServiceListener); in BroadcastRadioService()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java348 private BluetoothProfile.ServiceListener mServiceListener = field in BluetoothTestUtils
1610 adapter.getProfileProxy(mContext, mServiceListener, profile); in connectProxy()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt9822 Landroid/bluetooth/BluetoothA2dp;->mServiceListener:Landroid/bluetooth/BluetoothProfile$ServiceList…
9849 Landroid/bluetooth/BluetoothA2dpSink;->mServiceListener:Landroid/bluetooth/BluetoothProfile$Service…
10021 Landroid/bluetooth/BluetoothAvrcpController;->mServiceListener:Landroid/bluetooth/BluetoothProfile$…
10272 Landroid/bluetooth/BluetoothHeadset;->mServiceListener:Landroid/bluetooth/BluetoothProfile$ServiceL…
10388 Landroid/bluetooth/BluetoothHeadsetClient;->mServiceListener:Landroid/bluetooth/BluetoothProfile$Se…
10453 Landroid/bluetooth/BluetoothHealth;->mServiceListener:Landroid/bluetooth/BluetoothProfile$ServiceLi…
10490 Landroid/bluetooth/BluetoothHearingAid;->mServiceListener:Landroid/bluetooth/BluetoothProfile$Servi…
10522 Landroid/bluetooth/BluetoothHidDevice;->mServiceListener:Landroid/bluetooth/BluetoothProfile$Servic…
10572 Landroid/bluetooth/BluetoothHidHost;->mServiceListener:Landroid/bluetooth/BluetoothProfile$ServiceL…
10616 Landroid/bluetooth/BluetoothMap;->mServiceListener:Landroid/bluetooth/BluetoothProfile$ServiceListe…
[all …]