Home | History | Annotate | Download | only in admin

Lines Matching refs:policy

33  * A class that represents a local system update policy set by the device owner.
49 * Unknown policy type, used only internally.
59 * days. After the expiration the policy will no longer be effective and the system should
60 * revert back to its normal behavior as if no policy were set. The only exception is
68 * should revert back to its normal behavior as if no policy were set. The only exception is
94 * Create a policy object and set it to install update automatically as soon as one is
100 SystemUpdatePolicy policy = new SystemUpdatePolicy();
101 policy.mPolicyType = TYPE_INSTALL_AUTOMATIC;
102 return policy;
106 * Create a policy object and set it to: new system update will only be installed automatically
112 * after which the system should revert back to its normal behavior as if no policy were set.
125 SystemUpdatePolicy policy = new SystemUpdatePolicy();
126 policy.mPolicyType = TYPE_INSTALL_WINDOWED;
127 policy.mMaintenanceWindowStart = startTime;
128 policy.mMaintenanceWindowEnd = endTime;
129 return policy;
133 * Create a policy object and set it to block installation for a maximum period of 30 days.
134 * After expiration the system should revert back to its normal behavior as if no policy were
140 SystemUpdatePolicy policy = new SystemUpdatePolicy();
141 policy.mPolicyType = TYPE_POSTPONE;
142 return policy;
146 * Returns the type of system update policy.
149 * {@link #TYPE_INSTALL_WINDOWED} and {@link #TYPE_POSTPONE}, or -1 if no policy has been set.
160 * or -1 if the policy does not have a maintenance window.
174 * or -1 if the policy does not have a maintenance window.
185 * Return if this object represents a valid policy.
222 SystemUpdatePolicy policy = new SystemUpdatePolicy();
223 policy.mPolicyType = source.readInt();
224 policy.mMaintenanceWindowStart = source.readInt();
225 policy.mMaintenanceWindowEnd = source.readInt();
226 return policy;
241 SystemUpdatePolicy policy = new SystemUpdatePolicy();
244 policy.mPolicyType = Integer.parseInt(value);
248 policy.mMaintenanceWindowStart = Integer.parseInt(value);
252 policy.mMaintenanceWindowEnd = Integer.parseInt(value);
254 return policy;