Home
last modified time | relevance | path

Searched refs:mConnectedDevices (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceController.java66 final BluetoothDevice btDevice = mConnectedDevices.get(connectedDeviceIndex); in onPreferenceChange()
75 if (mConnectedDevices != null) { in getConnectedDeviceIndex()
76 for (int i = 0, size = mConnectedDevices.size(); i < size; i++) { in getConnectedDeviceIndex()
77 final BluetoothDevice btDevice = mConnectedDevices.get(i); in getConnectedDeviceIndex()
103 mConnectedDevices.clear(); in updateState()
104 mConnectedDevices.addAll(getConnectedHfpDevices()); in updateState()
105 mConnectedDevices.addAll(getConnectedHearingAidDevices()); in updateState()
106 mConnectedDevices.addAll(getConnectedLeAudioDevices()); in updateState()
108 final int numDevices = mConnectedDevices.size(); in updateState()
133 return mConnectedDevices.size(); in getDefaultDeviceIndex()
[all …]
DAudioSwitchPreferenceController.java75 protected final List<BluetoothDevice> mConnectedDevices; field in AudioSwitchPreferenceController
101 mConnectedDevices = new ArrayList<>(); in AudioSwitchPreferenceController()
308 if (btDevice != null && mConnectedDevices.contains(btDevice)) { in findActiveHearingAidDevice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java427 assertThat(mController.mConnectedDevices.contains(mLeftBluetoothHapDevice)).isTrue(); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName()
428 assertThat(mController.mConnectedDevices.contains(mRightBluetoothHapDevice)).isFalse(); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName()
459 assertThat(mController.mConnectedDevices.contains(mRightBluetoothHapDevice)).isTrue(); in updateState_hapBtDeviceWithSameIdButDifferentOrder_shouldSetActivatedDeviceName()
460 assertThat(mController.mConnectedDevices.contains(mLeftBluetoothHapDevice)).isFalse(); in updateState_hapBtDeviceWithSameIdButDifferentOrder_shouldSetActivatedDeviceName()
491 assertThat(mController.mConnectedDevices).containsExactly(mBluetoothDevice, in updateState_hapBtDeviceWithDifferentId_shouldSetActivatedDeviceName()
535 mController.mConnectedDevices.clear(); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()
536 mController.mConnectedDevices.add(mBluetoothDevice); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()
537 mController.mConnectedDevices.add(mLeftBluetoothHapDevice); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()
538 mController.mConnectedDevices.add(btLeDevice); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()
586 mController.mConnectedDevices.clear(); in onPreferenceChange_toBtDevice_shouldSetBtDeviceName()
[all …]
DAudioOutputSwitchPreferenceControllerTest.java327 mController.mConnectedDevices.clear(); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()
328 mController.mConnectedDevices.add(mBluetoothDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()
329 mController.mConnectedDevices.add(mLeftBluetoothHapDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()
345 mController.mConnectedDevices.clear(); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
346 mController.mConnectedDevices.add(mBluetoothDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
347 mController.mConnectedDevices.add(mRightBluetoothHapDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
363 mController.mConnectedDevices.clear(); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
364 mController.mConnectedDevices.add(mBluetoothDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
365 mController.mConnectedDevices.add(mRightBluetoothHapDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
381 mController.mConnectedDevices.clear(); in findActiveHearingAidDevice_noActiveDevice_returnNull()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAudioRoutingManager.java242 private final ArrayMap<BluetoothDevice, AudioRoutingDevice> mConnectedDevices = field in AudioRoutingManager.AudioRoutingHandler
291 mConnectedDevices.remove(device); in handleProfileDisconnected()
384 .or(() -> getFallbackDevice(mConnectedDevices.values())); in setFallbackDeviceActive()
413 AudioRoutingDevice routingDevice = mConnectedDevices.get(device); in getAudioRoutingDevice()
445 mConnectedDevices.put(device, routingDevice); in getAudioRoutingDevice()
747 mConnectedDevices.clear(); in resetState()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pSettings.java91 @VisibleForTesting int mConnectedDevices; field in WifiP2pSettings
477 if (mConnectedDevices > 1) { in onCreateDialog()
479 deviceName, mConnectedDevices - 1); in onCreateDialog()
567 mConnectedDevices = 0; in handlePeersChanged()
572 if (peer.status == WifiP2pDevice.CONNECTED) mConnectedDevices++; in handlePeersChanged()
574 if (DBG) Log.d(TAG, " mConnectedDevices " + mConnectedDevices); in handlePeersChanged()
/packages/modules/StatsD/statsd/tools/localtools/test/com/android/statsd/shelltools/testdrive/
DTestDriveTest.java77 public List<String> mConnectedDevices; field in TestDriveTest
179 boolean result = mTestDrive.processArgs(mConfiguration, mArgs, mConnectedDevices, in testProcessArgs()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesControllerTest.java123 private Set<BluetoothDevice> mConnectedDevices = new HashSet<>(); field in BluetoothDetailsProfilesControllerTest.FakeBluetoothProfile
150 if (mConnectedDevices.contains(device)) { in getConnectionStatus()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
DWifiP2pSettingsTest.java195 assertThat(mFragment.mConnectedDevices).isEqualTo(0); in withEmptyP2pDeviceList_getP2pPeerChangeIntent_connectedDevicesShouldBeZero()