Home
last modified time | relevance | path

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

1234

/cts/hostsidetests/packagemanager/domainverification/lib/constants/android/src/com/android/cts/packagemanager/verify/domain/android/
DSharedVerifications.kt22 import com.android.compatibility.common.util.ShellUtils
37 ShellUtils.runShellCommand(DomainUtils.setAppLinks(it, "STATE_NO_RESPONSE", "all")) in reset()
38 ShellUtils.runShellCommand(DomainUtils.resetAppLinks(it)) in reset()
39 ShellUtils.runShellCommand(DomainUtils.setAppLinksAllowed(it, context.userId, true)) in reset()
40 ShellUtils.runShellCommand( in reset()
48 ShellUtils.runShellCommand("$enablePrefix $DECLARING_PKG_NAME_1") in reset()
49 ShellUtils.runShellCommand("$enablePrefix $DECLARING_PKG_NAME_2") in reset()
50ShellUtils.runShellCommand("$enablePrefix ${DECLARING_PKG_1_COMPONENT.flattenToString()}") in reset()
51ShellUtils.runShellCommand("$enablePrefix ${DECLARING_PKG_2_COMPONENT.flattenToString()}") in reset()
74 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/tests/input/src/android/input/cts/
DInputShellCommandTest.kt25 import com.android.compatibility.common.util.ShellUtils
67 ShellUtils.runShellCommand("input tap $x $y") in testDefaultToolType()
78 ShellUtils.runShellCommand("input touchscreen tap $x $y") in testToolType()
81 ShellUtils.runShellCommand("input touchpad tap $x $y") in testToolType()
84 ShellUtils.runShellCommand("input touchnavigation tap $x $y") in testToolType()
87 ShellUtils.runShellCommand("input stylus tap $x $y") in testToolType()
90 ShellUtils.runShellCommand("input mouse tap $x $y") in testToolType()
93 ShellUtils.runShellCommand("input trackball tap $x $y") in testToolType()
96 ShellUtils.runShellCommand("input joystick tap $x $y") in testToolType()
DAppKeyCombinationsTest.kt24 import com.android.compatibility.common.util.ShellUtils
53 ShellUtils.runShellCommand("input keycombination CTRL_LEFT SPACE") in testCtrlSpace()
62 ShellUtils.runShellCommand("input keycombination CTRL_LEFT ALT_LEFT Z") in testCtrlAltZ()
73 ShellUtils.runShellCommand("input keyevent KEYCODE_SYSRQ") in testSYSRQ()
/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/car/src/android/car/view/inputmethod/cts/
DInputMethodManagerServiceProxyTest.java34 import com.android.compatibility.common.util.ShellUtils;
81 ShellUtils.runShellCommand("am start-user -w %d", in testCarImmsLifecycle()
93 String shellOut = ShellUtils.runShellCommand("pm create-user testUser"); in createRandomUser()
101 ShellUtils.runShellCommand("am stop-user -w -f %d", userId); in stopAndRemoveUser()
103 ShellUtils.runShellCommand("pm remove-user -w %d", in stopAndRemoveUser()
123 String dump = ShellUtils.runShellCommand("dumpsys input_method --brief"); in parseServiceConfigDump()
/cts/tests/tests/security/src/android/security/cts/
DActivityManagerTest.java54 import com.android.compatibility.common.util.ShellUtils;
69 String output = ShellUtils.runShellCommand("pm get-max-users"); in canSupportMultiuser()
93 out = ShellUtils.runShellCommand("pm create-user testUser"); in testActivityManager_registerUidChangeObserver_onlyNoInteractAcrossPermission()
96 ShellUtils.runShellCommand("am switch-user " + out); in testActivityManager_registerUidChangeObserver_onlyNoInteractAcrossPermission()
101 ShellUtils.runShellCommand("am switch-user " + currentUser); in testActivityManager_registerUidChangeObserver_onlyNoInteractAcrossPermission()
102 ShellUtils.runShellCommand("pm remove-user " + out); in testActivityManager_registerUidChangeObserver_onlyNoInteractAcrossPermission()
127 out = ShellUtils.runShellCommand("pm create-user testUser"); in testActivityManager_registerUidChangeObserver_allPermission()
130 ShellUtils.runShellCommand("am switch-user " + out); in testActivityManager_registerUidChangeObserver_allPermission()
136 ShellUtils.runShellCommand("am switch-user " + currentUser); in testActivityManager_registerUidChangeObserver_allPermission()
137 ShellUtils.runShellCommand("pm remove-user " + out); in testActivityManager_registerUidChangeObserver_allPermission()
DCVE_2022_20611.java18 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
/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/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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DShellUtils.java29 public final class ShellUtils { class
65 private ShellUtils() { in ShellUtils() method in ShellUtils
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DCallLogTest.java41 import com.android.compatibility.common.util.ShellUtils;
157 ShellUtils.runShellCommand("telecom set-default-dialer %s", in testPopulateAndQueryCallAndVoicemailLogs()
179 ShellUtils.runShellCommand("telecom set-default-dialer default"); in testPopulateAndQueryCallAndVoicemailLogs()
200 ShellUtils.runShellCommand("telecom set-default-dialer %s", in testInvalidQueryToCallLog()
206 ShellUtils.runShellCommand("telecom set-default-dialer default"); in testInvalidQueryToCallLog()
219 ShellUtils.runShellCommand("telecom set-default-dialer %s", in testInvalidQueryToCallLog()
222 ShellUtils.runShellCommand("telecom set-default-dialer default"); in testInvalidQueryToCallLog()
353 ShellUtils.runShellCommand("telecom set-default-dialer %s", in testLocationStorageAndRetrieval()
389 ShellUtils.runShellCommand("telecom set-default-dialer default"); in testLocationStorageAndRetrieval()
/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;
194 ShellUtils.runShellCommand(template, SHARED_PKG_NAME, approved); in setDomainUserSelectionApproval()
195 ShellUtils.runShellCommand(template, UNIQUE_AND_SHARED_PKG_NAME, approved); in setDomainUserSelectionApproval()
/cts/tests/framework/base/localeconfig/src/com/android/cts/localeconfig/
DLocaleConfigTest.java33 import com.android.compatibility.common.util.ShellUtils;
151 String installResult = ShellUtils.runShellCommand("pm install -r " + apk); in install()
158 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/app/ShortFgsTest/src/android/app/cts/shortfgstest/
DActivityManagerShortFgsTimeoutTest.java24 import com.android.compatibility.common.util.ShellUtils;
53 final String dumpsys = ShellUtils.runShellCommand("dumpsys activity settings"); in extractShortFgsSettings()
/cts/tests/tests/gamemanager/src/android/gamemanager/cts/
DTestUtil.java19 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewMouseInteractionTest.java52 import com.android.compatibility.common.util.ShellUtils;
83 ShellUtils.runShellCommand("wm dismiss-keyguard"); in dismissKeyguard()
87 ShellUtils.runShellCommand("am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS"); in closeSystemDialog()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java47 import com.android.compatibility.common.util.ShellUtils;
362 ShellUtils.runShellCommand("pm install -r " in install()
368 ShellUtils.runShellCommand("pm uninstall " + packageName); in uninstall()
372 ShellUtils.runShellCommand("pm clear " + packageName); in resetApp()
373 ShellUtils.runShellCommand("appops reset " + packageName); in resetApp()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DAbstractVoiceInteractionTestCase.java21 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextViewIntegrationTest.java54 import com.android.compatibility.common.util.ShellUtils;
98 ShellUtils.runShellCommand("wm dismiss-keyguard"); in dismissKeyguard()
102 ShellUtils.runShellCommand("am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS"); in closeSystemDialog()
107 String result = ShellUtils.runShellCommand("dumpsys window windows"); in dumpScreenInformation()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultiWindowLoginActivityTest.java21 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
22 import static com.android.compatibility.common.util.ShellUtils.tap;
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/
DCtsSyncManagerTest.java57 import com.android.compatibility.common.util.ShellUtils;
335 final String output = ShellUtils.runShellCommand("cmd deviceidle enabled deep").trim(); in isDozeFeatureEnabled()
340 ShellUtils.runShellCommand("cmd deviceidle " + (on ? "force-idle" : "unforce")); in setDozeState()
343 ShellUtils.runShellCommand("cmd deviceidle motion"); in setDozeState()

1234