Home
last modified time | relevance | path

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

/frameworks/native/cmds/dumpstate/
Dutils.cpp146 progress_ = progress; in Progress()
151 progress_(0), in Progress()
196 int32_t total = n_runs_ * average_max_ + progress_; in Save()
212 return progress_; in Get()
218 progress_ += delta; in Inc()
219 if (progress_ > max_) { in Inc()
221 max_ = floor((float)progress_ * growth_factor_); in Inc()
239 dprintf(fd, "%sprogress: %d\n", pr, progress_); in Dump()
258 progress_ = std::move(progress); in SetProgress()
1035 if (progress_ == nullptr) { in UpdateProgress()
[all …]
Ddumpstate.h132 int32_t progress_; variable
287 std::unique_ptr<Progress> progress_; variable
Ddumpstate.cpp1159 printf("== Final progress (pid %d): %d/%d (estimated %d)\n", ds.pid_, ds.progress_->Get(), in dumpstate()
1160 ds.progress_->GetMax(), ds.progress_->GetInitialMax()); in dumpstate()
1516 ds.progress_.reset(new Progress(stats_path)); in main()
1615 "--ei", "android.intent.extra.MAX", std::to_string(ds.progress_->GetMax()), in main()
1829 "--ei", "android.intent.extra.MAX", std::to_string(ds.progress_->GetMax()), in main()
1863 MYLOGD("Final progress: %d/%d (estimated %d)\n", ds.progress_->Get(), ds.progress_->GetMax(), in main()
1864 ds.progress_->GetInitialMax()); in main()
1865 ds.progress_->Save(); in main()
DDumpstateService.cpp85 ds_.progress_->Dump(fd, " "); in dump()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp142 ds.progress_.reset(new Progress()); in SetUp()
172 ds.progress_.reset(new Progress(initial_max, progress, 1.2)); in SetProgress()
177 EXPECT_EQ(progress, ds.progress_->Get()) << "invalid progress"; in GetProgressMessage()
178 EXPECT_EQ(max, ds.progress_->GetMax()) << "invalid max"; in GetProgressMessage()