• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This example client is written as a test, but it is executing from a system
2// context. All this code would look the same if it was running in system
3// server for example.
4
5package {
6    // See: http://go/android-license-faq
7    // A large-scale-change added 'default_applicable_licenses' to import
8    // all of the 'license_kinds' from "hardware_interfaces_license"
9    // to get the below license kinds:
10    //   SPDX-license-identifier-Apache-2.0
11    default_applicable_licenses: ["hardware_interfaces_license"],
12}
13
14cc_test {
15    name: "android.hardware.tests.extension.vibrator-client",
16    srcs: [
17        // system code has the option to use the unstable C++ libbinder API
18        // or the NDK one. For maximum code portability, using the ndk client
19        // makes the most sense, but both are provided here as an example.
20        "test-cpp-client.cpp",
21        "test-ndk-client.cpp",
22    ],
23    shared_libs: [
24        "libbinder",
25        "libutils",
26        "android.hardware.vibrator-V2-cpp",
27        "android.hardware.tests.extension.vibrator-V1-cpp",
28
29        "libbinder_ndk",
30        "android.hardware.vibrator-V2-ndk",
31        "android.hardware.tests.extension.vibrator-V1-ndk",
32    ],
33}
34