Home
last modified time | relevance | path

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

/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_smoke_test.cpp444 unique_fd bugreport_fd(OpenForWrite("/bugreports/tmp.zip")); in TEST_F() local
447 EXPECT_NE(bugreport_fd.get(), -1); in TEST_F()
452 …ds_binder->startBugreport(123, "com.dummy.package", std::move(bugreport_fd), std::move(screenshot_… in TEST_F()
479 unique_fd bugreport_fd(OpenForWrite("/data/local/tmp/tmp.zip")); in TEST_F() local
482 EXPECT_NE(bugreport_fd.get(), -1); in TEST_F()
488 …ds_binder->startBugreport(123, "com.dummy.package", std::move(bugreport_fd), std::move(screenshot_… in TEST_F()
508 unique_fd bugreport_fd(OpenForWrite("/data/local/tmp/tmp.zip")); in TEST_F() local
509 unique_fd bugreport_fd2(dup(bugreport_fd.get())); in TEST_F()
513 EXPECT_NE(bugreport_fd.get(), -1); in TEST_F()
520 …ds_binder->startBugreport(123, "com.dummy.package", std::move(bugreport_fd), std::move(screenshot_… in TEST_F()
/frameworks/native/cmds/dumpstate/
DDumpstateService.cpp118 android::base::unique_fd bugreport_fd, in startBugreport() argument
155 options->Initialize(static_cast<Dumpstate::BugreportMode>(bugreport_mode), bugreport_fd, in startBugreport()
158 if (bugreport_fd.get() == -1 || (options->do_fb && screenshot_fd.get() == -1)) { in startBugreport()
197 std::string destination = ds_->options_->bugreport_fd.get() != -1 in dump()
198 ? StringPrintf("[fd:%d]", ds_->options_->bugreport_fd.get()) in dump()
DDumpstateService.h46 android::base::unique_fd bugreport_fd,
Ddumpstate.h366 android::base::unique_fd bugreport_fd; member
382 void Initialize(BugreportMode bugreport_mode, const android::base::unique_fd& bugreport_fd,
Ddumpstate.cpp2149 std::string destination = ds.options_->bugreport_fd.get() != -1 in PrepareToWriteToFile()
2150 ? StringPrintf("[fd:%d]", ds.options_->bugreport_fd.get()) in PrepareToWriteToFile()
2420 MYLOGI("fd: %d\n", options.bugreport_fd.get()); in LogDumpOptions()
2436 bugreport_fd.reset(dup(bugreport_fd_in.get())); in Initialize()
2492 if (bugreport_fd.get() != -1 && !do_zip_file) { in ValidateOptions()
2604 if (options_->bugreport_fd.get() != -1) { in RunInternal()
2783 if (options_->bugreport_fd.get() != -1) { in RunInternal()
2909 bool copy_succeeded = android::os::CopyFileToFd(path_, options_->bugreport_fd.get()); in CopyBugreportIfUserConsented()
2933 assert(options_->bugreport_fd.get() == -1); in ParseCommandlineAndRun()