In some networks, network validation may only get success
result for http probe but fail result for https probe.
For this kind of network, it may still work at some websites
or apps, but user didn't know about that. In order to fix this
issue, we will check if network has partial connectivity and
notify user to make a choice if they want to use this partial
connectivity or not.
Bug: 113450764
Test: 1. Build pass.
2. Fake partial connectivity case for testing.
3. atest FrameworksNetTests
4. atest NetworkStackTests
Change-Id: I69ed00ac4850904ff708c9fef22e148879a10e92
Per API council request, remove setForceDarkMode -> setForceDark to
align with other framework naming.
Bug: 120599879
Test: None
Change-Id: I3f4ed00303d7e4b7d0651a384324a8b265663290
The new SystemApi indicates whether user switching is currently allowed
or not. This API provides more detail than the already existing
UserManager#canSwitchUsers (now deprecated) by telling the user why
users cannot be switched via a flag that's returned.
Bug: 124883455
Test: atest android.server.pm.UserManagerTest#testGetUserSwitchability
Change-Id: Ib3ac2f063f3638a172fa339fd2330604b910c7f4
Add a listener which replies with an object containing one or many flags
as well as parsing methods. This should replace the previous listener,
but we need to keep the old one around for now because Google Play
services is reliant on it.
Bug: 126414261
Test: atest FrameworksCoreTests:DeviceConfigTest
Change-Id: Ie8d32eced077a8df17be824e94271bd6b15fae3d
Changes:
* Split setGlobalPrivateDNS to setGlobalPrivateDNSModeOpportunistic
and setGlobalPrivateDNSModeSpecifiedHost as the original method had a
potentially unused parameter.
* Annotated return value.
* Annotated with @WorkerThread the method that shouldn't be called on
the main thread.
Bug: 124301971
Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testPrivateDnsPolicy
Change-Id: Iace4de642bcf02ad6ee3a02804643890a5017d89
Followup from API council review:
* Rename Renderer to RenderProcess for consistency with existing APIs.
* Make WebViewRenderProcess constructor public.
* Document 5 second minimum interval between successive callbacks.
Bug: 124767616
Bug: 123629980
Test: atest 'CtsWebkitTestCases'
Change-Id: I4416a97e8bb449c4a14a3617ef72a49c92aa3a83