Home
last modified time | relevance | path

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

123456789

/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.java179 Writer output = new BufferedWriter(new FileWriter(stressOutFile, true)); in testStressCamera() local
180 output.write("Camera start preview stress:\n"); in testStressCamera()
181 output.write("Total number of loops:" + in testStressCamera()
185 output.write("No of loop: "); in testStressCamera()
209 output.write(" ," + i); in testStressCamera()
212 output.write("\n\n"); in testStressCamera()
213 output.close(); in testStressCamera()
223 Writer output = new BufferedWriter(new FileWriter(stressOutFile, true)); in testStressRecorder() local
229 output.write("No camera found. Skipping recorder stress test\n"); in testStressRecorder()
253 output.write("H263 video record- reset after prepare Stress test\n"); in testStressRecorder()
[all …]
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DPresentationSyncTest.java95 InputSurface output = new InputSurface(holder.getSurface()); in testThroughput() local
96 mWidth = output.getWidth(); in testThroughput()
97 mHeight = output.getHeight(); in testThroughput()
99 output.makeCurrent(); in testThroughput()
104 long baseTimeNsec = runThroughputTest(output, 0L, -1.0f); in testThroughput()
133 runThroughputTest(output, refreshNsec, 1.0f); in testThroughput()
134 runThroughputTest(output, refreshNsec, 2.0f); in testThroughput()
135 runThroughputTest(output, refreshNsec, 4.0f); in testThroughput()
140 output.release(); in testThroughput()
151 private long runThroughputTest(InputSurface output, long frameTimeNsec, float mult) { in runThroughputTest() argument
[all …]
/cts/hostsidetests/edi/src/android/edi/cts/
DDynamicPartitionsDeviceInfo.java68 String output = commandResult.getStdout(); in collectDeviceInfo() local
69 if (output == null) output = ""; in collectDeviceInfo()
70 output = output.trim(); in collectDeviceInfo()
71 if (output.isEmpty()) { in collectDeviceInfo()
76 if (!isJsonString(output)) { in collectDeviceInfo()
77 CLog.e("lpdump --json does not generate a valid JSON string: %s", output); in collectDeviceInfo()
82 writer.write(output); in collectDeviceInfo()
/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/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/accounts/src/android/host/accounts/
DBaseMultiUserTest.java122 final String output = getDevice().executeShellCommand(command); in createUser() local
123 CLog.d("Output for command " + command + ": " + output); in createUser()
125 if (output.startsWith("Success")) { in createUser()
127 return Integer.parseInt(output.substring(output.lastIndexOf(" ")).trim()); in createUser()
129 CLog.e("Failed to parse result: %s", output); in createUser()
132 CLog.e("Failed to create user: %s", output); in createUser()
171 final String output = receiver.getOutput(); in waitForBroadcastIdle() local
172 if (!output.contains("All broadcast queues are idle!")) { in waitForBroadcastIdle()
173 CLog.e("Output from 'am wait-for-broadcast-idle': %s", output); in waitForBroadcastIdle()
/cts/common/device-side/bedstead/nene/common/src/main/java/com/android/bedstead/nene/exceptions/
DAdbException.java30 public AdbException(String message, String command, String output) { in AdbException() argument
31 this(message, command, output, /* err= */ (String) null); in AdbException()
34 public AdbException(String message, String command, String output, String err) { in AdbException() argument
40 this.mOutput = output; in AdbException()
48 public AdbException(String message, String command, String output, Throwable cause) { in AdbException() argument
54 this.mOutput = output; in AdbException()
62 public String output() { in output() method in AdbException
/cts/hostsidetests/security/src/android/security/cts/
DFileSystemPermissionTest.java46 String output = mDevice.executeShellCommand(cmd); in getAllInsecureDevicesInDirAndSubdir() local
48 String [] found = output.length() > 0 ? output.split("\\s") : new String[0]; in getAllInsecureDevicesInDirAndSubdir()
86 String output = mDevice.executeShellCommand(command).trim(); in testDevHwRandomPermissions() local
87 if (!output.endsWith(" " + HW_RNG_DEVICE)) { in testDevHwRandomPermissions()
88 fail("Unexpected output from " + command + ": \"" + output + "\""); in testDevHwRandomPermissions()
90 String[] outputWords = output.split("\\s"); in testDevHwRandomPermissions()
/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/multiuser/src/android/host/multiuser/
DSetUsersRestrictionsTest.java41 final String output = getDevice().executeShellCommand(setRestriction + "1"); in testCantSetUserRestriction() local
42 final boolean isErrorOutput = output.contains("SecurityException") in testCantSetUserRestriction()
43 && output.contains("You need MANAGE_USERS permission"); in testCantSetUserRestriction()
45 + "command output: %s", output).that(isErrorOutput).isTrue(); in testCantSetUserRestriction()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPollingCheck.java81 E output = supplier.get(); in runWaitAndReturnResult() local
82 if (condition.apply(output)) { in runWaitAndReturnResult()
83 return output; in runWaitAndReturnResult()
93 output = supplier.get(); in runWaitAndReturnResult()
94 if (condition.apply(output)) { in runWaitAndReturnResult()
95 return output; in runWaitAndReturnResult()
101 return output; in runWaitAndReturnResult()
/cts/hostsidetests/packagemanager/packagesetting/src/com/android/tests/packagesetting/host/
DPackageSettingTest.java113 String output = getDevice().executeShellCommand("pm create-user SecondUser"); in createAndStartSecondUser() local
114 Assert.assertTrue(output.startsWith("Success")); in createAndStartSecondUser()
115 int userId = Integer.parseInt(output.substring(output.lastIndexOf(" ")).trim()); in createAndStartSecondUser()
116 output = getDevice().executeShellCommand("am start-user -w " + userId); in createAndStartSecondUser()
117 Assert.assertFalse(output.startsWith("Error")); in createAndStartSecondUser()
118 output = getDevice().executeShellCommand("am get-started-user-state " + userId); in createAndStartSecondUser()
119 Assert.assertTrue(output.contains("RUNNING_UNLOCKED")); in createAndStartSecondUser()
129 final String output = getDevice().executeShellCommand( in installPackageOnExistingUser() local
132 output); in installPackageOnExistingUser()
/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()
278 final String output = getDevice().executeShellCommand(command); in runCommand() local
[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/webkit/src/com/android/cts/webkit/
DWebViewHostSideMultipleProfileTest.java112 String output = mDevice.installPackageForUser(file, true, false, userId, "--dont-kill"); in installTestApkForUser() local
113 if (output != null) { in installTestApkForUser()
115 Assert.fail("Failed to install test apk " + output); in installTestApkForUser()
130 CommandResult output = mDevice.executeShellV2Command(command); in createUser() local
131 if (CommandStatus.SUCCESS.equals(output.getStatus())) { in createUser()
133 String[] tokens = output.getStdout().split("\\s+"); in createUser()
139 throw new IllegalStateException(String.format("Failed to create user: %s", output)); in createUser()
159 CommandResult output = mDevice.executeShellV2Command(command); in setProfileOwnwer() local
160 if (!CommandStatus.SUCCESS.equals(output.getStatus())) { in setProfileOwnwer()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DTapLatencyAnalyser.java110 float output = previous * mDroop; in fillPeakBuffer() local
111 if (input > output) { in fillPeakBuffer()
112 output = input; in fillPeakBuffer()
114 previous = output; in fillPeakBuffer()
115 peakBuffer[i] = output; in fillPeakBuffer()
/cts/tests/AlarmManager/util/src/android/alarmmanager/util/
DUtils.java49 + packageName, output -> output.contains("Enabled")); in enableChange()
56 + sContext.getOpPackageName(), output -> output.contains("Enabled")); in enableChangeForSelf()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPackageSetInstallerTest.kt214 val output = getPermissionString(permission) in assertGrantState() constant
218 assertThat(output).contains("granted=true") in assertGrantState()
219 assertThat(output).doesNotContain("RESTRICTION") in assertGrantState()
220 assertThat(output).doesNotContain("EXEMPT") in assertGrantState()
223 assertThat(output).contains("granted=true") in assertGrantState()
224 assertThat(output).contains("RESTRICTION_INSTALLER_EXEMPT") in assertGrantState()
227 assertThat(output).contains("granted=true") in assertGrantState()
228 assertThat(output).contains("APPLY_RESTRICTION") in assertGrantState()
229 assertThat(output).doesNotContain("EXEMPT") in assertGrantState()
232 assertThat(output).contains("granted=false") in assertGrantState()
/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/apps/CtsVerifier/jni/audio_loopback/analyzer/
DRoundedManchesterEncoder.h75 float output = mCurrentSamples[mCursor]; in nextFloat() local
76 if (getCurrentBit()) output = -output; in nextFloat()
77 return output; in nextFloat()
/cts/tests/tests/keystore/src/android/keystore/cts/
DBlockCipherTestBase.java722 byte[] output = update(new byte[getBlockSize() - 4]); in assertUpdateDoesNotProduceOutputWhenInsufficientInput()
725 assertEquals(getBlockSize(), output.length); in assertUpdateDoesNotProduceOutputWhenInsufficientInput()
727 if (isStrongbox() && output == null) { in assertUpdateDoesNotProduceOutputWhenInsufficientInput()
805 byte[] output = update(new byte[] {plaintext[plaintextIndex]}); in testKatEncryptOneByteAtATime()
806 if (output != null) { in testKatEncryptOneByteAtATime()
807 actualCiphertext.write(output); in testKatEncryptOneByteAtATime()
812 assertEquals("plaintext index: " + plaintextIndex, 1, output.length); in testKatEncryptOneByteAtATime()
814 expectedCiphertext[plaintextIndex], output[0]); in testKatEncryptOneByteAtATime()
844 byte[] output = update(new byte[] {plaintext[plaintextIndex]}); in testKatEncryptOneByteAtATime()
865 output); in testKatEncryptOneByteAtATime()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DPackageSignatureTest.java168 ByteArrayOutputStream output = new ByteArrayOutputStream(); in getSignature() local
174 output.write(buffer, 0, numBytes); in getSignature()
176 return new Signature(output.toByteArray()); in getSignature()
179 output.close(); in getSignature()
207 FileOutputStream output = null; in writeSignature() local
209 output = new FileOutputStream(signatureFile); in writeSignature()
210 output.write(signatureBytes); in writeSignature()
212 if (output != null) { in writeSignature()
213 output.close(); in writeSignature()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DDatabaseTestUtils.java35 String output = getDbInfoOutput(); in waitForConnectionToClose() local
36 Log.d(TAG, "waitForConnectionToClose #" + i + ": " + output); in waitForConnectionToClose()
37 if (!output.contains("Connection #0:")) { in waitForConnectionToClose()

123456789