Home
last modified time | relevance | path

Searched refs:ScanFilter (Results 1 – 25 of 67) sorted by relevance

123

/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/
DLeScanningTest.java33 import android.bluetooth.le.ScanFilter;
89 ScanFilter scanFilter = in startBleScan_withCallbackTypeAllMatches()
90 new ScanFilter.Builder() in startBleScan_withCallbackTypeAllMatches()
108 ScanFilter scanFilter = in scanForIrkIdentityAddress_withCallbackTypeAllMatches()
109 new ScanFilter.Builder() in scanForIrkIdentityAddress_withCallbackTypeAllMatches()
133 ScanFilter scanFilter = in startBleScan_withCallbackTypeFirstMatchSilentlyFails()
134 new ScanFilter.Builder() in startBleScan_withCallbackTypeFirstMatchSilentlyFails()
155 ScanFilter scanFilter = in startBleScan_withCallbackTypeMatchLostSilentlyFails()
156 new ScanFilter.Builder() in startBleScan_withCallbackTypeMatchLostSilentlyFails()
181 ScanFilter scanFilter = in startBleScan_withPendingIntentAndDynamicReceiverAndCallbackTypeAllMatches()
[all …]
DDckScanTest.kt20 import android.bluetooth.le.ScanFilter
73 ScanFilter.Builder() in scanForIrkAndIdentityAddress_remoteFound()
103 val scanFilter = ScanFilter.Builder().setServiceUuid(ParcelUuid(CCC_DK_UUID)).build() in scanForUuid_remoteFound()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/managers/
DMergedDiscoveryRequest.java20 import android.nearby.ScanFilter;
42 private final Set<ScanFilter> mScanFilters;
46 Set<Integer> actions, Set<ScanFilter> scanFilters, Set<Integer> mediums) { in MergedDiscoveryRequest()
84 public ImmutableSet<ScanFilter> getScanFilters() { in getScanFilters()
107 private final Set<ScanFilter> mScanFilters;
143 public Builder addScanFilters(Collection<ScanFilter> scanFilters) { in addScanFilters()
DDiscoveryProviderManagerLegacy.java33 import android.nearby.ScanFilter;
106 private static boolean isChreOnly(List<ScanFilter> scanFilters) { in isChreOnly()
107 for (ScanFilter scanFilter : scanFilters) { in isChreOnly()
129 NearbyDeviceParcelable device, List<ScanFilter> scanFilters) { in presenceFilterMatches()
134 for (ScanFilter scanFilter : scanFilters) { in presenceFilterMatches()
167 List<ScanFilter> presenceFilters = in onNearbyDeviceDiscovered()
355 List<ScanFilter> scanFilters = getPresenceScanFilters(); in startProviders()
387 private void startBleProvider(List<ScanFilter> scanFilters) { in startBleProvider()
398 void startChreProvider(List<ScanFilter> scanFilters) { in startChreProvider()
405 private List<ScanFilter> getPresenceScanFilters() { in getPresenceScanFilters()
[all …]
DDiscoveryProviderManager.java31 import android.nearby.ScanFilter;
96 private static boolean isChreOnly(Set<ScanFilter> scanFilters) { in isChreOnly()
97 for (ScanFilter scanFilter : scanFilters) { in isChreOnly()
216 Set<ScanFilter> scanFilters = mMerged.getScanFilters(); in startProviders()
252 private void startBleProvider(Set<ScanFilter> scanFilters) { in startBleProvider()
265 void startChreProvider(Collection<ScanFilter> scanFilters) { in startChreProvider()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/managers/registration/
DDiscoveryRegistration.java30 import android.nearby.ScanFilter;
113 List<ScanFilter> filters = mScanRequest.getScanFilters(); in getActions()
114 for (ScanFilter filter : filters) { in getActions()
125 public Set<ScanFilter> getPresenceScanFilters() { in getPresenceScanFilters()
126 Set<ScanFilter> result = new ArraySet<>(); in getPresenceScanFilters()
127 List<ScanFilter> filters = mScanRequest.getScanFilters(); in getPresenceScanFilters()
128 for (ScanFilter filter : filters) { in getPresenceScanFilters()
205 List<ScanFilter> scanFilters) {
210 for (ScanFilter scanFilter : scanFilters) {
294 List<ScanFilter> presenceFilters = mScanRequest.getScanFilters().stream().filter(
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/provider/
DBleDiscoveryProvider.java28 import android.bluetooth.le.ScanFilter;
70 private List<android.nearby.ScanFilter> mScanFilters;
132 private static List<ScanFilter> getScanFilters() { in getScanFilters()
133 List<ScanFilter> scanFilterList = new ArrayList<>(); in getScanFilters()
135 new ScanFilter.Builder() in getScanFilters()
194 protected void onSetScanFilters(List<android.nearby.ScanFilter> filters) { in onSetScanFilters()
201 protected List<android.nearby.ScanFilter> getFiltersLocked() { in getFiltersLocked()
208 List<ScanFilter> scanFilters, ScanSettings scanSettings, in startScan()
260 for (android.nearby.ScanFilter scanFilter : mScanFilters) { in setPresenceDevice()
DAbstractDiscoveryProvider.java24 import android.nearby.ScanFilter;
75 protected void onSetScanFilters(List<ScanFilter> filters) {} in onSetScanFilters()
151 public void setProviderScanFilters(List<ScanFilter> filters) { in setProviderScanFilters()
DDiscoveryProviderController.java20 import android.nearby.ScanFilter;
58 void setProviderScanFilters(List<ScanFilter> filters); in setProviderScanFilters()
DChreDiscoveryProvider.java39 import android.nearby.ScanFilter;
85 private List<ScanFilter> mScanFilters;
135 protected void onSetScanFilters(List<ScanFilter> filters) { in onSetScanFilters()
168 public List<ScanFilter> getFiltersLocked() { in getFiltersLocked()
181 for (ScanFilter scanFilter : mScanFilters) { in updateFiltersLocked()
/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DScanFilter.java30 public abstract class ScanFilter { class
36 public static ScanFilter createFromParcel(Parcel in) { in createFromParcel()
57 ScanFilter(@ScanRequest.ScanType int type, @IntRange(from = 0, to = 127) int maxPathLoss) { in ScanFilter() method in ScanFilter
67 ScanFilter(@ScanRequest.ScanType int type, Parcel in) { in ScanFilter() method in ScanFilter
DScanRequest.java88 builder.addScanFilter(ScanFilter.createFromParcel(in));
104 private final List<ScanFilter> mScanFilters;
107 boolean offloadOnly, @NonNull WorkSource workSource, List<ScanFilter> scanFilters) { in ScanRequest()
187 public List<ScanFilter> getScanFilters() { in getScanFilters()
286 private List<ScanFilter> mScanFilters;
382 public Builder addScanFilter(@NonNull ScanFilter scanFilter) { in addScanFilter()
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/info/
DScanInfo.java18 import android.bluetooth.le.ScanFilter;
28 public ScanInfo(List<ScanFilter> scanFilters, ScanSettings scanSettings) { in ScanInfo()
34 public final List<ScanFilter> scanFilters;
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DTruncatedFilter.java34 private final ScanFilter mFilter;
43 public TruncatedFilter(ScanFilter filter, List<ResultStorageDescriptor> storageDescriptors) { in TruncatedFilter()
49 public ScanFilter getFilter() { in getFilter()
DBluetoothLeScanner.java148 List<ScanFilter> filters, ScanSettings settings, final ScanCallback callback) { in startScan()
178 @Nullable List<ScanFilter> filters, in startScan()
233 List<ScanFilter> filters, in startScanFromSource()
242 List<ScanFilter> filters, in startScan()
398 List<ScanFilter> scanFilters = new ArrayList<ScanFilter>(filterSize); in startTruncatedScan()
421 private final List<ScanFilter> mFilters;
436 List<ScanFilter> filters, in BleScanCallbackWrapper()
701 ScanSettings settings, List<ScanFilter> filterList) { in isSettingsAndFilterComboAllowed()
711 for (ScanFilter filter : filterList) { in isSettingsAndFilterComboAllowed()
DScanFilter.java55 public final class ScanFilter implements Parcelable { class
86 public static final ScanFilter EMPTY = new ScanFilter.Builder().build();
88 private ScanFilter( in ScanFilter() method in ScanFilter
216 public static final @android.annotation.NonNull Creator<ScanFilter> CREATOR =
217 new Creator<ScanFilter>() {
220 public ScanFilter[] newArray(int size) {
221 return new ScanFilter[size];
225 public ScanFilter createFromParcel(Parcel in) {
665 ScanFilter other = (ScanFilter) obj; in equals()
1127 public ScanFilter build() { in build()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/
DScanClient.java19 import android.bluetooth.le.ScanFilter;
34 public List<ScanFilter> filters;
56 public ScanClient(int scannerId, ScanSettings settings, List<ScanFilter> filters) { in ScanClient()
60 public ScanClient(int scannerId, ScanSettings settings, List<ScanFilter> filters, int appUid) { in ScanClient()
/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/le/
DScanFilterTest.java37 new ScanFilter.Builder() in testIrkFilterParcelable()
47 ScanFilter filterFromParcel = ScanFilter.CREATOR.createFromParcel(parcel); in testIrkFilterParcelable()
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/ble/
DBleDiscoveryScanProvider.java23 import android.bluetooth.le.ScanFilter;
183 private List<ScanFilter> getScanFilters() { in getScanFilters()
184 List<ScanFilter> scanFilterList = new ArrayList<ScanFilter>(); in getScanFilters()
190 new ScanFilter.Builder().setServiceUuid(UuidConstants.FIRA_CP_PARCEL_UUID).build()); in getScanFilters()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bass_client/
DBassUtils.java19 import android.bluetooth.le.ScanFilter;
30 static boolean containUuid(List<ScanFilter> filters, ParcelUuid uuid) { in containUuid()
31 for (ScanFilter filter : filters) { in containUuid()
DBluetoothLeScannerWrapper.java21 import android.bluetooth.le.ScanFilter;
37 List<ScanFilter> filters, ScanSettings settings, final ScanCallback callback) { in startScan()
/packages/apps/Settings/src/com/android/settings/accessibility/
DHearingDevicePairingFragment.java33 import android.bluetooth.le.ScanFilter;
96 private List<ScanFilter> mLeScanFilters;
409 new ScanFilter.Builder().setServiceUuid(BluetoothUuid.HEARING_AID).build()); in initHearingDeviceLeScanFilters()
410 mLeScanFilters.add(new ScanFilter.Builder() in initHearingDeviceLeScanFilters()
413 mLeScanFilters.add(new ScanFilter.Builder().setServiceUuid(BluetoothUuid.HAS).build()); in initHearingDeviceLeScanFilters()
414 mLeScanFilters.add(new ScanFilter.Builder() in initHearingDeviceLeScanFilters()
417 mLeScanFilters.add(new ScanFilter.Builder().setServiceUuid(BluetoothUuid.MFI_HAS).build()); in initHearingDeviceLeScanFilters()
418 mLeScanFilters.add(new ScanFilter.Builder() in initHearingDeviceLeScanFilters()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DBleScanReceiver.java24 import android.bluetooth.le.ScanFilter;
52 private List<ScanFilter> mScanFilterList;
108 mScanFilterList = new ArrayList<ScanFilter>(); in BleScanListener()
112 ScanFilter scanFilterDeviceName = new ScanFilter.Builder().setDeviceName( in BleScanListener()
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetoothScan.aidl21 import android.bluetooth.le.ScanFilter;
40 void startScan(in int scannerId, in ScanSettings settings, in List<ScanFilter> filters, in startScan()
43 …void startScanForIntent(in PendingIntent intent, in ScanSettings settings, in List<ScanFilter> fil… in startScanForIntent()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_scan/
DAppScanStatsTest.java23 import android.bluetooth.le.ScanFilter;
110 List<ScanFilter> filters = new ArrayList<>(); in testDump_doesNotCrash()
111 filters.add(new ScanFilter.Builder().setDeviceName("TestName").build()); in testDump_doesNotCrash()

123