summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2019-03-29 11:38:16 -0700
committerSunny Goyal <sunnygoyal@google.com>2019-03-29 11:38:55 -0700
commitbeee197b998ea9edf9aba648dc20028fed180226 (patch)
treec2a7ab6f30515918889c7a1a09b766f5d3c8178e /core/java
parent9d4dfc2ba0e5b780c71bef9b197153d63e6ef94d (diff)
Removing API to access app usage as it is no long public
Bug: 117409586 Bug: 124126265 Test: N/A Change-Id: If3cd71ef7f8932dfc6680557b1e84338cfed3852
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/content/pm/LauncherApps.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/content/pm/LauncherApps.java b/core/java/android/content/pm/LauncherApps.java
index 954deac97d6d..037a149bfe37 100644
--- a/core/java/android/content/pm/LauncherApps.java
+++ b/core/java/android/content/pm/LauncherApps.java
@@ -22,6 +22,7 @@ import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SdkConstant;
import android.annotation.SdkConstant.SdkConstantType;
+import android.annotation.SystemApi;
import android.annotation.SystemService;
import android.annotation.TestApi;
import android.annotation.UnsupportedAppUsage;
@@ -782,8 +783,10 @@ public class LauncherApps {
* @return an {@link AppUsageLimit} object describing the app time limit containing
* the given package with the smallest time remaining, or {@code null} if none exist.
* @throws SecurityException when the caller is not the recents app.
+ * @hide
*/
@Nullable
+ @SystemApi
public LauncherApps.AppUsageLimit getAppUsageLimit(@NonNull String packageName,
@NonNull UserHandle user) {
try {
@@ -1739,7 +1742,9 @@ public class LauncherApps {
* in this class.
*
* @see #getAppUsageLimit(String, UserHandle)
+ * @hide
*/
+ @SystemApi
public static final class AppUsageLimit implements Parcelable {
private final long mTotalUsageLimit;
private final long mUsageRemaining;