/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/ |
D | HelperAccessor.java | 29 public class HelperAccessor<T extends IAppHelper> { 30 private final Class<T> mInterfaceClass; 32 private T mHelper; 35 public HelperAccessor(Class<T> klass) { in HelperAccessor() 40 public HelperAccessor<T> withPrefix(String prefix) { in withPrefix() 48 public T get() { in get()
|
D | HelperManager.java | 149 public <T extends ITestHelper> T get(Class<T> base) { in get() 161 public <T extends ITestHelper> T get(Class<T> base, String keyword) { in get() 162 List<T> matching = getAll(base, keyword); in get() 177 public <T extends ITestHelper> T get(Class<T> base, Pattern regex) { in get() 178 List<T> matching = getAll(base, regex); in get() 193 private <T extends ITestHelper> List<T> getAll(Class<T> base, String keyword) { in getAll() 206 private <T extends ITestHelper> List<T> getAll(Class<T> base, Pattern regex) { in getAll() 207 List<T> implementations = new ArrayList<>(); in getAll() 229 implementations.add((T)constructor.newInstance(mInstrumentation)); in getAll()
|
D | HelperTest.java | 43 public abstract class HelperTest<T extends IAppHelper> { 64 protected T mHelper; 146 public T getHelper() { in getHelper() 157 protected abstract Class<T> getHelperClass(); in getHelperClass()
|
/platform_testing/libraries/health/composers/host/src/android/host/test/composer/ |
D | ShuffleBase.java | 25 public abstract class ShuffleBase<T, U> implements Compose<T, U> { 41 public List<U> apply(T args, List<U> input) { in apply() 51 protected abstract boolean getShuffleArgument(T args); in getShuffleArgument() 54 protected abstract long getSeedArgument(T args); in getSeedArgument()
|
D | Compose.java | 27 public interface Compose<T, U> extends BiFunction<T, List<U>, List<U>> { 28 default Compose<T, U> andThen(Compose<T, U> next) { in andThen() argument
|
D | IterateBase.java | 27 public abstract class IterateBase<T, U> implements Compose<T, U> { 47 public List<U> apply(T args, List<U> input) { in apply() 68 protected abstract int getIterationsArgument(T args); in getIterationsArgument() 71 protected abstract OrderOptions getOrdersArgument(T args); in getOrdersArgument()
|
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/ |
D | Assertions.java | 38 public interface TraceAssertion<T> extends Function<T, Result> { 44 default TraceAssertion<T> negate() { in negate() 45 return (T t) -> apply(t).negate(); in negate() 57 public static class NamedAssertion<T> implements TraceAssertion<T> { 58 private final TraceAssertion<T> assertion; 61 public NamedAssertion(TraceAssertion<T> assertion, String name) { in NamedAssertion() 71 public Result apply(T t) { in apply() 81 public static class CompoundAssertion<T> extends NamedAssertion<T> { 82 private final List<NamedAssertion<T>> assertions = new ArrayList<>(); 84 public CompoundAssertion(TraceAssertion<T> assertion, String name) { in CompoundAssertion() [all …]
|
D | AssertionsChecker.java | 34 public class AssertionsChecker<T extends ITraceEntry> { 40 private List<CompoundAssertion<T>> mAssertions = new LinkedList<>(); 42 public void add(Assertions.TraceAssertion<T> assertion, String name) { in add() 46 public void append(Assertions.TraceAssertion<T> assertion, String name) { in append() 47 CompoundAssertion<T> lastAssertion = mAssertions.get(mAssertions.size() - 1); in append() 94 public List<Result> test(List<T> entries) { in test() 95 List<T> filteredEntries; in test() 132 private List<Result> assertChanges(List<T> entries) { in assertChanges() 143 NamedAssertion<T> currentAssertion = mAssertions.get(assertionIndex); in assertChanges() 207 private List<Result> assertEntry(T entry) { in assertEntry() [all …]
|
/platform_testing/libraries/health/options/src/android/platform/test/options/ |
D | TestOption.java | 44 public abstract class TestOption<T> implements TestRule { 46 private T mDefaultValue; 48 private T mValue; 98 public <S extends TestOption<T>> S setRequired(boolean required) { 104 public <S extends TestOption<T>> S setDefault(T defaultValue) { 117 public T get() { 134 protected abstract T parseValueFromString(String value);
|
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/ |
D | ICollectorHelper.java | 5 public interface ICollectorHelper<T> { 15 Map<String, T> getMetrics(); in getMetrics()
|
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/ |
D | HandheldHelperTest.java | 22 public abstract class HandheldHelperTest<T extends IAppHelper> extends HelperTest<T> {
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | BaseCollectionListener.java | 42 public class BaseCollectionListener<T> extends BaseMetricListener { 102 Map<String, T> metrics = mHelper.getMetrics(); in onTestEnd() 103 for (Map.Entry<String, T> entry : metrics.entrySet()) { in onTestEnd() 114 Map<String, T> metrics = mHelper.getMetrics(); in onTestRunEnd() 115 for (Map.Entry<String, T> entry : metrics.entrySet()) { in onTestRunEnd()
|
D | ScheduledRunCollectionListener.java | 51 public class ScheduledRunCollectionListener<T extends Number> extends ScheduledRunMetricListener { 66 protected ICollectorHelper<T> mHelper; 101 private void write(Map<String, T> dataPoint, long timeStamp) { in write() 123 Map<String, T> minMap = new HashMap<>(); 124 Map<String, T> maxMap = new HashMap<>(); 128 private void update(Map<String, T> dataPoint) { in update() 130 T value = dataPoint.get(key); in update() 207 Map<String, T> dataPoint = mHelper.getMetrics(); in collect()
|
/platform_testing/libraries/health/composers/host/tests/src/android/host/test/composer/ |
D | ShuffleTestBase.java | 31 public abstract class ShuffleTestBase<T> { 49 protected abstract ShuffleBase<T, Integer> getShuffle(); in getShuffle() 51 protected abstract T getArguments(boolean shuffle, long seed); in getArguments()
|
D | IterateTestBase.java | 37 public abstract class IterateTestBase<T> { 113 IterateBase<T, Integer> iterator = getIterate(); in testOverrideOptionName() 153 protected abstract IterateBase<T, Integer> getIterate(); in getIterate() 176 public abstract T build(); in build()
|
/platform_testing/libraries/metrics-helper/src/android/support/test/metricshelper/ |
D | MetricsAsserts.java | 186 public <T> T[] toArray(T[] array) { in toArray()
|