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

Commit 840f84c2 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 13943966 from 91e2832c to 25Q4-release

Change-Id: I66a42e6d15354179a8caac9a696eda1c99b50317
parents 6f377879 91e2832c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1001,7 +1001,7 @@ TEST_F(DumpstateTest, DumpPool_withParallelRunDisabled_isNull) {
TEST_F(DumpstateTest, PreDumpUiData) {
    // These traces are always enabled, i.e. they are always pre-dumped
    std::vector<std::filesystem::path> uiTraces;
    for (const auto traceFile : uiTraces) {
    for (const auto& traceFile : uiTraces) {
        std::system(("rm -f " + traceFile.string()).c_str());
        EXPECT_FALSE(std::filesystem::exists(traceFile)) << traceFile << " was not deleted.";

+6 −4
Original line number Diff line number Diff line
@@ -66,6 +66,8 @@ struct DisplayViewport {
    std::optional<uint8_t> physicalPort;
    ViewportType type;
    int32_t densityDpi;
    float xDpi;
    float yDpi;

    DisplayViewport()
          : displayId(ui::LogicalDisplayId::INVALID),
@@ -124,7 +126,7 @@ struct DisplayViewport {

    std::string toString() const {
        return StringPrintf("Viewport %s: displayId=%s, uniqueId=%s, port=%s, orientation=%d, "
                            "densityDpi=%d "
                            "densityDpi=%d xDpi=%f, yDpi=%f, "
                            "logicalFrame=[%d, %d, %d, %d], "
                            "physicalFrame=[%d, %d, %d, %d], "
                            "deviceSize=[%d, %d], "
@@ -132,9 +134,9 @@ struct DisplayViewport {
                            ftl::enum_string(type).c_str(), displayId.toString().c_str(),
                            uniqueId.c_str(),
                            physicalPort ? ftl::to_string(*physicalPort).c_str() : "<none>",
                            static_cast<int>(orientation), densityDpi, logicalLeft, logicalTop,
                            logicalRight, logicalBottom, physicalLeft, physicalTop, physicalRight,
                            physicalBottom, deviceWidth, deviceHeight, isActive);
                            static_cast<int>(orientation), densityDpi, xDpi, yDpi, logicalLeft,
                            logicalTop, logicalRight, logicalBottom, physicalLeft, physicalTop,
                            physicalRight, physicalBottom, deviceWidth, deviceHeight, isActive);
    }
};

+1 −0
Original line number Diff line number Diff line
@@ -338,6 +338,7 @@ cc_defaults {
            cflags: [
                "-DBINDER_RPC_DEV_SERVERS",
                "-DBINDER_ENABLE_RECORDING",
                "-DBINDER_OBSERVER_DROIDFOOD_CONFIG",
            ],
        },
    },
+6 −0
Original line number Diff line number Diff line
@@ -418,6 +418,12 @@ status_t BBinder::transact(
        reply->markSensitive();
    }

    if (data.dataSize() > binder::kLogTransactionsOverBytes) {
        ALOGW("Large data transaction of %zu bytes, interface descriptor %s, code %d, flags "
              "%d",
              data.dataSize(), String8(getInterfaceDescriptor()).c_str(), code, flags);
    }

    status_t err = NO_ERROR;
    switch (code) {
        case PING_TRANSACTION:
+18 −0
Original line number Diff line number Diff line
@@ -22,6 +22,11 @@
#include "BinderObserverConfig.h"

namespace android {
#ifdef BINDER_OBSERVER_DROIDFOOD_CONFIG
constexpr bool kUseDroidfoodConfig = true;
#else
constexpr bool kUseDroidfoodConfig = false;
#endif // BINDER_OBSERVER_DROIDFOOD_CONFIG

// __BIONIC__ has getprogname() but __GLIBC__ and others have program_invocation_short_name
#if !defined(__BIONIC__)
@@ -47,6 +52,19 @@ std::string BinderObserverConfig::Environment::getProcessName() {
    return getprogname();
}

BinderObserverConfig::ShardingConfig BinderObserverConfig::Environment::getSystemServerSharding() {
    return kUseDroidfoodConfig
            ? ShardingConfig{.processMod = 1, .spamMod = 5, .callMod = 10}
            : ShardingConfig{.processMod = 10, .spamMod = 50, .callMod = 100};
}

BinderObserverConfig::ShardingConfig
BinderObserverConfig::Environment::getOtherProcessesSharding() {
    return kUseDroidfoodConfig
            ? ShardingConfig{.processMod = 5, .spamMod = 1, .callMod = 2}
            : ShardingConfig{.processMod = 50, .spamMod = 10, .callMod = 20};
}

std::pair<size_t, size_t> BinderObserverConfig::getBootStableTokens(Environment& environment) {
    std::string bootToken = environment.readFileLine(kBootIdPath);

Loading