Home
last modified time | relevance | path

Searched refs:option (Results 1 – 22 of 22) sorted by relevance

/platform_testing/libraries/health/options/tests/src/android/platform/test/options/
DTestOptionTest.java16 package android.platform.test.option;
72 TestableOption option = new TestableOption(OPTION_NAME); in testSuppliedValue_valid() local
73 option.stubValue(VALUE_VALID); in testSuppliedValue_valid()
78 Assert.assertEquals(VALUE_VALID, option.get()); in testSuppliedValue_valid()
81 Statement withOption = option.apply(testStatement, Description.EMPTY); in testSuppliedValue_valid()
90 TestableOption option = new TestableOption(OPTION_NAME); in testSuppliedValue_invalid() local
91 option.stubValue(VALUE_INVALID); in testSuppliedValue_invalid()
96 Assert.assertEquals(VALUE_VALID, option.get()); in testSuppliedValue_invalid()
99 Statement withOption = option.apply(testStatement, Description.EMPTY); in testSuppliedValue_invalid()
108 TestableOption option = new TestableOption(OPTION_NAME).setRequired(true); in testRequiredValueAbsent_explicit() local
[all …]
DBooleanOptionTest.java16 package android.platform.test.option;
51 TestableBooleanOption option = new TestableBooleanOption(OPTION_NAME); in testParsing_true() local
52 option.stubValue(String.valueOf(true)); in testParsing_true()
57 Assert.assertEquals(true, option.get()); in testParsing_true()
60 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_true()
67 TestableBooleanOption option = new TestableBooleanOption(OPTION_NAME); in testParsing_false() local
68 option.stubValue("not true"); in testParsing_false()
73 Assert.assertEquals(false, option.get()); in testParsing_false()
76 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_false()
DIntegerOptionTest.java16 package android.platform.test.option;
55 TestableIntegerOption option = new TestableIntegerOption(OPTION_NAME); in testParsing_valid() local
58 option.stubValue(String.valueOf(value)); in testParsing_valid()
63 Assert.assertEquals(value, option.get()); in testParsing_valid()
66 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_valid()
75 TestableIntegerOption option = new TestableIntegerOption(OPTION_NAME); in testParsing_invalid() local
76 option.stubValue("not an integer"); in testParsing_invalid()
81 option.get(); in testParsing_invalid()
84 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_invalid()
DDoubleOptionTest.java16 package android.platform.test.option;
55 TestableDoubleOption option = new TestableDoubleOption(OPTION_NAME); in testParsing_valid() local
58 option.stubValue(String.valueOf(value)); in testParsing_valid()
63 Assert.assertEquals(value, option.get()); in testParsing_valid()
66 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_valid()
75 TestableDoubleOption option = new TestableDoubleOption(OPTION_NAME); in testParsing_invalid() local
76 option.stubValue("not a number"); in testParsing_invalid()
81 option.get(); in testParsing_invalid()
84 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_invalid()
DLongOptionTest.java16 package android.platform.test.option;
55 TestableLongOption option = new TestableLongOption(OPTION_NAME); in testParsing_valid() local
58 option.stubValue(String.valueOf(value)); in testParsing_valid()
63 Assert.assertEquals(value, option.get()); in testParsing_valid()
66 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_valid()
75 TestableLongOption option = new TestableLongOption(OPTION_NAME); in testParsing_invalid() local
76 option.stubValue("not an long"); in testParsing_invalid()
81 option.get(); in testParsing_invalid()
84 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_invalid()
DStringOptionTest.java16 package android.platform.test.option;
51 TestableStringOption option = new TestableStringOption(OPTION_NAME); in testRetrieval() local
53 option.stubValue(value); in testRetrieval()
58 Assert.assertEquals(value, option.get()); in testRetrieval()
61 Statement withOption = option.apply(testStatement, Description.EMPTY); in testRetrieval()
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchLeanbackJankTests.java103 Option option = method.getAnnotation(Option.class); in beforeTest() local
105 extrasBundle.putBoolean(EXTRA_BITMAP_UPLOAD, option.extraBitmapUpload()); in beforeTest()
106 extrasBundle.putBoolean(EXTRA_SHOW_FAST_LANE, option.extraShowFastLane()); in beforeTest()
107 mHelper.launchActivity(option.activity(), extrasBundle, option.expectedText()); in beforeTest()
/platform_testing/libraries/health/options/src/android/platform/test/options/
DStringOption.java16 package android.platform.test.option;
DIntegerOption.java16 package android.platform.test.option;
DDoubleOption.java16 package android.platform.test.option;
DBooleanOption.java16 package android.platform.test.option;
DLongOption.java16 package android.platform.test.option;
DTestOption.java16 package android.platform.test.option;
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/system/
DScreenOff.java21 import android.platform.test.option.BooleanOption;
22 import android.platform.test.option.LongOption;
DScreenOn.java21 import android.platform.test.option.LongOption;
/platform_testing/tests/jank/jankmicrobenchmark/src/com/android/jankmicrobenchmark/janktests/
DApiDemoJankTests.java98 UiObject2 option = mDevice.wait(Until.findObject( in selectAnimation() local
101 while (option == null && maxAttempt > 0) { in selectAnimation()
104 option = mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, "text1") in selectAnimation()
108 Assert.assertNotNull("Target option in APiDemos animation for test isn't found", option); in selectAnimation()
109 option.click(); in selectAnimation()
290 UiObject2 option = null; in selectViews() local
292 while (option == null && maxAttempt > 0) { in selectViews()
293 option = mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, "text1") in selectViews()
295 if (option == null) { in selectViews()
301 Assert.assertNotNull("Target option to be tested in ApiDemos Views can't be found", option); in selectViews()
[all …]
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/
DAssertionsChecker.java68 private void setOption(AssertionOption option) { in setOption() argument
69 if (mOption != AssertionOption.NONE && option != mOption) { in setOption()
71 "Cannot use " + mOption + " option with " + option + " option."); in setOption()
73 mOption = option; in setOption()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/generic/
DOpenApps.java21 import android.platform.test.option.LongOption;
22 import android.platform.test.option.StringOption;
DOpenApp.java24 import android.platform.test.option.LongOption;
25 import android.platform.test.option.StringOption;
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/sleep/
DIdle.java20 import android.platform.test.option.LongOption;
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
Dprofile.proto19 option java_package = "android.platform.test.longevity.proto";
20 option java_multiple_files = true;
/platform_testing/libraries/health/runners/longevity/
DREADME.md35 `adb shell am instrument -w -r -e <option> <value> -e class <suite>