Searched refs:scanMode (Results 1 – 2 of 2) sorted by relevance
204 private ScanSettings(int scanMode, int callbackType, int scanResultType, in ScanSettings() argument207 mScanMode = scanMode; in ScanSettings()279 public Builder setScanMode(int scanMode) { in setScanMode() argument280 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()
518 int scanMode = adapter.getScanMode(); in discoverable() local519 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() local569 if (scanMode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in undiscoverable()602 fail(String.format("undiscoverable() timeout: scanMode=%d (expected %d)", scanMode, in undiscoverable()