[Android] Benchmark: Move screenshots to VLCBenchmark app

Duncan McNAMARA git at videolan.org
Tue May 5 15:47:08 CEST 2020


vlc-android | branch: master | Duncan McNAMARA <dcn.mcnamara at gmail.com> | Tue May  5 15:47:07 2020 +0200| [383335a2ee30f3e5018b799181f268ad1c86ef44] | committer: Geoffrey Métais

Benchmark: Move screenshots to VLCBenchmark app

As of Android 10, the MediaProjection API previously used to take screenshots
now requires user input to accept permission to take a screenshot at every
restart of the app, which happens for every test on vlc-android.
By using this API in a service in VLCBenchmark, the user is only asked
permission once, when the user starts the benchmark.

> https://code.videolan.org/videolan/vlc-android/commit/383335a2ee30f3e5018b799181f268ad1c86ef44
---

 application/vlc-android/build.gradle               |   2 +
 .../vlc/gui/video/benchmark/BenchActivity.kt       | 411 ++++++---------------
 2 files changed, 123 insertions(+), 290 deletions(-)

Diff:   https://code.videolan.org/videolan/vlc-android/commit/383335a2ee30f3e5018b799181f268ad1c86ef44


More information about the Android mailing list