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

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

Remove TestApi annotation from PIC

The TestApi annotation in PropertyInvalidatedCache was added to expose
APIs to a CTS test, in preparation for making the APIs SystemApi.
However, the API review requested that the APIs be encapsulated in a
new class (IpcDataCache), rendering the PIC annotations superfluous.

The following IpcDataCache APIs are now TestApi:
 * forgetDisableLocal()
 * isDisabled()
 * getDisabledState()
 * disableInstance()
 * disableSystemWide()
 * setTestMode()

All TestApi annotations are removed from PropertyInvalidatedCache.
The APIs are visible through IpcDataCache, or are not required by CTS.
(Some APIs are used in unit testing; these are now marked
VisibleForTesting).

Flag: EXEMPT refactor
Bug: 385198070
Test: atest
 * FrameworksCoreTests:PropertyInvalidatedCacheTests
 * FrameworksCoreTests:IpcDataCacheTest
 * CtsOsTestCases:IpcDataCacheTest
Change-Id: I01c88359a784d8bcf788c046eb973cbee0392b24
parent 9bac2457
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment