Commit Graph

98834 Commits

Author SHA1 Message Date
Shu Chen
68de61497c Merge "Adds widget namespace." 2019-12-12 00:52:50 +00:00
Chavi Weingarten
b61168bcfe Merge "Allow Windows in Display Overlays" 2019-12-11 22:15:37 +00:00
TreeHugger Robot
da587dc1ac Merge "rename service name of DataLoaderManagerService" 2019-12-11 20:41:49 +00:00
Jay Aliomer
8da3a4ef59 Merge "Apply Dark theme changes when screen off only" 2019-12-11 20:29:49 +00:00
Donald Chai
85a037afb6 Fix misleading (copy-pasted?) error message
"openRawResource" usually isn't used for drawables.

Bug: 141873128
Change-Id: Ib00467d9df305262bfb9e256b6431705a8b9c907
Tested: N/A
2019-12-11 19:28:12 +00:00
Songchun Fan
7cc2074595 rename service name of DataLoaderManagerService
Test: builds
Change-Id: I72cedf7ef7ef86ed76134706139fe9c6a0556dce
2019-12-11 09:47:49 -08:00
TreeHugger Robot
fc9c8684b6 Merge "Put userId at the end of parcel" 2019-12-11 17:47:39 +00:00
Songchun Fan
adc860ec4c Merge "[incremental] base Incremental data loader service" 2019-12-11 17:47:11 +00:00
chaviw
8065f44020 Allow Windows in Display Overlays
Instead of display overlays being a SurfaceControl that can only have
child surfaces, it now is a WindowContainer that can have windows.
Specifically, windows with the type TYPE_ACCESSIBILITY_MAGNIFICATION_OVERLAY
will be placed in the display overlays layer

This is the first step to allow window magnification to use real windows
on the display.

Test: go/wm-smoke
Bug: 136250281

Change-Id: Idad98db7a85f68ba49557c0efb83b9a1be089609
2019-12-11 08:37:46 -08:00
Ruslan Tkhakokhov
72cb5517dd Merge "Pass excluded keys to the backup agent in onRestore" 2019-12-11 16:23:34 +00:00
TreeHugger Robot
1f0bc68a61 Merge "Fix Resources.ThemeKey.setTo() to fix memory leak." 2019-12-11 15:41:02 +00:00
TreeHugger Robot
e0f469255d Merge "Fix unexpected process restart of size compat mode" 2019-12-11 15:07:37 +00:00
Ruslan Tkhakokhov
d7f5fdb43b Pass excluded keys to the backup agent in onRestore
Pass the list of the keys excluded from KV restore to the backup agent to make it aware of what data has been removed (in case it has any application-level consequences) as well as the data that should be removed by the agent itself.

Bug: 145126096
Test: atest CtsBackupTestCases
Change-Id: I34415b149b379fb5bb67b0fbcd70ec9b9858acfe
2019-12-11 13:43:32 +00:00
Martijn Coenen
d5a091a424 Merge "Disable resetting OP_LEGACY_STORAGE" 2019-12-11 09:22:18 +00:00
Martijn Coenen
d9de49d0e6 Merge changes from topic "fuse_bindmount"
* changes:
  Deal with MediaProvider process dying.
  Don't delay starting sessions.
  Tell StorageSessionController when a user is stopping.
2019-12-11 07:51:37 +00:00
Shu Chen
36b19af9a5 Adds widget namespace.
Test: m -j.
Bug: 145528298
Change-Id: I6703f20dd1c13fb2eae5a930aae5835247c7a297
2019-12-11 11:44:51 +08:00
Marcus Hagerott
458bb5a793 Merge "Add methods for the contacts provider local account" 2019-12-11 02:20:33 +00:00
Rhed Jao
d85e2b467c Merge "Accessibility shortcut improvement (5/n)" 2019-12-11 02:17:29 +00:00
TreeHugger Robot
30fd66d53d Merge "Fix InstrumentationInfo publicSourceDir" 2019-12-11 01:46:40 +00:00
TreeHugger Robot
648fb1d9b0 Merge "Isolate mAnimationCompleteLock from mSync." 2019-12-11 00:49:19 +00:00
Winson
22bc5ce7c9 Fix InstrumentationInfo publicSourceDir
Assigned the wrong value, broke tests.

Bug: 145973535

Test: atest com.android.providers.media.scan.ModernMediaScannerTest#testPlaylistWpl succeeds
Change-Id: If222f52b3442cf95c7420056e6e059297584a9a1
2019-12-10 16:02:28 -08:00
TreeHugger Robot
5e68b5c709 Merge "Fix StatsEvent memory usage for pulled events" 2019-12-10 23:18:07 +00:00
Jordan Liu
88704f0b63 Merge "Do not modify passed in intent" 2019-12-10 23:13:15 +00:00
Jeff Sharkey
5f116e1db1 Apply Dark theme changes when screen off only
this change waits to apply ui changes after screen off
battery manager sends updates and continuously updates the ui mode

this change also applies external changes to ui configurations when
the mode is actually changed. this resolves some perfromance regression
issues

Fixes: 145694649
Fixes: 145161355
Fixes: 145776479

Test: atest UiModeManagerService
Change-Id: Ib769df4302d1c09166e2dc456b8ced35daa4d0b7
2019-12-10 22:35:18 +00:00
Automerger Merge Worker
0dc6acb831 Merge "Remove usage of IccCardConstants hidden APIs" am: b181ba61e2 am: b09b13cf38 am: 19f573a89b
Change-Id: Ic061e0647d108df6fd4837b89555febd5f85b48f
2019-12-10 22:26:47 +00:00
Automerger Merge Worker
19f573a89b Merge "Remove usage of IccCardConstants hidden APIs" am: b181ba61e2 am: b09b13cf38
Change-Id: I5a8974d8cd5d2af70996ec60eae924ddd435c840
2019-12-10 22:10:05 +00:00
Jayachandran Chinnakkannu
b09b13cf38 Merge "Remove usage of IccCardConstants hidden APIs"
am: b181ba61e2

Change-Id: Id24383c88deff304c7fbbc0a4b6f95019bf35283
2019-12-10 13:53:13 -08:00
Jayachandran Chinnakkannu
b181ba61e2 Merge "Remove usage of IccCardConstants hidden APIs" 2019-12-10 21:31:17 +00:00
Muhammad Qureshi
9e829804e1 Fix StatsEvent memory usage for pulled events
Add usePooledBuffer flag to the Builder which determines whether to reuse
the Buffer's byte array in StatsEvent or use a copy.
The build() function also calls release() on the Buffer
if a copy of the Buffer's byte array is passed to StatsEvent.

Also, for pushed events, release the StatsEvent object and consequently,
the Buffer in StatsLog.write(StatsEvent)

Fixes: 145026572
Fixes: 144126444
Test: bit FrameworksCoreTests:android.util.StatsEventTest
Change-Id: I1cdaf0027b69281cb7cb6f3c8ca923d03829b4dd
2019-12-10 13:27:38 -08:00
Anton Hansson
0bfdf24771 Merge "Hide integrity @IntDefs" 2019-12-10 20:26:54 +00:00
Automerger Merge Worker
e08205b609 Merge "track and report packages with undecorated remoteviews" into qt-qpr1-dev am: 1eb5828022
Change-Id: I24e5eeecdac3a9d72d73fb5bca9cdc7ec202f94c
2019-12-10 18:59:17 +00:00
Marcus Hagerott
66dc2a0ae8 Add methods for the contacts provider local account
Test: added CTS tests and built frameworks/base

Bug: 145690939

Change-Id: I09cdad87543053e58888e58de4d9ca88efb1792d
2019-12-10 09:50:45 -08:00
Anton Hansson
57b6af0417 Hide integrity @IntDefs
Typedefs aren't meant to be exposed in the stubs.

Bug: 145982314
Test: m
Change-Id: I95a5040e2a83c21b736c1b79cf0f492076dfe67a
2019-12-10 17:03:34 +00:00
Charles Munger
d8e9c3a887 Merge "Deprecate AlteredCharSequence" am: ea4916dac7 am: cb90a87d2e
am: ee6451246e

Change-Id: I990dc63ec32cd6ec7c6f783179a887dcac4c264d
2019-12-10 08:35:53 -08:00
TreeHugger Robot
323de93f9d Merge "Add toString() to Display.HDRCapabilities" 2019-12-10 16:34:15 +00:00
Charles Munger
ee6451246e Merge "Deprecate AlteredCharSequence" am: ea4916dac7
am: cb90a87d2e

Change-Id: I55863aae50a20c17b18e25bbfda318eb4efe09d3
2019-12-10 08:31:31 -08:00
Charles Munger
cb90a87d2e Merge "Deprecate AlteredCharSequence"
am: ea4916dac7

Change-Id: I40fe5070fe6475db5eb7f692b78b96e20c30b3d7
2019-12-10 08:27:10 -08:00
Charles Munger
ea4916dac7 Merge "Deprecate AlteredCharSequence" 2019-12-10 16:20:40 +00:00
Riddle Hsu
7f704b5248 Fix unexpected process restart of size compat mode
Since hierarchy merged, the difference between full configuration
and resolved override configuration is no longer the same as the
changes of override configuration. It should be more reliable to
explicitly get the change of the requested override configuration
in display.

Also ensure the popup hint window uses the same window type as
its anchor window, so it won't be occluded by activity.

Bug: 139656157
Test: SizeCompatTests#testResetNonVisibleActivity
Change-Id: I146ca1f55227012da58f5e4d6d85e42a41d1f7cb
2019-12-10 23:42:53 +08:00
Marin Shalamanov
04c6a4696b Add toString() to Display.HDRCapabilities
HdrCapablities in adb shell dumpsys display and in log messages appear
as android.view.Display$HdrCapabilities@49f9cd26. This change adds a
toString() method so HDR Capabilities are visualized in a nice way.

Test: adb shell dumpsys display
Change-Id: I0800ac4f615ca733d0901654184d884dd2b81752
2019-12-10 15:55:34 +01:00
TreeHugger Robot
5905bab2a4 Merge "Add android.annotation.Hide" 2019-12-10 14:52:14 +00:00
Roshan Pius
4f059fa56e Merge "InterfaceConfiguration: Don't use @hide Sets class" am: 2bf6bf92c6 am: e7182d5ba5
am: 3f3dd3b432

Change-Id: I2538620dc77f8bbde5d3589aef22a1675e25fb03
2019-12-10 06:09:15 -08:00
Roshan Pius
3f3dd3b432 Merge "InterfaceConfiguration: Don't use @hide Sets class" am: 2bf6bf92c6
am: e7182d5ba5

Change-Id: I8d21b1465b3a1f5a8b54e2c4fbc8a8d6a7a6a475
2019-12-10 06:04:32 -08:00
Roshan Pius
e7182d5ba5 Merge "InterfaceConfiguration: Don't use @hide Sets class"
am: 2bf6bf92c6

Change-Id: I7c2ec75299170bb0eb06e842b77f798eb060fed0
2019-12-10 05:58:53 -08:00
Treehugger Robot
2bf6bf92c6 Merge "InterfaceConfiguration: Don't use @hide Sets class" 2019-12-10 13:52:48 +00:00
Martijn Coenen
7391820c23 Deal with MediaProvider process dying.
There is no way to recover the FUSE filesystem once the MediaProvider
process has died; the kernel and userspace are out of sync at that
point, and libfuse will return -EIO on all requests.

Now when the process dies, tell StoragemanagerService that it needs to
reset all volumes for a user. Since we currently don't have a way to do
this for one user, just call through to H_RESET. This can be optimized
later. This also means we no longer need to keep a hold of the FUSE fd
in system_server; just pass it along directly when we start a session.

Bug: 137890172
Test: atest AdoptableHostTest
Change-Id: I2e6952ccece6bf2945b4ed81c70330b278554d13
2019-12-10 13:10:51 +01:00
Florian Mayer
9fd210224a Do not cache enabled tags in Java.
As we are elimating the Binder notifications for the sysprop update for
atrace, we no longer have a callback that can be used to read the new
value of the enabled tags.

@CritivalNative calls are very fast (25 ns) so the overhead of always
going to native code to read the tags is negligible.

Test: flash & boot
Test: adb shell su root atrace -t 10 ss
Test: adb shell su root atrace -t 10 wm

Bug: 137366208
Change-Id: I1a07fefd751ee28ca9a632a3d78a2925e8827b9c
2019-12-10 11:30:13 +00:00
Neil Fuller
7daba13fc0 Merge "Extend LocalLog to enable UTC timestamps" am: 9436134056 am: c74594a2e3
am: 746d69afa5

Change-Id: I167f79a33218c5b6593c165f9185663f965dcdcd
2019-12-10 01:54:49 -08:00
Neil Fuller
746d69afa5 Merge "Extend LocalLog to enable UTC timestamps" am: 9436134056
am: c74594a2e3

Change-Id: I417bf9581e3fbce9921e7893c1e63e6dd9a7b30b
2019-12-10 01:50:39 -08:00
Neil Fuller
c74594a2e3 Merge "Extend LocalLog to enable UTC timestamps"
am: 9436134056

Change-Id: I6fcdbaec178f3718b6a3c285f991d6d3c4ec5162
2019-12-10 01:46:13 -08:00