Home
last modified time | relevance | path

Searched refs:mHearingAidProfile (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManagerTest.java105 private HearingAidProfile mHearingAidProfile; field in HearingAidDeviceManagerTest
141 when(mLocalProfileManager.getHearingAidProfile()).thenReturn(mHearingAidProfile); in setUp()
171 when(mCachedDevice1.getProfiles()).thenReturn(List.of(mHearingAidProfile)); in initHearingAidDeviceIfNeeded_asha_validHiSyncId_setHearingAidInfo()
172 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HISYNCID1); in initHearingAidDeviceIfNeeded_asha_validHiSyncId_setHearingAidInfo()
173 when(mHearingAidProfile.getDeviceMode(mDevice1)).thenReturn(MODE_BINAURAL); in initHearingAidDeviceIfNeeded_asha_validHiSyncId_setHearingAidInfo()
174 when(mHearingAidProfile.getDeviceSide(mDevice1)).thenReturn(SIDE_RIGHT); in initHearingAidDeviceIfNeeded_asha_validHiSyncId_setHearingAidInfo()
196 when(mCachedDevice1.getProfiles()).thenReturn(List.of(mHearingAidProfile)); in initHearingAidDeviceIfNeeded_asha_invalidHiSyncId_notToSetHearingAidInfo()
197 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HI_SYNC_ID_INVALID); in initHearingAidDeviceIfNeeded_asha_invalidHiSyncId_notToSetHearingAidInfo()
216 when(mCachedDevice1.getProfiles()).thenReturn(List.of(mHearingAidProfile)); in initHearingAidDeviceIfNeeded_asha_scanFilterNotNull_setEmptyHearingAidInfo()
217 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HI_SYNC_ID_INVALID); in initHearingAidDeviceIfNeeded_asha_scanFilterNotNull_setEmptyHearingAidInfo()
[all …]
DCachedBluetoothDeviceTest.java95 private HearingAidProfile mHearingAidProfile; field in CachedBluetoothDeviceTest
145 when(mHearingAidProfile.isProfileReady()).thenReturn(true); in setUp()
146 when(mHearingAidProfile.getProfileId()).thenReturn(BluetoothProfile.HEARING_AID); in setUp()
185 testTransitionFromConnectingToDisconnected(mHearingAidProfile, mLeAudioProfile, in onProfileStateChanged_testConnectingToDisconnected_policyAllowed_problem()
197 testTransitionFromConnectingToDisconnected(mHearingAidProfile, mLeAudioProfile, in onProfileStateChanged_testConnectingToDisconnected_policyForbidden_noProblem()
209 testTransitionFromConnectingToDisconnected(mHearingAidProfile, mLeAudioProfile, in onProfileStateChanged_testConnectingToDisconnected_policyUnknown_noProblem()
694 updateProfileStatus(mHearingAidProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceHearingAid()
705 onProfileStateChanged(mHearingAidProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceHearingAid()
713 updateProfileStatus(mHearingAidProfile, BluetoothProfile.STATE_CONNECTED); in getTvConnectionSummary_testSingleProfileActiveDeviceHearingAid()
724 mCachedDevice.onProfileStateChanged(mHearingAidProfile, in getTvConnectionSummary_testSingleProfileActiveDeviceHearingAid()
[all …]
DCachedBluetoothDeviceManagerTest.java82 private HearingAidProfile mHearingAidProfile; field in CachedBluetoothDeviceManagerTest
130 when(mHearingAidProfile.isProfileReady()).thenReturn(true); in setUp()
133 doAnswer((invocation) -> mHearingAidProfile). in setUp()
166 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validSubDevice()
167 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validSubDevice()
179 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validSubDevice()
180 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validSubDevice()
192 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
193 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
207 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
[all …]
DBluetoothEventManagerTest.java86 private HearingAidProfile mHearingAidProfile; field in BluetoothEventManagerTest
124 when(mHearingAidProfile.isProfileReady()).thenReturn(true); in setUp()
541 mCachedDevice2.onProfileStateChanged(mHearingAidProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
606 mCachedDevice1.onProfileStateChanged(mHearingAidProfile, in dispatchActiveDeviceChanged_activeFromSubDevice_mainCachedDeviceActive()
/frameworks/base/services/core/java/com/android/server/media/
DBluetoothProfileMonitor.java46 private BluetoothHearingAid mHearingAidProfile; field in BluetoothProfileMonitor
74 bluetoothProfile = mHearingAidProfile; in isProfileSupported()
98 return mHearingAidProfile == null in getGroupId()
99 ? GROUP_ID_NO_GROUP : mHearingAidProfile.getHiSyncId(device); in getGroupId()
116 mHearingAidProfile = (BluetoothHearingAid) proxy; in onServiceConnected()
133 mHearingAidProfile = null; in onServiceDisconnected()
DLegacyBluetoothRouteController.java81 private BluetoothHearingAid mHearingAidProfile; field in LegacyBluetoothRouteController
299 if (mHearingAidProfile != null in createBluetoothRoute()
300 && mHearingAidProfile.getConnectedDevices().contains(device)) { in createBluetoothRoute()
303 routeId = HEARING_AID_ROUTE_ID_PREFIX + mHearingAidProfile.getHiSyncId(device); in createBluetoothRoute()
440 mHearingAidProfile = (BluetoothHearingAid) proxy; in onServiceConnected()
471 mHearingAidProfile = null; in onServiceDisconnected()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothProfileManager.java107 private HearingAidProfile mHearingAidProfile; field in LocalBluetoothProfileManager
188 if (mHearingAidProfile == null && supportedList.contains(BluetoothProfile.HEARING_AID)) { in updateLocalProfiles()
190 mHearingAidProfile = new HearingAidProfile(mContext, mDeviceManager, in updateLocalProfiles()
192 addProfile(mHearingAidProfile, HearingAidProfile.NAME, in updateLocalProfiles()
555 return mHearingAidProfile; in getHearingAidProfile()
707 if (ArrayUtils.contains(uuids, BluetoothUuid.HEARING_AID) && mHearingAidProfile != null) { in updateProfiles()
708 profiles.add(mHearingAidProfile); in updateProfiles()
709 removedProfiles.remove(mHearingAidProfile); in updateProfiles()