Searched refs:asRoot (Results 1 – 6 of 6) sorted by relevance
201 assertThat(ShellCommand.builder(LIST_USERS_COMMAND).asRoot(/* shouldRunAsRoot= */ true) in buildCommand_asRoot_commandStartsWithRootPrefix()207 assertThat(ShellCommand.builder(LIST_USERS_COMMAND).asRoot(/* shouldRunAsRoot= */ false) in buildCommand_notAsRoot_commandDoesNotStartWithRootPrefix()
69 .asRoot(true) in set()
89 public Builder asRoot(boolean shouldRunAsRoot) { in asRoot() method in ShellCommand.Builder
428 String output = ShellCommand.builder("cat /system/build.prop").asRoot(true) in canRunAsRootWithSuperUser()
398 .asRoot(true) in setAppAsDistracting()
382 .asRoot(shouldRunAsRoot) in grantPermission()