Searched refs:mDeviceAdminInfo (Results 1 – 7 of 7) sorted by relevance
45 private DeviceAdminInfo mDeviceAdminInfo; field in DeviceAdminListItemTest60 when(mDeviceAdminInfo.getActivityInfo()).thenReturn(new ActivityInfo()); in newInstance_shouldLoadInfoFromDeviceAdminInfo()61 mDeviceAdminInfo.getActivityInfo().applicationInfo = new ApplicationInfo(); in newInstance_shouldLoadInfoFromDeviceAdminInfo()62 when(mDeviceAdminInfo.loadLabel(any(PackageManager.class))).thenReturn(label); in newInstance_shouldLoadInfoFromDeviceAdminInfo()63 when(mDeviceAdminInfo.loadDescription(any(PackageManager.class))).thenReturn(description); in newInstance_shouldLoadInfoFromDeviceAdminInfo()64 when(mDeviceAdminInfo.loadIcon(any(PackageManager.class))) in newInstance_shouldLoadInfoFromDeviceAdminInfo()66 when(mDeviceAdminInfo.getComponent()).thenReturn(cn); in newInstance_shouldLoadInfoFromDeviceAdminInfo()68 DeviceAdminListItem item = new DeviceAdminListItem(mContext, mDeviceAdminInfo); in newInstance_shouldLoadInfoFromDeviceAdminInfo()
35 protected DeviceAdminInfo mDeviceAdminInfo; field in BaseDeviceAdminAddPreferenceController47 return mDeviceAdminInfo == null ? CONDITIONALLY_UNAVAILABLE : AVAILABLE; in getDefaultAvailabilityStatus()52 mDeviceAdminInfo = Objects.requireNonNull(deviceAdminInfo); in setDeviceAdmin()59 return mDeviceAdminInfo == null in isProfileOrDeviceOwner()60 ? false : isProfileOrDeviceOwner(mDeviceAdminInfo.getComponent()); in isProfileOrDeviceOwner()
97 CharSequence name = mDeviceAdminInfo.loadLabel(mPm); in updateState()98 Drawable icon = mDeviceAdminInfo.loadIcon(mPm); in updateState()99 CharSequence description = getDescription(mDeviceAdminInfo); in updateState()114 ComponentName admin = mDeviceAdminInfo.getComponent(); in handlePreferenceChanged()131 ComponentName componentName = mDeviceAdminInfo.getComponent(); in setCurrentStatus()
43 ComponentName admin = mDeviceAdminInfo.getComponent(); in updateState()63 CharSequence label = mDeviceAdminInfo.getActivityInfo().applicationInfo.loadLabel(mPm); in updateState()
60 mSupportMessage = mDpm.getLongSupportMessageForUser(mDeviceAdminInfo.getComponent(), in setSupportMessage()
59 for (DeviceAdminInfo.PolicyInfo pi : mDeviceAdminInfo.getUsedPolicies()) { in getPolicyText()
28 public DeviceAdminInfo mDeviceAdminInfo; field in DeviceAdminInfoCompat31 mDeviceAdminInfo = deviceAdminInfo; in DeviceAdminInfoCompat()36 mDeviceAdminInfo = new DeviceAdminInfo(context, activityInfo); in DeviceAdminInfoCompat()40 List<DeviceAdminInfo.PolicyInfo> obj = mDeviceAdminInfo.getUsedPolicies(); in getUsedPolicies()