4742 Commits

Author SHA1 Message Date
Fred Quintana
756b735e93 update account manager javadoc 2009-10-22 16:56:08 -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
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
Mike Lockwood
3d4247ef95 am fee0f577: Merge change I99dc6477 into eclair
Merge commit 'fee0f5773335e42f4ffdf2d2d1c344ceee3ccb33' into eclair-mr2

* commit 'fee0f5773335e42f4ffdf2d2d1c344ceee3ccb33':
  Add WindowManagerPolicy.allowKeyRepeat() method for disabling key repeats.
2009-10-22 10:49:23 -07:00
Android (Google) Code Review
1de953aee5 Merge change Ie31311fd into eclair-mr2
* changes:
  fix the "right icon" in the titlebar
2009-10-22 13:30:44 -04:00
Leon Scroggins
70de03d413 am f8e3ac85: Merge change Ifa8ab30e into eclair
Merge commit 'f8e3ac851959efbd21da930a802f8efb65ccec5b' into eclair-mr2

* commit 'f8e3ac851959efbd21da930a802f8efb65ccec5b':
  In onKeyUp for DPAD_CENTER, show the IME for text input.
2009-10-22 06:47:47 -07:00
Mike Lockwood
3d0ea72dd7 Add WindowManagerPolicy.allowKeyRepeat() method for disabling key repeats.
Part of a fix for bug b/2198537

Change-Id: I99dc64772fa7644b12432d5549603025196ea3e2
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-21 23:08:13 -04:00
Doug Zongker
885cfc23a4 make the password-clearing algorithm smarter
Remove the ro.config.sim_password_clear property; go back to enabling
this for all devices.  For GSM devices, we clear the password on SIM
change as before.  For CDMA devices, we only clear when the device is
provisioned with a different number; we don't clear the password while
the device is unprovisioned.
2009-10-21 16:52:44 -07:00
Mark Wagner
e31311fde5 fix the "right icon" in the titlebar
Looks like when you request a right icon in the title bar it was
still putting it on the left.  Perhaps nobody ever tried this.
2009-10-21 13:34:49 -07:00
Android (Google) Code Review
f8e3ac8519 Merge change Ifa8ab30e into eclair
* changes:
  In onKeyUp for DPAD_CENTER, show the IME for text input.
2009-10-21 16:11:23 -04:00
Leon Scroggins
9d1abc43f5 In onKeyUp for DPAD_CENTER, show the IME for text input.
Fixes http://b/issue?id=2201966

Change-Id: Ifa8ab30e205e21e9e69e9a7405a0a6fc86c6c488
2009-10-21 15:35:33 -04:00
Android (Google) Code Review
2cb6b7fb86 Merge change Ic4bf942c into eclair
* changes:
  Import revised translations.  DO NOT MERGE
2009-10-21 15:09:58 -04:00
Grace Kloba
3f9faf4737 When WebView has wrap_content, we are sending WebKit
0 height to get the exact height. But if the View system
doesn't think the WebView dimension changed, even we
call requestLayout, we won't get onSizeChanged. So
we never notify the WebKit about the final view size.

If updateLayout is true, which is probable because that
we set the height to be 0 to WebKit, just call requestLayout()
even the meansured height / width is matching the 
content height / width.

Fix http://b/issue?id=2162991
2009-10-21 11:34:35 -07:00
Android (Google) Code Review
2f3dc5b9ce Merge change If1e1fb39 into eclair-mr2
* changes:
  Draw dividers between <optgroup> and <option> elements.
2009-10-21 14:15:54 -04:00
Android (Google) Code Review
7a7197853d Merge change Ifcafa460 into eclair-mr2
* changes:
  fix multiple text areas, and text areas without focus rings
2009-10-21 14:14:46 -04:00
Jack Palevich
c620a52b69 Add size checks for glBufferData and glBufferSubData
Without the size checks it's possible for calls to glBufferData
and glBufferSubData to read off the end of the Buffer object's
data, which can cause page faults.

Fix end-of-line characters for the "spec" files. (That's why
every line of these files is changed.)

Enhance our code emitter to properly handle bounds checks for
possibly-null pointers.
2009-10-21 11:02:44 -07:00
Cary Clark
fcafa46069 fix multiple text areas, and text areas without focus rings
If the typed key doesn't go with the current text area, clear
the focus so the key won't return to that text area. However,
don't clear the focus if it is already off the old text area.

fixes http://b/issue?id=2201049
2009-10-21 13:55:48 -04:00
Eric Fischer
c4bf942cef Import revised translations. DO NOT MERGE
Approver: jerryw
2009-10-21 10:41:17 -07:00
Leon Scroggins
f1e1fb3976 Draw dividers between <optgroup> and <option> elements.
Fix http://b/issue?id=2198355
2009-10-21 13:39:33 -04:00
Jack Palevich
d443ba4534 Prevent transparent region from getting out of sync with Surface Flinger
The ViewRoot is responsible for calculating the current view's surface's
transparent region and reporting this to the window server, which in
turn notifies Surface Flinger.

To minimize cross-process traffic, ViewRoot keeps track of the
most recent transparent region that it has reported to the window
server, and only sends updates when the region shape changes.

ViewRoot is effectively shadowing the internal state of the window
server, and usually this works fine, because ViewRoot is usually the
only thing that changes this value.

But when the surface is recreated, the window server resets the
transparent region to empty. So in order to properly update the window
server we need to reset our copy of its state to empty too.

Fixes issue #2133090: GL Gears runs at half speed in some cases
2009-10-21 09:33:34 -07:00
Leon Scroggins
a8da17356f Do not show radio/checkboxes for <optgroup> labels.
Fix for http://b/issue?id=2186188.  Keep track of <optgroup> labels
separately from disabled <option> labels.  Requires a change to
external/webkit.

In CheckedTextView, if the CheckMarkDrawable is set to null,
remove it.
2009-10-21 10:01:49 -04:00
Android (Google) Code Review
2a2805b7fb Merge change Ib3b06fc3 into eclair-mr2
* changes:
  It turns out to be useful to allow enumeration on a per-tag basis, and it's easy to support based on the data structures we have, so add a tag parameter to getNextEvent().
2009-10-20 16:23:01 -04:00
Dan Egnor
b3b06fc39b It turns out to be useful to allow enumeration on a per-tag basis,
and it's easy to support based on the data structures we have, so
add a tag parameter to getNextEvent().
2009-10-20 13:05:17 -07:00
Cary Clark
ac492e181a tweak snap scroll
WebView.mHeldMotionless should only be set to MOTIONLESS_FALSE
if some scrolling occurs, even in the case where motion is discarded
by snap-scroll mode.

Refactoring the code allows the code to be smaller, and provides
a single point where scrollBy() is called while dragging.

This doesn't change the snap-scroll logic in any way.

related to http://b/issue?id=2092446
2009-10-20 15:17:55 -04:00
Android (Google) Code Review
5af4cf47b9 Merge change I4958d608 into eclair-mr2
* changes:
  add dpad control of text selection for sholes
2009-10-20 15:09:51 -04:00
Marco Nelissen
32de913062 am cdc8b326: Merge change I61741f5a into eclair
Merge commit 'cdc8b326dd0989003e2fdd7d5a605b5755acf221' into eclair-mr2

* commit 'cdc8b326dd0989003e2fdd7d5a605b5755acf221':
  Fix high density bug 2179543: use 'dip' instead of 'px'
2009-10-20 11:29:26 -07:00
Cary Clark
c05af372b8 add dpad control of text selection for sholes
Make movement of text selection arrow and I-beam respond to
both trackball and d-pad. Make the 'click' action work for
both trackball-up and d-pad center.

fixes http://b/issue?id=2186069
2009-10-20 14:27:36 -04:00
Android (Google) Code Review
cdc8b326dd Merge change I61741f5a into eclair
* changes:
  Fix high density bug 2179543: use 'dip' instead of 'px'
2009-10-20 13:10:42 -04:00
Android (Google) Code Review
12a19551dd Merge change I58def690 into eclair-mr2
* changes:
  If openOrCreateDatabase() throws an exception, delete the old db and re-do it. If it still fails, something bad happens, like the directory may have the different permission. Let it throw as WebView needs the db.
2009-10-20 13:03:02 -04:00
Mike Lockwood
aa033b7971 am d7786b41: Power Manager support for light sensor backlight management.
Merge commit 'd7786b41b78ba8592daea708b024b5a75e441992' into eclair-mr2

* commit 'd7786b41b78ba8592daea708b024b5a75e441992':
  Power Manager support for light sensor backlight management.
2009-10-20 09:22:20 -07:00
Marco Nelissen
b0905dc788 Fix high density bug 2179543: use 'dip' instead of 'px' 2009-10-20 07:54:00 -07:00
Android (Google) Code Review
52f545c7fd Merge change Ibe55f880 into eclair-mr2
* changes:
  Bluetooth A2DP suspend-resume improvements.
2009-10-20 03:32:44 -04:00
Mike Lockwood
d7786b41b7 Power Manager support for light sensor backlight management.
Change-Id: I470e2d7d12abf0dbfd31d84859b06bfae3cb36a1
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-19 22:30:34 -04:00
Amith Yamasani
b0f4d0cd24 am f37447ba: Proper fix for zero signal strength and no_service. Fixes #2176141
Merge commit 'f37447bad3773b62176baa837908daf6edb44273' into eclair-mr2

* commit 'f37447bad3773b62176baa837908daf6edb44273':
  Proper fix for zero signal strength and no_service. Fixes #2176141
2009-10-19 15:30:01 -07:00
Amith Yamasani
f37447bad3 Proper fix for zero signal strength and no_service. Fixes #2176141
Track phone service state changes and use a separate timer for out-of-service
since the hunting can timeout on some devices.

Store the timeout value in the config.xml, as it is device/network specific.

Settings App will also change to use the hunting duration to compute the cost
of zero signal.
2009-10-19 15:16:26 -07:00
Android (Google) Code Review
dad4780bbd Merge change I3834b1cb into eclair-mr2
* changes:
  support for multiline paragraph style indentation
2009-10-19 16:57:33 -04:00
Android (Google) Code Review
f9feb96e4f Merge change I4458a55d into eclair-mr2
* changes:
  Add access to ContentProvider for SyncState.
2009-10-19 16:52:14 -04:00
Android (Google) Code Review
788a7ee1e9 Merge change Ia245b1c4 into eclair-mr2
* changes:
  Add a string for upload file button.
2009-10-19 16:39:35 -04:00
Ken Shirriff
e341c7e7c8 Add access to ContentProvider for SyncState.
This is used (temporarily) by the new calendar sync implementation.
2009-10-19 13:13:19 -07:00
Patrick Scott
169ef4cca3 Check for null before returing a chunk from the pool.
Since references can be queued in another thread, the first entry in the pool
could have been queued after processPoolLocked. Check for null and create a new
chunk if the check fails.
2009-10-19 13:04:08 -04:00
Leon Scroggins
a245b1c44c Add a string for upload file button.
Necessary for http://b/issue?id=2178786.  The rest of the work has
not yet been done, but I am adding the string so it can be
translated.
2009-10-19 12:50:11 -04:00
Ben Murdoch
208360b22d Fix for b/2164520: Download manager should handle video/m4v MIME type.
The fix relaxes our processing of the content-disposition header by allowing unquoted filenames, and adds the m4v type to the MIME type map incase the content-disposition header was not specified.

Change-Id: Iaab0c5b17991a2c05eff5db01babe084444fd3b7
2009-10-19 17:22:59 +01:00
Android (Google) Code Review
eab82c3c8c Merge change I44bbc36d into eclair-mr2
* changes:
  Add htm and html extensions to the map as "text/html"
2009-10-17 12:20:42 -04:00
Mark Wagner
7b5676e4d4 support for multiline paragraph style indentation
This change is likely incomplete and perhaps not right in other ways.
The gist of the change is that the span can return the number of lines
to which to apply the "leading margin".
Some specific things that should be looked at:

1) if the user has nested multiple
LeadingMarginSpans then they will inherit the "line count" feature.
This is wrong but I didn't want to spend time fixing it until it
was clear that this overall approach was acceptible.

2) The units for how many lines should indented is "lines" rather than
something like dips.

3) I wasn't sure what our strategy was for binary compatibility so
I didn't want to modify the methods in LeadingMarginSpan.  Instead I
made another interface with extends LeadingMarginSpan that has the
extra method to return the line count.
2009-10-16 15:26:31 -07:00
Eric Laurent
374d5bc0b3 Bluetooth A2DP suspend-resume improvements.
This change will reduce the occurence rate of A2DP sink suspend resume failures observed in issues 2184627, 2181005 and possibly 2189628.

More robust suspend/resume logic.
Use only the suspend request to audio hardware to avoid having two concurent suspend resume control paths.
2009-10-16 15:10:09 -07:00
Android (Google) Code Review
055e4ea56c Merge change Ief544bc6 into eclair-mr2
* changes:
  fix grammar in the grant permissions UI
2009-10-16 14:16:13 -04:00
Marc Blank
3905e87e90 Add htm and html extensions to the map as "text/html"
* Fixes #2192935
* Exchange attachment handling depends on MimeTypeMap to determine the
  mime type of attachments based on their file extension

Change-Id: I44bbc36d7a5aa0800f072553274346d4547f8d4c
2009-10-16 10:22:08 -07:00
Mike Lockwood
2086152c1b am f55aa972: Merge change I01935be3 into eclair
Merge commit 'f55aa972f9911c6aafc9fbdb736bdec11e004542' into eclair-mr2

* commit 'f55aa972f9911c6aafc9fbdb736bdec11e004542':
  Remove PowerManager.setAutoBrightness()
2009-10-16 09:38:03 -07:00
Android (Google) Code Review
f55aa972f9 Merge change I01935be3 into eclair
* changes:
  Remove PowerManager.setAutoBrightness()
2009-10-16 12:29:15 -04:00
Mike Lockwood
dc3494e3d8 Remove PowerManager.setAutoBrightness()
We will use the System.SCREEN_BRIGHTNESS_MODE Settings value instead.
Add SCREEN_BRIGHTNESS_MODE_MANUAL and SCREEN_BRIGHTNESS_MODE_AUTOMATIC constants.

Change-Id: I01935be3fcb48cf76392d2c594205cb47babc5b2
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-16 07:42:26 -07:00