summaryrefslogtreecommitdiffstats
path: root/core/java/com
Commit message (Collapse)AuthorAgeFilesLines
* Add IRestoreSession interface for the restore flowChristopher Tate2009-06-073-4/+4
| | | | | | | | Restore is a fairly complicated, somewhat stateful process, so we introduce a new interface to encapsulate the various bits and pieces into a nicely separable component. In particular, this will make it much cleaner to open and interrogate an expensive-to-construct transport and then reuse it for the actual restore process itself.
* Add rough-draft restore API set to IBackupTransportChristopher Tate2009-06-073-2/+78
| | | | | | | | | | * getAvailableBackups returns the list of backup sets available for restore * getAppSet() returns the set of apps available from a given backup set * getRestoreData() streams the full backup data for a given application (within a given backup set) into a FD; that data will be handed to the app's backup agent for processing.
* Adjust IBackupTransport interfaceChristopher Tate2009-06-073-12/+16
| | | | | | | Instead of just passing a package name to performBackup, pass the whole PackageInfo struct, explicitly including the list of signatures for the package. No need to make each transport look this up individually when it's a necessary part of the backup payload for each app.
* More backup workChristopher Tate2009-06-033-0/+57
| | | | | | | | | | | | | | | | | | | | * Put in some permission enforcement around agent connection notification and full-backup scheduling. * Full backup now applies to any package, not just backup participants who have declared their own android:backupAgent * The process of running the backup operation on the set of apps who have been queued for it is now done in a separate thread, with a notification mechanism from the main Backup Manager service to pass along new-agent binding knowledge. There's no longer one do-backup message on the primary Handler per target application. * The new backup thread sets up the desired transport now and passes along the newly backed-up data to it for each backup target. Two transports have been defined so far, GoogleTransport and AdbTransport; both are stubs at present. Note that at present the backup data output file seems to be properly created, but after doBackup() is called on the test app's agent it's still zero size.
* Track activity foreground CPU usage for battery stats.Amith Yamasani2009-06-031-5/+58
| | | | | | | Track the foreground CPU time of an activity so that we can tell if apps are spending more time in the background compared to foreground. Update power profile values for screen backlight and GPS. Fix some javadoc bugs (milliseconds vs. microseconds).
* Add a new method to load html data into the WebView.Ramanan Rajeswaran2009-06-011-1/+8
|
* Fix a hang during bootup.Amith Yamasani2009-05-271-1/+3
| | | | | Some data was not being written to the battery stats during shutdown. So there was insufficient data when reading back at bootup.
* Initial checkin for App Fuel Gauge infrastructure.Amith Yamasani2009-05-222-12/+312
| | | | | This adds the PowerProfile class and data file that provides power consumption numbers for different subsystems. Also added Audio/Video subsystems to track on a per UID basis.
* Merge change 1932 into donutAndroid (Google) Code Review2009-05-201-1/+5
|\ | | | | | | | | * changes: Qualify a type and add some explanatory comments.
| * Qualify a type and add some explanatory comments.Dan Egnor2009-05-181-1/+5
| |
* | Increment BatteryStatsImpl's VERSION.Robert Greenwalt2009-05-191-1/+1
| | | | | | | | | | That'll make it stop trying to interpret older records with the new format. Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
* | Merge change 1579 into donutAndroid (Google) Code Review2009-05-182-7/+21
|\ \ | |/ |/| | | | | * changes: Teleca 2b changes
| * Teleca 2b changesWink Saville2009-05-182-7/+21
| |
* | Record statistics about whether HTTP connections are reused.Dan Egnor2009-05-181-30/+86
|/
* Merge change 1704 into donutAndroid (Google) Code Review2009-05-141-13/+15
|\ | | | | | | | | * changes: New feature to track down #1846038. Adds the ability to export flags encoded in int values so as to make them human readable in HierarchyViewer.
| * New feature to track down #1846038. Adds the ability to export flags encoded ↵Romain Guy2009-05-141-13/+15
| | | | | | | | in int values so as to make them human readable in HierarchyViewer.
* | Merge change 1590 into donutAndroid (Google) Code Review2009-05-142-5/+55
|\ \ | | | | | | | | | | | | * changes: Add wifi multicast filter api (enable/disable). Fixes 1833432. Automatically re-disables any request when the app exits/crashes. Also hooked into Battery Stats for power managment analysis.
| * | Add wifi multicast filter api (enable/disable).Robert Greenwalt2009-05-132-5/+55
| |/ | | | | | | | | Fixes 1833432. Automatically re-disables any request when the app exits/crashes. Also hooked into Battery Stats for power managment analysis.
* | Fix typoMarco Nelissen2009-05-141-1/+1
|/
* Improve shutdown process to send broadcast for applications.Dianne Hackborn2009-05-081-0/+241
| | | | | | | | | | This introduces a new class in the base platform for performing a clean shutdown (which was copied from the classes in the policies). It includes new features to send a shutdown broadcast for applications to do cleanup, and ot have the activity manager pause the current activity before proceeding with the shutdown. These facilities are also use to write at the most recent stat files for sync, battery and user activity.
* Sketch out the IBackupTransport apiChristopher Tate2009-05-071-0/+48
|
* Rewrite SyncStorageEngine to use flat files and in-memory data structures.Dianne Hackborn2009-05-051-0/+153
| | | | | | | | | | | | | | | | | | | | | | The previous implementation used a database for storing all of its state, which could cause a significant amount of IO activity as its tables were updated through the stages of a sync. This new implementation replaces that in-memory data structures, with hand-written code for writing them to persistent storage. There are now 4 files associated with this class, holding various pieces of its state that should be consistent. These are everything from a main XML file of account information that must always be retained, to a binary file of per-day statistics that can be thrown away at any time. Writes of these files as scheduled at various times based on their importance of the frequency at which they change. Because the database no longer exists, there needs to be a new explicit interface for interacting with the sync manager database. This is provided by new APIs on IContentService, with a hidden method on ContentResolver to retrieve the IContentService so that various system entities can use it. Other changes in other projects are required to update to the new API. The goal here is to have as little an impact on the code and functionality outside of SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.
* Merge change 841 into donutAndroid (Google) Code Review2009-04-301-0/+28
|\ | | | | | | | | * changes: TypedProperties: add getStringInfo() to help deal with null strings
| * TypedProperties: add getStringInfo() to help deal with null stringsDave Bort2009-04-291-0/+28
| | | | | | | | Signed-off-by: Dave Bort <dbort@android.com>
* | Merge change 840 into donutAndroid (Google) Code Review2009-04-301-90/+84
|\ \ | |/ | | | | | | * changes: TypedProperties: change the file format to be a subset of Java
| * TypedProperties: change the file format to be a subset of JavaDave Bort2009-04-291-90/+84
| | | | | | | | | | | | | | | | | | | | Types and constants are now case-sensitive. Types come first. Newlines are ignored, but semicolons are required. Comments are now Java-style, not sh-style. unset() now looks like a method instead of a pseudotype. Signed-off-by: Dave Bort <dbort@android.com>
* | Don't crash when /proc/wakelocks can't be opened. Might make board bringup ↵Marco Nelissen2009-04-301-0/+6
|/ | | | | | easier. Verified with simulator, which doesn't have /proc/wakelocks
* First baby steps towards settings backupChristopher Tate2009-04-291-0/+21
| | | | | | | | | | This change adds a sketched outline of the backup system architecture, with all of the major pieces represented other than client-side helpers for specific types of data. IBackupManager and BackupService are public so that we can write test apps against SDK-domain symbols from the outset. What code exists in this change hasn't been tested and may crash. It's the beginnings of the real implementation but of course is barely begun.
* Merge change 459 into donutAndroid (Google) Code Review2009-04-231-0/+692
|\ | | | | | | | | * changes: TypedProperties: initial commit
| * TypedProperties: initial commitDave Bort2009-04-221-0/+692
| |
* | More optimization of dumpsys output.Dianne Hackborn2009-04-221-20/+23
|/ | | | | | | | There are three major classes of changes here: - Avoid writing lines where their values are often empty, false, or some other typical thing. - Use partial writes to the PrintWriter to avoid creating temporary strings. - Use StringBuilder where we need to generate real String objects (and where possible cache the result).
* Merge branch 'readonly-p4-donut' into donutEvan Millar2009-04-181-141/+568
|\
| * AI 146853: Add kernel wakelock data to batteryinfo dump.Evan Millar2009-04-181-141/+568
| | | | | | | | | | | | BUG=1755458 Automated import of CL 146853
* | replaced integer * and % with shift operations, for performanceTammo Spalink2009-04-162-14/+14
| |
* | Initial code for cdma sms encode and decode, in java, with simple tests.Tammo Spalink2009-04-142-0/+242
| | | | | | | | (direct cherry-pick of master 42/42/8)
* | Fix issue #1769910 (Track activity launch times)Dianne Hackborn2009-04-071-0/+1
|/ | | | | | The usage stats service now collects per-activity launch time stats. There are a number of fixes and improvements to its statistics management and collection; it now operates its calendar in GMT and ensures that for checkin purposes it always reports one day and only one complete day to the checkin service. Also change the checkin option from "-c" to "--checkin" since it is really a special thing.
* AI 144333: Change the way the battery level tracking code works in ↵Evan Millar2009-04-022-22/+27
| | | | | | | | | | | | | | | BatteryStats. Before we simply kept track of the last 2 levels as recorded at plug and unplug events. During charge cycles this would be useful because it would tell us what the start and end levels were in the last discharge cycle. However during a discharge cycle this information could be misleading as it would give you the level at the last unplug event (beginning the the discharge cycle) and last plug event (end of the previous discharge cycle). Now we are still keeping track of 2 values, but they are "discharge cycle start level" and "discharge cycle current level". During a discharge cycle this will give you the level the current discharge cycle started at, and the current level. During a charge cycle the same data will be supplied as before (the start/end of the last discharge cycle). B=144249 Automated import of CL 144333
* AI 144044: First cut of tunneling HTTP requests over gtalk connection:Doug Zongker2009-04-011-1/+7
| | | | | | | | | | | | | | | | | - We define HttpRequest and HttpResponse protocol buffers. The RMQ mechanism is *not* used for these (though the messages define rmq id fields in case we want to start). - GTalkHttpClient will send an http request over the connection to MCS if: - gtalk_tunnel_http in gservices is turned on - the request destination is the android proxy - it can make a connection to gtalkservice The request falls back to using GoogleHttpClient if it can't be processed over the MCS connection. A few shortcuts are taken with cookie handling, but these are okay for the envisioned usage. Automated import of CL 144044
* AI 143800: am: CL 143748 Fix issue #1743326 (More battery stats)Dianne Hackborn2009-03-312-9/+306
| | | | | | | | | | | | Adds stats for: - Number of raw user events that have happened in the system. - Number of times user activity has been reported, dividied by UID and type of activity. - Duration of screen brightness levels in 4 buckets. - Per-UID tracking of who has turned on Wifi and how long we can attribute it being on because of them. Original author: hackbod Merged from: //branches/cupcake/... Automated import of CL 143800
* AI 143196: am: CL 142964 Add a function to clear styles in EditStyledText.Satoshi Kataoka2009-03-271-45/+346
| | | | | | | | | | Add a function to change getBackground color. Add a function to check whether EditStyledText has styled text or not. Refactor function and variable names for readability. Original author: satok Merged from: //branches/cupcake/... Automated import of CL 143196
* AI 143147: Manual integrationDianne Hackborn2009-03-271-0/+66
| | | | Automated import of CL 143147
* Automated import from //branches/donutburger/...@142470,142470Romain Guy2009-03-242-9/+34
|
* Automated import from //branches/donutburger/...@142347,142347Dianne Hackborn2009-03-242-16/+119
|
* Automated import from //branches/donutburger/...@141515,141515Dianne Hackborn2009-03-241-1/+9
|
* Automated import from //branches/donutburger/...@141355,141355Bob Lee2009-03-241-10/+6
|
* Automated import from //branches/donutburger/...@141168,141168Satoshi Kataoka2009-03-241-2/+7
|
* Automated import from //branches/donutburger/...@141149,141149Satoshi Kataoka2009-03-241-3/+4
|
* Automated import from //branches/donutburger/...@141126,141126Satoshi Kataoka2009-03-241-1/+1
|
* Automated import from //branches/donutburger/...@141112,141112Satoshi Kataoka2009-03-241-1/+0
|
* Automated import from //branches/donutburger/...@141001,141001Dianne Hackborn2009-03-241-1/+1
|