16992 Commits

Author SHA1 Message Date
Eric Hassold
a5af5d6b12 Add support for downgrading database version in SQLiteOpenHelper
Provide an API to allow application to support downgrade in databases
managed with SQLiteOpenHelper. Since onUpgrade() is now called only
if requested version is newer than current one, this adds support for
a similar onDowngrade() method, so customers can implement graceful
downgrading. If no downgrade method is implemented by caller, this
fallback to current behavior by throwing an exception.

Bug: 1609474
Change-Id: I0e0166984d4a700b1c43ce780b91244bc2fc87a6
2011-01-04 16:55:27 -08:00
Romain Guy
6b5108bc9c Change the OpenGL viewport when new layout params are used.
Bug #3303158

Change-Id: Id0b8667b262c218ead5feeb5df2c3a256f522bed
2011-01-04 16:11:10 -08:00
Romain Guy
633b1107f6 Merge "Change the OpenGL viewport when new layout params are used. Bug #3303158" 2011-01-04 16:08:34 -08:00
Carl Shapiro
b596198d8d Remove functionality related to external allocation tracking.
The android.os.Debug class exposed two interfaces related to external
allocation.  The first interface provided a counter of global external
allocation events.  This change makes the global counter getters
constantly return 0 and stubs out the counter setters.  The second
interface attempted to provide a counter of per-thread external
allocation events.  That interface was never implemented.  This change
makes the per-thread counter getters constantly return -1 and stubs
out the setters.

Change-Id: I240fe9bf05297a83607a4350d40d20581e2a9e2f
2011-01-04 15:51:33 -08:00
Gilles Debunne
4cf435df2e Revert "Fix for ellipsized text that has two lines at maximum."
This reverts commit 32ea4ffdca0f4706e447d0a275f259fe121b9e6a.

This change introduces an ANR in AutoComplete text view. There is
an infinite loop when the suggestion TextView is measured.

Reverted to fix the ANR, opening a new bug for the ellipsize.

Bug 3315813, 3320375, 3318059

Change-Id: I1872116ca1f39324ed4500d338bafac7e0d195ec
2011-01-04 15:37:41 -08:00
Vasu Nori
78526012a1 Merge "treat "can't open database file error" as "database corruption error"" 2011-01-04 15:05:21 -08:00
Romain Guy
a9ebfa6bcc Keep a reference to the local matrix.
Bug #3299324

This is needed for ADT, which does not rely on Skia's reference counting
to correctly keep track of the native objects.

Change-Id: Ia2fc5c1ec2b80bad226bc549fefc6bb064784609
2011-01-04 15:02:59 -08:00
Romain Guy
6b1f6e6ac1 Merge "Keep a reference to the local matrix. Bug #3299324" 2011-01-04 15:00:48 -08:00
Vasu Nori
c7fe777d63 treat "can't open database file error" as "database corruption error"
bug:3083665
if sqlite can't open the database, delete it and create a new one.
what else is sqlite supposed to do?

Change-Id: I8b7c3b051fd1a146e4026f8f8acfdd099f9a70cf
2011-01-04 14:36:16 -08:00
Gilles Debunne
87380bcaeb Added support for asian characters in text selection.
Inspired by https://review.source.android.com/#change,16606

Test class has been revamped to mimic new behavior: selectCurrentWord
is no longer used to add words to the dictionary. We rely on the suggestion
bar in the IME for that.

Change-Id: I1cb88df54dffb166c75f75fefb743ff55a33519b
2011-01-04 14:18:13 -08:00
Derek Sollenberger
1451862b0a Merge "Add full-screen support for OpenGL based plugins." 2011-01-04 13:42:41 -08:00
Gilles Debunne
75b7a931bc Removed simple compilation warnings.
Change-Id: I471b8895db4321d49e324e7137a1f5cee08ff5d4
2011-01-04 13:36:17 -08:00
Gilles Debunne
c0752ee7ce No spaces are inserted around pasted text when there are already new lines.
Bug 3304489

Change-Id: I3c1bf915a2e20f87ed3cec3c30dbcc884bf6b46f
2011-01-04 13:30:24 -08:00
Vasu Nori
36c4cec853 don't call methods doing database lock from a synchronized block
bug:3188552
Change-Id: I08a73f06aa0cbefddd282885f62b8dcc451b9deb
2011-01-04 13:15:56 -08:00
Derek Sollenberger
36a4f232c6 Add full-screen support for OpenGL based plugins.
bug: 3321891
Change-Id: Ief8ef6d3c4b9ea535054b80b84df080567b9b163
2011-01-04 16:05:43 -05:00
Vasu Nori
dc3c9c4b85 Merge "when cursorwindow allocation fails, print the number of cursors left open" 2011-01-04 12:15:53 -08:00
Dianne Hackborn
6d978d6d2e Merge "Few little fragment, wm tweaks." 2011-01-04 11:40:14 -08:00
Dianne Hackborn
352cc98b46 Few little fragment, wm tweaks.
Deal with fragments being restored when their containing view is
gone.

Try to put in a black background during rotation.  Currently commented
out because it appears to cause surface flinger to hang.

Change-Id: I150d061e64488356d17513f4e2d124d7c3d04f6b
2011-01-04 11:34:18 -08:00
John Reck
18e80648c5 Merge "Fix testGetAllVisitedUrls to match BP1 behavior" 2011-01-04 11:02:05 -08:00
Svetoslav Ganov
ad9a064ff2 Merge "Fixing bugs 3315632 3235958, performing a clean up of the WebView accessibility feature. Updated event hadndling to deliver all key events to javaScript if a screen reader is injected since the latter is responsible for the full set of navigation and exploration actions." 2011-01-04 10:59:48 -08:00
Vasu Nori
6141e13f6e when cursorwindow allocation fails, print the number of cursors left open
the reason for bug:3281533, bug:3127159 is probably too many cursors are left
un-closed in the process.
print the info on the number of cursors left open when the exception
"cursorwindow allocation failed" occurs.
This should help us figure out if that indeed is the reason
and which process is leaving the cursors open.

Change-Id: I4b46be63f5dfbe9b102ad7a9cf9dd21e70f71e14
2011-01-04 10:40:15 -08:00
Gilles Debunne
da0a3f03a1 Multi-line EditText background is set using a state. Step 2.
See change 86347 for Step 1.

New state_multiline state flag, handled in TextView drawable background drawables.

Change-Id: I230df16c7ddee3296da180fd80ef341a4ac17dc0
2011-01-04 09:21:22 -08:00
Gilles Debunne
b2316968cf Multi-line EditText background is set using a state.
Step 1/2: remove the previous code that relied on a specific theme attribute.

Bug 3214105

Change-Id: Ib4fc55a9093d64e69ac798ec56503ccdb284cbec
2011-01-04 09:19:35 -08:00
Gilles Debunne
c01f3feeb0 Text selection is preserved upon device rotation.
Note that this used to create problems with ExtractEditText. These potential issues
were not handled in that CL.

Bug 3236848

Change-Id: I4b83ce8f66eba04f34c2faa8e38b83eb992637f0
2011-01-04 09:16:23 -08:00
Nick Pelly
a7a0c21aa2 am c5caaf5f: am 8f49c025: Merge "Added response flags and DSFID extras for NfcV technology (API part)." into gingerbread
* commit 'c5caaf5ff816a664939f305ead1091eb2c02cbf5':
  Added response flags and DSFID extras for NfcV technology (API part).
2011-01-03 22:41:40 -08:00
Nick Pelly
c5caaf5ff8 am 8f49c025: Merge "Added response flags and DSFID extras for NfcV technology (API part)." into gingerbread
* commit '8f49c025ca5b4ed84290fb9e5e0b7acb1c139b35':
  Added response flags and DSFID extras for NfcV technology (API part).
2011-01-03 22:39:42 -08:00
Nick Pelly
8f49c025ca Merge "Added response flags and DSFID extras for NfcV technology (API part)." into gingerbread 2011-01-03 22:38:14 -08:00
Nick Pelly
894a5bda4b am d81c68c3: am a743448a: Merge "Tweak Ndef.getType() API. Rename constants, expand javadoc." into gingerbread
* commit 'd81c68c31e916fa201f4cd608261afa4d1f0adb6':
  Tweak Ndef.getType() API. Rename constants, expand javadoc.
2011-01-03 22:37:37 -08:00
Martijn Coenen
7eb32a4427 Added response flags and DSFID extras for NfcV technology (API part).
Also fixed a missing assignment in NfcB technology.

Change-Id: Ic564a0a17a9638c11fa528056da40f74ed37e9e6
2011-01-04 17:37:29 +11:00
Nick Pelly
d81c68c31e am a743448a: Merge "Tweak Ndef.getType() API. Rename constants, expand javadoc." into gingerbread
* commit 'a743448a1b34d950b1e6f06e308ce113cbc9abcb':
  Tweak Ndef.getType() API. Rename constants, expand javadoc.
2011-01-03 22:35:49 -08:00
Nick Pelly
a743448a1b Merge "Tweak Ndef.getType() API. Rename constants, expand javadoc." into gingerbread 2011-01-03 22:32:56 -08:00
Nick Pelly
ddbb2c997b Tweak Ndef.getType() API. Rename constants, expand javadoc.
Change-Id: I9d2c83411411fea4ef46bb7c30ebdbcd9ee3e7d8
2011-01-04 17:31:48 +11:00
Svetoslav Ganov
12bed78d23 Fixing bugs 3315632 3235958, performing a clean up of the WebView accessibility feature. Updated event hadndling to deliver all key events to javaScript if a screen reader is injected since the latter is responsible for the full set of navigation and exploration actions.
Change-Id: Id1639828559161e0850dee04baa0a7afb2576ea8
2011-01-03 21:30:07 -08:00
Nick Pelly
47fc50e53c am a3e4293c: am 163bd407: Merge "Added getType() to NDEF technology class (API part)." into gingerbread
* commit 'a3e4293cdc7d09ac93c95d233e4052ac4435773e':
  Added getType() to NDEF technology class (API part).
2011-01-03 21:03:06 -08:00
Nick Pelly
a3e4293cdc am 163bd407: Merge "Added getType() to NDEF technology class (API part)." into gingerbread
* commit '163bd407492bbadcdc8f0759191e1b9142d06859':
  Added getType() to NDEF technology class (API part).
2011-01-03 21:01:01 -08:00
Nick Pelly
163bd40749 Merge "Added getType() to NDEF technology class (API part)." into gingerbread 2011-01-03 20:58:26 -08:00
Martijn Coenen
d27ebf1e69 Added getType() to NDEF technology class (API part).
Change-Id: Idfa391dd9d4a401e1daa3dc90ca57e4a3d9e0fa3
2011-01-04 15:57:39 +11:00
Nick Pelly
b300ae40fc am 30ce5f85: am 8c09ef91: Merge "Removed selectAid() from IsoDep." into gingerbread
* commit '30ce5f8567df2132736486bb93a60f49582508ec':
  Removed selectAid() from IsoDep.
2011-01-03 20:13:17 -08:00
Nick Pelly
30ce5f8567 am 8c09ef91: Merge "Removed selectAid() from IsoDep." into gingerbread
* commit '8c09ef91aef0706a012e449ba3d16c03e0d64508':
  Removed selectAid() from IsoDep.
2011-01-03 20:11:08 -08:00
Nick Pelly
8c09ef91ae Merge "Removed selectAid() from IsoDep." into gingerbread 2011-01-03 20:09:03 -08:00
Martijn Coenen
912aa1cd70 Removed selectAid() from IsoDep.
It's a convenience method that can be implemented with transceive();
not really needed for now.

Change-Id: Idd855c85b15d97ae679d11d908834be3cb2741d8
2011-01-04 15:08:34 +11:00
Nick Pelly
198ec52eb7 am 7e4d74f7: am 4b94dee8: Merge "Added transfer/restore convience cmds to MF Classic tech." into gingerbread
* commit '7e4d74f7b9355e8abd6e2fa30e284c9116a08998':
  Added transfer/restore convience cmds to MF Classic tech.
2011-01-03 18:37:05 -08:00
Nick Pelly
7e4d74f7b9 am 4b94dee8: Merge "Added transfer/restore convience cmds to MF Classic tech." into gingerbread
* commit '4b94dee8336a1135e4fc67a5911223bb5aabad99':
  Added transfer/restore convience cmds to MF Classic tech.
2011-01-03 18:34:37 -08:00
Martijn Coenen
a42b352594 Added transfer/restore convience cmds to MF Classic tech.
Change-Id: I675993bc3aae6a741d63be458a0dfea240dd5316
2011-01-04 13:32:06 +11:00
Adam Powell
a5fd28f7eb Merge "Fix bug 3300456 - Prevent duplicate action bar backgrounds in shared container" 2011-01-03 16:56:23 -08:00
Adam Powell
654e4e4161 Fix bug 3300456 - Prevent duplicate action bar backgrounds in shared
container

Change-Id: I8edb99739be43c7ee82eb4dc4b82a9be17f92d0c
2011-01-03 16:33:50 -08:00
Dianne Hackborn
83c7db8b9d Merge "Again maybe fix issue #3169193..." 2011-01-03 15:05:29 -08:00
Amith Yamasani
7179dfd663 Merge "Fix a layout alignment issue in RingtonePickerActivity." 2011-01-03 14:08:42 -08:00
Dianne Hackborn
8b4cac1f42 Again maybe fix issue #3169193...
...com.google.android.youtube: java.lang.NullPointerException at
com.google.android.youtube.async.UserAuthorizer$3.onCancel(UserAuthorizer.java:324)

Only perform one cancel callback for a particular start of the dialog.

Change-Id: Ib448fcae2489a63c9b63affdc518658447e90920
2011-01-03 13:58:14 -08:00
Svetoslav Ganov
34c0688cea Fixed the NumberPicker to adjust to the closest value while scrolling/flinging
Change-Id: I782603d9a187d0ce9196e3fc90f28e372637584c
2011-01-03 02:11:00 -08:00