OSDN Git Service

android-x86/frameworks-base.git
15 years agoMerge change 5386 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 19:05:08 +0000 (12:05 -0700)]
Merge change 5386 into donut

* changes:
  Fixes #1940839. Prevents NPE in RelativeLayout when a non-existing View is targeted.

15 years agoFixes #1940839. Prevents NPE in RelativeLayout when a non-existing View is
Romain Guy [Thu, 25 Jun 2009 19:03:56 +0000 (12:03 -0700)]
Fixes #1940839. Prevents NPE in RelativeLayout when a non-existing View is
targeted.

15 years agoAdd ZoomDensity so that we can change the desired default scale.
Grace Kloba [Thu, 25 Jun 2009 18:20:51 +0000 (11:20 -0700)]
Add ZoomDensity so that we can change the desired default scale.

Fix a bug where we didn't adjust the viewport scale according to our density.

15 years agoMerge change 5300 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 17:20:31 +0000 (10:20 -0700)]
Merge change 5300 into donut

* changes:
  Using a sendBroadcast to notify interested parties of when the TTS queue has finished processing.

15 years agoMerge change 5351 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 07:46:17 +0000 (00:46 -0700)]
Merge change 5351 into donut

* changes:
  Add a method to Process to get uid for a pid.

15 years agoMerge change 5344 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 07:09:18 +0000 (00:09 -0700)]
Merge change 5344 into donut

* changes:
  frameworks/base: CDMA voicemail support

15 years agoMerge change 5339 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 06:57:59 +0000 (23:57 -0700)]
Merge change 5339 into donut

* changes:
  Fix intermittent crash related to call waiting

15 years agoMerge change 5329 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 06:39:07 +0000 (23:39 -0700)]
Merge change 5329 into donut

* changes:
  frameworks/base - CDMA settings additions

15 years agoAdd a method to Process to get uid for a pid.
Amith Yamasani [Thu, 25 Jun 2009 06:18:15 +0000 (23:18 -0700)]
Add a method to Process to get uid for a pid.

Use the uids to track native processes. Cache the uids to avoid
checking /proc every time.

15 years agoframeworks/base: CDMA voicemail support
David Krause [Mon, 1 Jun 2009 11:51:43 +0000 (06:51 -0500)]
frameworks/base: CDMA voicemail support

15 years agoFix intermittent crash related to call waiting
David Krause [Mon, 15 Jun 2009 02:05:41 +0000 (21:05 -0500)]
Fix intermittent crash related to call waiting

Previously, when call waiting is ignored by user or timed out
by PhoneApp, the connection object for call waiting does not
release the wake lock. It causes the phone process to crash
randomly.

The fix is to release the wake lock when call waiting is
ignored by user or timed out by PhoneApp.

15 years agoMerge change 5199 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 03:33:11 +0000 (20:33 -0700)]
Merge change 5199 into donut

* changes:
  Only remove client after the hardware is teared down, so a new client is rejected before old client is done.

15 years agoMerge change 5319 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 03:29:21 +0000 (20:29 -0700)]
Merge change 5319 into donut

* changes:
  Add new APIs to LauncherActivity to be used elsewhere.

15 years agoframeworks/base - CDMA settings additions
David Krause [Sat, 13 Jun 2009 23:01:13 +0000 (18:01 -0500)]
frameworks/base - CDMA settings additions

These changes are the frameworks/base portion of CDMA UI changes.

Five settings are added:
   - In-call DTMF type (burst or long)
   - Emergency tone type
   - CDMA auto-retry
   - Hearing Aid Compatibility (on/off)
   - TTY mode

15 years agoOnly remove client after the hardware is teared down, so a new client
Chih-Chung Chang [Wed, 24 Jun 2009 11:59:31 +0000 (19:59 +0800)]
Only remove client after the hardware is teared down, so a new client
is rejected before old client is done.

Also check mUsers in all cases to make sure there are no existing client.

15 years agoAdd includes to enable host C++ tools to compile with GCC 4.4
Jack Palevich [Thu, 25 Jun 2009 02:27:30 +0000 (19:27 -0700)]
Add includes to enable host C++ tools to compile with GCC 4.4

Otherwise printf is undeclared. These files worked with earlier versions
of gcc because either cstdio or stdio.h was being included by some other
header file. But this was not guaranteed behavior, so with GCC 4.4 there
are errors. The fix is backwards compatible with earlier versions of GCC.

This change includes either <cstdio> or <stdio.h> whichever looks more
appropriate given the other headers included by the given source file.

Note, I'm using "GCC" to mean Gnu Compile Collection, as this problem is
specific to C++ source files. (Presumably a C++-specific header file
changed to no longer include cstdio.)

15 years agoMerge change 5302 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 02:14:17 +0000 (19:14 -0700)]
Merge change 5302 into donut

* changes:
  Add includes to enable host C++ tools to compile with GCC 4.4

15 years agoAdd new APIs to LauncherActivity to be used elsewhere.
Dianne Hackborn [Thu, 25 Jun 2009 02:03:15 +0000 (19:03 -0700)]
Add new APIs to LauncherActivity to be used elsewhere.

15 years agoAdd includes to enable host C++ tools to compile with GCC 4.4
Jack Palevich [Thu, 25 Jun 2009 02:01:27 +0000 (19:01 -0700)]
Add includes to enable host C++ tools to compile with GCC 4.4

Otherwise printf is undeclared. These files worked with earlier versions
of gcc because either cstdio or stdio.h was being included by some other
header file. But this was not guaranteed behavior, so with GCC 4.4 there
are errors. The fix is backwards compatible with earlier versions of GCC.

This change includes either <cstdio> or <stdio.h> whichever looks more
appropriate given the other headers included by the given source file.

Note, I'm using "GCC" to mean Gnu Compile Collection, as this problem is
specific to C++ source files. (Presumably a C++-specific header file
changed to no longer include cstdio.)

15 years agoMerge change 5317 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 01:46:59 +0000 (18:46 -0700)]
Merge change 5317 into donut

* changes:
  Start backing up wallpaper

15 years agoStart backing up wallpaper
Christopher Tate [Thu, 25 Jun 2009 00:29:38 +0000 (17:29 -0700)]
Start backing up wallpaper

This CL does the following:
   + adds an AbsoluteFileBackupHelper class for managing backup of files
     known by absolute path, not based off of the app's getFilesDir() root
   + bumps up the collection interval from its testing-only default of 1 second
     to 3 minutes
   + adds a SystemBackupAgent class to the main system package and names it as
     the android:backupAgent for the main OS package.  Right now this agent
     only backs up & restores the wallpaper file.
   + amend the Wallpaper Service to inform the Backup Manager when the wallpaper
     changes.

On the subject of the 3-minute collection interval before the backup actually
occurs:  this can be short-circuited from an adb shell.  Running the command
'bmgr run' will cause the Backup Manager to kick off any pending backup
operations immediately.

15 years agoMerge change 5091 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 00:53:57 +0000 (17:53 -0700)]
Merge change 5091 into donut

* changes:
  * new screen resolution support impl.   * use full window for activities, and shift & clip the content   * refactored the compatibility code, and introdcued Translator class to handle cooridnate translations.   * removed a workaround to handle an activity with configChagne=rotation in old implementation.   * I'll fix background issue on rotation in next CL.

15 years agoUsing a sendBroadcast to notify interested parties of when
Charles Chen [Thu, 25 Jun 2009 00:47:21 +0000 (17:47 -0700)]
Using a sendBroadcast to notify interested parties of when
the TTS queue has finished processing.

15 years agoMerge change 5289 into donut
Android (Google) Code Review [Thu, 25 Jun 2009 00:18:48 +0000 (17:18 -0700)]
Merge change 5289 into donut

* changes:
  Fix TextView's fading edge when compound drawables are setup.

15 years agoFix TextView's fading edge when compound drawables are setup.
Romain Guy [Thu, 25 Jun 2009 00:17:51 +0000 (17:17 -0700)]
Fix TextView's fading edge when compound drawables are setup.

TextView was not correctly taking into account the extra space taken
by compound drawable when drawing the fading edge of a marquee'd
text.

15 years agoMerge change 5196 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 23:52:16 +0000 (16:52 -0700)]
Merge change 5196 into donut

* changes:
  Modify the IBackupTransport API to support bulk restore operations. Change the BackupManagerService and LocalTransport to support the new API.

15 years agoModify the IBackupTransport API to support bulk restore operations.
Dan Egnor [Wed, 24 Jun 2009 07:16:33 +0000 (00:16 -0700)]
Modify the IBackupTransport API to support bulk restore operations.
Change the BackupManagerService and LocalTransport to support the new API.

15 years agoMerge change 5259 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 23:25:29 +0000 (16:25 -0700)]
Merge change 5259 into donut

* changes:
  Adding TTS_QUEUE_PROCESSING_COMPLETED action to the list of Intents

15 years agoFix bug 1829561 ("am profile" with bad filename kills process).
Dianne Hackborn [Wed, 24 Jun 2009 02:22:52 +0000 (19:22 -0700)]
Fix bug 1829561 ("am profile" with bad filename kills process).

The am command is now the one that takes care of opening the target file,
handling the opened file descriptor to the process that will be profiled.
This allows you to send profile data to anywhere the shell can access, and
avoids any problems coming up from the target process trying to open the
file.

15 years agoMerge change 5248 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 22:55:48 +0000 (15:55 -0700)]
Merge change 5248 into donut

* changes:
  Spell out the month names in the de_AT date format file.

15 years agoMerge change 5171 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 22:21:16 +0000 (15:21 -0700)]
Merge change 5171 into donut

* changes:
  Track native processes and airplane mode.

15 years agoAdding TTS_QUEUE_PROCESSING_COMPLETED action to the list of Intents
Charles Chen [Wed, 24 Jun 2009 21:55:53 +0000 (14:55 -0700)]
Adding TTS_QUEUE_PROCESSING_COMPLETED action to the list of Intents

15 years agoReverse the order in which RelativeLayout measures and positions children.
Romain Guy [Wed, 24 Jun 2009 21:37:03 +0000 (14:37 -0700)]
Reverse the order in which RelativeLayout measures and positions children.

This fixes RelativeLayouts with height=wrap_content.

15 years agoMerge change 4556 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 21:32:40 +0000 (14:32 -0700)]
Merge change 4556 into donut

* changes:
  Added info about mcc and mnc, plus other changes per http://b/1918247; rewrote "How Android find best match" section per rgreenwalt's comments and added flowchart.

15 years agoFix NPE in RelativeLayout.
Romain Guy [Wed, 24 Jun 2009 21:25:43 +0000 (14:25 -0700)]
Fix NPE in RelativeLayout.

15 years agoSpell out the month names in the de_AT date format file.
Eric Fischer [Wed, 24 Jun 2009 21:20:04 +0000 (14:20 -0700)]
Spell out the month names in the de_AT date format file.

It should be inherited from base de anyway, but all the others are
explicit about everything so be consistent.

15 years agoMerge change 5240 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 21:03:33 +0000 (14:03 -0700)]
Merge change 5240 into donut

* changes:
  Fixing the synth function so that queue processing continues.

15 years agoMerge change 5243 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 20:58:52 +0000 (13:58 -0700)]
Merge change 5243 into donut

* changes:
  Only report "unknown metadata" once per restore helper

15 years agoOnly report "unknown metadata" once per restore helper
Christopher Tate [Wed, 24 Jun 2009 20:57:29 +0000 (13:57 -0700)]
Only report "unknown metadata" once per restore helper

Also removes the auto-free object, replacing it with direct memory manipulation.

15 years agoMerge change 5238 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 20:54:28 +0000 (13:54 -0700)]
Merge change 5238 into donut

* changes:
  Fix the weird anchoring of the search dropdown when pivoting into an app for search. (This started when we moved to system process, not sure why then, but we should be getting the dropdown to update at this point regardless.)

15 years agoFixing the synth function so that queue processing continues.
Charles Chen [Wed, 24 Jun 2009 20:31:18 +0000 (13:31 -0700)]
Fixing the synth function so that queue processing continues.

15 years agoMerge change 5226 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 20:15:05 +0000 (13:15 -0700)]
Merge change 5226 into donut

* changes:
  Fix bug in TTS service where the language setting was using the default language when the setting wasn't enforced, and vice-versa. Cleaning the log of the native TTS layer to use LOGV for verbose messages, rather than LOGI.

15 years agoFix the weird anchoring of the search dropdown when pivoting into an
Mike LeBeau [Wed, 24 Jun 2009 20:06:39 +0000 (13:06 -0700)]
Fix the weird anchoring of the search dropdown when pivoting into an
app for search. (This started when we moved to system process, not sure
why then, but we should be getting the dropdown to update at this point
regardless.)

15 years agoMerge change 5237 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 19:59:15 +0000 (12:59 -0700)]
Merge change 5237 into donut

* changes:
  Calling setItemChecked(p, true) twice would toggle the selection in ListView.

15 years agoCalling setItemChecked(p, true) twice would toggle the selection in ListView.
Romain Guy [Wed, 24 Jun 2009 19:53:54 +0000 (12:53 -0700)]
Calling setItemChecked(p, true) twice would toggle the selection in ListView.

This fixes a bug in ListView#setItemChecked(int, boolean). Calling the method
twice would cause the checked state to be toggled instead of remaining the
same.

15 years agoMerge change 5236 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 19:44:30 +0000 (12:44 -0700)]
Merge change 5236 into donut

* changes:
  RelativeLayout was ignoring some dependencies.

15 years agoRelativeLayout was ignoring some dependencies.
Romain Guy [Wed, 24 Jun 2009 19:42:43 +0000 (12:42 -0700)]
RelativeLayout was ignoring some dependencies.

This change also improves the speed of RelativeLayout by eliminating calls to
findViewById() whenever possible.

15 years agoMerge change 5220 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 19:26:02 +0000 (12:26 -0700)]
Merge change 5220 into donut

* changes:
  Cleanup header file. Disallow copy of Camera object by making copy constructor and operator= private.

15 years agoAdded info about mcc and mnc, plus other changes per http://b/1918247; rewrote "How...
Katarina Stenstedt [Thu, 18 Jun 2009 00:56:18 +0000 (17:56 -0700)]
Added info about mcc and mnc, plus other changes per b/1918247; rewrote "How Android find best match" section per rgreenwalt's comments and added flowchart.

15 years agoFix bug in TTS service where the language setting was using the default language
Jean-Michel Trivi [Wed, 24 Jun 2009 18:32:06 +0000 (11:32 -0700)]
Fix bug in TTS service where the language setting was using the default language
when the setting wasn't enforced, and vice-versa.
Cleaning the log of the native TTS layer to use LOGV for verbose messages,
rather than LOGI.

15 years agoPut back LOGP -> printf in the backup helper code
Christopher Tate [Wed, 24 Jun 2009 18:20:51 +0000 (11:20 -0700)]
Put back LOGP -> printf in the backup helper code

15 years agoMerge change 5162 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 18:18:01 +0000 (11:18 -0700)]
Merge change 5162 into donut

* changes:
  Preserve file access mode when backing up / restoring files

15 years agoTrack native processes and airplane mode.
Amith Yamasani [Fri, 19 Jun 2009 16:21:17 +0000 (09:21 -0700)]
Track native processes and airplane mode.

Turn signal strengths on/off when toggling airplane mode.

15 years agoCleanup header file. Disallow copy of Camera object by making copy
Dave Sparks [Wed, 24 Jun 2009 17:42:53 +0000 (10:42 -0700)]
Cleanup header file. Disallow copy of Camera object by making copy
constructor and operator= private.

15 years agoMove to a single dropdown background for the search dialog. This one
Mike LeBeau [Wed, 24 Jun 2009 01:12:43 +0000 (18:12 -0700)]
Move to a single dropdown background for the search dialog. This one
is full-screen width but has rounded corners on the bottom so it doesn't
look crappy if the list is not full-screen height. This was already
being used for in-app search, so I just got rid of the old global search
background and use the in-app one for everything.

By removing the lines in SearchDialog, I'm causing it to rely on the
value specified for the dropdown background in
frameworks/base/core/res/res/layout/search_bar.xml.

15 years agoMerge change 5142 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 16:48:07 +0000 (09:48 -0700)]
Merge change 5142 into donut

* changes:
  Fix NPE in GradientDrawable constructor

15 years agoMerge change 5172 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 16:10:05 +0000 (09:10 -0700)]
Merge change 5172 into donut

* changes:
  Remove deprecated callback function support. This is the last of a 3-part change to modify the camera to use a more streamlined callback interface. This change removes the old code. Bug 1884362

15 years agoMerge change 5158 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 15:34:34 +0000 (08:34 -0700)]
Merge change 5158 into donut

* changes:
  Use a ref-counted callback interface for Camera. This allows the camera service to hang onto the callback interface until all callbacks have been processed. This prevents problems where pending callbacks in binder worker threads are processed after the Java camera object and its associated native resources have been released. Bug 1884362

15 years agoRemove deprecated callback function support.
Dave Sparks [Wed, 24 Jun 2009 02:09:05 +0000 (19:09 -0700)]
Remove deprecated callback function support.
This is the last of a 3-part change to modify the camera to use
a more streamlined callback interface. This change removes the
old code.
Bug 1884362

15 years agoUse a ref-counted callback interface for Camera.
Dave Sparks [Wed, 24 Jun 2009 00:30:11 +0000 (17:30 -0700)]
Use a ref-counted callback interface for Camera.
This allows the camera service to hang onto the callback interface
until all callbacks have been processed. This prevents problems
where pending callbacks in binder worker threads are processed
after the Java camera object and its associated native resources
have been released.
Bug 1884362

15 years agoFix NPE in SuggestionsAdapter when cursor is null.
Bjorn Bringert [Wed, 24 Jun 2009 14:16:30 +0000 (15:16 +0100)]
Fix NPE in SuggestionsAdapter when cursor is null.

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

15 years agoInclude user query in search intents
Bjorn Bringert [Wed, 24 Jun 2009 11:02:26 +0000 (12:02 +0100)]
Include user query in search intents

This change adds a new intent extra field USER_QUERY set in intents
launched by the search dialog. It contains the query as typed by
the user, unaffected by query jamming or search suggestions.

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

15 years agoMerge change 5190 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 08:02:46 +0000 (01:02 -0700)]
Merge change 5190 into donut

* changes:
  Fix 1933269: startPreview failed.

15 years agoFix 1933269: startPreview failed.
Chih-Chung Chang [Wed, 24 Jun 2009 05:44:37 +0000 (13:44 +0800)]
Fix 1933269: startPreview failed.

The reason we need this count is a new CameraService::connect() request may
come in while the previous Client's destructor has not been run or is still
running. If the last strong reference of the previous Client is gone but
destructor has not been run, we should not allow the new Client to be created
because we need to wait for the previous Client to tear down the hardware
first.

15 years ago* new screen resolution support impl.
Mitsuru Oshima [Sun, 21 Jun 2009 07:03:11 +0000 (00:03 -0700)]
* new screen resolution support impl.
  * use full window for activities, and shift & clip the content
  * refactored the compatibility code, and introdcued Translator class to handle cooridnate translations.
  * removed a workaround to handle an activity with configChagne=rotation in old implementation.
  * I'll fix background issue on rotation in next CL.

  * removed unnecessary scaling code in SurfaceView, which I forgot to remove when I changed SurfaceView
    not to scale the content.

15 years agoMerge change 5188 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 05:46:29 +0000 (22:46 -0700)]
Merge change 5188 into donut

* changes:
  Fixes #1905761. Updates the height of ACTV's drop down whenever the IME changes.

15 years agoFixes #1905761. Updates the height of ACTV's drop down whenever the IME changes.
Romain Guy [Wed, 24 Jun 2009 04:27:02 +0000 (21:27 -0700)]
Fixes #1905761. Updates the height of ACTV's drop down whenever the IME changes.

15 years agoMerge change 5176 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 02:51:00 +0000 (19:51 -0700)]
Merge change 5176 into donut

* changes:
  Export the output to a text file and save to sdcard

15 years agoExport the output to a text file and save to sdcard
Yu Shan Emily Lau [Wed, 24 Jun 2009 02:34:20 +0000 (19:34 -0700)]
Export the output to a text file and save to sdcard

15 years agoMerge change 5129 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 00:48:11 +0000 (17:48 -0700)]
Merge change 5129 into donut

* changes:
  Improve RelativeLayout by allowing dependencies to be declared in a random order.

15 years agoImprove RelativeLayout by allowing dependencies to be declared in a random
Romain Guy [Tue, 23 Jun 2009 21:27:34 +0000 (14:27 -0700)]
Improve RelativeLayout by allowing dependencies to be declared in a random
order.

The new implementation uses a dually topologically sorted graph of the child
views. The graph of dependencies is sorted once for the rules that impact the
horizontal axis (toLeftOf, alignRight, etc.) and once for the rules that impact
the vertical axis (above, below, etc.)

Doing so gives the ability to declare dependencies in any order, allows for
partial cycles in the graph (given view1 and view2, view1 can be toRightOf=view2
and view2 can be above=view1) and probably gets rid of most surprising behaviors
of RelativeLayout.

15 years agoPreserve file access mode when backing up / restoring files
Christopher Tate [Wed, 24 Jun 2009 00:35:11 +0000 (17:35 -0700)]
Preserve file access mode when backing up / restoring files

This change adds a fixed-size metadata block at the head of each file's content
entity.  The block is versioned, and fixed-size on the theory that it might be
nice to be able to recover the content (if not the full metadata) of the files
if we're ever confronted with data backed up some hypothetical future helper
that stored expanded metadata.

The net effect is that now on restore, we assign the same access mode to the
file that it originally had when backed up.

Also, some of the code was failing to properly free transient heap-based buffers
when it encountered errors.  This has been fixed with the addition of a tiny
stack-based object whose job it is to free() its designated pointer from its
destructor.

15 years agoEdits to SD card notification strings to shorten them.
Roy West [Tue, 23 Jun 2009 21:35:06 +0000 (14:35 -0700)]
Edits to SD card notification strings to shorten them.

They are now very short and blunt. The real fix is to make
 them marquee or open another dialog or something as discussed in the bug.
 I hope these are short enough for Donut so all essential text is visible
in the notification.
Bug 1760196

15 years agoMerge change 5119 into donut
Android (Google) Code Review [Tue, 23 Jun 2009 22:50:43 +0000 (15:50 -0700)]
Merge change 5119 into donut

* changes:
  Adding support for pitch changes of the synthesized text in Text-To-Speech.

15 years agoFix NPE in GradientDrawable constructor
Phil Dubach [Tue, 23 Jun 2009 22:41:00 +0000 (15:41 -0700)]
Fix NPE in GradientDrawable constructor

The mColors member can be null, as can be seen in
GradientDrawable.setSolidColor() or the plain constructor. In that case, an NPE
will be thrown on attempts to derive a new GradientDrawable from the instance
using the private constructor GradientDrawable(GradientDrawable).

The problem also occurs when inflating a GradientDrawable from XML without
defining the start, center and end colors and then calling mutate() on the
instance.

15 years agoAdding support for pitch changes of the synthesized text in Text-To-Speech.
Jean-Michel Trivi [Tue, 23 Jun 2009 20:44:40 +0000 (13:44 -0700)]
Adding support for pitch changes of the synthesized text in Text-To-Speech.

15 years agoEnhancedGoogleSearch overrides GoogleSearch if present.
Satish Sampath [Tue, 23 Jun 2009 16:05:35 +0000 (17:05 +0100)]
EnhancedGoogleSearch overrides GoogleSearch if present.

This is to fix bug http://b/issue?id=1929993. If user had GoogleSearch
earlier and that was the default, it will get overridden by
EnhancedGoogleSearch when the user installs the latter from the market.

15 years agoMerge change 5100 into donut
Android (Google) Code Review [Tue, 23 Jun 2009 20:38:34 +0000 (13:38 -0700)]
Merge change 5100 into donut

* changes:
  Fill in CDMA gaps and clean up ToneGenerator code

15 years agoAdd file mode to the file-backup saved state blobs
Christopher Tate [Tue, 23 Jun 2009 20:03:00 +0000 (13:03 -0700)]
Add file mode to the file-backup saved state blobs

This change puts the file's access mode into the saved-state blob used by the
file backup helpers.  The tests have been updated for the new blob content
format.

What this change *doesn't* do is actually backup/restore the file mode.  This
change is a prerequisite for that, but mode preservation in backup/restore will
require adding metadata to the backup data stream itself, so will be approached
a bit more carefully.

(Also fixed one outright bug in the test program: ReadEntityData() had been
changed to return a ssize_t union of either a byte-count or a negative number
indicating error, but the test program was still assuming that nonzero == error,
and was spuriously failing.)

15 years agoPossibly fix an issue where we thought an app was always using GPS.
Dianne Hackborn [Tue, 23 Jun 2009 03:00:17 +0000 (20:00 -0700)]
Possibly fix an issue where we thought an app was always using GPS.

There may be some race conditions in the gps provider where it can cause a uid
to be double booked for gps usage and never released.  Address this by tweaking
some locking (so mLocation and the uid array are protected by a lock both when
reading and writing).  Also add some code to log a warning if someone tries to
note a particular uid multiple times, since the code will break in that case.

Finally, fix a problem in the battery stats where we weren't allowing a new Uid
structure to be created in many cases for calls coming in.

15 years agoFill in CDMA gaps and clean up ToneGenerator code
David Krause [Wed, 17 Jun 2009 20:46:13 +0000 (15:46 -0500)]
Fill in CDMA gaps and clean up ToneGenerator code

15 years agoAdd missing 'break's in switch statement, fixing bug 1876430
Karl Rosaen [Tue, 23 Jun 2009 18:10:25 +0000 (11:10 -0700)]
Add missing 'break's in switch statement, fixing bug 1876430

15 years agoMerge change 5054 into donut
Android (Google) Code Review [Tue, 23 Jun 2009 17:09:03 +0000 (10:09 -0700)]
Merge change 5054 into donut

* changes:
  Rollback the number of loop in the memory stress test

15 years agoMerge change 4878 into donut
Android (Google) Code Review [Tue, 23 Jun 2009 16:52:21 +0000 (09:52 -0700)]
Merge change 4878 into donut

* changes:
  Add smalltest annotation to HardwareServicePermissionTest.

15 years agoStore correct state in SearchDialog.onSaveInstanceState()
Bjorn Bringert [Tue, 23 Jun 2009 12:47:31 +0000 (13:47 +0100)]
Store correct state in SearchDialog.onSaveInstanceState()

Adds this to the instance state bundle:
- mStoredComponentName
- mStoredAppSearchData
- mPreviousComponents

All the UI selection fields that were previously saved were removed.
It's not necessarily useful to restore the
selection, and it's hard to get right. The old code was buggy
(see http://b/issue?id=1911660) and did not restore the
list selection because that's quite hard.

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

15 years agoRollback the number of loop in the memory stress test
Yu Shan Emily Lau [Tue, 23 Jun 2009 04:19:53 +0000 (21:19 -0700)]
Rollback the number of loop in the memory stress test

15 years agoMerge change 5024 into donut
Android (Google) Code Review [Tue, 23 Jun 2009 01:30:40 +0000 (18:30 -0700)]
Merge change 5024 into donut

* changes:
  Remove opengl tests from tests build

15 years agoMerge change 5014 into donut
Android (Google) Code Review [Tue, 23 Jun 2009 01:30:05 +0000 (18:30 -0700)]
Merge change 5014 into donut

* changes:
  Fix issue #1933587.  Perform dexopt of instrumentation .apks.

15 years agoMerge change 5035 into donut
Android (Google) Code Review [Tue, 23 Jun 2009 01:18:39 +0000 (18:18 -0700)]
Merge change 5035 into donut

* changes:
  add glTexParameteri() and fix glTexParameteriv()

15 years agoadd glTexParameteri() and fix glTexParameteriv()
Mathias Agopian [Tue, 23 Jun 2009 01:04:45 +0000 (18:04 -0700)]
add glTexParameteri() and fix glTexParameteriv()

15 years agoRemove opengl tests from tests build
Sriram Raman [Tue, 23 Jun 2009 00:22:12 +0000 (17:22 -0700)]
Remove opengl tests from tests build

15 years agoMerge change 4885 into donut
Android (Google) Code Review [Tue, 23 Jun 2009 00:14:59 +0000 (17:14 -0700)]
Merge change 4885 into donut

* changes:
  Merge the output file into one.

15 years agoFix issue #1933587. Perform dexopt of instrumentation .apks.
Dianne Hackborn [Tue, 23 Jun 2009 00:06:35 +0000 (17:06 -0700)]
Fix issue #1933587.  Perform dexopt of instrumentation .apks.

15 years agoMerge change 5006 into donut
Android (Google) Code Review [Mon, 22 Jun 2009 23:47:06 +0000 (16:47 -0700)]
Merge change 5006 into donut

* changes:
  Pass the originating app's versionCode along with a restore set

15 years agoMerge change 4990 into donut
Android (Google) Code Review [Mon, 22 Jun 2009 23:45:20 +0000 (16:45 -0700)]
Merge change 4990 into donut

* changes:
  Fix a few more blatantly wrong date formats.

15 years agoPass the originating app's versionCode along with a restore set
Christopher Tate [Mon, 22 Jun 2009 23:44:51 +0000 (16:44 -0700)]
Pass the originating app's versionCode along with a restore set

This change amends the doRestore() / onRestore() interface to backup agents to
provide the integer android:versionCode of the app that stored the backup set.
This should help agents figure out how to handle whatever historical data set
they're handed at restore time.

15 years agoMerge change 4961 into donut
Android (Google) Code Review [Mon, 22 Jun 2009 23:22:33 +0000 (16:22 -0700)]
Merge change 4961 into donut

* changes:
  Set organizations to be null for generateKeyPair to use the default.

15 years agoFix a few more blatantly wrong date formats.
Eric Fischer [Mon, 22 Jun 2009 22:54:09 +0000 (15:54 -0700)]
Fix a few more blatantly wrong date formats.

Make punctuation in German and Italian numeric formats self-consistent.
Add missing long standalone Italian month names.
Fix doubled month words in Japanese, Chinese, and Korean.

15 years agoMerge change 4977 into donut
Android (Google) Code Review [Mon, 22 Jun 2009 22:45:31 +0000 (15:45 -0700)]
Merge change 4977 into donut

* changes:
  Update the gservices gtalk setting for the terms and services url.

15 years agoLaunch user-entered URLs directly without a web search.
Satish Sampath [Mon, 22 Jun 2009 22:16:07 +0000 (23:16 +0100)]
Launch user-entered URLs directly without a web search.

This is to fix bug http://b/issue?id=1931983

Instead of changing the keyboard button from search to carriage return,
I have changed it from search to 'Go' which I find more useful since
it indicates that the user can now go to that URL.