diff options
author | Robert Horvath <robhor@google.com> | 2020-03-13 11:41:50 +0100 |
---|---|---|
committer | Robert Horvath <robhor@google.com> | 2020-04-17 13:23:28 +0200 |
commit | 2de92474a79a47502a6f2a5805a05e147848de7d (patch) | |
tree | a499729696f0d22cbdfc865137df3f9b695cc728 /api | |
parent | b22f2113544f2bcb6929857df0de8b17c41dfb8b (diff) | |
download | tvsystem-2de92474a79a47502a6f2a5805a05e147848de7d.tar.gz |
Add user management APIs to TvSystem
To be used for profile management applications.
These APIs mostly just forward calls to hidden system APIs.
The #createManagedProfile method additionally modifies the passed in
list to make sure disallowed packages are not installed for the new
profile, and required packages are.
All APIs operate on the user that owns the passed in context.
Bug: 149465312
Test: m
Test: Call method from support library in sample app
Change-Id: I0b96916071e1facdf4e01dc4936580e7daf44375
(cherry picked from commit 39f53e794161f311aeea5df13b0e9dfd0b20d0ea)
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index fa68a6a..bc42215 100644 --- a/api/current.txt +++ b/api/current.txt @@ -27,3 +27,28 @@ package com.android.libraries.tv.tvsystem.display { } +package com.android.libraries.tv.tvsystem.user { + + public interface ITvUserManager { + method @Nullable public android.os.UserHandle createManagedProfile(@NonNull String, @Nullable String[]) throws android.os.UserManager.UserOperationException; + method @Nullable public android.graphics.Bitmap getUserIcon(); + method @NonNull public String getUserName(); + method @NonNull public java.util.List<android.os.UserHandle> getUserProfiles(boolean); + method public boolean isManagedProfile(); + method public void setUserIcon(@NonNull android.graphics.Bitmap); + method public void setUserName(@Nullable String); + } + + public final class TvUserManager implements com.android.libraries.tv.tvsystem.user.ITvUserManager { + ctor public TvUserManager(android.content.Context); + method public android.os.UserHandle createManagedProfile(@NonNull String, @Nullable String[]); + method @Nullable public android.graphics.Bitmap getUserIcon(); + method @NonNull public String getUserName(); + method @NonNull public java.util.List<android.os.UserHandle> getUserProfiles(boolean); + method public boolean isManagedProfile(); + method public void setUserIcon(@NonNull android.graphics.Bitmap); + method public void setUserName(@Nullable String); + } + +} + |