/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/util/ |
D | KotlinUtilsTest.kt | 35 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>() 56 assertThat(KotlinUtils.convertToBitmap(drawable).sameAs(bitmap)).isTrue() in <lambda>() 62 assertFailsWith<IllegalArgumentException> { KotlinUtils.convertToBitmap(drawable) } in <lambda>() 101 val intent = KotlinUtils.getAppStoreIntent(mockContext, installerPackage, appPackage) in <lambda>() 128 val intent = KotlinUtils.getAppStoreIntent(mockContext, "com.installer", appPackage) in <lambda>() 140 assertThat(KotlinUtils.getAppStoreIntent(mockContext, "com.installer", "com.app")).isNull() in <lambda>() 145 assertThat(KotlinUtils.getMimeTypeForPermissions(listOf(READ_MEDIA_IMAGES, "read memes"))) in <lambda>() 151 assertThat(KotlinUtils.getMimeTypeForPermissions(listOf("write memes", READ_MEDIA_VIDEO))) in <lambda>() 158 KotlinUtils.getMimeTypeForPermissions(listOf(READ_MEDIA_IMAGES, READ_MEDIA_VIDEO)) in <lambda>() 165 assertThat(KotlinUtils.getMimeTypeForPermissions(listOf("amazing permission"))).isNull() in <lambda>() [all …]
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/utils/ |
D | GrantRevokeTests.kt | 52 import com.android.permissioncontroller.permission.utils.KotlinUtils 410 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantOnePermTest() 440 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantTwoPermTest() 480 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantNoAppOpPerm() 510 val newGroup = KotlinUtils.grantBackgroundRuntimePermissions(app, group) in grantBgPermTest() 542 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantBgAndFgPermTest() 560 val newGroup2 = KotlinUtils.grantBackgroundRuntimePermissions(app, newGroup) in grantBgAndFgPermTest() 593 KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantAutoRevokedPermInGroupTest() 624 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantSystemFixedTest() 662 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in grantBgSystemFixedTest() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | DataRepository.kt | 27 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>() 180 key is KotlinUtils.Quadruple<*, *, *, *> && key.first == packageName in invalidateAllForPackage() 264 KotlinUtils.Quadruple<K1, K2, K3, Int>, V 267 return getWithDeviceId(KotlinUtils.Quadruple(k1, k2, k3, deviceId), deviceId) in get() 275 KotlinUtils.Quadruple<K1, K2, K3, Int>, V 279 KotlinUtils.Quadruple(k1, k2, k3, ContextCompat.DEVICE_ID_DEFAULT), in get() 285 KotlinUtils.Quadruple<K1, K2, K3, Int>, V 289 KotlinUtils.Quadruple(key.first, key.second, key.third, ContextCompat.DEVICE_ID_DEFAULT), in get()
|
D | PermStateLiveData.kt | 27 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>() 85 invalidateSingle(KotlinUtils.Quadruple(packageName, permGroupName, user, deviceId)) in <lambda>() 149 KotlinUtils.Quadruple<String, String, UserHandle, Int>, PermStateLiveData in <lambda>() 152 key: KotlinUtils.Quadruple<String, String, UserHandle, Int>, in <lambda>()
|
D | LightAppPermGroupLiveData.kt | 30 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>() 71 val key = KotlinUtils.Quadruple(packageName, permGroupName, user, deviceId) in <lambda>() 223 KotlinUtils.Quadruple<String, String, UserHandle, Int>, LightAppPermGroupLiveData in <lambda>() 226 key: KotlinUtils.Quadruple<String, String, UserHandle, Int>, in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | AllAppPermissionsFragment.java | 49 import com.android.permissioncontroller.permission.utils.KotlinUtils; 175 Drawable icon = KotlinUtils.INSTANCE.getBadgedPackageIcon(getActivity().getApplication(), in updateUi() 177 CharSequence label = KotlinUtils.INSTANCE.getPackageLabel(getActivity().getApplication(), in updateUi() 204 KotlinUtils.INSTANCE.sortPreferenceGroup(getPreferenceScreen(), this::comparePreferences, in updateUi() 234 pref.setTitle(KotlinUtils.INSTANCE.getPermGroupLabel(getContext(), groupName)); in findOrCreatePrefGroup() 256 pref.setIcon(KotlinUtils.INSTANCE.getPermInfoIcon(context, permName)); in getPreference() 257 pref.setTitle(KotlinUtils.INSTANCE.getPermInfoLabel(context, permName)); in getPreference() 259 final CharSequence desc = KotlinUtils.INSTANCE.getPermInfoDescription(context, in getPreference()
|
D | ReviewPermissionsFragment.java | 67 import com.android.permissioncontroller.permission.utils.KotlinUtils; 220 KotlinUtils.INSTANCE.grantForegroundRuntimePermissions(app, group); in confirmPermissionsReview() 225 KotlinUtils.INSTANCE.grantBackgroundRuntimePermissions(app, group); in confirmPermissionsReview() 228 KotlinUtils.INSTANCE.revokeForegroundRuntimePermissions(app, group); in confirmPermissionsReview() 229 KotlinUtils.INSTANCE.revokeBackgroundRuntimePermissions(app, group); in confirmPermissionsReview() 358 Drawable icon = KotlinUtils.INSTANCE.getPermGroupIcon(getContext(), in loadPreferences() 361 preference.setTitle(KotlinUtils.INSTANCE.getPermGroupLabel(getContext(), in loadPreferences() 495 setSummary(KotlinUtils.INSTANCE.getPermGroupDescription(mContext, in updateUi() 501 setSummary(KotlinUtils.INSTANCE.getPermGroupDescription(mContext, in updateUi()
|
D | ManagePermissionsFragment.java | 29 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()
|
D | AppPermissionGroupsFragment.java | 77 import com.android.permissioncontroller.permission.utils.KotlinUtils; 188 long aggregateDataFilterBeginDays = KotlinUtils.INSTANCE.is7DayToggleEnabled() in onCreate() 280 Drawable icon = KotlinUtils.INSTANCE.getBadgedPackageIcon(activity.getApplication(), in bindUi() 282 fragment.setHeader(icon, KotlinUtils.INSTANCE.getPackageLabel(activity.getApplication(), in bindUi() 355 CharSequence permissionGroupName = KotlinUtils.INSTANCE.getPermGroupLabel(context, in updatePreferences() 367 preference.setIcon(KotlinUtils.INSTANCE.getPermGroupIcon(context, groupName)); in updatePreferences() 391 KotlinUtils.INSTANCE.getPermGroupLabel(context, groupName)), in updatePreferences() 421 KotlinUtils.INSTANCE.sortPreferenceGroup(category, this::comparePreferences, false); in updatePreferences() 600 Integer uid = KotlinUtils.INSTANCE.getPackageUid(getActivity().getApplication(), in logAppPermissionsFragmentViewEntry()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/ |
D | ReviewOngoingUsageFragment.java | 50 import com.android.permissioncontroller.permission.utils.KotlinUtils; 169 usedGroups.put(accessedPermGroupName, KotlinUtils.INSTANCE.getPermGroupLabel( in updateDialogView() 208 usedGroups.put(CAMERA, KotlinUtils.INSTANCE.getPermGroupLabel(context, CAMERA)); in updateDialogView() 212 usedGroups.put(MICROPHONE, KotlinUtils.INSTANCE.getPermGroupLabel(context, in updateDialogView() 227 .setText(KotlinUtils.INSTANCE.getPackageLabel(context.getApplication(), in updateDialogView() 230 .setImageDrawable(KotlinUtils.INSTANCE.getBadgedPackageIcon( in updateDialogView() 240 Utils.applyTint(context, KotlinUtils.INSTANCE.getPermGroupIcon(context, in updateDialogView() 244 CharSequence groupLabel = KotlinUtils.INSTANCE.getPermGroupLabel(context, group); in updateDialogView()
|
D | PermissionUsageDetailsFragment.java | 57 import com.android.permissioncontroller.permission.utils.KotlinUtils; 117 KotlinUtils.INSTANCE.is7DayToggleEnabled() in onCreate() 192 KotlinUtils.INSTANCE.getPermGroupLabel( in onStart() 216 if (KotlinUtils.INSTANCE.is7DayToggleEnabled()) { in onCreateOptionsMenu() 251 mViewModel.updateShow7DaysToggle(KotlinUtils.INSTANCE.is7DayToggleEnabled()); in onOptionsItemSelected() 289 KotlinUtils.INSTANCE.getPermGroupLabel( in updateAllUI()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/ |
D | ReviewOngoingUsageActivity.java | 29 import com.android.permissioncontroller.permission.utils.KotlinUtils; 43 if (!KotlinUtils.INSTANCE.shouldShowCameraMicIndicators() in onCreate() 44 && !KotlinUtils.INSTANCE.shouldShowLocationIndicators()) { in onCreate()
|
D | UnusedAppsFragment.kt | 51 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>() 243 pref.title = KotlinUtils.getPackageLabel(activity!!.application, pkgName, user) in <lambda>() 256 val importantLabel = KotlinUtils.getPermGroupLabel(context!!, mostImportant) in <lambda>() 265 KotlinUtils.getPermGroupLabel(context!!, revokedPerms[1]) in <lambda>() 267 KotlinUtils.getPermGroupLabel(context!!, revokedPerms[0]) in <lambda>() 283 KotlinUtils.sortPreferenceGroup(category, this::comparePreference, false) in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/v33/widget/ |
D | SafetyProtectionSectionView.kt | 28 import com.android.permissioncontroller.permission.utils.KotlinUtils 53 if (KotlinUtils.shouldShowSafetyProtectionResources(context)) { 62 if (KotlinUtils.shouldShowSafetyProtectionResources(context)) { in onFinishInflate()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | AppPermissionViewModel.kt | 81 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>() 82 import com.android.permissioncontroller.permission.utils.KotlinUtils.isLocationAccuracyEnabled in <lambda>() 83 import com.android.permissioncontroller.permission.utils.KotlinUtils.isPhotoPickerPromptEnabled in <lambda>() 84 import com.android.permissioncontroller.permission.utils.KotlinUtils.openPhotoPickerForApp in <lambda>() 916 val packageLabel = KotlinUtils.getPackageLabel(app, packageName, user) in <lambda>() 922 val newGroup = KotlinUtils.grantForegroundRuntimePermissions(app, group) in <lambda>() 925 KotlinUtils.setFlagsWhenLocationAccuracyChanged(app, group, true) in <lambda>() 932 KotlinUtils.revokeForegroundRuntimePermissions( in <lambda>() 939 KotlinUtils.setFlagsWhenLocationAccuracyChanged(app, group, false) in <lambda>() 947 KotlinUtils.revokeForegroundRuntimePermissions( in <lambda>() [all …]
|
D | PermissionGroupPreference.java | 27 import com.android.permissioncontroller.permission.utils.KotlinUtils; 35 final CharSequence label = KotlinUtils.INSTANCE.getPermGroupLabel(context, name); in PermissionGroupPreference() 36 final Drawable icon = KotlinUtils.INSTANCE.getPermGroupIcon(context, name); in PermissionGroupPreference()
|
D | GrantPermissionsViewModel.kt | 107 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>() 108 import com.android.permissioncontroller.permission.utils.KotlinUtils.grantBackgroundRuntimePermissi… in <lambda>() 109 import com.android.permissioncontroller.permission.utils.KotlinUtils.grantForegroundRuntimePermissi… in <lambda>() 110 import com.android.permissioncontroller.permission.utils.KotlinUtils.openPhotoPickerForApp in <lambda>() 111 import com.android.permissioncontroller.permission.utils.KotlinUtils.revokeBackgroundRuntimePermiss… in <lambda>() 112 import com.android.permissioncontroller.permission.utils.KotlinUtils.revokeForegroundRuntimePermiss… in <lambda>() 601 KotlinUtils.setGroupFlags( in <lambda>() 638 KotlinUtils.setGroupFlags( in <lambda>() 656 KotlinUtils.setGroupFlags( in <lambda>() 883 KotlinUtils.setFlagsWhenLocationAccuracyChanged(app, groupState.group, true) in <lambda>() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/v34/ |
D | SafetyLabelChangesJobService.kt | 68 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>() 110 if (!KotlinUtils.isSafetyLabelChangeNotificationsEnabled(receiverContext)) { in <lambda>() 114 if (KotlinUtils.safetyLabelChangesJobServiceKillSwitch()) { in <lambda>() 146 if (!KotlinUtils.isSafetyLabelChangeNotificationsEnabled(receiverContext)) { in <lambda>() 173 if (!KotlinUtils.isSafetyLabelChangeNotificationsEnabled(context)) { in <lambda>() 177 if (KotlinUtils.safetyLabelChangesJobServiceKillSwitch()) { in <lambda>() 542 val (appLabel, smallIcon, color) = KotlinUtils.getSafetyCenterNotificationResources(this) in <lambda>() 664 KotlinUtils.runSafetyLabelChangesJobOnlyWhenDeviceIdle() in <lambda>() 697 KotlinUtils.runSafetyLabelChangesJobOnlyWhenDeviceIdle() in <lambda>() 699 .setPeriodic(KotlinUtils.getSafetyLabelChangesJobIntervalMillis()) in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v34/ |
D | PermissionRationaleViewModel.kt | 47 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>() 48 import com.android.permissioncontroller.permission.utils.KotlinUtils.getAppStoreIntent in <lambda>() 126 KotlinUtils.getPackageLabel(app, it, Process.myUserHandle()) in <lambda>() 234 val uid = KotlinUtils.getPackageUid(app, packageName, user) ?: return in <lambda>() 251 val uid = KotlinUtils.getPackageUid(app, packageName, user) ?: return in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/ |
D | WearUnusedAppsFragment.kt | 45 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>() 179 val importantLabel = KotlinUtils.getPermGroupLabel(context, mostImportant) in <lambda>() 188 KotlinUtils.getPermGroupLabel(context, revokedPerms[1]) in <lambda>() 190 KotlinUtils.getPermGroupLabel(context, revokedPerms[0]) in <lambda>() 212 KotlinUtils.getPackageLabel(activity.application, pkgName, user), in <lambda>() 214 KotlinUtils.getBadgedPackageIcon(activity.application, pkgName, user), in <lambda>()
|
D | WearPermissionAppsHelper.kt | 28 import com.android.permissioncontroller.permission.utils.KotlinUtils in <lambda>() 29 import com.android.permissioncontroller.permission.utils.KotlinUtils.getPermGroupDescription in <lambda>() 30 import com.android.permissioncontroller.permission.utils.KotlinUtils.getPermGroupLabel in <lambda>() 169 title = KotlinUtils.getPackageLabel(application, packageName, user), in <lambda>() 173 icon = KotlinUtils.getBadgedPackageIcon(application, packageName, user), in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v33/ |
D | ReviewPermissionDecisionsViewModel.kt | 38 import com.android.permissioncontroller.permission.utils.KotlinUtils 120 return KotlinUtils.getBadgedPackageIcon(app, packageName, user) in getAppIcon() 126 .unicodeWrap(KotlinUtils.getPackageLabel(app, permissionDecision.packageName, user)) in createPreferenceTitle() 128 KotlinUtils.getPermGroupLabel(app, permissionDecision.permissionGroupName).toString() in createPreferenceTitle()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v31/ |
D | PermissionUsageControlPreferenceUtils.kt | 33 import com.android.permissioncontroller.permission.utils.KotlinUtils 56 val permGroupLabel = KotlinUtils.getPermGroupLabel(context, groupName) in initPreference() 59 icon = KotlinUtils.getPermGroupIcon(context, groupName) in initPreference()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/ |
D | AutoPermissionAppsFragment.java | 52 import com.android.permissioncontroller.permission.utils.KotlinUtils; 105 Drawable icon = KotlinUtils.INSTANCE.getPermGroupIcon(getContext(), mPermGroupName); in onCreate() 106 CharSequence label = KotlinUtils.INSTANCE.getPermGroupLabel(getContext(), mPermGroupName); in onCreate() 107 CharSequence description = KotlinUtils.INSTANCE.getPermGroupDescription(getContext(), in onCreate() 263 pref.setTitle(KotlinUtils.INSTANCE.getPackageLabel(getActivity().getApplication(), in onPackagesLoaded() 287 KotlinUtils.INSTANCE.sortPreferenceGroup(category, this::comparePreference, false); in onPackagesLoaded()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/ |
D | TvUnusedAppsPreference.kt | 24 import com.android.permissioncontroller.permission.utils.KotlinUtils 43 icon = KotlinUtils.getBadgedPackageIcon(app, packageName, user)
|