Home
last modified time | relevance | path

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

1234567891011

/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaPlayerStressTest.java63 private void writeTestOutput(String filename, Writer output) throws Exception{ in writeTestOutput() argument
64 output.write("File Name: " + filename); in writeTestOutput()
65 output.write(" Complete: " + CodecTest.mOnCompleteSuccess); in writeTestOutput()
66 output.write(" Error: " + CodecTest.mPlaybackError); in writeTestOutput()
67 output.write(" Unknown Info: " + CodecTest.mMediaInfoUnknownCount); in writeTestOutput()
68 output.write(" Track Lagging: " + CodecTest.mMediaInfoVideoTrackLaggingCount); in writeTestOutput()
69 output.write(" Bad Interleaving: " + CodecTest.mMediaInfoBadInterleavingCount); in writeTestOutput()
70 output.write(" Not Seekable: " + CodecTest.mMediaInfoNotSeekableCount); in writeTestOutput()
71 output.write(" Info Meta data update: " + CodecTest.mMediaInfoMetdataUpdateCount); in writeTestOutput()
72 output.write("\n"); in writeTestOutput()
[all …]
DMediaRecorderStressTest.java182 Writer output = new BufferedWriter(new FileWriter(stressOutFile, true)); in testStressCamera() local
183 output.write("Camera start preview stress:\n"); in testStressCamera()
184 output.write("Total number of loops:" + in testStressCamera()
188 output.write("No of loop: "); in testStressCamera()
212 output.write(" ," + i); in testStressCamera()
215 output.write("\n\n"); in testStressCamera()
216 output.close(); in testStressCamera()
226 Writer output = new BufferedWriter(new FileWriter(stressOutFile, true)); in testStressRecorder() local
232 output.write("No camera found. Skipping recorder stress test\n"); in testStressRecorder()
256 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.java97 InputSurface output = new InputSurface(holder.getSurface()); in testThroughput() local
98 mWidth = output.getWidth(); in testThroughput()
99 mHeight = output.getHeight(); in testThroughput()
101 output.makeCurrent(); in testThroughput()
106 long baseTimeNsec = runThroughputTest(output, 0L, -1.0f); in testThroughput()
135 runThroughputTest(output, refreshNsec, 1.0f); in testThroughput()
136 runThroughputTest(output, refreshNsec, 2.0f); in testThroughput()
137 runThroughputTest(output, refreshNsec, 4.0f); in testThroughput()
142 output.release(); in testThroughput()
153 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/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/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 throw new IllegalStateException("Failed to parse result: " + output); in createUser()
133 throw new IllegalStateException("Failed to create user: " + output); in createUser()
170 final String output = receiver.getOutput(); in waitForBroadcastIdle() local
171 if (!output.contains("All broadcast queues are idle!")) { in waitForBroadcastIdle()
172 CLog.e("Output from 'am wait-for-broadcast-idle': %s", output); in waitForBroadcastIdle()
/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/common/device-side/bedstead/nene/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()
77 String output = mDevice.executeShellCommand(command).trim(); in testDevHwRandomPermissions() local
78 if (!output.endsWith(" " + HW_RNG_DEVICE)) { in testDevHwRandomPermissions()
79 fail("Unexpected output from " + command + ": \"" + output + "\""); in testDevHwRandomPermissions()
81 String[] outputWords = output.split("\\s"); in testDevHwRandomPermissions()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandUserRestrictionTest.java89 String output = SystemUtil.runShellCommand( in hasUserRestriction() local
92 + ", output=" + output); in hasUserRestriction()
94 return output.contains("true"); in hasUserRestriction()
99 String output = SystemUtil.runShellCommand( in getUserAllRestrictions() local
101 Log.d(TAG, "getUserAllRestrictions for userId=" + userId + ", output=" + output); in getUserAllRestrictions()
102 int restrictionsPosition = output.indexOf("Bundle[{"); in getUserAllRestrictions()
103 if (restrictionsPosition >= 0 && output.endsWith("}]")) { in getUserAllRestrictions()
105 String[] split = output.substring(restrictionsPosition + 8, in getUserAllRestrictions()
106 output.length() - 2).split("\\s*,\\s*"); in getUserAllRestrictions()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DImageReaderArgs.java106 StringBuilder output = new StringBuilder(); in toString() local
107 output.append(String.format(Locale.getDefault(), in toString()
109 output.append(String.format(Locale.getDefault(), in toString()
111 output.append(String.format(Locale.getDefault(), in toString()
113 output.append(String.format(Locale.getDefault(), in toString()
115 output.append(String.format(Locale.getDefault(), in toString()
117 output.append(String.format(Locale.getDefault(), in toString()
119 return output.toString(); in toString()
/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/hostsidetests/backup/src/android/cts/backup/
DBackupPreparer.java145 String output = mDevice.executeShellCommand("bmgr list transports"); in hasBackupTransport() local
146 for (String t : output.split(" ")) { in hasBackupTransport()
153 transport + " not available. bmgr list transports: " + output, in hasBackupTransport()
186 String output = mDevice.executeShellCommand("bmgr enabled"); in enableBackup() local
188 Matcher matcher = pattern.matcher(output.trim()); in enableBackup()
192 throw new RuntimeException("non-parsable output setting bmgr enabled: " + output); in enableBackup()
201 String output = mDevice.executeShellCommand("bmgr transport " + transport); in setBackupTransport() local
203 Matcher matcher = pattern.matcher(output); in setBackupTransport()
207 throw new RuntimeException("non-parsable output setting bmgr transport: " + output); in setBackupTransport()
220 String output = receiver.getOutput(); in waitForBroadcastIdle() local
[all …]
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DDeviceIdleDeviceInfo.java29 final String output = SystemUtil.runShellCommand("cmd deviceidle enabled deep").trim(); in isDeviceIdleEnabled() local
30 return Integer.parseInt(output) != 0; in isDeviceIdleEnabled()
34 final String output = SystemUtil.runShellCommand("cmd deviceidle enabled light").trim(); in isDeviceLightIdleEnabled() local
35 return Integer.parseInt(output) != 0; in isDeviceLightIdleEnabled()
/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/provider/src/android/provider/cts/
DProviderTestUtils.java80 String output = executeShellCommand("bmgr transport " + transport, uiAutomation); in setBackupTransport() local
82 Matcher matcher = pattern.matcher(output); in setBackupTransport()
86 throw new Exception("non-parsable output setting bmgr transport: " + output); in setBackupTransport()
93 String output = executeShellCommand("bmgr enabled", uiAutomation); in setBackupEnabled() local
94 Matcher matcher = BMGR_ENABLED_PATTERN.matcher(output.trim()); in setBackupEnabled()
99 + " expected regex: " + BMGR_ENABLED_PATTERN + "\nactual: '" + output + "'"); in setBackupEnabled()
108 String output = executeShellCommand("bmgr list transports", uiAutomation); in hasBackupTransport() local
109 for (String t : output.split(" ")) { in hasBackupTransport()
/cts/apps/CameraITS/utils/
Dvideo_processing_utils.py157 output, _ = p.communicate()
160 decoded_output = output.decode('utf-8')
333 raise AssertionError(str(e.output)) from e
335 output = str(raw_output.decode('utf-8')).strip()
336 logging.debug('ffprobe command %s output: %s', ' '.join(cmd), output)
338 re.search(r'avg_frame_rate=*([0-9]+/[0-9]+)', output)
373 raise AssertionError(str(e.output)) from e
375 output = str(raw_output.decode('utf-8')).strip().split('\n')
378 for line in output:
418 raise AssertionError(str(e.output)) from e
[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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPollingCheck.java85 E output = supplier.get(); in runWaitAndReturnResult() local
86 if (condition.apply(output)) { in runWaitAndReturnResult()
87 return output; in runWaitAndReturnResult()
97 output = supplier.get(); in runWaitAndReturnResult()
98 if (condition.apply(output)) { in runWaitAndReturnResult()
99 return output; in runWaitAndReturnResult()
105 return output; in runWaitAndReturnResult()
/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()
161 CommandResult output = mDevice.executeShellV2Command(command); in setProfileOwnwer() local
162 if (!CommandStatus.SUCCESS.equals(output.getStatus())) { in setProfileOwnwer()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DShellCommandUtils.java235 String output = executeCommand(command, allowEmptyOutput, stdInBytes); in executeCommandAndValidateOutput() local
236 if (!outputSuccessChecker.apply(output)) { in executeCommandAndValidateOutput()
237 throw new AdbException("Command did not meet success criteria", command, output); in executeCommandAndValidateOutput()
239 return output; in executeCommandAndValidateOutput()
245 public static boolean startsWithSuccess(String output) { in startsWithSuccess() argument
246 return output.toUpperCase().startsWith("SUCCESS"); in startsWithSuccess()
252 public static boolean doesNotStartWithError(String output) { in doesNotStartWithError() argument
253 return !output.toUpperCase().startsWith("ERROR"); in doesNotStartWithError()
347 String output = ShellCommand.builder("su root echo hello") in isSuperUserAvailable() local
349 if (output.contains("hello")) { in isSuperUserAvailable()
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DDumpTest.java76 final String output = SystemUtil.runShellCommand("dumpsys input_method"); in test_dumpDoesNotContainEditorText() local
77 assertThat(output).contains("Input method client state"); in test_dumpDoesNotContainEditorText()
78 assertThat(output).contains("Input method service state"); in test_dumpDoesNotContainEditorText()
79 assertThat(output).doesNotContain(text); in test_dumpDoesNotContainEditorText()
80 assertThat(output).doesNotContain(extraKey); in test_dumpDoesNotContainEditorText()
81 assertThat(output).doesNotContain(extraValue); in test_dumpDoesNotContainEditorText()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/analyzers/
DTapLatencyAnalyzer.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/tests/car/src/android/car/cts/utils/
DDumpUtils.java42 String output = ShellUtils.runShellCommand( in executeDumpShellCommand() local
44 return parseDumpResult(serviceName, output); in executeDumpShellCommand()
47 private static ArrayMap<String, String> parseDumpResult(String serviceName, String output) { in parseDumpResult() argument
48 Scanner scanner = new Scanner(output); in parseDumpResult()

1234567891011