Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/157065
Bug: 5449033
Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
This commit is contained in:
@@ -359,7 +359,7 @@ void InputReader::addDeviceLocked(nsecs_t when, int32_t deviceId) {
|
||||
if (deviceIndex < 0) {
|
||||
mDevices.add(deviceId, device);
|
||||
} else {
|
||||
LOGW("Ignoring spurious device added event for deviceId %d.", deviceId);
|
||||
ALOGW("Ignoring spurious device added event for deviceId %d.", deviceId);
|
||||
delete device;
|
||||
return;
|
||||
}
|
||||
@@ -372,7 +372,7 @@ void InputReader::removeDeviceLocked(nsecs_t when, int32_t deviceId) {
|
||||
device = mDevices.valueAt(deviceIndex);
|
||||
mDevices.removeItemsAt(deviceIndex, 1);
|
||||
} else {
|
||||
LOGW("Ignoring spurious device removed event for deviceId %d.", deviceId);
|
||||
ALOGW("Ignoring spurious device removed event for deviceId %d.", deviceId);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -446,7 +446,7 @@ void InputReader::processEventsForDeviceLocked(int32_t deviceId,
|
||||
const RawEvent* rawEvents, size_t count) {
|
||||
ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
|
||||
if (deviceIndex < 0) {
|
||||
LOGW("Discarding event for unknown deviceId %d.", deviceId);
|
||||
ALOGW("Discarding event for unknown deviceId %d.", deviceId);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1554,7 +1554,7 @@ void MultiTouchMotionAccumulator::process(const RawEvent* rawEvent) {
|
||||
if (mCurrentSlot < 0 || size_t(mCurrentSlot) >= mSlotCount) {
|
||||
#if DEBUG_POINTERS
|
||||
if (newSlot) {
|
||||
LOGW("MultiTouch device emitted invalid slot index %d but it "
|
||||
ALOGW("MultiTouch device emitted invalid slot index %d but it "
|
||||
"should be between 0 and %d; ignoring this slot.",
|
||||
mCurrentSlot, mSlotCount - 1);
|
||||
}
|
||||
@@ -2121,7 +2121,7 @@ void CursorInputMapper::configureParameters() {
|
||||
if (cursorModeString == "navigation") {
|
||||
mParameters.mode = Parameters::MODE_NAVIGATION;
|
||||
} else if (cursorModeString != "pointer" && cursorModeString != "default") {
|
||||
LOGW("Invalid value for cursor.mode: '%s'", cursorModeString.string());
|
||||
ALOGW("Invalid value for cursor.mode: '%s'", cursorModeString.string());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2530,7 +2530,7 @@ void TouchInputMapper::configureParameters() {
|
||||
} else if (gestureModeString == "spots") {
|
||||
mParameters.gestureMode = Parameters::GESTURE_MODE_SPOTS;
|
||||
} else if (gestureModeString != "default") {
|
||||
LOGW("Invalid value for touch.gestureMode: '%s'", gestureModeString.string());
|
||||
ALOGW("Invalid value for touch.gestureMode: '%s'", gestureModeString.string());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2560,7 +2560,7 @@ void TouchInputMapper::configureParameters() {
|
||||
} else if (deviceTypeString == "pointer") {
|
||||
mParameters.deviceType = Parameters::DEVICE_TYPE_POINTER;
|
||||
} else if (deviceTypeString != "default") {
|
||||
LOGW("Invalid value for touch.deviceType: '%s'", deviceTypeString.string());
|
||||
ALOGW("Invalid value for touch.deviceType: '%s'", deviceTypeString.string());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2654,7 +2654,7 @@ void TouchInputMapper::configureSurface(nsecs_t when, bool* outResetNeeded) {
|
||||
|
||||
// Ensure we have valid X and Y axes.
|
||||
if (!mRawPointerAxes.x.valid || !mRawPointerAxes.y.valid) {
|
||||
LOGW(INDENT "Touch device '%s' did not report support for X or Y axis! "
|
||||
ALOGW(INDENT "Touch device '%s' did not report support for X or Y axis! "
|
||||
"The device will be inoperable.", getDeviceName().string());
|
||||
mDeviceMode = DEVICE_MODE_DISABLED;
|
||||
return;
|
||||
@@ -3010,7 +3010,7 @@ void TouchInputMapper::configureVirtualKeys() {
|
||||
uint32_t flags;
|
||||
if (getEventHub()->mapKey(getDeviceId(), virtualKey.scanCode,
|
||||
& keyCode, & flags)) {
|
||||
LOGW(INDENT "VirtualKey %d: could not obtain key code, ignoring",
|
||||
ALOGW(INDENT "VirtualKey %d: could not obtain key code, ignoring",
|
||||
virtualKey.scanCode);
|
||||
mVirtualKeys.pop(); // drop the key
|
||||
continue;
|
||||
@@ -3066,7 +3066,7 @@ void TouchInputMapper::parseCalibration() {
|
||||
} else if (sizeCalibrationString == "area") {
|
||||
out.sizeCalibration = Calibration::SIZE_CALIBRATION_AREA;
|
||||
} else if (sizeCalibrationString != "default") {
|
||||
LOGW("Invalid value for touch.size.calibration: '%s'",
|
||||
ALOGW("Invalid value for touch.size.calibration: '%s'",
|
||||
sizeCalibrationString.string());
|
||||
}
|
||||
}
|
||||
@@ -3089,7 +3089,7 @@ void TouchInputMapper::parseCalibration() {
|
||||
} else if (pressureCalibrationString == "amplitude") {
|
||||
out.pressureCalibration = Calibration::PRESSURE_CALIBRATION_AMPLITUDE;
|
||||
} else if (pressureCalibrationString != "default") {
|
||||
LOGW("Invalid value for touch.pressure.calibration: '%s'",
|
||||
ALOGW("Invalid value for touch.pressure.calibration: '%s'",
|
||||
pressureCalibrationString.string());
|
||||
}
|
||||
}
|
||||
@@ -3108,7 +3108,7 @@ void TouchInputMapper::parseCalibration() {
|
||||
} else if (orientationCalibrationString == "vector") {
|
||||
out.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_VECTOR;
|
||||
} else if (orientationCalibrationString != "default") {
|
||||
LOGW("Invalid value for touch.orientation.calibration: '%s'",
|
||||
ALOGW("Invalid value for touch.orientation.calibration: '%s'",
|
||||
orientationCalibrationString.string());
|
||||
}
|
||||
}
|
||||
@@ -3122,7 +3122,7 @@ void TouchInputMapper::parseCalibration() {
|
||||
} else if (distanceCalibrationString == "scaled") {
|
||||
out.distanceCalibration = Calibration::DISTANCE_CALIBRATION_SCALED;
|
||||
} else if (distanceCalibrationString != "default") {
|
||||
LOGW("Invalid value for touch.distance.calibration: '%s'",
|
||||
ALOGW("Invalid value for touch.distance.calibration: '%s'",
|
||||
distanceCalibrationString.string());
|
||||
}
|
||||
}
|
||||
@@ -5686,7 +5686,7 @@ void MultiTouchInputMapper::configureRawPointerAxes() {
|
||||
&& mRawPointerAxes.slot.minValue == 0 && mRawPointerAxes.slot.maxValue > 0) {
|
||||
size_t slotCount = mRawPointerAxes.slot.maxValue + 1;
|
||||
if (slotCount > MAX_SLOTS) {
|
||||
LOGW("MultiTouch Device %s reported %d slots but the framework "
|
||||
ALOGW("MultiTouch Device %s reported %d slots but the framework "
|
||||
"only supports a maximum of %d slots at this time.",
|
||||
getDeviceName().string(), slotCount, MAX_SLOTS);
|
||||
slotCount = MAX_SLOTS;
|
||||
|
||||
Reference in New Issue
Block a user