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.java174 private ScanSettings(int scanMode, int callbackType, int scanResultType, in ScanSettings() argument
176 mScanMode = scanMode; in ScanSettings()
239 public Builder setScanMode(int scanMode) { in setScanMode() argument
240 if (scanMode < SCAN_MODE_OPPORTUNISTIC || scanMode > SCAN_MODE_LOW_LATENCY) { in setScanMode()
241 throw new IllegalArgumentException("invalid scan mode " + scanMode); in setScanMode()
243 mScanMode = scanMode; in setScanMode()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java552 int scanMode = adapter.getScanMode(); in discoverable() local
553 if (scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in discoverable()
559 assertEquals(BluetoothAdapter.SCAN_MODE_CONNECTABLE, scanMode); in discoverable()
564 scanMode = adapter.getScanMode(); in discoverable()
565 if (scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE in discoverable()
578 + "(expected 0x%x)", scanMode, BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, in discoverable()
595 int scanMode = adapter.getScanMode(); in undiscoverable() local
596 if (scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE) { in undiscoverable()
602 assertEquals(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, scanMode); in undiscoverable()
607 scanMode = adapter.getScanMode(); in undiscoverable()
[all …]