Home
last modified time | relevance | path

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

12345678910>>...12

/packages/apps/Launcher3/src/com/android/launcher3/model/
DAllAppsList.java115 ApplicationInfo applicationInfo = LauncherAppsCompat.getInstance(context) in addPromiseApp() local
118 if (applicationInfo == null) { in addPromiseApp()
224 final AppInfo applicationInfo = data.get(i); in updatePackage() local
225 if (user.equals(applicationInfo.user) in updatePackage()
226 && packageName.equals(applicationInfo.componentName.getPackageName())) { in updatePackage()
227 if (!findActivity(matches, applicationInfo.componentName)) { in updatePackage()
237 AppInfo applicationInfo = findAppInfo(info.getComponentName(), user); in updatePackage() local
238 if (applicationInfo == null) { in updatePackage()
241 mIconCache.getTitleAndIcon(applicationInfo, info, true /* useLowResIcon */); in updatePackage()
242 applicationInfo.sectionName = mIndex.computeSectionName(applicationInfo.title); in updatePackage()
[all …]
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/source/
DMediaSourcesLiveDataTest.java88 packageInfo.applicationInfo = info.activityInfo.applicationInfo; in setUp()
98 packageInfo.applicationInfo = info.serviceInfo.applicationInfo; in setUp()
172 withMetadata.serviceInfo.applicationInfo.metaData = new Bundle(); in buildServiceResolveInfo()
205 ApplicationInfo applicationInfo = new ApplicationInfo(); in newActivityResolveInfo() local
206 applicationInfo.packageName = packageName; in newActivityResolveInfo()
207 applicationInfo.nonLocalizedLabel = "Activity Label " + packageName; in newActivityResolveInfo()
208 activityInfo.applicationInfo = applicationInfo; in newActivityResolveInfo()
219 ApplicationInfo applicationInfo = new ApplicationInfo(); in newServiceResolveInfo() local
220 applicationInfo.packageName = packageName; in newServiceResolveInfo()
221 applicationInfo.nonLocalizedLabel = "Service Label " + packageName; in newServiceResolveInfo()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationDetailsFragmentTest.java177 packageInfo.applicationInfo.uid = uid; in onStart_packageExplicitlyStopped_queriesPackageRestart()
180 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_STOPPED; in onStart_packageExplicitlyStopped_queriesPackageRestart()
198 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_STOPPED; in onStart_packageExplicitlyStopped_success_enablesForceStopButton()
222 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_STOPPED; in onStart_packageExplicitlyStopped_failure_disablesForceStopButton()
243 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in onStart_bundledApp_showsDisableButton()
256 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in onStart_bundledApp_notEnabled_showsEnableButton()
257 packageInfo.applicationInfo.enabled = false; in onStart_bundledApp_notEnabled_showsEnableButton()
270 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in onStart_bundledApp_enabled_disableUntilUsed_showsEnableButton()
271 packageInfo.applicationInfo.enabledSetting = in onStart_bundledApp_enabled_disableUntilUsed_showsEnableButton()
285 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in onStart_bundledApp_homePackage_disablesDisableButton()
[all …]
DNotificationsPreferenceControllerTest.java73 ApplicationInfo applicationInfo = new ApplicationInfo(); in setUp() local
74 applicationInfo.packageName = PKG_NAME; in setUp()
75 packageInfo.applicationInfo = applicationInfo; in setUp()
76 packageInfo.applicationInfo.uid = UID; in setUp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerPreferenceControllerTest.java118 interactionInfo.serviceInfo.applicationInfo = new ApplicationInfo(); in getCandidates_oneIsSameAsAssistant_hasTwoElements()
119 interactionInfo.serviceInfo.applicationInfo.nonLocalizedLabel = "1"; in getCandidates_oneIsSameAsAssistant_hasTwoElements()
127 interactionInfo2.serviceInfo.applicationInfo = new ApplicationInfo(); in getCandidates_oneIsSameAsAssistant_hasTwoElements()
128 interactionInfo2.serviceInfo.applicationInfo.nonLocalizedLabel = "2"; in getCandidates_oneIsSameAsAssistant_hasTwoElements()
147 interactionInfo.serviceInfo.applicationInfo = new ApplicationInfo(); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled()
148 interactionInfo.serviceInfo.applicationInfo.nonLocalizedLabel = "1"; in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled()
156 interactionInfo2.serviceInfo.applicationInfo = new ApplicationInfo(); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled()
157 interactionInfo2.serviceInfo.applicationInfo.nonLocalizedLabel = "2"; in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled()
183 interactionInfo.serviceInfo.applicationInfo = new ApplicationInfo(); in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled()
184 interactionInfo.serviceInfo.applicationInfo.nonLocalizedLabel = "1"; in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DHomeRoleBehavior.java82 if (isSettingsApplication(resolveInfo.activityInfo.applicationInfo, context)) { in getFallbackHolder()
130 @NonNull ApplicationInfo applicationInfo, @NonNull UserHandle user, in isApplicationVisibleAsUser() argument
133 return !isSettingsApplication(applicationInfo, context); in isApplicationVisibleAsUser()
138 @NonNull Preference preference, @NonNull ApplicationInfo applicationInfo, in prepareApplicationPreferenceAsUser() argument
140 boolean missingWorkProfileSupport = isMissingWorkProfileSupport(applicationInfo, context); in prepareApplicationPreferenceAsUser()
146 private boolean isMissingWorkProfileSupport(@NonNull ApplicationInfo applicationInfo, in isMissingWorkProfileSupport() argument
152 boolean isWorkProfileSupported = applicationInfo.targetSdkVersion in isMissingWorkProfileSupport()
157 private boolean isSettingsApplication(@NonNull ApplicationInfo applicationInfo, in isSettingsApplication() argument
167 return Objects.equals(applicationInfo.packageName, resolveInfo.activityInfo.packageName); in isSettingsApplication()
DRole.java391 public boolean isApplicationVisibleAsUser(@NonNull ApplicationInfo applicationInfo, in isApplicationVisibleAsUser() argument
394 return mBehavior.isApplicationVisibleAsUser(this, applicationInfo, user, context); in isApplicationVisibleAsUser()
408 @NonNull ApplicationInfo applicationInfo, @NonNull UserHandle user, in prepareApplicationPreferenceAsUser() argument
411 mBehavior.prepareApplicationPreferenceAsUser(this, preference, applicationInfo, user, in prepareApplicationPreferenceAsUser()
544 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfoAsUser(packageName, user, in isPackageMinimallyQualifiedAsUser() local
546 if (applicationInfo == null) { in isPackageMinimallyQualifiedAsUser()
552 if (mSystemOnly && (applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { in isPackageMinimallyQualifiedAsUser()
556 if (!applicationInfo.enabled) { in isPackageMinimallyQualifiedAsUser()
560 if (applicationInfo.isInstantApp()) { in isPackageMinimallyQualifiedAsUser()
666 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(packageName, context); in killApp() local
[all …]
DPermissions.java106 if (packageInfo.applicationInfo.targetSdkVersion < splitPermission.getTargetSdk() in grant()
561 return packageInfo.applicationInfo != null && (packageInfo.applicationInfo.flags in isUpdatedSystemApp()
567 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(packageName, context); in isRuntimePermissionsSupported() local
568 if (applicationInfo == null) { in isRuntimePermissionsSupported()
571 return applicationInfo.targetSdkVersion >= Build.VERSION_CODES.M; in isRuntimePermissionsSupported()
768 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(packageName, context); in getAppOpMode() local
769 if (applicationInfo == null) { in getAppOpMode()
773 return appOpsManager.unsafeCheckOpRaw(appOp, applicationInfo.uid, packageName); in getAppOpMode()
786 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(packageName, context); in setAppOpMode() local
787 if (applicationInfo == null) { in setAppOpMode()
[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/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/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/applications/appinfo/
DExternalSourcesDetailsTest.java92 mPackageInfo.applicationInfo = new ApplicationInfo(); in setCanInstallApps_false_shouldKillNonCoreUid()
93 mPackageInfo.applicationInfo.uid = mockUid; in setCanInstallApps_false_shouldKillNonCoreUid()
104 mPackageInfo.applicationInfo = new ApplicationInfo(); in setCanInstallApps_false_shouldNotKillCoreUid()
105 mPackageInfo.applicationInfo.uid = mockUid; in setCanInstallApps_false_shouldNotKillCoreUid()
116 mPackageInfo.applicationInfo = new ApplicationInfo(); in setCanInstallApps_true_shouldNotKillUid()
117 mPackageInfo.applicationInfo.uid = mockUid; in setCanInstallApps_true_shouldNotKillUid()
143 mPackageInfo.applicationInfo = new ApplicationInfo(); in refreshUi_hasApplicationInfo_shouldReturnTrue()
166 mPackageInfo.applicationInfo = new ApplicationInfo(); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference()
205 mPackageInfo.applicationInfo = new ApplicationInfo(); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference()
244 mPackageInfo.applicationInfo = new ApplicationInfo(); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
/packages/apps/Settings/src/com/android/settings/development/compat/
DPlatformCompatDashboard.java122 final ApplicationInfo applicationInfo = getApplicationInfo(); in onActivityResult() local
123 addPreferences(applicationInfo); in onActivityResult()
133 private void addPreferences(ApplicationInfo applicationInfo) { in addPreferences() argument
135 getPreferenceScreen().addPreference(createAppPreference(applicationInfo)); in addPreferences()
170 final ApplicationInfo applicationInfo = getApplicationInfo(); in getAppChangeMappings() local
171 return getPlatformCompat().getAppConfig(applicationInfo); in getAppChangeMappings()
221 Preference createAppPreference(ApplicationInfo applicationInfo) { in createAppPreference() argument
223 final Drawable icon = applicationInfo.loadIcon(context.getPackageManager()); in createAppPreference()
227 mSelectedApp, applicationInfo.targetSdkVersion)); in createAppPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/
DCreateShortcutPreferenceControllerTest.java113 ri1.activityInfo.applicationInfo = new ApplicationInfo(); in queryShortcuts_shouldOnlyIncludeSystemApp()
114 ri1.activityInfo.applicationInfo.flags = 0; in queryShortcuts_shouldOnlyIncludeSystemApp()
118 ri2.activityInfo.applicationInfo = new ApplicationInfo(); in queryShortcuts_shouldOnlyIncludeSystemApp()
119 ri2.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldOnlyIncludeSystemApp()
136 ri1.activityInfo.applicationInfo = new ApplicationInfo(); in queryShortcuts_shouldSortBasedOnPriority()
137 ri1.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldSortBasedOnPriority()
143 ri2.activityInfo.applicationInfo = new ApplicationInfo(); in queryShortcuts_shouldSortBasedOnPriority()
144 ri2.activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in queryShortcuts_shouldSortBasedOnPriority()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/legal/
DLegalPreferenceControllerTest.java88 activityInfo.applicationInfo = new ApplicationInfo(); in refreshUi_intentResolvesToActivity_isVisible()
89 activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in refreshUi_intentResolvesToActivity_isVisible()
117 activityInfo.applicationInfo = new ApplicationInfo(); in refreshUi_intentResolvesToActivity_updatesTitle()
118 activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in refreshUi_intentResolvesToActivity_updatesTitle()
119 activityInfo.applicationInfo.nonLocalizedLabel = TEST_LABEL; in refreshUi_intentResolvesToActivity_updatesTitle()
146 activityInfo.applicationInfo = new ApplicationInfo(); in refreshUi_intentResolvesToActivity_updatesIntentToSpecificActivity()
147 activityInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in refreshUi_intentResolvesToActivity_updatesIntentToSpecificActivity()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/
DDevicePrefFragmentTest.java116 final ApplicationInfo applicationInfo = new ApplicationInfo(); in testUpdateCastSettings() local
117 applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in testUpdateCastSettings()
118 applicationInfo.packageName = "com.test.CastPackage"; in testUpdateCastSettings()
122 activityInfo.applicationInfo = applicationInfo; in testUpdateCastSettings()
131 packageInfo.applicationInfo = applicationInfo; in testUpdateCastSettings()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationUtils.java79 return packageInfo.applicationInfo.isSystemApp(); in isSystemApp()
99 return packageInfo.applicationInfo.isSignedWithPlatformKey(); in isSignedWithPlatformKey()
118 (!checkForPrivilegedApp) || packageInfo.applicationInfo.isPrivilegedApp(); in isSystemPrivilegedOrPlatformKeyInner()
120 return (packageInfo.applicationInfo.isSignedWithPlatformKey() || in isSystemPrivilegedOrPlatformKeyInner()
121 (packageInfo.applicationInfo.isSystemApp() in isSystemPrivilegedOrPlatformKeyInner()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridgeTest.java239 mAppOpsManager.setMode(APP_OP_CODE, packageInfo2.applicationInfo.uid, in loadsAppOpExtraInfo_multipleProfiles()
267 ApplicationInfo applicationInfo = new ApplicationInfo(); in createPackageInfo() local
268 applicationInfo.packageName = packageName; in createPackageInfo()
269 applicationInfo.uid = uid; in createPackageInfo()
273 packageInfo.applicationInfo = applicationInfo; in createPackageInfo()
284 mAppOpsManager.setMode(APP_OP_CODE, packageInfo.applicationInfo.uid, in addPackageWithPermission()
290 appEntry.info = packageInfo.applicationInfo; in createAppEntry()
DMoreSpecialAccessPreferenceControllerTest.java67 ApplicationInfo applicationInfo = new ApplicationInfo(); in setUp() local
68 applicationInfo.packageName = PACKAGE; in setUp()
69 applicationInfo.name = "TestClass"; in setUp()
71 activityInfo.applicationInfo = applicationInfo; in setUp()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/data/
DPerUserUidToSensitivityLiveData.java124 boolean pkgIsSystemApp = (pkg.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in loadValueInBackground()
127 ArrayMap<String, Integer> uidPermissions = uidsPermissions.get(pkg.applicationInfo.uid); in loadValueInBackground()
130 uidsPermissions.put(pkg.applicationInfo.uid, uidPermissions); in loadValueInBackground()
152 if (pkg.applicationInfo.uid < Process.FIRST_APPLICATION_UID) { in loadValueInBackground()
174 if (pkg.applicationInfo.uid < Process.FIRST_APPLICATION_UID) { in loadValueInBackground()
/packages/apps/Settings/src/com/android/settings/applications/
DAppInfoWithHeader.java51 .getBadgedIcon(mPackageInfo.applicationInfo)) in onActivityCreated()
52 .setLabel(mPackageInfo.applicationInfo.loadLabel(mPm)) in onActivityCreated()
54 .setIsInstantApp(AppUtils.isInstant(mPackageInfo.applicationInfo)) in onActivityCreated()
56 .setUid(mPackageInfo.applicationInfo.uid) in onActivityCreated()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/
DKeyboardPreferenceControllerTest.java176 ApplicationInfo applicationInfo = new ApplicationInfo(); in createInputMethodInfo() local
177 applicationInfo.packageName = packageName; in createInputMethodInfo()
178 applicationInfo.enabled = true; in createInputMethodInfo()
179 applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo()
180 serviceInfo.applicationInfo = applicationInfo; in createInputMethodInfo()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarHeadsUpNotificationManagerTest.java368 pkgInfo.applicationInfo = new ApplicationInfo(); in maybeShowHeadsUp_isSignedWithPlatformKey_returnsNotNull()
369 pkgInfo.applicationInfo.packageName = PKG_1; in maybeShowHeadsUp_isSignedWithPlatformKey_returnsNotNull()
370 pkgInfo.applicationInfo.flags = PRIVATE_FLAG_SIGNED_WITH_PLATFORM_KEY | FLAG_INSTALLED; in maybeShowHeadsUp_isSignedWithPlatformKey_returnsNotNull()
393 pkgInfo.applicationInfo = new ApplicationInfo(); in maybeShowHeadsUp_isSystemApp_returnsNotNull()
394 pkgInfo.applicationInfo.packageName = PKG_1; in maybeShowHeadsUp_isSystemApp_returnsNotNull()
395 pkgInfo.applicationInfo.flags = PRIVATE_FLAG_PRIVILEGED | FLAG_SYSTEM | FLAG_INSTALLED; in maybeShowHeadsUp_isSystemApp_returnsNotNull()
475 ApplicationInfo applicationInfo = new ApplicationInfo(); in setPackageInfo() local
476 packageInfo.applicationInfo = applicationInfo; in setPackageInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppInfoWithHeader.java51 .getBadgedIcon(mPackageInfo.applicationInfo)) in onActivityCreated()
52 .setLabel(mPackageInfo.applicationInfo.loadLabel(mPm)) in onActivityCreated()
54 .setIsInstantApp(AppUtils.isInstant(mPackageInfo.applicationInfo)) in onActivityCreated()
56 .setUid(mPackageInfo.applicationInfo.uid) in onActivityCreated()

12345678910>>...12