Home
last modified time | relevance | path

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

12345678910>>...20

/frameworks/base/tools/aapt2/filter/
DConfigFilter_test.cpp24 AxisConfigFilter filter; in TEST() local
26 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("320dpi"))); in TEST()
27 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("fr"))); in TEST()
31 AxisConfigFilter filter; in TEST() local
32 filter.AddConfig(test::ParseConfigOrDie("fr")); in TEST()
34 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("320dpi"))); in TEST()
38 AxisConfigFilter filter; in TEST() local
39 filter.AddConfig(test::ParseConfigOrDie("fr")); in TEST()
41 EXPECT_TRUE(filter.Match(test::ParseConfigOrDie("fr"))); in TEST()
45 AxisConfigFilter filter; in TEST() local
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DScanFilterTest.java62 ScanFilter filter = mFilterBuilder.setDeviceName("Ped").build(); in testsetNameFilter() local
63 assertTrue("setName filter fails", filter.matches(mScanResult)); in testsetNameFilter()
65 filter = mFilterBuilder.setDeviceName("Pem").build(); in testsetNameFilter()
66 assertFalse("setName filter fails", filter.matches(mScanResult)); in testsetNameFilter()
72 ScanFilter filter = mFilterBuilder.setDeviceAddress(DEVICE_MAC).build(); in testDeviceFilter() local
73 assertTrue("device filter fails", filter.matches(mScanResult)); in testDeviceFilter()
75 filter = mFilterBuilder.setDeviceAddress("11:22:33:44:55:66").build(); in testDeviceFilter()
76 assertFalse("device filter fails", filter.matches(mScanResult)); in testDeviceFilter()
81 ScanFilter filter = mFilterBuilder.setServiceUuid( in testsetServiceUuidFilter() local
83 assertTrue("uuid filter fails", filter.matches(mScanResult)); in testsetServiceUuidFilter()
[all …]
/frameworks/base/tools/aapt/tests/
DResourceFilter_test.cpp31 WeakResourceFilter filter; in TEST() local
32 ASSERT_EQ(NO_ERROR, filter.parse(String8(""))); in TEST()
37 EXPECT_TRUE(filter.match(config)); in TEST()
42 EXPECT_TRUE(filter.match(config)); in TEST()
46 WeakResourceFilter filter; in TEST() local
47 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr"))); in TEST()
52 EXPECT_TRUE(filter.match(config)); in TEST()
56 WeakResourceFilter filter; in TEST() local
57 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr"))); in TEST()
63 EXPECT_TRUE(filter.match(config)); in TEST()
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFilterGraph.java65 public boolean addFilter(Filter filter) { in addFilter() argument
66 if (!containsFilter(filter)) { in addFilter()
67 mFilters.add(filter); in addFilter()
68 mNameMap.put(filter.getName(), filter); in addFilter() local
74 public boolean containsFilter(Filter filter) { in containsFilter() argument
75 return mFilters.contains(filter); in containsFilter()
127 for (Filter filter : mFilters) { in beginProcessing()
128 filter.openOutputs(); in beginProcessing()
134 for (Filter filter : mFilters) { in flushFrames()
135 filter.clearOutputs(); in flushFrames()
[all …]
DOneShotScheduler.java56 Filter filter = super.scheduleNextNode(); in scheduleNextNode() local
57 if (filter == null) { in scheduleNextNode()
61 if (!scheduled.containsKey(filter.getName())) { in scheduleNextNode()
62 if (filter.getNumberOfConnectedInputs() == 0) in scheduleNextNode()
63 scheduled.put(filter.getName(),1); in scheduleNextNode()
64 …if (mLogVerbose) Log.v(TAG, "Scheduling filter \"" + filter.getName() + "\" of type " + filter.get… in scheduleNextNode()
65 return filter; in scheduleNextNode()
68 if (first == filter) { in scheduleNextNode()
72 if (first == null) first = filter; in scheduleNextNode()
DSyncRunner.java162 protected void processFilterNode(Filter filter) { in processFilterNode() argument
164 filter.performProcess(mFilterContext); in processFilterNode()
165 if (filter.getStatus() == Filter.STATUS_ERROR) { in processFilterNode()
166 throw new RuntimeException("There was an error executing " + filter + "!"); in processFilterNode()
167 } else if (filter.getStatus() == Filter.STATUS_SLEEPING) { in processFilterNode()
169 scheduleFilterWake(filter, filter.getSleepDelay()); in processFilterNode()
173 protected void scheduleFilterWake(Filter filter, int delay) { in scheduleFilterWake() argument
178 final Filter filterToSchedule = filter; in scheduleFilterWake()
192 for (Filter filter : mScheduler.getGraph().getFilters()) { in determinePostRunState()
193 if (filter.isOpen()) { in determinePostRunState()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFilterGraph.java94 public void addFilter(Filter filter) { in addFilter() argument
95 if (mFilterMap.values().contains(filter)) { in addFilter()
96 throw new IllegalArgumentException("Attempting to add filter " + filter + " that " in addFilter()
98 } else if (mFilterMap.containsKey(filter.getName())) { in addFilter()
100 + filter.getName() + "' already!"); in addFilter()
102 mFilterMap.put(filter.getName(), filter); in addFilter() local
128 FrameSlotSource filter = new FrameSlotSource(mContext, name, slotName); in addFrameSlotSource() local
129 addFilter(filter); in addFrameSlotSource()
130 return filter; in addFrameSlotSource()
134 FrameSlotTarget filter = new FrameSlotTarget(mContext, name, slotName); in addFrameSlotTarget() local
[all …]
DGraphExporter.java66 for(Filter filter : filters) { in exportAsDot()
67 dotFile.write(getDotName(" " + filter.getName()) + " [label=\"{"); in exportAsDot()
70 Set<String> inputPorts = getInputPorts(filter, includeUnconnectedOptionalPorts); in exportAsDot()
82 dotFile.write(filter.getName()); in exportAsDot()
85 Set<String> outputPorts = getOutputPorts(filter, includeUnconnectedOptionalPorts); in exportAsDot()
103 for(Filter filter : filters) { in exportAsDot()
104 Set<String> outputPorts = getOutputPorts(filter, includeUnconnectedOptionalPorts); in exportAsDot()
106 OutputPort source = filter.getConnectedOutputPort(portName); in exportAsDot()
117 String color = filter.getSignature().getOutputPortInfo(portName).isRequired() in exportAsDot()
122 " " + getDotName(filter.getName()) + ":" + in exportAsDot()
[all …]
DSignature.java171 void checkInputPortsConform(Filter filter) { in checkInputPortsConform() argument
173 filterInputs.addAll(filter.getConnectedInputPortMap().keySet()); in checkInputPortsConform()
178 InputPort inputPort = filter.getConnectedInputPort(portName); in checkInputPortsConform()
180 throw new RuntimeException("Filter " + filter + " does not have required " in checkInputPortsConform()
187 throw new RuntimeException("Filter " + filter + " has invalid input ports: " in checkInputPortsConform()
192 void checkOutputPortsConform(Filter filter) { in checkOutputPortsConform() argument
194 filterOutputs.addAll(filter.getConnectedOutputPortMap().keySet()); in checkOutputPortsConform()
199 OutputPort outputPort = filter.getConnectedOutputPort(portName); in checkOutputPortsConform()
201 throw new RuntimeException("Filter " + filter + " does not have required " in checkOutputPortsConform()
208 throw new RuntimeException("Filter " + filter + " has invalid output ports: " in checkOutputPortsConform()
DGraphRunner.java353 Filter filter = filters[i]; in onStep() local
354 long priority = mScheduler.priorityForFilter(filter); in onStep()
357 bestFilter = filter; in onStep()
387 for (Filter filter : graph.getAllFilters()) { in onTearDown()
388 filter.performTearDown(); in onTearDown()
421 private void scheduleFilter(Filter filter) { in scheduleFilter() argument
425 Log.i("GraphRunner", scheduleTime + ": Scheduling " + filter + "!"); in scheduleFilter()
427 filter.execute(); in scheduleFilter()
431 "-> Schedule time (" + filter + ") = " + (nowTime - scheduleTime) + " ms."); in scheduleFilter()
445 public long priorityForFilter(Filter filter); in priorityForFilter() argument
[all …]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMasRequestGetMessagesListing.java42 BluetoothMasClient.MessagesFilter filter, int subjectLength, int maxListCount, in BluetoothMasRequestGetMessagesListing() argument
66 if (filter != null) { in BluetoothMasRequestGetMessagesListing()
67 if (filter.messageType != MessagesFilter.MESSAGE_TYPE_ALL) { in BluetoothMasRequestGetMessagesListing()
68 oap.add(OAP_TAGID_FILTER_MESSAGE_TYPE, filter.messageType); in BluetoothMasRequestGetMessagesListing()
71 if (filter.periodBegin != null) { in BluetoothMasRequestGetMessagesListing()
72 oap.add(OAP_TAGID_FILTER_PERIOD_BEGIN, filter.periodBegin); in BluetoothMasRequestGetMessagesListing()
75 if (filter.periodEnd != null) { in BluetoothMasRequestGetMessagesListing()
76 oap.add(OAP_TAGID_FILTER_PERIOD_END, filter.periodEnd); in BluetoothMasRequestGetMessagesListing()
79 if (filter.readStatus != MessagesFilter.READ_STATUS_ANY) { in BluetoothMasRequestGetMessagesListing()
80 oap.add(OAP_TAGID_FILTER_READ_STATUS, filter.readStatus); in BluetoothMasRequestGetMessagesListing()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DAnimationFilter.java126 combineFilter(events.get(i).filter); in applyCombination()
138 public void combineFilter(AnimationFilter filter) { in combineFilter() argument
139 animateAlpha |= filter.animateAlpha; in combineFilter()
140 animateX |= filter.animateX; in combineFilter()
141 animateY |= filter.animateY; in combineFilter()
142 animateYViews.addAll(filter.animateYViews); in combineFilter()
143 animateZ |= filter.animateZ; in combineFilter()
144 animateHeight |= filter.animateHeight; in combineFilter()
145 animateTopInset |= filter.animateTopInset; in combineFilter()
146 animateDimmed |= filter.animateDimmed; in combineFilter()
[all …]
/frameworks/base/core/jni/android/graphics/
DMaskFilter.cpp20 SkMaskFilter* filter = reinterpret_cast<SkMaskFilter *>(filterHandle); in destructor() local
21 SkSafeUnref(filter); in destructor()
26 SkMaskFilter* filter = SkBlurMaskFilter::Make((SkBlurStyle)blurStyle, sigma).release(); in createBlur() local
27 ThrowIAE_IfNull(env, filter); in createBlur()
28 return reinterpret_cast<jlong>(filter); in createBlur()
41 SkMaskFilter* filter = SkBlurMaskFilter::MakeEmboss(sigma, in createEmboss() local
43 ThrowIAE_IfNull(env, filter); in createEmboss()
44 return reinterpret_cast<jlong>(filter); in createEmboss()
49 SkMaskFilter* filter = SkTableMaskFilter::Create((const uint8_t*)autoTable.ptr()); in createTable() local
50 return reinterpret_cast<jlong>(filter); in createTable()
[all …]
DDrawFilter.cpp44 virtual bool filter(SkPaint* paint, Type type) { in filter() function in android::CompatFlagsDrawFilter
45 SkPaintFlagsDrawFilter::filter(paint, type); in filter()
82 SkDrawFilter* filter; in CreatePaintFlagsDF() local
85 filter = new CompatFlagsDrawFilter(clearFlags, setFlags, in CreatePaintFlagsDF()
88 filter = new CompatFlagsDrawFilter(clearFlags, setFlags, in CreatePaintFlagsDF()
91 filter = new SkPaintFlagsDrawFilter(clearFlags, setFlags); in CreatePaintFlagsDF()
93 return reinterpret_cast<jlong>(filter); in CreatePaintFlagsDF()
/frameworks/base/services/core/java/com/android/server/
DIntentResolver.java228 F filter; in dumpMap() local
231 for (int i=0; i<N && (filter=a[i]) != null; i++) { in dumpMap()
232 if (packageName != null && !isPackageForFilter(packageName, filter)) { in dumpMap()
235 Object label = filterToLabel(filter); in dumpMap()
256 for (int i=0; i<N && (filter=a[i]) != null; i++) { in dumpMap()
257 if (packageName != null && !isPackageForFilter(packageName, filter)) { in dumpMap()
269 dumpFilter(out, fprefix, filter); in dumpMap()
274 filter.dump(printer, fprefix + " "); in dumpMap()
478 protected boolean allowFilterResult(F filter, List<R> dest) { in allowFilterResult() argument
487 protected boolean isFilterStopped(F filter, int userId) { in isFilterStopped() argument
[all …]
/frameworks/support/core-utils/java/android/support/v4/content/
DMimeTypeFilter.java75 public static boolean matches(@Nullable String mimeType, @NonNull String filter) { in matches() argument
81 final String[] filterParts = filter.split("/"); in matches()
97 for (String filter : filters) { in matches()
98 final String[] filterParts = filter.split("/"); in matches()
100 return filter; in matches()
112 @Nullable String[] mimeTypes, @NonNull String filter) { in matches() argument
117 final String[] filterParts = filter.split("/"); in matches()
133 @Nullable String[] mimeTypes, @NonNull String filter) { in matchesMany() argument
139 final String[] filterParts = filter.split("/"); in matchesMany()
DLocalBroadcastManager.java48 final IntentFilter filter; field in LocalBroadcastManager.ReceiverRecord
54 filter = _filter; in ReceiverRecord()
64 builder.append(filter); in toString()
135 public void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument
137 ReceiverRecord entry = new ReceiverRecord(filter, receiver); in registerReceiver()
144 for (int i=0; i<filter.countActions(); i++) { in registerReceiver()
145 String action = filter.getAction(i); in registerReceiver()
172 final ReceiverRecord filter = filters.get(i); in unregisterReceiver() local
173 filter.dead = true; in unregisterReceiver()
174 for (int j=0; j<filter.filter.countActions(); j++) { in unregisterReceiver()
[all …]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DRenderScriptTask.java91 RefocusFilter filter; in applyRefocusFilter() local
94 filter = new RefocusFilterF32(renderScript); in applyRefocusFilter()
97 filter = new RefocusFilterd1new(renderScript); in applyRefocusFilter()
100 filter = null; in applyRefocusFilter()
104 Bitmap outputImage = filter.compute(rgbdImage, blurStack); in applyRefocusFilter()
106 filter.logTiming(TAG, "TOTAL", endTime - startTime, "ms"); in applyRefocusFilter()
108 timings = filter.timings; in applyRefocusFilter()
/frameworks/base/services/core/java/com/android/server/pm/
DPreferredIntentResolver.java31 protected boolean isPackageForFilter(String packageName, PreferredActivity filter) { in isPackageForFilter() argument
32 return packageName.equals(filter.mPref.mComponent.getPackageName()); in isPackageForFilter()
37 PreferredActivity filter) { in dumpFilter() argument
38 filter.mPref.dump(out, prefix, filter); in dumpFilter()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbProfileGroupSettingsManager.java359 DeviceFilter filter = (DeviceFilter)obj; in equals() local
361 if (filter.mVendorId != mVendorId || in equals()
362 filter.mProductId != mProductId || in equals()
363 filter.mClass != mClass || in equals()
364 filter.mSubclass != mSubclass || in equals()
365 filter.mProtocol != mProtocol) { in equals()
368 if ((filter.mManufacturerName != null && in equals()
370 (filter.mManufacturerName == null && in equals()
372 (filter.mProductName != null && in equals()
374 (filter.mProductName == null && in equals()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DVisualVoicemailSmsFilterTest.java109 VisualVoicemailSmsFilter.filter(mContext, pdus, SmsConstants.FORMAT_3GPP, 0, 0)); in testUnsupportedPdu()
115 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 0, 0)); in testOriginatingNumber_unspecified_filtered()
124 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 0, 0)); in testOriginatingNumber_match_filtered()
133 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 0, 0)); in testOriginatingNumber_mismatch_notFiltered()
140 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 123, 0)); in testDestinationPort_anyMatch_filtered()
148 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 456, 0)); in testDestinationPort_anyData_filtered()
156 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, -1, 0)); in testDestinationPort_anyData_textReceived_notFiltered()
164 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 456, 0)); in testDestinationPort_mismatch_notFiltered()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/util/
DGenerationalClassUtil.java49 public static <T extends Serializable> List<T> loadObjects(ExtensionFilter filter) { in loadObjects() argument
54 return sCache[filter.ordinal()]; in loadObjects()
65 for (ExtensionFilter filter : ExtensionFilter.values()) { in buildCache()
66 sCache[filter.ordinal()] = new ArrayList(); in buildCache()
94 for (ExtensionFilter filter : ExtensionFilter.values()) { in loadFromDirectory()
95 if (filter.accept(file.getName())) { in loadFromDirectory()
102 sCache[filter.ordinal()].add(item); in loadFromDirectory()
124 for (ExtensionFilter filter : ExtensionFilter.values()) { in loadFomZipFile()
125 if (!filter.accept(entry.getName())) { in loadFomZipFile()
135 sCache[filter.ordinal()].add(item); in loadFomZipFile()
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DRegisteredMediaRouteProviderWatcher.java59 IntentFilter filter = new IntentFilter(); in start() local
60 filter.addAction(Intent.ACTION_PACKAGE_ADDED); in start()
61 filter.addAction(Intent.ACTION_PACKAGE_REMOVED); in start()
62 filter.addAction(Intent.ACTION_PACKAGE_CHANGED); in start()
63 filter.addAction(Intent.ACTION_PACKAGE_REPLACED); in start()
64 filter.addAction(Intent.ACTION_PACKAGE_RESTARTED); in start()
65 filter.addDataScheme("package"); in start()
66 mContext.registerReceiver(mScanPackagesReceiver, filter, null, mHandler); in start()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java518 BroadcastFilter filter, boolean ordered, int index) { in deliverToRegisteredReceiverLocked() argument
520 if (filter.requiredPermission != null) { in deliverToRegisteredReceiverLocked()
521 int perm = mService.checkComponentPermission(filter.requiredPermission, in deliverToRegisteredReceiverLocked()
528 + " requires " + filter.requiredPermission in deliverToRegisteredReceiverLocked()
529 + " due to registered receiver " + filter); in deliverToRegisteredReceiverLocked()
532 final int opCode = AppOpsManager.permissionToOpCode(filter.requiredPermission); in deliverToRegisteredReceiverLocked()
541 filter.requiredPermission) in deliverToRegisteredReceiverLocked()
542 + " due to registered receiver " + filter); in deliverToRegisteredReceiverLocked()
551 filter.receiverList.pid, filter.receiverList.uid, -1, true); in deliverToRegisteredReceiverLocked()
555 + " to " + filter.receiverList.app in deliverToRegisteredReceiverLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DManagedProfileControllerImpl.java121 final IntentFilter filter = new IntentFilter(); in setListening() local
122 filter.addAction(Intent.ACTION_USER_SWITCHED); in setListening()
123 filter.addAction(Intent.ACTION_MANAGED_PROFILE_ADDED); in setListening()
124 filter.addAction(Intent.ACTION_MANAGED_PROFILE_REMOVED); in setListening()
125 filter.addAction(Intent.ACTION_MANAGED_PROFILE_AVAILABLE); in setListening()
126 filter.addAction(Intent.ACTION_MANAGED_PROFILE_UNAVAILABLE); in setListening()
127 mContext.registerReceiverAsUser(mReceiver, UserHandle.ALL, filter, null, null); in setListening()

12345678910>>...20