Home
last modified time | relevance | path

Searched refs:getApplicationInfo (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/compat/
DPackageManagerCompatUtilsTest.java90 () -> PackageManagerCompatUtils.getApplicationInfo(null, "com.example.app", 0)); in testPackageManagerCompatUtilsValidatesArguments()
94 () -> PackageManagerCompatUtils.getApplicationInfo(mPackageManagerMock, null, 0)); in testPackageManagerCompatUtilsValidatesArguments()
189 .getApplicationInfo(anyString(), anyInt()); in testGetApplicationInfo_SMinus()
194 PackageManagerCompatUtils.getApplicationInfo( in testGetApplicationInfo_SMinus()
197 verify(mPackageManagerMock).getApplicationInfo(eq(packageName), eq(flags)); in testGetApplicationInfo_SMinus()
205 .getApplicationInfo(anyString(), any(PackageManager.ApplicationInfoFlags.class)); in testGetApplicationInfo_TPlus()
209 PackageManagerCompatUtils.getApplicationInfo(mPackageManagerMock, packageName, 0); in testGetApplicationInfo_TPlus()
211 verify(mPackageManagerMock, never()).getApplicationInfo(anyString(), anyInt()); in testGetApplicationInfo_TPlus()
213 .getApplicationInfo( in testGetApplicationInfo_TPlus()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DDevContextUtils.java72 ApplicationInfo applicationInfo = getApplicationInfo(context, callingAppPackage, 0); in isDebuggable()
110 public static ApplicationInfo getApplicationInfo( in getApplicationInfo() method in DevContextUtils
117 .getApplicationInfo( in getApplicationInfo()
119 : context.getPackageManager().getApplicationInfo(packageName, flags); in getApplicationInfo()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/
DPackageUtils.java43 public static ApplicationInfo getApplicationInfo(@NonNull String packageName, in getApplicationInfo() method in PackageUtils
47 return packageManager.getApplicationInfo(packageName, in getApplicationInfo()
67 return getApplicationInfo(packageName, UserUtils.getUserContext(context, user)); in getApplicationInfoAsUser()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DGetApplicationInfoTest.java107 TestUtils.getApplicationInfo(); in testEmptyApplicationInfo_no_perm()
127 List<AppInfo> result = TestUtils.getApplicationInfo(); in testGetApplicationInfo()
133 .isEqualTo(context.getApplicationInfo().packageName); in testGetApplicationInfo()
137 .getApplicationLabel(context.getApplicationInfo())); in testGetApplicationInfo()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyManagerTest.java258 getContext().getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in setUpTargetSdk()
260 getContext().getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.Q; in setUpTargetSdk()
263 getContext().getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.R; in setUpTargetSdk()
265 getContext().getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.S; in setUpTargetSdk()
267 getContext().getApplicationInfo().targetSdkVersion = in setUpTargetSdk()
363 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetIntArrayPropertyWithErrorStatusBeforeS()
375 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetIntArrayPropertyWithErrorStatusEqualAfterS()
387 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetIntArrayPropertyWithUnknownStatusBeforeS()
399 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetIntArrayPropertyWithUnknownStatusEqualAfterS()
411 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetIntPropertyWithUnavailableStatusBeforeS()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPackageManagerHelper.java97 final ApplicationInfo info = getApplicationInfo( in isAppOnSdcard()
108 final ApplicationInfo info = getApplicationInfo(packageName, user, 0); in isAppSuspended()
117 final ApplicationInfo info = getApplicationInfo(packageName, user, 0); in isAppInstalled()
130 final ApplicationInfo info = getApplicationInfo( in isAppArchivedForUser()
170 public ApplicationInfo getApplicationInfo(@NonNull final String packageName, in getApplicationInfo() method in PackageManagerHelper
173 ApplicationInfo info = mLauncherApps.getApplicationInfo(packageName, flags, user); in getApplicationInfo()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DMockTvProviderContext.java64 public ApplicationInfo getApplicationInfo() { in getApplicationInfo() method in MockTvProviderContext
65 return mBase.getApplicationInfo(); in getApplicationInfo()
99 public ApplicationInfo getApplicationInfo(String packageName, int flags) in getApplicationInfo() method in MockTvProviderContext.MockPackageManagerForTesting
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSandboxedSdkContextUnitTest.java85 .getApplicationInfo( in setUp()
185 .getApplicationInfo( in testGetSystemService_notRegistered_delegatesToBaseContext()
210 .getApplicationInfo( in testGetSystemService_registered_mutatesService()
238 .getApplicationInfo( in testCachingPerContextIntance()
278 .getApplicationInfo( in testCreateContextWithNewBase()
/packages/apps/Settings/src/com/android/settings/development/compat/
DPlatformCompatDashboard.java115 final ApplicationInfo applicationInfo = getApplicationInfo(); in onResume()
159 final ApplicationInfo applicationInfo = getApplicationInfo(); in getAppChangeMappings()
200 ApplicationInfo getApplicationInfo() throws PackageManager.NameNotFoundException { in getApplicationInfo() method in PlatformCompatDashboard
201 return getPackageManager().getApplicationInfo(mSelectedApp, 0); in getApplicationInfo()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/compat/
DPackageManagerCompatUtils.java158 public static ApplicationInfo getApplicationInfo( in getApplicationInfo() method in PackageManagerCompatUtils
164 ? packageManager.getApplicationInfo( in getApplicationInfo()
166 : packageManager.getApplicationInfo(packageName, flags); in getApplicationInfo()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DRequiredInfotainmentAppsUtils.java55 ApplicationInfo appInfo = getApplicationInfo(packageManager, pkgName, userHandle); in createRequiredAppPreference()
94 ApplicationInfo appInfo = getApplicationInfo(packageManager, pkgName, userHandle); in createInfotainmentAppPreference()
105 private static ApplicationInfo getApplicationInfo( in getApplicationInfo() method in RequiredInfotainmentAppsUtils
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/
DSensorQcPanel.java108 private Optional<ApplicationInfo> getApplicationInfo(PrivacyDialog.PrivacyElement element) { in getApplicationInfo() method in SensorQcPanel
109 return getApplicationInfo(element.getPackageName(), element.getUserId()); in getApplicationInfo()
112 private Optional<ApplicationInfo> getApplicationInfo(String packageName, int userId) { in getApplicationInfo() method in SensorQcPanel
143 Optional<ApplicationInfo> applicationInfo = getApplicationInfo(element); in addPrivacyElementsToQcList()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DAppIdleStatePermissionTest.java55 int uid = pm.getApplicationInfo(pkg.packageName, 0).uid; in testChangeAppIdleStatePermission()
81 int uid = pm.getApplicationInfo(pkg.packageName, 0).uid; in testChangeAppLaunchEstimatePermission()
/packages/apps/Settings/src/com/android/settings/development/
DMockLocationAppPreferenceController.java136 final ApplicationInfo ai = mPackageManager.getApplicationInfo( in writeMockLocation()
148 final ApplicationInfo ai = mPackageManager.getApplicationInfo( in getAppLabel()
174 final ApplicationInfo ai = mPackageManager.getApplicationInfo( in removeMockLocationForApp()
/packages/apps/Settings/src/com/android/settings/applications/credentials/
DCombinedProviderInfo.java91 public @Nullable ApplicationInfo getApplicationInfo() { in getApplicationInfo() method in CombinedProviderInfo
100 ApplicationInfo ai = getApplicationInfo(); in getPackageName()
134 final ApplicationInfo appInfo = getApplicationInfo(); in getAppIcon()
168 final ApplicationInfo appInfo = getApplicationInfo(); in getAppName()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DClassifierInputManager.java84 ApplicationInfo applicationInfo = getApplicationInfo(packageManager, packageName); in getClassifierInput()
103 private ApplicationInfo getApplicationInfo(PackageManager packageManager, String packageName) { in getApplicationInfo() method in ClassifierInputManager
105 return packageManager.getApplicationInfo( in getApplicationInfo()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/util/
DApplicationsTest.java57 when(mPackageManager.getApplicationInfo(INSTALLED_PACKAGE_NAME, 0)) in setUp()
59 when(mPackageManager.getApplicationInfo(NOT_INSTALLED_PACKAGE_NAME, 0)) in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DDefaultAppsPreferenceControllerTest.java71 when(mPackageManager.getApplicationInfo(eq(BROWSER_PACKAGE_NAME), anyInt())).thenReturn( in setUp()
74 when(mPackageManager.getApplicationInfo(eq(DIALER_PACKAGE_NAME), anyInt())).thenReturn( in setUp()
77 when(mPackageManager.getApplicationInfo(eq(SMS_PACKAGE_NAME), anyInt())).thenReturn( in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DThemePreferenceControllerTest.java77 when(mPackageManager.getApplicationInfo(any(), anyInt())).thenReturn(mApplicationInfo); in setUp()
116 when(mPackageManager.getApplicationInfo(anyString(), anyInt()).loadLabel(mPackageManager)) in updateState_themeSet_shouldSetPreferenceValue()
135 when(mPackageManager.getApplicationInfo(anyString(), anyInt()).loadLabel(mPackageManager)) in updateState_themeNull_shouldSetDefaultSummary()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DPackageManagerHelperTest.java78 when(mLauncherApps.getApplicationInfo(TEST_PACKAGE, 0 /* flags */, in getApplicationInfo_archivedApp_appInfoIsNotNull()
82 assertThat(mPackageManagerHelper.getApplicationInfo(TEST_PACKAGE, UserHandle.of(TEST_USER), in getApplicationInfo_archivedApp_appInfoIsNotNull()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/toast/
DCarToastUI.java95 ApplicationInfo applicationInfo = getApplicationInfo(packageName); in isSystemPrivilegedOrPlatformKey()
103 private ApplicationInfo getApplicationInfo(String packageName) { in getApplicationInfo() method in CarToastUI
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DSatelliteAccessControllerTest.kt127 .getApplicationInfo(eq(SMS_APP1), anyInt()) in setup()
134 .getApplicationInfo(eq(SMS_APP2), anyInt()) in setup()
141 .getApplicationInfo(eq(SMS_APP1), anyInt()) in setup()
148 .getApplicationInfo(eq(SMS_APP2), anyInt()) in setup()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightPackageInfo.kt110 fun getApplicationInfo(app: Application): ApplicationInfo? { in <lambda>() method in com.android.permissioncontroller.permission.model.livedatatypes.LightPackageInfo
113 return userContext.packageManager.getApplicationInfo(packageName, 0) in <lambda>()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DLoadSdkSession.java233 mSdkProviderInfo.getApplicationInfo(), in load()
694 ApplicationInfo getApplicationInfo() { in getApplicationInfo() method in LoadSdkSession
695 return mSdkProviderInfo.getApplicationInfo(); in getApplicationInfo()
722 public ApplicationInfo getApplicationInfo() { in getApplicationInfo() method in LoadSdkSession.SdkProviderInfo
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java146 when(mPackageManager.getApplicationInfo(eq(HIGH_SDK_PACKAGE), anyInt())) in setUp()
148 when(mPackageManager.getApplicationInfo(eq(LOW_SDK_PACKAGE), anyInt())) in setUp()
249 .getApplicationInfo(PACKAGE_NAME, PackageManager.GET_META_DATA); in testGetTargetSdkVersion_packageExist_returnSdk()
260 .getApplicationInfo(PACKAGE_NAME, PackageManager.GET_META_DATA); in testGetTargetSdkVersion_packageNotExist_returnSdkNull()

12345678910>>...14