Home
last modified time | relevance | path

Searched refs:HEADSET (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothEventManagerTest.java251 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
253 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
258 .dispatchActiveDeviceChanged(mCachedDevice2, BluetoothProfile.HEADSET); 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()
266 .dispatchActiveDeviceChanged(mCachedDevice1, BluetoothProfile.HEADSET); 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()
275 .dispatchActiveDeviceChanged(mCachedDevice2, BluetoothProfile.HEADSET); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
277 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
[all …]
DCachedBluetoothDeviceTest.java282 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 …]
DHearingAidProfileTest.java69 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET, mService); in setUp()
DLocalBluetoothProfileManagerTest.java176 new int[] {BluetoothProfile.HEADSET})); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
187 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEADSET); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
DHeadsetProfileTest.java54 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET, mService); in setUp()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothStressTest.java229 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()
DBluetoothTestUtils.java231 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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHeadsetProfile.java97 return BluetoothProfile.HEADSET; in getProfileId()
106 BluetoothProfile.HEADSET); in HeadsetProfile()
232 BluetoothAdapter.getDefaultAdapter().closeProfileProxy(BluetoothProfile.HEADSET, in finalize()
DCachedBluetoothDevice.java121 case BluetoothProfile.HEADSET:
253 case BluetoothProfile.HEADSET: in setProfileConnectedStatus()
568 case BluetoothProfile.HEADSET: in onActiveDeviceChanged()
603 case BluetoothProfile.HEADSET: in isActiveDevice()
DBluetoothEventManager.java440 bluetoothProfile = BluetoothProfile.HEADSET; in onReceive()
DLocalBluetoothProfileManager.java146 if (mHeadsetProfile == null && supportedList.contains(BluetoothProfile.HEADSET)) { in updateLocalProfiles()
/frameworks/base/core/java/android/bluetooth/
DBluetoothProfile.java80 int HEADSET = 1; field
383 case HEADSET: in getProfileName()
DBluetoothHeadset.java401 BluetoothProfile.HEADSET, mConnection); in doBind()
416 BluetoothProfile.HEADSET, mConnection); in doUnbind()
1422 mServiceListener.onServiceConnected(BluetoothProfile.HEADSET,
1429 mServiceListener.onServiceDisconnected(BluetoothProfile.HEADSET);
DBluetoothAdapter.java3016 if (profile == BluetoothProfile.HEADSET) { in getProfileProxy()
3093 case BluetoothProfile.HEADSET: in closeProfileProxy()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java220 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()
/frameworks/base/services/core/java/com/android/server/audio/
DBtHelper.java646 case BluetoothProfile.HEADSET:
673 case BluetoothProfile.HEADSET:
861 mBluetoothProfileServiceListener, BluetoothProfile.HEADSET); in getBluetoothHeadset()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java286 isActive |= device.isActiveDevice(BluetoothProfile.HEADSET) in updateActive()
305 if (profileId == BluetoothProfile.HEADSET in updateAudioProfile()
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
DScoAudioTest.java159 BluetoothProfile.HEADSET); in onCreate()
174 btAdapter.closeProfileProxy(BluetoothProfile.HEADSET, mBluetoothHeadset); in onDestroy()
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java1351 if (bluetoothProfile != BluetoothProfile.HEADSET) { in bindBluetoothProfileService()
/frameworks/proto_logging/stats/
Datoms.proto2178 // The profile that is connected. Eg. GATT, A2DP, HEADSET.
2273 // The profile whose active device has changed. Eg. A2DP, HEADSET, HEARING_AID
/frameworks/base/core/api/
Dcurrent.txt9452 field public static final int HEADSET = 1; // 0x1
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt6486 field public static final int HEADSET = 1; // 0x1