commit | 831730407f501a5cca04bd06ac354bfd16d02220 | [log] [tgz] |
---|---|---|
author | Gaurav Bhola <gauravbhola@google.com> | Mon Jun 21 09:36:20 2021 +0000 |
committer | Gaurav Bhola <gauravbhola@google.com> | Thu Aug 12 16:38:18 2021 +0000 |
tree | a56d9611f2cff3ded5f771ea8478e39b3670cdfa | |
parent | 53fef5c8fc50448d8c1933e1348f87ad1bc5eb29 [diff] |
Complete the implementation for preventing templated activities from displaying custom dialogs. - Made changes in isActivityDistractionOptimised() API. The template activity which is currently showing a dialog will be considered as non-distraction-optimised. - Skip considering Splash Screen window in WindowDumpParser as that will always appear for base activities in android S and above. - Add tests for this change in ActivityBlockingActivityTest. Bug: 190814908 Test: atest CarServiceTest, atest ActivityBlockingActivityTest Change-Id: I986983e5bc4275fc71310b471414f5d4e4cade4c Merged-In: I986983e5bc4275fc71310b471414f5d4e4cade4c
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.