OSDN Git Service

Add back the setDelay function
authorChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 30 Jan 2018 06:04:53 +0000 (14:04 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 30 Jan 2018 06:04:53 +0000 (14:04 +0800)
commit0a39d58fb8b6ced7dc6c2cd1043f76554ee805ee
tree444e2e4a7ed9743a0ba3dcfe35c1a90c46284d7e
parent9026bbd5ede9b110e4b35919ce7820b314bc96d1
Add back the setDelay function

According to https://source.android.com/devices/sensors/versioning

"Implement the batch function

... It replaces setDelay. setDelay will not be called anymore."

However, it is wrong. The setDelay is still called sometimes
as show in the system_server crashing log:

01-26 18:36:11.536 27879 27879 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-26 18:36:11.536 27879 27879 F DEBUG   : Build fingerprint: 'Android-x86/android_x86_64/x86_64:7.1.2/N2G48H/cwhuan01041741:userdebug/test-keys'
01-26 18:36:11.536 27879 27879 F DEBUG   : Revision: '0'
01-26 18:36:11.537 27879 27879 F DEBUG   : ABI: 'x86_64'
01-26 18:36:11.537 27879 27879 F DEBUG   : pid: 24500, tid: 27162, name: Binder:24500_12  >>> system_server <<<
01-26 18:36:11.537 27879 27879 F DEBUG   : signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0
01-26 18:36:11.537 27879 27879 F DEBUG   :     rax 332f83dbf746df52  rbx 0000794e04c48500  rcx 0000000000000000  rdx 0000000001312d00
01-26 18:36:11.537 27879 27879 F DEBUG   :     rsi 0000000000000000  rdi 0000794e04d19000
01-26 18:36:11.537 27879 27879 F DEBUG   :     r8  0000794df0f4f7b0  r9  0000794e0c62d47a  r10 000000000000006e  r11 0000000000000246
01-26 18:36:11.537 27879 27879 F DEBUG   :     r12 0000794e04c1b938  r13 0000000001312d00  r14 0000794e04c48518  r15 0000000000000000
01-26 18:36:11.537 27879 27879 F DEBUG   :     cs  0000000000000033  ss  000000000000002b
01-26 18:36:11.537 27879 27879 F DEBUG   :     rip 0000794e0af228ca  rbp 0000794e04c1b920  rsp 0000794decc04fc0  eflags 0000000000010206
01-26 18:36:11.542 27879 27879 F DEBUG   :
01-26 18:36:11.542 27879 27879 F DEBUG   : backtrace:
01-26 18:36:11.542 27879 27879 F DEBUG   :     #00 pc 00000000000128ca  /system/lib64/libsensorservice.so
01-26 18:36:11.542 27879 27879 F DEBUG   :     #01 pc 000000000001e51b  /system/lib64/libsensorservice.so
01-26 18:36:11.542 27879 27879 F DEBUG   :     #02 pc 00000000000151af  /system/lib64/libsensorservice.so
hdaps.c
kbdsensor.cpp
s103t_sensor.c
w500_sensor.c