Lines Matching refs:ex

315     public static boolean hasCodecForTrack(MediaExtractor ex, int track) {  in hasCodecForTrack()  argument
316 int count = ex.getTrackCount(); in hasCodecForTrack()
320 return canDecode(ex.getTrackFormat(track)); in hasCodecForTrack()
326 public static boolean hasCodecsForMedia(MediaExtractor ex) { in hasCodecsForMedia() argument
327 for (int i = 0; i < ex.getTrackCount(); ++i) { in hasCodecsForMedia()
328 MediaFormat format = ex.getTrackFormat(i); in hasCodecsForMedia()
344 public static boolean hasCodecForMediaAndDomain(MediaExtractor ex, String mimePrefix) { in hasCodecForMediaAndDomain() argument
346 for (int i = 0; i < ex.getTrackCount(); ++i) { in hasCodecForMediaAndDomain()
347 MediaFormat format = ex.getTrackFormat(i); in hasCodecForMediaAndDomain()
363 MediaExtractor ex = null; in hasCodecsForResourceCombo() local
366 ex = new MediaExtractor(); in hasCodecsForResourceCombo()
367 ex.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in hasCodecsForResourceCombo()
369 return hasCodecForMediaAndDomain(ex, mimePrefix); in hasCodecsForResourceCombo()
371 return hasCodecsForMedia(ex); in hasCodecsForResourceCombo()
373 return hasCodecForTrack(ex, track); in hasCodecsForResourceCombo()
376 if (ex != null) { in hasCodecsForResourceCombo()
377 ex.release(); in hasCodecsForResourceCombo()
423 MediaExtractor ex = null; in hasCodecsForPath() local
425 ex = new MediaExtractor(); in hasCodecsForPath()
429 ex.setDataSource(path); in hasCodecsForPath()
431 ex.setDataSource(uri.getPath()); in hasCodecsForPath()
433 ex.setDataSource(context, uri, null); in hasCodecsForPath()
435 return hasCodecsForMedia(ex); in hasCodecsForPath()
439 if (ex != null) { in hasCodecsForPath()
440 ex.release(); in hasCodecsForPath()