Loading apex/platform_bootclasspath_test.go +1 −0 Original line number Diff line number Diff line Loading @@ -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"], Loading java/java.go +6 −0 Original line number Diff line number Diff line Loading @@ -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)) } Loading java/sdk_library.go +6 −0 Original line number Diff line number Diff line Loading @@ -1999,6 +1999,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 } Loading sdk/bootclasspath_fragment_sdk_test.go +6 −0 Original line number Diff line number Diff line Loading @@ -513,6 +513,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 Loading
apex/platform_bootclasspath_test.go +1 −0 Original line number Diff line number Diff line Loading @@ -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"], Loading
java/java.go +6 −0 Original line number Diff line number Diff line Loading @@ -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)) } Loading
java/sdk_library.go +6 −0 Original line number Diff line number Diff line Loading @@ -1999,6 +1999,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 } Loading
sdk/bootclasspath_fragment_sdk_test.go +6 −0 Original line number Diff line number Diff line Loading @@ -513,6 +513,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