Home
last modified time | relevance | path

Searched refs:applicationInfo (Results 1 – 25 of 467) sorted by relevance

12345678910>>...19

/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/sideloaded/
DSideLoadedAppDetectorTest.java85 ApplicationInfo applicationInfo = new ApplicationInfo(); in isSafe_systemApp_returnsTrue() local
86 applicationInfo.packageName = APP_PACKAGE_NAME; in isSafe_systemApp_returnsTrue()
87 applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in isSafe_systemApp_returnsTrue()
90 .thenReturn(applicationInfo); in isSafe_systemApp_returnsTrue()
100 ApplicationInfo applicationInfo = new ApplicationInfo(); in isSafe_updatedSystemApp_returnsTrue() local
101 applicationInfo.packageName = APP_PACKAGE_NAME; in isSafe_updatedSystemApp_returnsTrue()
102 applicationInfo.flags = ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; in isSafe_updatedSystemApp_returnsTrue()
105 .thenReturn(applicationInfo); in isSafe_updatedSystemApp_returnsTrue()
119 ApplicationInfo applicationInfo = new ApplicationInfo(); in isSafe_nonSystemApp_withSafeSource_returnsTrue() local
120 applicationInfo.packageName = APP_PACKAGE_NAME; in isSafe_nonSystemApp_withSafeSource_returnsTrue()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DClassifierInputManager.java84 ApplicationInfo applicationInfo = getApplicationInfo(packageManager, packageName); in getClassifierInput() local
85 if (applicationInfo == null) { in getClassifierInput()
90 getInputFieldValues(packageManager, applicationInfo, packageName, inputFields); in getClassifierInput()
115 ApplicationInfo applicationInfo, in getInputFieldValues() argument
132 packageManager, applicationInfo, applicationInfo.labelRes)); in getInputFieldValues()
139 applicationInfo, in getInputFieldValues()
140 applicationInfo.descriptionRes))); in getInputFieldValues()
173 PackageManager packageManager, ApplicationInfo applicationInfo, int resourceId) { in getAppResource() argument
179 return getLocalAppResource(packageManager, applicationInfo, resourceId); in getAppResource()
182 return getEnglishAppResource(packageManager, applicationInfo, resourceId); in getAppResource()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/sideloaded/
DSideLoadedAppDetector.java69 if (info.applicationInfo == null) { in hasUnsafeInstalledApps()
74 if (!isSafe(info.applicationInfo)) { in hasUnsafeInstalledApps()
95 ApplicationInfo applicationInfo; in isSafe() local
98 applicationInfo = mPackageManager.getApplicationInfoAsUser(packageName, in isSafe()
103 if (applicationInfo == null) { in isSafe()
112 return isSafe(applicationInfo); in isSafe()
115 private boolean isSafe(@NonNull ApplicationInfo applicationInfo) { in isSafe() argument
116 String packageName = applicationInfo.packageName; in isSafe()
118 if (applicationInfo.isSystemApp() || applicationInfo.isUpdatedSystemApp()) { in isSafe()
/packages/services/Car/service-builtin/src/com/android/car/
DUpdatablePackageContext.java54 if (info == null || info.applicationInfo == null || !(info.applicationInfo.isSystemApp() in create()
55 || info.applicationInfo.isUpdatedSystemApp())) { in create()
58 ? "do not exist" : info.applicationInfo)); in create()
156 if (info == null || info.applicationInfo == null in getEligibleRROPackages()
157 || !(PackageManagerHelper.isSystemApp(info.applicationInfo) in getEligibleRROPackages()
158 || PackageManagerHelper.isUpdatedSystemApp(info.applicationInfo) in getEligibleRROPackages()
159 || PackageManagerHelper.isOemApp(info.applicationInfo) in getEligibleRROPackages()
160 || PackageManagerHelper.isOdmApp(info.applicationInfo) in getEligibleRROPackages()
161 || PackageManagerHelper.isVendorApp(info.applicationInfo) in getEligibleRROPackages()
162 || PackageManagerHelper.isProductApp(info.applicationInfo) in getEligibleRROPackages()
[all …]
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DRole.java516 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfoAsUser(packageName, in getQualifiedDefaultHolderPackageNameAsUser() local
518 if (applicationInfo == null) { in getQualifiedDefaultHolderPackageNameAsUser()
522 if ((applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { in getQualifiedDefaultHolderPackageNameAsUser()
591 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfoAsUser(packageName, user, in isPackageQualifiedAsUser() local
593 if (applicationInfo == null) { in isPackageQualifiedAsUser()
597 if (!isPackageMinimallyQualifiedAsUser(applicationInfo, user, context)) { in isPackageQualifiedAsUser()
613 if (!requiredComponent.isRequired(applicationInfo)) { in isPackageQualifiedAsUser()
695 ApplicationInfo applicationInfo = packageApplicationInfoMap.get(packageName); in getQualifyingPackagesAsUser() local
696 if (applicationInfo == null) { in getQualifyingPackagesAsUser()
697 applicationInfo = PackageUtils.getApplicationInfoAsUser(packageName, user, in getQualifyingPackagesAsUser()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DAppWorkaroundsUtils.java40 if (null == mPackageInfo || null == mPackageInfo.applicationInfo) { in isBeforeJellyBean()
43 return mPackageInfo.applicationInfo.targetSdkVersion < VERSION_CODES.JELLY_BEAN; in isBeforeJellyBean()
48 if (null == mPackageInfo || null == mPackageInfo.applicationInfo) { in toString()
53 .append(mPackageInfo.applicationInfo.name) in toString()
55 .append(mPackageInfo.applicationInfo.packageName) in toString()
57 .append(mPackageInfo.applicationInfo.targetSdkVersion); in toString()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/toast/
DCarToastUI.java95 ApplicationInfo applicationInfo = getApplicationInfo(packageName); in isSystemPrivilegedOrPlatformKey() local
96 if (applicationInfo == null) return false; in isSystemPrivilegedOrPlatformKey()
98 return (applicationInfo.isSignedWithPlatformKey() || ( in isSystemPrivilegedOrPlatformKey()
99 applicationInfo.isSystemApp() in isSystemPrivilegedOrPlatformKey()
100 && applicationInfo.isPrivilegedApp())); in isSystemPrivilegedOrPlatformKey()
104 ApplicationInfo applicationInfo = null; in getApplicationInfo() local
106 applicationInfo = mPackageManager.getApplicationInfoAsUser(packageName, /* flags= */ 0, in getApplicationInfo()
111 return applicationInfo; in getApplicationInfo()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DInstalledAppCountItemManager.java65 for (ApplicationInfo applicationInfo : appList) { in startLoading()
66 if (shouldCountApp(applicationInfo)) { in startLoading()
79 boolean shouldCountApp(ApplicationInfo applicationInfo) { in shouldCountApp() argument
80 if ((applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { in shouldCountApp()
83 if ((applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { in shouldCountApp()
86 int userId = UserHandle.getUserId(applicationInfo.uid); in shouldCountApp()
89 .setPackage(applicationInfo.packageName); in shouldCountApp()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAllAppsList.java316 final AppInfo applicationInfo = data.get(i); in updatePackage() local
317 if (user.equals(applicationInfo.user) in updatePackage()
318 && packageName.equals(applicationInfo.componentName.getPackageName())) { in updatePackage()
319 if (!findActivity(matches, applicationInfo.componentName)) { in updatePackage()
332 AppInfo applicationInfo = findAppInfo(info.getComponentName(), user); in updatePackage() local
333 if (applicationInfo == null) { in updatePackage()
338 mIconCache.getTitleAndIcon(applicationInfo, info, false /* useLowResIcon */); in updatePackage()
339 applicationInfo.sectionName = mIndex.computeSectionName(applicationInfo.title); in updatePackage()
340 applicationInfo.intent = launchIntent; in updatePackage()
341 AppInfo.updateRuntimeFlagsForActivityTarget(applicationInfo, info, in updatePackage()
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/testutils/
DUtils.java44 final ApplicationInfo applicationInfo = new ApplicationInfo(); in addAutofill() local
45 applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in addAutofill()
46 serviceInfo.applicationInfo = applicationInfo; in addAutofill()
49 autofillPackageInfo.applicationInfo = applicationInfo; in addAutofill()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bugreporthandler/
DBugReportHandlerPickerTest.java81 final ApplicationInfo applicationInfo = new ApplicationInfo(); in setUp() local
82 applicationInfo.name = PACKAGE_NAME; in setUp()
83 applicationInfo.uid = 0; in setUp()
84 applicationInfo.flags = 0; in setUp()
85 applicationInfo.packageName = PACKAGE_NAME; in setUp()
89 packageInfo.applicationInfo = applicationInfo; in setUp()
133 ApplicationInfo applicationInfo = new ApplicationInfo(); in createApplicationInfo() local
134 applicationInfo.packageName = packageName; in createApplicationInfo()
135 return applicationInfo; in createApplicationInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationBackendTest.java87 pi.applicationInfo = new ApplicationInfo(); in testMarkAppRow_fixedImportance()
88 pi.applicationInfo.packageName = "test"; in testMarkAppRow_fixedImportance()
89 pi.applicationInfo.uid = 123; in testMarkAppRow_fixedImportance()
104 pi.applicationInfo = new ApplicationInfo(); in testMarkAppRow_notFixedPermission()
105 pi.applicationInfo.packageName = "test"; in testMarkAppRow_notFixedPermission()
106 pi.applicationInfo.uid = 123; in testMarkAppRow_notFixedPermission()
121 pi.applicationInfo = new ApplicationInfo(); in testMarkAppRow_targetsT_noPermissionRequest()
122 pi.applicationInfo.packageName = "test"; in testMarkAppRow_targetsT_noPermissionRequest()
123 pi.applicationInfo.uid = 123; in testMarkAppRow_targetsT_noPermissionRequest()
124 pi.applicationInfo.targetSdkVersion= Build.VERSION_CODES.TIRAMISU; in testMarkAppRow_targetsT_noPermissionRequest()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicensesListPreferenceControllerTest.java59 ApplicationInfo applicationInfo = new ApplicationInfo(); in getAvailabilityStatus_validLicenses_returnsAvailable() local
60 packageInfo.applicationInfo = applicationInfo; in getAvailabilityStatus_validLicenses_returnsAvailable()
64 when(packageManager.getResourcesForApplication(applicationInfo)).thenReturn(resources); in getAvailabilityStatus_validLicenses_returnsAvailable()
100 ApplicationInfo applicationInfo = new ApplicationInfo(); in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable() local
101 packageInfo.applicationInfo = applicationInfo; in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable()
105 when(packageManager.getResourcesForApplication(applicationInfo)).thenReturn(resources); in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable()
DModuleLicensesPreferenceControllerTest.java88 ApplicationInfo applicationInfo = new ApplicationInfo(); in displayPreference_alphabeticalOrder() local
89 packageInfo.applicationInfo = applicationInfo; in displayPreference_alphabeticalOrder()
95 when(packageManager.getResourcesForApplication(applicationInfo)).thenReturn(resources); in displayPreference_alphabeticalOrder()
122 ApplicationInfo applicationInfo = new ApplicationInfo(); in displayPreference_includeOnlyModulesWithLicenseFile() local
123 packageInfo.applicationInfo = applicationInfo; in displayPreference_includeOnlyModulesWithLicenseFile()
127 when(packageManager.getResourcesForApplication(applicationInfo)).thenReturn(resources); in displayPreference_includeOnlyModulesWithLicenseFile()
133 packageInfo2.applicationInfo = applicationInfo2; in displayPreference_includeOnlyModulesWithLicenseFile()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DRequestRoleFragment.java136 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(mPackageName, context); in onCreateDialog() local
137 if (applicationInfo == null) { in onCreateDialog()
145 Drawable icon = Utils.getBadgedIcon(context, applicationInfo); in onCreateDialog()
146 String applicationLabel = Utils.getAppLabel(applicationInfo, context); in onCreateDialog()
398 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(packageName, in getApplicationUid() local
400 if (applicationInfo == null) { in getApplicationUid()
403 return applicationInfo.uid; in getApplicationUid()
417 ApplicationInfo applicationInfo = qualifyingApplication.first; in getQualifyingApplicationUid() local
418 if (Objects.equals(applicationInfo.packageName, packageName)) { in getQualifyingApplicationUid()
419 return applicationInfo.uid; in getQualifyingApplicationUid()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DActiveUnlockTestUtils.java54 ApplicationInfo applicationInfo = new ApplicationInfo(); in enable() local
55 applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in enable()
59 resolveInfo.activityInfo.applicationInfo = applicationInfo; in enable()
64 providerInfo.applicationInfo = applicationInfo; in enable()
DAccessibilityTestUtils.java76 final ApplicationInfo applicationInfo = new ApplicationInfo(); in createAccessibilityServiceInfo() local
77 applicationInfo.targetSdkVersion = Build.VERSION_CODES.R; in createAccessibilityServiceInfo()
79 applicationInfo.packageName = componentName.getPackageName(); in createAccessibilityServiceInfo()
82 serviceInfo.applicationInfo = applicationInfo; in createAccessibilityServiceInfo()
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DActiveUnlockTestUtils.java54 ApplicationInfo applicationInfo = new ApplicationInfo(); in enable() local
55 applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in enable()
59 resolveInfo.activityInfo.applicationInfo = applicationInfo; in enable()
64 providerInfo.applicationInfo = applicationInfo; in enable()
/packages/apps/Settings/src/com/android/settings/development/compat/
DPlatformCompatDashboard.java115 final ApplicationInfo applicationInfo = getApplicationInfo(); in onResume() local
116 addPreferences(applicationInfo); in onResume()
122 private void addPreferences(ApplicationInfo applicationInfo) { in addPreferences() argument
124 getPreferenceScreen().addPreference(createAppPreference(applicationInfo)); in addPreferences()
159 final ApplicationInfo applicationInfo = getApplicationInfo(); in getAppChangeMappings() local
160 return getPlatformCompat().getAppConfig(applicationInfo); in getAppChangeMappings()
210 Preference createAppPreference(ApplicationInfo applicationInfo) { in createAppPreference() argument
212 final Drawable icon = applicationInfo.loadIcon(context.getPackageManager()); in createAppPreference()
216 mSelectedApp, applicationInfo.targetSdkVersion)); in createAppPreference()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accessibility/
DScreenReaderSettingsIntentPreferenceControllerTest.java85 serviceInfo.applicationInfo = new ApplicationInfo(); in testUpdateState_noSettingsActivity_hidesSettings()
86 serviceInfo.applicationInfo.name = mScreenReaderComponent.getPackageName(); in testUpdateState_noSettingsActivity_hidesSettings()
108 serviceInfo.applicationInfo = new ApplicationInfo(); in testUpdateState_noSettingsActivity_hidesSettings_zoneWrite()
109 serviceInfo.applicationInfo.name = mScreenReaderComponent.getPackageName(); in testUpdateState_noSettingsActivity_hidesSettings_zoneWrite()
132 serviceInfo.applicationInfo = new ApplicationInfo(); in testUpdateState_noSettingsActivity_hidesSettings_zoneRead()
133 serviceInfo.applicationInfo.name = mScreenReaderComponent.getPackageName(); in testUpdateState_noSettingsActivity_hidesSettings_zoneRead()
156 serviceInfo.applicationInfo = new ApplicationInfo(); in testUpdateState_noSettingsActivity_hidesSettings_zoneHidden()
157 serviceInfo.applicationInfo.name = mScreenReaderComponent.getPackageName(); in testUpdateState_noSettingsActivity_hidesSettings_zoneHidden()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightPackageInfo.kt67 pI.applicationInfo!!.uid, in <lambda>()
68 pI.applicationInfo!!.targetSdkVersion, in <lambda>()
69 pI.applicationInfo!!.isInstantApp, in <lambda>()
70 pI.applicationInfo!!.enabled, in <lambda>()
71 pI.applicationInfo!!.flags, in <lambda>()
74 if (SdkLevel.isAtLeastS()) pI.applicationInfo!!.areAttributionsUserVisible() else false, in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppInstallerInfoPreferenceControllerTest.java108 packageInfo.applicationInfo = mAppInfo; in updateState_shouldSetSummary()
119 packageInfo.applicationInfo = mAppInfo; in updateState_noAppStoreLink_shouldDisablePreference()
131 packageInfo.applicationInfo = mAppInfo; in updateState_hasAppStoreLink_shouldSetPreferenceIntent()
160 final ApplicationInfo applicationInfo = new ApplicationInfo(); in mockMainlineModule() local
161 applicationInfo.sourceDir = "apex"; in mockMainlineModule()
162 packageInfo.applicationInfo = applicationInfo; in mockMainlineModule()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DNotificationUtilsTest.java296 ApplicationInfo applicationInfo = new ApplicationInfo(); in setApplicationInfo() local
299 applicationInfo.privateFlags = applicationInfo.privateFlags in setApplicationInfo()
304 applicationInfo.flags = applicationInfo.flags in setApplicationInfo()
309 applicationInfo.privateFlags = applicationInfo.privateFlags in setApplicationInfo()
314 packageInfo.applicationInfo = applicationInfo; in setApplicationInfo()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/
DSensorQcPanel.java113 ApplicationInfo applicationInfo; in getApplicationInfo() local
115 applicationInfo = mContext.getPackageManager() in getApplicationInfo()
117 return Optional.of(applicationInfo); in getApplicationInfo()
143 Optional<ApplicationInfo> applicationInfo = getApplicationInfo(element); in addPrivacyElementsToQcList() local
144 if (!applicationInfo.isPresent()) continue; in addPrivacyElementsToQcList()
148 : getAppLabel(applicationInfo.get(), mContext); in addPrivacyElementsToQcList()
167 .setIcon(loadAppIcon(applicationInfo.get())) in addPrivacyElementsToQcList()
192 private String getAppLabel(@NonNull ApplicationInfo applicationInfo, @NonNull Context context) { in getAppLabel() argument
194 .unicodeWrap(applicationInfo.loadSafeLabel(context.getPackageManager(), in getAppLabel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/
DCreateShortcutPreferenceControllerTest.java125 ri1.activityInfo.applicationInfo = new ApplicationInfo(); in queryShortcuts_shouldOnlyIncludeSystemApp()
126 ri1.activityInfo.applicationInfo.flags = 0; in queryShortcuts_shouldOnlyIncludeSystemApp()
130 ri2.activityInfo.applicationInfo = new ApplicationInfo(); in queryShortcuts_shouldOnlyIncludeSystemApp()
131 ri2.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldOnlyIncludeSystemApp()
150 ri1.activityInfo.applicationInfo = new ApplicationInfo(); in queryShortcuts_shouldSortBasedOnPriority()
151 ri1.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldSortBasedOnPriority()
157 ri2.activityInfo.applicationInfo = new ApplicationInfo(); in queryShortcuts_shouldSortBasedOnPriority()
158 ri2.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldSortBasedOnPriority()
275 ri.activityInfo.applicationInfo = new ApplicationInfo(); in setupActivityInfo()
276 ri.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in setupActivityInfo()

12345678910>>...19