2017-03-27 19:13:31 -07:00
|
|
|
//
|
|
|
|
|
// Copyright (C) 2017 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.
|
|
|
|
|
cc_binary {
|
2018-01-29 14:54:37 +00:00
|
|
|
name: "android.hardware.vibrator@1.2-service.wahoo",
|
2017-03-27 19:13:31 -07:00
|
|
|
relative_install_path: "hw",
|
2018-01-29 14:54:37 +00:00
|
|
|
init_rc: ["android.hardware.vibrator@1.2-service.wahoo.rc"],
|
2017-03-27 19:13:31 -07:00
|
|
|
srcs: ["service.cpp", "Vibrator.cpp"],
|
2017-11-02 15:22:43 -07:00
|
|
|
cflags: [
|
|
|
|
|
"-Wall",
|
|
|
|
|
"-Werror",
|
|
|
|
|
],
|
2017-03-27 19:13:31 -07:00
|
|
|
shared_libs: [
|
|
|
|
|
"libhidlbase",
|
haptics: update effect waveform
EFFECT_CLICK
- Walleye: On resonance (f1=155 Hz), square wave full amplitude
(A1=127), auto-brake, duration T1=6ms.
- Taimen: On resonance (f1=155 Hz), square wave full amplitude
(A1=127), auto-brake, duration T1=10 ms.
EFFECT_DOUBLE_CLICK
- Two actuations T1=25 ms, A1=63, T3=100ms, T2=10 ms, A2=127
LONG_PRESS
- Walleye: 8ms duration with full amplitude
- Taimen: 12ms duration with full amplitude
Bug: 62176703
Test: VTS 1.0
Change-Id: Idf728ad793b3dd64f52d1ea95e8ea2cf3085a72a
Signed-off-by: David Lin <dtwlin@google.com>
2017-05-31 13:02:21 -07:00
|
|
|
"libcutils",
|
2017-03-27 19:13:31 -07:00
|
|
|
"libhidltransport",
|
|
|
|
|
"liblog",
|
|
|
|
|
"libhwbinder",
|
|
|
|
|
"libutils",
|
|
|
|
|
"libhardware",
|
|
|
|
|
"android.hardware.vibrator@1.0",
|
2017-06-01 12:58:37 -07:00
|
|
|
"android.hardware.vibrator@1.1",
|
2018-01-29 14:54:37 +00:00
|
|
|
"android.hardware.vibrator@1.2",
|
2017-03-27 19:13:31 -07:00
|
|
|
],
|
|
|
|
|
proprietary: true,
|
|
|
|
|
}
|