Commit Graph

8923 Commits

Author SHA1 Message Date
Winson
329011cf40 Removing private system ui flags from status bar flags logic. am: ab216609f1 am: b7a673ed95
am: dccfd4394e

Change-Id: Ie8bbbfb5c24957f64036e8de23d6a29e6669ea18
2016-09-21 07:07:59 +00:00
Vadim Tryshev
0f986b51fc For pre-N apps, cascade LOCATION and DROP events. am: 45bee6b24c am: 140adada42
am: 1b060c3ab5

Change-Id: I1a450cf52cc0715092e1578454c4a4bb8a857ba7
2016-09-21 06:59:15 +00:00
Vadim Tryshev
1ee3bfb798 For pre-N apps, keep entered all parents of an drag-entered child. am: ef12811560 am: f0550a6bd1
am: 72193e13c5

Change-Id: I27ce678e332e9caa5e977e40d18aabf6d9c76b55
2016-09-21 06:27:58 +00:00
Vadim Tryshev
45bf9dee0d Eliminating the black hole effect with location/drop events. am: 1edc6daf1d am: 32394cee01
am: 416384e06d

Change-Id: I6d9ea65abf3bcaa3150e6c0f26d2ff184efda095
2016-09-21 04:39:26 +00:00
Winson
dccfd4394e Removing private system ui flags from status bar flags logic. am: ab216609f1
am: b7a673ed95

Change-Id: I031135c21838f5737367f18e2b5ac247162ab455
2016-09-20 23:14:42 +00:00
Winson
b7a673ed95 Removing private system ui flags from status bar flags logic.
am: ab216609f1

Change-Id: Id7e0d308361acb7793c7b03e2ebe0114a956b380
2016-09-20 23:07:52 +00:00
Vadim Tryshev
1b060c3ab5 For pre-N apps, cascade LOCATION and DROP events. am: 45bee6b24c
am: 140adada42

Change-Id: I6337f02c1f39a58fe6bf04cfe3181b01322f51ed
2016-09-20 22:17:00 +00:00
Vadim Tryshev
140adada42 For pre-N apps, cascade LOCATION and DROP events.
am: 45bee6b24c

Change-Id: Ib9a0e17fcc1d76911ee89dda46d99de1449ff295
2016-09-20 22:10:43 +00:00
Vadim Tryshev
72193e13c5 For pre-N apps, keep entered all parents of an drag-entered child. am: ef12811560
am: f0550a6bd1

Change-Id: Ic22cb6624a12188992fa5f1712ba2915c82bd457
2016-09-20 20:59:40 +00:00
Vadim Tryshev
f0550a6bd1 For pre-N apps, keep entered all parents of an drag-entered child.
am: ef12811560

Change-Id: Ia086b1525d658d3374174e11a0a06551b8e4910a
2016-09-20 20:48:36 +00:00
Vadim Tryshev
416384e06d Eliminating the black hole effect with location/drop events. am: 1edc6daf1d
am: 32394cee01

Change-Id: Icbcf0cb248bc823f72fb61373732a08ee56c51cc
2016-09-20 07:20:07 +00:00
Vadim Tryshev
32394cee01 Eliminating the black hole effect with location/drop events.
am: 1edc6daf1d

Change-Id: Ib32d77e7c28867753827a5d8100e628d6d8ee963
2016-09-20 06:11:12 +00:00
Winson
ab216609f1 Removing private system ui flags from status bar flags logic.
- Prevent third party apps from inadvertently changing internal SystemUI
  flags through a call to setSystemUiVisibility().  These flags are only
  set in the individual SystemUI components and can be updated in WMS
  directly.

Bug: 29875297
Change-Id: I5ea238c8fb16a0eccd6e993d95a912acb359cee6
2016-09-19 18:39:25 -07:00
Vadim Tryshev
45bee6b24c For pre-N apps, cascade LOCATION and DROP events.
To restore the pre-N behavior, if a view returns false from its
LOCATION or DROP event handler, the event goes to its parent.

Bug: 31559942
Change-Id: I322099ae1e8a5cbbcf8814f2cd274fbae53b6848
2016-09-19 13:55:46 -07:00
Robert Carr
3b716249cc WindowManager RemoteSurfaceTrace infrastructure
Add "wm surface-trace" command which enables tracing of surface
commands to be switched on at runtime. Primarily intended for use
by WM CTS tests. First target in CTS will be to use show/hide
events to eliminate polling in WM tests and increase speed. Next up
looking at things like verifying various transitions and relaunch
scenarios are flicker free. Later we may want to look at a smarter
or more structured format...but it's really not much hassle to parse
the commands off a pipe so I wanted to get us started.

Test: cts-tradefed run singleCommand cts -o --module CtsWindowManagerHostTestCases --test android.server.cts.SurfaceViewMovementTests#testSurfaceMovesWithParent
Change-Id: I1ff912c405a6cb9996ee9b6e2c465d57706191ba
2016-09-19 11:19:31 -07:00
Vadim Tryshev
ef12811560 For pre-N apps, keep entered all parents of an drag-entered child.
The bug complains that parents of a view under the drag location
don’t get drag events.
This is first of a 2 CLs that will restore the old functionality
(modulus fixing bugs) for pre-N apps.

This CL restores pre-N "nested" model of the entered state for
pre-N apps. It also makes possible restoring "nested" model for
LOCATION and DROP (implemented in a follow-up CL)

The CL replaces (for pre-N) generation of ENTER/EXIT events that
happens at the moment of changing the drag focus with generation
folowing the recursive delivery of coordinate-bearing events.

Bug: 31559942
Change-Id: Iead6bde9c1f88819b30afc78c1f424f7c1b64d51
2016-09-19 11:14:19 -07:00
Eino-Ville Talvala
16177b899b Docs: Note that a Surface acts like a weak reference am: c4faf0cb13 am: ca7f4217b8
am: 0b0b740e6a

Change-Id: I173daca517236a9c912518bf2323b4db9a4cf963
2016-09-17 01:03:05 +00:00
Eino-Ville Talvala
0b0b740e6a Docs: Note that a Surface acts like a weak reference am: c4faf0cb13
am: ca7f4217b8

Change-Id: I42b145bb9139058d2ea349dbb556cd8a2f88724b
2016-09-17 00:47:03 +00:00
Eino-Ville Talvala
ca7f4217b8 Docs: Note that a Surface acts like a weak reference
am: c4faf0cb13

Change-Id: I8466ddcfc3fc99d62dfc842ef84cb0c0663db5e1
2016-09-17 00:35:31 +00:00
Eino-Ville Talvala
c4faf0cb13 Docs: Note that a Surface acts like a weak reference
This causes frequent programming errors, when developers assume
that holding onto a Surface will keep its associated SurfaceTexture,
ImageReader, etc, also alive.

Bug: 31551063
Test: m offline-sdk-docs, manual viewing of result
Change-Id: I5fb5bb3e3c80c7d5d735417b1697e0fe9a62fc46
2016-09-16 22:58:11 +00:00
Andrii Kulian
8072d11f6a Configuration renaming and minor cleanup in AM and WM
- Configuration members in AM and WM are renamed to
  mGlobalConfiguration.
- Renamed parameters names in some methods to better represent
  their meaning.
- Added and fixed some docs.

Change-Id: Ie51f687fe4c10dbce776435f29d6b853fda50eec
2016-09-16 15:40:30 -07:00
Vadim Tryshev
1edc6daf1d Eliminating the “black hole” effect with location/drop events.
Currently, a container view that doesn’t accept events, but has a
child that accepts events, prevents its parent from receiving
LOCATION/DROP events while the drag is over the container (but not
the child). This is a bug.

With this fix, such a container will prevent the parent from
invoking a (second) LOCATION/DROP event only if the event was really
delivered to any of its descendants.

To know whether the event was delivered, I added
DragEvent.mEventHandlerWasCalled member.

EXITED/ENTERED events are now generated upon delivery of the event
that has coordinates in it.

Current view that has drag focus is now global to reflect the fact
that it’s one per process.

Bug: 31469490
Change-Id: I248e8d1de87b7734853136eb4719f7571cea91d5
2016-09-16 11:20:16 -07:00
Gopal Krishna Shukla
22b21403db Remove synchronization from getCurrentInputMethodSubtype()
am: d33c07550f

Change-Id: I83b3e185e66c383c714c66850d8fee34e13cd74a
2016-09-16 17:38:52 +00:00
Gopal Krishna Shukla
d33c07550f Remove synchronization from getCurrentInputMethodSubtype()
getCurrentInputMethodSubtype() acquires InputManagerService.mMethodMap
within its body. There seems to be no reason for holding
InputMethodManager.mH to call getCurrentInputMethodSubtype(). Holding mH
can cause potential deadlock b/w two threads acquiring mH and mMethodMap
in different orders.

Bug: 31247871
Bug: 31273203
Bug: b.android.com/218423
Change-Id: I20cf2c20f49b1b02c0f7a18257b49d4bcc081b5d
2016-09-15 23:20:05 -07:00
Gopal Krishna Shukla
09e3236fff Merge "Remove synchronization from getCurrentInputMethodSubtype()" am: 85539bed77 am: d3e1e473df am: e790c7b2fe
am: 2ef54a4f2b

Change-Id: I627dc54315c3dd5a958a89141dc999b40c921af6
2016-09-16 05:46:37 +00:00
Gopal Krishna Shukla
2ef54a4f2b Merge "Remove synchronization from getCurrentInputMethodSubtype()" am: 85539bed77 am: d3e1e473df
am: e790c7b2fe

Change-Id: I55465d3d95a317c7fdcff99298e89408190e67e3
2016-09-16 05:41:34 +00:00
Gopal Krishna Shukla
e790c7b2fe Merge "Remove synchronization from getCurrentInputMethodSubtype()" am: 85539bed77
am: d3e1e473df

Change-Id: Iad174757bbb77ce2eef4bd39fd218b64f6e35931
2016-09-16 05:36:36 +00:00
Gopal Krishna Shukla
fa1886feea Remove synchronization from getCurrentInputMethodSubtype()
getCurrentInputMethodSubtype() acquires InputManagerService.mMethodMap
within its body. There seems to be no reason for holding
InputMethodManager.mH to call getCurrentInputMethodSubtype(). Holding mH
can cause potential deadlock b/w two threads acquiring mH and mMethodMap
in different orders.

Bug: 31247871
Bug: 31273203
Bug: b.android.com/218423
Change-Id: I20cf2c20f49b1b02c0f7a18257b49d4bcc081b5d
2016-09-16 03:41:46 +00:00
Phil Weaver
28cb1f9026 Merge "Remove unused aidl file." 2016-09-15 23:09:03 +00:00
Manu Cornet
a7cf4dd1af Merge "Include window location after encoded view hierarchy" 2016-09-15 22:51:12 +00:00
Phil Weaver
ab14ee01c4 Remove unused aidl file.
Also removing an unused import in another.

Change-Id: Ib620189aefd85f8b12bb9d5d88b07798126e2b58
2016-09-15 14:11:05 -07:00
Manu Cornet
4d052b3b51 Include window location after encoded view hierarchy
Change-Id: I4e60e354dc56742bbd7dd52eb2191659d3453b29
2016-09-15 13:59:43 -07:00
Phil Weaver
62d20fabf2 Reduce overhead of obtain/recycle a11y checking.
Change-Id: I643ab028aa23c4727b9e0be0db83238034a23960
2016-09-15 11:05:55 -07:00
Kirill Grouchnikov
33d21b1a7a Merge "Mark a hidden MotionEvent method to be visible for tests" 2016-09-14 21:39:14 +00:00
Kirill Grouchnikov
c0b0ba5532 Mark a hidden MotionEvent method to be visible for tests
This allows CTS coverage for MotionEvent.getActionButton.

Bug: 31441257
Change-Id: I9e9c9462a09f9ea82bb17cb53dc70c42fb4759e7
2016-09-13 17:28:56 -07:00
Vladislav Kaznacheev
048cc637c7 Update JavaDoc for DragEvent.getLocalState am: 048f3bfaf0 am: f96d962aac
am: ad4df22dc6

Change-Id: Ic45bc7172e9dcdb5f58db23809a38f0fb5b5da52
2016-09-13 08:18:00 +00:00
Phil Weaver
fc42d07993 Merge "Fix docs for AccessibilityAction." 2016-09-12 20:50:27 +00:00
Phil Weaver
c379129b15 Fix docs for AccessibilityAction.
Bug: 31428314
Change-Id: Ifd28b470f1bcd1c59f1456294c8d8bea986a27a4
2016-09-12 11:10:53 -07:00
John Reck
106253bdf2 Merge "Illegal behavior -> Exception" 2016-09-12 17:17:13 +00:00
John Reck
d94094e062 Illegal behavior -> Exception
Throw an IllegalStateException if the contract
of OnDrawListener is violated.

Change-Id: Ic86f6a0c8cd69ee7a8daa0ba135a3df76f56a213
2016-09-12 08:20:00 -07:00
Phil Weaver
7021998cdc Merge "Make deep copies of a11y data." 2016-09-09 21:22:37 +00:00
Vladislav Kaznacheev
8778333a04 Update JavaDoc for DragEvent.getLocalState am: 048f3bfaf0 am: fa05df640f
am: c9bab3001f

Change-Id: I81da9817c076b587372888b17bbda71118fb6138
2016-09-09 18:53:17 +00:00
Vladislav Kaznacheev
ad4df22dc6 Update JavaDoc for DragEvent.getLocalState am: 048f3bfaf0
am: f96d962aac

Change-Id: I7d46354086a490cf1716cca95cf88b39c5e850e1
2016-09-09 18:47:46 +00:00
Vladislav Kaznacheev
c9bab3001f Update JavaDoc for DragEvent.getLocalState am: 048f3bfaf0
am: fa05df640f

Change-Id: I535a5218bec2f5cf0ea9fa83aaa92ab70f05fcdd
2016-09-09 18:47:41 +00:00
Vladislav Kaznacheev
f96d962aac Update JavaDoc for DragEvent.getLocalState
am: 048f3bfaf0

Change-Id: I53373b3292c4a10a01afa73eb417c105a83c970e
2016-09-09 18:42:35 +00:00
Vladislav Kaznacheev
fa05df640f Update JavaDoc for DragEvent.getLocalState
am: 048f3bfaf0

Change-Id: I72bec54ac999ebce5779062ddc5effd1bb4d61ce
2016-09-09 18:42:34 +00:00
Vladislav Kaznacheev
048f3bfaf0 Update JavaDoc for DragEvent.getLocalState
Explicitly state that "local state" is local to the window
which has started the drag operation.

Bug: 31372686
Change-Id: Idbea7586c4e74097362067fa90390b97744181bb
2016-09-08 16:37:23 -07:00
Alan Viverette
dab82cc04c Change density for the correct user am: df3a7cab8f am: 55768028fd
am: 48818fa811

Change-Id: I19f5810159ed772ac8ed1e9d498f8fe0036a95d0
2016-09-08 21:27:04 +00:00
Alan Viverette
48818fa811 Change density for the correct user am: df3a7cab8f
am: 55768028fd

Change-Id: I7d4eff0c732f0e3e83adc0044ab7ab015da74993
2016-09-08 21:19:24 +00:00
Alan Viverette
55768028fd Change density for the correct user
am: df3a7cab8f

Change-Id: I4f4dfaa8f9035cdd4939d1d40e66ebac51811f73
2016-09-08 21:13:39 +00:00