Home
last modified time | relevance | path

Searched refs:appManifest (Results 1 – 10 of 10) sorted by relevance

/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DParallelUniverse.java87 AndroidManifest appManifest, SdkEnvironment sdkEnvironment) { in setUpApplicationState() argument
126 injectResourceStuffForLegacy(apkLoader, appManifest, sdkEnvironment); in setUpApplicationState()
128 if (appManifest.getAndroidManifestFile() != null in setUpApplicationState()
129 && appManifest.getAndroidManifestFile().exists()) { in setUpApplicationState()
130 parsedPackage = LegacyManifestParser.createPackage(appManifest); in setUpApplicationState()
133 parsedPackage.applicationInfo.targetSdkVersion = appManifest.getTargetSdkVersion(); in setUpApplicationState()
140 parsedPackage.packageName = appManifest.getPackageName(); in setUpApplicationState()
141 parsedPackage.applicationInfo.packageName = appManifest.getPackageName(); in setUpApplicationState()
150 FsFile packageFile = appManifest.getApkFile(); in setUpApplicationState()
190 Application application = createApplication(appManifest, config); in setUpApplicationState()
[all …]
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DRobolectricTestRunner.java267 boolean includeLegacy(AndroidManifest appManifest) { in includeLegacy() argument
268 return appManifest.supportsLegacyResourcesMode() in includeLegacy()
271 || (this == best && !appManifest.supportsBinaryResourcesMode()) in includeLegacy()
275 boolean includeBinary(AndroidManifest appManifest) { in includeBinary() argument
276 return appManifest.supportsBinaryResourcesMode() in includeBinary()
287 AndroidManifest appManifest = getAppManifest(config); in getChildren() local
289 List<SdkConfig> sdksToRun = sdkPicker.selectSdks(config, appManifest); in getChildren()
292 if (resourcesMode.includeLegacy(appManifest)) { in getChildren()
297 appManifest, in getChildren()
304 if (resourcesMode.includeBinary(appManifest)) { in getChildren()
[all …]
DApkLoader.java35 synchronized public PackageResourceTable getAppResourceTable(final AndroidManifest appManifest) { in getAppResourceTable() argument
36 PackageResourceTable resourceTable = appResourceTableCache.get(appManifest); in getAppResourceTable()
38 resourceTable = new ResourceMerger().buildResourceTable(appManifest); in getAppResourceTable()
40 appResourceTableCache.put(appManifest, resourceTable); in getAppResourceTable()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/manifest/
DAndroidManifestTest.java301 …AndroidManifest appManifest = new AndroidManifest(resourceFile("TestAndroidManifestWithNoRFile.xml… in shouldTolerateMissingRFile() local
302 assertThat(appManifest.getPackageName()).isEqualTo("org.no.resources.for.me"); in shouldTolerateMissingRFile()
303 assertThat(appManifest.getRClass()).isNull(); in shouldTolerateMissingRFile()
308 …AndroidManifest appManifest = new AndroidManifest(null, resourceFile("res"), resourceFile("assets"… in whenNullManifestFile_getRClass_shouldComeFromPackageName() local
309 assertThat(appManifest.getRClass()).isEqualTo(org.robolectric.R.class); in whenNullManifestFile_getRClass_shouldComeFromPackageName()
310 assertThat(appManifest.getPackageName()).isEqualTo("org.robolectric"); in whenNullManifestFile_getRClass_shouldComeFromPackageName()
315 …AndroidManifest appManifest = new AndroidManifest(resourceFile("none.xml"), resourceFile("res"), r… in whenMissingManifestFile_getRClass_shouldComeFromPackageName() local
316 assertThat(appManifest.getRClass()).isEqualTo(org.robolectric.R.class); in whenMissingManifestFile_getRClass_shouldComeFromPackageName()
317 assertThat(appManifest.getPackageName()).isEqualTo("org.robolectric"); in whenMissingManifestFile_getRClass_shouldComeFromPackageName()
322 …AndroidManifest appManifest = new AndroidManifest(null, resourceFile("res"), resourceFile("assets"… in whenMissingManifestFile_getPackageName_shouldBeDefault() local
[all …]
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DResourceMerger.java9 public PackageResourceTable buildResourceTable(AndroidManifest appManifest) { in buildResourceTable() argument
10 ResourceRemapper resourceRemapper = new ResourceRemapper(appManifest.getRClass()); in buildResourceTable()
12 ResourcePath appResourcePath = appManifest.getResourcePath(); in buildResourceTable()
13 List<ResourcePath> allResourcePaths = appManifest.getIncludedResourcePaths(); in buildResourceTable()
20 return new ResourceTableFactory().newResourceTable(appManifest.getPackageName(), in buildResourceTable()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DBootstrapDeferringRobolectricTestRunner.java84 public AndroidManifest appManifest; field in BootstrapDeferringRobolectricTestRunner.BootstrapWrapper
104 AndroidManifest appManifest, SdkEnvironment sdkEnvironment) { in setUpApplicationState() argument
108 this.appManifest = appManifest; in setUpApplicationState()
133 hooksInterface.setUpApplicationState(apkLoader, method, config, appManifest, sdkEnvironment); in callSetUpApplicationState()
DRobolectricTestRunnerTest.java193 Config config, AndroidManifest appManifest, SdkEnvironment environment) { in setUpApplicationState() argument
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/
DParallelUniverseCreateApplicationTest.java66 AndroidManifest appManifest = newConfigWith( in shouldRegisterReceiversFromTheManifest() local
74 Application application = ParallelUniverse.createApplication(appManifest, null); in shouldRegisterReceiversFromTheManifest()
76 registerBroadcastReceivers(application, appManifest); in shouldRegisterReceiversFromTheManifest()
DParallelUniverseTest.java181 bootstrapWrapper.appManifest = new ThrowingManifest(bootstrapWrapper.appManifest); in testResourceNotFound()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/
DParallelUniverseInterface.java16 Config config, AndroidManifest appManifest, in setUpApplicationState() argument