Home
last modified time | relevance | path

Searched refs:HearingAidInfo (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidInfo.java29 public class HearingAidInfo { class
67 private HearingAidInfo(int side, int mode, long hiSyncId) { in HearingAidInfo() method in HearingAidInfo
92 if (!(o instanceof HearingAidInfo)) { in equals()
95 HearingAidInfo that = (HearingAidInfo) o; in equals()
200 public HearingAidInfo build() { in build()
201 return new HearingAidInfo(mSide, mMode, mHiSyncId); in build()
DHearingAidDeviceManager.java73 HearingAidInfo info = generateHearingAidInfo(newDevice); in initHearingAidDeviceIfNeeded()
87 newDevice.setHearingAidInfo(new HearingAidInfo.Builder().build()); in initHearingAidDeviceIfNeeded()
136 HearingAidInfo info = generateHearingAidInfo(cachedDevice); in updateHearingAidsDevices()
393 private HearingAidInfo generateHearingAidInfo(CachedBluetoothDevice cachedDevice) { in generateHearingAidInfo()
402 final HearingAidInfo info = new HearingAidInfo.Builder() in generateHearingAidInfo()
424 final HearingAidInfo info = new HearingAidInfo.Builder() in generateHearingAidInfo()
DCachedBluetoothDevice.java106 private HearingAidInfo mHearingAidInfo;
416 public void setHearingAidInfo(HearingAidInfo hearingAidInfo) { in setHearingAidInfo()
421 public HearingAidInfo getHearingAidInfo() { in getHearingAidInfo()
434 ? mHearingAidInfo.getSide() : HearingAidInfo.DeviceSide.SIDE_INVALID; in getDeviceSide()
439 ? mHearingAidInfo.getMode() : HearingAidInfo.DeviceMode.MODE_INVALID; in getDeviceMode()
1564 HearingAidInfo.DeviceSide.SIDE_LEFT).isPresent(); in getHearingDeviceSummaryRes()
1566 HearingAidInfo.DeviceSide.SIDE_RIGHT).isPresent(); in getHearingDeviceSummaryRes()
1615 @HearingAidInfo.DeviceSide int side) { in getConnectedHearingAidSide()
1619 || device.getDeviceSide() == HearingAidInfo.DeviceSide.SIDE_LEFT_AND_RIGHT) in getConnectedHearingAidSide()
1636 leftBattery = getConnectedHearingAidSide(HearingAidInfo.DeviceSide.SIDE_LEFT) in getLeftBatteryLevel()
[all …]
DLocalBluetoothProfileManager.java358 final HearingAidInfo.Builder infoBuilder = new HearingAidInfo.Builder() in onReceiveInternal()
380 final HearingAidInfo.Builder infoBuilder = new HearingAidInfo.Builder() in onReceiveInternal()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManagerTest.java180 assertThat(mCachedDevice1.getDeviceSide()).isEqualTo(HearingAidInfo.DeviceSide.SIDE_RIGHT); in initHearingAidDeviceIfNeeded_asha_validHiSyncId_setHearingAidInfo()
182 HearingAidInfo.DeviceMode.MODE_BINAURAL); in initHearingAidDeviceIfNeeded_asha_validHiSyncId_setHearingAidInfo()
201 verify(mCachedDevice1, never()).setHearingAidInfo(any(HearingAidInfo.class)); in initHearingAidDeviceIfNeeded_asha_invalidHiSyncId_notToSetHearingAidInfo()
223 verify(mCachedDevice1).setHearingAidInfo(new HearingAidInfo.Builder().build()); in initHearingAidDeviceIfNeeded_asha_scanFilterNotNull_setEmptyHearingAidInfo()
244 verify(mCachedDevice1, never()).setHearingAidInfo(any(HearingAidInfo.class)); in initHearingAidDeviceIfNeeded_asha_randomScanFilter_notToSetHearingAidInfo()
264 verify(mCachedDevice1).setHearingAidInfo(any(HearingAidInfo.class)); in initHearingAidDeviceIfNeeded_leAudio_validInfo_setHearingAidInfo()
265 assertThat(mCachedDevice1.getDeviceSide()).isEqualTo(HearingAidInfo.DeviceSide.SIDE_LEFT); in initHearingAidDeviceIfNeeded_leAudio_validInfo_setHearingAidInfo()
267 HearingAidInfo.DeviceMode.MODE_BINAURAL); in initHearingAidDeviceIfNeeded_leAudio_validInfo_setHearingAidInfo()
287 verify(mCachedDevice1, never()).setHearingAidInfo(any(HearingAidInfo.class)); in initHearingAidDeviceIfNeeded_leAudio_invalidInfo_notToSetHearingAidInfo()
474 HearingAidInfo.DeviceMode.MODE_BINAURAL); in updateHearingAidsDevices_asha_validHiSyncId_setHearingAidInfo()
[all …]
DCachedBluetoothDeviceTest.java1809 assertThat(mCachedDevice.getDeviceSide()).isEqualTo(HearingAidInfo.DeviceSide.SIDE_RIGHT); in switchSubDeviceContent()
1814 assertThat(mSubCachedDevice.getDeviceSide()).isEqualTo(HearingAidInfo.DeviceSide.SIDE_LEFT); in switchSubDeviceContent()
1910 assertThat(mCachedDevice.getDeviceSide()).isEqualTo(HearingAidInfo.DeviceSide.SIDE_RIGHT); in switchMemberDeviceContent_switchMainDevice_switchesSuccessful()
1915 assertThat(mSubCachedDevice.getDeviceSide()).isEqualTo(HearingAidInfo.DeviceSide.SIDE_LEFT); in switchMemberDeviceContent_switchMainDevice_switchesSuccessful()
2087 private HearingAidInfo getLeftAshaHearingAidInfo() { in getLeftAshaHearingAidInfo()
2088 return new HearingAidInfo.Builder() in getLeftAshaHearingAidInfo()
2093 private HearingAidInfo getRightAshaHearingAidInfo() { in getRightAshaHearingAidInfo()
2094 return new HearingAidInfo.Builder() in getRightAshaHearingAidInfo()
2099 private HearingAidInfo getLeftLeAudioHearingAidInfo() { in getLeftLeAudioHearingAidInfo()
2100 return new HearingAidInfo.Builder() in getLeftLeAudioHearingAidInfo()
DCachedBluetoothDeviceManagerTest.java333 new HearingAidInfo.Builder().setHiSyncId(HISYNCID1).build()); in onDeviceUnpaired_unpairHearingAidMainDevice()
335 new HearingAidInfo.Builder().setHiSyncId(HISYNCID1).build()); in onDeviceUnpaired_unpairHearingAidMainDevice()
619 new HearingAidInfo.Builder().setHiSyncId(HISYNCID1).build()); in onActiveDeviceChanged_validHiSyncId_callExpectedFunction()
/frameworks/proto_logging/stats/
Datoms.proto23433 // Mode definition for hearing aids. See {@link HearingAidInfo}
23443 // Side definition for hearing aids. See {@link HearingAidInfo}.