Searched defs:screenshotFile (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
H A DScreenshotTest.java71 File screenshotFile = new File(screenshotDir, observer.getCreatedPath());
74 screenshotFile.getName()), screenshotFile.isFile());
76 screenshotFile.getName()), isValidImage(screenshotFile));
79 screenshotFile.delete();
136 private boolean isValidImage(File screenshotFile) { argument
137 Bitmap b = BitmapFactory.decodeFile(screenshotFile.getAbsolutePath());
/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportProgressService.java731 String screenshotFile = (String) requestMsg.obj;
732 boolean taken = takeScreenshot(mContext, screenshotFile);
736 screenshotFile).sendToTarget();
745 final File screenshotFile = new File((String) resultMsg.obj);
749 info.addScreenshot(screenshotFile);
1339 private static boolean takeScreenshot(Context context, String screenshotFile) { argument
1341 .command("/system/bin/screencap", "-p", screenshotFile);
1774 for (File screenshotFile : screenshotFiles) {
1775 writeFile(dest, screenshotFile);

Completed in 482 milliseconds