From 3504737e462cfb669d91eb5a9f9bd745ba0fb08c Mon Sep 17 00:00:00 2001 From: Arthur Ishiguro Date: Mon, 11 Dec 2017 12:24:15 -0800 Subject: Removes setters from NanoAppInstanceInfo Removing these fields since they are not public APIs, and is not used internally in the service. Bug: 67734082 Test: None Change-Id: I8897265365849ab5d0106849e41d16577a91ead9 --- .../hardware/location/NanoAppInstanceInfo.java | 126 --------------------- 1 file changed, 126 deletions(-) diff --git a/core/java/android/hardware/location/NanoAppInstanceInfo.java b/core/java/android/hardware/location/NanoAppInstanceInfo.java index 4377b8cc4d5f..b7e6b66fb755 100644 --- a/core/java/android/hardware/location/NanoAppInstanceInfo.java +++ b/core/java/android/hardware/location/NanoAppInstanceInfo.java @@ -17,7 +17,6 @@ package android.hardware.location; import android.annotation.NonNull; -import android.annotation.Nullable; import android.annotation.SystemApi; import android.os.Parcel; import android.os.Parcelable; @@ -72,18 +71,6 @@ public class NanoAppInstanceInfo { return mPublisher; } - - /** - * set the publisher name for the app - * - * @param publisher - name of the publisher - * - * @hide - */ - public void setPublisher(String publisher) { - mPublisher = publisher; - } - /** * get the name of the app * @@ -93,17 +80,6 @@ public class NanoAppInstanceInfo { return mName; } - /** - * set the name of the app - * - * @param name - name of the app - * - * @hide - */ - public void setName(String name) { - mName = name; - } - /** * Get the application identifier * @@ -113,17 +89,6 @@ public class NanoAppInstanceInfo { return mAppId; } - /** - * Set the application identifier - * - * @param appId - application identifier - * - * @hide - */ - public void setAppId(long appId) { - mAppId = appId; - } - /** * Get the application version * @@ -138,17 +103,6 @@ public class NanoAppInstanceInfo { return mAppVersion; } - /** - * Set the application version - * - * @param appVersion - version of the app - * - * @hide - */ - public void setAppVersion(int appVersion) { - mAppVersion = appVersion; - } - /** * Get the read memory needed by the app * @@ -158,17 +112,6 @@ public class NanoAppInstanceInfo { return mNeededReadMemBytes; } - /** - * Set the read memory needed by the app - * - * @param neededReadMemBytes - readable Memory needed in bytes - * - * @hide - */ - public void setNeededReadMemBytes(int neededReadMemBytes) { - mNeededReadMemBytes = neededReadMemBytes; - } - /** * get writable memory needed by the app * @@ -178,18 +121,6 @@ public class NanoAppInstanceInfo { return mNeededWriteMemBytes; } - /** - * set writable memory needed by the app - * - * @param neededWriteMemBytes - writable memory needed by the - * app - * - * @hide - */ - public void setNeededWriteMemBytes(int neededWriteMemBytes) { - mNeededWriteMemBytes = neededWriteMemBytes; - } - /** * get executable memory needed by the app * @@ -199,18 +130,6 @@ public class NanoAppInstanceInfo { return mNeededExecMemBytes; } - /** - * set executable memory needed by the app - * - * @param neededExecMemBytes - executable memory needed by the - * app - * - * @hide - */ - public void setNeededExecMemBytes(int neededExecMemBytes) { - mNeededExecMemBytes = neededExecMemBytes; - } - /** * Get the sensors needed by this app * @@ -221,17 +140,6 @@ public class NanoAppInstanceInfo { return mNeededSensors; } - /** - * set the sensors needed by this app - * - * @param neededSensors - all the sensors needed by this app - * - * @hide - */ - public void setNeededSensors(@Nullable int[] neededSensors) { - mNeededSensors = neededSensors != null ? neededSensors : EmptyArray.INT; - } - /** * get the events generated by this app * @@ -242,18 +150,6 @@ public class NanoAppInstanceInfo { return mOutputEvents; } - /** - * set the output events that can be generated by this app - * - * @param outputEvents - the events that may be generated by - * this app - * - * @hide - */ - public void setOutputEvents(@Nullable int[] outputEvents) { - mOutputEvents = outputEvents != null ? outputEvents : EmptyArray.INT; - } - /** * get the context hub identifier * @@ -263,17 +159,6 @@ public class NanoAppInstanceInfo { return mContexthubId; } - /** - * set the context hub identifier - * - * @param contexthubId - system wide unique identifier - * - * @hide - */ - public void setContexthubId(int contexthubId) { - mContexthubId = contexthubId; - } - /** * get a handle to the nano app instance * @@ -283,17 +168,6 @@ public class NanoAppInstanceInfo { return mHandle; } - /** - * set the handle for an app instance - * - * @param handle - handle to this instance - * - * @hide - */ - public void setHandle(int handle) { - mHandle = handle; - } - private NanoAppInstanceInfo(Parcel in) { mPublisher = in.readString(); mName = in.readString(); -- cgit v1.2.3-59-g8ed1b