Home
last modified time | relevance | path

Searched refs:mConnectedDevices (Results 1 – 8 of 8) 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()
107 final int numDevices = mConnectedDevices.size(); in updateState()
132 return mConnectedDevices.size(); in getDefaultDeviceIndex()
144 for (int i = 0, size = mConnectedDevices.size(); i < size; i++) { in setupPreferenceEntries()
[all …]
DAudioSwitchPreferenceController.java68 protected final List<BluetoothDevice> mConnectedDevices; field in AudioSwitchPreferenceController
92 mConnectedDevices = new ArrayList<>(); in AudioSwitchPreferenceController()
252 if (btDevice != null && mConnectedDevices.contains(btDevice)) { in findActiveHearingAidDevice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DAudioOutputSwitchPreferenceControllerTest.java256 mController.mConnectedDevices.clear(); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()
257 mController.mConnectedDevices.add(mBluetoothDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()
258 mController.mConnectedDevices.add(mLeftBluetoothHapDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()
274 mController.mConnectedDevices.clear(); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
275 mController.mConnectedDevices.add(mBluetoothDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
276 mController.mConnectedDevices.add(mRightBluetoothHapDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
292 mController.mConnectedDevices.clear(); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
293 mController.mConnectedDevices.add(mBluetoothDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
294 mController.mConnectedDevices.add(mRightBluetoothHapDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
310 mController.mConnectedDevices.clear(); in findActiveHearingAidDevice_noActiveDevice_returnNull()
[all …]
DHandsFreeProfileOutputPreferenceControllerTest.java405 assertThat(mController.mConnectedDevices.contains(mLeftBluetoothHapDevice)).isTrue(); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName()
406 assertThat(mController.mConnectedDevices.contains(mRightBluetoothHapDevice)).isFalse(); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName()
438 assertThat(mController.mConnectedDevices.contains(mRightBluetoothHapDevice)).isTrue(); in updateState_hapBtDeviceWithSameIdButDifferentOrder_shouldSetActivatedDeviceName()
439 assertThat(mController.mConnectedDevices.contains(mLeftBluetoothHapDevice)).isFalse(); in updateState_hapBtDeviceWithSameIdButDifferentOrder_shouldSetActivatedDeviceName()
471 assertThat(mController.mConnectedDevices).containsExactly(mBluetoothDevice, in updateState_hapBtDeviceWithDifferentId_shouldSetActivatedDeviceName()
498 mController.mConnectedDevices.clear(); in onPreferenceChange_toBtDevice_shouldSetBtDeviceName()
499 mController.mConnectedDevices.add(mBluetoothDevice); in onPreferenceChange_toBtDevice_shouldSetBtDeviceName()
518 mController.mConnectedDevices.clear(); in onPreferenceChange_toBtDevices_shouldSetSecondBtDeviceName()
519 mController.mConnectedDevices.add(mBluetoothDevice); in onPreferenceChange_toBtDevices_shouldSetSecondBtDeviceName()
520 mController.mConnectedDevices.add(secondBluetoothDevice); in onPreferenceChange_toBtDevices_shouldSetSecondBtDeviceName()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pSettings.java90 @VisibleForTesting int mConnectedDevices; field in WifiP2pSettings
484 if (mConnectedDevices > 1) { in onCreateDialog()
486 deviceName, mConnectedDevices - 1); in onCreateDialog()
574 mConnectedDevices = 0; in handlePeersChanged()
579 if (peer.status == WifiP2pDevice.CONNECTED) mConnectedDevices++; in handlePeersChanged()
581 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.java94 private Set<BluetoothDevice> mConnectedDevices = new HashSet<>(); field in BluetoothDetailsProfilesControllerTest.FakeBluetoothProfile
121 if (mConnectedDevices.contains(device)) { in getConnectionStatus()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
DWifiP2pSettingsTest.java169 assertThat(mFragment.mConnectedDevices).isEqualTo(0); in withEmptyP2pDeviceList_getP2pPeerChangeIntent_connectedDevicesShouldBeZero()