/cts/tests/tests/assist/src/android/assist/cts/ |
D | DisableContextTest.java | 22 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/ |
D | BatteryUtils.java | 43 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()
|
D | AmUtils.java | 28 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()
|
D | SettingsUtils.java | 27 SystemUtil.runShellCommandForNoOutput("settings put global " + key + " " + value); in putGlobalSetting() 34 SystemUtil.runShellCommandForNoOutput( in putSecureSetting()
|
D | AppStandbyUtils.java | 33 final String result = SystemUtil.runShellCommand( in isAppStandbyEnabled() 61 SystemUtil.runShellCommand("settings get global app_standby_enabled").trim(); in isAppStandbyEnabledAtRuntime()
|
D | LocationUtils.java | 35 SystemUtil.runShellCommand(instrumentation, command.toString()); in registerMockLocationProvider()
|
D | PropertyUtil.java | 19 import com.android.compatibility.common.util.SystemUtil; 93 String queryOutput = SystemUtil.runShellCommand( in getClientIds()
|
/cts/tests/app/src/android/app/cts/ |
D | ApplicationTest.java | 28 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()
|
D | ActivityManagerProcessStateTest.java | 52 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/ |
D | BatteryConstraintTest.java | 35 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 …]
|
D | ConstraintTest.java | 35 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()
|
D | ConnectivityConstraintTest.java | 31 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/ |
D | AlmostFullTest.java | 26 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/ |
D | ServiceProcessController.java | 31 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/ |
D | SplitSystemUserTest.java | 19 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/ |
D | ConstraintTest.java | 35 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/ |
D | Utils.java | 23 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/ |
D | ShellHelper.java | 25 import com.android.compatibility.common.util.SystemUtil; 42 final String result = SystemUtil in runShellCommand()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PermissionGroupChange.java | 38 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/ |
D | PrivappPermissionsTest.java | 19 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/ |
D | AppStandbyDeviceInfo.java | 20 import com.android.compatibility.common.util.SystemUtil;
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | IdleUidTest.java | 39 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/ |
D | NetworkWatchlistTest.java | 32 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/ |
D | KeyListenerTestCase.java | 35 import com.android.compatibility.common.util.SystemUtil; 114 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in grantWriteSettingsPermission()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | BaseDeviceAdminTest.java | 32 import com.android.compatibility.common.util.SystemUtil; 95 final String result = SystemUtil.runShellCommand(getInstrumentation(), command); in runShellCommand()
|