@Test public void testNameCreation() { File actual = TsDumpFileUtils.getFor(context, 506_000_000L, 8_000_000L, date(2017, 1, 10, 13, 4, 24)); assertThat(actual, equalTo(new File(ROOT, "mux_506000000_8000000_20170110130424.ts"))); }
public static File getFor(Context ctx, long freq, long bandwidth, Date date) { File root = ctx.getExternalFilesDir(null); String timestamp = DATE_FORMAT.format(date); String filename = String.format(DEFAULT_LOCALE, "mux_%d_%d_%s.ts", freq, bandwidth, timestamp); return new File(root, filename); }
TsDumpFileUtils { public static File getFor(Context ctx, long freq, long bandwidth, Date date) { File root = ctx.getExternalFilesDir(null); String timestamp = DATE_FORMAT.format(date); String filename = String.format(DEFAULT_LOCALE, "mux_%d_%d_%s.ts", freq, bandwidth, timestamp); return new File(root, filename); } }
TsDumpFileUtils { public static File getFor(Context ctx, long freq, long bandwidth, Date date) { File root = ctx.getExternalFilesDir(null); String timestamp = DATE_FORMAT.format(date); String filename = String.format(DEFAULT_LOCALE, "mux_%d_%d_%s.ts", freq, bandwidth, timestamp); return new File(root, filename); }  }
TsDumpFileUtils { public static File getFor(Context ctx, long freq, long bandwidth, Date date) { File root = ctx.getExternalFilesDir(null); String timestamp = DATE_FORMAT.format(date); String filename = String.format(DEFAULT_LOCALE, "mux_%d_%d_%s.ts", freq, bandwidth, timestamp); return new File(root, filename); }  static File getFor(Context ctx, long freq, long bandwidth, Date date); static List<DvbDevice> getDevicesForAllRecordings(Context ctx); }
TsDumpFileUtils { public static File getFor(Context ctx, long freq, long bandwidth, Date date) { File root = ctx.getExternalFilesDir(null); String timestamp = DATE_FORMAT.format(date); String filename = String.format(DEFAULT_LOCALE, "mux_%d_%d_%s.ts", freq, bandwidth, timestamp); return new File(root, filename); }  static File getFor(Context ctx, long freq, long bandwidth, Date date); static List<DvbDevice> getDevicesForAllRecordings(Context ctx);  }