Searched refs:packageHasActiveAdmins (Results 1 – 14 of 14) sorted by relevance
130 return (mDpm != null && mDpm.packageHasActiveAdmins(mEntry.info.packageName)); in isActiveDeviceAdmin()143 if (mDpm.packageHasActiveAdmins(packageName)) { in getUninstallDeviceAdminIntent()
66 if (dpm.packageHasActiveAdmins(mEntry.info.packageName)) { in refresh()
117 when(mDevicePolicyManager.packageHasActiveAdmins(nullable(String.class))).thenReturn(false); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue()133 when(mDevicePolicyManager.packageHasActiveAdmins(nullable(String.class))).thenReturn(false); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse()254 when(mDevicePolicyManager.packageHasActiveAdmins(nullable(String.class))).thenReturn(false); in instantApps_noUninstallForAllButton()
272 doReturn(true).when(mDpm).packageHasActiveAdmins(anyString()); in updateUninstallButton_isDeviceAdminApp_setButtonDisable()388 doReturn(true).when(mDpm).packageHasActiveAdmins(anyString()); in updateForceStopButton_HasActiveAdmins_setButtonDisable()
54 protected boolean packageHasActiveAdmins(String packageName) { in packageHasActiveAdmins() method in ShadowDevicePolicyManager
223 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick()410 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateUninstallButton()517 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateForceStopButton()
541 } else if (mPackageInfo == null || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in shouldShowUninstallForAll()
258 when(mMockDpm.packageHasActiveAdmins(PACKAGE_NAME)).thenReturn(true); in onCreate_packageHasActiveAdmins_doesNotDisableUninstallButton()444 when(mMockDpm.packageHasActiveAdmins(PACKAGE_NAME)).thenReturn(true); in onCreate_packageHasActiveAdmins_disablesForceStopButton()671 when(mMockDpm.packageHasActiveAdmins(PACKAGE_NAME)).thenReturn(true); in uninstallClicked_packageHasActiveAdmins_startsDeviceAdminAddActivity()
99 return (mDpm != null && mDpm.packageHasActiveAdmins(mAppEntry.info.packageName)); in isActiveDeviceAdmin()
78 if (dpm.packageHasActiveAdmins(mAppEntry.info.packageName)) { in update()
98 return devicePolicyManager.packageHasActiveAdmins(pkg); in isDefaultActiveApp()
188 if (mDpm.packageHasActiveAdmins(mPackageName)) {344 if (mDpm.packageHasActiveAdmins(mPackageName)) { in updateForceStopButton()
457 if (mDpm.packageHasActiveAdmins(pkg)) { in checkForceStop()
291 final boolean appHasActiveAdmins = mDpm.packageHasActiveAdmins(mPackageName); in initDataButtons()