Commit Graph

7963 Commits

Author SHA1 Message Date
Svet Ganov
ed460aa186 Updating platform SDK version for R
* Finalize resources
  * Update appt/aapt2 constants
  * Update R and SDK constants
  * Fix a crashloop bug

Test: build + boot

bug:150281259

Change-Id: Ie56e12336cd1fcf347ac7164f6988b0c2da77c7d
2020-05-01 15:25:27 -07:00
Andrew Sapperstein
6b1e3188a3 Merge "Fix broken @see tags in public documentation." 2020-05-01 00:27:47 +00:00
Brad Ebinger
a58c022a3b Merge "Add clearAll method to RegistrantList for easier cleanup" into rvc-dev am: c4815d409c am: f5f8f67e7c am: e49de74ff1 am: 68eccb2013
Change-Id: If0b0bcbcc92548c7e554f5471d40260710b92e50
2020-04-30 20:28:38 +00:00
Brad Ebinger
f5f8f67e7c Merge "Add clearAll method to RegistrantList for easier cleanup" into rvc-dev am: c4815d409c
Change-Id: I9af83ebaaf358b3880293d30b2d19e0e9321d361
2020-04-30 20:09:31 +00:00
Brad Ebinger
c4815d409c Merge "Add clearAll method to RegistrantList for easier cleanup" into rvc-dev 2020-04-30 20:07:31 +00:00
Jeff Sharkey
4cd89d7d40 Merge "Update more Parcelables to send Strings UTF-8." into rvc-dev am: 1eb3fcfb33 am: e9214abdf3 am: 16844ca4e0 am: 4581e4d59d
Change-Id: I09c9c0251c909665eab4a676c85d28fad9d9b047
2020-04-30 00:41:34 +00:00
Jeff Sharkey
16844ca4e0 Merge "Update more Parcelables to send Strings UTF-8." into rvc-dev am: 1eb3fcfb33 am: e9214abdf3
Change-Id: Ib3930c412d0b3b0ddaf7c05ca51feed036dc337e
2020-04-30 00:27:10 +00:00
Jeff Sharkey
eff0a9dfa2 Merge "Update more Parcelables to send Strings UTF-8." into rvc-dev am: 1eb3fcfb33
Change-Id: I6a6ae5a7dd47c56d7081d7c58fa93cf2567d30f5
2020-04-30 00:06:36 +00:00
Jeff Sharkey
1eb3fcfb33 Merge "Update more Parcelables to send Strings UTF-8." into rvc-dev 2020-04-29 23:55:03 +00:00
Brad Ebinger
eb4355ae4e Add clearAll method to RegistrantList for easier cleanup
Bug: 155320231
Test: atest FrameworksTelephonyTests
Change-Id: I6f1896ae163e77cff30e89a5b01b41162fc58200
2020-04-29 15:19:52 -07:00
Treehugger Robot
f318caa9c2 Merge "API to get hardware variant (SKU)" am: c042e44813 am: edc94080d9 am: ddad10d8bd am: f1f7256263 am: 67c54e87c0
Change-Id: I3b6633364f8d62197ffe4c72276e72a936757d1a
2020-04-29 22:07:28 +00:00
Treehugger Robot
ddad10d8bd Merge "API to get hardware variant (SKU)" am: c042e44813 am: edc94080d9
Change-Id: I9e15b2c23fdaa934c5b39b7ca347e80d05d58384
2020-04-29 21:37:14 +00:00
Treehugger Robot
edc94080d9 Merge "API to get hardware variant (SKU)" am: c042e44813
Change-Id: I82d12a6808ab8b178d3aee75a99ebd9c8fc7189c
2020-04-29 21:32:17 +00:00
Treehugger Robot
c042e44813 Merge "API to get hardware variant (SKU)" 2020-04-29 21:29:37 +00:00
Jeff Sharkey
1639e6b8ee Update more Parcelables to send Strings UTF-8.
An earlier CL with benchmarks has shown that sending strings as UTF-8
is 50% faster for US-ASCII strings, and still 68% faster for complex
strings referencing higher Unicode planes.  (So an improvement in
both cases!)

Since code across the OS still makes heavy assumptions about Parcel
strings typically being UTF-16, we need to carefully migrate
Parcelables by hand, which is what this CLs begins doing.

Bug: 154436100
Test: manual
Change-Id: I9a675473e0ce3a4a5c5e305dd851b40bb1560e1c
2020-04-29 14:54:44 -06:00
Martijn Coenen
05d49deb6d Merge "Add buildExternalStorageAndroidObbDirs()." into rvc-dev am: 1ed01451ed am: 39d29f922e am: 4a6798c9a9 am: 35a7506d2d
Change-Id: I2b89c355c16f7e313b3a377f3b0280c90dc92cdc
2020-04-29 20:06:28 +00:00
Martijn Coenen
4a6798c9a9 Merge "Add buildExternalStorageAndroidObbDirs()." into rvc-dev am: 1ed01451ed am: 39d29f922e
Change-Id: I8b8d1e9bfd7091666d66c3458bbaa2eb97735d81
2020-04-29 19:29:10 +00:00
Martijn Coenen
afd0e4f4c1 Merge "Add buildExternalStorageAndroidObbDirs()." into rvc-dev am: 1ed01451ed
Change-Id: I828380d8c9a4b76f3402066f76c88314f4d8103b
2020-04-29 19:09:29 +00:00
Martijn Coenen
1ed01451ed Merge "Add buildExternalStorageAndroidObbDirs()." into rvc-dev 2020-04-29 18:53:13 +00:00
Yifan Hong
325bbcf799 Merge "Update cleanupAppliedPayload comment." into rvc-dev 2020-04-29 00:08:37 +00:00
Treehugger Robot
7d3142b404 Merge "Update cleanupAppliedPayload comment." am: 14c78c2a55 am: c451ad69d1 am: 57b618335b am: 10ec378f22 am: 0030fda0fa
Change-Id: I18f766213a1db602e127b90f835fa730e7132b6d
2020-04-28 22:33:35 +00:00
Treehugger Robot
57b618335b Merge "Update cleanupAppliedPayload comment." am: 14c78c2a55 am: c451ad69d1
Change-Id: Ic7a18d83aebb781aec2cc018d1225f0846d66fa7
2020-04-28 21:53:38 +00:00
Yifan Hong
524d0f5c28 Update cleanupAppliedPayload comment.
ServiceSpecificException might be thrown, but it is not
actionable by the caller. Hence hide the comment.

Fixes: 151156841
Test: none
Change-Id: I07836fe2c5cc361fa81f6fc24851ad2b0721591b
(cherry picked from commit d3abb6d385)
Merged-In: I07836fe2c5cc361fa81f6fc24851ad2b0721591b
2020-04-28 14:41:50 -07:00
Treehugger Robot
c451ad69d1 Merge "Update cleanupAppliedPayload comment." am: 14c78c2a55
Change-Id: I283fec0c9058d279b47f1c664005546eb8550ede
2020-04-28 21:33:02 +00:00
Treehugger Robot
14c78c2a55 Merge "Update cleanupAppliedPayload comment." 2020-04-28 21:16:24 +00:00
Andrew Sapperstein
e0624c7a40 Fix broken @see tags in public documentation.
These were previously being suppressed by doclava but with this change,
all failures are fixed and the suppression logic has been removed.

To fix the issues, there were a few possible changes made:
- broken reference to a public API (such as incorrect parameters): fixed
- unnecessary @link inside an @see tag: fixed
- @see referring to an @hide or @SystemApi: reference removed
- broken references to inner class constructors
 - worked around by fully qualifying the constructor

Bug: 6963924
Test: make doc-comment-check-docs
Change-Id: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
2020-04-28 12:37:15 -07:00
Yifan Hong
d3abb6d385 Update cleanupAppliedPayload comment.
ServiceSpecificException might be thrown, but it is not
actionable by the caller. Hence hide the comment.

Fixes: 151156841
Test: none
Change-Id: I07836fe2c5cc361fa81f6fc24851ad2b0721591b
2020-04-27 13:30:09 -07:00
Robin Lee
18556095b9 API to get hardware variant (SKU)
Bug: 151157621
Test: atest android.os.cts.BuildTest
Change-Id: I39b97f5ca3db25724bc50e7f0bbd177f6dc8cc02
2020-04-27 18:54:04 +00:00
Martijn Coenen
806a185ba5 Add buildExternalStorageAndroidObbDirs().
For use by DownloadManager.

Bug: 153504419
Test: atest CtsDownloadManagerInstaller
Change-Id: Ifd45ad779087fb5ba3d885d8e648bc24bc8656eb
2020-04-27 14:09:01 +02:00
TreeHugger Robot
460529f2e2 Merge "Migrate clients from Binder.waitForService to ServiceManager.waitForService" into rvc-dev am: 8f0b08f178 am: 7bb412a077 am: 2ebe45c967 am: afa3d17f23
Change-Id: Ia4a4b3ec7079f3e398f2f5027e0e43abc1a1271b
2020-04-24 22:04:12 +00:00
TreeHugger Robot
2ebe45c967 Merge "Migrate clients from Binder.waitForService to ServiceManager.waitForService" into rvc-dev am: 8f0b08f178 am: 7bb412a077
Change-Id: Ibed2c8ab7499e7a8bda2286397f61bb259e2acf4
2020-04-24 21:38:34 +00:00
TreeHugger Robot
8c952be985 Merge "Migrate clients from Binder.waitForService to ServiceManager.waitForService" into rvc-dev am: 8f0b08f178
Change-Id: I2f7f8018de645e17c2a937ce16cdcce5898ea011
2020-04-24 21:26:30 +00:00
TreeHugger Robot
8f0b08f178 Merge "Migrate clients from Binder.waitForService to ServiceManager.waitForService" into rvc-dev 2020-04-24 21:16:54 +00:00
TreeHugger Robot
33a592d35a Merge "Use waitForDeclaredService to get Lights HAL" into rvc-dev am: 137f875360 am: ced1535de3 am: e7500cfb90 am: 49e1a1c409
Change-Id: Ide4efc77c26df4f8ab98c03d9dba0d86550b8ca1
2020-04-24 18:14:43 +00:00
TreeHugger Robot
e7500cfb90 Merge "Use waitForDeclaredService to get Lights HAL" into rvc-dev am: 137f875360 am: ced1535de3
Change-Id: Ic92bca92748f82ac6db7168dff6322f1376c1e4c
2020-04-24 17:52:18 +00:00
TreeHugger Robot
02b98479c2 Merge "Use waitForDeclaredService to get Lights HAL" into rvc-dev am: 137f875360
Change-Id: Ic9b2c0ede17fbf8a38d49f31ab5ef19768438541
2020-04-24 17:36:53 +00:00
TreeHugger Robot
137f875360 Merge "Use waitForDeclaredService to get Lights HAL" into rvc-dev 2020-04-24 17:23:42 +00:00
Robin Lee
9e1181302a Use waitForDeclaredService to get Lights HAL
We cache the reference to the HAL and use a DeathRecipient to keep track
of whether it's still good.

Adds waitForService and waitForDeclaredService to the ServiceManager
Java implementation because they were missing.

Test: atest LightsManagerTest
Test: atest LightsServiceTest
Bug: 152509747
Bug: 154631113
Bug: 154627432
Bug: 154629168
Change-Id: Ife8471f3a7e47b48bb31015ddf40f1d7fef6240f
2020-04-24 16:12:27 +02:00
Paul Chang
53fcacdcad Merge "Send intent to let calling app show UI safely without interfering the bugreport/screenshot generation." into rvc-dev am: b43fb9b839 am: 447d74e378 am: 47ec3e7341 am: 3435c94a91
Change-Id: I12745ba141e320447ff60bd43f3e8a1af2f91654
2020-04-24 09:09:28 +00:00
Paul Chang
47ec3e7341 Merge "Send intent to let calling app show UI safely without interfering the bugreport/screenshot generation." into rvc-dev am: b43fb9b839 am: 447d74e378
Change-Id: I485592790a9957c24756f62c6643dfc722256008
2020-04-24 08:40:33 +00:00
Paul Chang
c99c9217be Merge "Send intent to let calling app show UI safely without interfering the bugreport/screenshot generation." into rvc-dev am: b43fb9b839
Change-Id: I7c9afc33a5e322d6c32f9975d980364b2b595cf0
2020-04-24 08:31:11 +00:00
Paul Chang
b43fb9b839 Merge "Send intent to let calling app show UI safely without interfering the bugreport/screenshot generation." into rvc-dev 2020-04-24 08:23:21 +00:00
Robin Lee
3124f5c44e Migrate clients from Binder.waitForService to ServiceManager.waitForService
Change-Id: I749203ba09b63dd4aafd6e7df9b87b3fd7955689
Test: ApexManagerTest # (and manually flash a device)
Fix: 154629168
2020-04-23 21:05:46 +00:00
fengjinlan
6c2adc82cc Add method in Handler to remove messages with equal object
Bug: 142293357
Test: atest AudioDeviceBrokerTest

Change-Id: Ibae80f5008df54f4ac8544abb4cc5863ea3db86d
Merged-In: Ibae80f5008df54f4ac8544abb4cc5863ea3db86d
Signed-off-by: fengjinlan <fengjinlan@xiaomi.com>
2020-04-23 11:20:43 -07:00
Paul Chang
6dcc047940 Send intent to let calling app show UI safely without interfering the bugreport/screenshot generation.
- Calling app needs the intent from platform to show UI safely without interfering the bugreport/screenshot generation.
- Currently IncidentCompanionService can only send the intent to app of personal profile when there is work profile.
- But calling app may be from work profile.
- So change to use BugreportManager to send the intent to calling app.

BUG: 153809412
Test: Flash, press bugreport shortcut and confirm calling app of work profile can receive the intent.
Change-Id: I45b2b7ab8e017ba93c1e71ad53f4aa3607af9106
2020-04-23 18:14:57 +08:00
Yurii Zubrytskyi
c7f6869cea Merge changes I227d8e0c,Ided4415a into rvc-dev am: f3d4495df9 am: c95191f0a1 am: 12179a8a1b am: 1f56e7a53f
Change-Id: I72a9424ec7a00767a804d9a456335f2e47689daf
2020-04-22 19:24:00 +00:00
Yurii Zubrytskyi
463ea96cc1 Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev am: 930f1d10bc am: 5899bac92e am: b8eb14b2b7 am: 3d7c09e846
Change-Id: I34b1d1a54a1c172dc1d514787e55c5d1e35c4880
2020-04-22 19:22:55 +00:00
Yurii Zubrytskyi
12179a8a1b Merge changes I227d8e0c,Ided4415a into rvc-dev am: f3d4495df9 am: c95191f0a1
Change-Id: Iea67b34619ce9e43b2dd43b98404bf08d410421e
2020-04-22 19:01:04 +00:00
Yurii Zubrytskyi
b8eb14b2b7 Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev am: 930f1d10bc am: 5899bac92e
Change-Id: I76abfe6251fbd50bd0f11a187363a2df786002b1
2020-04-22 19:00:45 +00:00
Yurii Zubrytskyi
1cfb5b2239 Merge changes I227d8e0c,Ided4415a into rvc-dev am: f3d4495df9
Change-Id: I690256bb6ee189803ed47beb0630218eb3fb0ff7
2020-04-22 18:43:14 +00:00