Home
last modified time | relevance | path

Searched defs:packageManager (Results 1 – 25 of 418) sorted by relevance

12345678910>>...17

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/compat/
DPackageManagerCompatUtils.java114 public static List<PackageInfo> getInstalledPackages( in getInstalledPackages()
135 public static List<ApplicationInfo> getInstalledApplications( in getInstalledApplications()
158 public static ApplicationInfo getApplicationInfo( in getApplicationInfo()
183 public static int getPackageUid( in getPackageUid()
212 PackageManager packageManager = context.getPackageManager(); in isAdServicesActivityEnabled() local
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/inputmethod/
DKeyboardPreferenceControllerTest.java114 PackageManager packageManager = mContext.getPackageManager(); in refreshUi_permitAllInputMethods_hasOneInputMethodInfo() local
129 PackageManager packageManager = mContext.getPackageManager(); in refreshUi_permitAllInputMethods_hasTwoInputMethodInfo() local
147 PackageManager packageManager = mContext.getPackageManager(); in refreshUi_permitAllInputMethods_hasThreeInputMethodInfo() local
169 PackageManager packageManager = mContext.getPackageManager(); in refreshUi_hasAllowedImeByOrganization() local
183 PackageManager packageManager = mContext.getPackageManager(); in refreshUi_disallowedByOrganization() local
193 PackageManager packageManager, String packageName, String label) { in createInputMethodInfo()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DClassifierInputManager.java82 PackageManager packageManager = mContext.getPackageManager(); in getClassifierInput() local
103 private ApplicationInfo getApplicationInfo(PackageManager packageManager, String packageName) { in getApplicationInfo()
114 PackageManager packageManager, in getInputFieldValues()
173 PackageManager packageManager, ApplicationInfo applicationInfo, int resourceId) { in getAppResource()
187 PackageManager packageManager, ApplicationInfo applicationInfo, int resourceId) { in getEnglishAppResource()
203 PackageManager packageManager, ApplicationInfo applicationInfo, int resourceId) { in getLocalAppResource()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/emptystate/
DCrossProfileIntentsCheckerTest.kt39 val packageManager = in testChecker_hasCrossProfileIntents() constant
57 val packageManager = in testChecker_noCrossProfileIntents() constant
76 val packageManager = mock<IPackageManager>() in testChecker_noIntents() constant
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProviderTest.java147 PackageManager packageManager = mock(PackageManager.class); in getType_packageNotAModule_throwsIllegalArgumentException() local
166 PackageManager packageManager = mock(PackageManager.class); in getType_validUri_returnsHtmlMimeType() local
247 PackageManager packageManager = mock(PackageManager.class); in openFile_packageNotAModule_throwsIllegalArgumentException() local
266 PackageManager packageManager = mock(PackageManager.class); in openFile_validUri_notReadMode_throwsIllegalArgumentException() local
299 PackageManager packageManager = mock(PackageManager.class); in isCachedHtmlFileOutdated_versionCodeDiffersFromSharedPref_returnTrue() local
320 PackageManager packageManager = mock(PackageManager.class); in isCachedHtmlFileOutdated_fileDoesNotExist_returnTrue() local
342 PackageManager packageManager = mock(PackageManager.class); in isCachedHtmlFileOutdated_fileIsEmpty_returnTrue() local
367 PackageManager packageManager = mock(PackageManager.class); in isCachedHtmlFileOutdated_notOutdated_returnFalse() local
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DDeviceManagementRoleHolderHelper.java242 PackageManager packageManager) { in isRoleHolderValid()
258 PackageManager packageManager, in canResolveIntent()
268 PackageManager packageManager) { in isRoleHolderPresent()
290 boolean canResolveIntent(Intent intent, PackageManager packageManager); in canResolveIntent()
298 public boolean canResolveIntent(Intent intent, PackageManager packageManager) { in canResolveIntent()
310 boolean isRoleHolderStub(@Nullable String packageName, PackageManager packageManager); in isRoleHolderStub()
319 PackageManager packageManager) { in isRoleHolderStub()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DAppsUtil.java53 private static Uri getResourceUri( in getResourceUri()
100 private static String getActivityIconUriString( in getActivityIconUriString()
130 public static Map<PackageInfo, ResolveInfo> getLaunchablePackages( in getLaunchablePackages()
168 public static List<MobileApplication> buildAppsFromPackageInfos( in buildAppsFromPackageInfos()
216 private static MobileApplication createMobileApplication( in createMobileApplication()
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DRestrictedPermissionsTest.java464 final PackageManager packageManager = getContext().getPackageManager(); in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() local
491 final PackageManager packageManager = getContext().getPackageManager(); in getPermissionsOfAppWithAnyOfFlags() local
509 final PackageManager packageManager = getContext().getPackageManager(); in getRequestedPermissionsOfApp() local
532 final PackageManager packageManager = getContext().getPackageManager(); in assertRestrictedPermissionWhitelisted() local
590 final PackageManager packageManager = getContext().getPackageManager(); in assertAllRestrictedPermissionGranted() local
613 final PackageManager packageManager = getContext().getPackageManager(); in assertRestrictedPermissionGranted() local
693 final PackageManager packageManager = getContext().getPackageManager(); in installApp() local
702 final PackageManager packageManager = getContext().getPackageManager(); in installApp() local
714 final PackageManager packageManager = getContext().getPackageManager(); in installApp() local
DRestrictedStoragePermissionTest.java531 final PackageManager packageManager = getContext().getPackageManager(); in assertCannotWhitelistStorage() local
581 final PackageManager packageManager = getContext().getPackageManager(); in assertCannotUnWhitelistStorage() local
639 final PackageManager packageManager = getContext().getPackageManager(); in getPermissionsOfAppWithAnyOfFlags() local
657 final PackageManager packageManager = getContext().getPackageManager(); in getRequestedPermissionsOfApp() local
713 final PackageManager packageManager = getContext().getPackageManager(); in installApp() local
724 final PackageManager packageManager = getContext().getPackageManager(); in installApp() local
739 final PackageManager packageManager = getContext().getPackageManager(); in installApp() local
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DPhotoPickerComponentTestUtils.java52 final PackageManager packageManager = inst.getContext().getPackageManager(); in getCurrentStateAndEnable() local
70 private static void updateComponentEnabledSetting(@NonNull PackageManager packageManager, in updateComponentEnabledSetting()
90 private static void waitForComponentToBeInExpectedState(@NonNull PackageManager packageManager, in waitForComponentToBeInExpectedState()
108 private static boolean isComponentEnabledSetAsExpected(@NonNull PackageManager packageManager, in isComponentEnabledSetAsExpected()
/packages/apps/DocumentsUI/src/com/android/documentsui/util/
DCrossProfileUtils.java65 PackageManager packageManager, Intent intent, Context context, in getCrossProfileResolveInfo()
77 UserId currentUser, PackageManager packageManager, in getCrossProfileResolveInfoPostV()
108 PackageManager packageManager, in getCrossProfileResolveInfoPreV()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicensesListPreferenceControllerTest.java52 PackageManager packageManager = mock(PackageManager.class); in getAvailabilityStatus_validLicenses_returnsAvailable() local
78 PackageManager packageManager = mock(PackageManager.class); in getAvailabilityStatus_noModules_returnsConditionallyUnavailable() local
93 PackageManager packageManager = mock(PackageManager.class); in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable() local
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DRequiredInfotainmentAppsUtils.java53 Context context, PackageManager packageManager, String pkgName, UserHandle userHandle, in createRequiredAppPreference()
92 Context context, PackageManager packageManager, String pkgName, UserHandle userHandle, in createInfotainmentAppPreference()
106 PackageManager packageManager, String pkgName, UserHandle userHandle) { in getApplicationInfo()
118 Context context, PackageManager packageManager, String pkgName, UserHandle userHandle, in setAppPreference()
/packages/modules/Wifi/service/tests/mts/src/android/net/wifi/mts/
DWifiFeature.java24 PackageManager packageManager = context.getPackageManager(); in isWifiSupported() local
29 PackageManager packageManager = context.getPackageManager(); in isP2pSupported() local
/packages/apps/Car/Settings/src/com/android/car/settingslib/applications/
DApplicationFeatureProviderImpl.java198 PackageManager packageManager, NumberOfAppsCallback callback) { in CurrentUserAndManagedProfilePolicyInstalledAppCounter()
214 String[] permissions, PackageManager packageManager, in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter()
230 CurrentUserPolicyInstalledAppLister(PackageManager packageManager, in CurrentUserPolicyInstalledAppLister()
247 PackageManager packageManager, IPackageManager packageManagerService, in CurrentUserAppWithAdminGrantedPermissionsLister()
265 ComponentInfo findEuiccService(PackageManager packageManager) { in findEuiccService()
277 PackageManager packageManager, List<ResolveInfo> resolveInfoList) { in findEuiccService()
297 PackageManager packageManager, ResolveInfo resolveInfo) { in isValidEuiccComponent()
DAppWithAdminGrantedPermissionsCounter.java41 PackageManager packageManager, IPackageManager packageManagerService, in AppWithAdminGrantedPermissionsCounter()
59 DevicePolicyManager devicePolicyManager, PackageManager packageManager, in includeInCount()
/packages/apps/Settings/src/com/android/settings/applications/
DApplicationFeatureProviderImpl.java216 PackageManager packageManager, NumberOfAppsCallback callback) { in CurrentUserAndManagedProfilePolicyInstalledAppCounter()
232 String[] permissions, PackageManager packageManager, in CurrentUserAndManagedProfileAppWithAdminGrantedPermissionsCounter()
248 CurrentUserPolicyInstalledAppLister(PackageManager packageManager, in CurrentUserPolicyInstalledAppLister()
265 PackageManager packageManager, IPackageManager packageManagerService, in CurrentUserAppWithAdminGrantedPermissionsLister()
283 ComponentInfo findEuiccService(PackageManager packageManager) { in findEuiccService()
295 PackageManager packageManager, List<ResolveInfo> resolveInfoList) { in findEuiccService()
315 PackageManager packageManager, ResolveInfo resolveInfo) { in isValidEuiccComponent()
DAppWithAdminGrantedPermissionsCounter.java37 PackageManager packageManager, IPackageManager packageManagerService, in AppWithAdminGrantedPermissionsCounter()
52 DevicePolicyManager devicePolicyManager, PackageManager packageManager, in includeInCount()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java97 private static Drawable loadDrawable(@NonNull final PackageManager packageManager, in loadDrawable()
111 private static Drawable getInputMethodIcon(@NonNull final PackageManager packageManager, in getInputMethodIcon()
148 final PackageManager packageManager = getActivity().getPackageManager(); in updateInputMethodPreferenceViews() local
/packages/modules/RemoteKeyProvisioning/system-server/tests/unit/src/android/security/rkp/service/test/
DRegistrationProxyTests.java151 final PackageManager packageManager = mock(PackageManager.class); in serviceNotFound() local
166 final PackageManager packageManager = mock(PackageManager.class); in tooManyServicesFound() local
185 final PackageManager packageManager = mock(PackageManager.class); in bindServiceAsUserReturnsFalse() local
202 final PackageManager packageManager = mock(PackageManager.class); in boundRegistrationServiceIsNull() local
222 final PackageManager packageManager = mock(PackageManager.class); in boundRegistrationServiceDisconnected() local
246 final PackageManager packageManager = mock(PackageManager.class); in boundRegistrationServiceBindingDied() local
269 final PackageManager packageManager = mock(PackageManager.class); in timeoutWaitingForBoundService() local
546 final PackageManager packageManager = mock(PackageManager.class); in addBoundSystemServiceToContext() local
/packages/apps/Settings/src/com/android/settings/system/
DSystemUpdateRepository.kt25 private val packageManager = context.packageManager in <lambda>() constant
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/
DUidToPackageNameConverter.java32 final PackageManager packageManager = applicationContext.getPackageManager(); in convertToUids() local
63 final PackageManager packageManager = applicationContext.getPackageManager(); in convertToPackageNames() local
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/enterprise/apps/
DAppWithAdminGrantedPermissionsCounter.java42 PackageManager packageManager, IPackageManager packageManagerService, in AppWithAdminGrantedPermissionsCounter()
57 DevicePolicyManager devicePolicyManager, PackageManager packageManager, in includeInCount()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/util/
DCrossProfileUtils.java50 PackageManager packageManager) { in isIntentAllowedCrossProfileAccess()
70 PackageManager packageManager, UserHandle userHandle) { in isIntentAllowedCrossProfileAccessFromUser()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/apps/
DAppWithAdminGrantedPermissionsCounter.java42 PackageManager packageManager, IPackageManager packageManagerService, in AppWithAdminGrantedPermissionsCounter()
57 DevicePolicyManager devicePolicyManager, PackageManager packageManager, in includeInCount()

12345678910>>...17