Searched refs:applicationInfo (Results 1 – 16 of 16) sorted by relevance
133 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() local157 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 …]
141 ApplicationInfo applicationInfo = ApplicationProvider.getApplicationContext() in setUpApplicationState_shouldCreateStorageDirs() local144 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() local161 assertThat(applicationInfo.credentialProtectedDataDir).isNotNull(); in setUpApplicationState_shouldCreateStorageDirs_Nplus()162 assertThat(new File(applicationInfo.credentialProtectedDataDir).isDirectory()).isTrue(); in setUpApplicationState_shouldCreateStorageDirs_Nplus()[all …]
17 private static ApplicationInfo applicationInfo; field in ShadowActivityThread39 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;
232 private static void setUpPackageStorage(ApplicationInfo applicationInfo) { in setUpPackageStorage() argument235 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 …]
135 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 …]
177 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 …]
34 actInfo.applicationInfo = new ApplicationInfo(); in newResolveInfo()36 actInfo.applicationInfo.packageName = packageName; in newResolveInfo()
173 packageInfo.applicationInfo = appInfo; in packageInstallerAndGetPackageArchiveInfo()178 ApplicationInfo applicationInfo = packageInfoResult.applicationInfo; in packageInstallerAndGetPackageArchiveInfo() local179 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() local548 assertThat(applicationInfo).isInstanceOf(ApplicationInfo.class); in getPackageArchiveInfo()[all …]
21 .applicationInfo in setup()
25 assertThat(mResolveInfo.activityInfo.applicationInfo.packageName).isEqualTo("package"); in testNewResolveInfoWithActivity()
59 .getPackageInfo("org.robolectric", 0).applicationInfo.dataDir, "data"); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
50 ApplicationInfo applicationInfo = getPackageManager() in onCreate() local52 boolean useDebugger = (applicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; in onCreate()
64 return (packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; in isDebuggable()
106 hostPackageLabel = nullToEmpty(pm.getApplicationLabel(pi.applicationInfo)); in BuildInfo()
162 final ApplicationInfo appInfo = info.activityInfo.applicationInfo; in get()
META-INF/ META-INF/MANIFEST.MF vogar/ vogar/TestProperties.class TestProperties ...