Home
last modified time | relevance | path

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

12345678

/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/src/com/android/settings/applications/appinfo/
DInstantAppDomainsPreferenceController.java41 return mParent.getPackageInfo() != null in getAvailabilityStatus()
42 && AppUtils.isInstant(mParent.getPackageInfo().applicationInfo) in getAvailabilityStatus()
50 Utils.getHandledDomains(mPackageManager, mParent.getPackageInfo().packageName); in updateState()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/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()
66 return getPackageInfo(packageName, PackageManager.MATCH_SYSTEM_ONLY, context) != null; in isSystemPackage()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationUtils.java88 PackageInfo packageInfo = getPackageInfo(context, statusBarNotification); in isSystemApp()
99 PackageInfo packageInfo = getPackageInfo(context, statusBarNotification); in isSignedWithPlatformKey()
161 PackageInfo packageInfo = getPackageInfo(context, alertEntry.getStatusBarNotification()); in isSystemPrivilegedOrPlatformKeyInner()
173 private static PackageInfo getPackageInfo(Context context, in getPackageInfo() method in NotificationUtils
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppInstallerInfoPreferenceControllerTest.java124 when(mFragment.getPackageInfo()).thenReturn(packageInfo); in updateState_shouldSetSummary()
135 when(mFragment.getPackageInfo()).thenReturn(packageInfo); in updateState_noAppStoreLink_shouldDisablePreference()
147 when(mFragment.getPackageInfo()).thenReturn(packageInfo); in updateState_hasAppStoreLink_shouldSetPreferenceIntent()
184 when(mPackageManager.getPackageInfo(packageName, 0 /* flags */)).thenReturn( in mockMainlineModule()
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()
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()
DAppOpenByDefaultPreferenceControllerTest.java157 when(mFragment.getPackageInfo()).thenReturn(new PackageInfo()); in updateState_isInstantApp_shouldNotShowPreference()
170 when(mFragment.getPackageInfo()).thenReturn(packageInfo); in updateState_isBrowserApp_shouldNotShowPreference()
190 when(mFragment.getPackageInfo()).thenReturn(packageInfo); in updateState_notBrowserApp_notInstantApp_shouldShowPreferenceAndSetSummary()
DAppVersionPreferenceControllerTest.java61 when(mFragment.getPackageInfo()).thenReturn(packageInfo); in updateState_shouldUpdatePreferenceSummary()
70 when(mFragment.getPackageInfo()).thenReturn(null); in updateState_packageInfoNull_shouldNotCrash()
/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/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()
DModuleLicensesListPreferenceControllerTest.java61 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/
DAppPreference.java61 PackageInfo pkgInfo = pm.getPackageInfo(mPackageName, 0 /* flags */); in AppPreference()
100 public PackageInfo getPackageInfo() { in getPackageInfo() method in AppPreference
103 return pm.getPackageInfo(mPackageName, 0 /* flags */); in getPackageInfo()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DPermissions.java108 PackageInfo packageInfo = getPackageInfo(packageName, context); in grant()
398 PackageInfo packageInfo = getPackageInfo(packageName, context); in revoke()
559 private static PackageInfo getPackageInfo(@NonNull String packageName, in getPackageInfo() method in Permissions
561 return getPackageInfo(packageName, 0, context); in getPackageInfo()
567 return getPackageInfo(packageName, PackageManager.MATCH_FACTORY_ONLY, context); in getFactoryPackageInfo()
571 private static PackageInfo getPackageInfo(@NonNull String packageName, int extraFlags, in getPackageInfo() method in Permissions
573 return PackageUtils.getPackageInfo(packageName, extraFlags in getPackageInfo()
/packages/apps/Settings/tests/legacy_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/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoPermissionsUtils.java41 public static PackageInfo getPackageInfo(Activity activity, @NonNull String packageName, in getPackageInfo() method in AutoPermissionsUtils
46 .getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); in getPackageInfo()
DAutoAppPermissionsFragment.java95 PackageInfo packageInfo = AutoPermissionsUtils.getPackageInfo(activity, mPackageName, in onCreate()
185 mAppPermissions.getPackageInfo().applicationInfo)); in updatePreferences()
217 mAppPermissions.getPackageInfo().applicationInfo)); in updatePreferences()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DReviewPermissionsFragment.java165 mAppPermissions.getPackageInfo().packageName); in onClick()
167 mAppPermissions.getPackageInfo().applicationInfo.uid)); in onClick()
237 PackageInfo pkg = mAppPermissions.getPackageInfo(); in confirmPermissionsReview()
275 Drawable icon = mAppPermissions.getPackageInfo().applicationInfo.loadIcon( in bindUi()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProviderTest.java303 when(packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.MATCH_APEX)) in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue()
324 when(packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.MATCH_APEX)) in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue()
346 when(packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.MATCH_APEX)) in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue()
371 when(packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.MATCH_APEX)) in isCachedHtmlFileOutdated_notOutdated_returnFalse()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/toast/
DCarToastUI.java91 PackageInfo packageInfo = getPackageInfo(packageName); in isSystemPrivilegedOrPlatformKey()
99 private PackageInfo getPackageInfo(String packageName) { in getPackageInfo() method in CarToastUI
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissions.java78 public PackageInfo getPackageInfo() { in getPackageInfo() method in AppPermissions
114 .getPackageManager().getPackageInfo(mPackageInfo.packageName, in loadPackageInfo()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java427 final PackageInfo app = mPackageManager.getPackageInfo(name, in highestPermissionForUid()
448 final PackageInfo app = getPackageInfo(name); in getPermissionForUid()
586 private PackageInfo getPackageInfo(String packageName) { in getPackageInfo() method in PermissionMonitor
588 PackageInfo app = mPackageManager.getPackageInfo(packageName, GET_PERMISSIONS in getPackageInfo()
843 final PackageInfo info = getPackageInfo(app); in onExternalApplicationsAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/firmwareversion/
DMainlineModuleVersionPreferenceControllerTest.java81 when(mPackageManager.getPackageInfo(eq(provider), anyInt())) in getAvailabilityStatus_noMainlineModulePackageInfo_unavailable()
207 when(mPackageManager.getPackageInfo(eq(provider), anyInt())).thenReturn(info); in setupModulePackage()

12345678