Home
last modified time | relevance | path

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

123456

/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/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/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
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
Dexample.py41 output = []
60 output.append(RESULT_OK)
61 output.append(outputData)
62 output.append(outputTypes)
64 return output
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java90 final String output = getDevice().executeShellCommand(command); in createRestrictedProfile() local
91 CLog.d("Output for command " + command + ": " + output); in createRestrictedProfile()
93 if (output.startsWith("Success")) { in createRestrictedProfile()
95 return Integer.parseInt(output.substring(output.lastIndexOf(" ")).trim()); in createRestrictedProfile()
97 CLog.e("Failed to parse result: %s", output); in createRestrictedProfile()
100 CLog.e("Failed to create restricted profile: %s", output); in createRestrictedProfile()
113 final String output = getDevice().executeShellCommand(command); in createUser() local
114 CLog.d("Output for command " + command + ": " + output); in createUser()
116 if (output.startsWith("Success")) { in createUser()
118 return Integer.parseInt(output.substring(output.lastIndexOf(" ")).trim()); in createUser()
[all …]
/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/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/hostsidetests/backup/src/android/cts/backup/
DBackupPreparer.java115 String output = mDevice.executeShellCommand("bmgr list transports"); in hasBackupTransport() local
116 for (String t : output.split(" ")) { in hasBackupTransport()
127 String output = mDevice.executeShellCommand("bmgr enabled"); in enableBackup() local
129 Matcher matcher = pattern.matcher(output.trim()); in enableBackup()
133 throw new RuntimeException("non-parsable output setting bmgr enabled: " + output); in enableBackup()
142 String output = mDevice.executeShellCommand("bmgr transport " + transport); in setBackupTransport() local
144 Matcher matcher = pattern.matcher(output); in setBackupTransport()
148 throw new RuntimeException("non-parsable output setting bmgr transport: " + output); in setBackupTransport()
157 String output = mDevice.executeShellCommand("dumpsys backup"); in waitForBackupInitialization() local
158 if (output.matches("(?s)" // DOTALL in waitForBackupInitialization()
[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/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/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/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/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/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/tests/tests/security/src/android/security/cts/
DPackageSignatureTest.java139 ByteArrayOutputStream output = new ByteArrayOutputStream(); in getSignature() local
145 output.write(buffer, 0, numBytes); in getSignature()
147 return new Signature(output.toByteArray()); in getSignature()
150 output.close(); in getSignature()
178 FileOutputStream output = null; in writeSignature() local
180 output = new FileOutputStream(signatureFile); in writeSignature()
181 output.write(signatureBytes); in writeSignature()
183 if (output != null) { in writeSignature()
184 output.close(); in writeSignature()
/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()
/cts/hostsidetests/statsd/src/android/cts/statsd/subscriber/
DShellSubscriberTest.java80 byte[] output = receiver.getOutput(); in testShellSubscription()
82 assertTrue(output.length > sizetBytes); in testShellSubscription()
86 while (output.length > i + sizetBytes) { in testShellSubscription()
89 len += ((int) output[i + j] & 0xffL) << (sizetBytes * j); in testShellSubscription()
91 LogUtil.CLog.d("received : " + output.length + " bytes, size : " + len); in testShellSubscription()
93 if (output.length < i + sizetBytes + len) { in testShellSubscription()
100 Arrays.copyOfRange(output, i + sizetBytes, i + sizetBytes + len)); in testShellSubscription()

123456