Searched refs:mA2dpProfile (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceTest.java | 59 private A2dpProfile mA2dpProfile; field in CachedBluetoothDeviceTest 80 when(mA2dpProfile.isProfileReady()).thenReturn(true); in setUp() 137 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect() 148 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect() 166 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp() 179 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp() 185 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp() 190 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp() 198 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_shortSummary_returnShortSummary() 211 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_shortSummary_returnShortSummary() [all …]
|
D | CachedBluetoothDeviceManagerTest.java | 70 private A2dpProfile mA2dpProfile; field in CachedBluetoothDeviceManagerTest 108 when(mA2dpProfile.isProfileReady()).thenReturn(true); in setUp() 400 cachedDevice1.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged() 401 cachedDevice2.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged() 463 cachedDevice1.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in onActiveDeviceChanged_withA2dpAndHearingAid()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | PhoneMediaDeviceTest.java | 50 private A2dpProfile mA2dpProfile; field in PhoneMediaDeviceTest 63 when(mLocalProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setUp() 65 when(mA2dpProfile.getActiveDevice()).thenReturn(mDevice); in setUp() 72 when(mA2dpProfile.setActiveDevice(null)).thenReturn(true); in connect_phoneDeviceSetActiveSuccess_isConnectedReturnTrue() 80 when(mA2dpProfile.setActiveDevice(null)).thenReturn(false); in connect_a2dpProfileSetActiveFail_isConnectedReturnFalse() 88 when(mA2dpProfile.setActiveDevice(null)).thenReturn(true); in connect_hearingAidProfileSetActiveFail_isConnectedReturnFalse() 96 when(mA2dpProfile.setActiveDevice(null)).thenReturn(false); in connect_hearingAidAndA2dpProfileSetActiveFail_isConnectedReturnFalse() 106 when(mA2dpProfile.setActiveDevice(null)).thenReturn(true); in connect_hearingAidProfileIsNullAndA2dpProfileNotNull_isConnectedReturnTrue()
|
D | BluetoothMediaManagerTest.java | 62 private A2dpProfile mA2dpProfile; field in BluetoothMediaManagerTest 82 when(mProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setUp() 96 when(mA2dpProfile.getConnectableDevices()).thenReturn(devices); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice() 99 when(mA2dpProfile.isEnabled(bluetoothDevice)).thenReturn(true); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice() 113 when(mA2dpProfile.getConnectableDevices()).thenReturn(devices); in startScan_haveA2dpProfileDeviceIsPreferredAndBondNone_shouldNotAddDevice() 116 when(mA2dpProfile.isEnabled(bluetoothDevice)).thenReturn(true); in startScan_haveA2dpProfileDeviceIsPreferredAndBondNone_shouldNotAddDevice() 127 when(mA2dpProfile.getConnectableDevices()).thenReturn(devices); in startScan_noA2dpProfileBluetoothDevice_shouldNotAddDevice() 169 when(mA2dpProfile.isProfileReady()).thenReturn(false); in starScan_a2dpAndHapProfileNotReady_shouldRegisterCallback() 184 when(mA2dpProfile.isProfileReady()).thenReturn(true); in starScan_a2dpAndHapProfileReady_shouldNotRegisterCallback() 199 when(mA2dpProfile.isProfileReady()).thenReturn(false); in onServiceConnected_a2dpAndHapProfileNotReady_doNothing() [all …]
|
D | MediaDeviceTest.java | 89 private A2dpProfile mA2dpProfile; field in MediaDeviceTest 130 when(mProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setUp() 132 when(mA2dpProfile.getActiveDevice()).thenReturn(mDevice); in setUp()
|
D | LocalMediaManagerTest.java | 66 private A2dpProfile mA2dpProfile; field in LocalMediaManagerTest 79 when(mLocalProfileManager.getA2dpProfile()).thenReturn(mA2dpProfile); in setUp()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothProfileManager.java | 89 private A2dpProfile mA2dpProfile; field in LocalBluetoothProfileManager 133 if (mA2dpProfile == null && supportedList.contains(BluetoothProfile.A2DP)) { in updateLocalProfiles() 135 mA2dpProfile = new A2dpProfile(mContext, mDeviceManager, this); in updateLocalProfiles() 136 addProfile(mA2dpProfile, A2dpProfile.NAME, in updateLocalProfiles() 384 profile = mA2dpProfile; in isManagerReady() 396 return mA2dpProfile; in getA2dpProfile() 491 if (BluetoothUuid.containsAnyUuid(uuids, A2dpProfile.SINK_UUIDS) && mA2dpProfile != null) { in updateProfiles() 492 profiles.add(mA2dpProfile); in updateProfiles() 493 removedProfiles.remove(mA2dpProfile); in updateProfiles()
|