Home
last modified time | relevance | path

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

123

/packages/apps/Settings/src/com/android/settings/bluetooth/
DAlwaysDiscoverable.java60 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in start()
70 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in stop()
81 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in onReceive()
DBluetoothDiscoverableEnabler.java142 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in setEnabled()
154 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in setEnabled()
/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()
107 mBluetoothAdapter.setScanMode(newMode); in sendScanModeChangedIntent()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothScanningDevicesGroupPreferenceControllerTest.java263 verify(mBluetoothAdapter).setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in refreshUi_noDeviceBonding_setsScanModeConnectableDiscoverable()
275 .setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in refreshUi_notValidCallingPackage_doesNotSetScanMode()
308 verify(mBluetoothAdapter).setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in refreshUi_deviceBonding_setsScanModeConnectable()
349 verify(mBluetoothAdapter).setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in onStop_setsScanModeConnectable()
360 verify(mBluetoothAdapter).setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in discoverableScanModeTimeout_controllerStarted_resetsDiscoverableScanMode()
374 .setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in discoverableScanModeTimeout_controllerStopped_doesNotResetDiscoverableScanMode()
DBluetoothRequestPermissionActivityTest.java99 when(mMockLocalBluetoothAdapter.setScanMode( in setUp()
159 verify(mMockLocalBluetoothAdapter).setScanMode( in onCreate_requestDiscoverableIntent_bypassforSetup_startsDiscoverableScan()
196 verify(mMockLocalBluetoothAdapter).setScanMode( in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_enableDiscovery()
208 verify(mMockLocalBluetoothAdapter, never()).setScanMode( in onCreate_requestDiscoverableIntent_bypassforGeneric_noScanModeChange()
311 verify(mMockLocalBluetoothAdapter).setScanMode( in onPositiveClick_discoverableDialog_scanModeSet()
/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.java88 protected Object setScanMode(int scanMode) { in setScanMode() method in ShadowBluetoothAdapter
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/
DLeScanningTest.java129 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in startBleScan_withCallbackTypeFirstMatchSilentlyFails()
151 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in startBleScan_withCallbackTypeMatchLostSilentlyFails()
177 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in startBleScan_withPendingIntentAndDynamicReceiverAndCallbackTypeAllMatches()
227 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in startBleScan_withPendingIntentAndStaticReceiverAndCallbackTypeAllMatches()
262 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in startBleScan_oneTooManyScansFails()
349 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in startScanning()
DDckScanTest.kt82 .setScanMode(ScanSettings.SCAN_MODE_AMBIENT_DISCOVERY) in scanForIrkAndIdentityAddress_remoteFound()
106 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in scanForUuid_remoteFound()
DDckGattTest.kt233 .setScanMode(ScanSettings.SCAN_MODE_AMBIENT_DISCOVERY) in testGattConnect_fromIrkScan()
283 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in testGattConnect_fromUuidScan()
/packages/modules/Connectivity/nearby/tests/unit/src/android/nearby/
DScanRequestTest.java81 SCAN_TYPE_FAST_PAIR).setScanMode(invalidScanMode); in testScanModeBuilder_invalidScanType()
116 .setScanMode(SCAN_MODE_BALANCED) in testToString()
145 .setScanMode(SCAN_MODE_BALANCED) in testParceling()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/
DScanClient.java50 new ScanSettings.Builder().setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build();
112 builder.setScanMode(newScanMode) in updateScanMode()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothScanningDevicesGroupPreferenceController.java224 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in stop()
234 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in setDiscoverable()
/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DScanRequest.java82 .setScanMode(in.readInt())
316 public Builder setScanMode(@ScanMode int scanMode) { in setScanMode() method in ScanRequest.Builder
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiStaIface.java351 public boolean setScanMode(boolean enable) { in setScanMode() method in WifiStaIface
353 () -> mWifiStaIface.setScanMode(enable)); in setScanMode()
DIWifiStaIface.java194 boolean setScanMode(boolean enable); in setScanMode() method
/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/
DBluetoothRequestPermissionActivity.java78 mBluetoothAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in proceedAndFinish()
DBluetoothDevicePairer.java381 bluetoothAdapter.setScanMode( in start()
422 bluetoothAdapter.setScanMode(mDefaultScanMode); in dispose()
/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/modules/Connectivity/nearby/service/java/com/android/server/nearby/managers/
DMergedDiscoveryRequest.java123 public Builder setScanMode(@ScanRequest.ScanMode int scanMode) { in setScanMode() method in MergedDiscoveryRequest.Builder
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DCustomUuidEirFragment.java326 mAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in setAdvertisingState()
332 mAdapter.setScanMode(mScanModeNotDiscoverable); in setAdvertisingState()
/packages/modules/Connectivity/nearby/tests/integration/privileged/src/android/nearby/integration/privileged/
DNearbyManagerTest.kt57 .setScanMode(ScanRequest.SCAN_MODE_LOW_LATENCY) in testNearbyManagerStartScanStopScan_fromPrivilegedApp_succeed()
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/metrics/
DNearbyMetricsTest.java61 .setScanMode(SCAN_MODE_BALANCED)
/packages/modules/Connectivity/nearby/tests/integration/untrusted/src/android/nearby/integration/untrusted/
DNearbyManagerTest.kt63 .setScanMode(ScanRequest.SCAN_MODE_LOW_LATENCY) in testNearbyManagerStartScan_fromUnTrustedApp_throwsException()

123