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

Commit 2f46a2be authored by Avichal Rakesh's avatar Avichal Rakesh Committed by Android (Google) Code Review
Browse files

Merge "Add timestamps of when tag monitoring dumps are cached"

parents 6f04d9ff 882c08be
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -4453,12 +4453,20 @@ void CameraService::cacheClientTagDumpIfNeeded(const char *cameraId, BasicClient

    if (dumpVector.empty()) { return; }

    std::string dumpString;

    String8 currentTime = getFormattedCurrentTime();
    dumpString += "Cached @ ";
    dumpString += currentTime.string();
    dumpString += "\n"; // First line is the timestamp of when client is cached.


    const String16 &packageName = client->getPackageName();

    String8 packageName8 = String8(packageName);
    const char *printablePackageName = packageName8.lockBuffer(packageName.size());

    std::string dumpString;

    size_t i = dumpVector.size();

    // Store the string in reverse order (latest last)