From 45bd53282215d85af64dfeaa40b533311168a304 Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Wed, 12 Dec 2018 19:10:58 +0100 Subject: API: Clean up redundant and ineffective usages of SystemApi and TestApi (2/2) Everything that is marked SystemApi or TestApi, but not @hide is still part of the public SDK, it is therefore not sound to have that combination. In the future, specifing such a combination will be considered an error to prevent inadvertently exposing SystemApi and TestApi as public API. Bug: 115333477 Test: METALAVA_PREPEND_ARGS="--error UnhiddenSystemApi" m checkapi Change-Id: I6d370e8ffcb9e7cd2859c310c555a2a847c70ae8 Exempt-From-Owner-Approval: API cleanup --- core/java/android/app/VrManager.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/java/android/app/VrManager.java b/core/java/android/app/VrManager.java index 66d7a2507bb7..b1465ae9a798 100644 --- a/core/java/android/app/VrManager.java +++ b/core/java/android/app/VrManager.java @@ -4,7 +4,6 @@ import android.annotation.NonNull; import android.annotation.RequiresPermission; import android.annotation.SystemApi; import android.annotation.SystemService; -import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; import android.content.ComponentName; import android.content.Context; @@ -230,7 +229,6 @@ public class VrManager { * input by InputMethodManagerService. * @hide */ - @TestApi @RequiresPermission(android.Manifest.permission.RESTRICTED_VR_ACCESS) public void setVrInputMethod(ComponentName componentName) { try { -- cgit v1.2.3-59-g8ed1b