Add Device Owner disclosure to Add Accounts dialog
This CL adds a footer to the Add Accounts dialog that tells the user when the device is managed by a Device Owner app. Bug: 32692748 Test: make RunSettingsRoboTests Change-Id: I0dd161eb0bbbc87c04692d4fa6547bd41dab05e0
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.settings.enterprise;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public interface EnterprisePrivacyFeatureProvider {
|
||||
@@ -31,6 +33,15 @@ public interface EnterprisePrivacyFeatureProvider {
|
||||
*/
|
||||
boolean isInCompMode();
|
||||
|
||||
/**
|
||||
* Returns a message informing the user that the device is managed by a Device Owner app. The
|
||||
* message includes a Learn More link that takes the user to the enterprise privacy section of
|
||||
* Settings. If the device is not managed by a Device Owner app, returns {@code null}.
|
||||
*
|
||||
* @param context The context in which to show the enterprise privacy section of Settings
|
||||
*/
|
||||
CharSequence getDeviceOwnerDisclosure(Context context);
|
||||
|
||||
/**
|
||||
* Returns the time at which the Device Owner last retrieved security logs, or {@code null} if
|
||||
* logs were never retrieved by the Device Owner on this device.
|
||||
|
||||
Reference in New Issue
Block a user