Commit Graph

424299 Commits

Author SHA1 Message Date
TreeHugger Robot
98b1ddfaaa Merge "Fix race condition while WallpaperMS rebinding service." into qt-qpr1-dev 2020-03-17 01:10:49 +00:00
Eugene Susla
b4aaa9d8ad RESTRICT AUTOMERGE
Prevent accessing companion records from arbitrary uids

Test: manual
Fixes: 129476618
Change-Id: I7b18cfcdf58e62a445cbb508116c6ce7c1cea8d7
2020-03-16 14:15:22 -07:00
Shuzhen Wang
52b5e54980 Camera: Clarify CAMERA_OPEN_CLOSE_LISTENER description
Test: Build
Bug: 151326743
Change-Id: Ia067f3b4021b184504147569374678f81f66daf3
2020-03-16 12:20:36 -07:00
Bill Yi
07808d1477 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Icdc4ac69264d3712e36961f588a783cc13122b4c
2020-03-15 15:03:31 -07:00
TreeHugger Robot
5fe2090213 Merge "DO NOT MERGE Optimizing ScreenDecorations performance" into qt-qpr1-dev 2020-03-13 16:55:51 +00:00
Bill Lin
a1c9c5433d DO NOT MERGE Optimizing ScreenDecorations performance
Avoid calling onTuningChanged() when onConfigurationChanged() trigger
Only calling onTuningChanged() when roundedCornersChanged is true.

Test: atest SystemUITests
Test: atest ScreenDecorationsTest
Bug: 148912090
Change-Id: I2507d12b277d058cef390d7c55488d0d09dde206
Merged-In: Ie33526214072ad324ca00a10074ad212dfbf4258
2020-03-13 09:53:48 +00:00
wilsonshih
44f50d484d [RESTRICT AUTOMERGE] Allow bar to be transparent during animating.
When top window request fullscreen and device contain a real cutout
and the layoutInDisplayCutout is default or never, a letterbox will
be created for this activity, which cause
BarController#isTransparentAllowed return false so the status bar
cannot be transparent, the bar will shows a black background
during hidding animation.
A simple workaround is to allow the bar can be transparent
during hidding, since the surface of letterbox is not really
overlapped with bar because it's also animating.

Bug: 150048810
Test: No black background shows on status bar when opening
fullscreen app.
Test: atest DisplayPolicyTests

Change-Id: I2dd5b1fbad8e79ec80f799d63bba8824acc6a639
2020-03-13 17:11:03 +08:00
wilsonshih
b6cd9c2003 Fix race condition while WallpaperMS rebinding service.
Connection object could not receive onServiceConnected after
new process of the service was active.

How issue happen:
1. The process of wallpaper service died, AM schedule to restart,
WallpaperMS schedule to rebind.
2. WallpaperMS bind service with new connection object.
=> ActiveService bring up new process. Add this ServiceRecord to
   mPendingServices.
3. WallpaperMS unbind previous connection object.
=> ActiveService remove previous connection, also remove this
   ServiceRecord object from mPendingServices list.
4. Process ready, attach application but cannot find the service
   from pendingServices.

Solution: Do not remove the ServiceRecord object from mPendingServices
if there is any connection left.

Also use runnable object instead of method reference.

Bug: 148834472

Test: atest WallpaperManagerTest WallpaperManagerServiceTests
Change-Id: I3adec66de8ac0c7efc9ad3ffbf604b01eacb5720
Merged-In: I3adec66de8ac0c7efc9ad3ffbf604b01eacb5720
(cherry picked from commit d155133382)
2020-03-13 08:08:35 +00:00
Lucas Dupin
6a1b278be8 Merge "Either reuse sensor values or don't dim down at all" into qt-qpr1-dev 2020-03-13 00:46:24 +00:00
Lucas Dupin
2263309459 Either reuse sensor values or don't dim down at all
ALS latency is unpredictable and sometimes debounced. This means that it
might take at least 3 seconds for the display to wake-up, if it wakes-up
at all. We might also get stuck and never show HUNs if the event doesn't
arrive.

This is a bug that we had in the past, but was not as noticeable because
the padlock was below the scrims, now, users are reporting that the
padlock shows up, but the hun is not.

Test: manual
Fixes: 150852696
Change-Id: Iade5ebd4c33e7c9d668b09144964f1408ef529ad
Merged-In: Iade5ebd4c33e7c9d668b09144964f1408ef529ad
2020-03-12 20:01:13 +00:00
TreeHugger Robot
41edb22d75 Merge "DO NOT MERGE Ignore insets on status_bar_container" into qt-qpr1-dev 2020-03-11 20:48:55 +00:00
Automerger Merge Worker
3e8ad0c666 Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into qt-dev am: 3d4cf34685
Change-Id: I427d795236c2e5070b6c7dc13cb6ee1da8211beb
2020-03-11 20:05:16 +00:00
Automerger Merge Worker
20cd95a7f6 RESTRICT AUTOMERGE am: 60a6583adf
Change-Id: I387d6fcf719b56132baeff486aebce875d76f602
2020-03-11 20:05:08 +00:00
Shuzhen Wang
ca1872dc0d Merge "Camera: Add new hidden API for camera open/close callback" into qt-qpr1-dev 2020-03-11 19:29:42 +00:00
TreeHugger Robot
3d4cf34685 Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into qt-dev 2020-03-11 19:25:05 +00:00
Govinda Wasserman
fe399658d8 Merge "[DO NOT MERGE] Allows the Assistant to request suppression of fling" into qt-qpr1-dev 2020-03-11 18:19:26 +00:00
TreeHugger Robot
19cffe42e3 Merge "DO NOT MERGE - Kill apps outright for API contract violations" into qt-qpr1-dev 2020-03-11 17:42:21 +00:00
Automerger Merge Worker
a8441e2058 [automerger skipped] Merge "RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo" into oc-dev am: 6c1414ffac am: 8d37b54e76 -s ours am: e776ad2c63 -s ours am: fee7e9913b -s ours am: d3579addfa -s ours
am skip reason: Change-Id I60732f430256d37cb926d08d093581f051c4afed with SHA-1 da78af4d66 is in history

Change-Id: I081813e024b644720344fcf447cb6c64f90f284c
2020-03-11 10:25:05 +00:00
Automerger Merge Worker
75f0791a4f [automerger skipped] RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo am: 1c9bf5cc54 am: 2e254bb81e -s ours am: fb0419e165 -s ours am: 0361dab3d8 -s ours am: 8e258a182b -s ours
am skip reason: Change-Id I60732f430256d37cb926d08d093581f051c4afed with SHA-1 da78af4d66 is in history

Change-Id: I906a47317135f61899f3f40b20d32cb25e0b0152
2020-03-11 10:25:01 +00:00
Automerger Merge Worker
d3579addfa [automerger skipped] Merge "RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo" into oc-dev am: 6c1414ffac am: 8d37b54e76 -s ours am: e776ad2c63 -s ours am: fee7e9913b -s ours
am skip reason: subject contains skip directive

Change-Id: Iad167cc9497674c3e679721c6d6562c841b48dfd
2020-03-11 10:07:43 +00:00
Automerger Merge Worker
8e258a182b [automerger skipped] RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo am: 1c9bf5cc54 am: 2e254bb81e -s ours am: fb0419e165 -s ours am: 0361dab3d8 -s ours
am skip reason: subject contains skip directive

Change-Id: Ib0198c47103d434a661d665ddd8fe25e52bbbeb6
2020-03-11 10:07:28 +00:00
Automerger Merge Worker
fee7e9913b [automerger skipped] Merge "RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo" into oc-dev am: 6c1414ffac am: 8d37b54e76 -s ours am: e776ad2c63 -s ours
am skip reason: subject contains skip directive

Change-Id: Ica1f5e73e2f43e143f57c1ba3a831809ee9526d2
2020-03-11 09:41:08 +00:00
Automerger Merge Worker
0361dab3d8 [automerger skipped] RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo am: 1c9bf5cc54 am: 2e254bb81e -s ours am: fb0419e165 -s ours
am skip reason: subject contains skip directive

Change-Id: I6de3962c29dd112a7da39b374f8dcd9004267550
2020-03-11 09:41:04 +00:00
Automerger Merge Worker
e776ad2c63 [automerger skipped] Merge "RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo" into oc-dev am: 6c1414ffac am: 8d37b54e76 -s ours
am skip reason: Change-Id I60732f430256d37cb926d08d093581f051c4afed with SHA-1 0d7e27af30 is in history

Change-Id: I65557f8f81d1d3011a49bca1dcd8bcfa909c7b80
2020-03-11 09:25:08 +00:00
Automerger Merge Worker
fb0419e165 [automerger skipped] RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo am: 1c9bf5cc54 am: 2e254bb81e -s ours
am skip reason: Change-Id I60732f430256d37cb926d08d093581f051c4afed with SHA-1 0d7e27af30 is in history

Change-Id: Ia63f63d741f7d84866165bd9bbd3422057af541b
2020-03-11 09:25:03 +00:00
Automerger Merge Worker
8d37b54e76 Merge "RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo" into oc-dev am: 6c1414ffac
Change-Id: I74ae72db630d9b5ca6c9cf827e698b884d99edc8
2020-03-11 09:07:15 +00:00
Automerger Merge Worker
2e254bb81e RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo am: 1c9bf5cc54
Change-Id: Ie38d9bf7ac60dd60a2dc1d0aef798ddc01fe19f7
2020-03-11 09:07:05 +00:00
TreeHugger Robot
6c1414ffac Merge "RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo" into oc-dev 2020-03-11 08:53:52 +00:00
Riddle Hsu
1c9bf5cc54 RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo
Originally, if the caller of navigateUpTo is alive, even the calling
uid is set to the caller who launched the existing destination activity,
the uid from caller process has higher priority to replace the given
calling uid. So this change doesn't modify the existing behavior if
the caller process is valid. Besides, the case of delivering new intent
uses the source record as calling identity too, so the case of starting
new activity should be consistent.

Also forbid attaching null application thread to avoid unexpected state
in process record.

Bug: 144285917
Test: bit FrameworksServicesTests:ActivityStackTests
Test: bit CtsSecurityTestCases:ActivityManagerTest# \
      testActivityManager_attachNullApplication
Merged-In: I60732f430256d37cb926d08d093581f051c4afed
Change-Id: I60732f430256d37cb926d08d093581f051c4afed
2020-03-11 06:28:55 +00:00
Automerger Merge Worker
85e7010138 [automerger skipped] Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into oc-dev am: 133e0a7eea am: 4c05b6281c am: d8c53a1c5e -s ours am: 7681dc175c -s ours am: 1a4d758e13
Change-Id: Ib6b2248c5742a1a7bf462529392fbab77ba840b6
2020-03-11 06:04:29 +00:00
Automerger Merge Worker
86ae0e5480 [automerger skipped] RESTRICT AUTOMERGE am: 0bb93d4b1c am: d6f71caed5 am: b1fd7196e1 -s ours am: 102e9c5905 -s ours am: 5fc924b419
Change-Id: I7773e3bf6e75248f352da3b2c7cc416ba6af6f95
2020-03-11 06:04:24 +00:00
Automerger Merge Worker
1a4d758e13 [automerger skipped] Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into oc-dev am: 133e0a7eea am: 4c05b6281c am: d8c53a1c5e -s ours am: 7681dc175c -s ours
am skip reason: subject contains skip directive

Change-Id: I942303ce75a7da38b24029b1f8792251687fddd2
2020-03-11 05:51:53 +00:00
Automerger Merge Worker
5fc924b419 [automerger skipped] RESTRICT AUTOMERGE am: 0bb93d4b1c am: d6f71caed5 am: b1fd7196e1 -s ours am: 102e9c5905 -s ours
am skip reason: subject contains skip directive

Change-Id: I5f657da8ba424cbddb58ed97bd89272dd667798f
2020-03-11 05:51:44 +00:00
Automerger Merge Worker
7681dc175c [automerger skipped] Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into oc-dev am: 133e0a7eea am: 4c05b6281c am: d8c53a1c5e -s ours
am skip reason: subject contains skip directive

Change-Id: I1ceb382406b7b39714eb04480df10b23edf42d1c
2020-03-11 05:39:09 +00:00
Automerger Merge Worker
102e9c5905 [automerger skipped] RESTRICT AUTOMERGE am: 0bb93d4b1c am: d6f71caed5 am: b1fd7196e1 -s ours
am skip reason: subject contains skip directive

Change-Id: I38384364e078bc7e2c33918fef02d8e76fe88309
2020-03-11 05:39:05 +00:00
Automerger Merge Worker
dfe83c3520 [automerger skipped] Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into oc-mr1-dev am: 3e2869e2c0 -s ours am: 72cb065b97 -s ours am: 43e857c5c2
Change-Id: Ibc0c561c040e64cade2b70b06cf904481b7b527b
2020-03-11 05:24:25 +00:00
Automerger Merge Worker
c30148fd79 [automerger skipped] Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into pi-dev am: 5c1ada4bb3 -s ours am: cee788f5bd
Change-Id: I37ff5074f456b99ce450bdb65da44a35b73077c1
2020-03-11 05:23:58 +00:00
Automerger Merge Worker
0651bb4f3a [automerger skipped] Merge "RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo" into pi-dev am: 321b255d93 -s ours am: 29043c67d8
Change-Id: Ic8b7eb2750fe284076e320b039f8f2b61ab40c06
2020-03-11 05:23:43 +00:00
Automerger Merge Worker
d8c53a1c5e Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into oc-dev am: 133e0a7eea am: 4c05b6281c
Change-Id: Ic62495057fe5008169cdad210635edd9fb0c3246
2020-03-11 05:23:32 +00:00
Automerger Merge Worker
b1fd7196e1 RESTRICT AUTOMERGE am: 0bb93d4b1c am: d6f71caed5
Change-Id: I7459b8f67496665d922e33b8fd8198b4519661e9
2020-03-11 05:23:25 +00:00
Automerger Merge Worker
43e857c5c2 [automerger skipped] Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into oc-mr1-dev am: 3e2869e2c0 -s ours am: 72cb065b97 -s ours
am skip reason: subject contains skip directive

Change-Id: I117494767666d32cae0e2c25ae3465988754ac15
2020-03-11 05:09:32 +00:00
Automerger Merge Worker
cee788f5bd [automerger skipped] Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into pi-dev am: 5c1ada4bb3 -s ours
am skip reason: subject contains skip directive

Change-Id: Ib2a356e3e264ba7b3118b1bd3857b92a1425f58f
2020-03-11 05:09:24 +00:00
Automerger Merge Worker
4c05b6281c Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into oc-dev am: 133e0a7eea
Change-Id: I9d5aa24139be221eee135a7d1bf1a98e57ae018c
2020-03-11 05:08:36 +00:00
Automerger Merge Worker
29043c67d8 [automerger skipped] Merge "RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo" into pi-dev am: 321b255d93 -s ours
am skip reason: subject contains skip directive

Change-Id: I9fdefbb508ebe16497b04f15e4a9894d9a376652
2020-03-11 05:08:34 +00:00
Automerger Merge Worker
d6f71caed5 RESTRICT AUTOMERGE am: 0bb93d4b1c
Change-Id: I7569bed67b835e6f9e86ca2b0dc1b3e6309545c7
2020-03-11 05:08:32 +00:00
Automerger Merge Worker
72cb065b97 [automerger skipped] Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into oc-mr1-dev am: 3e2869e2c0 -s ours
am skip reason: subject contains skip directive

Change-Id: Ib0708ca164443b156a31dd9082cf0ea259857c36
2020-03-11 05:08:26 +00:00
Automerger Merge Worker
4a1b488d5e Merge "RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo" into qt-dev am: 672530b42e
Change-Id: Ib2be8ddd2e5f708d86da136b32557382f5d16fee
2020-03-11 05:01:00 +00:00
Automerger Merge Worker
cfd3d38008 RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo am: 1ec2f403e9
Change-Id: Ideb6f9e221bbb04dcc2b88f51047090bb1cb1050
2020-03-11 05:00:57 +00:00
TreeHugger Robot
5c1ada4bb3 Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into pi-dev 2020-03-11 04:55:07 +00:00
TreeHugger Robot
3e2869e2c0 Merge "RESTRICT AUTOMERGE Block TYPE_PRESENTATION windows on default display" into oc-mr1-dev 2020-03-11 04:53:42 +00:00