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

Commit c88ca655 authored by Rahul Sabnis's avatar Rahul Sabnis Committed by Automerger Merge Worker
Browse files

Merge "Moving over core/api/*txt files" am: 268d01fb am: 232de1de am: 811aa14b

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1960689

Change-Id: I46d1c61a44fb88f1ee8c158139c73b85743c8a91
parents fc799ac7 811aa14b
Loading
Loading
Loading
Loading
+80 −0
Original line number Diff line number Diff line
@@ -2,6 +2,12 @@ package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

java_defaults {
    name: "bluetooth-module-sdk-version-defaults",
    min_sdk_version: "current",
    target_sdk_version: "current",
}

filegroup {
    name: "framework-bluetooth-sources",
    srcs: [
@@ -11,3 +17,77 @@ filegroup {
    path: "java",
    visibility: ["//frameworks/base"],
}

// defaults shared between `framework-bluetooth` & `framework-bluetooth-pre-jarjar`
// java_sdk_library `framework-bluetooth` needs sources to generate stubs, so it cannot reuse
// `framework-bluetooth-pre-jarjar`
java_defaults {
    name: "framework-bluetooth-defaults",
    defaults: ["bluetooth-module-sdk-version-defaults"],
    static_libs: [
        "modules-utils-synchronous-result-receiver",
        "PlatformProperties",
    ],
    libs: [
        "framework-tethering.stubs.module_lib",
        "unsupportedappusage", // for android.compat.annotation.UnsupportedAppUsage
    ],
    stub_only_libs: ["framework-tethering.stubs.module_lib"],
    srcs: [
        ":framework-bluetooth-sources",
        ":libbluetooth-binder-aidl",
    ],
}

// post-jarjar version of framework-bluetooth
java_sdk_library {
    name: "framework-bluetooth",
    defaults: [
        "framework-module-defaults",
        "framework-bluetooth-defaults",
    ],

    jarjar_rules: ":bluetooth-jarjar-rules",
    api_only: true,
    installable: true,
    optimize: {
        enabled: false
    },
    hostdex: true, // for hiddenapi check

    impl_library_visibility: ["//visibility:public"],

    apex_available: [
        "com.android.bluetooth",
    ],

    permitted_packages: [
        "android.bluetooth",
        // Created by jarjar rules.
        "com.android.bluetooth.x",
    ],
    lint: {
        strict_updatability_linting: true,
    },
}

// defaults for CTS tests that need to build against framework-bluetooths's @hide APIs
java_defaults {
    name: "framework-bluetooth-cts-defaults",
    sdk_version: "core_current",
    libs: [
        // order matters: classes in framework-bluetooth are resolved before framework, meaning
        // @hide APIs in framework-bluetooth are resolved before @SystemApi stubs in framework
        "framework-bluetooth.impl",
        "framework",

        // if sdk_version="" this gets automatically included, but here we need to add manually.
        "framework-res",
    ],
    defaults_visibility: ["//visibility:public"],
}

filegroup {
    name: "bluetooth-jarjar-rules",
    srcs: ["jarjar-rules.txt"],
}
+1354 −0

File added.

Preview size limit exceeded, changes collapsed.

+9 −0
Original line number Diff line number Diff line
// Signature format: 2.0
package android.bluetooth {

  public final class BluetoothPan implements android.bluetooth.BluetoothProfile {
    method @Nullable @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED, android.Manifest.permission.TETHER_PRIVILEGED}) public android.net.TetheringManager.TetheredInterfaceRequest requestTetheredInterface(@NonNull java.util.concurrent.Executor, @NonNull android.net.TetheringManager.TetheredInterfaceCallback);
  }

}
+1 −0
Original line number Diff line number Diff line
// Signature format: 2.0
+1 −0
Original line number Diff line number Diff line
// Signature format: 2.0
Loading