6109 Commits

Author SHA1 Message Date
Brad Fitzpatrick
70ece8d334 Speed up Uri.getQueryParameter by allocating less.
Sample hierarchial URL, from my ContactsProvider test case:

content://com.android.contacts/data?account_name=braddroid%40gmail.com&account_type=com.google.GAIA&caller_is_syncadapter=true

Without this patch:  (fetching the "account_name" parameter)

10000 iters: 0.5293 ms average
10000 iters: 0.5119 ms average
10000 iters: 0.5158 ms average

With this patch, rewriting it to not allocate memory (no implicit
StringBuilder), but still no caching:

1) when it needs to decode something (i.e account_name above;
   allocates memory)

  50000 iters: 0.28724 ms average
  50000 iters: 0.31774 ms average
  50000 iters: 0.28764 ms average

2) when it doesn't need to decode (and thus allocate memory,
   i.e. account_type above)

  50000 iters: 0.0954 ms average
  50000 iters: 0.09124 ms average
  50000 iters: 0.09088 ms average
2009-10-26 14:46:25 -07:00
Mike Reed
52c931b7dd am 75d56269: am 57e824f7: Merge change I8db532c1 into eclair-mr2
Merge commit '75d562696e709b6d9e61a23fc86f0cfba15e655e'

* commit '75d562696e709b6d9e61a23fc86f0cfba15e655e':
  don't turn off filtering/dithering when we scroll.
2009-10-26 06:34:26 -07:00
Mike Lockwood
40a67d0705 am af081aa1: am 0f2a4e60: am 6897e36b: Add comment warning to not use hardware based autobrightness support.
Merge commit 'af081aa1edf8f427f9684d5a9bdadc43e994fefd'

* commit 'af081aa1edf8f427f9684d5a9bdadc43e994fefd':
  Add comment warning to not use hardware based autobrightness support.
2009-10-26 06:34:09 -07:00
Mike Reed
75d562696e am 57e824f7: Merge change I8db532c1 into eclair-mr2
Merge commit '57e824f7c33caf1e8c9cb08795464df4b8dbb218' into eclair-mr2-plus-aosp

* commit '57e824f7c33caf1e8c9cb08795464df4b8dbb218':
  don't turn off filtering/dithering when we scroll.
2009-10-26 06:24:48 -07:00
Mike Lockwood
af081aa1ed am 0f2a4e60: am 6897e36b: Add comment warning to not use hardware based autobrightness support.
Merge commit '0f2a4e6026a37fc8b321494f688e9f0e5a5bf744' into eclair-mr2-plus-aosp

* commit '0f2a4e6026a37fc8b321494f688e9f0e5a5bf744':
  Add comment warning to not use hardware based autobrightness support.
2009-10-26 06:24:33 -07:00
Android (Google) Code Review
57e824f7c3 Merge change I8db532c1 into eclair-mr2
* changes:
  don't turn off filtering/dithering when we scroll.
2009-10-26 09:16:20 -04:00
Mike Lockwood
0f2a4e6026 am 6897e36b: Add comment warning to not use hardware based autobrightness support.
Merge commit '6897e36b894b2a10fd8b2e3af6587b5f789fde72' into eclair-mr2

* commit '6897e36b894b2a10fd8b2e3af6587b5f789fde72':
  Add comment warning to not use hardware based autobrightness support.
2009-10-25 09:08:31 -07:00
Mike Lockwood
6897e36b89 Add comment warning to not use hardware based autobrightness support.
This is deprecated and will be removed in the next release.

Change-Id: I23c5e711fd8e6768da2f5190d1b6c9fa77de41a6
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-25 11:53:52 -04:00
Andrew Harp
4572edb287 am fb324e70: am adddd24f: am 78a50aa1: Merge change If3c30fc9 into eclair
Merge commit 'fb324e706e487738b3edbaca67bdf459fafcd4ea'

* commit 'fb324e706e487738b3edbaca67bdf459fafcd4ea':
  Patching in hidden API to allow app managed preview frame buffers.
2009-10-23 19:39:01 -07:00
Andrew Harp
fb324e706e am adddd24f: am 78a50aa1: Merge change If3c30fc9 into eclair
Merge commit 'adddd24f31291f733cd5f72898b92f13f37ae37c' into eclair-mr2-plus-aosp

* commit 'adddd24f31291f733cd5f72898b92f13f37ae37c':
  Patching in hidden API to allow app managed preview frame buffers.
2009-10-23 19:28:29 -07:00
Andrew Harp
adddd24f31 am 78a50aa1: Merge change If3c30fc9 into eclair
Merge commit '78a50aa1db6572ba7d9f9d91c6eb16f993c09f40' into eclair-mr2

* commit '78a50aa1db6572ba7d9f9d91c6eb16f993c09f40':
  Patching in hidden API to allow app managed preview frame buffers.
2009-10-23 19:17:59 -07:00
Android (Google) Code Review
78a50aa1db Merge change If3c30fc9 into eclair
* changes:
  Patching in hidden API to allow app managed preview frame buffers.
2009-10-23 22:08:30 -04:00
Android (Google) Code Review
9e6784f053 Merge change I3183c78f
* changes:
  Plug into the new optimized path for Dalvik logging.
2009-10-23 21:24:10 -04:00
Jack Palevich
31f4c2d653 am a9046729: am a2ec1f4c: am 8f89a1a3: Merge change Ic620a52b into eclair
Merge commit 'a904672996c60c4ec50439a8d2be04fd9bd6444c'

* commit 'a904672996c60c4ec50439a8d2be04fd9bd6444c':
  Add size checks for glBufferData and glBufferSubData
2009-10-23 17:55:49 -07:00
Jack Palevich
a904672996 am a2ec1f4c: am 8f89a1a3: Merge change Ic620a52b into eclair
Merge commit 'a2ec1f4cea5531fb824b3fb2802ef4573a4916d9' into eclair-mr2-plus-aosp

* commit 'a2ec1f4cea5531fb824b3fb2802ef4573a4916d9':
  Add size checks for glBufferData and glBufferSubData
2009-10-23 17:49:17 -07:00
Jack Palevich
a2ec1f4cea am 8f89a1a3: Merge change Ic620a52b into eclair
Merge commit '8f89a1a360465e08e81ceca3cb3042606a98668b' into eclair-mr2

* commit '8f89a1a360465e08e81ceca3cb3042606a98668b':
  Add size checks for glBufferData and glBufferSubData
2009-10-23 17:39:47 -07:00
Android (Google) Code Review
8f89a1a360 Merge change Ic620a52b into eclair
* changes:
  Add size checks for glBufferData and glBufferSubData
2009-10-23 20:30:33 -04:00
Doug Zongker
80448892e4 am 24b7dc20: am b81199b3: Merge change I885cfc23 into eclair-mr2
Merge commit '24b7dc20afabea6ebf0b1f7e80ff2aaaabe0e8bd'

* commit '24b7dc20afabea6ebf0b1f7e80ff2aaaabe0e8bd':
  make the password-clearing algorithm smarter
2009-10-23 17:11:40 -07:00
Doug Zongker
24b7dc20af am b81199b3: Merge change I885cfc23 into eclair-mr2
Merge commit 'b81199b3eed6f6079e5dc7bedeaa50712f3d9b11' into eclair-mr2-plus-aosp

* commit 'b81199b3eed6f6079e5dc7bedeaa50712f3d9b11':
  make the password-clearing algorithm smarter
2009-10-23 16:58:52 -07:00
Android (Google) Code Review
b81199b3ee Merge change I885cfc23 into eclair-mr2
* changes:
  make the password-clearing algorithm smarter
2009-10-23 19:51:26 -04:00
Tom Taylor
0bc089cd0b am 40c995a7: am baf4ca1b: am 246978b8: Add a method to clear info about a contact
Merge commit '40c995a704141c4b245ba422f26dc4046ed3538b'

* commit '40c995a704141c4b245ba422f26dc4046ed3538b':
  Add a method to clear info about a contact
2009-10-23 14:38:53 -07:00
Tom Taylor
40c995a704 am baf4ca1b: am 246978b8: Add a method to clear info about a contact
Merge commit 'baf4ca1bba6a93e20614d605a1232b3f34057723' into eclair-mr2-plus-aosp

* commit 'baf4ca1bba6a93e20614d605a1232b3f34057723':
  Add a method to clear info about a contact
2009-10-23 14:27:18 -07:00
Tom Taylor
baf4ca1bba am 246978b8: Add a method to clear info about a contact
Merge commit '246978b8dc89562dda47fea9a7aee61949101242' into eclair-mr2

* commit '246978b8dc89562dda47fea9a7aee61949101242':
  Add a method to clear info about a contact
2009-10-23 14:18:36 -07:00
Tom Taylor
246978b8dc Add a method to clear info about a contact
Add a method so the ContactInfoWidget will throw away the cached
info it has on a contact (e.g. picture and uri).

Change-Id: Ia8f376e356c6bcf246bbd72239c5ca2a3b7c9574
2009-10-23 13:33:25 -07:00
Leon Scroggins
a6d36d81af am 79b60972: am f0990646: Merge change I1d96ca06 into eclair-mr2
Merge commit '79b609722ef2121368b2f40a0e67ac9fecc23b7c'

* commit '79b609722ef2121368b2f40a0e67ac9fecc23b7c':
  Show the soft keyboard when pressing center key/trackball on input field
2009-10-23 09:55:07 -07:00
Leon Scroggins
79b609722e am f0990646: Merge change I1d96ca06 into eclair-mr2
Merge commit 'f0990646d505ec06d400debe5fd5c895fcb02f13' into eclair-mr2-plus-aosp

* commit 'f0990646d505ec06d400debe5fd5c895fcb02f13':
  Show the soft keyboard when pressing center key/trackball on input field
2009-10-23 09:44:11 -07:00
Leon Scroggins
c5e7f55072 am 6e6dbc3f: am 1d60c5c1: Do not hide the cursor ring when clicking on an input field.
Merge commit '6e6dbc3f4dadb844b472529f51e356fd1bdc1aaa'

* commit '6e6dbc3f4dadb844b472529f51e356fd1bdc1aaa':
  Do not hide the cursor ring when clicking on an input field.
2009-10-23 09:27:17 -07:00
Leon Scroggins
1d96ca06d8 Show the soft keyboard when pressing center key/trackball on input field
Fixes http://b/issue?id=2210234

Consolidate center key/trackball presses on input fields, and show
soft keyboard if the field is not readonly.  Also rename the method
for a center press, and pass a click rather than a touch.  Requires
a change in external/webkit.
2009-10-23 11:49:03 -04:00
Leon Scroggins
6e6dbc3f4d am 1d60c5c1: Do not hide the cursor ring when clicking on an input field.
Merge commit '1d60c5c16b92ddc64d10f13da8af7faaae22cd2f' into eclair-mr2-plus-aosp

* commit '1d60c5c16b92ddc64d10f13da8af7faaae22cd2f':
  Do not hide the cursor ring when clicking on an input field.
2009-10-23 08:43:18 -07:00
Leon Scroggins
1d60c5c16b Do not hide the cursor ring when clicking on an input field.
When pressing the trackball on a text input field, do not call
setFollowedLink, which results in the cursor ring disappearing and
the WebTextView being torn down.  Fixes http://b/issue?id=2210127
2009-10-23 11:22:36 -04:00
Andrei Popescu
102ca28b1d am 5c73c3bc: am 46a83b4e: Make the VideoView go away automatically at the end of playback.
Merge commit '5c73c3bce410aa84bc0c57eee5b394c044035e33'

* commit '5c73c3bce410aa84bc0c57eee5b394c044035e33':
  Make the VideoView go away automatically at the end of playback.
2009-10-23 07:41:58 -07:00
Android (Google) Code Review
4ab5748720 Merge change Ibfd6d481
* changes:
  Add a reference table dump call.
2009-10-23 10:34:48 -04:00
Andrei Popescu
5c73c3bce4 am 46a83b4e: Make the VideoView go away automatically at the end of playback.
Merge commit '46a83b4ead517b9fc13b4bee4c59c3eaf4d3fdd9' into eclair-mr2-plus-aosp

* commit '46a83b4ead517b9fc13b4bee4c59c3eaf4d3fdd9':
  Make the VideoView go away automatically at the end of playback.
2009-10-23 07:29:27 -07:00
Andrei Popescu
46a83b4ead Make the VideoView go away automatically at the end of playback.
Fixes http://b/issue?id=2210018
2009-10-23 13:53:14 +01:00
Andrew Harp
94927dffce Patching in hidden API to allow app managed preview frame buffers.
Commit-Id: If3c30fc932697afa966cc97b17749e9996de92ee
2009-10-23 01:44:47 -04:00
Dianne Hackborn
68ce35ec9a am 8368e510: am c6bead14: am 7580493b: Implement feature #2117336: Create event communication APIs for live wallpaper
Merge commit '8368e510a90ab30a9f850144f5adabb0455d26f9'

* commit '8368e510a90ab30a9f850144f5adabb0455d26f9':
  Implement feature #2117336: Create event communication APIs for live wallpaper
2009-10-22 20:42:10 -07:00
Dianne Hackborn
8368e510a9 am c6bead14: am 7580493b: Implement feature #2117336: Create event communication APIs for live wallpaper
Merge commit 'c6bead14fe6fe70bcfd8802ee9f0259476a074ce' into eclair-mr2-plus-aosp

* commit 'c6bead14fe6fe70bcfd8802ee9f0259476a074ce':
  Implement feature #2117336: Create event communication APIs for live wallpaper
2009-10-22 20:32:09 -07:00
Dianne Hackborn
c6bead14fe am 7580493b: Implement feature #2117336: Create event communication APIs for live wallpaper
Merge commit '7580493b014a2c7ea883cd291255798dc72ebbff' into eclair-mr2

* commit '7580493b014a2c7ea883cd291255798dc72ebbff':
  Implement feature #2117336: Create event communication APIs for live wallpaper
2009-10-22 20:21:07 -07:00
Dianne Hackborn
7580493b01 Implement feature #2117336: Create event communication APIs for live wallpaper
Note: currently only implements an async version (no result), and not yet
actually tested.

Change-Id: Id47ed045a4b0eb309ea8c58daf41a0e03eff1d3a
2009-10-22 20:10:53 -07:00
Fred Quintana
5a5772c2ad am 44dd4732: am f3971747: am 0bf653b5: am f4520f3e: Merge change I9161f53d into eclair-sdk
Merge commit '44dd4732184ce01b5fa0c7ed09347d27de60595b'

* commit '44dd4732184ce01b5fa0c7ed09347d27de60595b':
  update account manager javadoc
2009-10-22 19:07:04 -07:00
Fred Quintana
44dd473218 am f3971747: am 0bf653b5: am f4520f3e: Merge change I9161f53d into eclair-sdk
Merge commit 'f3971747506ca9055e7b5c42a809ac12f8c26ad3' into eclair-mr2-plus-aosp

* commit 'f3971747506ca9055e7b5c42a809ac12f8c26ad3':
  update account manager javadoc
2009-10-22 18:39:44 -07:00
Fred Quintana
f397174750 am 0bf653b5: am f4520f3e: Merge change I9161f53d into eclair-sdk
Merge commit '0bf653b531b8582012ed211fe65e50702589a7c4' into eclair-mr2

* commit '0bf653b531b8582012ed211fe65e50702589a7c4':
  update account manager javadoc
2009-10-22 18:29:59 -07:00
Fred Quintana
0bf653b531 am f4520f3e: Merge change I9161f53d into eclair-sdk
Merge commit 'f4520f3e03e120ed109a579c1936994b142523c3' into eclair

* commit 'f4520f3e03e120ed109a579c1936994b142523c3':
  update account manager javadoc
2009-10-22 17:53:28 -07:00
Andy McFadden
bfd6d481fa Add a reference table dump call.
This is just an android.os.Debug method that calls into the VM.

Bug 2075355
2009-10-22 17:25:57 -07:00
Fred Quintana
756b735e93 update account manager javadoc 2009-10-22 16:56:08 -07:00
Jesse Wilson
3183c78f19 Plug into the new optimized path for Dalvik logging. 2009-10-22 16:21:11 -07:00
Mike Reed
8db532c136 don't turn off filtering/dithering when we scroll.
Newer devices have proven plenty fast to leave the quality improvements on even during drag/scroll.
2009-10-22 17:18:28 -04:00
Cary Clark
40d787ccce am d2d630b1: am d9ec29f6: fix text area insertion order, partially
Merge commit 'd2d630b1b5c20a9e3d223595566def35c1175ca9'

* commit 'd2d630b1b5c20a9e3d223595566def35c1175ca9':
  fix text area insertion order, partially
2009-10-22 12:39:30 -07:00
Cary Clark
d2d630b1b5 am d9ec29f6: fix text area insertion order, partially
Merge commit 'd9ec29f64827bc703a23b1c33d653906a91713fc' into eclair-mr2-plus-aosp

* commit 'd9ec29f64827bc703a23b1c33d653906a91713fc':
  fix text area insertion order, partially
2009-10-22 12:27:10 -07:00
Cary Clark
d9ec29f648 fix text area insertion order, partially
While Leon mulls over how to rewrite WebTextView to
handle webkit driven focus changes, these fixes make
the current code slightly more stable.

Keep track of when keyDown is sent again so that the
WebTextView won't be rebuilt in that case.

Don't clear the cursor from WebTextView if the there's
no native focus pointer.

Only set the selection to its initial state once when
passing events down to webkit.

partially fixes http://b/issue?id=2201049
2009-10-22 15:18:02 -04:00