Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-native: Commit

frameworks/native


Commit MetaInfo

Revisiona264153c189d756864609db29a64ea548ea8474a (tree)
Time2020-05-20 23:12:39
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Merge remote-tracking branch 'cm/cm-14.1' into cm-14.1-x86

Change Summary

Incremental Difference

--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -2573,11 +2573,13 @@ status_t Parcel::continueWrite(size_t desired)
25732573 if (objectsSize == 0) {
25742574 free(mObjects);
25752575 mObjects = nullptr;
2576+ mObjectsCapacity = 0;
25762577 } else {
25772578 binder_size_t* objects =
25782579 (binder_size_t*)realloc(mObjects, objectsSize*sizeof(binder_size_t));
25792580 if (objects) {
25802581 mObjects = objects;
2582+ mObjectsCapacity = objectsSize;
25812583 }
25822584 }
25832585 mObjectsSize = objectsSize;
--- a/libs/gui/Sensor.cpp
+++ b/libs/gui/Sensor.cpp
@@ -532,7 +532,8 @@ void Sensor::flattenString8(void*& buffer, size_t& size,
532532 uint32_t len = static_cast<uint32_t>(string8.length());
533533 FlattenableUtils::write(buffer, size, len);
534534 memcpy(static_cast<char*>(buffer), string8.string(), len);
535- FlattenableUtils::advance(buffer, size, FlattenableUtils::align<4>(len));
535+ FlattenableUtils::advance(buffer, size, len);
536+ size -= FlattenableUtils::align<4>(buffer);
536537 }
537538
538539 bool Sensor::unflattenString8(void const*& buffer, size_t& size, String8& outputString8) {
--- a/services/inputflinger/InputDispatcher.cpp
+++ b/services/inputflinger/InputDispatcher.cpp
@@ -4035,11 +4035,7 @@ InputDispatcher::KeyEntry::~KeyEntry() {
40354035 }
40364036
40374037 void InputDispatcher::KeyEntry::appendDescription(String8& msg) const {
4038- msg.appendFormat("KeyEvent(deviceId=%d, source=0x%08x, action=%d, "
4039- "flags=0x%08x, keyCode=%d, scanCode=%d, metaState=0x%08x, "
4040- "repeatCount=%d), policyFlags=0x%08x",
4041- deviceId, source, action, flags, keyCode, scanCode, metaState,
4042- repeatCount, policyFlags);
4038+ msg.appendFormat("KeyEvent");
40434039 }
40444040
40454041 void InputDispatcher::KeyEntry::recycle() {
@@ -4080,19 +4076,7 @@ InputDispatcher::MotionEntry::~MotionEntry() {
40804076 }
40814077
40824078 void InputDispatcher::MotionEntry::appendDescription(String8& msg) const {
4083- msg.appendFormat("MotionEvent(deviceId=%d, source=0x%08x, action=%d, actionButton=0x%08x, "
4084- "flags=0x%08x, metaState=0x%08x, buttonState=0x%08x, "
4085- "edgeFlags=0x%08x, xPrecision=%.1f, yPrecision=%.1f, displayId=%d, pointers=[",
4086- deviceId, source, action, actionButton, flags, metaState, buttonState, edgeFlags,
4087- xPrecision, yPrecision, displayId);
4088- for (uint32_t i = 0; i < pointerCount; i++) {
4089- if (i) {
4090- msg.append(", ");
4091- }
4092- msg.appendFormat("%d: (%.1f, %.1f)", pointerProperties[i].id,
4093- pointerCoords[i].getX(), pointerCoords[i].getY());
4094- }
4095- msg.appendFormat("]), policyFlags=0x%08x", policyFlags);
4079+ msg.appendFormat("MotionEvent");
40964080 }
40974081
40984082
Show on old repository browser