Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DParallelUniverse.java133 parsedPackage.applicationInfo.targetSdkVersion = appManifest.getTargetSdkVersion(); in setUpApplicationState()
138 parsedPackage.applicationInfo.packageName = config.packageName(); in setUpApplicationState()
141 parsedPackage.applicationInfo.packageName = appManifest.getPackageName(); in setUpApplicationState()
154 ApplicationInfo applicationInfo = parsedPackage.applicationInfo; in setUpApplicationState() local
157 if (sdkConfig.getApiLevel() < P && applicationInfo.processName == null) { in setUpApplicationState()
158 applicationInfo.processName = parsedPackage.packageName; in setUpApplicationState()
161 setUpPackageStorage(applicationInfo, parsedPackage); in setUpApplicationState()
170 ShadowActivityThread.setApplicationInfo(applicationInfo); in setUpApplicationState()
194 createInstrumentation(activityThread, applicationInfo, application); in setUpApplicationState()
205 ReflectionHelpers.setField(data, "appInfo", applicationInfo); in setUpApplicationState()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/
DParallelUniverseTest.java141 ApplicationInfo applicationInfo = ApplicationProvider.getApplicationContext() in setUpApplicationState_shouldCreateStorageDirs() local
144 assertThat(applicationInfo.sourceDir).isNotNull(); in setUpApplicationState_shouldCreateStorageDirs()
145 assertThat(new File(applicationInfo.sourceDir).exists()).isTrue(); in setUpApplicationState_shouldCreateStorageDirs()
147 assertThat(applicationInfo.publicSourceDir).isNotNull(); in setUpApplicationState_shouldCreateStorageDirs()
148 assertThat(new File(applicationInfo.publicSourceDir).exists()).isTrue(); in setUpApplicationState_shouldCreateStorageDirs()
150 assertThat(applicationInfo.dataDir).isNotNull(); in setUpApplicationState_shouldCreateStorageDirs()
151 assertThat(new File(applicationInfo.dataDir).isDirectory()).isTrue(); in setUpApplicationState_shouldCreateStorageDirs()
158 ApplicationInfo applicationInfo = ApplicationProvider.getApplicationContext() in setUpApplicationState_shouldCreateStorageDirs_Nplus() local
161 assertThat(applicationInfo.credentialProtectedDataDir).isNotNull(); in setUpApplicationState_shouldCreateStorageDirs_Nplus()
162 assertThat(new File(applicationInfo.credentialProtectedDataDir).isDirectory()).isTrue(); in setUpApplicationState_shouldCreateStorageDirs_Nplus()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowActivityThread.java17 private static ApplicationInfo applicationInfo; field in ShadowActivityThread
39 if (packageName.equals(ShadowActivityThread.applicationInfo.packageName)) { in getPackageManager()
40 return ShadowActivityThread.applicationInfo; in getPackageManager()
71 public static void setApplicationInfo(ApplicationInfo applicationInfo) {
72 ShadowActivityThread.applicationInfo = applicationInfo;
DShadowPackageManager.java232 private static void setUpPackageStorage(ApplicationInfo applicationInfo) { in setUpPackageStorage() argument
235 if (applicationInfo.sourceDir == null) { in setUpPackageStorage()
236 applicationInfo.sourceDir = in setUpPackageStorage()
238 .createIfNotExists(applicationInfo.packageName + "-sourceDir") in setUpPackageStorage()
243 if (applicationInfo.dataDir == null) { in setUpPackageStorage()
244 applicationInfo.dataDir = in setUpPackageStorage()
246 .createIfNotExists(applicationInfo.packageName + "-dataDir") in setUpPackageStorage()
250 if (applicationInfo.publicSourceDir == null) { in setUpPackageStorage()
251 applicationInfo.publicSourceDir = applicationInfo.sourceDir; in setUpPackageStorage()
254 applicationInfo.credentialProtectedDataDir = in setUpPackageStorage()
[all …]
DLegacyManifestParser.java135 pkg.applicationInfo.flags = decodeFlags(androidManifest.getApplicationAttributes()); in createPackage()
136 pkg.applicationInfo.targetSdkVersion = androidManifest.getTargetSdkVersion(); in createPackage()
137 pkg.applicationInfo.packageName = androidManifest.getPackageName(); in createPackage()
138 pkg.applicationInfo.processName = androidManifest.getProcessName(); in createPackage()
140 pkg.applicationInfo.className = in createPackage()
141 buildClassName(pkg.applicationInfo.packageName, androidManifest.getApplicationName()); in createPackage()
143 pkg.applicationInfo.name = pkg.applicationInfo.className; in createPackage()
146 pkg.applicationInfo.metaData = metaDataToBundle(androidManifest.getApplicationMetaData()); in createPackage()
147 pkg.applicationInfo.uid = Process.myUid(); in createPackage()
149 pkg.applicationInfo.theme = in createPackage()
[all …]
DShadowApplicationPackageManager.java177 result.applicationInfo = new ApplicationInfo(packageInfo.applicationInfo); in getActivityInfo()
186 result.applicationInfo = new ApplicationInfo(); in getActivityInfo()
187 result.applicationInfo.packageName = packageName; in getActivityInfo()
188 result.applicationInfo.flags = ApplicationInfo.FLAG_INSTALLED; in getActivityInfo()
217 if (packageInfo.applicationInfo != null && packageInfo.applicationInfo.uid == uid) { in getPackagesForUid()
387 if (componentInfo == null || componentInfo.applicationInfo == null) { in filterResolvedComponent()
393 final int applicationFlags = componentInfo.applicationInfo.flags; in filterResolvedComponent()
404 new ComponentName(componentInfo.applicationInfo.packageName, componentInfo.name); in filterResolvedComponent()
415 && hiddenPackages.contains(componentInfo.applicationInfo.packageName)) { in filterResolvedComponent()
429 && componentInfo.applicationInfo != null in isValidComponentInfo()
[all …]
DShadowResolveInfo.java34 actInfo.applicationInfo = new ApplicationInfo(); in newResolveInfo()
36 actInfo.applicationInfo.packageName = packageName; in newResolveInfo()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPackageManagerTest.java173 packageInfo.applicationInfo = appInfo; in packageInstallerAndGetPackageArchiveInfo()
178 ApplicationInfo applicationInfo = packageInfoResult.applicationInfo; in packageInstallerAndGetPackageArchiveInfo() local
179 assertThat(applicationInfo).isInstanceOf(ApplicationInfo.class); in packageInstallerAndGetPackageArchiveInfo()
180 assertThat(applicationInfo.packageName).isEqualTo(TEST_PACKAGE_NAME); in packageInstallerAndGetPackageArchiveInfo()
181 assertThat(applicationInfo.sourceDir).isEqualTo(TEST_APP_PATH); in packageInstallerAndGetPackageArchiveInfo()
488 ApplicationInfo appInfo = pkg.applicationInfo; in getAllPermissionGroups_duplicatePermission()
508 ApplicationInfo appInfo2 = pkg2.applicationInfo; in getAllPermissionGroups_duplicatePermission()
542 packageInfo.applicationInfo = appInfo; in getPackageArchiveInfo()
547 ApplicationInfo applicationInfo = packageInfoResult.applicationInfo; in getPackageArchiveInfo() local
548 assertThat(applicationInfo).isInstanceOf(ApplicationInfo.class); in getPackageArchiveInfo()
[all …]
DShadowNotificationBuilder25Test.java21 .applicationInfo in setup()
DShadowResolveInfoTest.java25 assertThat(mResolveInfo.activityInfo.applicationInfo.packageName).isEqualTo("package"); in testNewResolveInfoWithActivity()
DShadowContextTest.java59 .getPackageInfo("org.robolectric", 0).applicationInfo.dataDir, "data"); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
/external/vogar/src/vogar/target/
DTestActivity.java50 ApplicationInfo applicationInfo = getPackageManager() in onCreate() local
52 boolean useDebugger = (applicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; in onCreate()
/external/dexmaker/dexmaker-mockito-tests/src/main/java/com/android/dx/mockito/tests/
DBlacklistedApis.java64 return (packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; in isDebuggable()
/external/libchrome/base/android/java/src/org/chromium/base/
DBuildInfo.java106 hostPackageLabel = nullToEmpty(pm.getApplicationLabel(pi.applicationInfo)); in BuildInfo()
/external/setupdesign/main/src/com/google/android/setupdesign/util/
DPartner.java162 final ApplicationInfo appInfo = info.activityInfo.applicationInfo; in get()