Home | History | Annotate | Download | only in targetprep

Lines Matching refs:resolution

86      * resolution. After the MediaPreparerApp has been instrumented on the device:
88 * testMetrics contains the string representation of the resolution
89 * testFailures contains a stacktrace if retrieval of the resolution was unsuccessful
91 protected Resolution mMaxRes = null;
112 /* Key to retrieve resolution string in metrics upon MediaPreparerListener.testEnded() */
113 private static final String RESOLUTION_STRING_KEY = "resolution";
118 * In the case of MediaPreparer error, the default maximum resolution to push to the device.
120 * TODO(aaronholden): When the new detection of max resolution is proven stable, throw
123 protected static final Resolution DEFAULT_MAX_RESOLUTION = new Resolution(480, 360);
125 protected static final Resolution[] RESOLUTIONS = {
126 new Resolution(176, 144),
127 new Resolution(480, 360),
128 new Resolution(720, 480),
129 new Resolution(1280, 720),
130 new Resolution(1920, 1080)
134 protected static final class Resolution {
135 // regex that matches a resolution string
137 // group indices for accessing resolution width and height from a PATTERN-based Matcher
144 private Resolution(int width, int height) {
149 private Resolution(String resolution) {
151 Matcher matcher = pattern.matcher(resolution);
175 for (Resolution resolution : RESOLUTIONS) {
176 if (resolution.width > mMaxRes.width) {
179 String deviceShortFilePath = mBaseDeviceShortDir + resolution.toString();
180 String deviceFullFilePath = mBaseDeviceFullDir + resolution.toString();
261 * - contain video files of a resolution less than or equal to the device's
262 * max video playback resolution
274 // copy video files of a resolution <= the device's maximum video playback resolution
276 for (Resolution resolution : RESOLUTIONS) {
277 if (resolution.width > mMaxRes.width) {
281 String deviceShortFilePath = mBaseDeviceShortDir + resolution.toString();
282 String deviceFullFilePath = mBaseDeviceFullDir + resolution.toString();
285 logInfo("Copying files of resolution %s to device", resolution.toString());
286 String localShortDirName = "bbb_short/" + resolution.toString();
287 String localFullDirName = "bbb_full/" + resolution.toString();
290 // push short directory of given resolution, if not present on device
294 // push full directory of given resolution, if not present on device
329 setMaxRes(device, buildInfo); // max resolution only applies to video files
350 // Initialize maximum resolution of media files to copy
364 logWarning("Cound not find %s to determine maximum resolution, copying up to %s",
379 logWarning("Retrieving maximum resolution failed with trace:\n%s", mFailureStackTrace);
383 logWarning("Failed to pull resolution capabilities from device, copying up to %s",
395 mMaxRes = new Resolution(resMetric.getMeasurements().getSingleString());