/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/src/com/android/settings/applications/appinfo/ |
D | InstantAppDomainsPreferenceController.java | 41 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/ |
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() 66 return getPackageInfo(packageName, PackageManager.MATCH_SYSTEM_ONLY, context) != null; in isSystemPackage()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | NotificationUtils.java | 88 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/ |
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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppInstallerInfoPreferenceControllerTest.java | 124 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()
|
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 | 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 | AppOpenByDefaultPreferenceControllerTest.java | 157 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()
|
D | AppVersionPreferenceControllerTest.java | 61 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/ |
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/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 | 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 | 61 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/ |
D | Permissions.java | 108 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/ |
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/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/ |
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()
|
D | AutoAppPermissionsFragment.java | 95 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/ |
D | ReviewPermissionsFragment.java | 165 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/ |
D | ModuleLicenseProviderTest.java | 303 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/ |
D | CarToastUI.java | 91 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/ |
D | AppPermissions.java | 78 public PackageInfo getPackageInfo() { in getPackageInfo() method in AppPermissions 114 .getPackageManager().getPackageInfo(mPackageInfo.packageName, in loadPackageInfo()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | PermissionMonitor.java | 427 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/ |
D | MainlineModuleVersionPreferenceControllerTest.java | 81 when(mPackageManager.getPackageInfo(eq(provider), anyInt())) in getAvailabilityStatus_noMainlineModulePackageInfo_unavailable() 207 when(mPackageManager.getPackageInfo(eq(provider), anyInt())).thenReturn(info); in setupModulePackage()
|