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

1 2 3 4 5 6 7 8 91011>>

  /cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
PrivilegedUpdateTests.java 69 getDevice().uninstallPackage(SHIM_PKG);
70 getDevice().uninstallPackage(TEST_PKG);
72 assertNull(getDevice().installPackage(
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(
101 getDevice().uninstallPackage(SHIM_PKG)
    [all...]
AppSecurityTests.java 116 getDevice().uninstallPackage(SHARED_UI_PKG);
117 getDevice().uninstallPackage(SHARED_UI_DIFF_CERT_PKG);
120 String installResult = getDevice().installPackage(getTestAppFile(SHARED_UI_APK),
124 installResult = getDevice().installPackage(getTestAppFile(SHARED_UI_DIFF_CERT_APK),
131 getDevice().uninstallPackage(SHARED_UI_PKG);
132 getDevice().uninstallPackage(SHARED_UI_DIFF_CERT_PKG);
144 getDevice().uninstallPackage(SIMPLE_APP_PKG);
147 String installResult = getDevice().installPackage(getTestAppFile(SIMPLE_APP_APK),
151 installResult = getDevice().installPackage(getTestAppFile(SIMPLE_APP_DIFF_CERT_APK),
158 getDevice().uninstallPackage(SIMPLE_APP_PKG)
    [all...]
PermissionsHostTest.java 58 getDevice().uninstallPackage(PKG);
65 getDevice().uninstallPackage(PKG);
70 assertNull(getDevice().installPackage(
82 assertNull(getDevice().installPackage(
93 assertNull(getDevice().installPackage(
101 assertNull(getDevice().installPackage(
115 assertNull(getDevice().installPackage(
123 assertNull(getDevice().installPackage(
130 assertNull(getDevice().installPackage(
137 assertNull(getDevice().installPackage
    [all...]
AdoptableHostTest.java 63 getDevice().uninstallPackage(PKG);
70 getDevice().uninstallPackage(PKG);
89 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private"));
93 assertSuccess(getDevice().executeShellCommand(
100 getDevice().executeShellCommand("sm unmount " + vol.volId);
101 getDevice().executeShellCommand("sm mount " + vol.volId);
107 assertSuccess(getDevice().executeShellCommand("pm move-package " + PKG + " internal"));
113 getDevice().executeShellCommand("sm partition " + diskId + " public");
127 final String originalVol = getDevice()
149 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private"))
    [all...]
DirectBootHostTest.java 70 getDevice().uninstallPackage(PKG);
71 getDevice().uninstallPackage(OTHER_PKG);
78 getDevice().uninstallPackage(PKG);
79 getDevice().uninstallPackage(OTHER_PKG);
137 getDevice().executeShellCommand("am start -a android.intent.action.MAIN"
150 getDevice().executeShellCommand("sm set-emulate-fbe true");
151 getDevice().waitForDeviceOnline();
153 getDevice().rebootUntilOnline();
168 getDevice().uninstallPackage(PKG);
173 getDevice().executeShellCommand("sm set-emulate-fbe false")
    [all...]
ExternalStorageHostTest.java 93 getDevice().uninstallPackage(NONE_PKG);
95 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options));
102 getDevice().uninstallPackage(NONE_PKG);
117 getDevice().uninstallPackage(READ_PKG);
119 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options));
126 getDevice().uninstallPackage(READ_PKG);
141 getDevice().uninstallPackage(WRITE_PKG);
143 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options));
150 getDevice().uninstallPackage(WRITE_PKG);
164 getDevice().uninstallPackage(NONE_PKG)
    [all...]
DocumentsTest.java 33 getDevice().uninstallPackage(PROVIDER_PKG);
35 assertNull(getDevice().installPackage(
43 getDevice().uninstallPackage(PROVIDER_PKG);
UsesLibraryHostTest.java 57 getDevice().uninstallPackage(PKG);
64 getDevice().uninstallPackage(PKG);
68 assertNull(getDevice().installPackage(
74 assertNull(getDevice().installPackage(
80 assertNull(getDevice().installPackage(
87 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName);
DocumentsTestCase.java 54 getDevice().uninstallPackage(CLIENT_PKG);
56 assertNull(getDevice().installPackage(
64 getDevice().uninstallPackage(CLIENT_PKG);
69 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName);
  /cts/hostsidetests/multiuser/src/android/host/multiuser/
CreateUsersPermissionTest.java 24 getDevice().createUser(
34 getDevice().createUser(
49 final String output = getDevice().executeShellCommand(setRestriction + "1");
BaseMultiUserTest.java 51 mSupportsMultiUser = getDevice().getMaxNumberOfUsersSupported() > 1;
53 mPrimaryUserId = getDevice().getPrimaryUserId();
59 getDevice().switchUser(mPrimaryUserId);
74 final String output = getDevice().executeShellCommand(command);
90 for (int userId : getDevice().listUsers()) {
92 getDevice().removeUser(userId);
98 final String commandOuput = getDevice().executeShellCommand(
  /cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
BaseLauncherAppsTest.java 45 getDevice().uninstallPackage(LAUNCHER_TESTS_PKG);
46 getDevice().uninstallPackage(LAUNCHER_TESTS_SUPPORT_PKG);
47 getDevice().uninstallPackage(SIMPLE_APP_PKG);
54 CLog.d("Output for command " + command + ": " + getDevice().executeShellCommand(command));
CustomDeviceOwnerTest.java 61 getDevice().uninstallPackage(DEVICE_OWNER_PKG);
62 getDevice().uninstallPackage(ACCOUNT_MANAGEMENT_PKG);
92 getDevice().uninstallPackage(INTENT_RECEIVER_PKG);
145 getDevice().uninstallPackage(TEST_APP_PKG);
146 assertTrue(getDevice().pushFile(apk, TEST_APP_LOCATION + apk.getName()));
153 String commandOutput = getDevice().executeShellCommand(command);
154 getDevice().uninstallPackage(TEST_APP_PKG);
155 getDevice().uninstallPackage(PACKAGE_INSTALLER_PKG);
169 getDevice().uninstallPackage(DEVICE_OWNER_PKG);
DeviceAndProfileOwnerTest.java 98 getDevice().uninstallPackage(DEVICE_ADMIN_PKG);
99 getDevice().uninstallPackage(PERMISSIONS_APP_PKG);
100 getDevice().uninstallPackage(SIMPLE_PRE_M_APP_PKG);
101 getDevice().uninstallPackage(APP_RESTRICTIONS_MANAGING_APP_PKG);
102 getDevice().uninstallPackage(APP_RESTRICTIONS_TARGET_APP_PKG);
103 getDevice().uninstallPackage(CERT_INSTALLER_PKG);
104 getDevice().uninstallPackage(ACCOUNT_MANAGEMENT_PKG);
105 getDevice().uninstallPackage(VPN_APP_PKG);
106 getDevice().uninstallPackage(INTENT_RECEIVER_PKG);
107 getDevice().uninstallPackage(INTENT_SENDER_PKG)
    [all...]
BaseDevicePolicyTest.java 95 mHasFeature = getDevice().getApiLevel() >= 21 /* Build.VERSION_CODES.L */
100 mPackageVerifier = getDevice().executeShellCommand(
102 getDevice().executeShellCommand("settings put global package_verifier_enable 0");
118 getDevice().executeShellCommand("settings put global package_verifier_enable "
133 String result = getDevice().installPackageForUser(
142 getDevice().startUser(userId);
149 String commandOutput = getDevice().executeShellCommand(command);
154 return getDevice().getMaxNumberOfUsersSupported();
159 String commandOutput = getDevice().executeShellCommand(command);
180 return getDevice().listUsers()
    [all...]
CustomManagedProfileTest.java 47 getDevice().uninstallPackage(MANAGED_PROFILE_PKG);
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/
UnknownFileSystemException.java 51 public BlockDevice getDevice() {
  /development/tools/hosttestlib/src/com/android/hosttest/
DeviceTestCase.java 48 public IDevice getDevice() {
69 assertNotNull(getDevice());
DeviceTest.java 38 public IDevice getDevice();
  /cts/hostsidetests/trustedvoice/src/android/trustedvoice/cts/
TrustedVoiceHostTest.java 97 getDevice().executeAdbCommand("logcat", "-c");
99 getDevice().executeShellCommand(SLEEP_COMMAND);
101 getDevice().executeShellCommand(START_COMMAND);
103 String logs = getDevice().executeAdbCommand(
125 getDevice().executeShellCommand(AWAKE_COMMAND);
126 getDevice().executeShellCommand(DISMISS_KEYGUARD_COMMAND);
  /cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
NumberBlockingTest.java 62 mHasFeature = getDevice().isMultiUserSupported()
63 && getDevice().hasFeature(FEATURE_TELEPHONY)
64 && getDevice().hasFeature(FEATURE_CONNECTION_SERVICE);
70 installTestAppForUser(getDevice().getPrimaryUserId());
74 mPrimaryUserSerialNumber = getUserSerialNumber(getDevice().getPrimaryUserId());
81 getDevice().removeUser(mSecondaryUserId);
103 true /* setToSmsApp */, getDevice().getPrimaryUserId());
111 false /* setToSmsApp */, getDevice().getPrimaryUserId());
122 assertTrue(getDevice().startUser(mSecondaryUserId));
139 true /* setToSmsApp */, getDevice().getPrimaryUserId())
    [all...]
  /cts/hostsidetests/systemui/src/android/host/systemui/
BaseTileServiceTest.java 102 getDevice().executeShellCommand(cmd);
118 String logs = getDevice().executeAdbCommand("logcat", "-v", "brief", "-d", mService + ":I",
124 getDevice().executeAdbCommand("logcat", "-c");
128 String features = getDevice().executeShellCommand("pm list features");
  /frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
MtpManager.java 115 getDevice(deviceId).close();
131 final MtpDevice device = getDevice(deviceId);
141 final MtpDevice device = getDevice(deviceId);
151 final MtpDevice device = getDevice(deviceId);
161 final MtpDevice device = getDevice(deviceId);
169 final MtpDevice device = getDevice(deviceId);
176 final MtpDevice device = getDevice(deviceId);
185 final MtpDevice device = getDevice(deviceId);
195 final MtpDevice device = getDevice(deviceId);
212 final MtpDevice device = getDevice(deviceId)
    [all...]
  /cts/hostsidetests/atrace/src/android/atrace/cts/
AtraceHostTest.java 157 String output = getDevice().executeShellCommand("atrace");
172 String output = getDevice().executeShellCommand("atrace --list_categories");
201 getDevice().uninstallPackage(TEST_PKG);
205 String installResult = getDevice().installPackage(testAppFile, false);
213 getDevice().executeShellCommand("atrace --async_stop " + atraceArgs);
214 getDevice().executeShellCommand("atrace --async_start " + atraceArgs);
215 getDevice().executeShellCommand("am start " + TEST_PKG);
216 getDevice().executeShellCommand("sleep 1");
217 atraceOutput = getDevice().executeShellCommand("atrace --async_stop " + atraceArgs);
220 getDevice().uninstallPackage(TEST_PKG)
    [all...]
  /cts/hostsidetests/cpptools/src/com/android/cts/cpptools/
RunAsHostTest.java 35 String runAsResult = getDevice().executeShellCommand("run-as android.cpptools.app id -u");

Completed in 245 milliseconds

1 2 3 4 5 6 7 8 91011>>