Home
last modified time | relevance | path

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

/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_smoke_test.cpp499 unique_fd screenshot_fd(OpenForWrite("/bugreports/tmp.png")); in TEST_F() local
502 EXPECT_NE(screenshot_fd.get(), -1); in TEST_F()
506 …binder->startBugreport(123, "com.dummy.package", std::move(bugreport_fd), std::move(screenshot_fd), in TEST_F()
534 unique_fd screenshot_fd(OpenForWrite("/data/local/tmp/tmp.png")); in TEST_F() local
537 EXPECT_NE(screenshot_fd.get(), -1); in TEST_F()
542 …binder->startBugreport(123, "com.dummy.package", std::move(bugreport_fd), std::move(screenshot_fd), in TEST_F()
564 unique_fd screenshot_fd(OpenForWrite("/data/local/tmp/tmp.png")); in TEST_F() local
565 unique_fd screenshot_fd2(dup(screenshot_fd.get())); in TEST_F()
569 EXPECT_NE(screenshot_fd.get(), -1); in TEST_F()
574 …binder->startBugreport(123, "com.dummy.package", std::move(bugreport_fd), std::move(screenshot_fd), in TEST_F()
/frameworks/native/cmds/dumpstate/
DDumpstateService.cpp90 android::base::unique_fd screenshot_fd, in startBugreport() argument
127 screenshot_fd, is_screenshot_requested); in startBugreport()
129 if (bugreport_fd.get() == -1 || (options->do_screenshot && screenshot_fd.get() == -1)) { in startBugreport()
DDumpstateService.h43 android::base::unique_fd screenshot_fd, int bugreport_mode,
Ddumpstate.h416 android::base::unique_fd screenshot_fd; member
432 const android::base::unique_fd& screenshot_fd,
Ddumpstate.cpp741 if (!ds.options_->do_screenshot || ds.options_->screenshot_fd.get() == -1 || in onReportApproved()
747 ds.options_->screenshot_fd.get()); in onReportApproved()
2627 screenshot_fd.reset(dup(screenshot_fd_in.get())); in Initialize()
3193 options_->screenshot_fd.get() != -1 && in CopyBugreportIfUserConsented()
3196 options_->screenshot_fd.get()); in CopyBugreportIfUserConsented()