Commit Graph

115740 Commits

Author SHA1 Message Date
Alex Johnston
0fc71e147b Merge "setAutoTimeRequired disabled on managed profile" into rvc-dev am: fa6cf17648
Change-Id: Iddd47cb5a4d46a1fb4f5809396db4a0efd47a458
2020-05-21 10:26:47 +00:00
Alex Johnston
fa6cf17648 Merge "setAutoTimeRequired disabled on managed profile" into rvc-dev 2020-05-21 10:08:51 +00:00
Hongwei Wang
a82f228bbb Merge "Ignores entering PiP animation on seamless rotation" into rvc-dev am: 047a550900
Change-Id: I107e3ca6803ae9e5fdfb261aa12a8354f15b2fb0
2020-05-21 03:16:49 +00:00
Hongwei Wang
047a550900 Merge "Ignores entering PiP animation on seamless rotation" into rvc-dev 2020-05-21 03:12:56 +00:00
Hongwei Wang
f4e4bab403 Ignores entering PiP animation on seamless rotation
- Added onFixedRotationStarted/onFixedRotationFinished callback in
  DisplayWindowListener
- onFixedRotationStarted shall be called before onTaskAppeared for PiP
- When onTaskAppeared is received in PipTaskOrganizer, we defer the
  entering PiP transition if fixed rotation is ongoing
- When onFixedRotationFinished is received in PipTaskOrganizer and the
  entering PiP transition is deferred, schedule an immediate
  transition to PiP to make sure all the expected callbacks from
  PipTaskOrganizer are still being sent

Video: http://go/recall/-/aaaaaabFQoRHlzixHdtY/bb8HjJvMZKtpN8YTPKZXmj
Bug: 153861223
Test: manually enter PiP from Play Movies / YT fullscreen
Test: atest ActivityRecordTests \
            RecentsAnimationControllerTest \
            ActivityTaskManagerServiceTests \
            PinnedStackTests
Change-Id: I0dea905d610e2387af56b611be5f93518cc9a153
2020-05-20 17:34:17 -07:00
TreeHugger Robot
da7bf78b7f Merge "camera2: Add some more docs to getConcurrentCameraIds" into rvc-dev am: d220792d6b
Change-Id: I5a4b11ff848b832f03d91bdc971b0f9e8cdf0d74
2020-05-21 00:18:21 +00:00
TreeHugger Robot
d220792d6b Merge "camera2: Add some more docs to getConcurrentCameraIds" into rvc-dev 2020-05-21 00:15:00 +00:00
TreeHugger Robot
9481bbbfd6 Merge "Maintain compatibility by deleting target directory before renaming into it." into rvc-dev am: 5c77ec2e12
Change-Id: If013b8d953efa837a041b9f6cfb72f57cfbe8559
2020-05-20 23:22:38 +00:00
TreeHugger Robot
5c77ec2e12 Merge "Maintain compatibility by deleting target directory before renaming into it." into rvc-dev 2020-05-20 23:20:42 +00:00
TreeHugger Robot
7bb534dcf3 Merge "Properly keep compatibility with openRead() during a write." into rvc-dev am: beac47b12e
Change-Id: I1be214813470314cfbecb81e63d9fa64eb6f8b0f
2020-05-20 23:05:39 +00:00
TreeHugger Robot
beac47b12e Merge "Properly keep compatibility with openRead() during a write." into rvc-dev 2020-05-20 22:46:01 +00:00
Jayant Chowdhary
9c8fe18534 camera2: Add some more docs to getConcurrentCameraIds
- specifying the order of camera open and session configuration.
- explaining the use of CONTROL_ZOOM_RATIO with concurrent operation of cameras.

Bug: 151891611

Test: make doc-comment-check-docs

Change-Id: I3ee3f114f7295570aa6af5dbe35bb32db555811b
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-05-20 15:43:47 -07:00
Hai Zhang
30afab690e Properly keep compatibility with openRead() during a write.
Bug: 157092639
Test: atest AppIdleHistoryTests#testFilesCreation
Change-Id: I7d6808139aa41b25715293207b8ad42f9f42ef65
2020-05-20 14:15:12 -07:00
Hai Zhang
cf2ee87fd4 Maintain compatibility by deleting target directory before renaming into it.
The target shouldn't be a directory, but if it is, it would be
deleted (as long as it's empty). This became some kind of API and we
need to remain compatible with it.

Bug: 151959443
Test: Reboot and ensure ShortcutService can persist its state
Change-Id: I11a80cd4252128b025912b7aab86b113935e549a
Merged-In: I11a80cd4252128b025912b7aab86b113935e549a
2020-05-20 12:08:41 -07:00
TreeHugger Robot
44f514ed2a Merge "Fix talkback for switch on work in ResolverActivity" into rvc-dev am: 606980b356
Change-Id: Id61ebebb3b865fc2407d8b91df7756c158bb4fb8
2020-05-20 18:05:23 +00:00
TreeHugger Robot
606980b356 Merge "Fix talkback for switch on work in ResolverActivity" into rvc-dev 2020-05-20 17:55:54 +00:00
TreeHugger Robot
2bd5168c35 Merge "Reconfigure Scoped Storage experiment: force ScSt on list of apps" into rvc-dev am: 5a1dc47c34
Change-Id: I9923bda02bc17338389626406d1af3d74982a95f
2020-05-20 16:15:15 +00:00
TreeHugger Robot
5a1dc47c34 Merge "Reconfigure Scoped Storage experiment: force ScSt on list of apps" into rvc-dev 2020-05-20 16:14:27 +00:00
Tiger Huang
9fd3d0aacd Merge "Dispatch the requested visibility if the client has the control" into rvc-dev am: 090ee6ff39
Change-Id: Id9143d8412ff71720e72630dcf6a5f70d31654b1
2020-05-20 14:38:02 +00:00
Tiger Huang
090ee6ff39 Merge "Dispatch the requested visibility if the client has the control" into rvc-dev 2020-05-20 14:36:30 +00:00
Kholoud Mohamed
77bc0f15e3 Fix talkback for switch on work in ResolverActivity
Set the focus to the work tab when switch on
work profile is clicked.

Fixes: 152014143
Test: Manually tested the bug no longer happens
Change-Id: Iba72f238cdaf564256648327d12a54c6227dd23b
2020-05-20 15:29:07 +01:00
Alex Johnston
67623cf556 setAutoTimeRequired disabled on managed profile
* A security exception should be thrown when
  setAutoTimeRequired is called on a managed profile
* Update javadoc

Bug: 156620695
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetAutoTimeRequired
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testSetAutoTimeRequired
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSetAutoTimeRequired
Change-Id: Ifb53c218947f62aa446aa607d3f4eee354586395
2020-05-20 12:50:04 +01:00
shafik
3acc77cc7b Reconfigure Scoped Storage experiment: force ScSt on list of apps
Add a DeviceConfig feature that denotes a list of apps we want to force
into scoped storage. This would allow us to test these apps behaviours
under scoped storage at scale.

Also add the feature to StorageManagerService#dump.

Test: manual:
$ adb shell device_config put storage_native_boot forced_scoped_storage_whitelist <pkg>
$ adb reboot
$ adb shell dumpsys appops --package <pkg> # observe LEGACY_STORAGE
mode=ignored
Test: adb shell dumpsys mount
Bug: 151735608

Change-Id: I6a43e987ebf8d14fb64103a74bafde28f5863ae2
2020-05-20 12:37:24 +01:00
TreeHugger Robot
990a07462b Merge "Don't delete the new file in openRead()." into rvc-dev am: c74a76863b
Change-Id: Ibf21e027df7db5c2cfd37ac7f19a1ba1383cc531
2020-05-20 08:03:12 +00:00
TreeHugger Robot
c74a76863b Merge "Don't delete the new file in openRead()." into rvc-dev 2020-05-20 07:39:29 +00:00
TreeHugger Robot
c82858208b Merge "webkit: Update documentation for onJsConfirm, onJsPrompt callbacks" into rvc-dev am: a0b41154fe
Change-Id: I0168c5111cd2369d16a3af12ede3ee93a11b7845
2020-05-20 05:47:46 +00:00
TreeHugger Robot
a0b41154fe Merge "webkit: Update documentation for onJsConfirm, onJsPrompt callbacks" into rvc-dev 2020-05-20 05:44:33 +00:00
Hai Zhang
25adf3c471 Don't delete the new file in openRead().
Although it may seems a left-over from a previous interrupted write,
actually there are callers who call startWrite(), openRead() and then
finishWrite(), and this was okay in the previous implementation, so we
have to keep supporting it.

The new file is virtually ignored in the new implementation, and we
have no good way to know if it's actually a left-over or one that's
being written, so simply leaving it there is also okay.

Fixes: 157092639
Test: atest AppIdleHistoryTests#testFilesCreation
Change-Id: I4dc7fde99d2b8e04356f082a6e6ad61c2835022e
2020-05-19 20:35:51 -07:00
Julian Odell
9754281c11 Merge "Flush buffered data when session connects. Typically this data would have been flushed at the end of the first draw and there would otherwise be an extended delay before the data would be sent to the service." into rvc-dev am: 4946555a8e
Change-Id: I5758c7e67fd8a1ec8faea826f5c9fae81a25877e
2020-05-19 22:25:14 +00:00
Julian Odell
4946555a8e Merge "Flush buffered data when session connects. Typically this data would have been flushed at the end of the first draw and there would otherwise be an extended delay before the data would be sent to the service." into rvc-dev 2020-05-19 22:22:30 +00:00
Changwan Ryu
dd4f03d419 webkit: Update documentation for onJsConfirm, onJsPrompt callbacks
Fix documentation to clearly indicate that the default behavior is to
show WebView's own default dialog, and also describing clearly default
dialog behavior and how to customize it.

Note that onJsBeforeUnload is not updated at the moment as I could not
find a way to reproduce it.

Bug: 154014645
Test: m -j offline-sdk-docs seems not broken

Change-Id: I5ee09ea35340eb8d17353eda1786dcebcff4a29e
2020-05-19 14:30:44 -07:00
Julian Odell
ef928f8a11 Flush buffered data when session connects.
Typically this data would have been flushed at the end of the
   first draw and there would otherwise be an extended delay
   before the data would be sent to the service.

Test: make -j
Test: Manually start WhatsApp - check for lost events
Test: atest CtsContentCaptureServiceTestCases

Bug: 154777879
Change-Id: Ia0a97e24ffcc1c189d5d0cd6b8888678fa48968e
2020-05-19 12:30:57 -07:00
TreeHugger Robot
863059a635 Merge "Fix parsing sCachedPackageReadCount" into rvc-dev am: db48450e84
Change-Id: Ib39e3957fcd62b92ba9fbd3d8b511b30573d8028
2020-05-19 19:03:58 +00:00
TreeHugger Robot
db48450e84 Merge "Fix parsing sCachedPackageReadCount" into rvc-dev 2020-05-19 18:57:33 +00:00
TreeHugger Robot
60b5082204 Merge "Carry over bugfixes from MediaProvider." into rvc-dev am: f6f2273cb0
Change-Id: I8f39b08f737044bae3ff6b26504c969d1b291564
2020-05-19 17:35:40 +00:00
TreeHugger Robot
e0768603ea Merge "fix RuntimeException when inflating default layout for AdapterView-based widgets" into rvc-dev am: 470910085b
Change-Id: I3aa824beb72ea621b1c9ac55cf56a73bb1c0c602
2020-05-19 17:34:57 +00:00
TreeHugger Robot
f6f2273cb0 Merge "Carry over bugfixes from MediaProvider." into rvc-dev 2020-05-19 17:22:25 +00:00
TreeHugger Robot
470910085b Merge "fix RuntimeException when inflating default layout for AdapterView-based widgets" into rvc-dev 2020-05-19 17:13:04 +00:00
Winson
46220780ba Fix parsing sCachedPackageReadCount
This was moved to PackageCacher, but the old and unused counter
was not removed.

Bug: 154310064

Test: manual device reboots and logs cached count >0

Change-Id: I32fdb4b8fccd281fe61c64f231cb0ba154934679
2020-05-19 09:37:36 -07:00
Jeff Sharkey
0fd3e39760 Carry over bugfixes from MediaProvider.
A few months ago MediaProvider forked SQLiteQueryBuilder and we
fixed bugs in how the new insert(), update(), and delete() methods
were executed, but those fixes never made their way back upstream.

This CL is a clean cherry-pick of existing logic.

Bug: 155149941
Test: atest android.database.sqlite.cts.SQLiteQueryBuilderTest
Change-Id: I00d2ee88539b12d27a2ed99fff0546d1e3543b0e
2020-05-19 09:37:13 -06:00
Tiger Huang
2ab590a4b8 Dispatch the requested visibility if the client has the control
Otherwise, we would think its visibility needs to be cleared.

This CL:
- reverts parts of eb5a5920b7,
- prevents sending redundant MSG_DISPATCH_SYSTEM_UI_VISIBILITY, and
- cancels clearing visibility if a new reversed visibility is set.

Fix: 156994866
Test: atest --iterations 100 LayoutTests#testAddingImmersiveWindow
      atest WindowInsetsControllerTests InsetsAnimationControlImplTest
Change-Id: I8b8b7541523c0a94daf336f3be415aa5fa3f33da
2020-05-19 22:07:04 +08:00
TreeHugger Robot
37f0ad1b43 Merge "Change AtomicFile to use rename-into-place." into rvc-dev am: 0d23267a9c
Change-Id: I1235f345fc1709526eedda154696f7cd0b14fc56
2020-05-19 06:57:17 +00:00
TreeHugger Robot
0d23267a9c Merge "Change AtomicFile to use rename-into-place." into rvc-dev 2020-05-19 06:52:52 +00:00
TreeHugger Robot
c2478e86d3 Merge "Report resizeTask failure as boolean result" into rvc-dev am: 58657c7c10
Change-Id: I08add5762b38e36091f775fb22ade1c28bfcb00b
2020-05-19 01:57:40 +00:00
TreeHugger Robot
58657c7c10 Merge "Report resizeTask failure as boolean result" into rvc-dev 2020-05-19 01:39:54 +00:00
Hai Zhang
b1a7706716 Change AtomicFile to use rename-into-place.
The previous implementation of backing up beforehand doesn't handle
the case where the file is created for the first time, and might leave
a corrupted file in case of failure.

This new implementation creates a new file for writing data into, and
renames it into the place of the original file after writing
finished.

Fixes: 151959443
Test: atest android.util.AtomicFileTest
Change-Id: I5c4c438526a2aecdd2af18f71e16b41a05817c61
Merged-In: I5c4c438526a2aecdd2af18f71e16b41a05817c61
2020-05-19 00:27:32 +00:00
Pinyao Ting
5cb48cbc0d fix RuntimeException when inflating default layout for AdapterView-based widgets
Bug: 151901506
Test: manual
Change-Id: I71068b7d13783f658c02cc76ec50f40319e68160
2020-05-18 17:06:56 -07:00
Mike Digman
b4030209f3 Merge "Add pinned target indicator to Sharesheet, update visuals" into rvc-dev am: aa96eb5733
Change-Id: Ib57e88833a78e28ccb1783d9fc227afc008e4dea
2020-05-19 00:03:16 +00:00
Patrick Baumann
c2a1f01800 Merge "Doc update re use of MATCH_UNINSTALLED flag" into rvc-dev am: ce6252e5a4
Change-Id: I6226b10e8ae3037decf6ddc883bc56c5bf87071a
2020-05-18 23:58:00 +00:00
Collin Fijalkovich
aa1c667e4f Merge changes from topic "dump-cacheinfo" into rvc-dev am: acb2bba925
Change-Id: Iec363450741936bc3d8ec0f99c597fb5373b5b9c
2020-05-18 23:56:28 +00:00