/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | Poc17_01.java | 39 if(containsDriver(getDevice(), "/dev/nvhost-vic")) { in testPocCVE_2016_8425() 40 AdbUtils.runPoc("CVE-2016-8425", getDevice(), 60); in testPocCVE_2016_8425() 50 if(containsDriver(getDevice(), "/dev/nvhost-gpu")) { in testPocCVE_2016_8426() 51 AdbUtils.runPoc("CVE-2016-8426", getDevice(), 60); in testPocCVE_2016_8426() 61 if(containsDriver(getDevice(), "/dev/nvhost-gpu") || in testPocCVE_2016_8427() 62 containsDriver(getDevice(), "/dev/nvhost-dbg-gpu")) { in testPocCVE_2016_8427() 63 AdbUtils.runPoc("CVE-2016-8427", getDevice(), 60); in testPocCVE_2016_8427() 73 if(containsDriver(getDevice(), "/dev/nvmap")) { in testPocCVE_2016_8428() 74 AdbUtils.runPoc("CVE-2016-8428", getDevice(), 60); in testPocCVE_2016_8428() 84 if(containsDriver(getDevice(), "/dev/nvmap")) { in testPocCVE_2016_8429() [all …]
|
D | Poc16_11.java | 38 AdbUtils.runCommandLine("logcat -c", getDevice()); in testPocCVE_2012_6702() 39 AdbUtils.runPoc("CVE-2012-6702", getDevice(), 60); in testPocCVE_2012_6702() 40 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice()); in testPocCVE_2012_6702() 50 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6730() 51 AdbUtils.runPoc("CVE-2016-6730", getDevice(), 60); in testPocCVE_2016_6730() 61 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6731() 62 AdbUtils.runPoc("CVE-2016-6731", getDevice(), 60); in testPocCVE_2016_6731() 72 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6732() 73 AdbUtils.runPoc("CVE-2016-6732", getDevice(), 60); in testPocCVE_2016_6732() 83 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6733() [all …]
|
D | Poc17_03.java | 41 if (containsDriver(getDevice(), "/dev/kgsl-3d0")) { in testPocCVE_2016_8479() 42 AdbUtils.runPocNoOutput("CVE-2016-8479", getDevice(), TIMEOUT_NONDETERMINISTIC); in testPocCVE_2016_8479() 55 if (containsDriver(getDevice(), "/dev/ion") && in testPocCVE_2017_0508() 56 containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2017_0508() 57 AdbUtils.runPocNoOutput("CVE-2017-0508", getDevice(), 30); in testPocCVE_2017_0508() 70 if (containsDriver(getDevice(), "/dev/dri/renderD128")) { in testPocCVE_2017_0333() 71 AdbUtils.runPocNoOutput("CVE-2017-0333", getDevice(), 30); in testPocCVE_2017_0333() 83 if (containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2017_0334() 84 String out = AdbUtils.runPoc("CVE-2017-0334", getDevice()); in testPocCVE_2017_0334() 113 AdbUtils.runPocAssertNoCrashes("CVE-2017-0479", getDevice(), "audioserver"); in testPocCVE_2017_0479() [all …]
|
D | Poc18_02.java | 38 AdbUtils.runCommandLine("logcat -c" , getDevice()); in testPocCVE_2017_13232() 39 AdbUtils.runPocNoOutput("CVE-2017-13232", getDevice(), 60); in testPocCVE_2017_13232() 40 String logcatOutput = AdbUtils.runCommandLine("logcat -d", getDevice()); in testPocCVE_2017_13232() 52 AdbUtils.runCommandLine("dmesg -c" ,getDevice()); in testPocCVE_2017_13273() 53 AdbUtils.runCommandLine("setenforce 0",getDevice()); in testPocCVE_2017_13273() 54 if(containsDriver(getDevice(), "/dev/xt_qtaguid") && in testPocCVE_2017_13273() 55 containsDriver(getDevice(), "/proc/net/xt_qtaguid/ctrl")) { in testPocCVE_2017_13273() 56 AdbUtils.runPoc("CVE-2017-13273", getDevice(), 60); in testPocCVE_2017_13273() 58 getDevice()); in testPocCVE_2017_13273() 62 AdbUtils.runCommandLine("setenforce 1",getDevice()); in testPocCVE_2017_13273()
|
/cts/hostsidetests/rollback/src/com/android/cts/rollback/host/ |
D | RollbackManagerHostTest.java | 80 getDevice().executeShellCommand("for i in $(pm list staged-sessions --only-sessionid " in cleanUp() 82 getDevice().executeShellCommand("pm uninstall com.android.cts.install.lib.testapp.A"); in cleanUp() 83 getDevice().executeShellCommand("pm uninstall com.android.cts.install.lib.testapp.B"); in cleanUp() 84 getDevice().executeShellCommand("pm uninstall com.android.cts.install.lib.testapp.C"); in cleanUp() 95 getDevice().reboot(); in testApkOnlyStagedRollback() 97 getDevice().reboot(); in testApkOnlyStagedRollback() 110 getDevice().reboot(); in testApkOnlyMultipleStagedRollback() 112 getDevice().reboot(); in testApkOnlyMultipleStagedRollback() 125 getDevice().reboot(); in testApkOnlyMultipleStagedPartialRollback() 127 getDevice().reboot(); in testApkOnlyMultipleStagedPartialRollback() [all …]
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | PrivilegedUpdateTests.java | 61 String defaultAbi = AbiFormatter.getDefaultAbi(getDevice(), mAbi.getBitness()); in isDefaultAbi() 79 Utils.prepareSingleUser(getDevice()); in setUp() 83 getDevice().uninstallPackage(SHIM_PKG); in setUp() 84 getDevice().uninstallPackage(TEST_PKG); in setUp() 86 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(TEST_APK), false)); in setUp() 87 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in setUp() 94 getDevice().uninstallPackage(SHIM_PKG); in tearDown() 95 getDevice().uninstallPackage(TEST_PKG); in tearDown() 96 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in tearDown() 100 getDevice().uninstallPackage(SHIM_PKG); in testPrivilegedAppUpgradeRestricted() [all …]
|
D | PackageVisibilityTest.java | 56 mUsers = Utils.prepareMultipleUsers(getDevice()); in setUpPackage() 58 getDevice().executeShellCommand("settings get global package_verifier_enable"); in setUpPackage() 59 getDevice().executeShellCommand("settings put global package_verifier_enable 0"); in setUpPackage() 60 getDevice().uninstallPackage(TEST_PKG); in setUpPackage() 61 getDevice().uninstallPackage(TINY_PKG); in setUpPackage() 67 getDevice().uninstallPackage(TEST_PKG); in tearDown() 68 getDevice().uninstallPackage(TINY_PKG); in tearDown() 69 getDevice().executeShellCommand("settings put global package_verifier_enable " in tearDown() 90 getDevice().startUser(userId); in testUninstalledPackageVisibility() 101 Utils.runDeviceTests(getDevice(), TEST_PKG, in testUninstalledPackageVisibility() [all …]
|
D | OverlayHostTest.java | 87 getDevice().uninstallPackage(TEST_APP_PACKAGE); in tearDown() 91 String result = getDevice().executeShellCommand("cmd overlay dump"); in getStateForOverlay() 93 String overlayPackageForCurrentUser = overlayPackage + ":" + getDevice().getCurrentUser(); in getStateForOverlay() 129 getDevice().uninstallPackage(TARGET_PACKAGE); 130 getDevice().uninstallPackage(overlayPackage); 131 assertFalse(getDevice().getInstalledPackageNames().contains(OVERLAY_ALL_PACKAGE)); 132 assertFalse(getDevice().getInstalledPackageNames().contains(overlayPackage)); 138 getDevice().executeShellCommand("cmd overlay enable --user current " + overlayPackage); 141 getDevice().uninstallPackage(TARGET_PACKAGE); 142 getDevice().uninstallPackage(overlayPackage); [all …]
|
D | AppSecurityTests.java | 112 Utils.prepareSingleUser(getDevice()); in setUp() 133 getDevice().uninstallPackage(SIMPLE_APP_PKG); in testAppUpgradeDifferentCerts() 134 getDevice().uninstallPackage(SIMPLE_APP_DIFF_CERT_APK); in testAppUpgradeDifferentCerts() 140 getDevice().uninstallPackage(SIMPLE_APP_PKG); in testAppUpgradeDifferentCerts() 141 getDevice().uninstallPackage(SIMPLE_APP_DIFF_CERT_APK); in testAppUpgradeDifferentCerts() 162 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testAppFailAccessPrivateData() 163 getDevice().uninstallPackage(APP_ACCESS_DATA_PKG); in testAppFailAccessPrivateData() 171 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testAppFailAccessPrivateData() 172 getDevice().uninstallPackage(APP_ACCESS_DATA_PKG); in testAppFailAccessPrivateData() 192 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testUninstallRemovesData() [all …]
|
D | DirectBootHostTest.java | 65 Utils.prepareSingleUser(getDevice()); in setUp() 69 getDevice().uninstallPackage(PKG); in setUp() 70 getDevice().uninstallPackage(OTHER_PKG); in setUp() 75 getDevice().uninstallPackage(PKG); in tearDown() 76 getDevice().uninstallPackage(OTHER_PKG); in tearDown() 116 getDevice().executeShellCommand("am start -a android.intent.action.MAIN" in doDirectBootTest() 129 getDevice().rebootUntilOnline(); in doDirectBootTest() 130 waitForBootCompleted(getDevice()); in doDirectBootTest() 143 getDevice().uninstallPackage(PKG); in doDirectBootTest() 146 getDevice().rebootUntilOnline(); in doDirectBootTest() [all …]
|
D | EphemeralTest.java | 124 Utils.prepareSingleUser(getDevice()); in setUp() 145 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, "testQuery"); in testNormalQuery() 153 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, "testStartNormal"); in testNormalStartNormal() 161 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, in testNormalStartEphemeral() 170 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, "testQuery"); in testEphemeralQuery() 178 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartNormal() 190 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed01() 198 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed02() 206 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed03() 214 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed04() [all …]
|
/cts/hostsidetests/content/src/android/content/cts/ |
D | ContextCrossProfileHostTest.java | 75 mParentUserId = getDevice().getCurrentUser(); in setUp() 77 if (!getDevice().isHeadlessSystemUserMode()) { in setUp() 84 getDevice().installPackageForUser( in setUp() 91 getDevice().uninstallPackage(TEST_WITH_PERMISSION_PKG); in tearDown() 92 getDevice().uninstallPackage(TEST_SERVICE_WITH_PERMISSION_PKG); in tearDown() 107 getDevice().startUser(userInSameProfileGroup, /* waitFlag= */true); in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() 109 getDevice().installPackageForUser( in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() 115 getDevice().installPackageForUser( in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() 120 getDevice(), in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() 135 getDevice().startUser(userInSameProfileGroup, /* waitFlag= */true); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService() [all …]
|
/cts/hostsidetests/tagging/src/com/android/cts/tagging/ |
D | MemtagBootctlTest.java | 50 testInfo.getDevice().getProperty("ro.arm64.memtag.bootctl_supported"), in setUp() 52 mPreviousState = testInfo.getDevice().getProperty("arm64.memtag.bootctl"); in setUp() 61 testInfo.getDevice().setProperty("arm64.memtag.bootctl", mPreviousState); in tearDown() 62 testInfo.getDevice().reboot(); in tearDown() 74 assertThat(getDevice().pullFileContents("/proc/cpuinfo")).contains(" mte"); in checkMteOn() 79 assertThat(getDevice().pullFileContents("/proc/cpuinfo")).doesNotContain(" mte"); in checkMteOff() 86 getDevice().setProperty("arm64.memtag.bootctl", "memtag-once"); in testMemtagOnce() 87 getDevice().reboot(); in testMemtagOnce() 88 assertThat(getDevice().getProperty("arm64.memtag.bootctl")).isAnyOf("", "none", null); in testMemtagOnce() 90 getDevice().reboot(); in testMemtagOnce() [all …]
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | StaticSharedLibsHostTests.java | 126 getDevice().uninstallPackage(STATIC_LIB_CONSUMER3_PKG); in cleanUp() 127 getDevice().uninstallPackage(STATIC_LIB_CONSUMER2_PKG); in cleanUp() 128 getDevice().uninstallPackage(STATIC_LIB_CONSUMER1_PKG); in cleanUp() 129 getDevice().uninstallPackage(STATIC_LIB_NATIVE_CONSUMER_PKG); in cleanUp() 130 getDevice().uninstallPackage(STATIC_LIB_PROVIDER7_PKG); in cleanUp() 131 getDevice().uninstallPackage(STATIC_LIB_PROVIDER6_PKG); in cleanUp() 132 getDevice().uninstallPackage(STATIC_LIB_PROVIDER5_PKG); in cleanUp() 133 getDevice().uninstallPackage(STATIC_LIB_PROVIDER4_PKG); in cleanUp() 134 getDevice().uninstallPackage(STATIC_LIB_PROVIDER3_PKG); in cleanUp() 135 getDevice().uninstallPackage(STATIC_LIB_PROVIDER2_PKG); in cleanUp() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | HostAtomTests.java | 82 ConfigUtils.removeConfig(getDevice()); in setUp() 83 ReportUtils.clearReports(getDevice()); in setUp() 84 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 85 DeviceUtils.turnBatteryStatsAutoResetOff(getDevice()); in setUp() 91 ConfigUtils.removeConfig(getDevice()); in tearDown() 92 ReportUtils.clearReports(getDevice()); in tearDown() 93 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 94 DeviceUtils.turnBatteryStatsAutoResetOn(getDevice()); in tearDown() 109 DeviceUtils.turnScreenOn(getDevice()); in testScreenStateChangedAtom() 111 DeviceUtils.turnScreenOff(getDevice()); in testScreenStateChangedAtom() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/ |
D | MediaCapabilitiesTests.java | 53 ConfigUtils.removeConfig(getDevice()); in setUp() 54 ReportUtils.clearReports(getDevice()); in setUp() 55 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 63 ConfigUtils.removeConfig(getDevice()); in tearDown() 64 ReportUtils.clearReports(getDevice()); in tearDown() 65 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 76 if (!DeviceUtils.hasFeature(getDevice(), FEATURE_TV)) return; in testSurroundSoundCapabilities() 78 ConfigUtils.uploadConfigForPulledAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testSurroundSoundCapabilities() 82 getDevice().executeShellCommand( in testSurroundSoundCapabilities() 84 getDevice().executeShellCommand( in testSurroundSoundCapabilities() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/voiceinteraction/ |
D | HotwordDetectorKeyphraseTriggeredStatsTest.java | 88 if (!isSupportedDevice(getDevice())) return; in setUp() 91 ConfigUtils.removeConfig(getDevice()); in setUp() 92 ReportUtils.clearReports(getDevice()); in setUp() 93 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 94 DeviceUtils.installTestApp(getDevice(), TEST_APK, TEST_PKG, mCtsBuild); in setUp() 98 ConfigUtils.uploadConfigForPushedAtom(getDevice(), TEST_PKG, in setUp() 104 if (!isSupportedDevice(getDevice())) return; in tearDown() 106 ConfigUtils.removeConfig(getDevice()); in tearDown() 107 ReportUtils.clearReports(getDevice()); in tearDown() 108 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() [all …]
|
D | HotwordAudioEgressEventReportedStatsTest.java | 80 if (!isSupportedDevice(getDevice())) return; in setUp() 83 ConfigUtils.removeConfig(getDevice()); in setUp() 84 ReportUtils.clearReports(getDevice()); in setUp() 85 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 86 DeviceUtils.installTestApp(getDevice(), TEST_APK, TEST_PKG, mCtsBuild); in setUp() 90 ConfigUtils.uploadConfigForPushedAtom(getDevice(), TEST_PKG, in setUp() 96 if (!isSupportedDevice(getDevice())) return; in tearDown() 98 ConfigUtils.removeConfig(getDevice()); in tearDown() 99 ReportUtils.clearReports(getDevice()); in tearDown() 100 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() [all …]
|
D | HotwordDetectorCreateRequestedStatsTests.java | 68 if (!isSupportedDevice(getDevice())) return; in setUp() 71 ConfigUtils.removeConfig(getDevice()); in setUp() 72 ReportUtils.clearReports(getDevice()); in setUp() 73 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 74 DeviceUtils.installTestApp(getDevice(), TEST_APK, TEST_PKG, mCtsBuild); in setUp() 78 ConfigUtils.uploadConfigForPushedAtom(getDevice(), TEST_PKG, in setUp() 84 if (!isSupportedDevice(getDevice())) return; in tearDown() 86 ConfigUtils.removeConfig(getDevice()); in tearDown() 87 ReportUtils.clearReports(getDevice()); in tearDown() 88 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() [all …]
|
/cts/hostsidetests/testharness/src/android/testharness/cts/ |
D | TestHarnessModeDeviceTest.java | 52 getDevice().executeShellCommand("touch /sdcard/test.txt"); in testHarnessModeDeletesFiles() 53 getDevice().executeShellCommand("touch /data/local/tmp/test.txt"); in testHarnessModeDeletesFiles() 55 if (getDevice().doesFileExist("/sdcard/test.txt") in testHarnessModeDeletesFiles() 56 && getDevice().doesFileExist("/data/local/tmp/test.txt")) { in testHarnessModeDeletesFiles() 76 getDevice().executeShellCommand("settings get global transition_animation_scale"); in testHarnessModeRemovesAndResetsSettings() 78 getDevice().executeShellCommand("settings put global test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings() 79 getDevice().executeShellCommand("settings put secure test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings() 80 getDevice().executeShellCommand("settings put system test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings() 81 getDevice().executeShellCommand("settings put global transition_animation_scale 2.0"); in testHarnessModeRemovesAndResetsSettings() 88 getDevice().executeShellCommand("settings get global test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/apphibernation/ |
D | AppHibernationStatsTest.java | 47 ConfigUtils.removeConfig(getDevice()); in setUp() 48 ReportUtils.clearReports(getDevice()); in setUp() 49 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 50 getDevice().executeShellCommand(CMD_ENABLE_APP_HIBERNATION); in setUp() 56 ConfigUtils.removeConfig(getDevice()); in tearDown() 57 ReportUtils.clearReports(getDevice()); in tearDown() 58 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 69 getDevice().executeShellCommand( in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating() 72 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating() 76 getDevice().executeShellCommand( in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating() [all …]
|
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | ComponentStateChangedReportedStatsTests.java | 80 HostFlagsValueProvider.createCheckFlagsRule(this::getDevice); 85 ConfigUtils.removeConfig(getDevice()); in setUp() 86 ReportUtils.clearReports(getDevice()); in setUp() 92 getDevice().uninstallPackage(TEST_INSTALL_PACKAGE); in tearDown() 93 ConfigUtils.removeConfig(getDevice()); in tearDown() 94 ReportUtils.clearReports(getDevice()); in tearDown() 100 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testComponentStateChangedReportedForWholeApp() 108 assertThat(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testComponentStateChangedReportedForWholeApp() 109 String.valueOf(getDevice().getCurrentUser()))).isTrue(); in testComponentStateChangedReportedForWholeApp() 112 runDeviceTests(getDevice(), HELPER_PACKAGE, HELPER_CLASS, in testComponentStateChangedReportedForWholeApp() [all …]
|
/cts/hostsidetests/locale/src/android/localemanager/cts/ |
D | AppSupportedLocalesChangedAtomTest.java | 51 ConfigUtils.removeConfig(getDevice()); in setUp() 52 ReportUtils.clearReports(getDevice()); in setUp() 53 ConfigUtils.uploadConfigForPushedAtom(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in setUp() 60 ConfigUtils.removeConfig(getDevice()); in tearDown() 61 ReportUtils.clearReports(getDevice()); in tearDown() 76 List<StatsLog.EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice()); in testAtomLogging_overrideLocaleConfig_logsAtomSuccessfully() 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() 92 List<StatsLog.EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice()); in testAtomLogging_removeOverride_logsAtomSuccessfully() 96 verifyAtomDetails(DeviceUtils.getAppUid(getDevice(), INSTALLED_PACKAGE_NAME), in testAtomLogging_removeOverride_logsAtomSuccessfully() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/cpu/ |
D | CpuStatsTests.java | 42 ConfigUtils.removeConfig(getDevice()); in setUp() 43 ReportUtils.clearReports(getDevice()); in setUp() 44 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 50 ConfigUtils.removeConfig(getDevice()); in tearDown() 51 ReportUtils.clearReports(getDevice()); in tearDown() 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() 71 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice()); in testCpuTimePerUid() [all …]
|
/cts/hostsidetests/signedconfig/hostside/src/com/android/cts/signedconfig/ |
D | SignedConfigHostTest.java | 86 public ITestDevice getDevice() { in getDevice() method in SignedConfigHostTest 96 String output = getDevice().executeShellCommand("settings delete global " + name); in deleteSetting() 106 getDevice().uninstallPackage(TEST_APP_PACKAGE_NAME); in uninstallTestApps() 107 getDevice().uninstallPackage(TEST_APP_PACKAGE2_NAME); in uninstallTestApps() 115 v = getDevice().getSetting("global", setting); in waitUntilSettingMatches() 143 assertThat(getDevice().installPackage(getTestApk(apkName), false, extraArgs)).isNull(); in installPackage() 150 assertThat(getDevice().getSetting("global", SETTING_DENYLIST_EXEMPTIONS)).isEqualTo( in testConfigAppliedOnInstall() 158 assertThat(getDevice().getSetting("global", SETTING_DENYLIST_EXEMPTIONS)).isEqualTo( in testConfigAppliedOnInstallInstant() 168 assertThat(getDevice().getSetting("global", SETTING_DENYLIST_EXEMPTIONS)).isEqualTo( in testConfigUpgradedOnInstall() 178 assertThat(getDevice().getSetting("global", SETTING_DENYLIST_EXEMPTIONS)).isEqualTo( in testConfigUpgradedOnInstallInstant() [all …]
|