Home
last modified time | relevance | path

Searched refs:ShellUtils (Results 1 – 25 of 106) sorted by relevance

12345

/cts/tests/input/src/android/input/cts/
DInputShellCommandTest.kt27 import com.android.compatibility.common.util.ShellUtils
77 ShellUtils.runShellCommand("input -d $displayId tap $x $y") in testDefaultTapToolType()
88 ShellUtils.runShellCommand("input touchscreen -d $displayId tap $x $y") in testTapToolType()
91 ShellUtils.runShellCommand("input touchpad -d $displayId tap $x $y") in testTapToolType()
94 ShellUtils.runShellCommand("input touchnavigation -d $displayId tap $x $y") in testTapToolType()
97 ShellUtils.runShellCommand("input stylus -d $displayId tap $x $y") in testTapToolType()
100 ShellUtils.runShellCommand("input mouse -d $displayId tap $x $y") in testTapToolType()
103 ShellUtils.runShellCommand("input trackball -d $displayId tap $x $y") in testTapToolType()
106 ShellUtils.runShellCommand("input joystick -d $displayId tap $x $y") in testTapToolType()
112 ShellUtils.runShellCommand("input -d $displayId scroll") in testDefaultScroll()
[all …]
DAppKeyCombinationsTest.kt24 import com.android.compatibility.common.util.ShellUtils
54 ShellUtils.runShellCommand("input keycombination CTRL_LEFT SPACE") in testCtrlSpace()
63 ShellUtils.runShellCommand("input keycombination CTRL_LEFT ALT_LEFT Z") in testCtrlAltZ()
74 ShellUtils.runShellCommand("input keyevent KEYCODE_SYSRQ") in testSYSRQ()
/cts/hostsidetests/packagemanager/domainverification/lib/constants/android/src/com/android/cts/packagemanager/verify/domain/android/
DSharedVerifications.kt22 import com.android.compatibility.common.util.ShellUtils
38 ShellUtils.runShellCommand(DomainUtils.setAppLinks(it, "STATE_NO_RESPONSE", "all")) in reset()
39 ShellUtils.runShellCommand(DomainUtils.resetAppLinks(it)) in reset()
40 ShellUtils.runShellCommand(DomainUtils.setAppLinksAllowed(it, context.userId, true)) in reset()
41 ShellUtils.runShellCommand( in reset()
49 ShellUtils.runShellCommand("$enablePrefix $DECLARING_PKG_NAME_1") in reset()
50 ShellUtils.runShellCommand("$enablePrefix $DECLARING_PKG_NAME_2") in reset()
51 ShellUtils.runShellCommand( in reset()
54 ShellUtils.runShellCommand( in reset()
80 ShellUtils.runShellCommand( in verifyDomains()
[all …]
DDomainVerificationIntentTestBase.kt26 import com.android.compatibility.common.util.ShellUtils
103 assertThat(ShellUtils.runShellCommand(it)).isEmpty() in runShellCommand()
113 val message = ShellUtils.runShellCommand( in assertResolvesTo()
115 ) + "\n" + ShellUtils.runShellCommand( in assertResolvesTo()
/cts/hostsidetests/packagemanager/domainverification/apps/calling/src/com/android/cts/packagemanager/verify/domain/callingapp/
DDomainVerificationIntentHostTimedTests.kt19 import com.android.compatibility.common.util.ShellUtils
60 ShellUtils.runShellCommand( in multipleVerifiedDisableByComponent()
69 ShellUtils.runShellCommand( in multipleVerifiedDisableByComponent()
86 ShellUtils.runShellCommand( in multipleVerifiedDisableByPackage()
94 ShellUtils.runShellCommand( in multipleVerifiedDisableByPackage()
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/
DCertificateTransparencyTestUtils.java20 import com.android.compatibility.common.util.ShellUtils;
64 ShellUtils.runShellCommand("am broadcast -a " + ConfigUpdate.ACTION_UPDATE_CT_LOGS); in downloadLogList()
68 ShellUtils.runShellCommand("rm -r " + CT_ROOT_DIRECTORY_PATH); in deleteLogList()
/cts/tests/tests/security/src/android/security/cts/
DActivityManagerTest.java48 import com.android.compatibility.common.util.ShellUtils;
61 String output = ShellUtils.runShellCommand("pm get-max-users"); in canSupportMultiuser()
85 out = ShellUtils.runShellCommand("pm create-user testUser"); in testActivityManager_registerUidChangeObserver_onlyNoInteractAcrossPermission()
88 ShellUtils.runShellCommand("am switch-user " + out); in testActivityManager_registerUidChangeObserver_onlyNoInteractAcrossPermission()
93 ShellUtils.runShellCommand("am switch-user " + currentUser); in testActivityManager_registerUidChangeObserver_onlyNoInteractAcrossPermission()
94 ShellUtils.runShellCommand("pm remove-user " + out); in testActivityManager_registerUidChangeObserver_onlyNoInteractAcrossPermission()
119 out = ShellUtils.runShellCommand("pm create-user testUser"); in testActivityManager_registerUidChangeObserver_allPermission()
122 ShellUtils.runShellCommand("am switch-user " + out); in testActivityManager_registerUidChangeObserver_allPermission()
128 ShellUtils.runShellCommand("am switch-user " + currentUser); in testActivityManager_registerUidChangeObserver_allPermission()
129 ShellUtils.runShellCommand("pm remove-user " + out); in testActivityManager_registerUidChangeObserver_allPermission()
DCertBlocklistFileTest.java34 import com.android.compatibility.common.util.ShellUtils;
88 ShellUtils.runShellCommand("pm install " + TEST_APP_LOCATION); in setUp()
106 ShellUtils.runShellCommand("pm uninstall " + TEST_APP_PKG); in tearDown()
/cts/tests/tests/car/src/android/car/app/cts/
DMultiUserMultiDisplayWindowSecurityTest.java53 import com.android.compatibility.common.util.ShellUtils;
221 ShellUtils.runShellCommand("settings put --user %d secure user_setup_complete 1", userId); in setUserSetupComplete()
223 ShellUtils.runShellCommand("settings get --user %d secure user_setup_complete", in setUserSetupComplete()
229 ShellUtils.runShellCommand("settings delete --user %d secure user_setup_complete", in deleteUserSetupComplete()
235 ShellUtils.runShellCommand("am start-user -w --display %d %d", displayId, userId)) in startUserOnDisplay()
257 ShellUtils.runShellCommand("am stop-user -w -f %d", userId); in stopUser()
262 ShellUtils.runShellCommand("pm remove-user --wait %d", in removeUser()
/cts/tests/app/ShortFgsTest/src/android/app/cts/shortfgstest/
DActivityManagerShortFgsTimeoutTest.java24 import com.android.compatibility.common.util.ShellUtils;
52 ShellUtils.runShellCommand( in setUpClass()
64 final String dumpsys = ShellUtils.runShellCommand("dumpsys activity settings"); in extractShortFgsSettings()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DDeviceConfigStateHelper.java87 final String originalSyncMode = ShellUtils.runShellCommand( in callWithSyncEnabledWithShellPermissions()
92 ShellUtils.runShellCommand("cmd device_config set_sync_disabled_for_tests none"); in callWithSyncEnabledWithShellPermissions()
96 ShellUtils.runShellCommand( in callWithSyncEnabledWithShellPermissions()
DShellUtils.java35 public final class ShellUtils { class
108 private ShellUtils() { in ShellUtils() method in ShellUtils
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DVoiceInteractionHelperTest.java27 import com.android.compatibility.common.util.ShellUtils;
66 String dump = ShellUtils.runShellCommand("dumpsys voiceinteraction"); in isVoiceInteractionDisabledFromDump()
/cts/tests/tests/car/src/android/car/cts/utils/
DDumpUtils.java20 import com.android.compatibility.common.util.ShellUtils;
42 String output = ShellUtils.runShellCommand( in executeDumpShellCommand()
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorRatePermissionEventConnectionTestHelper.java23 import com.android.compatibility.common.util.ShellUtils;
105 ShellUtils.runShellCommand("cmd sensor_privacy disable " + userID + " microphone"); in flipAndAssertMicToggleOff()
116 ShellUtils.runShellCommand("cmd sensor_privacy enable " + userID + " microphone"); in flipAndAssertMicToggleOn()
DSensorRatePermissionDirectReportTestHelper.java27 import com.android.compatibility.common.util.ShellUtils;
134 ShellUtils.runShellCommand("cmd sensor_privacy disable " + userID + " microphone"); in flipAndAssertMicToggleOff()
145 ShellUtils.runShellCommand("cmd sensor_privacy enable " + userID + " microphone"); in flipAndAssertMicToggleOn()
/cts/tests/app/FgsTimeoutTest/src/android/app/cts/fgstimeouttest/
DFgsTimeoutConfigsTest.java28 import com.android.compatibility.common.util.ShellUtils;
60 ShellUtils.runShellCommand("cmd device_config reset trusted_defaults activity_manager"); in setUpClass()
100 final String dumpsys = ShellUtils.runShellCommand("dumpsys activity settings"); in extractFgsTimeoutSettings()
/cts/tests/process/src/android/os/cts/process/
DProcessTest2.java58 import com.android.compatibility.common.util.ShellUtils;
75 ShellUtils.runShellCommand("am wait-for-broadcast-idle"); in stopAllHelperApps()
77 ShellUtils.runShellCommand("am force-stop " + PACKAGE_HELPER1); in stopAllHelperApps()
78 ShellUtils.runShellCommand("am force-stop " + PACKAGE_HELPER2); in stopAllHelperApps()
79 ShellUtils.runShellCommand("am force-stop " + PACKAGE_HELPER3); in stopAllHelperApps()
80 ShellUtils.runShellCommand("am force-stop " + PACKAGE_HELPER4); in stopAllHelperApps()
/cts/tests/tests/match_flags/src/android/matchflags/cts/
DMatchFlagTests.java31 import com.android.compatibility.common.util.ShellUtils;
195 ShellUtils.runShellCommand(template, SHARED_PKG_NAME, approved); in setDomainUserSelectionApproval()
196 ShellUtils.runShellCommand(template, UNIQUE_AND_SHARED_PKG_NAME, approved); in setDomainUserSelectionApproval()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DCallLogTest.java47 import com.android.compatibility.common.util.ShellUtils;
179 ShellUtils.runShellCommand("telecom set-default-dialer %s", in testPopulateAndQueryCallAndVoicemailLogs()
201 ShellUtils.runShellCommand("telecom set-default-dialer default"); in testPopulateAndQueryCallAndVoicemailLogs()
222 ShellUtils.runShellCommand("telecom set-default-dialer %s", in testInvalidQueryToCallLog()
228 ShellUtils.runShellCommand("telecom set-default-dialer default"); in testInvalidQueryToCallLog()
241 ShellUtils.runShellCommand("telecom set-default-dialer %s", in testInvalidQueryToCallLog()
244 ShellUtils.runShellCommand("telecom set-default-dialer default"); in testInvalidQueryToCallLog()
382 ShellUtils.runShellCommand("telecom set-default-dialer %s", in testInsertingBusinessCallComposerValues()
428 ShellUtils.runShellCommand("telecom set-default-dialer %s", in testLocationStorageAndRetrieval()
464 ShellUtils.runShellCommand("telecom set-default-dialer default"); in testLocationStorageAndRetrieval()
/cts/tests/framework/base/localeconfig/src/com/android/cts/localeconfig/
DLocaleConfigTest.java36 import com.android.compatibility.common.util.ShellUtils;
170 String installResult = ShellUtils.runShellCommand("pm install -r " + apk); in install()
177 String uninstallResult = ShellUtils.runShellCommand("pm uninstall " + packageName); in uninstall()
DLocaleConfigAppUpdateTest.java43 import com.android.compatibility.common.util.ShellUtils;
219 String installResult = ShellUtils.runShellCommand("pm install -r " + apk); in install()
224 String uninstallResult = ShellUtils.runShellCommand("pm uninstall " + packageName); in uninstall()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java51 import com.android.compatibility.common.util.ShellUtils;
382 ShellUtils.runShellCommand("pm install -r " in install()
388 ShellUtils.runShellCommand("pm uninstall " + packageName); in uninstall()
392 ShellUtils.runShellCommand("pm clear " + packageName); in resetApp()
393 ShellUtils.runShellCommand("appops reset " + packageName); in resetApp()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewMouseInteractionTest.java53 import com.android.compatibility.common.util.ShellUtils;
95 ShellUtils.runShellCommand("wm dismiss-keyguard"); in dismissKeyguard()
99 ShellUtils.runShellCommand("am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS"); in closeSystemDialog()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DAbstractVoiceInteractionTestCase.java21 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;

12345