Commit Graph

20164 Commits

Author SHA1 Message Date
Rajeev Kumar
b21d30888b Merge "Add API to set device owner type for a managed device" into sc-dev 2021-02-25 00:21:51 +00:00
Ruslan Tkhakokhov
a2fdf3f5fb Get OperationType from transport
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
2021-02-24 23:21:21 +00:00
Ruslan Tkhakokhov
c3bf79a2cd Merge "Parse include / exclude config specified by dataExtractionRules" into sc-dev 2021-02-24 23:20:54 +00:00
James O'Leary
7edf52d602 Merge "Revert^2 "[framework] Integrate new quantizers"" into sc-dev 2021-02-24 21:59:47 +00:00
Ruslan Tkhakokhov
6751d29041 Parse include / exclude config specified by dataExtractionRules
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
2021-02-24 21:49:24 +00:00
Soonil Nagarkar
2409543ce8 Merge "Proposal: Reduce the number of IPCs in PendingIntent" into sc-dev 2021-02-24 21:48:46 +00:00
James O'Leary
9d3ad10eb9 Revert^2 "[framework] Integrate new quantizers"
96169052c4

Change-Id: Idefcf279b9fedeeaa29f75e705adfb60f0ad5c8a
2021-02-24 17:09:06 +00:00
Jeff DeCew
a785a58034 Add API to let apps color CallStyle notifications themselves.
Fixes: 180925557
Test: visual inspection
Test: atest NotificationTemplateTest
Change-Id: I5f580083f1de192985b4764b894730789c2c2583
2021-02-24 09:07:44 -05:00
Junyu Lai
1d57fc25ae Merge "Revert "Add API to let apps color CallStyle notifications themse..."" into sc-dev 2021-02-24 08:04:34 +00:00
Junyu Lai
04ae75a461 Revert "Add API to let apps color CallStyle notifications themse..."
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
2021-02-24 06:26:19 +00:00
Jeff DeCew
1423ab74d3 Merge "Add API to let apps color CallStyle notifications themselves." into sc-dev 2021-02-24 03:59:51 +00:00
Kevin Han
c03ec964c5 Merge "Register AppHibernationManager in service registry" am: 44183743e0 am: 0de60cd4e8 am: 2c842f3aa7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1572766

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3419fcaa184043d07c6e02579b6dec13d23f356f
2021-02-24 02:12:34 +00:00
Kevin Han
2c842f3aa7 Merge "Register AppHibernationManager in service registry" am: 44183743e0 am: 0de60cd4e8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1572766

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ied0817ca6d49f0861bdb929a6fca78a1d75cb729
2021-02-24 01:23:36 +00:00
Lucas Dupin
e36c4de103 Merge "Revert "[framework] Integrate new quantizers"" into sc-dev 2021-02-24 01:00:49 +00:00
James O'Leary
96169052c4 Revert "[framework] Integrate new quantizers"
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
2021-02-24 00:33:02 +00:00
Kevin Han
0de60cd4e8 Merge "Register AppHibernationManager in service registry" am: 44183743e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1572766

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibf8ac130fe7800af2d83b16f2ae90a7df5558c62
2021-02-24 00:32:44 +00:00
James O'Leary
c7d315947d Merge "[framework] Integrate new quantizers" into sc-dev 2021-02-23 20:20:39 +00:00
Salud Lemus
60ea32bec7 Add API to set device owner type for a managed device
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
2021-02-23 20:14:32 +00:00
Jeff DeCew
8019554274 Add API to let apps color CallStyle notifications themselves.
Fixes: 180925557
Test: visual inspection
Test: atest NotificationTemplateTest
Change-Id: I537191e7cafa54ee58260ea8912ded78e918ad79
2021-02-23 13:12:49 -05:00
Flavio Fiszman
fff84a262c Merge "Add Missed call People Tile" into sc-dev 2021-02-23 17:10:26 +00:00
Makoto Onuki
35c53e2a73 Merge "Throw more descriptive exceptions when service start isn't allowed." into sc-dev 2021-02-23 16:05:30 +00:00
TreeHugger Robot
25cc8e41e6 Merge "Disable resetting WRITE_MEDIA_IMAGES and WRITE_MEDIA_VIDEO appops" into sc-dev 2021-02-23 13:48:04 +00:00
Flavio Fiszman
592cb8d358 Add Missed call People Tile
Change-Id: I76904cff9f512525dbb2bf335409ff038287802f
Test: PeopleSpaceUtilsTest
Bug: 172576156
2021-02-23 12:54:15 +00:00
Sudheer Shanka
5d8fc4abae Merge "Add new network process capability." into sc-dev 2021-02-23 11:10:57 +00:00
Chris Ye
98580a2e82 Merge changes from topic "LightsManager" into sc-dev
* changes:
  Support input device lights manager feature in frameworks.
  Add SET_REPORT data output to hid commandline tool.
2021-02-23 08:19:13 +00:00
Louis Chang
878589db08 Merge "Log activity relaunch" into sc-dev 2021-02-23 05:58:33 +00:00
Kevin Han
44183743e0 Merge "Register AppHibernationManager in service registry" 2021-02-23 02:02:49 +00:00
Chris Ye
cbb480c25e Support input device lights manager feature in frameworks.
Add lights manager support to input frameworks.

Bug: 161633625
Test: atest LightsManagerTest, atest InputDeviceLightsManagerTest
Change-Id: Ic6c701cad84f277325583c77195592d96d9296b8
2021-02-22 16:06:35 -08:00
Soonil Nagarkar
7aa01124c4 Merge "Added attribution tag to note listener" into sc-dev 2021-02-22 17:25:24 +00:00
Mustafa Emre Acer
a547873fb0 Merge "Move suggestExternalTime to TimeManager" into sc-dev 2021-02-22 17:21:40 +00:00
Mustafa Acer
e4d26ca32c Move suggestExternalTime to TimeManager
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
2021-02-22 09:38:22 +00:00
Louis Chang
9ca11fe33c Log activity relaunch
In order to better analysis the reasoning of activity restart locally.

Bug: 180387769
Test: presubmit
Change-Id: I624cbd02e6b6759e686f173ed0dc9b47195456e1
2021-02-22 16:48:33 +08:00
James O'Leary
00f4c53592 [framework] Integrate new quantizers
- 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
2021-02-21 23:46:08 -05:00
TreeHugger Robot
caf9ae8b52 Merge "Fixed OneTimeSafetyChecker callback." into sc-dev 2021-02-22 04:18:27 +00:00
Xin Li
be473bf819 Merge ab/7061308 into stage.
Bug: 180401296
Merged-In: I4bf82035631ccff6d5a6144d6d9b1d203b076851
Change-Id: I1b5f3a672a55eaabba0f5389bab110b395553559
2021-02-21 09:39:53 -08:00
Ching-Sung Li
758c663e8f Load defeault wallpaper based on device's CMF color
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
2021-02-21 15:01:46 +00:00
TreeHugger Robot
04d9bf62ab Merge "Move launcher activities to the back when back pressed on root task" into sc-dev 2021-02-20 01:15:53 +00:00
Chloris Kuo
f8cc3c16d8 Merge "NAS Feedback API Change" into sc-dev 2021-02-19 22:41:40 +00:00
Makoto Onuki
0549b1f782 Throw more descriptive exceptions when service start isn't allowed.
Fix: 180518252
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: Ia38a159f9ededdc9885ce6b8dc61640c3af5ef72
2021-02-19 14:36:05 -08:00
Soonil Nagarkar
ab220fee70 Added attribution tag to note listener
Add attribution tag information for listeners on noteOps().

Bug: 180111317
Test: none
Change-Id: I39ae9af893b8c81b1d832c4c3dc876f16ffc301f
2021-02-19 13:17:59 -08:00
Felipe Leme
4239357fe1 Fixed OneTimeSafetyChecker callback.
It was inverting the "isSafe" value.

Test: atest DeviceOwnerTest#testDevicePolicySafetyCheckerIntegration_onOperationSafetyStateChanged

Bug: 173541467
Bug: 178494483

Change-Id: Ia2dd44e1ae413bc3358c419d2f59c82152aada57
2021-02-19 18:37:04 +00:00
Abhijeet Kaur
de862be6a8 Disable resetting WRITE_MEDIA_IMAGES and WRITE_MEDIA_VIDEO appops
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
2021-02-19 18:15:10 +00:00
Jeff DeCew
7f9a369d63 Merge changes from topic "phishing_templates" into sc-dev
* changes:
  Refactor the SmartReply classes
  Filter out RemoteInput actions when Phishing action is present
2021-02-19 18:06:33 +00:00
Jay Aliomer
3c1756bbef Merge "Revert^2 "Wallpaper Local color sampling"" into sc-dev 2021-02-19 17:07:45 +00:00
Sudheer Shanka
2c84695b71 Add new network process capability.
- 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
2021-02-19 04:09:10 -08:00
Treehugger Robot
8a1fc93c4d Merge "Use formal API for ActivityThread to set proxy" am: 394170f9cc am: b70ef11f73
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1512874

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifae677c9751d618617083696a89252f11bd222b4
2021-02-19 07:06:33 +00:00
Treehugger Robot
394170f9cc Merge "Use formal API for ActivityThread to set proxy" 2021-02-19 05:42:06 +00:00
Remi NGUYEN VAN
72887073f2 Use formal API for ActivityThread to set proxy
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
2021-02-19 13:53:56 +09:00
Chavi Weingarten
c14465c2bb Merge "Added public APIs to generate and validate a DisplayHash." into sc-dev 2021-02-19 01:47:14 +00:00
Jay Aliomer
4f172bf877 Revert^2 "Wallpaper Local color sampling"
Test: ImageWallpaperTest
Fixes: 173046221
3fa5fe0a1f

Change-Id: I8393abede247eb7b37695c3ce9adce13a3bcbce3
2021-02-18 20:45:57 -05:00