Home
last modified time | relevance | path

Searched refs:mDevicePolicyManager (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/cmds/dpm/src/com/android/commands/dpm/
DDpm.java45 private IDevicePolicyManager mDevicePolicyManager; field in Dpm
69 mDevicePolicyManager = IDevicePolicyManager.Stub.asInterface( in onRun()
71 if (mDevicePolicyManager == null) { in onRun()
103 mDevicePolicyManager.setActiveAdmin(mComponent, true /*refreshing*/, mUserId); in runSetActiveAdmin()
110 mDevicePolicyManager.setActiveAdmin(component, true /*refreshing*/, UserHandle.USER_OWNER); in runSetDeviceOwner()
114 if (!mDevicePolicyManager.setDeviceOwner(packageName, null /*ownerName*/)) { in runSetDeviceOwner()
120 mDevicePolicyManager.removeActiveAdmin(component, UserHandle.USER_OWNER); in runSetDeviceOwner()
131 mDevicePolicyManager.setActiveAdmin(component, true /*refreshing*/, userId); in runSetProfileOwner()
134 if (!mDevicePolicyManager.setProfileOwner(component, "" /*ownerName*/, userId)) { in runSetProfileOwner()
140 mDevicePolicyManager.removeActiveAdmin(component, userId); in runSetProfileOwner()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java55 private final DevicePolicyManager mDevicePolicyManager; field in SecurityControllerImpl
66 mDevicePolicyManager = (DevicePolicyManager) in SecurityControllerImpl()
85 return !TextUtils.isEmpty(mDevicePolicyManager.getDeviceOwner()); in hasDeviceOwner()
90 return !TextUtils.isEmpty(mDevicePolicyManager.getProfileOwnerNameAsUser(mCurrentUserId)); in hasProfileOwner()
95 return mDevicePolicyManager.getDeviceOwnerName(); in getDeviceOwnerName()
100 return mDevicePolicyManager.getProfileOwnerNameAsUser(mCurrentUserId); in getProfileOwnerName()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java165 private DevicePolicyManager mDevicePolicyManager; field in LockPatternUtils
174 if (mDevicePolicyManager == null) { in getDevicePolicyManager()
175 mDevicePolicyManager = in getDevicePolicyManager()
177 if (mDevicePolicyManager == null) { in getDevicePolicyManager()
182 return mDevicePolicyManager; in getDevicePolicyManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DBaseStatusBar.java192 protected DevicePolicyManager mDevicePolicyManager; field in BaseStatusBar
499 mDevicePolicyManager = (DevicePolicyManager)mContext.getSystemService( in start()
1195 final int dpmFlags = mDevicePolicyManager.getKeyguardDisabledFeatures(null /* admin */,
1808 final int dpmFlags = mDevicePolicyManager.getKeyguardDisabledFeatures(
/frameworks/base/services/core/java/com/android/server/am/
DActivityStackSupervisor.java161 private IDevicePolicyManager mDevicePolicyManager; field in ActivityStackSupervisor
335 if (mDevicePolicyManager == null) { in getDevicePolicyManager()
336 mDevicePolicyManager = IDevicePolicyManager.Stub.asInterface( in getDevicePolicyManager()
338 if (mDevicePolicyManager == null) { in getDevicePolicyManager()
342 return mDevicePolicyManager; in getDevicePolicyManager()