Move to Android N-MR1 SDK.
[android_tools.git] / sdk / sources / android-25 / android / filterfw / core / SimpleScheduler.java
blobbb4e5baee76db88380f72894e583349d490183c5
1 /*
2 * Copyright (C) 2011 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 package android.filterfw.core;
20 import android.filterfw.core.Filter;
21 import android.filterfw.core.Scheduler;
23 /**
24 * @hide
26 public class SimpleScheduler extends Scheduler {
28 public SimpleScheduler(FilterGraph graph) {
29 super(graph);
32 @Override
33 public void reset() {
36 @Override
37 public Filter scheduleNextNode() {
38 for (Filter filter : getGraph().getFilters()) {
39 if (filter.canProcess())
40 return filter;
42 return null;