/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | BaseCollectionListenerTest.java | 57 private ICollectorHelper helper; field in BaseCollectionListenerTest 65 BaseCollectionListener listener = new BaseCollectionListener<String>(b, helper); in initListener() 66 doReturn(true).when(helper).startCollecting(); in initListener() 67 doReturn(new HashMap<String, String>()).when(helper).getMetrics(); in initListener() 68 doReturn(true).when(helper).stopCollecting(); in initListener() 83 verify(helper, times(1)).startCollecting(); in testPerRunFlow() 85 verify(helper, times(1)).startCollecting(); in testPerRunFlow() 87 verify(helper, times(0)).stopCollecting(); in testPerRunFlow() 89 verify(helper, times(1)).stopCollecting(); in testPerRunFlow() 104 verify(helper, times(0)).startCollecting(); in testPerTestFlow() [all …]
|
/platform_testing/libraries/system-helpers/ |
D | Android.bp | 24 "account-helper", 25 "activity-helper", 26 "commands-helper", 27 "connectivity-helper", 28 "device-helper", 29 "permission-helper", 30 "settings-helper", 31 "sysui-helper", 32 "user-helper", 33 "package-helper", [all …]
|
/platform_testing/libraries/collectors-helper/system/test/src/com/android/helpers/tests/ |
D | BugReportDurationHelperTest.java | 59 private BugReportDurationHelper helper; field in BugReportDurationHelperTest 65 helper = new BugReportDurationHelper(testDir.getPath()); in setUp() 66 helper.startCollecting(); in setUp() 72 helper.stopCollecting(); in tearDown() 138 Map<String, Double> metrics = helper.getMetrics(); in testGetMetrics() 158 assertEquals("bugreport-2022-04-23-03-12-33.zip", helper.getLatestBugReport()); in testGetLatestBugReport() 204 BugReportDurationLines filtered = helper.extractAndFilterBugReport(zip); in testExtractAndFilterBugReport() 240 DumpstateBoardLines filtered = helper.extractAndFilterDumpstateBoard(zip); in testExtractAndFilterDumpstateBoard() 256 assertEquals(44.619, helper.parseDecimalDuration(line1), DELTA); in testParseDecimalDurationForDumpstate() 257 assertEquals(21.397, helper.parseDecimalDuration(line2), DELTA); in testParseDecimalDurationForDumpstate() [all …]
|
D | TimingHelperTest.java | 52 @Spy private TimingHelper helper; field in TimingHelperTest 56 helper = new TimingHelper(); in setUp() 66 ArrayList<String> logs = helper.getTimingLogs(is); in testGetTimingLogs() 75 String[] info = helper.parseTimingInfo(log); in testParseTimingInfo() 85 assertNull(helper.parseTimingInfo(nonNumerical)); in testParseTimingInfoInvalidLog() 89 assertNull(helper.parseTimingInfo(incorrectSeparator)); in testParseTimingInfoInvalidLog() 93 assertNull(helper.parseTimingInfo(multipleSeparators)); in testParseTimingInfoInvalidLog() 109 doReturn(logs).when(helper).getTimingLogs(any()); in testGetMetrics() 110 Map<String, Integer> metrics = helper.getMetrics(); in testGetMetrics()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/ |
D | WindowManagerStateHelperTest.kt | 199 val helper = in <lambda>() constant 207 .that(helper.wmState.isVisible(ComponentNameMatcher.IME)) in <lambda>() 209 helper.StateSyncBuilder().withImeShown().waitFor() in <lambda>() 211 .that(helper.wmState.isVisible(ComponentNameMatcher.IME)) in <lambda>() 220 val helper = in <lambda>() constant 228 .that(helper.wmState.isVisible(ComponentNameMatcher.IME)) in <lambda>() 230 helper.StateSyncBuilder().withImeShown().waitFor() in <lambda>() 232 .that(helper.wmState.isVisible(ComponentNameMatcher.IME)) in <lambda>() 241 val helper = in <lambda>() constant 249 .that(helper.wmState.isVisible(simpleAppComponentName)) in <lambda>() [all …]
|
/platform_testing/libraries/device-collectors/src/main/ |
D | Android.bp | 26 "adservices-collector-helper", 30 "app-collector-helper", 31 "generic-helper", 32 "jank-helper", 34 "lyric-metric-helper", 35 "memory-helper", 36 "perfetto-helper", 38 "power-helper", 39 "simpleperf-helper", 40 "system-metric-helper",
|
/platform_testing/tests/automotive/snippets/phone/ |
D | Android.bp | 23 "automotive-dial-app-helper", 24 "automotive-vehiclehardkeys-app-helper", 25 "automotive-settings-app-helper", 26 "automotive-sms-helper", 27 "automotive-general-ui-helper", 30 "automotive-status-bar-helper", 31 "automotive-media-center-app-helper", 43 "automotive-general-ui-helper", 44 "automotive-dial-app-helper", 45 "automotive-phone-helper",
|
/platform_testing/libraries/collectors-helper/lyric/test/src/com/android/helpers/ |
D | LyricMemProfilerHelperTest.java | 209 LyricMemProfilerHelper helper = new LyricMemProfilerHelper(); in testParsePid() local 210 helper.setProfileCameraProcName(TEST_PID_NAME_LIST); in testParsePid() 211 helper.setProfileMetricName(TEST_METRIC_NAME_LIST); in testParsePid() 212 String providerMemInfoString = helper.getMemInfoString(""); in testParsePid() 213 String dmabufDumpString = helper.getDmabufDumpString(); in testParsePid() 219 helper.setProfileCameraProcName(TEST_PID_NAME_LIST); in testParsePid() 220 helper.startCollecting(); in testParsePid() 222 dmabufDumpString = helper.getDmabufDumpString(); in testParsePid() 225 memInfoStringList[i] = helper.getMemInfoString(helper.mCameraPidList[i]); in testParsePid() 227 Map<String, Integer> metrics = helper.processOutput(memInfoStringList, dmabufDumpString); in testParsePid() [all …]
|
/platform_testing/libraries/collectors-helper/tests/ |
D | Android.bp | 25 "adservices-helper-test", 26 "app-collector-helper-test", 27 "generic-helper-test", 28 "jank-helper-test", 29 "memory-helper-test", 30 "perfetto-helper-test", 31 "system-helper-test",
|
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/ |
D | SetFlagsRuleClassRuleTest.java | 51 Helper helper = new Helper(rule); in makeClassRuleHelper() local 52 helper.setClassRule(classRule); in makeClassRuleHelper() 53 return helper; in makeClassRuleHelper() 58 Helper helper = makeClassRuleHelper(/* params= */ null, /* watchFlags= */ false); in setFlagsFailsIfNotWatched() local 59 SetFlagsRule setFlagsRule = helper.getSetFlagsRule(); in setFlagsFailsIfNotWatched() 60 helper.setTestCode( in setFlagsFailsIfNotWatched() 72 Helper helper = makeClassRuleHelper(/* params= */ null, /* watchFlags= */ false); in setFlagsCanBeMarkedAsWatchedWithUsesFlags() local 73 SetFlagsRule setFlagsRule = helper.getSetFlagsRule(); in setFlagsCanBeMarkedAsWatchedWithUsesFlags() 74 helper.setTestClass(TestClass.class) in setFlagsCanBeMarkedAsWatchedWithUsesFlags() 137 Helper helper = makeDeviceDefaultHelper(); in setFlagsCannotBeReadBeforeSet() local [all …]
|
D | SetFlagsRuleTestCommon.java | 173 Helper helper = makeDeviceDefaultHelper(); in enablingFlagEnabledByAnnotationFails() local 174 SetFlagsRule setFlagsRule = helper.getSetFlagsRule(); in enablingFlagEnabledByAnnotationFails() 175 helper.addEnableFlags(Flags.FLAG_FLAG_NAME3) in enablingFlagEnabledByAnnotationFails() 186 Helper helper = makeDeviceDefaultHelper(); in disablingFlagEnabledByAnnotationFails() local 187 SetFlagsRule setFlagsRule = helper.getSetFlagsRule(); in disablingFlagEnabledByAnnotationFails() 188 helper.addEnableFlags(Flags.FLAG_FLAG_NAME3) in disablingFlagEnabledByAnnotationFails() 199 Helper helper = makeDeviceDefaultHelper(); in enablingFlagDisabledByAnnotationFails() local 200 SetFlagsRule setFlagsRule = helper.getSetFlagsRule(); in enablingFlagDisabledByAnnotationFails() 201 helper.addDisableFlags(Flags.FLAG_FLAG_NAME3) in enablingFlagDisabledByAnnotationFails() 212 Helper helper = makeDeviceDefaultHelper(); in disablingFlagDisabledByAnnotationFails() local [all …]
|
/platform_testing/tests/automotive/functional/uxrestriction/ |
D | Android.bp | 26 "automotive-settings-app-helper", 27 "automotive-utility-helper", 33 "automotive-notifications-app-helper", 34 "automotive-vehiclehardkeys-app-helper", 35 "automotive-dial-app-helper", 36 "automotive-app-grid-helper", 37 "automotive-facet-bar-helper",
|
/platform_testing/tests/functional/permission/ |
D | Android.bp | 14 "launcher-helper-lib", 15 "permission-helper", 16 "package-helper",
|
/platform_testing/tests/automotive/functional/statusbar/ |
D | Android.bp | 27 "automotive-status-bar-helper", 29 "automotive-home-helper", 30 "automotive-utility-helper", 31 "automotive-settings-app-helper", 32 "automotive-status-bar-helper", 33 "automotive-utility-helper",
|
/platform_testing/libraries/health/rules/ |
D | Android.bp | 32 "memory-helper", 33 "notes-role-test-helper", 34 "package-helper", 37 "statsd-helper", 40 "uinput-device-test-helper", 41 "user-helper", 77 "memory-helper", 78 "package-helper", 79 "statsd-helper",
|
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/generic/ |
D | OpenApps.java | 63 OpenApp.IGenericAppHelper helper = sHelper.get(); in testOpen() local 64 helper.setLauncherName(name); in testOpen() 65 helper.setPackage(pkg); in testOpen() 67 helper.open(); in testOpen() 71 helper.exit(); in testOpen()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | PinnerSnapshotListener.java | 39 public PinnerSnapshotListener(Bundle args, PinnerHelper helper) { in PinnerSnapshotListener() argument 40 super(args, helper); in PinnerSnapshotListener() 41 mPinnerHelper = helper; in PinnerSnapshotListener()
|
D | PerfettoTracingPerTestStrategy.java | 53 public PerfettoTracingPerTestStrategy(PerfettoHelper helper, Instrumentation instr) { in PerfettoTracingPerTestStrategy() argument 54 super(helper, instr); in PerfettoTracingPerTestStrategy() 63 PerfettoHelper helper, in PerfettoTracingPerTestStrategy() argument 70 super(helper, instr, wakeLockContext, wakelockSupplier, wakeLockAcquirer, wakeLockReleaser); in PerfettoTracingPerTestStrategy() 80 PerfettoHelper helper, Instrumentation instr, Map invocationMap) { in PerfettoTracingPerTestStrategy() argument
|
D | AppVersionListener.java | 51 public AppVersionListener(Bundle args, AppVersionHelper helper) { in AppVersionListener() argument 52 super(args, helper); in AppVersionListener() 53 mAppVersionHelper = helper; in AppVersionListener()
|
D | PerfettoTracingPerRunStrategy.java | 51 public PerfettoTracingPerRunStrategy(PerfettoHelper helper, Instrumentation instr) { in PerfettoTracingPerRunStrategy() argument 52 super(helper, instr); in PerfettoTracingPerRunStrategy() 61 PerfettoHelper helper, in PerfettoTracingPerRunStrategy() argument 67 super(helper, instr, wakeLockContext, wakelockSupplier, wakeLockAcquirer, wakeLockReleaser); in PerfettoTracingPerRunStrategy()
|
D | ProcessShowmapListener.java | 53 public ProcessShowmapListener(Bundle args, ProcessShowmapHelper helper) { in ProcessShowmapListener() argument 54 super(args, helper); in ProcessShowmapListener() 55 mShowmapHelper = helper; in ProcessShowmapListener()
|
/platform_testing/libraries/system-helpers/accessibility-helper/ |
D | Android.bp | 22 name: "accessibility-helper", 26 "settings-helper", 27 "package-helper", 28 "activity-helper",
|
/platform_testing/libraries/system-helpers/sysui-helper/ |
D | Android.bp | 22 name: "sysui-helper", 27 "activity-helper", 28 "commands-helper", 29 "device-helper",
|
/platform_testing/libraries/launcher-helper/ |
D | Android.bp | 22 name: "launcher-helper-lib", 28 "activity-helper", 32 "commands-helper", 33 "activity-helper",
|
/platform_testing/tests/automotive/functional/mediacenter/ |
D | Android.bp | 26 "automotive-app-grid-helper", 27 "automotive-home-helper", 28 "automotive-media-center-app-helper", 29 "automotive-utility-helper",
|