/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | MediaPlayerStressTest.java | 67 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 …]
|
D | MediaRecorderStressTest.java | 177 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/ |
D | PresentationSyncTest.java | 92 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/ |
D | playback_thd.py | 30 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
|
D | playback_sample.py | 26 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
|
D | recording_thd.py | 37 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
|
D | gen_random.py | 63 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
|
D | check_spectrum_playback.py | 70 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
|
D | check_spectrum.py | 82 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
|
D | example.py | 41 output = [] 60 output.append(RESULT_OK) 61 output.append(outputData) 62 output.append(outputTypes) 64 return output
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | BaseMultiUserTest.java | 90 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/ |
D | processing_main.py | 40 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/ |
D | DynamicPartitionsDeviceInfo.java | 56 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/ |
D | BackupPreparer.java | 115 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/ |
D | Outcome.java | 35 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/ |
D | FileSystemPermissionTest.java | 62 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/ |
D | rs_jni.cpp | 91 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/ |
D | PassFailVisualizer.java | 31 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/ |
D | PassFailVisualizer.java | 31 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/ |
D | RawConverter.java | 143 /*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/ |
D | BlockCipherTestBase.java | 664 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/ |
D | PackageSignatureTest.java | 139 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/ |
D | BaseShortcutManagerHostTest.java | 93 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/ |
D | PrivappPermissionsTest.java | 225 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/ |
D | ShellSubscriberTest.java | 80 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()
|