/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | MoreCollectors.java | 43 static <E> Collector<E, ?, Stream<E>> endingAt(Predicate<E> predicate) { in endingAt() 44 final BiConsumer<Builder<E>, E> endingAtAccumulator = new BiConsumer<Builder<E>, E>() { in endingAt() 48 public void accept(Builder<E> builder, E element) { in endingAt() 80 static <E> Collector<E, ?, Stream<E>> startingFrom(Predicate<E> predicate) { in startingFrom() 81 final BiConsumer<Builder<E>, E> startingFromAccumulator = new BiConsumer<Builder<E>, E>() { in startingFrom() 85 public void accept(Builder<E> builder, E element) { in startingFrom()
|
D | SequenceMatcher.java | 36 static final class MatchResult<E> { 39 private final List<E> mMatchedSequence; 41 MatchResult(boolean matched, List<E> matchedSequence) { in MatchResult() 50 List<E> getMatchedSequence() { in getMatchedSequence() 59 private static final class SequenceAccumulator<E> { 61 private final Predicate<E>[] mPredicates; 62 private final List<E> mSequence = new ArrayList<>(); 64 SequenceAccumulator(Predicate<E>... predicates) { in SequenceAccumulator() 68 void accumulate(E element) { in accumulate() 89 MatchResult<E> getResult() { in getResult() [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | Poll.java | 60 public final class Poll<E> { 67 private final ValueSupplier<E> mSupplier; 68 private ValueChecker<E> mChecker = (v) -> true; 69 private Function<E, Boolean> mTerminalValueChecker; 71 private Function2<String, E, String> mErrorSupplier = 77 private Poll(String valueName, ValueSupplier<E> supplier) { in Poll() 89 public static <E> Poll<E> forValue(ValueSupplier<E> supplier) { in forValue() 98 public static <E> Poll<E> forValue(String valueName, ValueSupplier<E> supplier) { in forValue() 104 public Poll<E> toBeNull() { in toBeNull() 113 public Poll<E> toNotBeNull() { in toNotBeNull() [all …]
|
D | Retry.java | 40 public final class Retry<E> { 44 private final Poll<E> mPoll; 49 public static <E> Retry<E> logic(Poll.ValueSupplier<E> supplier) { in logic() 60 private Retry(Poll.ValueSupplier<E> supplier) { in Retry() 67 public Retry<E> timeout(Duration timeout) { in timeout() 81 public Retry<E> terminalException(Function<Throwable, Boolean> terminalChecker) { in terminalException() 92 public E run() throws Throwable { in run() 106 public E runAndWrapException() throws NeneException { in runAndWrapException()
|
D | BlockingCallback.java | 41 public abstract class BlockingCallback<E> { 45 private AtomicReference<E> mValue = new AtomicReference<>(); 50 public static class DefaultBlockingCallback<E> extends BlockingCallback<E> { 51 public void triggerCallback(E e) { in triggerCallback() 76 protected void callbackTriggered(E value) { in callbackTriggered() 87 public E await() throws InterruptedException { in await() 97 public E await(long timeout, TimeUnit unit) throws InterruptedException { in await()
|
D | Assert.kt | 28 fun <E : Throwable?> assertThrows(message: String? = null, in assertThrows() 29 exception: Class<E>? = null, in assertThrows() 30 executable: () -> Unit): E { in assertThrows() 37 return e as E in assertThrows() 50 fun <E : Throwable?> assertThrows(exception: Class<E>? = null, executable: Runnable): E = in assertThrows()
|
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/queries/ |
D | SetQuery.java | 27 public interface SetQuery<E extends Queryable, F> extends Query<Set<F>> { 30 static <E> SetQueryHelper.SetQueryBase<E> set(Class<E> cls) { in set() 31 return new SetQueryHelper.SetQueryBase<E>(); in set() 36 IntegerQuery<E> size(); in size() 37 E isEmpty(); in isEmpty() 38 E isNotEmpty(); in isNotEmpty() 43 E contains(Query<F>... objects); in contains() 52 E contains(F... objects); in contains() 57 E doesNotContain(Query<F>... objects); in doesNotContain() 66 E doesNotContain(F... objects); in doesNotContain() [all …]
|
D | ListQuery.java | 25 public interface ListQuery<E extends Queryable, F> extends Query<List<F>> { 28 static <E> ListQueryHelper.ListQueryBase<E> list(Class<E> cls) { in list() 29 return new ListQueryHelper.ListQueryBase<E>(); in list() 32 IntegerQuery<E> size(); in size() 37 E contains(Query<F>... objects); in contains() 46 E contains(F... objects); in contains() 51 E doesNotContain(Query<F>... objects); in doesNotContain() 60 E doesNotContain(F... objects); in doesNotContain() 69 <H extends Collection<F>> E containsAll(H... collection); in containsAll() 78 <H extends Collection<F>> E doesNotContainAny(H... collections); in doesNotContainAny() [all …]
|
D | BundleKeyQuery.java | 29 public interface BundleKeyQuery<E extends Queryable> extends Queryable, Serializable, Parcelable { 32 E exists(); in exists() 35 E doesNotExist(); in doesNotExist() 38 StringQuery<E> stringValue(); in stringValue() 41 SerializableQuery<E> serializableValue(); in serializableValue() 44 BundleQuery<E> bundleValue(); in bundleValue() 50 IntegerQuery<E> integerValue(); in integerValue() 56 LongQuery<E> longValue(); in longValue() 62 BooleanQuery<E> booleanValue(); in booleanValue() 68 ListQuery<E, String> stringListValue(); in stringListValue() [all …]
|
D | IntegerQuery.java | 22 public interface IntegerQuery<E extends Queryable> extends Query<Integer> { 30 E isEqualTo(int i); in isEqualTo() 33 E isGreaterThan(int i); in isGreaterThan() 36 E isGreaterThanOrEqualTo(int i); in isGreaterThanOrEqualTo() 39 E isLessThan(int i); in isLessThan() 42 E isLessThanOrEqualTo(int i); in isLessThanOrEqualTo() 45 E matchesAnnotation(com.android.queryable.annotations.IntegerQuery queryAnnotation); in matchesAnnotation()
|
D | LongQuery.java | 22 public interface LongQuery<E extends Queryable> extends Query<Long> { 30 E isEqualTo(long i); in isEqualTo() 33 E isGreaterThan(long i); in isGreaterThan() 36 E isGreaterThanOrEqualTo(long i); in isGreaterThanOrEqualTo() 39 E isLessThan(long i); in isLessThan() 42 E isLessThanOrEqualTo(long i); in isLessThanOrEqualTo()
|
D | PersistableBundleKeyQuery.java | 29 public interface PersistableBundleKeyQuery<E extends Queryable> extends Queryable, Parcelable, 32 E exists(); in exists() 34 E doesNotExist(); in doesNotExist() 37 StringQuery<E> stringValue(); in stringValue() 40 BooleanQuery<E> booleanValue(); in booleanValue() 43 PersistableBundleQuery<E> persistableBundleValue(); in persistableBundleValue()
|
D | NullableQuery.java | 26 public interface NullableQuery<E, F> extends Query<F> { 28 E isEqualTo(F value); in isEqualTo() 31 E isNotEqualTo(F value); in isNotEqualTo() 34 default E isNull() { in isNull() 39 default E isNotNull() { in isNotNull()
|
D | EnumQuery.java | 21 public interface EnumQuery<E extends Queryable, F> extends Query<F> { 22 E isEqualTo(F value); in isEqualTo() 23 E isNotEqualTo(F value); in isNotEqualTo() 24 E isOneOf(F... values); in isOneOf() 25 E isNotOneOf(F... values); in isNotOneOf()
|
D | BooleanQuery.java | 22 public interface BooleanQuery<E extends Queryable> extends Query<Boolean> { 29 E isTrue(); in isTrue() 30 E isFalse(); in isFalse() 31 E isEqualTo(boolean value); in isEqualTo() 34 E matchesAnnotation(com.android.queryable.annotations.BooleanQuery queryAnnotation); in matchesAnnotation()
|
D | BundleKeyQueryHelper.java | 34 public final class BundleKeyQueryHelper<E extends Queryable> implements BundleKeyQuery<E>, 39 private final transient E mQuery; 41 private StringQueryHelper<E> mStringQuery = null; 42 private IntegerQueryHelper<E> mIntegerQuery = null; 43 private LongQueryHelper<E> mLongQuery = null; 44 private BooleanQueryHelper<E> mBooleanQuery = null; 45 private SerializableQueryHelper<E> mSerializableQuery; 46 private BundleQueryHelper<E> mBundleQuery; 47 private ListQueryHelper<E, String> mStringListQuery; 48 private ListQueryHelper<E, Integer> mIntegerListQuery; [all …]
|
D | ActivityQuery.java | 26 public interface ActivityQuery<E extends Queryable> extends Query<ActivityInfo> { 33 ClassQuery<E> activityClass(); in activityClass() 34 BooleanQuery<E> exported(); in exported() 37 StringQuery<E> permission(); in permission() 40 SetQuery<E, IntentFilter> intentFilters(); in intentFilters()
|
/cts/common/device-side/bedstead/activitycontext/src/main/java/com/android/activitycontext/ |
D | ActivityContext.java | 118 public static <E> E getWithContext(Function<ActivityContext, E> runnable) in getWithContext() 127 public static <E> E getWithContext(Function<ActivityContext, E> runnable, in getWithContext() 156 public static <E, F> F getWithContext(E arg1, in getWithContext() argument 157 BiFunction<ActivityContext, E, F> runnable) throws InterruptedException { in getWithContext() 166 public static <E, F> F getWithContext(E arg1, in getWithContext() argument 167 BiFunction<ActivityContext, E, F> runnable, in getWithContext() 176 public static <E> void runWithContext(E arg1, BiConsumer<ActivityContext, E> runnable) in runWithContext() 189 public static <E> void runWithContext(E arg1, BiConsumer<ActivityContext, E> runnable, in runWithContext() 199 public static <E, F, G> G getWithContext(E arg1, F arg2, in getWithContext() argument 200 TriFunction<ActivityContext, E, F, G> runnable) throws InterruptedException { in getWithContext() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BlockingCallback.java | 41 public abstract class BlockingCallback<E> { 45 private AtomicReference<E> mValue = new AtomicReference<>(); 50 public static class DefaultBlockingCallback<E> extends BlockingCallback<E> { 51 public void triggerCallback(E e) { in triggerCallback() 76 protected void callbackTriggered(E value) { in callbackTriggered() 87 public E await() throws InterruptedException { in await() 97 public E await(long timeout, TimeUnit unit) throws InterruptedException { in await()
|
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/collections/ |
D | AbstractQueryableSetQuery.java | 28 … class AbstractQueryableSetQuery<E, F extends Query<E>, G extends QueryableSet<E, F, ?>> implement… 29 private final Set<E> mSet; 32 public AbstractQueryableSetQuery(Set<E> set) { in AbstractQueryableSetQuery() 59 public E get() { in get() 71 abstract G createSet(Set<E> e); in createSet()
|
D | QueryableHashSet.java | 29 …lic abstract class QueryableHashSet<E, F extends Query<E>, G extends QueryableSet<E, F, ?>> implem… 31 protected Set<E> mSet = new HashSet<>(); 37 public QueryableHashSet(Set<E> existingSet) { in QueryableHashSet() 57 public Iterator<E> iterator() { in iterator() 72 public boolean add(E e) { in add() 87 public boolean addAll(Collection<? extends E> c) { in addAll()
|
D | QueryableSet.java | 26 public interface QueryableSet<E, F extends Query<E>, G extends QueryableSet<E, F, ?>> extends Set<E… 31 QueryableSetQuery<E, F, G> query(); in query()
|
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/ |
D | EventLogsQuery.java | 34 public abstract class EventLogsQuery<E extends Event, F extends EventLogsQuery> 35 extends EventLogs<E> implements Queryable { 36 private final Class<E> mEventClass; 38 private final transient Set<Function<E, Boolean>> mFilters = new HashSet<>(); 41 protected EventLogsQuery(Class<E> eventClass, String packageName) { in EventLogsQuery() 55 protected Class<E> eventClass() { in eventClass() 59 private final transient EventQuerier<E> mQuerier; 62 protected EventQuerier<E> getQuerier() { in getQuerier() 67 public F filter(Function<E, Boolean> filter) { in filter() argument 75 protected final boolean filterAll(E event) { in filterAll() [all …]
|
D | LocalEventQuerier.java | 31 public class LocalEventQuerier<E extends Event, F extends EventLogsQuery> implements EventQuerier<E… 32 private final EventLogsQuery<E, F> mEventLogsQuery; 36 LocalEventQuerier(Context context, EventLogsQuery<E, F> eventLogsQuery) { in LocalEventQuerier() argument 43 public E poll(Instant earliestLogTime, Duration timeout) { in poll() 52 public E poll(Instant earliestLogTime, Duration timeout, int skip) { in poll() 73 E typedEvent = (E) event; in poll()
|
/cts/common/device-side/bedstead/metricsrecorder/src/main/java/com/android/bedstead/metricsrecorder/ |
D | MetricQuery.java | 24 public interface MetricQuery<E extends Queryable> extends Query<EnterpriseMetricInfo> { 25 StringQuery<E> type(); in type() 26 StringQuery<E> adminPackageName(); in adminPackageName() 27 BooleanQuery<E> Boolean(); in Boolean() 28 StringQuery<E> strings(); in strings()
|