OSDN Git Service

Mark location classes as Parcelable appropriately
authorArthur Ishiguro <arthuri@google.com>
Wed, 28 Feb 2018 19:27:50 +0000 (11:27 -0800)
committerArthur Ishiguro <arthuri@google.com>
Thu, 1 Mar 2018 03:10:57 +0000 (03:10 +0000)
Doesn't add the "final" qualifier,
since make will throw errors due to compatibility issues.

Bug: 69622177
Test: Run CHQTS from master and oc-mr1-dev, verify pass
Change-Id: If02203d7862e77ca4fda7b95a39bbfa3d9f6d87d

api/system-current.txt
core/java/android/hardware/location/ContextHubMessage.java
core/java/android/hardware/location/NanoApp.java
core/java/android/hardware/location/NanoAppFilter.java
core/java/android/hardware/location/NanoAppInstanceInfo.java

index 930224d..78ed570 100644 (file)
@@ -1582,7 +1582,7 @@ package android.hardware.location {
     method public abstract void onMessageReceipt(int, int, android.hardware.location.ContextHubMessage);
   }
 
-  public deprecated class ContextHubMessage {
+  public deprecated class ContextHubMessage implements android.os.Parcelable {
     ctor public ContextHubMessage(int, int, byte[]);
     method public int describeContents();
     method public byte[] getData();
@@ -1713,7 +1713,7 @@ package android.hardware.location {
     field public static final android.os.Parcelable.Creator<android.hardware.location.MemoryRegion> CREATOR;
   }
 
-  public deprecated class NanoApp {
+  public deprecated class NanoApp implements android.os.Parcelable {
     ctor public NanoApp();
     ctor public deprecated NanoApp(int, byte[]);
     ctor public NanoApp(long, byte[]);
@@ -1761,7 +1761,7 @@ package android.hardware.location {
     field public static final android.os.Parcelable.Creator<android.hardware.location.NanoAppBinary> CREATOR;
   }
 
-  public deprecated class NanoAppFilter {
+  public deprecated class NanoAppFilter implements android.os.Parcelable {
     ctor public NanoAppFilter(long, int, int, long);
     method public int describeContents();
     method public boolean testMatch(android.hardware.location.NanoAppInstanceInfo);
@@ -1776,7 +1776,7 @@ package android.hardware.location {
     field public static final int VENDOR_ANY = -1; // 0xffffffff
   }
 
-  public deprecated class NanoAppInstanceInfo {
+  public deprecated class NanoAppInstanceInfo implements android.os.Parcelable {
     ctor public NanoAppInstanceInfo();
     method public int describeContents();
     method public long getAppId();
index f85ce3e..e1c69d7 100644 (file)
@@ -33,7 +33,7 @@ import java.util.Arrays;
  */
 @SystemApi
 @Deprecated
-public class ContextHubMessage {
+public class ContextHubMessage implements Parcelable {
     private static final int DEBUG_LOG_NUM_BYTES = 16;
     private int mType;
     private int mVersion;
index b5c01ec..ded1bb8 100644 (file)
@@ -36,7 +36,7 @@ import android.util.Log;
  */
 @SystemApi
 @Deprecated
-public class NanoApp {
+public class NanoApp implements Parcelable {
     private final String TAG = "NanoApp";
 
     private final String UNKNOWN = "Unknown";
index 75a96ee..4d8e734 100644 (file)
@@ -28,7 +28,7 @@ import android.os.Parcelable;
  */
 @SystemApi
 @Deprecated
-public class NanoAppFilter {
+public class NanoAppFilter implements Parcelable {
 
     private static final String TAG = "NanoAppFilter";
 
index f1926ea..75fb915 100644 (file)
@@ -34,7 +34,7 @@ import libcore.util.EmptyArray;
  */
 @SystemApi
 @Deprecated
-public class NanoAppInstanceInfo {
+public class NanoAppInstanceInfo implements Parcelable {
     private String mPublisher = "Unknown";
     private String mName = "Unknown";