Home
last modified time | relevance | path

Searched refs:stdout (Results 1 – 25 of 102) sorted by relevance

12345

/frameworks/base/tools/bit/
Dprint.cpp37 if (isatty(fileno(stdout))) { in init_print()
65 vfprintf(stdout, format, args); in print_status()
74 fputs(g_escapeBold, stdout); in print_command()
76 fputs(it->first.c_str(), stdout); in print_command()
77 fputc('=', stdout); in print_command()
78 fputs(escape_for_commandline(it->second.c_str()).c_str(), stdout); in print_command()
79 putc(' ', stdout); in print_command()
81 fputs(command.prog.c_str(), stdout); in print_command()
83 putc(' ', stdout); in print_command()
84 fputs(escape_for_commandline(it->c_str()).c_str(), stdout); in print_command()
[all …]
/frameworks/wilhelm/tests/mimeUri/
DslesTestPlayUri.cpp84 fprintf(stdout, "PrefetchEventCallback: Error while prefetching data, exiting\n"); in PrefetchEventCallback()
88 fprintf(stdout, "PrefetchEventCallback: Buffer fill level is = %d\n", level); in PrefetchEventCallback()
91 fprintf(stdout, "PrefetchEventCallback: Prefetch Status is = %u\n", status); in PrefetchEventCallback()
104 fprintf(stdout, "SL_PLAYEVENT_HEADATEND reached\n"); in PlayEventCallback()
111 fprintf(stdout, "SL_PLAYEVENT_HEADATNEWPOS current position=%ums\n", pMsec); in PlayEventCallback()
117 fprintf(stdout, "SL_PLAYEVENT_HEADATMARKER current position=%ums\n", pMsec); in PlayEventCallback()
193 fprintf(stdout, "URI example: after Realize\n"); in TestPlayUri()
229 fprintf(stdout, "Content duration is unknown (before starting to prefetch)\n"); in TestPlayUri()
231 fprintf(stdout, "Content duration is %u ms (before starting to prefetch)\n", in TestPlayUri()
241 fprintf(stdout, "Before set to PAUSED\n"); in TestPlayUri()
[all …]
DslesTest_playStates.cpp38 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc()
128 fprintf(stdout, "URI example: after Realize\n"); in TestPlayUri()
141 fprintf(stdout, "Player configured\n"); in TestPlayUri()
160 fprintf(stdout, "----- Playing\n"); in TestPlayUri()
166 fprintf(stdout, "----- Pausing (1s)\n"); in TestPlayUri()
172 fprintf(stdout, "----- Playing (2s, should have resumed where it paused)\n"); in TestPlayUri()
178 fprintf(stdout, "----- Stopping\n"); in TestPlayUri()
183 fprintf(stdout, "----- Playing (2s, should have started from the beginning\n"); in TestPlayUri()
189 fprintf(stdout, "----- Stopping\n"); in TestPlayUri()
206 fprintf(stdout, "OpenSL ES test %s: exercises SLPlayItf, SLVolumeItf, SLMuteSoloItf\n", in main()
[all …]
DslesTestSlowDownUri.cpp67 fprintf(stdout, "PlayEventCallback event = "); in PlayEventCallback()
69 fprintf(stdout, "SL_PLAYEVENT_HEADATEND \n"); in PlayEventCallback()
78 fprintf(stdout, "old rate = %d, minRate=%d, maxRate=%d\n", rate, minRate, maxRate); in PlayEventCallback()
83 fprintf(stdout, "new rate = %d\n", rate); in PlayEventCallback()
92 fprintf(stdout, "SL_PLAYEVENT_HEADATMARKER "); in PlayEventCallback()
95 fprintf(stdout, "SL_PLAYEVENT_HEADATNEWPOS "); in PlayEventCallback()
98 fprintf(stdout, "SL_PLAYEVENT_HEADMOVING "); in PlayEventCallback()
101 fprintf(stdout, "SL_PLAYEVENT_HEADSTALLED"); in PlayEventCallback()
103 fprintf(stdout, "\n"); in PlayEventCallback()
120 fprintf(stdout, "\t\tPrefetchEventCallback: Buffer fill level is = %d\n", level); in PrefetchEventCallback()
[all …]
DslesTestPlayUri2.cpp32 fprintf(stdout, "%u error code encountered, exiting\n", result); in ExitOnError()
41 fprintf(stdout, "PlayEventCallback event = "); in PlayEventCallback()
43 fprintf(stdout, "SL_PLAYEVENT_HEADATEND "); in PlayEventCallback()
46 fprintf(stdout, "SL_PLAYEVENT_HEADATMARKER "); in PlayEventCallback()
49 fprintf(stdout, "SL_PLAYEVENT_HEADATNEWPOS "); in PlayEventCallback()
52 fprintf(stdout, "SL_PLAYEVENT_HEADMOVING "); in PlayEventCallback()
55 fprintf(stdout, "SL_PLAYEVENT_HEADSTALLED"); in PlayEventCallback()
57 fprintf(stdout, "\n"); in PlayEventCallback()
213 fprintf(stdout, "URI example: starting to play %s\n", path2); in TestPlayUri()
222 fprintf(stdout, "Content duration of first URI is unknown\n"); in TestPlayUri()
[all …]
DslesTestGetPositionUri.cpp75 fprintf(stdout, "PrefetchEventCallback: Error while prefetching data, exiting\n"); in PrefetchEventCallback()
80 fprintf(stdout, "PrefetchEventCallback: Buffer fill level is = %d\n", level); in PrefetchEventCallback()
83 fprintf(stdout, "PrefetchEventCallback: Prefetch Status is = %u\n", status); in PrefetchEventCallback()
98 fprintf(stdout, "SL_PLAYEVENT_HEADATEND reached\n"); in PlayEventCallback()
101 fprintf(stdout, "after getPosition in SL_PLAYEVENT_HEADATEND handler\n"); in PlayEventCallback()
105 fprintf(stdout, "position is %d at SL_PLAYEVENT_HEADATEND\n", posMsec); in PlayEventCallback()
114 fprintf(stdout, "SL_PLAYEVENT_HEADATNEWPOS current position=%ums\n", posMsec); in PlayEventCallback()
119 fprintf(stdout, "SL_PLAYEVENT_HEADATMARKER current position=%ums\n", posMsec); in PlayEventCallback()
200 fprintf(stdout, "URI example: after Realize\n"); in TestGetPositionUri()
237 fprintf(stdout, "Setting the player to PAUSED to cause it to prefetch the data\n"); in TestGetPositionUri()
[all …]
DslesTestManyPlayers.cpp85 fprintf(stdout, "PrefetchEventCallback: Error while prefetching data for player %d, " in PrefetchEventCallback()
90 fprintf(stdout, "PrefetchEventCallback: Buffer fill level is = %d for player %d\n", in PrefetchEventCallback()
94 fprintf(stdout, "PrefetchEventCallback: Prefetch Status is = %u for player %d\n", in PrefetchEventCallback()
110 fprintf(stdout, "SL_PLAYEVENT_HEADATEND reached for player %d\n", *pPlayerId); in PlayEventCallback()
117 fprintf(stdout, "SL_PLAYEVENT_HEADATNEWPOS current position=%ums for player %d\n", in PlayEventCallback()
124 fprintf(stdout, "SL_PLAYEVENT_HEADATMARKER current position=%ums for player %d\n", in PlayEventCallback()
187 fprintf(stdout, "TestSetup(%s) completed\n", path); in TestSetup()
215 fprintf(stdout, "CreateAudioPlayer for player %d failed\n", playerId); in CreatePlayer()
225 fprintf(stdout, "Realize for player %d failed\n", playerId); in CreatePlayer()
271 fprintf(stdout, "Setting player %d to PAUSED\n", playerId); in CreatePlayer()
[all …]
DslesTestLoopUri.cpp75 fprintf(stdout, "\t\tPrefetchEventCallback: Buffer fill level is = %d\n", level); in PrefetchEventCallback()
78 fprintf(stdout, "\t\tPrefetchEventCallback: Prefetch Status is = %u\n", status); in PrefetchEventCallback()
83 fprintf(stdout, "\t\tPrefetchEventCallback: Error while prefetching data, exiting\n"); in PrefetchEventCallback()
191 fprintf(stdout, "URI example: after Realize\n"); in TestLoopUri()
222 fprintf(stdout, "Content duration is unknown (before starting to prefetch)\n"); in TestLoopUri()
224 fprintf(stdout, "Content duration is %u ms (before starting to prefetch)\n", in TestLoopUri()
252 fprintf(stdout, "Content duration is unknown (after prefetch completed)\n"); in TestLoopUri()
254 fprintf(stdout, "Content duration is %u ms (after prefetch completed)\n", durationInMsec); in TestLoopUri()
258 fprintf(stdout, "starting to play\n"); in TestLoopUri()
267 fprintf(stdout, "As of now, stopped looping (sound shouldn't repeat from now on)\n"); in TestLoopUri()
[all …]
DslesTestPlayStreamType.cpp39 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc()
151 fprintf(stdout, "URI example: after Realize\n"); in TestStreamTypeConfiguration()
160 fprintf(stdout, "Player configured\n"); in TestStreamTypeConfiguration()
213 fprintf(stdout, "Stopping playback\n"); in TestStreamTypeConfiguration()
240 fprintf(stdout, "OpenSL ES test %s: exercises SLPlayItf, SLAndroidConfigurationItf\n", in main()
242 fprintf(stdout, "and AudioPlayer with SLDataLocator_URI source / OutputMix sink\n"); in main()
243 fprintf(stdout, "Plays a sound on the specified android stream type\n"); in main()
246 fprintf(stdout, "Usage: \t%s url stream_type\n", argv[0]); in main()
247 fprintf(stdout, " where stream_type is one of the SL_ANDROID_STREAM_ constants.\n"); in main()
248 fprintf(stdout, "Example: \"%s /sdcard/my.mp3 5\" \n", argv[0]); in main()
[all …]
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test_fixture.cpp27 fprintf(stdout, "stdout\n"); in PrintDefaultOutput()
28 fflush(stdout); in PrintDefaultOutput()
79 fprintf(stdout, "%d\n", getpid()); in main()
80 fflush(stdout); in main()
83 fprintf(stdout, "%d\n", getuid()); in main()
84 fflush(stdout); in main()
91 fprintf(stdout, "stdout line1\n"); in main()
92 fflush(stdout); in main()
96 fprintf(stdout, "stdout line2\n"); in main()
97 fflush(stdout); in main()
/frameworks/wilhelm/tests/examples/
DslesTestSendToPresetReverb.cpp141 fprintf(stdout, "\nUsing preset "); in TestSendToPresetReverb()
144 fprintf(stdout, "SL_REVERBPRESET_NONE, don't expect to hear reverb\n"); in TestSendToPresetReverb()
146 case SL_REVERBPRESET_SMALLROOM: fprintf(stdout, "SL_REVERBPRESET_SMALLROOM\n"); break; in TestSendToPresetReverb()
147 case SL_REVERBPRESET_MEDIUMROOM: fprintf(stdout, "SL_REVERBPRESET_MEDIUMROOM\n"); break; in TestSendToPresetReverb()
148 case SL_REVERBPRESET_LARGEROOM: fprintf(stdout, "SL_REVERBPRESET_LARGEROOM\n"); break; in TestSendToPresetReverb()
149 case SL_REVERBPRESET_MEDIUMHALL: fprintf(stdout, "SL_REVERBPRESET_MEDIUMHALL\n"); break; in TestSendToPresetReverb()
150 case SL_REVERBPRESET_LARGEHALL: fprintf(stdout, "SL_REVERBPRESET_LARGEHALL\n"); break; in TestSendToPresetReverb()
151 case SL_REVERBPRESET_PLATE: fprintf(stdout, "SL_REVERBPRESET_PLATE\n"); break; in TestSendToPresetReverb()
153 fprintf(stdout, "unknown, use at your own risk\n"); break; in TestSendToPresetReverb()
206 fprintf(stdout, "URI example: after Realize\n"); in TestSendToPresetReverb()
[all …]
DslesTestVirtualizerPath.cpp152 fprintf(stdout, "URI example: after Realize\n"); in TestVirtualizerPathFromFD()
164 fprintf(stdout, "Player configured\n"); in TestVirtualizerPathFromFD()
190 fprintf(stdout, "Starting to play\n"); in TestVirtualizerPathFromFD()
199 fprintf(stdout, "Virtualizer strength is not supported on this platform. Too bad!\n"); in TestVirtualizerPathFromFD()
201 fprintf(stdout, "Virtualizer strength is supported, setting strength to %d\n", in TestVirtualizerPathFromFD()
210 fprintf(stdout, "Rounded strength of virt = %d\n", strength); in TestVirtualizerPathFromFD()
225 fprintf(stdout, "Virtualizer on\n"); in TestVirtualizerPathFromFD()
227 fprintf(stdout, "Virtualizer off\n"); in TestVirtualizerPathFromFD()
234 fprintf(stdout, "Stopping playback\n"); in TestVirtualizerPathFromFD()
256 fprintf(stdout, "OpenSL ES test %s: exercises SLVirtualizerItf ", programName); in main()
[all …]
DslesTestBassBoostPath.cpp151 fprintf(stdout, "URI example: after Realize\n"); in TestBassBoostPathFromFD()
163 fprintf(stdout, "Player configured\n"); in TestBassBoostPathFromFD()
189 fprintf(stdout, "Starting to play\n"); in TestBassBoostPathFromFD()
198 fprintf(stdout, "BassBoost strength is not supported on this platform. Too bad!\n"); in TestBassBoostPathFromFD()
200 fprintf(stdout, "BassBoost strength is supported, setting strength to %d\n", boostStrength); in TestBassBoostPathFromFD()
208 fprintf(stdout, "Rounded strength of boost = %d\n", strength); in TestBassBoostPathFromFD()
223 fprintf(stdout, "BassBoost on\n"); in TestBassBoostPathFromFD()
225 fprintf(stdout, "BassBoost off\n"); in TestBassBoostPathFromFD()
232 fprintf(stdout, "Stopping playback\n"); in TestBassBoostPathFromFD()
254 fprintf(stdout, "OpenSL ES test %s: exercises SLBassBoostItf ", programName); in main()
[all …]
DslesTestDecodeToBuffQueue.cpp139 fprintf(stdout, "PrefetchEventCallback: Error while prefetching data, exiting\n"); in PrefetchEventCallback()
157 fprintf(stdout, "SL_PLAYEVENT_HEADATEND current position=%u ms\n", msec); in DecProgressCallback()
162 fprintf(stdout, "SL_PLAYEVENT_HEADATNEWPOS current position=%u ms\n", msec); in DecProgressCallback()
166 fprintf(stdout, "SL_PLAYEVENT_HEADATMARKER current position=%u ms\n", msec); in DecProgressCallback()
189 fprintf(stdout, "Error writing to output file, signaling EOS\n"); in DecPlayCallback()
222 fprintf(stdout, "Content duration is unknown (in dec callback)\n"); in DecPlayCallback()
224 fprintf(stdout, "Content duration is %ums (in dec callback)\n", in DecPlayCallback()
235 fprintf(stdout, "Content position is unknown (in dec callback)\n"); in DecPlayCallback()
237 fprintf(stdout, "Content position is %ums (in dec callback)\n", in DecPlayCallback()
252 fprintf(stdout, "sample rate = %dHz, ", *((SLuint32*)pcmMetaData->data)); in DecPlayCallback()
[all …]
DslesTestEqOutputPath.cpp163 fprintf(stdout, "URI example: after Realize\n"); in TestEQPathFromFD()
172 fprintf(stdout, "Player configured\n"); in TestEQPathFromFD()
198 fprintf(stdout, "Starting to play\n"); in TestEQPathFromFD()
218 fprintf(stdout, "Using preset %d\n", preset); in TestEQPathFromFD()
225 fprintf(stdout, "Band level range = %dmB to %dmB\n", minLevel, maxLevel); in TestEQPathFromFD()
241 fprintf(stdout, "Band %d level = %dmB\n", b, level); in TestEQPathFromFD()
256 fprintf(stdout, "EQ on\n"); in TestEQPathFromFD()
258 fprintf(stdout, "EQ off\n"); in TestEQPathFromFD()
265 fprintf(stdout, "Stopping playback\n"); in TestEQPathFromFD()
287 fprintf(stdout, "OpenSL ES test %s: exercises SLEqualizerItf ", programName); in main()
[all …]
DslesTestEqFdPath.cpp156 fprintf(stdout, "URI example: after Realize\n"); in TestEQPathFromFD()
168 fprintf(stdout, "Player configured\n"); in TestEQPathFromFD()
194 fprintf(stdout, "Starting to play\n"); in TestEQPathFromFD()
214 fprintf(stdout, "Using preset %d\n", preset); in TestEQPathFromFD()
221 fprintf(stdout, "Band level range = %dmB to %dmB\n", minLevel, maxLevel); in TestEQPathFromFD()
237 fprintf(stdout, "Band %d level = %dmB\n", b, level); in TestEQPathFromFD()
252 fprintf(stdout, "EQ on\n"); in TestEQPathFromFD()
254 fprintf(stdout, "EQ off\n"); in TestEQPathFromFD()
261 fprintf(stdout, "Stopping playback\n"); in TestEQPathFromFD()
283 fprintf(stdout, "OpenSL ES test %s: exercises SLEqualizerItf ", programName); in main()
[all …]
DslesTestPlayFdPath.cpp43 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc()
63 fprintf(stdout, "PrefetchEventCallback: Error while prefetching data, exiting\n"); in PrefetchEventCallback()
157 fprintf(stdout, "URI example: after Realize\n"); in TestPlayPathFromFD()
172 fprintf(stdout, "Player configured\n"); in TestPlayPathFromFD()
208 fprintf(stdout, "Stopping playback\n"); in TestPlayPathFromFD()
227 fprintf(stdout, "OpenSL ES test %s: exercises SLPlayItf ", argv[0]); in main()
228 fprintf(stdout, "and AudioPlayer with SLDataLocator_AndroidFD source / OutputMix sink\n"); in main()
229 fprintf(stdout, "Plays the sound file designated by the given path, "); in main()
230 fprintf(stdout, "starting at the specified offset, and using the specified length.\n"); in main()
231 fprintf(stdout, "Omit the length of the file for it to be computed by the system.\n"); in main()
[all …]
DxaVideoDecoderCapabilities.cpp253 fprintf(stdout, "Found %d video decoders\n", numDecoders); in TestVideoDecoderCapabilities()
262 fprintf(stdout, "Decoders:\n"); in TestVideoDecoderCapabilities()
264 fprintf(stdout, "decoder %d is %s\n", i, videoCodecIdToString(decoderIds[i])); in TestVideoDecoderCapabilities()
274 fprintf(stdout, "decoder %s has %d profile/level combinations:\n\t", in TestVideoDecoderCapabilities()
284 fprintf(stdout, "%u/%u ", profile, level); in TestVideoDecoderCapabilities()
289 fprintf(stdout, "\n"); in TestVideoDecoderCapabilities()
303 fprintf(stdout, "OpenMAX AL test %s: exercises SLAudioDecoderCapabiltiesItf ", argv[0]); in main()
304 fprintf(stdout, "and displays the list of supported video decoders, and for each, lists the "); in main()
305 fprintf(stdout, "profile / levels combinations, that map to the constants defined in "); in main()
306 fprintf(stdout, "\"XA_VIDEOPROFILE and XA_VIDEOLEVEL\" section of the specification\n\n"); in main()
/frameworks/base/libs/androidfw/
DPosixUtils.cpp53 int stdout[2]; // stdout[0] read, stdout[1] write in ExecuteBinary() local
54 if (pipe(stdout) != 0) { in ExecuteBinary()
62 close(stdout[0]); in ExecuteBinary()
63 close(stdout[1]); in ExecuteBinary()
91 close(stdout[0]); in ExecuteBinary()
92 if (dup2(stdout[1], STDOUT_FILENO) == -1) { in ExecuteBinary()
104 close(stdout[1]); in ExecuteBinary()
113 const auto out = ReadFile(stdout[0]); in ExecuteBinary()
114 result->stdout = out ? *out : ""; in ExecuteBinary()
115 close(stdout[0]); in ExecuteBinary()
/frameworks/wilhelm/tests/listening/
DslesTest_playMuteSolo.cpp46 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc()
128 fprintf(stdout, "channel 0: playing, channel 1: muted\n"); in PlayEventCallback()
130 fprintf(stdout, "channel 0: muted, channel 1: playing\n"); in PlayEventCallback()
148 fprintf(stdout, "channel 0: normal, channel 1: soloed\n"); in PlayEventCallback()
150 fprintf(stdout, "channel 0: soloed, channel 1: normal\n"); in PlayEventCallback()
244 fprintf(stdout, "URI example: after Realize\n"); in TestPlayUri()
303 fprintf(stdout, "Player configured\n"); in TestPlayUri()
335 fprintf(stdout, "Content has %d channel(s)\n", numChannels); in TestPlayUri()
338 fprintf(stdout, "SLMuteSolotItf only works one content with more than one channel. Bye\n"); in TestPlayUri()
350 fprintf(stdout, "\nTesting mute functionality:\n"); in TestPlayUri()
[all …]
/frameworks/wilhelm/tests/sandbox/streamSource/
DslesTestPlayStream.cpp126 fprintf(stdout, "rendering will resume at 15s mark"); in AndroidBufferQueueCallback()
139 fprintf(stdout, "item key=0x%lx size=%lu data=0x%lx\n", in AndroidBufferQueueCallback()
147 fprintf(stdout, "Successfully detected my discontinuity buffer having been consumed\n"); in AndroidBufferQueueCallback()
252 fprintf(stdout, "URI example: after Realize\n"); in TestPlayStream()
275 fprintf(stdout, "Content duration is unknown (before starting to prefetch)\n"); in TestPlayStream()
277 fprintf(stdout, "Content duration is %u ms (before starting to prefetch)\n", in TestPlayStream()
288 fprintf(stdout, "Before set to PAUSED\n"); in TestPlayStream()
290 fprintf(stdout, "After set to PAUSED\n"); in TestPlayStream()
347 fprintf(stdout, "URI example: starting to play\n"); in TestPlayStream()
352 fprintf(stdout, "Letting playback go on for %d sec\n", playTimeInSec); in TestPlayStream()
[all …]
/frameworks/base/cmds/idmap2/tests/
DIdmap2BinaryTests.cpp130 ASSERT_NE(result->stdout.find("0x7f010000 -> 0x7f010000 integer/int1"), std::string::npos); in TEST_F()
131 ASSERT_NE(result->stdout.find("0x7f02000c -> 0x7f020000 string/str1"), std::string::npos); in TEST_F()
132 ASSERT_NE(result->stdout.find("0x7f02000e -> 0x7f020001 string/str3"), std::string::npos); in TEST_F()
133 ASSERT_NE(result->stdout.find("0x7f02000f -> 0x7f020002 string/str4"), std::string::npos); in TEST_F()
143 ASSERT_NE(result->stdout.find("00000000: 504d4449 magic"), std::string::npos); in TEST_F()
144 ASSERT_NE(result->stdout.find("00000210: 007f target package id"), std::string::npos); in TEST_F()
189 ASSERT_EQ(result->stdout, expected.str()); in TEST_F()
226 ASSERT_EQ(result->stdout, expected.str()); in TEST_F()
245 ASSERT_EQ(result->stdout, expected.str()); in TEST_F()
262 ASSERT_EQ(result->stdout, ""); in TEST_F()
[all …]
/frameworks/native/opengl/tests/finish/
Dfinish.cpp94 fflush(stdout); in main()
112 fflush(stdout); in main()
126 fflush(stdout); in main()
141 fflush(stdout); in main()
156 fflush(stdout); in main()
173 fflush(stdout); in main()
205 fflush(stdout); in main()
221 fflush(stdout); in main()
/frameworks/base/startop/scripts/app_startup/
Dquery_compiler_filter_test.py50 old_stdout = sys.stdout
53 sys.stdout = new_stdout
59 sys.stdout = old_stdout
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DShellHelper.java53 StringBuilder stdout = new StringBuilder(); in runShellCommandRaw() local
55 stdout.append(new String(buf, 0, bytesRead)); in runShellCommandRaw()
57 String result = stdout.toString(); in runShellCommandRaw()

12345