Revert "make isUiModeLocked, isNightModeLocked test api"

This reverts commit b493a7dffe.

Change-Id: I651b7ee5b9ca5d7fa1cde1c625bbaa585e186544
This commit is contained in:
Keun-young Park
2016-03-01 22:58:15 +00:00
parent b493a7dffe
commit 92373d23ee
3 changed files with 4 additions and 5 deletions

View File

@@ -5609,6 +5609,8 @@ package android.app {
method public void enableCarMode(int);
method public int getCurrentModeType();
method public int getNightMode();
method public boolean isNightModeLocked();
method public boolean isUiModeLocked();
method public void setNightMode(int);
field public static java.lang.String ACTION_ENTER_CAR_MODE;
field public static java.lang.String ACTION_ENTER_DESK_MODE;

View File

@@ -5741,6 +5741,8 @@ package android.app {
method public void enableCarMode(int);
method public int getCurrentModeType();
method public int getNightMode();
method public boolean isNightModeLocked();
method public boolean isUiModeLocked();
method public void setNightMode(int);
field public static java.lang.String ACTION_ENTER_CAR_MODE;
field public static java.lang.String ACTION_ENTER_DESK_MODE;

View File

@@ -17,7 +17,6 @@
package android.app;
import android.annotation.IntDef;
import android.annotation.TestApi;
import android.content.Context;
import android.content.res.Configuration;
import android.os.RemoteException;
@@ -267,9 +266,7 @@ public class UiModeManager {
/**
* @return If UI mode is locked or not. When UI mode is locked, calls to change UI mode
* like {@link #enableCarMode(int)} will silently fail.
* @hide
*/
@TestApi
public boolean isUiModeLocked() {
if (mService != null) {
try {
@@ -289,9 +286,7 @@ public class UiModeManager {
* mode will fail silently.
*
* @return {@code true} if night mode is locked or {@code false} otherwise
* @hide
*/
@TestApi
public boolean isNightModeLocked() {
if (mService != null) {
try {