/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/ |
H A D | HearingAidServiceTest.java | 122 doReturn(new ParcelUuid[]{BluetoothUuid.HEARING_AID}).when(mAdapterService) in setUp() 290 .getProfileConnectionPolicy(mRightDevice, BluetoothProfile.HEARING_AID)) in testOutgoingConnectMissingHearingAidUuid() 316 .getProfileConnectionPolicy(mLeftDevice, BluetoothProfile.HEARING_AID)) in testOutgoingConnectPriorityOff() 330 .getProfileConnectionPolicy(mLeftDevice, BluetoothProfile.HEARING_AID)) in testOutgoingConnectTimeout() 333 .getProfileConnectionPolicy(mRightDevice, BluetoothProfile.HEARING_AID)) in testOutgoingConnectTimeout() 367 .getProfileConnectionPolicy(mLeftDevice, BluetoothProfile.HEARING_AID)) in testConnectAPair_connectBothDevices() 370 .getProfileConnectionPolicy(mRightDevice, BluetoothProfile.HEARING_AID)) in testConnectAPair_connectBothDevices() 401 .getProfileConnectionPolicy(mLeftDevice, BluetoothProfile.HEARING_AID)) in testConnectAnotherPair_disconnectCurrentPair() 404 .getProfileConnectionPolicy(mRightDevice, BluetoothProfile.HEARING_AID)) in testConnectAnotherPair_disconnectCurrentPair() 467 .getProfileConnectionPolicy(mLeftDevice, BluetoothProfile.HEARING_AID)) in testAudioManagerConnectDisconnect() [all …]
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
H A D | BluetoothEventManagerTest.java | 317 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).isFalse(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid() 320 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEARING_AID)).isFalse(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid() 328 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).isFalse(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid() 331 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEARING_AID)).isFalse(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid() 337 .dispatchActiveDeviceChanged(mCachedDevice2, BluetoothProfile.HEARING_AID); in dispatchActiveDeviceChanged_withA2dpAndHearingAid() 340 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).isFalse(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid() 343 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEARING_AID)).isTrue(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid() 346 mBluetoothEventManager.dispatchActiveDeviceChanged(null, BluetoothProfile.HEARING_AID); in dispatchActiveDeviceChanged_withA2dpAndHearingAid() 352 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEARING_AID)).isFalse(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
|
H A D | CachedBluetoothDeviceTest.java | 354 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getConnectionSummary_testSingleProfileActiveDeviceHearingAid() 358 mCachedDevice.onActiveDeviceChanged(false, BluetoothProfile.HEARING_AID); in getConnectionSummary_testSingleProfileActiveDeviceHearingAid() 384 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getConnectionSummary_testHearingAidBatteryWithoutInCall_returnActiveBattery() 398 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getConnectionSummary_testHearingAidInCall_returnActive() 413 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getConnectionSummary_testHearingAidBatteryInCall_returnActiveBattery() 492 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getConnectionSummary_trueWirelessActiveDeviceWithBattery_returnActiveWithBattery() 657 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getCarConnectionSummary_singleProfileActiveDeviceHearingAid() 661 mCachedDevice.onActiveDeviceChanged(false, BluetoothProfile.HEARING_AID); in getCarConnectionSummary_singleProfileActiveDeviceHearingAid()
|
/aosp12/frameworks/base/services/core/java/com/android/server/ |
H A D | BluetoothModeChangeHelper.java | 49 BluetoothProfile.HEARING_AID); in BluetoothModeChangeHelper() 60 case BluetoothProfile.HEARING_AID: 75 case BluetoothProfile.HEARING_AID:
|
/aosp12/frameworks/base/services/core/java/com/android/server/media/ |
H A D | BluetoothRouteProvider.java | 110 mBluetoothAdapter.getProfileProxy(mContext, mProfileListener, BluetoothProfile.HEARING_AID); in start() 286 newBtRoute.connectedProfiles.put(BluetoothProfile.HEARING_AID, true); in createBluetoothRoute() 392 if (connectedProfiles.get(BluetoothProfile.HEARING_AID, false)) { in getRouteType() 409 case BluetoothProfile.HEARING_AID: in onServiceConnected() 434 case BluetoothProfile.HEARING_AID: in onServiceDisconnected() 497 handleConnectionStateChanged(BluetoothProfile.HEARING_AID, intent, device); in onReceive()
|
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | HearingAidProfile.java | 96 return BluetoothProfile.HEARING_AID; in getProfileId() 106 new HearingAidServiceListener(), BluetoothProfile.HEARING_AID); in HearingAidProfile() 261 BluetoothAdapter.getDefaultAdapter().closeProfileProxy(BluetoothProfile.HEARING_AID, in finalize()
|
H A D | CachedBluetoothDevice.java | 125 case BluetoothProfile.HEARING_AID: 257 case BluetoothProfile.HEARING_AID: in setProfileConnectedStatus() 574 case BluetoothProfile.HEARING_AID: in onActiveDeviceChanged() 607 case BluetoothProfile.HEARING_AID: in isActiveDevice() 715 } else if (ArrayUtils.contains(uuids, BluetoothUuid.HEARING_AID)) { in onUuidChanged()
|
H A D | LocalBluetoothProfileManager.java | 179 if (mHearingAidProfile == null && supportedList.contains(BluetoothProfile.HEARING_AID)) { in updateLocalProfiles() 562 if (ArrayUtils.contains(uuids, BluetoothUuid.HEARING_AID) && mHearingAidProfile != null) { in updateProfiles()
|
/aosp12/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothProfile.java | 206 int HEARING_AID = 21; field 417 case HEARING_AID: in getProfileName()
|
H A D | BluetoothUuid.java | 156 public static final ParcelUuid HEARING_AID = field in BluetoothUuid
|
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
H A D | BluetoothDeviceManager.java | 54 } else if (profile == BluetoothProfile.HEARING_AID) { 83 } else if (profile == BluetoothProfile.HEARING_AID) { 131 BluetoothProfile.HEARING_AID); in BluetoothDeviceManager()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
H A D | HearingAidService.java | 252 if (!ArrayUtils.contains(featureUuids, BluetoothUuid.HEARING_AID)) { in connect() 411 if (!ArrayUtils.contains(featureUuids, BluetoothUuid.HEARING_AID)) { in getDevicesMatchingConnectionStates() 498 if (!mDatabaseManager.setProfileConnectionPolicy(device, BluetoothProfile.HEARING_AID, in setConnectionPolicy() 527 .getProfileConnectionPolicy(device, BluetoothProfile.HEARING_AID); in getConnectionPolicy() 690 BluetoothProfile.HEARING_AID, mAdapterService.obfuscateAddress(device), in reportActiveDevice() 813 BluetoothMetricsProto.ProfileId.HEARING_AID); in connectionStateChanged()
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
H A D | UtilsGetProfileNameTest.java | 71 {BluetoothProfile.HEARING_AID, "Hearing Aid"}, in provideParams()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
H A D | AvailableMediaBluetoothDeviceUpdaterTest.java | 219 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_hearingAidDeviceConnected_notInCall_addPreference() 232 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_hearingAidDeviceConnected_inCall_addPreference()
|
H A D | ConnectedBluetoothDeviceUpdaterTest.java | 218 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_hearingAidDeviceConnected_inCall_removePreference() 232 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_hearingAidDeviceConnected_notInCall_removePreference()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/ |
H A D | Metadata.java | 110 case BluetoothProfile.HEARING_AID: in setProfileConnectionPolicy() 145 case BluetoothProfile.HEARING_AID: in getProfileConnectionPolicy()
|
/aosp12/packages/services/Telephony/src/com/android/phone/settings/ |
H A D | AccessibilitySettingsFragment.java | 113 Settings.System.HEARING_AID, SettingsConstants.HAC_DISABLED); in onCreate() 171 Settings.System.putInt(mContext.getContentResolver(), Settings.System.HEARING_AID, hac); in onPreferenceTreeClick()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
H A D | PhonePolicy.java | 140 BluetoothProfile.HEARING_AID, -1, // No-op argument 319 BluetoothUuid.HEARING_AID) && (hearingAidService.getConnectionPolicy(device) in processInitProfilePriorities() 323 BluetoothProfile.HEARING_AID, BluetoothProfile.CONNECTION_POLICY_ALLOWED); in processInitProfilePriorities()
|
/aosp12/frameworks/base/packages/SettingsProvider/src/android/provider/settings/backup/ |
H A D | SystemSettings.java | 61 Settings.System.HEARING_AID,
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
H A D | BluetoothMediaDeviceTest.java | 54 when(mDevice.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in setUp()
|
/aosp12/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | BtHelper.java | 237 mBluetoothProfileServiceListener, BluetoothProfile.HEARING_AID); in onSystemReady() 652 case BluetoothProfile.HEARING_AID: 677 case BluetoothProfile.HEARING_AID:
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BluetoothControllerImpl.java | 288 || device.isActiveDevice(BluetoothProfile.HEARING_AID); in updateActive() 307 || profileId == BluetoothProfile.HEARING_AID) { in updateAudioProfile()
|
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A D | AccessibilityHearingAidPreferenceController.java | 176 if (supportedList.contains(BluetoothProfile.HEARING_AID)) { in isHearingAidProfileSupported()
|
/aosp12/packages/services/Car/service/src/com/android/car/ |
H A D | Utils.java | 92 sProfileNames.put(BluetoothProfile.HEARING_AID, "Hearing Aid"); in sProfileNames.put() argument
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
H A D | AccessibilityHearingAidPreferenceControllerTest.java | 208 mShadowBluetoothAdapter.addSupportedProfiles(BluetoothProfile.HEARING_AID); in setupHearingAidEnvironment()
|