Commit Graph

8957 Commits

Author SHA1 Message Date
Kevin Hufnagle
7f3010a6cd docs: Clarified definition of KeyEvent.Callback.onKeyMultiple() am: b248b1f689 am: f3f234ff36
am: 88af737268

Change-Id: I1e6173b6f50aa8e981c8979349e428d02c4d133a
2016-09-27 02:02:57 +00:00
Kevin Hufnagle
88af737268 docs: Clarified definition of KeyEvent.Callback.onKeyMultiple() am: b248b1f689
am: f3f234ff36

Change-Id: I2c86132a817e6629435baaaa5a525ea828b6848d
2016-09-26 23:45:05 +00:00
Kevin Hufnagle
f3f234ff36 docs: Clarified definition of KeyEvent.Callback.onKeyMultiple()
am: b248b1f689

Change-Id: I9f1c7377e09fc6a7831ab3e49784c21c4a3cf873
2016-09-26 23:10:26 +00:00
TreeHugger Robot
d2ecfc8744 Merge "Remove unused private flags from View" 2016-09-26 15:41:19 +00:00
Kirill Grouchnikov
4b1983a379 Merge "Mark a hidden MotionEvent method to be visible for tests" 2016-09-26 13:07:14 +00:00
Vadim Tryshev
4a30e888da Update/correct Drag and Drop docs. am: c5109b3f6e am: db56a09d00
am: 066004d674

Change-Id: I01c06cb3a25bc4ef05675b56b45513b2d516d7cc
2016-09-26 09:15:58 +00:00
Mark Lu
12e182a99e docs: update javadoc description for View.setVisibility() method am: ae0459f532 am: 56be5c1ae0
am: 41f36a5264

Change-Id: I107738e4c4322c8189aa84a94c3fca12c6980323
2016-09-26 09:05:12 +00:00
Gopal Krishna Shukla
42a99377f5 Merge "Provide synchronization to setview to avoid NPE" am: b05b93a674 am: 810c31fdca am: 621e87d72f
am: 260af96306

Change-Id: I1907b2252ae2fa25667b3a0484f6852660c74da3
2016-09-25 21:25:39 +00:00
Robert Carr
603ed538e0 SurfaceView: Force surface disconnection before reuse. am: 387838be95 am: 288ce4fc42
am: cfaae3f795

Change-Id: I2c19bd545719e9eb1589ec4065ba26ae65ca03c1
2016-09-24 01:57:54 +00:00
Vadim Tryshev
066004d674 Update/correct Drag and Drop docs. am: c5109b3f6e
am: db56a09d00

Change-Id: Ibe139c05c7084142f6d8923b3f1fca3c8aa9c29c
2016-09-23 23:39:56 +00:00
Vadim Tryshev
db56a09d00 Update/correct Drag and Drop docs.
am: c5109b3f6e

Change-Id: I6b64deb63cfdf6a2afac41cb819fb163b76f8849
2016-09-23 23:33:42 +00:00
Mark Lu
cd980ffb7d docs: update javadoc description for View.setVisibility() method am: ae0459f532 am: 66192078c5
am: 357dfd039a

Change-Id: I4d8ec3cb3e31e17e2f5787fb940f96e5768deb72
2016-09-23 22:38:46 +00:00
Mark Lu
357dfd039a docs: update javadoc description for View.setVisibility() method am: ae0459f532
am: 66192078c5

Change-Id: I7f3775c5fd9e63252cea9fafb8ed4b79c95bfcba
2016-09-23 22:28:41 +00:00
Mark Lu
41f36a5264 docs: update javadoc description for View.setVisibility() method am: ae0459f532
am: 56be5c1ae0

Change-Id: I32ad4a0b53c1e1fbbfd287a4aa915e169038218f
2016-09-23 22:27:37 +00:00
Mark Lu
66192078c5 docs: update javadoc description for View.setVisibility() method
am: ae0459f532

Change-Id: Ie217e46288a11e86b2e5b6e56d8ce5cb2a214861
2016-09-23 22:19:47 +00:00
Mark Lu
56be5c1ae0 docs: update javadoc description for View.setVisibility() method
am: ae0459f532

Change-Id: I3c9d70fc6fc2b6770076454cdfbb1ed1b619dfb9
2016-09-23 22:18:35 +00:00
Vadim Tryshev
c5109b3f6e Update/correct Drag and Drop docs.
This CL reflects the N MR1 behavior and
fixes some bugs.

Defining the compatibility behavior will be
done separately.

Bug: 31702571
Change-Id: I2a79871f47849f9f5a9c3377a3061208488e6ecb
2016-09-23 11:47:09 -07:00
Vladislav Kaznacheev
5a32c4c0b6 Remove unused private flags from View
Change-Id: I738ce4a814b6e2ca237bc353a1d1b6222643198f
2016-09-23 10:20:28 -07:00
Gopal Krishna Shukla
260af96306 Merge "Provide synchronization to setview to avoid NPE" am: b05b93a674 am: 810c31fdca
am: 621e87d72f

Change-Id: Ib5b7470db042d60593d2e545c901240a456dcada
2016-09-23 13:14:51 +00:00
Gopal Krishna Shukla
621e87d72f Merge "Provide synchronization to setview to avoid NPE" am: b05b93a674
am: 810c31fdca

Change-Id: Ibd664e4836eaceef8a4d8363793667afa757387a
2016-09-23 13:11:23 +00:00
Robert Carr
cfaae3f795 SurfaceView: Force surface disconnection before reuse. am: 387838be95
am: 288ce4fc42

Change-Id: Ied020f66caa429249b9f0d8baf0978f0ece9362e
2016-09-23 00:09:19 +00:00
Robert Carr
288ce4fc42 SurfaceView: Force surface disconnection before reuse.
am: 387838be95

Change-Id: Ied6c33fac75612ed2cdeb45b24c521bbff979afa
2016-09-22 23:17:05 +00:00
TreeHugger Robot
9d88f86190 Merge "SurfaceView: Force surface disconnection before reuse." into nyc-mr1-dev 2016-09-22 22:52:16 +00:00
Gopal Krishna Shukla
f7abcda5f2 Provide synchronization to setview to avoid NPE
If setView() will be called from two different threads
then mView property of a View object may have inconsistent
value. For instance, setView() may set mView to null causing
NullPointerException. Synchronize root.setView() as well to
avoid this.

Change-Id: I5f9cf47ece5d4aca575bd8644ecfcee0ed43d843
2016-09-22 04:48:24 +00:00
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
TreeHugger Robot
07d798b902 Merge "Removing private system ui flags from status bar flags logic." into nyc-mr1-dev 2016-09-20 23:00:37 +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
TreeHugger Robot
f902fb5fa8 Merge "For pre-N apps, cascade LOCATION and DROP events." into nyc-mr1-dev 2016-09-20 22:03:07 +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
TreeHugger Robot
0ef6986379 Merge "For pre-N apps, keep entered all parents of an drag-entered child." into nyc-mr1-dev 2016-09-20 20:27:25 +00:00
Dianne Hackborn
bae14052a0 Cherrypick so we can publish N version code description ASAP
am: 491bc2b8d6

Change-Id: I27da25afcaca61ac0159699c0cfc8fbf2338aa2c
2016-09-20 17:05:09 +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
TreeHugger Robot
b1dd85c081 Merge "Eliminating the “black hole” effect with location/drop events." into nyc-mr1-dev 2016-09-20 02:52:24 +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
Dianne Hackborn
491bc2b8d6 Cherrypick so we can publish N version code description ASAP
Fix issue #30766518: Document what targeting N does

Also small documentation cleanup in a few other places.

(cherry picked from commit b34cbedb4e)

Change-Id: I9560b29faa4f2674277349272af8193122a1f95e
2016-09-19 19:31:19 +00:00
Kevin Hufnagle
b248b1f689 docs: Clarified definition of KeyEvent.Callback.onKeyMultiple()
The onKeyMultiple() event captures simulated, not actual, presses of
the same key in rapid succession. Adjusted the method definition to
include this clarification.

Bug: 2335983
Change-Id: Id01182d81dafe98df9e559ff24f9e1d5a1f949c3
2016-09-19 11:22:31 -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