2352 Commits

Author SHA1 Message Date
Android (Google) Code Review
7761920b2a Merge change 6507 into donut
* changes:
  Remove unused definitions for default language in TextToSpeech as the default language is determined by the current Locale, not a hardcoded value. Add a value for the default TTS engine to use.
2009-07-08 14:43:40 -07:00
Jean-Michel Trivi
e28aced7bb Remove unused definitions for default language in TextToSpeech as
the default language is determined by the current Locale, not a hardcoded
value. Add a value for the default TTS engine to use.
2009-07-08 14:20:33 -07:00
Romain Guy
6de4aed1c6 Fixes #1933428. Call onPrepareDialog() on managed dialogs after their onCreate() is finished. 2009-07-08 13:56:28 -07:00
Android (Google) Code Review
1bd3e0fb7e Merge change 6504 into donut
* changes:
  Don't invoke the transport if doBackup supplied no data
2009-07-08 13:54:07 -07:00
Christopher Tate
b407f22c9d Don't invoke the transport if doBackup supplied no data
If there's no data to be backed up, we no longer invoke the transport.  We *DO*
still require that the agent have emitted a valid new state file, however.

This change also finally uncomments the code that removes the backup data file
after it has been sent to the transport, so there will be no more
packagename.data files lying around in the staging area.
2009-07-08 13:52:50 -07:00
Android (Google) Code Review
91b0a7013e Merge change 6284 into donut
* changes:
  Run search UI on its own thread.
2009-07-08 13:28:29 -07:00
Android (Google) Code Review
f9c228a51f Merge change 6487 into donut
* changes:
  Removed reference to awt jar from platform.xml.
2009-07-08 12:24:48 -07:00
Android (Google) Code Review
bfc29f67db Merge change 6485 into donut
* changes:
  Cleanup Toast.java.
2009-07-08 11:59:49 -07:00
Romain Guy
0420cc7fed Cleanup Toast.java. 2009-07-08 11:59:00 -07:00
Bob Lee
aeb049ce8b Removed reference to awt jar from platform.xml. 2009-07-08 11:22:01 -07:00
Android (Google) Code Review
6b5328006f Merge change 6478 into donut
* changes:
  Fix ShapeDrawable.inflateTag() to accept proper dimension specs for padding
2009-07-08 10:43:44 -07:00
Android (Google) Code Review
831ea07dab Merge change 6107 into donut
* changes:
  Removed system/framework/android.awt.jar.
2009-07-08 10:11:00 -07:00
Bjorn Bringert
444c727e0e Run search UI on its own thread.
Details:

- Add a new SearchDialogWrapper class that makes sure
  all access to the SearchDialog is run one a single thread
  other than the main ServerThread.
- Don't save/restore seach dialog state in Activity.
  This resulted in lots of calls to the SearchManager
  throughout the life cycle of all activities, for
  the questionable benefit of restoring the search dialog
  in a few cases.
- Remove search UI state save/restore, and the isVisible()
  method from SearchManagerService. They are no longer used,
  and were tricky to implement since they return values from
  the search UI thread to the service.
- Handle configuration changes in searchDialogWrapper instead
  of calling through from Activity.

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

TODO:
- Activity.performPause() calls stopSearch(). This call may not happen
  until the new activity has been started. If the new activity starts a
  search immediately, this search could be cancelled by the old activity's
  call top stopSearch().
2009-07-08 17:43:49 +01:00
Phil Dubach
90cfa9df3f Fix ShapeDrawable.inflateTag() to accept proper dimension specs for padding
ShapeDrawable.inflateTag() handles the 'padding' tag with the standard
attributes android:left, etc.  The attribute values for these standard
attributes should be dimension specifications, e.g. '4dp'.
ShapeDrawable.inflateTag() was wrongly parsing the attribute values as plain
integers.
2009-07-08 09:43:49 -07:00
Android (Google) Code Review
e9ac96f76d Merge change 6454 into donut
* changes:
  Fix issue 1967295: Add a method to request reloading of audio settings by AudioService.
2009-07-08 09:23:26 -07:00
Satish Sampath
d21572cd44 NEW_API: Expose autoUrlDetect searchable attribute.
If provided and true, URLs entered in the search dialog while searching within this activity would be detected and treated as URLs (show a 'go' button in the keyboard and invoke the browser directly when user launches the URL instead of passing the URL to the activity). If set to false any URLs entered are treated as normal query text.
The default value is false. This is an optional attribute.
2009-07-08 15:09:08 +01:00
Eric Laurent
4050c93601 Fix issue 1967295: Add a method to request reloading of audio settings by AudioService. 2009-07-08 06:59:50 -07:00
Android (Google) Code Review
d6fe243c1c Merge change 6437 into donut
* changes:
  Backup / Restore locale preference.
2009-07-07 18:59:28 -07:00
Amith Yamasani
8823c0a8c6 Backup / Restore locale preference.
Also backup development settings MOCK_LOCATION and USB_DEBUGGING.
Backup and restore more of the Audio settings. Won't work yet without a reboot.
Disable Wifi supplicant restore temporarily. It seems to be disabling Wifi due to
permissions problems.
Don't restore Ringtones.
2009-07-07 18:42:46 -07:00
Android (Google) Code Review
a83bef5974 Merge change 6396 into donut
* changes:
  Add unit test for NeighboringCellInfo.
2009-07-07 18:09:21 -07:00
Android (Google) Code Review
108fd1c08a Merge change 6435 into donut
* changes:
  Add new textColorPrimaryInverseDisableOnly color to resources.
2009-07-07 17:49:13 -07:00
Romain Guy
771afdddc9 Add new textColorPrimaryInverseDisableOnly color to resources. 2009-07-07 17:35:34 -07:00
Android (Google) Code Review
72fe242595 Merge change 6414 into donut
* changes:
  Optimize storing of cached TTS parameters. Initialize the cached language settings with the current Locale.
2009-07-07 16:49:41 -07:00
Android (Google) Code Review
e9289dc63e Merge change 6422 into donut
* changes:
  Removing the ttsSynthDoneCallback logging.
2009-07-07 16:44:18 -07:00
Android (Google) Code Review
7b68a408e9 Merge change 6426 into donut
* changes:
  Remove a lot of debug-log verbosity
2009-07-07 16:37:29 -07:00
Christopher Tate
22b60d8fd0 Remove a lot of debug-log verbosity
We now log in dataChanged() only when an app is added to the backup set (and
*not* if it redundantly asks to be added after it's already there) and on error.
2009-07-07 16:36:02 -07:00
Charles Chen
2a8a2d76f1 Removing the ttsSynthDoneCallback logging. 2009-07-07 16:24:02 -07:00
Android (Google) Code Review
86ea435a40 Merge change 6407 into donut
* changes:
  Cleaning up logs. Initializing SpeechItem.mText to "" instead of null to prevent a null from accidentally being used when it is a non-text utterance.
2009-07-07 15:37:37 -07:00
Android (Google) Code Review
62edc96022 Merge change 6383 into donut
* changes:
  Cleanup connection when airplane mode is entered.
2009-07-07 15:22:15 -07:00
Android (Google) Code Review
7bf9f930d9 Merge change 6415 into donut
* changes:
  Fixes #1748951. Calling setListSelection() explicitely should cancel the selection hidden flag.
2009-07-07 15:19:14 -07:00
Romain Guy
fb7ed10735 Fixes #1748951. Calling setListSelection() explicitely should cancel the selection hidden flag. 2009-07-07 15:18:30 -07:00
Jean-Michel Trivi
da7681e7b6 Optimize storing of cached TTS parameters. Initialize the cached
language settings with the current Locale.
2009-07-07 15:15:39 -07:00
Charles Chen
b02ced7e45 Cleaning up logs.
Initializing SpeechItem.mText to "" instead of null to
prevent a null from accidentally being used when it is a
non-text utterance.
2009-07-07 14:57:16 -07:00
Christopher Tate
a7de384550 Only write to the pending-backup journal when necessary
We now only commit to the pending-backup journal on disk the first time that a
given package is added to the backup set.  This avoids a lot of write thrashing
of the disk, particularly since Settings tends to call dataChanged() a great
many times during boot, while the Settings UI is in use, etc.
2009-07-07 14:50:26 -07:00
Android (Google) Code Review
c4cf22e82b Merge change 6403 into donut
* changes:
  Fix the metadata-available test during restore
2009-07-07 14:29:47 -07:00
Christopher Tate
3d7cd13e77 Fix the metadata-available test during restore 2009-07-07 14:23:07 -07:00
John Wang
75efd5d525 Add unit test for NeighboringCellInfo.
Add small unit test for NeighboringCellInfo in AndroidTests. The old telephony unit test directory, CoreTest/android, is marked as deprecated in AndroidTestHowto.

	new file:   tests/AndroidTests/src/com/android/unit_tests/NeighboringCellInfoTest.java
2009-07-07 14:02:11 -07:00
Android (Google) Code Review
7fdd661f12 Merge change 6377 into donut
* changes:
  Propagating error codes to TextToSpeech.java
2009-07-07 13:46:17 -07:00
Jaikumar Ganesh
024af038a7 Cleanup connection when airplane mode is entered.
The message was being sent to the wrong handler.
2009-07-07 12:34:59 -07:00
Android (Google) Code Review
a5188a09bd Merge change 6367 into donut
* changes:
  Add virtual destructor.
2009-07-07 12:12:12 -07:00
Android (Google) Code Review
fdc3d11051 Merge change 6379 into donut
* changes:
  Update RatingBar's assets in indicator mode.
2009-07-07 11:56:43 -07:00
Romain Guy
97bdafa216 Update RatingBar's assets in indicator mode. 2009-07-07 11:56:15 -07:00
Android (Google) Code Review
2c5a3aeba3 Merge change 6326 into donut
* changes:
  BackupManager wrapper class improvements
2009-07-07 11:52:01 -07:00
Cynthia Wong
04f0b05ea0 Add a Gservices setting for how many times we should retry before discarding an uphill operation 2009-07-07 11:42:31 -07:00
Christopher Tate
c8daa76925 BackupManager wrapper class improvements
+ Now rechecks the cached IBinder each time the wrapper is used, and if it's
still null (i.e. the BackupManager was constructed before the system service
came up) it's refetched.  This lets even system code cache a single
BackupManager instance and just keep making calls through it without worrying
about interactions with the life cycle of the backup service.

+ Added a static dataChanged(packageName) method as a convenience for code that
needs to indicate that some other package needs a backup pass.  This is useful
even for third party code in the case of multiple packages in a shared-uid
situation.
2009-07-07 11:40:07 -07:00
Charles Chen
c8ba3b560c Propagating error codes to TextToSpeech.java 2009-07-07 11:38:48 -07:00
Android (Google) Code Review
790a604b9c Merge change 6372 into donut
* changes:
  Fixes #1963217. Increases the invalidate region in compatibility mode.
2009-07-07 11:23:44 -07:00
Romain Guy
1e09597512 Fixes #1963217. Increases the invalidate region in compatibility mode.
To account for rounding errors when scaling the invalidate regions, increase
the dirty rectangle by 1 pixel in each direction
2009-07-07 11:22:45 -07:00
Marco Nelissen
7e566a7926 Add virtual destructor. 2009-07-07 11:03:13 -07:00
Android (Google) Code Review
c1c44a5614 Merge change 6363 into donut
* changes:
  LocationManagerService: Use Context.checkCallingOrSelfPermission for permission checks
2009-07-07 11:02:04 -07:00