summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-01-10 00:03:46 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-10 00:03:46 +0000
commita7dcab6954467fa3726824a099b83d0e7490d6d5 (patch)
treeaf2a803780af4d6b8127c44039a4b605fbd31203
parent96e4409e8c38b1d79285eca9886d44ff850b5748 (diff)
parent5ea47f7a3222357c4b16500ad66ce493d017ebb2 (diff)
downloadframeworks_native-a7dcab6954467fa3726824a099b83d0e7490d6d5.zip
frameworks_native-a7dcab6954467fa3726824a099b83d0e7490d6d5.tar.gz
frameworks_native-a7dcab6954467fa3726824a099b83d0e7490d6d5.tar.bz2
Merge "We have POSIX clocks, and we don't need to ask for the openssl headers."
-rw-r--r--services/inputflinger/Android.mk7
-rw-r--r--services/inputflinger/EventHub.cpp4
2 files changed, 2 insertions, 9 deletions
diff --git a/services/inputflinger/Android.mk b/services/inputflinger/Android.mk
index 85edbe5..1af59a3 100644
--- a/services/inputflinger/Android.mk
+++ b/services/inputflinger/Android.mk
@@ -31,16 +31,13 @@ LOCAL_SHARED_LIBRARIES := \
libinput \
liblog \
libutils \
- libui \
- libhardware_legacy
+ libui \
+ libhardware_legacy
# TODO: Move inputflinger to its own process and mark it hidden
#LOCAL_CFLAGS += -fvisibility=hidden
-LOCAL_C_INCLUDES := \
- external/openssl/include \
-
LOCAL_CFLAGS += -Wno-unused-parameter
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
diff --git a/services/inputflinger/EventHub.cpp b/services/inputflinger/EventHub.cpp
index 7a77c30..93ce010 100644
--- a/services/inputflinger/EventHub.cpp
+++ b/services/inputflinger/EventHub.cpp
@@ -858,7 +858,6 @@ size_t EventHub::getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSiz
int(iev.time.tv_sec), int(iev.time.tv_usec));
}
-#ifdef HAVE_POSIX_CLOCKS
// Use the time specified in the event instead of the current time
// so that downstream code can get more accurate estimates of
// event dispatch latency from the time the event is enqueued onto
@@ -909,9 +908,6 @@ size_t EventHub::getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSiz
event->when, time, now);
}
}
-#else
- event->when = now;
-#endif
event->deviceId = deviceId;
event->type = iev.type;
event->code = iev.code;