Home
last modified time | relevance | path

Searched refs:packageHasActiveAdmins (Results 1 – 18 of 18) 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.java70 if (dpm.packageHasActiveAdmins(mEntry.info.packageName)) { in refresh()
/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/tests/robotests/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragmentTest.java123 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()
DAppButtonsPreferenceControllerTest.java274 doReturn(true).when(mDpm).packageHasActiveAdmins(anyString()); in updateUninstallButton_isDeviceAdminApp_setButtonDisable()
419 doReturn(true).when(mDpm).packageHasActiveAdmins(anyString()); in updateForceStopButton_HasActiveAdmins_setButtonDisable()
/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.java83 if (dpm.packageHasActiveAdmins(mAppEntry.info.packageName)) { in update()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceController.java221 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick()
392 if (isBundled && mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateUninstallButton()
503 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in updateForceStopButton()
DAppInfoDashboardFragment.java573 } else if (mPackageInfo == null || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in shouldShowUninstallForAll()
/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/tests/unit/src/com/android/car/settings/applications/
DApplicationActionButtonsPreferenceControllerTest.java261 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()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppForceStopRepositoryTest.kt85 on { packageHasActiveAdmins(PACKAGE_NAME, app.userId) } doReturn true in <lambda>()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationActionButtonsPreferenceController.java195 if (mDpm.packageHasActiveAdmins(mPackageName)) {
351 if (mDpm.packageHasActiveAdmins(mPackageName)) { in updateForceStopButton()
/packages/apps/Car/Launcher/libs/car-launcher-common/src/com/android/car/carlaunchercommon/shortcuts/
DForceStopShortcutItem.kt137 if (dm == null || dm.packageHasActiveAdmins(packageName)) { in <lambda>()
/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsDetail.java456 if (mDpm.packageHasActiveAdmins(pkg)) { in checkForceStop()
DAppStorageSettings.java293 final boolean appHasActiveAdmins = mDpm.packageHasActiveAdmins(mPackageName); in initDataButtons()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java1033 when(mDevicePolicyManager.packageHasActiveAdmins(TEST_PACKAGE_NAME)) in testIsLegacyDeviceAdmin()
1038 when(mDevicePolicyManager.packageHasActiveAdmins(TEST_PACKAGE_NAME)) in testIsLegacyDeviceAdmin()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java1273 return devicePolicyManager.packageHasActiveAdmins(packageName); in isLegacyDeviceAdmin()