Commit Graph

10157 Commits

Author SHA1 Message Date
TreeHugger Robot
ab620613b9 Merge "Fixes grammatical error in InputMethodManager doc" 2017-06-27 19:54:23 +00:00
Nick Felker
8efc3ee3ee Fixes grammatical error in InputMethodManager doc
Fixes: 29645208
Test: This is not a code change, so tests should be unaffected.
Change-Id: I8b76166f3a7f1c825dc9725f6d7fd8e8c96fe410
2017-06-27 17:59:36 +00:00
Jeff Sharkey
5ab0243330 Only require that system UIDs tag their sockets.
Apps with a normal UID are typically isolated enough to not require
socket tagging; we're mostly interested in tracking down internal
UIDs that have lots of code sharing the same UID.

Also fix up everyone doing manual string checks of Build.TYPE, since
we now have first-class fields for those.

Bug: 38126076
Test: builds, boots
Change-Id: I3a40348196bd8459289f2b9355d9783a07f1e7dd
2017-06-27 11:11:06 -06:00
Rob Carr
7ac7a1ea6d Merge "SurfaceView: Fix positioning issue when toggling visibility." into oc-dev am: 70f1565b55 am: bf78acda44
am: 90c4bbbd1a

Change-Id: I200243684a5a29f9f407d45a2826236bb32056c0
2017-06-21 03:12:55 +00:00
Rob Carr
90c4bbbd1a Merge "SurfaceView: Fix positioning issue when toggling visibility." into oc-dev am: 70f1565b55
am: bf78acda44

Change-Id: I98b615cd1f52385bb3cdbc4dcc287911f3eabad0
2017-06-21 02:50:51 +00:00
Rob Carr
70f1565b55 Merge "SurfaceView: Fix positioning issue when toggling visibility." into oc-dev 2017-06-21 01:47:58 +00:00
TreeHugger Robot
02d082dd0b Merge "Add Window.isWideColorGamut()" 2017-06-21 01:02:56 +00:00
Romain Guy
f979298b48 Merge "Only enable wide color gamut support on capable devices" into oc-dr1-dev am: 8d4ff1b34f
am: b11cf2d2e5

Change-Id: I6a8fe23b0c1c81142611fe5b0867b8d7f04a4e9b
2017-06-21 00:00:56 +00:00
TreeHugger Robot
8d4ff1b34f Merge "Only enable wide color gamut support on capable devices" into oc-dr1-dev 2017-06-20 23:41:39 +00:00
Romain Guy
adae59b020 Add Window.isWideColorGamut()
This API returns true when all the following conditions are met:
- The app has requested the window to be in wide color gamut mode
- The display has a wide color gamut
- The device supports wide color gamut rendering

Bug: 62832666
Test: CtsColorModeTest
Change-Id: Idae1527b88959689bb637b6dd4db756d09fabe77
2017-06-20 16:01:57 -07:00
Bryce Lee
4e0acc40f2 Merge "Limit creating new surface for legacy apps to size changes." into oc-dev am: d523125679 am: 80e1d8eb9a
am: 9a5595ef32

Change-Id: I7b59e572542449b54c835688cf8c9c0e2e5c74b0
2017-06-20 22:48:15 +00:00
Bryce Lee
80e1d8eb9a Merge "Limit creating new surface for legacy apps to size changes." into oc-dev
am: d523125679

Change-Id: Ie1c199bbc721f282dc0de788d36481fef9530460
2017-06-20 22:17:39 +00:00
Robert Carr
ad3a493106 SurfaceView: Fix positioning issue when toggling visibility.
There is an issue (seemingly preexisting) with getPositionInWindow
after toggling view visibility. We see it when showing a view,
hiding it, and then showing it again. At this point we end up
with this call-stack:
   SurfaceView#setVisibility->SurfaceView#updateSurface
   ->View#getPositionInWindow
and getPositionInWindow fills in the wrong values. This newly discovered
bug is tracked as 62839113.

In a second bug, introduced in the SurfaceView refactoring,
we are not appropriately clearing the last RenderThread reported
position when toggling visibility. This means that even after the
setVisibility call when getPositionInWindow begins returning
the correct values, we don't update the position. This CL fixes
that and fixes 62653411 as a result. However we still have a flicker
as we did in N as the initial position is wrong.

Test: Manual from bug, go/wm-smoke
Change-Id: I1037b8dfdb343f9ce8c8616eb9197c6d039ed133
Fixes: 62653411
Bug: 62839113
2017-06-20 14:55:21 -07:00
Romain Guy
e89d0bba66 Only enable wide color gamut support on capable devices
Bug: 62827458
Test: CtsColorModeTests, more tests going in MR1
Change-Id: Idca2804b04ae6bdcbec6bcda6fd74dc6ada89c31
2017-06-20 14:23:28 -07:00
TreeHugger Robot
6d81ed4c34 Merge "Do not restore same autofill id twice" 2017-06-20 19:15:34 +00:00
TreeHugger Robot
8446a3005f Merge "Add support for ACTION_OUTSIDE to Dialog" 2017-06-20 18:08:10 +00:00
Bryce Lee
453fc364c3 Limit creating new surface for legacy apps to size changes.
Creating the surface for every change (such as creation and
visibility) can lead to issues swapping buffers. This
changelist limits the action to only when the size changes.

Change-Id: Ic549d244613a93a43a9f4ddf284bbfb0c13300fa
Fixes: 62801621
Test: follow repro steps in bug, verified no crash.
Test: go/wm-smoke
2017-06-20 10:47:55 -07:00
Philip P. Moltmann
cb79781356 Do not restore same autofill id twice
View's are restored based on their id. The autofill id is part of the
id's state. Unfortunately the ids of the view are not neccessary
unique. In this case two views would store state of for the same id.
Also two views would be restored frome the same state. This causes
duplicate autofill ids which is not allowed. Hence make sure that for a
single state, the autofill id is only restored once.

Change-Id: I8d950486cb21d9f6afe6d0f5f668799305ae73e7
Fixes: 62658714
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
2017-06-20 10:08:21 -07:00
Jonathan Solnit
30f4c97aaa Merge "Check for keyguard occlusion on camera lift" into oc-dr1-dev am: e07567cc0b
am: 9a0894b930

Change-Id: I1e4a944ff83e46978cc4d15175347d0a44019ae5
2017-06-20 16:36:49 +00:00
Jonathan Solnit
e07567cc0b Merge "Check for keyguard occlusion on camera lift" into oc-dr1-dev 2017-06-20 16:24:28 +00:00
Michael Wright
ddec8fb43c Add support for ACTION_OUTSIDE to Dialog
Historically, Dialogs expected to be fullscreen in order to know when to
close.  By adding support for ACTION_OUTSIDE, they can now close when
the user touches outside of them without actually having to be
fullscreen

Bug: 62373955
Test: cts-tradefed run commandAndExit cts-dev \
      -m CtsAutoFillServiceTestCases -t \
      android.autofillservice.cts.LoginActivityTest#testSaveGoesAwayWhenTouchingOutside
Change-Id: I9cd2afc093ee6f252aaf6c23c029059584879004
2017-06-20 14:15:48 +00:00
Siarhei Vishniakou
3998a5ccc6 Merge "Revive DeadZone" into oc-dev am: b278424fa6 am: 305fe47d65
am: d5c0ef9467

Change-Id: Iec82102d862097ef3242da9103996afe94f0909c
2017-06-20 00:11:45 +00:00
Siarhei Vishniakou
305fe47d65 Merge "Revive DeadZone" into oc-dev
am: b278424fa6

Change-Id: I5a06302eaad1e955aaea6ae8d2785c0b12e53cc4
2017-06-19 23:59:46 +00:00
Wale Ogunwale
510fb72803 Merge "Added back removed ctor from DisplayEventReceiver" into oc-dev am: 113918f309 am: f4dc128aa2
am: c8f7cb6be7

Change-Id: I8355dfd4c6c3adb2fd34a01fb4a9b828f735788f
2017-06-19 23:57:42 +00:00
Siarhei Vishniakou
b278424fa6 Merge "Revive DeadZone" into oc-dev 2017-06-19 23:48:00 +00:00
Wale Ogunwale
f4dc128aa2 Merge "Added back removed ctor from DisplayEventReceiver" into oc-dev
am: 113918f309

Change-Id: I655721c29b22da375742628a9e7b8b3075b2dd27
2017-06-19 23:27:57 +00:00
TreeHugger Robot
113918f309 Merge "Added back removed ctor from DisplayEventReceiver" into oc-dev 2017-06-19 23:16:18 +00:00
Vladislav Kaznacheev
b9faebca98 Merge "Do not update currently open tooltip." into oc-dev am: 139dbe5c1c am: 3fd4215760
am: 6063096518

Change-Id: I5e7b6742544a5db4266e95be0ce01830ea62cd92
2017-06-19 21:37:31 +00:00
Vladislav Kaznacheev
6063096518 Merge "Do not update currently open tooltip." into oc-dev am: 139dbe5c1c
am: 3fd4215760

Change-Id: I4b9674e73830462bbe9288ebfa1bbac89af860b3
2017-06-19 21:24:11 +00:00
Vladislav Kaznacheev
2102c3211c Merge "Do not update currently open tooltip." into oc-dev
am: 139dbe5c1c

Change-Id: Ia3fc1f16e71a4a12a0a84704b7ca7a9d2ec33514
2017-06-19 21:12:45 +00:00
Siarhei Vishniakou
6ad0e39f33 Revive DeadZone
Override dispatchTouchEvent for the root FrameLayout
of NavigationBar to process ACTION_OUTSIDE MotionEvents
and dispatch directly to DeadZone to keep track of the
most recent outside tap.
Clarified documentation of ACTION_OUTSIDE behaviour.

Bug: 37552674
Test: open IME, tap any key, then quickly tap on top half
of the home button. The home button tap is ignored
and device does not go to homescreen.

Change-Id: Icb5cf6c76959f3514b8b94c09e38cc5434f31b23
2017-06-19 14:06:21 -07:00
TreeHugger Robot
139dbe5c1c Merge "Do not update currently open tooltip." into oc-dev 2017-06-19 21:01:47 +00:00
Wale Ogunwale
71f3099c53 Added back removed ctor from DisplayEventReceiver
...because some app can't help but access hidden APIs...

Test: builds
Change-Id: Ia1d4a71b46a53b44e3ebe5844e446009785a90ac
Fixes: 62719884
2017-06-19 13:53:32 -07:00
Yohei Yukawa
0998425067 Merge "Merge "Introduce HapticFeedbackConstants.TEXT_HANDLE_MOVE" into oc-dr1-dev am: 280acdb88b" into oc-dr1-dev-plus-aosp
am: ffc014dfcc

Change-Id: I6aebfd5c56c9ab0f4b61eb837e90cc26f7e016fb
2017-06-19 20:16:39 +00:00
TreeHugger Robot
280acdb88b Merge "Introduce HapticFeedbackConstants.TEXT_HANDLE_MOVE" into oc-dr1-dev 2017-06-19 19:44:52 +00:00
Felipe Leme
7ee79d25e5 Merge "Revert "Trim text from autofillvalue when checking for empty."" into oc-dev am: 215ebb941d am: 1581ceb1fb
am: ffd13036d1

Change-Id: I568601e36d5658560dff9a13bdaf5cb93982cacb
2017-06-17 01:29:13 +00:00
Phil Weaver
be16a207b4 Merge "Merge "Separate a11y and autofill view ids" into oc-dev am: c91290a6e9 am: 8b2816faa3" into oc-dr1-dev-plus-aosp
am: e9bd6e72fc

Change-Id: I534fb195d21490663e299c39d4a64b63856d7935
2017-06-17 01:26:53 +00:00
Casey Burkhardt
4f152ddd8f Merge "Resolve 3 inconsistencies in accessibility button API - Unify logic for detecting availability of the accessibility button - Ensure the initial visibility state is propagated to A11yMS - Ensure services only receive availability callbacks for changes" into oc-dev am: 4ab690a50d am: 8097485c28
am: 8cc3fee95c

Change-Id: Iae4767d6d764f272c3c867276483f7f8522259fe
2017-06-17 01:20:37 +00:00
Felipe Leme
ffd13036d1 Merge "Revert "Trim text from autofillvalue when checking for empty."" into oc-dev am: 215ebb941d
am: 1581ceb1fb

Change-Id: Ia8931bffb2a19993b598fcf6ecf9f09ab5157614
2017-06-17 01:09:38 +00:00
Phil Weaver
09e5b54fd5 Merge "Separate a11y and autofill view ids" into oc-dev am: c91290a6e9
am: 8b2816faa3

Change-Id: I567471d68e6ad5b60fcf33eda47e5d99bdb49f2b
2017-06-17 01:05:36 +00:00
Felipe Leme
730924cd65 Merge "Revert "Trim text from autofillvalue when checking for empty."" into oc-dev
am: 215ebb941d

Change-Id: I058b5fd135e4165214116055ccdc04e9d99955b0
2017-06-17 01:04:08 +00:00
Casey Burkhardt
8cc3fee95c Merge "Resolve 3 inconsistencies in accessibility button API - Unify logic for detecting availability of the accessibility button - Ensure the initial visibility state is propagated to A11yMS - Ensure services only receive availability callbacks for changes" into oc-dev am: 4ab690a50d
am: 8097485c28

Change-Id: I0c21a256e612fd2ecfb2dce6c4d28e3c33e075e2
2017-06-17 01:02:57 +00:00
Phil Weaver
0da21f56e4 Merge "Separate a11y and autofill view ids" into oc-dev
am: c91290a6e9

Change-Id: Iec71a9ae34f963ef1f0ce7f6bd09b5af5bbba6e6
2017-06-17 00:59:04 +00:00
TreeHugger Robot
215ebb941d Merge "Revert "Trim text from autofillvalue when checking for empty."" into oc-dev 2017-06-17 00:53:04 +00:00
Casey Burkhardt
5f485cab2b Merge "Resolve 3 inconsistencies in accessibility button API - Unify logic for detecting availability of the accessibility button - Ensure the initial visibility state is propagated to A11yMS - Ensure services only receive availability callbacks for changes" into oc-dev
am: 4ab690a50d

Change-Id: Ia86c49759f9dac2c40b5c28609ab283efb41cd02
2017-06-17 00:52:47 +00:00
Phil Weaver
c91290a6e9 Merge "Separate a11y and autofill view ids" into oc-dev 2017-06-17 00:46:05 +00:00
Casey Burkhardt
4ab690a50d Merge "Resolve 3 inconsistencies in accessibility button API - Unify logic for detecting availability of the accessibility button - Ensure the initial visibility state is propagated to A11yMS - Ensure services only receive availability callbacks for changes" into oc-dev 2017-06-17 00:41:06 +00:00
Bryce Lee
cda05758dc Merge "Create native Surface object on updateWindow for legacy apps." into oc-dev am: 1e1c5d7b77 am: 14d9e3a529
am: d44baa3b7d

Change-Id: I048fb1820809ae04b6acbbf5285459ff17db3ce1
2017-06-17 00:36:24 +00:00
Felipe Leme
5ae4e8dc9d Merge "Trim text from autofillvalue when checking for empty." into oc-dev am: b3b13ff62c am: 1c03d3fcef
am: 9ccb3a86ae

Change-Id: I5a6101d80376a0fd60bd6c49fe6a12f8ec9df12e
2017-06-16 23:56:12 +00:00
Bryce Lee
14d9e3a529 Merge "Create native Surface object on updateWindow for legacy apps." into oc-dev
am: 1e1c5d7b77

Change-Id: I2f402ea2a6003e5306a7bbcf1d7b8d640672d460
2017-06-16 23:24:34 +00:00