Home
last modified time | relevance | path

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

12345678910>>...19

/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/base/packages/DocumentsUI/src/com/android/documentsui/
DMimePredicate.java58 public static boolean mimeMatches(String filter, String[] tests) { in mimeMatches() argument
63 if (mimeMatches(filter, test)) { in mimeMatches()
74 for (String filter : filters) { in mimeMatches()
75 if (mimeMatches(filter, test)) { in mimeMatches()
82 public static boolean mimeMatches(String filter, String test) { in mimeMatches() argument
85 } else if (filter == null || "*/*".equals(filter)) { in mimeMatches()
87 } else if (filter.equals(test)) { in mimeMatches()
89 } else if (filter.endsWith("/*")) { in mimeMatches()
90 return filter.regionMatches(0, test, 0, filter.indexOf('/')); in mimeMatches()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DAnimationFilter.java96 combineFilter(events.get(i).filter); in applyCombination()
104 private void combineFilter(AnimationFilter filter) { in combineFilter() argument
105 animateAlpha |= filter.animateAlpha; in combineFilter()
106 animateY |= filter.animateY; in combineFilter()
107 animateZ |= filter.animateZ; in combineFilter()
108 animateScale |= filter.animateScale; in combineFilter()
109 animateHeight |= filter.animateHeight; in combineFilter()
110 animateTopInset |= filter.animateTopInset; in combineFilter()
111 animateDimmed |= filter.animateDimmed; in combineFilter()
112 animateDark |= filter.animateDark; in combineFilter()
[all …]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMasRequestGetMessagesListing.java42 BluetoothMasClient.MessagesFilter filter, int subjectLength, int maxListCount, in BluetoothMasRequestGetMessagesListing() argument
67 if (filter != null) { in BluetoothMasRequestGetMessagesListing()
68 if (filter.messageType != MessagesFilter.MESSAGE_TYPE_ALL) { in BluetoothMasRequestGetMessagesListing()
69 oap.add(OAP_TAGID_FILTER_MESSAGE_TYPE, filter.messageType); in BluetoothMasRequestGetMessagesListing()
72 if (filter.periodBegin != null) { in BluetoothMasRequestGetMessagesListing()
73 oap.add(OAP_TAGID_FILTER_PERIOD_BEGIN, filter.periodBegin); in BluetoothMasRequestGetMessagesListing()
76 if (filter.periodEnd != null) { in BluetoothMasRequestGetMessagesListing()
77 oap.add(OAP_TAGID_FILTER_PERIOD_END, filter.periodEnd); in BluetoothMasRequestGetMessagesListing()
80 if (filter.readStatus != MessagesFilter.READ_STATUS_ANY) { in BluetoothMasRequestGetMessagesListing()
81 oap.add(OAP_TAGID_FILTER_READ_STATUS, filter.readStatus); in BluetoothMasRequestGetMessagesListing()
[all …]
/frameworks/base/core/jni/android/graphics/
DMaskFilter.cpp18 SkMaskFilter* filter = reinterpret_cast<SkMaskFilter *>(filterHandle); in destructor() local
19 SkSafeUnref(filter); in destructor()
24 SkMaskFilter* filter = SkBlurMaskFilter::Create((SkBlurStyle)blurStyle, sigma); in createBlur() local
25 ThrowIAE_IfNull(env, filter); in createBlur()
26 return reinterpret_cast<jlong>(filter); in createBlur()
39 SkMaskFilter* filter = SkBlurMaskFilter::CreateEmboss(sigma, in createEmboss() local
41 ThrowIAE_IfNull(env, filter); in createEmboss()
42 return reinterpret_cast<jlong>(filter); in createEmboss()
47 SkMaskFilter* filter = SkTableMaskFilter::Create((const uint8_t*)autoTable.ptr()); in createTable() local
48 return reinterpret_cast<jlong>(filter); in createTable()
[all …]
DDrawFilter.cpp42 virtual bool filter(SkPaint* paint, Type type) { in filter() function in android::CompatFlagsDrawFilter
43 SkPaintFlagsDrawFilter::filter(paint, type); in filter()
80 SkDrawFilter* filter; in CreatePaintFlagsDF() local
83 filter = new CompatFlagsDrawFilter(clearFlags, setFlags, in CreatePaintFlagsDF()
86 filter = new CompatFlagsDrawFilter(clearFlags, setFlags, in CreatePaintFlagsDF()
89 filter = new SkPaintFlagsDrawFilter(clearFlags, setFlags); in CreatePaintFlagsDF()
91 return reinterpret_cast<jlong>(filter); in CreatePaintFlagsDF()
/frameworks/base/services/core/java/com/android/server/
DIntentResolver.java226 F filter; in dumpMap() local
227 for (int i=0; i<N && (filter=a[i]) != null; i++) { in dumpMap()
228 if (packageName != null && !isPackageForFilter(packageName, filter)) { in dumpMap()
240 dumpFilter(out, fprefix, filter); in dumpMap()
245 filter.dump(printer, fprefix + " "); in dumpMap()
446 protected boolean allowFilterResult(F filter, List<R> dest) { in allowFilterResult() argument
455 protected boolean isFilterStopped(F filter, int userId) { in isFilterStopped() argument
464 protected abstract boolean isPackageForFilter(String packageName, F filter); in isPackageForFilter() argument
469 protected R newResult(F filter, int match, int userId) { in newResult() argument
470 return (R)filter; in newResult()
[all …]
/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/
DUsbSettingsManager.java286 DeviceFilter filter = (DeviceFilter)obj; in equals() local
288 if (filter.mVendorId != mVendorId || in equals()
289 filter.mProductId != mProductId || in equals()
290 filter.mClass != mClass || in equals()
291 filter.mSubclass != mSubclass || in equals()
292 filter.mProtocol != mProtocol) { in equals()
295 if ((filter.mManufacturerName != null && in equals()
297 (filter.mManufacturerName == null && in equals()
299 (filter.mProductName != null && in equals()
301 (filter.mProductName == null && in equals()
[all …]
/frameworks/testing/support/src/android/support/test/internal/runner/
DClassPathScanner.java73 public void add(ClassNameFilter filter) { in add() argument
74 mFilters.add(filter); in add()
86 for (ClassNameFilter filter : mFilters) { in accept()
87 if (!filter.accept(className)) { in accept()
168 private void addEntriesFromApk(Set<String> entryNames, String apkPath, ClassNameFilter filter) in addEntriesFromApk() argument
176 if (filter.accept(apkClassName)) { in addEntriesFromApk()
203 public Set<String> getClassPathEntries(ClassNameFilter filter) throws IOException { in getClassPathEntries() argument
207 addEntriesFromApk(entryNames, apkPath, filter); in getClassPathEntries()
/frameworks/support/v4/java/android/support/v4/content/
DLocalBroadcastManager.java48 final IntentFilter filter; field in LocalBroadcastManager.ReceiverRecord
53 filter = _filter; in ReceiverRecord()
63 builder.append(filter); in toString()
133 public void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument
135 ReceiverRecord entry = new ReceiverRecord(filter, receiver); in registerReceiver()
141 filters.add(filter); in registerReceiver()
142 for (int i=0; i<filter.countActions(); i++) { in registerReceiver()
143 String action = filter.getAction(i); in registerReceiver()
170 IntentFilter filter = filters.get(i); in unregisterReceiver() local
171 for (int j=0; j<filter.countActions(); j++) { in unregisterReceiver()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DBroadcastInterceptingContext.java50 public BroadcastInterceptor(BroadcastReceiver receiver, IntentFilter filter) { in BroadcastInterceptor() argument
52 mFilter = filter; in BroadcastInterceptor()
88 public Future<Intent> nextBroadcastIntent(IntentFilter filter) { in nextBroadcastIntent() argument
89 final BroadcastInterceptor interceptor = new BroadcastInterceptor(null, filter); in nextBroadcastIntent()
97 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument
99 mInterceptors.add(new BroadcastInterceptor(receiver, filter)); in registerReceiver()
105 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() argument
107 return registerReceiver(receiver, filter); in registerReceiver()
/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/docs/html/guide/topics/manifest/
Daction-element.jd11 <dd><code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html">&lt;intent-filter&gt…
15 <dd itemprop="description">Adds an action to an intent filter.
16 An <code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html">&lt;intent-filter&gt;…
18 Intent objects will get through the filter. See
21 specifications within a filter.
50 <dd><code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html">&lt;intent-filter&gt…
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DColorFiltersMutateActivity.java107 final PorterDuffColorFilter filter = in setPorterDuffColor() local
109 filter.setColor(mPorterDuffColor); in setPorterDuffColor()
119 final LightingColorFilter filter = in setLightAdd() local
121 filter.setColorAdd(lightAdd); in setLightAdd()
131 final LightingColorFilter filter = in setLightMul() local
133 filter.setColorMultiply(lightMul); in setLightMul()
139 final ColorMatrixColorFilter filter = in setSaturation() local
141 final ColorMatrix m = filter.getColorMatrix(); in setSaturation()
143 filter.setColorMatrix(m); in setSaturation()
/frameworks/base/core/java/com/android/internal/app/
DExternalMediaFormatActivity.java74 IntentFilter filter = new IntentFilter(); in onResume() local
75 filter.addAction(Intent.ACTION_MEDIA_REMOVED); in onResume()
76 filter.addAction(Intent.ACTION_MEDIA_CHECKING); in onResume()
77 filter.addAction(Intent.ACTION_MEDIA_MOUNTED); in onResume()
78 filter.addAction(Intent.ACTION_MEDIA_SHARED); in onResume()
79 registerReceiver(mStorageReceiver, filter); in onResume()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
DMffFilterTestCase.java105 FrameSourceFilter filter = (FrameSourceFilter) mGraph.getFilter("in_" + portName); in injectInputFrame() local
106 filter.injectFrame(frame); in injectInputFrame()
137 MffContext mffContext, FilterGraph.Builder graphBuilder, Filter filter) { in connectInputPorts() argument
138 Signature signature = filter.getSignature(); in connectInputPorts()
142 graphBuilder.connect(inputFilter, "output", filter, inputPortEntry.getKey()); in connectInputPorts()
147 MffContext mffContext, FilterGraph.Builder graphBuilder, Filter filter) { in connectOutputPorts() argument
148 Signature signature = filter.getSignature(); in connectOutputPorts()
155 graphBuilder.connect(filter, outputPortEntry.getKey(), outputFilter, "input"); in connectOutputPorts()

12345678910>>...19