Loading java/hiddenapi_singleton_test.go +1 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ func TestHiddenAPISingletonWithPrebuilt(t *testing.T) { hiddenAPI := ctx.SingletonForTests("hiddenapi") hiddenapiRule := hiddenAPI.Rule("hiddenapi") want := "--boot-dex=" + buildDir + "/.intermediates/foo/android_common/dex/foo.jar" want := "--boot-dex=" + buildDir + "/.intermediates/foo/android_common/aligned/foo.jar" if !strings.Contains(hiddenapiRule.RuleParams.Command, want) { t.Errorf("Expected %s in hiddenapi command, but it was not present: %s", want, hiddenapiRule.RuleParams.Command) } Loading java/java.go +15 −0 Original line number Diff line number Diff line Loading @@ -2707,6 +2707,7 @@ type Import struct { hiddenAPI dexer dexpreopter properties ImportProperties Loading Loading @@ -2832,6 +2833,14 @@ func (j *Import) GenerateAndroidBuildActions(ctx android.ModuleContext) { } // Dex compilation j.dexpreopter.installPath = android.PathForModuleInstall(ctx, "framework", jarName) if j.dexProperties.Uncompress_dex == nil { // If the value was not force-set by the user, use reasonable default based on the module. j.dexProperties.Uncompress_dex = proptools.BoolPtr(shouldUncompressDex(ctx, &j.dexpreopter)) } j.dexpreopter.uncompressedDex = *j.dexProperties.Uncompress_dex var dexOutputFile android.ModuleOutPath dexOutputFile = j.dexer.compileDex(ctx, flags, j.minSdkVersion(), outputFile, jarName) if ctx.Failed() { Loading Loading @@ -2951,6 +2960,12 @@ func (j *Import) IDECustomizedModuleName() string { var _ android.PrebuiltInterface = (*Import)(nil) func (j *Import) IsInstallable() bool { return Bool(j.properties.Installable) } var _ dexpreopterInterface = (*Import)(nil) // java_import imports one or more `.jar` files into the build graph as if they were built by a java_library module. // // By default, a java_import has a single variant that expects a `.jar` file containing `.class` files that were Loading Loading
java/hiddenapi_singleton_test.go +1 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ func TestHiddenAPISingletonWithPrebuilt(t *testing.T) { hiddenAPI := ctx.SingletonForTests("hiddenapi") hiddenapiRule := hiddenAPI.Rule("hiddenapi") want := "--boot-dex=" + buildDir + "/.intermediates/foo/android_common/dex/foo.jar" want := "--boot-dex=" + buildDir + "/.intermediates/foo/android_common/aligned/foo.jar" if !strings.Contains(hiddenapiRule.RuleParams.Command, want) { t.Errorf("Expected %s in hiddenapi command, but it was not present: %s", want, hiddenapiRule.RuleParams.Command) } Loading
java/java.go +15 −0 Original line number Diff line number Diff line Loading @@ -2707,6 +2707,7 @@ type Import struct { hiddenAPI dexer dexpreopter properties ImportProperties Loading Loading @@ -2832,6 +2833,14 @@ func (j *Import) GenerateAndroidBuildActions(ctx android.ModuleContext) { } // Dex compilation j.dexpreopter.installPath = android.PathForModuleInstall(ctx, "framework", jarName) if j.dexProperties.Uncompress_dex == nil { // If the value was not force-set by the user, use reasonable default based on the module. j.dexProperties.Uncompress_dex = proptools.BoolPtr(shouldUncompressDex(ctx, &j.dexpreopter)) } j.dexpreopter.uncompressedDex = *j.dexProperties.Uncompress_dex var dexOutputFile android.ModuleOutPath dexOutputFile = j.dexer.compileDex(ctx, flags, j.minSdkVersion(), outputFile, jarName) if ctx.Failed() { Loading Loading @@ -2951,6 +2960,12 @@ func (j *Import) IDECustomizedModuleName() string { var _ android.PrebuiltInterface = (*Import)(nil) func (j *Import) IsInstallable() bool { return Bool(j.properties.Installable) } var _ dexpreopterInterface = (*Import)(nil) // java_import imports one or more `.jar` files into the build graph as if they were built by a java_library module. // // By default, a java_import has a single variant that expects a `.jar` file containing `.class` files that were Loading