Home
last modified time | relevance | path

Searched refs:setScanMode (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivityTest.java128 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_NONE); in onCreate_requestDiscoverableIntent_bypassforSetup_startsDiscoverableScan()
141 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_NONE); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_noDialog()
153 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_NONE); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_receiverRegistered()
165 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_NONE); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_enableDiscovery()
183 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_NONE); in onCreate_requestDiscoverableIntent_bypassforGeneric_noScanModeChange()
299 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_NONE); in onPositiveClick_discoverableDialog_scanModeSet()
DBluetoothScanningDevicesGroupPreferenceControllerTest.java292 BluetoothAdapter.getDefaultAdapter().setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in discoverableScanModeTimeout_controllerStarted_resetsDiscoverableScanMode()
304 BluetoothAdapter.getDefaultAdapter().setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in discoverableScanModeTimeout_controllerStopped_doesNotResetDiscoverableScanMode()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DAlwaysDiscoverable.java59 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in start()
69 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in stop()
80 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in onReceive()
DBluetoothDiscoverableEnabler.java141 .setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, timeout); in setEnabled()
153 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in setEnabled()
DRequestPermissionActivity.java264 } else if (mBluetoothAdapter.setScanMode( in proceedAndFinish()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAlwaysDiscoverableTest.java73 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in stopWithoutStart()
78 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_NONE); in startSetsModeAndRegistersReceiver()
106 mBluetoothAdapter.setScanMode(newMode); in sendScanModeChangedIntent()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowLocalBluetoothAdapter.java56 protected void setScanMode(int mode) { in setScanMode() method in ShadowLocalBluetoothAdapter
61 protected boolean setScanMode(int mode, int duration) { in setScanMode() method in ShadowLocalBluetoothAdapter
DShadowBluetoothAdapter.java83 protected boolean setScanMode(int scanMode) { in setScanMode() method in ShadowBluetoothAdapter
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothScanningDevicesGroupPreferenceController.java179 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in stop()
189 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in setDiscoverable()
DBluetoothRequestPermissionActivity.java232 if (!mLocalBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, in setDiscoverable()
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DAtomTests.java108 .setScanMode(ScanSettings.SCAN_MODE_OPPORTUNISTIC).build(); in testBleScanOpportunistic()
115 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build(); in testBleScanUnoptimized()
122 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build(); in testBleScanResult()
131 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build(); in testBleScanInterrupted()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicePairer.java361 bluetoothAdapter.setScanMode( in start()
403 bluetoothAdapter.setScanMode(mDefaultScanMode); in dispose()
DBluetoothRequestPermissionActivity.java59 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, in onCreate()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java382 boolean setScanMode(int scanMode) { in setScanMode() method in AdapterProperties
1018 setScanMode(AbstractionLayer.BT_SCAN_MODE_CONNECTABLE); in onBluetoothReady()
1028 setScanMode(AbstractionLayer.BT_SCAN_MODE_NONE); in onBleDisable()
DAdapterService.java719 mAdapterProperties.setScanMode(AbstractionLayer.BT_SCAN_MODE_NONE); in stopProfileServices()
1428 public boolean setScanMode(int mode, int duration, AttributionSource attributionSource) { in setScanMode() method in AdapterService.AdapterServiceBinder
1437 return service.mAdapterProperties.setScanMode(convertScanModeToHal(mode)); in setScanMode()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DScanClient.java55 new ScanSettings.Builder().setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build();
DScanManager.java882 builder.setScanMode(ScanSettings.SCAN_MODE_OPPORTUNISTIC); in setOpportunisticScanClient()
1424 builder.setScanMode(backgroundScanMode); in handleImportanceChange()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/
DAnomalyActions.java61 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build(); in doUnoptimizedBleScan()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DBleScanReceiver.java139 mScanSettings = new ScanSettings.Builder().setScanMode( in firstAlarm()
DGattClientListener.java323 mScanSettings = new ScanSettings.Builder().setScanMode( in MyBleScanner()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DConcreteClientModeManager.java972 mWifiNative.setScanMode(mClientInterfaceName, true); in enter()
995 mWifiNative.setScanMode(mClientInterfaceName, false); in exit()
DWifiNative.java4071 public boolean setScanMode(String ifaceName, boolean enable) {
4072 return mWifiVendorHal.setScanMode(ifaceName, enable);
DWifiVendorHal.java3305 public boolean setScanMode(@NonNull String ifaceName, boolean enable) {
3311 WifiStatus status = iface.setScanMode(enable);
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DConcreteClientModeManagerTest.java278 verify(mWifiNative).setScanMode(TEST_INTERFACE_NAME, true); in startClientInScanOnlyModeAndVerifyEnabled()
386 verify(mWifiNative).setScanMode(TEST_INTERFACE_NAME, false); in switchFromScanOnlyModeToConnectMode()
DWifiVendorHalTest.java4096 when(mIWifiStaIfaceV15.setScanMode(anyBoolean())).thenReturn(mWifiStatusSuccess); in testSetScanMode()
4098 assertTrue(mWifiVendorHal.setScanMode(TEST_IFACE_NAME, true)); in testSetScanMode()
4099 verify(mIWifiStaIfaceV15).setScanMode(true); in testSetScanMode()
4101 assertTrue(mWifiVendorHal.setScanMode(TEST_IFACE_NAME, false)); in testSetScanMode()
4102 verify(mIWifiStaIfaceV15).setScanMode(false); in testSetScanMode()

12