Commit Graph

67434 Commits

Author SHA1 Message Date
Robert Carr
bdf5fecc10 SurfaceView: Correct coordinate space in windowPositionLostRT. am: 3387913237
am: d0c9771e49

Change-Id: I8cdb9f48a0c78e1c620b8e2c52a3dd7a45f8a90a
2016-09-07 19:34:49 +00:00
Robert Carr
d0c9771e49 SurfaceView: Correct coordinate space in windowPositionLostRT.
am: 3387913237

Change-Id: I7f28aab013bd6fe213a90e293664cc59ee6d23cf
2016-09-07 19:25:20 +00:00
Andreas Huber
29803deffc Adds framework support for hidl-gen Java backend. (to support structs)
am: 50546a98ed

Change-Id: I4940989950cbe201725b75b9b5095c12962b1444
2016-09-07 18:27:33 +00:00
Andreas Huber
36cda33a24 Add Bool* APIs to HwParcel
am: e1eb45d8d6

Change-Id: I93f9bfe4efb66957b259f0a3310a25c6eae3e4cb
2016-09-07 18:27:29 +00:00
Andreas Huber
93618c7d20 Support one-way methods in java support for hardware binder
am: 281ac40c97

Change-Id: I84cf39879ea0a6d5d488d0e414adefc8b5fc6e6b
2016-09-07 18:27:18 +00:00
Andreas Huber
c408429712 Initial commit of Java support for hardware binder
am: 7f5fcabacc

Change-Id: I8267679b52873da428a7223a47577ea19ceacbb2
2016-09-07 18:27:14 +00:00
Robert Carr
3387913237 SurfaceView: Correct coordinate space in windowPositionLostRT.
mWinFrame as set when returning from relayout will be in screen
space coordinates. repositionChild however expects coordinates relative to the
parent position (like relayout).

Bug: 31112993
Change-Id: Id4fcd7fcb771908e8a7db981207d19c99fb51b98
2016-09-07 11:07:18 -07:00
Andreas Huber
50546a98ed Adds framework support for hidl-gen Java backend. (to support structs)
Bug: 30575790
Change-Id: Ida30d8fe7a1b210e98f1a0ea5d429a0112f9ef3f
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-07 15:10:50 +02:00
Andreas Huber
e1eb45d8d6 Add Bool* APIs to HwParcel
Bug: 31045584
Change-Id: I202c4aa7caf92a4cd7e3a45ef6784638e41facc8
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-07 15:10:45 +02:00
Andreas Huber
281ac40c97 Support one-way methods in java support for hardware binder
Bug: 30922538
Change-Id: I5ff93126a29f6bff42dee3f9868fa794ca7c077f
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-07 15:10:35 +02:00
Andreas Huber
7f5fcabacc Initial commit of Java support for hardware binder
Change-Id: If1098ab921a11bae8eca2a70a3c3070e4daa0ea2
2016-09-07 15:10:30 +02:00
Chad Brubaker
94c395549a Avoid NPE on certificates that cannot be read am: 01e9682cab
am: 92a534325d

Change-Id: Ie650d94e36498c78ca7c2e49d75510966c351b16
2016-09-06 21:44:54 +00:00
Neil Fuller
ad54b35d6d Fix receive timeout on LocalSocket
am: 8d5ec8d7db

Change-Id: I463c1f7189b573fdbf9f0bf5001e6c626ea88197
2016-09-06 21:32:09 +00:00
Chad Brubaker
92a534325d Avoid NPE on certificates that cannot be read
am: 01e9682cab

Change-Id: I5dfc19b32cef8f87c04908d1116e7528ae9be87c
2016-09-06 21:30:43 +00:00
Calin Juravle
0bc450ac05 [RFC] Special case system apps for profile optimizations am: 08313b0d95
am: 788e111cba

Change-Id: I8466811b44b623e23117d6554e69cc80e2c4485f
2016-09-06 21:25:44 +00:00
Andreas Gampe
2a04b0876f Frameworks/base: Add new flow to OtaDexoptService am: d15300cf38
am: 32a092adf3

Change-Id: I7a49f0732cf24c2a86f798c6725a664e93092d7b
2016-09-06 21:25:36 +00:00
Andreas Gampe
82f8ebc2b7 Otadexopt: Expose progress percentage am: ff8ab4c9fa
am: 630a372a1d

Change-Id: I25937bf6a90076b37c5c322ccc8335fef3a9e6ee
2016-09-06 21:25:32 +00:00
Svetoslav Ganov
bcf846affe Properly close fd backing a MemoryIntArray
am: e257d6e167

Change-Id: I72d1c9b911dcfa32fb6174844a9a3940add9e3a7
2016-09-06 17:58:12 +00:00
Calin Juravle
08313b0d95 [RFC] Special case system apps for profile optimizations
If the OTA updates a system app which was previously preopted to a non-
preopted state the app might end up being verified at runtime. That's
because by default the apps are verify-profile but for preopted apps
there's no profile.

Do a hacky check to ensure that if we have no profiles (a reasonable
indication that before the OTA the app was preopted) system apps get
compiled with a non-profile filter (by default interpret-only).

Bug: 30032273
Test: Andreas "has verified that Calin's change to A/B works as expected
and promotes things like SystemUI to speed. From my side, that's
ready to be merged"

Change-Id: I7a052a8ea76cab7f649dc993237ea05534d6c4b9
(cherry picked from commit 0bd7762079)
2016-09-06 10:41:04 -07:00
Andreas Gampe
d15300cf38 Frameworks/base: Add new flow to OtaDexoptService
Add functionality to capture/intercept installd communication, and
use this to return the full communication for dexopt. These parameters
can be used to drive otapreopt_chroot directly.

Keep the old direct invocation alive until devices have transitioned
to a service that exposes this API.

In preparation for renaming of A/B OTA artifacts to include target
slot names.

Bug: 25612095
Bug: 28069686
Change-Id: I14728ee1266f3882cada8f08dd21891ed5f7a0cb
(cherry picked from commit cc241a580c)
2016-09-06 10:39:56 -07:00
Andreas Gampe
ff8ab4c9fa Otadexopt: Expose progress percentage
To be able to report progress of an A/B OTA dexopt, expose a
progress function that the script can query.

Bug: 25612095
Bug: 29223204
Change-Id: Ie8162946d18f6fa78649a40ad5d3949d31a181cd
(cherry picked from commit bf06232f4d)
2016-09-06 10:39:20 -07:00
Phil Weaver
6e56bb4c14 Stop double notifying a11y about Toasts. am: 532c7999c5
am: de13bcf08b

Change-Id: Ie3ed51a4fe4c6c818bc96e98c214ec7b610f507d
2016-09-06 16:46:46 +00:00
Phil Weaver
de13bcf08b Stop double notifying a11y about Toasts.
am: 532c7999c5

Change-Id: If8d025884b8a941386cd472403c1c93fee5a70af
2016-09-06 16:40:15 +00:00
Phil Weaver
85d18cce6d Merge "Stop double notifying a11y about Toasts." into nyc-mr1-dev 2016-09-06 16:33:42 +00:00
Svetoslav Ganov
bde1d3458f Prevent apps to overlay other apps via toast windows am: aa07653d2e
am: dea62c6f58

Change-Id: I7ee488e4ac0fc312405680d04a480d473c176ac5
2016-09-02 23:46:20 +00:00
Svetoslav Ganov
dea62c6f58 Prevent apps to overlay other apps via toast windows
am: aa07653d2e

Change-Id: I309615a989eade43401b086da42ff6522d000b68
2016-09-02 23:36:59 +00:00
Svetoslav Ganov
cbfd373d72 Merge "Prevent apps to overlay other apps via toast windows" into nyc-mr1-dev 2016-09-02 23:28:26 +00:00
Winson
2a4cd1518e Fixing issue with old tasks being visible in Overview am: b258f6a4bd
am: f4806c80ca

Change-Id: I87bb9656b8d766ea4b2763f529bbf1d8873479f4
2016-09-02 22:15:06 +00:00
Winson
f4806c80ca Fixing issue with old tasks being visible in Overview
am: b258f6a4bd

Change-Id: I27ba3d057147b5200ac75b9f079d26423c9d0b05
2016-09-02 22:08:33 +00:00
Winson Chung
a8c0fe6606 Merge "Fixing issue with old tasks being visible in Overview" into nyc-mr1-dev 2016-09-02 21:49:13 +00:00
Svetoslav Ganov
aa07653d2e Prevent apps to overlay other apps via toast windows
It was possible for apps to put toast type windows
that overlay other apps which toast winodws aren't
removed after a timeout.

Now for apps targeting SDK greater than N MR1 to add a
toast window one needs to have a special token. The token
is added by the notificatoion manager service only for
the lifetime of the shown toast and is then removed
including all windows associated with this token. This
prevents apps to add arbitrary toast windows.

Since legacy apps may rely on the ability to directly
add toasts we mitigate by allowing these apps to still
add such windows for unlimited duration if this app is
the currently focused one, i.e. the user interacts with
it then it can overlay itself, otherwise we make sure
these toast windows are removed after a timeout like
a toast would be.

We don't allow more that one toast window per UID being
added at a time which prevents 1) legacy apps to put the
same toast after a timeout to go around our new policy
of hiding toasts after a while; 2) modern apps to reuse
the passed token to add more than one window; Note that
the notification manager shows toasts one at a time.

bug:30150688

Change-Id: Ia1dae626bd9e22541be46edb072aa288eb1ae414
2016-09-02 14:00:07 -07:00
Chad Brubaker
01e9682cab Avoid NPE on certificates that cannot be read
Skip certificates in a DirectoryCertificateSource that cannot be read to
due IOExceptions or CertificateExceptions, this prevents a NPE but
connections will still fail due to the certificate being unusable and no
valid trust-anchor existing.

This also logs the error since this really shouldn't happen.
Bug: 29997695

Change-Id: I9f7327efc302a259fb951f1f61f7fc4d647821fa
2016-09-02 13:15:39 -07:00
Yohei Yukawa
cc2a206d92 Fix typos in JavaDoc for InputConnection am: 1ab959a6e0
am: 1a000651d5

Change-Id: Ia5dd58a4c85c871a3bae9536f6571fba9930e64a
2016-09-02 17:50:16 +00:00
Andreas Huber
9266f9928d Adds framework support for hidl-gen Java backend. (to support structs) (DO NOT MERGE)
Bug: 30575790
Change-Id: Ida30d8fe7a1b210e98f1a0ea5d429a0112f9ef3f
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-02 06:28:14 -07:00
Andreas Huber
86635bb45e Add Bool* APIs to HwParcel (DO NOT MERGE)
Bug: 31045584
Change-Id: I202c4aa7caf92a4cd7e3a45ef6784638e41facc8
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-02 06:28:14 -07:00
Andreas Huber
90349b3e11 Support one-way methods in java support for hardware binder (DO NOT MERGE)
Bug: 30922538
Change-Id: I5ff93126a29f6bff42dee3f9868fa794ca7c077f
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-02 06:28:14 -07:00
Andreas Huber
dab5fc65b9 Initial commit of Java support for hardware binder (DO NOT MERGE)
Change-Id: If1098ab921a11bae8eca2a70a3c3070e4daa0ea2
2016-09-02 06:28:14 -07:00
Yohei Yukawa
1a000651d5 Fix typos in JavaDoc for InputConnection
am: 1ab959a6e0

Change-Id: I8e945ed58761262ebe3b7521de1c4b701ab6e195
2016-09-02 00:21:37 +00:00
Yohei Yukawa
1ab959a6e0 Fix typos in JavaDoc for InputConnection
This CL fixes typos in JavaDoc for InputConnection.

This CL slso updates the content regarding a new API that was added in
API 25 [1][2].

 [1]: Iaadf934a997ffcd6000a516cc3c1873db56e60ad
      152944f490
 [2]: Ica1ba3154795c1bf44e140dfe639b299f83cd8af
      adebb52588

Bug: 31249896
Change-Id: Icafedb15943a84f8e5b03ef9eb3a50627d508bdd
2016-09-01 15:42:29 -07:00
Jeff Sharkey
d11c21f371 DO NOT MERGE. Clarify FileObserver docs for null value. am: c041f5a3b8
am: a341d70602

Change-Id: Ib737218df19aed7f09ba142cce4fc9c62edffd5d
2016-08-31 23:29:26 +00:00
Jeff Sharkey
a341d70602 DO NOT MERGE. Clarify FileObserver docs for null value.
am: c041f5a3b8

Change-Id: I3c0f0098eed321419c8d0e2a1a66c2bf380df8d1
2016-08-31 23:22:04 +00:00
Jeff Sharkey
c041f5a3b8 DO NOT MERGE. Clarify FileObserver docs for null value.
Change-Id: I7dc0b0d26220d6eb82f956a9860cfb6aeccfd12f
Test: none
Bug: 30511606
(cherry picked from commit 902316d553)
2016-08-31 21:42:54 +00:00
Robert Carr
0ceb3cd785 PopupWindow: Gravity fixes. am: 085160612d
am: a732ea6c1f

Change-Id: Ide4ccd6cbfef913392a46b89486de064e0196ad6
2016-08-31 19:31:48 +00:00
Robert Carr
a732ea6c1f PopupWindow: Gravity fixes.
am: 085160612d

Change-Id: Ia9477ead7cf1cdd942817f2f427053c6187a1cdf
2016-08-31 19:26:55 +00:00
Rob Carr
8330a91def Merge "PopupWindow: Gravity fixes." into nyc-mr1-dev 2016-08-31 19:21:52 +00:00
Android Build Merger (Role)
4c8c594996 Merge "Call Debug.getPss without a lock held am: 10e8f16add am: f10d31f5d0" into nyc-mr1-dev-plus-aosp 2016-08-31 18:31:14 +00:00
Amith Yamasani
65fdd196fa Call Debug.getPss without a lock held am: 10e8f16add
am: f10d31f5d0

Change-Id: I037274eab1841fb57440bbd13a5f290e079736dd
2016-08-31 18:29:35 +00:00
Jakub Pawlowski
8348bd2317 Merge "Separate advertiser from GATT client (1/4)" am: 5f87c4539a am: 40a16ea242
am: 9f341e4e49

Change-Id: Ic3461b98449636cfc125890f255b1332d0ef5132
2016-08-31 18:28:45 +00:00
Jakub Pawlowski
9f341e4e49 Merge "Separate advertiser from GATT client (1/4)" am: 5f87c4539a
am: 40a16ea242

Change-Id: I0d08f623e78fdd779b39083d0da3a45aee72ff3c
2016-08-31 18:21:00 +00:00
Jakub Pawlowski
5f87c4539a Merge "Separate advertiser from GATT client (1/4)" 2016-08-31 18:05:27 +00:00