/platform_testing/libraries/health/options/tests/src/android/platform/test/options/ |
D | TestOptionTest.java | 16 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 …]
|
D | BooleanOptionTest.java | 16 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()
|
D | IntegerOptionTest.java | 16 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()
|
D | DoubleOptionTest.java | 16 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()
|
D | LongOptionTest.java | 16 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()
|
D | StringOptionTest.java | 16 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/ |
D | UiBenchLeanbackJankTests.java | 103 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/ |
D | StringOption.java | 16 package android.platform.test.option;
|
D | IntegerOption.java | 16 package android.platform.test.option;
|
D | DoubleOption.java | 16 package android.platform.test.option;
|
D | BooleanOption.java | 16 package android.platform.test.option;
|
D | LongOption.java | 16 package android.platform.test.option;
|
D | TestOption.java | 16 package android.platform.test.option;
|
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/system/ |
D | ScreenOff.java | 21 import android.platform.test.option.BooleanOption; 22 import android.platform.test.option.LongOption;
|
D | ScreenOn.java | 21 import android.platform.test.option.LongOption;
|
/platform_testing/tests/jank/jankmicrobenchmark/src/com/android/jankmicrobenchmark/janktests/ |
D | ApiDemoJankTests.java | 98 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/ |
D | AssertionsChecker.java | 68 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/ |
D | OpenApps.java | 21 import android.platform.test.option.LongOption; 22 import android.platform.test.option.StringOption;
|
D | OpenApp.java | 24 import android.platform.test.option.LongOption; 25 import android.platform.test.option.StringOption;
|
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/sleep/ |
D | Idle.java | 20 import android.platform.test.option.LongOption;
|
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/ |
D | profile.proto | 19 option java_package = "android.platform.test.longevity.proto"; 20 option java_multiple_files = true;
|
/platform_testing/libraries/health/runners/longevity/ |
D | README.md | 35 `adb shell am instrument -w -r -e <option> <value> -e class <suite>
|