Home
last modified time | relevance | path

Searched refs:ShellCommand (Results 1 – 25 of 41) sorted by relevance

12

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/utils/
DShellCommandTest.java52 assertThrows(NullPointerException.class, () -> ShellCommand.builder(null)); in constructBuilder_nullCommand_throwsException()
57 assertThat(ShellCommand.builder(/* command= */ COMMAND)).isNotNull(); in constructBuilder_constructs()
62 assertThat(ShellCommand.builder(/* command= */ COMMAND).build()).isEqualTo(COMMAND); in build_containsCommand()
67 ShellCommand.Builder builder = ShellCommand.builder("command") in build_containsOption()
76 ShellCommand.Builder builder = ShellCommand.builder("command") in build_containsOptions()
87 ShellCommand.Builder builder = ShellCommand.builder("command") in build_containsOperand()
96 ShellCommand.Builder builder = ShellCommand.builder("command") in build_containsOperands()
106 ShellCommand.Builder builder = ShellCommand.builder("command") in build_interleavesOptionsAndOperands()
117 assertThat(ShellCommand.builder(LIST_USERS_COMMAND).execute()) in execute_returnsOutput()
127 () -> ShellCommand.builder(INVALID_COMMAND_LEGACY_OUTPUT).execute()); in execute_invalidCommand_legacyOutput_throwsException()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/broadcasts/
DBroadcasts.java20 import com.android.bedstead.nene.utils.ShellCommand;
43 String unused = ShellCommand.builder("am") in waitForBroadcastBarrier()
48 String unused = ShellCommand.builder("am") in waitForBroadcastBarrier()
65 String unused = ShellCommand.builder("am") in waitForBroadcastDispatch()
DActivityIntents.kt23 import com.android.bedstead.nene.utils.ShellCommand in <lambda>()
52 ShellCommand.builder("dumpsys") in <lambda>()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/properties/
DProperties.kt3 import com.android.bedstead.nene.utils.ShellCommand
13 ShellCommand.builder("setprop") in set()
27 ShellCommand.builder("getprop").addOperand(key) in get()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/telecom/
DDefaultDialerContext.kt18 import com.android.bedstead.nene.utils.ShellCommand
26 ShellCommand.builder("telecom set-default-dialer default").execute() in close()
DTelecom.kt21 import com.android.bedstead.nene.utils.ShellCommand in <lambda>()
32 ShellCommand.builder("telecom set-default-dialer") in <lambda>()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/dumpsys/
DDumpsys.kt19 import com.android.bedstead.nene.utils.ShellCommand
24 …fun permissions(): String = ShellCommand.builder("dumpsys permissionmgr").validate(String::isNotEm…
/cts/common/device-side/bedstead/modules/usb/src/main/kotlin/com/android/bedstead/usb/
DUsb.kt20 import com.android.bedstead.nene.utils.ShellCommand
32 return ShellCommand.builder("dumpsys usb") in isConnected()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/device/
DDevice.java33 import com.android.bedstead.nene.utils.ShellCommand;
76 String unused1 = ShellCommand.builder("input keyevent") in wakeUp()
92 String unused = ShellCommand.builder("wm dismiss-keyguard") in unlock()
107 String unused = ShellCommand.builder("svc power stayon") in keepScreenOn()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DProfileOwnerTest.kt32 import com.android.bedstead.nene.utils.ShellCommand in <lambda>()
52 ShellCommand in <lambda>()
73 ShellCommand in <lambda>()
96 ShellCommand in <lambda>()
114 ShellCommand in <lambda>()
149 ShellCommand in <lambda>()
184 ShellCommand in <lambda>()
217 ShellCommand in <lambda>()
239 ShellCommand in <lambda>()
DAdbProvisioningTest.java32 import com.android.bedstead.nene.utils.ShellCommand;
61 ShellCommand.builderForUser( in setDeviceOwnerUsingAdb_isLogged()
88 ShellCommand.builderForUser( in setProfileOwnerUsingAdb_isLogged()
DDeviceOwnerTest.kt42 import com.android.bedstead.nene.utils.ShellCommand in <lambda>()
134 ShellCommand in <lambda>()
160 ShellCommand in <lambda>()
183 ShellCommand in <lambda>()
218 ShellCommand in <lambda>()
254 ShellCommand in <lambda>()
285 ShellCommand in <lambda>()
308 ShellCommand in <lambda>()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DUserRestrictionsContext.java21 import com.android.bedstead.nene.utils.ShellCommand;
86 ShellCommand.builderForUser(mUser, "pm set-user-restriction") in setNoCheck()
96 ShellCommand.builderForUser(mUser, "pm set-user-restriction") in unsetNoCheck()
DUserRestrictions.java28 import com.android.bedstead.nene.utils.ShellCommand;
68 ShellCommand.builderForUser(mUser, "pm set-user-restriction") in set()
/cts/hostsidetests/os/test-apps/StaticSharedLibTestApp/src/android/os/lib/app/
DStaticSharedLibsMultiUserTests.java35 import com.android.bedstead.nene.utils.ShellCommand;
78 ShellCommand.Builder cmd = ShellCommand.builderForUser(user, "pm install"); in installPackageAsUser()
91 ShellCommand.Builder cmd = ShellCommand.builder("pm uninstall"); in uninstallPackage()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/wifi/
DWifi.kt22 import com.android.bedstead.nene.utils.ShellCommand in <lambda>()
43 ShellCommand.builder("svc wifi") in <lambda>()
/cts/tests/devicepolicy/internal/src/android/devicepolicy/internal/
DDumpSysTest.kt24 import com.android.bedstead.nene.utils.ShellCommand
50 ShellCommand.builder("dumpsys device_policy").validate(String::isNotEmpty).execute() in dumpSys_containsPolicy()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DComponentReference.java27 import com.android.bedstead.nene.utils.ShellCommand;
88 ShellCommand.builderForUser(user, "pm enable") in enable()
117 ShellCommand.builderForUser(user, "pm disable") in disable()
DProcessReference.java23 import com.android.bedstead.nene.utils.ShellCommand;
108 ShellCommand.builder("am crash") in crash()
DPackage.java77 import com.android.bedstead.nene.utils.ShellCommand;
139 String unused = ShellCommand.builderForUser(user, "cmd package install-existing") in installExisting()
255 return ShellCommand.builderForUser(user, "pm uninstall") in uninstall()
311 String unused = ShellCommand.builderForUser(user, "pm enable") in enable()
338 String unused = ShellCommand.builderForUser(user, "pm disable-user") in disable()
381 String unused = ShellCommand.builderForUser(user, "pm grant") in grantPermission()
487 return ShellCommand.builder("ps") in runningProcesses()
700 String dumpsysOutput = ShellCommand.builder("dumpsys package").execute(); in applicationInfoForUserPreQ()
1142 String unused = ShellCommand.builder("am compat") in setAllowTestApiAccess()
1211 String unused = ShellCommand.builder("pm set-app-links") in setAppLinksToAllApproved()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUserReference.java59 import com.android.bedstead.nene.utils.ShellCommand;
60 import com.android.bedstead.nene.utils.ShellCommand.Builder;
197 String unused = ShellCommand.builder("pm remove-user") in remove()
245 String unused = ShellCommand.builder("pm remove-user") in removeWhenPossible()
297 Builder builder = ShellCommand.builder("am start-user") in startUser()
343 ShellCommand.builder("am stop-user") in stop()
389 ShellCommand.builder("am switch-user") in switchTo()
689 ShellCommand.Builder commandBuilder = ShellCommand.builder("cmd lock_settings") in setLockCredential()
694 ShellCommand.Builder unused = commandBuilder.addOption("--old", existingCredential); in setLockCredential()
696 ShellCommand.Builder unused = commandBuilder.addOption("--old", mLockCredential); in setLockCredential()
[all …]
DUserBuilder.java32 import com.android.bedstead.nene.utils.ShellCommand;
139 ShellCommand.Builder commandBuilder = ShellCommand.builder("pm create-user"); in create()
/cts/common/device-side/bedstead/metricsrecorder/src/main/java/com/android/bedstead/metricsrecorder/
DEnterpriseMetricsRecorder.java23 import com.android.bedstead.nene.utils.ShellCommand;
141 ShellCommand.builder("cmd stats config update") in uploadConfig()
158 ShellCommand.builder("cmd stats config remove").addOperand(configId) in removeConfig()
167 byte[] bytes = ShellCommand.builder("cmd stats dump-report") in getReportList()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/content/
DSuggestions.kt25 import com.android.bedstead.nene.utils.ShellCommand in <lambda>()
64 ShellCommand.builder("cmd content_suggestions") in <lambda>()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNotifications.kt28 import com.android.bedstead.nene.utils.ShellCommand in <lambda>()
108 ShellCommand.builder("cmd notification") in <lambda>()

12