Loading services/mediametrics/include/mediametricsservice/TimeMachine.h +7 −1 Original line number Diff line number Diff line Loading @@ -143,6 +143,7 @@ private: if (mPropertyMap.size() >= kKeyMaxProperties && !mPropertyMap.count(property)) { ALOGV("%s: too many properties, rejecting %s", __func__, property.c_str()); mRejectedPropertiesCount++; return; } auto& timeSequence = mPropertyMap[property]; Loading Loading @@ -172,6 +173,10 @@ private: ss << s; } } if (ll > 0 && mRejectedPropertiesCount > 0) { ss << "Rejected properties: " << mRejectedPropertiesCount << "\n"; ll--; } return { ss.str(), lines - ll }; } Loading Loading @@ -214,6 +219,7 @@ private: const uid_t mAllowUid; const int64_t mCreationTime; unsigned int mRejectedPropertiesCount = 0; int64_t mLastModificationTime; std::map<std::string /* property */, PropertyHistory> mPropertyMap; }; Loading @@ -221,7 +227,7 @@ private: using History = std::map<std::string /* key */, std::shared_ptr<KeyHistory>>; static inline constexpr size_t kTimeSequenceMaxElements = 50; static inline constexpr size_t kKeyMaxProperties = 50; static inline constexpr size_t kKeyMaxProperties = 128; static inline constexpr size_t kKeyLowWaterMark = 400; static inline constexpr size_t kKeyHighWaterMark = 500; Loading Loading
services/mediametrics/include/mediametricsservice/TimeMachine.h +7 −1 Original line number Diff line number Diff line Loading @@ -143,6 +143,7 @@ private: if (mPropertyMap.size() >= kKeyMaxProperties && !mPropertyMap.count(property)) { ALOGV("%s: too many properties, rejecting %s", __func__, property.c_str()); mRejectedPropertiesCount++; return; } auto& timeSequence = mPropertyMap[property]; Loading Loading @@ -172,6 +173,10 @@ private: ss << s; } } if (ll > 0 && mRejectedPropertiesCount > 0) { ss << "Rejected properties: " << mRejectedPropertiesCount << "\n"; ll--; } return { ss.str(), lines - ll }; } Loading Loading @@ -214,6 +219,7 @@ private: const uid_t mAllowUid; const int64_t mCreationTime; unsigned int mRejectedPropertiesCount = 0; int64_t mLastModificationTime; std::map<std::string /* property */, PropertyHistory> mPropertyMap; }; Loading @@ -221,7 +227,7 @@ private: using History = std::map<std::string /* key */, std::shared_ptr<KeyHistory>>; static inline constexpr size_t kTimeSequenceMaxElements = 50; static inline constexpr size_t kKeyMaxProperties = 50; static inline constexpr size_t kKeyMaxProperties = 128; static inline constexpr size_t kKeyLowWaterMark = 400; static inline constexpr size_t kKeyHighWaterMark = 500; Loading