For WebView to run in an sdk sandbox process, Context.getDataDir() needs
to return the shared sandbox storage. This CL sets the value in
LoadedApk while binding the application and modifies bindSdkSandbox API
to take in the client app package name to use in the path.
Test: Manual, check that WebView in sandbox tries to access sandbox
shared storage
Bug: 216284889
Change-Id: I1f8bb7e533d155050710866b80047ec849a98f35
Ethernet framework and service source code is going to be moved to
Connectivity mainline module, this CL contains below corresponding
changes to adapt the migration in f/b side:
1. Split out ethernet module-lib APIs to Connectivity module.
Add the ethernet resource filegroup to tiramisu-updatable-sources
filegroup as well, build them together. Also update the module-lib
and system api txt to reflect the APIs change. Remove the hidden
APIs which are moved to Connectivity module. This removal fixes the
api inconsistent issue with Tethering/apex/hidden/.
2. Remove EthernetService from SystemServer which will be registered
from ConnectivityServiceInitializer.
3. Replace the BackgroundThread class(imported from f/b/core/java)
with the one in the modules-utils-backgroundthread lib, which is
visible to Connectivity module.
Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I1956848d3248cc56e9841d221e5e4c160bed65a4
CTS-Coverage-Bug: 210528288
Bug: 223198536
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: Ib7066bcb37618c4e5d751cd0eb0bc1d265831427
Merged-In: Ib7066bcb37618c4e5d751cd0eb0bc1d265831427
Unfortuantely, it seems apps may be calling makeApplication() directly,
in which case returning the cached instance would break their expectation.
So let's not return the cached instance for external callers.
Test: Launch the kr.go.kdca.coov-19 app
Fix: 222737976
Change-Id: Idd7d2873d71edad182a7877117745fe021e18a80
CTS-Coverage-Bug: 210528288
Bug: 220741737
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: If2f83f35ff5418086d55fd9799b4586883d955eb
Merged-In: If2f83f35ff5418086d55fd9799b4586883d955eb
This CLs provides the getter API for DockBigOverlays. To better follow
API guidelines, it changes the naming from "*preferDockBigOverlays" to
"*shouldDockBigOverlays"
Bug: 220739302
Test: atest PinnedStackTests#testShouldDockBigOverlaysWithExpandedPip
Change-Id: I25c18531bc1f386b208ab7dde81a8b11a22d03a1
getCallerPackageName
CTS-Coverage-Bug: 210528288
Bug: 220127210
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: Ia7a0930881ca729f000ab38ca224906c8a319cec
Allow a list of configs to be sent for enterprise slice
Allow device owner to set enterprise slice config
Allow enterprise apn to be configured by profile owner
Bug: 217365439
Bug: 222723840
Test: ran CTS tests
Change-Id: I82c159843d0806cbfc5eea602fbd0304e7ff04ac
These TEST_MAPPING files indicate presubmit should run atest on trust
specific tests when files are changed in these directories.
Test: local atest
Bug: 221155933
Change-Id: I4f94bba968a68c9c95da30390a9bf2c8ca063b75
(cherry picked from commit 078f38606d)
It said "userId" in NotificationManagerService and PreferencesHelper, but in practice was expecting its input to be a uid based on how it's implemented. It also seems most users were already passing in uids (particularly NotificationBackend).
Bug: 220469720
Test: manual verification of settings page, NMSTest, PreferencesHelperTest
Change-Id: I432bdfc7d2986a0a1111c210fd89671524b3885c
Bug: 219609105
Create os/IpcDataCache as a subclass of PropertyInvalidatedCache. The
APIs in the new class are the SystemApi for mainline modules.
Note that IpcDataCache.invalidateCache(String) is a new system API,
relative to the list in PropertyInvalidateCache. The new API is
static, which is the most common use case for invalidateCache calls.
The corresponding CTS test is updated in the next review. However, it
is also cloned into the current unit test.
Test: * atest FrameworksCoreTests:PropertyInvalidatedCacheTests
* atest FrameworksCoreTests:IpcDataCacheTest
Change-Id: I83ce97a4154b9065e0686ee99a25c90f955366ff
This reverts commit 07f7f3ff5b.
Currently, Context#startActivityAsUser(Intent, UserHandle) has
already been a System API. This CL furthur makes
startActivityAsUser with ActivityOptions a System API.
This is enssential to launch an Activity to the secondary display
by setting launched display ID in ActivityOptions.
This also align the behavior of startActivity. We made all versions
of startActivity public APIs.
Bug: 199829817
Change-Id: I334c2a98483e709559162ad64f3b69cbd3b615d2
Test: atest AnnotationTest
CTS-Coverage-Bug: 222189824
Sometimes an activity may be destroyed prematurely before the splash
screen animation begins. We can skip transferring the SplashScreenView
to client if the activity is finishing.
Also add more logs for future investigation.
Bug: 221436171
Bug: 170134300
Test: SplashscreenParametrizedTest
atest ActivityRecordTests SplashscreenTests
Change-Id: I0b5cdbc3d7ff14ad71139c3c5282a0554c40ea1e
This reverts commit c5bf49474f.
Reason for revert: API council decided not to expose it.
Bug: 202145402
Test: atest ActivityOptionsTest
Change-Id: I19c84a905f929e87f20a8dd28a3f45caf3e29c2c
Bug: 219609105
Change the meaning of "module" in PropertyInvalidatedCache to be a
string rather than an integer. One piece of the unit test has been
removed because of this.
Lint uncovered several lock errors. These are corrected as well.
The corresponding CTS test is updated in the next review.
Test:
* atest FrameworksCoreTests:PropertyInvalidatedCacheTests
Change-Id: Iaaa55974df2d22fc052d5b4b4744384c012f070a
Originally, View was implementing onBackInvokedDisptacherOwner, but now
only Activity and Dialog and since back event are related to the
window, it makes sense to move them into the android.window package
This follow up comment at:
ag/c/platform/frameworks/base/+/16764116/comments/e131f3ef_e3e1d2e0
Test: atest BackNavigationTests
Bug: 221401221
Change-Id: Ia2f26162beb6a41b6e162b31e599e882f8bf7320