summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Achim Thesmann <achim@google.com> 2023-10-05 03:35:14 +0000
committer Achim Thesmann <achim@google.com> 2023-10-25 23:26:09 +0000
commit67d9c56f8de2d732643ae97f55a1c6543dc4837f (patch)
treed90fab710d5814fca8afeaf51c6c78415b4ba6da /api/api_test.go
parent6e7cf31239b5aec338ae34d15c585b63f93c7dc0 (diff)
Split checkBackgroundActivityStart
This creates 2 partial methods, to calculate the result for each brach (PI creator, PI sender) and one to orchestrate if they are called and which result to use. This enables logging the cases that might be affected by requiring explicit opt-in from the PI creator (in addition to the sender which is enforced since Android U). Implementation details: I intentionally tried to not refactor a lot as the change is already difficult (and dangerous) enough. There is lot of potential for optimization by using the fields of the new InternalState object which for now is only filled in the orgestration method. I split some fields that were shared between sender and creator branches, e.g. callerApp. Test: atest BackgroundActivityLaunchTest Bug: 306059525 Change-Id: I5e10e159b488812b054aee388766fa44bd853506
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions