/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | CachedBluetoothDeviceManager.java | 49 final List<CachedBluetoothDevice> mCachedDevices = new ArrayList<CachedBluetoothDevice>(); 76 CachedBluetoothDevice cachedDevice = findDevice(device); in onDeviceNameUpdated() 93 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in findDevice() 134 CachedBluetoothDevice newDevice; in addDevice() 171 CachedBluetoothDevice subDevice = device.getSubDevice(); in getSubDeviceSummary() 231 CachedBluetoothDevice firstDevice = in getName() 238 CachedBluetoothDevice cachedDevice = findDevice(device); in getName() 269 CachedBluetoothDevice memberDevice = (CachedBluetoothDevice) it; in clearNonBondedSubDevices() 383 CachedBluetoothDevice subDevice = device.getSubDevice(); in onDeviceUnpaired() 486 CachedBluetoothDevice memberDevice = findDevice(device); in syncConfigFromMainDevice() [all …]
|
H A D | CsipDeviceManager.java | 46 private final List<CachedBluetoothDevice> mCachedDevices; 49 List<CachedBluetoothDevice> cachedDevices) { in CsipDeviceManager() 54 void initCsipDeviceIfNeeded(CachedBluetoothDevice newDevice) { in initCsipDeviceIfNeeded() 112 public CachedBluetoothDevice getCachedDevice(int groupId) { in getCachedDevice() 183 CachedBluetoothDevice preferredMainDevice = in updateRelationshipOfGroupDevices() 191 CachedBluetoothDevice findMainDevice(CachedBluetoothDevice device) { in findMainDevice() 234 for (CachedBluetoothDevice item : mCachedDevices) { in getGroupDevicesFromAllOfDevicesList() 249 CachedBluetoothDevice firstMember = members.get(0); in getFirstMemberDevice() 256 CachedBluetoothDevice getPreferredMainDevice(int groupId, in getPreferredMainDevice() 257 List<CachedBluetoothDevice> groupDevicesList) { in getPreferredMainDevice() [all …]
|
H A D | HearingAidDeviceManager.java | 46 private final List<CachedBluetoothDevice> mCachedDevices; 49 List<CachedBluetoothDevice> CachedDevices) { in HearingAidDeviceManager() 65 void initHearingAidDeviceIfNeeded(CachedBluetoothDevice newDevice, in initHearingAidDeviceIfNeeded() 125 boolean setSubDeviceIfNeeded(CachedBluetoothDevice newDevice) { in setSubDeviceIfNeeded() 144 private CachedBluetoothDevice getCachedDevice(long hiSyncId) { in getCachedDevice() 157 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in updateHearingAidsDevices() 204 CachedBluetoothDevice subDevice; in onHiSyncIdChanged() 205 CachedBluetoothDevice mainDevice; in onHiSyncIdChanged() 287 void onActiveDeviceChanged(CachedBluetoothDevice device) { in onActiveDeviceChanged() 363 CachedBluetoothDevice findMainDevice(CachedBluetoothDevice device) { in findMainDevice() [all …]
|
H A D | BluetoothCallback.java | 73 default void onDeviceAdded(@NonNull CachedBluetoothDevice cachedDevice) {} in onDeviceAdded() 80 default void onDeviceDeleted(@NonNull CachedBluetoothDevice cachedDevice) {} in onDeviceDeleted() 93 @NonNull CachedBluetoothDevice cachedDevice, int bondState) {} in onDeviceBondStateChanged() 110 @Nullable CachedBluetoothDevice cachedDevice, in onConnectionStateChanged() 124 @Nullable CachedBluetoothDevice activeDevice, int bluetoothProfile) {} in onActiveDeviceChanged() 148 @NonNull CachedBluetoothDevice cachedDevice, in onProfileConnectionStateChanged() 164 @NonNull CachedBluetoothDevice cachedDevice, int state) {} in onAclConnectionStateChanged()
|
H A D | BluetoothEventManager.java | 187 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in readPairedDevices() 197 void dispatchDeviceAdded(@NonNull CachedBluetoothDevice cachedDevice) { in dispatchDeviceAdded() 203 void dispatchDeviceRemoved(@NonNull CachedBluetoothDevice cachedDevice) { in dispatchDeviceRemoved() 233 @Nullable CachedBluetoothDevice activeDevice, in dispatchActiveDeviceChanged() 236 Set<CachedBluetoothDevice> memberSet = cachedDevice.getMemberDevice(); in dispatchActiveDeviceChanged() 239 for (CachedBluetoothDevice memberCachedDevice : memberSet) { in dispatchActiveDeviceChanged() 325 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive() 345 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive() 373 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive() 444 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive() [all …]
|
H A D | HearingAidAudioRoutingHelper.java | 111 public AudioDeviceAttributes getMatchedHearingDeviceAttributes(CachedBluetoothDevice device) { in getMatchedHearingDeviceAttributes() 129 private boolean matchAddress(CachedBluetoothDevice device, AudioDeviceInfo audioDevice) { in matchAddress() 131 final CachedBluetoothDevice subDevice = device.getSubDevice(); in matchAddress() 132 final Set<CachedBluetoothDevice> memberDevices = device.getMemberDevice(); in matchAddress()
|
H A D | CachedBluetoothDevice.java | 65 public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { class 125 private CachedBluetoothDevice mSubDevice; 127 private Set<CachedBluetoothDevice> mMemberDevices = new HashSet<CachedBluetoothDevice>(); 589 for (CachedBluetoothDevice cbd : mMemberDevices) { in setName() 986 if ((o == null) || !(o instanceof CachedBluetoothDevice)) { in equals() 989 return mDevice.equals(((CachedBluetoothDevice) o).mDevice); in equals() 1000 public int compareTo(CachedBluetoothDevice another) { in compareTo() 1483 public CachedBluetoothDevice getSubDevice() { in getSubDevice() 1487 public void setSubDevice(CachedBluetoothDevice subDevice) { in setSubDevice() 1515 public Set<CachedBluetoothDevice> getMemberDevice() { in getMemberDevice() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | BluetoothControllerImplTest.java | 119 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testNoConnectionWithDevices_repoFlagOff() 135 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testNoConnectionWithDevices_repoFlagOn() 177 CachedBluetoothDevice device1Disconnected = mock(CachedBluetoothDevice.class); in getConnectedDevices_onlyReturnsConnected_repoFlagOff() 181 CachedBluetoothDevice device2Connected = mock(CachedBluetoothDevice.class); in getConnectedDevices_onlyReturnsConnected_repoFlagOff() 197 CachedBluetoothDevice device1Disconnected = mock(CachedBluetoothDevice.class); in getConnectedDevices_onlyReturnsConnected_repoFlagOn() 201 CachedBluetoothDevice device2Connected = mock(CachedBluetoothDevice.class); in getConnectedDevices_onlyReturnsConnected_repoFlagOn() 245 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection_repoFlagOff() 267 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection_repoFlagOn() 443 CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in testAddOnMetadataChangedListener_registersListenerOnAdapter() 457 CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in testRemoveOnMetadataChangedListener_removesListenerFromAdapter() [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
H A D | CachedBluetoothDeviceManagerTest.java | 91 private CachedBluetoothDevice mCachedDevice1; 92 private CachedBluetoothDevice mCachedDevice2; 93 private CachedBluetoothDevice mCachedDevice3; 148 CachedBluetoothDevice cachedDevice1 = mCachedDeviceManager.addDevice(mDevice1); in addDevice_validCachedDevices_devicesAdded() 150 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_validCachedDevices_devicesAdded() 168 CachedBluetoothDevice cachedDevice1 = mCachedDeviceManager.addDevice(mDevice1); in addDevice_sameHiSyncId_validSubDevice() 169 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_sameHiSyncId_validSubDevice() 181 CachedBluetoothDevice cachedDevice1 = mCachedDeviceManager.addDevice(mDevice1); in addDevice_differentHiSyncId_validSubDevice() 182 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_differentHiSyncId_validSubDevice() 194 CachedBluetoothDevice cachedDevice1 = mCachedDeviceManager.addDevice(mDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded() [all …]
|
H A D | CsipDeviceManagerTest.java | 79 private CachedBluetoothDevice mCachedDevice1; 80 private CachedBluetoothDevice mCachedDevice2; 81 private CachedBluetoothDevice mCachedDevice3; 85 private List<CachedBluetoothDevice> mCachedDevices = new ArrayList<CachedBluetoothDevice>(); 195 CachedBluetoothDevice expectedDevice = mCachedDevice1; in getPreferredMainDevice_dualModeDevice_returnDualModeDevice() 207 CachedBluetoothDevice expectedDevice = mCachedDevice2; in getPreferredMainDevice_noConnectedDualModeDevice_returnLeadDevice() 219 CachedBluetoothDevice expectedDevice = mCachedDevice2; in getPreferredMainDevice_noConnectedDualModeDeviceNoLeadDevice_returnConnectedOne() 231 CachedBluetoothDevice expectedDevice = mCachedDevice1; in getPreferredMainDevice_noConnectedDevice_returnDualModeDevice() 256 CachedBluetoothDevice preferredDevice = null; in addMemberDevicesIntoMainDevice_noPreferredDevice_returnFalseAndNoChangeList() 258 for (CachedBluetoothDevice item : mCachedDevices) { in addMemberDevicesIntoMainDevice_noPreferredDevice_returnFalseAndNoChangeList() [all …]
|
H A D | HearingAidAudioRoutingHelperTest.java | 69 private CachedBluetoothDevice mCachedBluetoothDevice; 71 private CachedBluetoothDevice mSubCachedBluetoothDevice; 154 final Set<CachedBluetoothDevice> memberDevices = new HashSet<CachedBluetoothDevice>(); in getMatchedHearingDeviceAttributes_memberHearingDevice_equalAddress()
|
H A D | BluetoothEventManagerTest.java | 64 private CachedBluetoothDevice mCachedBluetoothDevice; 89 private CachedBluetoothDevice mCachedDevice1; 90 private CachedBluetoothDevice mCachedDevice2; 91 private CachedBluetoothDevice mCachedDevice3; 105 mCachedDevice1 = new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice1); in setUp() 106 mCachedDevice2 = new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice2); in setUp() 107 mCachedDevice3 = new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice3); in setUp() 242 final List<CachedBluetoothDevice> cachedDevices = new ArrayList<>(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged() 305 final List<CachedBluetoothDevice> cachedDevices = new ArrayList<>(); in dispatchActiveDeviceChanged_connectedMemberDevices_activeDeviceChanged() 345 final List<CachedBluetoothDevice> cachedDevices = new ArrayList<>(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/bluetooth/ |
H A D | BluetoothRepositoryImplTest.kt | 19 import com.android.settingslib.bluetooth.CachedBluetoothDevice 91 mock<CachedBluetoothDevice>().also { 95 mock<CachedBluetoothDevice>().also { 108 mock<CachedBluetoothDevice>().also { 122 mock<CachedBluetoothDevice>().also { 127 mock<CachedBluetoothDevice>().also { 143 mock<CachedBluetoothDevice>().also { 148 mock<CachedBluetoothDevice>().also { 179 mock<CachedBluetoothDevice>().also { whenever(it.isConnected).thenReturn(true) } 189 mock<CachedBluetoothDevice>().also { whenever(it.isConnected).thenReturn(true) } [all …]
|
H A D | FakeBluetoothRepository.kt | 17 import com.android.settingslib.bluetooth.CachedBluetoothDevice 42 currentDevices: Collection<CachedBluetoothDevice>,
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BluetoothControllerImpl.java | 33 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 139 for (CachedBluetoothDevice device : getDevices()) { in dump() 178 List<CachedBluetoothDevice> out; in getConnectedDevices() 248 private Collection<CachedBluetoothDevice> getDevices() { in getDevices() 270 for (CachedBluetoothDevice device : getDevices()) { in updateConnectedOld() 305 for (CachedBluetoothDevice device : getDevices()) { in updateActive() 322 for (CachedBluetoothDevice device : getDevices()) { in updateAudioProfile() 387 @Nullable CachedBluetoothDevice cachedDevice, in onConnectionStateChanged() 397 @NonNull CachedBluetoothDevice cachedDevice, in onProfileConnectionStateChanged() 424 @NonNull CachedBluetoothDevice cachedDevice, in addOnMetadataChangedListener() [all …]
|
H A D | BluetoothController.java | 21 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 43 List<CachedBluetoothDevice> getConnectedDevices(); in getConnectedDevices() 45 void addOnMetadataChangedListener(CachedBluetoothDevice device, Executor executor, in addOnMetadataChangedListener() 47 void removeOnMetadataChangedListener(CachedBluetoothDevice device, in removeOnMetadataChangedListener()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/bluetooth/ |
H A D | BluetoothRepository.kt | 19 import com.android.settingslib.bluetooth.CachedBluetoothDevice 44 currentDevices: Collection<CachedBluetoothDevice>, 59 currentDevices: Collection<CachedBluetoothDevice>, 69 currentDevices: Collection<CachedBluetoothDevice>, 103 val connectedDevices: List<CachedBluetoothDevice>,
|
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/ |
H A D | FakeBluetoothController.java | 20 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 86 public List<CachedBluetoothDevice> getConnectedDevices() { in getConnectedDevices() 91 public void addOnMetadataChangedListener(CachedBluetoothDevice device, Executor executor, in addOnMetadataChangedListener() 97 public void removeOnMetadataChangedListener(CachedBluetoothDevice device, in removeOnMetadataChangedListener()
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
H A D | BluetoothMediaDevice.java | 31 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 40 private CachedBluetoothDevice mCachedDevice; 43 BluetoothMediaDevice(Context context, CachedBluetoothDevice device, in BluetoothMediaDevice() 48 BluetoothMediaDevice(Context context, CachedBluetoothDevice device, in BluetoothMediaDevice() 97 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice()
|
H A D | LocalMediaManager.java | 41 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 170 final CachedBluetoothDevice cachedDevice = in connectDevice() 481 private boolean isActiveDevice(CachedBluetoothDevice device) { in isActiveDevice() 558 final CachedBluetoothDevice cachedDevice = in getMutingExpectedDevice() 569 private boolean isMutingExpectedDevice(CachedBluetoothDevice cachedDevice) { in isMutingExpectedDevice() 588 final List<CachedBluetoothDevice> cachedBluetoothDeviceList = new ArrayList<>(); in buildDisconnectedBluetoothDevice() 591 final CachedBluetoothDevice cachedDevice = in buildDisconnectedBluetoothDevice() 608 for (CachedBluetoothDevice cachedDevice : cachedBluetoothDeviceList) { in buildDisconnectedBluetoothDevice() 620 private boolean isBondedMediaDevice(CachedBluetoothDevice cachedDevice) { in isBondedMediaDevice() 627 private boolean isMediaDevice(CachedBluetoothDevice device) { in isMediaDevice() [all …]
|
H A D | MediaDeviceUtils.java | 22 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 34 public static String getId(CachedBluetoothDevice cachedDevice) { in getId()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/ |
H A D | KeyboardUI.java | 47 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 252 CachedBluetoothDevice device = getPairedKeyboard(); in processKeyboardState() 308 private CachedBluetoothDevice getPairedKeyboard() { in getPairedKeyboard() 318 private CachedBluetoothDevice getDiscoveredKeyboard() { in getDiscoveredKeyboard() 320 for (CachedBluetoothDevice d : devices) { in getDiscoveredKeyboard() 329 private CachedBluetoothDevice getCachedBluetoothDevice(BluetoothDevice d) { in getCachedBluetoothDevice() 330 CachedBluetoothDevice cachedDevice = mCachedDeviceManager.findDevice(d); in getCachedBluetoothDevice() 377 private void onDeviceAddedInternal(CachedBluetoothDevice d) { in onDeviceAddedInternal() 500 CachedBluetoothDevice d = (CachedBluetoothDevice)msg.obj; in handleMessage() 507 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice(d); in handleMessage() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
H A D | BluetoothTileTest.kt | 13 import com.android.settingslib.bluetooth.CachedBluetoothDevice 145 val cachedDevice = mock<CachedBluetoothDevice>() 165 val cachedDevice = mock<CachedBluetoothDevice>() 167 val cachedDevice2 = mock<CachedBluetoothDevice>() 190 val cachedDevice = mock<CachedBluetoothDevice>() 203 val cachedDevice = mock<CachedBluetoothDevice>() 269 fun addConnectedDevice(device: CachedBluetoothDevice) { 275 cachedDevice: CachedBluetoothDevice,
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
H A D | LocalMediaManagerTest.java | 42 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 185 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in connectDevice_bluetoothDeviceNotConnected_connectBluetoothDevice() 387 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in onDeviceAttributesChanged_failingTransferring_shouldResetState() 456 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in onDeviceListAdded_haveMutingExpectedDevice_addMutingExpectedDevice() 491 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in onDeviceListAdded_transferToDisconnectedBluetooth_verifyConnectDevice() 561 final CachedBluetoothDevice cachedDevice1 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice() 562 final CachedBluetoothDevice cachedDevice2 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice() 589 final CachedBluetoothDevice cachedDevice1 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice() 590 final CachedBluetoothDevice cachedDevice2 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | BluetoothTile.java | 41 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 71 private CachedBluetoothDevice mMetadataRegisteredDevice = null; 211 List<CachedBluetoothDevice> connectedDevices = mController.getConnectedDevices(); in getSecondaryLabel() 220 CachedBluetoothDevice device = connectedDevices.get(0); in getSecondaryLabel() 269 private int getMetadataBatteryLevel(CachedBluetoothDevice device) { in getMetadataBatteryLevel() 274 private void listenToMetadata(CachedBluetoothDevice cachedDevice) { in listenToMetadata()
|