Commit Graph

1084 Commits

Author SHA1 Message Date
Romain Guy
761ae69b7c am 3c372789: Merge "Don\'t dispatchDetachedFromWindow() if the View was not attached." into honeycomb
* commit '3c372789ea0b7836c6a9fe4852fac0de3f29fbbf':
  Don't dispatchDetachedFromWindow() if the View was not attached.
2011-01-16 13:30:43 -08:00
Romain Guy
90fc03bc49 Don't dispatchDetachedFromWindow() if the View was not attached.
Change-Id: I36cb697be76c8c03497284563dc339c5367559c6
2011-01-16 13:07:15 -08:00
Romain Guy
8dd5b1e531 Prevent NPE when a View is detached without having been attached.
Bug #3355252

Change-Id: I58e03983ccf6a27a24619ec0f49659d6d7cc0a64
2011-01-14 17:28:51 -08:00
Romain Guy
2be00ccbe7 am 8dd5b1e5: Prevent NPE when a View is detached without having been attached. Bug #3355252
* commit '8dd5b1e53184ed3b786dd329e12d665ae59ca3f4':
  Prevent NPE when a View is detached without having been attached. Bug #3355252
2011-01-14 17:28:28 -08:00
Dianne Hackborn
a347733000 am 88471b25: Merge "DO NOT MERGE Added check to make orientation calculations more robust" into honeycomb
* commit '88471b25632818a8bc79193e20bd04a8be39f660':
  DO NOT MERGE Added check to make orientation calculations more robust
2011-01-14 16:03:30 -08:00
Niclas Kellgren
fcbbb31f27 DO NOT MERGE Added check to make orientation calculations more robust
Added check avoid a division by zero resulting in NaN which in turn
makes checkFullyTilted to ignore high tilt angles from then on.
If (x, y, z) == (0, 0, 0) then there is no tilt or rotation and
this vector must be ignored. This check is extended to ignore all
small acceleration values where noise can be of big influence.

Low or zero readings can happen when space travelling free falling,
but more commonly when shaking or getting bad readings from the sensor.
The accelerometer is turned off when not used and polling it too soon
after it is turned on may result in (0, 0, 0).

Change-Id: I7b61b77c8a9d4e137bf6352b84f0c358d93c82ae
2011-01-14 16:01:20 -08:00
Patrick Dubroy
75f555f26f am bdcff0fa: Merge "Allow old view hierarchy to be GC\'ed more quickly during rotation." into honeycomb
* commit 'bdcff0fa8383a1ae93c18a768a7c2bf150d3f405':
  Allow old view hierarchy to be GC'ed more quickly during rotation.
2011-01-14 14:47:23 -08:00
Patrick Dubroy
ec84c3a189 Allow old view hierarchy to be GC'ed more quickly during rotation. 2011-01-14 14:13:31 -08:00
Christopher Tate
e1cc00bba0 am 64cb24e6: Merge "Send DRAG_STARTED notices to views that become visible during drag" into honeycomb
* commit '64cb24e686b13aabe3d28e049796c8315b011485':
  Send DRAG_STARTED notices to views that become visible during drag
2011-01-14 12:38:24 -08:00
Christopher Tate
64cb24e686 Merge "Send DRAG_STARTED notices to views that become visible during drag" into honeycomb 2011-01-14 12:36:53 -08:00
Dianne Hackborn
f21ae26935 am d922ae01: Add Holo theme for IMEs.
* commit 'd922ae01ca99a2b6d39a9393f86776a1d10ebd14':
  Add Holo theme for IMEs.
2011-01-14 12:31:59 -08:00
Dianne Hackborn
d922ae01ca Add Holo theme for IMEs.
Also clean up theme selection code to get rid of duplication.

Change-Id: Idf7b21db70ee83fce24756ead877169bd08b77a9
2011-01-14 12:28:23 -08:00
Christopher Tate
86cab1bd52 Send DRAG_STARTED notices to views that become visible during drag
We now recognize that a view is now a candidate for receiving the drop
but hasn't yet been notified about it, and send the DRAG_STARTED lifecycle
event properly.  This change also changes the DRAG_ENDED policy: now,
every view that had been sent a DRAG_STARTED receives the corresponding
DRAG_ENDED event, even though subsequent visibility changes may have
occured.

Change-Id: If4ae9ddbf414703e9f15eb2005471626bf19f316
2011-01-14 11:46:09 -08:00
Romain Guy
bd04922f8f am 5b907be8: Merge "Move the main thread check to the appropriate place." into honeycomb
* commit '5b907be8f5c387e7580a8e43935250adabc408c8':
  Move the main thread check to the appropriate place.
2011-01-13 18:38:25 -08:00
Romain Guy
5b907be8f5 Merge "Move the main thread check to the appropriate place." into honeycomb 2011-01-13 18:36:13 -08:00
Romain Guy
501053a16d Move the main thread check to the appropriate place.
Change-Id: Ic9bcf209e9398ea05b293a8cc31ac7f234b9de16
2011-01-13 18:38:45 -08:00
Huahui Wu
4809e629a6 am bfbb089c: Merge "b/3133123 Pass touch point ids to WebKit." into honeycomb
* commit 'bfbb089c7fcb2bc74f55fe3c171ef1b6df78b2da':
  b/3133123 Pass touch point ids to WebKit.
2011-01-13 17:04:39 -08:00
Huahui Wu
bfbb089c7f Merge "b/3133123 Pass touch point ids to WebKit." into honeycomb 2011-01-13 17:02:33 -08:00
Huahui Wu
e838a42778 b/3133123 Pass touch point ids to WebKit.
This is the CL in framework side and it needs the WebKit part CL:
  https://android-git.corp.google.com/g/#change,89627

Change-Id: I11d4ffa29fa106d918332e6983090b06726ebd36
2011-01-13 16:47:17 -08:00
Dianne Hackborn
b054b4c835 am 8eca7a1e: Merge "Fix issue #3153930: orphan window left on screen" into honeycomb
* commit '8eca7a1e11d905e1d89d4c45adfe210536b5f521':
  Fix issue #3153930: orphan window left on screen
2011-01-13 15:47:58 -08:00
Dianne Hackborn
8eca7a1e11 Merge "Fix issue #3153930: orphan window left on screen" into honeycomb 2011-01-13 15:45:37 -08:00
Gilles Debunne
2cf2b0c84c am 783e6c8b: Merge "fix for cts DuplicateParentStateEnabled bug with TextViews." into honeycomb
* commit '783e6c8b3ba7eecac3bdd796b53a1293f9cb1be4':
  fix for cts DuplicateParentStateEnabled bug with TextViews.
2011-01-13 14:54:45 -08:00
Gilles Debunne
783e6c8b3b Merge "fix for cts DuplicateParentStateEnabled bug with TextViews." into honeycomb 2011-01-13 14:51:33 -08:00
Svetoslav Ganov
e3f71db553 am cecb1db6: Merge "Invisible of gone views fire accessibility events." into honeycomb
* commit 'cecb1db6accffaa4749b1b0e71c0ec842c5b7a1a':
  Invisible of gone views fire accessibility events.
2011-01-13 14:48:22 -08:00
Gilles Debunne
fb81703ab1 fix for cts DuplicateParentStateEnabled bug with TextViews.
Bug 3347206

Do not add an extra slot in the drawable state for multiline if it
is not needed.

Updated setDuplicateParentStateEnabled documentation.

Change-Id: I95f74284721e25b483e12e9b861e810a55c260b6
2011-01-13 14:41:25 -08:00
Dianne Hackborn
f99f9c5f92 Fix issue #3153930: orphan window left on screen
The problem is that if a window containing children is removed
before the children are, the children may be lost.  This change
(amongst the huge amount of new debugging code) now ensures at
this point that all children windows are removed when the parent
is.

Note that this results in a bunch of error messages now as the
client app tries to continue to do things with that child window.
This is correct, it shouldn't be doing that, and needs to be
fixed to stop it.  But at least it now can't cause the window
manager to leak surfaces.

Change-Id: I7b80dd89ff9de7cb5af1dc759cfa4b31ac29cddc
2011-01-13 14:24:16 -08:00
Svetoslav Ganov
9cd1eca854 Invisible of gone views fire accessibility events.
bug:3350110

1. Added a visibility check before sending an accessibility event.

Change-Id: I322ede3844502bc623ba2aff2b3586a9925ba682
2011-01-13 14:24:08 -08:00
Romain Guy
718153c717 am c15c7a79: Merge "Cleanup implementation of hardware layers." into honeycomb
* commit 'c15c7a79a69733bd21d6548fd74c2874fdabe7e8':
  Cleanup implementation of hardware layers.
2011-01-13 12:15:35 -08:00
Romain Guy
c15c7a79a6 Merge "Cleanup implementation of hardware layers." into honeycomb 2011-01-13 12:13:59 -08:00
Romain Guy
ada830f639 Cleanup implementation of hardware layers.
The new implementation relies on OpenGLRenderer's existing layer
code instead of duplicating it. The new code is much cleaner, with
simpler and better APIs and allows tracking of drawn regions inside
layers. Region tracking is not yet enabled but this will be done
in a future CL.

Change-Id: Ie826121a2227de8252c77b992a61218defea5143
2011-01-13 12:13:20 -08:00
Christopher Tate
3186e0da33 am 44a94bb5: Merge "Turn off debugging logspam for release" into honeycomb
* commit '44a94bb5a915922400944f666b218f4bb268c565':
  Turn off debugging logspam for release
2011-01-12 20:25:32 -08:00
Christopher Tate
44a94bb5a9 Merge "Turn off debugging logspam for release" into honeycomb 2011-01-12 20:23:49 -08:00
Christopher Tate
994ef9296a Turn off debugging logspam for release
Fixes bug 2679101

Change-Id: I94cf1b1d0b732b2030008118eff3534f0e0608f7
2011-01-12 20:06:07 -08:00
Chet Haase
dd14ec2e85 am ef9932c2: Merge "Supress layout requests while a LayoutTransition is running." into honeycomb
* commit 'ef9932c2505eaf5a4256c6c398aa640bee3b47ea':
  Supress layout requests while a LayoutTransition is running.
2011-01-12 18:35:14 -08:00
Chet Haase
9c0874408c Supress layout requests while a LayoutTransition is running.
LayoutTransition works by animating layout-related properties
(left, right, top, and bottom). This works great when that animation
is the only thing affecting the layout of the UI. But if there are other things
happening in the application that cause layout to run on that
container or in its parent hierarchy, this can cause the layout properties
on its children to get mis-set during the middle of the transition.
This results in artifacts like animating objects jumping to locations where
they would be were there no animation running.

The fix is to supress layout requests on that container (and its children)
until the transition is complete (then issue a layout request on the container
to make sure that the container has the correct layout data)

Change-Id: I15bf0423a11409f854076f86099233db7fe4edc0
2011-01-12 18:14:40 -08:00
Romain Guy
703b0bc953 am d6b13534: Merge "Only enable GL rendering on the main thread." into honeycomb
* commit 'd6b13534d44faee5bf80eb02495c17aa0195d381':
  Only enable GL rendering on the main thread.
2011-01-12 16:24:27 -08:00
Romain Guy
4f6aff3860 Only enable GL rendering on the main thread.
Change-Id: I41950f4c0a5063ee5d6950cf137eb60a1c7a72fe
2011-01-12 16:21:41 -08:00
Romain Guy
3aaff3aef4 Better debug info for layers.
Change-Id: I816c2446a33a1135553eaeea2f89c7418641cfe1
2011-01-12 14:18:47 -08:00
Romain Guy
1138401f34 am e465b117: Merge "Better debug info for layers." into honeycomb
* commit 'e465b11745cdc49283c360fb2acf01649f4f4fb0':
  Better debug info for layers.
2011-01-12 14:17:59 -08:00
Romain Guy
5ecceb7df7 am 85354828: Merge "Cleanup GL objects on the correct thread." into honeycomb
* commit '853548287ffe4eb85d1bd10669270292336d137a':
  Cleanup GL objects on the correct thread.
2011-01-12 12:52:41 -08:00
Romain Guy
853548287f Merge "Cleanup GL objects on the correct thread." into honeycomb 2011-01-12 12:50:50 -08:00
Romain Guy
57066eb64c Cleanup GL objects on the correct thread.
Change-Id: Iddfea6e08a6591a4fab147151098ef27005f373d
2011-01-12 12:53:32 -08:00
Christopher Tate
771fcc5e3d am 28514f8f: Merge "API CHANGE: startDrag() now takes "int flags" instead of "boolean localOnly"" into honeycomb
* commit '28514f8f9cdac95799d5654a30fe36ef05443dd3':
  API CHANGE: startDrag() now takes "int flags" instead of "boolean localOnly"
2011-01-11 20:03:57 -08:00
Romain Guy
af62958690 am 9688fdf5: am fcf3d12d: Merge "Typo in Javadoc"
* commit '9688fdf51edb82a73e1a6d436bf7bce706c049fb':
  Typo in Javadoc
2011-01-11 19:34:38 -08:00
Christopher Tate
02d2b3ba9b API CHANGE: startDrag() now takes "int flags" instead of "boolean localOnly"
There will be, in the future, a flag (View.DRAG_FLAG_GLOBAL) that means
for the drag to be cross-application.  For now that flag constant is @hide
and furthermore the server-side implementation strips it, enforcing
local-only drags.

Change-Id: I8db840480ab90e18a5b8ecf29d62b4e6eafd405e
2011-01-11 18:30:23 -08:00
Romain Guy
6c319ca127 Better backend for hardware layers.
With this new backend, a hardware layer is only recreated when
its associated view is udpated. This offers fast composition
in GL and fast update of the layer in GL as well.

Change-Id: I97c43a612f5955c6bf1c192c8ca4af10fdf1d076
2011-01-11 17:53:19 -08:00
Romain Guy
a07105b7d2 Better logging of out of memory errors in OpenGLRenderer.
Change-Id: I6b72a084340d8d4b6e0b0a100ed4314d09d441ef
2011-01-10 21:14:18 -08:00
Romain Guy
72f0a276ff Better documentation for FLAG_HARDWARE_ACCELERATED
Bug #3154883

Change-Id: I2062781ba3b447b8ec4e0836b9ddeaa97c7aa60e
2011-01-09 16:45:28 -08:00
Romain Guy
fcd3e8e6fa Merge "Tighten up AsyncTask's semantics and behavior. Bug #3109366 Bug #3109382" into honeycomb 2011-01-09 14:01:42 -08:00
Romain Guy
e95003e4a1 Tighten up AsyncTask's semantics and behavior.
Bug #3109366
Bug #3109382

The new behavior of AsyncTask is the following:
- Unchanged if you don't call cancel()
- If you call cancel():
  - Either onCancelled() *OR* onPostExecute() is invoked
  - onCancelled() is invoked only after doInBackground() finishes

Change-Id: If53faec5890d2fa7098aea76973186a0b1026b39
2011-01-09 14:04:36 -08:00