Searched refs:mDevicePolicyManager (Results 1 - 13 of 13) sorted by relevance

/frameworks/base/cmds/dpm/src/com/android/commands/dpm/
H A DDpm.java49 private IDevicePolicyManager mDevicePolicyManager; field in class:Dpm
83 mDevicePolicyManager = IDevicePolicyManager.Stub.asInterface(
85 if (mDevicePolicyManager == null) {
138 mDevicePolicyManager.setActiveAdmin(mComponent, true /*refreshing*/, mUserId);
145 mDevicePolicyManager.setActiveAdmin(mComponent, true /*refreshing*/, mUserId);
148 if (!mDevicePolicyManager.setDeviceOwner(mComponent, mName, mUserId)) {
154 mDevicePolicyManager.removeActiveAdmin(mComponent, UserHandle.USER_SYSTEM);
158 mDevicePolicyManager.setUserProvisioningState(
167 mDevicePolicyManager.forceRemoveActiveAdmin(mComponent, mUserId);
173 mDevicePolicyManager
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DKeyguardIndicationControllerTest.java57 private DevicePolicyManager mDevicePolicyManager = mock(DevicePolicyManager.class); field in class:KeyguardIndicationControllerTest
69 mContext.addMockSystemService(Context.DEVICE_POLICY_SERVICE, mDevicePolicyManager);
90 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false);
99 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true);
100 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(null);
110 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true);
111 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(ORGANIZATION_NAME);
121 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false);
127 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true);
128 when(mDevicePolicyManager
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DMockLockSettingsContext.java32 private DevicePolicyManager mDevicePolicyManager; field in class:MockLockSettingsContext
42 mDevicePolicyManager = devicePolicyManager;
54 return mDevicePolicyManager;
H A DBaseLockSettingsServiceTests.java77 DevicePolicyManager mDevicePolicyManager; field in class:BaseLockSettingsServiceTests
90 mDevicePolicyManager = mock(DevicePolicyManager.class);
93 mDevicePolicyManager, mock(StorageManager.class), mock(TrustManager.class));
134 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(
H A DSyntheticPasswordTests.java287 verify(mDevicePolicyManager).setActivePasswordState(metric, PRIMARY_USER_ID);
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
H A DRestrictedLockUtilsTest.java53 private DevicePolicyManager mDevicePolicyManager; field in class:RestrictedLockUtilsTest
69 .thenReturn(mDevicePolicyManager);
90 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin1, mUserId))
103 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin1, mUserId))
105 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin2, mUserId))
121 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin1, mUserId))
123 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin2, mProfileId))
150 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin1, mUserId))
152 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin2, mProfileId))
174 when(mDevicePolicyManager
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
H A DWorkLockActivityTest.java54 private @Mock DevicePolicyManager mDevicePolicyManager; field in class:WorkLockActivityTest
72 .thenReturn(mDevicePolicyManager);
85 when(mDevicePolicyManager.getOrganizationColorForUser(eq(USER_ID))).thenReturn(orgColor);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSecurityControllerImpl.java77 private final DevicePolicyManager mDevicePolicyManager; field in class:SecurityControllerImpl
99 mDevicePolicyManager = (DevicePolicyManager)
138 return mDevicePolicyManager.isDeviceManaged();
143 return mDevicePolicyManager.getDeviceOwnerNameOnAnyUser();
148 return mDevicePolicyManager.getProfileOwnerAsUser(mCurrentUserId) != null;
154 String name = mDevicePolicyManager.getProfileOwnerNameAsUser(profileId);
164 return mDevicePolicyManager.getDeviceOwnerOrganizationName();
171 return mDevicePolicyManager.getOrganizationNameForUser(profileId);
211 return mDevicePolicyManager.isNetworkLoggingEnabled(null);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DSecurityControllerTest.java59 private final DevicePolicyManager mDevicePolicyManager = mock(DevicePolicyManager.class); field in class:SecurityControllerTest
73 mContext.addMockSystemService(Context.DEVICE_POLICY_SERVICE, mDevicePolicyManager);
103 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true);
106 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false);
112 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn("organization");
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyguardIndicationController.java94 private final DevicePolicyManager mDevicePolicyManager; field in class:KeyguardIndicationController
132 mDevicePolicyManager = (DevicePolicyManager) context.getSystemService(
164 if (mDevicePolicyManager == null) {
168 if (!mDozing && mDevicePolicyManager.isDeviceManaged()) {
170 mDevicePolicyManager.getDeviceOwnerOrganizationName();
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternUtils.java165 private DevicePolicyManager mDevicePolicyManager; field in class:LockPatternUtils
220 if (mDevicePolicyManager == null) {
221 mDevicePolicyManager =
223 if (mDevicePolicyManager == null) {
228 return mDevicePolicyManager;
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityStackSupervisor.java297 private IDevicePolicyManager mDevicePolicyManager; field in class:ActivityStackSupervisor
646 if (mDevicePolicyManager == null) {
647 mDevicePolicyManager = IDevicePolicyManager.Stub.asInterface(
649 if (mDevicePolicyManager == null) {
653 return mDevicePolicyManager;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBar.java825 mDevicePolicyManager = (DevicePolicyManager) mContext.getSystemService(
5434 if (mDevicePolicyManager.getCameraDisabled(null, mCurrentUserId)) {
5438 return (mDevicePolicyManager.getKeyguardDisabledFeatures(null, mCurrentUserId)
5742 protected DevicePolicyManager mDevicePolicyManager; field in class:StatusBar
6719 final int dpmFlags = mDevicePolicyManager.getKeyguardDisabledFeatures(null /* admin */,
7349 final int dpmFlags = mDevicePolicyManager.getKeyguardDisabledFeatures(

Completed in 438 milliseconds