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

Commit 0ee930ff authored by Lee Shombert's avatar Lee Shombert
Browse files

Enable IpcDataCache test mode for CTS

The API IpcDataCache.setCacheTestMode() lost its @TestApi annotation
in an earlier commit.  This change restores that annotation so the
method can be used in CTS.

Flag: EXEMPT test-only
Bug: 396173886
Test: atest
 * FrameworksCoreTests:PropertyInvalidatedCacheTests
 * FrameworksCoreTests:IpcDataCacheTest
 * CtsOsTestCases:IpcDataCacheTest
Change-Id: Ic4026e862d11a654f05eae12b2819d1532188b81
parent 10c3d590
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2497,6 +2497,7 @@ package android.os {
    method public static void invalidateCache(@NonNull String, @NonNull String);
    method public final boolean isDisabled();
    method @Nullable public Result query(@NonNull Query);
    method @FlaggedApi("android.os.ipc_data_cache_testmode_apis") public static void setCacheTestMode(boolean);
    method public static void setTestMode(boolean);
    field public static final String MODULE_BLUETOOTH = "bluetooth";
    field public static final String MODULE_SYSTEM = "system_server";
+1 −0
Original line number Diff line number Diff line
@@ -747,6 +747,7 @@ public class IpcDataCache<Query, Result> extends PropertyInvalidatedCache<Query,
     */
    @FlaggedApi(android.os.Flags.FLAG_IPC_DATA_CACHE_TESTMODE_APIS)
    @SystemApi(client=SystemApi.Client.MODULE_LIBRARIES)
    @TestApi
    public static void setCacheTestMode(boolean mode) {
        // Trunk-stable flagging requires that this API have a name different from the existing
        // setTestMode() API.  However, the functionality is identical.