Home
last modified time | relevance | path

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

12345678910>>...34

/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/native/
DTEST_MAPPING7 "include-filter": "*CredentialsTest.*"
10 "include-filter": "*SurfaceFlingerStress.*"
13 "include-filter": "*SurfaceInterceptorTest.*"
16 "include-filter": "*LayerTransactionTest.*"
19 "include-filter": "*LayerTypeTransactionTest.*"
22 "include-filter": "*LayerUpdateTest.*"
25 "include-filter": "*GeometryLatchingTest.*"
28 "include-filter": "*CropLatchingTest.*"
31 "include-filter": "*ChildLayerTest.*"
34 "include-filter": "*ScreenCaptureTest.*"
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationHistoryFilterTest.java70 NotificationHistoryFilter filter = new NotificationHistoryFilter.Builder() in testBuilder() local
75 assertThat(filter.getPackage()).isEqualTo("pkg"); in testBuilder()
76 assertThat(filter.getChannel()).isEqualTo("channel"); in testBuilder()
77 assertThat(filter.getMaxNotifications()).isEqualTo(3); in testBuilder()
82 NotificationHistoryFilter filter = new NotificationHistoryFilter.Builder() in testMatchesCountFilter() local
87 assertThat(filter.matchesCountFilter(history)).isTrue(); in testMatchesCountFilter()
89 assertThat(filter.matchesCountFilter(history)).isTrue(); in testMatchesCountFilter()
91 assertThat(filter.matchesCountFilter(history)).isTrue(); in testMatchesCountFilter()
93 assertThat(filter.matchesCountFilter(history)).isFalse(); in testMatchesCountFilter()
98 NotificationHistoryFilter filter = new NotificationHistoryFilter.Builder() in testMatchesCountFilter_noCountFilter() local
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFilterGraph.java63 public boolean addFilter(Filter filter) { in addFilter() argument
64 if (!containsFilter(filter)) { in addFilter()
65 mFilters.add(filter); in addFilter()
66 mNameMap.put(filter.getName(), filter); in addFilter() local
72 public boolean containsFilter(Filter filter) { in containsFilter() argument
73 return mFilters.contains(filter); in containsFilter()
126 for (Filter filter : mFilters) { in beginProcessing()
127 filter.openOutputs(); in beginProcessing()
133 for (Filter filter : mFilters) { in flushFrames()
134 filter.clearOutputs(); in flushFrames()
[all …]
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 …]
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()
/frameworks/base/services/core/java/com/android/server/pm/
DTEST_MAPPING22 "include-filter": "com.android.server.pm."
36 "include-filter": "android.content.pm.cts.PackageManagerShellCommandTest"
39 "include-filter": "android.content.pm.cts.PackageManagerShellCommandIncrementalTest"
42 "include-filter": "android.content.pm.cts.PackageManagerTest"
50 "include-filter": "com.google.android.security.gts.PackageVerifierTest"
58 "include-filter": "android.appsecurity.cts.PrivilegedUpdateTests"
66 "include-filter": "android.content.pm.PackageManagerTests"
87 "include-filter": "android.permission.cts.PermissionUpdateListenerTest"
104 "include-filter": "com.android.server.pm.UserDataPreparerTest"
107 "include-filter": "com.android.server.pm.UserLifecycleStressTest"
[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 …]
/frameworks/base/libs/hwui/jni/
DMaskFilter.cpp16 SkMaskFilter* filter = reinterpret_cast<SkMaskFilter *>(filterHandle); in destructor() local
17 SkSafeUnref(filter); in destructor()
22 SkMaskFilter* filter = SkMaskFilter::MakeBlur((SkBlurStyle)blurStyle, sigma).release(); in createBlur() local
23 ThrowIAE_IfNull(env, filter); in createBlur()
24 return reinterpret_cast<jlong>(filter); in createBlur()
37 SkMaskFilter* filter = SkBlurMaskFilter::MakeEmboss(sigma, in createEmboss() local
39 ThrowIAE_IfNull(env, filter); in createEmboss()
40 return reinterpret_cast<jlong>(filter); in createEmboss()
45 SkMaskFilter* filter = SkTableMaskFilter::Create((const uint8_t*)autoTable.ptr()); in createTable() local
46 return reinterpret_cast<jlong>(filter); in createTable()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/permission/
DTEST_MAPPING7 "include-filter": "android.permission.cts.BackgroundPermissionsTest"
10 "include-filter": "android.permission.cts.SplitPermissionTest"
13 "include-filter": "android.permission.cts.PermissionFlagsTest"
16 "include-filter": "android.permission.cts.SharedUidPermissionsTest"
24 … "include-filter": "android.appsecurity.cts.AppSecurityTests#rebootWithDuplicatePermission"
32 "include-filter": "android.permission2.cts.RestrictedPermissionsTest"
35 "include-filter": "android.permission.cts.PermissionMaxSdkVersionTest"
43 … "include-filter": "android.cts.statsd.atom.UidAtomTests#testDangerousPermissionState"
53 … "include-filter": "android.appsecurity.cts.AppSecurityTests#testPermissionDiffCert"
61 "include-filter": "android.permission.cts.PermissionUpdateListenerTest"
/frameworks/base/services/tests/servicestests/src/com/android/server/display/utils/
DAmbientFilterTest.java58 AmbientFilter filter = AmbientFilterFactory.createBrightnessFilter(TAG, mResourcesSpy); in testBrightnessFilter_ZeroIntercept() local
61 filter.addValue(time_start, 30); in testBrightnessFilter_ZeroIntercept()
62 assertEquals(30, filter.getEstimate(time_start + prediction_time), 0.001); in testBrightnessFilter_ZeroIntercept()
65 filter.addValue(time_start + prediction_time, 40); in testBrightnessFilter_ZeroIntercept()
74 assertEquals(37.5, filter.getEstimate(time_start + prediction_time), 0.001); in testBrightnessFilter_ZeroIntercept()
77 filter.addValue(time_start + horizon + prediction_time, 50); in testBrightnessFilter_ZeroIntercept()
78 assertEquals(40.38846f, filter.getEstimate(time_start + horizon + prediction_time), 0.001); in testBrightnessFilter_ZeroIntercept()
89 AmbientFilter filter = AmbientFilterFactory.createBrightnessFilter(TAG, mResourcesSpy); in testBrightnessFilter_WithIntercept() local
92 filter.addValue(time_start, 30); in testBrightnessFilter_WithIntercept()
93 assertEquals(30, filter.getEstimate(time_start + prediction_time), 0.001); in testBrightnessFilter_WithIntercept()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DTEST_MAPPING7 "include-filter": "com.android.server.policy."
21 "include-filter": "com.android.server.policy."
35 "include-filter": "android.permission2.cts.RestrictedPermissionsTest"
38 "include-filter": "android.permission2.cts.RestrictedStoragePermissionSharedUidTest"
41 "include-filter": "android.permission2.cts.RestrictedStoragePermissionTest"
49 "include-filter": "android.permission.cts.SplitPermissionTest"
52 "include-filter": "android.permission.cts.BackgroundPermissionsTest"
60 "include-filter": "android.backup.cts.PermissionTest"
70 "include-filter": "com.android.server.policy."
78 "include-filter": "com.android.server.policy."
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DAnimationFilter.java115 combineFilter(events.get(i).filter); in applyCombination()
133 public void combineFilter(AnimationFilter filter) { in combineFilter() argument
134 animateAlpha |= filter.animateAlpha; in combineFilter()
135 animateX |= filter.animateX; in combineFilter()
136 animateY |= filter.animateY; in combineFilter()
137 animateYViews.addAll(filter.animateYViews); in combineFilter()
138 animateZ |= filter.animateZ; in combineFilter()
139 animateHeight |= filter.animateHeight; in combineFilter()
140 animateTopInset |= filter.animateTopInset; in combineFilter()
141 animateDimmed |= filter.animateDimmed; in combineFilter()
[all …]
/frameworks/layoutlib/bridge/tests/src/com/android/tools/idea/validator/accessibility/
DAccessibilityValidatorTests.java63 List<Issue> dupBounds = filter(result.getIssues(), "DuplicateClickableBoundsCheck"); in testDuplicateClickableBoundsCheck()
75 List<Issue> duplicateSpeakableTexts = filter(result.getIssues(), in testDuplicateSpeakableTextsCheck()
89 List<Issue> redundant = filter(result.getIssues(), "RedundantDescriptionCheck"); in testRedundantDescriptionCheck()
102 List<Issue> speakableCheck = filter(result.getIssues(), "SpeakableTextPresentCheck"); in testLabelFor()
117 List<Issue> speakableCheck = filter(result.getIssues(), "SpeakableTextPresentCheck"); in testImportantForAccessibility()
131 List<Issue> speakableCheck = filter(result.getIssues(), "SpeakableTextPresentCheck"); in testSpeakableTextPresentCheck()
139 speakableCheck = filter(speakableCheck, EnumSet.of(Level.ERROR)); in testSpeakableTextPresentCheck()
141 List<Issue> allErrors = filter( in testSpeakableTextPresentCheck()
151 List<Issue> textContrast = filter(result.getIssues(), "TextContrastCheck"); in testTextContrastCheck()
161 textContrast = filter(textContrast, EnumSet.of(Level.ERROR)); in testTextContrastCheck()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DDeviceFilter.java83 public DeviceFilter(@NonNull DeviceFilter filter) { in DeviceFilter() argument
84 mVendorId = filter.mVendorId; in DeviceFilter()
85 mProductId = filter.mProductId; in DeviceFilter()
86 mClass = filter.mClass; in DeviceFilter()
87 mSubclass = filter.mSubclass; in DeviceFilter()
88 mProtocol = filter.mProtocol; in DeviceFilter()
89 mManufacturerName = filter.mManufacturerName; in DeviceFilter()
90 mProductName = filter.mProductName; in DeviceFilter()
91 mSerialNumber = filter.mSerialNumber; in DeviceFilter()
248 DeviceFilter filter = (DeviceFilter)obj; in equals() local
[all …]
/frameworks/base/tests/utils/testutils/java/com/android/test/filters/
DSelectTestTests.java141 private static void acceptTests(Filter filter, Set<Description>... testSpecs) { in acceptTests() argument
145 assertTrue("accept " + test, filter.shouldRun(test)); in acceptTests()
147 assertFalse("reject " + test, filter.shouldRun(test)); in acceptTests()
193 final Filter filter = mBuilder.build(); in testFilterDisabled() local
194 acceptTests(filter, TEST_ALL); in testFilterDisabled()
199 final Filter filter = mBuilder.withSelectTest(PACKAGE_A, PACKAGE_B).build(); in testSelectPackage() local
200 acceptTests(filter, TEST_PACKAGE_A, TEST_PACKAGE_B); in testSelectPackage()
205 final Filter filter = mBuilder.withSelectTest(CLASS_A1, CLASS_A2, CLASS_B3).build(); in testSelectClass() local
206 acceptTests(filter, TEST_CLASS_A1, TEST_CLASS_A2, TEST_CLASS_B3); in testSelectClass()
211 final Filter filter = mBuilder in testSelectMethod() local
[all …]
/frameworks/base/services/core/java/com/android/server/appop/
DTEST_MAPPING10 "include-filter": "com.android.server.appop"
18 "include-filter": "com.android.server.appop"
26 "include-filter": "android.permission.cts.BackgroundPermissionsTest"
29 "include-filter": "android.permission.cts.SplitPermissionTest"
32 "include-filter": "android.permission.cts.PermissionFlagsTest"
35 "include-filter": "android.permission.cts.SharedUidPermissionsTest"
43 "include-filter": "android.app.cts.ActivityManagerApi29Test"
51 "include-filter": "android.cts.statsd.atom.UidAtomTests#testAppOps"
/frameworks/base/core/java/android/content/
DMimeTypeFilter.java77 public static boolean matches(@Nullable String mimeType, @NonNull String filter) { in matches() argument
83 final String[] filterParts = filter.split("/"); in matches()
100 for (String filter : filters) { in matches()
101 final String[] filterParts = filter.split("/"); in matches()
103 return filter; in matches()
116 @Nullable String[] mimeTypes, @NonNull String filter) { in matches() argument
121 final String[] filterParts = filter.split("/"); in matches()
138 @Nullable String[] mimeTypes, @NonNull String filter) { in matchesMany() argument
144 final String[] filterParts = filter.split("/"); in matchesMany()
/frameworks/base/services/core/java/com/android/server/
DIntentResolver.java232 F filter; in dumpMap() local
235 for (int i=0; i<N && (filter=a[i]) != null; i++) { in dumpMap()
236 if (packageName != null && !isPackageForFilter(packageName, filter)) { in dumpMap()
239 Object label = filterToLabel(filter); in dumpMap()
260 for (int i=0; i<N && (filter=a[i]) != null; i++) { in dumpMap()
261 if (packageName != null && !isPackageForFilter(packageName, filter)) { in dumpMap()
273 dumpFilter(out, fprefix, filter); in dumpMap()
278 getIntentFilter(filter).dump(printer, fprefix + " "); in dumpMap()
507 protected boolean allowFilterResult(F filter, List<R> dest) { in allowFilterResult() argument
516 protected boolean isFilterStopped(F filter, int userId) { in isFilterStopped() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/
DBroadcastDispatcher.kt42 val filter: IntentFilter, constant in com.android.systemui.broadcast.ReceiverData
108 filter: IntentFilter, in registerReceiverWithHandler()
112 registerReceiver(receiver, filter, HandlerExecutor(handler), user) in registerReceiverWithHandler()
132 filter: IntentFilter, in registerReceiver()
136 checkFilter(filter) in registerReceiver()
139 ReceiverData(receiver, filter, executor ?: context.mainExecutor, user)) in registerReceiver()
143 private fun checkFilter(filter: IntentFilter) { in checkFilter()
145 if (filter.countActions() == 0) sb.append("Filter must contain at least one action. ") in checkFilter()
146 if (filter.countDataAuthorities() != 0) sb.append("Filter cannot contain DataAuthorities. ") in checkFilter()
147 if (filter.countDataPaths() != 0) sb.append("Filter cannot contain DataPaths. ") in checkFilter()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/
DMediaSessionBasedFilterTest.kt88 private lateinit var filter: MediaSessionBasedFilter in eq() variable in com.android.systemui.media.MediaSessionBasedFilterTest
125 filter = MediaSessionBasedFilter(context, mediaSessionManager, fgExecutor, bgExecutor) in eq()
171 filter.addListener(mediaListener) in eq()
184 filter.onMediaDataLoaded(KEY, null, mediaData1) in eq()
192 filter.onMediaDataRemoved(KEY) in eq()
205 filter.onMediaDataLoaded(KEY, null, mediaData1) in eq()
219 filter.onMediaDataRemoved(KEY) in eq()
234 filter.onMediaDataLoaded(KEY, null, mediaData1) in eq()
249 filter.onMediaDataLoaded(KEY, null, mediaData1) in eq()
255 filter.onMediaDataLoaded(KEY, null, mediaData2) in eq()
[all …]
/frameworks/ml/nn/runtime/test/fuzzing/
DOperationManager.cpp36 bool OperationSignature::matchFilter(const OperationFilter& filter) { in matchFilter() argument
37 if (!hasValue(filter.opcodes, opType) || !hasValue(filter.versions, version)) { in matchFilter()
44 if (hasValue(filter.dataTypes, dataType)) combinedDataTypes.push_back(dataType); in matchFilter()
52 if (hasValue(filter.ranks, rank)) combinedRanks.push_back(rank); in matchFilter()
68 void OperationManager::applyFilter(const OperationFilter& filter) { in applyFilter() argument
72 if (!mFilteredSignatures.back().matchFilter(filter)) mFilteredSignatures.pop_back(); in applyFilter()

12345678910>>...34