/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | SimpleScheduler.java | 38 for (Filter filter : getGraph().getFilters()) { 39 if (filter.canProcess()) 40 return filter;
|
H A D | OneShotScheduler.java | 29 * filters will be scheduled, and possibly repeatedly, until there is no filter 55 // return the first filter that is not scheduled before. 57 Filter filter = super.scheduleNextNode(); 58 if (filter == null) { 62 if (!scheduled.containsKey(filter.getName())) { 63 if (filter.getNumberOfConnectedInputs() == 0) 64 scheduled.put(filter.getName(),1); 65 if (mLogVerbose) Log.v(TAG, "Scheduling filter \"" + filter.getName() + "\" of type " + filter [all...] |
H A D | FilterGraph.java | 65 public boolean addFilter(Filter filter) { argument 66 if (!containsFilter(filter)) { 67 mFilters.add(filter); 68 mNameMap.put(filter.getName(), filter); 74 public boolean containsFilter(Filter filter) { argument 75 return mFilters.contains(filter); 89 throw new RuntimeException("Attempting to connect filter not in graph!"); 113 "Attempting to connect unknown source filter '" + sourceName + "'!"); 116 "Attempting to connect unknown target filter '" 175 readyForProcessing(Filter filter, Set<Filter> processed) argument 223 updateOutputs(Filter filter) argument 239 runTypeCheckOn(Filter filter) argument 297 removeFilter(Filter filter) argument [all...] |
H A D | RandomScheduler.java | 44 for (Filter filter : getGraph().getFilters()) { 45 if (filter.canProcess()) 46 candidates.add(filter);
|
H A D | SyncRunner.java | 162 protected void processFilterNode(Filter filter) { argument 163 if (mLogVerbose) Log.v(TAG, "Processing filter node"); 164 filter.performProcess(mFilterContext); 165 if (filter.getStatus() == Filter.STATUS_ERROR) { 166 throw new RuntimeException("There was an error executing " + filter + "!"); 167 } else if (filter.getStatus() == Filter.STATUS_SLEEPING) { 168 if (mLogVerbose) Log.v(TAG, "Scheduling filter wakeup"); 169 scheduleFilterWake(filter, filter.getSleepDelay()); 173 protected void scheduleFilterWake(Filter filter, in argument [all...] |
H A D | RoundRobinScheduler.java | 48 for (Filter filter : all_filters) { 49 if (filter.canProcess()) { 52 // store the first available filter 53 first = filter; 57 // return the next available filter since last 59 return filter;
|
H A D | FinalPort.java | 27 public FinalPort(Filter filter, String name, Field field, boolean hasDefault) { argument 28 super(filter, name, field, hasDefault);
|
/frameworks/base/services/java/com/android/server/pm/ |
H A D | PreferredIntentResolver.java | 31 protected boolean isPackageForFilter(String packageName, PreferredActivity filter) { argument 32 return packageName.equals(filter.mPref.mComponent.getPackageName()); 37 PreferredActivity filter) { 38 filter.mPref.dump(out, prefix, filter); 36 dumpFilter(PrintWriter out, String prefix, PreferredActivity filter) argument
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | MimePredicate.java | 58 public static boolean mimeMatches(String filter, String[] tests) { argument 63 if (mimeMatches(filter, test)) { 74 for (String filter : filters) { 75 if (mimeMatches(filter, test)) { 82 public static boolean mimeMatches(String filter, String test) { argument 85 } else if (filter == null || "*/*".equals(filter)) { 87 } else if (filter.equals(test)) { 89 } else if (filter.endsWith("/*")) { 90 return filter [all...] |
/frameworks/base/core/java/android/text/style/ |
H A D | MaskFilterSpan.java | 26 public MaskFilterSpan(MaskFilter filter) { argument 27 mFilter = filter;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | GraphExporter.java | 66 for(Filter filter : filters) { 67 dotFile.write(getDotName(" " + filter.getName()) + " [label=\"{"); 70 Set<String> inputPorts = getInputPorts(filter, includeUnconnectedOptionalPorts); 82 dotFile.write(filter.getName()); 85 Set<String> outputPorts = getOutputPorts(filter, includeUnconnectedOptionalPorts); 103 for(Filter filter : filters) { 104 Set<String> outputPorts = getOutputPorts(filter, includeUnconnectedOptionalPorts); 106 OutputPort source = filter.getConnectedOutputPort(portName); 117 String color = filter.getSignature().getOutputPortInfo(portName).isRequired() 122 " " + getDotName(filter 165 getInputPorts(Filter filter, boolean includeUnconnectedOptional) argument 183 getOutputPorts(Filter filter, boolean includeUnconnectedOptional) argument [all...] |
H A D | FilterGraph.java | 40 * ports. Every filter belongs to exactly one graph and cannot be moved to another graph. 53 /** Map from name of filter to the filter instance */ 73 /** Map from name of filter to the filter instance */ 85 * Add a filter to the graph. 87 * Adds the specified filter to the set of filters of this graph. The filter must not be in 88 * the graph already, and the filter's name must be unique within the graph. 90 * @param filter th 94 addFilter(Filter filter) argument [all...] |
H A D | Signature.java | 26 * A Signature holds the specification for a filter's input and output ports. 28 * A Signature instance must be returned by the filter's {@link Filter#getSignature()} method. It 29 * specifies the number and names of the filter's input and output ports, whether or not they 31 * time. This makes Signatures useful for understanding how a filter can be integrated into a 171 void checkInputPortsConform(Filter filter) { argument 173 filterInputs.addAll(filter.getConnectedInputPortMap().keySet()); 178 InputPort inputPort = filter.getConnectedInputPort(portName); 180 throw new RuntimeException("Filter " + filter + " does not have required " 187 throw new RuntimeException("Filter " + filter + " has invalid input ports: " 192 void checkOutputPortsConform(Filter filter) { argument [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/ |
H A D | FilterFunctionEnvironment.java | 57 * Create a new FilterFunction from a specific filter class. The function is initialized with 59 * FilterFactory to create the filter instance. 61 * @param filterClass The class of the filter to wrap. This must be a Filter subclass. 62 * @param parameters An argument list of alternating key-value filter parameters. 67 Filter filter = FilterFactory.sharedFactory().createFilterByClass(filterClass, filterName); 68 filter.initWithAssignmentList(parameters); 69 return new FilterFunction(getContext(), filter); 73 * Convenience method to execute a sequence of filter functions. Note that every function in 74 * the list MUST have one input and one output port, except the first filter (which must not 75 * have any input ports) and the last filter (whic [all...] |
/frameworks/native/opengl/tests/filter/ |
H A D | Android.mk | 5 filter.cpp 15 LOCAL_MODULE:= test-opengl-filter
|
/frameworks/base/core/jni/android/graphics/ |
H A D | MaskFilter.cpp | 16 static void destructor(JNIEnv* env, jobject, SkMaskFilter* filter) { argument 17 SkSafeUnref(filter); 21 SkMaskFilter* filter = SkBlurMaskFilter::Create(SkFloatToScalar(radius), local 23 ThrowIAE_IfNull(env, filter); 24 return filter; 36 SkMaskFilter* filter = SkBlurMaskFilter::CreateEmboss(direction, local 40 ThrowIAE_IfNull(env, filter); 41 return filter;
|
/frameworks/testing/androidtestlib/src/com/android/test/runner/ |
H A D | ClassPathScanner.java | 38 * A filter for classpath entry paths 73 public void add(ClassNameFilter filter) { argument 74 mFilters.add(filter); 86 for (ClassNameFilter filter : mFilters) { 87 if (!filter.accept(className)) { 165 * Gets the names of all entries contained in given apk file, that match given filter. 168 private void addEntriesFromApk(Set<String> entryNames, String apkPath, ClassNameFilter filter) argument 176 if (filter.accept(apkClassName)) { 203 public Set<String> getClassPathEntries(ClassNameFilter filter) throws IOException { argument 207 addEntriesFromApk(entryNames, apkPath, filter); [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | IntentResolver.java | 53 Slog.v(TAG, "Adding filter: " + f); 79 Slog.v(TAG, "Removing filter: " + f); 108 F filter; 109 for (int i=0; i<N && (filter=a[i]) != null; i++) { 110 if (packageName != null && !isPackageForFilter(packageName, filter)) { 122 dumpFilter(out, fprefix, filter); 127 filter.dump(printer, fprefix + " "); 281 // on the authority and path by directly matching each resulting filter). 324 * Control whether the given filter is allowed to go into the result 328 protected boolean allowFilterResult(F filter, Lis argument 337 isFilterStopped(F filter, int userId) argument 346 isPackageForFilter(String packageName, F filter) argument 351 newResult(F filter, int match, int userId) argument 360 dumpFilter(PrintWriter out, String prefix, F filter) argument 364 addFilter(ArrayMap<String, F[]> map, String name, F filter) argument 387 register_mime_types(F filter, String prefix) argument 418 unregister_mime_types(F filter, String prefix) argument 448 register_intent_filter(F filter, Iterator<String> i, ArrayMap<String, F[]> dest, String prefix) argument 464 unregister_intent_filter(F filter, Iterator<String> i, ArrayMap<String, F[]> dest, String prefix) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
H A D | UsbDisconnectedReceiver.java | 39 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_DEVICE_DETACHED); 40 activity.registerReceiver(this, filter); 47 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_ACCESSORY_DETACHED); 48 activity.registerReceiver(this, filter);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | TelephonyTester.java | 63 IntentFilter filter = new IntentFilter(); 65 filter.addAction(mPhone.getActionDetached()); 68 filter.addAction(mPhone.getActionAttached()); 71 phone.getContext().registerReceiver(mIntentReceiver, filter, null, mPhone.getHandler());
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
H A D | DcTesterDeactivateAll.java | 73 IntentFilter filter = new IntentFilter(); 75 filter.addAction(sActionDcTesterDeactivateAll); 78 filter.addAction(mPhone.getActionDetached()); 81 phone.getContext().registerReceiver(sIntentReceiver, filter, null, handler);
|
H A D | DcTesterFailBringUpAll.java | 80 IntentFilter filter = new IntentFilter(); 82 filter.addAction(mActionFailBringUp); 85 filter.addAction(mPhone.getActionDetached()); 88 filter.addAction(mPhone.getActionAttached()); 91 phone.getContext().registerReceiver(mIntentReceiver, filter, null, handler);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BluetoothController.java | 43 IntentFilter filter = new IntentFilter(); 44 filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED); 45 filter.addAction(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED); 46 filter.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED); 47 context.registerReceiver(this, filter);
|
H A D | DateView.java | 71 IntentFilter filter = new IntentFilter(); 72 filter.addAction(Intent.ACTION_TIME_TICK); 73 filter.addAction(Intent.ACTION_TIME_CHANGED); 74 filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); 75 filter.addAction(Intent.ACTION_LOCALE_CHANGED); 76 mContext.registerReceiver(mIntentReceiver, filter, null, null);
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | ExternalMediaFormatActivity.java | 75 IntentFilter filter = new IntentFilter(); 76 filter.addAction(Intent.ACTION_MEDIA_REMOVED); 77 filter.addAction(Intent.ACTION_MEDIA_CHECKING); 78 filter.addAction(Intent.ACTION_MEDIA_MOUNTED); 79 filter.addAction(Intent.ACTION_MEDIA_SHARED); 80 registerReceiver(mStorageReceiver, filter);
|