Home
last modified time | relevance | path

Searched refs:durationInMsec (Results 1 – 16 of 16) sorted by relevance

/frameworks/wilhelm/tests/mimeUri/
DslesTestLoopUri.cpp218 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestLoopUri() local
219 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestLoopUri()
221 if (durationInMsec == SL_TIME_UNKNOWN) { in TestLoopUri()
225 durationInMsec); in TestLoopUri()
249 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestLoopUri()
251 if (durationInMsec == SL_TIME_UNKNOWN) { in TestLoopUri()
254 fprintf(stdout, "Content duration is %u ms (after prefetch completed)\n", durationInMsec); in TestLoopUri()
264 usleep( (REPETITIONS-1) * durationInMsec * 1100); in TestLoopUri()
269 usleep(durationInMsec * 1000); in TestLoopUri()
DslesTestPlayUri.cpp225 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestPlayUri() local
226 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri()
228 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayUri()
232 durationInMsec); in TestPlayUri()
264 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri()
266 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayUri()
269 fprintf(stdout, "Content duration is %u ms (after prefetch completed)\n", durationInMsec); in TestPlayUri()
296 usleep(durationInMsec * 1000); in TestPlayUri()
302 usleep((durationInMsec + 200) * 1000); in TestPlayUri()
DslesTestSlowDownUri.cpp269 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestSlowDownUri() local
270 res = (*playItf)->GetDuration(playItf, &durationInMsec); CheckErr(res); in TestSlowDownUri()
271 if (durationInMsec == SL_TIME_UNKNOWN) { in TestSlowDownUri()
275 durationInMsec); in TestSlowDownUri()
351 res = (*playItf)->GetDuration(playItf, &durationInMsec); CheckErr(res); in TestSlowDownUri()
352 if (durationInMsec == SL_TIME_UNKNOWN) { in TestSlowDownUri()
355 fprintf(stdout, "Content duration is %u ms (after prefetch completed)\n", durationInMsec); in TestSlowDownUri()
365 usleep( (REPETITIONS-1) * durationInMsec * 1100); in TestSlowDownUri()
369 usleep(durationInMsec * 1100); in TestSlowDownUri()
377 usleep(durationInMsec * 1000); in TestSlowDownUri()
DslesTestPlayStreamType.cpp178 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestStreamTypeConfiguration() local
179 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestStreamTypeConfiguration()
181 if (durationInMsec == SL_TIME_UNKNOWN) { in TestStreamTypeConfiguration()
182 durationInMsec = 5000; in TestStreamTypeConfiguration()
189 usleep((durationInMsec/2) * 1000); in TestStreamTypeConfiguration()
210 usleep((durationInMsec/2) * 1000); in TestStreamTypeConfiguration()
DslesTestPlayUri2.cpp218 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestPlayUri() local
219 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri()
221 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayUri()
224 fprintf(stdout, "Content duration of first URI is %u ms\n", durationInMsec); in TestPlayUri()
228 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayUri()
229 durationInMsec = 5000; /* arbitrary time when duration is unknown */ in TestPlayUri()
231 usleep((durationInMsec + 2000) * 1000); in TestPlayUri()
DslesTestGetPositionUri.cpp150 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestGetPositionUri() local
257 res = (*playItf)->GetDuration(playItf, &durationInMsec); CheckErr(res); in TestGetPositionUri()
258 if (durationInMsec == SL_TIME_UNKNOWN) { in TestGetPositionUri()
262 fprintf(stdout, "Content duration is %u ms (after prefetch completed)\n", durationInMsec); in TestGetPositionUri()
269 while ((counter*1000) < durationInMsec) { in TestGetPositionUri()
DslesTestManyPlayers.cpp292 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in CreatePlayer() local
293 res = (*playItfs[playerId])->GetDuration(playItfs[playerId], &durationInMsec); in CreatePlayer()
295 if (durationInMsec == SL_TIME_UNKNOWN) { in CreatePlayer()
298 fprintf(stdout, "Content duration is %u ms for player %d\n", durationInMsec, playerId); in CreatePlayer()
/frameworks/wilhelm/tests/
DmimeUri_test.cpp183 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestPlayUri() local
184 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri()
213 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayUri()
215 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayUri()
219 SLint32 durationDiffMsec = durationInMsec - MP3_DURATION; in TestPlayUri()
223 durationInMsec, MP3_DURATION); in TestPlayUri()
/frameworks/wilhelm/tests/examples/
DslesTestPlayFdPath.cpp194 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestPlayPathFromFD() local
195 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayPathFromFD()
197 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayPathFromFD()
198 durationInMsec = 5000; in TestPlayPathFromFD()
205 usleep(durationInMsec * 1000); in TestPlayPathFromFD()
DslesTestVirtualizerPath.cpp182 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestVirtualizerPathFromFD() local
183 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestVirtualizerPathFromFD()
185 if (durationInMsec == SL_TIME_UNKNOWN) { in TestVirtualizerPathFromFD()
186 durationInMsec = 5000; in TestVirtualizerPathFromFD()
215 for(unsigned int j=0 ; j<(durationInMsec/(1000*TIME_S_BETWEEN_VIRT_ON_OFF)) ; j++) { in TestVirtualizerPathFromFD()
DslesTestBassBoostPath.cpp181 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestBassBoostPathFromFD() local
182 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestBassBoostPathFromFD()
184 if (durationInMsec == SL_TIME_UNKNOWN) { in TestBassBoostPathFromFD()
185 durationInMsec = 5000; in TestBassBoostPathFromFD()
213 for(unsigned int j=0 ; j<(durationInMsec/(1000*TIME_S_BETWEEN_BB_ON_OFF)) ; j++) { in TestBassBoostPathFromFD()
DslesTestDecodeToBuffQueue.cpp218 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in DecPlayCallback()
219 SLresult result = (*pCntxt->playItf)->GetDuration(pCntxt->playItf, &durationInMsec); in DecPlayCallback()
221 if (durationInMsec == SL_TIME_UNKNOWN) { in DecPlayCallback()
225 durationInMsec); in DecPlayCallback()
449 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestDecToBuffQueue() local
450 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestDecToBuffQueue()
452 if (durationInMsec == SL_TIME_UNKNOWN) { in TestDecToBuffQueue()
455 fprintf(stdout, "Content duration is %ums\n", durationInMsec); in TestDecToBuffQueue()
DslesTestEqOutputPath.cpp190 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestEQPathFromFD() local
191 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestEQPathFromFD()
193 if (durationInMsec == SL_TIME_UNKNOWN) { in TestEQPathFromFD()
194 durationInMsec = 5000; in TestEQPathFromFD()
246 for(unsigned int j=0 ; j<(durationInMsec/(1000*TIME_S_BETWEEN_EQ_ON_OFF)) ; j++) { in TestEQPathFromFD()
DslesTestEqFdPath.cpp186 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestEQPathFromFD() local
187 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestEQPathFromFD()
189 if (durationInMsec == SL_TIME_UNKNOWN) { in TestEQPathFromFD()
190 durationInMsec = 5000; in TestEQPathFromFD()
242 for(unsigned int j=0 ; j<(durationInMsec/(1000*TIME_S_BETWEEN_EQ_ON_OFF)) ; j++) { in TestEQPathFromFD()
DslesTestSendToPresetReverb.cpp248 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestSendToPresetReverb() local
249 result = (*playItf)->GetDuration(playItf, &durationInMsec); in TestSendToPresetReverb()
251 if (durationInMsec == SL_TIME_UNKNOWN) { in TestSendToPresetReverb()
253 durationInMsec = 10000; in TestSendToPresetReverb()
255 printf("Duration is %.1f seconds\n", durationInMsec / 1000.0); in TestSendToPresetReverb()
/frameworks/wilhelm/tests/sandbox/streamSource/
DslesTestPlayStream.cpp271 SLmillisecond durationInMsec = SL_TIME_UNKNOWN; in TestPlayStream() local
272 res = (*playItf)->GetDuration(playItf, &durationInMsec); in TestPlayStream()
274 if (durationInMsec == SL_TIME_UNKNOWN) { in TestPlayStream()
278 durationInMsec); in TestPlayStream()