diff options
author | Satakshi <satakshir@google.com> | 2019-10-23 17:31:07 -0700 |
---|---|---|
committer | Satakshi <satakshir@google.com> | 2019-11-18 16:06:08 -0800 |
commit | ce35ce9f083934e17ed4e32df63af8c18a9b92e0 (patch) | |
tree | 4eca4a30d7cf6084bb2a7a329ada4bdba5e0fb89 /tools/stats_log_api_gen/java_writer.cpp | |
parent | 3ea014ca6dd9edb556747ce3a989ca42060eafc7 (diff) |
Screenshot Notification Smart Action: AiAi and - Sys UI integration
Create a constant in ContentSuggestionsManager, which will
be used to pass a hardware bitmap to ContentSuggestionsService.
In the presence of this key in the request extras, we skip taking a
snapshot in ContentSuggestionsPerUserService.
Bitmap is extracted from reading this value from extras in
ContentSuggestionsService.
Create ScreenshotNotificationSmartActionsProvider, which is overridden
in GoogleSystemUI.
Calling AiAi is guarded by a device config flag created in cl/277143225.
(cherry picked from commit d2010f262862a7cd33edde539d9a1323a0d5e61d and c45d86fc1574c6466cc2d29e9b47dc82a29e20c6)
Test: Manually tested the code in this CL and corresponding change in SystemUIGoogle.
Took a screenshot and verified that AiAi gets invoked and the screenshot notification
shows smart actions.
Ran new tests added in this CL
'atest ScreenshotNotificationSmartActionsTest'
'atest ContentSuggestionsPerUserServiceTest'
Bug: 141634285
Change-Id: I439a4be9aac53fb02b566ae4d438afe3edf2b37a
Merged-In: I439a4be9aac53fb02b566ae4d438afe3edf2b37a
Diffstat (limited to 'tools/stats_log_api_gen/java_writer.cpp')
0 files changed, 0 insertions, 0 deletions