1504 Commits

Author SHA1 Message Date
Leon Scroggins
3ccd3655a0 Fix a WebView longpress bug.
Longpressing on a WebView while the WebTextView is up calls
WebTextView::performLongPress().  This used to be fine, but now
we may still leave the WebTextView up while the user is longpressing
on something else.  Check to ensure that the focus is the same
as the cursor before calling WebTextView's version.  Also,
send a click if the user longpresses on a different WebTextView,
so it will now behave appropriately.  Requires a change in
external/webkit.

Also remove a duplicate check for inEditingMode().
2009-06-30 11:47:26 -04:00
Leon Scroggins
8cdad88915 Make the caret/selection draw when gaining window focus.
When the WebView loses WindowFocus, we stop drawing the
selection.  We need to resume drawing it, especially for
the context menu, which steals WindowFocus.  Corresponds
to a change in Webkit.
2009-06-30 10:28:44 -04:00
Christopher Tate
5e79e32357 am 91717497: Use system properties to track the current transport
Merge commit '9171749700853305f3e6abbcdbd9e02f3a71d459'

* commit '9171749700853305f3e6abbcdbd9e02f3a71d459':
  Use system properties to track the current transport
2009-06-29 20:20:20 -07:00
Android (Google) Code Review
4658e8ece6 am 05ebcb51: Merge change 5609 into donut
Merge commit '05ebcb5172679a6c196cbf23d7174c04dd9f6ae0'

* commit '05ebcb5172679a6c196cbf23d7174c04dd9f6ae0':
  Update spinner's drawables. Clean up resources, pave the way for new animation.
2009-06-29 20:20:11 -07:00
Romain Guy
b8990f39b0 am fbd8f69a: Fixes #1946141. Introduce new caching API to control scaling.
Merge commit 'fbd8f69a84163ef1cf52b07966320caf448c2bc9'

* commit 'fbd8f69a84163ef1cf52b07966320caf448c2bc9':
  Fixes #1946141. Introduce new caching API to control scaling.
2009-06-29 20:19:49 -07:00
Android (Google) Code Review
2187f30d14 am a1590586: Merge change 5578 into donut
Merge commit 'a1590586e4c02e50d14cc99018be2c419f5a07b9'

* commit 'a1590586e4c02e50d14cc99018be2c419f5a07b9':
  Add new EXTRA_POST_DATA extra key for use in VIEW intents to Browser.
2009-06-29 20:18:08 -07:00
Android (Google) Code Review
cfd205c303 am 30599249: Merge change 5570 into donut
Merge commit '3059924953dafdd94dce65d8be42e98fcde305b8'

* commit '3059924953dafdd94dce65d8be42e98fcde305b8':
  Adding implementation of IPA to the TextToSpeech.java
2009-06-29 20:18:01 -07:00
Android (Google) Code Review
62ebe364cb am 3a15fbd7: Merge change 5581 into donut
Merge commit '3a15fbd7df56e44060c78d7832fbea895ceb9bbf'

* commit '3a15fbd7df56e44060c78d7832fbea895ceb9bbf':
  Add a null check in an AutoCompleteTextView callback to prevent a crash.
2009-06-29 20:17:57 -07:00
Amith Yamasani
08bc0d51a0 am a013a98f: Fix the nested preferences title. Again.
Merge commit 'a013a98f93fd5ced58cf76dcc2bd6ab2ca95dd92'

* commit 'a013a98f93fd5ced58cf76dcc2bd6ab2ca95dd92':
  Fix the nested preferences title. Again.
2009-06-29 20:17:53 -07:00
Android (Google) Code Review
0e04f18ec7 am ec0cf8bc: Merge change 5554 into donut
Merge commit 'ec0cf8bc874f53cfc7256628f0ec56657ac92073'

* commit 'ec0cf8bc874f53cfc7256628f0ec56657ac92073':
  Adding in the playSilence method to TextToSpeech.java
2009-06-29 20:17:36 -07:00
Android (Google) Code Review
af01bcaf33 Merge change 5703
* changes:
  Add JS Flag support.
2009-06-29 16:47:22 -07:00
Android (Google) Code Review
6034cb565c am 17a80081: Merge change 5544 into donut
Merge commit '17a80081a42410f541a220ab7e6afc64fc6cc399'

* commit '17a80081a42410f541a220ab7e6afc64fc6cc399':
  Pipe all the camera callbacks to Java to facilitate the addition
2009-06-29 16:37:31 -07:00
Android (Google) Code Review
f6ff591dec am 72eb0aca: Merge change 5483 into donut
Merge commit '72eb0acad5cffc57ce5006f6deab29ee259e461e'

* commit '72eb0acad5cffc57ce5006f6deab29ee259e461e':
  Expand support for different screen sizes.
2009-06-29 16:37:17 -07:00
Dan Egnor
8c3fc63576 am 156411df: Use a long for restore token
Merge commit '156411df4627336b246db78cddca8248ed615b67'

* commit '156411df4627336b246db78cddca8248ed615b67':
  Use a long for restore token
2009-06-29 16:37:02 -07:00
Android (Google) Code Review
5ceae67f8a am 040441fa: Merge change 5529 into donut
Merge commit '040441fa992bcfc11070d559bfceeb039667b382'

* commit '040441fa992bcfc11070d559bfceeb039667b382':
  Tweak the core and maximum pool sizes for AsyncTask.
2009-06-29 16:36:58 -07:00
Christopher Tate
f35b2f382c am 8a27f923: Don\'t crash in various ways when using backup services too early
Merge commit '8a27f923eb9dbbe3c2d0184e82d9f1a98f1e4cdc'

* commit '8a27f923eb9dbbe3c2d0184e82d9f1a98f1e4cdc':
  Don't crash in various ways when using backup services too early
2009-06-29 16:36:52 -07:00
Android (Google) Code Review
b5fba86e4c am 56bc7156: Merge change 5537 into donut
Merge commit '56bc71565ecd72bf7a3e45b5c871b0407ed9f781'

* commit '56bc71565ecd72bf7a3e45b5c871b0407ed9f781':
  Add a test for SharedPreferencesBackupHelper
2009-06-29 16:36:45 -07:00
Android (Google) Code Review
eaab836e7f am 77cb40a0: Merge change 5447 into donut
Merge commit '77cb40a0b088b02357fbc7d5fad24886d607f0da'

* commit '77cb40a0b088b02357fbc7d5fad24886d607f0da':
  Adding skeleton methods for IPA support.
2009-06-29 16:36:41 -07:00
Feng Qian
b308137ed0 Add JS Flag support. 2009-06-29 16:22:21 -07:00
Grace Kloba
0b956e1353 Add content-disposition into the cache header as it is needed by Flash.
As WebKit is using string version of "expires", pass it with the rest of the headers.
2009-06-29 14:49:10 -07:00
Android (Google) Code Review
5f9c2ab7a7 Merge change 5648
* changes:
  Adding support for webkit to request the keyboard.
2009-06-29 12:12:39 -07:00
Android (Google) Code Review
c2188ff586 Merge change 5600
* changes:
  Rework the property parsing code.
2009-06-29 11:42:38 -07:00
Jaikumar Ganesh
8bc8ce44f7 Rework the property parsing code.
1. Fix and remove CodeDuplication TODO
2. Fix crash while unpairing.
3. For array properties, make it a bit more efficient by passing,
   lesser String objects from JNI.
4. Remove void pointer usage and use union to make code more readble.
2009-06-29 11:41:19 -07:00
Derek Sollenberger
4c41e8dc3b Adding support for webkit to request the keyboard. 2009-06-29 14:12:38 -04:00
Leon Scroggins
0ca70883d7 Assign a field name for textfields in the browser.
Fix for http://b/issue?id=1605291.  Store the url and name of the
textfield in EditorInfo.fieldName.
2009-06-29 10:50:17 -04:00
Leon Scroggins
0658e8fe45 If the cursor moves from a focused textfield to another, remove the WebTextView.
We already remove the blinking caret, implying that if the user
types with the cursor on another textfield, the keys will go there.
This way, the WebView will see the key, and rebuild the WebTextView,
so we no longer use the data from the first textfield.  This fixes
a bug where moving from a focused textfield and pressing delete
with the cursor on another was deleting a character from the
first (initially focused) textfield.  Also, in WebView::onKeyDown,
only check if the native cursor is a textfield before deciding
whether to send a CLICK, since plugins will be handled differently
(this is part of a different change), and now the cursor may match
the focus, but we still want the click (to make the focusController
active - i.e. make the cursor blink).
2009-06-29 10:16:24 -04:00
Cary Clark
243ea06d2b Remove the web text view if the key cannot be handled
Also add some debugging to WebTextView
Requires companion change in external/webkit
2009-06-29 09:30:42 -04:00
Cary Clark
215b72cbf7 route arrow keys to plugin
see companion change in external/webkit
2009-06-29 08:23:18 -04:00
Christopher Tate
9171749700 Use system properties to track the current transport
This change retools the transport selection mechanism a fair bit.  Transports
are now specified by name rather than by numeric ID, and the name of the
currently selected transport is stored in a persistent system property under the
name "persist.service.bkup.trans".

The name -> IBackupTransport translation is now handled by maintaining a map
from the names to the live IBackupTransport objects that correspond.  The Google
transport service observer now registers and unregisters the transport as the
service goes up and down.

The bmgr command has been expanded to include real transport interrogation and
selection by name, and some documentation has been written for it.
2009-06-26 21:14:41 -07:00
Romain Guy
f4f7046183 Update spinner's drawables. Clean up resources, pave the way for new animation. 2009-06-26 19:21:54 -07:00
Romain Guy
fbd8f69a84 Fixes #1946141. Introduce new caching API to control scaling.
This change fixes issues with existing applications that access the drawing cache
directly. The API now lets application choose whether they want to get a scaled
drawing cache or not. The framework relies on the scaled cache for quality
purposes.
2009-06-26 16:56:32 -07:00
Android (Google) Code Review
a1590586e4 Merge change 5578 into donut
* changes:
  Add new EXTRA_POST_DATA extra key for use in VIEW intents to Browser. In a followup change, Grace will need to remove EXTRA_APPEND_LOCATION as we are replacing that with this.
2009-06-26 16:38:51 -07:00
Mike LeBeau
74d909565b Add new EXTRA_POST_DATA extra key for use in VIEW intents to Browser.
In a followup change, Grace will need to remove EXTRA_APPEND_LOCATION
as we are replacing that with this.
2009-06-26 16:38:03 -07:00
Android (Google) Code Review
3059924953 Merge change 5570 into donut
* changes:
  Adding implementation of IPA to the TextToSpeech.java
2009-06-26 16:24:03 -07:00
Android (Google) Code Review
3a15fbd7df Merge change 5581 into donut
* changes:
  Add a null check in an AutoCompleteTextView callback to prevent a crash.
2009-06-26 16:23:51 -07:00
Eric Fischer
d072154bdd Add a null check in an AutoCompleteTextView callback to prevent a crash.
It looks like the drop down list had already been taken down before the
callback fired so it caused a null pointer exception.  In this case just
do nothing instead.

Bug 1927858
2009-06-26 16:14:59 -07:00
Amith Yamasani
a013a98f93 Fix the nested preferences title. Again.
Made a mistake when refactoring just before checkin. ! ?
2009-06-26 16:05:33 -07:00
Charles Chen
d4989093ed Adding implementation of IPA to the TextToSpeech.java 2009-06-26 15:56:10 -07:00
Charles Chen
f032bc7da5 Adding in the playSilence method to TextToSpeech.java 2009-06-26 14:41:55 -07:00
Android (Google) Code Review
17a80081a4 Merge change 5544 into donut
* changes:
  Pipe all the camera callbacks to Java to facilitate the addition of new features. This will make it easy to add things like zoom callbacks without modifying the entire camera stack. Bug 1837832.
2009-06-26 14:02:10 -07:00
Android (Google) Code Review
72eb0acad5 Merge change 5483 into donut
* changes:
  Expand support for different screen sizes.
2009-06-26 13:46:07 -07:00
Dianne Hackborn
723738cfae Expand support for different screen sizes.
Applications can now declare that they support small, normal, or
large screens.  Resource selection can also be done based on these
sizes.  By default, pre-Donut apps are false for small and large,
and Donut or later apps are assumed to support all sizes.  In either
case they can use <supports-screens> in their manifest to declare
what they actually support.
2009-06-26 13:37:05 -07:00
Dave Sparks
c62f9bd133 Pipe all the camera callbacks to Java to facilitate the addition
of new features. This will make it easy to add things like zoom
callbacks without modifying the entire camera stack.
Bug 1837832.
2009-06-26 13:33:32 -07:00
Dan Egnor
156411df46 Use a long for restore token 2009-06-26 13:25:27 -07:00
Android (Google) Code Review
040441fa99 Merge change 5529 into donut
* changes:
  Tweak the core and maximum pool sizes for AsyncTask.
2009-06-26 13:19:59 -07:00
Leon Scroggins
ef6da8fe3d Make clicking the trackball on a <select> element work.
Optionally pass a frame and node pointer to nativeClick, since
the hit testing does not find the HTMLSelectElement node. Also
change the signature of nativeClick to return void, since
we never use the return value.  Requires a change in
external/webkit.
2009-06-26 15:33:47 -04:00
Christopher Tate
8a27f923eb Don't crash in various ways when using backup services too early
BackupManager now no longer tries to use a null service binder if it's used
early during the boot process.  ActivityManagerService no longer tries to
dereference null pointers if bind/unbind semantics get out of step due to things
being run too early.
2009-06-26 12:20:10 -07:00
Android (Google) Code Review
56bc71565e Merge change 5537 into donut
* changes:
  Add a test for SharedPreferencesBackupHelper
2009-06-26 11:48:54 -07:00
Joe Onorato
dc355a90a3 Add a test for SharedPreferencesBackupHelper
(which nobody had ever tested.  I like it when stuff
just works the first time).
2009-06-26 14:45:25 -04:00
Grace Kloba
53d3c1e451 Fine tune TOUCH_SENT_INTERVAL for the high speed devices. 2009-06-26 11:36:03 -07:00