Merge "Add feature flag for app hibernation." am: 7ae76a2f3f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1542244 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I93426f77dd93036f9a712db35e086eb11e8b627e
This commit is contained in:
@@ -7920,6 +7920,7 @@ package android.provider {
|
|||||||
field public static final String NAMESPACE_ACTIVITY_MANAGER = "activity_manager";
|
field public static final String NAMESPACE_ACTIVITY_MANAGER = "activity_manager";
|
||||||
field public static final String NAMESPACE_ACTIVITY_MANAGER_NATIVE_BOOT = "activity_manager_native_boot";
|
field public static final String NAMESPACE_ACTIVITY_MANAGER_NATIVE_BOOT = "activity_manager_native_boot";
|
||||||
field public static final String NAMESPACE_APP_COMPAT = "app_compat";
|
field public static final String NAMESPACE_APP_COMPAT = "app_compat";
|
||||||
|
field public static final String NAMESPACE_APP_HIBERNATION = "app_hibernation";
|
||||||
field public static final String NAMESPACE_ATTENTION_MANAGER_SERVICE = "attention_manager_service";
|
field public static final String NAMESPACE_ATTENTION_MANAGER_SERVICE = "attention_manager_service";
|
||||||
field public static final String NAMESPACE_AUTOFILL = "autofill";
|
field public static final String NAMESPACE_AUTOFILL = "autofill";
|
||||||
field public static final String NAMESPACE_BIOMETRICS = "biometrics";
|
field public static final String NAMESPACE_BIOMETRICS = "biometrics";
|
||||||
|
|||||||
@@ -91,6 +91,13 @@ public final class DeviceConfig {
|
|||||||
@SystemApi
|
@SystemApi
|
||||||
public static final String NAMESPACE_APP_COMPAT = "app_compat";
|
public static final String NAMESPACE_APP_COMPAT = "app_compat";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Namespace for all app hibernation related features.
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
@SystemApi
|
||||||
|
public static final String NAMESPACE_APP_HIBERNATION = "app_hibernation";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Namespace for AttentionManagerService related features.
|
* Namespace for AttentionManagerService related features.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2021 The Android Open Source Project
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.android.server.apphibernation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Flags and constants that modify app hibernation behavior.
|
||||||
|
*/
|
||||||
|
final class AppHibernationConstants {
|
||||||
|
|
||||||
|
private AppHibernationConstants() {}
|
||||||
|
|
||||||
|
// Device config feature flag for app hibernation
|
||||||
|
static final String KEY_APP_HIBERNATION_ENABLED = "app_hibernation_enabled";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user