Home
last modified time | relevance | path

Searched refs:deviceAdminInfo (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DDeviceAdminAppsPreferenceController.java71 DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo(resolveInfo.activityInfo); in updateState() local
73 if (deviceAdminInfo != null && deviceAdminInfo.isVisible()) { in updateState()
74 if (!isIncluded(deviceAdminInfo.getComponent()) in updateState()
75 || !deviceAdminInfo.getActivityInfo().applicationInfo.isInternal()) { in updateState()
78 preferenceGroup.addPreference(createPreference(deviceAdminInfo)); in updateState()
101 private Preference createPreference(DeviceAdminInfo deviceAdminInfo) { in createPreference() argument
103 preference.setTitle(deviceAdminInfo.loadLabel(mPm)); in createPreference()
104 preference.setIcon(deviceAdminInfo.loadIcon(mPm)); in createPreference()
105 CharSequence description = getDescription(deviceAdminInfo); in createPreference()
107 preference.setSummary(deviceAdminInfo.loadDescription(mPm)); in createPreference()
[all …]
DDeviceAdminAddFragment.java141 DeviceAdminInfo deviceAdminInfo = getDeviceAdminInfo(context, admin); in onAttach() local
142 LOG.d("Admin: " + admin + " DeviceAdminInfo: " + deviceAdminInfo); in onAttach()
144 if (deviceAdminInfo == null) { in onAttach()
162 ArrayList<DeviceAdminInfo.PolicyInfo> policies = deviceAdminInfo.getUsedPolicies(); in onAttach()
182 mAppName = deviceAdminInfo.loadLabel(context.getPackageManager()); in onAttach()
190 R.string.pk_device_admin_add_header).setDeviceAdmin(deviceAdminInfo)) in onAttach()
194 R.string.pk_device_admin_add_explanation).setDeviceAdmin(deviceAdminInfo)) in onAttach()
198 R.string.pk_device_admin_add_warning).setDeviceAdmin(deviceAdminInfo); in onAttach()
200 R.string.pk_device_admin_add_policies).setDeviceAdmin(deviceAdminInfo); in onAttach()
202 R.string.pk_device_admin_add_support).setDeviceAdmin(deviceAdminInfo); in onAttach()
DBaseEnterprisePreferenceController.java79 protected final CharSequence getDescription(DeviceAdminInfo deviceAdminInfo) { in getDescription() argument
81 return deviceAdminInfo.loadDescription(mPm); in getDescription()
84 + deviceAdminInfo.getComponent().flattenToShortString()); in getDescription()
DBaseDeviceAdminAddPreferenceController.java51 DeviceAdminInfo deviceAdminInfo) { in setDeviceAdmin() argument
52 mDeviceAdminInfo = Objects.requireNonNull(deviceAdminInfo); in setDeviceAdmin()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
DDeviceAdminListPreferenceController.java260 final DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo(mContext, ai); in addActiveAdminsForProfile() local
261 if (deviceAdminInfo == null) { in addActiveAdminsForProfile()
264 mAdmins.add(new DeviceAdminListItem(mContext, deviceAdminInfo)); in addActiveAdminsForProfile()
296 DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo( in addDeviceAdminBroadcastReceiversForProfile() local
299 if (deviceAdminInfo != null && deviceAdminInfo.isVisible()) { in addDeviceAdminBroadcastReceiversForProfile()
300 if (!deviceAdminInfo.getActivityInfo().applicationInfo.isInternal()) { in addDeviceAdminBroadcastReceiversForProfile()
303 mAdmins.add(new DeviceAdminListItem(mContext, deviceAdminInfo)); in addDeviceAdminBroadcastReceiversForProfile()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminListPreferenceController.java269 final DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo(mContext, ai); in addActiveAdminsForProfile() local
270 if (deviceAdminInfo == null) { in addActiveAdminsForProfile()
273 mAdmins.add(new DeviceAdminListItem(mContext, deviceAdminInfo)); in addActiveAdminsForProfile()
305 DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo( in addDeviceAdminBroadcastReceiversForProfile() local
308 if (deviceAdminInfo != null && deviceAdminInfo.isVisible()) { in addDeviceAdminBroadcastReceiversForProfile()
309 if (!deviceAdminInfo.getActivityInfo().applicationInfo.isInternal()) { in addDeviceAdminBroadcastReceiversForProfile()
312 mAdmins.add(new DeviceAdminListItem(mContext, deviceAdminInfo)); in addDeviceAdminBroadcastReceiversForProfile()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DDeviceAdminInfoCompat.java30 public DeviceAdminInfoCompat(DeviceAdminInfo deviceAdminInfo) { in DeviceAdminInfoCompat() argument
31 mDeviceAdminInfo = deviceAdminInfo; in DeviceAdminInfoCompat()