Commit Graph

585584 Commits

Author SHA1 Message Date
Jean-Michel Trivi
65f9fd0123 Merge "Use the try catch to deal with the StaleDataException." am: 1fa847ad64 am: 15698dd32d am: 4b16237ab7 am: d715c91c2a am: 0a2fb51a9e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1433917

Change-Id: I018f9d6d2563625b57d748f253573998dac342d6
2020-09-30 00:36:35 +00:00
TreeHugger Robot
703427e52c Merge "Add TextShaper API" 2020-09-30 00:21:22 +00:00
Jean-Michel Trivi
0a2fb51a9e Merge "Use the try catch to deal with the StaleDataException." am: 1fa847ad64 am: 15698dd32d am: 4b16237ab7 am: d715c91c2a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1433917

Change-Id: I910b327fba414ae7ce3574acc078a0af40756b87
2020-09-30 00:07:29 +00:00
tim peng
d2cfc483cf Merge "Add animation when switching output device" 2020-09-30 00:04:08 +00:00
Nader Jawad
921b939218 Merge "Added RenderEffect property on RenderNode" 2020-09-29 23:44:06 +00:00
Maryam Karimzadehgan
73d2514ac8 Merge "Add log entries for the results for the ML model for the back gesture." 2020-09-29 23:42:41 +00:00
Jean-Michel Trivi
d715c91c2a Merge "Use the try catch to deal with the StaleDataException." am: 1fa847ad64 am: 15698dd32d am: 4b16237ab7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1433917

Change-Id: I3013edfee1921ce0dce503355d0c866e345e7538
2020-09-29 23:29:59 +00:00
Jean-Michel Trivi
4b16237ab7 Merge "Use the try catch to deal with the StaleDataException." am: 1fa847ad64 am: 15698dd32d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1433917

Change-Id: Ifc2e286c0d1fe184ad3cd21325424fc085bc79ce
2020-09-29 23:12:34 +00:00
TreeHugger Robot
c747e87751 Merge "Expose spell checker settings for testing." 2020-09-29 23:08:01 +00:00
TreeHugger Robot
7a690bc523 Merge "Fix sysui gradle build" 2020-09-29 23:03:05 +00:00
Jean-Michel Trivi
15698dd32d Merge "Use the try catch to deal with the StaleDataException." am: 1fa847ad64
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1433917

Change-Id: I7785f21c7d67e3bdfcef03615993836297a99b50
2020-09-29 22:50:26 +00:00
TreeHugger Robot
2501671b6c Merge "Avoid loading action icons when possible" 2020-09-29 22:43:52 +00:00
TreeHugger Robot
d2ac889528 Merge "Bitmap just needs to be software to extract color" 2020-09-29 22:43:46 +00:00
Rob Carr
c31ca6d90a Merge changes Icf1215c2,I3c8edef0,Icebd94f8
* changes:
  WindowState: Fix transaction usage in preserve surface
  WindowState/WindowStateAnimator: Remove cropping
  WindowStateAnimator/ViewRoot: Move surface resizing to client
2020-09-29 22:27:57 +00:00
Jean-Michel Trivi
1fa847ad64 Merge "Use the try catch to deal with the StaleDataException." 2020-09-29 22:08:40 +00:00
Darryl Johnson
5d5f71ee3e Merge "Add support to InputManagerService for listening to lid switch events." 2020-09-29 22:07:51 +00:00
David Su
f579dd52ca Merge "WifiManager: deprecate unused intent extras" 2020-09-29 21:54:59 +00:00
Maryam Karimzadehgan
f3d2859303 Add log entries for the results for the ML model for
the back gesture.

Test: manual
Bug: 150170384
Change-Id: Ic08bdea27fea085bcbb425dbac6682a88d29aa8a
2020-09-29 14:47:43 -07:00
Ashwini Oruganti
e813b7e800 Merge "Update docs to hint when to use FLAG_MUTABLE" 2020-09-29 21:42:26 +00:00
Nader Jawad
390d6e8586 Added RenderEffect property on RenderNode
Introduced RenderEffect API to handle consuming
SkImageFilter parameters on RenderNode objects
in order to support blur.

Updated SilkFX demo to use RenderEffect
APIs on RenderNode instead of BlurShader

Bug: 168549524
Test: Added tests to RenderNode CTS test cases
Change-Id: I5005a322a6d75438dd104e6915630264406cf771
2020-09-29 14:20:02 -07:00
Songchun Fan
0e3a1f8dae Merge "[incremental] fix x86 native lib extraction" 2020-09-29 21:12:02 +00:00
TreeHugger Robot
2577976f47 Merge "WindowStateAnimator: Remove mSurfaceResized" 2020-09-29 20:48:42 +00:00
Robert Snoeberger
0bc26bd994 Avoid loading action icons when possible
This is a similar memory optimization as applied to the app icon in
ag/12727673.

Bug: 160591450
Test: manual - heap_profile sysui while toggling play/pause.
Change-Id: I66fee5b8cb6b2abdbb7dadda09ccd1d4905c5706
2020-09-29 16:35:37 -04:00
Brad Ebinger
97fcb8f667 Merge "Clean up IMS based interfaces to use a push model instead of poll" am: aea9e7c143 am: a4f7362b23 am: d23e9a07b4 am: 7d08fa0c21 am: 3a0dd0df13
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1425374

Change-Id: Ia34d17b175f44c6d8549658b88475855e2c20545
2020-09-29 20:22:03 +00:00
Brad Ebinger
3a0dd0df13 Merge "Clean up IMS based interfaces to use a push model instead of poll" am: aea9e7c143 am: a4f7362b23 am: d23e9a07b4 am: 7d08fa0c21
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1425374

Change-Id: I59da40b85a9587d0da471021219a47695f01e6f0
2020-09-29 20:00:18 +00:00
Darryl L Johnson
5d0d141178 Add support to InputManagerService for listening to lid switch events.
This extracts the notifyLidSwitchChanged() method from
WindowManagerCallbacks to allow services other than window manager to
receive lid switch notifications

Test: Manual, register callback and trigger lid switch
Bug: 159401801

Change-Id: I8967d4f2f5a9c56c2b7e0822224d1c0ea0f1bc06
2020-09-29 13:00:05 -07:00
TreeHugger Robot
9501b4400f Merge "Fix null check in hasSigningCertificate" 2020-09-29 19:55:19 +00:00
Sally Yuen
ebd7cae4b9 Merge "Update global configuration's forceBoldText in ActivityTaskManagerService" 2020-09-29 19:54:59 +00:00
Jay Aliomer
5ac4e92912 Merge "Typo in the sand icon shape" 2020-09-29 19:48:44 +00:00
Robert Snoeberger
8b78af14ae Merge "Avoid loading app icon bitmap when possible" 2020-09-29 19:41:09 +00:00
Ashwini Oruganti
127e497477 Update docs to hint when to use FLAG_MUTABLE
Any PI that needs to be used with inline reply or bubbles needs to keep
their PI mutable. This change updates the messaging around FLAG_MUTABLE
docs and logs at the mutability flag check to add this use
case.

Bug: 160794467
Test: docs change, green builds
Change-Id: I641b35f92de5843be2fad3ef4621ffc9c6456899
2020-09-29 12:40:24 -07:00
Seigo Nonaka
f3a1915b2e Add TextShaper API
TextShaper API provides a primitive text layout result, e.g. what glyph is used etc.

Here is the new APIs and its description

- PositionedGlyphs
This is a native instance backed object that gives layout information to developers.

- GlyphStyle
The glyph style is an object that holds the parameters that will be used for drawing.
This object is a subset of the Paint object for avoiding creating lots of Paint copy.

- TextShaper#shapeText
This does a text shaping and gives TextShaper.Result. This is a native backed primitive
shaping API.

- StyledTextShaper
This is a text shaper for a styled text. This will be the top-level developer facing
API for shaping text.

Bug: 168048923
Test: atest FontTest TextShaperTest StyledTextShaperTest
Change-Id: I2e91d1ef8503b25b28efc94da7de7cad49c4c1a9
2020-09-29 12:38:28 -07:00
Brad Ebinger
7d08fa0c21 Merge "Clean up IMS based interfaces to use a push model instead of poll" am: aea9e7c143 am: a4f7362b23 am: d23e9a07b4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1425374

Change-Id: Id2c4938f091bc46bf903cefd0cc2aea90aead7e8
2020-09-29 19:32:24 +00:00
Robert Snoeberger
db5bf27c50 Bitmap just needs to be software to extract color
It doesn't need to be mutable.

Bug: 160591450
Test: manual - play Google Play Books, which uses URI for album art
Change-Id: I5ccd66432a51622f70e585f45641c3311d80f468
2020-09-29 15:01:36 -04:00
David Su
bdaca1c0c6 WifiManager: deprecate unused intent extras
These extras stopped being populated in R, but it was
too late to make API changes. Officially deprecate
them for S.

Bug: 158874479
Test: compiles
Change-Id: I3b5b898aab04371b8dd5e98f392e983f7809191d
2020-09-29 18:59:38 +00:00
Treehugger Robot
485fce2a10 [automerger skipped] Merge "Fix override setBufferCount" am: 378fa1b4c2 am: 736519b8c4 am: a097f75405 am: 684dcb20c6 -s ours am: 54a4d6429d -s ours
am skip reason: Change-Id I0908228a6791d90544fbf4cb21170931bd31a9db with SHA-1 58f3306d05 is in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1441702

Change-Id: I3e9bac2e86817d37ee0147fc387552d5f0f3d386
2020-09-29 18:58:06 +00:00
Brad Ebinger
d23e9a07b4 Merge "Clean up IMS based interfaces to use a push model instead of poll" am: aea9e7c143 am: a4f7362b23
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1425374

Change-Id: Ie394c55cde8fdd3b6adf7251d27832f4e0cdcb90
2020-09-29 18:56:53 +00:00
Sarah Chin
224f198ea7 Merge "Add read/write logic for SubscriptionPlan network types field" into rvc-d1-dev am: 76b7c3ccb4 am: 0b7a97fc80 am: 21814dffa4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12691247

Change-Id: I1f1aa9fd77bf770a8b3f04c8dde81a861062a381
2020-09-29 18:56:41 +00:00
Songchun Fan
2ff2a488e6 [incremental] fix x86 native lib extraction
Test: atest CtsIncrementalInstallHostTestCases
BUG: 168138334
Change-Id: I7b76afbd88cf3f38c1527c9c917ce179e0bde589
2020-09-29 18:53:18 +00:00
Brad Ebinger
a4f7362b23 Merge "Clean up IMS based interfaces to use a push model instead of poll" am: aea9e7c143
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1425374

Change-Id: Ide1ba89adfb70b5951da39517ee46f553acb2be3
2020-09-29 18:36:00 +00:00
Treehugger Robot
54a4d6429d [automerger skipped] Merge "Fix override setBufferCount" am: 378fa1b4c2 am: 736519b8c4 am: a097f75405 am: 684dcb20c6 -s ours
am skip reason: Change-Id I0908228a6791d90544fbf4cb21170931bd31a9db with SHA-1 58f3306d05 is in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1441702

Change-Id: I1fc666535e8012543149b4fda6e09946f54c3a63
2020-09-29 18:33:43 +00:00
Sarah Chin
21814dffa4 Merge "Add read/write logic for SubscriptionPlan network types field" into rvc-d1-dev am: 76b7c3ccb4 am: 0b7a97fc80
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12691247

Change-Id: Id4793cae167d349ee26e7f4e38f2eb0926045d6a
2020-09-29 18:32:55 +00:00
TreeHugger Robot
46c6d7279b Merge "Use InteractionJankMonitor to instrument CUJs of NotificationShade" 2020-09-29 18:31:17 +00:00
Robert Snoeberger
ecc8fa8557 Avoid loading app icon bitmap when possible
The layout file is using a CachingIconView for the app icon to avoid
reloading the icon when possible. But, the icon is being explicitly
loaded in MediaDataManager. This change eliminates this unnecessary
work.

Bug: 160591450
Test: manual - heap_profile sysui while toggling play/pause.
Change-Id: I5677e489229fc53f2d5cdc19023acf49a80c7caa
2020-09-29 14:16:00 -04:00
Sarah Chin
c8c572d113 Merge "Add read/write logic for SubscriptionPlan network types field" into rvc-d1-dev am: 76b7c3ccb4 am: 2ca98d2057 am: 41835f9549
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12691247

Change-Id: I27c0214a12f4511511baf3ec8344c91b09145c11
2020-09-29 18:00:12 +00:00
TreeHugger Robot
200b0658a5 Merge "Camera: Clarify SCALER_CROP_REGION usage" into rvc-dev am: 601e34fdd7 am: 794e42e566 am: 55582b0c4a am: 6e3a79abd9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12586676

Change-Id: I25729edb4d38b9adee87220d2e6298d3588a3d86
2020-09-29 17:59:57 +00:00
Treehugger Robot
684dcb20c6 Merge "Fix override setBufferCount" am: 378fa1b4c2 am: 736519b8c4 am: a097f75405
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1441702

Change-Id: Id72bda47c23650d9eb9edc305181455e03f5bb09
2020-09-29 17:59:44 +00:00
David Su
0d9b9dc2d0 [automerger skipped] Merge "LINK_CONFIGURATION_CHANGED broadcast: stop including EXTRA_LINK_PROPERTIES" into rvc-qpr-dev am: f535f0a044 am: e682f08235 -s ours
am skip reason: Change-Id I57c3db765283d8bbb410a0b790e27054c5ab561a with SHA-1 4e723cd3ed is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12483645

Change-Id: I4e47cb2288c959f70ce8262e3f6fbd79a871305f
2020-09-29 17:59:35 +00:00
guofei.xue
6695525f1b Use the try catch to deal with the StaleDataException.
When test the monkey, the mCursor is not null and the mCursor is Closed.
So that the mCursor cannot call the method of moveToPosition. Otherwise
it will lead to StaleDataException.

In order to prevent the android.database.StaleDataException and IllegalStateException,
use the try catch to deal with the StaleDataException and IllegalStateException.

Test:Perform the monkey test, and See if this android.database.StaleDataException will happen again when call the method of android.media.RingtoneManager#getRingtoneUri.

Bug: 169292273

Change-Id: I577c41c6a4b0025ce562a2dc495a6f28b103cfaa
2020-09-29 17:59:26 +00:00
TreeHugger Robot
67273879f9 Merge "Camera: Clarify SCALER_CROP_REGION usage" into rvc-dev am: 601e34fdd7 am: 794e42e566 am: dd0c3c1946 am: bf3a18c28e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12586676

Change-Id: I25973364e6649c6caf20d017493b15e936b1a2a0
2020-09-29 17:59:20 +00:00