Home
last modified time | relevance | path

Searched refs:filter (Results 1 – 25 of 906) sorted by relevance

12345678910>>...37

/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/common/ble/
DBleFilterTest.java101 BleFilter filter = mFilterBuilder.setDeviceName("Ped").build(); in setNameFilter() local
102 assertThat(filter.matches(mBleSighting)).isTrue(); in setNameFilter()
104 filter = mFilterBuilder.setDeviceName("Pem").build(); in setNameFilter()
105 assertThat(filter.matches(mBleSighting)).isFalse(); in setNameFilter()
110 BleFilter filter = in setServiceUuidFilter() local
114 assertThat(filter.matches(mBleSighting)).isTrue(); in setServiceUuidFilter()
116 filter = in setServiceUuidFilter()
120 assertThat(filter.matches(mBleSighting)).isFalse(); in setServiceUuidFilter()
122 filter = in setServiceUuidFilter()
128 assertThat(filter.matches(mBleSighting)).isTrue(); in setServiceUuidFilter()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DScanFilterQueue.java187 void addScanFilter(ScanFilter filter) { in addScanFilter() argument
188 if (filter == null) { in addScanFilter()
191 if (filter.getDeviceName() != null) { in addScanFilter()
192 addName(filter.getDeviceName()); in addScanFilter()
194 if (filter.getDeviceAddress() != null) { in addScanFilter()
200 addDeviceAddress(filter.getDeviceAddress(), (byte) filter.getAddressType(), in addScanFilter()
201 filter.getIrk()); in addScanFilter()
203 if (filter.getServiceUuid() != null) { in addScanFilter()
204 if (filter.getServiceUuidMask() == null) { in addScanFilter()
205 addUuid(filter.getServiceUuid().getUuid()); in addScanFilter()
[all …]
DAppScanStats.java220 for (ScanFilter filter : filters) { in recordScanStart()
222 "\n └ " + filterToStringWithoutNullParam(filter); in recordScanStart()
389 private static String filterToStringWithoutNullParam(ScanFilter filter) { in filterToStringWithoutNullParam() argument
391 if (filter.getDeviceName() != null) { in filterToStringWithoutNullParam()
392 filterString += " DeviceName=" + filter.getDeviceName(); in filterToStringWithoutNullParam()
394 if (filter.getDeviceAddress() != null) { in filterToStringWithoutNullParam()
395 filterString += " DeviceAddress=" + filter.getDeviceAddress(); in filterToStringWithoutNullParam()
397 if (filter.getServiceUuid() != null) { in filterToStringWithoutNullParam()
398 filterString += " ServiceUuid=" + filter.getServiceUuid(); in filterToStringWithoutNullParam()
400 if (filter.getServiceUuidMask() != null) { in filterToStringWithoutNullParam()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DMessagesFilterTest.java33 MessagesFilter filter = new MessagesFilter(); in setOriginator() local
36 filter.setOriginator(originator); in setOriginator()
37 assertThat(filter.originator).isEqualTo(originator); in setOriginator()
39 filter.setOriginator(""); in setOriginator()
40 assertThat(filter.originator).isEqualTo(null); // Empty string is stored as null in setOriginator()
42 filter.setOriginator(null); in setOriginator()
43 assertThat(filter.originator).isEqualTo(null); in setOriginator()
48 MessagesFilter filter = new MessagesFilter(); in setPriority() local
51 filter.setPriority(priority); in setPriority()
53 assertThat(filter.priority).isEqualTo(priority); in setPriority()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DDefaultContactListAdapter.java70 final ContactListFilter filter = getFilter(); in configureLoader() local
71 configureUri(loader, directoryId, filter); in configureLoader()
90 final ContactListFilter filter = getFilter(); in configureLoader() local
91 configureUri(loader, directoryId, filter); in configureLoader()
92 if (filter != null in configureLoader()
93 && (filter.filterType == ContactListFilter.FILTER_TYPE_DEVICE_CONTACTS in configureLoader()
94 || filter.filterType == ContactListFilter.FILTER_TYPE_SIM_CONTACTS)) { in configureLoader()
99 configureSelection(loader, directoryId, filter); in configureLoader()
119 final ContactListFilter filter = getFilter(); in isGroupMembersFilter() local
120 return filter != null && filter.filterType == ContactListFilter.FILTER_TYPE_GROUP_MEMBERS; in isGroupMembersFilter()
[all …]
DDefaultContactBrowseListFragment.java314 final ContactListFilter filter = getFilter(); in bindListHeader() local
317 if (!isSearchMode() && numberOfContacts <= 0 && shouldShowEmptyView(filter)) { in bindListHeader()
318 if (filter != null && filter.isContactsFilterType()) { in bindListHeader()
328 } else if (filter.filterType == ContactListFilter.FILTER_TYPE_CUSTOM) { in bindListHeader()
330 } else if (filter.filterType != ContactListFilter.FILTER_TYPE_ALL_ACCOUNTS) { in bindListHeader()
332 filter.accountName, filter.accountType, filter.dataSet); in bindListHeader()
345 private boolean shouldShowEmptyView(ContactListFilter filter) { in shouldShowEmptyView() argument
346 if (filter == null) { in shouldShowEmptyView()
350 if (ContactListFilter.FILTER_TYPE_DEFAULT == filter.filterType in shouldShowEmptyView()
351 || ContactListFilter.FILTER_TYPE_ALL_ACCOUNTS == filter.filterType) { in shouldShowEmptyView()
[all …]
DContactListFilter.java239 public static void storeToPreferences(SharedPreferences prefs, ContactListFilter filter) { in storeToPreferences() argument
240 if (filter != null && filter.filterType == FILTER_TYPE_SINGLE_CONTACT) { in storeToPreferences()
244 .putInt(KEY_FILTER_TYPE, filter == null ? FILTER_TYPE_DEFAULT : filter.filterType) in storeToPreferences()
245 .putString(KEY_ACCOUNT_NAME, filter == null ? null : filter.accountName) in storeToPreferences()
246 .putString(KEY_ACCOUNT_TYPE, filter == null ? null : filter.accountType) in storeToPreferences()
247 .putString(KEY_DATA_SET, filter == null ? null : filter.dataSet) in storeToPreferences()
256 ContactListFilter filter = restoreFromPreferences(prefs); in restoreDefaultPreferences() local
257 if (filter == null) { in restoreDefaultPreferences()
258 filter = ContactListFilter.createFilterWithType(FILTER_TYPE_ALL_ACCOUNTS); in restoreDefaultPreferences()
262 if (filter.filterType == FILTER_TYPE_GROUP || in restoreDefaultPreferences()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DAccountFilterUtil.java87 final ContactListFilter filter = (ContactListFilter) in handleAccountFilterResult() local
89 if (filter == null) { in handleAccountFilterResult()
92 if (filter.filterType == ContactListFilter.FILTER_TYPE_CUSTOM) { in handleAccountFilterResult()
95 filterController.setContactListFilter(filter, /* persistent */ in handleAccountFilterResult()
96 filter.filterType == ContactListFilter.FILTER_TYPE_ALL_ACCOUNTS); in handleAccountFilterResult()
180 public static void startEditorIntent(Context context, Intent src, ContactListFilter filter) {
187 if (!isAllContactsFilter(filter) && filter.accountName != null
188 && filter.accountType != null) {
189 final Account account = new Account(filter.accountName, filter.accountType);
191 intent.putExtra(Intents.Insert.EXTRA_DATA_SET, filter.dataSet);
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/
DIncomingCallFilterGraph.java61 public PostFilterTask(final CallFilter filter) { in PostFilterTask() argument
62 mFilter = filter; in PostFilterTask()
68 for (CallFilter filter : mFilter.getFollowings()) { in whenDone()
69 if (filter.decrementAndGetIndegree() == 0) { in whenDone()
70 scheduleFilter(filter); in whenDone()
101 public void addFilter(CallFilter filter) { in addFilter() argument
102 mFiltersList.add(filter); in addFilter()
110 for (CallFilter filter : mFiltersList) { in performFiltering()
111 addEdge(dummyStart, filter); in performFiltering()
113 for (CallFilter filter : mFiltersList) { in performFiltering()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/
DRequestGetMessagesListing.java39 RequestGetMessagesListing(String folderName, int parameters, MessagesFilter filter, in RequestGetMessagesListing() argument
63 if (filter != null) { in RequestGetMessagesListing()
64 if (filter.messageType != MessagesFilter.MESSAGE_TYPE_ALL) { in RequestGetMessagesListing()
65 oap.add(OAP_TAGID_FILTER_MESSAGE_TYPE, filter.messageType); in RequestGetMessagesListing()
68 if (filter.periodBegin != null) { in RequestGetMessagesListing()
69 oap.add(OAP_TAGID_FILTER_PERIOD_BEGIN, filter.periodBegin); in RequestGetMessagesListing()
72 if (filter.periodEnd != null) { in RequestGetMessagesListing()
73 oap.add(OAP_TAGID_FILTER_PERIOD_END, filter.periodEnd); in RequestGetMessagesListing()
76 if (filter.readStatus != MessagesFilter.READ_STATUS_ANY) { in RequestGetMessagesListing()
77 oap.add(OAP_TAGID_FILTER_READ_STATUS, filter.readStatus); in RequestGetMessagesListing()
[all …]
DMessagesFilter.java44 public void setMessageType(byte filter) { in setMessageType() argument
45 messageType = filter; in setMessageType()
62 public void setRecipient(String filter) { in setRecipient() argument
63 if (filter != null && filter.isEmpty()) { in setRecipient()
66 recipient = filter; in setRecipient()
70 public void setOriginator(String filter) { in setOriginator() argument
71 if (filter != null && filter.isEmpty()) { in setOriginator()
74 originator = filter; in setOriginator()
78 public void setPriority(byte filter) { in setPriority() argument
79 priority = filter; in setPriority()
/packages/apps/Dialer/java/com/android/contacts/common/util/
DAccountFilterUtil.java33 View filterContainer, ContactListFilter filter, boolean showTitleForAllAccounts) { in updateAccountFilterTitleForPhone() argument
34 return updateAccountFilterTitle(filterContainer, filter, showTitleForAllAccounts, true); in updateAccountFilterTitleForPhone()
39 ContactListFilter filter, in updateAccountFilterTitle() argument
47 if (filter != null) { in updateAccountFilterTitle()
49 if (filter.filterType == ContactListFilter.FILTER_TYPE_ALL_ACCOUNTS) { in updateAccountFilterTitle()
54 } else if (filter.filterType == ContactListFilter.FILTER_TYPE_ACCOUNT) { in updateAccountFilterTitle()
56 context.getString(R.string.listAllContactsInAccount, filter.accountName)); in updateAccountFilterTitle()
58 } else if (filter.filterType == ContactListFilter.FILTER_TYPE_CUSTOM) { in updateAccountFilterTitle()
63 if (filter.filterType == ContactListFilter.FILTER_TYPE_ALL_ACCOUNTS) { in updateAccountFilterTitle()
68 } else if (filter.filterType == ContactListFilter.FILTER_TYPE_ACCOUNT) { in updateAccountFilterTitle()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/list/
DContactListFilter.java97 public static void storeToPreferences(SharedPreferences prefs, ContactListFilter filter) { in storeToPreferences() argument
98 if (filter != null && filter.filterType == FILTER_TYPE_SINGLE_CONTACT) { in storeToPreferences()
103 .putInt(KEY_FILTER_TYPE, filter == null ? FILTER_TYPE_DEFAULT : filter.filterType) in storeToPreferences()
104 .putString(KEY_ACCOUNT_NAME, filter == null ? null : filter.accountName) in storeToPreferences()
105 .putString(KEY_ACCOUNT_TYPE, filter == null ? null : filter.accountType) in storeToPreferences()
106 .putString(KEY_DATA_SET, filter == null ? null : filter.dataSet) in storeToPreferences()
115 ContactListFilter filter = restoreFromPreferences(prefs); in restoreDefaultPreferences() local
116 if (filter == null) { in restoreDefaultPreferences()
117 filter = ContactListFilter.createFilterWithType(FILTER_TYPE_ALL_ACCOUNTS); in restoreDefaultPreferences()
121 if (filter.filterType == FILTER_TYPE_GROUP || filter.filterType == FILTER_TYPE_SINGLE_CONTACT) { in restoreDefaultPreferences()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DFilterEnvironment.java112 ImageFilter filter = mFiltersManager.getFilterForRepresentation(representation); in applyRepresentation() local
113 filter.useRepresentation(representation); in applyRepresentation()
114 filter.setEnvironment(this); in applyRepresentation()
115 if (filter.supportsAllocationInput()) { in applyRepresentation()
116 filter.apply(in, out); in applyRepresentation()
118 filter.setGeneralParameters(); in applyRepresentation()
119 filter.setEnvironment(null); in applyRepresentation()
129 ImageFilter filter = mFiltersManager.getFilterForRepresentation(representation); in applyRepresentation() local
130 if (filter == null){ in applyRepresentation()
133 filter.useRepresentation(representation); in applyRepresentation()
[all …]
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDeviceFilter.java227 UsbDeviceFilter filter = (UsbDeviceFilter) obj; in equals() local
229 if (filter.mVendorId != mVendorId in equals()
230 || filter.mProductId != mProductId in equals()
231 || filter.mClass != mClass in equals()
232 || filter.mSubclass != mSubclass in equals()
233 || filter.mProtocol != mProtocol) { in equals()
236 if ((filter.mManufacturerName != null && mManufacturerName == null) in equals()
237 || (filter.mManufacturerName == null && mManufacturerName != null) in equals()
238 || (filter.mProductName != null && mProductName == null) in equals()
239 || (filter.mProductName == null && mProductName != null) in equals()
[all …]
DUsbDeviceHandlerResolver.java138 UsbDeviceFilter filter = in dispatch() local
141 if (filter != null) { in dispatch()
149 ComponentName.unflattenFromString(filter.mAoapService))) { in dispatch()
151 requestAoapSwitch(device, filter); in dispatch()
158 + " handled by " + filter.mAoapService); in dispatch()
222 private void requestAoapSwitch(UsbDevice device, UsbDeviceFilter filter) throws IOException { in requestAoapSwitch() argument
233 filter.mAoapManufacturer, in requestAoapSwitch()
234 filter.mAoapModel, in requestAoapSwitch()
235 filter.mAoapDescription, in requestAoapSwitch()
236 filter.mAoapVersion, in requestAoapSwitch()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallScreeningServiceFilterTest.java144 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, null, in testNoPackageName() local
148 filter.startFilterLookup(inputResult).toCompletableFuture().get( in testNoPackageName()
158 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testContextFailToBind() local
162 filter.startFilterLookup(inputResult).toCompletableFuture().get( in testContextFailToBind()
172 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testNoResolveEntries() local
176 filter.startFilterLookup(inputResult).toCompletableFuture().get( in testNoResolveEntries()
185 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testBadResolveEntry() local
189 filter.startFilterLookup(inputResult).toCompletableFuture().get( in testBadResolveEntry()
204 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testNoBindingCondition() local
207 filter.startFilterLookup(inputResult); in testNoBindingCondition()
[all …]
/packages/services/Car/service/src/com/android/car/user/
DAppLifecycleListener.java60 @Nullable UserLifecycleEventFilter filter, BinderDeathCallback binderDeathCallback) { in AppLifecycleListener() argument
64 if (filter != null) { in AppLifecycleListener()
67 + " is initialized with filter %s.", receiver, packageName, filter); in AppLifecycleListener()
70 mFilters.add(filter); in AppLifecycleListener()
87 void addFilter(@Nullable UserLifecycleEventFilter filter) { in addFilter() argument
92 + " a null filter added before.", filter, this); in addFilter()
96 if (filter == null) { in addFilter()
106 filter, this); in addFilter()
108 mFilters.add(filter); in addFilter()
125 UserLifecycleEventFilter filter = mFilters.get(i); in applyFilters() local
[all …]
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/applications/manageapplications/
DManageApplicationsUnitTest.java44 AppFilter filter = in getCompositeFilter_filtersVolumeForAudio() local
55 assertThat(filter.filterApp(appEntry)).isTrue(); in getCompositeFilter_filtersVolumeForAudio()
60 AppFilter filter = in getCompositeFilter_filtersVolumeForVideo() local
71 assertThat(filter.filterApp(appEntry)).isTrue(); in getCompositeFilter_filtersVolumeForVideo()
76 ApplicationsState.AppFilter filter = in getCompositeFilter_filtersVolumeForGames() local
87 assertThat(filter.filterApp(appEntry)).isTrue(); in getCompositeFilter_filtersVolumeForGames()
92 ApplicationsState.AppFilter filter = in getCompositeFilter_isEmptyNormally() local
97 assertThat(filter).isNull(); in getCompositeFilter_isEmptyNormally()
106 AppFilter filter = in getCompositeFilter_worksWithInstantApps() local
111 AppFilter composedFilter = new CompoundFilter(ApplicationsState.FILTER_INSTANT, filter); in getCompositeFilter_worksWithInstantApps()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/managedomainurls/
DDomainUrlsUtilsTest.java128 IntentFilter filter = new IntentFilter(); in getHandledDomains_includeBrowsableIntentFiltersWithHttpDataScheme() local
129 filter.addCategory(Intent.CATEGORY_BROWSABLE); in getHandledDomains_includeBrowsableIntentFiltersWithHttpDataScheme()
130 filter.addDataScheme(IntentFilter.SCHEME_HTTP); in getHandledDomains_includeBrowsableIntentFiltersWithHttpDataScheme()
131 filter.addDataAuthority(new IntentFilter.AuthorityEntry(domain, port)); in getHandledDomains_includeBrowsableIntentFiltersWithHttpDataScheme()
135 .thenReturn(Arrays.asList(filter)); in getHandledDomains_includeBrowsableIntentFiltersWithHttpDataScheme()
147 IntentFilter filter = new IntentFilter(); in getHandledDomains_includeBrowsableIntentFiltersWithHttpsDataScheme() local
148 filter.addCategory(Intent.CATEGORY_BROWSABLE); in getHandledDomains_includeBrowsableIntentFiltersWithHttpsDataScheme()
149 filter.addDataScheme(IntentFilter.SCHEME_HTTPS); in getHandledDomains_includeBrowsableIntentFiltersWithHttpsDataScheme()
150 filter.addDataAuthority(new IntentFilter.AuthorityEntry(domain, port)); in getHandledDomains_includeBrowsableIntentFiltersWithHttpsDataScheme()
154 .thenReturn(Arrays.asList(filter)); in getHandledDomains_includeBrowsableIntentFiltersWithHttpsDataScheme()
[all …]
/packages/services/Car/service/src/com/android/car/pm/
DTEST_MAPPING7 "include-filter": "com.android.car.pm.CarPackageManagerServiceTest"
10 "include-filter": "com.android.car.CarPackageManagerTest"
18 "include-filter": "com.android.car.pm.CarPackageManagerServiceUnitTest"
21 "include-filter": "com.android.car.pm.VendorServiceControllerTest"
24 "include-filter": "com.android.car.pm.VendorServiceInfoTest"
27 "include-filter": "com.android.car.pm.CarSafetyAccessibilityServiceTest"
30 "include-filter": "com.android.car.pm.WindowDumpParserTest"
38 "include-filter": "android.car.apitest.CarPackageManagerTest"
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DEpdgSelector.java157 String domainName, int filter, List<InetAddress> validIpList, Network network) { in getIP() argument
210 switch (filter) { in getIP()
225 Log.d(TAG, "Invalid ProtoFilter : " + filter); in getIP()
341 int filter, List<InetAddress> validIpList, boolean isRoaming, Network network) { in resolutionMethodStatic() argument
365 getIP(domainName, filter, validIpList, network); in resolutionMethodStatic()
397 int filter, List<InetAddress> validIpList, boolean isEmergency, Network network) { in resolutionMethodPlmn() argument
423 getIP(domainName.toString(), filter, validIpList, network); in resolutionMethodPlmn() local
435 getIP(domainName.toString(), filter, validIpList, network); in resolutionMethodPlmn()
443 int filter, List<InetAddress> validIpList, boolean isEmergency, Network network) { in resolutionMethodCellularLoc() argument
473 lacDomainNameResolution(filter, validIpList, lacString, isEmergency, network); in resolutionMethodCellularLoc()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/
DBluetoothPbapUtils.java121 private static boolean hasFilter(byte[] filter) { in hasFilter() argument
122 return filter != null && filter.length > 0; in hasFilter()
125 private static boolean isFilterBitSet(byte[] filter, int filterBit) { in isFilterBitSet() argument
126 if (hasFilter(filter)) { in isFilterBitSet()
129 if (byteNumber < filter.length) { in isFilterBitSet()
130 return (filter[byteNumber] & (1 << bitNumber)) > 0; in isFilterBitSet()
137 final byte[] filter) { in createFilteredVCardComposer() argument
140 BluetoothPbapConfig.includePhotosInVcard() && (!hasFilter(filter) || isFilterBitSet( in createFilteredVCardComposer()
141 filter, FILTER_PHOTO)); in createFilteredVCardComposer()
148 if (hasFilter(filter)) { in createFilteredVCardComposer()
[all …]
/packages/modules/Bluetooth/android/pandora/server/src/com/android/pandora/
DA2dp.kt37 import kotlinx.coroutines.flow.filter
90 .filter { it.getAction() == BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED } in openSource()
91 .filter { it.getBluetoothDeviceExtra() == device } in openSource()
93 .filter { in openSource()
128 .filter { it.getAction() == BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED } in waitSource()
129 .filter { it.getBluetoothDeviceExtra() == device } in waitSource()
131 .filter { in waitSource()
168 .filter { it.getAction() == BluetoothA2dp.ACTION_PLAYING_STATE_CHANGED } in start()
169 .filter { it.getBluetoothDeviceExtra() == device } in start()
171 .filter { it == BluetoothA2dp.STATE_PLAYING } in start()
[all …]
/packages/services/Car/cpp/powerpolicy/server/tests/
DCarPowerPolicyServerTest.cpp85 const CarPowerPolicyFilter& filter) { in registerPowerPolicyChangeCallback() argument
86 return mServerProxy->registerPowerPolicyChangeCallback(callback, filter); in registerPowerPolicyChangeCallback()
166 CarPowerPolicyFilter filter; in TEST_F() local
167 ScopedAStatus status = server->registerPowerPolicyChangeCallback(callbackOne, filter); in TEST_F()
169 status = server->registerPowerPolicyChangeCallback(callbackOne, filter); in TEST_F()
171 filter.components = {PowerComponent::BLUETOOTH, PowerComponent::AUDIO}; in TEST_F()
172 status = server->registerPowerPolicyChangeCallback(callbackOne, filter); in TEST_F()
178 status = server->registerPowerPolicyChangeCallback(callbackTwo, filter); in TEST_F()
186 CarPowerPolicyFilter filter; in TEST_F() local
188 ASSERT_FALSE(server->registerPowerPolicyChangeCallback(callback, filter).isOk()) in TEST_F()
[all …]

12345678910>>...37