Lines Matching refs:format

224                     MediaFormat format = new MediaFormat();  in testIfInvalidMediaFormatIsRejected()  local
225 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_CEA_608); in testIfInvalidMediaFormatIsRejected()
226 muxer.addTrack(format); in testIfInvalidMediaFormatIsRejected()
246 MediaFormat format = new MediaFormat(); in testIfCorruptMediaFormatIsRejected() local
247 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_AUDIO_AAC); in testIfCorruptMediaFormatIsRejected()
248 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, -1); in testIfCorruptMediaFormatIsRejected()
249 muxer.addTrack(format); in testIfCorruptMediaFormatIsRejected()
264 MediaFormat format = new MediaFormat(); in testIfAddTrackSucceedsAfterStart() local
265 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfAddTrackSucceedsAfterStart()
266 muxer.addTrack(format); in testIfAddTrackSucceedsAfterStart()
268 muxer.addTrack(format); in testIfAddTrackSucceedsAfterStart()
284 MediaFormat format = new MediaFormat(); in testIfAddTrackSucceedsAfterWriteSampleData() local
285 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfAddTrackSucceedsAfterWriteSampleData()
286 int trackID = muxer.addTrack(format); in testIfAddTrackSucceedsAfterWriteSampleData()
289 muxer.addTrack(format); in testIfAddTrackSucceedsAfterWriteSampleData()
305 MediaFormat format = new MediaFormat(); in testIfAddTrackSucceedsAfterStop() local
306 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfAddTrackSucceedsAfterStop()
307 int trackID = muxer.addTrack(format); in testIfAddTrackSucceedsAfterStop()
311 muxer.addTrack(format); in testIfAddTrackSucceedsAfterStop()
327 MediaFormat format = new MediaFormat(); in testIfAddTrackSucceedsAfterRelease() local
328 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfAddTrackSucceedsAfterRelease()
330 muxer.addTrack(format); in testIfAddTrackSucceedsAfterRelease()
345 MediaFormat format = new MediaFormat(); in testIfMuxerStartsBeforeAddTrack() local
346 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfMuxerStartsBeforeAddTrack()
364 MediaFormat format = new MediaFormat(); in testIdempotentStart() local
365 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIdempotentStart()
368 muxer.addTrack(format); in testIdempotentStart()
385 MediaFormat format = new MediaFormat(); in testIfMuxerStartsAfterWriteSampleData() local
386 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfMuxerStartsAfterWriteSampleData()
389 int trackID = muxer.addTrack(format); in testIfMuxerStartsAfterWriteSampleData()
407 MediaFormat format = new MediaFormat(); in testIfMuxerStartsAfterStop() local
408 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfMuxerStartsAfterStop()
411 int trackID = muxer.addTrack(format); in testIfMuxerStartsAfterStop()
465 MediaFormat format = new MediaFormat(); in testIdempotentStop() local
466 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIdempotentStop()
469 int trackID = muxer.addTrack(format); in testIdempotentStop()
505 MediaFormat format = new MediaFormat(); in testSimpleStartStopMuxer() local
506 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testSimpleStartStopMuxer()
509 muxer.addTrack(format); in testSimpleStartStopMuxer()
523 MediaFormat format = new MediaFormat(); in testIfWriteSampleDataRejectsInvalidTrackIndex() local
524 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfWriteSampleDataRejectsInvalidTrackIndex()
526 int trackID = muxer.addTrack(format); in testIfWriteSampleDataRejectsInvalidTrackIndex()
543 MediaFormat format = new MediaFormat(); in testIfWriteSampleDataRejectsNullByteBuffer() local
544 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfWriteSampleDataRejectsNullByteBuffer()
546 int trackID = muxer.addTrack(format); in testIfWriteSampleDataRejectsNullByteBuffer()
569 MediaFormat format = new MediaFormat(); in testIfWriteSampleDataRejectsNullBuffInfo() local
570 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfWriteSampleDataRejectsNullBuffInfo()
572 int trackID = muxer.addTrack(format); in testIfWriteSampleDataRejectsNullBuffInfo()
594 MediaFormat format = new MediaFormat(); in testIfWriteSampleDataRejectsInvalidBuffInfo() local
595 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfWriteSampleDataRejectsInvalidBuffInfo()
597 int trackID = muxer.addTrack(format); in testIfWriteSampleDataRejectsInvalidBuffInfo()
667 MediaFormat format = new MediaFormat(); in testIfWriteSampleDataRejectsInvalidPts() local
668 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfWriteSampleDataRejectsInvalidPts()
670 int trackID = muxer.addTrack(format); in testIfWriteSampleDataRejectsInvalidPts()
687 MediaFormat format = new MediaFormat(); in testIfWriteSampleDataSucceedsBeforeStart() local
688 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfWriteSampleDataSucceedsBeforeStart()
691 int trackID = muxer.addTrack(format); in testIfWriteSampleDataSucceedsBeforeStart()
707 MediaFormat format = new MediaFormat(); in testIfWriteSampleDataSucceedsAfterStop() local
708 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfWriteSampleDataSucceedsAfterStop()
711 int trackID = muxer.addTrack(format); in testIfWriteSampleDataSucceedsAfterStop()
730 MediaFormat format = new MediaFormat(); in testIfWriteSampleDataSucceedsAfterRelease() local
731 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_TEXT_SUBRIP); in testIfWriteSampleDataSucceedsAfterRelease()
734 int trackID = muxer.addTrack(format); in testIfWriteSampleDataSucceedsAfterRelease()