Populate Enterprise Privacy Settings page - batch 2
This CL adds the second batch of items to the Privacy Settings page. These are all the remaining items that fall into the "What types of information can your organization see?" category. Test: make RunSettingsRoboTests Bug: 32692748 Change-Id: I08569646ed6bb6f5d9d6d65ed2718be8456f50ae
This commit is contained in:
@@ -20,6 +20,8 @@ import android.content.pm.PackageManager;
|
||||
|
||||
import com.android.settings.applications.PackageManagerWrapper;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class EnterprisePrivacyFeatureProviderImpl implements EnterprisePrivacyFeatureProvider {
|
||||
|
||||
private final DevicePolicyManagerWrapper mDpm;
|
||||
@@ -38,4 +40,20 @@ public class EnterprisePrivacyFeatureProviderImpl implements EnterprisePrivacyFe
|
||||
}
|
||||
return mDpm.getDeviceOwnerComponentOnAnyUser() != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Date getLastSecurityLogRetrievalTime() {
|
||||
final long timestamp = mDpm.getLastSecurityLogRetrievalTime();
|
||||
return timestamp < 0 ? null : new Date(timestamp);
|
||||
}
|
||||
|
||||
public Date getLastBugReportRequestTime() {
|
||||
final long timestamp = mDpm.getLastBugReportRequestTime();
|
||||
return timestamp < 0 ? null : new Date(timestamp);
|
||||
}
|
||||
|
||||
public Date getLastNetworkLogRetrievalTime() {
|
||||
final long timestamp = mDpm.getLastNetworkLogRetrievalTime();
|
||||
return timestamp < 0 ? null : new Date(timestamp);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user