Searched refs:mHapClientProfile (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/ |
D | HearingDevicesPresetsController.java | 46 private final HapClientProfile mHapClientProfile; field in HearingDevicesPresetsController 55 mHapClientProfile = mProfileManager.getHapClientProfile(); in HearingDevicesPresetsController() 61 if (mHapClientProfile != null && mHapClientProfile.isProfileReady()) { in onServiceConnected() 119 if (hapGroupId == mHapClientProfile.getHapGroup(mActiveHearingDevice.getDevice())) { in onPresetSelectionForGroupFailed() 143 if (hapGroupId == mHapClientProfile.getHapGroup(mActiveHearingDevice.getDevice())) { in onSetPresetNameForGroupFailed() 154 if (mHapClientProfile != null) { in registerHapCallback() 156 mHapClientProfile.registerCallback(ThreadUtils.getBackgroundExecutor(), this); in registerHapCallback() 169 if (mHapClientProfile != null) { in unregisterHapCallback() 171 mHapClientProfile.unregisterCallback(this); in unregisterHapCallback() 199 boolean supportSynchronizedPresets = mHapClientProfile.supportsSynchronizedPresets( in selectPreset() [all …]
|
D | HearingDevicesDialogDelegate.java | 106 private final HapClientProfile mHapClientProfile; field in HearingDevicesDialogDelegate 176 mHapClientProfile = mProfileManager.getHapClientProfile(); in HearingDevicesDialogDelegate() 287 if (mHapClientProfile != null && !mHapClientProfile.isProfileReady()) { in onStart()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | HearingAidDeviceManagerTest.java | 109 private HapClientProfile mHapClientProfile; field in HearingAidDeviceManagerTest 143 when(mLocalProfileManager.getHapClientProfile()).thenReturn(mHapClientProfile); in setUp() 258 when(mCachedDevice1.getProfiles()).thenReturn(List.of(mLeAudioProfile, mHapClientProfile)); in initHearingAidDeviceIfNeeded_leAudio_validInfo_setHearingAidInfo() 260 when(mHapClientProfile.getHearingAidType(mDevice1)).thenReturn(TYPE_BINAURAL); in initHearingAidDeviceIfNeeded_leAudio_validInfo_setHearingAidInfo() 281 when(mCachedDevice1.getProfiles()).thenReturn(List.of(mLeAudioProfile, mHapClientProfile)); in initHearingAidDeviceIfNeeded_leAudio_invalidInfo_notToSetHearingAidInfo() 283 when(mHapClientProfile.getHearingAidType(mDevice1)).thenReturn(TYPE_INVALID); in initHearingAidDeviceIfNeeded_leAudio_invalidInfo_notToSetHearingAidInfo() 491 when(mCachedDevice1.getProfiles()).thenReturn(List.of(mLeAudioProfile, mHapClientProfile)); in updateHearingAidsDevices_leAudio_validInfo_setHearingAidInfo() 493 when(mHapClientProfile.getHearingAidType(mDevice1)).thenReturn(TYPE_BINAURAL); in updateHearingAidsDevices_leAudio_validInfo_setHearingAidInfo() 515 when(mCachedDevice1.getProfiles()).thenReturn(List.of(mLeAudioProfile, mHapClientProfile)); in updateHearingAidsDevices_leAudio_invalidInfo_notToSetHearingAidInfo() 517 when(mHapClientProfile.getHearingAidType(mDevice1)).thenReturn(TYPE_INVALID); in updateHearingAidsDevices_leAudio_invalidInfo_notToSetHearingAidInfo() [all …]
|
D | CachedBluetoothDeviceTest.java | 97 private HapClientProfile mHapClientProfile; field in CachedBluetoothDeviceTest 936 when(mProfileManager.getHapClientProfile()).thenReturn(mHapClientProfile); in getConnectionSummary_testActiveDeviceLeAudioHearingAid() 937 updateProfileStatus(mHapClientProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testActiveDeviceLeAudioHearingAid() 956 when(mProfileManager.getHapClientProfile()).thenReturn(mHapClientProfile); in getTvConnectionSummary_testActiveDeviceLeAudioHearingAid() 957 updateProfileStatus(mHapClientProfile, BluetoothProfile.STATE_CONNECTED); in getTvConnectionSummary_testActiveDeviceLeAudioHearingAid() 1931 when(mProfileManager.getHapClientProfile()).thenReturn(mHapClientProfile); in isConnectedHearingAidDevice_isConnectedLeAudioHearingAidDevice_returnTrue() 1934 updateProfileStatus(mHapClientProfile, BluetoothProfile.STATE_CONNECTED); in isConnectedHearingAidDevice_isConnectedLeAudioHearingAidDevice_returnTrue() 1943 when(mProfileManager.getHapClientProfile()).thenReturn(mHapClientProfile); in isConnectedHearingAidDevice_isNotAnyConnectedHearingAidDevice_returnFalse() 1947 updateProfileStatus(mHapClientProfile, BluetoothProfile.STATE_DISCONNECTED); in isConnectedHearingAidDevice_isNotAnyConnectedHearingAidDevice_returnFalse()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothProfileManager.java | 108 private HapClientProfile mHapClientProfile; field in LocalBluetoothProfileManager 195 if (mHapClientProfile == null && supportedList.contains(BluetoothProfile.HAP_CLIENT)) { in updateLocalProfiles() 197 mHapClientProfile = new HapClientProfile(mContext, mDeviceManager, this); in updateLocalProfiles() 198 addProfile(mHapClientProfile, HapClientProfile.NAME, in updateLocalProfiles() 559 return mHapClientProfile; in getHapClientProfile() 712 if (mHapClientProfile != null && ArrayUtils.contains(uuids, BluetoothUuid.HAS)) { in updateProfiles() 713 profiles.add(mHapClientProfile); in updateProfiles() 714 removedProfiles.remove(mHapClientProfile); in updateProfiles()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/ |
D | HearingDevicesDialogDelegateTest.java | 111 private HapClientProfile mHapClientProfile; field in HearingDevicesDialogDelegateTest 138 when(mProfileManager.getHapClientProfile()).thenReturn(mHapClientProfile); in setUp()
|