/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
H A D | BluetoothEventManagerTest.java | 251 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged() 253 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged() 260 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged() 262 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged() 268 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged() 270 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged() 277 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged() 279 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged() 284 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged() 286 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged() [all …]
|
H A D | CachedBluetoothDeviceTest.java | 282 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEADSET); in getConnectionSummary_testSingleProfileActiveDeviceHfp() 297 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEADSET); in getConnectionSummary_testSingleProfileActiveDeviceHfp() 324 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEADSET); in getConnectionSummary_testHeadsetWithoutInCall_returnNull() 338 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEADSET); in getConnectionSummary_testHeadsetBatteryWithoutInCall_returnBattery() 432 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEADSET); in getConnectionSummary_testMultipleProfilesActiveDevice() 447 mCachedDevice.onActiveDeviceChanged(false, BluetoothProfile.HEADSET); in getConnectionSummary_testMultipleProfilesActiveDevice() 460 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEADSET); in getConnectionSummary_testMultipleProfilesActiveDevice() 625 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEADSET); in getCarConnectionSummary_singleProfileActiveDeviceHfp() 641 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEADSET); in getCarConnectionSummary_singleProfileActiveDeviceHfp() 676 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEADSET); in getCarConnectionSummary_multipleProfilesActiveDevice() [all …]
|
H A D | LocalBluetoothProfileManagerTest.java | 176 new int[] {BluetoothProfile.HEADSET})); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback() 187 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEADSET); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
|
H A D | HearingAidProfileTest.java | 69 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET, mService); in setUp()
|
H A D | HeadsetProfileTest.java | 54 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET, mService); in setUp()
|
/aosp12/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothStressTest.java | 229 mTestUtils.disconnectProfile(mAdapter, device, BluetoothProfile.HEADSET, null); in testConnectHeadset() 233 mTestUtils.connectProfile(mAdapter, device, BluetoothProfile.HEADSET, in testConnectHeadset() 235 mTestUtils.disconnectProfile(mAdapter, device, BluetoothProfile.HEADSET, in testConnectHeadset() 347 mTestUtils.disconnectProfile(mAdapter, device, BluetoothProfile.HEADSET, null); in testStartStopSco() 348 mTestUtils.connectProfile(mAdapter, device, BluetoothProfile.HEADSET, null); in testStartStopSco() 359 mTestUtils.disconnectProfile(mAdapter, device, BluetoothProfile.HEADSET, null); in testStartStopSco()
|
H A D | BluetoothTestUtils.java | 231 case BluetoothProfile.HEADSET: in ConnectProfileReceiver() 357 case BluetoothProfile.HEADSET: 380 case BluetoothProfile.HEADSET: 985 } else if (profile == BluetoothProfile.HEADSET) { in connectProfile() 1062 } else if (profile == BluetoothProfile.HEADSET) { in disconnectProfile() 1588 case BluetoothProfile.HEADSET: in connectProxy() 1618 case BluetoothProfile.HEADSET: in connectProxy()
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
H A D | MetricsLoggerTest.java | 79 MetricsLogger.logProfileConnectionEvent(ProfileId.HEADSET); in testLogProfileConnectionEventMultipleProfile() 90 Assert.assertTrue(profileConnectionCountMap.containsKey(ProfileId.HEADSET)); in testLogProfileConnectionEventMultipleProfile() 92 profileConnectionCountMap.get(ProfileId.HEADSET).getNumTimesConnected()); in testLogProfileConnectionEventMultipleProfile()
|
H A D | PhonePolicyTest.java | 136 .setProfileConnectionPolicy(device, BluetoothProfile.HEADSET, in testProcessInitProfilePriorities() 256 updateProfileConnectionStateHelper(connectionOrder.get(1), BluetoothProfile.HEADSET, in testDisconnectNoAutoConnect() 301 updateProfileConnectionStateHelper(bondedDevices[0], BluetoothProfile.HEADSET, in testReconnectOnPartialConnect() 342 updateProfileConnectionStateHelper(connectionOrder.get(0), BluetoothProfile.HEADSET, in testReconnectOnPartialConnect_PreviousPartialFail() 360 updateProfileConnectionStateHelper(connectionOrder.get(0), BluetoothProfile.HEADSET, in testReconnectOnPartialConnect_PreviousPartialFail() 369 updateProfileConnectionStateHelper(connectionOrder.get(0), BluetoothProfile.HEADSET, in testReconnectOnPartialConnect_PreviousPartialFail() 376 updateProfileConnectionStateHelper(connectionOrder.get(0), BluetoothProfile.HEADSET, in testReconnectOnPartialConnect_PreviousPartialFail() 434 updateProfileConnectionStateHelper(a2dpNotConnectedDevice1, BluetoothProfile.HEADSET, in testAutoConnectMultipleDevices() 533 updateProfileConnectionStateHelper(testDevices[1], BluetoothProfile.HEADSET, in testSetConnectionPolicyMultipleDevices() 739 updateProfileConnectionStateHelper(bondedDevices[1], BluetoothProfile.HEADSET, in testReconnectOnPartialConnect_MultiDevice() [all …]
|
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | HeadsetProfile.java | 97 return BluetoothProfile.HEADSET; in getProfileId() 106 BluetoothProfile.HEADSET); in HeadsetProfile() 232 BluetoothAdapter.getDefaultAdapter().closeProfileProxy(BluetoothProfile.HEADSET, in finalize()
|
H A D | CachedBluetoothDevice.java | 122 case BluetoothProfile.HEADSET: 254 case BluetoothProfile.HEADSET: in setProfileConnectedStatus() 570 case BluetoothProfile.HEADSET: in onActiveDeviceChanged() 605 case BluetoothProfile.HEADSET: in isActiveDevice()
|
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | AvailableMediaBluetoothDeviceUpdater.java | 62 currentAudioProfile = BluetoothProfile.HEADSET; in isFilterMatched() 88 case BluetoothProfile.HEADSET: in isFilterMatched()
|
H A D | ConnectedBluetoothDeviceUpdater.java | 62 currentAudioProfile = BluetoothProfile.HEADSET; in isFilterMatched() 89 case BluetoothProfile.HEADSET: in isFilterMatched()
|
/aosp12/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothProfile.java | 80 int HEADSET = 1; field 383 case HEADSET: in getProfileName()
|
H A D | BluetoothHeadset.java | 401 BluetoothProfile.HEADSET, mConnection); in doBind() 416 BluetoothProfile.HEADSET, mConnection); in doUnbind() 1422 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET, 1429 mServiceListener.onServiceDisconnected(BluetoothProfile.HEADSET);
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
H A D | SilenceDeviceManager.java | 172 addConnectedDevice(device, BluetoothProfile.HEADSET); in handleMessage() 178 removeConnectedDevice(device, BluetoothProfile.HEADSET); in handleMessage() 314 case BluetoothProfile.HEADSET: in addConnectedDevice() 332 case BluetoothProfile.HEADSET: in removeConnectedDevice()
|
H A D | PhonePolicy.java | 115 BluetoothProfile.HEADSET, -1, // No-op argument 135 BluetoothProfile.HEADSET, -1, // No-op argument 298 BluetoothProfile.HEADSET, BluetoothProfile.CONNECTION_POLICY_ALLOWED); in processInitProfilePriorities() 332 if (((profileId == BluetoothProfile.A2DP) || (profileId == BluetoothProfile.HEADSET) in processProfileStateChanged() 339 case BluetoothProfile.HEADSET: in processProfileStateChanged()
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
H A D | HeadsetServiceTest.java | 235 eq(BluetoothProfile.HEADSET))) in testConnectDevice_connectDeviceBelowLimit() 347 eq(BluetoothProfile.HEADSET))) in testConnectDevice_connectDeviceAboveLimit() 399 eq(BluetoothProfile.HEADSET))) in testConnectAudio_withOneDevice() 451 eq(BluetoothProfile.HEADSET))) in testConnectAudio_withMultipleDevices() 527 eq(BluetoothProfile.HEADSET))) in testConnectAudio_connectTwoAudioChannelsShouldFail() 599 eq(BluetoothProfile.HEADSET))) in testConnectAudio_firstConnectedAudioDevice() 666 eq(BluetoothProfile.HEADSET))) in testConnectAudio_deviceDisconnected() 726 eq(BluetoothProfile.HEADSET))) in testPhoneStateChange_oneDeviceSaveState() 806 eq(BluetoothProfile.HEADSET))) in testPhoneStateChange_multipleDevicesSaveState() 868 eq(BluetoothProfile.HEADSET))) in testSetSilenceMode() [all …]
|
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
H A D | BluetoothDeviceManager.java | 50 if (profile == BluetoothProfile.HEADSET) { 77 if (profile == BluetoothProfile.HEADSET) { 129 BluetoothProfile.HEADSET); in BluetoothDeviceManager()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | BluetoothControllerImplTest.java | 220 when(device.isActiveDevice(BluetoothProfile.HEADSET)).thenReturn(true); in testOnActiveDeviceChanged_updatesAudioActive() 225 when(profile.getProfileId()).thenReturn(BluetoothProfile.HEADSET); in testOnActiveDeviceChanged_updatesAudioActive() 231 mBluetoothControllerImpl.onActiveDeviceChanged(device, BluetoothProfile.HEADSET); in testOnActiveDeviceChanged_updatesAudioActive()
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
H A D | UtilsGetProfileNameTest.java | 53 {BluetoothProfile.HEADSET, "HFP Server"}, in provideParams()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/ |
H A D | Metadata.java | 83 case BluetoothProfile.HEADSET: in setProfileConnectionPolicy() 127 case BluetoothProfile.HEADSET: in getProfileConnectionPolicy()
|
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
H A D | BluetoothDeviceManagerTest.java | 91 serviceCaptor.capture(), eq(BluetoothProfile.HEADSET)); in setUp() 170 serviceListenerUnderTest.onServiceDisconnected(BluetoothProfile.HEADSET); in testHeadsetServiceDisconnect()
|
/aosp12/packages/apps/Nfc/src/com/android/nfc/handover/ |
H A D | BluetoothPeripheralHandover.java | 335 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.HEADSET)) in getProfileProxys() 546 mBluetoothAdapter.closeProfileProxy(BluetoothProfile.HEADSET, mHeadset); in complete() 678 case BluetoothProfile.HEADSET: in onServiceConnected()
|
/aosp12/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | BtHelper.java | 646 case BluetoothProfile.HEADSET: 673 case BluetoothProfile.HEADSET: 861 mBluetoothProfileServiceListener, BluetoothProfile.HEADSET); in getBluetoothHeadset()
|