Commit Graph

3692 Commits

Author SHA1 Message Date
Svetoslav Ganov
91aef0cfc4 am 913883d3: am 87779f63: am 87d7d946: Merge "Accessibility focus should not scroll automatically." into jb-mr1-dev
* commit '913883d30200d33ffaf712953f05ce3990202440':
  Accessibility focus should not scroll automatically.
2012-10-02 12:12:15 -07:00
Svetoslav Ganov
87779f63c7 am 87d7d946: Merge "Accessibility focus should not scroll automatically." into jb-mr1-dev
* commit '87d7d94673512c9572fa62c2842ce20bc87bf8b9':
  Accessibility focus should not scroll automatically.
2012-10-02 12:08:45 -07:00
Svetoslav Ganov
a85236e510 Accessibility focus should not scroll automatically.
1. We use auto scroll when a view gets accessibility focus.
   Pros: Having magnification and TalkBack enabled together (not a common use case)
         will have the accessibility focused view on the screen (it is auto panned).
   Cons: A blind user can get stuck in a very lock scroll view - not good.

2. We do not auto scroll when a view gets accessibility focus.
   Pros: A blind user cannot get stuck in a long scroll view as he has to explicitly
         scroll.
   Cons: The magnified area will not pan to ensure the accessibility focused view
         is visible.

Option one is the better trade off and this change removes the auto scrolling.

bug:7265773

Change-Id: I209b54ed18acad36c1f35b4c09b980e45ec9bbff
2012-10-02 11:31:18 -07:00
Fabrice Di Meglio
3dadb63c7f am 44bfaedd: am 338a3853: am efe9b483: Merge "Fix bug #7259242 text is left justified with no padding" into jb-mr1-dev
* commit '44bfaedd1e0b4abad9748b2c6f70d805af22bb27':
  Fix bug #7259242 text is left justified with no padding
2012-10-01 16:10:49 -07:00
Fabrice Di Meglio
338a3853e8 am efe9b483: Merge "Fix bug #7259242 text is left justified with no padding" into jb-mr1-dev
* commit 'efe9b483547ac44dbc88bdfd6a54be5c95c2d889':
  Fix bug #7259242 text is left justified with no padding
2012-10-01 16:06:58 -07:00
Fabrice Di Meglio
efe9b48354 Merge "Fix bug #7259242 text is left justified with no padding" into jb-mr1-dev 2012-10-01 16:04:40 -07:00
Adam Powell
e9234dd1ed am 075bb6b3: Merge "DO NOT MERGE - Revert fixes for ImageView/MeasureSpec/RelativeLayout" into jb-mr1-dev
* commit '075bb6b3dfb9e58aa44c3b8588ab233a832956a3':
  DO NOT MERGE - Revert fixes for ImageView/MeasureSpec/RelativeLayout
2012-10-01 15:56:58 -07:00
Adam Powell
075bb6b3df Merge "DO NOT MERGE - Revert fixes for ImageView/MeasureSpec/RelativeLayout" into jb-mr1-dev 2012-10-01 15:53:49 -07:00
Fabrice Di Meglio
6e6d78116b Fix bug #7259242 text is left justified with no padding
(padding is still hard)

- fix Toasts: basically the background drawable padding was not
taken into account

Change-Id: Iefd29782f50b6f6a56578cfeb2af119d381207f0
2012-10-01 15:53:01 -07:00
Jeff Brown
ecdae4b1d3 am 13176e63: am cd781ce2: am cb6f950f: Merge "New internal API to eliminate poke locks." into jb-mr1-dev
* commit '13176e639cca469268dfb99128b7cdff2d75d098':
  New internal API to eliminate poke locks.
2012-10-01 15:27:36 -07:00
Jeff Brown
cd781ce2eb am cb6f950f: Merge "New internal API to eliminate poke locks." into jb-mr1-dev
* commit 'cb6f950f15919794d26a55c20090fe5dacd11e4a':
  New internal API to eliminate poke locks.
2012-10-01 15:22:45 -07:00
Jeff Brown
cb6f950f15 Merge "New internal API to eliminate poke locks." into jb-mr1-dev 2012-10-01 15:20:23 -07:00
Fabrice Di Meglio
aae1299e29 am 8135814a: am 9b6f05f8: am 749a9970: Merge "Fix bug #7259242 text is left justified with no padding" into jb-mr1-dev
* commit '8135814af23f85e129e8e3b7ed3ddaa41eca46fe':
  Fix bug #7259242 text is left justified with no padding
2012-10-01 15:11:06 -07:00
Adam Powell
946d05b95f DO NOT MERGE - Revert fixes for ImageView/MeasureSpec/RelativeLayout
MeasureSpec.makeMeasureSpec has a bug where a negative or very large
size parameter will cause the resulting MeasureSpec value to
overflow. RelativeLayout partially relies on this when measuring
children with mode UNSPECIFIED; a default value of -1 in a local
variable ends up being passed to makeMeasureSpec, overflowing a mode
value to create a measurespec that is very large in size, with AT_MOST
as the mode. The correct behavior is for RelativeLayout to propagate
the UNSPECIFIED mode.

Unfortunately a number of custom view implementations in apps rely on
the buggy behavior as they do not implement their own onMeasure
method. This makes them fall back to View's default onMeasure
implementation, which accepts the spec's size unconditionally for
AT_MOST or EXACTLY modes, but falls back on
getSuggestedMinimum[Width|Height] for UNSPECIFIED. If the view had no
background drawable with dimensions and no minWidth field set, this
fix for RelativeLayout causes some views to measure with a size of 0
rather than a size of the 30-bit version of 0xFF...

Revert these fixes in the interests of compatibility. The next version
will conditionally use the new behavior if targetSdk > JB-MR1.

This also required reverting a fix for ImageView's adjustViewBounds
functionality, as it cannot be implemented reliably if this
RelativeLayout fix is not also in place.

Revert "Fix UNSPECIFIED measurement in RelativeLayout"

This reverts commit 132a742b94.

Revert "Fix adjustViewBounds handling for ImageView"

This reverts commit d5edc77217.
2012-10-01 15:06:46 -07:00
Fabrice Di Meglio
9b6f05f8df am 749a9970: Merge "Fix bug #7259242 text is left justified with no padding" into jb-mr1-dev
* commit '749a997093751a5d2e5b71f0ae3ab5b7527b68bd':
  Fix bug #7259242 text is left justified with no padding
2012-10-01 15:06:19 -07:00
Jeff Brown
1e3b98d47d New internal API to eliminate poke locks.
Added a new WindowManager.LayoutParams inputFeatures flag
to disable automatic user activity behavior when an input
event is sent to a window.

Added a new WindowManager.LayoutParams field userActivityTimeout.

Bug: 7165399
Change-Id: I204eafa37ef26aacc2c52a1ba1ecce1eebb0e0d9
2012-10-01 14:27:34 -07:00
Fabrice Di Meglio
80766f1bdf Fix bug #7259242 text is left justified with no padding
(padding is hard)

- set correct values to mUserPaddingLeftInitial / mUserPaddingRightInitial
- reset padding to initial values depending on layout direction

Change-Id: I5cfb941b4874eafbfcfb5e2926f5a3c80b4931d3
2012-10-01 13:13:12 -07:00
Chet Haase
d2e74f3400 am 1dd00221: am bcdaf8cb: am 62ea4363: Merge "Fix texture corruption" into jb-mr1-dev
* commit '1dd002214e9734aa862db9b7e7092aacd737e46d':
  Fix texture corruption
2012-10-01 11:17:35 -07:00
Fabrice Di Meglio
51e1f8c2a0 am e05c1726: am 3332a701: am 10c84edc: Merge "Fix bug #7199562 UI mirroring for RTL locales (Arabic, Hebrew, Farsi): Play settings" into jb-mr1-dev
* commit 'e05c17263827fa26e63f83a82cb024af6b62900c':
  Fix bug #7199562 UI mirroring for RTL locales (Arabic, Hebrew, Farsi): Play settings
2012-10-01 11:16:47 -07:00
Romain Guy
725fc438a1 am d49faf39: am 25c8c198: am 8ed6b6a9: Merge "Perform a long computation to catch bitmap sizes > 32 bits Bug #7257930" into jb-mr1-dev
* commit 'd49faf39ec1eaff58d51e7f6458347ffd51e137c':
  Perform a long computation to catch bitmap sizes > 32 bits Bug #7257930
2012-10-01 11:16:44 -07:00
Fabrice Di Meglio
639d09b466 am 840ea01f: am 93cea34a: am f2e5cf48: Merge "Fix bug #6427629 Clean up layout direction APIs" into jb-mr1-dev
* commit '840ea01fcbafe5d6b3fc8d90dcb5d99a65fa0113':
  Fix bug #6427629 Clean up layout direction APIs
2012-10-01 11:16:35 -07:00
Chet Haase
bcdaf8cb6d am 62ea4363: Merge "Fix texture corruption" into jb-mr1-dev
* commit '62ea4363362526d32b48f920601d3b4e27a117bb':
  Fix texture corruption
2012-09-30 15:56:39 -07:00
Chet Haase
6a2d17f713 Fix texture corruption
When memory gets low on a device, activities flush everything they can.
Hardware-accelerated activites, such as Launcher, flush GL resources and destroy
the GL context. However, some resources were still hanging around, due to deferred
destruction policies (we don't delete layers until the DisplayLists they are in
are finalized, to ensure we don't deref deleted objects). This meant that we were
referring to obsolete GL data in these objects. in particular, it meant that we might
come around later, after a new GL context was created, and delete a texture object
that was incorrect. We use the layer's "texture id" to refer to the texture underlying the
layer. But if there's a new GL context, then this texture ID is no longer valid, and
we may be deleting the texture that a different object (layer, icon, whatever) is referring
to, because the driver may return that same ID under the new GL context.

The fix is to more aggressively delete things that we know will not be used again
when the GL context is destroyed. In particular, we delete all resources being used
by all DisplayLists at GL context destruction time.

Issue #7195815 Textures corruption on all devices, in many apps

Change-Id: I52d2d208173690dbb794a83402d38f14ea4c6c22
2012-09-30 15:35:08 -07:00
Fabrice Di Meglio
3332a701e1 am 10c84edc: Merge "Fix bug #7199562 UI mirroring for RTL locales (Arabic, Hebrew, Farsi): Play settings" into jb-mr1-dev
* commit '10c84edcfa674f13d798f4de65f95c76269c6191':
  Fix bug #7199562 UI mirroring for RTL locales (Arabic, Hebrew, Farsi): Play settings
2012-09-30 11:37:00 -07:00
Romain Guy
25c8c198e6 am 8ed6b6a9: Merge "Perform a long computation to catch bitmap sizes > 32 bits Bug #7257930" into jb-mr1-dev
* commit '8ed6b6a96bf887e0b49c48838a9f22bb0f256296':
  Perform a long computation to catch bitmap sizes > 32 bits Bug #7257930
2012-09-30 11:35:16 -07:00
Fabrice Di Meglio
10c84edcfa Merge "Fix bug #7199562 UI mirroring for RTL locales (Arabic, Hebrew, Farsi): Play settings" into jb-mr1-dev 2012-09-30 11:33:31 -07:00
Romain Guy
8ed6b6a96b Merge "Perform a long computation to catch bitmap sizes > 32 bits Bug #7257930" into jb-mr1-dev 2012-09-30 11:28:54 -07:00
Romain Guy
af61cc4cbb Perform a long computation to catch bitmap sizes > 32 bits
Bug #7257930

Change-Id: I28d08024fabe8103251d480524b0b0f2fd2d2aba
2012-09-30 11:26:39 -07:00
Fabrice Di Meglio
47fb191841 Fix bug #7199562 UI mirroring for RTL locales (Arabic, Hebrew, Farsi): Play settings
- do not need those variables. Use what we already have in View.
- reset padding to initial values before changing it.

Change-Id: Ib396b3dca6e98a94d83a538a9b594b5eb426c453
2012-09-30 11:00:02 -07:00
Fabrice Di Meglio
93cea34a7f am f2e5cf48: Merge "Fix bug #6427629 Clean up layout direction APIs" into jb-mr1-dev
* commit 'f2e5cf487e9bda4da1b902cb5c816ba48c9b7004':
  Fix bug #6427629 Clean up layout direction APIs
2012-09-30 10:55:18 -07:00
Fabrice Di Meglio
f2e5cf487e Merge "Fix bug #6427629 Clean up layout direction APIs" into jb-mr1-dev 2012-09-30 10:53:26 -07:00
Fabrice Di Meglio
343e11345e Fix bug #6427629 Clean up layout direction APIs
- remove onPaddingChanged(int) and fold it into onRtlPropertiesChanged(int)

Change-Id: I1d7f02d2b4538c6c991bd4285501bbc73e6aa5c3
2012-09-28 18:26:07 -07:00
Adam Powell
7fb07337f8 am 4984ec72: Merge "Fix adjustViewBounds handling for ImageView" into jb-mr1-dev
* commit '4984ec7222d86a9b507a9961363bf50d2b72df1b':
  Fix adjustViewBounds handling for ImageView
2012-09-28 17:09:51 -07:00
Jean-Baptiste Queru
e3eb2c7754 am 3c45765a: Merge from jb-mr1-aah-dev
* commit '3c45765a2a15c685aa28b74f626c6c10c909c133': (21 commits)
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Send Trackball clicks instead of Enter Key for taps
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Fix auto-merger error in I74c0644c6938d28c20c42d88d995ffb56a71d703
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Converts hover touch events to trackball events
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  ...
2012-09-28 16:51:21 -07:00
Jean-Baptiste Queru
3c45765a2a Merge from jb-mr1-aah-dev
Change-Id: I4deb6ff1d3c9e00aefacbe772227bf43c139ecca
2012-09-28 16:44:18 -07:00
Adam Powell
686d8e73ac am 2e35df06: am 4984ec72: Merge "Fix adjustViewBounds handling for ImageView" into jb-mr1-dev
* commit '2e35df06e795e89af66850a9e12d9b1c53f9a53d':
  Fix adjustViewBounds handling for ImageView
2012-09-28 16:22:35 -07:00
Adam Powell
d5edc77217 Fix adjustViewBounds handling for ImageView
When computing the adjusted view bounds, don't constrain the
dimensions by the original estimate if the opposite dimension has a
fixed size. This can result in the view never getting properly
enlarged.

Also fix a long-standing bug in MeasureSpec.makeMeasureSpec where
oversized or negative values could result in broken packed values.

Bug 7240251

Change-Id: I359d108ff52b6f3b5c4bf393d2271d28999c0127
2012-09-28 15:52:36 -07:00
Fabrice Di Meglio
3c26928062 am 2f37d37c: am 8af2a13d: Merge "Fix bug # 7172247 API REVIEW: android.view.ViewGroup.MarginLayoutParams" into jb-mr1-dev
* commit '2f37d37c60ab3572b09fc06d2380624456a83666':
  Fix bug # 7172247 API REVIEW: android.view.ViewGroup.MarginLayoutParams
2012-09-28 12:39:05 -07:00
Fabrice Di Meglio
658d260b1a am b1b6be8b: am 669aa7cb: Merge "Other improvements for bug #6427629 Clean up layout direction APIs" into jb-mr1-dev
* commit 'b1b6be8bc36a95eab263c04cc77d3b7d29ca06f4':
  Other improvements for bug #6427629 Clean up layout direction APIs
2012-09-28 12:37:19 -07:00
Fabrice Di Meglio
4287bb6040 am 8af2a13d: Merge "Fix bug # 7172247 API REVIEW: android.view.ViewGroup.MarginLayoutParams" into jb-mr1-dev
* commit '8af2a13d038002522c2f4e5d65bd703db9f86a08':
  Fix bug # 7172247 API REVIEW: android.view.ViewGroup.MarginLayoutParams
2012-09-28 12:36:18 -07:00
Fabrice Di Meglio
778aea3926 am 669aa7cb: Merge "Other improvements for bug #6427629 Clean up layout direction APIs" into jb-mr1-dev
* commit '669aa7cb35e0d32fbf6f26a44e5ab8f6fae37de9':
  Other improvements for bug #6427629 Clean up layout direction APIs
2012-09-28 12:34:33 -07:00
Fabrice Di Meglio
8af2a13d03 Merge "Fix bug # 7172247 API REVIEW: android.view.ViewGroup.MarginLayoutParams" into jb-mr1-dev 2012-09-28 12:33:49 -07:00
Fabrice Di Meglio
669aa7cb35 Merge "Other improvements for bug #6427629 Clean up layout direction APIs" into jb-mr1-dev 2012-09-28 12:31:46 -07:00
Adam Powell
8a9d3bf4dc am ce7426db: am 808ce66a: Merge "ScaleGestureDetector does the safety dance." into jb-mr1-dev
* commit 'ce7426dbbe0a9cd1a147169d8d7fdcc2b03c719f':
  ScaleGestureDetector does the safety dance.
2012-09-28 12:25:56 -07:00
Adam Powell
493e037ce3 am 808ce66a: Merge "ScaleGestureDetector does the safety dance." into jb-mr1-dev
* commit '808ce66a08bbd2604d71f3368788ba7496f71482':
  ScaleGestureDetector does the safety dance.
2012-09-28 12:24:08 -07:00
Adam Powell
f3a2bf8edd ScaleGestureDetector does the safety dance.
Warn in the event of possibly bogus event streams and don't try to
clear empty history.

Bug 7241640
Bug 7243006

Change-Id: I037cf1334cab790ef5998ca5f8f6b323ed5f4459
2012-09-28 12:05:10 -07:00
Romain Guy
3ecac08af5 am 8399392d: am 08874db8: Merge "Fix HierarchyViewer so it can load Contacts" into jb-mr1-dev
* commit '8399392d70a3cb515d68c600265638d42baf0161':
  Fix HierarchyViewer so it can load Contacts
2012-09-28 00:38:24 -07:00
Fabrice Di Meglio
3fd13cb4be am ac7348a3: am 10a2979e: Merge "Fix bug #7249363 Icons in the Camera UI (to switch camera types and on the focus ring) are missing" into jb-mr1-dev
* commit 'ac7348a3228177a0e08b8be2fec88e23b82c6043':
  Fix bug #7249363 Icons in the Camera UI (to switch camera types and on the focus ring) are missing
2012-09-28 00:37:11 -07:00
Svetoslav Ganov
55a014a35e am 0bbcfe2d: am 7befb7de: Global gesture to toggle Accessibility system-wide.
* commit '0bbcfe2d5d359f8c16423166763ec14b22f53d88':
  Global gesture to toggle Accessibility system-wide.
2012-09-28 00:37:04 -07:00
Chet Haase
06e7a030c0 am d3451ae8: am 4af11461: Merge "Force redraw of new/resized windows" into jb-mr1-dev
* commit 'd3451ae8e07fefad529d6abf4f48ca83e177b4fb':
  Force redraw of new/resized windows
2012-09-28 00:35:13 -07:00