Searched refs:scanMode (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/core/java/android/bluetooth/le/
H A DScanSettings.java204 private ScanSettings(int scanMode, int callbackType, int scanResultType, argument
207 mScanMode = scanMode;
274 * @param scanMode The scan mode can be one of {@link ScanSettings#SCAN_MODE_LOW_POWER},
276 * @throws IllegalArgumentException If the {@code scanMode} is invalid.
278 public Builder setScanMode(int scanMode) { argument
279 if (scanMode < SCAN_MODE_OPPORTUNISTIC || scanMode > SCAN_MODE_LOW_LATENCY) {
280 throw new IllegalArgumentException("invalid scan mode " + scanMode);
282 mScanMode = scanMode;
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothTestUtils.java518 int scanMode = adapter.getScanMode();
519 if (scanMode != BluetoothAdapter.SCAN_MODE_CONNECTABLE) {
552 fail(String.format("discoverable() timeout: scanMode=%d (expected %d)", scanMode,
568 int scanMode = adapter.getScanMode();
569 if (scanMode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {
602 fail(String.format("undiscoverable() timeout: scanMode=%d (expected %d)", scanMode,

Completed in 93 milliseconds