diff options
Diffstat (limited to 'services/input')
-rw-r--r-- | services/input/EventHub.cpp | 16 | ||||
-rw-r--r-- | services/input/InputDispatcher.cpp | 28 | ||||
-rw-r--r-- | services/input/InputManager.cpp | 4 | ||||
-rw-r--r-- | services/input/SpriteController.cpp | 22 |
4 files changed, 35 insertions, 35 deletions
diff --git a/services/input/EventHub.cpp b/services/input/EventHub.cpp index 4c28a16..6db750e 100644 --- a/services/input/EventHub.cpp +++ b/services/input/EventHub.cpp @@ -657,7 +657,7 @@ size_t EventHub::getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSiz ALOGW("could not get event (errno=%d)", errno); } } else if ((readSize % sizeof(struct input_event)) != 0) { - LOGE("could not get event (wrong size: %d)", readSize); + ALOGE("could not get event (wrong size: %d)", readSize); } else { int32_t deviceId = device->id == mBuiltInKeyboardId ? 0 : device->id; @@ -810,7 +810,7 @@ void EventHub::wake() { void EventHub::scanDevicesLocked() { status_t res = scanDirLocked(DEVICE_PATH); if(res < 0) { - LOGE("scan dir failed for %s\n", DEVICE_PATH); + ALOGE("scan dir failed for %s\n", DEVICE_PATH); } } @@ -847,7 +847,7 @@ status_t EventHub::openDeviceLocked(const char *devicePath) { int fd = open(devicePath, O_RDWR); if(fd < 0) { - LOGE("could not open %s, %s\n", devicePath, strerror(errno)); + ALOGE("could not open %s, %s\n", devicePath, strerror(errno)); return -1; } @@ -874,7 +874,7 @@ status_t EventHub::openDeviceLocked(const char *devicePath) { // Get device driver version. int driverVersion; if(ioctl(fd, EVIOCGVERSION, &driverVersion)) { - LOGE("could not get driver version for %s, %s\n", devicePath, strerror(errno)); + ALOGE("could not get driver version for %s, %s\n", devicePath, strerror(errno)); close(fd); return -1; } @@ -882,7 +882,7 @@ status_t EventHub::openDeviceLocked(const char *devicePath) { // Get device identifier. struct input_id inputId; if(ioctl(fd, EVIOCGID, &inputId)) { - LOGE("could not get device input id for %s, %s\n", devicePath, strerror(errno)); + ALOGE("could not get device input id for %s, %s\n", devicePath, strerror(errno)); close(fd); return -1; } @@ -909,7 +909,7 @@ status_t EventHub::openDeviceLocked(const char *devicePath) { // Make file descriptor non-blocking for use with poll(). if (fcntl(fd, F_SETFL, O_NONBLOCK)) { - LOGE("Error %d making device file descriptor non-blocking.", errno); + ALOGE("Error %d making device file descriptor non-blocking.", errno); close(fd); return -1; } @@ -1072,7 +1072,7 @@ status_t EventHub::openDeviceLocked(const char *devicePath) { eventItem.events = EPOLLIN; eventItem.data.u32 = deviceId; if (epoll_ctl(mEpollFd, EPOLL_CTL_ADD, fd, &eventItem)) { - LOGE("Could not add device fd to epoll instance. errno=%d", errno); + ALOGE("Could not add device fd to epoll instance. errno=%d", errno); delete device; return -1; } @@ -1103,7 +1103,7 @@ void EventHub::loadConfigurationLocked(Device* device) { status_t status = PropertyMap::load(device->configurationFile, &device->configuration); if (status) { - LOGE("Error loading input device configuration file for device '%s'. " + ALOGE("Error loading input device configuration file for device '%s'. " "Using default configuration.", device->identifier.name.string()); } diff --git a/services/input/InputDispatcher.cpp b/services/input/InputDispatcher.cpp index 19c01a1..46a5cc6 100644 --- a/services/input/InputDispatcher.cpp +++ b/services/input/InputDispatcher.cpp @@ -121,7 +121,7 @@ static bool isValidKeyAction(int32_t action) { static bool validateKeyEvent(int32_t action) { if (! isValidKeyAction(action)) { - LOGE("Key event has invalid action code 0x%x", action); + ALOGE("Key event has invalid action code 0x%x", action); return false; } return true; @@ -152,11 +152,11 @@ static bool isValidMotionAction(int32_t action, size_t pointerCount) { static bool validateMotionEvent(int32_t action, size_t pointerCount, const PointerProperties* pointerProperties) { if (! isValidMotionAction(action, pointerCount)) { - LOGE("Motion event has invalid action code 0x%x", action); + ALOGE("Motion event has invalid action code 0x%x", action); return false; } if (pointerCount < 1 || pointerCount > MAX_POINTERS) { - LOGE("Motion event has invalid pointer count %d; value must be between 1 and %d.", + ALOGE("Motion event has invalid pointer count %d; value must be between 1 and %d.", pointerCount, MAX_POINTERS); return false; } @@ -164,12 +164,12 @@ static bool validateMotionEvent(int32_t action, size_t pointerCount, for (size_t i = 0; i < pointerCount; i++) { int32_t id = pointerProperties[i].id; if (id < 0 || id > MAX_POINTER_ID) { - LOGE("Motion event has invalid pointer id %d; value must be between 0 and %d", + ALOGE("Motion event has invalid pointer id %d; value must be between 0 and %d", id, MAX_POINTER_ID); return false; } if (pointerIdBits.hasBit(id)) { - LOGE("Motion event has duplicate pointer id %d", id); + ALOGE("Motion event has duplicate pointer id %d", id); return false; } pointerIdBits.markBit(id); @@ -2168,7 +2168,7 @@ void InputDispatcher::startDispatchCycleLocked(nsecs_t currentTime, keyEntry->eventTime); if (status) { - LOGE("channel '%s' ~ Could not publish key event, " + ALOGE("channel '%s' ~ Could not publish key event, " "status=%d", connection->getInputChannelName(), status); abortBrokenDispatchCycleLocked(currentTime, connection, true /*notify*/); return; @@ -2231,7 +2231,7 @@ void InputDispatcher::startDispatchCycleLocked(nsecs_t currentTime, usingCoords); if (status) { - LOGE("channel '%s' ~ Could not publish motion event, " + ALOGE("channel '%s' ~ Could not publish motion event, " "status=%d", connection->getInputChannelName(), status); abortBrokenDispatchCycleLocked(currentTime, connection, true /*notify*/); return; @@ -2263,7 +2263,7 @@ void InputDispatcher::startDispatchCycleLocked(nsecs_t currentTime, break; } if (status != OK) { - LOGE("channel '%s' ~ Could not append motion sample " + ALOGE("channel '%s' ~ Could not append motion sample " "for a reason other than out of memory, status=%d", connection->getInputChannelName(), status); abortBrokenDispatchCycleLocked(currentTime, connection, true /*notify*/); @@ -2286,7 +2286,7 @@ void InputDispatcher::startDispatchCycleLocked(nsecs_t currentTime, // Send the dispatch signal. status = connection->inputPublisher.sendDispatchSignal(); if (status) { - LOGE("channel '%s' ~ Could not send dispatch signal, status=%d", + ALOGE("channel '%s' ~ Could not send dispatch signal, status=%d", connection->getInputChannelName(), status); abortBrokenDispatchCycleLocked(currentTime, connection, true /*notify*/); return; @@ -2321,7 +2321,7 @@ void InputDispatcher::finishDispatchCycleLocked(nsecs_t currentTime, // while waiting for the next dispatch cycle to begin. status_t status = connection->inputPublisher.reset(); if (status) { - LOGE("channel '%s' ~ Could not reset publisher, status=%d", + ALOGE("channel '%s' ~ Could not reset publisher, status=%d", connection->getInputChannelName(), status); abortBrokenDispatchCycleLocked(currentTime, connection, true /*notify*/); return; @@ -2408,7 +2408,7 @@ int InputDispatcher::handleReceiveCallback(int receiveFd, int events, void* data ssize_t connectionIndex = d->mConnectionsByReceiveFd.indexOfKey(receiveFd); if (connectionIndex < 0) { - LOGE("Received spurious receive callback for unknown input channel. " + ALOGE("Received spurious receive callback for unknown input channel. " "fd=%d, events=0x%x", receiveFd, events); return 0; // remove the callback } @@ -2431,7 +2431,7 @@ int InputDispatcher::handleReceiveCallback(int receiveFd, int events, void* data return 1; } - LOGE("channel '%s' ~ Failed to receive finished signal. status=%d", + ALOGE("channel '%s' ~ Failed to receive finished signal. status=%d", connection->getInputChannelName(), status); notify = true; } else { @@ -3651,7 +3651,7 @@ status_t InputDispatcher::registerInputChannel(const sp<InputChannel>& inputChan sp<Connection> connection = new Connection(inputChannel, inputWindowHandle, monitor); status_t status = connection->initialize(); if (status) { - LOGE("Failed to initialize input publisher for input channel '%s', status=%d", + ALOGE("Failed to initialize input publisher for input channel '%s', status=%d", inputChannel->getName().string(), status); return status; } @@ -3770,7 +3770,7 @@ void InputDispatcher::onDispatchCycleFinishedLocked( void InputDispatcher::onDispatchCycleBrokenLocked( nsecs_t currentTime, const sp<Connection>& connection) { - LOGE("channel '%s' ~ Channel is unrecoverably broken and will be disposed!", + ALOGE("channel '%s' ~ Channel is unrecoverably broken and will be disposed!", connection->getInputChannelName()); CommandEntry* commandEntry = postCommandLocked( diff --git a/services/input/InputManager.cpp b/services/input/InputManager.cpp index 29c5884..6a6547b 100644 --- a/services/input/InputManager.cpp +++ b/services/input/InputManager.cpp @@ -53,13 +53,13 @@ void InputManager::initialize() { status_t InputManager::start() { status_t result = mDispatcherThread->run("InputDispatcher", PRIORITY_URGENT_DISPLAY); if (result) { - LOGE("Could not start InputDispatcher thread due to error %d.", result); + ALOGE("Could not start InputDispatcher thread due to error %d.", result); return result; } result = mReaderThread->run("InputReader", PRIORITY_URGENT_DISPLAY); if (result) { - LOGE("Could not start InputReader thread due to error %d.", result); + ALOGE("Could not start InputReader thread due to error %d.", result); mDispatcherThread->requestExit(); return result; diff --git a/services/input/SpriteController.cpp b/services/input/SpriteController.cpp index 0ae2ab8..b15d4c8 100644 --- a/services/input/SpriteController.cpp +++ b/services/input/SpriteController.cpp @@ -160,7 +160,7 @@ void SpriteController::doUpdateSprites() { status_t status = update.state.surfaceControl->setSize(desiredWidth, desiredHeight); if (status) { - LOGE("Error %d resizing sprite surface from %dx%d to %dx%d", + ALOGE("Error %d resizing sprite surface from %dx%d to %dx%d", status, update.state.surfaceWidth, update.state.surfaceHeight, desiredWidth, desiredHeight); } else { @@ -172,7 +172,7 @@ void SpriteController::doUpdateSprites() { if (update.state.surfaceVisible) { status = update.state.surfaceControl->hide(); if (status) { - LOGE("Error %d hiding sprite surface after resize.", status); + ALOGE("Error %d hiding sprite surface after resize.", status); } else { update.state.surfaceVisible = false; } @@ -200,7 +200,7 @@ void SpriteController::doUpdateSprites() { Surface::SurfaceInfo surfaceInfo; status_t status = surface->lock(&surfaceInfo); if (status) { - LOGE("Error %d locking sprite surface before drawing.", status); + ALOGE("Error %d locking sprite surface before drawing.", status); } else { SkBitmap surfaceBitmap; ssize_t bpr = surfaceInfo.s * bytesPerPixel(surfaceInfo.format); @@ -228,7 +228,7 @@ void SpriteController::doUpdateSprites() { status = surface->unlockAndPost(); if (status) { - LOGE("Error %d unlocking and posting sprite surface after drawing.", status); + ALOGE("Error %d unlocking and posting sprite surface after drawing.", status); } else { update.state.surfaceDrawn = true; update.surfaceChanged = surfaceChanged = true; @@ -260,7 +260,7 @@ void SpriteController::doUpdateSprites() { && (becomingVisible || (update.state.dirty & DIRTY_ALPHA))) { status = update.state.surfaceControl->setAlpha(update.state.alpha); if (status) { - LOGE("Error %d setting sprite surface alpha.", status); + ALOGE("Error %d setting sprite surface alpha.", status); } } @@ -271,7 +271,7 @@ void SpriteController::doUpdateSprites() { update.state.positionX - update.state.icon.hotSpotX, update.state.positionY - update.state.icon.hotSpotY); if (status) { - LOGE("Error %d setting sprite surface position.", status); + ALOGE("Error %d setting sprite surface position.", status); } } @@ -284,7 +284,7 @@ void SpriteController::doUpdateSprites() { update.state.transformationMatrix.dsdy, update.state.transformationMatrix.dtdy); if (status) { - LOGE("Error %d setting sprite surface transformation matrix.", status); + ALOGE("Error %d setting sprite surface transformation matrix.", status); } } @@ -293,14 +293,14 @@ void SpriteController::doUpdateSprites() { && (becomingVisible || (update.state.dirty & DIRTY_LAYER))) { status = update.state.surfaceControl->setLayer(surfaceLayer); if (status) { - LOGE("Error %d setting sprite surface layer.", status); + ALOGE("Error %d setting sprite surface layer.", status); } } if (becomingVisible) { status = update.state.surfaceControl->show(surfaceLayer); if (status) { - LOGE("Error %d showing sprite surface.", status); + ALOGE("Error %d showing sprite surface.", status); } else { update.state.surfaceVisible = true; update.surfaceChanged = surfaceChanged = true; @@ -308,7 +308,7 @@ void SpriteController::doUpdateSprites() { } else if (becomingHidden) { status = update.state.surfaceControl->hide(); if (status) { - LOGE("Error %d hiding sprite surface.", status); + ALOGE("Error %d hiding sprite surface.", status); } else { update.state.surfaceVisible = false; update.surfaceChanged = surfaceChanged = true; @@ -372,7 +372,7 @@ sp<SurfaceControl> SpriteController::obtainSurface(int32_t width, int32_t height String8("Sprite"), 0, width, height, PIXEL_FORMAT_RGBA_8888); if (surfaceControl == NULL || !surfaceControl->isValid() || !surfaceControl->getSurface()->isValid()) { - LOGE("Error creating sprite surface."); + ALOGE("Error creating sprite surface."); return NULL; } return surfaceControl; |