Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ff6695f authored by Paul Duffin's avatar Paul Duffin
Browse files

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
parent cfaaa938
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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,
+23 −0
Original line number Diff line number Diff line
/*
 * 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;