Home
last modified time | relevance | path

Searched refs:packageHasActiveAdmins (Results 1 – 14 of 14) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DUninstallPreference.java130 return (mDpm != null && mDpm.packageHasActiveAdmins(mEntry.info.packageName)); in isActiveDeviceAdmin()
143 if (mDpm.packageHasActiveAdmins(packageName)) { in getUninstallDeviceAdminIntent()
DForceStopPreference.java66 if (dpm.packageHasActiveAdmins(mEntry.info.packageName)) { in refresh()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragmentTest.java117 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()
DAppButtonsPreferenceControllerTest.java272 doReturn(true).when(mDpm).packageHasActiveAdmins(anyString()); in updateUninstallButton_isDeviceAdminApp_setButtonDisable()
388 doReturn(true).when(mDpm).packageHasActiveAdmins(anyString()); in updateForceStopButton_HasActiveAdmins_setButtonDisable()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowDevicePolicyManager.java54 protected boolean packageHasActiveAdmins(String packageName) { in packageHasActiveAdmins() method in ShadowDevicePolicyManager
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceController.java223 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick()
410 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateUninstallButton()
517 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateForceStopButton()
DAppInfoDashboardFragment.java541 } else if (mPackageInfo == null || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in shouldShowUninstallForAll()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DApplicationActionButtonsPreferenceControllerTest.java258 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()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/
DUninstallPreferenceController.java99 return (mDpm != null && mDpm.packageHasActiveAdmins(mAppEntry.info.packageName)); in isActiveDeviceAdmin()
DForceStopPreferenceController.java78 if (dpm.packageHasActiveAdmins(mAppEntry.info.packageName)) { in update()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/specialaccess/
DPowerAllowlistBackend.java98 return devicePolicyManager.packageHasActiveAdmins(pkg); in isDefaultActiveApp()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationActionButtonsPreferenceController.java188 if (mDpm.packageHasActiveAdmins(mPackageName)) {
344 if (mDpm.packageHasActiveAdmins(mPackageName)) { in updateForceStopButton()
/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsDetail.java457 if (mDpm.packageHasActiveAdmins(pkg)) { in checkForceStop()
DAppStorageSettings.java291 final boolean appHasActiveAdmins = mDpm.packageHasActiveAdmins(mPackageName); in initDataButtons()