/frameworks/base/tools/aapt2/filter/ |
D | ConfigFilter_test.cpp | 24 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/ |
D | ScanFilterTest.java | 62 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/ |
D | ResourceFilter_test.cpp | 31 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/ |
D | TEST_MAPPING | 7 "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/media/mca/filterfw/java/android/filterfw/core/ |
D | FilterGraph.java | 63 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 …]
|
D | SyncRunner.java | 162 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 …]
|
D | OneShotScheduler.java | 56 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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | FilterGraph.java | 94 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 …]
|
D | GraphExporter.java | 66 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 …]
|
D | Signature.java | 171 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()
|
/frameworks/base/core/jni/android/graphics/ |
D | MaskFilter.cpp | 20 SkMaskFilter* filter = reinterpret_cast<SkMaskFilter *>(filterHandle); in destructor() local 21 SkSafeUnref(filter); in destructor() 26 SkMaskFilter* filter = SkMaskFilter::MakeBlur((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 …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/whitebalance/ |
D | AmbientFilterTest.java | 57 AmbientFilter filter = DisplayWhiteBalanceFactory.createBrightnessFilter(mResourcesSpy); in testBrightnessFilter_ZeroIntercept() local 60 filter.addValue(time_start, 30); in testBrightnessFilter_ZeroIntercept() 61 assertEquals(30, filter.getEstimate(time_start + prediction_time), 0.001); in testBrightnessFilter_ZeroIntercept() 64 filter.addValue(time_start + prediction_time, 40); in testBrightnessFilter_ZeroIntercept() 73 assertEquals(37.5, filter.getEstimate(time_start + prediction_time), 0.001); in testBrightnessFilter_ZeroIntercept() 76 filter.addValue(time_start + horizon + prediction_time, 50); in testBrightnessFilter_ZeroIntercept() 77 assertEquals(40.38846f, filter.getEstimate(time_start + horizon + prediction_time), 0.001); in testBrightnessFilter_ZeroIntercept() 88 AmbientFilter filter = DisplayWhiteBalanceFactory.createBrightnessFilter(mResourcesSpy); in testBrightnessFilter_WithIntercept() local 91 filter.addValue(time_start, 30); in testBrightnessFilter_WithIntercept() 92 assertEquals(30, filter.getEstimate(time_start + prediction_time), 0.001); in testBrightnessFilter_WithIntercept() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | TEST_MAPPING | 7 "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"
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | AnimationFilter.java | 115 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/base/tests/utils/testutils/java/com/android/test/filters/ |
D | SelectTestTests.java | 141 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/policy/ |
D | TEST_MAPPING | 7 "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" 46 "include-filter": "android.permission.cts.SplitPermissionTest" 49 "include-filter": "android.permission.cts.BackgroundPermissionsTest" 59 "include-filter": "com.android.server.policy." 67 "include-filter": "com.android.server.policy."
|
/frameworks/base/services/core/java/com/android/server/ |
D | IntentResolver.java | 229 F filter; in dumpMap() local 232 for (int i=0; i<N && (filter=a[i]) != null; i++) { in dumpMap() 233 if (packageName != null && !isPackageForFilter(packageName, filter)) { in dumpMap() 236 Object label = filterToLabel(filter); in dumpMap() 257 for (int i=0; i<N && (filter=a[i]) != null; i++) { in dumpMap() 258 if (packageName != null && !isPackageForFilter(packageName, filter)) { in dumpMap() 270 dumpFilter(out, fprefix, filter); in dumpMap() 275 filter.dump(printer, fprefix + " "); in dumpMap() 504 protected boolean allowFilterResult(F filter, List<R> dest) { in allowFilterResult() argument 513 protected boolean isFilterStopped(F filter, int userId) { in isFilterStopped() argument [all …]
|
/frameworks/base/core/java/android/content/ |
D | MimeTypeFilter.java | 77 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/ml/nn/runtime/test/fuzzing/ |
D | OperationManager.cpp | 36 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()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | DeviceFilter.java | 237 DeviceFilter filter = (DeviceFilter)obj; in equals() local 239 if (filter.mVendorId != mVendorId || in equals() 240 filter.mProductId != mProductId || in equals() 241 filter.mClass != mClass || in equals() 242 filter.mSubclass != mSubclass || in equals() 243 filter.mProtocol != mProtocol) { in equals() 246 if ((filter.mManufacturerName != null && in equals() 248 (filter.mManufacturerName == null && in equals() 250 (filter.mProductName != null && in equals() 252 (filter.mProductName == null && in equals() [all …]
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | RenderScriptTask.java | 91 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/ |
D | PreferredIntentResolver.java | 31 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | VisualVoicemailSmsFilterTest.java | 126 VisualVoicemailSmsFilter.filter(mContext, pdus, SmsConstants.FORMAT_3GPP, 0, 0)); in testUnsupportedPdu() 140 VisualVoicemailSmsFilter.filter(mContext, VZWVVM_PDU, SmsConstants.FORMAT_3GPP, 0, in testFilterNotSet_matchesVvmPattern_filtered() 147 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 0, 0)); in testOriginatingNumber_unspecified_filtered() 156 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 0, 0)); in testOriginatingNumber_match_filtered() 165 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 0, 0)); in testOriginatingNumber_mismatch_notFiltered() 172 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 123, 0)); in testDestinationPort_anyMatch_filtered() 180 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 456, 0)); in testDestinationPort_anyData_filtered() 188 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, -1, 0)); in testDestinationPort_anyData_textReceived_notFiltered() 196 .filter(mContext, SYNC_PDU, SmsConstants.FORMAT_3GPP, 456, 0)); in testDestinationPort_mismatch_notFiltered()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/idle/ |
D | CarIdlenessTracker.java | 68 IntentFilter filter = new IntentFilter(); in startTracking() local 71 filter.addAction(Intent.ACTION_SCREEN_ON); in startTracking() 74 filter.addAction(ACTION_GARAGE_MODE_ON); in startTracking() 75 filter.addAction(ACTION_GARAGE_MODE_OFF); in startTracking() 78 filter.addAction(ACTION_FORCE_IDLE); in startTracking() 79 filter.addAction(ACTION_UNFORCE_IDLE); in startTracking() 80 filter.addAction(ActivityManagerService.ACTION_TRIGGER_IDLE); in startTracking() 82 context.registerReceiver(this, filter); in startTracking()
|
D | DeviceIdlenessTracker.java | 76 IntentFilter filter = new IntentFilter(); in startTracking() local 79 filter.addAction(Intent.ACTION_SCREEN_ON); in startTracking() 80 filter.addAction(Intent.ACTION_SCREEN_OFF); in startTracking() 83 filter.addAction(Intent.ACTION_DREAMING_STARTED); in startTracking() 84 filter.addAction(Intent.ACTION_DREAMING_STOPPED); in startTracking() 87 filter.addAction(ActivityManagerService.ACTION_TRIGGER_IDLE); in startTracking() 90 filter.addAction(Intent.ACTION_DOCK_IDLE); in startTracking() 91 filter.addAction(Intent.ACTION_DOCK_ACTIVE); in startTracking() 93 context.registerReceiver(this, filter); in startTracking()
|