/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
H A D | CachedBluetoothDeviceTest.java | 72 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 D | BluetoothEventManagerTest.java | 70 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 D | CsipDeviceManagerTest.java | 75 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 D | CachedBluetoothDeviceManagerTest.java | 78 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 D | BluetoothProfileMonitor.java | 44 private BluetoothA2dp mA2dpProfile; field in BluetoothProfileMonitor 79 bluetoothProfile = mA2dpProfile; in isProfileSupported() 130 mA2dpProfile = (BluetoothA2dp) proxy; in onServiceConnected() 157 mA2dpProfile = null; in onServiceDisconnected()
|
H A D | LegacyBluetoothRouteController.java | 79 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 D | LocalBluetoothProfileManager.java | 95 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 D | LocalMediaManagerTest.java | 86 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 D | MediaDeviceTest.java | 111 private A2dpProfile mA2dpProfile; field in MediaDeviceTest 173 when(mProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setUp() 175 when(mA2dpProfile.getActiveDevice()).thenReturn(mDevice); in setUp()
|