Loading api/current.txt +4 −0 Original line number Diff line number Diff line Loading @@ -6398,6 +6398,7 @@ package android.app.admin { method public java.util.List<java.lang.String> getDelegatePackages(android.content.ComponentName, java.lang.String); method public java.util.List<java.lang.String> getDelegatedScopes(android.content.ComponentName, java.lang.String); method public java.lang.CharSequence getDeviceOwnerLockScreenInfo(); method public java.lang.CharSequence getEndUserSessionMessage(android.content.ComponentName); method public java.util.List<byte[]> getInstalledCaCerts(android.content.ComponentName); method public java.util.List<java.lang.String> getKeepUninstalledPackages(android.content.ComponentName); method public int getKeyguardDisabledFeatures(android.content.ComponentName); Loading Loading @@ -6433,6 +6434,7 @@ package android.app.admin { method public boolean getScreenCaptureDisabled(android.content.ComponentName); method public java.util.List<android.os.UserHandle> getSecondaryUsers(android.content.ComponentName); method public java.lang.CharSequence getShortSupportMessage(android.content.ComponentName); method public java.lang.CharSequence getStartUserSessionMessage(android.content.ComponentName); method public boolean getStorageEncryption(android.content.ComponentName); method public int getStorageEncryptionStatus(); method public android.app.admin.SystemUpdatePolicy getSystemUpdatePolicy(); Loading Loading @@ -6495,6 +6497,7 @@ package android.app.admin { method public void setCrossProfileContactsSearchDisabled(android.content.ComponentName, boolean); method public void setDelegatedScopes(android.content.ComponentName, java.lang.String, java.util.List<java.lang.String>); method public void setDeviceOwnerLockScreenInfo(android.content.ComponentName, java.lang.CharSequence); method public void setEndUserSessionMessage(android.content.ComponentName, java.lang.CharSequence); method public void setGlobalSetting(android.content.ComponentName, java.lang.String, java.lang.String); method public void setKeepUninstalledPackages(android.content.ComponentName, java.util.List<java.lang.String>); method public boolean setKeyPairCertificate(android.content.ComponentName, java.lang.String, java.util.List<java.security.cert.Certificate>, boolean); Loading Loading @@ -6538,6 +6541,7 @@ package android.app.admin { method public void setSecureSetting(android.content.ComponentName, java.lang.String, java.lang.String); method public void setSecurityLoggingEnabled(android.content.ComponentName, boolean); method public void setShortSupportMessage(android.content.ComponentName, java.lang.CharSequence); method public void setStartUserSessionMessage(android.content.ComponentName, java.lang.CharSequence); method public boolean setStatusBarDisabled(android.content.ComponentName, boolean); method public int setStorageEncryption(android.content.ComponentName, boolean); method public void setSystemSetting(android.content.ComponentName, java.lang.String, java.lang.String); core/java/android/app/ActivityManagerInternal.java +10 −0 Original line number Diff line number Diff line Loading @@ -324,4 +324,14 @@ public abstract class ActivityManagerInternal { * Returns if more users can be started without stopping currently running users. */ public abstract boolean canStartMoreUsers(); /** * Sets the user switcher message for switching from {@link android.os.UserHandle#SYSTEM}. */ public abstract void setSwitchingFromSystemUserMessage(String switchingFromSystemUserMessage); /** * Sets the user switcher message for switching to {@link android.os.UserHandle#SYSTEM}. */ public abstract void setSwitchingToSystemUserMessage(String switchingToSystemUserMessage); } core/java/android/app/admin/DevicePolicyManager.java +80 −0 Original line number Diff line number Diff line Loading @@ -9117,4 +9117,84 @@ public class DevicePolicyManager { throw re.rethrowFromSystemServer(); } } /** * Called by a device owner to specify the user session start message. This may be displayed * during a user switch. * <p> * The message should be limited to a short statement or it may be truncated. * <p> * If the message needs to be localized, it is the responsibility of the * {@link DeviceAdminReceiver} to listen to the {@link Intent#ACTION_LOCALE_CHANGED} broadcast * and set a new version of this message accordingly. * * @param admin which {@link DeviceAdminReceiver} this request is associated with. * @param startUserSessionMessage message for starting user session, or {@code null} to use * system default message. * @throws SecurityException if {@code admin} is not a device owner. */ public void setStartUserSessionMessage( @NonNull ComponentName admin, @Nullable CharSequence startUserSessionMessage) { throwIfParentInstance("setStartUserSessionMessage"); try { mService.setStartUserSessionMessage(admin, startUserSessionMessage); } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } } /** * Called by a device owner to specify the user session end message. This may be displayed * during a user switch. * <p> * The message should be limited to a short statement or it may be truncated. * <p> * If the message needs to be localized, it is the responsibility of the * {@link DeviceAdminReceiver} to listen to the {@link Intent#ACTION_LOCALE_CHANGED} broadcast * and set a new version of this message accordingly. * * @param admin which {@link DeviceAdminReceiver} this request is associated with. * @param endUserSessionMessage message for ending user session, or {@code null} to use system * default message. * @throws SecurityException if {@code admin} is not a device owner. */ public void setEndUserSessionMessage( @NonNull ComponentName admin, @Nullable CharSequence endUserSessionMessage) { throwIfParentInstance("setEndUserSessionMessage"); try { mService.setEndUserSessionMessage(admin, endUserSessionMessage); } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } } /** * Returns the user session start message. * * @param admin which {@link DeviceAdminReceiver} this request is associated with. * @throws SecurityException if {@code admin} is not a device owner. */ public CharSequence getStartUserSessionMessage(@NonNull ComponentName admin) { throwIfParentInstance("getStartUserSessionMessage"); try { return mService.getStartUserSessionMessage(admin); } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } } /** * Returns the user session end message. * * @param admin which {@link DeviceAdminReceiver} this request is associated with. * @throws SecurityException if {@code admin} is not a device owner. */ public CharSequence getEndUserSessionMessage(@NonNull ComponentName admin) { throwIfParentInstance("getEndUserSessionMessage"); try { return mService.getEndUserSessionMessage(admin); } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } } } core/java/android/app/admin/IDevicePolicyManager.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -391,4 +391,9 @@ interface IDevicePolicyManager { List<String> getDisallowedSystemApps(in ComponentName admin, int userId, String provisioningAction); void transferOwnership(in ComponentName admin, in ComponentName target, in PersistableBundle bundle); void setStartUserSessionMessage(in ComponentName admin, in CharSequence startUserSessionMessage); void setEndUserSessionMessage(in ComponentName admin, in CharSequence endUserSessionMessage); CharSequence getStartUserSessionMessage(in ComponentName admin); CharSequence getEndUserSessionMessage(in ComponentName admin); } services/core/java/com/android/server/am/ActivityManagerService.java +10 −0 Original line number Diff line number Diff line Loading @@ -25130,6 +25130,16 @@ public class ActivityManagerService extends IActivityManager.Stub public boolean canStartMoreUsers() { return mUserController.canStartMoreUsers(); } @Override public void setSwitchingFromSystemUserMessage(String switchingFromSystemUserMessage) { mUserController.setSwitchingFromSystemUserMessage(switchingFromSystemUserMessage); } @Override public void setSwitchingToSystemUserMessage(String switchingToSystemUserMessage) { mUserController.setSwitchingToSystemUserMessage(switchingToSystemUserMessage); } } /** Loading
api/current.txt +4 −0 Original line number Diff line number Diff line Loading @@ -6398,6 +6398,7 @@ package android.app.admin { method public java.util.List<java.lang.String> getDelegatePackages(android.content.ComponentName, java.lang.String); method public java.util.List<java.lang.String> getDelegatedScopes(android.content.ComponentName, java.lang.String); method public java.lang.CharSequence getDeviceOwnerLockScreenInfo(); method public java.lang.CharSequence getEndUserSessionMessage(android.content.ComponentName); method public java.util.List<byte[]> getInstalledCaCerts(android.content.ComponentName); method public java.util.List<java.lang.String> getKeepUninstalledPackages(android.content.ComponentName); method public int getKeyguardDisabledFeatures(android.content.ComponentName); Loading Loading @@ -6433,6 +6434,7 @@ package android.app.admin { method public boolean getScreenCaptureDisabled(android.content.ComponentName); method public java.util.List<android.os.UserHandle> getSecondaryUsers(android.content.ComponentName); method public java.lang.CharSequence getShortSupportMessage(android.content.ComponentName); method public java.lang.CharSequence getStartUserSessionMessage(android.content.ComponentName); method public boolean getStorageEncryption(android.content.ComponentName); method public int getStorageEncryptionStatus(); method public android.app.admin.SystemUpdatePolicy getSystemUpdatePolicy(); Loading Loading @@ -6495,6 +6497,7 @@ package android.app.admin { method public void setCrossProfileContactsSearchDisabled(android.content.ComponentName, boolean); method public void setDelegatedScopes(android.content.ComponentName, java.lang.String, java.util.List<java.lang.String>); method public void setDeviceOwnerLockScreenInfo(android.content.ComponentName, java.lang.CharSequence); method public void setEndUserSessionMessage(android.content.ComponentName, java.lang.CharSequence); method public void setGlobalSetting(android.content.ComponentName, java.lang.String, java.lang.String); method public void setKeepUninstalledPackages(android.content.ComponentName, java.util.List<java.lang.String>); method public boolean setKeyPairCertificate(android.content.ComponentName, java.lang.String, java.util.List<java.security.cert.Certificate>, boolean); Loading Loading @@ -6538,6 +6541,7 @@ package android.app.admin { method public void setSecureSetting(android.content.ComponentName, java.lang.String, java.lang.String); method public void setSecurityLoggingEnabled(android.content.ComponentName, boolean); method public void setShortSupportMessage(android.content.ComponentName, java.lang.CharSequence); method public void setStartUserSessionMessage(android.content.ComponentName, java.lang.CharSequence); method public boolean setStatusBarDisabled(android.content.ComponentName, boolean); method public int setStorageEncryption(android.content.ComponentName, boolean); method public void setSystemSetting(android.content.ComponentName, java.lang.String, java.lang.String);
core/java/android/app/ActivityManagerInternal.java +10 −0 Original line number Diff line number Diff line Loading @@ -324,4 +324,14 @@ public abstract class ActivityManagerInternal { * Returns if more users can be started without stopping currently running users. */ public abstract boolean canStartMoreUsers(); /** * Sets the user switcher message for switching from {@link android.os.UserHandle#SYSTEM}. */ public abstract void setSwitchingFromSystemUserMessage(String switchingFromSystemUserMessage); /** * Sets the user switcher message for switching to {@link android.os.UserHandle#SYSTEM}. */ public abstract void setSwitchingToSystemUserMessage(String switchingToSystemUserMessage); }
core/java/android/app/admin/DevicePolicyManager.java +80 −0 Original line number Diff line number Diff line Loading @@ -9117,4 +9117,84 @@ public class DevicePolicyManager { throw re.rethrowFromSystemServer(); } } /** * Called by a device owner to specify the user session start message. This may be displayed * during a user switch. * <p> * The message should be limited to a short statement or it may be truncated. * <p> * If the message needs to be localized, it is the responsibility of the * {@link DeviceAdminReceiver} to listen to the {@link Intent#ACTION_LOCALE_CHANGED} broadcast * and set a new version of this message accordingly. * * @param admin which {@link DeviceAdminReceiver} this request is associated with. * @param startUserSessionMessage message for starting user session, or {@code null} to use * system default message. * @throws SecurityException if {@code admin} is not a device owner. */ public void setStartUserSessionMessage( @NonNull ComponentName admin, @Nullable CharSequence startUserSessionMessage) { throwIfParentInstance("setStartUserSessionMessage"); try { mService.setStartUserSessionMessage(admin, startUserSessionMessage); } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } } /** * Called by a device owner to specify the user session end message. This may be displayed * during a user switch. * <p> * The message should be limited to a short statement or it may be truncated. * <p> * If the message needs to be localized, it is the responsibility of the * {@link DeviceAdminReceiver} to listen to the {@link Intent#ACTION_LOCALE_CHANGED} broadcast * and set a new version of this message accordingly. * * @param admin which {@link DeviceAdminReceiver} this request is associated with. * @param endUserSessionMessage message for ending user session, or {@code null} to use system * default message. * @throws SecurityException if {@code admin} is not a device owner. */ public void setEndUserSessionMessage( @NonNull ComponentName admin, @Nullable CharSequence endUserSessionMessage) { throwIfParentInstance("setEndUserSessionMessage"); try { mService.setEndUserSessionMessage(admin, endUserSessionMessage); } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } } /** * Returns the user session start message. * * @param admin which {@link DeviceAdminReceiver} this request is associated with. * @throws SecurityException if {@code admin} is not a device owner. */ public CharSequence getStartUserSessionMessage(@NonNull ComponentName admin) { throwIfParentInstance("getStartUserSessionMessage"); try { return mService.getStartUserSessionMessage(admin); } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } } /** * Returns the user session end message. * * @param admin which {@link DeviceAdminReceiver} this request is associated with. * @throws SecurityException if {@code admin} is not a device owner. */ public CharSequence getEndUserSessionMessage(@NonNull ComponentName admin) { throwIfParentInstance("getEndUserSessionMessage"); try { return mService.getEndUserSessionMessage(admin); } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } } }
core/java/android/app/admin/IDevicePolicyManager.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -391,4 +391,9 @@ interface IDevicePolicyManager { List<String> getDisallowedSystemApps(in ComponentName admin, int userId, String provisioningAction); void transferOwnership(in ComponentName admin, in ComponentName target, in PersistableBundle bundle); void setStartUserSessionMessage(in ComponentName admin, in CharSequence startUserSessionMessage); void setEndUserSessionMessage(in ComponentName admin, in CharSequence endUserSessionMessage); CharSequence getStartUserSessionMessage(in ComponentName admin); CharSequence getEndUserSessionMessage(in ComponentName admin); }
services/core/java/com/android/server/am/ActivityManagerService.java +10 −0 Original line number Diff line number Diff line Loading @@ -25130,6 +25130,16 @@ public class ActivityManagerService extends IActivityManager.Stub public boolean canStartMoreUsers() { return mUserController.canStartMoreUsers(); } @Override public void setSwitchingFromSystemUserMessage(String switchingFromSystemUserMessage) { mUserController.setSwitchingFromSystemUserMessage(switchingFromSystemUserMessage); } @Override public void setSwitchingToSystemUserMessage(String switchingToSystemUserMessage) { mUserController.setSwitchingToSystemUserMessage(switchingToSystemUserMessage); } } /**