Commit Graph

104476 Commits

Author SHA1 Message Date
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
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
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
Daniel Colascione
74be2dd90c Maintain global list of caches; purge on low memory am: 8c239da8d5
Change-Id: I062a15bd482c720df3171e0ad5a9ecc37e931917
2020-05-18 23:56:25 +00:00
TreeHugger Robot
a2c7cadd52 Merge "Update deprecation note for Application Cache." into rvc-dev am: 6da69cadba
Change-Id: I5365c6afaf9268154579361bbccde82990a8447b
2020-05-18 23:41:45 +00:00
Darryl Johnson
f7f71df05c Merge "Make sure config change items are executed in the order dispatched." into rvc-dev am: 0d8822c94a
Change-Id: I2317fc9f603255b092f56253f7aaa3e277b69b14
2020-05-18 23:39:03 +00:00
Nicholas Ambur
6eb773f236 Merge "fix SoundTrigger.ModuleProperties equals" into rvc-dev am: f39409edaf
Change-Id: Idfe6c75f78e1fdc2f5a8457dc0c96552eba22d72
2020-05-18 23:38:25 +00:00
TreeHugger Robot
595a6687a6 Merge "Update documentation for ACTION_CLEAR_APP_CACHE" into rvc-dev am: 669b6a5987
Change-Id: I915aa3b52c4923e9711c2d1290762883dba3050a
2020-05-18 23:25:49 +00:00
TreeHugger Robot
8ced41c780 Merge "Fix for goat detection code" into rvc-dev am: 7588f0d7a0
Change-Id: I97d2a2008757aaa5c9eed65e0bf5c363cc915243
2020-05-18 23:13:03 +00:00
Winson Chiu
18e6262a5f Merge "Remove PlatformCompat dependency from getPackageArchiveInfo" into rvc-dev am: 605ec6e272
Change-Id: I54abc9bb6b0c9d3479d5cb1933825e3f70d3395d
2020-05-18 23:11:55 +00:00
Patrick Baumann
ce6252e5a4 Merge "Doc update re use of MATCH_UNINSTALLED flag" into rvc-dev 2020-05-18 21:31:02 +00:00
Collin Fijalkovich
acb2bba925 Merge changes from topic "dump-cacheinfo" into rvc-dev
* changes:
  Add cache debugging information to bugreports.
  Maintain global list of caches; purge on low memory
2020-05-18 20:52:43 +00:00
TreeHugger Robot
6da69cadba Merge "Update deprecation note for Application Cache." into rvc-dev 2020-05-18 19:14:39 +00:00
Torne (Richard Coles)
fc23be81bd Update deprecation note for Application Cache.
Update the deprecation note for WebSettings.setAppCacheEnabled and
related to mention the public blog post about the feature being removed.

Fixes: 156409857
Test: m offline-sdk-docs
Change-Id: I0481937d665f3f16b61b921aa19e306ba8bb16e0
2020-05-18 13:40:40 -04:00
Darryl Johnson
0d8822c94a Merge "Make sure config change items are executed in the order dispatched." into rvc-dev 2020-05-18 17:26:14 +00:00
Nicholas Ambur
f39409edaf Merge "fix SoundTrigger.ModuleProperties equals" into rvc-dev 2020-05-18 17:12:46 +00:00
Nicholas Ambur
ba749f87d4 fix SoundTrigger.ModuleProperties equals
Bug: 152354427
Test: atest SoundTriggerTest
Change-Id: I715ecb51e78bcb45f4b3384c0551297289fe30f9
2020-05-18 10:11:02 -07:00
TreeHugger Robot
669b6a5987 Merge "Update documentation for ACTION_CLEAR_APP_CACHE" into rvc-dev 2020-05-18 10:27:53 +00:00
shafik
75bb8caa55 Update documentation for ACTION_CLEAR_APP_CACHE
The actual cache clearing is not async anymore, so we can report the
status to the calling app. Here, we just change the documentation to
make the caller aware of the 3rd possible activity result: EIO.

This value is returned if an error happens while MediaProvider is
clearing the cache. In this case, we don't know how much of the cache
was deleted, if at all.

Test: build
Bug: 155290762
Change-Id: I3a04a9b5b6b07c6ec61e97a4cb0d3bc8b10b0370
2020-05-18 10:26:37 +00:00
TreeHugger Robot
7588f0d7a0 Merge "Fix for goat detection code" into rvc-dev 2020-05-16 01:41:30 +00:00
Winson Chiu
605ec6e272 Merge "Remove PlatformCompat dependency from getPackageArchiveInfo" into rvc-dev 2020-05-16 01:12:23 +00:00
TreeHugger Robot
5848402f98 Merge "Handle apps that upgrade to full conversations" into rvc-dev am: 01ae9d5c22
Change-Id: I5a72480ebece7480617c27a86174e95aad9c861b
2020-05-15 23:38:24 +00:00
TreeHugger Robot
01ae9d5c22 Merge "Handle apps that upgrade to full conversations" into rvc-dev 2020-05-15 23:35:06 +00:00
Patrick Baumann
5bbb8fe00a Doc update re use of MATCH_UNINSTALLED flag
This change updates the docs for the MATCH_UNINSTALLED flag to note that
without the QUERY_ALL_PACKAGES permission, uninstalled packages will not
be returned.

Bug: 149846504
Test: builds
Change-Id: Id0c5b7f29172bd334dc1b2a32ce1f4eb7b1f0bd3
2020-05-15 16:24:12 -07:00
Winson
7029b75f67 Remove PlatformCompat dependency from getPackageArchiveInfo
It requires a permission which we can't force apps to take to
maintain backwards compatibility. We also arguably cannot because
it leaks visibility, although only for debuggable apps/non-release
builds.

Instead, there's a new static method for getting the raw targetSdk
to gate against and the check is done manually, ignoring
enabled/disabled state. This will cause a mismatch between certain
apps and some system services like AppIntegrityManager, but the
effects should be minimal if we assume that most people ship
valid APKs. At worse the integrity check will pass an APK that
PM will fail, which doesn't break the feature.

Bug: 156356591
Bug: 156778241

Test: manual device boots

Change-Id: I877a5061476b86b9d63c34e75f16b38be8c3e1c2
2020-05-15 15:52:05 -07:00