Commit Graph

6884 Commits

Author SHA1 Message Date
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
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
Selim Cinek
ec407b5d14 am d104ff6d: am 33b02ef2: am 03fdca1b: Merge "Fixed a bug where the heads-up would not show when full screen" into mnc-dev
* commit 'd104ff6d056f1256546c8c58547807d11395ff9f':
  Fixed a bug where the heads-up would not show when full screen
2015-05-08 16:58:16 +00:00
Siva Velusamy
eb1a7e9b4e am aa439dc3: am eb5d77e9: am 1f861997: Merge "Use new hierarchy viewer protocol in all View subclasses" into mnc-dev
* commit 'aa439dc38c6e276f763ba3127ad020938ba620f8':
  Use new hierarchy viewer protocol in all View subclasses
2015-05-08 16:58:10 +00:00
Siva Velusamy
8cc6b16096 am 19b95039: am 46a81366: am 52156a32: Merge "Improve hierarchy viewer dump hierarchy latency" into mnc-dev
* commit '19b95039375c5d806833f46c1240f7aa1cec802a':
  Improve hierarchy viewer dump hierarchy latency
2015-05-08 16:58:05 +00:00
George Mount
0006e88863 Don't call updateDisplayListIfDirty outside draw.
Bug 20909826

Change-Id: If332319ba192606cc30fc8d0de00086fc5135deb
2015-05-08 07:51:44 -07:00
Selim Cinek
03fdca1b29 Merge "Fixed a bug where the heads-up would not show when full screen" into mnc-dev 2015-05-08 02:04:52 +00:00
Siva Velusamy
94a6d15ede Use new hierarchy viewer protocol in all View subclasses
A previous CL introduced a new way of encoding view properties for
use by heirarchy viewer. This CL updates all views using the old
@ExportedProperty annotation to use this new method. The older
mechanism will be removed in a subsequent CL.

Change-Id: I6cc23b90cd9da1c6ce89b4caffe54874db203452
2015-05-07 18:44:21 -07:00
Siva Velusamy
0d857b9028 Improve hierarchy viewer dump hierarchy latency
Hierarchy Viewer obtains the properties for each view by using
reflection and looking for fields and methods that have the
@ExportedProperty annotation. Using reflection made it quite slow
for large view hierarchies.

This CL adds a new method (encode) to each class that wishes to
export data to hiererachy viewer. Inside this method, the object
can write a sequence of key, value pairs corresponding to the
values it wants exported.

With this change, the dump hierarchy operation that used to take
more than 10 seconds can be performed in a few hundred milliseconds.

Change-Id: I199ac2e7ca3c59ebcfec7e6bd201e134c41fd583
2015-05-07 18:44:15 -07:00
Maxim Bogatov
bbac0f7c73 Merge "Add support of performing clicks on ClickableSpans from AccessibilityService" 2015-05-08 01:33:51 +00:00
Maxim Bogatov
32e59d59f4 Add API for set progress on ProgressBar/SeekBar
b/12912083

Change-Id: I3a7807f0ac40220139da21248d539fa796d0a544
2015-05-07 17:55:57 -07:00
Maxim Bogatov
219b41dd50 Add support of performing clicks on ClickableSpans from AccessibilityService
Two optional parameters were added for ACTION_CLICK.
ACTION_ARGUMENT_CLICK_SPAN_INDEX_INT represents index of ClickableSpan to click on
ACTION_ARGUMENT_CLICK_CHARACTER_INDEX_INT represents index of character.
The first span that added for that character will be triggered.
If none of above parameters are passed with action the view will be clicked

b/17726921

Change-Id: Ia4d3994c1bca950319557ec7cdb2df84314d7519
2015-05-07 17:37:53 -07:00
Selim Cinek
4a4a2bddc4 Fixed a bug where the heads-up would not show when full screen
Bug: 20728541
Change-Id: I74bc74c4936b003a4c0c37b7c7da2d1fa138c077
2015-05-07 16:54:05 -07:00
Dianne Hackborn
49b043f37d Fix issue #20655182: API Review: ViewAssistStructure
Fix the various view assist related APIs.

Also remove the blockAssist view attribute, and instead use
the window's FLAG_SECURE to drive blocking of the entire
hierarchy (which is semantically correct, and will protect
existing apps that have already indicated they need it).

Change-Id: I6beebc86b202809cba0a356cae9607d8d0fb5e78
2015-05-07 16:30:52 -07:00
George Mount
3f9a81757e am 7b44e5b5: am a31b76e4: am b3ba2138: Merge "Fix crash during Activity Transition with TextureView." into mnc-dev
* commit '7b44e5b5b96bc88b4f328dc1d1c2228e525e1bc8':
  Fix crash during Activity Transition with TextureView.
2015-05-07 17:17:04 +00:00
Yohei Yukawa
c38088b4a4 am 9e391183: am c3d4c6a5: am f2cac4d4: Merge "Retry "Always show auxiliary subtypes from NavBar keyboard icon."" into mnc-dev
* commit '9e391183a59adddeb81537f0250b4434d1f71284':
  Retry "Always show auxiliary subtypes from NavBar keyboard icon."
2015-05-07 17:16:27 +00:00
George Mount
41725dedc3 Disable input during Activity Transition.
Bug 19437530

While the actual Activity Transitions are running,
input is stopped, except for the "back" button.

Change-Id: I112e6252b9de05ece10a6267681fee5487e5ef6b
2015-05-07 08:36:28 -07:00
George Mount
b3ba213895 Merge "Fix crash during Activity Transition with TextureView." into mnc-dev 2015-05-07 14:34:02 +00:00
Bart Sears
f90d8fe435 am 4bbfd055: am d54276f6: am 1b0888fe: Merge "Revert "Always show auxiliary subtypes from NavBar keyboard icon."" into mnc-dev
* commit '4bbfd055111b6120dcf4a8fa971806c27b7dca65':
  Revert "Always show auxiliary subtypes from NavBar keyboard icon."
2015-05-07 05:42:12 +00:00
Adam Powell
1ac256a1e7 am f1b3e224: am 7068697e: am 90ae4553: Merge "Move PhoneWindow and friends back into internal package" into mnc-dev
* commit 'f1b3e2243f93a626393602177162f0bebb8772ab':
  Move PhoneWindow and friends back into internal package
2015-05-07 05:41:04 +00:00
Seigo Nonaka
2f786847a7 am 47d2753a: am 98b14c46: am 06bdf9c6: Merge "Always show auxiliary subtypes from NavBar keyboard icon." into mnc-dev
* commit '47d2753a3b629011e31f43f953290ecd0a6b8c6a':
  Always show auxiliary subtypes from NavBar keyboard icon.
2015-05-07 05:39:40 +00:00
Seigo Nonaka
14e139179b Retry "Always show auxiliary subtypes from NavBar keyboard icon."
This CL relands I1e50ee42838a1bf64a612da4904aa93458d44ea4, which was
reverted by I3decaf37198e5864a1763a059df4a36ebc70c5a7 due to the build
breakage in 'layoutlib' target, with a proper fix.

Hereafter the original CL description is repeated.

The auxiliary subtypes should be listed if the input method picker is
opened from NavBar keyboard icon.  However there is only
IMM#showInputMethodPicker() API to open input method picker and this is
also used from LockScreen or Settings UI.  Auxiliary subtypes should not
be listed there(Id7cf5d122).  Thus framework shows auxiliary subtypes
based on IMMS#mInputShown and LockScreen state, but it is not a perfect
solution.  If a physical keyboard is connected, the soft input may be
gone.  As the result, auxiliary subtypes won't be listed even if it is
opened from NavBar keyboard icon.

To fix this issue, this CL introduces IMM#showInputMethodPicker(boolean)
to be able to decide showing auxiliary subtypes by caller.
Note that IMM#showInputMethodPicker(boolean) is still hidden with @hide.
There is no public API change in this CL.

Bug: 20763994
Change-Id: Id156c85535a221235737ea6dcc15a67f1c4b9f71
2015-05-06 21:34:07 -07:00
Bart Sears
1b0888fe8e Merge "Revert "Always show auxiliary subtypes from NavBar keyboard icon."" into mnc-dev 2015-05-07 01:52:08 +00:00
Bart Sears
d130bdc462 Revert "Always show auxiliary subtypes from NavBar keyboard icon."
CL is breaking the build.  Discussed with Seigo and verting until he can take a look at it.

This reverts commit 80ff4ed6bb.

Change-Id: I3decaf37198e5864a1763a059df4a36ebc70c5a7
2015-05-07 01:51:28 +00:00
George Mount
8261a3f5ed Fix crash during Activity Transition with TextureView.
Bug 20675857

GhostView was synchronously forcing the View's parent to get
the display list when it was created. TextureView's cannot
create a display list until a surface is available and will
crash if it is attempted. This change moves the request to
an invalidate to get it to execute at a later time.

Change-Id: I12afebdfd57eb29c1a35b23a63d045e319547faf
2015-05-06 16:24:07 -07:00
Adam Powell
6711f3b34c Move PhoneWindow and friends back into internal package
PhoneWindow, PhoneLayoutInflater and PhoneFallbackEventHandler decided
to @hide out over in the android.view package after the policy jar was
disbanded. Give them a more appropriate home over in framework that
doesn't imply that they should be accessed from other internal layers
of abstraction.

Bug 19606548

Change-Id: Id07b791d178fa447010b49b24726b52208838e88
2015-05-06 15:57:09 -07:00
Seigo Nonaka
06bdf9c6a6 Merge "Always show auxiliary subtypes from NavBar keyboard icon." into mnc-dev 2015-05-06 20:31:19 +00:00
Seigo Nonaka
80ff4ed6bb Always show auxiliary subtypes from NavBar keyboard icon.
The auxiliary subtypes should be listed if the input method picker is
opened from NavBar keyboard icon.  However there is only
IMM#showInputMethodPicker() API to open input method picker and this is
also used from LockScreen or Settings UI.  Auxiliary subtypes should not
be listed there(Id7cf5d122).  Thus framework shows auxiliary subtypes
based on IMMS#mInputShown and LockScreen state, but it is not a perfect
solution.  If a physical keyboard is connected, the soft input may be
gone.  As the result, auxiliary subtypes won't be listed even if it is
opened from NavBar keyboard icon.

To fix this issue, this CL introduces IMM#showInputMethodPicker(boolean)
to be able to decide showing auxiliary subtypes by caller.
Note that IMM#showInputMethodPicker(boolean) is still hidden with @hide.
There is no public API change in this CL.

Bug: 20763994

Change-Id: I1e50ee42838a1bf64a612da4904aa93458d44ea4
2015-05-06 20:29:05 +00:00
Alan Viverette
8876e44449 am 14823d60: am 72a04431: am 71b0cb04: Merge "Add scroll indicators on View, use in AlertDialog" into mnc-dev
* commit '14823d609aa66cf2980a7be0c613897752bd332a':
  Add scroll indicators on View, use in AlertDialog
2015-05-06 17:51:09 +00:00
Alan Viverette
922e1c6ed2 Add scroll indicators on View, use in AlertDialog
Also updates default fade duration for scrollbars to match Material
spec and moves around some padding in AlertDialog so that scrolling
text and list items aren't so close to the title.

Bug: 19098033
Change-Id: I40dca6a931480c4c48463e3ea5b8361534cbd8d7
2015-05-06 10:09:35 -07:00
Chris Craik
629f9c715c am 8fffd604: am 217ade77: am 356b1777: Merge "Cleanup properties" into mnc-dev
* commit '8fffd6045d0eb27fbd6e894f6eee9818cda973bc':
  Cleanup properties
2015-05-05 22:03:13 +00:00
Chris Craik
356b177709 Merge "Cleanup properties" into mnc-dev 2015-05-05 21:30:08 +00:00
Chris Craik
2507c34d91 Cleanup properties
bug:19967854

Separate properties from Caches, into static, RenderThread-only class.

Also rewrites the means for java to set properties to correctly handle
threading, and adds an override for profile bars so that SysUi doesn't clutter
the screen with them.

Change-Id: I6e21a96065f52b9ecc49d1a126244804ba106fa9
2015-05-05 10:36:09 -07:00
Alan Viverette
21d7cb6f26 am dc49a8bb: am d0dfb237: am d38d3574: Merge "Always force constructors accessible during inflation" into mnc-dev
* commit 'dc49a8bb23e765525f1bc752a417cb43cba19dbf':
  Always force constructors accessible during inflation
2015-05-05 01:36:10 +00:00