/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | ScanFilterQueue.java | 176 void addScanFilter(ScanFilter filter) { in addScanFilter() argument 177 if (filter == null) { in addScanFilter() 180 if (filter.getDeviceName() != null) { in addScanFilter() 181 addName(filter.getDeviceName()); in addScanFilter() 183 if (filter.getDeviceAddress() != null) { in addScanFilter() 184 byte addressType = (byte) filter.getAddressType(); in addScanFilter() 189 addDeviceAddress(filter.getDeviceAddress(), in addScanFilter() 190 ((addressType == 0) ? DEVICE_TYPE_ALL : addressType), filter.getIrk()); in addScanFilter() 192 if (filter.getServiceUuid() != null) { in addScanFilter() 193 if (filter.getServiceUuidMask() == null) { in addScanFilter() [all …]
|
D | AppScanStats.java | 227 for (ScanFilter filter : filters) { in recordScanStart() 229 "\n └ " + filterToStringWithoutNullParam(filter); in recordScanStart() 392 private static String filterToStringWithoutNullParam(ScanFilter filter) { in filterToStringWithoutNullParam() argument 394 if (filter.getDeviceName() != null) { in filterToStringWithoutNullParam() 395 filterString += " DeviceName=" + filter.getDeviceName(); in filterToStringWithoutNullParam() 397 if (filter.getDeviceAddress() != null) { in filterToStringWithoutNullParam() 398 filterString += " DeviceAddress=" + filter.getDeviceAddress(); in filterToStringWithoutNullParam() 400 if (filter.getServiceUuid() != null) { in filterToStringWithoutNullParam() 401 filterString += " ServiceUuid=" + filter.getServiceUuid(); in filterToStringWithoutNullParam() 403 if (filter.getServiceUuidMask() != null) { in filterToStringWithoutNullParam() [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() 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 …]
|
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 | 239 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 …]
|
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()
|
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()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | AccountFilterUtil.java | 87 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/ |
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/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/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/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 | 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 …]
|
D | UsbDeviceHandlerResolver.java | 138 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/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 | 143 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, null, in testNoPackageName() local 147 filter.startFilterLookup(inputResult).toCompletableFuture().get( in testNoPackageName() 157 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testContextFailToBind() local 161 filter.startFilterLookup(inputResult).toCompletableFuture().get( in testContextFailToBind() 171 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testNoResolveEntries() local 175 filter.startFilterLookup(inputResult).toCompletableFuture().get( in testNoResolveEntries() 184 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testBadResolveEntry() local 188 filter.startFilterLookup(inputResult).toCompletableFuture().get( in testBadResolveEntry() 203 CallScreeningServiceFilter filter = new CallScreeningServiceFilter(mCall, PKG_NAME, in testNoBindingCondition() local 206 filter.startFilterLookup(inputResult); in testNoBindingCondition() [all …]
|
/packages/services/Car/cpp/powerpolicy/server/tests/ |
D | CarPowerPolicyServerTest.cpp | 72 const CarPowerPolicyFilter& filter) { in registerPowerPolicyChangeCallback() argument 73 return server->registerPowerPolicyChangeCallback(callback, filter); in registerPowerPolicyChangeCallback() 91 CarPowerPolicyFilter filter; in TEST_F() local 92 Status status = server->registerPowerPolicyChangeCallback(callbackOne, filter); in TEST_F() 94 status = server->registerPowerPolicyChangeCallback(callbackOne, filter); in TEST_F() 96 filter.components = {PowerComponent::BLUETOOTH, PowerComponent::AUDIO}; in TEST_F() 97 status = server->registerPowerPolicyChangeCallback(callbackOne, filter); in TEST_F() 103 status = server->registerPowerPolicyChangeCallback(callbackTwo, filter); in TEST_F() 111 CarPowerPolicyFilter filter; in TEST_F() local 113 ASSERT_FALSE(server->registerPowerPolicyChangeCallback(callback, filter).isOk()) in TEST_F() [all …]
|
/packages/apps/Settings/tests/legacy_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/services/Iwlan/src/com/google/android/iwlan/epdg/ |
D | EpdgSelector.java | 138 String domainName, int filter, ArrayList<InetAddress> validIpList, Network network) { in getIP() argument 157 switch (filter) { in getIP() 172 Log.d(TAG, "Invalid ProtoFilter : " + filter); in getIP() 285 int filter, ArrayList<InetAddress> validIpList, boolean isRoaming, Network network) { in resolutionMethodStatic() argument 310 getIP(domainName, filter, validIpList, network); in resolutionMethodStatic() 345 int filter, ArrayList<InetAddress> validIpList, boolean isEmergency, Network network) { in resolutionMethodPlmn() argument 371 getIP(domainName.toString(), filter, validIpList, network); in resolutionMethodPlmn() local 377 int filter, ArrayList<InetAddress> validIpList, boolean isEmergency, Network network) { in resolutionMethodCellularLoc() argument 407 lacDomainNameResolution(filter, validIpList, lacString, isEmergency, network); in resolutionMethodCellularLoc() 412 lacDomainNameResolution(filter, validIpList, lacString, isEmergency, network); in resolutionMethodCellularLoc() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | MimeTypes.java | 169 public static boolean mimeMatches(String filter, String[] tests) { in mimeMatches() argument 174 if (mimeMatches(filter, test)) { in mimeMatches() 185 for (String filter : filters) { in mimeMatches() 186 if (mimeMatches(filter, test)) { in mimeMatches() 193 public static boolean mimeMatches(String filter, String test) { in mimeMatches() argument 196 } else if (filter == null || "*/*".equals(filter)) { in mimeMatches() 198 } else if (filter.equals(test)) { in mimeMatches() 200 } else if (filter.endsWith("/*")) { in mimeMatches() 201 return filter.regionMatches(0, test, 0, filter.indexOf('/')); in mimeMatches()
|
/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 {
|
/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/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 {
|