summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2022-10-18 14:43:02 -0600
committer Jeff Sharkey <jsharkey@android.com> 2022-10-25 12:18:53 -0600
commit40d6279e0db0599b2f8c042b9bfe0ff679dd73ee (patch)
treee35b56bdbb1932c49c3a5990021d59b8e012c0cb /libs/androidfw/StringPool.cpp
parent64379f2372d2deacf176c423758411101e7073ae (diff)
Utility to merge multiple Bundles.
As part of our work on the "modern" broadcast queue, we're likely going to need to collapse multiple existing broadcasts together, using various strategies based on the contents of the extras. Intents at a high level already have Intent.fillIn() to describe how to be blended together, and this new class describes how to blend a Bundle of extras together. Common examples are included in testMerge_PackageChanged() and testMerge_DropBox(). We have a strong preference to have the merging strategy described in a static way so that it can be applied without the risk of an open-ended callback while a critical lock is being held. This also aids the ability for remote processes to influence how their broadcasts are merged. Bug: 249160234 Test: atest FrameworksCoreTests:BundleMergerTest Change-Id: Ibe8623c02147afbb99826dccb063bd566d447642
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions