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.cpp455 unique_fd screenshot_fd(OpenForWrite("/bugreports/tmp.png")); in TEST_F() local
458 EXPECT_NE(screenshot_fd.get(), -1); in TEST_F()
462 …binder->startBugreport(123, "com.dummy.package", std::move(bugreport_fd), std::move(screenshot_fd), in TEST_F()
490 unique_fd screenshot_fd(OpenForWrite("/data/local/tmp/tmp.png")); in TEST_F() local
493 EXPECT_NE(screenshot_fd.get(), -1); in TEST_F()
498 …binder->startBugreport(123, "com.dummy.package", std::move(bugreport_fd), std::move(screenshot_fd), in TEST_F()
520 unique_fd screenshot_fd(OpenForWrite("/data/local/tmp/tmp.png")); in TEST_F() local
521 unique_fd screenshot_fd2(dup(screenshot_fd.get())); in TEST_F()
525 EXPECT_NE(screenshot_fd.get(), -1); in TEST_F()
530 …binder->startBugreport(123, "com.dummy.package", std::move(bugreport_fd), std::move(screenshot_fd), in TEST_F()
/frameworks/native/cmds/dumpstate/
DDumpstateService.cpp85 android::base::unique_fd screenshot_fd, in startBugreport() argument
122 screenshot_fd, is_screenshot_requested); in startBugreport()
124 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.h392 android::base::unique_fd screenshot_fd; member
408 const android::base::unique_fd& screenshot_fd,
Ddumpstate.cpp690 if (!ds.options_->do_screenshot || ds.options_->screenshot_fd.get() == -1 || in onReportApproved()
696 ds.options_->screenshot_fd.get()); in onReportApproved()
2407 screenshot_fd.reset(dup(screenshot_fd_in.get())); in Initialize()
2914 options_->screenshot_fd.get() != -1 && in CopyBugreportIfUserConsented()
2917 options_->screenshot_fd.get()); in CopyBugreportIfUserConsented()