/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/base/media/mca/filterfw/java/android/filterfw/core/ |
D | FilterGraph.java | 65 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 …]
|
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()
|
D | GraphRunner.java | 353 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/ |
D | BluetoothMasRequestGetMessagesListing.java | 42 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/DocumentsUI/src/com/android/documentsui/ |
D | MimePredicate.java | 58 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/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 = SkBlurMaskFilter::Create((SkBlurStyle)blurStyle, sigma); in createBlur() local 27 ThrowIAE_IfNull(env, filter); in createBlur() 28 return reinterpret_cast<jlong>(filter); in createBlur() 41 SkMaskFilter* filter = SkBlurMaskFilter::CreateEmboss(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 …]
|
D | DrawFilter.cpp | 44 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/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
D | AnimationFilter.java | 100 combineFilter(events.get(i).filter); in applyCombination() 117 private void combineFilter(AnimationFilter filter) { in combineFilter() argument 118 animateAlpha |= filter.animateAlpha; in combineFilter() 119 animateY |= filter.animateY; in combineFilter() 120 animateZ |= filter.animateZ; in combineFilter() 121 animateScale |= filter.animateScale; in combineFilter() 122 animateHeight |= filter.animateHeight; in combineFilter() 123 animateTopInset |= filter.animateTopInset; in combineFilter() 124 animateDimmed |= filter.animateDimmed; in combineFilter() 125 animateDark |= filter.animateDark; in combineFilter() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | IntentResolver.java | 228 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() 476 protected boolean allowFilterResult(F filter, List<R> dest) { in allowFilterResult() argument 485 protected boolean isFilterStopped(F filter, int userId) { in isFilterStopped() argument [all …]
|
/frameworks/base/tools/aapt2/ |
D | ManifestMerger_test.cpp | 33 <intent-filter> 36 </intent-filter> 39 <intent-filter> 41 </intent-filter> 55 <intent-filter> 57 </intent-filter> 65 <intent-filter> 67 </intent-filter> 81 <intent-filter> 83 </intent-filter>
|
/frameworks/base/docs/html/ndk/reference/ |
D | dynsections.js | 25 removeClass('even').filter(':visible:even').addClass('even'); 58 var childRows = rows.filter(function() { 64 if (childRows.filter(':first').is(':visible')===true) { 65 currentRowImages.filter("[id^=arr]").attr('src', 'ftv2pnode.png'); 66 currentRowImages.filter("[id^=img]").attr('src', 'ftv2folderclosed.png'); 67 rows.filter("[id^=row_"+id+"]").hide(); 71 var childImg = childImages.filter("[id^=img]"); 72 var childArr = childImages.filter("[id^=arr]"); 89 if (rows.filter(':first').is(':visible')===true) {
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbSettingsManager.java | 287 DeviceFilter filter = (DeviceFilter)obj; in equals() local 289 if (filter.mVendorId != mVendorId || in equals() 290 filter.mProductId != mProductId || in equals() 291 filter.mClass != mClass || in equals() 292 filter.mSubclass != mSubclass || in equals() 293 filter.mProtocol != mProtocol) { in equals() 296 if ((filter.mManufacturerName != null && in equals() 298 (filter.mManufacturerName == null && in equals() 300 (filter.mProductName != null && in equals() 302 (filter.mProductName == null && in equals() [all …]
|
/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/support/v4/java/android/support/v4/content/ |
D | LocalBroadcastManager.java | 48 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/data-binding/compiler/src/main/java/android/databinding/tool/util/ |
D | GenerationalClassUtil.java | 49 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() 92 for (ExtensionFilter filter : ExtensionFilter.values()) { in loadFromDirectory() 93 if (filter.accept(file.getName())) { in loadFromDirectory() 100 sCache[filter.ordinal()].add(item); in loadFromDirectory() 122 for (ExtensionFilter filter : ExtensionFilter.values()) { in loadFomZipFile() 123 if (!filter.accept(entry.getName())) { in loadFomZipFile() 133 sCache[filter.ordinal()].add(item); in loadFomZipFile()
|
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
D | RegisteredMediaRouteProviderWatcher.java | 59 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/tests/servicestests/src/com/android/server/ |
D | BroadcastInterceptingContext.java | 50 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/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | ColorFiltersMutateActivity.java | 107 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/docs/html/guide/topics/manifest/ |
D | action-element.jd | 11 <dd><code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html"><intent-filter>… 15 <dd itemprop="description">Adds an action to an intent filter. 16 An <code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html"><intent-filter>… 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"><intent-filter>…
|