Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManagerTest.java174 when(mHearingAidProfile.getDeviceSide(mDevice1)).thenReturn(SIDE_RIGHT); in initHearingAidDeviceIfNeeded_asha_validHiSyncId_setHearingAidInfo()
180 assertThat(mCachedDevice1.getDeviceSide()).isEqualTo(HearingAidInfo.DeviceSide.SIDE_RIGHT); in initHearingAidDeviceIfNeeded_asha_validHiSyncId_setHearingAidInfo()
265 assertThat(mCachedDevice1.getDeviceSide()).isEqualTo(HearingAidInfo.DeviceSide.SIDE_LEFT); in initHearingAidDeviceIfNeeded_leAudio_validInfo_setHearingAidInfo()
467 when(mHearingAidProfile.getDeviceSide(mDevice1)).thenReturn(SIDE_RIGHT); in updateHearingAidsDevices_asha_validHiSyncId_setHearingAidInfo()
475 assertThat(mCachedDevice1.getDeviceSide()).isEqualTo( in updateHearingAidsDevices_asha_validHiSyncId_setHearingAidInfo()
499 assertThat(mCachedDevice1.getDeviceSide()).isEqualTo(HearingAidInfo.DeviceSide.SIDE_LEFT); in updateHearingAidsDevices_leAudio_validInfo_setHearingAidInfo()
645 assertThat(mCachedDevice1.getDeviceSide()).isEqualTo(HearingAidInfo.DeviceSide.SIDE_RIGHT); in onProfileConnectionStateChanged_disconnected_mainDevice_subDeviceConnected_switch()
646 assertThat(mCachedDevice2.getDeviceSide()).isEqualTo(HearingAidInfo.DeviceSide.SIDE_LEFT); in onProfileConnectionStateChanged_disconnected_mainDevice_subDeviceConnected_switch()
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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidProfile.java281 public int getDeviceSide(@NonNull BluetoothDevice device) { in getDeviceSide() method in HearingAidProfile
288 return mService.getDeviceSide(device); in getDeviceSide()
DHearingAidStatsLogUtils.java112 final int deviceSide = device.getDeviceSide(); in logHearingAidInfo()
DHearingAidDeviceManager.java403 .setAshaDeviceSide(asha.getDeviceSide(cachedDevice.getDevice())) in generateHearingAidInfo()
DCachedBluetoothDevice.java432 public int getDeviceSide() { in getDeviceSide() method in CachedBluetoothDevice
1618 .filter(device -> device.getDeviceSide() == side in getConnectedHearingAidSide()
1619 || device.getDeviceSide() == HearingAidInfo.DeviceSide.SIDE_LEFT_AND_RIGHT) in getConnectedHearingAidSide()
DLocalBluetoothProfileManager.java359 .setAshaDeviceSide(getHearingAidProfile().getDeviceSide(device)) in onReceiveInternal()