Merge "Fix Tests after cherry picks. [DO NOT MERGE]" into klp-modular-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5793383457
@@ -3,7 +3,7 @@
|
||||
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
|
||||
<option name="MAIN_CLASS_NAME" value="com.android.tools.layoutlib.create.Main" />
|
||||
<option name="VM_PARAMETERS" value="" />
|
||||
<option name="PROGRAM_PARAMETERS" value="out/host/common/obj/JAVA_LIBRARIES/temp_layoutlib_intermediates/javalib.jar out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar" />
|
||||
<option name="PROGRAM_PARAMETERS" value="out/host/common/obj/JAVA_LIBRARIES/temp_layoutlib_intermediates/javalib.jar out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/framework-base_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar" />
|
||||
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/../../../../" />
|
||||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="true" />
|
||||
<option name="ALTERNATIVE_JRE_PATH" value="1.6" />
|
||||
|
||||
@@ -161,7 +161,7 @@ public class Main {
|
||||
if (!out.isDirectory()) {
|
||||
return null;
|
||||
}
|
||||
File sdkDir = new File(out, "sdk" + File.separator + "sdk");
|
||||
File sdkDir = new File(out, "sdk");
|
||||
if (!sdkDir.isDirectory()) {
|
||||
// The directory we thought that should contain the sdk is not a directory.
|
||||
return null;
|
||||
@@ -283,14 +283,14 @@ public class Main {
|
||||
}
|
||||
|
||||
/**
|
||||
* Uses Theme.Material and Target sdk version as 21.
|
||||
* Uses AppTheme and Target sdk version as 19.
|
||||
*/
|
||||
private SessionParams getSessionParams(LayoutPullParser layoutParser,
|
||||
ConfigGenerator configGenerator, LayoutLibTestCallback layoutLibCallback) {
|
||||
FolderConfiguration config = configGenerator.getFolderConfig();
|
||||
ResourceResolver resourceResolver =
|
||||
ResourceResolver.create(mProjectResources.getConfiguredResources(config),
|
||||
mFrameworkRepo.getConfiguredResources(config), "Theme.Material", false);
|
||||
mFrameworkRepo.getConfiguredResources(config), "AppTheme", true);
|
||||
|
||||
return new SessionParams(
|
||||
layoutParser,
|
||||
@@ -300,7 +300,7 @@ public class Main {
|
||||
resourceResolver,
|
||||
layoutLibCallback,
|
||||
0,
|
||||
21, // TODO: Make it more configurable to run tests for various versions.
|
||||
19, // TODO: Make it more configurable to run tests for various versions.
|
||||
getLayoutLog());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user