From 2645c147b7f9b9966198d6ebb09600ca4300e356 Mon Sep 17 00:00:00 2001 From: Alex Buynytskyy Date: Thu, 25 Feb 2021 09:09:50 -0800 Subject: [PATCH] Fixing some AIDL warnings. Can't change the enum values as they are a part of public API (and enum-zero is not a warning apparently). Fixes: 179836890 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest Change-Id: I4d59410ec3476298cc98fdcc9584468b1debcb41 --- core/java/android/content/pm/DataLoaderParamsParcel.aidl | 2 +- core/java/android/content/pm/InstallationFileParcel.aidl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/content/pm/DataLoaderParamsParcel.aidl b/core/java/android/content/pm/DataLoaderParamsParcel.aidl index d40012fd57186..29d472e6e9273 100644 --- a/core/java/android/content/pm/DataLoaderParamsParcel.aidl +++ b/core/java/android/content/pm/DataLoaderParamsParcel.aidl @@ -23,7 +23,7 @@ import android.content.pm.DataLoaderType; * @hide */ parcelable DataLoaderParamsParcel { - DataLoaderType type; + DataLoaderType type = DataLoaderType.NONE; @utf8InCpp String packageName; @utf8InCpp String className; @utf8InCpp String arguments; diff --git a/core/java/android/content/pm/InstallationFileParcel.aidl b/core/java/android/content/pm/InstallationFileParcel.aidl index b7efc1947cc3e..09d1a3291b69c 100644 --- a/core/java/android/content/pm/InstallationFileParcel.aidl +++ b/core/java/android/content/pm/InstallationFileParcel.aidl @@ -24,7 +24,7 @@ import android.content.pm.InstallationFileLocation; */ parcelable InstallationFileParcel { String name; - InstallationFileLocation location; + InstallationFileLocation location = InstallationFileLocation.UNKNOWN; long size; byte[] metadata; byte[] signature;