Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAppScanStats.java77 public int scanMode; field in AppScanStats.LastScan
82 int scanMode, int scanCallbackType) { in LastScan() argument
91 this.scanMode = scanMode; in LastScan()
190 scan.isOpportunisticScan = scan.scanMode == ScanSettings.SCAN_MODE_OPPORTUNISTIC; in recordScanStart()
196 switch (scan.scanMode) { in recordScanStart()
277 switch (scan.scanMode) { in recordScanStop()
420 private static String scanModeToString(int scanMode) { in scanModeToString() argument
421 switch (scanMode) { in scanModeToString()
431 return "UNKNOWN(" + scanMode + ")"; in scanModeToString()
483 switch (scan.scanMode) { in dumpToString()
[all …]
DScanManager.java449 public int scanMode; field in ScanManager.BatchScanParams
454 scanMode = -1; in BatchScanParams()
468 return scanMode == other.scanMode && fullScanscannerId == other.fullScanscannerId in equals()
715 Utils.millsToUnit(getBatchScanIntervalMillis(batchScanParams.scanMode)); in resetBatchScan()
717 Utils.millsToUnit(getBatchScanWindowMillis(batchScanParams.scanMode)); in resetBatchScan()
747 params.scanMode = Math.max(params.scanMode, client.settings.getScanMode()); in getBatchScanParams()
757 private int getBatchScanWindowMillis(int scanMode) { in getBatchScanWindowMillis() argument
758 switch (scanMode) { in getBatchScanWindowMillis()
770 private int getBatchScanIntervalMillis(int scanMode) { in getBatchScanIntervalMillis() argument
771 switch (scanMode) { in getBatchScanIntervalMillis()
[all …]
/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/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()
990 private String dumpScanMode(int scanMode) { in dumpScanMode() argument
991 switch (scanMode) { in dumpScanMode()
999 return "Unknown Scan Mode " + scanMode; in dumpScanMode()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java231 final int scanMode = mServiceBinder.getScanMode(); in doEnable() local
232 Assert.assertTrue(scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE in doEnable()
233 || scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); in doEnable()