Home
last modified time | relevance | path

Searched defs:cmd (Results 1 – 25 of 142) sorted by relevance

123456

/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DServiceProcessController.java111 String cmd = "appops set --user " + mUserId + " " in denyBackgroundOp() local
121 String cmd = "appops set --user " + mUserId + " " in allowBackgroundOp() local
128 String cmd = "appops set --user " + mUserId + " " in denyAnyInBackgroundOp() local
134 String cmd = "appops set --user " + mUserId + " " in allowAnyInBackgroundOp() local
140 String cmd = "am make-uid-idle " + mServicePackage; in makeUidIdle() local
145 String cmd = "cmd deviceidle whitelist -" + mServicePackage; in removeFromWhitelist() local
150 String cmd = "cmd deviceidle whitelist +" + mServicePackage; in addToWhitelist() local
155 String cmd = "cmd deviceidle tempwhitelist -u " + mUserId in tempWhitelist() local
161 String cmd = "cmd deviceidle tempwhitelist -u " + mUserId in removeFromTempWhitelist() local
167 String cmd = "cmd appops set --user " + mUserId + " " in setAppOpMode() local
DWatchUidRunner.java137 public void expect(int cmd, String procState) { in expect()
141 public void expect(int cmd, String procState, long timeout) { in expect()
161 public void waitFor(int cmd) { in waitFor()
165 public void waitFor(int cmd, long timeout) { in waitFor()
169 public void waitFor(int cmd, String procState) { in waitFor()
173 public void waitFor(int cmd, String procState, Integer capability) { in waitFor()
177 public void waitFor(int cmd, String procState, long timeout) { in waitFor()
181 public void waitFor(int cmd, String procState, Integer capability, long timeout) { in waitFor()
244 String[] waitForNextLine(long waitUntil, int cmd, String procState, Integer capability) { in waitForNextLine()
/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/
DTimeZoneDetectorShellHelper.java97 String cmd = String.format("%s %s", SHELL_COMMAND_SET_AUTO_DETECTION_ENABLED, enabled); in setAutoDetectionEnabled() local
109 String cmd = String.format("%s %s", SHELL_COMMAND_SET_GEO_DETECTION_ENABLED, enabled); in setGeoDetectionEnabled() local
127 String cmd = String.format("%s --zone_id %s" in setTimeZoneState() local
137 String cmd = String.format("get %s %s", SETTINGS_NAMESPACE_GLOBAL, in isAutoTimeZoneEnabledExplicitly() local
147 String cmd = String.format("delete %s %s", SETTINGS_NAMESPACE_GLOBAL, in clearAutoTimeZoneEnabledExplicitly() local
155 String cmd = String.format("put %s %s %s", SETTINGS_NAMESPACE_GLOBAL, in setAutoTimeZoneEnabledExplicitly() local
DLocationTimeZoneManagerShellHelper.java118 String cmd = SHELL_COMMAND_CLEAR_RECORDED_PROVIDER_STATES; in clearRecordedProviderStates() local
127 String cmd = String.format("%s --%s", SHELL_COMMAND_DUMP_STATE, DUMP_STATE_OPTION_PROTO); in dumpState() local
139 String cmd = String.format("%s %s %s %s", in startWithTestProviders() local
DDeviceConfigShellHelper.java75 String cmd = SHELL_CMD_PREFIX + "get_sync_disabled_for_tests"; in getSyncDisabled() local
85 String cmd = String.format( in setSyncDisabled() local
96 String cmd = String.format(SHELL_CMD_PREFIX + "list %s", namespace); in list() local
119 String cmd = String.format(SHELL_CMD_PREFIX + "put %s %s %s", namespace, key, value); in put() local
128 String cmd = String.format(SHELL_CMD_PREFIX + "delete %s %s", namespace, key); in delete() local
DLocationShellHelper.java59 String cmd = String.format("%s %s", SHELL_COMMAND_SET_LOCATION_ENABLED, enabled); in setLocationEnabledForCurrentUser() local
/cts/hostsidetests/monkey/src/com/android/cts/monkey/
DCategoryTest.java28 String cmd = MONKEY_CMD + " -v -p " + PKGS[0] + " 5000"; in testDefaultCategories() local
43 String cmd = MONKEY_CMD + " -v -p " + PKGS[0] in testSingleCategory() local
73 String cmd = MONKEY_CMD + " -v -p " + PKGS[0] in testMultipleCategories() local
DPackageTest.java37 String cmd = MONKEY_CMD + " -v -p " + PKGS[0] + " 5000"; in testSinglePackage() local
67 String cmd = MONKEY_CMD + " -v -p " + PKGS[0] + " -p " + PKGS[1] + " 5000"; in testMultiplePackages() local
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java74 public static String runShellCommand(Instrumentation instrumentation, String cmd) in runShellCommand()
88 public static String runShellCommand(UiAutomation automation, String cmd) in runShellCommand()
103 public static byte[] runShellCommandByteOutput(UiAutomation automation, String cmd) in runShellCommandByteOutput()
112 private static void checkCommandBeforeRunning(String cmd) { in checkCommandBeforeRunning()
123 public static String runShellCommand(String cmd) { in runShellCommand()
136 public static String runShellCommandOrThrow(String cmd) { in runShellCommandOrThrow()
182 public static String runShellCommand(String cmd, Predicate<String> resultChecker) { in runShellCommand()
195 public static String runShellCommandForNoOutput(String cmd) { in runShellCommandForNoOutput()
206 public static void runCommandAndPrintOnLogcat(String logtag, String cmd) { in runCommandAndPrintOnLogcat()
219 public static String runCommandAndExtractSection(String cmd, in runCommandAndExtractSection()
[all …]
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DUtils.java102 final StringBuilder cmd = new StringBuilder("pm install "); in installPackageForUser() local
118 final StringBuilder cmd = new StringBuilder("pm install-existing "); in installExistPackageForUser() local
139 final StringBuilder cmd = new StringBuilder("pm uninstall "); in uninstallPackageForUser() local
159 final StringBuilder cmd = new StringBuilder("am force-stop "); in forceStopPackageForUser() local
172 final StringBuilder cmd = new StringBuilder("pm clear "); in clearAppDataForUser() local
194 final StringBuilder cmd = new StringBuilder("pm "); in suspendPackagesForUser() local
288 final StringBuilder cmd = new StringBuilder("am compat enable ALLOW_TEST_API_ACCESS "); in allowTestApiAccess() local
298 final StringBuilder cmd = new StringBuilder("am compat reset ALLOW_TEST_API_ACCESS "); in resetTestApiAccess() local
DInstallMultiple.java78 final StringBuilder cmd = new StringBuilder("pm install-create"); in createSession() local
103 final StringBuilder cmd = new StringBuilder("pm install-write"); in writeSession() local
114 final StringBuilder cmd = new StringBuilder("pm install-commit"); in commitSession() local
/cts/hostsidetests/adpf/app/hintsession/src/cpp/external/
Dandroid_native_app_glue.c50 int8_t cmd; in android_app_read_cmd() local
88 void android_app_pre_exec_cmd(struct android_app* android_app, int8_t cmd) { in android_app_pre_exec_cmd()
144 void android_app_post_exec_cmd(struct android_app* android_app, int8_t cmd) { in android_app_post_exec_cmd()
200 int8_t cmd = android_app_read_cmd(app); in process_cmd() local
279 static void android_app_write_cmd(struct android_app* android_app, int8_t cmd) { in android_app_write_cmd()
310 static void android_app_set_activity_state(struct android_app* android_app, int8_t cmd) { in android_app_set_activity_state()
/cts/tests/app/shared/src/android/app/cts/
DCtsAppTestUtils.java31 public static String executeShellCmd(Instrumentation instrumentation, String cmd) in executeShellCmd()
64 String cmd = "am make-uid-idle " + packageName; in makeUidIdle() local
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfilePasswordTest.java222 final String cmd = "am broadcast --receiver-foreground --user " + mProfileUserId in lockProfile() local
230 final String cmd = String.format("am get-started-user-state %d", mProfileUserId); in waitUntilProfileLocked() local
/cts/hostsidetests/os/test-apps/StaticSharedLibTestApp/src/android/os/lib/app/
DStaticSharedLibsMultiUserTests.java78 ShellCommand.Builder cmd = ShellCommand.builderForUser(user, "pm install"); in installPackageAsUser() local
91 ShellCommand.Builder cmd = ShellCommand.builder("pm uninstall"); in uninstallPackage() local
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DPoc16_12.java40 String cmd = "ls /sys/kernel/slab 2>/dev/null | grep nf_conntrack"; in testPocCVE_2016_8406() local
/cts/apps/CameraITS/utils/
Dits_device_utils.py23 def run(cmd): argument
/cts/hostsidetests/multidevices/utils/
Dmulti_device_utils.py21 def run(cmd): argument
/cts/hostsidetests/os/src/android/os/cts/
DEnvironmentHostTests.java47 private String executeShellCommand(String cmd) throws Exception { in executeShellCommand()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DDatabaseTestUtils.java50 static String executeShellCommand(String cmd) throws Exception { in executeShellCommand()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DMetricsRecorder.java150 final var cmd = String.join(" ", UPDATE_CONFIG_CMD, CONFIG_ID_STRING); in uploadConfig() local
174 @NonNull String cmd, @NonNull byte[] stdInBytes) in runShellCommandWithStdIn()
315 final var cmd = String.join(" ", REMOVE_CONFIG_CMD, CONFIG_ID_STRING); in removeConfig() local
339 final var cmd = String.join(" ", DUMP_REPORT_CMD, CONFIG_ID_STRING, in getReportList() local
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/
DBaseBlobStoreHostTest.java161 final String cmd = String.format("cmd role add-role-holder " in addAssistRoleHolder() local
176 final String cmd = String.format("cmd role get-role-holders " in getAssistRoleHolders() local
183 final String cmd = String.format("cmd role remove-role-holder " in removeAssistRoleHolder() local
190 final String cmd = String.format("cmd package revoke --user %d %s %s", in revokePermission() local
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DBaseHostTestCase.java36 protected String executeShellCommand(String cmd, Object... args) throws Exception { in executeShellCommand()
40 protected CommandResult executeShellV2Command(String cmd, Object... args) throws Exception { in executeShellV2Command()
DPublicVolumeCoreHostTest.java30 String executeShellCommand(String cmd) throws Exception { in executeShellCommand()
/cts/tests/camera/headlessSystemUserTest/src/android/camera/cts/headlesssystemusertest/
DCamera2HeadlessSystemUserTest.java201 String cmd = "am get-current-user"; in getCurrentUserId() local
212 String cmd = "am switch-user " + userId; in switchUser() local

123456