Home
last modified time | relevance | path

Searched refs:HEARING_AID (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/media/
DBluetoothProfileMonitor.java58 mBluetoothAdapter.getProfileProxy(mContext, mProfileListener, BluetoothProfile.HEARING_AID); in start()
73 case BluetoothProfile.HEARING_AID: in isProfileSupported()
97 case BluetoothProfile.HEARING_AID: in getGroupId()
115 case BluetoothProfile.HEARING_AID: in onServiceConnected()
132 case BluetoothProfile.HEARING_AID: in onServiceDisconnected()
DLegacyBluetoothRouteController.java105 mBluetoothAdapter.getProfileProxy(mContext, mProfileListener, BluetoothProfile.HEARING_AID); in start()
301 newBtRoute.mConnectedProfiles.put(BluetoothProfile.HEARING_AID, true); in createBluetoothRoute()
416 if (mConnectedProfiles.get(BluetoothProfile.HEARING_AID, false)) { in getRouteType()
439 case BluetoothProfile.HEARING_AID: in onServiceConnected()
442 BluetoothProfile.HEARING_AID); in onServiceConnected()
470 case BluetoothProfile.HEARING_AID: in onServiceDisconnected()
543 handleConnectionStateChanged(BluetoothProfile.HEARING_AID, intent, device); in onReceive()
DBluetoothDeviceRoutesManager.java274 if (mBluetoothProfileMonitor.isProfileSupported(BluetoothProfile.HEARING_AID, device)) { in getConnectedProfiles()
275 connectedProfiles.put(BluetoothProfile.HEARING_AID, true); in getConnectedProfiles()
289 if (mBluetoothProfileMonitor.isProfileSupported(BluetoothProfile.HEARING_AID, device)) { in getDeviceType()
305 BluetoothProfile.HEARING_AID, device); in getRouteIdForType()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothEventManagerTest.java546 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).isFalse(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
549 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEARING_AID)).isFalse(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
557 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).isFalse(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
560 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEARING_AID)).isFalse(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
566 .dispatchActiveDeviceChanged(mCachedDevice2, BluetoothProfile.HEARING_AID); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
569 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).isFalse(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
572 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEARING_AID)).isTrue(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
575 mBluetoothEventManager.dispatchActiveDeviceChanged(null, BluetoothProfile.HEARING_AID); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
581 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEARING_AID)).isFalse(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
592 BluetoothProfile.HEARING_AID); in dispatchActiveDeviceChanged_callExpectedOnActiveDeviceChanged()
[all …]
DHearingAidProfileTest.java80 mServiceListener.onServiceConnected(BluetoothProfile.HEARING_AID, mService); in onServiceConnected_isProfileReady()
88 mServiceListener.onServiceDisconnected(BluetoothProfile.HEARING_AID); in onServiceDisconnected_profileNotReady()
DCachedBluetoothDeviceTest.java146 when(mHearingAidProfile.getProfileId()).thenReturn(BluetoothProfile.HEARING_AID); in setUp()
699 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getConnectionSummary_testSingleProfileActiveDeviceHearingAid()
703 mCachedDevice.onActiveDeviceChanged(false, BluetoothProfile.HEARING_AID); in getConnectionSummary_testSingleProfileActiveDeviceHearingAid()
718 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getTvConnectionSummary_testSingleProfileActiveDeviceHearingAid()
723 mCachedDevice.onActiveDeviceChanged(false, BluetoothProfile.HEARING_AID); in getTvConnectionSummary_testSingleProfileActiveDeviceHearingAid()
763 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getConnectionSummary_testHearingAidLeftEarBatteryNotInCall_returnActiveBattery()
779 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getTvConnectionSummary_testHearingAidLeftEarBatteryWithoutInCall_returnBattery()
795 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getConnectionSummary_testHearingAidLeftEarBatteryInCall_returnActiveBattery()
812 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getTvConnectionSummary_testHearingAidLeftEarBatteryInCall_returnBattery()
829 mCachedDevice.onActiveDeviceChanged(true, BluetoothProfile.HEARING_AID); in getConnectionSummary_testHearingAidRightEarInCall_returnActiveRightEar()
[all …]
DLocalBluetoothProfileManagerTest.java210 new int[] {BluetoothProfile.HEARING_AID})); in stateChangedHandler_receiveHearingAidConnectionStateChanged_dispatchDeviceManager()
222 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in stateChangedHandler_receiveHearingAidConnectionStateChanged_dispatchDeviceManager()
DHearingAidDeviceManagerTest.java219 .setServiceData(BluetoothUuid.HEARING_AID, new byte[]{0}).build(); in initHearingAidDeviceIfNeeded_asha_scanFilterNotNull_setEmptyHearingAidInfo()
735 when(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in onActiveDeviceChanged_connected_callSetStrategies()
749 when(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(false); in onActiveDeviceChanged_disconnected_callSetStrategiesWithAutoValue()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidProfile.java130 return BluetoothProfile.HEARING_AID; in getProfileId()
140 new HearingAidServiceListener(), BluetoothProfile.HEARING_AID); in HearingAidProfile()
213 return mBluetoothAdapter.getActiveDevices(BluetoothProfile.HEARING_AID); in getActiveDevices()
342 BluetoothAdapter.getDefaultAdapter().closeProfileProxy(BluetoothProfile.HEARING_AID, in finalize()
DHearingAidDeviceManager.java83 if (BluetoothUuid.HEARING_AID.equals(serviceUuid) in initHearingAidDeviceIfNeeded()
85 || BluetoothUuid.HEARING_AID.equals(serviceDataUuid) in initHearingAidDeviceIfNeeded()
272 if (device.isActiveDevice(BluetoothProfile.HEARING_AID) || device.isActiveDevice( in onActiveDeviceChanged()
DCachedBluetoothDeviceManager.java186 || profileId == BluetoothProfile.HEARING_AID in syncDeviceWithinHearingAidSetIfNeeded()
375 if (profileId == BluetoothProfile.HEARING_AID) { in onProfileConnectionStateChangedIfProcessed()
DCachedBluetoothDevice.java169 case BluetoothProfile.HEARING_AID:
351 case BluetoothProfile.HEARING_AID: in setProfileConnectedStatus()
811 case BluetoothProfile.HEARING_AID: in onActiveDeviceChanged()
856 case BluetoothProfile.HEARING_AID: in isActiveDevice()
971 } else if (ArrayUtils.contains(uuids, BluetoothUuid.HEARING_AID)) { in onUuidChanged()
DLocalBluetoothProfileManager.java188 if (mHearingAidProfile == null && supportedList.contains(BluetoothProfile.HEARING_AID)) { in updateLocalProfiles()
707 if (ArrayUtils.contains(uuids, BluetoothUuid.HEARING_AID) && mHearingAidProfile != null) { in updateProfiles()
DBluetoothEventManager.java515 bluetoothProfile = BluetoothProfile.HEARING_AID; in onReceive()
DBluetoothUtils.java698 || cachedDevice.isActiveDevice(BluetoothProfile.HEARING_AID) in isActiveMediaDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/spatial/domain/interactor/
DSpatialAudioComponentInteractor.kt216 BluetoothProfile.HEARING_AID -> { in <lambda>()
239 setOf(BluetoothProfile.A2DP, BluetoothProfile.LE_AUDIO, BluetoothProfile.HEARING_AID) in <lambda>()
/frameworks/base/media/java/android/media/
DBluetoothProfileConnectionInfo.java113 return new BluetoothProfileConnectionInfo(BluetoothProfile.HEARING_AID, suppressNoisyIntent, in createHearingAidInfo()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java241 BluetoothProfile.HEARING_AID, /* isConnected= */ true, /* isActive= */ true); in isBluetoothAudioActive_hearingAidIsActive_true()
243 mBluetoothControllerImpl.onActiveDeviceChanged(device, BluetoothProfile.HEARING_AID); in isBluetoothAudioActive_hearingAidIsActive_true()
328 BluetoothProfile.HEARING_AID, /* isConnected= */ true, /* isActive= */ false); in isBluetoothAudioProfileOnly_onlyHearingAidConnected_true()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java166 + " active[HEARING_AID]=" + device.isActiveDevice(BluetoothProfile.HEARING_AID) in getDeviceString()
296 || device.isActiveDevice(BluetoothProfile.HEARING_AID) in updateActive()
319 || profileId == BluetoothProfile.HEARING_AID in updateAudioProfile()
/frameworks/base/services/core/java/com/android/server/audio/
DBtHelper.java235 mBluetoothProfileServiceListener, BluetoothProfile.HEARING_AID); in onSystemReady()
596 case BluetoothProfile.HEARING_AID: in onBtProfileDisconnected()
667 case BluetoothProfile.HEARING_AID: in onBtProfileConnected()
714 case BluetoothProfile.HEARING_AID: { in onBtProfileConnected()
771 case BluetoothProfile.HEARING_AID: in isProfilePoxyConnected()
962 case BluetoothProfile.HEARING_AID:
982 case BluetoothProfile.HEARING_AID:
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DBluetoothMediaDeviceTest.java56 when(mDevice.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesCheckerTest.java107 when(mCachedDevice.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in isAnyActiveHearingDevice_hearingAidActiveAndConnected_returnTrue()
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/backup/
DSystemSettings.java68 Settings.System.HEARING_AID, in getSettingsToBackUp()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/spatial/domain/interactor/
DSpatialAudioComponentInteractorTest.kt79 whenever(profileId).thenReturn(BluetoothProfile.HEARING_AID) in <lambda>()
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/
DSystemSettingsValidators.java195 VALIDATORS.put(System.HEARING_AID, BOOLEAN_VALIDATOR); in VALIDATORS.put() argument

12