Searched refs:packageHasActiveAdmins (Results 1 – 13 of 13) sorted by relevance
116 when(mDevicePolicyManager.packageHasActiveAdmins(nullable(String.class))).thenReturn(false); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue()132 when(mDevicePolicyManager.packageHasActiveAdmins(nullable(String.class))).thenReturn(false); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse()251 when(mDevicePolicyManager.packageHasActiveAdmins(nullable(String.class))).thenReturn(false); in instantApps_noUninstallForAllButton()
250 doReturn(true).when(mDpm).packageHasActiveAdmins(anyString()); in updateUninstallButton_isDeviceAdminApp_setButtonDisable()333 doReturn(true).when(mDpm).packageHasActiveAdmins(anyString()); in updateForceStopButton_HasActiveAdmins_setButtonDisable()
215 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick()391 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateUninstallButton()489 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateForceStopButton()
413 } else if (mPackageInfo == null || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in shouldShowUninstallForAll()
216 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick()392 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateUninstallButton()490 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateForceStopButton()
221 if (mDpm.packageHasActiveAdmins(mPackageName)) { in updateForceStopButton()283 if (mDpm.packageHasActiveAdmins(mPackageName)) { in shouldDisableUninstallButton()
54 protected boolean packageHasActiveAdmins(String packageName) { in packageHasActiveAdmins() method in ShadowDevicePolicyManager
50 if (dpm.packageHasActiveAdmins(mEntry.info.packageName)) { in refresh()
457 if (mDpm.packageHasActiveAdmins(pkg)) { in checkForceStop()
290 final boolean appHasActiveAdmins = mDpm.packageHasActiveAdmins(mPackageName); in initDataButtons()