Snap for 7584587 from 284e1cf37a
to sc-d2-release
Change-Id: I19eedf11dec2e32499bb18d4bb8426159899a949
This commit is contained in:
commit
1e62284a78
|
@ -398,6 +398,7 @@ func TestPlatformBootclasspath_AlwaysUsePrebuiltSdks(t *testing.T) {
|
|||
name: "foo",
|
||||
prefer: false,
|
||||
shared_library: false,
|
||||
permitted_packages: ["foo"],
|
||||
public: {
|
||||
jars: ["sdk_library/public/foo-stubs.jar"],
|
||||
stub_srcs: ["sdk_library/public/foo_stub_sources"],
|
||||
|
|
|
@ -1192,6 +1192,12 @@ type Import struct {
|
|||
minSdkVersion android.SdkSpec
|
||||
}
|
||||
|
||||
var _ PermittedPackagesForUpdatableBootJars = (*Import)(nil)
|
||||
|
||||
func (j *Import) PermittedPackagesForUpdatableBootJars() []string {
|
||||
return j.properties.Permitted_packages
|
||||
}
|
||||
|
||||
func (j *Import) SdkVersion(ctx android.EarlyModuleContext) android.SdkSpec {
|
||||
return android.SdkSpecFrom(ctx, String(j.properties.Sdk_version))
|
||||
}
|
||||
|
|
|
@ -1991,6 +1991,12 @@ func sdkLibraryImportFactory() android.Module {
|
|||
return module
|
||||
}
|
||||
|
||||
var _ PermittedPackagesForUpdatableBootJars = (*SdkLibraryImport)(nil)
|
||||
|
||||
func (module *SdkLibraryImport) PermittedPackagesForUpdatableBootJars() []string {
|
||||
return module.properties.Permitted_packages
|
||||
}
|
||||
|
||||
func (module *SdkLibraryImport) Prebuilt() *android.Prebuilt {
|
||||
return &module.prebuilt
|
||||
}
|
||||
|
|
|
@ -532,6 +532,12 @@ sdk_snapshot {
|
|||
out/soong/.intermediates/frameworks/base/boot/platform-bootclasspath/android_common/hiddenapi-monolithic/index-from-classes.csv
|
||||
snapshot/hiddenapi/index.csv
|
||||
`, rule)
|
||||
|
||||
// Make sure that the permitted packages from the prebuilts end up in the
|
||||
// updatable-bcp-packages.txt file.
|
||||
rule = module.Output("updatable-bcp-packages.txt")
|
||||
expectedContents := `'mybootlib\nmyothersdklibrary\n'`
|
||||
android.AssertStringEquals(t, "updatable-bcp-packages.txt", expectedContents, rule.Args["content"])
|
||||
}),
|
||||
snapshotTestPreparer(checkSnapshotWithSourcePreferred, preparerForSnapshot),
|
||||
snapshotTestPreparer(checkSnapshotPreferredWithSource, preparerForSnapshot),
|
||||
|
|
Loading…
Reference in New Issue