mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 23:07:49 +00:00
For consistency. Bug: 153501107 Test: N/A Change-Id: If32e8539fd8fffd5e27f0437bff480089e38f0da Merged-In: If32e8539fd8fffd5e27f0437bff480089e38f0da
25 lines
868 B
Plaintext
25 lines
868 B
Plaintext
// 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: "android.hardware.tests.extension.vibrator-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",
|
|
],
|
|
shared_libs: [
|
|
"libbinder",
|
|
"libutils",
|
|
"android.hardware.vibrator-cpp",
|
|
"android.hardware.tests.extension.vibrator-cpp",
|
|
|
|
"libbinder_ndk",
|
|
"android.hardware.vibrator-ndk_platform",
|
|
"android.hardware.tests.extension.vibrator-ndk_platform",
|
|
],
|
|
}
|