OSDN Git Service

android-x86/frameworks-base.git
5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Bryan Ferris [Wed, 26 Jun 2019 02:55:18 +0000 (19:55 -0700)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage skipped: bab818fd4c skipped: d33940512a skipped: 4278315b95 skipped: a284320118 skipped: 14b074ddfe am: b16bfc06a0 -s ours am: a73dccba1f -s ours am: c640823563 -s ours
am: a6970095ee -s ours
am skip reason: subject contains skip directive

Change-Id: I3ff97a0322729e961361c4bf840db468d88c2553

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Bryan Ferris [Wed, 26 Jun 2019 02:54:32 +0000 (19:54 -0700)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provided by PendingIntentRecord#sendInner() am: 13a804ee27 -s ours am: 73683643a8 -s ours am: a7d55adc89 -s ours
am: 9eff11ebb1 -s ours
am skip reason: subject contains skip directive

Change-Id: Ic37556cb1dbdb7dfbd58109ca9e96eb14a5e718c

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Bryan Ferris [Wed, 26 Jun 2019 02:19:53 +0000 (19:19 -0700)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage skipped: bab818fd4c skipped: d33940512a skipped: 4278315b95 skipped: a284320118 skipped: 14b074ddfe am: b16bfc06a0 -s ours am: a73dccba1f -s ours
am: c640823563 -s ours
am skip reason: subject contains skip directive

Change-Id: If1f805aea00b0a7dfe8f937af9f5274d7adfb8aa

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Bryan Ferris [Wed, 26 Jun 2019 02:19:22 +0000 (19:19 -0700)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provided by PendingIntentRecord#sendInner() am: 13a804ee27 -s ours am: 73683643a8 -s ours
am: a7d55adc89 -s ours
am skip reason: subject contains skip directive

Change-Id: I8fc565a08e9c3ed5709550bd347cca122c0d91e8

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Bryan Ferris [Wed, 26 Jun 2019 02:03:44 +0000 (19:03 -0700)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage skipped: bab818fd4c skipped: d33940512a skipped: 4278315b95 skipped: a284320118 skipped: 14b074ddfe am: b16bfc06a0 -s ours
am: a73dccba1f -s ours
am skip reason: change_id I0ef42c2f89b537a720f1ad5aefac756b0ccac52e with SHA1 216f65bf60 is in history

Change-Id: Iec15b46b0a2ac8c5af6e199021fdd4efb2c843c4

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Bryan Ferris [Wed, 26 Jun 2019 02:03:23 +0000 (19:03 -0700)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provided by PendingIntentRecord#sendInner() am: 13a804ee27 -s ours
am: 73683643a8 -s ours
am skip reason: change_id I0ef42c2f89b537a720f1ad5aefac756b0ccac52e with SHA1 216f65bf60 is in history

Change-Id: I84997bae1ac598cc018fd9cfe39c8b06f6800e61

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Bryan Ferris [Wed, 26 Jun 2019 01:40:56 +0000 (18:40 -0700)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage skipped: bab818fd4c skipped: d33940512a skipped: 4278315b95 skipped: a284320118 skipped: 14b074ddfe
am: b16bfc06a0 -s ours
am skip reason: change_id I0ef42c2f89b537a720f1ad5aefac756b0ccac52e with SHA1 216f65bf60 is in history

Change-Id: I5715e9f87cca3e468764468542204b254150630f

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Bryan Ferris [Wed, 26 Jun 2019 01:39:21 +0000 (18:39 -0700)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provided by PendingIntentRecord#sendInner()
am: 13a804ee27 -s ours
am skip reason: change_id I0ef42c2f89b537a720f1ad5aefac756b0ccac52e with SHA1 216f65bf60 is in history

Change-Id: I7a716f77e85190143043e1a054e66226d3365601

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Android Build Merger (Role) [Wed, 26 Jun 2019 00:48:49 +0000 (00:48 +0000)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage skipped: bab818fd4c skipped: d33940512a skipped: 4278315b95 skipped: a284320118 skipped: 14b074ddfe

Change-Id: I8f80b0babe463c6be9b3dc337921edc2fea55431

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Android Build Merger (Role) [Wed, 26 Jun 2019 00:48:47 +0000 (00:48 +0000)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage skipped: bab818fd4c skipped: d33940512a skipped: 4278315b95 skipped: a284320118

Change-Id: I8b67d639193d3546a63fc3b526353de5cafb4fb3

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Android Build Merger (Role) [Wed, 26 Jun 2019 00:48:44 +0000 (00:48 +0000)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage skipped: bab818fd4c skipped: d33940512a skipped: 4278315b95

Change-Id: If688033850b010958ba8795c2a85f4f060fccbb8

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Android Build Merger (Role) [Wed, 26 Jun 2019 00:48:41 +0000 (00:48 +0000)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage skipped: bab818fd4c skipped: d33940512a

Change-Id: I8cd17220b0f8f8a8fa88c97d82272f3c2b06fd85

5 years ago[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivit...
Android Build Merger (Role) [Wed, 26 Jun 2019 00:48:38 +0000 (00:48 +0000)]
[automerger skipped] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage skipped: bab818fd4c

Change-Id: I0a070b8406a51759c3dbf2dbe291be2ec0913660

5 years agoMerge "Set LEGACY_STORAGE only from READ_EXTERNAL_STORAGE" into qt-dev
TreeHugger Robot [Tue, 25 Jun 2019 23:01:34 +0000 (23:01 +0000)]
Merge "Set LEGACY_STORAGE only from READ_EXTERNAL_STORAGE" into qt-dev

5 years ago[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivit...
Bryan Ferris [Tue, 21 May 2019 19:38:19 +0000 (12:38 -0700)]
[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage

Previously startActivity would assume that the system was the calling user when
startActivityInPackage was called. Now the uid of the calling application is
forwarded by the system.

Test: manual; we added logging statements to check the value of realCallingUid
when launching the calendar app from the calendar widget and verified that it
was the calendar uid rather than the system uid.

Bug: 123013720
Change-Id: I0ef42c2f89b537a720f1ad5aefac756b0ccac52e
Merged-In: I0ef42c2f89b537a720f1ad5aefac756b0ccac52e

5 years ago[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provided by...
Bryan Ferris [Tue, 21 May 2019 19:38:19 +0000 (12:38 -0700)]
[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provided by PendingIntentRecord#sendInner()

Previously we'd ignore realCallingPid and realCallingUid that
PendingIntentRecord#sendInner() provided to startActivityInPackage().
Now we correctly pass it on, preserving past behaviour if none
provided.

Test: manual; we added logging statements to check the value of realCallingUid
in startActivitiesMayWait when launching the calendar app from the calendar widget
and verified that it was the calendar uid rather than the system uid.

Bug: 123013720
Change-Id: I0ef42c2f89b537a720f1ad5aefac756b0ccac52e
Merged-In: I0ef42c2f89b537a720f1ad5aefac756b0ccac52e

5 years agoMerge "Catch all exceptions in onFrameDraw" into qt-dev
Winson Chung [Tue, 25 Jun 2019 22:07:44 +0000 (22:07 +0000)]
Merge "Catch all exceptions in onFrameDraw" into qt-dev

5 years agoFixed screen decor layout frames
chaviw [Fri, 21 Jun 2019 00:09:53 +0000 (17:09 -0700)]
Fixed screen decor layout frames

The initial frames for the screen decor were set to the dock frame. This
is incorrect because it incorporates the status bar, preventing
the frame from starting at the corners. Instead, set the frame to
unrestricted to allow frames in the status bar region.

This bug was introduced with the refactor ag/4525486

Fixes: 135706131
Test: No visible change on phone. Fixes issue with auto
Test: DisplayPolicyLayoutTests#testScreenDecorWindows
Change-Id: I6782a3585252df505b43d3e706b0332c609c7414

5 years ago[automerger skipped] Merge changes from topic "bp-real-calling-(p|u)id-merge-first...
Bryan Ferris [Tue, 25 Jun 2019 21:46:37 +0000 (14:46 -0700)]
[automerger skipped] Merge changes from topic "bp-real-calling-(p|u)id-merge-first" into oc-dev am: 46c0bc9407 am: 752d4f8e96 -s ours am: 4a115b747b -s ours
am: 9c0efabb3a -s ours
am skip reason: change_id I0ef42c2f89b537a720f1ad5aefac756b0ccac52e with SHA1 f5e5af7f3d is in history

Change-Id: I11efe1d70dd1b943f03984ad8187e8c62fef9494

5 years ago[automerger skipped] [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid...
Bryan Ferris [Tue, 25 Jun 2019 21:45:53 +0000 (14:45 -0700)]
[automerger skipped] [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60 am: 0984de50e3 am: 36fdca0a65 skipped: 37ce2010d9 am: 51bb716332 am: ff8be5d87a -s ours am: dcfb327071 -s ours
am: 5d0bf5af37 -s ours
am skip reason: subject contains skip directive

Change-Id: I201e44fe5dac5340b6fceb40b6b82284fc9b67df

5 years agoMerge "Fixed autofill compat mode regression caused by DecorContext" into qt-dev
TreeHugger Robot [Tue, 25 Jun 2019 21:32:01 +0000 (21:32 +0000)]
Merge "Fixed autofill compat mode regression caused by DecorContext" into qt-dev

5 years ago[automerger skipped] Merge changes from topic "bp-real-calling-(p|u)id-merge-first...
Bryan Ferris [Tue, 25 Jun 2019 21:18:25 +0000 (14:18 -0700)]
[automerger skipped] Merge changes from topic "bp-real-calling-(p|u)id-merge-first" into oc-dev am: 46c0bc9407 am: 752d4f8e96 -s ours
am: 4a115b747b -s ours
am skip reason: change_id I0ef42c2f89b537a720f1ad5aefac756b0ccac52e with SHA1 f5e5af7f3d is in history

Change-Id: I8c930161bbda0cee1ca364852d5c358930106b07

5 years ago[automerger skipped] [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid...
Bryan Ferris [Tue, 25 Jun 2019 21:18:01 +0000 (14:18 -0700)]
[automerger skipped] [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60 am: 0984de50e3 am: 36fdca0a65 skipped: 37ce2010d9 am: 51bb716332 am: ff8be5d87a -s ours
am: dcfb327071 -s ours
am skip reason: subject contains skip directive

Change-Id: I97c51aa6973d9b89e304385e2e082b8d1689e279

5 years ago[automerger skipped] Merge changes from topic "bp-real-calling-(p|u)id-merge-first...
Bryan Ferris [Tue, 25 Jun 2019 20:32:26 +0000 (13:32 -0700)]
[automerger skipped] Merge changes from topic "bp-real-calling-(p|u)id-merge-first" into oc-dev am: 46c0bc9407
am: 752d4f8e96 -s ours
am skip reason: change_id I0ef42c2f89b537a720f1ad5aefac756b0ccac52e with SHA1 f5e5af7f3d is in history

Change-Id: I309479f61253fa6cefec4377e000a3ab173a39c0

5 years ago[automerger skipped] [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid...
Bryan Ferris [Tue, 25 Jun 2019 20:32:03 +0000 (13:32 -0700)]
[automerger skipped] [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60 am: 0984de50e3 am: 36fdca0a65 skipped: 37ce2010d9 am: 51bb716332
am: ff8be5d87a -s ours
am skip reason: change_id I0ef42c2f89b537a720f1ad5aefac756b0ccac52e with SHA1 f5e5af7f3d is in history

Change-Id: I730d970d5b50cf8b4b0770da8ec22534a9e14a58

5 years agoMerge "Allow trust agents to actively unlock for automotive." into qt-dev
TreeHugger Robot [Tue, 25 Jun 2019 20:12:04 +0000 (20:12 +0000)]
Merge "Allow trust agents to actively unlock for automotive." into qt-dev

5 years agoMerge "[DO NOT MERGE] Don't throw from PooledLambdaImpl#toString" into qt-dev
Eugene Susla [Tue, 25 Jun 2019 19:52:48 +0000 (19:52 +0000)]
Merge "[DO NOT MERGE] Don't throw from PooledLambdaImpl#toString" into qt-dev

5 years ago[automerger skipped] Merge "[RESTRICT AUTOMERGE] Pass correct realCallingUid to start...
Bryan Ferris [Tue, 25 Jun 2019 19:41:59 +0000 (12:41 -0700)]
[automerger skipped] Merge "[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provided by PendingIntentRecord#sendInner()" into oc-mr1-dev am: 97111a1cb6 -s ours
am: 1a3f859c78 -s ours
am skip reason: subject contains skip directive

Change-Id: I7c869cb79734200a9bf797db5babac76e3d4971c

5 years ago[automerger skipped] Merge "[RESTRICT AUTOMERGE] Pass correct realCallingUid to start...
Bryan Ferris [Tue, 25 Jun 2019 19:37:25 +0000 (12:37 -0700)]
[automerger skipped] Merge "[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provided by PendingIntentRecord#sendInner()" into pi-dev
am: 138f85570c -s ours
am skip reason: subject contains skip directive

Change-Id: I6a094762a2cedb2aeba013bbd2a52adedac65963

5 years agoMerge changes from topic "bp-real-calling-(p|u)id-merge-first" into oc-dev
Bryan Ferris [Tue, 25 Jun 2019 19:33:43 +0000 (12:33 -0700)]
Merge changes from topic "bp-real-calling-(p|u)id-merge-first" into oc-dev
am: 46c0bc9407

Change-Id: I9640adc59d47dbbb36183073a1c6bc2d0624d893

5 years ago[automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity()...
Bryan Ferris [Tue, 25 Jun 2019 19:33:37 +0000 (12:33 -0700)]
[automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60 am: 0984de50e3 am: 36fdca0a65 skipped: 37ce2010d9
am: 51bb716332

Change-Id: I163568da871059effe896507717480b61478797b

5 years ago[automerger skipped] Merge "[RESTRICT AUTOMERGE] Pass correct realCallingUid to start...
Bryan Ferris [Tue, 25 Jun 2019 19:10:26 +0000 (12:10 -0700)]
[automerger skipped] Merge "[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provided by PendingIntentRecord#sendInner()" into oc-mr1-dev
am: 97111a1cb6 -s ours
am skip reason: subject contains skip directive

Change-Id: I5210f8aed11e5b43bc09ce61f91ea399faa3dc4a

5 years agoMerge "Sharesheet: Make max shortcut targets configurable" into qt-dev
TreeHugger Robot [Tue, 25 Jun 2019 19:04:26 +0000 (19:04 +0000)]
Merge "Sharesheet: Make max shortcut targets configurable" into qt-dev

5 years agoFixed autofill compat mode regression caused by DecorContext
Adam He [Tue, 25 Jun 2019 18:40:57 +0000 (11:40 -0700)]
Fixed autofill compat mode regression caused by DecorContext

Fixes: 135038324
Test: manual verification
Test: atest CtsAutoFillServiceTestCases
Change-Id: Iab32c24fdd9ad02308e79652422d1c4965be8e7c

5 years agoMerge changes from topic "bp-real-calling-(p|u)id-merge-first" into oc-dev
Bryan Ferris [Tue, 25 Jun 2019 18:36:14 +0000 (18:36 +0000)]
Merge changes from topic "bp-real-calling-(p|u)id-merge-first" into oc-dev

* changes:
  [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60 am: 0984de50e3 am: 36fdca0a65 skipped: 37ce2010d9
  [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60 am: 0984de50e3 am: 36fdca0a65
  [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60 am: 0984de50e3
  [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60
  [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage

5 years agoMerge changes from topic "bp-real-calling-(p|u)id-merge-first" into nyc-mr2-dev
Bryan Ferris [Tue, 25 Jun 2019 18:36:14 +0000 (18:36 +0000)]
Merge changes from topic "bp-real-calling-(p|u)id-merge-first" into nyc-mr2-dev

* changes:
  [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60 am: 0984de50e3 am: 36fdca0a65
  [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60 am: 0984de50e3
  [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60
  [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage

5 years agoMerge changes from topic "bp-real-calling-(p|u)id-merge-first" into cw-f-dev
Bryan Ferris [Tue, 25 Jun 2019 18:36:14 +0000 (18:36 +0000)]
Merge changes from topic "bp-real-calling-(p|u)id-merge-first" into cw-f-dev

* changes:
  [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60 am: 0984de50e3
  [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60
  [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage

5 years agoMerge changes from topic "bp-real-calling-(p|u)id-merge-first" into nyc-mr1-dev
Bryan Ferris [Tue, 25 Jun 2019 18:36:14 +0000 (18:36 +0000)]
Merge changes from topic "bp-real-calling-(p|u)id-merge-first" into nyc-mr1-dev

* changes:
  [automerger] [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage am: 216f65bf60
  [RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage

5 years agoMerge "[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from start...
Bryan Ferris [Tue, 25 Jun 2019 18:36:14 +0000 (18:36 +0000)]
Merge "[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() from startActivityInPackage" into nyc-dr1-dev

5 years agoMerge "[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provide...
Bryan Ferris [Tue, 25 Jun 2019 18:36:14 +0000 (18:36 +0000)]
Merge "[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provided by PendingIntentRecord#sendInner()" into oc-mr1-dev

5 years agoMerge "[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provide...
Bryan Ferris [Tue, 25 Jun 2019 18:36:14 +0000 (18:36 +0000)]
Merge "[RESTRICT AUTOMERGE] Pass correct realCallingUid to startActivity() if provided by PendingIntentRecord#sendInner()" into pi-dev

5 years agoMerge "Accept all system packages as supported home apps for gesture nav" into qt-dev
Mehdi Alizadeh [Tue, 25 Jun 2019 18:13:54 +0000 (18:13 +0000)]
Merge "Accept all system packages as supported home apps for gesture nav" into qt-dev

5 years agoMerge "Revert "Reland "Prevent dismissing starting window when reopening app""" into...
TreeHugger Robot [Tue, 25 Jun 2019 18:05:54 +0000 (18:05 +0000)]
Merge "Revert "Reland "Prevent dismissing starting window when reopening app""" into qt-dev

5 years ago[DO NOT MERGE] Don't throw from PooledLambdaImpl#toString
Eugene Susla [Sat, 22 Jun 2019 01:23:59 +0000 (18:23 -0700)]
[DO NOT MERGE] Don't throw from PooledLambdaImpl#toString

Bug: 134594642
Test: presubmit
Change-Id: Ia0834a76e7ae9a222ec2698dcd989317bb20f2a0
(cherry picked from commit 7f000e1dd942d492289fe7c447ed64562ed15bed)

5 years agoAllow trust agents to actively unlock for automotive.
Anthony Chen [Tue, 25 Jun 2019 16:50:56 +0000 (09:50 -0700)]
Allow trust agents to actively unlock for automotive.

This CL creates an exception for the default behavior of trust agents.

After b/120871688, trust agents can only extend unlock. However,
automotive still requires active unlock for its feature set.

Fixes: 135931998
Test: Verify that an enrolled trust agent can dismiss the lock screen
on automotive.

Change-Id: Ie7c411ac2bfac9ba00c095532d6788d9e2e7af2f

5 years agoSet LEGACY_STORAGE only from READ_EXTERNAL_STORAGE
Philip P. Moltmann [Tue, 25 Jun 2019 15:41:51 +0000 (08:41 -0700)]
Set LEGACY_STORAGE only from READ_EXTERNAL_STORAGE

Not from WRITE_EXTERNAL_STORAGE. Otherwise it is not clear what happens
if one of the permissions is white-listed and one not. This can lead to
a loop where we try to set LEGACY_STORAGE to two different values.

Fixes: 135763654135742960
Bug: 135933014
Test: atest RestrictedPermissionsTest
Change-Id: I35883f12525360fd7f760750505a27644342955c

5 years agoMerge "Camera: block session init callback until ctor returns" into qt-dev
Yin-Chia Yeh [Tue, 25 Jun 2019 16:26:54 +0000 (16:26 +0000)]
Merge "Camera: block session init callback until ctor returns" into qt-dev

5 years agoMerge "Revert "Clear transitions for app windows display change."" into qt-dev
David Nelloms [Tue, 25 Jun 2019 16:12:54 +0000 (16:12 +0000)]
Merge "Revert "Clear transitions for app windows display change."" into qt-dev

5 years agoRevert "Clear transitions for app windows display change."
David Nelloms [Tue, 25 Jun 2019 16:03:57 +0000 (16:03 +0000)]
Revert "Clear transitions for app windows display change."

This reverts commit 110ed21087eb9993835d887d33f4e1fb05fa86b8.

Reason for revert: CTS failure b/135655256

Bug: 135655256
Bug: 128449959

Change-Id: I9b36d34193e1c9e228be609a7b10457392fd6aa3

5 years agoRevert "Reland "Prevent dismissing starting window when reopening app""
Jorim Jaggi [Tue, 25 Jun 2019 15:26:49 +0000 (17:26 +0200)]
Revert "Reland "Prevent dismissing starting window when reopening app""

This reverts commit be71ed8a8e2ea302abbd4a5a0e8b5adc53449e67.

Causes various issues. Out of time for Q to investigate and fix.

Fixes: 135706138
Fixes: 135661232
Fixes: 135976008
Fixes: 135921478
Fixes: 135780312

Bug: 134561008
Change-Id: Ifb7b1fe2b189649d320516e70368625c903debea

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Tue, 25 Jun 2019 14:46:02 +0000 (14:46 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoCatch all exceptions in onFrameDraw
Jorim Jaggi [Tue, 25 Jun 2019 13:36:46 +0000 (15:36 +0200)]
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

5 years agoFix leak of DhcpServer on tethering stop error
Remi NGUYEN VAN [Tue, 25 Jun 2019 08:33:52 +0000 (01:33 -0700)]
Fix leak of DhcpServer on tethering stop error

Tactical, minimal fix to make sure the DhcpServer is stopped when
disabling tethering. The current code may throw if the interface is gone
when calling mNMService.setInterfaceConfig() on teardown. Make sure DHCP
is stopped regardless of what happens.

A longer term fix will be to figure out the right flow to teardown the
interface and avoid errors on setInterfaceConfig().

Bug: 124520692
Test: Manual: no more socket leaked when stopping USB tethering
Merged-In: Ie73481e8d91ce43e4939f8c31a9ce431e382c6d9
(cherry picked from commit fe1ad3d0b86e1315906e18e33b65df2481eea63d)

Change-Id: Ia80761cb42dc62b14128fc60009be82ae9a008da

5 years agoMerge "Read process allocation sizes on system ion heap" into qt-dev
Rafal Slawik [Tue, 25 Jun 2019 08:53:54 +0000 (08:53 +0000)]
Merge "Read process allocation sizes on system ion heap" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 25 Jun 2019 08:07:53 +0000 (01:07 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Idffc307384b04773b54272c4849442c21273482d

5 years agoMerge "Reduce long press timeout on edge back gesture" into qt-dev
TreeHugger Robot [Tue, 25 Jun 2019 07:46:27 +0000 (07:46 +0000)]
Merge "Reduce long press timeout on edge back gesture" into qt-dev

5 years agoMerge "Skip redrawing the bars if the surface aspect ratio matches" into qt-dev
Winson Chung [Tue, 25 Jun 2019 04:10:14 +0000 (04:10 +0000)]
Merge "Skip redrawing the bars if the surface aspect ratio matches" into qt-dev

5 years agoMerge "Request high accuracy fix for DBH requests from GNSS HAL" into qt-dev
Anil Admal [Tue, 25 Jun 2019 02:34:37 +0000 (02:34 +0000)]
Merge "Request high accuracy fix for DBH requests from GNSS HAL" into qt-dev

5 years agoAccept all system packages as supported home apps for gesture nav
Mehdi Alizadeh [Fri, 21 Jun 2019 22:38:40 +0000 (15:38 -0700)]
Accept all system packages as supported home apps for gesture nav

Bug: 135769778
Test: Manual test during phone setup
Change-Id: I24d414820b0f3d8f5878ca73206844966a6035cf

5 years agoMerge "Adds metrics categories for gesture navigation dialogs" into qt-dev
Mehdi Alizadeh [Tue, 25 Jun 2019 00:09:07 +0000 (00:09 +0000)]
Merge "Adds metrics categories for gesture navigation dialogs" into qt-dev

5 years agoRequest high accuracy fix for DBH requests from GNSS HAL
Anil Admal [Thu, 20 Jun 2019 19:00:16 +0000 (12:00 -0700)]
Request high accuracy fix for DBH requests from GNSS HAL

The GnssLocationProvider requests a LOW_POWER fix from fused
location provider for DBH requests and uses a short request
duration of 10 secs. Change it to request a high accuracy fix
and use a larger request duration for emergency requests.

Fixes: 135458882
Test: Simulated E911 DBH request from HAL and verified that
      a location is injected to HAL when location settings
      are OFF/ON. Tested with and without GPS signal.

Change-Id: Ia40bff4cbf8574b30dfe65704d33c716a317c66d

5 years agoSkip redrawing the bars if the surface aspect ratio matches
Winson Chung [Sun, 23 Jun 2019 20:35:41 +0000 (13:35 -0700)]
Skip redrawing the bars if the surface aspect ratio matches

- In this case, just scale the child window up to match the frame

Bug: 135755182
Test: atest TaskSnapshotSurfaceTest
Change-Id: I0d34d2f82aaf65459c60748b735cd01847ade411

5 years agoMerge "Keylayout for xbox pdp controller" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 22:41:55 +0000 (22:41 +0000)]
Merge "Keylayout for xbox pdp controller" into qt-dev

5 years agoMerge "Reverted to the old logic for APN selection" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 22:34:53 +0000 (22:34 +0000)]
Merge "Reverted to the old logic for APN selection" into qt-dev

5 years agoRead process allocation sizes on system ion heap
Rafal Slawik [Wed, 19 Jun 2019 16:59:50 +0000 (17:59 +0100)]
Read process allocation sizes on system ion heap

We are planning to use this to attribute low-memory kills to processes.

Assume that each represents an allocation. Compute values for all fields
in the ProcessSystemIonHeapSize atom.

This code is intented to run only on userdebug or eng builds and it has
to be enabled via a statsd metric from the server only for devices with
required SELinux policies.

It extends SystemIonHeapSize atom to provide per-process ion allocations
attribution.

Bug: 130526489
Test: atest MemoryStatUtilTest
Test: statsd_testdrive returns non-zero values
Change-Id: I1c1f31e2739dc493e8f4b3f47d73f5bbaadc8bdf
(cherry picked from commit 5fe706c7db35e3709375acf16212b74b4e11fe22)

5 years agoMerge "Add atom for per-process system ion heap size" into qt-dev
Rafal Slawik [Mon, 24 Jun 2019 22:15:57 +0000 (22:15 +0000)]
Merge "Add atom for per-process system ion heap size" into qt-dev

5 years agoKeylayout for xbox pdp controller
Siarhei Vishniakou [Mon, 24 Jun 2019 21:23:53 +0000 (14:23 -0700)]
Keylayout for xbox pdp controller

Add layout for Xbox pdp controller

Test: tested with a custom app
Bug: 132451971
Change-Id: I35e0998e2643eae031141186637e5eb349334bcd

5 years agoMerge "Make RescueParty call vold directly" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 21:39:40 +0000 (21:39 +0000)]
Merge "Make RescueParty call vold directly" into qt-dev

5 years agoAdds metrics categories for gesture navigation dialogs
Mehdi Alizadeh [Fri, 21 Jun 2019 01:08:56 +0000 (18:08 -0700)]
Adds metrics categories for gesture navigation dialogs

Bug: 135211145
Test: Builds
Change-Id: I0bc0749bbbb9b78d3d125e1a0f1e9bc35b645db2

5 years agoMake RescueParty call vold directly
Daniel Rosenberg [Thu, 20 Jun 2019 22:15:58 +0000 (15:15 -0700)]
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

5 years agoMerge "Revert "libmedia_jni pulls in libsfplugin_ccodec"" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 19:52:28 +0000 (19:52 +0000)]
Merge "Revert "libmedia_jni pulls in libsfplugin_ccodec"" into qt-dev

5 years agoMerge "Keylayout for xbox controllers" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 19:40:19 +0000 (19:40 +0000)]
Merge "Keylayout for xbox controllers" into qt-dev

5 years agoMerge "Fix excessive entrance animation duration + delay" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 19:05:36 +0000 (19:05 +0000)]
Merge "Fix excessive entrance animation duration + delay" into qt-dev

5 years agoMerge "Remove WTF logging for non-expandable swiped children" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 19:03:48 +0000 (19:03 +0000)]
Merge "Remove WTF logging for non-expandable swiped children" into qt-dev

5 years agoMerge "Fix case of Dark theme" into qt-dev
Fabian Kozynski [Mon, 24 Jun 2019 19:03:16 +0000 (19:03 +0000)]
Merge "Fix case of Dark theme" into qt-dev

5 years agoRevert "libmedia_jni pulls in libsfplugin_ccodec"
Mikhail Naganov [Mon, 24 Jun 2019 18:48:51 +0000 (18:48 +0000)]
Revert "libmedia_jni pulls in libsfplugin_ccodec"

This reverts commit 16c0c46f208c2a6b4d321352fbc5fc6acff6261e.

Reason for revert: causes b/135763139 (volume adjustment for music does not work)

There is no clear explanation how this change breaks volume adjustment, but by bisection and by reverting the change locally it does somehow.

Bug: 133186424
Bug: 135763139
Change-Id: If6eed10f23c6b6006a6468c2a793230cd98c0501

5 years agoCamera: block session init callback until ctor returns
Yin-Chia Yeh [Mon, 24 Jun 2019 18:32:34 +0000 (11:32 -0700)]
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

5 years agoKeylayout for xbox controllers
Siarhei Vishniakou [Sat, 15 Jun 2019 00:19:29 +0000 (17:19 -0700)]
Keylayout for xbox controllers

Add layout for Xbox elite controller

Test: tested with a custom app
Bug: 132451971
Change-Id: I1c600bc2c41db9d79d7a4e184ef41abe2b5f860e

5 years agoMerge "Unregister listeners and reset wake lock" into qt-dev
Lucas Dupin [Mon, 24 Jun 2019 18:09:10 +0000 (18:09 +0000)]
Merge "Unregister listeners and reset wake lock" into qt-dev

5 years agoRemove WTF logging for non-expandable swiped children
Ned Burns [Fri, 21 Jun 2019 21:23:53 +0000 (17:23 -0400)]
Remove WTF logging for non-expandable swiped children

Having mixed views doesn't actually break anything.

Fixes: 135048434
Test: manual
Change-Id: I64a08dc257b8962cdde51e026c51eac02ab931e7

5 years agoMerge "Don't dismiss keyguard when enabling it" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 17:47:41 +0000 (17:47 +0000)]
Merge "Don't dismiss keyguard when enabling it" into qt-dev

5 years agoMerge "Render invocation lights as beziers, not circles" into qt-dev
James O'Leary [Mon, 24 Jun 2019 16:44:31 +0000 (16:44 +0000)]
Merge "Render invocation lights as beziers, not circles" into qt-dev

5 years agoSharesheet: Make max shortcut targets configurable
Matt Pietal [Mon, 24 Jun 2019 16:14:52 +0000 (12:14 -0400)]
Sharesheet: Make max shortcut targets configurable

Allow different values for different devices

Bug: 135617408
Test: Manual
Change-Id: I01c27834d6218b9f5502976ee2a561eb73c364fc

5 years agoUnregister listeners and reset wake lock
Lucas Dupin [Thu, 20 Jun 2019 21:07:57 +0000 (14:07 -0700)]
Unregister listeners and reset wake lock

The ContentProvider might be recreated by the system, so we it's
not necessarily a singleton. We need to cleanup listener registration
and alarms before reattributing the static variable.

Change-Id: I07aec96e77c67d96d31c7e38c85f5ce6f5ef2216
Merged-In: I9bc993f372a8c05258f1778eb3d415af04544714
Fixes: 135344397
Fixes: 135582651
Test: bind and unbind slice various times
Test: atest KeyguardSliceProviderTest

5 years agoFix case of Dark theme
Fabian Kozynski [Mon, 24 Jun 2019 13:52:41 +0000 (09:52 -0400)]
Fix case of Dark theme

Test: manual
Fixes: 135711083
Change-Id: Ie97422e25e0dffd500d31496a4114b81d1f7218a

5 years agoMerge "Don't update dark boot setting onStart" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 13:24:12 +0000 (13:24 +0000)]
Merge "Don't update dark boot setting onStart" into qt-dev

5 years agoAdd atom for per-process system ion heap size
Rafal Slawik [Mon, 17 Jun 2019 11:28:23 +0000 (12:28 +0100)]
Add atom for per-process system ion heap size

The pulling code will be added in the next commit.

Bug: 130526489
Test: statsd_testdrive
Change-Id: I0fea4b6a7a8dbbdc574fb342c1e07aa0165bf797
(cherry picked from commit 77987ed47f5a0c11052c9f33f1d7933ca60e50b5)

5 years agoMerge "Add anon RSS + swap metric" into qt-dev
Ioannis Ilkos [Mon, 24 Jun 2019 08:46:40 +0000 (08:46 +0000)]
Merge "Add anon RSS + swap metric" into qt-dev

5 years agoMerge "Do not allow adding custom Parcelable in Bundles" into qt-dev
Hyundo Moon [Mon, 24 Jun 2019 04:26:17 +0000 (04:26 +0000)]
Merge "Do not allow adding custom Parcelable in Bundles" into qt-dev

5 years agoMerge "Revert "Unregister listeners and reset wake lock"" into qt-dev
Chiayu Pei [Mon, 24 Jun 2019 04:19:13 +0000 (04:19 +0000)]
Merge "Revert "Unregister listeners and reset wake lock"" into qt-dev

5 years agoRevert "Unregister listeners and reset wake lock"
Chiayu Pei [Mon, 24 Jun 2019 01:46:28 +0000 (01:46 +0000)]
Revert "Unregister listeners and reset wake lock"

This reverts commit fe107a1621b98f8e9caa47b1e4e7ecbee00a2f88.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Id092c473a8300e014ccd4d941afa4afcdbbf48bc

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 23 Jun 2019 20:32:32 +0000 (20:32 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoRender invocation lights as beziers, not circles
James O'Leary [Fri, 21 Jun 2019 15:30:43 +0000 (15:30 +0000)]
Render invocation lights as beziers, not circles

Test: Verify WAI
Bug: 135669903
Change-Id: I8dd9f96179264b5a44a9446977ada1ed4ea8e3c8

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 23 Jun 2019 17:41:21 +0000 (17:41 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 23 Jun 2019 17:24:54 +0000 (17:24 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 23 Jun 2019 17:14:18 +0000 (17:14 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 23 Jun 2019 17:08:02 +0000 (10:08 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I488956188ed83fa8e73e5070f43fba1a3a347fbe

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 23 Jun 2019 13:50:20 +0000 (06:50 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia15027c4898fed1ed24e5a497e9712cc0cfb7cb3

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 23 Jun 2019 06:32:57 +0000 (23:32 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4ba148bb2885fc3a570b8ab2ccf22305dba04362

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 23 Jun 2019 06:22:29 +0000 (23:22 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Iee915acc4bdca36e87eb830d413e9452813fa8b4