Searched refs:updateFile (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | Enable16kPagesPreferenceControllerTest.java | 81 File updateFile = copyFromAssetToDataDir(filename); in validateUpdateParsing_validFile() local 82 mController.applyUpdateFile(updateFile); in validateUpdateParsing_validFile() 88 File updateFile = copyFromAssetToDataDir(filename); in validateUpdateParsing_emptyPayloadFile() local 89 assertThrows(IOException.class, () -> mController.applyUpdateFile(updateFile)); in validateUpdateParsing_emptyPayloadFile() 95 File updateFile = copyFromAssetToDataDir(filename); in validateUpdateParsing_noPayloadFile() local 96 assertThrows(FileNotFoundException.class, () -> mController.applyUpdateFile(updateFile)); in validateUpdateParsing_noPayloadFile() 102 File updateFile = copyFromAssetToDataDir(filename); in validateUpdateParsing_noPropertiesFile() local 103 assertThrows(FileNotFoundException.class, () -> mController.applyUpdateFile(updateFile)); in validateUpdateParsing_noPropertiesFile()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | Enable16kPagesPreferenceController.java | 222 File updateFile = getOtaFile(); in installUpdate() local 223 Log.i(TAG, "Update file path is " + updateFile.getAbsolutePath()); in installUpdate() 224 applyUpdateFile(updateFile); in installUpdate() 231 void applyUpdateFile(@NonNull File updateFile) throws IOException, FileNotFoundException { in applyUpdateFile() argument 238 try (ZipFile zip = new ZipFile(updateFile)) { in applyUpdateFile() 276 "Failed to find payload in zip: " + updateFile.getAbsolutePath()); in applyUpdateFile() 281 "Failed to find payload properties in zip: " + updateFile.getAbsolutePath()); in applyUpdateFile() 285 throw new IOException("Found empty payload in zip: " + updateFile.getAbsolutePath()); in applyUpdateFile() 288 applyPayload(updateFile, payloadOffset, payloadSize, properties); in applyUpdateFile() 300 @NonNull File updateFile, in applyPayload() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | SaveImage.java | 433 uri = updateFile(mContext, savedUri, mDestinationFile, time); in processAndSaveImage() 689 public static Uri updateFile(Context context, Uri sourceUri, File file, long time) { in updateFile() method in SaveImage
|