Searched refs:PersistentInteger (Results 1 – 9 of 9) sorted by relevance
42 using chromeos_metrics::PersistentInteger;154 void SendAndResetDailyUseSample(const unique_ptr<PersistentInteger>& use);159 const unique_ptr<PersistentInteger>& interval);164 const unique_ptr<PersistentInteger>& frequency);247 unique_ptr<PersistentInteger> daily_cycle_;248 unique_ptr<PersistentInteger> weekly_cycle_;249 unique_ptr<PersistentInteger> version_cycle_;252 unique_ptr<PersistentInteger> daily_active_use_;254 unique_ptr<PersistentInteger> version_cumulative_active_use_;258 unique_ptr<PersistentInteger> version_cumulative_cpu_use_;[all …]
28 PersistentInteger::PersistentInteger(const std::string& name, in PersistentInteger() function in chromeos_metrics::PersistentInteger36 PersistentInteger::~PersistentInteger() {} in ~PersistentInteger()38 void PersistentInteger::Set(int64_t value) { in Set()43 int64_t PersistentInteger::Get() { in Get()50 int64_t PersistentInteger::GetAndClear() { in GetAndClear()56 void PersistentInteger::Add(int64_t x) { in Add()60 void PersistentInteger::Write() { in Write()75 bool PersistentInteger::Read() { in Read()
29 using chromeos_metrics::PersistentInteger;42 std::unique_ptr<PersistentInteger> pi( in TEST_F()43 new PersistentInteger(kBackingFileName, temp_dir_.path())); in TEST_F()55 pi.reset(new PersistentInteger(kBackingFileName, temp_dir_.path())); in TEST_F()63 pi.reset(new PersistentInteger(kBackingFileName, temp_dir_.path())); in TEST_F()
44 using chromeos_metrics::PersistentInteger;172 daily_active_use_.reset(new PersistentInteger("Platform.UseTime.PerDay", in Init()174 version_cumulative_active_use_.reset(new PersistentInteger( in Init()176 version_cumulative_cpu_use_.reset(new PersistentInteger( in Init()179 kernel_crash_interval_.reset(new PersistentInteger( in Init()181 unclean_shutdown_interval_.reset(new PersistentInteger( in Init()183 user_crash_interval_.reset(new PersistentInteger("Platform.UserCrashInterval", in Init()186 any_crashes_daily_count_.reset(new PersistentInteger( in Init()188 any_crashes_weekly_count_.reset(new PersistentInteger( in Init()190 user_crashes_daily_count_.reset(new PersistentInteger( in Init()[all …]
32 class PersistentInteger {34 PersistentInteger(const std::string& name, const base::FilePath& directory);37 virtual ~PersistentInteger();
28 class PersistentIntegerMock : public PersistentInteger {32 : PersistentInteger(name, directory) {} in PersistentIntegerMock()
60 session_id_(new chromeos_metrics::PersistentInteger( in SystemProfileCache()68 session_id_(new chromeos_metrics::PersistentInteger( in SystemProfileCache()
83 std::unique_ptr<chromeos_metrics::PersistentInteger> session_id_;
167 chromeos_metrics::PersistentInteger failed_upload_count_;