diff options
| author | 2024-07-11 00:45:05 +0100 | |
|---|---|---|
| committer | 2024-07-11 14:08:25 +0100 | |
| commit | 2ff6695fdd10f1591f374ebd93b2baed09acbca0 (patch) | |
| tree | 27546d80bca857bb50026e4c70d2b6125b197343 | |
| parent | cfaaa938b9e471a16fe473ced342a22526a9c1a3 (diff) | |
Remove --hide-package options from droidstubs
The `--hide-package com.android.server` option had no effect as the
`com.android.server` subpackages have `package-info.java` files with
`/** @hide */`.
The `--hide-package android.audio.policy.configuration.V7_0` option did
hide classes from that package from the API, presumably because those
classes are already managed by `audio_policy_configuration_V7_0`. This
change replicates that behavior by adding a `package-info.java` file
with `/** @hide */` in that package.
Bug: 351991463
Test: m checkapi
Change-Id: I9a11512daaa6fbbca245518e456b09a12cdf7ebc
| -rw-r--r-- | api/Android.bp | 2 | ||||
| -rw-r--r-- | core/java/android/audio/policy/configuration/V7_0/package-info.java | 23 |
2 files changed, 23 insertions, 2 deletions
diff --git a/api/Android.bp b/api/Android.bp index bf4e6a11d25a..d4ba964046ee 100644 --- a/api/Android.bp +++ b/api/Android.bp @@ -365,8 +365,6 @@ stubs_defaults { "--hide CallbackInterface", // Disable HiddenSuperclass, as Metalava handles this fine (it should be hidden by default) "--hide HiddenSuperclass", - "--hide-package android.audio.policy.configuration.V7_0", - "--hide-package com.android.server", "--manifest $(location :frameworks-base-core-AndroidManifest.xml)", ], filter_packages: packages_to_document, diff --git a/core/java/android/audio/policy/configuration/V7_0/package-info.java b/core/java/android/audio/policy/configuration/V7_0/package-info.java new file mode 100644 index 000000000000..8f7425fc2b5b --- /dev/null +++ b/core/java/android/audio/policy/configuration/V7_0/package-info.java @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2024 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Hide the android.audio.policy.configuration.V7_0 API as that is managed + * separately. + * + * @hide + */ +package android.audio.policy.configuration.V7_0; |