Home
last modified time | relevance | path

Searched refs:progress_ (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/cmds/dumpstate/
Dutils.cpp121 progress_ = progress; in Progress()
126 progress_(0), in Progress()
171 int32_t total = n_runs_ * average_max_ + progress_; in Save()
187 return progress_; in Get()
193 progress_ += delta_sec; in Inc()
194 if (progress_ > max_) { in Inc()
196 max_ = floor((float)progress_ * growth_factor_); in Inc()
214 dprintf(fd, "%sprogress: %d\n", pr, progress_); in Dump()
233 progress_ = std::move(progress); in SetProgress()
1078 if (progress_ == nullptr) { in UpdateProgress()
[all …]
Ddumpstate.h136 int32_t progress_; variable
314 std::unique_ptr<Progress> progress_; variable
Ddumpstate.cpp1478 printf("== Final progress (pid %d): %d/%d (estimated %d)\n", ds.pid_, ds.progress_->Get(), in dumpstate()
1479 ds.progress_->GetMax(), ds.progress_->GetInitialMax()); in dumpstate()
1970 ds.progress_.reset(new Progress(stats_path)); in run_main()
2071 "--ei", "android.intent.extra.MAX", std::to_string(ds.progress_->GetMax()), in run_main()
2287 "--ei", "android.intent.extra.MAX", std::to_string(ds.progress_->GetMax()), in run_main()
2321 MYLOGD("Final progress: %d/%d (estimated %d)\n", ds.progress_->Get(), ds.progress_->GetMax(), in run_main()
2322 ds.progress_->GetInitialMax()); in run_main()
2323 ds.progress_->Save(); in run_main()
DDumpstateService.cpp87 ds_.progress_->Dump(fd, " "); in dump()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp144 ds.progress_.reset(new Progress()); in SetUp()
174 ds.progress_.reset(new Progress(initial_max, progress, 1.2)); in SetProgress()
179 EXPECT_EQ(progress, ds.progress_->Get()) << "invalid progress"; in GetProgressMessage()
180 EXPECT_EQ(max, ds.progress_->GetMax()) << "invalid max"; in GetProgressMessage()