Home
last modified time | relevance | path

Searched refs:Strategy (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/util/
DFallbackStrategies.java50 public interface Strategy<Input, Output> { interface in FallbackStrategies
54 private final List<Strategy<Input, Output>> mChainedStrategies;
56 private FallbackStrategies(final Strategy<Input, Output> primaryStrategy) { in FallbackStrategies()
57 mChainedStrategies = new ArrayList<Strategy<Input, Output>>(); in FallbackStrategies()
62 final Strategy<Input, Output> primaryStrategy) { in startWith()
66 public FallbackStrategies<Input, Output> thenTry(final Strategy<Input, Output> strategy) { in thenTry()
75 final Strategy<Input, Output> strategy = mChainedStrategies.get(i); in execute()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DSplitter.java96 private final Strategy strategy;
98 private Splitter(Strategy strategy) { in Splitter()
102 private Splitter(Strategy strategy, boolean omitEmptyStrings, in Splitter()
134 return new Splitter(new Strategy() { in on()
162 return new Splitter(new Strategy() {
207 return new Splitter(new Strategy() {
256 return new Splitter(new Strategy() {
341 private interface Strategy {
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DFrequentContactsCursorQueryData.java26 import com.android.messaging.util.FallbackStrategies.Strategy;
54 private abstract class StrequentContactsQueryStrategy implements Strategy<Void, Cursor> {