Commit Graph

109316 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
Antoan Angelov
daab92e1a9 Merge changes from topic "sharesheet_work_tab_1"
* changes:
  Fix tests for infrastructure for sharesheet work tab (part 1)
  Add infrastructure for sharesheet work tab (part 1)
2019-12-11 16:04:15 +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
arangelov
38a6fce59b Add infrastructure for sharesheet work tab (part 1)
This CL consists of the following changes:
- Create a ViewPager to show work and personal pages
- Create a custom WrapHeightViewPager to accommodate
the behaviour of the existing intent resolver
- Create PagerAdapters to use in the ViewPager for
both intent resolver and chooser
- Modify ResolverListController to work with userIds

Test: manually performed text and picture sharing on a 1-user device
Test: manually performed text and picture sharing on a device with
work profile on both profiles
Test: manually compared UX between a device with my changes and a
previous version of the share sheet
Test: atest com.android.internal.app.ResolverActivityTest
Test: atest com.android.internal.app.ChooserActivityTest
Test: atest com.android.internal.app.ResolverListControllerTest
Bug: 142537267
Bug: 142538125
Change-Id: I4487b86e2a7566a3e14b36d3e0eb13a30d00349c
2019-12-11 12:59:37 +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
Alexander Dorokhine
2b3dff4a40 Merge changes I6aaa0b56,I5bb9b8b4
* changes:
  Add a basic unit test and TEST_MAPPING for AndroidFuture.
  Fix completeExceptionally() wrapping in AndroidFuture.
2019-12-10 22:49:36 +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
Alexander Dorokhine
cbf4fb03b1 Add a basic unit test and TEST_MAPPING for AndroidFuture.
Test: presubmit
Bug: 145838772
Change-Id: I6aaa0b56ccfdfbcfd089a645d277ac24b55e2fe3
2019-12-10 13:36:23 -08:00
Jayachandran Chinnakkannu
b181ba61e2 Merge "Remove usage of IccCardConstants hidden APIs" 2019-12-10 21:31:17 +00:00
Alexander Dorokhine
7c2fdc44d2 Fix completeExceptionally() wrapping in AndroidFuture.
writeToParcel() called get(), which obtained the exception wrapped in ExecutionException.
ExecutionException is not handled by Parcel's exception parcelling mechanism, causing it
to throw out of completeExceptionally without sending any data, leading to hangs.

Bug: 145838772
Test: presubmit
Change-Id: I5bb9b8b441264195039c9a2abe6a617af4ec8316
2019-12-10 13:27:54 -08: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
Paul Mclean
ee13435bb2 Merge "Disable "use always" button in the UsbResoveActivity for USB capture device and non-record-permission apps." 2019-12-10 18:30:27 +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
Paul McLean
3a30e55be2 Disable "use always" button in the UsbResoveActivity for USB capture
device and non-record-permission apps.

Bug: 145857629
Test: install UsbAccess and UsbPersistentPermissionsTestApp,
connect USB audio capture device. Select the app to resolve to
notice that the "use always" checkbox is disabled.
Tested also after granting RECORD PERMISSION, "use always" is enabled.
Tested with non-audio USB device, "use always" is enabled.

Change-Id: I04eabaab3e36a5904e4447a0a7e0d40e169d8bee
2019-12-10 10:04:19 -07: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