Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManagerTest.java59 private HearingAidProfile mHearingAidProfile; field in HearingAidDeviceManagerTest
84 when(mLocalProfileManager.getHearingAidProfile()).thenReturn(mHearingAidProfile); in setUp()
98 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HISYNCID1); in initHearingAidDeviceIfNeeded_validHiSyncId_verifyHiSyncId()
111 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn( in initHearingAidDeviceIfNeeded_invalidHiSyncId_notToSetHiSyncId()
152 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HISYNCID1); in updateHearingAidsDevices_firstPairedDevicesConnected_verifySubDevice()
153 when(mHearingAidProfile.getHiSyncId(mDevice2)).thenReturn(HISYNCID1); in updateHearingAidsDevices_firstPairedDevicesConnected_verifySubDevice()
175 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HISYNCID1); in updateHearingAidsDevices_secondPairedDeviceConnected_verifySubDevice()
176 when(mHearingAidProfile.getHiSyncId(mDevice2)).thenReturn(HISYNCID1); in updateHearingAidsDevices_secondPairedDeviceConnected_verifySubDevice()
197 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HISYNCID1); in updateHearingAidsDevices_BothConnected_verifySubDevice()
198 when(mHearingAidProfile.getHiSyncId(mDevice2)).thenReturn(HISYNCID1); in updateHearingAidsDevices_BothConnected_verifySubDevice()
[all …]
DCachedBluetoothDeviceManagerTest.java74 private HearingAidProfile mHearingAidProfile; field in CachedBluetoothDeviceManagerTest
110 when(mHearingAidProfile.isProfileReady()).thenReturn(true); in setUp()
111 doAnswer((invocation) -> mHearingAidProfile). in setUp()
142 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validSubDevice()
143 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validSubDevice()
155 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validSubDevice()
156 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validSubDevice()
168 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
169 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
183 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
[all …]
DCachedBluetoothDeviceTest.java63 private HearingAidProfile mHearingAidProfile; field in CachedBluetoothDeviceTest
82 when(mHearingAidProfile.isProfileReady()).thenReturn(true); in setUp()
336 updateProfileStatus(mHearingAidProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceHearingAid()
346 onProfileStateChanged(mHearingAidProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceHearingAid()
355 updateProfileStatus(mHearingAidProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testHearingAidBatteryInactive_returnBattery()
369 updateProfileStatus(mHearingAidProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testHearingAidBatteryWithoutInCall_returnActiveBattery()
383 updateProfileStatus(mHearingAidProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testHearingAidInCall_returnActive()
398 updateProfileStatus(mHearingAidProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testHearingAidBatteryInCall_returnActiveBattery()
464 updateProfileStatus(mHearingAidProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfilesInactive_returnPairing()
476 updateProfileStatus(mHearingAidProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_trueWirelessActiveDeviceWithBattery_returnActiveWithBattery()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothProfileManager.java101 private HearingAidProfile mHearingAidProfile; field in LocalBluetoothProfileManager
178 if (mHearingAidProfile == null && supportedList.contains(BluetoothProfile.HEARING_AID)) { in updateLocalProfiles()
180 mHearingAidProfile = new HearingAidProfile(mContext, mDeviceManager, in updateLocalProfiles()
182 addProfile(mHearingAidProfile, HearingAidProfile.NAME, in updateLocalProfiles()
436 return mHearingAidProfile; in getHearingAidProfile()
552 if (ArrayUtils.contains(uuids, BluetoothUuid.HEARING_AID) && mHearingAidProfile != null) { in updateProfiles()
553 profiles.add(mHearingAidProfile); in updateProfiles()
554 removedProfiles.remove(mHearingAidProfile); in updateProfiles()