Commit Graph

95304 Commits

Author SHA1 Message Date
Issei Suzuki
f78b5e2e44 Removed unused variable from ThreadedRenderer
Bug: 136616503
Test: refactoring, check if existing tests pass
Change-Id: I627832b2e8f964dbabbf95788279e437c4347adf
2019-07-03 10:23:37 +02:00
Winson Chung
6ff63bdf73 Merge "Catch all exceptions in onFrameDraw" into qt-dev am: cff24b878d am: abe1a94072
am: 056fd40726

Change-Id: Icd452fb2132ffd98fe65ee5951f727e41a37f40b
2019-06-26 18:35:14 -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
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
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
TreeHugger Robot
482c2c994d Merge "Improved TimingsTraceLog performance by using arrays, instead of Deque of Pairs." 2019-06-26 03:24:52 +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
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
Winson Chung
056fd40726 Merge "Catch all exceptions in onFrameDraw" into qt-dev am: cff24b878d
am: abe1a94072

Change-Id: I74089f0cf71ca2c3dc917001eb14dca8586396e0
2019-06-25 16:06:36 -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
Winson Chung
abe1a94072 Merge "Catch all exceptions in onFrameDraw" into qt-dev
am: cff24b878d

Change-Id: If3aef1ccbba89a4b0964749ee3184a83f88185be
2019-06-25 15:43:48 -07: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
Winson Chung
cff24b878d Merge "Catch all exceptions in onFrameDraw" into qt-dev 2019-06-25 22:07:44 +00: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
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
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
Eric Biggers
937e769728 Merge "Remove the rename() interceptor" 2019-06-25 18:33:00 +00:00
TreeHugger Robot
bbd2a2b56d Merge "Remove deprecated & removed JobInfo methods." 2019-06-25 18:24:17 +00:00
Yin-Chia Yeh
cff1749e52 Merge "Camera: block session init callback until ctor returns" into qt-dev am: 0e1eecd080 am: 0aa57fe073
am: e8ff13376f

Change-Id: I2f5a51b279a67b53a5f0fc5ac0632ce0bf568595
2019-06-25 10:41:56 -07:00
Yin-Chia Yeh
e8ff13376f Merge "Camera: block session init callback until ctor returns" into qt-dev am: 0e1eecd080
am: 0aa57fe073

Change-Id: I26ef69e151344e4ff1c42705b8841f0862802631
2019-06-25 10:08:45 -07:00
Yin-Chia Yeh
0aa57fe073 Merge "Camera: block session init callback until ctor returns" into qt-dev
am: 0e1eecd080

Change-Id: I999510b0513b0b32a86af8e5460aa5688476e9f5
2019-06-25 09:45:42 -07:00
Yin-Chia Yeh
0e1eecd080 Merge "Camera: block session init callback until ctor returns" into qt-dev 2019-06-25 16:26:54 +00:00
Michael Wright
7f378787dc Ignore DND when FLAG_BYPASS_INTERRUPTION_POLICY is set.
When DND is on, it sets AppOps to return MODE_IGNORED for any non-touch
vibrations. Unfortunately, this means it blocks critical vibrations as
well, like emergency alerts. In order to avoid this, we need to respect
FLAG_BYPASS_INTERRUPTION_POLICY when set on the vibration attributes.

Bug: 132112663
Bug: 135686242
Test: Manual
Change-Id: I59465eed057b077a4c0548af162e0fec1c29afdc
2019-06-25 16:57:10 +01:00
Julia Reynolds
469144c3e8 Record initial app given importance
To allow users an easy way to 'go back to how it was'

(also migrate some tests to other files)

Test: atest, cts
Bug: 135751328

(cherry picked from commit 03de363ce278b6d708a6d30f83468584a14a65d5)

Change-Id: I949f366410d2cb2ab424b1b03222743e6e60d867
2019-06-25 10:16:19 -04:00
Jorim Jaggi
b0bb2f778f Catch all exceptions in onFrameDraw
... as throwing an exception in there somehow will mess up the
hwui task queue.

Test: Have a crashy app, swipe up while the app is crashing
Fixes: 134583193
Change-Id: Ie3ba5f991759f807b154f55f9fc816e7efe2fdfe
2019-06-25 15:37:53 +02:00
Issei Suzuki
a1a6067f2e Merge "Added subtle animation for unlocking screen." into qt-r1-dev am: 0ca1dbcb25
am: 79071973bf

Change-Id: I4612152ed11bab958d8d172e8620ab29dca5c883
2019-06-25 04:51:33 -07:00
Issei Suzuki
79071973bf Merge "Added subtle animation for unlocking screen." into qt-r1-dev
am: 0ca1dbcb25

Change-Id: I08834a57295530c15d19811cccc72174f9f428ad
2019-06-25 04:37:25 -07:00
Issei Suzuki
0ca1dbcb25 Merge "Added subtle animation for unlocking screen." into qt-r1-dev 2019-06-25 11:22:26 +00:00
TreeHugger Robot
00c3a02ac7 Merge "Remove references of the previous surface control in ViewRootImpl" 2019-06-25 01:35:04 +00:00
Eric Biggers
4d556c3f37 Remove the rename() interceptor
Remove the rename() interceptor which was added by change
I7f4461bcacada80398eb95d051a0d29456f63499, since the design of scoped
storage was changed to not use bind mounts.  So, the reason for adding
the rename() interceptor in the first place no longer exists.

Bug: 131115422
Bug: 135278311
Test: atest android.appsecurity.cts.ExternalStorageHostTest#testExternalStorageRename
Change-Id: I0f9ac456104759887c0410fe64acc32cab19b62b
2019-06-24 17:35:19 -07:00
Daniel Rosenberg
58462dd8ca Merge "Merge "Make RescueParty call vold directly" into qt-dev am: 2618371aa5 am: 810274ed2d" into qt-r1-dev-plus-aosp
am: 2afc347abf

Change-Id: I3db4dd79a91bc61d5c24b49a9c9295a61b0ccc00
2019-06-24 15:10:34 -07:00
Daniel Rosenberg
2c8d9ec6d9 Merge "Make RescueParty call vold directly" into qt-dev am: 2618371aa5
am: 810274ed2d

Change-Id: Ibe6be230b5417cec8428516f6edbead1b0146976
2019-06-24 15:05:48 -07:00
Daniel Rosenberg
db5894d5a9 Merge "Make RescueParty call vold directly" into qt-dev
am: 2618371aa5

Change-Id: Id4b104e811a30722ea3c70add3750a9319245ff5
2019-06-24 15:00:57 -07:00
Daniel Rosenberg
810274ed2d Merge "Make RescueParty call vold directly" into qt-dev
am: 2618371aa5

Change-Id: I68af684fa3f8be2cc8d9518eee5bd9dbc1b118cb
2019-06-24 15:00:57 -07:00
Steven Moreland
f7aee2d576 Merge changes Ic2e27f56,Ie19e0995 am: 95f507f80d am: 6245e7efe6 am: df99ad0cf9
am: 18d2e90b1d

Change-Id: I1eb7121a1ec8b428d269b7c786f882b52286c432
2019-06-24 14:56:21 -07:00
Steven Moreland
18d2e90b1d Merge changes Ic2e27f56,Ie19e0995 am: 95f507f80d am: 6245e7efe6
am: df99ad0cf9

Change-Id: I0aa2d7bda198ff9bd73e173eb3d54f7f748ba8dc
2019-06-24 14:50:06 -07:00
Steven Moreland
df99ad0cf9 Merge changes Ic2e27f56,Ie19e0995 am: 95f507f80d
am: 6245e7efe6

Change-Id: Ic44dfe2b3defa6f60bee6062c049ff189223cb50
2019-06-24 14:46:25 -07:00
TreeHugger Robot
2618371aa5 Merge "Make RescueParty call vold directly" into qt-dev 2019-06-24 21:39:40 +00:00
TreeHugger Robot
928f511e9f Merge "Don't create string temporaries if tracing isn't enabled" 2019-06-24 20:49:51 +00:00
Daniel Rosenberg
d078d8b15c Make RescueParty call vold directly
This changes RescueParty to call vold over binder directly for
Checkpointing related calls. It turns out that if the system is in a bad
enough state, the other method would not work, as some of the services
required would not be running.

Bug: 135558798
Test: setprop persist.sys.enable_rescue 1
      setprop debug.crash_system 1 or setprop debug.crash_sysui 1
      vdc checkpoint startCheckpoint 3
      stop
      start
      Device should go through the rescueparty flow, and reboot.
      Repeat without checkpoint. Device should prompt reboot.

Change-Id: I8b11d68075cc291e9557d524bc87b54d17b370e4
2019-06-24 13:23:27 -07:00
Adam He
eec9ed5042 Merge "Fixed event flushing to handle when mDirectServiceInterface is not ready yet." into qt-r1-dev am: e6930c4aa1
am: accfaaa416

Change-Id: I37f6e60f3c28347e00bbfc3d4aeb09845ad00e63
2019-06-24 13:00:33 -07:00
Adam He
accfaaa416 Merge "Fixed event flushing to handle when mDirectServiceInterface is not ready yet." into qt-r1-dev
am: e6930c4aa1

Change-Id: I17671a59667ee8990e7f2ea62c7957d4ed90a966
2019-06-24 12:55:00 -07:00
TreeHugger Robot
e6930c4aa1 Merge "Fixed event flushing to handle when mDirectServiceInterface is not ready yet." into qt-r1-dev 2019-06-24 18:42:45 +00:00
Yin-Chia Yeh
8b9b9f065c Camera: block session init callback until ctor returns
To fix race condition where session init callback is executed
before the ctor finished (and mSessionImpl is initialized)

Test: manuall testing GCA
Bug: 134218348
Change-Id: I6985b489a8cb459d9b1dce4d56a9c3e97ceb366c
2019-06-24 11:32:34 -07:00
Ioannis Ilkos
80d76c5225 Merge "Merge "Add anon RSS + swap metric" into qt-dev am: 9af8d15783 am: 83270da58c" into qt-r1-dev-plus-aosp
am: d3f2c2bf8b

Change-Id: I1568d2c4cc84150749b155f07f35aee689f60924
2019-06-24 09:38:47 -07:00
Ioannis Ilkos
c724ee2de3 Merge "Add anon RSS + swap metric" into qt-dev am: 9af8d15783
am: 83270da58c

Change-Id: I059f5a51d7a7399df9ec4fd26989fc77eb03c734
2019-06-24 08:59:34 -07:00