Home
last modified time | relevance | path

Searched refs:KotlinUtils (Results 1 – 20 of 20) sorted by relevance

/packages/apps/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/utils/
DGrantRevokeTests.kt349 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantOnePermTest()
375 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantTwoPermTest()
404 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantNoAppOpPerm()
430 val newGroup = KotlinUtils.grantBackgroundRuntimePermissions(app, group) in grantBgPermTest()
458 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantBgAndFgPermTest()
472 val newGroup2 = KotlinUtils.grantBackgroundRuntimePermissions(app, newGroup) in grantBgAndFgPermTest()
498 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantSystemFixedTest()
528 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantBgSystemFixedTest()
541 val newGroup2 = KotlinUtils.grantBackgroundRuntimePermissions(app, newGroup) in grantBgSystemFixedTest()
566 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantOneTimeTest()
[all …]
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DAllAppPermissionsFragment.java49 import com.android.permissioncontroller.permission.utils.KotlinUtils;
181 Drawable icon = KotlinUtils.INSTANCE.getBadgedPackageIcon(getActivity().getApplication(), in updateUi()
183 CharSequence label = KotlinUtils.INSTANCE.getPackageLabel(getActivity().getApplication(), in updateUi()
210 KotlinUtils.INSTANCE.sortPreferenceGroup(getPreferenceScreen(), this::comparePreferences, in updateUi()
240 pref.setTitle(KotlinUtils.INSTANCE.getPermGroupLabel(getContext(), groupName)); in findOrCreatePrefGroup()
262 pref.setIcon(KotlinUtils.INSTANCE.getPermInfoIcon(context, permName)); in getPreference()
263 pref.setTitle(KotlinUtils.INSTANCE.getPermInfoLabel(context, permName)); in getPreference()
265 final CharSequence desc = KotlinUtils.INSTANCE.getPermInfoDescription(context, in getPreference()
DPermissionAppsFragment.java57 import com.android.permissioncontroller.permission.utils.KotlinUtils;
195 Drawable icon = KotlinUtils.INSTANCE.getPermGroupIcon(context, groupName); in bindUi()
197 CharSequence label = KotlinUtils.INSTANCE.getPermGroupLabel(context, groupName); in bindUi()
198 CharSequence description = KotlinUtils.INSTANCE.getPermGroupDescription(context, groupName); in bindUi()
299 pref.setTitle(KotlinUtils.INSTANCE.getPackageLabel(getActivity().getApplication(), in onPackagesLoaded()
337 KotlinUtils.INSTANCE.sortPreferenceGroup(full, this::comparePreference, false); in onPackagesLoaded()
338 KotlinUtils.INSTANCE.sortPreferenceGroup(scoped, this::comparePreference, false); in onPackagesLoaded()
340 KotlinUtils.INSTANCE.sortPreferenceGroup(category, this::comparePreference, false); in onPackagesLoaded()
371 Integer uid = KotlinUtils.INSTANCE.getPackageUid(getActivity().getApplication(), in logPermissionAppsFragmentCreated()
DAutoRevokeFragment.kt41 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>()
175 pref.title = KotlinUtils.getPackageLabel(activity!!.application, pkgName, user) in <lambda>()
194 val importantLabel = KotlinUtils.getPermGroupLabel(context!!, mostImportant) in <lambda>()
200 KotlinUtils.getPermGroupLabel(context!!, revokedPerms[1]) in <lambda>()
202 KotlinUtils.getPermGroupLabel(context!!, revokedPerms[0]) in <lambda>()
210 KotlinUtils.sortPreferenceGroup(category, this::comparePreference, false) in <lambda>()
DManagePermissionsFragment.java29 import com.android.permissioncontroller.permission.utils.KotlinUtils;
125 KotlinUtils.INSTANCE.getPermGroupIcon(context, groupName), in updatePermissionsUi()
127 preference.setTitle(KotlinUtils.INSTANCE.getPermGroupLabel(context, groupName)); in updatePermissionsUi()
149 KotlinUtils.INSTANCE.sortPreferenceGroup(screen, (Preference lhs, Preference rhs) -> in updatePermissionsUi()
DAppPermissionGroupsFragment.java62 import com.android.permissioncontroller.permission.utils.KotlinUtils;
203 Drawable icon = KotlinUtils.INSTANCE.getBadgedPackageIcon(activity.getApplication(), in bindUi()
205 fragment.setHeader(icon, KotlinUtils.INSTANCE.getPackageLabel(activity.getApplication(), in bindUi()
265 preference.setTitle(KotlinUtils.INSTANCE.getPermGroupLabel(context, groupName)); in updatePreferences()
266 preference.setIcon(KotlinUtils.INSTANCE.getPermGroupIcon(context, groupName)); in updatePreferences()
302 KotlinUtils.INSTANCE.sortPreferenceGroup(category, this::comparePreferences, false); in updatePreferences()
462 Integer uid = KotlinUtils.INSTANCE.getPackageUid(getActivity().getApplication(), in logAppPermissionsFragmentViewEntry()
DSmartIconLoadPackagePermissionPreference.kt30 import com.android.permissioncontroller.permission.utils.KotlinUtils
68 imageView.setImageDrawable(KotlinUtils.getBadgedPackageIcon(app, packageName, user)) in onBindViewHolder()
DAppPermissionFragment.java77 import com.android.permissioncontroller.permission.utils.KotlinUtils;
173 KotlinUtils.INSTANCE.getPackageLabel(getActivity().getApplication(), mPackageName, in onCreate()
175 mPermGroupLabel = KotlinUtils.INSTANCE.getPermGroupLabel(getContext(), in onCreate()
177 mPackageIcon = KotlinUtils.INSTANCE.getBadgedPackageIcon(getActivity().getApplication(), in onCreate()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionViewModel.kt54 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>()
499 val packageLabel = KotlinUtils.getPackageLabel(app, packageName, user) in <lambda>()
549 newGroup = KotlinUtils in <lambda>()
560 newGroup = KotlinUtils in <lambda>()
571 newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, newGroup) in <lambda>()
579 newGroup = KotlinUtils.grantBackgroundRuntimePermissions(app, newGroup) in <lambda>()
614 newGroup = KotlinUtils.revokeBackgroundRuntimePermissions(app, newGroup, false, oneTime) in <lambda>()
624 newGroup = KotlinUtils.revokeForegroundRuntimePermissions(app, newGroup, false, oneTime) in <lambda>()
763 val uid = KotlinUtils.getPackageUid(app, packageName, user) ?: return in <lambda>()
777 val uid = KotlinUtils.getPackageUid(app, packageName, user) ?: return in <lambda>()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/data/
DAutoRevokedPackagesLiveData.kt24 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>()
67 KotlinUtils.getMapAndListDifferences(packageNames, packagePermGroupsLiveDatas) in <lambda>()
106 KotlinUtils.getMapAndListDifferences(packageGroups, permStateLiveDatas) in <lambda>()
DUserSensitivityLiveData.kt29 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>()
116 KotlinUtils.packageHasLaunchIntent(context, pkg.packageName) in <lambda>()
DSmartUpdateMediatorLiveData.kt29 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>()
208 val (toAdd, toRemove) = KotlinUtils.getMapAndListDifferences(desired, have) in <lambda>()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DAppPermissionFragment.java75 import com.android.permissioncontroller.permission.utils.KotlinUtils;
169 KotlinUtils.INSTANCE.getPackageLabel(getActivity().getApplication(), mPackageName, in onCreate()
171 mPermGroupLabel = KotlinUtils.INSTANCE.getPermGroupLabel(getContext(), in onCreate()
173 mPackageIcon = KotlinUtils.INSTANCE.getBadgedPackageIcon(getActivity().getApplication(), in onCreate()
DAppPermissionsFragment.java58 import com.android.permissioncontroller.permission.utils.KotlinUtils;
188 KotlinUtils.INSTANCE.getPackageLabel(application, packageName, user)); in bindUi()
189 Drawable icon= KotlinUtils.INSTANCE.getBadgedPackageIcon(application, packageName, user); in bindUi()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/
DManagePermissionsActivity.java59 import com.android.permissioncontroller.permission.utils.KotlinUtils;
191 if (KotlinUtils.INSTANCE.isROrAutoRevokeEnabled(getApplication(), in onCreate()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/service/
DRuntimePermissionsUpgradeController.kt41 import com.android.permissioncontroller.permission.utils.KotlinUtils.grantBackgroundRuntimePermissi… in <lambda>()
42 import com.android.permissioncontroller.permission.utils.KotlinUtils.grantForegroundRuntimePermissi… in <lambda>()
DAutoRevokePermissions.kt108 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>()
387 val bgRevokedState = KotlinUtils.revokeBackgroundRuntimePermissions( in revokePermissionsOnUnusedApps()
395 val fgRevokedState = KotlinUtils.revokeForegroundRuntimePermissions( in revokePermissionsOnUnusedApps()
DPermissionControllerServiceImpl.java59 import com.android.permissioncontroller.permission.utils.KotlinUtils;
430 CharSequence label = KotlinUtils.INSTANCE.getPermGroupLabel(this, groupName); in onGetAppPermissions()
/packages/apps/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/handheld/
DManageStandardPermissionsFragmentTest.kt36 import com.android.permissioncontroller.permission.utils.KotlinUtils.getPermGroupLabel
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt77 object KotlinUtils { in <lambda>() object