OSDN Git Service

Fix the javadoc of setAutoTimeRequired.
authorAlex Kershaw <alexkershaw@google.com>
Mon, 1 Apr 2019 12:24:54 +0000 (13:24 +0100)
committerAlex Kershaw <alexkershaw@google.com>
Mon, 1 Apr 2019 12:24:54 +0000 (13:24 +0100)
Fix the javadoc of DevicePolicyManager#setAutoTimeRequired to mention
that PO support is only from O onwards.

Fixes: 126325573
Test: Javadoc change only
Change-Id: Ib415e20a312d2cc454843562bff6cc0eb1e98244

core/java/android/app/admin/DevicePolicyManager.java

index 9a4e215..a3f7f5f 100644 (file)
@@ -5437,13 +5437,14 @@ public class DevicePolicyManager {
     }
 
     /**
-     * Called by a device or profile owner to set whether auto time is required. If auto time is
-     * required, no user will be able set the date and time and network date and time will be used.
+     * Called by a device owner, or alternatively a profile owner from Android 8.0 (API level 26) or
+     * higher, to set whether auto time is required. If auto time is required, no user will be able
+     * set the date and time and network date and time will be used.
      * <p>
      * Note: if auto time is required the user can still manually set the time zone.
      * <p>
-     * The calling device admin must be a device or profile owner. If it is not, a security
-     * exception will be thrown.
+     * The calling device admin must be a device owner, or alternatively a profile owner from
+     * Android 8.0 (API level 26) or higher. If it is not, a security exception will be thrown.
      *
      * @param admin Which {@link DeviceAdminReceiver} this request is associated with.
      * @param required Whether auto time is set required or not.