/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | HostAtomTests.java | 23 import android.cts.statsdatom.lib.DeviceUtils; 84 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 85 DeviceUtils.turnBatteryStatsAutoResetOff(getDevice()); in setUp() 93 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 94 DeviceUtils.turnBatteryStatsAutoResetOn(getDevice()); in tearDown() 109 DeviceUtils.turnScreenOn(getDevice()); in testScreenStateChangedAtom() 111 DeviceUtils.turnScreenOff(getDevice()); in testScreenStateChangedAtom() 130 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testScreenStateChangedAtom() 134 DeviceUtils.turnScreenOn(getDevice()); in testScreenStateChangedAtom() 136 DeviceUtils.turnScreenOff(getDevice()); in testScreenStateChangedAtom() [all …]
|
D | UidAtomTests.java | 24 import android.cts.statsdatom.lib.DeviceUtils; 100 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 108 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 122 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testIsolatedToHostUidMapping() 126 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", in testIsolatedToHostUidMapping() 133 assertThat(atom.getUid()).isEqualTo(DeviceUtils.getStatsdTestAppUid(getDevice())); in testIsolatedToHostUidMapping() 139 boolean hasKernel = DeviceUtils.isKernelGreaterEqual(getDevice(), Pair.create(4, 19)); in shouldTestLmkdStats() 142 || "true".equals(DeviceUtils.getProperty(getDevice(), "ro.lmk.log_stats")); in shouldTestLmkdStats() 151 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testLmkKillOccurred() 153 int appUid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testLmkKillOccurred() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appstart/ |
D | AppStartStatsTests.java | 24 import android.cts.statsdatom.lib.DeviceUtils; 58 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 62 DeviceUtils.turnScreenOn(getDevice()); in setUp() 72 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 92 DeviceUtils.executeBackgroundService(getDevice(), "action.end_immediately"); in testAppStartOccurredWarm() 113 ConfigUtils.createConfigBuilder(DeviceUtils.STATSD_ATOM_TEST_PKG); in runTestAppStartOccurredCommon() 118 DeviceUtils.STATSD_ATOM_TEST_PKG); in runTestAppStartOccurredCommon() 123 DeviceUtils.STATSD_ATOM_TEST_PKG); in runTestAppStartOccurredCommon() 130 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in runTestAppStartOccurredCommon() 138 assertThat(atom.getPkgName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in runTestAppStartOccurredCommon() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/wifi/ |
D | WifiStatsTests.java | 24 import android.cts.statsdatom.lib.DeviceUtils; 62 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 72 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 82 mDefaultValue = DeviceUtils.getDeviceConfigFeature(getDevice(), FEATURE_NAMESPACE, in saveFeature() 87 DeviceUtils.putDeviceConfigFeature(getDevice(), FEATURE_NAMESPACE, feature, enable); in setFeature() 92 DeviceUtils.deleteDeviceConfigFeature(getDevice(), FEATURE_NAMESPACE, feature); in restoreFeature() 94 DeviceUtils.putDeviceConfigFeature(getDevice(), FEATURE_NAMESPACE, feature, in restoreFeature() 102 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_WIFI)) return; in testWifiLockHighPerf() 103 if (DeviceUtils.hasFeature(getDevice(), FEATURE_PC)) return; in testWifiLockHighPerf() 106 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testWifiLockHighPerf() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/display/ |
D | DisplayWakeReportedStatsTests.java | 23 import android.cts.statsdatom.lib.DeviceUtils; 51 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 55 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in setUp() 63 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 64 DeviceUtils.turnScreenOn(getDevice()); in tearDown() 74 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".DisplayWakeReportedTests", in testDisplayWakeReportedFromWakeKey() 81 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".DisplayWakeReportedTests", in testDisplayWakeReportedFromWakeLock() 84 assertWakeup(WAKE_REASON_APPLICATION, DeviceUtils.getStatsdTestAppUid(getDevice())); in testDisplayWakeReportedFromWakeLock() 88 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".DisplayWakeReportedTests", in testDisplayWakeReportedFromWakeUpApi() 91 assertWakeup(WAKE_REASON_UNKNOWN, DeviceUtils.getStatsdTestAppUid(getDevice())); in testDisplayWakeReportedFromWakeUpApi() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/apphibernation/ |
D | AppHibernationStatsTest.java | 24 import android.cts.statsdatom.lib.DeviceUtils; 49 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 58 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 70 getHibernationCommand(DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating() 72 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating() 77 getHibernationCommand(DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating() 90 getHibernationCommand(DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromHibernatingToNotHibernating() 92 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromHibernatingToNotHibernating() 97 getHibernationCommand(DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromHibernatingToNotHibernating() 108 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelHibernatedApps() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/ |
D | ProcessMemoryStatsTests.java | 25 import android.cts.statsdatom.lib.DeviceUtils; 44 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 52 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 63 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testProcessMemoryState() 67 try (AutoCloseable a = DeviceUtils.withActivity(getDevice(), in testProcessMemoryState() 68 DeviceUtils.STATSD_ATOM_TEST_PKG, "StatsdCtsForegroundActivity", "action", in testProcessMemoryState() 78 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testProcessMemoryState() 86 assertThat(state.getProcessName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in testProcessMemoryState() 100 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testProcessMemoryHighWaterMark() 104 try (AutoCloseable a = DeviceUtils.withActivity(getDevice(), in testProcessMemoryHighWaterMark() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | DeviceUtils.java | 30 public final class DeviceUtils { class 32 private DeviceUtils() { in DeviceUtils() method in DeviceUtils 61 return executeInstrumentationShellCommand(DeviceUtils.sAutomation, command); in shell() 78 DeviceUtils.sLogcatInspector.assertLogcatContainsInOrder( in includes() 83 DeviceUtils.sLogcatInspector.assertLogcatContainsInOrder( in includes() 88 DeviceUtils.sLogcatInspector.assertLogcatDoesNotContainInOrder( in excludes() 96 DeviceUtils.Logcat.includes("SaveUI:I", "Showing save dialog: " + title); in assertShows() 106 DeviceUtils.Logcat.includes("SaveUI:V", "Hiding save dialog."); in assertHidden() 117 DeviceUtils.Logcat.includes("AutofillSession:D", "onShown(): " + uiType); in assertShows()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/ |
D | BytesTransferredTest.java | 24 import android.cts.statsdatom.lib.DeviceUtils; 51 DeviceUtils.installTestApp(getDevice(), DeviceUtils.STATSD_ATOM_TEST_APK, in setUp() 52 DeviceUtils.STATSD_ATOM_TEST_PKG, mCtsBuild); in setUp() 60 DeviceUtils.uninstallTestApp(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG); in tearDown() 162 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TELEPHONY)) return; in doTestMobileBytesTransferThat() 165 DeviceUtils.STATSD_ATOM_TEST_PKG); in doTestMobileBytesTransferThat() 168 DeviceUtils.STATSD_ATOM_TEST_PKG); in doTestMobileBytesTransferThat() 174 DeviceUtils.runDeviceTests(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, ".AtomTests", in doTestMobileBytesTransferThat() 178 DeviceUtils.runDeviceTests(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, ".AtomTests", in doTestMobileBytesTransferThat() 199 final int appUid = DeviceUtils.getAppUid(getDevice(), in doTestMobileBytesTransferThat() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/perf/ |
D | ProcStatsTests.java | 23 import android.cts.statsdatom.lib.DeviceUtils; 47 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 55 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 65 try (AutoCloseable c = DeviceUtils.withActivity( in testProcessState() 66 getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testProcessState() 70 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testProcessState() 76 DeviceUtils.STATSD_ATOM_TEST_PKG)) in testProcessState() 85 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCachedState() 89 DeviceUtils.executeBackgroundService(getDevice(), ACTION_END_IMMEDIATELY); in testCachedState() 97 DeviceUtils.STATSD_ATOM_TEST_PKG)) in testCachedState()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/notification/ |
D | NotificationStatsTests.java | 24 import android.cts.statsdatom.lib.DeviceUtils; 44 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 52 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 62 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testNotificationPackagePreferenceExtraction() 65 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testNotificationPackagePreferenceExtraction() 80 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testNotificationPackagePreferenceExtraction() 96 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testNotificationChannelPreferencesExtraction() 99 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testNotificationChannelPreferencesExtraction() 115 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testNotificationChannelPreferencesExtraction() 135 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testNotificationChannelGroupPreferencesExtraction() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/cpu/ |
D | CpuStatsTests.java | 25 import android.cts.statsdatom.lib.DeviceUtils; 44 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 52 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 62 if (DeviceUtils.hasFeature(getDevice(), DeviceUtils.FEATURE_WATCH)) return; in testCpuTimePerUid() 64 ConfigUtils.uploadConfigForPulledAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCpuTimePerUid() 68 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testSimpleCpu"); in testCpuTimePerUid() 77 int appUid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testCpuTimePerUid() 88 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCpuTimePerClusterFreq() 92 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testSimpleCpu"); in testCpuTimePerClusterFreq() 109 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCpuCyclesPerUidCluster() [all …]
|
/cts/hostsidetests/locale/src/android/localemanager/cts/ |
D | AppSupportedLocalesChangedAtomTest.java | 20 import android.cts.statsdatom.lib.DeviceUtils; 53 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in setUp() 80 verifyAtomDetails(DeviceUtils.getAppUid(getDevice(), INSTALLED_PACKAGE_NAME), in testAtomLogging_overrideLocaleConfig_logsAtomSuccessfully() 81 DeviceUtils.getAppUid(getDevice(), INSTALLED_PACKAGE_NAME), NUM_OVERRIDE_LOCALES, in testAtomLogging_overrideLocaleConfig_logsAtomSuccessfully() 96 verifyAtomDetails(DeviceUtils.getAppUid(getDevice(), INSTALLED_PACKAGE_NAME), in testAtomLogging_removeOverride_logsAtomSuccessfully() 97 DeviceUtils.getAppUid(getDevice(), INSTALLED_PACKAGE_NAME), NUM_OVERRIDE_LOCALES, in testAtomLogging_removeOverride_logsAtomSuccessfully() 107 verifyAtomDetails(DeviceUtils.getAppUid(getDevice(), INSTALLED_PACKAGE_NAME), in testAtomLogging_removeOverride_logsAtomSuccessfully() 108 DeviceUtils.getAppUid(getDevice(), INSTALLED_PACKAGE_NAME), INVALID_NUM, true, in testAtomLogging_removeOverride_logsAtomSuccessfully() 124 verifyAtomDetails(DeviceUtils.getAppUid(getDevice(), INSTALLED_PACKAGE_NAME), in testAtomLogging_sameAsResLocaleConfig_logsAtomSuccessfully() 125 DeviceUtils.getAppUid(getDevice(), INSTALLED_PACKAGE_NAME), NUM_RESOURCE_LOCALES, in testAtomLogging_sameAsResLocaleConfig_logsAtomSuccessfully() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/jobscheduler/ |
D | JobSchedulerStatsTests.java | 24 import android.cts.statsdatom.lib.DeviceUtils; 58 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 66 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 81 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testScheduledJobState() 83 DeviceUtils.allowImmediateSyncs(getDevice()); in testScheduledJobState() 84 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testScheduledJob"); in testScheduledJobState() 104 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testScheduledJobState_CancelledJob() 106 DeviceUtils.allowImmediateSyncs(getDevice()); in testScheduledJobState_CancelledJob() 107 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), in testScheduledJobState_CancelledJob() 133 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testScheduledJobStatePriority() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/binderstats/ |
D | BinderStatsTests.java | 25 import android.cts.statsdatom.lib.DeviceUtils; 48 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 56 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 67 DeviceUtils.unplugDevice(getDevice()); in testBinderStats() 75 ConfigUtils.createConfigBuilder(DeviceUtils.STATSD_ATOM_TEST_PKG); in testBinderStats() 77 /*uidInAttributionChain=*/false, DeviceUtils.STATSD_ATOM_TEST_PKG); in testBinderStats() 80 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testBinderStats() 86 int appUid = DeviceUtils.getAppUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG); in testBinderStats()
|
D | LooperStatsTests.java | 25 import android.cts.statsdatom.lib.DeviceUtils; 46 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 54 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 65 DeviceUtils.unplugDevice(getDevice()); in testLooperStats() 68 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testLooperStats() 71 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testLooperStats() 80 int uid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testLooperStats() 110 DeviceUtils.plugInAc(getDevice()); in testLooperStats()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/gamemanager/ |
D | GameManagerStatsTests.java | 24 import android.cts.statsdatom.lib.DeviceUtils; 58 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 60 mStatsdAtomTestUid = DeviceUtils.getAppUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG); in setUp() 67 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 77 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testGameStateStatsd() 79 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testGameState"); in testGameStateStatsd() 86 assertThat(a0.getPackageName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in testGameStateStatsd() 95 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testGameModeChangedIsPushed() 97 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testSetGameMode"); in testGameModeChangedIsPushed() 114 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testGameModeConfigurationChangedIsPushed() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/ |
D | HdrCapabilitiesTests.java | 25 import android.cts.statsdatom.lib.DeviceUtils; 56 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 58 DeviceUtils.runDeviceTests(getDevice(), TEST_PKG, TEST_CLASS, in setUp() 64 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TV)) { in fetchIsHdrOutputControlSupportedFromMetrics() 67 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in fetchIsHdrOutputControlSupportedFromMetrics() 82 DeviceUtils.runDeviceTests(getDevice(), TEST_PKG, TEST_CLASS, in tearDown() 86 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 97 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TV)) return; in testForceHdrFormat() 110 DeviceUtils.runDeviceTests(getDevice(), TEST_PKG, TEST_CLASS, in testForceHdrFormat() 126 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TV)) return; in testHasUserDisabledHdrConversion() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/credentials/ |
D | CredentialsStatsTest.java | 23 import android.cts.statsdatom.lib.DeviceUtils; 67 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 68 DeviceUtils.installTestApp(getDevice(), TEST_APK, TEST_PKG, mCtsBuild); in setUp() 70 mStatsdAtomTestUid = DeviceUtils.getAppUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG); in setUp() 77 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 78 DeviceUtils.uninstallTestApp(getDevice(), TEST_PKG); in tearDown() 94 DeviceUtils.runDeviceTests(getDevice(), TEST_PKG, TEST_CLASS, in testInitialPhaseKnownCaller() 132 return DeviceUtils.hasFeature(device, FEATURE_CREDENTIALS); in isSupportedDevice()
|
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | IncrementalAppErrorStatsTests.java | 25 import android.cts.statsdatom.lib.DeviceUtils; 82 DeviceUtils.STATSD_ATOM_TEST_APK, TEST_REMOTE_DIR, mCtsBuild, getDevice()); in setUp() 93 final File apk = buildHelper.getTestFile(DeviceUtils.STATSD_ATOM_TEST_APK); in setUp() 96 DeviceUtils.STATSD_ATOM_TEST_APK + SIGNATURE_FILE_SUFFIX); in setUp() 111 assertTrue(getDevice().isPackageInstalled(DeviceUtils.STATSD_ATOM_TEST_PKG)); in setUp() 114 testArgsForLoading.put(HELPER_ARG_PKG_NAME, DeviceUtils.STATSD_ATOM_TEST_PKG); in setUp() 129 getDevice().uninstallPackage(DeviceUtils.STATSD_ATOM_TEST_PKG); in tearDown() 130 assertFalse(getDevice().isPackageInstalled(DeviceUtils.STATSD_ATOM_TEST_PKG)); in tearDown() 140 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testAppCrashOnIncremental() 143 DeviceUtils.runActivity(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testAppCrashOnIncremental() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/integrity/ |
D | IntegrityCheckStatsTests.java | 26 import android.cts.statsdatom.lib.DeviceUtils; 46 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 54 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 65 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testIntegrityCheckAtomReportedDuringInstall() 68 DeviceUtils.uninstallStatsdTestApp(getDevice()); in testIntegrityCheckAtomReportedDuringInstall() 69 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in testIntegrityCheckAtomReportedDuringInstall() 77 assertThat(result.getPackageName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in testIntegrityCheckAtomReportedDuringInstall()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/androidx-tests/ |
D | SaveUiTest.java | 29 import android.autofillservice.cts.testcore.DeviceUtils; 66 DeviceUtils.wakeUp(); in setUp() 67 DeviceUtils.unlockScreen(); in setUp() 68 DeviceUtils.closeSystemDialogs(); in setUp() 114 DeviceUtils.SaveDialog.assertShows(); in testTapLink_changeOrientationThenTapBack() 118 DeviceUtils.Logcat.includes("WelcomeActivity:D", "Message"); in testTapLink_changeOrientationThenTapBack() 119 DeviceUtils.SaveDialog.assertHidden(); in testTapLink_changeOrientationThenTapBack() 142 DeviceUtils.Logcat.includes("SimpleSaveActivity:D", "onResume()"); in testTapLink_changeOrientationThenTapBack() 145 DeviceUtils.SaveDialog.assertShows(); in testTapLink_changeOrientationThenTapBack()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterycycle/ |
D | BatteryCycleStatsTests.java | 24 import android.cts.statsdatom.lib.DeviceUtils; 45 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 53 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 64 if (DeviceUtils.hasFeature(getDevice(), FEATURE_WATCH)) return; in testBatteryCycleCount() 66 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testBatteryCycleCount() 76 if (DeviceUtils.hasBattery(getDevice())) { in testBatteryCycleCount()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/bluetooth/ |
D | BluetoothStatsTests.java | 24 import android.cts.statsdatom.lib.DeviceUtils; 51 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 59 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 69 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_BLUETOOTH_LE)) return; in testBleScan() 79 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testBleScan() 82 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testBleScanUnoptimized"); in testBleScan() 91 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_BLUETOOTH_LE)) return; in testBleUnoptimizedScan() 102 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testBleUnoptimizedScan() 105 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testBleScanUnoptimized"); in testBleUnoptimizedScan() 126 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_BLUETOOTH_LE)) return; in testBleOpportunisticScan() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/projection/ |
D | MediaProjectionAtomsTests.java | 20 import static android.cts.statsdatom.lib.DeviceUtils.FEATURE_WATCH; 41 import android.cts.statsdatom.lib.DeviceUtils; 80 assumeFalse(DeviceUtils.hasFeature(getDevice(), FEATURE_WATCH)); in setUp() 84 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 85 DeviceUtils.installTestApp(getDevice(), TEST_APK, TEST_PKG, mCtsBuild); in setUp() 93 DeviceUtils.uninstallTestApp(getDevice(), TEST_PKG); in tearDown() 94 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 105 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testMediaProjectionStateChanged_stoppedCapture() 116 DeviceUtils.runDeviceTests(getDevice(), TEST_PKG, testClass, testMethod); in testMediaProjectionStateChanged_stoppedCapture() 150 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testMediaProjectionTargetChanged_stoppedCapture() [all …]
|