Home
last modified time | relevance | path

Searched refs:executeShellCommand (Results 1 – 25 of 108) sorted by relevance

12345

/cts/hostsidetests/services/activitymanager/src/android/server/cts/
DActivityManagerActivityVisiblityTests.java35 executeShellCommand(getAmStartCmd(VISIBLE_BEHIND_ACTIVITY)); in testVisibleBehindHomeActivity()
39 executeShellCommand(AM_START_HOME_ACTIVITY_COMMAND); in testVisibleBehindHomeActivity()
51 executeShellCommand(getAmStartCmd(VISIBLE_BEHIND_ACTIVITY)); in testVisibleBehindOtherActivity_NotOverHome()
52 executeShellCommand(getAmStartCmd(TRANSLUCENT_ACTIVITY)); in testVisibleBehindOtherActivity_NotOverHome()
61 executeShellCommand(getAmStartCmdOverHome(VISIBLE_BEHIND_ACTIVITY)); in testVisibleBehindOtherActivity_OverHome()
62 executeShellCommand(getAmStartCmdOverHome(TRANSLUCENT_ACTIVITY)); in testVisibleBehindOtherActivity_OverHome()
75 executeShellCommand(getAmStartCmdOverHome(PIP_ON_PIP_ACTIVITY)); in testTranslucentActivityOnTopOfPinnedStack()
78 executeShellCommand(AM_MOVE_TOP_ACTIVITY_TO_PINNED_STACK_COMMAND); in testTranslucentActivityOnTopOfPinnedStack()
91 executeShellCommand(AM_START_HOME_ACTIVITY_COMMAND); in testTranslucentActivityOnTopOfHome()
92 executeShellCommand(getAmStartCmd(TRANSLUCENT_ACTIVITY)); in testTranslucentActivityOnTopOfHome()
[all …]
DActivityManagerTestBase.java116 executeShellCommand(AM_REMOVE_STACK + PINNED_STACK_ID); in setUp()
117 executeShellCommand(AM_REMOVE_STACK + DOCKED_STACK_ID); in setUp()
118 executeShellCommand(AM_REMOVE_STACK + FREEFORM_WORKSPACE_STACK_ID); in setUp()
130 executeShellCommand(AM_FORCE_STOP_TEST_PACKAGE); in tearDown()
136 executeShellCommand(AM_REMOVE_STACK + PINNED_STACK_ID); in tearDown()
137 executeShellCommand(AM_REMOVE_STACK + DOCKED_STACK_ID); in tearDown()
138 executeShellCommand(AM_REMOVE_STACK + FREEFORM_WORKSPACE_STACK_ID); in tearDown()
143 protected String executeShellCommand(String command) throws DeviceNotAvailableException { in executeShellCommand() method in ActivityManagerTestBase
145 return mDevice.executeShellCommand(command); in executeShellCommand()
148 protected void executeShellCommand(String command, CollectingOutputReceiver outputReceiver) in executeShellCommand() method in ActivityManagerTestBase
[all …]
DDisplaySizeTest.java94 mDevice.executeShellCommand("input keyevent 4"); in testCompatibilityDialogAfterReturn()
124 mDevice.executeShellCommand("wm density " + targetDensity); in setDensity()
127 final String output = mDevice.executeShellCommand("wm density"); in setDensity()
134 mDevice.executeShellCommand("wm density reset"); in resetDensity()
139 mDevice.executeShellCommand(forceStopCmd); in forceStopPackage()
144 mDevice.executeShellCommand(getStartCommand(packageName, activityName)); in startActivity()
151 mDevice.executeShellCommand(startCmd); in startOtherActivityOnTop()
165 final String output = mDevice.executeShellCommand("dumpsys window"); in verifyWindowDisplayed()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAdoptableHostTest.java89 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in testApps()
93 assertSuccess(getDevice().executeShellCommand( in testApps()
100 getDevice().executeShellCommand("sm unmount " + vol.volId); in testApps()
101 getDevice().executeShellCommand("sm mount " + vol.volId); in testApps()
107 assertSuccess(getDevice().executeShellCommand("pm move-package " + PKG + " internal")); in testApps()
113 getDevice().executeShellCommand("sm partition " + diskId + " public"); in testApps()
128 .executeShellCommand("sm get-primary-storage-uuid").trim(); in testPrimaryStorage()
149 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in verifyPrimaryInternal()
154 getDevice().executeShellCommand("pm move-primary-storage " + vol.uuid, out, 2, in verifyPrimaryInternal()
161 getDevice().executeShellCommand("sm unmount " + vol.volId); in verifyPrimaryInternal()
[all …]
DPrivilegedUpdateTests.java74 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in setUp()
83 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in tearDown()
113 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testDisableSystemApp()
115 getDevice().executeShellCommand("pm disable-user " + SHIM_PKG); in testDisableSystemApp()
120 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testDisableUpdatedSystemApp()
125 getDevice().executeShellCommand("pm disable-user " + SHIM_PKG); in testDisableUpdatedSystemApp()
127 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in testDisableUpdatedSystemApp()
DDirectBootHostTest.java137 getDevice().executeShellCommand("am start -a android.intent.action.MAIN" in doDirectBootTest()
150 getDevice().executeShellCommand("sm set-emulate-fbe true"); in doDirectBootTest()
173 getDevice().executeShellCommand("sm set-emulate-fbe false"); in doDirectBootTest()
202 return getDevice().executeShellCommand("sm get-fbe-mode").trim(); in getFbeMode()
206 return "1".equals(getDevice().executeShellCommand("getprop sys.boot_completed").trim()); in isBootCompleted()
210 final String featureList = getDevice().executeShellCommand("pm list features"); in isSupportedDevice()
/cts/hostsidetests/services/windowmanager/src/android/wm/cts/
DCrossAppDragAndDropTests.java104 mDevice.executeShellCommand(AM_FORCE_STOP + mSourcePackageName); in tearDown()
105 mDevice.executeShellCommand(AM_FORCE_STOP + mTargetPackageName); in tearDown()
108 private String executeShellCommand(String command) throws DeviceNotAvailableException { in executeShellCommand() method in CrossAppDragAndDropTests
109 return mDevice.executeShellCommand(command); in executeShellCommand()
113 executeShellCommand("logcat -c"); in clearLogs()
133 executeShellCommand(AM_FORCE_STOP + SOURCE_PACKAGE_NAME); in cleanupState()
134 executeShellCommand(AM_FORCE_STOP + TARGET_PACKAGE_NAME); in cleanupState()
135 executeShellCommand(AM_FORCE_STOP + TARGET_23_PACKAGE_NAME); in cleanupState()
142 executeShellCommand(getStartCommand(componentName, null) + " --stack " + in cleanupState()
147 executeShellCommand(getMoveTaskCommand(taskId, DOCKED_STACK_ID)); in cleanupState()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DProviderTestUtils.java45 executeShellCommand(command, uiAutomation); in setDefaultSmsApp()
48 static String executeShellCommand(String command, UiAutomation uiAutomation) in executeShellCommand() method in ProviderTestUtils
50 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command.toString()); in executeShellCommand()
68 String output = executeShellCommand("bmgr transport " + transport, uiAutomation); in setBackupTransport()
81 String output = executeShellCommand("bmgr enabled", uiAutomation); in setBackupEnabled()
90 executeShellCommand("bmgr enable " + enable, uiAutomation); in setBackupEnabled()
96 String output = executeShellCommand("bmgr list transports", uiAutomation); in hasBackupTransport()
109 executeShellCommand("bmgr backupnow " + packageName, uiAutomation); in runBackup()
114 executeShellCommand("bmgr restore 1 " + packageName, uiAutomation); in runRestore()
120 executeShellCommand("bmgr wipe " + backupTransport + " " + packageName, uiAutomation); in wipeBackup()
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/
DSettingsPreparerTest.java53 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n3\n").once(); in testCorrectOneExpected()
60 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n3\n").once(); in testCorrectManyExpected()
70 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once(); in testIncorrectOneExpected()
82 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once(); in testIncorrectManyExpected()
97 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_7)).andReturn("\n"); in testCommandRun()
104 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_8)).andReturn("\n"); in testCommandRunWrongSetValue()
117 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once(); in testIncorrectOneExpectedCommandRun()
118 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_7)).andReturn("\n"); in testIncorrectOneExpectedCommandRun()
/cts/hostsidetests/monkey/src/com/android/cts/monkey/
DCategoryTest.java22 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 5000"); in testDefaultCategories()
28 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] in testSingleCategory()
33 out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] in testSingleCategory()
40 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] in testMultipleCategories()
DSeedTest.java25 String out1 = mDevice.executeShellCommand(cmd1); in testSeed()
26 String out2 = mDevice.executeShellCommand(cmd1); in testSeed()
30 String out3 = mDevice.executeShellCommand(cmd2); in testSeed()
31 String out4 = mDevice.executeShellCommand(cmd2); in testSeed()
DVerbosityTest.java22 String v0 = mDevice.executeShellCommand(MONKEY_CMD + " -s 1337 -p " + PKGS[0] + " 500"); in testVerbosity()
29 String v1 = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 500"); in testVerbosity()
36 String v2 = mDevice.executeShellCommand(MONKEY_CMD + " -v -v -p " + PKGS[0] + " 500"); in testVerbosity()
DPackageTest.java33 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 5000"); in testSinglePackage()
38 out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[1] + " 5000"); in testSinglePackage()
45 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] in testMultiplePackages()
/cts/hostsidetests/usage/src/android/app/usage/cts/
DAppIdleHostTest.java50 … String result = mDevice.executeShellCommand(String.format("am get-inactive %s", appPackage)); in isAppIdle()
60 mDevice.executeShellCommand(String.format("settings put global %s \"%s\"", in setAppIdleSettings()
69 String result = mDevice.executeShellCommand(String.format("settings get global %s", in getAppIdleSettings()
80 mDevice.executeShellCommand( in startAndStopTestApp()
88 mDevice.executeShellCommand( in startAndStopTestApp()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTestUtils.java76 return executeShellCommand(instrumentation, COMMAND_SET_DEFAULT_DIALER + packageName); in setDefaultDialer()
80 return executeShellCommand(instrumentation, COMMAND_GET_DEFAULT_DIALER); in getDefaultDialer()
84 return executeShellCommand(instrumentation, COMMAND_GET_SYSTEM_DIALER); in getSystemDialer()
90 executeShellCommand(instrumentation, COMMAND_ENABLE in enablePhoneAccount()
98 executeShellCommand(instrumentation, COMMAND_REGISTER_SIM in registerSimPhoneAccount()
108 public static String executeShellCommand(Instrumentation instrumentation, in executeShellCommand() method in TestUtils
111 instrumentation.getUiAutomation().executeShellCommand(command); in executeShellCommand()
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/
DSustainedPerformanceHostTest.java76 device.executeShellCommand("cd " + DHRYSTONE + " ; chmod 777 dhry"); in run()
78 String result = device.executeShellCommand("echo " + loopCount in run()
165 device.executeShellCommand("settings put global airplane_mode_on 1"); in setUpEnvironment()
166 … device.executeShellCommand("am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true"); in setUpEnvironment()
177 device.executeShellCommand(START_TEST_COMMAND); in testShader()
203 device.executeShellCommand(START_COMMAND); in testShader()
209 device.executeShellCommand(STOP_COMMAND); in testShader()
224 device.executeShellCommand(START_COMMAND_MODE); in testShader()
230 device.executeShellCommand(STOP_COMMAND); in testShader()
240 device.executeShellCommand("settings put global airplane_mode_on 0"); in testShader()
[all …]
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java100 mPackageVerifier = getDevice().executeShellCommand( in setUp()
102 getDevice().executeShellCommand("settings put global package_verifier_enable 0"); in setUp()
118 getDevice().executeShellCommand("settings put global package_verifier_enable " in tearDown()
142 executeShellCommand("am force-stop --user " + userId + " " + packageName); in forceStopPackageForUser()
145 private void executeShellCommand(final String command) throws Exception { in executeShellCommand() method in BaseDevicePolicyTest
147 String commandOutput = getDevice().executeShellCommand(command); in executeShellCommand()
158 executeShellCommand("am switch-user " + userId); in switchUser()
167 String commandOutput = getDevice().executeShellCommand(command); in getUserFlags()
195 + getDevice().executeShellCommand(stopUserCommand)); in stopUser()
204 getDevice().executeShellCommand(stopUserCommand); in removeUser()
[all …]
DMixedManagedProfileOwnerTest.java84 getDevice().executeShellCommand(command); in testScreenCaptureDisabled_allowedPrimaryUser()
96 CLog.d("Output for command " + command + ": " + getDevice().executeShellCommand(command)); in runDumpsysWindow()
98 CLog.d("Output for command " + command + ": " + getDevice().executeShellCommand(command)); in runDumpsysWindow()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java370 protected String executeShellCommand(String command) throws Exception { in executeShellCommand() method in AbstractRestrictBackgroundNetworkTestCase
380 final String result = executeShellCommand(command); in executeSilentShellCommand()
416 result = executeShellCommand(command).trim(); in assertDelayedShellCommand()
533 executeShellCommand("cmd netpolicy set restrict-background " + enabled); in setRestrictBackground()
534 final String output = executeShellCommand("cmd netpolicy get restrict-background "); in setRestrictBackground()
542 executeShellCommand("cmd netpolicy add restrict-background-whitelist " + uid); in addRestrictBackgroundWhitelist()
547 executeShellCommand("cmd netpolicy remove restrict-background-whitelist " + uid); in removeRestrictBackgroundWhitelist()
556 executeShellCommand("cmd netpolicy add restrict-background-blacklist " + uid); in addRestrictBackgroundBlacklist()
561 executeShellCommand("cmd netpolicy remove restrict-background-blacklist " + uid); in removeRestrictBackgroundBlacklist()
576 executeShellCommand("cmd netpolicy list " + list); in assertRestrictBackground()
[all …]
/cts/hostsidetests/trustedvoice/src/android/trustedvoice/cts/
DTrustedVoiceHostTest.java99 getDevice().executeShellCommand(SLEEP_COMMAND); in testUnlock()
101 getDevice().executeShellCommand(START_COMMAND); in testUnlock()
125 getDevice().executeShellCommand(AWAKE_COMMAND); in testUnlock()
126 getDevice().executeShellCommand(DISMISS_KEYGUARD_COMMAND); in testUnlock()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/targetprep/
DSettingsToggler.java32 device.executeShellCommand( in setString()
55 device.executeShellCommand( in setInt()
76 device.executeShellCommand( in updateString()
95 device.executeShellCommand( in updateInt()
114 device.executeShellCommand( in deleteSetting()
/cts/tests/tests/media/src/android/media/cts/
DUtils.java56 instrumentation.getUiAutomation().executeShellCommand(cmd.toString()); in setAppOps()
68 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand( in setAppOps()
91 fd = uiAutomation.executeShellCommand( in toggleNotificationPolicyAccess()
99 fd = uiAutomation.executeShellCommand( in toggleNotificationPolicyAccess()
105 fd = uiAutomation.executeShellCommand("settings --user cur put secure " in toggleNotificationPolicyAccess()
/cts/hostsidetests/atrace/src/android/atrace/cts/
DAtraceHostTest.java157 String output = getDevice().executeShellCommand("atrace"); in testSimpleRun()
172 String output = getDevice().executeShellCommand("atrace --list_categories"); in testCategories()
213 getDevice().executeShellCommand("atrace --async_stop " + atraceArgs); in testTracingContent()
214 getDevice().executeShellCommand("atrace --async_start " + atraceArgs); in testTracingContent()
215 getDevice().executeShellCommand("am start " + TEST_PKG); in testTracingContent()
216 getDevice().executeShellCommand("sleep 1"); in testTracingContent()
217 atraceOutput = getDevice().executeShellCommand("atrace --async_stop " + atraceArgs); in testTracingContent()
/cts/hostsidetests/aadb/src/android/aadb/cts/
DTestDeviceFuncTest.java88 final String output = mTestDevice.executeShellCommand("ls /"); in assertSimpleShellCommand()
109 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal()
123 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal()
147 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_extStorageVariable()
168 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_extStorageVariable()
271 String origTmpFileStamp = mTestDevice.executeShellCommand(String.format("ls -l %s", in doTestSyncFiles()
282 String unchangedTmpFileStamp = mTestDevice.executeShellCommand(String.format("ls -l %s", in doTestSyncFiles()
304 String tmpFileContents = mTestDevice.executeShellCommand(String.format("cat %s", in doTestSyncFiles()
310 mTestDevice.executeShellCommand(String.format("rm -r %s", expectedDeviceFilePath)); in doTestSyncFiles()
337 mTestDevice.executeShellCommand(String.format("rm -r %s/%s", externalStorePath, in testPushDir()
[all …]
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DSettingsPreparer.java95 String currentSettingValue = device.executeShellCommand(shellCmdGet).trim(); in run()
100 device.executeShellCommand(shellCmdPut); in run()
108 device.executeShellCommand(shellCmdPut); in run()
113 String currentSettingValue = device.executeShellCommand(shellCmdGet).trim(); in run()

12345