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

1 2 3 4

  /frameworks/base/core/java/android/bluetooth/le/
ScanSettings.aidl 19 parcelable ScanSettings;
ScanSettings.java 28 public final class ScanSettings implements Parcelable {
204 private ScanSettings(int scanMode, int callbackType, int scanResultType,
217 private ScanSettings(Parcel in) {
245 public static final Parcelable.Creator<ScanSettings>
246 CREATOR = new Creator<ScanSettings>() {
248 public ScanSettings[] newArray(int size) {
249 return new ScanSettings[size];
253 public ScanSettings createFromParcel(Parcel in) {
254 return new ScanSettings(in);
259 * Builder for {@link ScanSettings}
    [all...]
BluetoothLeScanner.java 76 * CALLBACK_TYPE_* constants in {@link ScanSettings}.
113 startScan(null, new ScanSettings.Builder().build(), callback);
130 public void startScan(List<ScanFilter> filters, ScanSettings settings,
153 public int startScan(@Nullable List<ScanFilter> filters, @Nullable ScanSettings settings,
156 settings != null ? settings : new ScanSettings.Builder().build(),
173 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback);
177 * Start Bluetooth LE scan. Same as {@link #startScan(List, ScanSettings, ScanCallback)} but
190 public void startScanFromSource(List<ScanFilter> filters, ScanSettings settings,
195 private int startScan(List<ScanFilter> filters, ScanSettings settings,
269 * @see #startScan(List, ScanSettings, PendingIntent
    [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...]
  /system/bt/service/common/android/bluetooth/
ScanSettings.aidl 19 parcelable ScanSettings cpp_header "android/bluetooth/scan_settings.h";
scan_settings.h 31 class ScanSettings : public Parcelable, public ::bluetooth::ScanSettings {
33 ScanSettings() = default;
35 ScanSettings(const ::bluetooth::ScanSettings& scan_settings) // NOLINT
36 : ::bluetooth::ScanSettings(scan_settings){};
37 ~ScanSettings() = default;
IBluetoothLeScanner.aidl 21 import android.bluetooth.ScanSettings;
29 in ScanSettings settings,
scan_settings.cc 30 status_t ScanSettings::writeToParcel(Parcel* parcel) const {
50 status_t ScanSettings::readFromParcel(const Parcel* parcel) {
54 mode_ = static_cast<ScanSettings::Mode>(value);
58 callback_type_ = static_cast<ScanSettings::CallbackType>(value);
62 result_type_ = static_cast<ScanSettings::ResultType>(value);
70 match_mode_ = static_cast<ScanSettings::MatchMode>(value);
74 match_count_per_filter_ = static_cast<ScanSettings::MatchCount>(value);
  /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;
135 ScanSettings settings = new ScanSettings.Builder().setScanMode(
136 ScanSettings.SCAN_MODE_LOW_LATENCY).build();
186 ScanSettings opportunisticScanSettings = new ScanSettings.Builder()
187 .setScanMode(ScanSettings.SCAN_MODE_OPPORTUNISTIC)
198 ScanSettings regularScanSettings = new ScanSettings.Builder()
199 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build()
    [all...]
  /system/bt/service/common/bluetooth/
scan_settings.cc 21 ScanSettings::ScanSettings()
27 ScanSettings::ScanSettings(Mode mode, CallbackTypeBitField callback_type,
39 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, CallbackTypeBitField callback_type,
119 virtual ~ScanSettings() = default;
150 bool operator==(const ScanSettings& rhs) const;
  /packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
ScanClient.java 21 import android.bluetooth.le.ScanSettings;
35 ScanSettings settings;
47 private static final ScanSettings DEFAULT_SCAN_SETTINGS = new ScanSettings.Builder()
48 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build();
58 ScanClient(int scannerId, ScanSettings settings,
63 ScanClient(int scannerId, ScanSettings settings, List<ScanFilter> filters,
68 private ScanClient(int scannerId, UUID[] uuids, ScanSettings settings, List<ScanFilter> filters,
ScanManager.java 24 import android.bluetooth.le.ScanSettings;
156 if (client.settings.getScanResultType() == ScanSettings.SCAN_RESULT_TYPE_FULL) {
292 ScanSettings settings = client.settings;
293 return settings.getCallbackType() == ScanSettings.CALLBACK_TYPE_ALL_MATCHES &&
301 ScanSettings settings = client.settings;
305 return settings.getCallbackType() == ScanSettings.CALLBACK_TYPE_ALL_MATCHES &&
458 curScanSetting != ScanSettings.SCAN_MODE_OPPORTUNISTIC) {
512 if (client.settings.getScanMode() != ScanSettings.SCAN_MODE_OPPORTUNISTIC) {
537 return client.settings.getScanMode() == ScanSettings.SCAN_MODE_OPPORTUNISTIC;
541 return (client.settings.getCallbackType() & ScanSettings.CALLBACK_TYPE_FIRST_MATCH) != 0
    [all...]
  /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 144 private WifiScanner.ScanSettings generateValidScanSettings() {
204 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) {
213 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) {
323 WifiNative.ScanSettings expected) {
324 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor =
325 ArgumentCaptor.forClass(WifiNative.ScanSettings.class);
335 WifiNative.ScanSettings expected) {
336 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor =
337 ArgumentCaptor.forClass(WifiNative.ScanSettings.class);
444 when(mWifiScannerImpl.startBatchedScan(any(WifiNative.ScanSettings.class)
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
BackgroundScanScheduler.java 24 import android.net.wifi.WifiScanner.ScanSettings;
55 * <p>Finally, the scheduler creates a WifiNative.ScanSettings from the list of buckets which may be
83 * @see com.android.server.wifi.WifiNative.ScanSettings#report_threshold_percent
133 private final List<ScanSettings> mScanSettingsList = new ArrayList<>();
148 for (ScanSettings settings : originalBucket.getSettingsList()) {
162 public boolean addSettings(ScanSettings scanSettings) {
163 mChannelCollection.addChannels(scanSettings);
164 return mScanSettingsList.add(scanSettings);
167 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);
127 public void addChannels(WifiScanner.ScanSettings scanSettings) {
128 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
129 for (int j = 0; j < scanSettings.channels.length; ++j) {
130 addChannel(scanSettings.channels[j].frequency);
133 addBand(scanSettings.band);
153 public boolean containsSettings(WifiScanner.ScanSettings scanSettings) {
    [all...]
  /system/bt/service/test/
parcelable_unittest.cc 38 using bluetooth::ScanSettings;
93 TEST(ParcelableTest, ScanSettings) {
94 ScanSettings settings0;
95 ScanSettings settings1(
96 ScanSettings::MODE_BALANCED, ScanSettings::CALLBACK_TYPE_FIRST_MATCH,
97 ScanSettings::RESULT_TYPE_ABBREVIATED,
98 base::TimeDelta::FromMilliseconds(150), ScanSettings::MATCH_MODE_STICKY,
99 ScanSettings::MATCH_COUNT_FEW_ADVERTISEMENTS);
102 TestData<ScanSettings, android::bluetooth::ScanSettings>(settings0)
    [all...]
  /system/bt/service/
low_energy_scanner.h 71 // |filters|. See the documentation for ScanSettings and ScanFilter for how
74 bool StartScan(const ScanSettings& settings,
81 const ScanSettings& scan_settings() const { return scan_settings_; }
113 ScanSettings scan_settings_;

Completed in 870 milliseconds

1 2 3 4