1054 Commits

Author SHA1 Message Date
Christopher Tate
7d562ec393 Add a new IRestoreObserver callback class to the restore process
The observer is told when restore begins how many packages are being restored.
It then gets an onUpdate() call telling it that the Nth package is now
undergoing restore.  Ultimately, its restoreFinished() callback is invoked,
passing a simple success/fail error code, to let it know that the restore
operation has concluded.
2009-06-25 18:09:28 -07:00
Joe Onorato
4ababd922e Make the BackupHelperDispatcher properly handle multiple helpers. 2009-06-25 20:36:09 -04:00
Christopher Tate
5cb400bd72 Keep track of backup state independently for each transport
Backup transports now provide the Backup Manager with a suggested name with
which it can disambiguate any transport-specific bookkeeping that it needs to
maintain.  The Manager keeps separate application backup 'state blobs' for each
transport now, preventing things from getting out of step if the device is
switched among multiple transports.

Also, the metadata backup agent is always invoked now on each backup pass.  This
is cheap when there is nothing to do, but also strongly ensures that we never
wind up in a situation where a given transport destination has not been given
all of the metadata necessary for the backup set.
2009-06-25 16:09:03 -07:00
Android (Google) Code Review
6067d953d7 Merge change 5428 into donut
* changes:
  Improve handling of FILL_PARENT in RelativeLayout.
2009-06-25 15:28:10 -07:00
Romain Guy
f782e60efc Improve handling of FILL_PARENT in RelativeLayout.
This was causing trouble with VideoView, in Gallery in particular.
2009-06-25 15:26:49 -07:00
Android (Google) Code Review
c44989d6c7 Merge change 5350 into donut
* changes:
  move ui/Time.cpp to core/jni, since this is the only place it is used
2009-06-25 15:09:44 -07:00
Android (Google) Code Review
2450173b78 Merge change 5414 into donut
* changes:
  Add caching of the speech rate and language in android.speech.tts.TextToSpeech so the speech params can be passed along in calls for text synthesis.
2009-06-25 14:58:51 -07:00
Android (Google) Code Review
c4e0ff750e Merge change 5417 into donut
* changes:
  Fixes #1943309. RelativeLayout was confused by gravities.
2009-06-25 14:49:23 -07:00
Romain Guy
f7dabb088a Fixes #1943309. RelativeLayout was confused by gravities.
RelativeLayout, when measured with AT_MOST, was applying the gravity on its
children way too early. This caused the RL to set its measured size to
a value that was larger than necessary. This fixes the issue by deferring
the positioning of the gravity-dependent children until the dimensions
of the layout are known.
2009-06-25 14:47:14 -07:00
Android (Google) Code Review
157601594f Merge change 5413 into donut
* changes:
  Need to write the correct float math.
2009-06-25 14:44:38 -07:00
Grace Kloba
2b2e9d9152 Need to write the correct float math. 2009-06-25 14:43:53 -07:00
Mathias Agopian
864c0d50cd move ui/Time.cpp to core/jni, since this is the only place it is used 2009-06-25 14:39:56 -07:00
Jean-Michel Trivi
87c9684fd0 Add caching of the speech rate and language in android.speech.tts.TextToSpeech
so the speech params can be passed along in calls for text synthesis.
2009-06-25 14:29:15 -07:00
Android (Google) Code Review
eb3ec64a6a Merge change 5397 into donut
* changes:
  Fixes #1943915. Prevents circular dependency exception when using several NO_ID views.
2009-06-25 13:32:52 -07:00
Romain Guy
1ab621e316 Fixes #1943915. Prevents circular dependency exception when using several NO_ID
views.
2009-06-25 13:31:57 -07:00
Android (Google) Code Review
78fb3775ee Merge change 5385 into donut
* changes:
  Updating the TextToSpeech.java with skeleton methods.
2009-06-25 13:22:57 -07:00
Android (Google) Code Review
7cb8182e36 Merge change 5390 into donut
* changes:
  When mPreventDrag is true, don't respond to long press. This should prevent the context menu popping up in the Map sites.
2009-06-25 13:18:24 -07:00
Android (Google) Code Review
35a47a6eeb Merge change 5389 into donut
* changes:
  Skip spaces and tabs in readProcLines()
2009-06-25 13:11:18 -07:00
Romain Guy
e24ef6032f Fixes #1940605. RelativeLayout was swapping horizontal and vertical
dependencies.
2009-06-25 13:01:55 -07:00
Grace Kloba
6c451b766d When mPreventDrag is true, don't respond to long press. This should prevent the context menu popping up in the Map sites. 2009-06-25 12:25:30 -07:00
Amith Yamasani
add868ceba Skip spaces and tabs in readProcLines()
This is to fix a problem in the parsing of /proc/pid/status file.
2009-06-25 12:24:56 -07:00
Android (Google) Code Review
a7251991ff Merge change 5288 into donut
* changes:
  Invoke getSystem.updateConfiguration when binding an application to update config changes in Resources.mSystem Since Resources is preloaded in the zygote, system resources in Resources need to be updated with config changes every time an application is started
2009-06-25 12:14:53 -07:00
Android (Google) Code Review
0bcfc537e8 Merge change 5386 into donut
* changes:
  Fixes #1940839. Prevents NPE in RelativeLayout when a non-existing View is targeted.
2009-06-25 12:05:08 -07:00
Romain Guy
b8f8de8516 Fixes #1940839. Prevents NPE in RelativeLayout when a non-existing View is
targeted.
2009-06-25 12:03:56 -07:00
Charles Chen
aaf842edbf Updating the TextToSpeech.java with skeleton methods. 2009-06-25 11:59:29 -07:00
Suchi Amalapurapu
c984329d30 Invoke getSystem.updateConfiguration when binding an application to
update config changes in Resources.mSystem
Since Resources is preloaded in the zygote, system resources in Resources
need to be updated with config changes every time an application is started
2009-06-25 11:43:53 -07:00
Grace Kloba
0d8b77c245 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.
2009-06-25 11:20:51 -07:00
Android (Google) Code Review
f881762f97 Merge change 5351 into donut
* changes:
  Add a method to Process to get uid for a pid.
2009-06-25 00:46:17 -07:00
Android (Google) Code Review
60a0ad65f4 Merge change 5329 into donut
* changes:
  frameworks/base - CDMA settings additions
2009-06-24 23:39:07 -07:00
Amith Yamasani
819f928f6a 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.
2009-06-24 23:26:29 -07:00
Android (Google) Code Review
83b8678dd4 Merge change 5319 into donut
* changes:
  Add new APIs to LauncherActivity to be used elsewhere.
2009-06-24 20:29:21 -07:00
David Krause
d0f6715dcb 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
2009-06-24 20:07:28 -07:00
Dianne Hackborn
2bacbdfb51 Add new APIs to LauncherActivity to be used elsewhere. 2009-06-24 19:03:15 -07:00
Android (Google) Code Review
5416d7c905 Merge change 5317 into donut
* changes:
  Start backing up wallpaper
2009-06-24 18:46:59 -07:00
Christopher Tate
111bd4acdb 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.
2009-06-24 18:45:56 -07:00
Android (Google) Code Review
7941e903c9 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.
2009-06-24 17:53:57 -07:00
Android (Google) Code Review
69e1f472c3 Merge change 5289 into donut
* changes:
  Fix TextView's fading edge when compound drawables are setup.
2009-06-24 17:18:48 -07:00
Romain Guy
076dc9fa57 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.
2009-06-24 17:17:51 -07:00
Android (Google) Code Review
67669c9c17 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.
2009-06-24 16:52:16 -07:00
Dan Egnor
efe52647f6 Modify the IBackupTransport API to support bulk restore operations.
Change the BackupManagerService and LocalTransport to support the new API.
2009-06-24 16:49:44 -07:00
Android (Google) Code Review
5158cc5508 Merge change 5259 into donut
* changes:
  Adding TTS_QUEUE_PROCESSING_COMPLETED action to the list of Intents
2009-06-24 16:25:29 -07:00
Dianne Hackborn
9c8dd55a9d 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.
2009-06-24 16:23:14 -07:00
Android (Google) Code Review
0bc7b8490b Merge change 5248 into donut
* changes:
  Spell out the month names in the de_AT date format file.
2009-06-24 15:55:48 -07:00
Android (Google) Code Review
3e376a74b3 Merge change 5171 into donut
* changes:
  Track native processes and airplane mode.
2009-06-24 15:21:16 -07:00
Charles Chen
0477954a67 Adding TTS_QUEUE_PROCESSING_COMPLETED action to the list of Intents 2009-06-24 14:55:53 -07:00
Romain Guy
9560703839 Reverse the order in which RelativeLayout measures and positions children.
This fixes RelativeLayouts with height=wrap_content.
2009-06-24 14:38:34 -07:00
Romain Guy
a0fd1d742d Fix NPE in RelativeLayout. 2009-06-24 14:25:43 -07:00
Eric Fischer
fed0bcfae3 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.
2009-06-24 14:20:04 -07:00
Android (Google) Code Review
2cf6f5df59 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.)
2009-06-24 13:54:28 -07:00
Mike LeBeau
35df87c631 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.)
2009-06-24 13:06:39 -07:00