Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/143865
Bug: 5449033
Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
diff --git a/services/input/EventHub.cpp b/services/input/EventHub.cpp
index 790b395..39f8efe2 100644
--- a/services/input/EventHub.cpp
+++ b/services/input/EventHub.cpp
@@ -552,7 +552,7 @@
// Report any devices that had last been added/removed.
while (mClosingDevices) {
Device* device = mClosingDevices;
- LOGV("Reporting device closed: id=%d, name=%s\n",
+ ALOGV("Reporting device closed: id=%d, name=%s\n",
device->id, device->path.string());
mClosingDevices = device->next;
event->when = now;
@@ -574,7 +574,7 @@
while (mOpeningDevices != NULL) {
Device* device = mOpeningDevices;
- LOGV("Reporting device opened: id=%d, name=%s\n",
+ ALOGV("Reporting device opened: id=%d, name=%s\n",
device->id, device->path.string());
mOpeningDevices = device->next;
event->when = now;
@@ -612,7 +612,7 @@
if (eventItem.data.u32 == EPOLL_ID_WAKE) {
if (eventItem.events & EPOLLIN) {
- LOGV("awoken after wake()");
+ ALOGV("awoken after wake()");
awoken = true;
char buffer[16];
ssize_t nRead;
@@ -655,7 +655,7 @@
size_t count = size_t(readSize) / sizeof(struct input_event);
for (size_t i = 0; i < count; i++) {
const struct input_event& iev = readBuffer[i];
- LOGV("%s got: t0=%d, t1=%d, type=%d, code=%d, value=%d",
+ ALOGV("%s got: t0=%d, t1=%d, type=%d, code=%d, value=%d",
device->path.string(),
(int) iev.time.tv_sec, (int) iev.time.tv_usec,
iev.type, iev.code, iev.value);
@@ -674,7 +674,7 @@
// system call that also queries ktime_get_ts().
event->when = nsecs_t(iev.time.tv_sec) * 1000000000LL
+ nsecs_t(iev.time.tv_usec) * 1000LL;
- LOGV("event time %lld, now %lld", event->when, now);
+ ALOGV("event time %lld, now %lld", event->when, now);
#else
event->when = now;
#endif
@@ -687,7 +687,7 @@
if (iev.type == EV_KEY && device->keyMap.haveKeyLayout()) {
status_t err = device->keyMap.keyLayoutMap->mapKey(iev.code,
&event->keyCode, &event->flags);
- LOGV("iev.code=%d keyCode=%d flags=0x%08x err=%d\n",
+ ALOGV("iev.code=%d keyCode=%d flags=0x%08x err=%d\n",
iev.code, event->keyCode, event->flags, err);
}
event += 1;
@@ -786,7 +786,7 @@
}
void EventHub::wake() {
- LOGV("wake() called");
+ ALOGV("wake() called");
ssize_t nWrite;
do {
@@ -834,7 +834,7 @@
status_t EventHub::openDeviceLocked(const char *devicePath) {
char buffer[80];
- LOGV("Opening device: %s", devicePath);
+ ALOGV("Opening device: %s", devicePath);
int fd = open(devicePath, O_RDWR);
if(fd < 0) {
@@ -1050,7 +1050,7 @@
// If the device isn't recognized as something we handle, don't monitor it.
if (device->classes == 0) {
- LOGV("Dropping device: id=%d, path='%s', name='%s'",
+ ALOGV("Dropping device: id=%d, path='%s', name='%s'",
deviceId, devicePath, device->identifier.name.string());
delete device;
return -1;
@@ -1165,7 +1165,7 @@
closeDeviceLocked(device);
return 0;
}
- LOGV("Remove device: %s not found, device may already have been removed.", devicePath);
+ ALOGV("Remove device: %s not found, device may already have been removed.", devicePath);
return -1;
}
@@ -1234,7 +1234,7 @@
int event_pos = 0;
struct inotify_event *event;
- LOGV("EventHub::readNotify nfd: %d\n", mINotifyFd);
+ ALOGV("EventHub::readNotify nfd: %d\n", mINotifyFd);
res = read(mINotifyFd, event_buf, sizeof(event_buf));
if(res < (int)sizeof(*event)) {
if(errno == EINTR)
@@ -1292,7 +1292,7 @@
}
void EventHub::requestReopenDevices() {
- LOGV("requestReopenDevices() called");
+ ALOGV("requestReopenDevices() called");
AutoMutex _l(mLock);
mNeedToReopenDevices = true;