Home
last modified time | relevance | path

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

/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DBleScanReceiver.java131 public void firstAlarm(int scanMode, int startTime, int scanTime, in firstAlarm() argument
133 Log.d(TAG, "First Alarm for scan mode: " + scanMode); in firstAlarm()
140 scanMode).build(); in firstAlarm()
255 int scanMode = -1, startTime = 0, scanTime = 0, noScanTime = 0; in onReceive() local
273 scanMode = Integer.valueOf(str); in onReceive()
305 if (scanTime == 0 || startTime == 0 || scanMode == -1) { in onReceive()
309 mAlarmScanListener.firstAlarm(scanMode, startTime, in onReceive()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DScanManager.java445 public int scanMode; field in ScanManager.BatchScanParams
450 scanMode = -1; in BatchScanParams()
464 return scanMode == other.scanMode && fullScanscannerId == other.fullScanscannerId in equals()
711 Utils.millsToUnit(getBatchScanIntervalMillis(batchScanParams.scanMode)); in resetBatchScan()
713 Utils.millsToUnit(getBatchScanWindowMillis(batchScanParams.scanMode)); in resetBatchScan()
743 params.scanMode = Math.max(params.scanMode, client.settings.getScanMode()); in getBatchScanParams()
753 private int getBatchScanWindowMillis(int scanMode) { in getBatchScanWindowMillis() argument
754 switch (scanMode) { in getBatchScanWindowMillis()
766 private int getBatchScanIntervalMillis(int scanMode) { in getBatchScanIntervalMillis() argument
767 switch (scanMode) { in getBatchScanIntervalMillis()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowBluetoothAdapter.java83 protected boolean setScanMode(int scanMode) { in setScanMode() argument
87 mScanMode = scanMode; in setScanMode()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java349 boolean setScanMode(int scanMode) { in setScanMode() argument
352 Utils.intToByteArray(scanMode)); in setScanMode()
998 private String dumpScanMode(int scanMode) { in dumpScanMode() argument
999 switch (scanMode) { in dumpScanMode()
1007 return "Unknown Scan Mode " + scanMode; in dumpScanMode()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java222 final int scanMode = mAdapterService.getScanMode(); in doEnable() local
223 Assert.assertTrue(scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE in doEnable()
224 || scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in doEnable()