Home
last modified time | relevance | path

Searched refs:T (Results 1 – 16 of 16) sorted by relevance

/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DHelperAccessor.java29 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()
DHelperManager.java149 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()
DHelperTest.java43 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/
DShuffleBase.java25 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()
DCompose.java27 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
DIterateBase.java27 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/
DAssertions.java38 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 …]
DAssertionsChecker.java34 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/
DTestOption.java44 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/
DICollectorHelper.java5 public interface ICollectorHelper<T> {
15 Map<String, T> getMetrics(); in getMetrics()
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/
DHandheldHelperTest.java22 public abstract class HandheldHelperTest<T extends IAppHelper> extends HelperTest<T> {
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DBaseCollectionListener.java42 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()
DScheduledRunCollectionListener.java51 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/
DShuffleTestBase.java31 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()
DIterateTestBase.java37 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/
DMetricsAsserts.java186 public <T> T[] toArray(T[] array) { in toArray()