This CL was merged earlier (ag/13484966) and then reverted due to the
new behaviour breaking D2D transfers.
Merge it again with all changes being controlled by a flag (default
off), see UserBackupManagerService:getOperationTypeFromTransport in this
CL. View the diff between patchsets 1 and 2 to only see what's changed
between the earlier reverted code and the fixed version of it (i.e. with
the flag).
The flag can be changed via adb for now, we will set it to true by
default once other components are ready.
Bug: 174216309
Test: atest UserBackupManagerServiceTest
Change-Id: I7473c9b4f8d0c4d20155be76930279184ffb17c4
1. Parse the new config and prefer it over the old config specified by
android:fullBackupContent.
2. Add a new parameter to LocalTransportParameters to allow testing this
functionality in CTS.
Bug: 180522596
Test: atest FullBackupRulesHostSideTest
Change-Id: If18edfcdb2b9637d380251f48fdbc56cca6af3ec
Revert "Add CTS tests for CallStyle, including setting color hints."
Revert submission 13661867-call_style_colors
Reason for revert: Possible culprit of b/181087733
Reverted Changes:
I537191e7c:Add API to let apps color CallStyle notifications ...
I8bd00b8c2:Add CTS tests for CallStyle, including setting col...
Change-Id: Ia8699f6ef151000212606bea598a2abefa6b53a7
Revert "[sysuig] Integrate Monet color extraction to theme algorithm"
Revert submission 13554372-kahuna
Reason for revert: Colors on some wallpapers shifted, and Lucas found a couple big reasons why, would rather revert a revert tomorrow than fix forward today
Reverted Changes:
I2c3df9f71:[sysuig] Integrate Monet color extraction to theme...
I0fc60a134:[framework] Integrate new quantizers
Change-Id: I7eb8e4fde243bf62e8c750f88028db0a427560b5
With this API, it will allow to customize Device Owner warning messages
on a financed device.
Bug: 173826319
Bug: 158157476
Bug: 180521289
Test: m -j64
Test: Used a test device that is registered via ZT
Test: atest FrameworksServicesTests:com.android.server.devicepolicy.OwnersTest
Test: atest FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: I97a2e9c4626d3cd9d01b19ce1d233be5fbd7377a
This CL moves suggestExternalTime method from TimeDetector to
TimeManager. Eventual goal is to make suggestExternalTime a System
API. Ideally all time related system APIs live in android.app.time
hence the move.
Test: atest android.app.time
Change-Id: I464545e77fdf68c35c8a338bfe5ac8b7535bc3e6
Bug: 177079827
In order to better analysis the reasoning of activity restart locally.
Bug: 180387769
Test: presubmit
Change-Id: I624cbd02e6b6759e686f173ed0dc9b47195456e1
- WuQuantizer, CelebiQuantizer, and WSMeansQuantizer for implementing
Celebi's weighted squared means algorithm for color extraction
- CentroidProvider interface added; allows easy switching of what
colorspace/dimensions is used for clustering during color extraction
Test: Run, switch between a bunch of wallpapers,
switch dark/light theme, repeat ad nauseum. Unit
tests in separate Android Studio project hosting
the library pass, will add those to Android in separate CL.
Fixes: 180641035
Change-Id: I0fc60a134f411845dab9d6c7d8553907849d0f8a
Load default wallpaper based on device's CMF color in WallpaperManager.
Fall back to default if wallpaper for corresponding color is not
available.
Bug: 178161042
Test: Build ROM and manual test
Change-Id: I9da1254c64ab21e2a2cde53cc6f474a666eda1f6
It was inverting the "isSafe" value.
Test: atest DeviceOwnerTest#testDevicePolicySafetyCheckerIntegration_onOperationSafetyStateChanged
Bug: 173541467
Bug: 178494483
Change-Id: Ia2dd44e1ae413bc3358c419d2f59c82152aada57
App holding System Gallery role is allowed WRITE_MEDIA_* appops by
virtue of the role. This allows the System Gallery app write-access for
images and videos.
When app preferences are reset AppOpsService toggles the appops for
all apps. Only the appops mentioned in sOpDisableReset are not toggled.
Disable WRITE_MEDIA_* appops to reset, as the system gallery app loses
write access on images/videos.
Bug: 179133883
Test: atest android.scopedstorage.cts.device.ScopedStorageDeviceTest#testDisableOpResetForSystemGallery
Change-Id: I168221c641566a9f691ed7956c038206b114d802
- Introduce network capability which allows apps to access network
despite power restrictions.
- Update NPMS to allow apps network access only if they are in a
higher proc_state or they are hodling the new network capability.
Bug: 177641226
Test: atest ./services/tests/servicestests/src/com/android/server/net/NetworkPolicyManagerServiceTest.java
Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: Ia411ddef2e8cb77d371c22262d5b1e06a0396e29
Add setHttpProxyConfiguration to the public API, and use
ConnectivityManager APIs from ActivityThread (instead of hidden APIs) to
get/set the proxy for an app process.
The default proxy is now initialized with getDefaultProxy instead of
getProxyForNetwork(null); this should not make a difference, as nothing
should have called bindProcessToNetwork at that point yet.
Bug: 174436414
Test: m; device boots
Merged-In: Ifb516194ecde1567cea4b6806946091cdcf2f015
Change-Id: I06b797eeae54609aecdc0afe1df4e6c602a17a69