summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Azhara Assanova <azharaa@google.com> 2024-01-15 16:04:48 +0000
committer Azhara Assanova <azharaa@google.com> 2024-02-14 19:29:47 +0000
commitc6eaf1ca53a227eb3911949d1898531ea7ac6740 (patch)
tree8a41ffb63a6d62c02062097d9caaa0a9a74f3b4b /libs/hwui/FrameInfoVisualizer.cpp
parent99b8ecb57fcee7a694520132a2c61b0003930c7c (diff)
Add ComponentCaller APIs for Activity's new intents
With activities potentially receiving multiple intents at the same time, it is important to match intents to their callers correctly. Hence, this change overloads existing onNewIntent with a ComponentCaller - onNewIntent(Intent, ComponentCaller). To supplement the new overload, this CL adds these Activity APIs: - getCurrentCaller() - only works within onNewIntent(), should be used by those that don't override the new overload of onNewIntent. - setIntent(Intent, ComponentCaller) - to keep the new intent caller for future use. - getCaller() - to retrieve the caller associated with the intent from getIntent(). Finally, this change adds an Instrumentation API: callActivityOnNewIntent(Activity, Intent, ComponentCaller). Bug: 293467489 Test: atest CtsAndroidAppTestCases:android.app.cts.ShareIdentityTest Test: atest CtsAndroidAppTestCases:android.app.cts.ComponentCallerTest Test: atest CtsAppTestCases:android.app.cts.InstrumentationTest Change-Id: I6e2457171e910fa3d05430f62db8d735ce324f5a
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions