OSDN Git Service
Android (Google) Code Review [Tue, 7 Jul 2009 17:35:40 +0000 (10:35 -0700)]
Merge change 6314 into donut
* changes:
Use the current Locale as the default language when TTS settings are not found, rather than a hardcoded value stored in TextToSpeech.Engine.
San Mehat [Tue, 7 Jul 2009 16:34:44 +0000 (09:34 -0700)]
WifiService: use wifi association state to determine if we should suspend wifi instead of
the existance of an IP address.
Signed-off-by: San Mehat <san@google.com>
Eric Laurent [Tue, 7 Jul 2009 14:10:45 +0000 (07:10 -0700)]
Fix issue
1743700: AudioTrack: setPlaybackRate can not set the playback rate to twice of the ouputSR
Store sample rate on 32 bits instead of 16 bits in audio_track_cblk_t.
Removed sampleRate() methods from AudioTrack and AudioRecord: replaced by getSampleRate().
AudioTrack::setSampleRate() no returns a status.
Android (Google) Code Review [Tue, 7 Jul 2009 06:48:25 +0000 (23:48 -0700)]
Merge change 6338 into donut
* changes:
septet-align UD after any UDH for GSM-7bit coding
Tammo Spalink [Tue, 7 Jul 2009 06:17:28 +0000 (14:17 +0800)]
septet-align UD after any UDH for GSM-7bit coding
Mitsuru Oshima [Fri, 3 Jul 2009 03:06:08 +0000 (20:06 -0700)]
widgets scaling fix. Use container's compatibility info and display metrics when container and widgets disagree.
Android (Google) Code Review [Tue, 7 Jul 2009 01:24:26 +0000 (18:24 -0700)]
Merge change 6317 into donut
* changes:
Make enable/provisioning of the backup service a two-step process
Jean-Michel Trivi [Tue, 7 Jul 2009 00:58:52 +0000 (17:58 -0700)]
Use the current Locale as the default language when TTS settings are not
found, rather than a hardcoded value stored in TextToSpeech.Engine.
Christopher Tate [Mon, 6 Jul 2009 23:36:05 +0000 (16:36 -0700)]
Make enable/provisioning of the backup service a two-step process
This CL adds the concept of 'provisioned' to the backup manager. No backups
will be scheduled until the user has indicated that backups are to be enabled
*and* has clicked all the way through the setup wizard.
When the user first turns on the backup system, the delay before the initial
backup pass is different from the periodic backup interval. Currently that
initial delay is 12 hours. The intent here is to guess at a less-active time
for performing that first backup pass.
NOTE: currently the backup service defaults to 'provisioned'. Once the real
code goes live in Setup Wizard, this will be changed to default to
not-provisioned until the user has confirmed all the relevant UI.
Android (Google) Code Review [Tue, 7 Jul 2009 00:32:09 +0000 (17:32 -0700)]
Merge change 6287 into donut
* changes:
Restore GPS state and ringer/vibrate toggles.
Amith Yamasani [Mon, 6 Jul 2009 21:53:25 +0000 (14:53 -0700)]
Restore GPS state and ringer/vibrate toggles.
Inform backup manager when sync flags change. Set ringer/vibrate mode.
Romain Guy [Mon, 6 Jul 2009 23:35:25 +0000 (16:35 -0700)]
Fixes #
1963229. Introduces Context#isRestricted().
A restricted Context is a special type of Context that prevents specific features
from being used. For instance, android:onClick, used by View, can be dangerous when
used from within apps widgets. By using a restricted Context to inflate apps widgets,
widgets providers are prevented from using android:onClick.
Android (Google) Code Review [Mon, 6 Jul 2009 23:28:03 +0000 (16:28 -0700)]
Merge change 6307 into donut
* changes:
Fixes a compatibility issue with users that have the old TTS installed already.
Charles Chen [Mon, 6 Jul 2009 23:10:32 +0000 (16:10 -0700)]
Fixes a compatibility issue with users that have the old TTS
installed already.
Android (Google) Code Review [Mon, 6 Jul 2009 22:49:26 +0000 (15:49 -0700)]
Merge change 6305 into donut
* changes:
Fix up permissions for 'dumpsys backup'
Christopher Tate [Mon, 6 Jul 2009 22:44:54 +0000 (15:44 -0700)]
Fix up permissions for 'dumpsys backup'
Android (Google) Code Review [Mon, 6 Jul 2009 21:38:39 +0000 (14:38 -0700)]
Merge change 6271 into donut
* changes:
Propagating the error codes through the TtsService
Android (Google) Code Review [Mon, 6 Jul 2009 21:37:54 +0000 (14:37 -0700)]
Merge change 6283 into donut
* changes:
Fix a bug where clicking the "more results" suggestion with the trackball did not seem to expand to show the corpus selectors. (http://b/
1906643)
Android (Google) Code Review [Mon, 6 Jul 2009 21:32:18 +0000 (14:32 -0700)]
Merge change 6282 into donut
* changes:
Fixes #
1963214. ProgressDialog was using the wrong indeterminate progress asset.
Romain Guy [Mon, 6 Jul 2009 21:31:39 +0000 (14:31 -0700)]
Fixes #
1963214. ProgressDialog was using the wrong indeterminate progress asset.
Mike LeBeau [Mon, 6 Jul 2009 21:29:25 +0000 (14:29 -0700)]
Fix a bug where clicking the "more results" suggestion with the trackball
did not seem to expand to show the corpus selectors. (http://b/
1906643)
It turns out that when the trackball was used to select this item, onItemClick
was getting called on the listener twice in AutoCompleteTextView#onKeyUp:
once when we call onKeyUp on the DropDownListView, and once a little further
down when we call performCompletion(). In our case, performCompletion() is
useless since it was intended for normal AutoCompleteTextViews which populate
text into the TextView when an item in the list is clicked, but we do not
rely on this. So the easiest fix is just to make performCompletion() do nothing
in our SearchAutoComplete subclass.
Charles Chen [Mon, 6 Jul 2009 21:12:36 +0000 (14:12 -0700)]
Propagating the error codes through the TtsService
Android (Google) Code Review [Mon, 6 Jul 2009 21:09:16 +0000 (14:09 -0700)]
Merge change 6252 into donut
* changes:
Don't re-parse the framework resources all the time.
Android (Google) Code Review [Mon, 6 Jul 2009 20:10:50 +0000 (13:10 -0700)]
Merge change 6241 into donut
* changes:
Fixes #
1444844. Set a maximum fling velocity in scrollable views.
Android (Google) Code Review [Mon, 6 Jul 2009 19:56:32 +0000 (12:56 -0700)]
Merge change 6258 into donut
* changes:
Fix the comment -- "charged" not "sharted." Also, the other strings on that screen seem to have periods. I think that's wrong, but it's better to be consistent that right.
Joe Onorato [Mon, 6 Jul 2009 19:49:04 +0000 (15:49 -0400)]
Fix the comment -- "charged" not "sharted." Also, the other
strings on that screen seem to have periods. I think that's
wrong, but it's better to be consistent that right.
Android (Google) Code Review [Mon, 6 Jul 2009 19:39:28 +0000 (12:39 -0700)]
Merge change 6255 into donut
* changes:
Fix the comments for the string resources for the charge status.
Joe Onorato [Mon, 6 Jul 2009 19:38:30 +0000 (15:38 -0400)]
Fix the comments for the string resources for the charge status.
Android (Google) Code Review [Mon, 6 Jul 2009 19:09:34 +0000 (12:09 -0700)]
Merge change 6246 into donut
* changes:
Fix bugs
1317754 - "Idle screen displays "Charging (100%)" even when fully charged." and
1885870 - "Shorten 'Clear notification' button to 'Clear' to match latest design"
Joe Onorato [Mon, 6 Jul 2009 18:56:53 +0000 (14:56 -0400)]
Fix bugs
1317754 - "Idle screen displays "Charging (100%)" even when fully charged."
and
1885870 - "Shorten 'Clear notification' button to 'Clear' to match latest design"
Android (Google) Code Review [Mon, 6 Jul 2009 18:54:34 +0000 (11:54 -0700)]
Merge change 6162 into donut
* changes:
Hold a wakelock during backup/restore/clear operations
Christopher Tate [Fri, 3 Jul 2009 00:40:45 +0000 (17:40 -0700)]
Hold a wakelock during backup/restore/clear operations
We need to make sure we stay alive for the duration of a backup or (especially)
restore operation. The existing Handler-based timing system was simply not
properly functional, so it's been retooled to use a repeating alarm delivering a
broastcast PendingIntent to our registered receiver.
We acquire a partial wake lock in the broadcast receiver [i.e. while the Alarm
Manager is holding one for the duration of broadcast delivery] and pass the
wakelock object to the backup thread, which eventually releases it when it's
finsihed operations. A similar pattern is used for the threads handling restore
and clear.
Romain Guy [Mon, 6 Jul 2009 18:48:52 +0000 (11:48 -0700)]
Fixes #
1444844. Set a maximum fling velocity in scrollable views.
Android (Google) Code Review [Mon, 6 Jul 2009 18:37:13 +0000 (11:37 -0700)]
Merge change 6154 into donut
* changes:
Fix bug (#
1947162)
Android (Google) Code Review [Mon, 6 Jul 2009 18:34:28 +0000 (11:34 -0700)]
Merge change 6237 into donut
* changes:
Add a silent ringtone.
Marco Nelissen [Mon, 6 Jul 2009 18:12:26 +0000 (11:12 -0700)]
Add a silent ringtone.
James Dong [Thu, 2 Jul 2009 23:26:39 +0000 (16:26 -0700)]
Fix bug (#
1947162)
The bug (
1947162) is caused by the fact that sometimes, surfaceChanged() is called after onCompletion().
In surfaceChanged(), start() is called automatically. The fix is to use a flag is avoid calling start()
when onCompletion() has been called already.
Android (Google) Code Review [Mon, 6 Jul 2009 18:26:15 +0000 (11:26 -0700)]
Merge change 6227 into donut
* changes:
Adding tts result codes.
Dianne Hackborn [Mon, 6 Jul 2009 18:07:40 +0000 (11:07 -0700)]
Don't re-parse the framework resources all the time.
A small optimization to the resource code, to not re-parse the framework
resources every time we build a new AssetManager. Instead, you can now
construct a ResTable from a previously created one... of course, like the
existing code for using the data in-place, you can't delete the original
ResTable until you have deleted the one that has been constructed from it.
Android (Google) Code Review [Mon, 6 Jul 2009 18:09:20 +0000 (11:09 -0700)]
Merge change 6231 into donut
* changes:
Don't trim() in the mediascanner, as that would remove the special "sort first" character.
Marco Nelissen [Mon, 6 Jul 2009 18:07:27 +0000 (11:07 -0700)]
Don't trim() in the mediascanner, as that would remove the special "sort first" character.
Android (Google) Code Review [Mon, 6 Jul 2009 18:01:43 +0000 (11:01 -0700)]
Merge change 6221 into donut
* changes:
Remove links to wikipedia; fix typo; remove .vsd file (bug
1918247).
Marco Nelissen [Mon, 6 Jul 2009 17:57:01 +0000 (10:57 -0700)]
Make sure ringtones are sorted correctly.
Charles Chen [Mon, 6 Jul 2009 17:51:48 +0000 (10:51 -0700)]
Adding tts result codes.
Katarina Stenstedt [Mon, 6 Jul 2009 17:10:19 +0000 (10:10 -0700)]
Remove links to wikipedia; fix typo; remove .vsd file (bug
1918247).
Marco Nelissen [Mon, 6 Jul 2009 16:19:10 +0000 (09:19 -0700)]
Fix the DEFAULT_SORT_ORDER value for media files. Changing this
is OK, because existing app will have the old value compiled in
as a literal, and so will continue to (not) work in the same
way as before. Add code to media key generator to give a leading
ascii \001 the special meaning of "sort first".
Hung-ying Tyan [Mon, 6 Jul 2009 15:31:33 +0000 (23:31 +0800)]
Add PPTP and L2TP/IPSec PSK service dispatching
Android (Google) Code Review [Mon, 6 Jul 2009 10:55:07 +0000 (03:55 -0700)]
Merge change 6204 into donut
* changes:
Migrate to new keystore with the CertTool lib.
Hung-ying Tyan [Mon, 6 Jul 2009 09:12:53 +0000 (17:12 +0800)]
Migrate to new keystore with the CertTool lib.
Android (Google) Code Review [Mon, 6 Jul 2009 07:04:54 +0000 (00:04 -0700)]
Merge change 6198 into donut
* changes:
keystore: Provide a generic getter for native components.
Chia-chi Yeh [Mon, 6 Jul 2009 03:13:25 +0000 (11:13 +0800)]
keystore: Provide a generic getter for native components.
Chung-yih Wang [Sat, 4 Jul 2009 14:19:51 +0000 (22:19 +0800)]
Add password field for WiFi configuration.
1. the certtool.h is modified for avoiding the side effect,
for saving the configuration with wpa_supplicant.
2. put the loadLibrary back in CertTool.java
3. Fix incorrect JNI declarations.
Android (Google) Code Review [Sat, 4 Jul 2009 01:40:54 +0000 (18:40 -0700)]
Merge change 6081 into donut
* changes:
Migrate to the CertTool library.
Android (Google) Code Review [Fri, 3 Jul 2009 16:44:29 +0000 (09:44 -0700)]
Merge change 6187 into donut
* changes:
Fix strings.
Hung-ying Tyan [Fri, 3 Jul 2009 16:24:48 +0000 (00:24 +0800)]
Fix strings.
* Changes
+ Remove "Up time:" from ongoing event display.
+ Add hint in disconnected notification.
Chung-yih Wang [Thu, 2 Jul 2009 15:42:12 +0000 (23:42 +0800)]
Migrate to the CertTool library.
Keystore is reimplemented and it is mainly for storing
(key, value) pair generically. The certificate related
APIs are moved to the class CertTool instead.
Updates:
Provide the getInstance() which gives the singleton.
Fix the missing construction of the BIO in cert.c.
Android (Google) Code Review [Fri, 3 Jul 2009 15:51:59 +0000 (08:51 -0700)]
Merge change 6177 into donut
* changes:
Two small checks in keymgmt.
Android (Google) Code Review [Fri, 3 Jul 2009 09:52:55 +0000 (02:52 -0700)]
Merge change 6183 into donut
* changes:
Fix null data handling in ServiceCommand.writeCommand()
Hung-ying Tyan [Fri, 3 Jul 2009 09:38:59 +0000 (17:38 +0800)]
Fix null data handling in ServiceCommand.writeCommand()
Android (Google) Code Review [Fri, 3 Jul 2009 07:00:19 +0000 (00:00 -0700)]
Merge change 6130 into donut
* changes:
Make backup agent run in the system process as well.
Android (Google) Code Review [Fri, 3 Jul 2009 05:39:17 +0000 (22:39 -0700)]
Merge change 6146 into donut
* changes:
Fixing
1949086 Sholes telephony crash after waking from sleep.
Chung-yih Wang [Fri, 3 Jul 2009 04:09:52 +0000 (12:09 +0800)]
Two small checks in keymgmt.
1. Enforce the state check in listkey().
2. Enforce the password length check.
Wink Saville [Fri, 3 Jul 2009 03:50:11 +0000 (20:50 -0700)]
Fixing
1949086 Sholes telephony crash after waking from sleep.
Charles Chen [Fri, 3 Jul 2009 00:21:22 +0000 (17:21 -0700)]
Removing IPA - IPA is already handled by the phoneme tag.
Android (Google) Code Review [Thu, 2 Jul 2009 23:45:12 +0000 (16:45 -0700)]
Merge change 6155 into donut
* changes:
Unhide android.speech.tts.TextToSpeech
Jean-Michel Trivi [Thu, 2 Jul 2009 23:29:30 +0000 (16:29 -0700)]
Unhide android.speech.tts.TextToSpeech
Android (Google) Code Review [Thu, 2 Jul 2009 22:24:43 +0000 (15:24 -0700)]
Merge change 6143 into donut
* changes:
Fix the simulator.
Marco Nelissen [Thu, 2 Jul 2009 22:23:26 +0000 (15:23 -0700)]
Fix the simulator.
Christopher Tate [Thu, 2 Jul 2009 21:37:05 +0000 (14:37 -0700)]
Add a 'wipe' operation to Bmgr
"bmgr wipe PACKAGE" now issues the backup transport clearBackupData() operation
for the given package.
Android (Google) Code Review [Thu, 2 Jul 2009 21:30:56 +0000 (14:30 -0700)]
Merge change 6132 into donut
* changes:
If we can't get the restore set's metadata, don't continue
Christopher Tate [Thu, 2 Jul 2009 21:28:47 +0000 (14:28 -0700)]
If we can't get the restore set's metadata, don't continue
Without the metadata we can't verify the version number or the signatures of the
apps whose data we'd be trying to restore against the apps present on device.
This is not acceptable; we need to refuse to give data to an unauthenticated
app.
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 21:20:08 +0000 (14:20 -0700)]
Merge change 6126 into donut
* changes:
Use 'LOCAL_PATH' instead of 'local_path', so it's easier to see a diff of the two .mk files.
Marco Nelissen [Thu, 2 Jul 2009 21:18:30 +0000 (14:18 -0700)]
Use 'LOCAL_PATH' instead of 'local_path', so it's easier to see a diff of the two .mk files.
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.