/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/queryable/src/main/java/com/android/queryable/queries/ |
D | BundleKeyQuery.java | 26 public interface BundleKeyQuery<E extends Queryable> extends Queryable { 29 E exists(); in exists() 32 E doesNotExist(); in doesNotExist() 35 StringQuery<E> stringValue(); in stringValue() 38 SerializableQuery<E> serializableValue(); in serializableValue() 41 BundleQuery<E> bundleValue(); in bundleValue() 47 IntegerQuery<E> integerValue(); in integerValue() 53 LongQuery<E> longValue(); in longValue() 59 BooleanQuery<E> booleanValue(); in booleanValue() 65 ListQuery<E, String, StringQuery<E>> stringListValue(); in stringListValue() [all …]
|
D | BundleKeyQueryHelper.java | 28 public final class BundleKeyQueryHelper<E extends Queryable> implements BundleKeyQuery<E>, 33 private final E mQuery; 35 private StringQueryHelper<E> mStringQuery = null; 36 private IntegerQueryHelper<E> mIntegerQuery = null; 37 private LongQueryHelper<E> mLongQuery = null; 38 private BooleanQueryHelper<E> mBooleanQuery = null; 39 private SerializableQueryHelper<E> mSerializableQuery; 40 private BundleQueryHelper<E> mBundleQuery; 41 private ListQueryHelper<E, String, StringQuery<E>> mStringListQuery; 42 private ListQueryHelper<E, Integer, IntegerQuery<E>> mIntegerListQuery; [all …]
|
D | SetQuery.java | 27 public interface SetQuery<E extends Queryable, F, G extends Query<F>> extends Query<Set<F>> { 36 IntegerQuery<E> size(); in size() 37 E isEmpty(); in isEmpty() 38 E isNotEmpty(); in isNotEmpty() 43 E contains(G... objects); in contains() 52 E contains(F... objects); in contains() 57 E doesNotContain(G... objects); in doesNotContain() 66 E doesNotContain(F... objects); in doesNotContain() 75 <H extends Collection<F>> E containsAll(H... collections); in containsAll() 84 <H extends Collection<F>> E doesNotContainAny(H... collections); in doesNotContainAny()
|
D | ClassQueryHelper.java | 25 public final class ClassQueryHelper<E extends Queryable> 26 implements ClassQuery<E>, Serializable { 30 private final E mQuery; 31 private final StringQueryHelper<E> mClassName; 32 private final StringQueryHelper<E> mSimpleName; 35 mQuery = (E) this; in ClassQueryHelper() 40 public ClassQueryHelper(E query) { in ClassQueryHelper() 47 public E isSameClassAs(Class<?> clazz) { in isSameClassAs() 52 public StringQuery<E> className() { in className() 57 public StringQuery<E> simpleName() { in simpleName()
|
D | ActivityQueryHelper.java | 25 public final class ActivityQueryHelper<E extends Queryable> implements ActivityQuery<E> { 27 private final E mQuery; 28 private final ClassQueryHelper<E> mActivityClassQueryHelper; 29 private final BooleanQueryHelper<E> mExportedQueryHelper; 30 private final SetQueryHelper<E, IntentFilter, IntentFilterQuery<?>> 34 mQuery = (E) this; in ActivityQueryHelper() 40 public ActivityQueryHelper(E query) { in ActivityQueryHelper() 48 public ClassQuery<E> activityClass() { in activityClass() 53 public BooleanQuery<E> exported() { in exported() 58 public SetQuery<E, IntentFilter, IntentFilterQuery<?>> intentFilters() { in intentFilters()
|
D | ListQuery.java | 25 public interface ListQuery<E extends Queryable, F, G extends Query<F>> extends Query<List<F>> { 31 IntegerQuery<E> size(); in size() 36 E contains(G... objects); in contains() 45 E contains(F... objects); in contains() 50 E doesNotContain(G... objects); in doesNotContain() 59 E doesNotContain(F... objects); in doesNotContain() 68 <H extends Collection<F>> E containsAll(H... collection); in containsAll() 77 <H extends Collection<F>> E doesNotContainAny(H... collections); in doesNotContainAny()
|
D | ServiceQueryHelper.java | 29 public final class ServiceQueryHelper<E extends Queryable> implements ServiceQuery<E> { 31 private final E mQuery; 32 private final ClassQueryHelper<E> mServiceClassQueryHelper; 33 private final SetQueryHelper<E, IntentFilter, IntentFilterQuery<?>> 37 mQuery = (E) this; in ServiceQueryHelper() 42 public ServiceQueryHelper(E query) { in ServiceQueryHelper() 49 public ClassQuery<E> serviceClass() { in serviceClass() 54 public SetQuery<E, IntentFilter, IntentFilterQuery<?>> intentFilters() { in intentFilters()
|
D | LongQuery.java | 22 public interface LongQuery<E extends Queryable> extends Query<Long> { 24 E isEqualTo(long i); in isEqualTo() 27 E isGreaterThan(long i); in isGreaterThan() 30 E isGreaterThanOrEqualTo(long i); in isGreaterThanOrEqualTo() 33 E isLessThan(long i); in isLessThan() 36 E isLessThanOrEqualTo(long i); in isLessThanOrEqualTo()
|
D | IntentQueryHelper.java | 27 public final class IntentQueryHelper<E extends Queryable> implements IntentQuery<E>, 32 private final E mQuery; 33 private final StringQueryHelper<E> mAction; 34 private final BundleQueryHelper<E> mExtras; 37 mQuery = (E) this; in IntentQueryHelper() 42 public IntentQueryHelper(E query) { in IntentQueryHelper() 49 public StringQuery<E> action() { in action() 54 public BundleQuery<E> extras() { in extras()
|
D | BooleanQueryHelper.java | 21 public final class BooleanQueryHelper<E extends Queryable> implements BooleanQuery<E> { 23 private final E mQuery; 27 mQuery = (E) this; in BooleanQueryHelper() 30 public BooleanQueryHelper(E query) { in BooleanQueryHelper() 35 public E isTrue() { in isTrue() 46 public E isFalse() { in isFalse() 57 public E isEqualTo(boolean value) { in isEqualTo()
|
D | BroadcastReceiverQueryHelper.java | 23 public final class BroadcastReceiverQueryHelper<E extends Queryable> 24 implements BroadcastReceiverQuery<E> { 26 private final E mQuery; 27 private final ClassQueryHelper<E> mReceiverClassQueryHelper; 30 mQuery = (E) this; in BroadcastReceiverQueryHelper() 34 public BroadcastReceiverQueryHelper(E query) { in BroadcastReceiverQueryHelper() 40 public ClassQuery<E> receiverClass() { in receiverClass()
|
D | DeviceAdminReceiverQueryHelper.java | 23 public final class DeviceAdminReceiverQueryHelper<E extends Queryable> 24 implements DeviceAdminReceiverQuery<E> { 26 private final E mQuery; 27 private final BroadcastReceiverQueryHelper<E> mBroadcastReceiverQueryHelper; 30 mQuery = (E) this; in DeviceAdminReceiverQueryHelper() 34 public DeviceAdminReceiverQueryHelper(E query) { in DeviceAdminReceiverQueryHelper() 40 public BroadcastReceiverQuery<E> broadcastReceiver() { in broadcastReceiver()
|
D | IntegerQuery.java | 24 public interface IntegerQuery<E extends Queryable> extends Query<Integer> { 31 E isEqualTo(int i); in isEqualTo() 34 E isGreaterThan(int i); in isGreaterThan() 37 E isGreaterThanOrEqualTo(int i); in isGreaterThanOrEqualTo() 40 E isLessThan(int i); in isLessThan() 43 E isLessThanOrEqualTo(int i); in isLessThanOrEqualTo()
|
D | NotificationQueryHelper.java | 30 public final class NotificationQueryHelper<E extends Queryable> implements NotificationQuery<E>, 35 private final E mQuery; 36 private final StringQueryHelper<E> mChannelId; 39 mQuery = (E) this; in NotificationQueryHelper() 43 public NotificationQueryHelper(E query) { in NotificationQueryHelper() 49 public StringQuery<E> channelId() { in channelId()
|
D | PersistableBundleKeyQueryHelper.java | 28 public final class PersistableBundleKeyQueryHelper<E extends Queryable> 29 implements PersistableBundleKeyQuery<E>, Serializable { 33 private final E mQuery; 35 private StringQueryHelper<E> mStringQuery = null; 36 private PersistableBundleQueryHelper<E> mPersistableBundleQuery; 38 public PersistableBundleKeyQueryHelper(E query) { in PersistableBundleKeyQueryHelper() 43 public E exists() { in exists() 53 public E doesNotExist() { in doesNotExist() 63 public StringQuery<E> stringValue() { in stringValue() 72 public PersistableBundleQuery<E> persistableBundleValue() { in persistableBundleValue()
|
D | IntentFilterQueryHelper.java | 32 public class IntentFilterQueryHelper<E extends Queryable> implements IntentFilterQuery<E> { 34 private final E mQuery; 35 private final SetQueryHelper<E, String, StringQuery<?>> mActionsQueryHelper; 36 private final SetQueryHelper<E, String, StringQuery<?>> mCategoriesQueryHelper; 39 mQuery = (E) this; in IntentFilterQueryHelper() 44 public IntentFilterQueryHelper(E query) { in IntentFilterQueryHelper() 51 public SetQuery<E, String, StringQuery<?>> actions() { in actions() 56 public SetQuery<E, String, StringQuery<?>> categories() { in categories()
|
D | PersistableBundleQueryHelper.java | 31 public final class PersistableBundleQueryHelper<E extends Queryable> 32 implements PersistableBundleQuery<E>, Serializable { 36 private final E mQuery; 37 private final Map<String, PersistableBundleKeyQueryHelper<E>> mKeyQueryHelpers = 41 mQuery = (E) this; in PersistableBundleQueryHelper() 44 public PersistableBundleQueryHelper(E query) { in PersistableBundleQueryHelper() 49 public PersistableBundleKeyQuery<E> key(String key) { in key() 58 for (Map.Entry<String, PersistableBundleKeyQueryHelper<E>> keyQueries : in matches() 82 for (Map.Entry<String, PersistableBundleKeyQueryHelper<E>> query : in describeQuery()
|
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 | BundleQueryHelper.java | 31 public final class BundleQueryHelper<E extends Queryable> implements BundleQuery<E>, 36 private final E mQuery; 37 private final Map<String, BundleKeyQueryHelper<E>> mKeyQueryHelpers = new HashMap<>(); 40 mQuery = (E) this; in BundleQueryHelper() 43 public BundleQueryHelper(E query) { in BundleQueryHelper() 48 public BundleKeyQuery<E> key(String key) { in key() 57 for (Map.Entry<String, BundleKeyQueryHelper<E>> keyQueries : mKeyQueryHelpers.entrySet()) { in matches() 84 for (Map.Entry<String, BundleKeyQueryHelper<E>> query : mKeyQueryHelpers.entrySet()) { in describeQuery()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | Poll.java | 58 public final class Poll<E> { 65 private final ValueSupplier<E> mSupplier; 66 private ValueChecker<E> mChecker = (v) -> true; 67 private Function<E, Boolean> mTerminalValueChecker; 69 private Function2<String, E, String> mErrorSupplier = 75 private Poll(String valueName, ValueSupplier<E> supplier) { in Poll() 87 public static <E> Poll<E> forValue(ValueSupplier<E> supplier) { in forValue() 96 public static <E> Poll<E> forValue(String valueName, ValueSupplier<E> supplier) { in forValue() 101 public Poll<E> toBeNull() { in toBeNull() 109 public Poll<E> toNotBeNull() { in toNotBeNull() [all …]
|
D | Retry.java | 36 public final class Retry<E> { 38 private final Poll<E> mPoll; 43 public static <E> Retry<E> logic(Poll.ValueSupplier<E> supplier) { in logic() 54 private Retry(Poll.ValueSupplier<E> supplier) { in Retry() 60 public Retry<E> timeout(Duration timeout) { in timeout() 73 public Retry<E> terminalException(Function<Throwable, Boolean> terminalChecker) { in terminalException() 84 public E run() throws Throwable { in run() 97 public E runAndWrapException() throws NeneException { in runAndWrapException()
|
/cts/common/device-side/bedstead/activitycontext/src/main/java/com/android/activitycontext/ |
D | ActivityContext.java | 71 public static <E> E getWithContext(Function<Activity, E> runnable) throws InterruptedException { in getWithContext() 123 return (E) sReturnValue; in getWithContext() 136 public static <E, F> F getWithContext(E arg1, in getWithContext() argument 137 BiFunction<Activity, E, F> runnable) throws InterruptedException { in getWithContext() 145 public static <E> void runWithContext(E arg1, BiConsumer<Activity, E> runnable) in runWithContext() 151 public static <E, F, G> G getWithContext(E arg1, F arg2, in getWithContext() argument 152 TriFunction<Activity, E, F, G> runnable) throws InterruptedException { in getWithContext() 157 public static <E, F, G, H> H getWithContext(E arg1, F arg2, G arg3, in getWithContext() argument 158 QuadFunction<Activity, E, F, G, H> runnable) throws InterruptedException { in getWithContext()
|
/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 …]
|