OSDN Git Service

android-x86/frameworks-base.git
14 years agoPreload Resources$DefaultTimeZones.
Elliott Hughes [Wed, 16 Sep 2009 00:07:00 +0000 (17:07 -0700)]
Preload Resources$DefaultTimeZones.

Depends on https://android-git.corp.google.com/g/25167.

Bug: 19413111819285.

14 years agoif the cursor and focus don't match, match them on text view clicks
Cary Clark [Tue, 15 Sep 2009 17:13:23 +0000 (13:13 -0400)]
if the cursor and focus don't match, match them on text view clicks

Call nativeMotionUp from touchUpOnTextField to move the
mouse cursor to the text field if necessary before moving
the text caret to the desired position.

Fixes http://b/issue?id=2075647

14 years agocompute Y scroll max by scaling only, ignoring title bar height
Cary Clark [Tue, 15 Sep 2009 16:47:39 +0000 (12:47 -0400)]
compute Y scroll max by scaling only, ignoring title bar height

without this, the max scroll may be a single pixel

14 years agoMerge change 25059 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 17:19:56 +0000 (13:19 -0400)]
Merge change 25059 into eclair

* changes:
  special-case coordinate conversion when we are taking content coordinates to be invalidate. We need to round "out" these, to account for the slop in antialiasing, rather than using the existing routines that (correctly) round.

14 years agospecial-case coordinate conversion when we are taking content coordinates to be inval...
Mike Reed [Tue, 15 Sep 2009 15:26:53 +0000 (11:26 -0400)]
special-case coordinate conversion when we are taking content coordinates to be invalidate. We need to
round "out" these, to account for the slop in antialiasing, rather than using the existing routines
that (correctly) round.

14 years agoFix connection ID issue in Obex lib
Tao Liejun [Wed, 9 Sep 2009 09:18:49 +0000 (17:18 +0800)]
Fix connection ID issue in Obex lib

ConnectionID should be consistent in one Obex session.

14 years agoMerge change 24998 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 15:29:52 +0000 (11:29 -0400)]
Merge change 24998 into eclair

* changes:
  Add Panasonic KX-TH112 to blacklist.

14 years agoMerge change 25050 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 15:29:23 +0000 (11:29 -0400)]
Merge change 25050 into eclair

* changes:
  Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call.

14 years agoAdd Panasonic KX-TH112 to blacklist.
Nick Pelly [Tue, 15 Sep 2009 02:04:47 +0000 (19:04 -0700)]
Add Panasonic KX-TH112 to blacklist.

Change-Id: I12475aff4046796132beb2554cd067bcec712973

14 years agoMerge change 25012 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 14:32:13 +0000 (10:32 -0400)]
Merge change 25012 into eclair

* changes:
  PowerManagerService: Use 5 cm threshold for the proximity sensor.

14 years agoMerge change 23619 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 14:29:26 +0000 (10:29 -0400)]
Merge change 23619 into eclair

* changes:
  Add automatic lighting control framework

14 years agoFix issue 2118464: cannot play ring tones and notifications after disconnecting BT...
Eric Laurent [Tue, 15 Sep 2009 14:10:12 +0000 (07:10 -0700)]
Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call.

The problem comes from the fact that when the duplicated output is closed after BT headset disconnection, the OUTPUT_CLOSED notification is not sent to AudioSystem. Then the mapping between notification stream and duplicated output cached in AudioSystem is not cleared and next time a notification is played, the duplicated output is selected and the createTrack() request is refused by AudioFlinger as the selected output doesn't exist.
The notification is ignored by AudioFlinger because when it is sent by the terminating playback thread, the thread has already been removed from the playback thread list.

The fix consists in sending the notification in closeOutput() and not when exiting the playback thread.
The same fix is applied to record threads.

14 years agoFix 2083478: Camera needs an auto-focus cancel API
Chih-Chung Chang [Tue, 15 Sep 2009 06:51:56 +0000 (14:51 +0800)]
Fix 2083478: Camera needs an auto-focus cancel API

Change-Id: I13bda991b32aee47e82b5cf9d43b3021c416a9a2

14 years agoPowerManagerService: Use 5 cm threshold for the proximity sensor.
Mike Lockwood [Tue, 15 Sep 2009 04:13:38 +0000 (00:13 -0400)]
PowerManagerService: Use 5 cm threshold for the proximity sensor.

This eliminates the assumption that the proximity sensor will always return
zero distance when it is active.

Change-Id: I6245b074e4c42aeae3a181e6a5087554517046d2
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoAdd automatic lighting control framework
Dan Murphy [Thu, 27 Aug 2009 19:59:03 +0000 (14:59 -0500)]
Add automatic lighting control framework

Add changes to have the ability to turn on and off the
automatic light sensing for the device.  This is fully configurable
and is by default not  present.  Vendors should override the ALS setting
to enable the automatic lighting controls.

These changes will add a check box to the Brightness settings menu to give control
to the user to allow the device's display lighting to be controlled via the slide bar
or the auto lighting system.

If the user selects auto then the slide bar will become invisible.  Manual mode
will present the slide bar to the user.

Change-Id: I146a6d75b99b08c9b839218ce6b85adf21f9fd73
Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge change 24872 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 06:26:19 +0000 (02:26 -0400)]
Merge change 24872 into eclair

* changes:
  Fix issue 2115450: a2dp thread is started, even though we are only connected to headset and not playing music.

14 years agoMerge change 25013 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 04:26:45 +0000 (00:26 -0400)]
Merge change 25013 into eclair

* changes:
  Various fixed for back key handling.

14 years agoVarious fixed for back key handling.
Dianne Hackborn [Tue, 15 Sep 2009 04:21:52 +0000 (21:21 -0700)]
Various fixed for back key handling.

My last change was far from perfect.  Hopefully this gets us
a little closer.

Change-Id: I413e55b6af42400b565de3040859d25d668bc9d2

14 years agoMerge change 24977 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 01:11:56 +0000 (21:11 -0400)]
Merge change 24977 into eclair

* changes:
  add support for RGBX_8888 surfaces in SurfaceFlinger

14 years agoadd support for RGBX_8888 surfaces in SurfaceFlinger
Mathias Agopian [Tue, 15 Sep 2009 01:10:30 +0000 (18:10 -0700)]
add support for RGBX_8888 surfaces in SurfaceFlinger

14 years agoMerge change 24887 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 01:07:00 +0000 (21:07 -0400)]
Merge change 24887 into eclair

* changes:
  Fix http://b/issue?id=2098873 (drawing glitch in SeekBar).

14 years agoMerge change 24850 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 00:56:46 +0000 (20:56 -0400)]
Merge change 24850 into eclair

* changes:
  Last big work on #1991910: Make swipes work with capacitive keys

14 years agoLast big work on #1991910: Make swipes work with capacitive keys
Dianne Hackborn [Sun, 13 Sep 2009 06:38:30 +0000 (23:38 -0700)]
Last big work on #1991910: Make swipes work with capacitive keys

This takes care of allowing us to cancel the back button.  The
back button is a bear because it is strewn all over the place --
everywhere you can close something, there is some code looking
for the back button that now needs to deal with being canceled.

The main things changed are activity (of course), dialog,
input method, search dialog.  There are some other misc places
in the framework (and some I missed here that I will get in a
second pass).

To facility all of this, the key dispatching APIs now provide
a lot more support for dealing with looking for cancelled keys,
and incidentally also provide an actual API for catching long
key presses.  This also helped clean up the code in PhoneWindow
where it deals with all of the combinations of key pressed and
releases.  (And also allows people to override
Activity.onKeyLongPress() to provide a different long press
action for a standard key like search.)

And while I was doing this, I reworked how we detect long
presses by having this be part of the key event delivered by
the window manager.  This should greatly reduce (hopefully
outright eliminate) the problems with long presses being
mis-detected when an application is being slow.

Change-Id: Ia19066b8d588d573df3eee6d96e1c90fdc19f57d

14 years agoMerge change 24662 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 00:30:43 +0000 (20:30 -0400)]
Merge change 24662 into eclair

* changes:
  Fix URI returned by IccProvider.

14 years agoMerge change 24968 into eclair
Android (Google) Code Review [Tue, 15 Sep 2009 00:15:31 +0000 (20:15 -0400)]
Merge change 24968 into eclair

* changes:
  Minor perf tweak for fountain.

14 years agoFix issue #2116977: buttons are huge and bent
Dianne Hackborn [Mon, 14 Sep 2009 01:22:19 +0000 (18:22 -0700)]
Fix issue #2116977: buttons are huge and bent

Now that we are using preloaded drawables in compatibilty mode, when
constructing them from their constant state we need to set the new
drawable's target density appropriately.

Change-Id: I3665cbea09d38b9ac5f45f8c380dc8641f86b266

14 years agoMerge change 24921 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 23:30:37 +0000 (19:30 -0400)]
Merge change 24921 into eclair

* changes:
  add system properties for experimenting with sync timeouts.

14 years agoadd system properties for experimenting with sync timeouts.
Debajit Ghosh [Mon, 14 Sep 2009 21:58:31 +0000 (14:58 -0700)]
add system properties for experimenting with sync timeouts.

14 years agoClear the password field when reloading the current page.
Leon Scroggins [Mon, 14 Sep 2009 22:56:48 +0000 (18:56 -0400)]
Clear the password field when reloading the current page.

Fixes http://b/issue?id=2119142

Change-Id: I14bfcc6873f295c4d24ef7ee10450fd444dbe82c

14 years agoMerge change 24948 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 23:02:19 +0000 (19:02 -0400)]
Merge change 24948 into eclair

* changes:
  fix [2117464] SF can crash when calling dumpsys

14 years agoMerge change 24947 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 23:01:40 +0000 (19:01 -0400)]
Merge change 24947 into eclair

* changes:
  make sure to update the tail pointer when undoing a dequeue

14 years agofix [2117464] SF can crash when calling dumpsys
Mathias Agopian [Mon, 14 Sep 2009 22:59:16 +0000 (15:59 -0700)]
fix [2117464] SF can crash when calling dumpsys

14 years agoMerge change 24932 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 22:48:58 +0000 (18:48 -0400)]
Merge change 24932 into eclair

* changes:
  Added a little more logging in OMXCodec.cpp for vendors to be able to reproduce issues...

14 years agomake sure to update the tail pointer when undoing a dequeue
Mathias Agopian [Mon, 14 Sep 2009 22:48:42 +0000 (15:48 -0700)]
make sure to update the tail pointer when undoing a dequeue

14 years agoMerge change 24829 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 22:45:42 +0000 (18:45 -0400)]
Merge change 24829 into eclair

* changes:
  Some optizations to wallpaper drawing/scrolling.

14 years agoMerge change 24841 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 22:31:39 +0000 (18:31 -0400)]
Merge change 24841 into eclair

* changes:
  process: Switch to common cutils sched_policy api

14 years agoSome optizations to wallpaper drawing/scrolling.
Dianne Hackborn [Sat, 12 Sep 2009 04:13:37 +0000 (21:13 -0700)]
Some optizations to wallpaper drawing/scrolling.

First, fix some issues with the final wallpaper bitmap
we use: ensure it is always 16bpp, and make sure dithering
of its bitmap is turned off.   We take of dithering
when loading, to make sure we don't use it when drawing.

Also add new APIs to return the wallpaper with the equivalent
of Launcher's old FastBitmapDrawable.  As doing this, also load
the default wallpaper the same way as custom ones, taking care to
resize it as needed at load time.

Finally implement a mechanism for the window manager to wait
for the wallpaper to redraw at its new position before returning
from the application's call to change the offset.  This ensures
that the wallpaper better tracks the application.  Note that there
is a timeout in this wait that is relatively short, and if it
expires we will run for a while without waiting.

Change-Id: Ife449437746da85958bd447e0a6cf3d2223b398c

14 years agoAdded a little more logging in OMXCodec.cpp for vendors to be able to reproduce issues...
Andreas Huber [Mon, 14 Sep 2009 22:24:14 +0000 (15:24 -0700)]
Added a little more logging in OMXCodec.cpp for vendors to be able to reproduce issues...

14 years agoMerge change 24931 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 22:21:51 +0000 (18:21 -0400)]
Merge change 24931 into eclair

* changes:
  Fix the bogus crashes in layout and reliability tests (the device actually went offline).

14 years agoFix the bogus crashes in layout and reliability tests (the device actually went offline).
Guang Zhu [Mon, 14 Sep 2009 22:20:52 +0000 (15:20 -0700)]
Fix the bogus crashes in layout and reliability tests (the device actually went offline).

14 years agoMerge change 24927 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 22:15:59 +0000 (18:15 -0400)]
Merge change 24927 into eclair

* changes:
  Fix a possible NPE in View.

14 years agoFix a possible NPE in View.
Romain Guy [Mon, 14 Sep 2009 22:15:30 +0000 (15:15 -0700)]
Fix a possible NPE in View.

Change-Id: Ieebd176e1f42c78e298aca973e9e5eed2dc3c6d9

14 years agoMinor perf tweak for fountain.
Jason Sams [Mon, 14 Sep 2009 21:55:30 +0000 (14:55 -0700)]
Minor perf tweak for fountain.

14 years agoAdd black listing of car kits by name.
Jaikumar Ganesh [Mon, 14 Sep 2009 20:43:09 +0000 (13:43 -0700)]
Add black listing of car kits by name.

14 years agoMerge change 24814 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 21:37:56 +0000 (17:37 -0400)]
Merge change 24814 into eclair

* changes:
  Enable log message for tracking issue #2092299.

14 years agoBring up the soft keyboard when touching a focused textfield.
Leon Scroggins [Mon, 14 Sep 2009 20:51:10 +0000 (16:51 -0400)]
Bring up the soft keyboard when touching a focused textfield.

Fix for http://b/issue?id=2118333

Change-Id: Ifa540de139b35548dde2b714b628ca1879a605c5

14 years agoRemove trackball double click. Treat each click as a single click.
Grace Kloba [Mon, 14 Sep 2009 17:17:06 +0000 (10:17 -0700)]
Remove trackball double click. Treat each click as a single click.

14 years agoMerge change 24847 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 19:39:16 +0000 (15:39 -0400)]
Merge change 24847 into eclair

* changes:
  PowerManagerService: Fix keyboard backlight support:

14 years agoSet the minimum fling to the title height.
Cary Clark [Mon, 14 Sep 2009 18:53:24 +0000 (14:53 -0400)]
Set the minimum fling to the title height.

Dragging and flinging have different minimums for the max Y
value. Allow the fling to have the title height instead of zero
for the minimum max Y so the title can always be removed via
fling.

This fixes http://b/issue?id=2109006

14 years agoPowerManagerService: Fix keyboard backlight support:
Mike Lockwood [Sun, 13 Sep 2009 00:36:03 +0000 (17:36 -0700)]
PowerManagerService: Fix keyboard backlight support:

Turn off keyboard backlight immediately when keyboard is closed.
Changing keyboard visibility state signals user activity except in the case
where the keyboard is closed and the screen is already off.

Fixes bugs b/1351141 and b/1319625

Change-Id: If4bf2c1dd8e0c2bc08196e443b6103a6041f27e1
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge change 24903 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 19:05:49 +0000 (15:05 -0400)]
Merge change 24903 into eclair

* changes:
  Fix some LayoutBridge javadoc.

14 years agoMerge change 24902 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 18:54:42 +0000 (14:54 -0400)]
Merge change 24902 into eclair

* changes:
  Add "rtsp" to the list of URL schemes that get linkified.

14 years agoAdd "rtsp" to the list of URL schemes that get linkified.
Eric Fischer [Mon, 14 Sep 2009 17:24:24 +0000 (10:24 -0700)]
Add "rtsp" to the list of URL schemes that get linkified.

Bug 1845298

14 years agoMerge change 24898 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 18:29:15 +0000 (14:29 -0400)]
Merge change 24898 into eclair

* changes:
  Fix the parsing for instrumentation result, some Java exceptions are not reported right now

14 years agoFix the parsing for instrumentation result, some Java exceptions are not reported...
Guang Zhu [Mon, 14 Sep 2009 18:27:40 +0000 (11:27 -0700)]
Fix the parsing for instrumentation result, some Java exceptions are not reported right now

14 years agoFix some LayoutBridge javadoc.
Raphael [Mon, 14 Sep 2009 18:17:49 +0000 (11:17 -0700)]
Fix some LayoutBridge javadoc.

Change-Id: I255d1d58d3537403ac9a8a5c7adece30ae989ce0

14 years agoPer suggestion in http://b/issue?id=2062340, update the UNIQUE in the
Grace Kloba [Mon, 14 Sep 2009 17:47:07 +0000 (10:47 -0700)]
Per suggestion in b/issue?id=2062340, update the UNIQUE in the
httpauth table.

14 years agoMerge change 24742 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 17:08:02 +0000 (13:08 -0400)]
Merge change 24742 into eclair

* changes:
  Apparently I must not use OMX_UseBuffer on either input or output ports on any of the TI components... or else.

14 years agoFix http://b/issue?id=2098873 (drawing glitch in SeekBar).
Daniel Sandler [Mon, 14 Sep 2009 17:05:43 +0000 (13:05 -0400)]
Fix b/issue?id=2098873 (drawing glitch in SeekBar).

The underlying ProgressBar implementation doesn't know how
to correctly update the thumb graphic, so AbsSeekBar must
call invalidate() at key moments to ensure things look
correct.  This bug is one such instance: when you pick your
finger up off the seekbar, the "value" of the progressbar
appears not to change, so ProgressBar feels no compunction
to repaint. AbsSeekBar now invalidate()s on ACTION_UP and
ACTION_CANCEL to ensure that the thumb is correctly drawn.

14 years agoMerge change 24747 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 16:27:40 +0000 (12:27 -0400)]
Merge change 24747 into eclair

* changes:
  Use floor to calculate the range to avoid the rounding error triggered scrollbar. The worst case is that you can never scroll down to the last pixel. The old special case can cause problem when getViewWidth/Height have changed which do not match mLastXXSent any more.

14 years agoMerge change 24683 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 15:30:43 +0000 (11:30 -0400)]
Merge change 24683 into eclair

* changes:
  Tell GlobalSearch about searches without a suggestion

14 years agoFix issue 2115450: a2dp thread is started, even though we are only connected to heads...
Eric Laurent [Mon, 14 Sep 2009 08:38:42 +0000 (01:38 -0700)]
Fix issue 2115450: a2dp thread is started, even though we are only connected to headset and not playing music.

This is due to a regression introduced by change 24114: when no audio tracks are ready for mixing, 0s are written to audio hardware. However this should only happen if tracks have already been mixed since the audio flinger thread woke up.
Also do not write 0s to audio hardware in direct output threads when audio format is not linear PCM.

14 years agoMerge change 24337 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 06:43:52 +0000 (02:43 -0400)]
Merge change 24337 into eclair

* changes:
  Fix issue 2107584: media server crash when AudioFlinger fails to allocate memory for track control block.

14 years agoDeprecate showSearchIconAsBadge and icon search attrs
Bjorn Bringert [Fri, 11 Sep 2009 14:44:51 +0000 (15:44 +0100)]
Deprecate showSearchIconAsBadge and icon search attrs

mlebeau says:
"Basically, because we now show the app icon for in-app
search, showSearchIconAsBadge is a bit unnecessary, but it does in
fact still work. Basically if either showSearchIconAsBadge or
showSearchLabelAsBadge are specified, we grow the height of the search
bar and place the provided icon or the provided label, respectively,
above the text field and app icon. But we do not remove the app icon
if the developer specifies showSearchIconAsBadge - it's still just the
'badge area' above the icon."

Fixes:
http://b/issue?id=2105329
"Deprecate searchable attributes 'showSearchIconAsBadge' and 'icon'"

Change-Id: Ie2976aafe42b4ab870be9e64b34eb0ed441ebbb0

14 years agoMerge change 24673 into eclair
Android (Google) Code Review [Mon, 14 Sep 2009 03:44:52 +0000 (23:44 -0400)]
Merge change 24673 into eclair

* changes:
  Add tests and misc fixes on keystore.

14 years agoPass return code from Camera HAL for setParameters().
James Dong [Mon, 14 Sep 2009 00:10:24 +0000 (17:10 -0700)]
Pass return code from Camera HAL for setParameters().
bug 2116866

14 years agoMerge change 24509 into eclair
Android (Google) Code Review [Sun, 13 Sep 2009 22:43:38 +0000 (18:43 -0400)]
Merge change 24509 into eclair

* changes:
  Addressed reviewer comments.

14 years agoEnable log message for tracking issue #2092299.
Jim Miller [Sat, 12 Sep 2009 00:14:04 +0000 (17:14 -0700)]
Enable log message for tracking issue #2092299.

14 years agoprocess: Switch to common cutils sched_policy api
San Mehat [Sat, 12 Sep 2009 17:10:37 +0000 (10:10 -0700)]
process: Switch to common cutils sched_policy api

Signed-off-by: San Mehat <san@google.com>
14 years agoMoving ImProvider to TalkProvider: Change Im.java to use the new TalkProvider; change...
Ye Wen [Fri, 11 Sep 2009 18:48:19 +0000 (11:48 -0700)]
Moving ImProvider to TalkProvider: Change Im.java to use the new TalkProvider; change the authority
from "im" to "com.google.android.providers.talk"; also change the mime types.

14 years agoMerge change 24825 into eclair
Android (Google) Code Review [Sat, 12 Sep 2009 02:19:10 +0000 (22:19 -0400)]
Merge change 24825 into eclair

* changes:
  fix [2111536] [FAST BLOCKER] Device is soft rebooted after ending the call through voice dialer

14 years agofix [2111536] [FAST BLOCKER] Device is soft rebooted after ending the call through...
Mathias Agopian [Sat, 12 Sep 2009 02:18:20 +0000 (19:18 -0700)]
fix [2111536] [FAST BLOCKER] Device is soft rebooted after ending the call through voice dialer

14 years agoMerge change 24805 into eclair
Android (Google) Code Review [Sat, 12 Sep 2009 01:08:38 +0000 (21:08 -0400)]
Merge change 24805 into eclair

* changes:
  Don't init wifiChannels until after supplicant up

14 years agoMerge change 22561 into eclair
Android (Google) Code Review [Sat, 12 Sep 2009 01:02:54 +0000 (21:02 -0400)]
Merge change 22561 into eclair

* changes:
  Performance measurement framework:

14 years agoMerge change 24789 into eclair
Android (Google) Code Review [Sat, 12 Sep 2009 00:59:42 +0000 (20:59 -0400)]
Merge change 24789 into eclair

* changes:
   modified:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaNames.java  modified:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaPlayerStressTest.java Fix the m4a1 duration and the also fix the random_seek time error in the stress test.

14 years agoMerge change 24754 into eclair
Android (Google) Code Review [Sat, 12 Sep 2009 00:53:43 +0000 (20:53 -0400)]
Merge change 24754 into eclair

* changes:
  Handle secondary APN connect failures.

14 years agoHandle secondary APN connect failures.
Robert Greenwalt [Fri, 11 Sep 2009 18:27:04 +0000 (11:27 -0700)]
Handle secondary APN connect failures.

Without this we'd only try a secondary APN once and the stop silently, leaving
no APN connected.

Adds a second retry manager with configuration strings to do a more approriate
retry.  Don't retry secondary apn forever.

On permanent failure or retry count hit, we send a Phone.REASON_APN_FAILED
disconnect status.

bug: 2112114

14 years agoDon't init wifiChannels until after supplicant up
Robert Greenwalt [Sat, 12 Sep 2009 00:23:35 +0000 (17:23 -0700)]
Don't init wifiChannels until after supplicant up

The supplicant can take up to 15 seconds to start - setting the number of wifi channels
immediately after requested wifi start often will fail.

Changed to set the number of channels when the supplicant is reported as alive.

bug:2083601

14 years agoPerformance measurement framework:
Jack Wang [Thu, 27 Aug 2009 00:19:13 +0000 (17:19 -0700)]
Performance measurement framework:

+ For bug 1810508
  - Added PerformanceCollector class to collect runtime and memory usage data
    * Moved performance snapshotting from Intrumentation to PerformanceCollector
  - Added PerformanceResultsWriter interface which defines functions for
    reporting performance data

+ Framework integration
  - Added TimedTest annotation to automatically time tests and write results
    to instrumentation output
  - Modified PerformanceTestBase to add collection hooks and wrapper methods
  - Modified WatcherResultPrinter in InstrumentationTestRunner to implement
    PerformanceResultsWriter for instrumentation output of performance data
  - Modified InstrumentationTestRunner and AndroidTestRunner to pass writer
    instance to test

14 years agoMerge change 24797 into eclair
Android (Google) Code Review [Sat, 12 Sep 2009 00:04:01 +0000 (20:04 -0400)]
Merge change 24797 into eclair

* changes:
  Don't backup/restore telephony material from secure settings

14 years ago modified: tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaNames...
Yu Shan Emily Lau [Fri, 11 Sep 2009 23:23:23 +0000 (16:23 -0700)]
modified:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaNames.java
modified:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaPlayerStressTest.java
Fix the m4a1 duration and the also fix the random_seek time error in the stress test.

        modified:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaPlayerStressTest.java

14 years agoDon't backup/restore telephony material from secure settings
Christopher Tate [Fri, 11 Sep 2009 23:35:39 +0000 (16:35 -0700)]
Don't backup/restore telephony material from secure settings

* Remove several nonportable telephony settings from the set to be included in
  the backed-up dataset

* Explicitly ignore those settings if they're encountered during a restore
  operation, so that we don't inadvertently do things like configure a GSM
  phone to use CDMA logic.

14 years agoMerge change 24609 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 23:24:44 +0000 (19:24 -0400)]
Merge change 24609 into eclair

* changes:
  If disk-full, don't crash the system server. Still todo: when we have disk we should trigger the  event again.

14 years agoMerge change 24773 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 22:26:02 +0000 (18:26 -0400)]
Merge change 24773 into eclair

* changes:
  Fix NPE in TelephonyManager.

14 years agoUse floor to calculate the range to avoid the rounding error triggered
Grace Kloba [Fri, 11 Sep 2009 20:20:39 +0000 (13:20 -0700)]
Use floor to calculate the range to avoid the rounding error triggered
scrollbar. The worst case is that you can never scroll down to the last
pixel. The old special case can cause problem when getViewWidth/Height
have changed which do not match mLastXXSent any more.

Remove FIND_HEIGHT from computeVerticalScrollRange per conversation with Leon.

Change computeMaxScrollY to use computeVerticalScrollRange which matches
how it computes X.

Change onMeasure to use contentToViewDimension() as it has the same logic.

14 years agoFix NPE in TelephonyManager.
johnwang [Fri, 11 Sep 2009 21:49:47 +0000 (14:49 -0700)]
Fix NPE in TelephonyManager.

It is for bug 1971628 but affects almost every API function in TelephonyManager. When phone is not ready (for example, after crash and restart) the getSubscriberInfo and getITelephony returns null and causes NPE.

14 years agoMerge change 24762 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 21:45:10 +0000 (17:45 -0400)]
Merge change 24762 into eclair

* changes:
  dumpstate: Switch back to running as non-root

14 years agoMerge change 24764 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 21:30:46 +0000 (17:30 -0400)]
Merge change 24764 into eclair

* changes:
  Add @Widget annotation to GestureOverlayView to make it usable in ADT.

14 years agoAdd @Widget annotation to GestureOverlayView to make it usable in ADT.
Romain Guy [Fri, 11 Sep 2009 21:29:15 +0000 (14:29 -0700)]
Add @Widget annotation to GestureOverlayView to make it usable in ADT.

Change-Id: I86251f0d35e38460f09779f047aabfa99d2e97ae

14 years agoChanges for BT 2.1
Jaikumar Ganesh [Fri, 11 Sep 2009 05:00:05 +0000 (22:00 -0700)]
Changes for BT 2.1

1) Handle incoming 2.1 pairing requests
2) Modify displaying error messages on bond failures.
3) Add delay while accepting incoming pairing for certain 2.1 devices.
When MITM is on, the link key request might come more than once.
Auto accept with a delay.
4) Handle DisplayPasskey callback for pairing a 2.1 keyboard with
a 2.1 device

14 years agodumpstate: Switch back to running as non-root
Mike Lockwood [Fri, 11 Sep 2009 21:12:27 +0000 (17:12 -0400)]
dumpstate: Switch back to running as non-root

Now that we have straightened out the permissions on /data/dontpanic,
root is no longer necessary.

Change-Id: Ic895d712c2e929e4935707da321e1a2b015285c0
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge change 24635 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 20:46:19 +0000 (16:46 -0400)]
Merge change 24635 into eclair

* changes:
  Fix issue #1983406: Soft keyboard doesn't show up in an EditText with "digits" attribute set

14 years agoVarious cleanup around resources and nine-patches.
Dianne Hackborn [Thu, 10 Sep 2009 21:32:16 +0000 (14:32 -0700)]
Various cleanup around resources and nine-patches.

Remove the stuff that doesn't use preloaded drawables when in
compatibility mode, since this works fine ever since we were able
to deal with drawables in a different density than the canvas.

Change the snapshot function on View to return a snapshot at
the same size that will actually be drawn on screen (when in
compatibility mode), to be able to show scaling artifacts and
all.

This change was original an attempt to fix issue #2101917: Text
field edges appears to be improperly rounded.  That turns out to
probably be something deeper in the graphics system, but also
included here is the debugging code I did to try to track down the
problem to make it easy to turn on again later.

Change-Id: I34bfca629639c7ff103f3989d88874112ef778d9

14 years agoApparently I must not use OMX_UseBuffer on either input or output ports on any of...
Andreas Huber [Fri, 11 Sep 2009 19:58:53 +0000 (12:58 -0700)]
Apparently I must not use OMX_UseBuffer on either input or output ports on any of the TI components... or else.

14 years agoMerge change 24735 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 19:24:01 +0000 (15:24 -0400)]
Merge change 24735 into eclair

* changes:
  Handle DisconnectRequested message sent by Bluez.

14 years agoHandle DisconnectRequested message sent by Bluez.
Jaikumar Ganesh [Fri, 11 Sep 2009 19:16:19 +0000 (12:16 -0700)]
Handle DisconnectRequested message sent by Bluez.

14 years agoMerge change 24675 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 18:56:14 +0000 (14:56 -0400)]
Merge change 24675 into eclair

* changes:
  change default for dither to true

14 years agochange default for dither to true
Mike Reed [Fri, 11 Sep 2009 13:36:35 +0000 (09:36 -0400)]
change default for dither to true

14 years agoMerge change 24475 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 18:23:33 +0000 (14:23 -0400)]
Merge change 24475 into eclair

* changes:
  Save and restore partial supplicant data, not the whole file.

14 years agoSave and restore partial supplicant data, not the whole file.
Amith Yamasani [Thu, 10 Sep 2009 01:27:31 +0000 (18:27 -0700)]
Save and restore partial supplicant data, not the whole file.

This makes it compatible between different device types with different
wifi chipsets.