Commit Graph

432495 Commits

Author SHA1 Message Date
Evan Rosky
b96326e40f Use start-bounds for animation leash crop
When available, set the animation leash crop to the start-bounds
rather than the end-bounds. Otherwise, for change transitions, there
is a small period of time (between when the leash is set-up and
when the app process receives the start-animation call) where
incorrect state can be drawn.

Bug: 136468446
Test: atest RemoteAnimationControllerTest.
      With remote animator on mode change, maximize while taking
      an sf trace. Check that anim-leash crop is set properly.

Change-Id: I4148980af1514b13455923db29876ffb3045ebcb
2019-07-01 13:01:19 -07:00
TreeHugger Robot
42439214eb Merge changes Ifd466d1e,I9f57651a
* changes:
  Don't set windowing mode in fullscreen displays.
  Only persist launch params on freeform display.
2019-06-26 20:34:30 +00:00
Fedor Kudasov
c8d5387564 Merge "Remove EGL references from CanvasContext header" 2019-06-26 19:23:47 +00:00
Christine Tsai
93e7346995 Merge "Matching regular uid field with pkg name in statsd" 2019-06-26 18:43:34 +00:00
TreeHugger Robot
ee57765372 Merge changes from topic "sc_handles"
* changes:
  Remove SurfaceControl#getHandle from JAVA apis 2/2
  Remove SurfaceControl#getHandle from JAVA apis 1/2
2019-06-26 17:56:32 +00:00
Chavi Weingarten
0b326518f0 Merge "Deleted SurfaceControl.remove method" 2019-06-26 17:06:57 +00:00
Fedor Kudasov
361e13fc4a Merge "Fix potential off-by-one" 2019-06-26 16:55:03 +00:00
tsaichristine
7a57b8e498 Matching regular uid field with pkg name in statsd
Bug: 124377157
Test: bit statsd_test:*
Change-Id: I6844ea1a9eade4bfcd3698dfbc2bf8475c8e2bec
2019-06-26 09:46:56 -07:00
Garfield Tan
a7a919c087 Don't set windowing mode in fullscreen displays.
We don't want to launch tasks in freeform mode in fullscreen displays
only because they were in freeform mode before.

Bug: 135941344
Bug: 135780225
Test: Manual tests.
Test: atest WmTests:TaskLaunchParamsModifierTests
Change-Id: Ifd466d1e11c8131ecf1e587aeac6f2eba15f6432
2019-06-26 09:44:52 -07:00
Garfield Tan
3129b85335 Only persist launch params on freeform display.
We don't want to launch to fullscreen only because it's been launched on
a fullscreen display before. We should still restore the bounds when it
was on a freeform display last time.

Bug: 135941344
Bug: 135780225
Test: Manual tests.
Change-Id: I9f57651a01513652cc4c38c2d91d4c46db5c5d5d
2019-06-26 09:44:52 -07:00
TreeHugger Robot
559ce55e7f Merge "Record initial app given importance" 2019-06-26 16:17:38 +00:00
Fedor Kudasov
52abc909da Remove EGL references from CanvasContext header
Bug: 117921091
Test: all tests should pass
Change-Id: Ib8ff068c8dcbc4f9855cc91c4af1d704d66dde7b
2019-06-26 16:03:26 +00:00
TreeHugger Robot
777251c2d0 Merge "Add handle suppression to learned state" 2019-06-26 16:01:03 +00:00
TreeHugger Robot
0ea28ecf23 Merge "Fix WindowFocusTests#testTapNonFocusableWindow failed" 2019-06-26 15:54:01 +00:00
TreeHugger Robot
482c2c994d Merge "Improved TimingsTraceLog performance by using arrays, instead of Deque of Pairs." 2019-06-26 03:24:52 +00:00
TreeHugger Robot
9c44b5224e Merge "Defer PSS collection while an activity is starting" 2019-06-26 01:59:40 +00:00
Christopher Tate
c2c19c9a65 Defer PSS collection while an activity is starting
Make sure not to process any requested PSS collections for a brief time
after an activity start is initiated, to reduce resource contention
during the launch.

Device config atom to configure:

  ActivityManager/activity_start_pss_defer

Milliseconds; defaults to zero (PSS deferral policy disabled)

Bug: 133433769
Test: manual
Change-Id: Icf5cf2e3dde0bd5fd3ab9c4a85adfb1f3382057f
2019-06-25 17:38:47 -07:00
Jackal Guo
8fe39f4a50 Merge "Move pre-check in A11yController to the new A11yWindowManager" 2019-06-26 00:37:46 +00:00
Vishnu Nair
bc9beab8fe Remove SurfaceControl#getHandle from JAVA apis 2/2
Holding on to a reference of the handle in Java will keep the server-side surface alive until
the reference is removed by GC. This may cause surfaces to be kept alive longer than necessary.
Instead hold on the surface control and call SurfaceControl#release which will release the local
reference to the server-side surface.

Bug: 136004147
Test: go/wm-smoke

Change-Id: Iff7d48ae1593cea2e188aa07c417f4c5a98887d5
2019-06-25 17:33:44 -07:00
Vishnu Nair
4bcd152a3a Remove SurfaceControl#getHandle from JAVA apis 1/2
Holding on to a reference of the handle in Java will keep the server-side surface alive until
the reference is removed by GC. This may cause surfaces to be kept alive longer than necessary.
Instead hold on the surface control and call SurfaceControl#release which will release the local
reference to the server-side surface.

Bug: 136004147
Test: go/wm-smoke
Test: gesture nav sanity tests
Test: atest CompositionSamplingListenerTest

Change-Id: Iab33680746c8f48c28783e6a2a13c9ac7ae04980
2019-06-25 17:31:11 -07:00
TreeHugger Robot
b24a3b1b33 Merge "startop: Update app_startup_runner to toggle iorapd.readahead.enable" 2019-06-26 00:29:10 +00:00
TreeHugger Robot
a33ce8a337 Merge "Fix Layout.primaryIsTrailingPreviousAllLineOffsets" 2019-06-26 00:18:11 +00:00
chaviw
9f6171e7b2 Deleted SurfaceControl.remove method
Updated all callers of SC.remove to use Transaction.remove(sc) and apply
immediately since that's the equivalent. Eventually, the transactions
that contain remove could combine with other transactions if it makes
sense to avoid duplicate applies.

Test: SurfaceControlTest
Change-Id: I13c6ec86de6a6d60f142c2269337557510dd006d
2019-06-25 17:09:03 -07:00
Mihai Popa
71a0018948 Fix Layout.primaryIsTrailingPreviousAllLineOffsets
The CL fixes a crash in Layout.primaryIsTrailingPreviousAllLineOffsets.
The crash was happening when the method was called for a line beginning
with an empty bidi run. This could happen, for example, for empty text -
I was unable to find any other case. The CL improves the existing test
for the method with this case, which was previously crashing.

The CL also fixes a potential crash in getLineHorizontals. However, this
bug could never happen as in the current code path clamped is always
false (and kept as parameter for parity with getHorizontal).

Bug: 135444178
Test: atest FrameworksCoreTests:android.text.LayoutTest\#testPrimaryIsTrailingPrevious
Change-Id: I47157abe1d74675884734e3810628a566e40c1b4
2019-06-25 23:06:33 +00:00
Felipe Leme
b769296531 Improved TimingsTraceLog performance by using arrays, instead of Deque of Pairs.
Test: manual verification
Test: atest FrameworksMockingCoreTests:android.util.TimingsTraceLogTest

Fixes: 135754571

Change-Id: I7a3571a422d09cd618f6610d3403a870af1ebafa
2019-06-25 15:34:02 -07:00
Michael Wright
82e696d5d3 Merge "Ignore DND when FLAG_BYPASS_INTERRUPTION_POLICY is set." into qt-r1-dev am: 3af0a7b5e5
am: 3a0f715588

Change-Id: I6b3b912c16b4a8419e5e9c98c443bbe2b8aa9b7a
2019-06-25 14:46:59 -07:00
Lucas Dupin
6c30e9c16b Merge "Do no play hint animation when retrying auth" into qt-r1-dev am: dfba874730
am: 5b432e94f0

Change-Id: I9c98b0a041b902664584b964a21051a254072e67
2019-06-25 14:37:09 -07:00
Michael Wright
3a0f715588 Merge "Ignore DND when FLAG_BYPASS_INTERRUPTION_POLICY is set." into qt-r1-dev
am: 3af0a7b5e5

Change-Id: I4942abf90c783c67f0a32dbbc018a6a3e4d1c76e
2019-06-25 13:50:46 -07:00
Lucas Dupin
5b432e94f0 Merge "Do no play hint animation when retrying auth" into qt-r1-dev
am: dfba874730

Change-Id: I819160e8ac018568db34d917f0bf15057a6dcac4
2019-06-25 13:45:54 -07:00
TreeHugger Robot
3af0a7b5e5 Merge "Ignore DND when FLAG_BYPASS_INTERRUPTION_POLICY is set." into qt-r1-dev 2019-06-25 19:49:32 +00:00
TreeHugger Robot
dfba874730 Merge "Do no play hint animation when retrying auth" into qt-r1-dev 2019-06-25 19:36:31 +00:00
Xiangyu/Malcolm Chen
3b77412d51 [automerger skipped] Merge "When data switches during voice call, make sure signal bar updates it." am: b6ae55b169 am: 5b25aba19f -s ours am: d6484d1144 -s ours
am: f91d91320e -s ours
am skip reason: change_id I54fc4ca104cb451af847d7973fbffc7f0ed97c10 with SHA1 04be9d1972 is in history

Change-Id: Ib0f135d408c802558e85335b1745f656eb35d9b5
2019-06-25 12:30:32 -07:00
Mehdi Alizadeh
163b5697de Merge "Accept all system packages as supported home apps for gesture nav" into qt-dev am: 9114784f35 am: fc3d3f63e3
am: 0b18ad2be4

Change-Id: I30efffabbb5e1ef7d48a01c065e139202ba30ff6
2019-06-25 12:25:58 -07:00
Jorim Jaggi
9314271614 Merge "Merge "Revert "Reland "Prevent dismissing starting window when reopening app""" into qt-dev am: e0d3ce875f am: f15ba1b50c" into qt-r1-dev-plus-aosp
am: 23c84407e6

Change-Id: Ie54af2598ea219c05b0801a33ebd0ebb68b9c44a
2019-06-25 12:21:29 -07:00
Mehdi Alizadeh
14371d0e5b Merge "Accept all system packages as supported home apps for gesture nav" into qt-dev am: 9114784f35 am: 370d19f213
am: acca3fc52c

Change-Id: I8c24e23fafc237c260cbd99190cd3f5ddbbd21c9
2019-06-25 12:16:32 -07:00
Jorim Jaggi
3ad55c09ae Merge "Revert "Reland "Prevent dismissing starting window when reopening app""" into qt-dev am: e0d3ce875f am: df5ed2e842
am: 1a3ed41447

Change-Id: I25ba63b0626a83403fed4055427f62d6a85c958c
2019-06-25 12:11:52 -07:00
Xiangyu/Malcolm Chen
f91d91320e [automerger skipped] Merge "When data switches during voice call, make sure signal bar updates it." am: b6ae55b169 am: 5b25aba19f -s ours
am: d6484d1144 -s ours
am skip reason: change_id I54fc4ca104cb451af847d7973fbffc7f0ed97c10 with SHA1 04be9d1972 is in history

Change-Id: Iaf5692410c863503c3042194e5719b27609ead23
2019-06-25 12:00:14 -07:00
Mehdi Alizadeh
0b18ad2be4 Merge "Accept all system packages as supported home apps for gesture nav" into qt-dev am: 9114784f35
am: fc3d3f63e3

Change-Id: Ie50ca1384776bcff5897fb462c29238ea961d993
2019-06-25 11:54:33 -07:00
Bill Yi
b6a11c53cc [automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-r1-dev am: b2f7868547 -s ours
am: 92867cfa23 -s ours
am skip reason: subject contains skip directive

Change-Id: I83886cd49436235e4549c26fe73c585f7a3b6d52
2019-06-25 11:54:31 -07:00
Android Build Merger (Role)
23c84407e6 Merge "Merge "Revert "Reland "Prevent dismissing starting window when reopening app""" into qt-dev am: e0d3ce875f am: f15ba1b50c" into qt-r1-dev-plus-aosp 2019-06-25 18:49:26 +00:00
Jorim Jaggi
578220383a Merge "Revert "Reland "Prevent dismissing starting window when reopening app""" into qt-dev am: e0d3ce875f
am: f15ba1b50c

Change-Id: I9d0e5b7df94241ec5c8d4b511a086c61448d796a
2019-06-25 11:47:59 -07:00
Chen Xu
c3d425fc48 [automerger skipped] Merge "move short code definitions to SmsManager Test API" am: b6399511f8 am: 05a10d2f89 -s ours am: c5f71b6a01 -s ours
am: 6a43c89dbb -s ours
am skip reason: change_id I6a5ba2439713105b25913ba8eb081abfaafd1a2e with SHA1 9c7fad9235 is in history

Change-Id: I20ba3873576045272fc30e0769842064041333e1
2019-06-25 11:46:27 -07:00
Mehdi Alizadeh
acca3fc52c Merge "Accept all system packages as supported home apps for gesture nav" into qt-dev am: 9114784f35
am: 370d19f213

Change-Id: If85747ecc80784a9a1a22c8822b4952c60bc5749
2019-06-25 11:46:01 -07:00
Jorim Jaggi
1a3ed41447 Merge "Revert "Reland "Prevent dismissing starting window when reopening app""" into qt-dev am: e0d3ce875f
am: df5ed2e842

Change-Id: I21a297a817cc3494a585675b666634f4519dd6a1
2019-06-25 11:40:56 -07:00
Xiangyu/Malcolm Chen
d6484d1144 [automerger skipped] Merge "When data switches during voice call, make sure signal bar updates it." am: b6ae55b169
am: 5b25aba19f -s ours
am skip reason: change_id I54fc4ca104cb451af847d7973fbffc7f0ed97c10 with SHA1 04be9d1972 is in history

Change-Id: I58f8529e4efcd2e7586991a250d7a76160340e0d
2019-06-25 11:38:35 -07:00
Mehdi Alizadeh
fc3d3f63e3 Merge "Accept all system packages as supported home apps for gesture nav" into qt-dev
am: 9114784f35

Change-Id: Iadfa0ec654f5f5dcad6bda5b1ec3db063b4583dd
2019-06-25 11:33:12 -07:00
Eric Biggers
937e769728 Merge "Remove the rename() interceptor" 2019-06-25 18:33:00 +00:00
Mehdi Alizadeh
370d19f213 Merge "Accept all system packages as supported home apps for gesture nav" into qt-dev
am: 9114784f35

Change-Id: Ie885c8afd1aead79ab5ad8ad043c413e36781a32
2019-06-25 11:31:47 -07:00
Jorim Jaggi
f15ba1b50c Merge "Revert "Reland "Prevent dismissing starting window when reopening app""" into qt-dev
am: e0d3ce875f

Change-Id: I1680f8f61791aed33173fe1c954a90f4d5d3326c
2019-06-25 11:28:01 -07:00
Bill Yi
92867cfa23 [automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-r1-dev
am: b2f7868547 -s ours
am skip reason: subject contains skip directive

Change-Id: I0ae2042902fdbc86d41add0767f86db476b514c4
2019-06-25 11:27:05 -07:00