Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6140d46d authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge changes I89779ab3,I63ec0e57 am: 6c8e3812 am: f39786af

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1498600

Change-Id: Ia53c6167a3f04f1b6057a6e913585cfa93eee5d0
parents 2cc6ed18 f39786af
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -181,7 +181,6 @@ cc_library {
    ],
    ],
    tidy_checks_as_errors: [
    tidy_checks_as_errors: [
        "*",
        "*",
        "-google-runtime-int",
    ],
    ],
}
}


+1 −1
Original line number Original line Diff line number Diff line
@@ -208,7 +208,7 @@ void printHexData(int32_t indent, const void *buf, size_t length,
    }
    }


    for (offset = 0; ; offset += bytesPerLine, pos += bytesPerLine) {
    for (offset = 0; ; offset += bytesPerLine, pos += bytesPerLine) {
        long remain = length;
        size_t remain = length;


        char* c = buffer;
        char* c = buffer;
        if (!oneLine && !cStyle) {
        if (!oneLine && !cStyle) {
+9 −9
Original line number Original line Diff line number Diff line
@@ -135,7 +135,7 @@ static const void* printBinderTransactionData(TextOutput& out, const void* data)
        out << "target.ptr=" << btd->target.ptr;
        out << "target.ptr=" << btd->target.ptr;
    }
    }
    out << " (cookie " << btd->cookie << ")" << endl
    out << " (cookie " << btd->cookie << ")" << endl
        << "code=" << TypeCode(btd->code) << ", flags=" << (void*)(long)btd->flags << endl
        << "code=" << TypeCode(btd->code) << ", flags=" << (void*)(uint64_t)btd->flags << endl
        << "data=" << btd->data.ptr.buffer << " (" << (void*)btd->data_size
        << "data=" << btd->data.ptr.buffer << " (" << (void*)btd->data_size
        << " bytes)" << endl
        << " bytes)" << endl
        << "offsets=" << btd->data.ptr.offsets << " (" << (void*)btd->offsets_size
        << "offsets=" << btd->data.ptr.offsets << " (" << (void*)btd->offsets_size
@@ -150,7 +150,7 @@ static const void* printReturnCommand(TextOutput& out, const void* _cmd)
    uint32_t code = (uint32_t)*cmd++;
    uint32_t code = (uint32_t)*cmd++;
    size_t cmdIndex = code & 0xff;
    size_t cmdIndex = code & 0xff;
    if (code == BR_ERROR) {
    if (code == BR_ERROR) {
        out << "BR_ERROR: " << (void*)(long)(*cmd++) << endl;
        out << "BR_ERROR: " << (void*)(uint64_t)(*cmd++) << endl;
        return cmd;
        return cmd;
    } else if (cmdIndex >= N) {
    } else if (cmdIndex >= N) {
        out << "Unknown reply: " << code << endl;
        out << "Unknown reply: " << code << endl;
@@ -177,21 +177,21 @@ static const void* printReturnCommand(TextOutput& out, const void* _cmd)
        case BR_DECREFS: {
        case BR_DECREFS: {
            const int32_t b = *cmd++;
            const int32_t b = *cmd++;
            const int32_t c = *cmd++;
            const int32_t c = *cmd++;
            out << ": target=" << (void*)(long)b << " (cookie " << (void*)(long)c << ")";
            out << ": target=" << (void*)(uint64_t)b << " (cookie " << (void*)(uint64_t)c << ")";
        } break;
        } break;


        case BR_ATTEMPT_ACQUIRE: {
        case BR_ATTEMPT_ACQUIRE: {
            const int32_t p = *cmd++;
            const int32_t p = *cmd++;
            const int32_t b = *cmd++;
            const int32_t b = *cmd++;
            const int32_t c = *cmd++;
            const int32_t c = *cmd++;
            out << ": target=" << (void*)(long)b << " (cookie " << (void*)(long)c
            out << ": target=" << (void*)(uint64_t)b << " (cookie " << (void*)(uint64_t)c
                << "), pri=" << p;
                << "), pri=" << p;
        } break;
        } break;


        case BR_DEAD_BINDER:
        case BR_DEAD_BINDER:
        case BR_CLEAR_DEATH_NOTIFICATION_DONE: {
        case BR_CLEAR_DEATH_NOTIFICATION_DONE: {
            const int32_t c = *cmd++;
            const int32_t c = *cmd++;
            out << ": death cookie " << (void*)(long)c;
            out << ": death cookie " << (void*)(uint64_t)c;
        } break;
        } break;


        default:
        default:
@@ -232,7 +232,7 @@ static const void* printCommand(TextOutput& out, const void* _cmd)


        case BC_FREE_BUFFER: {
        case BC_FREE_BUFFER: {
            const int32_t buf = *cmd++;
            const int32_t buf = *cmd++;
            out << ": buffer=" << (void*)(long)buf;
            out << ": buffer=" << (void*)(uint64_t)buf;
        } break;
        } break;


        case BC_INCREFS:
        case BC_INCREFS:
@@ -247,7 +247,7 @@ static const void* printCommand(TextOutput& out, const void* _cmd)
        case BC_ACQUIRE_DONE: {
        case BC_ACQUIRE_DONE: {
            const int32_t b = *cmd++;
            const int32_t b = *cmd++;
            const int32_t c = *cmd++;
            const int32_t c = *cmd++;
            out << ": target=" << (void*)(long)b << " (cookie " << (void*)(long)c << ")";
            out << ": target=" << (void*)(uint64_t)b << " (cookie " << (void*)(uint64_t)c << ")";
        } break;
        } break;


        case BC_ATTEMPT_ACQUIRE: {
        case BC_ATTEMPT_ACQUIRE: {
@@ -260,12 +260,12 @@ static const void* printCommand(TextOutput& out, const void* _cmd)
        case BC_CLEAR_DEATH_NOTIFICATION: {
        case BC_CLEAR_DEATH_NOTIFICATION: {
            const int32_t h = *cmd++;
            const int32_t h = *cmd++;
            const int32_t c = *cmd++;
            const int32_t c = *cmd++;
            out << ": handle=" << h << " (death cookie " << (void*)(long)c << ")";
            out << ": handle=" << h << " (death cookie " << (void*)(uint64_t)c << ")";
        } break;
        } break;


        case BC_DEAD_BINDER_DONE: {
        case BC_DEAD_BINDER_DONE: {
            const int32_t c = *cmd++;
            const int32_t c = *cmd++;
            out << ": death cookie " << (void*)(long)c;
            out << ": death cookie " << (void*)(uint64_t)c;
        } break;
        } break;


        default:
        default:
+2 −2
Original line number Original line Diff line number Diff line
@@ -221,7 +221,7 @@ sp<IBinder> ServiceManagerShim::getService(const String16& name) const


    const bool isVendorService =
    const bool isVendorService =
        strcmp(ProcessState::self()->getDriverName().c_str(), "/dev/vndbinder") == 0;
        strcmp(ProcessState::self()->getDriverName().c_str(), "/dev/vndbinder") == 0;
    const long timeout = 5000;
    constexpr int64_t timeout = 5000;
    int64_t startTime = uptimeMillis();
    int64_t startTime = uptimeMillis();
    // Vendor code can't access system properties
    // Vendor code can't access system properties
    if (!gSystemBootCompleted && !isVendorService) {
    if (!gSystemBootCompleted && !isVendorService) {
@@ -234,7 +234,7 @@ sp<IBinder> ServiceManagerShim::getService(const String16& name) const
#endif
#endif
    }
    }
    // retry interval in millisecond; note that vendor services stay at 100ms
    // retry interval in millisecond; note that vendor services stay at 100ms
    const long sleepTime = gSystemBootCompleted ? 1000 : 100;
    const useconds_t sleepTime = gSystemBootCompleted ? 1000 : 100;


    ALOGI("Waiting for service '%s' on '%s'...", String8(name).string(),
    ALOGI("Waiting for service '%s' on '%s'...", String8(name).string(),
          ProcessState::self()->getDriverName().c_str());
          ProcessState::self()->getDriverName().c_str());
+2 −0
Original line number Original line Diff line number Diff line
@@ -33,8 +33,10 @@
#include <binder/Parcelable.h>
#include <binder/Parcelable.h>


#ifdef BINDER_IPC_32BIT
#ifdef BINDER_IPC_32BIT
//NOLINTNEXTLINE(google-runtime-int) b/173188702
typedef unsigned int binder_size_t;
typedef unsigned int binder_size_t;
#else
#else
//NOLINTNEXTLINE(google-runtime-int) b/173188702
typedef unsigned long long binder_size_t;
typedef unsigned long long binder_size_t;
#endif
#endif


Loading