Commit Graph

3675 Commits

Author SHA1 Message Date
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
Fabrice Di Meglio
c1432543f6 am f119af67: am 41148af5: Merge "Fix bug #7241988 Padding is mostly set to "0"" into jb-mr1-dev
* commit 'f119af675b77e34e791d3b02cae9401d0fdcfc06':
  Fix bug #7241988 Padding is mostly set to "0"
2012-09-28 00:34:18 -07:00
Romain Guy
864e87576b am 08874db8: Merge "Fix HierarchyViewer so it can load Contacts" into jb-mr1-dev
* commit '08874db8ed9f81f1d0f205bbffe87f913e50bc57':
  Fix HierarchyViewer so it can load Contacts
2012-09-27 23:43:00 -07:00
Romain Guy
08874db8ed Merge "Fix HierarchyViewer so it can load Contacts" into jb-mr1-dev 2012-09-27 23:40:56 -07:00
Romain Guy
97723b2eb4 Fix HierarchyViewer so it can load Contacts
Change-Id: I5d5f400a9283f9c2431d91a10f85be42b02fe6a0
2012-09-27 23:36:34 -07:00
Fabrice Di Meglio
404a4fcd96 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 '10a2979e551243f337e4ae1a2951c282546c7433':
  Fix bug #7249363 Icons in the Camera UI (to switch camera types and on the focus ring) are missing
2012-09-27 21:00:00 -07:00
Fabrice Di Meglio
10a2979e55 Merge "Fix bug #7249363 Icons in the Camera UI (to switch camera types and on the focus ring) are missing" into jb-mr1-dev 2012-09-27 20:57:13 -07:00
Svetoslav Ganov
8f346d8578 am 7befb7de: Global gesture to toggle Accessibility system-wide.
* commit '7befb7deb2ac15134b3bb190520cba19165d16dd':
  Global gesture to toggle Accessibility system-wide.
2012-09-27 20:36:16 -07:00
Svetoslav Ganov
7befb7deb2 Global gesture to toggle Accessibility system-wide.
1. This change adds a global gesture for enabling accessibility.
   To enable this gesture the user has to allow it from the
   accessibility settings or use the setup wizard to enable
   accessibility. When the global gesture is enabled the user
   can long press on power to bring the global actions dialog
   and then hold with two fingers for a few seconds to enable
   accessibility. The appropriate feedback is also provided.

2. The global gesture is writing directly into the settings for
   the current user if performed when the keyguard is not on. If
   the keygaurd is on and the current user has no accessibility
   enabled, the gesture will temporary enable accessibility
   for the current user, i.e. no settings are changed, to allow
   the blind user to log into his account. As soon as a user
   switch happens the new user settings are inherited. If no
   user change happens after temporary enabling accessibility
   the temporary changes will be undone when the keyguard goes
   away and the device will works as expected by the current user.

bug:6171929

3. The initialization code for the owner was not executed due
   to a redundant check, thus putting the accessibility layer in
   an inconsistent state which breaks pretty much everything.

bug:7240414

Change-Id: Ie7d7aba80f5867b7f88d5893b848b53fb02a7537
2012-09-27 20:33:20 -07:00
Fabrice Di Meglio
75aefb8fe8 Fix bug #7249363 Icons in the Camera UI (to switch camera types and on the focus ring) are missing
- no need to initialize mPaddingLeft/Right to UNDEFINED_PADDING

Change-Id: Icfdcc9bcb904228443e9adfde8038b5d8764365b
2012-09-27 19:55:18 -07:00
Fabrice Di Meglio
03b8d3a9a4 Fix bug # 7172247 API REVIEW: android.view.ViewGroup.MarginLayoutParams
- remove isLayoutRtl() from public API

Change-Id: If700e3f5f30e3c98403b48dbcdd892535d929e2d
2012-09-27 17:05:27 -07:00
Fabrice Di Meglio
9a04856d5e Other improvements for bug #6427629 Clean up layout direction APIs
- hide isLayoutRtl() from public API

- canResolveXXX() is now smarter: use recursion to get its returned value

- in ViewGroup, if resolution cannot be done then dont ask resolution for
its children

- in ViewGroup, addViewInner() needs to ask to resolve the child. This is
needed for example by ListView which is using the same measurespec before
and after its childs being attached.

It also take care of the general case where a measure pass is done when not
attached to a parent (and thus asking for resolution that will "fail" if we
are using IHNERIT) and never done again. That would lead to never do a
resolution.

- some code refactoring

Change-Id: I120dd2fef7397944f5ba8deff0686b108dc827d2
2012-09-27 16:39:14 -07:00
Chet Haase
22904334a0 am 4af11461: Merge "Force redraw of new/resized windows" into jb-mr1-dev
* commit '4af1146145550dee904bcaa744abfa582c8756b7':
  Force redraw of new/resized windows
2012-09-27 16:07:13 -07:00
Chet Haase
4af1146145 Merge "Force redraw of new/resized windows" into jb-mr1-dev 2012-09-27 16:05:12 -07:00
Chet Haase
391fef0f5d Force redraw of new/resized windows
Our use of the GL flag EGL_SWAP_BEHAVIOR_PRESERVED_BIT caused a problem
with windows that are resized, where some of the contents were not being
updated when the window was first placed/resized. The fix is to force the
window to redraw completely when it is first resized.

Issue #7246918 Label selection view disappears

Change-Id: I3562141569502af581a3d63b1290c598abb57ade
2012-09-27 15:26:36 -07:00
Philip Milne
f7da569774 Merge "Optical bounds support for LinearLayout, TableLayout and TableRow." 2012-09-27 15:08:11 -07:00
Fabrice Di Meglio
a89953deca am 41148af5: Merge "Fix bug #7241988 Padding is mostly set to "0"" into jb-mr1-dev
* commit '41148af5e6f1699c4e87ff6aa0ac1be974587aff':
  Fix bug #7241988 Padding is mostly set to "0"
2012-09-27 14:58:14 -07:00
Philip Milne
ad365cc217 Optical bounds support for LinearLayout, TableLayout and TableRow.
The generic support for optical bounds provided in:

https://googleplex-android-review.googlesource.com/#/c/228269/

did not work correctly for nested LinearLayouts. With this fix
all the layouts in the APIdemos now seem to layout correctly
when the optical bounds mode is enabled.

(There's currently no, user level, way to do this. Instead, the
optical bounds layout mode has to be enabled on a per view basis.)

Change-Id: Id3d1d84445a8a2df277ddfe679c42f2d6cf775f4
2012-09-27 14:46:36 -07:00