Merge "We have POSIX clocks, and we don't need to ask for the openssl headers."
This commit is contained in:
commit
a7dcab6954
@ -38,9 +38,6 @@ LOCAL_SHARED_LIBRARIES := \
|
|||||||
# TODO: Move inputflinger to its own process and mark it hidden
|
# TODO: Move inputflinger to its own process and mark it hidden
|
||||||
#LOCAL_CFLAGS += -fvisibility=hidden
|
#LOCAL_CFLAGS += -fvisibility=hidden
|
||||||
|
|
||||||
LOCAL_C_INCLUDES := \
|
|
||||||
external/openssl/include \
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += -Wno-unused-parameter
|
LOCAL_CFLAGS += -Wno-unused-parameter
|
||||||
|
|
||||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
|
||||||
|
@ -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));
|
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
|
// Use the time specified in the event instead of the current time
|
||||||
// so that downstream code can get more accurate estimates of
|
// so that downstream code can get more accurate estimates of
|
||||||
// event dispatch latency from the time the event is enqueued onto
|
// 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);
|
event->when, time, now);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
event->when = now;
|
|
||||||
#endif
|
|
||||||
event->deviceId = deviceId;
|
event->deviceId = deviceId;
|
||||||
event->type = iev.type;
|
event->type = iev.type;
|
||||||
event->code = iev.code;
|
event->code = iev.code;
|
||||||
|
Loading…
Reference in New Issue
Block a user