Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminListItemTest.java45 private DeviceAdminInfo mDeviceAdminInfo; field in DeviceAdminListItemTest
60 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()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DBaseDeviceAdminAddPreferenceController.java35 protected DeviceAdminInfo mDeviceAdminInfo; field in BaseDeviceAdminAddPreferenceController
47 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()
DDeviceAdminAddHeaderPreferenceController.java97 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()
DDeviceAdminAddWarningPreferenceController.java43 ComponentName admin = mDeviceAdminInfo.getComponent(); in updateState()
63 CharSequence label = mDeviceAdminInfo.getActivityInfo().applicationInfo.loadLabel(mPm); in updateState()
DDeviceAdminAddSupportPreferenceController.java60 mSupportMessage = mDpm.getLongSupportMessageForUser(mDeviceAdminInfo.getComponent(), in setSupportMessage()
DDeviceAdminAddPoliciesPreferenceController.java59 for (DeviceAdminInfo.PolicyInfo pi : mDeviceAdminInfo.getUsedPolicies()) { in getPolicyText()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DDeviceAdminInfoCompat.java28 public DeviceAdminInfo mDeviceAdminInfo; field in DeviceAdminInfoCompat
31 mDeviceAdminInfo = deviceAdminInfo; in DeviceAdminInfoCompat()
36 mDeviceAdminInfo = new DeviceAdminInfo(context, activityInfo); in DeviceAdminInfoCompat()
40 List<DeviceAdminInfo.PolicyInfo> obj = mDeviceAdminInfo.getUsedPolicies(); in getUsedPolicies()