Searched refs:deviceAdminInfo (Results 1 – 7 of 7) sorted by relevance
71 DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo(resolveInfo.activityInfo); in updateState() local73 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() argument103 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 …]
141 DeviceAdminInfo deviceAdminInfo = getDeviceAdminInfo(context, admin); in onAttach() local142 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()
79 protected final CharSequence getDescription(DeviceAdminInfo deviceAdminInfo) { in getDescription() argument81 return deviceAdminInfo.loadDescription(mPm); in getDescription()84 + deviceAdminInfo.getComponent().flattenToShortString()); in getDescription()
51 DeviceAdminInfo deviceAdminInfo) { in setDeviceAdmin() argument52 mDeviceAdminInfo = Objects.requireNonNull(deviceAdminInfo); in setDeviceAdmin()
260 final DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo(mContext, ai); in addActiveAdminsForProfile() local261 if (deviceAdminInfo == null) { in addActiveAdminsForProfile()264 mAdmins.add(new DeviceAdminListItem(mContext, deviceAdminInfo)); in addActiveAdminsForProfile()296 DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo( in addDeviceAdminBroadcastReceiversForProfile() local299 if (deviceAdminInfo != null && deviceAdminInfo.isVisible()) { in addDeviceAdminBroadcastReceiversForProfile()300 if (!deviceAdminInfo.getActivityInfo().applicationInfo.isInternal()) { in addDeviceAdminBroadcastReceiversForProfile()303 mAdmins.add(new DeviceAdminListItem(mContext, deviceAdminInfo)); in addDeviceAdminBroadcastReceiversForProfile()
269 final DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo(mContext, ai); in addActiveAdminsForProfile() local270 if (deviceAdminInfo == null) { in addActiveAdminsForProfile()273 mAdmins.add(new DeviceAdminListItem(mContext, deviceAdminInfo)); in addActiveAdminsForProfile()305 DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo( in addDeviceAdminBroadcastReceiversForProfile() local308 if (deviceAdminInfo != null && deviceAdminInfo.isVisible()) { in addDeviceAdminBroadcastReceiversForProfile()309 if (!deviceAdminInfo.getActivityInfo().applicationInfo.isInternal()) { in addDeviceAdminBroadcastReceiversForProfile()312 mAdmins.add(new DeviceAdminListItem(mContext, deviceAdminInfo)); in addDeviceAdminBroadcastReceiversForProfile()
30 public DeviceAdminInfoCompat(DeviceAdminInfo deviceAdminInfo) { in DeviceAdminInfoCompat() argument31 mDeviceAdminInfo = deviceAdminInfo; in DeviceAdminInfoCompat()