Home
last modified time | relevance | path

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

12345678910>>...57

/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/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/services/inputflinger/
DTEST_MAPPING7 "include-filter": "android.server.wm.input.WindowInputTests"
41 "include-filter": "android.hardware.input.cts.tests"
55 "include-filter": "android.view.cts.input"
63 "include-filter": "android.view.cts.HoverTest"
66 "include-filter": "android.view.cts.MotionEventTest"
69 "include-filter": "android.view.cts.PointerCaptureTest"
72 "include-filter": "android.view.cts.TooltipTest"
75 "include-filter": "android.view.cts.TouchDelegateTest"
78 "include-filter": "android.view.cts.VerifyInputEventTest"
81 "include-filter": "android.view.cts.ViewTest"
[all …]
/frameworks/base/keystore/
DTEST_MAPPING10 "exclude-filter": "android.keystore.cts.SignatureTest"
13 "exclude-filter": "android.keystore.cts.RsaSignaturePerformanceTest"
16 "exclude-filter": "android.keystore.cts.RsaKeyGenPerformanceTest"
19 "exclude-filter": "android.keystore.cts.RsaCipherPerformanceTest"
22 "exclude-filter": "android.keystore.cts.MacTest#testLargeMsgKat"
25 "exclude-filter": "android.keystore.cts.KeyPairGeneratorTest"
28 "exclude-filter": "android.keystore.cts.KeyGeneratorTest#testHmacKeySupportedSizes"
31 "exclude-filter": "android.keystore.cts.HmacMacPerformanceTest"
34 "exclude-filter": "android.keystore.cts.EcdsaSignaturePerformanceTest"
37 "exclude-filter": "android.keystore.cts.EcKeyGenPerformanceTest"
[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 …]
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/services/core/java/com/android/server/pm/permission/
DTEST_MAPPING10 "include-filter": "android.permission.cts.BackgroundPermissionsTest"
13 "include-filter": "android.permission.cts.SplitPermissionTest"
16 "include-filter": "android.permission.cts.PermissionFlagsTest"
19 "include-filter": "android.permission.cts.SharedUidPermissionsTest"
27 … "include-filter": "android.appsecurity.cts.AppSecurityTests#rebootWithDuplicatePermission"
38 "include-filter": "android.permissionpolicy.cts.RestrictedPermissionsTest"
41 "include-filter": "android.permission.cts.PermissionMaxSdkVersionTest"
49 … "include-filter": "android.cts.statsd.atom.UidAtomTests#testDangerousPermissionState"
59 … "include-filter": "android.appsecurity.cts.AppSecurityTests#testPermissionDiffCert"
67 "include-filter": "android.permission.cts.PermissionUpdateListenerTest"
[all …]
/frameworks/base/services/permission/
DTEST_MAPPING23 "include-filter": "android.permission.cts.BackgroundPermissionsTest"
26 "include-filter": "android.permission.cts.SplitPermissionTest"
29 "include-filter": "android.permission.cts.PermissionFlagsTest"
32 "include-filter": "android.permission.cts.SharedUidPermissionsTest"
40 … "include-filter": "android.appsecurity.cts.AppSecurityTests#rebootWithDuplicatePermission"
51 "include-filter": "android.permissionpolicy.cts.RestrictedPermissionsTest"
54 "include-filter": "android.permission.cts.PermissionMaxSdkVersionTest"
62 … "include-filter": "android.cts.statsd.atom.UidAtomTests#testDangerousPermissionState"
72 … "include-filter": "android.appsecurity.cts.AppSecurityTests#testPermissionDiffCert"
80 "include-filter": "android.permission.cts.PermissionUpdateListenerTest"
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastSkipPolicy.java368 @NonNull BroadcastFilter filter) { in shouldSkipMessage() argument
369 if (r.options != null && !r.options.testRequireCompatChange(filter.owningUid)) { in shouldSkipMessage()
371 + " to uid " + filter.owningUid + " due to compat change " in shouldSkipMessage()
375 filter.packageName, filter.owningUid)) { in shouldSkipMessage()
379 + ", uid=" + r.callingUid + ") to " + filter.packageName + " through " in shouldSkipMessage()
380 + filter; in shouldSkipMessage()
383 r.callingPid, r.resolvedType, filter.receiverList.uid)) { in shouldSkipMessage()
387 + ", uid=" + r.callingUid + ") to " + filter.packageName + " through " in shouldSkipMessage()
388 + filter; in shouldSkipMessage()
391 if (filter.requiredPermission != null) { in shouldSkipMessage()
[all …]
DTEST_MAPPING6 { "include-filter": "android.app.cts.TaskDescriptionTest" },
7 { "include-filter": "android.app.cts.ActivityManagerTest" },
8 { "include-filter": "android.app.cts.ActivityManagerProcessStateTest" },
9 { "include-filter": "android.app.cts.ServiceTest" },
10 { "include-filter": "android.app.cts.ActivityManagerFgsBgStartTest" },
11 { "include-filter": "android.app.cts.ForceStopTest" },
56 "include-filter": "com.android.server.am."
70 "include-filter": "com.android.server.am."
84 { "include-filter": "com.android.internal.os.BatteryStatsTests" },
92 { "include-filter": "com.android.server.am.BatteryStatsServiceTest" }
[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."
38 "include-filter": "android.permissionpolicy.cts.RestrictedPermissionsTest"
41 "include-filter": "android.permissionpolicy.cts.RestrictedStoragePermissionSharedUidTest"
44 "include-filter": "android.permissionpolicy.cts.RestrictedStoragePermissionTest"
55 "include-filter": "android.permission.cts.SplitPermissionTest"
58 "include-filter": "android.permission.cts.BackgroundPermissionsTest"
66 "include-filter": "android.backup.cts.PermissionTest"
76 "include-filter": "com.android.server.policy."
84 "include-filter": "com.android.server.policy."
[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/native/libs/gui/
DTEST_MAPPING16 "exclude-filter": "MultiTextureConsumerTest#EGLImageTargetWorks"
21 "exclude-filter": "SurfaceTest#GetHdrSupport"
24 "exclude-filter": "SurfaceTest#GetWideColorSupport"
29 "exclude-filter": "SurfaceTextureGLTest#InvalidWidthOrHeightFails"
34 "exclude-filter": "SurfaceTextureGLTest#TexturingFromCpuFilledYV12BufferNpot"
37 "exclude-filter": "SurfaceTextureGLTest#TexturingFromCpuFilledYV12BufferPow2"
40 "exclude-filter": "SurfaceTextureGLTest#TexturingFromCpuFilledYV12BufferWithCrop"
43 "exclude-filter": "SurfaceTextureGLTest#TexturingFromCpuFilledYV12BuffersRepeatedly"
48 … "exclude-filter": "SurfaceTextureGLThreadToGLTest#UpdateTexImageBeforeFrameFinishedCompletes"
51 …"exclude-filter": "SurfaceTextureGLThreadToGLTest#RepeatedUpdateTexImageBeforeFrameFinishedComplet…
[all …]
/frameworks/base/services/core/java/com/android/server/appop/
DTEST_MAPPING18 "include-filter": "com.android.server.appop"
26 "include-filter": "com.android.server.appop"
37 "include-filter": "android.permission.cts.BackgroundPermissionsTest"
40 "include-filter": "android.permission.cts.SplitPermissionTest"
43 "include-filter": "android.permission.cts.PermissionFlagsTest"
46 "include-filter": "android.permission.cts.SharedUidPermissionsTest"
54 "include-filter": "android.app.cts.ActivityManagerApi29Test"
62 "include-filter": "android.cts.statsdatom.appops.AppOpsTests#testAppOps"
75 "include-filter": "android.permission.cts.BackgroundPermissionsTest"
78 "include-filter": "android.permission.cts.SplitPermissionTest"
[all …]
/frameworks/base/libs/hwui/jni/
DMaskFilter.cpp23 SkMaskFilter* filter = reinterpret_cast<SkMaskFilter *>(filterHandle); in destructor() local
24 SkSafeUnref(filter); in destructor()
29 SkMaskFilter* filter = SkMaskFilter::MakeBlur((SkBlurStyle)blurStyle, sigma).release(); in createBlur() local
30 ThrowIAE_IfNull(env, filter); in createBlur()
31 return reinterpret_cast<jlong>(filter); in createBlur()
44 SkMaskFilter* filter = SkBlurMaskFilter::MakeEmboss(sigma, in createEmboss() local
46 ThrowIAE_IfNull(env, filter); in createEmboss()
47 return reinterpret_cast<jlong>(filter); in createEmboss()
52 SkMaskFilter* filter = SkTableMaskFilter::Create((const uint8_t*)autoTable.ptr()); in createTable() local
53 return reinterpret_cast<jlong>(filter); in createTable()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/statusbar/
DNoBroadcastContextWrapper.java48 public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() argument
49 return registerReceiver(receiver, filter, 0); in registerReceiver()
53 public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() argument
55 return registerReceiver(receiver, filter, null, null, flags); in registerReceiver()
59 public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() argument
61 return registerReceiver(receiver, filter, broadcastPermission, scheduler, 0); in registerReceiver()
65 public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() argument
67 return registerReceiverAsUser(receiver, getUser(), filter, broadcastPermission, scheduler, in registerReceiver()
74 @NonNull IntentFilter filter, @Nullable String broadcastPermission, in registerReceiverForAllUsers() argument
76 return registerReceiverForAllUsers(receiver, filter, broadcastPermission, scheduler, 0); in registerReceiverForAllUsers()
[all …]
/frameworks/base/services/tests/displayservicetests/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/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DAnimationFilter.java103 combineFilter(events.get(i).filter); in applyCombination()
111 public void combineFilter(AnimationFilter filter) { in combineFilter() argument
112 animateAlpha |= filter.animateAlpha; in combineFilter()
113 animateX |= filter.animateX; in combineFilter()
114 animateY |= filter.animateY; in combineFilter()
115 animateZ |= filter.animateZ; in combineFilter()
116 animateHeight |= filter.animateHeight; in combineFilter()
117 animateTopInset |= filter.animateTopInset; in combineFilter()
118 animateHideSensitive |= filter.animateHideSensitive; in combineFilter()
119 hasDelays |= filter.hasDelays; in combineFilter()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DSmartspaceDedupingCoordinatorTest.kt65 private lateinit var filter: NotifFilter variable in com.android.systemui.statusbar.notification.collection.coordinator.SmartspaceDedupingCoordinatorTest
103 filter = withArgCaptor { in setUp()
106 filter.setInvalidationListener(pluggableListener) in setUp()
160 assertTrue(filter.shouldFilterOut(entry2HasNotRecentlyAlerted, now)) in testBasicFiltering()
161 assertFalse(filter.shouldFilterOut(entry3NotAssociatedWithTarget, now)) in testBasicFiltering()
162 assertFalse(filter.shouldFilterOut(entry4HasNotRecentlyAlerted, now)) in testBasicFiltering()
176 assertFalse(filter.shouldFilterOut(entry1HasRecentlyAlerted, now)) in testDoNotFilterRecentlyAlertedNotifs()
177 assertFalse(filter.shouldFilterOut(entry2HasNotRecentlyAlerted, now)) in testDoNotFilterRecentlyAlertedNotifs()
194 assertTrue(filter.shouldFilterOut(entryOldAlert, now)) in testFilterAlertedButNotRecentNotifs()
221 assertFalse(filter.shouldFilterOut(entry1HasRecentlyAlerted, now)) in testExceptionIsEventuallyFiltered()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DDeviceFilter.java90 public DeviceFilter(@NonNull DeviceFilter filter) { in DeviceFilter() argument
91 mVendorId = filter.mVendorId; in DeviceFilter()
92 mProductId = filter.mProductId; in DeviceFilter()
93 mClass = filter.mClass; in DeviceFilter()
94 mSubclass = filter.mSubclass; in DeviceFilter()
95 mProtocol = filter.mProtocol; in DeviceFilter()
96 mManufacturerName = filter.mManufacturerName; in DeviceFilter()
97 mProductName = filter.mProductName; in DeviceFilter()
98 mSerialNumber = filter.mSerialNumber; in DeviceFilter()
99 mInterfaceName = filter.mInterfaceName; in DeviceFilter()
[all …]
/frameworks/base/services/core/java/com/android/server/uri/
DTEST_MAPPING7 "include-filter": "com.android.server.uri."
15 … "include-filter": "android.appsecurity.cts.ExternalStorageHostTest#testGrantUriPermission"
18 … "include-filter": "android.appsecurity.cts.ExternalStorageHostTest#testGrantUriPermission29"
21 … "include-filter": "android.appsecurity.cts.ExternalStorageHostTest#testMediaNone"
24 … "include-filter": "android.appsecurity.cts.ExternalStorageHostTest#testMediaNone28"
27 … "include-filter": "android.appsecurity.cts.ExternalStorageHostTest#testMediaNone29"
37 … "include-filter": "android.appsecurity.cts.AppSecurityTests#testPermissionDiffCert"
45 "include-filter": "android.server.wm.window.CrossAppDragAndDropTests"
/frameworks/base/core/java/android/app/
DTEST_MAPPING35 "include-filter": "com.android.server.appop"
44 "include-filter": "android.cts.statsdatom.appops.AppOpsTests#testAppOps"
53 "include-filter": "android.permissionpolicy.cts.RuntimePermissionProperties"
65 "include-filter": "android.server.wm.window.ToastWindowTest"
78 "include-filter": "android.autofillservice.cts.saveui.AutofillSaveDialogTest"
90 "include-filter": "android.autofillservice.cts.saveui.PreSimpleSaveActivityTest"
102 "include-filter": "android.autofillservice.cts.saveui.SimpleSaveActivityTest"
120 … "exclude-filter": "android.voiceinteraction.cts.HotwordDetectionServiceStressTest"
150 "include-filter": "android.os.cts.StrictModeTest"
165 "include-filter": "android.content.ContextTest"
[all …]

12345678910>>...57