/packages/modules/Connectivity/nearby/framework/java/android/nearby/ |
D | ScanRequest.java | 106 private ScanRequest(@ScanType int scanType, @ScanMode int scanMode, boolean bleEnabled, in ScanRequest() argument 109 mScanMode = scanMode; in ScanRequest() 122 public static String scanModeToString(@ScanMode int scanMode) { in scanModeToString() argument 123 switch (scanMode) { in scanModeToString() 148 public static boolean isValidScanMode(@ScanMode int scanMode) { in isValidScanMode() argument 149 return scanMode == SCAN_MODE_LOW_LATENCY in isValidScanMode() 150 || scanMode == SCAN_MODE_BALANCED in isValidScanMode() 151 || scanMode == SCAN_MODE_LOW_POWER in isValidScanMode() 152 || scanMode == SCAN_MODE_NO_POWER; in isValidScanMode() 316 public Builder setScanMode(@ScanMode int scanMode) { in setScanMode() argument [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/ |
D | AppScanStats.java | 97 public int scanMode; field in AppScanStats.LastScan 102 int scanMode, int scanCallbackType) { in LastScan() argument 113 this.scanMode = scanMode; in LastScan() 225 scan.isOpportunisticScan = scan.scanMode == ScanSettings.SCAN_MODE_OPPORTUNISTIC; in recordScanStart() 231 switch (scan.scanMode) { in recordScanStart() 312 switch (scan.scanMode) { in recordScanStop() 348 static boolean recordScanRadioStart(int scanMode) { in recordScanRadioStart() argument 354 sRadioScanMode = scanMode; in recordScanRadioStart() 406 private static int getScanWeight(int scanMode) { in getScanWeight() argument 407 switch (scanMode) { in getScanWeight() [all …]
|
D | ScanNativeInterface.java | 69 private native void gattClientStartBatchScanNative(int clientIf, int scanMode, in gattClientStartBatchScanNative() argument 159 public void gattClientStartBatchScan(int clientIf, int scanMode, in gattClientStartBatchScan() argument 161 gattClientStartBatchScanNative(clientIf, scanMode, scanIntervalUnit, scanWindowUnit, in gattClientStartBatchScan()
|
D | ScanManager.java | 910 public int scanMode; field in ScanManager.BatchScanParams 915 scanMode = -1; in BatchScanParams() 929 return scanMode == other.scanMode && fullScanscannerId == other.fullScanscannerId in equals() 1206 Utils.millsToUnit(getBatchScanIntervalMillis(batchScanParams.scanMode)); in resetBatchScan() 1208 Utils.millsToUnit(getBatchScanWindowMillis(batchScanParams.scanMode)); in resetBatchScan() 1237 params.scanMode = winner.settings.getScanMode(); in getBatchScanParams() 1254 private int getBatchScanWindowMillis(int scanMode) { in getBatchScanWindowMillis() argument 1256 switch (scanMode) { in getBatchScanWindowMillis() 1272 private int getBatchScanIntervalMillis(int scanMode) { in getBatchScanIntervalMillis() argument 1274 switch (scanMode) { in getBatchScanIntervalMillis()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/ |
D | ScanSettings.java | 243 private ScanSettings(int scanMode, int callbackType, int scanResultType, in ScanSettings() argument 246 mScanMode = scanMode; in ScanSettings() 317 public Builder setScanMode(int scanMode) { in setScanMode() argument 318 switch (scanMode) { in setScanMode() 326 mScanMode = scanMode; in setScanMode() 329 throw new IllegalArgumentException("invalid scan mode " + scanMode); in setScanMode()
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | BleScanReceiver.java | 131 public void firstAlarm(int scanMode, int startTime, int scanTime, in firstAlarm() argument 133 Log.d(TAG, "First Alarm for scan mode: " + scanMode); in firstAlarm() 140 scanMode).build(); in firstAlarm() 256 int scanMode = -1, startTime = 0, scanTime = 0, noScanTime = 0; in onReceive() local 274 scanMode = Integer.valueOf(str); in onReceive() 306 if (scanTime == 0 || startTime == 0 || scanMode == -1) { in onReceive() 310 mAlarmScanListener.firstAlarm(scanMode, startTime, in onReceive()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/managers/ |
D | MergedDiscoveryRequest.java | 45 private MergedDiscoveryRequest(@ScanRequest.ScanMode int scanMode, Set<Integer> scanTypes, in MergedDiscoveryRequest() argument 47 mScanMode = scanMode; in MergedDiscoveryRequest() 123 public Builder setScanMode(@ScanRequest.ScanMode int scanMode) { in setScanMode() argument 124 mScanMode = scanMode; in setScanMode()
|
D | DiscoveryProviderManager.java | 293 int scanMode = ScanRequest.SCAN_MODE_NO_POWER; in mergeRegistrations() local 304 if (scanMode < requestScanMode) { in mergeRegistrations() 305 scanMode = requestScanMode; in mergeRegistrations() 308 builder.setScanMode(scanMode); in mergeRegistrations()
|
D | DiscoveryProviderManagerLegacy.java | 314 @ScanRequest.ScanMode int scanMode = record.getScanRequest().getScanMode(); in unregisterScanListener() local 315 if (scanMode > highestScanModeRequested) { in unregisterScanListener() 316 highestScanModeRequested = scanMode; in unregisterScanListener()
|
/packages/modules/Connectivity/nearby/tests/multidevices/clients/test_support/fastpair_provider/src/android/nearby/fastpair/provider/bluetooth/ |
D | BluetoothController.kt | 151 fun getScanMode(): Int = bluetoothAdapter.scanMode in getScanMode() 205 val scanMode = in getScanMode() constant 212 FastPairSimulator.scanModeToString(scanMode) in getScanMode() 214 listener.onScanModeChange(scanMode) in getScanMode()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/provider/ |
D | AbstractDiscoveryProvider.java | 141 public void setProviderScanMode(@ScanRequest.ScanMode int scanMode) { in setProviderScanMode() argument 142 if (mScanMode == scanMode) { in setProviderScanMode() 146 mScanMode = scanMode; in setProviderScanMode()
|
D | DiscoveryProviderController.java | 51 void setProviderScanMode(@ScanRequest.ScanMode int scanMode); in setProviderScanMode() argument
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowBluetoothAdapter.java | 84 protected Object setScanMode(int scanMode) { in setScanMode() argument 88 mScanMode = scanMode; in setScanMode()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/ |
D | ScanManagerTest.java | 201 private ScanClient createScanClient(int id, boolean isFiltered, int scanMode, in createScanClient() argument 204 ScanSettings scanSettings = createScanSettings(scanMode, isBatch, isAutoBatch); in createScanClient() 212 private ScanClient createScanClient(int id, boolean isFiltered, int scanMode) { in createScanClient() argument 213 return createScanClient(id, isFiltered, scanMode, false, false); in createScanClient() 225 private ScanSettings createScanSettings(int scanMode, boolean isBatch, boolean isAutoBatch) { in createScanSettings() argument 230 scanSettings = new ScanSettings.Builder().setScanMode(scanMode) in createScanSettings() 234 scanSettings = new ScanSettings.Builder().setScanMode(scanMode) in createScanSettings() 237 scanSettings = new ScanSettings.Builder().setScanMode(scanMode).build(); in createScanSettings() 874 assertThat(mScanManager.getBatchScanParams().scanMode).isEqualTo(expectedScanMode); in testStartUnfilteredBatchScan() 906 assertThat(mScanManager.getBatchScanParams().scanMode).isEqualTo(expectedScanMode); in testStartFilteredBatchScan() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | AdapterProperties.java | 364 boolean setScanMode(int scanMode) { in setScanMode() argument 365 addScanChangeLog(scanMode); in setScanMode() 368 Utils.intToByteArray(AdapterService.convertScanModeToHal(scanMode))); in setScanMode() 372 private void addScanChangeLog(int scanMode) { in addScanChangeLog() argument 375 String scanModeString = dumpScanMode(scanMode); in addScanChangeLog() 1253 private String dumpScanMode(int scanMode) { in dumpScanMode() argument 1254 switch (scanMode) { in dumpScanMode() 1262 return "Unknown Scan Mode " + scanMode; in dumpScanMode()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothDevicePairer.java | 373 final int scanMode = bluetoothAdapter.getScanMode(); in start() local 374 if (scanMode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in start() 375 Log.d(TAG, "Turning on discoverability, default scan mode: " + scanMode); in start() 376 mDefaultScanMode = scanMode; in start()
|
/packages/modules/Bluetooth/android/pandora/server/src/com/android/pandora/ |
D | Host.kt | 801 val scanMode = in setDiscoverabilityMode() constant 815 if (scanMode != null) { in setDiscoverabilityMode() 816 bluetoothAdapter.setScanMode(scanMode) in setDiscoverabilityMode() 836 val scanMode = in setConnectabilityMode() constant 853 if (scanMode != null) { in setConnectabilityMode() 854 bluetoothAdapter.setScanMode(scanMode) in setConnectabilityMode()
|
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/internal/bluetooth/ |
D | AdapterDelegate.java | 169 void setScanMode(int scanMode) { in setScanMode() argument 171 this.mScanMode.set(scanMode); in setScanMode()
|
D | BlueletImpl.java | 153 public Bluelet setScanMode(int scanMode) { in setScanMode() argument 154 mAdapterDelegate.setScanMode(scanMode); in setScanMode()
|
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/ |
D | Bluelet.java | 77 Bluelet setScanMode(int scanMode); in setScanMode() argument
|
/packages/modules/Connectivity/nearby/tests/multidevices/clients/test_support/fastpair_provider/src/android/nearby/fastpair/provider/ |
D | FastPairSimulator.java | 2056 private void setScanMode(int scanMode) { in setScanMode() argument 2061 mLogger.log("Setting scan mode to %s", scanModeToString(scanMode)); in setScanMode() 2064 method.invoke(mBluetoothAdapter, scanMode); in setScanMode() 2066 if (scanMode == SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in setScanMode() 2072 mLogger.log(e, "Error setting scan mode to %d", scanMode); in setScanMode() 2076 public static String scanModeToString(int scanMode) { in scanModeToString() argument 2077 switch (scanMode) { in scanModeToString() 2085 return "UNKNOWN(" + scanMode + ")"; in scanModeToString()
|
/packages/modules/Bluetooth/framework/tests/stress/src/android/bluetooth/ |
D | BluetoothTestUtils.java | 576 int scanMode = adapter.getScanMode(); in discoverable() local 577 if (scanMode != BluetoothAdapter.SCAN_MODE_CONNECTABLE) { in discoverable() 612 fail(String.format("discoverable() timeout: scanMode=%d (expected %d)", scanMode, in discoverable() 628 int scanMode = adapter.getScanMode(); in undiscoverable() local 629 if (scanMode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in undiscoverable() 664 fail(String.format("undiscoverable() timeout: scanMode=%d (expected %d)", scanMode, in undiscoverable()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | AdapterServiceFactoryResetTest.java | 399 final int scanMode = mServiceBinder.getScanMode(mAttributionSource); in doEnable() local 400 Assert.assertTrue(scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE in doEnable() 401 || scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in doEnable()
|
D | AdapterServiceTest.java | 407 final int scanMode = mServiceBinder.getScanMode(mAttributionSource); in doEnable() local 408 Assert.assertTrue(scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE in doEnable() 409 || scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in doEnable()
|