2061 Commits

Author SHA1 Message Date
Leon Scroggins
72543e1bc3 Improvements to dragging on the WebTextView.
When TextView handles a mouse move as a scroll, scroll the
underlying textfield/textarea.  Also do not hide the cursor
while scrolling within a text input.  Requires a change to
external/webkit.
2009-07-23 16:32:38 -04:00
Android (Google) Code Review
f88c0a0625 Merge change 8199
* changes:
  Prevent a drag from both scrolling the page and changing the selection.
2009-07-23 10:19:27 -07:00
Android (Google) Code Review
8eb9881d20 Merge change 7735
* changes:
  Fix issue 1795088       Improve audio routing code
2009-07-23 09:48:57 -07:00
Android (Google) Code Review
8dc0c9b4ad Merge change 8189
* changes:
  Enforce app cache maximum size
2009-07-23 09:44:23 -07:00
Grace Kloba
675c7d2eb8 Fix 1997929. The final mScrollX/Y has been pinned to the legal bounds.
So we can't use it to calculate the intermediate scroll position. Use
the original scroll offset and scale to find the animated scroll position.
2009-07-23 09:21:21 -07:00
Eric Laurent
a553c25b33 Fix issue 1795088 Improve audio routing code
Initial commit for review.
Integrated comments after patch set 1 review.
Fixed lockup in AudioFlinger::ThreadBase::exit()
Fixed lockup when playing tone with AudioPlocyService startTone()
2009-07-23 06:03:39 -07:00
Mike LeBeau
e39900ca7a Merge commit '4182e684' into manualmerge
Conflicts:
	core/java/android/widget/AutoCompleteTextView.java
2009-07-22 17:31:09 -07:00
Android (Google) Code Review
6abef06ed0 Merge change 8134
* changes:
  Adding contact group NOTES and SYSTEM_ID
2009-07-22 15:27:57 -07:00
Mike LeBeau
d4760d77e7 Add new hidden API setForceIgnoreOutsideTouch to AutoCompleteTextView for
use by SearchDialog. SearchDialog wants to be able to say a dropdown should
not always be visible but still let it ignore outside touch when it does
show.

Fixes http://b/1997170
2009-07-22 15:19:59 -07:00
Dmitri Plotnikov
02c5b45565 Adding contact group NOTES and SYSTEM_ID 2009-07-22 15:13:08 -07:00
Android (Google) Code Review
2c33bb19f7 am 98a44df4: Merge change 8235 into donut
Merge commit '98a44df4b4cc8cd28276ad888a7e17f81353ae44'

* commit '98a44df4b4cc8cd28276ad888a7e17f81353ae44':
  * Revert the change that I introduced while refactroing in SurfaceView#dispatchTouchEvent
2009-07-22 15:09:23 -07:00
Android (Google) Code Review
98a44df4b4 Merge change 8235 into donut
* changes:
  * Revert the change that I introduced while refactroing in SurfaceView#dispatchTouchEvent * Don't scale back the event if the canvas is used in SurfaceView.
2009-07-22 14:42:08 -07:00
Mitsuru Oshima
424f668545 * Revert the change that I introduced while refactroing in SurfaceView#dispatchTouchEvent
* Don't scale back the event if the canvas is used in SurfaceView.
2009-07-22 13:54:26 -07:00
Android (Google) Code Review
1193965757 am 0b1a255f: Merge change 8228 into donut
Merge commit '0b1a255f736851342016e657ba6ccf096a9497ea'

* commit '0b1a255f736851342016e657ba6ccf096a9497ea':
  Remove background padding workaround from SuggestionsAdapter
2009-07-22 13:32:58 -07:00
Android (Google) Code Review
0b1a255f73 Merge change 8228 into donut
* changes:
  Remove background padding workaround from SuggestionsAdapter
2009-07-22 13:31:20 -07:00
Android (Google) Code Review
1186bb1eca am ae1ba650: Merge change 8227 into donut
Merge commit 'ae1ba650074ab7b9a73f4430c1fc3576a8199383'

* commit 'ae1ba650074ab7b9a73f4430c1fc3576a8199383':
  Handle null in MatrixCursor.get*()
2009-07-22 13:29:31 -07:00
Android (Google) Code Review
ae1ba65007 Merge change 8227 into donut
* changes:
  Handle null in MatrixCursor.get*()
2009-07-22 13:27:26 -07:00
Bjorn Bringert
6aaeba20d2 Remove background padding workaround from SuggestionsAdapter
Romain has checked in a framework fix,
https://android-git.corp.google.com/g/8218
so the workaround added in
https://android-git.corp.google.com/g/8209
is no longer needed.

Fixes http://b/issue?id=1996635
2009-07-22 21:26:29 +01:00
Bjorn Bringert
f2cec58d90 Handle null in MatrixCursor.get*()
Before, if a column contained null, MatrixCursor.getString()
returned the string "null", and the get<Number>() methods
threw exceptions.

Now, getString() returns null, and get<Number>() return 0.

Fixes http://b/issue?id=1996628
2009-07-22 21:20:51 +01:00
Android (Google) Code Review
c58c78de2f am e94b2877: Merge change 8186 into donut
Merge commit 'e94b28773de2b2c9a0d0909841b2d3126048c888'

* commit 'e94b28773de2b2c9a0d0909841b2d3126048c888':
  Move global search intent launching to search dialog
2009-07-22 12:17:13 -07:00
Android (Google) Code Review
e94b28773d Merge change 8186 into donut
* changes:
  Move global search intent launching to search dialog
2009-07-22 12:14:58 -07:00
Dianne Hackborn
c00c04d7d8 am 11b822d2: Simplify density compatibility to a boolean.
Merge commit '11b822d2a91ea17c34c0cb1c11e80a9a30d72864'

* commit '11b822d2a91ea17c34c0cb1c11e80a9a30d72864':
  Simplify density compatibility to a boolean.
2009-07-22 12:01:19 -07:00
Dianne Hackborn
11b822d2a9 Simplify density compatibility to a boolean.
Instead of a list, we now just have a single boolean indicating whether an
application is density aware, and this set set to true by default as of
Donut.
2009-07-22 11:58:31 -07:00
Android (Google) Code Review
5a2572d538 am 7228d0fd: Merge change 8213 into donut
Merge commit '7228d0fdd7fd151f033b09044a9ba94b2bc06b74'

* commit '7228d0fdd7fd151f033b09044a9ba94b2bc06b74':
  Resetting the setLanguage() call to its intended behavior after change 8089
2009-07-22 11:51:29 -07:00
Android (Google) Code Review
679b67ebfa am 26654274: Merge change 8216 into donut
Merge commit '26654274905961835a36dbcfe98dc745e8beefbf'

* commit '26654274905961835a36dbcfe98dc745e8beefbf':
  Fixes #1994125. Ensures AbsListView's filter window is always dismissed.
2009-07-22 11:51:25 -07:00
Android (Google) Code Review
e75cfdc733 am b551fb87: Merge change 8210 into donut
Merge commit 'b551fb872be9b758c7793f56398d25a74d4a404c'

* commit 'b551fb872be9b758c7793f56398d25a74d4a404c':
  Always call ensureImeVisible when the text field is clicked. We want this
2009-07-22 11:51:20 -07:00
Android (Google) Code Review
9d06da8324 am 5e21a11f: Merge change 8209 into donut
Merge commit '5e21a11f00e3e65f6d7681e2519677329f0a92b2'

* commit '5e21a11f00e3e65f6d7681e2519677329f0a92b2':
  Work around StateListDrawable padding in search suggestions
2009-07-22 11:51:16 -07:00
Android (Google) Code Review
ba5e889eae am 6de72ea3: Merge change 8201 into donut
Merge commit '6de72ea39c9c00a2dc5ec539bf5733020c4db52f'

* commit '6de72ea39c9c00a2dc5ec539bf5733020c4db52f':
  Proactively set mVisible attribute in startSearch and stopSearch (not just in message handler).
2009-07-22 11:51:01 -07:00
Android (Google) Code Review
7228d0fdd7 Merge change 8213 into donut
* changes:
  Resetting the setLanguage() call to its intended behavior after change 8089 which works around the bug where a language cannot be set if the default language (which is loaded upon initialization) isn't eng-USA.
2009-07-22 11:48:11 -07:00
Android (Google) Code Review
2665427490 Merge change 8216 into donut
* changes:
  Fixes #1994125. Ensures AbsListView's filter window is always dismissed.
2009-07-22 11:30:23 -07:00
Romain Guy
1f7f3c336a Fixes #1994125. Ensures AbsListView's filter window is always dismissed. 2009-07-22 11:29:59 -07:00
Android (Google) Code Review
578cf8104b am aa0e47cb: Merge change 8179 into donut
Merge commit 'aa0e47cbd6ccada9d194f39e6b4372d2d3594b38'

* commit 'aa0e47cbd6ccada9d194f39e6b4372d2d3594b38':
  Fix SQL generated by updateWithOnConflict()
2009-07-22 11:27:18 -07:00
Android (Google) Code Review
eda7572365 Merge change 8211
* changes:
  cleanup the WebStorage Java class. There were too many calls to syncValues().
2009-07-22 11:26:16 -07:00
Android (Google) Code Review
b551fb872b Merge change 8210 into donut
* changes:
  Always call ensureImeVisible when the text field is clicked. We want this regardless of whether dropDownAlwaysVisible is true or not, as long as the popup is showing and is potentially obscuring the IME.
2009-07-22 11:22:07 -07:00
Andrei Popescu
9a56bb838c cleanup the WebStorage Java class. There were too many calls to syncValues(). 2009-07-22 19:21:48 +01:00
Android (Google) Code Review
5e21a11f00 Merge change 8209 into donut
* changes:
  Work around StateListDrawable padding in search suggestions
2009-07-22 11:19:18 -07:00
Mike LeBeau
470c565b6a Always call ensureImeVisible when the text field is clicked. We want this
regardless of whether dropDownAlwaysVisible is true or not, as long as
the popup is showing and is potentially obscuring the IME.
2009-07-22 11:17:48 -07:00
Jean-Michel Trivi
9c53a5c01f Resetting the setLanguage() call to its intended behavior after change 8089
which works around the bug where a language cannot be set if the default
language (which is loaded upon initialization) isn't eng-USA.
2009-07-22 11:15:23 -07:00
Bjorn Bringert
8051172a28 Work around StateListDrawable padding in search suggestions
Sometimes when searching, some of the suggestions had no left padding.
The left-hand side icons were flush with the left edge of the screen.
The problems was that setting a StateListDrawable as a background
will always set the padding of a View, because of a problem in
DrawableContainer.

DrawableContainer.DrawableContainerState.getConstantPadding()
will always return a Rect if mVariablePadding is false, which
makes DrawableContainer.getPadding() return true, which
causes View to change the padding.

As a workaround, we use setVariablePadding(true) on the background
that we create.

Fixes http://b/editIssue?id=1984813
2009-07-22 19:13:39 +01:00
Bjorn Bringert
4899e386ff Move global search intent launching to search dialog
Fixes http://b/issue?id=1969032
2009-07-22 18:36:22 +01:00
Android (Google) Code Review
6de72ea39c Merge change 8201 into donut
* changes:
  Proactively set mVisible attribute in startSearch and stopSearch (not just in message handler).
2009-07-22 10:23:16 -07:00
Karl Rosaen
1c07ebb651 Proactively set mVisible attribute in startSearch and stopSearch (not just in message handler).
This way someone can call searchManger.startSearch() and immediately have searchManger.isVisible() reflect
the correct value.

Fixes failing tests and bug 1993675
2009-07-22 10:11:00 -07:00
Leon Scroggins
416a3c7cdd Prevent a drag from both scrolling the page and changing the selection.
Fix for http://issue?id=1995835.  If the user uses touch to drag a
web page by the WebTextView, do not change the selection as well.
2009-07-22 13:05:43 -04:00
Andrei Popescu
1c829208ea Enforce app cache maximum size 2009-07-22 16:54:16 +01:00
Leon Scroggins
0f5ad842fb Allow the user to scroll a webpage by touching a textfield.
Fix for http://b/issue?id=1703971.  Because the browser overlays
the WebTextView over textfields, it intercepts all the touch
events, which was preventing the page from scrolling.  This
change passes the move events back to the WebView to make
the page scroll.
2009-07-22 11:21:18 -04:00
Bjorn Bringert
7f4c2ea378 Fix SQL generated by updateWithOnConflict()
Before, SQLiteDatabase.updateWithOnConflict() method generated
syntactically invalid SQL if the ConflictAlgorithm was non-null.
For example, it would generate
"UPDATE  OR REPLACEshortcuts SET ...",
when it should be "UPDATE OR REPLACE shortcuts SET ...".

Fixes http://b/issue?id=1995470
2009-07-22 12:49:17 +01:00
Android (Google) Code Review
c309e1509e Merge change 8025
* changes:
  wire appcache to the HTML5 UI
2009-07-22 00:45:05 -07:00
Jeff Sharkey
8a0193e4ca Added StructuredPostal, renamed PACKAGE columns, cleanup.
Changed Postal to StructuredPostal, which is the new type
coming down from GData.  This also prepares us for upcoming
data sources that need a structured version.  Because of the
number of columns required, we added 3 new DATA columns.

Moved PACKAGE back to Data rows to allow multiple apps to
merge their action entries under a single Contact.  Also
renamed to RES_PACKAGE to make clear that these packages are
strictly for loading resources, and do not imply the owner.

Removed RestrictionExceptions since we narrowed the scope
of IS_RESTRICTED for Eclair.  Factored out sync columns from
Groups and Contacts into its own interface.  Fixed general
warnings in comments.
2009-07-21 19:42:08 -07:00
Android (Google) Code Review
a8339dfec9 am 9fc20b0e: Merge change 8126 into donut
Merge commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf'

* commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf':
  First pass at reworking screen density/size APIs.
2009-07-21 19:03:53 -07:00
Dianne Hackborn
9822d2b273 First stab at poly-finger support.
The MotionEvent API should be fairly solid, but there is still a lot of
work to do in the input device code.  In particular, right now we are
really stupid about watching how fingers change -- we just take whatever
the driver reports as down and dump that directly into the motion event.

The big remaning work is to assign pointer IDs so that applications have
help in determine which fingers go up and down, and adding support for
the official multi-touch driver protocol.
2009-07-21 19:02:12 -07:00