summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Arthur Ishiguro <arthuri@google.com> 2017-12-11 12:24:15 -0800
committer Arthur Ishiguro <arthuri@google.com> 2017-12-13 10:57:24 -0800
commit3504737e462cfb669d91eb5a9f9bd745ba0fb08c (patch)
tree7710337e78b89106aadef68d331e885cfaaacc1a
parent2fc5a4b2e7ca8fa554050ba3329fa47733e97858 (diff)
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
-rw-r--r--core/java/android/hardware/location/NanoAppInstanceInfo.java126
1 files changed, 0 insertions, 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
*
@@ -94,17 +81,6 @@ public class NanoAppInstanceInfo {
}
/**
- * set the name of the app
- *
- * @param name - name of the app
- *
- * @hide
- */
- public void setName(String name) {
- mName = name;
- }
-
- /**
* Get the application identifier
*
* @return int - application identifier
@@ -114,17 +90,6 @@ public class NanoAppInstanceInfo {
}
/**
- * Set the application identifier
- *
- * @param appId - application identifier
- *
- * @hide
- */
- public void setAppId(long appId) {
- mAppId = appId;
- }
-
- /**
* Get the application version
*
* NOTE: There is a race condition where shortly after loading, this
@@ -139,17 +104,6 @@ public class NanoAppInstanceInfo {
}
/**
- * 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
*
* @return int - readable memory needed in bytes
@@ -159,17 +113,6 @@ public class NanoAppInstanceInfo {
}
/**
- * 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
*
* @return int - writable memory needed by the app
@@ -179,18 +122,6 @@ public class NanoAppInstanceInfo {
}
/**
- * 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
*
* @return int - executable memory needed by the app
@@ -200,18 +131,6 @@ public class NanoAppInstanceInfo {
}
/**
- * 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
*
* @return int[] all the required sensors needed by this app
@@ -222,17 +141,6 @@ public class NanoAppInstanceInfo {
}
/**
- * 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
*
* @return all the events that can be generated by this app
@@ -243,18 +151,6 @@ public class NanoAppInstanceInfo {
}
/**
- * 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
*
* @return int - system unique hub identifier
@@ -264,17 +160,6 @@ public class NanoAppInstanceInfo {
}
/**
- * 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
*
* @return int - handle to this 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();