HomeSort by relevance Sort by last modified time
    Searched refs:ScanSettings (Results 1 - 25 of 69) sorted by null

1 2 3

  /frameworks/base/core/java/android/bluetooth/le/
ScanSettings.aidl 19 parcelable ScanSettings;
ScanSettings.java 27 public final class ScanSettings implements Parcelable {
174 private ScanSettings(int scanMode, int callbackType, int scanResultType,
184 private ScanSettings(Parcel in) {
208 public static final Parcelable.Creator<ScanSettings>
209 CREATOR = new Creator<ScanSettings>() {
211 public ScanSettings[] newArray(int size) {
212 return new ScanSettings[size];
216 public ScanSettings createFromParcel(Parcel in) {
217 return new ScanSettings(in);
222 * Builder for {@link ScanSettings}
    [all...]
BluetoothLeScanner.java 93 startScan(null, new ScanSettings.Builder().build(), callback);
111 public void startScan(List<ScanFilter> filters, ScanSettings settings,
129 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback);
133 * Start Bluetooth LE scan. Same as {@link #startScan(List, ScanSettings, ScanCallback)} but
146 public void startScanFromSource(List<ScanFilter> filters, ScanSettings settings,
151 private void startScan(List<ScanFilter> filters, ScanSettings settings,
245 public void startTruncatedScan(List<TruncatedFilter> truncatedFilters, ScanSettings settings,
276 private ScanSettings mSettings;
286 List<ScanFilter> filters, ScanSettings settings,
400 mScanCallback.onScanResult(ScanSettings.CALLBACK_TYPE_ALL_MATCHES, scanResult)
    [all...]
  /frameworks/base/wifi/java/android/net/wifi/
ScanSettings.aidl 19 parcelable ScanSettings;
ScanSettings.java 32 public class ScanSettings implements Parcelable {
38 public ScanSettings() { }
41 public ScanSettings(ScanSettings source) {
68 public static final Parcelable.Creator<ScanSettings> CREATOR =
69 new Parcelable.Creator<ScanSettings>() {
71 public ScanSettings createFromParcel(Parcel in) {
72 ScanSettings settings = new ScanSettings();
83 public ScanSettings[] newArray(int size)
    [all...]
  /frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
ScanSettingsTest.java 24 * Test for Bluetooth LE {@link ScanSettings}.
30 ScanSettings.Builder builder = new ScanSettings.Builder();
31 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES);
32 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_FIRST_MATCH);
33 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_MATCH_LOST);
35 ScanSettings.CALLBACK_TYPE_FIRST_MATCH | ScanSettings.CALLBACK_TYPE_MATCH_LOST);
38 ScanSettings.CALLBACK_TYPE_ALL_MATCHES | ScanSettings.CALLBACK_TYPE_MATCH_LOST)
    [all...]
  /cts/tests/tests/bluetooth/src/android/bluetooth/cts/
ScanSettingsTest.java 19 import android.bluetooth.le.ScanSettings;
25 * Test for Bluetooth LE {@link ScanSettings}.
31 ScanSettings settings = new ScanSettings.Builder().build();
32 assertEquals(ScanSettings.CALLBACK_TYPE_ALL_MATCHES, settings.getCallbackType());
33 assertEquals(ScanSettings.SCAN_MODE_LOW_POWER, settings.getScanMode());
40 ScanSettings settings = new ScanSettings.Builder().build();
48 ScanSettings settings = new ScanSettings.Builder(
    [all...]
ScanCallbackTest.java 21 import android.bluetooth.le.ScanSettings;
45 mMockScanner.startScan(new ScanSettings.Builder().build(), mMockScanCallback);
50 ScanSettings settings = new ScanSettings.Builder().setReportDelay(1000).build();
57 ScanSettings settings = new ScanSettings.Builder().build();
70 void startScan(ScanSettings settings, ScanCallback callback) {
BluetoothLeScanTest.java 26 import android.bluetooth.le.ScanSettings;
131 ScanSettings settings = new ScanSettings.Builder().setScanMode(
132 ScanSettings.SCAN_MODE_LOW_LATENCY).build();
182 ScanSettings opportunisticScanSettings = new ScanSettings.Builder()
183 .setScanMode(ScanSettings.SCAN_MODE_OPPORTUNISTIC)
194 ScanSettings regularScanSettings = new ScanSettings.Builder()
195 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build()
    [all...]
  /system/bt/service/common/bluetooth/
scan_settings.cpp 21 ScanSettings::ScanSettings()
28 ScanSettings::ScanSettings(
43 bool ScanSettings::operator==(const ScanSettings& rhs) const {
scan_settings.h 23 // ScanSettings encapsulates Bluetooth LE device scan parameters. This is the
25 // frameworks/base/core/java/android/bluetooth/le/ScanSettings.java.
26 class ScanSettings {
115 ScanSettings();
116 ScanSettings(Mode mode,
122 ~ScanSettings() = default;
153 bool operator==(const ScanSettings& rhs) const;
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
BackgroundScanSchedulerTest.java 30 import android.net.wifi.WifiScanner.ScanSettings;
82 Collection<ScanSettings> requests = Collections.emptyList();
85 WifiNative.ScanSettings schedule = mScheduler.getSchedule();
93 Collection<ScanSettings> requests = Collections.singleton(createRequest(
99 WifiNative.ScanSettings schedule = mScheduler.getSchedule();
103 for (ScanSettings request : requests) {
110 Collection<ScanSettings> requests = Collections.singleton(createRequest(
116 WifiNative.ScanSettings schedule = mScheduler.getSchedule();
120 for (ScanSettings request : requests) {
127 Collection<ScanSettings> requests = new ArrayList<>()
    [all...]
ScanScheduleUtilFilterTest.java 32 import android.net.wifi.WifiScanner.ScanSettings;
57 ScanSettings settings = createRequest(
68 ScanSettings settings = createRequest(
79 ScanSettings settings = createRequest(
90 ScanSettings settings = createRequest(
101 ScanSettings settings = createRequest(
112 ScanSettings settings = createRequest(
123 ScanSettings settings = createRequest(
135 ScanSettings settings = createRequest(
147 ScanSettings settings = createRequest
    [all...]
ChannelHelperTest.java 52 * Compute a string representing the channels in a ScanSettings with a band set.
56 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_BOTH,
58 assertEquals("24Ghz & 5Ghz (no DFS)", ChannelHelper.toString(scanSettings));
62 * Compute a string representing the channels in a ScanSettings with a list of channels set.
66 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(5150, 2400),
68 assertEquals("[5150,2400]", ChannelHelper.toString(scanSettings));
76 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_5_GHZ
    [all...]
WifiScanningServiceTest.java 127 private WifiScanner.ScanSettings generateValidScanSettings() {
187 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) {
196 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) {
306 WifiNative.ScanSettings expected) {
307 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor =
308 ArgumentCaptor.forClass(WifiNative.ScanSettings.class);
318 WifiNative.ScanSettings expected) {
319 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor =
320 ArgumentCaptor.forClass(WifiNative.ScanSettings.class);
427 when(mWifiScannerImpl.startBatchedScan(any(WifiNative.ScanSettings.class)
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
ScanClient.java 21 import android.bluetooth.le.ScanSettings;
37 ScanSettings settings;
52 private static final ScanSettings DEFAULT_SCAN_SETTINGS = new ScanSettings.Builder()
53 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build();
63 ScanClient(int appIf, boolean isServer, ScanSettings settings,
68 ScanClient(int appIf, boolean isServer, ScanSettings settings,
73 ScanClient(int appIf, boolean isServer, ScanSettings settings,
79 private ScanClient(int appIf, boolean isServer, UUID[] uuids, ScanSettings settings,
ScanManager.java 24 import android.bluetooth.le.ScanSettings;
140 if (client.settings.getScanResultType() == ScanSettings.SCAN_RESULT_TYPE_FULL) {
296 ScanSettings settings = client.settings;
297 return settings.getCallbackType() == ScanSettings.CALLBACK_TYPE_ALL_MATCHES &&
305 ScanSettings settings = client.settings;
309 return settings.getCallbackType() == ScanSettings.CALLBACK_TYPE_ALL_MATCHES &&
458 curScanSetting != ScanSettings.SCAN_MODE_OPPORTUNISTIC) {
509 if (client.settings.getScanMode() != ScanSettings.SCAN_MODE_OPPORTUNISTIC) {
528 return client.settings.getScanMode() == ScanSettings.SCAN_MODE_OPPORTUNISTIC;
532 return (client.settings.getCallbackType() & ScanSettings.CALLBACK_TYPE_FIRST_MATCH) != 0
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
BackgroundScanScheduler.java 24 import android.net.wifi.WifiScanner.ScanSettings;
56 * <p>Finally, the scheduler creates a WifiNative.ScanSettings from the list of buckets which may be
84 * @see com.android.server.wifi.WifiNative.ScanSettings#report_threshold_percent
134 private final List<ScanSettings> mScanSettingsList = new ArrayList<>();
149 for (ScanSettings settings : originalBucket.getSettingsList()) {
163 public boolean addSettings(ScanSettings scanSettings) {
164 mChannelCollection.addChannels(scanSettings);
165 return mScanSettingsList.add(scanSettings);
168 public boolean removeSettings(ScanSettings scanSettings)
    [all...]
ChannelHelper.java 50 public abstract boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel);
61 public abstract int estimateScanDuration(WifiScanner.ScanSettings settings);
123 public void addChannels(WifiScanner.ScanSettings scanSettings) {
124 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
125 for (int j = 0; j < scanSettings.channels.length; ++j) {
126 addChannel(scanSettings.channels[j].frequency);
129 addBand(scanSettings.band);
149 public boolean containsSettings(WifiScanner.ScanSettings scanSettings) {
    [all...]
  /system/bt/service/common/bluetooth/binder/
parcel_helpers.cpp 28 using bluetooth::ScanSettings;
241 const ScanSettings& settings,
251 std::unique_ptr<ScanSettings> CreateScanSettingsFromParcel(
253 ScanSettings::Mode mode =
254 static_cast<ScanSettings::Mode>(parcel.readInt32());
255 ScanSettings::CallbackType callback_type =
256 static_cast<ScanSettings::CallbackType>(parcel.readInt32());
257 ScanSettings::ResultType result_type =
258 static_cast<ScanSettings::ResultType>(parcel.readInt32());
261 ScanSettings::MatchMode match_mode
    [all...]
  /system/bt/service/test/
parcel_helpers_unittest.cpp 30 using bluetooth::ScanSettings;
77 bool TestScanSettings(const ScanSettings& settings_in) {
165 TEST(ParcelHelpersTest, ScanSettings) {
166 ScanSettings settings0;
167 ScanSettings settings1(
168 ScanSettings::MODE_BALANCED,
169 ScanSettings::CALLBACK_TYPE_FIRST_MATCH,
170 ScanSettings::RESULT_TYPE_ABBREVIATED,
172 ScanSettings::MATCH_MODE_STICKY,
173 ScanSettings::MATCH_COUNT_FEW_ADVERTISEMENTS)
    [all...]
  /system/bt/service/doc/
IBluetoothLowEnergy.txt 66 boolean startScan(in int client_id, in ScanSettings settings,
  /developers/build/prebuilts/gradle/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/
ScannerFragment.java 24 import android.bluetooth.le.ScanSettings;
191 * Return a {@link ScanSettings} object set to use low power (to preserve battery life).
193 private ScanSettings buildScanSettings() {
194 ScanSettings.Builder builder = new ScanSettings.Builder();
195 builder.setScanMode(ScanSettings.SCAN_MODE_LOW_POWER);
  /developers/samples/android/connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/
ScannerFragment.java 24 import android.bluetooth.le.ScanSettings;
191 * Return a {@link ScanSettings} object set to use low power (to preserve battery life).
193 private ScanSettings buildScanSettings() {
194 ScanSettings.Builder builder = new ScanSettings.Builder();
195 builder.setScanMode(ScanSettings.SCAN_MODE_LOW_POWER);
  /development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/
ScannerFragment.java 24 import android.bluetooth.le.ScanSettings;
191 * Return a {@link ScanSettings} object set to use low power (to preserve battery life).
193 private ScanSettings buildScanSettings() {
194 ScanSettings.Builder builder = new ScanSettings.Builder();
195 builder.setScanMode(ScanSettings.SCAN_MODE_LOW_POWER);

Completed in 2549 milliseconds

1 2 3