Home | History | Annotate | Download | only in settings

Lines Matching refs:DeviceAdminInfo

23 import android.app.admin.DeviceAdminInfo;
69 public DeviceAdminInfo info;
174 DeviceAdminInfo dpi = (DeviceAdminInfo) o;
210 * @return DeviceAdminInfo object for actual device admins.
250 DeviceAdminInfo info = (DeviceAdminInfo) o;
264 bindView(convertView, (DeviceAdminInfo) o);
279 private void bindView(View view, DeviceAdminInfo item) {
300 private boolean isDeviceOwner(DeviceAdminInfo item) {
305 private boolean isProfileOwner(DeviceAdminInfo item) {
310 private boolean isActiveAdmin(DeviceAdminInfo item) {
314 private boolean isRemovingAdmin(DeviceAdminInfo item) {
364 DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo(resolveInfo.activityInfo);
366 if (deviceAdminInfo != null && deviceAdminInfo.isVisible()) {
367 if (!deviceAdminInfo.getActivityInfo().applicationInfo.isInternal()) {
371 item.info = deviceAdminInfo;
372 item.name = deviceAdminInfo.loadLabel(pm).toString();
382 * Add a {@link DeviceAdminInfo} object to the internal collection of available admins for all
405 final DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo(ai);
406 if (deviceAdminInfo == null) {
412 item.info = deviceAdminInfo;
413 item.name = deviceAdminInfo.loadLabel(packageManager).toString();
425 * @return new {@link DeviceAdminInfo
427 private DeviceAdminInfo createDeviceAdminInfo(ActivityInfo ai) {
429 return new DeviceAdminInfo(getActivity(), ai);
441 private int getUserId(DeviceAdminInfo adminInfo) {