summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Andy Wickham <awickham@google.com> 2025-01-31 12:45:58 -0800
committer Andy Wickham <awickham@google.com> 2025-02-06 21:42:56 +0000
commitdfcdb093c7452d24cbb334503927f76707bbe780 (patch)
tree72789ac4abe6cf9c53aa1be0f67e1bea0c9c12f6 /api/api.go
parent073700f2107345bcd922843fbb7ee168c0d407d4 (diff)
Adds a public Contextual Search invocation method.
- Adds the new startContextualSearch() method. - Makes ContextualSearchManager non-hidden to expose that method. - The above clas and method are behind FLAG_SELF_INVOCATION. - This method requires the caller to have a foreground activity. - A corresponding startContextualSearchForForegroundApp() method is added to the service, which is is non-oneway to propagate SecurityException for background calls. Demo with SupportApp: https://drive.google.com/file/d/1Il-jWGosepboB9462yjn_vGA8hzDXaR2/view?usp=drive_link&resourcekey=0-dvuGjbwlML7UOST3IjJuDw Bug: 368653769 Test: Build and flash, invoke with SupportApp Flag: android.app.contextualsearch.flags.self_invocation Change-Id: I296ce39cb6349e41dc39a20820e5e445860e5c8a
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions