Commit Graph

9003 Commits

Author SHA1 Message Date
Michel Comin Escude
50d2b9318b Merge "Fixed and decreased isAtEquilibrium thresholds" into sc-dev am: 219106593d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14181134

Change-Id: Id0a2d08b06ced7a27036e390b8356ccffa77ac66
2021-04-14 18:06:46 +00:00
Michel Comin Escude
219106593d Merge "Fixed and decreased isAtEquilibrium thresholds" into sc-dev 2021-04-14 18:03:18 +00:00
Joanne Chung
a7f77e045c Merge "Add debug log to help to debug translation problem." into sc-dev am: bef7481684
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14159586

Change-Id: Ia1147a8c7ea5109a51936066d258665cf3c4b014
2021-04-14 16:55:03 +00:00
Joanne Chung
bef7481684 Merge "Add debug log to help to debug translation problem." into sc-dev 2021-04-14 16:27:31 +00:00
Michel Comin Escude
6e0fa3641e Merge "Added velocity scalar and updated spring values" into sc-dev am: ce30625d47
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14179248

Change-Id: I846fec20b9ba87b48f7e7cd96aaf8dcac2c3ccb6
2021-04-14 15:29:22 +00:00
Michel Comin Escude
0ca911f5f8 Added velocity scalar and updated spring values
Updated spring values to the latest ones agreed in design. In addition,
added a velocity multiplier that only affects after it absorbs an impact
at the scroll boundary. This will help to increase the spring behavior
when we fling the content, but keeping it controlled when we pull and
release.

Bug: 183768138
Test: ran EdgeEffectTest and visual
Change-Id: I4ed7b01dd42a9a5adda637917369c349a6ae2f76
2021-04-14 03:07:53 +00:00
Michel Comin Escude
0c81801f9e Fixed and decreased isAtEquilibrium thresholds
Distance and speed were multiplied by LINEAR_STRETCH_INTENSITY which is
not directly related to speed and and distance. Moreover the velocity
threshold was a little bit high (1/0.016, wich means 62 pixels/second)
and the distance as well (1 is ok if there's no scale but since there's
some stretching the difference was being magnified).

Bug: 184892316
Test: EdgeEffectTests and visual
Change-Id: Ibd7adb16d1d00df0ab6e96132bfe96a4fa4d45dc
2021-04-13 18:50:22 -07:00
Nader Jawad
7031958062 Merge "Adjusted interpolation and stretch intensity" into sc-dev am: e178f50356
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14172974

Change-Id: I7011f885abf6cac692f9826d68f2aa50c0c65188
2021-04-13 22:41:00 +00:00
Nader Jawad
e178f50356 Merge "Adjusted interpolation and stretch intensity" into sc-dev 2021-04-13 22:11:11 +00:00
Michel Comin Escude
9ed86141f2 Adjusted interpolation and stretch intensity
Updated stretch intensity to 0.016 and added a new uniform to control
the intensity of the interpoloation

Bug: 183768138
Test: ran EdgeEffectTest and visual
Change-Id: Iac10bee5980802fffe838ed83e02b7c41dee6f71
2021-04-13 12:30:51 -07:00
Pierre Barbier de Reuille
943d63d41d Merge "Add attribute setters for RemoteViews" into sc-dev am: bc9e66e108
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14160186

Change-Id: I8c0ed136bd22898c32fdaf86f7627ad36574ec9c
2021-04-13 17:16:19 +00:00
Pierre Barbier de Reuille
bc9e66e108 Merge "Add attribute setters for RemoteViews" into sc-dev 2021-04-13 17:10:24 +00:00
Pierre Barbier de Reuille
11d243e01c Add attribute setters for RemoteViews
This implements go/remoteviews-attribute-setters

Bug: 184931139
Test: atest CtsWidgetTestCases:RemoteViewsTest
Change-Id: I135ab857d3a3a52bbb02ee3226e2bf723d8c916a
2021-04-13 09:49:34 +01:00
Joanne Chung
8960d6667b Add debug log to help to debug translation problem.
There are some issues the resume/finish seems not work well. The
debug flag should be enabled manually, but in the most time the
user may forget to enable it before testing. Try to enable it in the
debug rom to help debugging, we use b/182433547 to trace the disable
this check before rom release.

Bug: 182433547
Test: manual
Change-Id: I2f85a0e17f8a2b8a4b93252044cf48d739b4eca2
2021-04-13 13:58:03 +08:00
Ahaan Ugale
d88fae8ed9 Merge "Fix UiTranslation for ListView." into sc-dev am: 44dccdbe1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14064892

Change-Id: I8634683d1373e25cd8dd5dce52430a9649d3a1b1
2021-04-13 02:18:07 +00:00
Ahaan Ugale
44dccdbe1a Merge "Fix UiTranslation for ListView." into sc-dev 2021-04-13 02:11:07 +00:00
Nader Jawad
ac6b4a4d0c Merge "Fixed issue with invalid stretch params" into sc-dev am: 93ea53bbe2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14163043

Change-Id: I1bd1c4e41c582ab7e7df09aad853e6d710b5208a
2021-04-13 01:53:57 +00:00
Nader Jawad
93ea53bbe2 Merge "Fixed issue with invalid stretch params" into sc-dev 2021-04-13 01:29:31 +00:00
Nader Jawad
0a458ab55a Fixed issue with invalid stretch params
Refactored error checking logic to ignore
all invalid parameters for vecX/vecY
regardless if NaN parameters were
computed through intermediate math
operations or provided as inputs

Fixes: 183781985
Test: Added CTS test
Change-Id: Ib9f3dd1becc0486dc15ce306660bd5d469b81256
2021-04-12 14:51:02 -07:00
TreeHugger Robot
e06c43787a Merge "Fix consumption multiplier" into sc-dev am: c66db32d3b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14078195

Change-Id: If65d97d8ac5ab4029555925cff4f4f1046235391
2021-04-12 18:22:17 +00:00
TreeHugger Robot
c66db32d3b Merge "Fix consumption multiplier" into sc-dev 2021-04-12 18:08:52 +00:00
Rob Carr
a83d3f0a35 Merge "Port magnifier widget to BLAST" into sc-dev am: 88a1e89a3f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13855850

Change-Id: I7b1715911eb82d871f250eb9e181b1ebf5ee6dce
2021-04-09 22:15:21 +00:00
Rob Carr
88a1e89a3f Merge "Port magnifier widget to BLAST" into sc-dev 2021-04-09 21:55:11 +00:00
TreeHugger Robot
3e6905a8aa Merge "Fix magnifier appearing unexpectedly on scroll" into sc-dev 2021-04-09 21:39:56 +00:00
Stevie Kideckel
4c997ba01c Merge "Apply tints when setting dial/hands to icons" into sc-dev am: d9becf72da
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14126915

Change-Id: Ib44527826235a96ab77309f2d4d46bb6335256bd
2021-04-09 21:31:48 +00:00
TreeHugger Robot
ab95052571 Merge "Fix magnifier appearing unexpectedly on scroll" 2021-04-09 17:06:38 +00:00
Mihai Popa
08093739f1 Fix magnifier appearing unexpectedly on scroll
Fixes: b/183057391
Test: manual testing
Change-Id: Iecd67be64084f52f26bf471c91bde3ba3f2b5c64
2021-04-09 16:11:51 +00:00
Mihai Popa
743083b7cf Fix magnifier appearing unexpectedly on scroll
Fixes: b/183057391
Test: manual testing
Change-Id: Iecd67be64084f52f26bf471c91bde3ba3f2b5c64
2021-04-09 11:32:00 +00:00
Robert Carr
fcdbf71fe6 Port magnifier widget to BLAST
It is one of the last users of deferTransactionUntil which we
are hoping to remove in the server (and gain some CPU usage wins
in the process).

Bug: 168505645
Test: Existing tests pass
Change-Id: I2ba66caf7b0eaf2ed7d4fe896d7dc58f57c6e37f
2021-04-08 20:12:26 -07:00
Stevie Kideckel
c134d8fac3 Apply tints when setting dial/hands to icons
Bug: 184731376
Test: local testing with sample app
Change-Id: Ib7c1aeaec6f805e93b9a731bc2d34e2182243ae1
2021-04-08 15:18:33 +00:00
Pierre Barbier de Reuille
43530e5a6c Merge "Replace RemoteViews#setViewId with a constructor" into sc-dev am: d26a0b7b2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14104350

Change-Id: Ib6a7a96ba22658594b5444c1d30465dd136c490d
2021-04-07 20:51:40 +00:00
Pierre Barbier de Reuille
2837eab16b Replace RemoteViews#setViewId with a constructor
This is a request of the API Council.

There was a hidden and, AFAICT, un-used constructor with the same
signature, which I have removed. Before replacing the constructor I
checked the whole OS builds and run with the constructor simply removed.

Fix: 182824754
Test: atest CtsWidgetTestCases:RemoteViewsRecyclingTest
Test: atest CtsWidgetTestCases:RemoteViewsTest
Change-Id: I0f12d2fa520cf4f0d54a7e3859337cc9a395ae66
2021-04-07 13:17:19 +01:00
Ahaan Ugale
d3ef775737 Fix UiTranslation for ListView.
There are 2 changes:
* When a view is scrapped, Autofill IDs in its subtree are reset. This
prevents flaky behavior like translating the wrong views when events are
ordered a certain way.
* Views that are being translated are marked as having transient state
since the system needs to attach the response to it later as well as
deliver UI Translation state changes to it.

Bug: 182491706
Test: atest CtsTranslationTestCases
Test: atest CtsContentCaptureServiceTestCases
Test: atest CtsAutoFillServiceTestCases
Test: manual - check in logs that autofill ids aren't reused on
 scrolling or new views appearing
Test: manual - translated views stay translated while on the screen
 when other views are scrolled off the screen
Test: manual - translated views stay translated when new views appear
Change-Id: I20a52415e3fd191768442d70614d536e11633dfa
2021-04-02 23:19:55 -07:00
TreeHugger Robot
59e20c9f9b Merge "Fixed NaN exceptions in EdgeEffect" into sc-dev am: c5f71969ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14070223

Change-Id: Ia26193262eff317c29bd804c8052f819776bd231
2021-04-03 02:16:45 +00:00
TreeHugger Robot
c5f71969ab Merge "Fixed NaN exceptions in EdgeEffect" into sc-dev 2021-04-03 02:08:09 +00:00
George Mount
fc14e37a8b Fix consumption multiplier
Bug: 184392385

The pull consumption should be related to the width, not the height.

Test: Ran ApiDemos and result is vastly improved
Change-Id: I19e1262c42b4b85920e5038a789e2e934569cac3
2021-04-02 23:18:00 +00:00
Nader Jawad
3a0b122b8d Fixed NaN exceptions in EdgeEffect
Added more error checking logic to
protect against invalid usages of EdgeEffect
that include setSize not being called or
invalid bounds parameters.

Fixes: 183945458
Fixes: 183895581
Fixes: 183781985
Test: Added CTS test to EdgeEffectTests
Change-Id: I1eabd96206216526dbe843d0fb8c0fe6cccd8395
2021-04-02 12:20:20 -07:00
Alan Viverette
d33b8dd52b Merge "FIx issue: https://issuetracker.google.com/issues/183024999" am: 2e1c97a4e8 am: 095c053c3f am: 9ee35481d1 am: 5c15f94f79
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1645426

Change-Id: I8a6f6034c4b0b4213c8307da941c690d6f6fa0f1
2021-03-31 23:48:59 +00:00
Alan Viverette
5c15f94f79 Merge "FIx issue: https://issuetracker.google.com/issues/183024999" am: 2e1c97a4e8 am: 095c053c3f am: 9ee35481d1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1645426

Change-Id: Idba06d2713407fff424eecf503066f902bee0924
2021-03-31 23:28:57 +00:00
Alan Viverette
9ee35481d1 Merge "FIx issue: https://issuetracker.google.com/issues/183024999" am: 2e1c97a4e8 am: 095c053c3f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1645426

Change-Id: I624bd5a9fcecf731c34d80930a4593e10e390f5a
2021-03-31 22:43:01 +00:00
Seigo Nonaka
0b8ee8ecc3 Merge "Override isRestricted for preventing unexpected resource loading" into rvc-qpr-dev am: 39c49f8daa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13855846

Change-Id: If44737735289f45e9cc30fc3c9498e591b479fa3
2021-03-31 22:40:50 +00:00
Nikita Dubrovsky
d30f2ff54c Merge "Rename getOnReceiveContentMimeTypes (drop "On")" into sc-dev am: 2bb75a4007
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14006645

Change-Id: I3b69523049d5de47f3c7f68bbd6d12d439ce44ae
2021-03-31 21:12:51 +00:00
Nikita Dubrovsky
2bb75a4007 Merge "Rename getOnReceiveContentMimeTypes (drop "On")" into sc-dev 2021-03-31 21:06:21 +00:00
Sunny Goyal
25b0aec057 Merge "Fixing Spline parameters when changing duration/position of Overscroller" into sc-dev am: b94b6a18a3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14036378

Change-Id: I1dbfd7489b216972484fab9255bff86372f110c0
2021-03-30 20:32:58 +00:00
Sunny Goyal
b94b6a18a3 Merge "Fixing Spline parameters when changing duration/position of Overscroller" into sc-dev 2021-03-30 20:14:56 +00:00
Sunny Goyal
98d4e403cd Fixing Spline parameters when changing duration/position of Overscroller
> This allows the scroller to be used in Launcher3 instead of a custom copy

Bug: 183966408
Test: Verified with Launcher3
Change-Id: I1c945774d0323fabcf4bfd5a02c2eaf8e95a218d
2021-03-30 09:49:00 -07:00
Pierre Barbier de Reuille
99ec0d36b2 Merge "Update the description of RemoteViews#setViewId" into sc-dev am: e65f50862d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14033665

Change-Id: I0df005ecc12b99158aaebfa01dfc75e0b57c1101
2021-03-30 15:20:01 +00:00
Pierre Barbier de Reuille
e65f50862d Merge "Update the description of RemoteViews#setViewId" into sc-dev 2021-03-30 15:10:14 +00:00
Nikita Dubrovsky
eef41a6106 Merge "OnReceiveContentListener: Handle IME insertion permissions release" into sc-dev am: 85826befae
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13987586

Change-Id: I59f7a39b410ade223fbc554147f8f2affc6f4b1a
2021-03-30 14:24:47 +00:00
Nikita Dubrovsky
85826befae Merge "OnReceiveContentListener: Handle IME insertion permissions release" into sc-dev 2021-03-30 14:10:21 +00:00