OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:scanMode
(Results
1 - 5
of
5
) sorted by null
/frameworks/base/core/java/android/bluetooth/le/
ScanSettings.java
174
private ScanSettings(int
scanMode
, int callbackType, int scanResultType,
176
mScanMode =
scanMode
;
234
* @param
scanMode
The scan mode can be one of {@link ScanSettings#SCAN_MODE_LOW_POWER},
237
* @throws IllegalArgumentException If the {@code
scanMode
} is invalid.
239
public Builder setScanMode(int
scanMode
) {
240
if (
scanMode
< SCAN_MODE_OPPORTUNISTIC ||
scanMode
> SCAN_MODE_LOW_LATENCY) {
241
throw new IllegalArgumentException("invalid scan mode " +
scanMode
);
243
mScanMode =
scanMode
;
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
ScanManager.java
274
int
scanMode
;
279
scanMode
= -1;
293
return
scanMode
== other.
scanMode
&& fullScanClientIf == other.fullScanClientIf
513
Utils.millsToUnit(getBatchScanIntervalMillis(batchScanParams.
scanMode
));
515
Utils.millsToUnit(getBatchScanWindowMillis(batchScanParams.
scanMode
));
545
params.
scanMode
= Math.max(params.
scanMode
, client.settings.getScanMode());
555
private int getBatchScanWindowMillis(int
scanMode
) {
556
switch (
scanMode
) {
[
all
...]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
BluetoothTestUtils.java
552
int
scanMode
= adapter.getScanMode();
553
if (
scanMode
== BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {
559
assertEquals(BluetoothAdapter.SCAN_MODE_CONNECTABLE,
scanMode
);
564
scanMode
= adapter.getScanMode();
565
if (
scanMode
== BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE
577
fail(String.format("discoverable() timeout:
scanMode
=%d (expected %d), flags=0x%x "
578
+ "(expected 0x%x)",
scanMode
, BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE,
595
int
scanMode
= adapter.getScanMode();
596
if (
scanMode
== BluetoothAdapter.SCAN_MODE_CONNECTABLE) {
602
assertEquals(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE,
scanMode
);
[
all
...]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
AdapterProperties.java
146
* Set the local adapter property -
scanMode
148
* @param
scanMode
the
ScanMode
to set
150
boolean setScanMode(int
scanMode
) {
153
AbstractionLayer.BT_PROPERTY_ADAPTER_SCAN_MODE, Utils.intToByteArray(
scanMode
));
603
Log.d(TAG, "
ScanMode
= " + mScanMode );
/prebuilts/sdk/21/
android.jar
Completed in 377 milliseconds