Mike Lockwood
d4bdc7b4da
Environment: Fix default mount point for external storage
...
/mnt/sdcard is the real mount point. /sdcard is just a symlink.
Change-Id: If584e5cd31238d5b263de5bd72e179d53875d8c3
Signed-off-by: Mike Lockwood <lockwood@android.com >
2011-05-25 23:33:50 -04:00
Jeff Brown
b5b1fb2585
Merge "Support wrapping app processes to inject debug instrumentation. Bug: 4437846"
2011-05-24 14:26:18 -07:00
Mike Lockwood
9fd4c6d3ae
am 49b9449b: am d8d84708: am 988b6648: Merge "MountService: Add StorageVolume as extra in storage related broadcasts." into honeycomb-mr2
...
* commit '49b9449b6605c7b4f77f9a0635ba93f7dfa0ea47':
MountService: Add StorageVolume as extra in storage related broadcasts.
2011-05-24 12:56:56 -07:00
Jeff Brown
ebed7d6e35
Support wrapping app processes to inject debug instrumentation.
...
Bug: 4437846
Change-Id: I4552501c693716b14714afb5c5248edaca9547ab
2011-05-24 12:01:25 -07:00
Jeff Sharkey
442fa21e98
Merge "APIs to profile network usage for current UID."
2011-05-23 18:38:04 -07:00
Mike Lockwood
49b9449b66
am d8d84708: am 988b6648: Merge "MountService: Add StorageVolume as extra in storage related broadcasts." into honeycomb-mr2
...
* commit 'd8d8470825a637843d45a3b436e80a3b85f1dd11':
MountService: Add StorageVolume as extra in storage related broadcasts.
2011-05-23 17:09:30 -07:00
Mike Lockwood
d8d8470825
am 988b6648: Merge "MountService: Add StorageVolume as extra in storage related broadcasts." into honeycomb-mr2
...
* commit '988b6648b0138fe1294228e17164b2f1d6a4042d':
MountService: Add StorageVolume as extra in storage related broadcasts.
2011-05-23 17:06:47 -07:00
Mike Lockwood
a5250c9392
MountService: Add StorageVolume as extra in storage related broadcasts.
...
Change-Id: I8e1a21ae233ba9812e58b363b59a66b260a01cbf
Signed-off-by: Mike Lockwood <lockwood@android.com >
2011-05-23 20:01:55 -04:00
Dianne Hackborn
37cd57772b
Merge "resolved conflicts for merge of 070a19e0 to master"
2011-05-23 16:59:20 -07:00
Steve Block
560e97f8e0
Merge "Log a StrictMode violation when WebView methods are called on the wrong thread"
2011-05-23 14:34:00 -07:00
Dianne Hackborn
939461300a
resolved conflicts for merge of 070a19e0 to master
...
Change-Id: I855ab02a4e8dd465af67fd23b66c0dace76bd411
2011-05-23 14:10:26 -07:00
Steve Block
08d584cd1c
Log a StrictMode violation when WebView methods are called on the wrong thread
...
Bug: 4373919
Change-Id: I1f526e033ce316e51b3de7fe4ac88119fbc65b4e
2011-05-23 14:45:02 +01:00
Jeff Sharkey
eedcb9525b
APIs to profile network usage for current UID.
...
Added startDataProfiling() and stopDataProfiling() to TrafficStats,
which can be used by apps to measure network usage delta between two
points in time. Currently takes two NetworkStats snapshots and returns
delta, which will eventually include tag-level granularity. Added
tests for NetworkStats delta subtraction.
Added NMS.getNetworkStatsUidDetail() that returns stats for specific
UID. Always gives stats access for the calling UID, otherwise enforces
that caller has permission. Fix readSingleLongFromFile(), since
/proc/ files don't have well-defined lengths.
Change-Id: Ic5b6414d8effbd66846e275b00d4b8a82c74589d
2011-05-21 15:02:58 -07:00
Dianne Hackborn
070a19e035
am 5c8caba2: am 1b144e62: Merge "Add ParcelFileDescriptor.fromFd() and .adoptFd()." into honeycomb-mr2
...
* commit '5c8caba2e590792531ffb2c9f4ea924993662abd':
Add ParcelFileDescriptor.fromFd() and .adoptFd().
2011-05-20 16:13:54 -07:00
Dianne Hackborn
5c8caba2e5
am 1b144e62: Merge "Add ParcelFileDescriptor.fromFd() and .adoptFd()." into honeycomb-mr2
...
* commit '1b144e625fb0d34cd680c44cbcfb2deb8a76d4c6':
Add ParcelFileDescriptor.fromFd() and .adoptFd().
2011-05-20 14:32:35 -07:00
Dianne Hackborn
ea2117bdc0
Add ParcelFileDescriptor.fromFd() and .adoptFd().
...
Change-Id: I2fe0429188dc80abaa0c8977f2e43a010e0f4da2
2011-05-20 12:48:22 -07:00
Jean-Baptiste Queru
5c3816f2ff
Merge c41aefe1
...
Change-Id: I70fc4382f832d1a2bded8a5ee7d9b96fac77879b
2011-05-19 07:54:53 -07:00
Robert Greenwalt
c41aefe1d4
am 59b1a4ed: Switch to use netd to add/remove routes.
...
* commit '59b1a4ede7032c1b4d897e13dd4ede09b5e14743':
Switch to use netd to add/remove routes.
2011-05-18 16:33:16 -07:00
Robert Greenwalt
59b1a4ede7
Switch to use netd to add/remove routes.
...
Also adds support for v6 routes and for removing single routes.
Change-Id: I1c4f08c7938371090944d8d6f603e1e0d6d70c01
2011-05-18 15:25:43 -07:00
Mike Lockwood
fa1e5561cc
am 53b988ba: am 5a79cfd7: am 27ac64ec: Merge "StorageVolume: Add getStorageId() accessor" into honeycomb-mr2
...
* commit '53b988ba1842f40e595bb85f2ca055c24787e6dc':
StorageVolume: Add getStorageId() accessor
2011-05-18 09:23:35 -07:00
Mike Lockwood
53b988ba18
am 5a79cfd7: am 27ac64ec: Merge "StorageVolume: Add getStorageId() accessor" into honeycomb-mr2
...
* commit '5a79cfd7518defdce1911cecbc2441bb0a057e54':
StorageVolume: Add getStorageId() accessor
2011-05-17 16:49:40 -07:00
Mike Lockwood
fbfe555125
StorageVolume: Add getStorageId() accessor
...
This ID is used for MTP as well as per volume querying in the media provider.
Change-Id: Ic4fc986d972bd477730643f7e9450c390c0b3a4b
Signed-off-by: Mike Lockwood <lockwood@android.com >
2011-05-17 17:19:37 -04:00
Mike Lockwood
8fa5b03c1b
resolved conflicts for merge of fc4a3d37 to master
...
Change-Id: I40f603ba9330c3e882f4d58398095f4094725b21
2011-05-16 15:49:53 -04:00
Mike Lockwood
fc4a3d37ef
am b822d246: am 0a93d875: Merge "StorageManager: Clean up and generalize storage configuration resources" into honeycomb-mr2
...
* commit 'b822d2464dc59056f736b0c49f0ac514c7cbb9d9':
StorageManager: Clean up and generalize storage configuration resources
2011-05-16 12:38:36 -07:00
Mike Lockwood
0a93d87552
Merge "StorageManager: Clean up and generalize storage configuration resources" into honeycomb-mr2
2011-05-16 12:34:02 -07:00
Mike Lockwood
2f6a388553
StorageManager: Clean up and generalize storage configuration resources
...
Replace config_emulateExternalStorage, config_externalStorageRemovable,
config_externalStoragePaths, config_externalStorageDescriptions and
config_mtpReserveSpaceMegabytes resources with an XML resource file
to describe the external storages that are available.
Add android.os.storage.StorageVolume class
StorageManager.getVolumeList() now returns an array of StorageVolume
Change-Id: I06ce1451ebf08b82f0ee825d56d59ebf72eacd3d
Signed-off-by: Mike Lockwood <lockwood@android.com >
2011-05-16 14:29:23 -04:00
Gilles Debunne
056054f7c5
Merge "Links in Environment javadoc"
2011-05-16 11:14:41 -07:00
Dianne Hackborn
fbdf9df053
am 2a20583a: am 700ab1c7: Merge "DO NOT MERGE. Integrate from master: Improve activity manager debug dumps." into honeycomb-mr2
...
* commit '2a20583a5f436d66ab73cd6c0fdc73e59a3cecad':
DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.
2011-05-16 11:09:31 -07:00
Dianne Hackborn
24df0757f8
am ed9321ab: am f9dd34f4: DO NOT MERGE: Integrate from main - Deprecate a bunch of APIs.
...
* commit 'ed9321ab5d282e40e7c5fa9caf0eb9d05646f2d0':
DO NOT MERGE: Integrate from main - Deprecate a bunch of APIs.
2011-05-13 18:41:04 -07:00
Dianne Hackborn
9a84983a9f
DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.
...
Activity manager now does all dump requests into apps
asynchronously, so it can nicely timeout if there is an
app problem. Also lots of general cleanup of the am
dump output.
Change-Id: I99447b87f77a701af52aeca984d93dfe931f065d
2011-05-13 18:38:19 -07:00
Dianne Hackborn
f9dd34f4d3
DO NOT MERGE: Integrate from main - Deprecate a bunch of APIs.
...
And clean up some documentation.
Change-Id: I8f06e2fc3bb6c552581b64657e82ba690d524232
2011-05-13 18:31:04 -07:00
Gilles Debunne
ee1d630291
Links in Environment javadoc
...
Change-Id: Ib3383152ff6114fdaba5245bc8357f78bc9d5fcf
2011-05-13 10:09:32 -07:00
Dianne Hackborn
39cf8c97c3
resolved conflicts for merge of ec85619f to master
...
Change-Id: Id820ddcb9d19341a1b383b3bef7659a2c0621cfa
2011-05-12 18:37:33 -07:00
Dianne Hackborn
ec85619f02
am d46849a5: am a8138732: MR2 is going to be API 13.
...
* commit 'd46849a535ab64fd47fc8e9c557ca5f4da9e977b':
MR2 is going to be API 13.
2011-05-12 17:39:30 -07:00
Dianne Hackborn
a8138732a0
MR2 is going to be API 13.
...
Change-Id: I05b65ace073b8731e85b41ac4ae63e2745cb46b5
2011-05-12 16:26:47 -07:00
Chia-chi Yeh
47f8f0fa70
Add a method to create ParcelFileDescriptors from DatagramSockets.
...
Change-Id: I16dddb2395628657b140b53a1b2fee5f311b049a
2011-05-12 16:25:27 -07:00
Joe Onorato
f2a4568afc
Merge "Fix race conditions in WakeLocks."
2011-05-04 18:13:10 -07:00
Joe Onorato
d7350e3a56
Fix race conditions in WakeLocks.
...
Bug: 3439332
Change-Id: I70c583e6a73960df8faad69675947b87642c6228
2011-05-04 18:10:19 -07:00
Jeff Sharkey
9a13f36cdd
Return NetworkStats bundle from NM service.
...
Introduce NetworkStats which is a collection of network statistics,
which should match the structure communicated by kernel module through
netd. Will introduce tags and fg/bg stats later. Kept entirely in a
flat data structure to optimize parcel speed.
Initial pass at returning NetworkStats from NetworkManagementService,
both summary and details. Will eventually pull data from kernel module
over netd connection.
Change-Id: I92d9f61678ec8c22e2ce26775fb035a0cf32413f
2011-05-04 16:07:21 -07:00
Mike Lockwood
a2a8419db8
am e3b498be: DO NOT MERGE StorageManager: Add getVolumeList() and getVolumeState() methods
...
* commit 'e3b498be0ae05367e9b84f4fac2ac5cf57a6b091':
DO NOT MERGE StorageManager: Add getVolumeList() and getVolumeState() methods
2011-05-04 08:57:07 -07:00
Mike Lockwood
e3b498be0a
DO NOT MERGE StorageManager: Add getVolumeList() and getVolumeState() methods
...
Change-Id: I8ba7e56797b0106dafaa6388393e5c629f27e6e6
Signed-off-by: Mike Lockwood <lockwood@android.com >
2011-05-04 10:41:19 -04:00
Mike Lockwood
d967f4664f
DO NOT MERGE StorageManager: Add getVolumeList() and getVolumeState() methods
...
Change-Id: I43d5c1730b340f1288b58012234b38f801001b71
Signed-off-by: Mike Lockwood <lockwood@android.com >
2011-05-03 21:03:55 -04:00
Conley Owens
1c6afcbf1f
am 2d40bf91: am eac835e5: am 9c4ba258: Merge "Removing dead store; it was likely a relict of debuging code."
...
* commit '2d40bf91e6ad71505ec84743c5ad0b854ecf5928':
Removing dead store; it was likely a relict of debuging code.
2011-05-03 16:19:53 -07:00
Conley Owens
2d40bf91e6
am eac835e5: am 9c4ba258: Merge "Removing dead store; it was likely a relict of debuging code."
...
* commit 'eac835e52e8378b33a2b34b7edb803290154588d':
Removing dead store; it was likely a relict of debuging code.
2011-05-03 16:14:31 -07:00
Jozef BABJAK
ad3b2e3a16
Removing dead store; it was likely a relict of debuging code.
...
Change-Id: I685c6df119212f48f90dd40d01a3638a33ce2800
2011-04-29 13:00:54 +02:00
Dianne Hackborn
9567a66a5e
Deprecate a bunch of APIs.
...
And clean up some documentation.
Change-Id: I7882183b3daf883b7ac6098d19f88dc7cfbcdf61
2011-04-20 10:26:44 -07:00
Dianne Hackborn
1fadab5c36
More battery stats improvements.
...
We now write to the parcel using deltas. For common situations,
it only takes 4 bytes to write a delta (new command, time delta,
significant state changes, flags indicating additional state that
follows).
Increasing the buffer size to 128K, this give us 32,768 samples
if they all fit in the smallest delta. A device that is doing
something every minute (like acquiring a wake lock or doing a
wifi scan) for our max target battery life of 30 days would
generate 43,200 samples.
Also some turning to the maximum time between samples at which
we decide to completely collapse two samples.
Change-Id: I074a698d27ccf9389f9585abfc983af2f5ba7a54
2011-04-14 18:02:16 -07:00
Dianne Hackborn
0ffc988a7f
Rewrite battery history storage.
...
We now write battery history directly into a buffer, instead of
creating objects. This allows for more efficient storage; later
it can be even better because we can only write deltas.
The old code is still there temporarily for validation.
Change-Id: I9707d4d8ff30855be8ebdc93bc078911040d8e0b
2011-04-14 10:57:22 -07:00
Elliott Hughes
4390758f27
Use an @hide libcore API to get the FileDescriptor from a Socket.
...
Saves having your own native code...
Change-Id: Ib082a6530bcf743a35031500cee6318bc92d4d35
2011-04-12 14:25:23 -07:00
Doug Zongker
a4f39a6edd
Merge "protect all /cache/recovery/last_* files from deletion"
2011-04-12 11:30:47 -07:00