/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/ |
D | AppPermissionsFragment.java | 114 PackageInfo packageInfo = getPackageInfo(activity, packageName, userHandle); in onCreate() 163 bindUi(this, mAppPermissions.getPackageInfo()); in onViewCreated() 353 permissionGroupName, mAppPermissions.getPackageInfo().applicationInfo.uid, in logAppPermissionsFragmentViewEntry() 354 mAppPermissions.getPackageInfo().packageName, category); in logAppPermissionsFragmentViewEntry() 357 + mAppPermissions.getPackageInfo().applicationInfo.uid + " packageName=" in logAppPermissionsFragmentViewEntry() 358 + mAppPermissions.getPackageInfo().packageName + " category=" + category); in logAppPermissionsFragmentViewEntry() 361 private static PackageInfo getPackageInfo(Activity activity, @NonNull String packageName, in getPackageInfo() method in AppPermissionsFragment 365 userHandle).getPackageManager().getPackageInfo(packageName, in getPackageInfo() 393 bindUi(this, getPackageInfo(getActivity(), packageName, userHandle)); in onViewCreated()
|
D | ReviewPermissionsFragment.java | 162 mAppPermissions.getPackageInfo().packageName); in onClick() 164 mAppPermissions.getPackageInfo().applicationInfo.uid)); in onClick() 234 PackageInfo pkg = mAppPermissions.getPackageInfo(); in confirmPermissionsReview() 272 Drawable icon = mAppPermissions.getPackageInfo().applicationInfo.loadIcon( in bindUi()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/legal/ |
D | ModuleLicenseProvider.java | 107 getPackageInfo(context, packageName).getLongVersionCode()) in openFile() 133 != getPackageInfo(context, packageName).getLongVersionCode() in isCachedHtmlFileOutdated() 140 packageManager.getPackageInfo(packageName, PackageManager.MATCH_APEX) in getPackageAssetManager() 186 private static PackageInfo getPackageInfo(Context context, String packageName) in getPackageInfo() method in ModuleLicenseProvider 188 return context.getPackageManager().getPackageInfo(packageName, PackageManager.MATCH_APEX); in getPackageInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | ThemePreferenceControllerTest.java | 84 when(mPackageManager.getPackageInfo(anyString(), anyInt())).thenReturn( in testAvailable_false() 93 when(mPackageManager.getPackageInfo(anyString(), anyInt())).thenReturn( in testAvailable_true() 150 when(mPackageManager.getPackageInfo(anyString(), anyInt())).thenReturn( in getCurrentTheme_withEnabledState() 164 when(mPackageManager.getPackageInfo(anyString(), anyInt())).thenReturn( in testGetCurrentTheme_withoutEnabledState()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/ |
D | LocationProviderInterceptDialog.java | 55 Utils.getAppLabel(getPackageInfo(packageName).applicationInfo, this))) in onCreate() 63 private @Nullable PackageInfo getPackageInfo(@NonNull String packageName) { in getPackageInfo() method in LocationProviderInterceptDialog 65 return getPackageManager().getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); in getPackageInfo()
|
D | GrantPermissionsActivity.java | 155 mAppPermissions.getPackageInfo().requestedPermissions, permName)) { in addRequestedPermissions() 490 pm.getPackageInfo(mCallingPackage, 0); in onStart() 854 return getPackageManager().getPackageInfo(mCallingPackage, in getCallingPackageInfo() 897 SafetyNetLogger.logPermissionsRequested(mAppPermissions.getPackageInfo(), groups); in logRequestedPermissionGroups() 914 mAppPermissions.getPackageInfo().applicationInfo.targetSdkVersion; in computeAffectedPermissions()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/ |
D | ModuleLicensesPreferenceControllerTest.java | 90 when(packageManager.getPackageInfo(MODULE_1_PACKAGE_NAME, PackageManager.MATCH_APEX)) in displayPreference_alphabeticalOrder() 92 when(packageManager.getPackageInfo(MODULE_2_PACKAGE_NAME, PackageManager.MATCH_APEX)) in displayPreference_alphabeticalOrder() 124 when(packageManager.getPackageInfo(MODULE_1_PACKAGE_NAME, PackageManager.MATCH_APEX)) in displayPreference_includeOnlyModulesWithLicenseFile() 134 when(packageManager.getPackageInfo(MODULE_2_PACKAGE_NAME, PackageManager.MATCH_APEX)) in displayPreference_includeOnlyModulesWithLicenseFile()
|
D | ModuleLicenseProviderTest.java | 307 when(packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.MATCH_APEX)) in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue() 328 when(packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.MATCH_APEX)) in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue() 350 when(packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.MATCH_APEX)) in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue() 375 when(packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.MATCH_APEX)) in isCachedHtmlFileOutdated_notOutdated_returnFalse()
|
D | ModuleLicensesListPreferenceControllerTest.java | 61 when(packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.MATCH_APEX)).thenReturn( in getAvailabilityStatus_validLicenses_returnsAvailable() 102 when(packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.MATCH_APEX)).thenReturn( in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | AppPreference.java | 57 PackageInfo pkgInfo = pm.getPackageInfo(mPackageName, 0 /* flags */); in AppPreference() 77 public PackageInfo getPackageInfo() { in getPackageInfo() method in AppPreference 80 return pm.getPackageInfo(mPackageName, 0 /* flags */); in getPackageInfo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/ |
D | AppPreference.java | 57 PackageInfo pkgInfo = pm.getPackageInfo(mPackageName, 0 /* flags */); in AppPreference() 77 public PackageInfo getPackageInfo() { in getPackageInfo() method in AppPreference 80 return pm.getPackageInfo(mPackageName, 0 /* flags */); in getPackageInfo()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/television/ |
D | AppPermissionsFragment.java | 92 PackageInfo packageInfo = getPackageInfo(activity, packageName); in onCreate() 147 bindUi(this, mAppPermissions.getPackageInfo()); in onViewCreated() 356 private static PackageInfo getPackageInfo(Activity activity, String packageName) { in getPackageInfo() method in AppPermissionsFragment 358 return activity.getPackageManager().getPackageInfo( in getPackageInfo() 385 bindUi(this, getPackageInfo(getActivity(), packageName)); in onViewCreated()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | DrawOverlayDetailPreferenceControllerTest.java | 80 when(mFragment.getPackageInfo()).thenReturn(new PackageInfo()); in getAvailabilityStatus_noPermissionRequested_shouldReturnDisabled() 91 when(mFragment.getPackageInfo()).thenReturn(info); in getAvailabilityStatus_noSystemAlertWindowPermission_shouldReturnDisabled() 102 when(mFragment.getPackageInfo()).thenReturn(info); in getAvailabilityStatus_hasSystemAlertWindowPermission_shouldReturnAvailable()
|
D | WriteSystemSettingsPreferenceControllerTest.java | 80 when(mFragment.getPackageInfo()).thenReturn(new PackageInfo()); in getAvailabilityStatus_noPermissionRequested_shouldReturnDisabled() 91 when(mFragment.getPackageInfo()).thenReturn(info); in getAvailabilityStatus_noWriteSettingsPermission_shouldReturnDisabled() 102 when(mFragment.getPackageInfo()).thenReturn(info); in getAvailabilityStatus_hasWriteSettingsPermission_shouldReturnAvailable()
|
D | AppInstallerInfoPreferenceControllerTest.java | 116 when(mFragment.getPackageInfo()).thenReturn(packageInfo); in updateState_shouldSetSummary() 127 when(mFragment.getPackageInfo()).thenReturn(packageInfo); in updateState_noAppStoreLink_shouldDisablePreference() 139 when(mFragment.getPackageInfo()).thenReturn(packageInfo); in updateState_hasAppStoreLink_shouldSetPreferenceIntent()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/ |
D | Permissions.java | 87 PackageInfo packageInfo = getPackageInfo(packageName, context); in grant() 378 PackageInfo packageInfo = getPackageInfo(packageName, context); in revoke() 540 private static PackageInfo getPackageInfo(@NonNull String packageName, in getPackageInfo() method in Permissions 542 return getPackageInfo(packageName, 0, context); in getPackageInfo() 548 return getPackageInfo(packageName, PackageManager.MATCH_FACTORY_ONLY, context); in getFactoryPackageInfo() 552 private static PackageInfo getPackageInfo(@NonNull String packageName, int extraFlags, in getPackageInfo() method in Permissions 554 return PackageUtils.getPackageInfo(packageName, extraFlags in getPackageInfo()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/auto/ |
D | AutoAppPermissionsFragment.java | 82 PackageInfo packageInfo = AutoPermissionsUtils.getPackageInfo(activity, packageName, in onCreate() 110 bindUi(mAppPermissions.getPackageInfo()); in onStart() 161 mAppPermissions.getPackageInfo().applicationInfo)); in updatePreferences() 193 mAppPermissions.getPackageInfo().applicationInfo)); in updatePreferences()
|
D | AutoPermissionsUtils.java | 41 public static PackageInfo getPackageInfo(Activity activity, @NonNull String packageName, in getPackageInfo() method in AutoPermissionsUtils 46 .getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); in getPackageInfo()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/display/ |
D | ThemePreferenceControllerTest.java | 85 when(mMockPackageManager.getPackageInfo(anyString(), anyInt())).thenReturn( in testUpdateState() 123 when(mMockPackageManager.getPackageInfo(eq("com.android.Theme1"), anyInt())).thenReturn(pi); in testUpdateState_withStaticOverlay() 124 when(mMockPackageManager.getPackageInfo(eq("com.android.Theme2"), anyInt())).thenReturn( in testUpdateState_withStaticOverlay()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | InstantAppDomainsPreferenceController.java | 41 return AppUtils.isInstant(mParent.getPackageInfo().applicationInfo) in getAvailabilityStatus() 49 Utils.getHandledDomains(mPackageManager, mParent.getPackageInfo().packageName); in updateState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | InstantAppDomainsPreferenceController.java | 41 return AppUtils.isInstant(mParent.getPackageInfo().applicationInfo) in getAvailabilityStatus() 49 Utils.getHandledDomains(mPackageManager, mParent.getPackageInfo().packageName); in updateState()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/utils/ |
D | PackageUtils.java | 46 public static PackageInfo getPackageInfo(@NonNull String packageName, int extraFlags, in getPackageInfo() method in PackageUtils 50 return packageManager.getPackageInfo(packageName, PackageManager.MATCH_DIRECT_BOOT_AWARE in getPackageInfo()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | ApplicationUtils.java | 58 final PackageInfo info = context.getPackageManager().getPackageInfo(packageName, 0); in getVersionName() 76 final PackageInfo info = context.getPackageManager().getPackageInfo(packageName, 0); in getVersionCode()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/ |
D | AppPermissions.java | 78 public PackageInfo getPackageInfo() { in getPackageInfo() method in AppPermissions 114 .getPackageManager().getPackageInfo(mPackageInfo.packageName, in loadPackageInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/firmwareversion/ |
D | MainlineModuleVersionPreferenceControllerTest.java | 80 when(mPackageManager.getPackageInfo(eq(provider), anyInt())) in getAvailabilityStatus_noMainlineModulePackageInfo_unavailable() 164 when(mPackageManager.getPackageInfo(eq(provider), anyInt())).thenReturn(info); in setupModulePackage()
|