17143 Commits

Author SHA1 Message Date
Dmitri Plotnikov
fd119e986d Delivering null cursor to loader callbacks.
ContentProviders are allowed to return null and both
of our contact directories (Focus and Exchange) actually
do when they find no data to return.

The problem is that when LoaderManager receives a result
from a loader, it checks if the result is the same as
previously received.  That's fine, as long as the loader
always returns a different result.  Now consider a loader
that returns null when it cannot produce the result.
What we are seeing is that if the loader is rapidly restared
and returns null twice in a row, the null is never
delivered to the callbacks.


In the case of the reported bug, the scenario is this:

1. We look for "foo"
2. Data for "foo" comes from a directory and we display it
3. We hit backspace twice in rapid succession.  Each time
we hit backspace, the loader is restared, but since we do
this very fast, the second restart overrides the first.  So
far so good.
4. The directories are programmed to return null if the
query string is less than 3 characters long, so the loader
returns null twice.
5. Loader manager looks at the final result, compares it
to the previous result and since they are the same (both null)
concludes that it does not need to deliver either of them.
6. The UI attempts to show the stale data and blows up

Bug: 3352125
Change-Id: I3e5bc505faa03f72ebe5cb010377a740f5c7d5b6
2011-01-17 09:46:23 -08:00
Costin Manolache
c6684f9e97 Fix previous quick fix, LoginOptions is final.
Change-Id: I5f262458239378697a67cbd8e83175bf3ffc7f5b
2011-01-14 11:26:25 -08:00
Costin Manolache
05db1af9bb Merge "Fix NPE, caller may not pass loginOptions." into honeycomb 2011-01-14 10:52:11 -08:00
Costin Manolache
75b8fc7e0c Fix NPE, caller may not pass loginOptions.
Change-Id: Ifb6a8bf876d30a9726f535a90ba8c0719a9a04aa
2011-01-14 10:50:38 -08:00
Justin Ho
679cd50aab Merge "Updated assets from Gingerbread" into honeycomb 2011-01-14 10:48:22 -08:00
Justin Ho
724df106a7 Updated assets from Gingerbread
Change-Id: I9beee7ea08325206e1790287901e819893b7239b
2011-01-14 10:47:24 -08:00
Justin Ho
f80e623be4 Merge "Updated stat_notify icons in new style" into honeycomb 2011-01-14 10:38:04 -08:00
Justin Ho
bb2cf771c2 Updated stat_notify icons in new style
Change-Id: I3708aae30805bceb05feb4adfe4a400e1320d0b2
2011-01-14 10:36:27 -08:00
Steve Block
e8492473a9 Hook up CacheManager for the Chromium HTTP stack
Requires a corresponding change in external/webkit
https://android-git.corp.google.com/g/87938

Bug: 3270236
Change-Id: Ibb6ee0531bde48d9b069de28f9f22891ca6d0718
2011-01-14 16:07:40 +00:00
Steve Block
1916e7f3a3 Adds a new WebViewFragment class
Cherry pick from master change 85641.

Bug: 3262357
Change-Id: Ife095f7db820bf0a2add682b47586854a4ea9499
2011-01-14 11:44:35 +00:00
Adam Powell
2421cd4229 Merge "Fix bug 3352112 - crash in AbsListView.smoothScrollBy" into honeycomb 2011-01-13 22:21:15 -08:00
Adam Powell
79303750df Fix bug 3352112 - crash in AbsListView.smoothScrollBy
Change-Id: I00b4e5855a1c0861993670a38ed2cd946fd18594
2011-01-13 22:06:49 -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
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
Jaikumar Ganesh
e77e9da849 Merge "Fix bug in handling connect/disconnect multiple devices." into honeycomb 2011-01-13 16:21:12 -08:00
Brad Fitzpatrick
52ea989874 Merge "Remove accidental StrictMode logging left in." into honeycomb 2011-01-13 16:16:46 -08:00
Brad Fitzpatrick
4a82b62044 Remove accidental StrictMode logging left in.
Change-Id: I7580816c6efc32889f49987152ff1d4c40d47140
2011-01-13 16:15:40 -08:00
Jaikumar Ganesh
d1287f5ef0 Fix bug in handling connect/disconnect multiple devices.
Multiple HID devices can be connected. There is no pointing
maintaining the global state. Check individual device state.

Bug: 3350904

Change-Id: I03d9a6015e39e4f9d7f68cc8bbdb19731129b4e6
2011-01-13 15:59:27 -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
783e6c8b3b Merge "fix for cts DuplicateParentStateEnabled bug with TextViews." into honeycomb 2011-01-13 14:51:33 -08:00
Adam Powell
379a51d96f Merge "Fix bug 3242262 - Add queryHint attribute for SearchView" into honeycomb 2011-01-13 14:51:16 -08:00
Adam Powell
c0171d5e8e Fix bug 3242262 - Add queryHint attribute for SearchView
Change-Id: I211b65139622c2a2cba03bd1323e2543b09bb111
2011-01-13 14:46:15 -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
Svetoslav Ganov
462433ae94 Merge "DatePicker is calling back its listener on init." into honeycomb 2011-01-13 12:41:04 -08:00
Jason parks
a3cdaa5337 Revert "Remove the APIs for the old encryption scheme."
This reverts commit 1125d780a8b61703b8eb28c5c77dac5f3f0022dd.
2011-01-13 14:15:43 -06: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
Svetoslav Ganov
2f136a874d DatePicker is calling back its listener on init.
bug:3341515

1.Changed the callbeack registration to follow the spinners
  initialization.

Change-Id: I3baff68c295993f975beec2b376af88e32b24e20
2011-01-13 11:33:10 -08:00
Jamie Gennis
9aba2324ac Merge "Add getTransformMatrix to the SurfaceTexture API." into honeycomb 2011-01-13 11:29:14 -08:00
Eric Fischer
39d80c3846 Merge "Import revised translations." into honeycomb 2011-01-13 10:59:52 -08:00
Svetoslav Ganov
06e32b434b Merge "Updating the WebView accessibility key bindings after discussion with the access-eng team" into honeycomb 2011-01-13 10:17:02 -08:00
Jaikumar Ganesh
b54fd91d1b Merge "Phone crash when old callback func is woken up when enabling BT." into honeycomb 2011-01-13 10:14:40 -08:00
Gilles Debunne
b439221a5a Merge "QuickContactBadge shows its pressed state" into honeycomb 2011-01-13 09:50:40 -08:00
Staffan Lindvall
81f8e3c85f Phone crash when old callback func is woken up when enabling BT.
When the remote Jerry device is powered down the BT link to the
phone is dropped, and the Jerry firmware in the phone quite
immediately tries to re-connect to the Jerry device. Then
SDP and Discover Services is started, fetchRemoteUuids() ->
discoverServicesNative(). This results in an asynchronous dbus
call dbus_func_args_async()  that is provided with a callback
function, onDiscoverServicesResult(), but before this callback
function is used Bluetooth is disabled according to the problem
scenario above. For some reason this discover services activity
is not cleared when Bluetooth is disabled, so when Bluetooth
is enabled again the (old) callback function
onDiscoverServicesResult() is executed, but the following
getAddressFromObjectPath() fails. The reason for this is that
the deviceObjectPath parameter contains an old value,
containg the process id of the old bluetoothd (the one running
before Bluetooth was disabled). Then the new updated
AdapterObjectPath /org/bluez/<new bluetooth hd pid>/hci0/dev_
is not a prefix of the old deviceObjectPath /org/bluez/<old
bluetooth hd pid>/hci0/dev_<BT_ADDR>, which results in that null
will be used as address in sendUuidIntent(), and later on,
ending up in the BluetoothDevice constructor where and
IllegalArgumentExceotion is thrown due to
Bluetooth address = null. Then the phone will crash.

Making sure sendUuidIntent() is not called when address is null
is a work-around for the problem.

Change-Id: I8ff60bad80de3b379cef0970402943dfa4de3cfd
2011-01-13 09:28:48 -08:00
Jason parks
21f62b9e46 Merge "Add a method enable encryption." into honeycomb 2011-01-13 07:41:53 -08:00
Jason parks
ca6777b23b Merge "Remove the APIs for the old encryption scheme." into honeycomb 2011-01-13 07:40:46 -08:00
Svetoslav Ganov
bfc3ce78f4 Updating the WebView accessibility key bindings after discussion with the access-eng team
Change-Id: I39a303864b94a8a11b6cded9b8bb23041ad91502
2011-01-13 01:20:39 -08:00
Adam Powell
2ea9aaa245 Merge "Fix bugs 3077517 and 3309579 - ListView bugs" into honeycomb 2011-01-12 23:50:05 -08:00
Adam Powell
4032252c99 Fix bugs 3077517 and 3309579 - ListView bugs
Fix smoothScrollPositionFromTop scrolling too far on reverse scrolls

Fix an invalid touch mode when smoothScrollBy attempts to scroll off
the end of a list
2011-01-12 23:45:01 -08:00
Justin Ho
cd0331abd7 Fixing broken dropdown asset in Honeycomb as well
Change-Id: Ie5a89fbf38dbad8e768c5c7569bd2e9a872fb587
2011-01-12 22:56:55 -08:00
Andy Stadler
7b0f8f08ac API changes to support encryption in DPM
* New uses-policies value
* Definitions for storage domain and encryption status
* API to get and set encryption status
* Intent to launch encryption changes
* Both new calls bottom out in the DPM service and are suitable for
  a device that does not support encryption.

NOTE: Nobody should use ACTION_START_ENCRYPTION yet.  It needs a receiver
  to be built in Settings (different CL).

Change-Id: I2ae193bedbec59f6ba46c0ec7de12ecf321e5803
2011-01-12 21:11:32 -08:00
Chet Haase
7cc5e1d548 Merge "Fix null crash when fragments go away during animations" into honeycomb 2011-01-12 20:34: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
Gilles Debunne
5cba862628 QuickContactBadge shows its pressed state
Change-Id: I7dfd02cc5c4e0a5ba6a7d65c2c61d650f5aa9249
2011-01-12 19:53:15 -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