Searched refs:scanMode (Results 1 – 2 of 2) sorted by relevance
174 private ScanSettings(int scanMode, int callbackType, int scanResultType, in ScanSettings() argument176 mScanMode = scanMode; in ScanSettings()239 public Builder setScanMode(int scanMode) { in setScanMode() argument240 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()
552 int scanMode = adapter.getScanMode(); in discoverable() local553 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() local596 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 …]