OSDN Git Service

Remove @SystemApi annotation from private or package-private members
authorJiyong Park <jiyong@google.com>
Wed, 3 Jan 2018 00:50:28 +0000 (09:50 +0900)
committerJiyong Park <jiyong@google.com>
Wed, 3 Jan 2018 01:03:38 +0000 (10:03 +0900)
Some private or package-private members have been marked as @SystemApi,
which do not make sense as they aren't accessible to apps due to the
access modifier. Having annotation on such members hasn't been harmful,
but will soon trigger CTS failures when we do the exact match for
SystemAPIs; a runtime entity annotated as @SystemApi have to exist in
the documented API (e.g. system-current.txt). So, removing the bogus
annotations.

Bug: 67891551
Test: m -j does not require m update-system-api
Change-Id: I0083475ef5435cf9a582c2ce1be469c92328fe69

core/java/android/app/backup/BackupManager.java
core/java/android/hardware/hdmi/HdmiTimerRecordSources.java
core/java/android/view/WindowManagerPolicyConstants.java

index 6512b98..3a6a5b2 100644 (file)
@@ -707,7 +707,6 @@ public class BackupManager {
      * redirects them into main-thread actions.  This serializes the backup
      * progress callbacks nicely within the usual main-thread lifecycle pattern.
      */
-    @SystemApi
     private class BackupObserverWrapper extends IBackupObserver.Stub {
         final Handler mHandler;
         final BackupObserver mObserver;
index 6fe13ca..d7c2e1b 100644 (file)
@@ -187,7 +187,6 @@ public class HdmiTimerRecordSources {
      * Base class for time-related information.
      * @hide
      */
-    @SystemApi
     /* package */ static class TimeUnit {
         /* package */ final int mHour;
         /* package */ final int mMinute;
index 21943bd..9c1c9e3 100644 (file)
@@ -18,8 +18,6 @@ package android.view;
 
 import static android.view.Display.DEFAULT_DISPLAY;
 
-import android.annotation.SystemApi;
-
 /**
  * Constants for interfacing with WindowManagerService and WindowManagerPolicyInternal.
  * @hide
@@ -62,7 +60,6 @@ public interface WindowManagerPolicyConstants {
      * Set to {@code true} when intent was invoked from pressing the home key.
      * @hide
      */
-    @SystemApi
     String EXTRA_FROM_HOME_KEY = "android.intent.extra.FROM_HOME_KEY";
 
     // TODO: move this to a more appropriate place.