summaryrefslogtreecommitdiffstats
path: root/updater_sample/src/com/example/android/systemupdatersample/UpdateConfig.java
diff options
context:
space:
mode:
authorZhomart Mukhamejanov <zhomart@google.com>2018-04-23 20:38:54 +0200
committerZhomart Mukhamejanov <zhomart@google.com>2018-05-08 23:12:33 +0200
commit0dd5a83d0ec4c9d7b51843dd6eebd5ce92a1ad92 (patch)
tree54ee79783c840c9dea16973abeb99602aef66881 /updater_sample/src/com/example/android/systemupdatersample/UpdateConfig.java
parentMerge "recovery: Remove unneeded include of minui.h." (diff)
downloadandroid_bootable_recovery-0dd5a83d0ec4c9d7b51843dd6eebd5ce92a1ad92.tar
android_bootable_recovery-0dd5a83d0ec4c9d7b51843dd6eebd5ce92a1ad92.tar.gz
android_bootable_recovery-0dd5a83d0ec4c9d7b51843dd6eebd5ce92a1ad92.tar.bz2
android_bootable_recovery-0dd5a83d0ec4c9d7b51843dd6eebd5ce92a1ad92.tar.lz
android_bootable_recovery-0dd5a83d0ec4c9d7b51843dd6eebd5ce92a1ad92.tar.xz
android_bootable_recovery-0dd5a83d0ec4c9d7b51843dd6eebd5ce92a1ad92.tar.zst
android_bootable_recovery-0dd5a83d0ec4c9d7b51843dd6eebd5ce92a1ad92.zip
Diffstat (limited to 'updater_sample/src/com/example/android/systemupdatersample/UpdateConfig.java')
-rw-r--r--updater_sample/src/com/example/android/systemupdatersample/UpdateConfig.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/updater_sample/src/com/example/android/systemupdatersample/UpdateConfig.java b/updater_sample/src/com/example/android/systemupdatersample/UpdateConfig.java
index 23510e426..1851724ed 100644
--- a/updater_sample/src/com/example/android/systemupdatersample/UpdateConfig.java
+++ b/updater_sample/src/com/example/android/systemupdatersample/UpdateConfig.java
@@ -69,11 +69,11 @@ public class UpdateConfig implements Parcelable {
if (c.mAbInstallType == AB_INSTALL_TYPE_STREAMING) {
JSONObject meta = o.getJSONObject("ab_streaming_metadata");
JSONArray propertyFilesJson = meta.getJSONArray("property_files");
- InnerFile[] propertyFiles =
- new InnerFile[propertyFilesJson.length()];
+ PackageFile[] propertyFiles =
+ new PackageFile[propertyFilesJson.length()];
for (int i = 0; i < propertyFilesJson.length(); i++) {
JSONObject p = propertyFilesJson.getJSONObject(i);
- propertyFiles[i] = new InnerFile(
+ propertyFiles[i] = new PackageFile(
p.getString("filename"),
p.getLong("offset"),
p.getLong("size"));
@@ -176,17 +176,17 @@ public class UpdateConfig implements Parcelable {
private static final long serialVersionUID = 31042L;
/** defines beginning of update data in archive */
- private InnerFile[] mPropertyFiles;
+ private PackageFile[] mPropertyFiles;
public StreamingMetadata() {
- mPropertyFiles = new InnerFile[0];
+ mPropertyFiles = new PackageFile[0];
}
- public StreamingMetadata(InnerFile[] propertyFiles) {
+ public StreamingMetadata(PackageFile[] propertyFiles) {
this.mPropertyFiles = propertyFiles;
}
- public InnerFile[] getPropertyFiles() {
+ public PackageFile[] getPropertyFiles() {
return mPropertyFiles;
}
}
@@ -194,7 +194,7 @@ public class UpdateConfig implements Parcelable {
/**
* Description of a file in an OTA package zip file.
*/
- public static class InnerFile implements Serializable {
+ public static class PackageFile implements Serializable {
private static final long serialVersionUID = 31043L;
@@ -207,7 +207,7 @@ public class UpdateConfig implements Parcelable {
/** size of the update data in archive */
private long mSize;
- public InnerFile(String filename, long offset, long size) {
+ public PackageFile(String filename, long offset, long size) {
this.mFilename = filename;
this.mOffset = offset;
this.mSize = size;