Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/bluetooth/le/
DScanSettings.java204 private ScanSettings(int scanMode, int callbackType, int scanResultType, in ScanSettings() argument
207 mScanMode = scanMode; in ScanSettings()
279 public Builder setScanMode(int scanMode) { in setScanMode() argument
280 if (scanMode < SCAN_MODE_OPPORTUNISTIC || scanMode > SCAN_MODE_LOW_LATENCY) { in setScanMode()
281 throw new IllegalArgumentException("invalid scan mode " + scanMode); in setScanMode()
283 mScanMode = scanMode; in setScanMode()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java518 int scanMode = adapter.getScanMode(); in discoverable() local
519 if (scanMode != BluetoothAdapter.SCAN_MODE_CONNECTABLE) { in discoverable()
552 fail(String.format("discoverable() timeout: scanMode=%d (expected %d)", scanMode, in discoverable()
568 int scanMode = adapter.getScanMode(); in undiscoverable() local
569 if (scanMode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in undiscoverable()
602 fail(String.format("undiscoverable() timeout: scanMode=%d (expected %d)", scanMode, in undiscoverable()