Commit Graph

7293 Commits

Author SHA1 Message Date
Alan Viverette
4ffb4f94db am ac13014e: am 41343c0f: am 6550e461: am 0568a230: am 9d8a230f: Revert "View measurement optimization"
* commit 'ac13014e5f4d92fa6c051e9821eb03c010008ffa':
  Revert "View measurement optimization"
2015-08-01 17:54:12 +00:00
Dianne Hackborn
f6f1a7ec99 am 628b4125: am bc2a8843: am b97c5ddd: am 9b36f526: am c1836bb0: Merge "Change MNC codename to just M." into mnc-dev
* commit '628b4125843b93dc7f3ed0c9bbea76ff470d2eed':
  Change MNC codename to just M.
2015-08-01 17:53:09 +00:00
Alan Viverette
ac13014e5f am 41343c0f: am 6550e461: am 0568a230: am 9d8a230f: Revert "View measurement optimization"
* commit '41343c0f287863488a10a429d88ec094e9183938':
  Revert "View measurement optimization"
2015-08-01 17:05:22 +00:00
Dianne Hackborn
628b412584 am bc2a8843: am b97c5ddd: am 9b36f526: am c1836bb0: Merge "Change MNC codename to just M." into mnc-dev
* commit 'bc2a88431e3dc51e2245cc28e327f11d0c78bd56':
  Change MNC codename to just M.
2015-08-01 17:04:28 +00:00
Alan Viverette
6550e461e5 am 0568a230: am 9d8a230f: Revert "View measurement optimization"
* commit '0568a230b34f879215e65fbaa79dfa377085bb41':
  Revert "View measurement optimization"
2015-08-01 16:36:52 +00:00
Dianne Hackborn
b97c5ddd2a am 9b36f526: am c1836bb0: Merge "Change MNC codename to just M." into mnc-dev
* commit '9b36f526dd0378bda8f71c0e51ed37bf97742f8f':
  Change MNC codename to just M.
2015-08-01 16:34:48 +00:00
Alan Viverette
9d8a230fbd Revert "View measurement optimization"
LinearLayout relied on multiple measurement passes to hide a
discrepancy between EXACTLY and non-EXACTLY measurements.

This reverts commit 9cefbda11e.

Bug: 22810327
Change-Id: I515a80749420d00efc5002fa68221b7c236f03df
2015-07-31 19:53:02 +00:00
Derek Sollenberger
897863baeb Merge "Support High Contrast Text for all canvas types" 2015-07-30 13:15:14 +00:00
Dianne Hackborn
0e3de6caca Change MNC codename to just M.
Change-Id: I4281d200ff6560791c47cf9073ceea1cb509361e
2015-07-29 15:20:21 -07:00
Vadim Tryshev
d0432b2db4 Merge "Adding a drag flag to make drag shadow opaque." 2015-07-29 20:11:48 +00:00
Derek Sollenberger
6578a98956 Support High Contrast Text for all canvas types
Change-Id: Iee324446798fe1a1cb32cb991f181a4af24aa93c
2015-07-29 16:02:14 -04:00
Chris Craik
c9a6ca5d6b Merge "Revert "Support High Contrast Text for all canvas types"" 2015-07-29 18:15:16 +00:00
Chris Craik
749e67438c Revert "Support High Contrast Text for all canvas types"
bug:22820834

This reverts commit 876d56612a.

Change-Id: I4e07a0894095caaaf2fd36bfa6073d033542bfc4
2015-07-29 18:14:46 +00:00
Vadim Tryshev
0e95bc4fb2 Adding a drag flag to make drag shadow opaque.
The default is still a semitransparent shadow.

Bug: 22028725
Change-Id: I4b0090053fe28cc4ac009960b5b7866d1219a675
2015-07-29 11:02:56 -07:00
Derek Sollenberger
2d35cf953a Merge "Support High Contrast Text for all canvas types" 2015-07-29 14:36:09 +00:00
Jorim Jaggi
e1d440be81 am 7580672f: am ce58fa95: am fed9b281: am 353fe1c6: am 0d210f63: Animation for touch, wake and unlock
* commit '7580672fa8455dccc78806dcd878a5e191a62a45':
  Animation for touch, wake and unlock
2015-07-29 00:49:19 +00:00
Jorim Jaggi
7580672fa8 am ce58fa95: am fed9b281: am 353fe1c6: am 0d210f63: Animation for touch, wake and unlock
* commit 'ce58fa9593ae9b0d5e29485019876bde5c54848b':
  Animation for touch, wake and unlock
2015-07-29 00:28:13 +00:00
Jorim Jaggi
fed9b2817f am 353fe1c6: am 0d210f63: Animation for touch, wake and unlock
* commit '353fe1c665e0065d4c8eecdf41c22f1a1a607f2c':
  Animation for touch, wake and unlock
2015-07-28 23:43:46 +00:00
Jorim Jaggi
0d210f6395 Animation for touch, wake and unlock
- Add callback to inform SysUI when the screen has been unblocked
and turned on.
- Cleanup inconsistent messaging about device interactive/screen on
and off.
- Add callbacks to inform SysUI about screen states
- Implement a quick fade for the scrim after touch, wake, and unlock.
  First, start with a black scrim on top of everything, and then fade
  it out.
- Make sure we play the normal unlock animation when device is pulsing
- Override navigation bar animations for touch, wake and unlock: Fade
  in the same manner as the scrim.

Bug: 22571198
Bug: 21855614
Change-Id: I8ff08d72cced1e0f03c78d71ff710d8a4f6b848c
2015-07-28 23:02:54 +00:00
Filip Gruszczynski
d261e83603 am 6a5791d1: am 95275dc7: am 5a8e31ef: am 3bb0bb3a: am f63800dd: Merge "Remove unnecessary relayout call from traversals." into mnc-dev
* commit '6a5791d163e9f8dab1efb3e2a713ee521c347b32':
  Remove unnecessary relayout call from traversals.
2015-07-28 18:46:33 +00:00
Filip Gruszczynski
6a5791d163 am 95275dc7: am 5a8e31ef: am 3bb0bb3a: am f63800dd: Merge "Remove unnecessary relayout call from traversals." into mnc-dev
* commit '95275dc7caedda2e22524cae721dc13396ae15e4':
  Remove unnecessary relayout call from traversals.
2015-07-28 00:57:29 +00:00
Filip Gruszczynski
5a8e31efce am 3bb0bb3a: am f63800dd: Merge "Remove unnecessary relayout call from traversals." into mnc-dev
* commit '3bb0bb3afc46f88e4372f6912bd4c18547de5a78':
  Remove unnecessary relayout call from traversals.
2015-07-28 00:30:59 +00:00
Vadim Tryshev
917e5c0fd9 Merge "Fixing non-delivering of DRAG_START event to each view" 2015-07-27 21:21:45 +00:00
Filip Gruszczynski
9b621a72e2 Remove unnecessary relayout call from traversals.
All the necessary information (most importantly outsets) arrives in
addWindowToDisplay that is happening a few lines earlier.

Bug: 22073222
Change-Id: I483e98808877f32812c0e959cdfc14b4e0ca5e62
2015-07-27 11:44:31 -07:00
Yohei Yukawa
fb8cfd8c2a am c99ecb34: am c0e0b1e3: am 646f9da9: am 4ff108f0: am 0526ee52: Merge "Don\'t rely on broadcast intent for waking up input method." into mnc-dev
* commit 'c99ecb34f8b1631fbe6bdd53994d1d02b96c096b':
  Don't rely on broadcast intent for waking up input method.
2015-07-24 05:16:05 +00:00
Yohei Yukawa
c99ecb34f8 am c0e0b1e3: am 646f9da9: am 4ff108f0: am 0526ee52: Merge "Don\'t rely on broadcast intent for waking up input method." into mnc-dev
* commit 'c0e0b1e3145bb26db2f41ac9d885c3368f2f6f75':
  Don't rely on broadcast intent for waking up input method.
2015-07-24 04:06:31 +00:00
Yohei Yukawa
646f9da9e2 am 4ff108f0: am 0526ee52: Merge "Don\'t rely on broadcast intent for waking up input method." into mnc-dev
* commit '4ff108f0828f9c830aa93a3269c071522dae40ad':
  Don't rely on broadcast intent for waking up input method.
2015-07-24 03:11:42 +00:00
Yohei Yukawa
fa6e0a80e2 Don't rely on broadcast intent for waking up input method.
Basically this is a copy of Iabef96921dd554ce3768fb18619cefc
for InputMethodManagerService.

As described in JavaDoc of Intent#ACTION_SCREEN_OFF and
Intent#ACTION_SCREEN_ON, one can use those Intents to be
notified when the device becomes non-interactive and
interactive.  IMMS has relied on them to enable and disable
InputConnection between the IME and the application so as not
to allow IMEs to update text when the user does not present.
This is actually our design goal as documented in JavaDoc of
InputMethodManager.

   An IME can never interact with an InputConnection while
   the screen is off.  This is enforced by making all clients
   inactive while the screen is off, and prevents bad IMEs from
   driving the UI when the user can not be aware of its
   behavior.

The goal of this CL is to improve the timeliness of above
mechianism by introducing a direct communication channel from
PowerManagerService to InputMethodManagerService via Notifier.
Actually this is what InputManager has been doing since
Iabef96921dd554ce3768fb18619cefc3230b5fb0.

Reasons behind this change are:

  1. There are several bugreports that imply those Intents can
     dispatch tens of seconds after it is enqueued. This is
     indeed problematic because the user cannot type password
     to unlock their devices until queued
     Intent#ACTION_SCREEN_ON is dispatched. This CL addresses
     such an issue without waiting for figuring out the root
     cause of the delay.
  2. Intent#ACTION_SCREEN_OFF and Intent#ACTION_SCREEN_ON are
     sent as a ordered broadcast, which may not be suitable for
     tasks that require a certain level of timeliness, and what
     IMMS wants is to enable users to start typing immediately
     after the system.

This CL was originally authored by Seigo Nonaka.

Bug: 22423200
Bug: 22555778
Change-Id: I747c37ff6dd8f233faef43f2b5713a4320e848eb
2015-07-23 15:08:59 -07:00
Filip Gruszczynski
31d300f914 Fix NPE when requesting outsets for detached view.
Outsets are used during measure/layout pass, but this can be called on a
view that is not currently attached.

This is a cherry pick that somehow didn't get through to master.

Bug: 21602590
Change-Id: I23e3acc45ca4bf7684d8913f839e29e8e9e94d78
2015-07-22 15:46:06 -07:00
Vadim Tryshev
1a68dc9bf4 Fixing non-delivering of DRAG_START event to each view
The problem was that GroupView.dispatchDragEvent didn’t send ACTION_DRAG_STARTED
to GroupView itself in case when there is a child that is interested
in this drag.

Now, delivering DRAG_STARTED to all children and to GroupView itself.

Also corrected delivery of DRAG_ENDED to match docs: it will be delivered
only to the views that returned true from DRAG_STARTED.

Same story with Enter, Exit and Location notifications: they are delivered
only to children that returned true from DRAG_START.

Delivery to
the ViewGroup itself never depends on a child’s return value.

Bug: 22028725
Change-Id: I44495d6da8423c9cc012f029233f4604cb60c74b
2015-07-21 10:53:53 -07:00
Derek Sollenberger
8d94835b49 Remove unused HardwareLayer and associated code for generic views.
bug: 20461288
Change-Id: I4efa9e31a42682a8a90438d52c9c665a582f950c
2015-07-16 14:09:45 -04:00
Anthony Hugh
66cba90940 am 773f1b2f: am 26fa501d: DO NOT MERGE: Introduce stem keycodes for Wear
* commit '773f1b2f919bb4c1f2724eabe8480b6589d8c498':
  DO NOT MERGE: Introduce stem keycodes for Wear
2015-07-15 21:08:39 +00:00
Anthony Hugh
26fa501dd6 DO NOT MERGE: Introduce stem keycodes for Wear
Cherry-pick from master

This change adds four new stem keycodes for Android Wear. These
keycodes are intended to represent the various hardware buttons
around the watch.  There is one primary stem key that will be used
for power/settings and three generic stem keys that will be
customizable.

BUG: 21903503
Change-Id: I867cf79554c72d42c8acbb3ff8b1678e482d4fe2
2015-07-15 13:34:25 -07:00
Derek Sollenberger
876d56612a Support High Contrast Text for all canvas types
Change-Id: Ib46ba3d7c67e081872e6a4b11d294fe9a61f5bbd
2015-07-13 15:13:15 -04:00
Derek Sollenberger
94394b3fb0 Move drawRegion from DisplayList to Canvas
Change-Id: I9f401dc5b24732938ac2ca7ed829796e2d7ef3e8
2015-07-13 13:48:08 -04:00
Derek Sollenberger
cc882b6518 Remove unused functions and variables from DisplayListCanvas
This also moves some functions that are only called when creating/completing
a displayList into the appropriate constructors and endRecording calls.

Change-Id: I9f6add156d7f476a52766934af713b0f852c8dea
2015-07-10 19:32:30 +00:00
Adrian Roos
3ab00aca46 am 8ca082c7: am 0dc7f44c: am 1ec13f18: am 4dfeea4f: am 4d8134c1: Merge "Fix black keyguard / missing status bar" into mnc-dev
* commit '8ca082c74b908caaa88e6cee47e052d1e8122440':
  Fix black keyguard / missing status bar
2015-07-10 01:25:04 +00:00
Adrian Roos
8ca082c74b am 0dc7f44c: am 1ec13f18: am 4dfeea4f: am 4d8134c1: Merge "Fix black keyguard / missing status bar" into mnc-dev
* commit '0dc7f44c1f454f57e344084c5631c6c3b9727c0e':
  Fix black keyguard / missing status bar
2015-07-10 00:59:31 +00:00
Adrian Roos
1ec13f1837 am 4dfeea4f: am 4d8134c1: Merge "Fix black keyguard / missing status bar" into mnc-dev
* commit '4dfeea4f2243b7824ca56fa8906e12c90ce979ab':
  Fix black keyguard / missing status bar
2015-07-10 00:29:03 +00:00
Adrian Roos
4d8134c1b9 Merge "Fix black keyguard / missing status bar" into mnc-dev 2015-07-10 00:01:20 +00:00
Adrian Roos
76d2fe4288 Fix black keyguard / missing status bar
The status bar window was stuck in the READY_TO_SHOW state
because it was not policy visible, whereas the policy
was waiting for the window to become HAS_DRAWN.

Now BarController also updates states if the window
is READY_TO_SHOW, which in turn allows the window to
become visible and HAS_DRAWN.

Bug: 22072099
Change-Id: I1836c276723ee2205d7d5759be079f02aaa23e2e
2015-07-09 16:09:48 -07:00
Alan Viverette
a50bc5a1ed am b5491bcc: am 6bd2e985: am 5f3b4eea: am ec12d8ea: am 322fd93f: Merge "Add missing break in AccessibilityEvent.eventTypeToString()" into mnc-dev
* commit 'b5491bcc2fcd4ae51a2cf78935f233528a567351':
  Add missing break in AccessibilityEvent.eventTypeToString()
2015-07-09 19:12:39 +00:00
Alan Viverette
b5491bcc2f am 6bd2e985: am 5f3b4eea: am ec12d8ea: am 322fd93f: Merge "Add missing break in AccessibilityEvent.eventTypeToString()" into mnc-dev
* commit '6bd2e98584db1416a369760d02a4c0f18eea516d':
  Add missing break in AccessibilityEvent.eventTypeToString()
2015-07-09 18:50:31 +00:00
Alan Viverette
5f3b4eeae1 am ec12d8ea: am 322fd93f: Merge "Add missing break in AccessibilityEvent.eventTypeToString()" into mnc-dev
* commit 'ec12d8ea174b63442a901f64bf147d79c68d21e7':
  Add missing break in AccessibilityEvent.eventTypeToString()
2015-07-09 17:43:18 +00:00
Alan Viverette
5d3d23199d Add missing break in AccessibilityEvent.eventTypeToString()
Bug: 22331852
Change-Id: I6f75dde0fb29715d05ef8e8b0e16c3a5a2b9d5e8
2015-07-09 09:51:46 -07:00
Filip Gruszczynski
fb5bccd5db am 5e16aa51: am b52df916: am d705f355: am 45eb3ea6: Revert "Fix NPE when requesting outsets for detached view."
* commit '5e16aa516434c190b66d1ec5431d89e2d9091f1b':
  Revert "Fix NPE when requesting outsets for detached view."
2015-07-09 02:02:17 +00:00
Filip Gruszczynski
5e16aa5164 am b52df916: am d705f355: am 45eb3ea6: Revert "Fix NPE when requesting outsets for detached view."
* commit 'b52df916207ac831b9b7e525fd967a4796a39a3a':
  Revert "Fix NPE when requesting outsets for detached view."
2015-07-09 01:49:24 +00:00
Filip Gruszczynski
d705f35568 am 45eb3ea6: Revert "Fix NPE when requesting outsets for detached view."
* commit '45eb3ea667dac8d97a91781f01875148bacfe74c':
  Revert "Fix NPE when requesting outsets for detached view."
2015-07-09 01:22:04 +00:00
Filip Gruszczynski
45eb3ea667 Revert "Fix NPE when requesting outsets for detached view."
This reverts commit b010291ace.

Change-Id: If86ce92daac9e80d5fc2e9f707d937e7c6e91a74
2015-07-09 01:06:40 +00:00
Filip Gruszczynski
d5efc98af6 am 93c4f915: am c72a5821: am 886fd2f5: am b010291a: Fix NPE when requesting outsets for detached view.
* commit '93c4f915945eb788a19ec6e25b0f1e3dfe9abd53':
  Fix NPE when requesting outsets for detached view.
2015-07-09 00:58:31 +00:00