Merge "Add @TestApi to StatusBarManager @SystemApi methods" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f96a3cbaa3
@@ -346,6 +346,20 @@ package android.app {
|
||||
method public android.graphics.Rect getSourceRectHint();
|
||||
}
|
||||
|
||||
public class StatusBarManager {
|
||||
method @NonNull @RequiresPermission(android.Manifest.permission.STATUS_BAR) public android.app.StatusBarManager.DisableInfo getDisableInfo();
|
||||
method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setDisabledForSetup(boolean);
|
||||
}
|
||||
|
||||
public static final class StatusBarManager.DisableInfo {
|
||||
method public boolean areAllComponentsEnabled();
|
||||
method public boolean isNavigateToHomeDisabled();
|
||||
method public boolean isNotificationPeekingDisabled();
|
||||
method public boolean isRecentsDisabled();
|
||||
method public boolean isSearchDisabled();
|
||||
method public boolean isStatusBarExpansionDisabled();
|
||||
}
|
||||
|
||||
public class TimePickerDialog extends android.app.AlertDialog implements android.content.DialogInterface.OnClickListener android.widget.TimePicker.OnTimeChangedListener {
|
||||
method public android.widget.TimePicker getTimePicker();
|
||||
}
|
||||
@@ -632,6 +646,7 @@ package android.content {
|
||||
method public void setContentCaptureOptions(@Nullable android.content.ContentCaptureOptions);
|
||||
field public static final String BUGREPORT_SERVICE = "bugreport";
|
||||
field public static final String ROLLBACK_SERVICE = "rollback";
|
||||
field public static final String STATUS_BAR_SERVICE = "statusbar";
|
||||
field public static final String TEST_NETWORK_SERVICE = "test_network";
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ import android.annotation.Nullable;
|
||||
import android.annotation.RequiresPermission;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.SystemService;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.os.Binder;
|
||||
@@ -366,6 +367,7 @@ public class StatusBarManager {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
@RequiresPermission(android.Manifest.permission.STATUS_BAR)
|
||||
public void setDisabledForSetup(boolean disabled) {
|
||||
try {
|
||||
@@ -390,6 +392,7 @@ public class StatusBarManager {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
@RequiresPermission(android.Manifest.permission.STATUS_BAR)
|
||||
@NonNull
|
||||
public DisableInfo getDisableInfo() {
|
||||
@@ -422,6 +425,7 @@ public class StatusBarManager {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final class DisableInfo {
|
||||
|
||||
private boolean mStatusBarExpansion;
|
||||
@@ -448,6 +452,7 @@ public class StatusBarManager {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public boolean isStatusBarExpansionDisabled() {
|
||||
return mStatusBarExpansion;
|
||||
}
|
||||
@@ -463,6 +468,7 @@ public class StatusBarManager {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public boolean isNavigateToHomeDisabled() {
|
||||
return mNavigateHome;
|
||||
}
|
||||
@@ -478,6 +484,7 @@ public class StatusBarManager {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public boolean isNotificationPeekingDisabled() {
|
||||
return mNotificationPeeking;
|
||||
}
|
||||
@@ -493,6 +500,7 @@ public class StatusBarManager {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public boolean isRecentsDisabled() {
|
||||
return mRecents;
|
||||
}
|
||||
@@ -508,6 +516,7 @@ public class StatusBarManager {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public boolean isSearchDisabled() {
|
||||
return mSearch;
|
||||
}
|
||||
@@ -523,6 +532,7 @@ public class StatusBarManager {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public boolean areAllComponentsEnabled() {
|
||||
return !mStatusBarExpansion && !mNavigateHome && !mNotificationPeeking && !mRecents
|
||||
&& !mSearch;
|
||||
|
||||
@@ -3678,6 +3678,7 @@ public abstract class Context {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
public static final String STATUS_BAR_SERVICE = "statusbar";
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user