Home
last modified time | relevance | path

Searched refs:mA2dpProfile (Results 1 – 9 of 9) sorted by relevance

/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDeviceTest.java72 private A2dpProfile mA2dpProfile; field in CachedBluetoothDeviceTest
101 when(mA2dpProfile.isProfileReady()).thenReturn(true); in setUp()
102 when(mA2dpProfile.getProfileId()).thenReturn(BluetoothProfile.A2DP); in setUp()
220 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
249 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp()
268 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp()
938 when(mProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setActive()
958 when(mProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in isA2dpDevice_isA2dpDevice()
959 when(mA2dpProfile.getConnectionStatus(mDevice)). in isA2dpDevice_isA2dpDevice()
967 when(mProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in isA2dpDevice_isNotA2dpDevice()
[all …]
H A DBluetoothEventManagerTest.java70 private A2dpProfile mA2dpProfile; field in BluetoothEventManagerTest
102 when(mA2dpProfile.isProfileReady()).thenReturn(true); in setUp()
251 mCachedDevice1.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
252 mCachedDevice2.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
323 mCachedDevice2.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedMemberDevices_activeDeviceChanged()
354 mCachedDevice1.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
H A DCsipDeviceManagerTest.java75 private A2dpProfile mA2dpProfile; field in CsipDeviceManagerTest
118 when(mLocalProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setUp()
141 profiles.add(mA2dpProfile); in setUp()
153 profiles.add(mA2dpProfile); in setUp()
H A DCachedBluetoothDeviceManagerTest.java78 private A2dpProfile mA2dpProfile; field in CachedBluetoothDeviceManagerTest
128 when(mA2dpProfile.isProfileReady()).thenReturn(true); in setUp()
/aosp14/frameworks/base/services/core/java/com/android/server/media/
H A DBluetoothProfileMonitor.java44 private BluetoothA2dp mA2dpProfile; field in BluetoothProfileMonitor
79 bluetoothProfile = mA2dpProfile; in isProfileSupported()
130 mA2dpProfile = (BluetoothA2dp) proxy; in onServiceConnected()
157 mA2dpProfile = null; in onServiceDisconnected()
H A DLegacyBluetoothRouteController.java79 private BluetoothA2dp mA2dpProfile; field in LegacyBluetoothRouteController
298 if (mA2dpProfile != null && mA2dpProfile.getConnectedDevices().contains(device)) { in createBluetoothRoute()
437 mA2dpProfile = (BluetoothA2dp) proxy; in onServiceConnected()
470 mA2dpProfile = null; in onServiceDisconnected()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DLocalBluetoothProfileManager.java95 private A2dpProfile mA2dpProfile; field in LocalBluetoothProfileManager
145 if (mA2dpProfile == null && supportedList.contains(BluetoothProfile.A2DP)) { in updateLocalProfiles()
147 mA2dpProfile = new A2dpProfile(mContext, mDeviceManager, this); in updateLocalProfiles()
148 addProfile(mA2dpProfile, A2dpProfile.NAME, in updateLocalProfiles()
501 profile = mA2dpProfile; in isManagerReady()
513 return mA2dpProfile; in getA2dpProfile()
644 if (BluetoothUuid.containsAnyUuid(uuids, A2dpProfile.SINK_UUIDS) && mA2dpProfile != null) { in updateProfiles()
645 profiles.add(mA2dpProfile); in updateProfiles()
646 removedProfiles.remove(mA2dpProfile); in updateProfiles()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
H A DLocalMediaManagerTest.java86 private A2dpProfile mA2dpProfile; field in LocalMediaManagerTest
116 when(mLocalProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setUp()
472 when(mA2dpProfile.getActiveDevice()).thenReturn(bluetoothDevice); in onDeviceListAdded_haveMutingExpectedDevice_addMutingExpectedDevice()
566 when(mA2dpProfile.getActiveDevice()).thenReturn(bluetoothDevice2); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
594 when(mA2dpProfile.getActiveDevice()).thenReturn(null); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
H A DMediaDeviceTest.java111 private A2dpProfile mA2dpProfile; field in MediaDeviceTest
173 when(mProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setUp()
175 when(mA2dpProfile.getActiveDevice()).thenReturn(mDevice); in setUp()