Lines Matching refs:isPass

39     bool isPass = (0 == AMediaExtractor_getTrackCount(extractor));  in nativeTestGetTrackCountBeforeSetDataSource()  local
40 if (!isPass) ALOGE("error: received valid trackCount before setDataSource"); in nativeTestGetTrackCountBeforeSetDataSource()
42 return static_cast<jboolean>(isPass); in nativeTestGetTrackCountBeforeSetDataSource()
47 bool isPass = (AMEDIA_OK != AMediaExtractor_selectTrack(extractor, 0)); in nativeTestSelectTrackBeforeSetDataSource() local
48 if (!isPass) ALOGE("error: selectTrack succeeds before setDataSource"); in nativeTestSelectTrackBeforeSetDataSource()
50 return static_cast<jboolean>(isPass); in nativeTestSelectTrackBeforeSetDataSource()
54 bool isPass = false; in nativeTestSelectTrackForInvalidIndex() local
61 isPass = true; in nativeTestSelectTrackForInvalidIndex()
70 return static_cast<jboolean>(isPass); in nativeTestSelectTrackForInvalidIndex()
74 bool isPass = false; in nativeTestIdempotentSelectTrack() local
79 isPass = AMediaExtractor_selectTrack(extractor, 0) == AMEDIA_OK; in nativeTestIdempotentSelectTrack()
80 isPass &= AMediaExtractor_selectTrack(extractor, 0) == AMEDIA_OK; in nativeTestIdempotentSelectTrack()
81 if (!isPass) ALOGE("error: multiple selection of same track has failed"); in nativeTestIdempotentSelectTrack()
86 return static_cast<jboolean>(isPass); in nativeTestIdempotentSelectTrack()
91 bool isPass = (AMEDIA_OK != AMediaExtractor_unselectTrack(extractor, 0)); in nativeTestUnselectTrackBeforeSetDataSource() local
92 if (!isPass) ALOGE("error: unselectTrack succeeds before setDataSource"); in nativeTestUnselectTrackBeforeSetDataSource()
94 return static_cast<jboolean>(isPass); in nativeTestUnselectTrackBeforeSetDataSource()
98 bool isPass = false; in nativeTestUnselectTrackForInvalidIndex() local
105 isPass = true; in nativeTestUnselectTrackForInvalidIndex()
114 return static_cast<jboolean>(isPass); in nativeTestUnselectTrackForInvalidIndex()
119 bool isPass = false; in nativeTestUnselectTrackForUnSelectedTrackIndex() local
124 isPass = (AMediaExtractor_unselectTrack(extractor, 0) == AMEDIA_OK); in nativeTestUnselectTrackForUnSelectedTrackIndex()
125 if (!isPass) ALOGE("error: un-selection of non-selected track has failed"); in nativeTestUnselectTrackForUnSelectedTrackIndex()
130 return static_cast<jboolean>(isPass); in nativeTestUnselectTrackForUnSelectedTrackIndex()
134 bool isPass = false; in nativeTestIdempotentUnselectTrack() local
139 isPass = AMediaExtractor_selectTrack(extractor, 0) == AMEDIA_OK; in nativeTestIdempotentUnselectTrack()
140 if (isPass) { in nativeTestIdempotentUnselectTrack()
141 isPass = AMediaExtractor_unselectTrack(extractor, 0) == AMEDIA_OK; in nativeTestIdempotentUnselectTrack()
142 isPass &= AMediaExtractor_unselectTrack(extractor, 0) == AMEDIA_OK; in nativeTestIdempotentUnselectTrack()
143 if (!isPass) ALOGE("error: multiple unselection of selected track has failed"); in nativeTestIdempotentUnselectTrack()
151 return static_cast<jboolean>(isPass); in nativeTestIdempotentUnselectTrack()
156 bool isPass = AMediaExtractor_seekTo(extractor, 0, AMEDIAEXTRACTOR_SEEK_NEXT_SYNC) != AMEDIA_OK; in nativeTestSeekToBeforeSetDataSource() local
157 if (!isPass) ALOGE("error: seekTo() succeeds before setting data source"); in nativeTestSeekToBeforeSetDataSource()
159 return static_cast<jboolean>(isPass); in nativeTestSeekToBeforeSetDataSource()
163 bool isPass = false; in nativeTestSeekToBeforeSelectTrack() local
168 isPass = AMediaExtractor_seekTo(extractor, 0, AMEDIAEXTRACTOR_SEEK_NEXT_SYNC) != AMEDIA_OK; in nativeTestSeekToBeforeSelectTrack()
169 if (!isPass) ALOGE("error: seekTo() succeeds before selecting track"); in nativeTestSeekToBeforeSelectTrack()
174 return static_cast<jboolean>(isPass); in nativeTestSeekToBeforeSelectTrack()
179 bool isPass = AMediaExtractor_getCachedDuration(extractor) == -1; in nativeTestGetCachedDurationBeforeSetDataSource() local
180 if (!isPass) ALOGE("error: getCachedDuration returns unexpected value before setDataSource"); in nativeTestGetCachedDurationBeforeSetDataSource()
182 return static_cast<jboolean>(isPass); in nativeTestGetCachedDurationBeforeSetDataSource()
189 bool isPass = true; in nativeTestIfGetFileFormatSucceedsBeforeSetDataSource() local
192 isPass = false; in nativeTestIfGetFileFormatSucceedsBeforeSetDataSource()
198 return static_cast<jboolean>(isPass); in nativeTestIfGetFileFormatSucceedsBeforeSetDataSource()
203 bool isPass = !AMediaExtractor_advance(extractor); in nativeTestAdvanceBeforeSetDataSource() local
204 if (!isPass) ALOGE("error: advance succeeds before setDataSource"); in nativeTestAdvanceBeforeSetDataSource()
206 return static_cast<jboolean>(isPass); in nativeTestAdvanceBeforeSetDataSource()
210 bool isPass = false; in nativeTestAdvanceBeforeSelectTrack() local
215 isPass = !AMediaExtractor_advance(extractor); in nativeTestAdvanceBeforeSelectTrack()
216 if (!isPass) ALOGE("error: advance succeeds without any active tracks"); in nativeTestAdvanceBeforeSelectTrack()
221 return static_cast<jboolean>(isPass); in nativeTestAdvanceBeforeSelectTrack()
226 bool isPass = AMediaExtractor_getSampleFlags(extractor) == -1; in nativeTestGetSampleFlagsBeforeSetDataSource() local
227 if (!isPass) ALOGE("error: received valid sample flag before setDataSource"); in nativeTestGetSampleFlagsBeforeSetDataSource()
229 return static_cast<jboolean>(isPass); in nativeTestGetSampleFlagsBeforeSetDataSource()
233 bool isPass = false; in nativeTestGetSampleFlagsBeforeSelectTrack() local
238 isPass = AMediaExtractor_getSampleFlags(extractor) == -1; in nativeTestGetSampleFlagsBeforeSelectTrack()
239 if (!isPass) ALOGE("error: received valid sample flag without any active tracks"); in nativeTestGetSampleFlagsBeforeSelectTrack()
244 return static_cast<jboolean>(isPass); in nativeTestGetSampleFlagsBeforeSelectTrack()
249 bool isPass = AMediaExtractor_getSampleTime(extractor) == -1; in nativeTestGetSampleTimeBeforeSetDataSource() local
250 if (!isPass) ALOGE("error: received valid pts before setDataSource"); in nativeTestGetSampleTimeBeforeSetDataSource()
252 return static_cast<jboolean>(isPass); in nativeTestGetSampleTimeBeforeSetDataSource()
256 bool isPass = false; in nativeTestGetSampleTimeBeforeSelectTrack() local
261 isPass = AMediaExtractor_getSampleTime(extractor) == -1; in nativeTestGetSampleTimeBeforeSelectTrack()
262 if (!isPass) ALOGE("error: received valid pts without any active tracks"); in nativeTestGetSampleTimeBeforeSelectTrack()
267 return static_cast<jboolean>(isPass); in nativeTestGetSampleTimeBeforeSelectTrack()
272 bool isPass = AMediaExtractor_getSampleSize(extractor) == -1; in nativeTestGetSampleSizeBeforeSetDataSource() local
273 if (!isPass) ALOGE("error: received valid sample size before setDataSource"); in nativeTestGetSampleSizeBeforeSetDataSource()
275 return static_cast<jboolean>(isPass); in nativeTestGetSampleSizeBeforeSetDataSource()
279 bool isPass = false; in nativeTestGetSampleSizeBeforeSelectTrack() local
284 isPass = AMediaExtractor_getSampleSize(extractor) == -1; in nativeTestGetSampleSizeBeforeSelectTrack()
285 if (!isPass) ALOGE("error: received valid sample size without any active tracks"); in nativeTestGetSampleSizeBeforeSelectTrack()
290 return static_cast<jboolean>(isPass); in nativeTestGetSampleSizeBeforeSelectTrack()
296 bool isPass = AMediaExtractor_getSampleFormat(extractor, format) != AMEDIA_OK; in nativeTestIfGetSampleFormatBeforeSetDataSource() local
297 if (!isPass) ALOGE("error: getSampleFormat succeeds before setDataSource"); in nativeTestIfGetSampleFormatBeforeSetDataSource()
300 return static_cast<jboolean>(isPass); in nativeTestIfGetSampleFormatBeforeSetDataSource()
305 bool isPass = false; in nativeTestIfGetSampleFormatBeforeSelectTrack() local
311 isPass = AMediaExtractor_getSampleFormat(extractor, format) != AMEDIA_OK; in nativeTestIfGetSampleFormatBeforeSelectTrack()
312 if (!isPass) ALOGE("error: getSampleFormat succeeds without any active tracks"); in nativeTestIfGetSampleFormatBeforeSelectTrack()
318 return static_cast<jboolean>(isPass); in nativeTestIfGetSampleFormatBeforeSelectTrack()
323 bool isPass = AMediaExtractor_getSampleTrackIndex(extractor) == -1; in nativeTestGetSampleTrackIndexBeforeSetDataSource() local
324 if (!isPass) ALOGE("error: received valid track index before setDataSource"); in nativeTestGetSampleTrackIndexBeforeSetDataSource()
326 return static_cast<jboolean>(isPass); in nativeTestGetSampleTrackIndexBeforeSetDataSource()
331 bool isPass = false; in nativeTestGetSampleTrackIndexBeforeSelectTrack() local
336 isPass = AMediaExtractor_getSampleTrackIndex(extractor) == -1; in nativeTestGetSampleTrackIndexBeforeSelectTrack()
337 if (!isPass) ALOGE("error: received valid track index without any active tracks"); in nativeTestGetSampleTrackIndexBeforeSelectTrack()
342 return static_cast<jboolean>(isPass); in nativeTestGetSampleTrackIndexBeforeSelectTrack()
346 bool isPass = true; in nativeTestGetTrackFormatBeforeSetDataSource() local
352 isPass = false; in nativeTestGetTrackFormatBeforeSetDataSource()
358 return static_cast<jboolean>(isPass); in nativeTestGetTrackFormatBeforeSetDataSource()
362 bool isPass = true; in nativeTestGetTrackFormatForInvalidIndex() local
372 isPass = false; in nativeTestGetTrackFormatForInvalidIndex()
379 isPass = false; in nativeTestGetTrackFormatForInvalidIndex()
384 return static_cast<jboolean>(isPass); in nativeTestGetTrackFormatForInvalidIndex()
391 bool isPass = AMediaExtractor_readSampleData(extractor, buffer, maxSampleSize) < 0; in nativeTestReadSampleDataBeforeSetDataSource() local
392 if (!isPass) ALOGE("error: readSampleData return non-negative readBytes before setDataSource"); in nativeTestReadSampleDataBeforeSetDataSource()
395 return static_cast<jboolean>(isPass); in nativeTestReadSampleDataBeforeSetDataSource()
399 bool isPass = false; in nativeTestReadSampleDataBeforeSelectTrack() local
406 isPass = AMediaExtractor_readSampleData(extractor, buffer, maxSampleSize) < 0; in nativeTestReadSampleDataBeforeSelectTrack()
407 if (!isPass) { in nativeTestReadSampleDataBeforeSelectTrack()
415 return static_cast<jboolean>(isPass); in nativeTestReadSampleDataBeforeSelectTrack()
420 bool isPass = AMediaExtractor_setDataSource(extractor, nullptr) != AMEDIA_OK; in nativeTestIfNullLocationIsRejectedBySetDataSource() local
421 if (!isPass) ALOGE("error: setDataSource succeeds with null location"); in nativeTestIfNullLocationIsRejectedBySetDataSource()
423 return static_cast<jboolean>(isPass); in nativeTestIfNullLocationIsRejectedBySetDataSource()