java.lang.Object | |
↳ | android.app.admin.SystemUpdatePolicy |
A class that represents a local system update policy set by the device owner.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | TYPE_INSTALL_AUTOMATIC | Install system update automatically as soon as one is available. | |||||||||
int | TYPE_INSTALL_WINDOWED | Install system update automatically within a daily maintenance window, for a maximum of 30 days. | |||||||||
int | TYPE_POSTPONE | Incoming system update will be blocked for a maximum of 30 days, after which the system should revert back to its normal behavior as if no policy were set. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a policy object and set it to install update automatically as soon as one is
available.
| |||||||||||
Create a policy object and set it to block installation for a maximum period of 30 days.
| |||||||||||
Create a policy object and set it to: new system update will only be installed automatically
when the system clock is inside a daily maintenance window.
| |||||||||||
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Get the end of the maintenance window.
| |||||||||||
Get the start of the maintenance window.
| |||||||||||
Returns the type of system update policy.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Install system update automatically as soon as one is available.
Install system update automatically within a daily maintenance window, for a maximum of 30
days. After the expiration the policy will no longer be effective and the system should
revert back to its normal behavior as if no policy were set. The only exception is
TYPE_INSTALL_AUTOMATIC
which should still take effect to install system update
immediately.
Incoming system update will be blocked for a maximum of 30 days, after which the system
should revert back to its normal behavior as if no policy were set. The only exception is
TYPE_INSTALL_AUTOMATIC
which should still take effect to install system update
immediately.
Create a policy object and set it to install update automatically as soon as one is available.
Create a policy object and set it to block installation for a maximum period of 30 days. After expiration the system should revert back to its normal behavior as if no policy were set.
Create a policy object and set it to: new system update will only be installed automatically
when the system clock is inside a daily maintenance window. If the start and end times are
the same, the window is considered to include the WHOLE 24 hours, that is, updates can
install at any time. If the given window in invalid, a IllegalArgumentException
will
be thrown. If start time is later than end time, the window is considered spanning midnight,
i.e. end time donates a time on the next day. The maintenance window will last for 30 days,
after which the system should revert back to its normal behavior as if no policy were set.
startTime | the start of the maintenance window, measured as the number of minutes from midnight in the device's local time. Must be in the range of [0, 1440). |
---|---|
endTime | the end of the maintenance window, measured as the number of minutes from midnight in the device's local time. Must be in the range of [0, 1440). |
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Get the end of the maintenance window.
Get the start of the maintenance window.
Returns the type of system update policy.
TYPE_INSTALL_AUTOMATIC
,
TYPE_INSTALL_WINDOWED
and TYPE_POSTPONE
, or -1 if no policy has been set.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|