Home
last modified time | relevance | path

Searched refs:getPackageInfo (Results 1 – 25 of 174) sorted by relevance

1234567

/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DAppPermissionsFragment.java114 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()
DReviewPermissionsFragment.java161 mAppPermissions.getPackageInfo().packageName); in onClick()
163 mAppPermissions.getPackageInfo().applicationInfo.uid)); in onClick()
230 PackageInfo pkg = mAppPermissions.getPackageInfo(); in confirmPermissionsReview()
268 Drawable icon = mAppPermissions.getPackageInfo().applicationInfo.loadIcon( in bindUi()
/packages/apps/Settings/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProvider.java107 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/
DThemePreferenceControllerTest.java84 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/
DLocationProviderInterceptDialog.java55 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()
DGrantPermissionsActivity.java155 mAppPermissions.getPackageInfo().requestedPermissions, permName)) { in addRequestedPermissions()
492 pm.getPackageInfo(mCallingPackage, 0); in onStart()
856 return getPackageManager().getPackageInfo(mCallingPackage, in getCallingPackageInfo()
899 SafetyNetLogger.logPermissionsRequested(mAppPermissions.getPackageInfo(), groups); in logRequestedPermissionGroups()
916 mAppPermissions.getPackageInfo().applicationInfo.targetSdkVersion; in computeAffectedPermissions()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicensesPreferenceControllerTest.java90 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()
DModuleLicenseProviderTest.java307 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()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppPreference.java57 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/
DAppPreference.java57 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/
DAppPermissionsFragment.java92 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/
DDrawOverlayDetailPreferenceControllerTest.java80 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()
DWriteSystemSettingsPreferenceControllerTest.java80 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()
DAppInstallerInfoPreferenceControllerTest.java116 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()
DAppOpenByDefaultPreferenceControllerTest.java139 when(mFragment.getPackageInfo()).thenReturn(new PackageInfo()); in updateState_isInstantApp_shouldNotShowPreference()
150 when(mFragment.getPackageInfo()).thenReturn(new PackageInfo()); in updateState_notInstantApp_shouldShowPreferenceAndSetSummary()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DPermissions.java87 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/
DAutoAppPermissionsFragment.java82 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()
DAutoPermissionsUtils.java41 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/
DThemePreferenceControllerTest.java85 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/
DInstantAppDomainsPreferenceController.java41 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/
DInstantAppDomainsPreferenceController.java41 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/
DPackageUtils.java46 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/
DApplicationUtils.java58 final PackageInfo info = context.getPackageManager().getPackageInfo(packageName, 0); in getVersionName()
76 final PackageInfo info = context.getPackageManager().getPackageInfo(packageName, 0); in getVersionCode()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/firmwareversion/
DMainlineModuleVersionPreferenceControllerTest.java83 when(mPackageManager.getPackageInfo(eq(provider), anyInt())) in getAvailabilityStatus_noMainlineModulePackageInfo_unavailable()
138 when(mPackageManager.getPackageInfo(eq(provider), anyInt())).thenReturn(info); in setupModulePackage()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DAppPermissions.java78 public PackageInfo getPackageInfo() { in getPackageInfo() method in AppPermissions
114 .getPackageManager().getPackageInfo(mPackageInfo.packageName, in loadPackageInfo()

1234567