vibrator: use package as name

In order to provide a more descriptive name, and to be consistent
with HIDL, the stable AIDL package names are switching from
vintf-vibrator format to the package format
(android.hardware.vibrator).

Bug: N/A
Test: all build time
Change-Id: I52959482898f329ad1b3a3a5b345a0c6dc72197d
Merged-In: I52959482898f329ad1b3a3a5b345a0c6dc72197d
This commit is contained in:
Steven Moreland
2020-01-06 13:40:51 -08:00
parent 0184f1836d
commit 98ba8fb7f0
6 changed files with 23 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
aidl_interface {
// This is an example test interface showing how to add functionality
// with setExtension/getExtension
name: "test-vintf-vibrator-ext",
name: "test-android.hardware.vibrator-ext",
vendor_available: true,
srcs: [
// Using android.hardware as the package because this is in
@@ -18,7 +18,7 @@ aidl_interface {
// This happens to use types from a core interface, so we import it, but
// this won't always be needed.
imports: [
"vintf-vibrator",
"android.hardware.vibrator",
],
backend: {

View File

@@ -1,26 +1,24 @@
// This example client is written as a test, but it is executing from a system
// context. All this code would look the same if it was running in system
// server for example.
cc_test {
name: "test-vintf-vibrator-ext-client",
name: "test-android.hardware.vibrator-ext-client",
srcs: [
// system code has the option to use the unstable C++ libbinder API
// or the NDK one. For maximum code portability, using the ndk client
// makes the most sense, but both are provided here as an example.
"test-cpp-client.cpp",
"test-ndk-client.cpp",
// system code has the option to use the unstable C++ libbinder API
// or the NDK one. For maximum code portability, using the ndk client
// makes the most sense, but both are provided here as an example.
"test-cpp-client.cpp",
"test-ndk-client.cpp",
],
shared_libs: [
"libbinder",
"libutils",
"vintf-vibrator-cpp",
"test-vintf-vibrator-ext-cpp",
"libbinder",
"libutils",
"android.hardware.vibrator-cpp",
"test-android.hardware.vibrator-ext-cpp",
"libbinder_ndk",
"vintf-vibrator-ndk_platform",
"test-vintf-vibrator-ext-ndk_platform",
"libbinder_ndk",
"android.hardware.vibrator-ndk_platform",
"test-android.hardware.vibrator-ext-ndk_platform",
],
}

View File

@@ -19,7 +19,7 @@ cc_binary {
shared_libs: [
"libbase",
"libbinder_ndk",
"vintf-vibrator-ndk_platform",
"test-vintf-vibrator-ext-ndk_platform",
"android.hardware.vibrator-ndk_platform",
"test-android.hardware.vibrator-ext-ndk_platform",
],
}

View File

@@ -1,5 +1,5 @@
aidl_interface {
name: "vintf-vibrator",
name: "android.hardware.vibrator",
vendor_available: true,
srcs: [
"android/hardware/vibrator/*.aidl",

View File

@@ -4,13 +4,13 @@ cc_library_static {
shared_libs: [
"libbase",
"libbinder_ndk",
"vintf-vibrator-ndk_platform",
"android.hardware.vibrator-ndk_platform",
],
export_include_dirs: ["include"],
srcs: ["Vibrator.cpp"],
visibility: [
":__subpackages__",
"//hardware/interfaces/tests/extension/vibrator:__subpackages__",
":__subpackages__",
"//hardware/interfaces/tests/extension/vibrator:__subpackages__",
],
}
@@ -23,7 +23,7 @@ cc_binary {
shared_libs: [
"libbase",
"libbinder_ndk",
"vintf-vibrator-ndk_platform",
"android.hardware.vibrator-ndk_platform",
],
static_libs: [
"libvibratorexampleimpl",

View File

@@ -9,7 +9,7 @@ cc_test {
"libbinder",
],
static_libs: [
"vintf-vibrator-cpp",
"android.hardware.vibrator-cpp",
],
test_suites: [
"vts-core",