Home
last modified time | relevance | path

Searched refs:output (Results 1 – 25 of 157) sorted by relevance

1234567

/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaPlayerStressTest.java67 private void writeTestOutput(String filename, Writer output) throws Exception{ in writeTestOutput() argument
68 output.write("File Name: " + filename); in writeTestOutput()
69 output.write(" Complete: " + CodecTest.mOnCompleteSuccess); in writeTestOutput()
70 output.write(" Error: " + CodecTest.mPlaybackError); in writeTestOutput()
71 output.write(" Unknown Info: " + CodecTest.mMediaInfoUnknownCount); in writeTestOutput()
72 output.write(" Track Lagging: " + CodecTest.mMediaInfoVideoTrackLaggingCount); in writeTestOutput()
73 output.write(" Bad Interleaving: " + CodecTest.mMediaInfoBadInterleavingCount); in writeTestOutput()
74 output.write(" Not Seekable: " + CodecTest.mMediaInfoNotSeekableCount); in writeTestOutput()
75 output.write(" Info Meta data update: " + CodecTest.mMediaInfoMetdataUpdateCount); in writeTestOutput()
76 output.write("\n"); in writeTestOutput()
[all …]
DMediaRecorderStressTest.java177 Writer output = new BufferedWriter(new FileWriter(stressOutFile, true)); in testStressCamera() local
178 output.write("Camera start preview stress:\n"); in testStressCamera()
179 output.write("Total number of loops:" + in testStressCamera()
183 output.write("No of loop: "); in testStressCamera()
207 output.write(" ," + i); in testStressCamera()
210 output.write("\n\n"); in testStressCamera()
211 output.close(); in testStressCamera()
221 Writer output = new BufferedWriter(new FileWriter(stressOutFile, true)); in testStressRecorder() local
227 output.write("No camera found. Skipping recorder stress test\n"); in testStressRecorder()
251 output.write("H263 video record- reset after prepare Stress test\n"); in testStressRecorder()
[all …]
/cts/suite/audio_quality/test_description/processing/
Dplayback_thd.py30 output = []
42 output.append(RESULT_ERROR)
43 output.append(outputData)
44 output.append(outputTypes)
45 return output
55 output.append(RESULT_PASS)
57 output.append(RESULT_OK)
60 output.append(outputData)
61 output.append(outputTypes)
62 return output
Dplayback_sample.py26 output = []
38 output.append(RESULT_ERROR)
39 output.append(outputData)
40 output.append(outputTypes)
41 return output
52 output.append(RESULT_PASS)
54 output.append(RESULT_OK)
57 output.append(outputData)
58 output.append(outputTypes)
59 return output
Drecording_thd.py37 output = []
51 output.append(RESULT_ERROR)
52 output.append(outputData)
53 output.append(outputTypes)
54 return output
69 output.append(RESULT_PASS)
71 output.append(RESULT_OK)
76 output.append(outputData)
77 output.append(outputTypes)
78 return output
Dgen_random.py63 output = []
77 output.append(RESULT_ERROR)
78 output.append(outputData)
79 output.append(outputTypes)
80 return output
84 output.append(RESULT_OK)
87 output.append(outputData)
88 output.append(outputTypes)
89 return output
Dcheck_spectrum_playback.py70 output = []
88 output.append(RESULT_ERROR)
89 output.append(outputData)
90 output.append(outputTypes)
91 return output
102 output.append(RESULT_PASS)
104 output.append(RESULT_OK)
111 output.append(outputData)
112 output.append(outputTypes)
113 return output
Dexample.py41 output = []
60 output.append(RESULT_OK)
61 output.append(outputData)
62 output.append(outputTypes)
64 return output
Dcheck_spectrum.py82 output = []
103 output.append(RESULT_ERROR)
104 output.append(outputData)
105 output.append(outputTypes)
106 return output
136 output.append(RESULT_PASS)
138 output.append(RESULT_OK)
145 output.append(outputData)
146 output.append(outputTypes)
147 return output
/cts/tests/tests/media/src/android/media/cts/
DPresentationSyncTest.java92 InputSurface output = new InputSurface(holder.getSurface()); in testThroughput() local
93 mWidth = output.getWidth(); in testThroughput()
94 mHeight = output.getHeight(); in testThroughput()
96 output.makeCurrent(); in testThroughput()
101 long baseTimeNsec = runThroughputTest(output, 0L, -1.0f); in testThroughput()
130 runThroughputTest(output, refreshNsec, 1.0f); in testThroughput()
131 runThroughputTest(output, refreshNsec, 2.0f); in testThroughput()
132 runThroughputTest(output, refreshNsec, 4.0f); in testThroughput()
137 output.release(); in testThroughput()
148 private long runThroughputTest(InputSurface output, long frameTimeNsec, float mult) { in runThroughputTest() argument
[all …]
/cts/hostsidetests/edi/src/android/edi/cts/
DDynamicPartitionsDeviceInfo.java56 String output = commandResult.getStdout(); in collectDeviceInfo() local
57 if (output == null) output = ""; in collectDeviceInfo()
58 output = output.trim(); in collectDeviceInfo()
59 if (output.isEmpty()) { in collectDeviceInfo()
64 if (!isJsonString(output)) { in collectDeviceInfo()
65 CLog.e("lpdump --json does not generate a valid JSON string: %s", output); in collectDeviceInfo()
70 writer.write(output); in collectDeviceInfo()
/cts/suite/audio_quality/test_description/
Dprocessing_main.py40 output = []
42 output.append(RESULT_OK)
43 output.append(inputData)
44 output.append(inputTypes)
45 return output
48 output = []
49 output.append(RESULT_OK)
56 output.append(outputData)
57 output.append(outputTypes)
58 return output
[all …]
/cts/libs/vogar-expect/src/vogar/expect/
DOutcome.java35 private final String output; field in Outcome
41 this.output = sanitizeOutputLines(outputLines); in Outcome()
48 this.output = sanitizeOutputLine(outputLine); in Outcome()
55 this.output = sanitizeOutputLine(outputLine); in Outcome()
62 this.output = sanitizeOutputLines(throwableToLines(throwable)); in Outcome()
91 return output; in getOutput()
95 return Arrays.asList(output.split("\n")); in getOutputLines()
156 && output.equals(outcome.output); in equals()
165 hashCode = 37 * hashCode + output.hashCode(); in hashCode()
170 return "Outcome[name=" + outcomeName + " output=" + output + "]"; in toString()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/differencevisualizers/
DPassFailVisualizer.java31 int[] output = new int[ideal.length]; in getDifferences() local
32 for (int y = 0; y < output.length; y++) { in getDifferences()
34 output[y] = Color.WHITE; in getDifferences()
36 output[y] = Color.RED; in getDifferences()
39 return output; in getDifferences()
/cts/tests/tests/uirendering/src/android/uirendering/cts/differencevisualizers/
DPassFailVisualizer.java31 int[] output = new int[ideal.length]; in getDifferences() local
32 for (int y = 0; y < output.length; y++) { in getDifferences()
34 output[y] = Color.WHITE; in getDifferences()
36 output[y] = Color.RED; in getDifferences()
39 return output; in getDifferences()
/cts/hostsidetests/backup/src/android/cts/backup/
DBackupPreparer.java144 String output = mDevice.executeShellCommand("bmgr list transports"); in hasBackupTransport() local
145 for (String t : output.split(" ")) { in hasBackupTransport()
152 transport + " not available. bmgr list transports: " + output, in hasBackupTransport()
185 String output = mDevice.executeShellCommand("bmgr enabled"); in enableBackup() local
187 Matcher matcher = pattern.matcher(output.trim()); in enableBackup()
191 throw new RuntimeException("non-parsable output setting bmgr enabled: " + output); in enableBackup()
200 String output = mDevice.executeShellCommand("bmgr transport " + transport); in setBackupTransport() local
202 Matcher matcher = pattern.matcher(output); in setBackupTransport()
206 throw new RuntimeException("non-parsable output setting bmgr transport: " + output); in setBackupTransport()
219 String output = receiver.getOutput(); in waitForBroadcastIdle() local
[all …]
/cts/hostsidetests/security/src/android/security/cts/
DFileSystemPermissionTest.java62 String output = mDevice.executeShellCommand(cmd); in getAllInsecureDevicesInDirAndSubdir() local
64 String [] found = output.length() > 0 ? output.split("\\s") : new String[0]; in getAllInsecureDevicesInDirAndSubdir()
94 String output = mDevice.executeShellCommand(command).trim(); in testDevHwRandomPermissions() local
95 if (!output.endsWith(" " + HW_RNG_DEVICE)) { in testDevHwRandomPermissions()
96 fail("Unexpected output from " + command + ": \"" + output + "\""); in testDevHwRandomPermissions()
98 String[] outputWords = output.split("\\s"); in testDevHwRandomPermissions()
106 output = mDevice.executeShellCommand(command).trim(); in testDevHwRandomPermissions()
110 output); in testDevHwRandomPermissions()
113 output = in testDevHwRandomPermissions()
122 if (output.trim().isEmpty()) { in testDevHwRandomPermissions()
[all …]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPackageSetInstallerTest.kt214 val output = device.executeShellCommand( in assertGrantState() constant
218 assertWithMessage(output).that(output.lines().size).isEqualTo(1) in assertGrantState()
222 assertThat(output).contains("granted=true") in assertGrantState()
223 assertThat(output).doesNotContain("RESTRICTION") in assertGrantState()
224 assertThat(output).doesNotContain("EXEMPT") in assertGrantState()
227 assertThat(output).contains("granted=true") in assertGrantState()
228 assertThat(output).contains("RESTRICTION_INSTALLER_EXEMPT") in assertGrantState()
231 assertThat(output).contains("granted=true") in assertGrantState()
232 assertThat(output).contains("APPLY_RESTRICTION") in assertGrantState()
233 assertThat(output).doesNotContain("EXEMPT") in assertGrantState()
[all …]
/cts/tests/tests/rscpp/librscpptest/
Drs_jni.cpp91 jbyte * output = (jbyte *) env->GetPrimitiveArrayCritical(outputByteArray, 0); in Java_android_cts_rscpp_RSBlurTest_blurTest() local
112 outputAlloc->copy2DRangeTo(0, 0, X, Y, output); in Java_android_cts_rscpp_RSBlurTest_blurTest()
115 env->ReleasePrimitiveArrayCritical(outputByteArray, output, 0); in Java_android_cts_rscpp_RSBlurTest_blurTest()
131 jbyte * output = (jbyte *) env->GetPrimitiveArrayCritical(outputByteArray, 0); in Java_android_cts_rscpp_RSConvolveTest_convolveTest() local
157 outputAlloc->copy2DRangeTo(0, 0, X, Y, output); in Java_android_cts_rscpp_RSConvolveTest_convolveTest()
160 env->ReleasePrimitiveArrayCritical(outputByteArray, output, 0); in Java_android_cts_rscpp_RSConvolveTest_convolveTest()
177 jbyte * output = (jbyte *) env->GetPrimitiveArrayCritical(outputByteArray, 0); in Java_android_cts_rscpp_RSLUTTest_lutTest() local
198 outputAlloc->copy2DRangeTo(0, 0, X, Y, output); in Java_android_cts_rscpp_RSLUTTest_lutTest()
201 env->ReleasePrimitiveArrayCritical(outputByteArray, output, 0); in Java_android_cts_rscpp_RSLUTTest_lutTest()
220 jbyte * output = (jbyte *) env->GetPrimitiveArrayCritical(outputByteArray, 0); in Java_android_cts_rscpp_RS3DLUTTest_lutTest() local
[all …]
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java107 final String output = getDevice().executeShellCommand(command); in createRestrictedProfile() local
108 CLog.d("Output for command " + command + ": " + output); in createRestrictedProfile()
110 if (output.startsWith("Success")) { in createRestrictedProfile()
112 return Integer.parseInt(output.substring(output.lastIndexOf(" ")).trim()); in createRestrictedProfile()
114 CLog.e("Failed to parse result: %s", output); in createRestrictedProfile()
117 CLog.e("Failed to create restricted profile: %s", output); in createRestrictedProfile()
130 final String output = getDevice().executeShellCommand(command); in createUser() local
131 CLog.d("Output for command " + command + ": " + output); in createUser()
133 if (output.startsWith("Success")) { in createUser()
135 return Integer.parseInt(output.substring(output.lastIndexOf(" ")).trim()); in createUser()
[all …]
/cts/hostsidetests/accounts/src/android/host/accounts/
DBaseMultiUserTest.java117 final String output = getDevice().executeShellCommand(command); in createUser() local
118 CLog.d("Output for command " + command + ": " + output); in createUser()
120 if (output.startsWith("Success")) { in createUser()
122 return Integer.parseInt(output.substring(output.lastIndexOf(" ")).trim()); in createUser()
124 CLog.e("Failed to parse result: %s", output); in createUser()
127 CLog.e("Failed to create user: %s", output); in createUser()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DRawConverter.java143 /*out*/float[] output) { in convertColorspaceTransform() argument
146 output[i * 3 + j] = xform.getElement(j, i).floatValue(); in convertColorspaceTransform()
424 Allocation output = Allocation.createFromBitmap(rs, argbOutput); in convertToSRGB() local
465 converterKernel.forEach_convert_RAW_To_ARGB(output); in convertToSRGB()
466 output.copyTo(argbOutput); // Force RS sync with bitmap (does not do an extra copy). in convertToSRGB()
730 private static void map(float[] matrix, float[] input, /*out*/float[] output) { in map() argument
731 output[0] = input[0] * matrix[0] + input[1] * matrix[1] + input[2] * matrix[2]; in map()
732 output[1] = input[0] * matrix[3] + input[1] * matrix[4] + input[2] * matrix[5]; in map()
733 output[2] = input[0] * matrix[6] + input[1] * matrix[7] + input[2] * matrix[8]; in map()
742 private static void multiply(float[] a, float[] b, /*out*/float[] output) { in multiply() argument
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DBlockCipherTestBase.java664 byte[] output = update(new byte[getBlockSize() - 4]); in assertUpdateDoesNotProduceOutputWhenInsufficientInput()
665 assertEquals(getBlockSize(), output.length); in assertUpdateDoesNotProduceOutputWhenInsufficientInput()
726 byte[] output = update(new byte[] {plaintext[plaintextIndex]}); in testKatEncryptOneByteAtATime()
727 assertEquals("plaintext index: " + plaintextIndex, 1, output.length); in testKatEncryptOneByteAtATime()
729 expectedCiphertext[plaintextIndex], output[0]); in testKatEncryptOneByteAtATime()
747 byte[] output = update(new byte[] {plaintext[plaintextIndex]}); in testKatEncryptOneByteAtATime()
756 output); in testKatEncryptOneByteAtATime()
759 assertEquals("plaintext index: " + plaintextIndex, null, output); in testKatEncryptOneByteAtATime()
761 if (output != null) { in testKatEncryptOneByteAtATime()
762 ciphertextIndex += output.length; in testKatEncryptOneByteAtATime()
[all …]
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java93 final String output = getDevice().executeShellCommand(command); in executeShellCommandWithLog() local
94 CLog.i(output); in executeShellCommandWithLog()
95 return output; in executeShellCommandWithLog()
177 final String output = getDevice().executeShellCommand(command); in createProfile() local
178 CLog.d("Output for command " + command + ": " + output); in createProfile()
180 if (output.startsWith("Success")) { in createProfile()
182 return Integer.parseInt(output.substring(output.lastIndexOf(" ")).trim()); in createProfile()
184 CLog.e("Failed to parse result: %s", output); in createProfile()
187 CLog.e("Failed to create user: %s", output); in createProfile()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPrivappPermissionsTest.java225 String output = SystemUtil.runShellCommand( in getPrivAppPermissions() local
228 if (output.startsWith("{") && output.endsWith("}")) { in getPrivAppPermissions()
229 String[] split = output.substring(1, output.length() - 1).split("\\s*,\\s*"); in getPrivAppPermissions()
236 String output = SystemUtil.runShellCommand( in getPrivAppDenyPermissions() local
239 if (output.startsWith("{") && output.endsWith("}")) { in getPrivAppDenyPermissions()
240 String[] split = output.substring(1, output.length() - 1).split("\\s*,\\s*"); in getPrivAppDenyPermissions()

1234567