Searched refs:packageHasActiveAdmins (Results 1 – 18 of 18) sorted by relevance
130 return (mDpm != null && mDpm.packageHasActiveAdmins(mEntry.info.packageName)); in isActiveDeviceAdmin()143 if (mDpm.packageHasActiveAdmins(packageName)) { in getUninstallDeviceAdminIntent()
70 if (dpm.packageHasActiveAdmins(mEntry.info.packageName)) { in refresh()
54 protected boolean packageHasActiveAdmins(String packageName) { in packageHasActiveAdmins() method in ShadowDevicePolicyManager
123 when(mDevicePolicyManager.packageHasActiveAdmins(nullable(String.class))).thenReturn(false); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue()139 when(mDevicePolicyManager.packageHasActiveAdmins(nullable(String.class))).thenReturn(false); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse()260 when(mDevicePolicyManager.packageHasActiveAdmins(nullable(String.class))).thenReturn(false); in instantApps_noUninstallForAllButton()
274 doReturn(true).when(mDpm).packageHasActiveAdmins(anyString()); in updateUninstallButton_isDeviceAdminApp_setButtonDisable()419 doReturn(true).when(mDpm).packageHasActiveAdmins(anyString()); in updateForceStopButton_HasActiveAdmins_setButtonDisable()
99 return (mDpm != null && mDpm.packageHasActiveAdmins(mAppEntry.info.packageName)); in isActiveDeviceAdmin()
83 if (dpm.packageHasActiveAdmins(mAppEntry.info.packageName)) { in update()
221 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick()392 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateUninstallButton()503 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateForceStopButton()
573 } else if (mPackageInfo == null || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in shouldShowUninstallForAll()
98 return devicePolicyManager.packageHasActiveAdmins(pkg); in isDefaultActiveApp()
261 when(mMockDpm.packageHasActiveAdmins(PACKAGE_NAME)).thenReturn(true); in onCreate_packageHasActiveAdmins_doesNotDisableUninstallButton()447 when(mMockDpm.packageHasActiveAdmins(PACKAGE_NAME)).thenReturn(true); in onCreate_packageHasActiveAdmins_disablesForceStopButton()676 when(mMockDpm.packageHasActiveAdmins(PACKAGE_NAME)).thenReturn(true); in uninstallClicked_packageHasActiveAdmins_startsDeviceAdminAddActivity()
85 on { packageHasActiveAdmins(PACKAGE_NAME, app.userId) } doReturn true in <lambda>()
195 if (mDpm.packageHasActiveAdmins(mPackageName)) {351 if (mDpm.packageHasActiveAdmins(mPackageName)) { in updateForceStopButton()
137 if (dm == null || dm.packageHasActiveAdmins(packageName)) { in <lambda>()
456 if (mDpm.packageHasActiveAdmins(pkg)) { in checkForceStop()
293 final boolean appHasActiveAdmins = mDpm.packageHasActiveAdmins(mPackageName); in initDataButtons()
1033 when(mDevicePolicyManager.packageHasActiveAdmins(TEST_PACKAGE_NAME)) in testIsLegacyDeviceAdmin()1038 when(mDevicePolicyManager.packageHasActiveAdmins(TEST_PACKAGE_NAME)) in testIsLegacyDeviceAdmin()
1273 return devicePolicyManager.packageHasActiveAdmins(packageName); in isLegacyDeviceAdmin()