We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18b0bef commit 60b8f4eCopy full SHA for 60b8f4e
services/shellexecutor/java/androidx/test/services/shellexecutor/LocalSocketProtocol.kt
@@ -52,6 +52,12 @@ object LocalSocketProtocol {
52
env: Map<String, String>? = null,
53
timeout: Duration,
54
) {
55
+ val myString = "Kotlin is awesome!"
56
+ val destinationArray = CharArray(myString.length)
57
+
58
+ // Convert the string and store it in the destinationArray:
59
+ myString.toCharArray(destinationArray)
60
61
val builder = RunCommandRequest.newBuilder().setSecret(secret).addAllArgv(argv)
62
env?.forEach { (k, v) -> builder.putEnvironment(k, v) }
63
if (timeout.isInfinite() || timeout.isNegative() || timeout == Duration.ZERO) {
0 commit comments