Commit Graph

6916 Commits

Author SHA1 Message Date
Alan Viverette
eaf87a3f68 am 05e58407: am 72fd6186: am 2a576d9e: Merge "Invalidate old accessibility bounds on CONTENT_CHANGE" into mnc-dev
* commit '05e58407650c6a2d9dfc3130f15c38104baa823d':
  Invalidate old accessibility bounds on CONTENT_CHANGE
2015-05-15 20:50:53 +00:00
Alan Viverette
6e1e7e4edd am fbd69c4e: am a4954e9b: am 2cc4a475: Merge "Adjust light source for window position" into mnc-dev
* commit 'fbd69c4e60c4f3ac519a00453d13fdb73c5beb34':
  Adjust light source for window position
2015-05-15 20:28:07 +00:00
Alan Viverette
2a576d9ec1 Merge "Invalidate old accessibility bounds on CONTENT_CHANGE" into mnc-dev 2015-05-15 20:11:20 +00:00
Alan Viverette
2cc4a4755f Merge "Adjust light source for window position" into mnc-dev 2015-05-15 18:31:54 +00:00
Alan Viverette
a7ea65e239 Invalidate old accessibility bounds on CONTENT_CHANGE
Bug: 20950124
Change-Id: Id19924358b538f9b7754de3a0c019433817dc1fc
2015-05-15 11:30:21 -07:00
George Mount
a074cba204 am 274d9951: am e4ac47c6: am b1f12933: Merge "Remove hidden/deleted APIs." into mnc-dev
* commit '274d9951ec3863818a2b61380df04da74dc4c409':
  Remove hidden/deleted APIs.
2015-05-15 16:57:40 +00:00
George Mount
b1f1293355 Merge "Remove hidden/deleted APIs." into mnc-dev 2015-05-15 14:08:19 +00:00
Alan Viverette
50210d9129 Adjust light source for window position
Bug: 16523629
Change-Id: I2f3fed1edcac0a3cfd5034aded45e08ececfebaf
2015-05-14 18:05:36 -07:00
John Reck
31330c546d am f7e98a23: am b1e5a9ae: am 0e4a2b5f: Merge "Check for setting to already set" into mnc-dev
* commit 'f7e98a2348ccde0ffb865b9563103c609add6d27':
  Check for setting to already set
2015-05-15 00:01:38 +00:00
John Reck
0e4a2b5ff0 Merge "Check for setting to already set" into mnc-dev 2015-05-14 23:27:49 +00:00
John Reck
6d8371e73f Check for setting to already set
Bug: 20105644
Change-Id: Ia79d2ae5c725c139d2b7c423a899be625cb8f14f
2015-05-14 16:06:12 -07:00
Alan Viverette
04694d60a5 am 9f233c51: am 462e926f: am f93d16bc: Merge "Avoid sealed check when unparceling AccessibilityNodeInfo" into mnc-dev
* commit '9f233c51b2e08fc96d327f83a06c6c36a804ae8f':
  Avoid sealed check when unparceling AccessibilityNodeInfo
2015-05-14 21:26:38 +00:00
Wale Ogunwale
2309138df8 am 1fbd367c: am a14ebc73: am 92847c96: Merge "Revert "Update IME focus when the active view is losing the focus."" into mnc-dev
* commit '1fbd367cdcf7ddca2828194a8ec77f6fbd9aa50c':
  Revert "Update IME focus when the active view is losing the focus."
2015-05-14 21:26:13 +00:00
Michael Wright
bbea695462 am 27a24555: am edc7560a: am 1b2e5c11: Merge "Revert "Revert "Add new MotionEvent actions for button press and release.""" into mnc-dev
* commit '27a2455506ee418349be4c5e7f958377daee4a29':
  Revert "Revert "Add new MotionEvent actions for button press and release.""
2015-05-14 21:24:17 +00:00
Michael Wright
3f9c6f871e am c52a5959: am 87d3e2f4: am 3d528698: Merge "Revert "Add new MotionEvent actions for button press and release."" into mnc-dev
* commit 'c52a59597b7cf98fbe8ff5208e1f71592b27d43e':
  Revert "Add new MotionEvent actions for button press and release."
2015-05-14 21:23:24 +00:00
Michael Wright
c504d4501e am 0a998bd7: am ce0b8585: am 07b83f1c: Merge "Add new MotionEvent actions for button press and release." into mnc-dev
* commit '0a998bd7608ea5a746e35cc440cfcd000d249c9c':
  Add new MotionEvent actions for button press and release.
2015-05-14 21:23:18 +00:00
George Mount
5aec62eae1 Remove hidden/deleted APIs.
Change-Id: Iabeaac2c9b485f1f25fb2fcc3193610b0d6478c4
2015-05-14 14:12:16 -07:00
Alan Viverette
f93d16bc70 Merge "Avoid sealed check when unparceling AccessibilityNodeInfo" into mnc-dev 2015-05-14 20:20:48 +00:00
Alan Viverette
c921f27694 Avoid sealed check when unparceling AccessibilityNodeInfo
Previously the unparceling code relied on addAction(), which would
incorrectly crash if the node was sealed.

Bug: 21135077
Change-Id: I773ac27b2dee501ffea0a0587536a192af402c32
2015-05-14 12:26:49 -07:00
Wale Ogunwale
159c3d8a8b Revert "Update IME focus when the active view is losing the focus."
This reverts commit 97c3813042.

This causes issue with the right IME window getting focus.

Bug: 21144633
Change-Id: I4c75b6e7dd87c10f008444d2059164b52a8f4335
2015-05-14 12:25:24 -07:00
Michael Wright
1b2e5c11b6 Merge "Revert "Revert "Add new MotionEvent actions for button press and release.""" into mnc-dev 2015-05-14 15:31:14 +00:00
Michael Wright
5bd69e6e61 Revert "Revert "Add new MotionEvent actions for button press and release.""
This reverts commit 9623805162.
2015-05-14 14:48:08 +01:00
Michael Wright
3d52869834 Merge "Revert "Add new MotionEvent actions for button press and release."" into mnc-dev 2015-05-14 13:47:10 +00:00
Michael Wright
9623805162 Revert "Add new MotionEvent actions for button press and release."
This reverts commit ec0ce51b73.
2015-05-14 14:46:25 +01:00
Michael Wright
07b83f1c9e Merge "Add new MotionEvent actions for button press and release." into mnc-dev 2015-05-14 13:31:29 +00:00
Michael Wright
ec0ce51b73 Add new MotionEvent actions for button press and release.
Introduce ACTION_BUTTON_PRESS and ACTION_BUTTON_RELEASE as actions to
signal a button press or release. If these actions happen
simulanteously with a DOWN or UP event then they're explicitly
ordered to happen after the DOWN or preceding the UP in order to send
them to the most recently targeted view.

Also, introduce new stylus button constants that differ from the
constants we use for mouse buttons.

Bug: 20704355
Change-Id: I5b75e5c5e692171c1c117ee687dd185a0d9dd15c
2015-05-14 14:18:05 +01:00
Jorim Jaggi
ec33b4ade9 am 53edbb1a: am 1a4df69f: am 645edef4: Merge "Make sure the app can draw a frame before unlocking" into mnc-dev
* commit '53edbb1aee03b37b0a039442a6917cd46b3e2a8a':
  Make sure the app can draw a frame before unlocking
2015-05-13 22:47:51 +00:00
Yohei Yukawa
1d9d249ba4 am bef7b79b: am d21eeb8f: am 5ad7fe49: Merge "Update IME focus when the active view is losing the focus." into mnc-dev
* commit 'bef7b79b0d6e63b1bb709c7fe10326dc7d6c0f12':
  Update IME focus when the active view is losing the focus.
2015-05-13 22:47:41 +00:00
Jorim Jaggi
645edef483 Merge "Make sure the app can draw a frame before unlocking" into mnc-dev 2015-05-13 22:13:27 +00:00
Yohei Yukawa
5ad7fe4930 Merge "Update IME focus when the active view is losing the focus." into mnc-dev 2015-05-13 22:10:37 +00:00
Jorim Jaggi
827e0facfe Make sure the app can draw a frame before unlocking
- The mechanism to stop windows drawing while window animator was
animating was somehow flaky. It relied on the fact that the client
would call relayout() whenever the animating state changed. This is
mostly the case, but not for lockscreen animations. Instead, we now
use a push model, where window manager tells the app that the state
has changed.
- In addition, it only stopped drawing if that window was animating,
but then only resumed drawing after all windows have finished
animating. Now, we do this per window, so we only stop drawing for
windows that are currently animating.
- We resume the top activity now at the very beginning of the
unlocking sequence. This gives the app a chance to draw a frame
before the user sees anything. If it's to slow, then we just use the
outdated framebuffer.

Bug: 19964562
Change-Id: Ifef8abd189a3146d854b81b9b948861e4d38c155
2015-05-13 14:23:05 -07:00
Alan Viverette
39155a9b68 am 32440f68: am 6276bdce: am c25771ce: Merge "Update scrollIndicators XML enums to match View constants" into mnc-dev
* commit '32440f68182d820f51ee4bc796849ba4b1bcb627':
  Update scrollIndicators XML enums to match View constants
2015-05-13 00:08:03 +00:00
Alan Viverette
a789325a0f Update scrollIndicators XML enums to match View constants
Bug: 21027462
Change-Id: I41e503e218253cf63bc44a82345f8b086261e379
2015-05-12 16:25:47 -07:00
Yohei Yukawa
59de3f828a am e467e764: am c1f055a8: am f038295e: Merge "Remove obsolete fields from InputMethodManager." into mnc-dev
* commit 'e467e764bc3abba352b117397454df3082068dc3':
  Remove obsolete fields from InputMethodManager.
2015-05-12 20:00:50 +00:00
Yohei Yukawa
6d090c42a7 Remove obsolete fields from InputMethodManager.
IMM#mViewTopLeft and IMM#mViewToScreenMatrix are no longer used.
They should have not been removed in
I4a577bfd02b37b9e56c80b8b41bb25afa95dd8ef.

Change-Id: Ia685956c8f7dda1143135345ee9a3873705975ef
2015-05-12 11:11:27 -07:00
P.Y. Laligand
e6c47686f6 Merge "DO NOT MERGE - Display mode switches." into mnc-dev 2015-05-12 17:39:57 +00:00
Michael Wright
9618088175 am 22fa94a1: am 0598d730: am 6959865f: Merge "Remove SLEEP and POWER from wake key list." into mnc-dev
* commit '22fa94a10b41f2895ef2184e576aebd9d436d6bb':
  Remove SLEEP and POWER from wake key list.
2015-05-12 12:46:41 +00:00
Michael Wright
6959865fb0 Merge "Remove SLEEP and POWER from wake key list." into mnc-dev 2015-05-12 12:12:50 +00:00
Yohei Yukawa
97c3813042 Update IME focus when the active view is losing the focus.
Despite the fact that IMM#focusOut() are called from many focus
mangement logics, the reality is that IMM#focusOut() has done
nothing more than 6 years.  This would not a big problem as long
as IMM#focusIn() is called immediately after IMM#focusOut().

However, situations where only IMM#focusOut() is called,
following fields continue keeping object references.
- IMM#mServedView
- IMM#mNextServedView
- IMM#mServedInputConnection
- IMM#mServedInputConnectionWrapper

Even worse, if the IME is showing software keyboard, it will not
be dismissed.

With this CL, IMM#focusOut() starts cleaning up the active IME
session when the associated view loses focus.

This CL also removes IMM#mCurRootView because it is indeed
necessary for above change.  The problem when only introducing
above change can be understood as follows.

1. IMM#mCurRootView is correctly set from ViewRootImpl.
2. IMM#focusIn() is called. InputConnection is established.
3. IMM#focusOut() is called, which triggers
   IMM#finishInputLocked() because of above change, which
   internally clears IMM#mCurRootView.
4. IMM#focusIn() is called but IMM#mCurRootView is still null.
   Because of this the focus-in event is ignored and the
   software keyboard does not show up anymore.

In this CL, we simply check view.hasWindowFocus() instead.
As far as I've tested, this change looks to be working well.

Bug: 20820914
Change-Id: Ib4bd70ce0305a6bde6a929bcc6ad20a2b8402a97
2015-05-12 01:43:27 -07:00
Chris Craik
ae86f573f6 am 36d7ba09: am 25b1d6d6: am 2f957893: Merge "Fix ViewGroup caching defaults" into mnc-dev
* commit '36d7ba094f80ab2fd1c08018101ce5dc3c665aeb':
  Fix ViewGroup caching defaults
2015-05-12 01:55:29 +00:00
Chris Craik
f6ce8fd4f3 Fix ViewGroup caching defaults
bug:20718535

Revert to established defaults of these two properties.

Change-Id: I798cfa2e53b26eafd30b191ad6e3b721fe6bd249
2015-05-11 15:33:12 -07:00
P.Y. Laligand
b3b9eb3cfc DO NOT MERGE - Display mode switches.
Knowledge of the various modes of a display is now available to apps, and they can request a specific mode for their windows.

b/18241736

Change-Id: I8eb16ff713e878512faca3ca6662254f08a9be7f
(cherry picked from commit 5c7773d864)
2015-05-11 15:02:07 -07:00
George Mount
79fcf9e194 am 42240e1f: am 96f1d461: am 3dec0d47: Merge "Disable input during Activity Transition." into mnc-dev
* commit '42240e1fe20d5e3dfd8a704eee8a200d98c0212f':
  Disable input during Activity Transition.
2015-05-11 17:55:58 +00:00
George Mount
3dec0d4721 Merge "Disable input during Activity Transition." into mnc-dev 2015-05-11 17:19:03 +00:00
Alan Viverette
c1306ec7ab am 829410a4: am 4db1aca5: am f93bba5b: Merge "Allow ContextImpl.setTheme(int) to be called after getTheme()" into mnc-dev
* commit '829410a4c3af11f99f33d4d367a2d87199f0a8e6':
  Allow ContextImpl.setTheme(int) to be called after getTheme()
2015-05-08 21:47:46 +00:00
Dianne Hackborn
cc1b7d06dc am a0f5356f: am 396345ca: am ed9af066: Merge "Fix issue #20655182: API Review: ViewAssistStructure" into mnc-dev
* commit 'a0f5356fdc84f5bf05677ae773bf168dc5349b7c':
  Fix issue #20655182: API Review: ViewAssistStructure
2015-05-08 21:14:38 +00:00
Alan Viverette
f93bba5b79 Merge "Allow ContextImpl.setTheme(int) to be called after getTheme()" into mnc-dev 2015-05-08 21:10:03 +00:00
George Mount
2898b77ab1 am 17d085a9: am b9deb734: am 180fd278: Merge "Don\'t call updateDisplayListIfDirty outside draw." into mnc-dev
* commit '17d085a94ce3d3694e2705b6eeb646e671055fa8':
  Don't call updateDisplayListIfDirty outside draw.
2015-05-08 21:01:29 +00:00
Dianne Hackborn
ed9af066b2 Merge "Fix issue #20655182: API Review: ViewAssistStructure" into mnc-dev 2015-05-08 20:42:12 +00:00
George Mount
180fd27832 Merge "Don't call updateDisplayListIfDirty outside draw." into mnc-dev 2015-05-08 20:30:08 +00:00