Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit baf2a6df authored by Lee Shombert's avatar Lee Shombert
Browse files

Export PropertyInvalidatedCache SystemApis

Bug: 152453213
Tag: #refactor

Make selected APIs of PropertyInvalidatedCache system APIs for
mainline modules.  Only APIs that are believed to be needed by
Bluetooth have been exposed.  APIs used only by framework code have
not been exposed.

Export the following methods as system apis, visible only to mainline
modules.
    ctor public PropertyInvalidatedCache(int, @NonNull String, @NonNull String);
    method public boolean bypass(@NonNull Query);
    method public final void clear();
    method public final void disableLocal();
    method public final void invalidateCache();
    method public static void invalidateCache(@NonNull String);
    method public Result query(@NonNull Query);
    method public abstract Result recompute(@NonNull Query);

All APIs originally tagged @VisibleForTesting are now tagged @TestApi.

A CTS test for the class is in the next CL.

Test: atest PropertyInvalidatedCacheTests

Change-Id: Ica0f60d60aee0b2100cbb1ee93f00d7e0f4356ab
parent 53fef98a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment