Home
last modified time | relevance | path

Searched refs:ShellCommand (Results 1 – 25 of 40) 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>()
53 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
15 ShellCommand.builder("setprop") in set()
29 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/device/
DDevice.java32 import com.android.bedstead.nene.utils.ShellCommand;
76 String unused1 = ShellCommand.builder("input keyevent") in wakeUp()
92 String unused1 = ShellCommand.builder("input keyevent") in sleep()
108 String unused = ShellCommand.builder("wm dismiss-keyguard") in unlock()
123 String unused = ShellCommand.builder("svc power stayon") in keepScreenOn()
/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/hostsidetests/os/test-apps/StaticSharedLibTestApp/src/android/os/lib/app/
DStaticSharedLibsMultiUserTests.java37 import com.android.bedstead.nene.utils.ShellCommand;
80 ShellCommand.Builder cmd = ShellCommand.builderForUser(user, "pm install"); in installPackageAsUser()
93 ShellCommand.Builder cmd = ShellCommand.builder("pm uninstall"); in uninstallPackage()
/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()
DDevicePolicy.kt42 import com.android.bedstead.nene.utils.ShellCommand in <lambda>()
74 ShellCommand.builder(adbCommand).execute().trim().toBoolean() in <lambda>()
89 val command = ShellCommand.builderForUser(user, "dpm set-profile-owner") in <lambda>()
185 val command = ShellCommand.builderForUser( in <lambda>()
354 val command = ShellCommand.builderForUser( in <lambda>()
454 ShellCommand.builder("dumpsys device_policy").execute() in <lambda>()
883 ShellCommand.builder("dumpsys device_policy").validate(String::isNotEmpty).execute() in <lambda>()
909 private fun ShellCommand.Builder.addProvisioningContext(): ShellCommand.Builder { in <lambda>() method
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DProfileOwnerTest.kt35 import com.android.bedstead.nene.utils.ShellCommand in <lambda>()
56 ShellCommand in <lambda>()
77 ShellCommand in <lambda>()
100 ShellCommand in <lambda>()
118 ShellCommand in <lambda>()
157 ShellCommand in <lambda>()
196 ShellCommand in <lambda>()
233 ShellCommand in <lambda>()
255 ShellCommand in <lambda>()
DAdbProvisioningTest.java33 import com.android.bedstead.nene.utils.ShellCommand;
62 ShellCommand.builderForUser( in setDeviceOwnerUsingAdb_isLogged()
89 ShellCommand.builderForUser( in setProfileOwnerUsingAdb_isLogged()
DDeviceOwnerTest.kt44 import com.android.bedstead.nene.utils.ShellCommand in <lambda>()
137 ShellCommand in <lambda>()
163 ShellCommand in <lambda>()
186 ShellCommand in <lambda>()
228 ShellCommand in <lambda>()
275 ShellCommand in <lambda>()
315 ShellCommand in <lambda>()
338 ShellCommand in <lambda>()
/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.kt23 import com.android.bedstead.nene.utils.ShellCommand
48 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/users/
DUserReference.java58 import com.android.bedstead.nene.utils.ShellCommand;
59 import com.android.bedstead.nene.utils.ShellCommand.Builder;
197 ShellCommand.builder("pm remove-user") in remove()
245 ShellCommand.builder("pm remove-user") in removeWhenPossible()
298 Builder builder = ShellCommand.builder("am start-user") in startUser()
345 ShellCommand.builder("am stop-user") in stop()
392 ShellCommand.builder("am switch-user") in switchTo()
682 ShellCommand.builder("cmd lock_settings") in getScreenLockDisabled()
694 ShellCommand.builder("cmd lock_settings") in setScreenLockDisabled()
726 ShellCommand.Builder commandBuilder = ShellCommand.builder("cmd lock_settings") in setLockCredential()
[all …]
DUserBuilder.java32 import com.android.bedstead.nene.utils.ShellCommand;
141 ShellCommand.Builder commandBuilder = ShellCommand.builder("pm create-user"); in create()
/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()
/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.kt26 import com.android.bedstead.nene.utils.ShellCommand in <lambda>()
73 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