HomeSort by relevance Sort by last modified time
    Searched refs:getDevice (Results 1 - 25 of 1129) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/hostsidetests/security/src/android/security/cts/
Poc17_07.java 29 enableAdbRoot(getDevice());
30 if(containsDriver(getDevice(), "/sys/kernel/debug/mdp/reg")) {
31 AdbUtils.runPoc("Bug-33863407", getDevice(), 60);
40 enableAdbRoot(getDevice());
41 if(containsDriver(getDevice(), "/dev/port")) {
42 AdbUtils.runCommandLine("cat /dev/port", getDevice());
51 enableAdbRoot(getDevice());
52 if(containsDriver(getDevice(), "/proc/net/psched")) {
53 AdbUtils.runPoc("CVE-2017-0705", getDevice(), 60);
62 enableAdbRoot(getDevice());
    [all...]
Poc17_09.java 29 enableAdbRoot(getDevice());
30 if (containsDriver(getDevice(), "/sys/kernel/debug/pci-msm/")) {
31 AdbUtils.runPocNoOutput("Bug-33039685", getDevice(), 60);
40 enableAdbRoot(getDevice());
41 if (containsDriver(getDevice(), "/sys/devices/soc/7544000.qcom,sps-dma/driver_override")) {
42 AdbUtils.runPocNoOutput("Bug-35676417", getDevice(), 60);
51 enableAdbRoot(getDevice());
52 if (containsDriver(getDevice(), "/dev/sg0")) {
53 AdbUtils.runPocNoOutput("Bug-35644812", getDevice(), 60);
62 enableAdbRoot(getDevice());
    [all...]
Poc17_06.java 29 enableAdbRoot(getDevice());
30 if(containsDriver(getDevice(), "/dev/mdss_rotator")) {
31 AdbUtils.runPocNoOutput("Bug-34328139", getDevice(), 60);
40 enableAdbRoot(getDevice());
41 if(containsDriver(getDevice(), "/dev/snd/pcmC0D16c")) {
42 AdbUtils.runPoc("Bug-33452365", getDevice(), 60);
51 enableAdbRoot(getDevice());
52 if(containsDriver(getDevice(), "/dev/graphics/fb0")) {
53 AdbUtils.runPoc("CVE-2017-0579", getDevice(), 60);
62 enableAdbRoot(getDevice());
    [all...]
Poc17_10.java 29 enableAdbRoot(getDevice());
30 if (containsDriver(getDevice(), "/proc/cld/athdiagpfs")) {
31 AdbUtils.runPocNoOutput("Bug-62058746", getDevice(), 60);
40 enableAdbRoot(getDevice());
41 if (containsDriver(getDevice(), "/dev/graphics/fb*")) {
42 AdbUtils.runPocNoOutput("Bug-37093119", getDevice(), 60);
51 enableAdbRoot(getDevice());
52 if (containsDriver(getDevice(), "/system/bin/pktlogconf")) {
53 AdbUtils.runCommandLine("pktlogconf -a cld -erx,tx -s 1", getDevice());
64 enableAdbRoot(getDevice());
    [all...]
Poc17_04.java 28 enableAdbRoot(getDevice());
29 if(containsDriver(getDevice(), "/dev/qce")) {
30 AdbUtils.runPoc("CVE-2017-0576", getDevice(), 60);
39 enableAdbRoot(getDevice());
40 if(containsDriver(getDevice(), "/dev/touch_fwu")) {
41 AdbUtils.runPoc("CVE-2017-0580", getDevice(), 60);
50 enableAdbRoot(getDevice());
51 if(containsDriver(getDevice(), "/dev/seemplog")) {
52 AdbUtils.runPoc("CVE-2017-0462", getDevice(), 60);
61 enableAdbRoot(getDevice());
    [all...]
Poc17_08.java 29 enableAdbRoot(getDevice());
30 AdbUtils.runPoc("Bug-36266767", getDevice(), 60);
38 enableAdbRoot(getDevice());
39 if(containsDriver(getDevice(), "/dev/qce")) {
40 AdbUtils.runPoc("Bug-36591162", getDevice(), 60);
49 enableAdbRoot(getDevice());
50 if(containsDriver(getDevice(), "/dev/graphics/fb0")) {
51 AdbUtils.runPoc("CVE-2017-9678", getDevice(), 60);
60 enableAdbRoot(getDevice());
61 if(containsDriver(getDevice(), "/dev/graphics/fb2"))
    [all...]
Poc17_01.java 29 if(containsDriver(getDevice(), "/dev/nvmap")) {
30 AdbUtils.runPoc("CVE-2016-8482", getDevice(), 60);
39 if(containsDriver(getDevice(), "/dev/nvhost-as-gpu")) {
40 enableAdbRoot(getDevice());
41 AdbUtils.runPoc("CVE-2017-0429", getDevice(), 60);
Poc16_12.java 44 if(containsDriver(getDevice(), "/dev/nvmap")) {
45 AdbUtils.runPoc("CVE-2016-8424", getDevice(), 60);
54 if(containsDriver(getDevice(), "/dev/nvhost-vic")) {
55 AdbUtils.runPoc("CVE-2016-8425", getDevice(), 60);
64 if(containsDriver(getDevice(), "/dev/nvhost-gpu")) {
65 AdbUtils.runPoc("CVE-2016-8426", getDevice(), 60);
74 if(containsDriver(getDevice(), "/dev/nvhost-gpu") ||
75 containsDriver(getDevice(), "/dev/nvhost-dbg-gpu")) {
76 AdbUtils.runPoc("CVE-2016-8427", getDevice(), 60);
85 if(containsDriver(getDevice(), "/dev/nvmap"))
    [all...]
Poc16_10.java 43 if(containsDriver(getDevice(), "/dev/dri/renderD129")) {
44 AdbUtils.runPoc("CVE-2016-6730", getDevice(), 60);
53 if(containsDriver(getDevice(), "/dev/dri/renderD129")) {
54 AdbUtils.runPoc("CVE-2016-6731", getDevice(), 60);
63 if(containsDriver(getDevice(), "/dev/dri/renderD129")) {
64 AdbUtils.runPoc("CVE-2016-6732", getDevice(), 60);
73 if(containsDriver(getDevice(), "/dev/dri/renderD129")) {
74 AdbUtils.runPoc("CVE-2016-6733", getDevice(), 60);
83 if(containsDriver(getDevice(), "/dev/dri/renderD129")) {
84 AdbUtils.runPoc("CVE-2016-6734", getDevice(), 60)
    [all...]
Poc17_02.java 29 enableAdbRoot(getDevice());
30 if(containsDriver(getDevice(), "/dev/voice_svc")) {
31 AdbUtils.runPoc("CVE-2017-0451", getDevice(), 60);
  /cts/hostsidetests/os/src/android/os/cts/
StaticSharedLibsHostTests.java 94 getDevice().uninstallPackage(STATIC_LIB_PROVIDER1_PKG);
95 getDevice().uninstallPackage(STATIC_LIB_PROVIDER2_PKG);
96 getDevice().uninstallPackage(STATIC_LIB_PROVIDER_RECURSIVE_PKG);
99 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(
102 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(
105 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(
108 assertNull(getDevice().uninstallPackage(STATIC_LIB_PROVIDER1_PKG));
110 assertNull(getDevice().uninstallPackage(STATIC_LIB_PROVIDER2_PKG));
112 assertNull(getDevice().uninstallPackage(STATIC_LIB_PROVIDER_RECURSIVE_PKG));
114 getDevice().uninstallPackage(STATIC_LIB_PROVIDER1_PKG)
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DefaultTestsZipInstallerFuncTest.java 35 getDevice().enableAdbRoot();
36 getDevice().executeShellCommand("stop");
38 mZipInstaller.deleteData(getDevice());
40 getDevice().reboot();
DeviceWiperFuncTest.java 10 getDevice().enableAdbRoot();
11 getDevice().executeShellCommand("rm /data/local/tmp/foo.txt");
12 getDevice().pushString("blargh", "/data/local/tmp/foo.txt");
13 assertTrue(getDevice().doesFileExist("/data/local/tmp/foo.txt"));
14 new DeviceWiper().setUp(getDevice(), null);
15 assertTrue(getDevice().getDeviceState().equals(TestDeviceState.ONLINE));
16 assertFalse(getDevice().doesFileExist("/data/local/tmp/foo.txt"));
DeviceSetupFuncTest.java 48 public ITestDevice getDevice() {
68 getDevice().executeShellCommand("setprop ro.audio.silent 0");
69 mDeviceSetup.setUp(getDevice(), mMockBuildInfo);
70 assertTrue(getDevice().executeShellCommand("getprop ro.audio.silent").contains("1"));
71 assertTrue(getDevice().executeShellCommand("getprop ro.monkey").contains("1"));
72 assertTrue(getDevice().executeShellCommand("getprop ro.test_harness").contains("1"));
74 assertTrue(getDevice().executeShellCommand("id").contains("root"));
  /cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
PackageVisibilityTest.java 41 mUsers = Utils.prepareMultipleUsers(getDevice());
43 getDevice().executeShellCommand("settings get global package_verifier_enable");
44 getDevice().executeShellCommand("settings put global package_verifier_enable 0");
45 getDevice().uninstallPackage(TEST_PKG);
46 getDevice().uninstallPackage(TINY_PKG);
51 getDevice().uninstallPackage(TEST_PKG);
52 getDevice().uninstallPackage(TINY_PKG);
53 getDevice().executeShellCommand("settings put global package_verifier_enable "
65 getDevice().startUser(userId);
76 Utils.runDeviceTests(getDevice(), TEST_PKG
    [all...]
PrivilegedUpdateTests.java 66 Utils.prepareSingleUser(getDevice());
70 getDevice().uninstallPackage(SHIM_PKG);
71 getDevice().uninstallPackage(TEST_PKG);
73 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(TEST_APK), false));
74 getDevice().executeShellCommand("pm enable " + SHIM_PKG);
81 getDevice().uninstallPackage(SHIM_PKG);
82 getDevice().uninstallPackage(TEST_PKG);
83 getDevice().executeShellCommand("pm enable " + SHIM_PKG);
87 getDevice().uninstallPackage(SHIM_PKG);
88 assertEquals(RESTRICTED_UPGRADE_FAILURE, getDevice().installPackage
    [all...]
IsolatedSplitsTests.java 47 Utils.prepareSingleUser(getDevice());
48 getDevice().uninstallPackage(PKG);
54 getDevice().uninstallPackage(PKG);
59 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault");
64 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadPolishLocale");
73 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault");
74 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadFeatureADefault");
75 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadFeatureAReceivers");
81 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadPolishLocale");
82 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadFeatureAPolishLocale")
    [all...]
AppSecurityTests.java 114 Utils.prepareSingleUser(getDevice());
126 getDevice().uninstallPackage(SHARED_UI_PKG);
127 getDevice().uninstallPackage(SHARED_UI_DIFF_CERT_PKG);
130 String installResult = getDevice().installPackage(getTestAppFile(SHARED_UI_APK),
134 installResult = getDevice().installPackage(getTestAppFile(SHARED_UI_DIFF_CERT_APK),
141 getDevice().uninstallPackage(SHARED_UI_PKG);
142 getDevice().uninstallPackage(SHARED_UI_DIFF_CERT_PKG);
154 getDevice().uninstallPackage(SIMPLE_APP_PKG);
157 String installResult = getDevice().installPackage(getTestAppFile(SIMPLE_APP_APK),
161 installResult = getDevice().installPackage(getTestAppFile(SIMPLE_APP_DIFF_CERT_APK)
    [all...]
ClassloaderSplitsTest.java 48 Utils.prepareSingleUser(getDevice());
49 getDevice().uninstallPackage(PKG);
55 getDevice().uninstallPackage(PKG);
60 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "testBaseClassLoader");
65 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "testBaseClassLoader");
66 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "testFeatureAClassLoader");
71 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "testBaseClassLoader");
72 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "testFeatureAClassLoader");
73 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "testFeatureBClassLoader");
78 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "testBaseClassLoader")
    [all...]
PermissionsHostTest.java 70 Utils.prepareSingleUser(getDevice());
74 getDevice().uninstallPackage(USES_PERMISSION_PKG);
75 getDevice().uninstallPackage(ESCALATE_PERMISSION_PKG);
76 getDevice().uninstallPackage(PERMISSION_POLICY_25_PKG);
79 mScreenTimeoutBeforeTest = getDevice().getSetting(SCREEN_OFF_TIMEOUT_NS,
81 getDevice().setSetting(SCREEN_OFF_TIMEOUT_NS, SCREEN_OFF_TIMEOUT_KEY, "1800000");
84 getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP");
85 getDevice().disableKeyguard();
92 getDevice().setSetting(SCREEN_OFF_TIMEOUT_NS, SCREEN_OFF_TIMEOUT_KEY,
95 getDevice().uninstallPackage(USES_PERMISSION_PKG)
    [all...]
ExternalStorageHostTest.java 78 mUsers = Utils.prepareMultipleUsers(getDevice());
95 getDevice().uninstallPackage(NONE_PKG);
97 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options));
104 getDevice().uninstallPackage(NONE_PKG);
117 getDevice().uninstallPackage(READ_PKG);
119 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options));
126 getDevice().uninstallPackage(READ_PKG);
139 getDevice().uninstallPackage(WRITE_PKG);
141 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options));
148 getDevice().uninstallPackage(WRITE_PKG)
    [all...]
StorageHostTest.java 50 mUsers = Utils.prepareMultipleUsers(getDevice());
57 getDevice().executeShellCommand("appops set --user " + user + " " + PKG_STATS
66 getDevice().uninstallPackage(PKG_STATS);
67 getDevice().uninstallPackage(PKG_A);
68 getDevice().uninstallPackage(PKG_B);
73 Utils.runDeviceTests(getDevice(), PKG_STATS, CLASS_STATS, "testVerifyQuota");
83 getDevice().executeShellCommand("sync");
158 getDevice().executeShellCommand("settings put global sys_storage_threshold_max_bytes 0");
159 getDevice().executeShellCommand("settings put global sys_storage_cache_max_bytes 0");
160 getDevice().executeShellCommand("svc data disable")
    [all...]
AdoptableHostTest.java 58 Utils.prepareSingleUser(getDevice());
62 getDevice().uninstallPackage(PKG);
69 getDevice().uninstallPackage(PKG);
88 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private"));
92 assertSuccess(getDevice().executeShellCommand(
99 getDevice().executeShellCommand("sm unmount " + vol.volId);
100 getDevice().executeShellCommand("sm mount " + vol.volId);
106 assertSuccess(getDevice().executeShellCommand("pm move-package " + PKG + " internal"));
112 getDevice().executeShellCommand("sm partition " + diskId + " public");
126 final String originalVol = getDevice()
    [all...]
  /cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
ShortcutManagerMultiuserTest.java 30 getDevice().uninstallPackage(TARGET_PKG);
48 getDevice().startUser(profileId);
67 getDevice().startUser(secondUserID);
68 getDevice().switchUser(secondUserID);
73 getDevice().stopUser(secondUserID);
  /cts/hostsidetests/content/src/android/content/cts/
SyncAdapterAccountAccessHostTest.java 64 getDevice().uninstallPackage(STUBS_PKG);
66 assertNull(getDevice().installPackage(mBuildHelper
73 getDevice().uninstallPackage(STUBS_PKG);
77 getDevice().uninstallPackage(ACCOUNT_ACCESS_TESTS_SAME_CERT_PKG);
79 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(
86 getDevice().uninstallPackage(ACCOUNT_ACCESS_TESTS_SAME_CERT_PKG);
91 getDevice().uninstallPackage(ACCOUNT_ACCESS_TESTS_OTHER_CERT_PKG);
93 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(
100 getDevice().uninstallPackage(ACCOUNT_ACCESS_TESTS_OTHER_CERT_PKG);
106 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName)
    [all...]

Completed in 716 milliseconds

1 2 3 4 5 6 7 8 91011>>