Commit Graph

7156 Commits

Author SHA1 Message Date
Michael Wright
ab28eef80b am 91c8f208: am 611136c1: am 805fc82e: Merge "Add method to set action button on MotionEvent" into mnc-dev
* commit '91c8f2086f3ed2de85391d99e7ffaf98041f105e':
  Add method to set action button on MotionEvent
2015-06-23 13:20:38 +00:00
Michael Wright
805fc82ea9 Merge "Add method to set action button on MotionEvent" into mnc-dev 2015-06-23 12:48:56 +00:00
Alan Viverette
8adf480f06 am 7f6da50d: am 823f51f3: am 696d2149: Merge "Match default color packing for captioning settings" into mnc-dev
* commit '7f6da50d438753c57b6a408e59868fad3a4a89e1':
  Match default color packing for captioning settings
2015-06-22 21:56:51 +00:00
Alan Viverette
7e4019b741 Match default color packing for captioning settings
"Default" packed colors are indicated by zero alpha and non-zero
red/blue. The cached alpha value used by Settings is stored in green.

Bug: 21602597
Change-Id: I1465210fda854ee979aa3a6b398ae60b41d10711
2015-06-22 13:06:24 -07:00
Derek Sollenberger
82064fcab4 am 87c5a508: am f1c031d5: am b2aea9dc: Merge "Enable Picture w/ HW Accelerated Canvas." into mnc-dev
* commit '87c5a5088e555fb3bbd5f28f1eb85a0596d36250':
  Enable Picture w/ HW Accelerated Canvas.
2015-06-22 16:07:14 +00:00
Derek Sollenberger
b2aea9dcbd Merge "Enable Picture w/ HW Accelerated Canvas." into mnc-dev 2015-06-22 15:38:11 +00:00
Derek Sollenberger
e109940d81 Enable Picture w/ HW Accelerated Canvas.
Bug: 20688645
Change-Id: I664f37d6dbb3e61b17206c82ebcc63f988cefc65
2015-06-22 13:18:29 +00:00
Abodunrinwa Toki
32e4e77b8d am 54103b79: am 2508c6df: am 07e440b2: Merge "Fix FloatingToolbar flickers." into mnc-dev
* commit '54103b7968f0817c77a8d7a054adda1673d4b044':
  Fix FloatingToolbar flickers.
2015-06-19 16:26:05 +00:00
Abodunrinwa Toki
07e440b278 Merge "Fix FloatingToolbar flickers." into mnc-dev 2015-06-19 14:26:11 +00:00
Alan Viverette
29dc8d1951 am 5c1693c2: am 8d207165: am 49e11f80: Merge "Clear/restore calling identity in AccessibilityInteractionClient" into mnc-dev
* commit '5c1693c289b9e7b08a2a870e9a3c5bc20766334e':
  Clear/restore calling identity in AccessibilityInteractionClient
2015-06-18 18:57:57 +00:00
Alan Viverette
49e11f805d Merge "Clear/restore calling identity in AccessibilityInteractionClient" into mnc-dev 2015-06-18 18:22:08 +00:00
Adam Powell
ed213cfea3 am 0f6dd549: am 7fd90265: am 2a1f9164: Merge "Un-hide ViewGroup#onViewAdded/onViewRemoved" into mnc-dev
* commit '0f6dd54943f3b343406c655d3efc392ede0cf0ea':
  Un-hide ViewGroup#onViewAdded/onViewRemoved
2015-06-18 17:57:51 +00:00
Adam Powell
6690d018b9 Un-hide ViewGroup#onViewAdded/onViewRemoved
These methods are generally useful for writing custom views, and by
exposing them we make it easier for custom view authors to still allow
app developers to use an OnHierarchyChangedListener since it will not
be occupied by a custom view's implementation.

Also move the actual dispatch to package-scoped dispatch methods so
that a developer forgetting to call super won't stop a listener from
functioning.

Bug 21866523

Change-Id: Ie2bb5e241d7c5a02a5033f33ecdaeb40aceb20b5
2015-06-18 10:19:18 -07:00
Abodunrinwa Toki
972ab4f858 Fix FloatingToolbar flickers.
This is fixed by avoiding calling toolbar.show() in PhoneWindow.
FloatingActionMode coordinates whether or not the toolbar should be
visible. PhoneWindow differs to it.

This CL also adds a new API:
ActionMode#onWindowFocusChanged(boolean)

Bug: 21617792
Change-Id: Ic49ce1000ce9c782d0f9e17e3d024d462c7b758b
2015-06-18 03:16:21 +01:00
Alan Viverette
56bbeff99a Clear/restore calling identity in AccessibilityInteractionClient
To quote sendAccessibilityEvent(), "it is possible that this manager is
in the same process as the service but client using it is called through
Binder from another process."

Bug: 21737301
Change-Id: I8d4699a0ca8187a12235741ce420948061798f27
2015-06-17 15:33:54 -07:00
Michael Wright
6b819b4147 Add method to set action button on MotionEvent
Change-Id: Id7c547eb6d925385c7c444aa4f3cb754ddecaf6e
2015-06-17 21:06:03 +01:00
Yohei Yukawa
75da8fa8c7 am 97261d79: am 6df39517: am f4d225a4: Fix debug log for SpellCheckerSessionListenerImpl#TASK_CANCEL
* commit '97261d797933f59174ea74e73eb3575679592a7e':
  Fix debug log for SpellCheckerSessionListenerImpl#TASK_CANCEL
2015-06-17 07:12:25 +00:00
Yohei Yukawa
f4d225a4b5 Fix debug log for SpellCheckerSessionListenerImpl#TASK_CANCEL
This is a follow up CL for Ifd05565ac0c057c46ec88a3fb9094c04934041d.

SpellCheckerSessionListenerImpl.taskToString(TASK_CANCEL) has
somehow returned "STATE_WAIT_CONNECTION" probably because of
a copy-and-paste mistake.

With this CL, it now returns "TASK_CANCEL", which is observable
only in debug log anyway though.

Bug: 21319642
Change-Id: Ib0bf11494bd3f210e6e8192fc25a33c65f7d313d
2015-06-16 21:19:00 -07:00
Yohei Yukawa
a983163979 am 54090fef: am cfcd232e: am e34f0984: Merge "Fix a reference leak in SpellCheckerSessionListenerImpl." into mnc-dev
* commit '54090fef7815ca4c2e969f759f96d7c3cdb231b9':
  Fix a reference leak in SpellCheckerSessionListenerImpl.
2015-06-17 03:26:35 +00:00
Yohei Yukawa
e34f0984bb Merge "Fix a reference leak in SpellCheckerSessionListenerImpl." into mnc-dev 2015-06-17 02:54:08 +00:00
Maxim Bogatov
918c3fc326 am 8cd453d1: am a09ee4a6: am e6ba94ce: Merge "fix CTS: AccessibilityEndToEndTest failing" into mnc-dev
* commit '8cd453d11d26cb362dddc41667b9f324c0b6873a':
  fix CTS: AccessibilityEndToEndTest failing
2015-06-16 23:29:50 +00:00
Maxim Bogatov
f399af3e5f fix CTS: AccessibilityEndToEndTest failing
ViewGroup overrides class name population to
AccessibilityEvent. So className is always ViewGroup
for any ViewGroup inherited classes

b/21369265

Change-Id: I46095c21e523e05066c7f6ee395171d4725983ac
2015-06-16 15:19:42 -07:00
Yohei Yukawa
f05ce728f9 Fix a reference leak in SpellCheckerSessionListenerImpl.
The primary goal of this CL is to address a reference leak
in SpellCheckerSession.SpellCheckerSessionListenerImpl if
the SpellCheckerSession is closed too early.  Here is the
minimum repro code.

  TextServicesManager tsm = (TextServicesManager)
          getSystemService(Context.TEXT_SERVICES_MANAGER_SERVICE);
  SpellCheckerSession session = tsm.newSpellCheckerSession(,
          Locale.ENGLISH, listener, false);
  session.close();

In order to make the state management reliable and easier to
debug, this CL replaces SpellCheckerSessionListenerImpl#mOpened
with an explicit state number so that we can tell three different
"not open" cases: 1) not connected yet and not closed yet, 2)
closed before establishing connection, and 3) closed after
establishing connection.

Bug: 21319642
Change-Id: Ifd05565ac0c057c46ec88a3fb9094c04934041d7
2015-06-16 00:29:28 -07:00
Vladislav Kaznacheev
7afa5bd865 am dfa44e75: am a31cda89: am 0021d3fa: Merge "Revert "Make VPA.setInterpolator(null) unset the interpolator."" into mnc-dev
* commit 'dfa44e75d5196559e447276bbaea201487f4db9f':
  Revert "Make VPA.setInterpolator(null) unset the interpolator."
2015-06-15 20:20:17 +00:00
Adam Powell
256bd8b02c am e032baa9: am b05ef5e4: am 417018f2: Merge "Only read foreground attr for FrameLayouts for targetSdkVersion < M" into mnc-dev
* commit 'e032baa9fc8a0f85474c854ff6181bd160f8289b':
  Only read foreground attr for FrameLayouts for targetSdkVersion < M
2015-06-15 20:02:03 +00:00
Vladislav Kaznacheev
0021d3fa13 Merge "Revert "Make VPA.setInterpolator(null) unset the interpolator."" into mnc-dev 2015-06-15 19:43:13 +00:00
Adam Powell
417018f21b Merge "Only read foreground attr for FrameLayouts for targetSdkVersion < M" into mnc-dev 2015-06-15 19:25:21 +00:00
Alan Viverette
68ae7b3d23 am 61c9ca8e: am 36884392: am 2d4dc8db: Merge "Obtain handler from context in CaptioningManager" into mnc-dev
* commit '61c9ca8e9dc6613a9256cccee947e32a74490cfa':
  Obtain handler from context in CaptioningManager
2015-06-15 18:42:52 +00:00
Alan Viverette
2d4dc8db64 Merge "Obtain handler from context in CaptioningManager" into mnc-dev 2015-06-15 18:05:11 +00:00
Vladislav Kaznacheev
78f146f420 Revert "Make VPA.setInterpolator(null) unset the interpolator."
This reverts commit 8cebf3a098.

Bug: 21804709
Change-Id: I4b3c2c4721b8e7dd5cb38c806bdd078344b09799
2015-06-15 06:58:59 +00:00
Adam Powell
bbd3eeb9e5 Only read foreground attr for FrameLayouts for targetSdkVersion < M
Now that the android:foreground attribute is supported for all views
it turns out some existing apps were previously setting foreground or
applying styles with a foreground to unsupporting views even though
the values being set were not drawables. While this was silently
ignored before, now it results in app crashes.

The most expedient fix is to only support foreground on
non-FrameLayout views if the app sets targetSdkVersion to M or newer.

Bug 21646309

Change-Id: I8937f44988866e86e640555f4bbc5dd5b2e1cce1
2015-06-12 14:54:49 -07:00
Dianne Hackborn
f8b3253180 am ccd6d0c1: am d55860d9: am 8a435ced: Merge "Fix APIs." into mnc-dev
* commit 'ccd6d0c14decd111e7e12bf9844fa5ff75aa912e':
  Fix APIs.
2015-06-12 17:48:22 +00:00
Dianne Hackborn
8a435ced67 Merge "Fix APIs." into mnc-dev 2015-06-12 16:34:38 +00:00
Chet Haase
0a488ea63d am 501209df: am 16b4e751: am e61fc94b: Merge "Remove View.getBackgroundColor()" into mnc-dev
* commit '501209dfc0c3bce3596998074638faaa913da174':
  Remove View.getBackgroundColor()
2015-06-12 15:31:13 +00:00
Chet Haase
3dcb9945fd Remove View.getBackgroundColor()
This method was added earlier in M - removing it now based on API
Council feedback.

Issue #21572678  API Review: android.view.View.getBackgroundColor()

Change-Id: I04fad49c3c377218d0fb708dbeaea609aca46ce8
2015-06-12 13:25:27 +01:00
Adam Powell
b94e938e50 am 0b8f8c78: am b0fb6255: am de64ac45: Merge "Check targetSdkVersion when passing size hints for UNSPECIFIED specs" into mnc-dev
* commit '0b8f8c78a250b252e7c5b06c5f1f404e33791ff0':
  Check targetSdkVersion when passing size hints for UNSPECIFIED specs
2015-06-12 01:37:01 +00:00
Dianne Hackborn
ece0f4f519 Fix APIs.
Issue #21039494: API Review: android.os.PowerManager.isDeviceIdleMode()
Issue #21347000: API Review: android.content.IntentFilter
Issue #20654534: API Review: android.app.assist

Also allow use of ActivityManager.setWatchHeapLimit on any platform
build as long as the calling app is debuggable.

Change-Id: Ic597e596fa772fcdf2553b64f444b3d9269e8b92
2015-06-11 18:07:43 -07:00
Adam Powell
d5dbf4b2a0 Check targetSdkVersion when passing size hints for UNSPECIFIED specs
As of MNC stock widgets will pass a size in UNSPECIFIED MeasureSpec
values as a hint of the container size. This lets things like list items
size themselves at 1/3 the size of their container.

This breaks assumptions in a few existing applications, so maintain the
old expectation of 0 size in UNSPECIFIED MeasureSpecs for apps targeting
older SDK versions.

Bug 20975083

Change-Id: Ic7318e88854e00d96852dde2c0e10376b42bf77f
2015-06-11 13:57:41 -07:00
Chris Craik
68278f8420 am 15167d15: am 31f50838: am e22c59b2: Trace each stage of Choreographer driven frames
* commit '15167d15b493e54c5ccc8697256142815132cec0':
  Trace each stage of Choreographer driven frames
2015-06-11 20:25:44 +00:00
Chris Craik
e22c59b291 Trace each stage of Choreographer driven frames
bug:21374535

Change-Id: I332dac216defbc4517441e2a9cdffdf71731f1e6
2015-06-11 19:51:38 +00:00
Chris Banes
2997afda56 am d4e6479e: am 0d4798be: am dbdaa9b4: Merge "API council review feedback for ActionMenuView" into mnc-dev
* commit 'd4e6479ef72202f28fc306988b91f777300ee6d9':
  API council review feedback for ActionMenuView
2015-06-11 17:07:11 +00:00
Chris Banes
dbdaa9b41e Merge "API council review feedback for ActionMenuView" into mnc-dev 2015-06-11 08:05:42 +00:00
Vladislav Kaznacheev
89210027d9 am 99eae978: am 093aba01: am 1955ee57: Merge "Make VPA.setInterpolator(null) unset the interpolator." into mnc-dev
* commit '99eae97826b89f7625652d3fd77ace53c11361f6':
  Make VPA.setInterpolator(null) unset the interpolator.
2015-06-11 01:33:06 +00:00
Vladislav Kaznacheev
1955ee57b3 Merge "Make VPA.setInterpolator(null) unset the interpolator." into mnc-dev 2015-06-10 21:55:39 +00:00
John Reck
979d1cc86b am f0a79ac9: am 0d8f5352: am 767ec843: Merge "Set the right reportNextDraw" into mnc-dev
* commit 'f0a79ac9351f54fa73cffc7227e88b5695767c8c':
  Set the right reportNextDraw
2015-06-10 18:43:11 +00:00
John Reck
6fa9512e34 Set the right reportNextDraw
Bug: 8012229

mReportNextDraw is set by resized to have updateWindow() do
its thing. However if we are in updateWindow() and the
relayout() call to WindowManager wants us to report the draw
we should set reportNextDraw instead of mReportNextDraw
so that we report that frame instead of at the accidental next
invalidate.

Change-Id: If6c38d95599469831a0bd5e4d2b3f6c4f259e40c
2015-06-10 10:25:20 -07:00
Chris Banes
a41b78973d API council review feedback for ActionMenuView
Reverts "MenuItem, navigation and overflow icon tinting" CL,
and adds getter and setter for the overflow icon to ActionMenuView
and Toolbar.

BUG: 21571899

Change-Id: I591f43650356443fa3256e4d74e28b6ddd8c2b33
2015-06-10 11:39:01 +01:00
Chris Craik
d55dee2018 am 64606735: am 57998147: am 751afe20: Merge "Dont ignore layer paint alpha in software path" into mnc-dev
* commit '646067359634a7f2a6e42096b09329127c0dc225':
  Dont ignore layer paint alpha in software path
2015-06-09 23:23:16 +00:00
Chris Craik
751afe2040 Merge "Dont ignore layer paint alpha in software path" into mnc-dev 2015-06-09 22:23:36 +00:00
Yohei Yukawa
e55669e4df am be9ed058: am 3f501b9b: am 62974816: Merge "Do not accept an empty string in EditorInfo#packageName anymore." into mnc-dev
* commit 'be9ed058c6c3c51135a91d476b7adb94bd497f9c':
  Do not accept an empty string in EditorInfo#packageName anymore.
2015-06-09 21:06:16 +00:00