/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManager.java | 49 final List<CachedBluetoothDevice> mCachedDevices = new ArrayList<CachedBluetoothDevice>(); 66 public synchronized Collection<CachedBluetoothDevice> getCachedDevicesCopy() { in getCachedDevicesCopy() 70 public static boolean onDeviceDisappeared(CachedBluetoothDevice cachedDevice) { in onDeviceDisappeared() 76 CachedBluetoothDevice cachedDevice = findDevice(device); in onDeviceNameUpdated() 92 public synchronized CachedBluetoothDevice findDevice(BluetoothDevice device) { in findDevice() 93 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in findDevice() 98 final Set<CachedBluetoothDevice> memberDevices = cachedDevice.getMemberDevice(); in findDevice() 100 for (CachedBluetoothDevice memberDevice : memberDevices) { in findDevice() 107 CachedBluetoothDevice subDevice = cachedDevice.getSubDevice(); in findDevice() 122 public CachedBluetoothDevice addDevice(BluetoothDevice device) { in addDevice() [all …]
|
D | CsipDeviceManager.java | 46 private final List<CachedBluetoothDevice> mCachedDevices; 49 List<CachedBluetoothDevice> cachedDevices) { in CsipDeviceManager() 54 void initCsipDeviceIfNeeded(CachedBluetoothDevice newDevice) { in initCsipDeviceIfNeeded() 84 boolean setMemberDeviceIfNeeded(CachedBluetoothDevice newDevice) { in setMemberDeviceIfNeeded() 87 final CachedBluetoothDevice mainDevice = getCachedDevice(groupId); in setMemberDeviceIfNeeded() 112 public CachedBluetoothDevice getCachedDevice(int groupId) { in getCachedDevice() 115 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in getCachedDevice() 128 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in updateCsipDevices() 162 boolean onProfileConnectionStateChangedIfProcessed(CachedBluetoothDevice cachedDevice, in onProfileConnectionStateChangedIfProcessed() 182 List<CachedBluetoothDevice> groupDevicesList = getGroupDevicesFromAllOfDevicesList(groupId); in updateRelationshipOfGroupDevices() [all …]
|
D | HearingAidDeviceManager.java | 50 private final List<CachedBluetoothDevice> mCachedDevices; 53 List<CachedBluetoothDevice> CachedDevices) { in HearingAidDeviceManager() 63 List<CachedBluetoothDevice> cachedDevices, HearingAidAudioRoutingHelper routingHelper) { in HearingAidDeviceManager() 71 void initHearingAidDeviceIfNeeded(CachedBluetoothDevice newDevice, in initHearingAidDeviceIfNeeded() 94 boolean setSubDeviceIfNeeded(CachedBluetoothDevice newDevice) { in setSubDeviceIfNeeded() 97 final CachedBluetoothDevice hearingAidDevice = getCachedDevice(hiSyncId); in setSubDeviceIfNeeded() 118 private CachedBluetoothDevice getCachedDevice(long hiSyncId) { in getCachedDevice() 120 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in getCachedDevice() 131 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in updateHearingAidsDevices() 155 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in onHiSyncIdChanged() [all …]
|
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()
|
D | BluetoothEventManager.java | 197 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in readPairedDevices() 207 void dispatchDeviceAdded(@NonNull CachedBluetoothDevice cachedDevice) { in dispatchDeviceAdded() 213 void dispatchDeviceRemoved(@NonNull CachedBluetoothDevice cachedDevice) { in dispatchDeviceRemoved() 220 @NonNull CachedBluetoothDevice device, int state, int bluetoothProfile) { in dispatchProfileConnectionStateChanged() 242 private void dispatchConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in dispatchConnectionStateChanged() 249 for (CachedBluetoothDevice cachedDevice : mDeviceManager.getCachedDevicesCopy()) { in dispatchAudioModeChanged() 259 @Nullable CachedBluetoothDevice activeDevice, int bluetoothProfile) { in dispatchActiveDeviceChanged() 260 CachedBluetoothDevice targetDevice = activeDevice; in dispatchActiveDeviceChanged() 261 for (CachedBluetoothDevice cachedDevice : mDeviceManager.getCachedDevicesCopy()) { in dispatchActiveDeviceChanged() 263 CachedBluetoothDevice subDevice = cachedDevice.getSubDevice(); in dispatchActiveDeviceChanged() [all …]
|
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()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManagerTest.java | 91 private CachedBluetoothDevice mCachedDevice1; 92 private CachedBluetoothDevice mCachedDevice2; 93 private CachedBluetoothDevice mCachedDevice3; 138 mCachedDevice1 = spy(new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice1)); in setUp() 139 mCachedDevice2 = spy(new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice2)); in setUp() 140 mCachedDevice3 = spy(new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice3)); in setUp() 148 CachedBluetoothDevice cachedDevice1 = mCachedDeviceManager.addDevice(mDevice1); in addDevice_validCachedDevices_devicesAdded() 150 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_validCachedDevices_devicesAdded() 153 Collection<CachedBluetoothDevice> devices = mCachedDeviceManager.getCachedDevicesCopy(); in addDevice_validCachedDevices_devicesAdded() 168 CachedBluetoothDevice cachedDevice1 = mCachedDeviceManager.addDevice(mDevice1); in addDevice_sameHiSyncId_validSubDevice() [all …]
|
D | CsipDeviceManagerTest.java | 79 private CachedBluetoothDevice mCachedDevice1; 80 private CachedBluetoothDevice mCachedDevice2; 81 private CachedBluetoothDevice mCachedDevice3; 85 private List<CachedBluetoothDevice> mCachedDevices = new ArrayList<CachedBluetoothDevice>(); 134 mCachedDevice1 = spy(new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice1)); in setUp() 135 mCachedDevice2 = spy(new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice2)); in setUp() 136 mCachedDevice3 = spy(new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice3)); in setUp() 189 List<CachedBluetoothDevice> expectedList = new ArrayList<>(); in getGroupDevicesFromAllOfDevicesList_validGroupId_returnGroupDevices() 199 CachedBluetoothDevice expectedDevice = mCachedDevice1; in getPreferredMainDevice_dualModeDevice_returnDualModeDevice() 212 CachedBluetoothDevice expectedDevice = mCachedDevice2; in getPreferredMainDevice_noConnectedDualModeDevice_returnLeadDevice() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImplTest.java | 40 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 76 private List<CachedBluetoothDevice> mDevices; 114 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testNoConnectionWithDevices() 140 CachedBluetoothDevice device1Disconnected = mock(CachedBluetoothDevice.class); in getConnectedDevices_onlyReturnsConnected() 144 CachedBluetoothDevice device2Connected = mock(CachedBluetoothDevice.class); in getConnectedDevices_onlyReturnsConnected() 186 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection() 206 CachedBluetoothDevice device = createBluetoothDevice( in testOnActiveDeviceChanged_updatesAudioActive() 220 CachedBluetoothDevice device = createBluetoothDevice( in isBluetoothAudioActive_headsetIsActive_true() 230 CachedBluetoothDevice device = createBluetoothDevice( in isBluetoothAudioActive_a2dpIsActive_true() 240 CachedBluetoothDevice device = createBluetoothDevice( in isBluetoothAudioActive_hearingAidIsActive_true() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/ |
D | DeviceItemFactory.kt | 23 import com.android.settingslib.bluetooth.CachedBluetoothDevice 44 cachedDevice: CachedBluetoothDevice, in isFilterMatched() 48 abstract fun create(context: Context, cachedDevice: CachedBluetoothDevice): DeviceItem in isFilterMatched() 54 cachedDevice: CachedBluetoothDevice, in isFilterMatched() 82 cachedDevice: CachedBluetoothDevice, in isFilterMatched() 89 override fun create(context: Context, cachedDevice: CachedBluetoothDevice): DeviceItem { in create() 107 cachedDevice: CachedBluetoothDevice, in isFilterMatched() 114 override fun create(context: Context, cachedDevice: CachedBluetoothDevice): DeviceItem { in create() 131 cachedDevice: CachedBluetoothDevice, in isFilterMatched() 142 cachedDevice: CachedBluetoothDevice, in isFilterMatched() [all …]
|
D | DeviceItem.kt | 36 import com.android.settingslib.bluetooth.CachedBluetoothDevice 48 val cachedBluetoothDevice: CachedBluetoothDevice,
|
D | BluetoothTileDialogRepository.kt | 20 import com.android.settingslib.bluetooth.CachedBluetoothDevice 33 internal val cachedDevices: Collection<CachedBluetoothDevice>
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/bluetooth/ |
D | BluetoothRepositoryImplTest.kt | 19 import com.android.settingslib.bluetooth.CachedBluetoothDevice in <lambda>() 91 mock<CachedBluetoothDevice>().also { in <lambda>() 95 mock<CachedBluetoothDevice>().also { in <lambda>() 108 mock<CachedBluetoothDevice>().also { in <lambda>() 122 mock<CachedBluetoothDevice>().also { in <lambda>() 127 mock<CachedBluetoothDevice>().also { in <lambda>() 143 mock<CachedBluetoothDevice>().also { in <lambda>() 148 mock<CachedBluetoothDevice>().also { in <lambda>() 169 mock<CachedBluetoothDevice>().also { whenever(it.isConnected).thenReturn(false) } in <lambda>() 179 mock<CachedBluetoothDevice>().also { whenever(it.isConnected).thenReturn(true) } in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImpl.java | 34 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 65 CachedBluetoothDevice.Callback, LocalBluetoothProfileManager.ServiceListener { 75 private final List<CachedBluetoothDevice> mConnectedDevices = new ArrayList<>(); 141 for (CachedBluetoothDevice device : getDevices()) { in dump() 160 private String getDeviceString(CachedBluetoothDevice device) { in getDeviceString() 170 private String getDeviceProfilesString(CachedBluetoothDevice device) { in getDeviceProfilesString() 179 public List<CachedBluetoothDevice> getConnectedDevices() { in getConnectedDevices() 180 List<CachedBluetoothDevice> out; in getConnectedDevices() 245 CachedBluetoothDevice connectedDevice = null; in getConnectedDeviceName() 264 private Collection<CachedBluetoothDevice> getDevices() { in getDevices() [all …]
|
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/bluetooth/ |
D | BluetoothRepository.kt | 19 import com.android.settingslib.bluetooth.CachedBluetoothDevice 45 currentDevices: Collection<CachedBluetoothDevice>, in fetchConnectionStatusInBackground() 60 currentDevices: Collection<CachedBluetoothDevice>, in fetchConnectionStatusInBackground() 70 currentDevices: Collection<CachedBluetoothDevice>, in fetchConnectionStatusInBackground() 104 val connectedDevices: List<CachedBluetoothDevice>,
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/ |
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/ |
D | KeyboardUI.java | 47 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 258 CachedBluetoothDevice device = getPairedKeyboard(); in processKeyboardState() 314 private CachedBluetoothDevice getPairedKeyboard() { in getPairedKeyboard() 324 private CachedBluetoothDevice getDiscoveredKeyboard() { in getDiscoveredKeyboard() 325 Collection<CachedBluetoothDevice> devices = mCachedDeviceManager.getCachedDevicesCopy(); in getDiscoveredKeyboard() 326 for (CachedBluetoothDevice d : devices) { in getDiscoveredKeyboard() 335 private CachedBluetoothDevice getCachedBluetoothDevice(BluetoothDevice d) { in getCachedBluetoothDevice() 336 CachedBluetoothDevice cachedDevice = mCachedDeviceManager.findDevice(d); in getCachedBluetoothDevice() 383 private void onDeviceAddedInternal(CachedBluetoothDevice d) { in onDeviceAddedInternal() 399 private void onDeviceBondStateChangedInternal(CachedBluetoothDevice d, int bondState) { in onDeviceBondStateChangedInternal() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | LocalMediaManagerTest.java | 44 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 199 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in connectDevice_bluetoothDeviceNotConnected_connectBluetoothDevice() 395 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in onDeviceAttributesChanged_failingTransferring_shouldResetState() 460 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in onDeviceListAdded_haveMutingExpectedDevice_addMutingExpectedDevice() 494 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in onDeviceListAdded_transferToDisconnectedBluetooth_verifyConnectDevice() 560 final CachedBluetoothDevice cachedDevice1 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice() 561 final CachedBluetoothDevice cachedDevice2 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice() 588 final CachedBluetoothDevice cachedDevice1 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice() 589 final CachedBluetoothDevice cachedDevice2 = mock(CachedBluetoothDevice.class); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | BluetoothMediaDevice.java | 33 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 42 private final CachedBluetoothDevice mCachedDevice; 47 @NonNull CachedBluetoothDevice device, in BluetoothMediaDevice() 108 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice()
|
D | LocalMediaManager.java | 41 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 186 final CachedBluetoothDevice cachedDevice = in connectDevice() 484 private boolean isActiveDevice(CachedBluetoothDevice device) { in isActiveDevice() 570 final CachedBluetoothDevice cachedDevice = in getMutingExpectedDevice() 579 private boolean isMutingExpectedDevice(CachedBluetoothDevice cachedDevice) { in isMutingExpectedDevice() 598 final List<CachedBluetoothDevice> cachedBluetoothDeviceList = new ArrayList<>(); in buildDisconnectedBluetoothDevice() 601 final CachedBluetoothDevice cachedDevice = in buildDisconnectedBluetoothDevice() 618 for (CachedBluetoothDevice cachedDevice : cachedBluetoothDeviceList) { in buildDisconnectedBluetoothDevice() 629 private boolean isBondedMediaDevice(CachedBluetoothDevice cachedDevice) { in isBondedMediaDevice() 636 private boolean isMediaDevice(CachedBluetoothDevice device) { in isMediaDevice() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/ |
D | DeviceItemInteractorTest.kt | 26 import com.android.settingslib.bluetooth.CachedBluetoothDevice in <lambda>() 54 @Mock private lateinit var cachedDevice1: CachedBluetoothDevice in <lambda>() 56 @Mock private lateinit var cachedDevice2: CachedBluetoothDevice in <lambda>() 217 isFilterMatchFunc: (CachedBluetoothDevice) -> Boolean, in <lambda>() 223 cachedDevice: CachedBluetoothDevice, in <lambda>() 227 override fun create(context: Context, cachedDevice: CachedBluetoothDevice) = deviceItem in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | BluetoothTileTest.kt | 14 import com.android.settingslib.bluetooth.CachedBluetoothDevice 154 val cachedDevice = mock<CachedBluetoothDevice>() in testSecondaryLabel_whenBatteryMetadataAvailable_isMetadataBatteryLevelState() 174 val cachedDevice = mock<CachedBluetoothDevice>() in testSecondaryLabel_whenBatteryMetadataUnavailable_isBluetoothBatteryLevelState() 176 val cachedDevice2 = mock<CachedBluetoothDevice>() in testSecondaryLabel_whenBatteryMetadataUnavailable_isBluetoothBatteryLevelState() 234 val cachedDevice = mock<CachedBluetoothDevice>() in testMetadataListener_whenDisconnected_isUnregistered() 247 val cachedDevice = mock<CachedBluetoothDevice>() in testMetadataListener_whenTileNotListening_isUnregistered() 317 fun addConnectedDevice(device: CachedBluetoothDevice) { in addConnectedDevice() 323 cachedDevice: CachedBluetoothDevice, in listenToDeviceMetadata()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/domain/model/ |
D | AudioOutputDevice.kt | 20 import com.android.settingslib.bluetooth.CachedBluetoothDevice 44 val cachedBluetoothDevice: CachedBluetoothDevice,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/ |
D | HearingDevicesPresetsController.java | 29 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 49 private CachedBluetoothDevice mActiveHearingDevice; 184 public void setActiveHearingDevice(CachedBluetoothDevice activeHearingDevice) { in setActiveHearingDevice() 261 final CachedBluetoothDevice subDevice = mActiveHearingDevice.getSubDevice(); in selectPresetIndependently() 268 for (final CachedBluetoothDevice memberDevice : in selectPresetIndependently()
|