Merge "Fix parent check for isDeviceFinanced." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
be630d3635
@@ -8716,6 +8716,7 @@ public class DevicePolicyManager {
|
|||||||
*/
|
*/
|
||||||
@RequiresPermission(value = SET_TIME, conditional = true)
|
@RequiresPermission(value = SET_TIME, conditional = true)
|
||||||
public void setAutoTimeEnabled(@Nullable ComponentName admin, boolean enabled) {
|
public void setAutoTimeEnabled(@Nullable ComponentName admin, boolean enabled) {
|
||||||
|
throwIfParentInstance("setAutoTimeEnabled");
|
||||||
if (mService != null) {
|
if (mService != null) {
|
||||||
try {
|
try {
|
||||||
mService.setAutoTimeEnabled(admin, mContext.getPackageName(), enabled);
|
mService.setAutoTimeEnabled(admin, mContext.getPackageName(), enabled);
|
||||||
@@ -16938,6 +16939,7 @@ public class DevicePolicyManager {
|
|||||||
* android.app.role.RoleManager.ROLE_SYSTEM_SUPERVISION.
|
* android.app.role.RoleManager.ROLE_SYSTEM_SUPERVISION.
|
||||||
*/
|
*/
|
||||||
public boolean isDeviceFinanced() {
|
public boolean isDeviceFinanced() {
|
||||||
|
throwIfParentInstance("isDeviceFinanced");
|
||||||
if (mService != null) {
|
if (mService != null) {
|
||||||
try {
|
try {
|
||||||
return mService.isDeviceFinanced(mContext.getPackageName());
|
return mService.isDeviceFinanced(mContext.getPackageName());
|
||||||
|
|||||||
Reference in New Issue
Block a user