/frameworks/base/cmds/dpm/src/com/android/commands/dpm/ |
D | Dpm.java | 54 private IDevicePolicyManager mDevicePolicyManager; field in Dpm 102 mDevicePolicyManager = IDevicePolicyManager.Stub.asInterface( in onRun() 104 if (mDevicePolicyManager == null) { in onRun() 142 final long toWait = mDevicePolicyManager.forceNetworkLogs(); in runForceNetworkLogs() 154 final long toWait = mDevicePolicyManager.forceSecurityLogs(); in runForceSecurityLogs() 193 mDevicePolicyManager.setActiveAdmin(mComponent, true /*refreshing*/, mUserId); in runSetActiveAdmin() 200 mDevicePolicyManager.setActiveAdmin(mComponent, true /*refreshing*/, mUserId); in runSetDeviceOwner() 203 if (!mDevicePolicyManager.setDeviceOwner(mComponent, mName, mUserId)) { in runSetDeviceOwner() 209 mDevicePolicyManager.removeActiveAdmin(mComponent, UserHandle.USER_SYSTEM); in runSetDeviceOwner() 213 mDevicePolicyManager.setUserProvisioningState( in runSetDeviceOwner() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 76 private DevicePolicyManager mDevicePolicyManager; field in KeyguardIndicationControllerTest 107 mContext.addMockSystemService(Context.DEVICE_POLICY_SERVICE, mDevicePolicyManager); in setUp() 131 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in unmanaged() 140 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in managedNoOwnerName() 141 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(null); in managedNoOwnerName() 151 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in managedOwnerName() 152 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(ORGANIZATION_NAME); in managedOwnerName() 162 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in updateOnTheFly() 168 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in updateOnTheFly() 169 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(null); in updateOnTheFly() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 62 private DevicePolicyManager mDevicePolicyManager; field in RestrictedLockUtilsTest 80 .thenReturn(mDevicePolicyManager); in setUp() 158 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin1, mUserId)) in checkIfKeyguardFeaturesDisabled_oneEnforcedAdminForManagedProfile() 171 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin1, mUserId)) in checkIfKeyguardFeaturesDisabled_multipleEnforcedAdminForManagedProfile() 173 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin2, mUserId)) in checkIfKeyguardFeaturesDisabled_multipleEnforcedAdminForManagedProfile() 188 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin1, mUserId)) in checkIfKeyguardFeaturesAreDisabled_doesMatchAllowedFeature_unifiedManagedProfile() 190 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin2, mProfileId)) in checkIfKeyguardFeaturesAreDisabled_doesMatchAllowedFeature_unifiedManagedProfile() 216 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin1, mUserId)) in checkIfKeyguardFeaturesAreDisabled_notMatchOtherFeatures_unifiedManagedProfile() 218 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin2, mProfileId)) in checkIfKeyguardFeaturesAreDisabled_notMatchOtherFeatures_unifiedManagedProfile() 239 when(mDevicePolicyManager.getKeyguardDisabledFeatures(mAdmin1, mUserId)) in checkIfKeyguardFeaturesAreDisabled_onlyMatchesProfile_separateManagedProfile() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockLockSettingsContext.java | 33 private DevicePolicyManager mDevicePolicyManager; field in MockLockSettingsContext 45 mDevicePolicyManager = devicePolicyManager; in MockLockSettingsContext() 58 return mDevicePolicyManager; in getSystemService()
|
D | BaseLockSettingsServiceTests.java | 85 DevicePolicyManager mDevicePolicyManager; field in BaseLockSettingsServiceTests 105 mDevicePolicyManager = mock(DevicePolicyManager.class); in setUp() 119 mDevicePolicyManager, mock(StorageManager.class), mock(TrustManager.class), in setUp() 173 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn( in setUp()
|
D | SyntheticPasswordTests.java | 363 verify(mDevicePolicyManager).setActivePasswordState(metric, PRIMARY_USER_ID); in testTokenBasedResetPassword()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerImpl.java | 86 private final DevicePolicyManager mDevicePolicyManager; field in SecurityControllerImpl 114 mDevicePolicyManager = (DevicePolicyManager) in SecurityControllerImpl() 153 return mDevicePolicyManager.isDeviceManaged(); in isDeviceManaged() 158 return mDevicePolicyManager.getDeviceOwnerNameOnAnyUser(); in getDeviceOwnerName() 163 return mDevicePolicyManager.getProfileOwnerAsUser(mCurrentUserId) != null; in hasProfileOwner() 169 String name = mDevicePolicyManager.getProfileOwnerNameAsUser(profileId); in getProfileOwnerName() 179 return mDevicePolicyManager.getDeviceOwnerOrganizationName(); in getDeviceOwnerOrganizationName() 186 return mDevicePolicyManager.getOrganizationNameForUser(profileId); in getWorkProfileOrganizationName() 226 return mDevicePolicyManager.isNetworkLoggingEnabled(null); in isNetworkLoggingEnabled()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerTest.java | 64 private final DevicePolicyManager mDevicePolicyManager = mock(DevicePolicyManager.class); field in SecurityControllerTest 79 mContext.addMockSystemService(Context.DEVICE_POLICY_SERVICE, mDevicePolicyManager); in setUp() 112 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true); in testIsDeviceManaged() 115 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false); in testIsDeviceManaged() 121 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn("organization"); in testGetDeviceOwnerOrganizationName()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | WorkLockActivityTest.java | 55 private @Mock DevicePolicyManager mDevicePolicyManager; field in WorkLockActivityTest 73 .thenReturn(mDevicePolicyManager); in setUp() 86 when(mDevicePolicyManager.getOrganizationColorForUser(eq(USER_ID))).thenReturn(orgColor); in testBackgroundAlwaysOpaque()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
D | PowerWhitelistBackendTest.java | 58 private DevicePolicyManager mDevicePolicyManager; field in PowerWhitelistBackendTest 75 doReturn(mDevicePolicyManager).when(mContext).getSystemService(DevicePolicyManager.class); in setUp() 135 doReturn(true).when(mDevicePolicyManager).packageHasActiveAdmins(PACKAGE_ONE); in isWhitelisted_shouldWhitelistActiveDeviceAdminApp()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityStartInterceptorTest.java | 97 private DevicePolicyManagerInternal mDevicePolicyManager; field in ActivityStartInterceptorTest 128 mDevicePolicyManager); in setUp() 129 when(mDevicePolicyManager.createShowAdminSupportIntent(TEST_USER_ID, true)) in setUp()
|
D | LockTaskControllerTest.java | 109 @Mock private IDevicePolicyManager mDevicePolicyManager; field in LockTaskControllerTest 142 mLockTaskController.mDevicePolicyManager = mDevicePolicyManager; in setUp() 744 verify(mDevicePolicyManager).notifyLockTaskModeChanged(eq(true), eq(TEST_PACKAGE_NAME), in verifyLockTaskStarted() 757 verify(mDevicePolicyManager, mode).notifyLockTaskModeChanged(eq(false), isNull(), in verifyLockTaskStopped()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationController.java | 120 private final DevicePolicyManager mDevicePolicyManager; field in KeyguardIndicationController 176 mDevicePolicyManager = (DevicePolicyManager) context.getSystemService( in KeyguardIndicationController() 231 if (mDevicePolicyManager == null) { in updateDisclosure() 235 if (!mDozing && mDevicePolicyManager.isDeviceManaged()) { in updateDisclosure() 237 mDevicePolicyManager.getDeviceOwnerOrganizationName(); in updateDisclosure()
|
D | NotificationLockscreenUserManagerImpl.java | 77 private final DevicePolicyManager mDevicePolicyManager; field in NotificationLockscreenUserManagerImpl 176 mDevicePolicyManager = (DevicePolicyManager) mContext.getSystemService( in NotificationLockscreenUserManagerImpl() 338 final int dpmFlags = mDevicePolicyManager.getKeyguardDisabledFeatures( in updateLockscreenNotificationSetting() 387 mDevicePolicyManager.getKeyguardDisabledFeatures(null /* admin */, userHandle); in adminAllowsKeyguardFeature()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | LockTaskController.java | 139 IDevicePolicyManager mDevicePolicyManager; field in LockTaskController 873 if (mDevicePolicyManager == null) { in getDevicePolicyManager() 874 mDevicePolicyManager = IDevicePolicyManager.Stub.asInterface( in getDevicePolicyManager() 876 if (mDevicePolicyManager == null) { in getDevicePolicyManager() 880 return mDevicePolicyManager; in getDevicePolicyManager()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | BiometricDialogView.java | 79 private final DevicePolicyManager mDevicePolicyManager; field in BiometricDialogView 155 mDevicePolicyManager = mContext.getSystemService(DevicePolicyManager.class); in BiometricDialogView() 256 image.setColorFilter(mDevicePolicyManager.getOrganizationColorForUser(mUserId), in onAttachedToWindow()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 90 private DevicePolicyManager mDevicePolicyManager; field in KeyguardUpdateMonitorTest 116 context.addMockSystemService(DevicePolicyManager.class, mDevicePolicyManager); in setup()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternUtils.java | 177 private DevicePolicyManager mDevicePolicyManager; field in LockPatternUtils 237 if (mDevicePolicyManager == null) { in getDevicePolicyManager() 238 mDevicePolicyManager = in getDevicePolicyManager() 240 if (mDevicePolicyManager == null) { in getDevicePolicyManager() 245 return mDevicePolicyManager; in getDevicePolicyManager()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsDialog.java | 143 private final DevicePolicyManager mDevicePolicyManager; field in GlobalActionsDialog 179 mDevicePolicyManager = (DevicePolicyManager) mContext.getSystemService( in GlobalActionsDialog() 388 if (mDevicePolicyManager.isLogoutEnabled() in createDialog()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardUpdateMonitor.java | 239 private final DevicePolicyManager mDevicePolicyManager; field in KeyguardUpdateMonitor 1527 mDevicePolicyManager = context.getSystemService(DevicePolicyManager.class); in KeyguardUpdateMonitor() 1528 mLogoutEnabled = mDevicePolicyManager.isLogoutEnabled(); in KeyguardUpdateMonitor() 2466 boolean logoutEnabled = mDevicePolicyManager.isLogoutEnabled(); in updateLogoutEnabled()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBar.java | 676 mDevicePolicyManager = (DevicePolicyManager) mContext.getSystemService( in start() 3784 if (mDevicePolicyManager.getCameraDisabled(null, in isCameraAllowedByAdmin() 3790 return (mDevicePolicyManager. in isCameraAllowedByAdmin() 4138 protected DevicePolicyManager mDevicePolicyManager;
|