/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 | OneShotScheduler.java | 57 Filter filter = super.scheduleNextNode(); in scheduleNextNode() local 58 if (filter == null) { in scheduleNextNode() 62 if (!scheduled.containsKey(filter.getName())) { in scheduleNextNode() 63 if (filter.getNumberOfConnectedInputs() == 0) in scheduleNextNode() 64 scheduled.put(filter.getName(),1); in scheduleNextNode() 65 …if (mLogVerbose) Log.v(TAG, "Scheduling filter \"" + filter.getName() + "\" of type " + filter.get… in scheduleNextNode() 66 return filter; in scheduleNextNode() 69 if (first == filter) { in scheduleNextNode() 73 if (first == null) first = filter; in scheduleNextNode()
|
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 | RoundRobinScheduler.java | 48 for (Filter filter : all_filters) { in scheduleNextNode() 49 if (filter.canProcess()) { in scheduleNextNode() 53 first = filter; in scheduleNextNode() 59 return 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/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/services/java/com/android/server/ |
D | IntentResolver.java | 108 F filter; in dumpMap() local 109 for (int i=0; i<N && (filter=a[i]) != null; i++) { in dumpMap() 110 if (packageName != null && !isPackageForFilter(packageName, filter)) { in dumpMap() 122 dumpFilter(out, fprefix, filter); in dumpMap() 127 filter.dump(printer, fprefix + " "); in dumpMap() 328 protected boolean allowFilterResult(F filter, List<R> dest) { in allowFilterResult() argument 337 protected boolean isFilterStopped(F filter, int userId) { in isFilterStopped() argument 346 protected abstract boolean isPackageForFilter(String packageName, F filter); in isPackageForFilter() argument 351 protected R newResult(F filter, int match, int userId) { in newResult() argument 352 return (R)filter; in newResult() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | MaskFilter.cpp | 16 static void destructor(JNIEnv* env, jobject, SkMaskFilter* filter) { in destructor() argument 17 SkSafeUnref(filter); in destructor() 21 SkMaskFilter* filter = SkBlurMaskFilter::Create(SkFloatToScalar(radius), in createBlur() local 23 ThrowIAE_IfNull(env, filter); in createBlur() 24 return filter; in createBlur() 36 SkMaskFilter* filter = SkBlurMaskFilter::CreateEmboss(direction, in createEmboss() local 40 ThrowIAE_IfNull(env, filter); in createEmboss() 41 return filter; in createEmboss()
|
/frameworks/base/services/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/testing/androidtestlib/src/com/android/test/runner/ |
D | ClassPathScanner.java | 73 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/ |
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/base/services/java/com/android/server/usb/ |
D | UsbSettingsManager.java | 219 DeviceFilter filter = (DeviceFilter)obj; in equals() local 220 return (filter.mVendorId == mVendorId && in equals() 221 filter.mProductId == mProductId && in equals() 222 filter.mClass == mClass && in equals() 223 filter.mSubclass == mSubclass && in equals() 224 filter.mProtocol == mProtocol); in equals() 332 AccessoryFilter filter = (AccessoryFilter)obj; in equals() local 333 return (mManufacturer.equals(filter.mManufacturer) && in equals() 334 mModel.equals(filter.mModel) && in equals() 335 mVersion.equals(filter.mVersion)); in equals() [all …]
|
/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/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>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>…
|
D | data-element.jd | 18 <dd><code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html"><intent-filter>… 21 <dd>Adds a data specification to an intent filter. The specification can 32 intent filter, all the other URI attributes are ignored. If a 33 …oot}guide/topics/manifest/data-element.html#host">host</a></code> is not specified for the filter, 39 <code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html"><intent-filter></a… 40 the same filter. So, for example, the following filter specification, 43 <pre><intent-filter . . . > 46 </intent-filter></pre> 50 <pre><intent-filter . . . > 54 </intent-filter></pre> [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ExternalMediaFormatActivity.java | 75 IntentFilter filter = new IntentFilter(); in onResume() local 76 filter.addAction(Intent.ACTION_MEDIA_REMOVED); in onResume() 77 filter.addAction(Intent.ACTION_MEDIA_CHECKING); in onResume() 78 filter.addAction(Intent.ACTION_MEDIA_MOUNTED); in onResume() 79 filter.addAction(Intent.ACTION_MEDIA_SHARED); in onResume() 80 registerReceiver(mStorageReceiver, filter); in onResume()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/ |
D | MffFilterTestCase.java | 105 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DateView.java | 71 IntentFilter filter = new IntentFilter(); in onAttachedToWindow() local 72 filter.addAction(Intent.ACTION_TIME_TICK); in onAttachedToWindow() 73 filter.addAction(Intent.ACTION_TIME_CHANGED); in onAttachedToWindow() 74 filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); in onAttachedToWindow() 75 filter.addAction(Intent.ACTION_LOCALE_CHANGED); in onAttachedToWindow() 76 mContext.registerReceiver(mIntentReceiver, filter, null, null); in onAttachedToWindow()
|
D | BluetoothController.java | 43 IntentFilter filter = new IntentFilter(); in BluetoothController() local 44 filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED); in BluetoothController() 45 filter.addAction(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED); in BluetoothController() 46 filter.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED); in BluetoothController() 47 context.registerReceiver(this, filter); in BluetoothController()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcTesterFailBringUpAll.java | 80 IntentFilter filter = new IntentFilter(); in DcTesterFailBringUpAll() local 82 filter.addAction(mActionFailBringUp); in DcTesterFailBringUpAll() 85 filter.addAction(mPhone.getActionDetached()); in DcTesterFailBringUpAll() 88 filter.addAction(mPhone.getActionAttached()); in DcTesterFailBringUpAll() 91 phone.getContext().registerReceiver(mIntentReceiver, filter, null, handler); in DcTesterFailBringUpAll()
|
/frameworks/base/services/java/com/android/server/media/ |
D | RemoteDisplayProviderWatcher.java | 78 IntentFilter filter = new IntentFilter(); in start() local 79 filter.addAction(Intent.ACTION_PACKAGE_ADDED); in start() 80 filter.addAction(Intent.ACTION_PACKAGE_REMOVED); in start() 81 filter.addAction(Intent.ACTION_PACKAGE_CHANGED); in start() 82 filter.addAction(Intent.ACTION_PACKAGE_REPLACED); in start() 83 filter.addAction(Intent.ACTION_PACKAGE_RESTARTED); in start() 84 filter.addDataScheme("package"); in start() 86 new UserHandle(mUserId), filter, null, mHandler); in start()
|