/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | ScanFilterQueue.java | 174 void addScanFilter(ScanFilter filter) { in addScanFilter() argument 175 if (filter == null) { in addScanFilter() 178 if (filter.getDeviceName() != null) { in addScanFilter() 179 addName(filter.getDeviceName()); in addScanFilter() 181 if (filter.getDeviceAddress() != null) { in addScanFilter() 182 addDeviceAddress(filter.getDeviceAddress(), DEVICE_TYPE_ALL); in addScanFilter() 184 if (filter.getServiceUuid() != null) { in addScanFilter() 185 if (filter.getServiceUuidMask() == null) { in addScanFilter() 186 addUuid(filter.getServiceUuid().getUuid()); in addScanFilter() 188 addUuid(filter.getServiceUuid().getUuid(), filter.getServiceUuidMask().getUuid()); in addScanFilter() [all …]
|
D | AppScanStats.java | 213 for (ScanFilter filter : filters) { in recordScanStart() 215 "\n └ " + filterToStringWithoutNullParam(filter); in recordScanStart() 375 private static String filterToStringWithoutNullParam(ScanFilter filter) { in filterToStringWithoutNullParam() argument 377 if (filter.getDeviceName() != null) { in filterToStringWithoutNullParam() 378 filterString += " DeviceName=" + filter.getDeviceName(); in filterToStringWithoutNullParam() 380 if (filter.getDeviceAddress() != null) { in filterToStringWithoutNullParam() 381 filterString += " DeviceAddress=" + filter.getDeviceAddress(); in filterToStringWithoutNullParam() 383 if (filter.getServiceUuid() != null) { in filterToStringWithoutNullParam() 384 filterString += " ServiceUuid=" + filter.getServiceUuid(); in filterToStringWithoutNullParam() 386 if (filter.getServiceUuidMask() != null) { in filterToStringWithoutNullParam() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | CrossProfileIntentFilterTest.java | 50 CrossProfileIntentFilter filter = in testBuilder() local 63 assertEquals(TEST_DIRECTION, filter.direction); in testBuilder() 64 assertEquals(TEST_FLAGS, filter.flags); in testBuilder() 65 assertEquals(TEST_LETSDATAINTOPROFILE, filter.letsPersonalDataIntoProfile); in testBuilder() 67 assertEquals(ACTION_1, filter.filter.getAction(0)); in testBuilder() 68 assertEquals(ACTION_2, filter.filter.getAction(1)); in testBuilder() 69 assertEquals(CATEGORY_1, filter.filter.getCategory(0)); in testBuilder() 70 assertEquals(CATEGORY_2, filter.filter.getCategory(1)); in testBuilder() 71 assertEquals(SCHEME_1, filter.filter.getDataScheme(0)); in testBuilder() 72 assertEquals(SCHEME_2, filter.filter.getDataScheme(1)); in testBuilder() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | DefaultContactListAdapter.java | 70 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() 98 configureSelection(loader, directoryId, filter); in configureLoader() 118 final ContactListFilter filter = getFilter(); in isGroupMembersFilter() local 119 return filter != null && filter.filterType == ContactListFilter.FILTER_TYPE_GROUP_MEMBERS; in isGroupMembersFilter() 133 protected void configureUri(CursorLoader loader, long directoryId, ContactListFilter filter) { in configureUri() argument [all …]
|
D | DefaultContactBrowseListFragment.java | 311 final ContactListFilter filter = getFilter(); in bindListHeader() local 314 if (!isSearchMode() && numberOfContacts <= 0 && shouldShowEmptyView(filter)) { in bindListHeader() 315 if (filter != null && filter.isContactsFilterType()) { in bindListHeader() 325 } else if (filter.filterType == ContactListFilter.FILTER_TYPE_CUSTOM) { in bindListHeader() 327 } else if (filter.filterType != ContactListFilter.FILTER_TYPE_ALL_ACCOUNTS) { in bindListHeader() 329 filter.accountName, filter.accountType, filter.dataSet); in bindListHeader() 342 private boolean shouldShowEmptyView(ContactListFilter filter) { in shouldShowEmptyView() argument 343 if (filter == null) { in shouldShowEmptyView() 347 if (ContactListFilter.FILTER_TYPE_DEFAULT == filter.filterType in shouldShowEmptyView() 348 || ContactListFilter.FILTER_TYPE_ALL_ACCOUNTS == filter.filterType) { in shouldShowEmptyView() [all …]
|
D | ContactListFilter.java | 232 public static void storeToPreferences(SharedPreferences prefs, ContactListFilter filter) { in storeToPreferences() argument 233 if (filter != null && filter.filterType == FILTER_TYPE_SINGLE_CONTACT) { in storeToPreferences() 237 .putInt(KEY_FILTER_TYPE, filter == null ? FILTER_TYPE_DEFAULT : filter.filterType) in storeToPreferences() 238 .putString(KEY_ACCOUNT_NAME, filter == null ? null : filter.accountName) in storeToPreferences() 239 .putString(KEY_ACCOUNT_TYPE, filter == null ? null : filter.accountType) in storeToPreferences() 240 .putString(KEY_DATA_SET, filter == null ? null : filter.dataSet) in storeToPreferences() 249 ContactListFilter filter = restoreFromPreferences(prefs); in restoreDefaultPreferences() local 250 if (filter == null) { in restoreDefaultPreferences() 251 filter = ContactListFilter.createFilterWithType(FILTER_TYPE_ALL_ACCOUNTS); in restoreDefaultPreferences() 255 if (filter.filterType == FILTER_TYPE_GROUP || in restoreDefaultPreferences() [all …]
|
D | AccountFilterActivity.java | 88 final ContactListFilter filter = (ContactListFilter) view.getTag(); in onItemClick() local 89 if (filter == null) return; // Just in case in onItemClick() 90 if (filter.filterType == ContactListFilter.FILTER_TYPE_CUSTOM) { in onItemClick() 106 intent.putExtra(EXTRA_CONTACT_LIST_FILTER, filter); in onItemClick() 127 ContactListFilter filter = ContactListFilter.createFilterWithType( in onActivityResult() local 129 intent.putExtra(EXTRA_CONTACT_LIST_FILTER, filter); in onActivityResult() 176 final ContactListFilter filter = mFilters.get(position); in getView() local 177 view.setContactListFilter(filter); in getView() 179 view.setTag(filter); in getView() 180 view.setActivated(filter.filterType == mCurrentFilter); in getView()
|
D | ContactListFilterController.java | 72 public abstract void setContactListFilter(ContactListFilter filter, boolean persistent); in setContactListFilter() argument 124 final ContactListFilter filter = getPersistedFilter(); in isCustomFilterPersisted() local 125 return filter != null && filter.filterType == ContactListFilter.FILTER_TYPE_CUSTOM; in isCustomFilterPersisted() 138 public void setContactListFilter(ContactListFilter filter, boolean persistent) { in setContactListFilter() argument 139 setContactListFilter(filter, persistent, /* notifyListeners */ true); in setContactListFilter() 142 private void setContactListFilter(ContactListFilter filter, boolean persistent, in setContactListFilter() argument 144 if (!filter.equals(mFilter)) { in setContactListFilter() 145 mFilter = filter; in setContactListFilter()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | AccountFilterUtil.java | 97 final ContactListFilter filter = (ContactListFilter) in handleAccountFilterResult() local 99 if (filter == null) { in handleAccountFilterResult() 102 if (filter.filterType == ContactListFilter.FILTER_TYPE_CUSTOM) { in handleAccountFilterResult() 105 filterController.setContactListFilter(filter, /* persistent */ in handleAccountFilterResult() 106 filter.filterType == ContactListFilter.FILTER_TYPE_ALL_ACCOUNTS); in handleAccountFilterResult() 187 public static void startEditorIntent(Context context, Intent src, ContactListFilter filter) { 194 if (!isAllContactsFilter(filter) && filter.accountName != null 195 && filter.accountType != null) { 196 final Account account = new Account(filter.accountName, filter.accountType); 198 intent.putExtra(Intents.Insert.EXTRA_DATA_SET, filter.dataSet); [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/ |
D | IncomingCallFilterGraph.java | 61 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/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
D | RequestGetMessagesListing.java | 38 RequestGetMessagesListing(String folderName, int parameters, MessagesFilter filter, in RequestGetMessagesListing() argument 62 if (filter != null) { in RequestGetMessagesListing() 63 if (filter.messageType != MessagesFilter.MESSAGE_TYPE_ALL) { in RequestGetMessagesListing() 64 oap.add(OAP_TAGID_FILTER_MESSAGE_TYPE, filter.messageType); in RequestGetMessagesListing() 67 if (filter.periodBegin != null) { in RequestGetMessagesListing() 68 oap.add(OAP_TAGID_FILTER_PERIOD_BEGIN, filter.periodBegin); in RequestGetMessagesListing() 71 if (filter.periodEnd != null) { in RequestGetMessagesListing() 72 oap.add(OAP_TAGID_FILTER_PERIOD_END, filter.periodEnd); in RequestGetMessagesListing() 75 if (filter.readStatus != MessagesFilter.READ_STATUS_ANY) { in RequestGetMessagesListing() 76 oap.add(OAP_TAGID_FILTER_READ_STATUS, filter.readStatus); in RequestGetMessagesListing() [all …]
|
D | MessagesFilter.java | 44 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/list/ |
D | ContactListFilter.java | 97 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/Dialer/java/com/android/contacts/common/util/ |
D | AccountFilterUtil.java | 33 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/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | FilterEnvironment.java | 112 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/ |
D | UsbDeviceHandlerResolver.java | 124 UsbDeviceFilter filter = in dispatch() local 127 if (filter != null) { in dispatch() 130 ComponentName.unflattenFromString(filter.mAoapService))) { in dispatch() 131 requestAoapSwitch(device, filter); in dispatch() 134 + " handled by " + filter.mAoapService); in dispatch() 192 private void requestAoapSwitch(UsbDevice device, UsbDeviceFilter filter) { in requestAoapSwitch() argument 201 filter.mAoapManufacturer, in requestAoapSwitch() 202 filter.mAoapModel, in requestAoapSwitch() 203 filter.mAoapDescription, in requestAoapSwitch() 204 filter.mAoapVersion, in requestAoapSwitch() [all …]
|
D | UsbDeviceFilter.java | 227 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 …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/managedomainurls/ |
D | DomainUrlsUtilsTest.java | 118 IntentFilter filter = new IntentFilter(); in getHandledDomains_includeBrowsableIntentFiltersWithHttpDataScheme() local 119 filter.addCategory(Intent.CATEGORY_BROWSABLE); in getHandledDomains_includeBrowsableIntentFiltersWithHttpDataScheme() 120 filter.addDataScheme(IntentFilter.SCHEME_HTTP); in getHandledDomains_includeBrowsableIntentFiltersWithHttpDataScheme() 121 filter.addDataAuthority(new IntentFilter.AuthorityEntry(domain, port)); in getHandledDomains_includeBrowsableIntentFiltersWithHttpDataScheme() 122 when(pm.getAllIntentFilters(TEST_PACKAGE)).thenReturn(Arrays.asList(filter)); in getHandledDomains_includeBrowsableIntentFiltersWithHttpDataScheme() 133 IntentFilter filter = new IntentFilter(); in getHandledDomains_includeBrowsableIntentFiltersWithHttpsDataScheme() local 134 filter.addCategory(Intent.CATEGORY_BROWSABLE); in getHandledDomains_includeBrowsableIntentFiltersWithHttpsDataScheme() 135 filter.addDataScheme(IntentFilter.SCHEME_HTTPS); in getHandledDomains_includeBrowsableIntentFiltersWithHttpsDataScheme() 136 filter.addDataAuthority(new IntentFilter.AuthorityEntry(domain, port)); in getHandledDomains_includeBrowsableIntentFiltersWithHttpsDataScheme() 137 when(pm.getAllIntentFilters(TEST_PACKAGE)).thenReturn(Arrays.asList(filter)); in getHandledDomains_includeBrowsableIntentFiltersWithHttpsDataScheme() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallScreeningServiceFilterTest.java | 132 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, null, in testNoPackageName() local 136 filter.startFilterLookup(inputResult).toCompletableFuture().get( in testNoPackageName() 146 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testContextFailToBind() local 150 filter.startFilterLookup(inputResult).toCompletableFuture().get( in testContextFailToBind() 160 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testNoResolveEntries() local 164 filter.startFilterLookup(inputResult).toCompletableFuture().get( in testNoResolveEntries() 173 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testBadResolveEntry() local 177 filter.startFilterLookup(inputResult).toCompletableFuture().get( in testBadResolveEntry() 192 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testNoBindingCondition() local 195 filter.startFilterLookup(inputResult); in testNoBindingCondition() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | MimeTypes.java | 86 public static boolean mimeMatches(String filter, String[] tests) { in mimeMatches() argument 91 if (mimeMatches(filter, test)) { in mimeMatches() 102 for (String filter : filters) { in mimeMatches() 103 if (mimeMatches(filter, test)) { in mimeMatches() 110 public static boolean mimeMatches(String filter, String test) { in mimeMatches() argument 113 } else if (filter == null || "*/*".equals(filter)) { in mimeMatches() 115 } else if (filter.equals(test)) { in mimeMatches() 117 } else if (filter.endsWith("/*")) { in mimeMatches() 118 return filter.regionMatches(0, test, 0, filter.indexOf('/')); in mimeMatches()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/manageapplications/ |
D | ManageApplicationsUnitTest.java | 44 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/LensPicker/src/com/android/support/car/lenspicker/ |
D | LensResolverActivity.java | 180 IntentFilter filter = buildIntentFilterForResolveInfo(info); in onActivitySelected() local 181 pm.addPreferredActivity(filter, info.match, mComponentSet, component); in onActivitySelected() 206 IntentFilter filter = new IntentFilter(); in buildIntentFilterForResolveInfo() local 217 filter.addAction(action); in buildIntentFilterForResolveInfo() 222 filter.addCategory(cat); in buildIntentFilterForResolveInfo() 225 filter.addCategory(Intent.CATEGORY_DEFAULT); in buildIntentFilterForResolveInfo() 233 filter.addDataType(mimeType); in buildIntentFilterForResolveInfo() 236 filter = null; in buildIntentFilterForResolveInfo() 246 filter.addDataScheme(data.getScheme()); in buildIntentFilterForResolveInfo() 250 Iterator<PatternMatcher> pIt = info.filter.schemeSpecificPartsIterator(); in buildIntentFilterForResolveInfo() [all …]
|
/packages/apps/Gallery2/res/raw/ |
D | goofy_face.graph | 47 @filter SurfaceTextureSource source { 55 @filter ToPackedGrayFilter toPackedGray { 61 @filter MultiFaceTrackerFilter faceTracker { 75 @filter GoofyFastRenderFilter goofyrenderer { 80 @filter SurfaceTextureTarget display { 87 // Orientation rotation filter 88 @filter FixedRotationFilter rotate { 92 // Orientation rotation filter for facemeta data 93 @filter FaceMetaFixedRotationFilter metarotate { 99 @filter MediaEncoderFilter recorder {
|
/packages/apps/LegacyCamera/res/raw/ |
D | goofy_face.graph | 47 @filter SurfaceTextureSource source { 55 @filter ToPackedGrayFilter toPackedGray { 61 @filter MultiFaceTrackerFilter faceTracker { 75 @filter GoofyFastRenderFilter goofyrenderer { 80 @filter SurfaceTargetFilter display { 86 // Orientation rotation filter 87 @filter FixedRotationFilter rotate { 91 // Orientation rotation filter for facemeta data 92 @filter FaceMetaFixedRotationFilter metarotate { 98 @filter MediaEncoderFilter recorder {
|
/packages/apps/Camera2/res/raw/ |
D | goofy_face.graph | 47 @filter SurfaceTextureSource source { 55 @filter ToPackedGrayFilter toPackedGray { 61 @filter MultiFaceTrackerFilter faceTracker { 75 @filter GoofyFastRenderFilter goofyrenderer { 80 @filter SurfaceTextureTarget display { 87 // Orientation rotation filter 88 @filter FixedRotationFilter rotate { 92 // Orientation rotation filter for facemeta data 93 @filter FaceMetaFixedRotationFilter metarotate { 99 @filter MediaEncoderFilter recorder {
|