OSDN Git Service
Amith Yamasani [Thu, 2 Jul 2009 21:25:21 +0000 (14:25 -0700)]
Make backup agent run in the system process as well.
Android (Google) Code Review [Thu, 2 Jul 2009 20:19:55 +0000 (13:19 -0700)]
Merge change 6102 into donut
* changes:
Backup Wifi supplicant data.
Android (Google) Code Review [Thu, 2 Jul 2009 19:20:29 +0000 (12:20 -0700)]
Merge change 5979 into donut
* changes:
Remove the constraint to assign new uid when code path changes for system packages
Christopher Tate [Thu, 2 Jul 2009 19:14:05 +0000 (12:14 -0700)]
Clean up the last two literal permission string usages
Android (Google) Code Review [Thu, 2 Jul 2009 19:10:42 +0000 (12:10 -0700)]
Merge change 6104 into donut
* changes:
Add a "clear backed-up data" method to the backup mechanism
Amith Yamasani [Thu, 2 Jul 2009 19:05:32 +0000 (12:05 -0700)]
Backup Wifi supplicant data.
WifiService requests a backup when it writes wifi configuration to disk.
Backup the wifi supplicant file when settings provider runs backup.
Android (Google) Code Review [Thu, 2 Jul 2009 18:31:14 +0000 (11:31 -0700)]
Merge change 6090 into donut
* changes:
Adding strings for data root and data files - these are needed for returning this information in an Intent from checkVoiceData.
Christopher Tate [Thu, 2 Jul 2009 18:17:03 +0000 (11:17 -0700)]
Add a "clear backed-up data" method to the backup mechanism
It's now possible to ask that the backup manager wipe the saved data for a given
application from the backing store. LocalTransport implements this now but the
Google backend does not yet. When the data is wiped, the on-device backup state
is also wiped to ensure that the next backup pushes all necessary data.
Bmgr has not yet been modified to actually call into this method, but it will
be soon.
Charles Chen [Thu, 2 Jul 2009 17:41:51 +0000 (10:41 -0700)]
Adding strings for data root and data files - these are needed
for returning this information in an Intent from checkVoiceData.
Android (Google) Code Review [Thu, 2 Jul 2009 18:00:41 +0000 (11:00 -0700)]
Merge change 6084 into donut
* changes:
Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug
1956726)
Android (Google) Code Review [Thu, 2 Jul 2009 17:46:37 +0000 (10:46 -0700)]
Merge change 5995 into donut
* changes:
Turn off kerning when testing TextUtils.ellipsize().
Android (Google) Code Review [Thu, 2 Jul 2009 17:40:33 +0000 (10:40 -0700)]
Merge change 6088 into donut
* changes:
WifiManager: Limit the number of WifiLocks that can be active simultaneously.
Mike Lockwood [Thu, 2 Jul 2009 17:25:00 +0000 (13:25 -0400)]
WifiManager: Limit the number of WifiLocks that can be active simultaneously.
This is to prevent a bad app from using up all the global references in the
system process due to allocating too many DeathRecipients.
Signed-off-by: Mike Lockwood <lockwood@android.com>
James Dong [Thu, 2 Jul 2009 17:04:20 +0000 (10:04 -0700)]
Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug
1956726)
Android (Google) Code Review [Thu, 2 Jul 2009 15:34:35 +0000 (08:34 -0700)]
Merge change 6045 into donut
* changes:
Remove the null-termination for Java string compatibility.
Chung-yih Wang [Thu, 2 Jul 2009 11:11:11 +0000 (19:11 +0800)]
Remove the null-termination for Java string compatibility.
1. Also change the keyname delimiter in CertTool.java.
2. Return NOTFOUND if the result.len==0 in the listKeys().
3. Define the keystore states in the class Keystore.
Android (Google) Code Review [Thu, 2 Jul 2009 12:01:23 +0000 (05:01 -0700)]
Merge change 6043 into donut
* changes:
System and Secure settings backup.
Amith Yamasani [Thu, 2 Jul 2009 09:34:14 +0000 (02:34 -0700)]
System and Secure settings backup.
This backs up the basic system and secure settings. THe restoration doesn't
take effect immediately. You many need to restart the runtime to see all
restored values take effect.
Chung-yih Wang [Wed, 1 Jul 2009 16:22:04 +0000 (00:22 +0800)]
Add CertTool for handling the keygen and certificate download.
1. Have the new Keystore for mini-keystore impelemntation.
2. Add CertTool library and jni dll for handling keygen and certificates.
3. Make Reply hidden.
4. Revert some 'incorrect' change and correct the description.
Android (Google) Code Review [Thu, 2 Jul 2009 07:16:21 +0000 (00:16 -0700)]
Merge change 5615 into donut
* changes:
Implement the generic mini-keystore for security.
Chung-yih Wang [Sun, 28 Jun 2009 19:12:56 +0000 (03:12 +0800)]
Implement the generic mini-keystore for security.
1. We will progressively migrate to this implementation.
2. For richc to have a quick review on the keymgmt part.
3. Add remove_key and make sure all functions are working.
4. Add permission check for get operation.
5. Return the retry count if unlock failed.
6. Add the reset operation for keystore reset.
7. Add the putfile shell command for putting the key value from file.
8. Fix the boundary issue during parsing command.
9. Use the ' ' as delimiter and reset the reply structure for each request.
10. Add change password retry count check.
11. Extract the read_marshal/write_marshal for certtool.h.
12. Remove the old implementation.
Daisuke Miyakawa [Fri, 12 Jun 2009 06:44:47 +0000 (15:44 +0900)]
Add tests. internal bug id
1868702.
Dianne Hackborn [Wed, 1 Jul 2009 18:22:45 +0000 (11:22 -0700)]
Add facility to run setup wizard after an update.
The system now keeps a tag of the last version (just an arbitrary string)
that the setup wizard was run for. If this is different than the current
one in the setup wizard, then setup is launched at boot.
This introduces a new intent action for the part of the setup wizard that
gets run for an ungrade, which the system uses to find its current version
tag for comparing against what was last stored. It is up to the launched
setup activity update the stored setting to reflect its current value,
once it is happy.
Dianne Hackborn [Thu, 2 Jul 2009 02:55:20 +0000 (19:55 -0700)]
Move backup state to settings, change permission checks to use symbol.
This changes the backup service to use the settings provider instead
of system properties, correspondingly making it off by default and
allowing specific devices to define the transport. Also tweaks
the permission checks to use the permission symbol instead of raw
strings.
This requires some corresponding changes in the vendor projects.
Android (Google) Code Review [Thu, 2 Jul 2009 01:04:40 +0000 (18:04 -0700)]
Merge change 5994 into donut
* changes:
Less logging in some places. More in others.
Eric Fischer [Thu, 2 Jul 2009 01:03:09 +0000 (18:03 -0700)]
Turn off kerning when testing TextUtils.ellipsize().
Otherwise, the different text measurement methods produce slightly
different results and cause the text to show different results for
Spanned vs. non-Spanned source strings.
Bug
1837826
Joe Onorato [Thu, 2 Jul 2009 01:04:03 +0000 (21:04 -0400)]
Less logging in some places. More in others.
Romain Guy [Thu, 2 Jul 2009 00:20:08 +0000 (17:20 -0700)]
Cleanup a bunch of warnings in app widgets code.
Suchi Amalapurapu [Wed, 1 Jul 2009 21:04:43 +0000 (14:04 -0700)]
Remove the constraint to assign new uid when code path changes for system packages
Android (Google) Code Review [Wed, 1 Jul 2009 21:12:10 +0000 (14:12 -0700)]
Merge change 5962 into donut
* changes:
SimRecords.getServiceProviderName() always returned null.
Android (Google) Code Review [Wed, 1 Jul 2009 21:04:32 +0000 (14:04 -0700)]
Merge change 5940 into donut
* changes:
Add CLDR data/formats for newly-translated locales.
jsh [Wed, 1 Jul 2009 19:55:28 +0000 (12:55 -0700)]
SimRecords.getServiceProviderName() always returned null.
Fixes bug
1955060. spn was defined in both SimRecords and base class IccRecords.
Android (Google) Code Review [Wed, 1 Jul 2009 19:53:04 +0000 (12:53 -0700)]
Merge change 5906 into donut
* changes:
resolve complex value in application context instead of system context.
Android (Google) Code Review [Wed, 1 Jul 2009 19:52:39 +0000 (12:52 -0700)]
Merge change 5950 into donut
* changes:
Fix memory leaks in system_server unlink DeathRecipients in a whole bunch of places to avoid memory leaks
Suchi Amalapurapu [Wed, 1 Jul 2009 04:36:16 +0000 (21:36 -0700)]
Fix memory leaks in system_server
unlink DeathRecipients in a whole bunch of places to avoid memory leaks
Christopher Tate [Wed, 1 Jul 2009 19:34:29 +0000 (12:34 -0700)]
Revamp backup scheduling policy
We now schedule a periodic check of pending backups; if any apps have requested
a backup since the last check, we perform all of the pending backups. The
periodic backup scheduling matches the enable/disable state of the backup
manager; while backups are disabled entirely there are no periodic wakeups.
The period is set here to one hour. If an external caller (transport, the
'bmgr' command line tool, etc) requests an immediate backup pass, that is
performed and then the periodic backup check is rescheduled using that pass as
the starting point of a new interval.
Christopher Tate [Wed, 1 Jul 2009 18:43:53 +0000 (11:43 -0700)]
Use secure settings for backup enable / transport selection
Eric Fischer [Wed, 1 Jul 2009 18:10:35 +0000 (11:10 -0700)]
Add CLDR data/formats for newly-translated locales.
Satish Sampath [Wed, 1 Jul 2009 18:06:24 +0000 (19:06 +0100)]
Fix build break by adding an @hide javadoc comment.
Satish Sampath [Wed, 1 Jul 2009 16:48:42 +0000 (17:48 +0100)]
Make search UI open up quicker to the user.
On invoking the search UI, the drop down list box with past queries and shortcut items
appears after a few hundreds of milliseconds on screen. This was because we were
displaying the drop down within the onFilterCompleted callback after the list box filtered
the items based on the given query text. While that code path is necessary, for the first
invocation of the search dialog with an empty query we can show the list box before the
text stuff happens. This change does that, issuing an async request to show the drop
down after pending events have been processed.
Without this change, on an average it took 350ms for the code to show the drop down.
With this change, on an average it takes 150ms.
Android (Google) Code Review [Wed, 1 Jul 2009 16:16:48 +0000 (09:16 -0700)]
Merge change 5616 into donut
* changes:
Revise VpnService to use new vpn.* properties.
Android (Google) Code Review [Wed, 1 Jul 2009 15:51:31 +0000 (08:51 -0700)]
Merge change 5879 into donut
* changes:
Represent new searchSettingsDescription attribute on searchables in SearchableInfo.
Mitsuru Oshima [Wed, 1 Jul 2009 07:10:43 +0000 (00:10 -0700)]
resolve complex value in application context instead of system context.
Android (Google) Code Review [Wed, 1 Jul 2009 01:44:12 +0000 (18:44 -0700)]
Merge change 5878 into donut
* changes:
Add new attribute 'searchSettingsDescription' for use within an app's searchable.xml. This attribute defines the string to be shown as the description a searchable in the 'searchable items' section of system search settings.
Mike LeBeau [Wed, 1 Jul 2009 01:27:40 +0000 (18:27 -0700)]
Represent new searchSettingsDescription attribute on searchables in
SearchableInfo.
Mike LeBeau [Wed, 1 Jul 2009 01:26:21 +0000 (18:26 -0700)]
Add new attribute 'searchSettingsDescription' for use within an app's
searchable.xml. This attribute defines the string to be shown as the
description a searchable in the 'searchable items' section of system
search settings.
Android (Google) Code Review [Tue, 30 Jun 2009 23:18:59 +0000 (16:18 -0700)]
Merge change 5854 into donut
* changes:
Run backups at background priority
Christopher Tate [Tue, 30 Jun 2009 23:11:49 +0000 (16:11 -0700)]
Run backups at background priority
Android (Google) Code Review [Tue, 30 Jun 2009 22:44:07 +0000 (15:44 -0700)]
Merge change 5845 into donut
* changes:
Always clear the TextView drag state whenever a touch begins.
Eric Fischer [Tue, 30 Jun 2009 22:22:51 +0000 (15:22 -0700)]
Always clear the TextView drag state whenever a touch begins.
Apparently it can sometimes miss a touch release, which would prevent
the longpress menu from appearing if the location of the new touch was
too far from the location of the previous touch.
Bug
1673223
Android (Google) Code Review [Tue, 30 Jun 2009 22:16:38 +0000 (15:16 -0700)]
Merge change 5810 into donut
* changes:
Fix bug
1930055 of NullPointerException.
Android (Google) Code Review [Tue, 30 Jun 2009 22:05:56 +0000 (15:05 -0700)]
Merge change 5804 into donut
* changes:
Ensure that we never trigger ArrayIndexOutOfBoundsException by checking that the index is always < the array's length. Also ensures that the object's state is consistent. Should resolve a denial-of-service bug when handling malformed WAP pushes.
Android (Google) Code Review [Tue, 30 Jun 2009 21:35:59 +0000 (14:35 -0700)]
Merge change 5833 into donut
* changes:
Fix nit on length of flag constant.
lknguyen [Tue, 30 Jun 2009 20:52:45 +0000 (13:52 -0700)]
Fix nit on length of flag constant.
Android (Google) Code Review [Tue, 30 Jun 2009 21:08:30 +0000 (14:08 -0700)]
Merge change 5807 into donut
* changes:
Fixing synth to file to use the speech queue.
Android (Google) Code Review [Tue, 30 Jun 2009 21:04:55 +0000 (14:04 -0700)]
Merge change 5829 into donut
* changes:
Fix issue #
1673793: Theme styles don't apply.
Android (Google) Code Review [Tue, 30 Jun 2009 20:48:14 +0000 (13:48 -0700)]
Merge change 5750 into donut
* changes:
Add a new checkin server flag for Vending Machine client server ping frequency for pending downloads.
Dianne Hackborn [Sat, 27 Jun 2009 01:16:48 +0000 (18:16 -0700)]
Implement issue #
1943927 (need notification in status bar when adb is active)
This is a little hacky -- we just assume that if adb is enabled and power
is connected through usb, then it is active.
The icons and text are temporary until final design is provided.
Android (Google) Code Review [Tue, 30 Jun 2009 20:34:45 +0000 (13:34 -0700)]
Merge change 5826 into donut
* changes:
Fix NullPointerException in NinePatch constructor
Dianne Hackborn [Tue, 30 Jun 2009 20:27:30 +0000 (13:27 -0700)]
Fix issue #
1673793: Theme styles don't apply.
It turns out this was not a problem in the resource code at all. Rather,
the system process has a cache of pre-loaded attributes it uses to avoid
continually reloading things as it needs them. Well it turns out this
cache wasn't flushed after a package was uninstalled or a configuration
changed, so you could re-install an app where you change its style resources
so its theme now points to one that is inconsistent in the cache.
This is mostly a problem for developers, where they continually install
new versions of an app where resources have changed. This could possibly
show up when updating an app on a normal phone, although the problem would
eventually correct itself since this cache uses weak references.
Anyway, the cache is now reworked to be flushed appropriately.
This change also includes an update to aapt to be able to dump the
contents of bags in resources.
Android (Google) Code Review [Tue, 30 Jun 2009 20:22:15 +0000 (13:22 -0700)]
Merge change 5739 into donut
* changes:
Check to make sure the Java camera object is still valid on the callback from native. Omitted from previous fix. Bug
1936850.
Android (Google) Code Review [Tue, 30 Jun 2009 20:20:44 +0000 (13:20 -0700)]
Merge change 5806 into donut
* changes:
Use additional functions to collect more memory information data points.
Dave Sparks [Tue, 30 Jun 2009 02:03:33 +0000 (19:03 -0700)]
Check to make sure the Java camera object is still valid on the
callback from native. Omitted from previous fix. Bug
1936850.
Phil Dubach [Tue, 30 Jun 2009 03:34:13 +0000 (20:34 -0700)]
Fix NullPointerException in NinePatch constructor
NinePatch.mPaint may be null and most methods in this class handle
that case properly. However, the constructor which derives a new
NinePatch from an existing instance assumes that mPaint is non-null.
This results in an unexpected NullPointerException, for example when
attempting to call NinePatchDrawable.mutate() on an instance that was
created from a resource.
Small unrelated fix in same file: Remove unused private mRect member.
Christopher Tate [Tue, 30 Jun 2009 19:47:33 +0000 (12:47 -0700)]
Tighten up the metadata backup logic
We now store the app version codes and and global OS incremental version name in
the PM backup state and the actual backup record. We then use that information
to trigger a re-backup of the metadata if the OS revision changes in any way, or
to back up single apps' metadata if we notice that they've been upgraded.
Android (Google) Code Review [Tue, 30 Jun 2009 19:40:23 +0000 (12:40 -0700)]
Merge change 5817 into donut
* changes:
Replace indeterminate progress animated asset with new ones
Romain Guy [Tue, 30 Jun 2009 19:39:18 +0000 (12:39 -0700)]
Replace indeterminate progress animated asset with new ones
Android (Google) Code Review [Tue, 30 Jun 2009 19:17:48 +0000 (12:17 -0700)]
Merge change 5732 into donut
* changes:
Fix assertContentsInOrder (bug
1790350).
Charles Chen [Tue, 30 Jun 2009 19:01:12 +0000 (12:01 -0700)]
Fixing synth to file to use the speech queue.
John Wang [Tue, 30 Jun 2009 19:01:35 +0000 (12:01 -0700)]
Fix bug
1930055 of NullPointerException.
The NullPointerException in getCallState is caused by the restarting of phone process. getITelephony() was not ready to be used at that moment.
modified: java/android/telephony/TelephonyManager.java
Guang Zhu [Tue, 30 Jun 2009 18:56:13 +0000 (11:56 -0700)]
Use additional functions to collect more memory information data points.
Chris Palmer [Tue, 30 Jun 2009 18:50:50 +0000 (11:50 -0700)]
Ensure that we never trigger ArrayIndexOutOfBoundsException by checking that
the index is always < the array's length. Also ensures that the object's
state is consistent. Should resolve a denial-of-service bug when handling
malformed WAP pushes.
Android (Google) Code Review [Tue, 30 Jun 2009 18:41:05 +0000 (11:41 -0700)]
Merge change 5420 into donut
* changes:
Added two test cases to trace the failure in closing the hw decoder and the current playtime is greater than the duration.
Yu Shan Emily Lau [Thu, 25 Jun 2009 22:11:04 +0000 (15:11 -0700)]
Added two test cases to trace the failure in closing the hw decoder and the current playtime is greater than the duration.
Android (Google) Code Review [Tue, 30 Jun 2009 18:01:10 +0000 (11:01 -0700)]
Merge change 5792 into donut
* changes:
Fix typo introduced during variable cleanup.
Android (Google) Code Review [Tue, 30 Jun 2009 17:57:18 +0000 (10:57 -0700)]
Merge change 5787 into donut
* changes:
Fix http://code.google.com/p/android/issues/detail?id=3059
Jaikumar Ganesh [Tue, 30 Jun 2009 17:53:16 +0000 (10:53 -0700)]
Fix typo introduced during variable cleanup.
This prevented data connection being established after voice calls on 2G networks.
Wu-cheng Li [Tue, 23 Jun 2009 15:37:36 +0000 (23:37 +0800)]
Allow setPreviewDisplay after startPreview.
Marco Nelissen [Tue, 30 Jun 2009 17:32:00 +0000 (10:32 -0700)]
Fix code.google.com/p/android/issues/detail?id=3059
Android (Google) Code Review [Tue, 30 Jun 2009 16:55:37 +0000 (09:55 -0700)]
Merge change 5780 into donut
* changes:
In TTS synthesis to file, remove hard coded values for the writing of the WAV header. Corrected TTS Service manifest to allow writing to external storage. Corrected memory management when the end of synthesis is signaled.
Jean-Michel Trivi [Tue, 30 Jun 2009 16:36:08 +0000 (09:36 -0700)]
In TTS synthesis to file, remove hard coded values for the writing of the WAV header.
Corrected TTS Service manifest to allow writing to external storage.
Corrected memory management when the end of synthesis is signaled.
Android (Google) Code Review [Tue, 30 Jun 2009 14:06:50 +0000 (07:06 -0700)]
Merge change 5720 into donut
* changes:
Fix #
1876303. Even rfc2616 4.2 says that "Field names are case-insensitive.", servers including Google internal uses case-sensitive checking for "Cookie". So change it.
lknguyen [Tue, 30 Jun 2009 03:50:25 +0000 (20:50 -0700)]
Add a new checkin server flag for Vending Machine client server ping frequency for pending downloads.
Android (Google) Code Review [Tue, 30 Jun 2009 03:09:27 +0000 (20:09 -0700)]
Merge change 5718 into donut
* changes:
Fix NullPointerException in DrawableContainer.mutate()
Tammo Spalink [Sun, 28 Jun 2009 07:44:10 +0000 (15:44 +0800)]
eliminate byte-typed cdma sms fields
Android (Google) Code Review [Tue, 30 Jun 2009 02:22:11 +0000 (19:22 -0700)]
Merge change 5485 into donut
* changes:
cdma sms is91 support
Android (Google) Code Review [Tue, 30 Jun 2009 02:22:05 +0000 (19:22 -0700)]
Merge change 5359 into donut
* changes:
fix potential string index problems in PhoneNumberUtils.numberToCalledPartyBCDHelper
Christopher Tate [Tue, 30 Jun 2009 01:52:55 +0000 (18:52 -0700)]
Don't issue a deletion for the global metadata backup
We were accidentally submitting a deletion for the global metadata key in the
PM backup handling (it was falling into the usual "here's a package that we said
we'd backed up last time, but now it's no longer on device" code). Don't do
that any more, i.e. actually keep the global metadata key in the backup set.
Oops.
Phil Dubach [Mon, 29 Jun 2009 23:57:46 +0000 (16:57 -0700)]
Fix NullPointerException in DrawableContainer.mutate()
DrawableContainerState.mDrawables is an array which may be only partially
filled, as can be seen in the constructor and the addChild() method.
DrawableContainer.mutate() wrongly assumed that the array does not contain
null references.
Karl Rosaen [Tue, 30 Jun 2009 01:06:40 +0000 (18:06 -0700)]
Fix assertContentsInOrder (bug
1790350).
if we ever get an updated Lists class that includes a
Lists.newArrayList(Iterable<?>
implementation, that would work too.
Jean-Michel Trivi [Tue, 30 Jun 2009 00:31:05 +0000 (17:31 -0700)]
Fix bug where the default TTS Service country is initialized to the default language.
Android (Google) Code Review [Tue, 30 Jun 2009 00:26:32 +0000 (17:26 -0700)]
Merge change 5711 into donut
* changes:
Adding in TTS service support for language query and level of support.
Android (Google) Code Review [Tue, 30 Jun 2009 00:13:49 +0000 (17:13 -0700)]
Merge change 5656 into donut
* changes:
Generate key events for actions sent to generic input connections.
Grace Kloba [Tue, 30 Jun 2009 00:03:42 +0000 (17:03 -0700)]
Fix #
1876303. Even rfc2616 4.2 says that "Field names are case-insensitive.", servers including Google internal uses case-sensitive checking for "Cookie". So change it.
Jean-Michel Trivi [Mon, 29 Jun 2009 23:38:47 +0000 (16:38 -0700)]
Adding in TTS service support for language query and level of support.
Android (Google) Code Review [Mon, 29 Jun 2009 23:26:57 +0000 (16:26 -0700)]
Merge change 5699 into donut
* changes:
Adding status return codes for TTS calls.
Charles Chen [Mon, 29 Jun 2009 22:52:47 +0000 (15:52 -0700)]
Adding status return codes for TTS calls.
Android (Google) Code Review [Mon, 29 Jun 2009 23:12:24 +0000 (16:12 -0700)]
Merge change 5669 into donut
* changes:
Fix setting of the APN type.
Android (Google) Code Review [Mon, 29 Jun 2009 23:09:44 +0000 (16:09 -0700)]
Merge change 5701 into donut
* changes:
Expose in SynthProxy the query for the TTS supported and current language.
Jean-Michel Trivi [Mon, 29 Jun 2009 22:55:05 +0000 (15:55 -0700)]
Expose in SynthProxy the query for the TTS supported and current language.