Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 43) sorted by relevance

12

/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/services/
DPrepareUpdateService.java44 import java.nio.file.Files;
45 import java.nio.file.Path;
46 import java.nio.file.Paths;
242 for (String file : PRE_STREAMING_FILES_SET) { in downloadPreStreamingFiles()
243 Files.deleteIfExists(Paths.get(OTA_PACKAGE_DIR, file)); in downloadPreStreamingFiles()
246 for (UpdateConfig.PackageFile file : config.getAbConfig().getPropertyFiles()) { in downloadPreStreamingFiles()
247 if (PRE_STREAMING_FILES_SET.contains(file.getFilename())) { in downloadPreStreamingFiles()
248 Log.d(TAG, "Downloading file " + file.getFilename()); in downloadPreStreamingFiles()
251 file.getOffset(), in downloadPreStreamingFiles()
252 file.getSize(), in downloadPreStreamingFiles()
[all …]
/bootable/recovery/
D.clang-format2 # local style file in `.clang-format`. This will be triggered automatically with `repo upload`.
6 # $ git clang-format --style file
10 # $ git clang-format --style file HEAD~1
12 # `--style file` will pick up the local style file in `.clang-format`. This can be configured as the
15 # $ git config --local clangFormat.style file
20 # `/usr/bin/clang-format`). Specifying the file with `--binary` will ensure consistent results.
DPREUPLOAD.cfg6 clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
DNOTICE5 you may not use this file except in compliance with the License.
119 (d) If the Work includes a "NOTICE" text file as part of its
122 within such NOTICE file, excluding those notices that do not
124 of the following places: within a NOTICE text file distributed
129 of the NOTICE file are for informational purposes only and
154 origin of the Work and reproducing the content of the NOTICE file.
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/
DUpdateConfigs.java26 import java.nio.file.Files;
27 import java.nio.file.Paths;
95 .filter(file -> filename.equals(file.getFilename())) in getPropertyFile()
/bootable/recovery/applypatch/
Dapplypatch.cpp52 bool LoadFileContents(const std::string& filename, FileContents* file) { in LoadFileContents() argument
64 file->data = std::vector<unsigned char>(data.begin(), data.end()); in LoadFileContents()
65 SHA1(file->data.data(), file->data.size(), file->sha1); in LoadFileContents()
109 bool SaveFileContents(const std::string& filename, const FileContents* file) { in SaveFileContents() argument
117 if (!android::base::WriteFully(fd, file->data.data(), file->data.size())) { in SaveFileContents()
118 PLOG(ERROR) << "Failed to write " << file->data.size() << " bytes of data to " << filename; in SaveFileContents()
Dfreecache.cpp229 for (const auto& file : files) { in RemoveFilesInDirectory() local
230 if (unlink(file.c_str()) == -1) { in RemoveFilesInDirectory()
231 PLOG(ERROR) << "Failed to delete " << file; in RemoveFilesInDirectory()
240 LOG(INFO) << "Deleted " << file << "; now " << free_now << " bytes free"; in RemoveFilesInDirectory()
/bootable/recovery/tools/recovery_l10n/
DREADME.md22 file from the device.
26 5. Compress the output file put it under the corresponding directory.
29 which is accepted by Recovery. This also compresses the image file by
DAndroid.bp4 // you may not use this file except in compliance with the License.
/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/util/
DPayloadSpecsTest.java43 import java.nio.file.Paths;
79 java.nio.file.Files.deleteIfExists(packageFile.toPath()); in forNonStreaming_works()
80 java.nio.file.Files.copy(mTestContext.getResources().openRawResource(R.raw.ota_002_package), in forNonStreaming_works()
DFileDownloaderTest.java36 import java.nio.file.Files;
37 import java.nio.file.Paths;
/bootable/recovery/updater_sample/
DREADME.md20 ## Update Config file
23 The structure of a config file is defined in
24 `com.example.android.systemupdatersample.UpdateConfig`, example file is located
33 `url` is expected to point to file system, e.g. `file:///data/my-sample-ota-builds-dir/ota-002.zip`.
36 with `file://` and passes `url` to the `update_engine`.
168 5. Add update config files; look above at [Update Config file](#Update-Config-file).
199 8. Add update config files; look above at `## Update Config file`;
212 update zip file
239 5. Run a test file
DAndroid.bp4 // you may not use this file except in compliance with the License.
Dproguard.flags4 # you may not use this file except in compliance with the License.
/bootable/recovery/applypatch/include/applypatch/
Dapplypatch.h97 bool LoadFileContents(const std::string& filename, FileContents* file);
100 bool SaveFileContents(const std::string& filename, const FileContents* file);
/bootable/recovery/tests/unit/
Dapplypatch_test.cpp182 for (const auto& file : files) { in AddFilesToDir() local
183 temporary_files_.push_back(dir + "/" + file); in AddFilesToDir()
194 for (const auto& file : temporary_files_) { in TearDown() local
195 ASSERT_TRUE(android::base::RemoveFileIfExists(file)); in TearDown()
/bootable/recovery/updater_sample/tools/
Dgen_update_config.py106 for file in property_str.split(','):
107 filename, offset, size = file.split(':')
/bootable/recovery/tools/image_generator/
DAndroid.bp4 // you may not use this file except in compliance with the License.
/bootable/recovery/fuse_sideload/
DAndroid.bp4 // you may not use this file except in compliance with the License.
/bootable/recovery/uncrypt/
DAndroid.bp4 // you may not use this file except in compliance with the License.
/bootable/recovery/update_verifier/
Dcare_map.proto5 * you may not use this file except in compliance with the License.
/bootable/recovery/minui/
DAndroid.bp4 // you may not use this file except in compliance with the License.
/bootable/recovery/edify/
DAndroid.bp4 // you may not use this file except in compliance with the License.
/bootable/recovery/updater_sample/tests/
DAndroid.bp4 // you may not use this file except in compliance with the License.
/bootable/recovery/otautil/
DAndroid.bp4 // you may not use this file except in compliance with the License.

12