Home
last modified time | relevance | path

Searched refs:SystemUtil (Results 1 – 25 of 59) sorted by relevance

123

/cts/tests/tests/assist/src/android/assist/cts/
DDisableContextTest.java22 import com.android.compatibility.common.util.SystemUtil;
43 SystemUtil.runShellCommand(getInstrumentation(), in tearDown()
45 SystemUtil.runShellCommand(getInstrumentation(), in tearDown()
58 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
60 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
70 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
72 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
82 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
84 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBatteryUtils.java43 SystemUtil.runShellCommandForNoOutput("dumpsys battery unplug"); in runDumpsysBatteryUnplug()
50 SystemUtil.runShellCommandForNoOutput(("dumpsys battery reset")); in runDumpsysBatteryReset()
61 SystemUtil.runShellCommandForNoOutput("cmd power set-mode 1"); in enableBatterySaver()
70 () -> SystemUtil.runShellCommand("dumpsys alarm") in enableBatterySaver()
74 SystemUtil.runShellCommandForNoOutput("cmd power set-mode 0"); in enableBatterySaver()
83 () -> SystemUtil.runShellCommand("dumpsys alarm") in enableBatterySaver()
96 SystemUtil.runShellCommandForNoOutput("input keyevent KEYCODE_WAKEUP"); in turnOnScreen()
100 SystemUtil.runShellCommandForNoOutput("input keyevent KEYCODE_SLEEP"); in turnOnScreen()
DAmUtils.java28 SystemUtil.runShellCommandForNoOutput("am make-uid-idle " + packageName); in runMakeUidIdle()
37 SystemUtil.runShellCommandForNoOutput("am kill --user cur " + packageName); in runKill()
48 final String output = SystemUtil.runShellCommand("ps -A -o NAME"); in isProcessRunning()
60 SystemUtil.runShellCommandForNoOutput("am set-standby-bucket " + packageName in setStandbyBucket()
66 SystemUtil.runCommandAndPrintOnLogcat(TAG, "am wait-for-broadcast-idle"); in waitForBroadcastIdle()
DSettingsUtils.java27 SystemUtil.runShellCommandForNoOutput("settings put global " + key + " " + value); in putGlobalSetting()
34 SystemUtil.runShellCommandForNoOutput( in putSecureSetting()
DAppStandbyUtils.java33 final String result = SystemUtil.runShellCommand( in isAppStandbyEnabled()
61 SystemUtil.runShellCommand("settings get global app_standby_enabled").trim(); in isAppStandbyEnabledAtRuntime()
DLocationUtils.java35 SystemUtil.runShellCommand(instrumentation, command.toString()); in registerMockLocationProvider()
DPropertyUtil.java19 import com.android.compatibility.common.util.SystemUtil;
93 String queryOutput = SystemUtil.runShellCommand( in getClientIds()
/cts/tests/app/src/android/app/cts/
DApplicationTest.java28 import com.android.compatibility.common.util.SystemUtil;
40 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD); in tearDown()
62 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD); in toggleFontScale()
64 SystemUtil.runShellCommand(getInstrumentation(), PUT_FONT_SCALE_CMD); in toggleFontScale()
66 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD); in toggleFontScale()
DActivityManagerProcessStateTest.java52 import com.android.compatibility.common.util.SystemUtil;
116 final String result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in executeShellCmd()
416 String result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
424 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
428 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
448 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
474 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
492 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
515 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
517 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
[all …]
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DBatteryConstraintTest.java35 import com.android.compatibility.common.util.SystemUtil;
57 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery on"); in setUp()
64 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery off"); in tearDown()
65 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery reset"); in tearDown()
70 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery set ac 1"); in setBatteryState()
72 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery unplug"); in setBatteryState()
74 int seq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState()
83 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState()
89 curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState()
101 boolean curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in verifyChargingState()
[all …]
DConstraintTest.java35 import com.android.compatibility.common.util.SystemUtil;
94 SystemUtil.runShellCommand(getInstrumentation(), "cmd activity set-inactive " in injectInstrumentation()
117 SystemUtil.runShellCommand(getInstrumentation(), "cmd devicestoragemonitor reset"); in tearDown()
163 res = SystemUtil.runShellCommand(getInstrumentation(), in setStorageState()
166 res = SystemUtil.runShellCommand(getInstrumentation(), in setStorageState()
175 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setStorageState()
186 return SystemUtil.runShellCommand(getInstrumentation(), in getJobState()
DConnectivityConstraintTest.java31 import com.android.compatibility.common.util.SystemUtil;
84 mInitialRestrictBackground = SystemUtil in setUp()
95 SystemUtil.runShellCommand(getInstrumentation(), RESTRICT_BACKGROUND_ON_CMD); in tearDown()
341 SystemUtil.runShellCommand(getInstrumentation(), RESTRICT_BACKGROUND_OFF_CMD); in ensureRestrictBackgroundPolicyOff()
/cts/tests/filesystem/src/android/filesystem/cts/
DAlmostFullTest.java26 import com.android.compatibility.common.util.SystemUtil;
63 long freeDisk = SystemUtil.getFreeDiskSize(getContext()); in setUp()
86 Log.i(TAG, "free disk " + SystemUtil.getFreeDiskSize(getContext())); in setUp()
91 Log.i(TAG, "tearDown free disk " + SystemUtil.getFreeDiskSize(getContext())); in tearDown()
100 Log.i(TAG, "tearDown free disk " + SystemUtil.getFreeDiskSize(getContext())); in tearDown()
108 long freeDisk = SystemUtil.getFreeDiskSize(getContext()); in testSequentialUpdate()
127 long freeDisk = SystemUtil.getFreeDiskSize(getContext()); in testRandomRead()
142 long freeDisk = SystemUtil.getFreeDiskSize(getContext()); in testRandomUpdate()
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DServiceProcessController.java31 import com.android.compatibility.common.util.SystemUtil;
109 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in denyBackgroundOp()
118 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in allowBackgroundOp()
123 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in makeUidIdle()
128 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in removeFromWhitelist()
133 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in addToWhitelist()
138 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in tempWhitelist()
143 SystemUtil.runShellCommand(mInstrumentation, cmd); in removeFromTempWhitelist()
148 SystemUtil.runShellCommand(mInstrumentation, cmd); in setAppOpMode()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DSplitSystemUserTest.java19 import com.android.compatibility.common.util.SystemUtil;
31 String curUser = SystemUtil.runShellCommand(getInstrumentation(), "am get-current-user"); in testSplitSystemUserIsDisabled()
38 String splitEnabledStr = trim(SystemUtil.runShellCommand(getInstrumentation(), in testSplitSystemUserIsDisabled()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DConstraintTest.java35 import com.android.compatibility.common.util.SystemUtil;
94 SystemUtil.runShellCommand(getInstrumentation(), "cmd activity set-inactive " in injectInstrumentation()
117 SystemUtil.runShellCommand(getInstrumentation(), "cmd devicestoragemonitor reset"); in tearDown()
163 res = SystemUtil.runShellCommand(getInstrumentation(), in setStorageState()
166 res = SystemUtil.runShellCommand(getInstrumentation(), in setStorageState()
175 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setStorageState()
186 return SystemUtil.runShellCommand(getInstrumentation(), in getJobState()
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/
DUtils.java23 import com.android.compatibility.common.util.SystemUtil;
69 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in allowSyncAdapterRunInBackgroundAndDataInBackground()
72 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in allowSyncAdapterRunInBackgroundAndDataInBackground()
78 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in disallowSyncAdapterRunInBackgroundAndDataInBackground()
81 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in disallowSyncAdapterRunInBackgroundAndDataInBackground()
/cts/tests/autofillservice/src/android/autofillservice/cts/common/
DShellHelper.java25 import com.android.compatibility.common.util.SystemUtil;
42 final String result = SystemUtil in runShellCommand()
/cts/tests/tests/permission/src/android/permission/cts/
DPermissionGroupChange.java38 import com.android.compatibility.common.util.SystemUtil;
61 SystemUtil.runShellCommand("input keyevent KEYCODE_WAKEUP"); in wakeUpScreen()
128 String installResult = SystemUtil.runShellCommand( in installApp()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPrivappPermissionsTest.java19 import com.android.compatibility.common.util.SystemUtil;
131 String output = SystemUtil.runShellCommand( in getPrivAppPermissions()
142 String output = SystemUtil.runShellCommand( in getPrivAppDenyPermissions()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DAppStandbyDeviceInfo.java20 import com.android.compatibility.common.util.SystemUtil;
/cts/tests/camera/src/android/hardware/camera2/cts/
DIdleUidTest.java39 import com.android.compatibility.common.util.SystemUtil;
200 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), command); in makeMyPackageActive()
206 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), command); in makeMyPackageIdle()
/cts/tests/tests/net/src/android/net/cts/
DNetworkWatchlistTest.java32 import com.android.compatibility.common.util.SystemUtil;
124 return SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), command); in runCommand()
/cts/tests/tests/text/src/android/text/method/cts/
DKeyListenerTestCase.java35 import com.android.compatibility.common.util.SystemUtil;
114 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in grantWriteSettingsPermission()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DBaseDeviceAdminTest.java32 import com.android.compatibility.common.util.SystemUtil;
95 final String result = SystemUtil.runShellCommand(getInstrumentation(), command); in runShellCommand()

123