summaryrefslogtreecommitdiffstats
path: root/libs/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* | am 6e1647a2: Merge change 5829 into donutAndroid (Google) Code Review2009-07-011-54/+80
|\ \ | |/ | | | | | | | | | | Merge commit '6e1647a212317f4ee8bcc23948b6621a59172954' * commit '6e1647a212317f4ee8bcc23948b6621a59172954': Fix issue #1673793: Theme styles don't apply.
| * Fix issue #1673793: Theme styles don't apply.Dianne Hackborn2009-06-301-54/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out this was not a problem in the resource code at all. Rather, the system process has a cache of pre-loaded attributes it uses to avoid continually reloading things as it needs them. Well it turns out this cache wasn't flushed after a package was uninstalled or a configuration changed, so you could re-install an app where you change its style resources so its theme now points to one that is inconsistent in the cache. This is mostly a problem for developers, where they continually install new versions of an app where resources have changed. This could possibly show up when updating an app on a normal phone, although the problem would eventually correct itself since this cache uses weak references. Anyway, the cache is now reworked to be flushed appropriately. This change also includes an update to aapt to be able to dump the contents of bags in resources.
* | am d09f86ce: Merge changes 5548,5549 into donutAndroid (Google) Code Review2009-06-292-3/+9
|\ \ | |/ | | | | | | | | | | | | Merge commit 'd09f86ce175fad6ddbd446363f327dfa0575a1d2' * commit 'd09f86ce175fad6ddbd446363f327dfa0575a1d2': Better (and less) logging from backup. Add an extra null terminator. String8::unlockBuffer is
| * Merge changes 5548,5549 into donutAndroid (Google) Code Review2009-06-262-3/+9
| |\ | | | | | | | | | | | | | | | * changes: Better (and less) logging from backup. Add an extra null terminator. String8::unlockBuffer is supposed to be doing this, but it's not and I can't figure out why. This makes BackupHelperDispatcher able to read the keys correctly.
| | * Better (and less) logging from backup.Joe Onorato2009-06-262-3/+9
| | |
* | | am 72eb0aca: Merge change 5483 into donutAndroid (Google) Code Review2009-06-291-2/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '72eb0acad5cffc57ce5006f6deab29ee259e461e' * commit '72eb0acad5cffc57ce5006f6deab29ee259e461e': Expand support for different screen sizes.
| * | Expand support for different screen sizes.Dianne Hackborn2009-06-261-2/+3
| |/ | | | | | | | | | | | | | | | | Applications can now declare that they support small, normal, or large screens. Resource selection can also be done based on these sizes. By default, pre-Donut apps are false for small and large, and Donut or later apps are assumed to support all sizes. In either case they can use <supports-screens> in their manifest to declare what they actually support.
* | am df65b60c: Merge change 5243 into donutAndroid (Google) Code Review2009-06-241-17/+14
|\ \ | |/ | | | | | | | | | | Merge commit 'df65b60ce33e5a56815864f8f0713e25378fa649' * commit 'df65b60ce33e5a56815864f8f0713e25378fa649': Only report "unknown metadata" once per restore helper
| * Only report "unknown metadata" once per restore helperChristopher Tate2009-06-241-17/+14
| | | | | | | | Also removes the auto-free object, replacing it with direct memory manipulation.
* | am 54118adb: Put back LOGP -> printf in the backup helper codeChristopher Tate2009-06-241-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit '54118adb3766fdf73a409102b88d7494bb6889a3' * commit '54118adb3766fdf73a409102b88d7494bb6889a3': Put back LOGP -> printf in the backup helper code
| * Put back LOGP -> printf in the backup helper codeChristopher Tate2009-06-241-1/+1
| |
* | am 0e034e5a: Merge change 5162 into donutAndroid (Google) Code Review2009-06-241-13/+89
|\ \ | |/ | | | | | | | | | | Merge commit '0e034e5a9a71e5e196baff630dca796a0e3ed3e2' * commit '0e034e5a9a71e5e196baff630dca796a0e3ed3e2': Preserve file access mode when backing up / restoring files
| * Preserve file access mode when backing up / restoring filesChristopher Tate2009-06-231-13/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a fixed-size metadata block at the head of each file's content entity. The block is versioned, and fixed-size on the theory that it might be nice to be able to recover the content (if not the full metadata) of the files if we're ever confronted with data backed up some hypothetical future helper that stored expanded metadata. The net effect is that now on restore, we assign the same access mode to the file that it originally had when backed up. Also, some of the code was failing to properly free transient heap-based buffers when it encountered errors. This has been fixed with the addition of a tiny stack-based object whose job it is to free() its designated pointer from its destructor.
* | am 11b15779: Add file mode to the file-backup saved state blobsChristopher Tate2009-06-231-31/+42
|\ \ | |/ | | | | | | | | | | Merge commit '11b157790234d3d2f116ce4c7ed1d3d00fb78bc3' * commit '11b157790234d3d2f116ce4c7ed1d3d00fb78bc3': Add file mode to the file-backup saved state blobs
| * Add file mode to the file-backup saved state blobsChristopher Tate2009-06-231-31/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change puts the file's access mode into the saved-state blob used by the file backup helpers. The tests have been updated for the new blob content format. What this change *doesn't* do is actually backup/restore the file mode. This change is a prerequisite for that, but mode preservation in backup/restore will require adding metadata to the backup data stream itself, so will be approached a bit more carefully. (Also fixed one outright bug in the test program: ReadEntityData() had been changed to return a ssize_t union of either a byte-count or a negative number indicating error, but the test program was still assuming that nonzero == error, and was spuriously failing.)
* | am 72be4049: Merge change 4910 into donutAndroid (Google) Code Review2009-06-221-11/+11
|\ \ | |/ | | | | | | | | | | Merge commit '72be40490951d3f9d0ada16fcf5288d0c3306d88' * commit '72be40490951d3f9d0ada16fcf5288d0c3306d88': fix warnings that will show up with GCC 4.4 (in master)
| * Merge change 4910 into donutAndroid (Google) Code Review2009-06-221-11/+11
| |\ | | | | | | | | | | | | * changes: fix warnings that will show up with GCC 4.4 (in master)
| | * fix warnings that will show up with GCC 4.4 (in master)Mathias Agopian2009-06-221-11/+11
| | |
* | | am 856dd8a6: Merge change 4952 into donutAndroid (Google) Code Review2009-06-221-3/+18
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '856dd8a60a70a5b7dca2bf2114872ce063e2ad60' * commit '856dd8a60a70a5b7dca2bf2114872ce063e2ad60': Helper API cleanup. Allows multiple helpers to function,
| * | Helper API cleanup. Allows multiple helpers to function,Joe Onorato2009-06-221-3/+18
| |/ | | | | | | | | because they'll always go in the same order, and this lets us not have to write headers to keep them paired.
* | am 1585bd24: Merge change 4828 into donutAndroid (Google) Code Review2009-06-191-3/+84
|\ \ | |/ | | | | | | | | | | Merge commit '1585bd24c10d16351f89e32dddbfa799f18db6bd' * commit '1585bd24c10d16351f89e32dddbfa799f18db6bd': Report densities in badging, debugging for nine patch bug.
| * Report densities in badging, debugging for nine patch bug.Dianne Hackborn2009-06-191-3/+84
| | | | | | | | | | | | | | The aapt tool now reports all available densities like it already did for locales. Also this includes more resource data output, which I was using to examine bug #1867049 (which at this point I am unable to reproduce).
* | am 5502f04c: Merge change 4709 into donutAndroid (Google) Code Review2009-06-182-26/+37
|\ \ | |/ | | | | | | | | | | Merge commit '5502f04c1dcf2b1918858bacb99fb0480a711707' * commit '5502f04c1dcf2b1918858bacb99fb0480a711707': backup stuff
| * backup stuffJoe Onorato2009-06-182-26/+37
| |
* | am 16ce3504: Merge change 4708 into donutAndroid (Google) Code Review2009-06-181-29/+86
|\ \ | |/ | | | | | | | | | | Merge commit '16ce3504c5bf98d95d5c36001f755bb4b15253c9' * commit '16ce3504c5bf98d95d5c36001f755bb4b15253c9': Make RestoreHelper and friends also write out the snapshot state.
| * Make RestoreHelper and friends also write out the snapshot state.Joe Onorato2009-06-181-29/+86
| |
* | am de72697b: Merge change 4524 into donutAndroid (Google) Code Review2009-06-171-4/+4
|\ \ | |/ | | | | | | | | | | Merge commit 'de72697b771d33738c5f9d6c28087504e0796622' * commit 'de72697b771d33738c5f9d6c28087504e0796622': FileRestoreHelper and RestoreHelperDispatcher work.
| * FileRestoreHelper and RestoreHelperDispatcher work.Joe Onorato2009-06-171-4/+4
| |
* | am 5f15d151: checkpoint BackupDatAInput / RestoreHelperJoe Onorato2009-06-172-208/+41
|\ \ | |/ | | | | | | | | | | Merge commit '5f15d151b5101fadfe6cba1e8f4aa6367e8c603e' * commit '5f15d151b5101fadfe6cba1e8f4aa6367e8c603e': checkpoint BackupDatAInput / RestoreHelper
| * checkpoint BackupDatAInput / RestoreHelperJoe Onorato2009-06-162-208/+41
| |
* | am 2fdd428e: Fix some backup reader/writer issues; make local transport do ↵Christopher Tate2009-06-141-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | backup Merge commit '2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2' * commit '2fdd428e0f18384160f7c38ce3a2cd9ba7e7b2c2': Fix some backup reader/writer issues; make local transport do backup Fix the jni initializer. Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput. Fix bug #1812041: activity manager crash with bad args. Journal backup requests so that they won't be lost in a crash Fix data connection issues.
| * Add RestoreFileHelper, BackupDataInput, and add java wrappers for the ↵Joe Onorato2009-06-121-1/+1
| | | | | | | | methods on BackupDataOutput.
* | am 78f0f8cb: Merge changes 3953,3954 into donutAndroid (Google) Code Review2009-06-121-92/+227
|\ \ | |/ | | | | | | | | | | | | Merge commit '78f0f8cb2efe9410127c39201e240f6d438eb53c' * commit '78f0f8cb2efe9410127c39201e240f6d438eb53c': Make the file backup helper not crash if a file you requested Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.
| * Make the file backup helper not crash if a file you requestedJoe Onorato2009-06-111-45/+108
| | | | | | | | | | can't be stated. This means you don't need to know if the files you are backing up exist or not -- we'll figure it out for you.
| * Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.Joe Onorato2009-06-111-62/+134
| | | | | | | | This took quite a bit of refactoring.
* | get rid of LogSocket which wasn't even implemented (enabled)Mathias Agopian2009-06-052-131/+1
| |
* | break dependency on utils/ZipEntry.h and utils/ZipFile.h, get rid of ↵Mathias Agopian2009-06-055-2638/+1
| | | | | | | | inet_address.h and Socket.h which were not used
* | Merge change 3284Android (Google) Code Review2009-06-052-0/+114
|\ \ | | | | | | | | | | | | * changes: rename string_array.h to StringArray.h and move the implementation from the header file to a new cpp file.
| * | rename string_array.h to StringArray.h and move the implementation from the ↵Mathias Agopian2009-06-052-0/+114
| | | | | | | | | | | | | | | | | | header file to a new cpp file. StringArray is used in two places in framework/base and in the Sim. Ideally we should get rid of it and use Vector<String8> instead of creating new code.
* | | am 0032ce80: Fix back_up_files() error detection when opening/CRCing the fileChristopher Tate2009-06-051-1/+2
|\ \ \ | |/ / |/| / | |/ | | | | | | Merge commit '0032ce80ac127e6bfb25d727162eee4af208dc77' * commit '0032ce80ac127e6bfb25d727162eee4af208dc77': Fix back_up_files() error detection when opening/CRCing the file
| * Fix back_up_files() error detection when opening/CRCing the fileChristopher Tate2009-06-041-1/+2
| |
* | am 2a318867: Merge change 3203 into donutAndroid (Google) Code Review2009-06-0410-20/+20
|\ \ | |/ | | | | | | | | | | Merge commit '2a3188672ab2b65c0ce7c9c598a463e382c47696' * commit '2a3188672ab2b65c0ce7c9c598a463e382c47696': rename a few files to camel-case, add copyright notices
| * rename a few files to camel-case, add copyright noticesMathias Agopian2009-06-0410-20/+20
| |
* | get rid of TimerProbe which is never usedMathias Agopian2009-06-012-132/+0
| |
* | get rid of sleepForInterval() which didn't seem to be used anywhere in the ↵Mathias Agopian2009-05-313-232/+0
| | | | | | | | source tree. Also get rid of ported.h which seem to be used only (possibly) in the sim. moved the implementation there.
* | Sim-only files move, part 2/2.Andy McFadden2009-05-274-533/+1
| | | | | | | | | | Move Pipe and executablepath from libutils to the simulator, since nothing else uses them.
* | some work to try to reduce the code size of some native librariesMathias Agopian2009-05-262-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - make sure that all binder Bn classes define a ctor and dtor in their respective library. This avoids duplication of the ctor/dtor in libraries where these objects are instantiated. This is also cleaner, should we want these ctor/dtor to do something one day. - same change as above for some Bp classes and various other non-binder classes - moved the definition of CHECK_INTERFACE() in IInterface.h instead of having it everywhere. - improved the CHECK_INTERFACE() macro so it calls a single method in Parcel, instead of inlining its code everywhere - IBinder::getInterfaceDescriptor() now returns a "const String16&" instead of String16, which saves calls to String16 and ~String16 - implemented a cache for BpBinder::getInterfaceDescriptor(), since this does an IPC. HOWEVER, this method never seems to be called. The cache makes BpBinder bigger, so we need to figure out if we need this method at all.
* | am 04561a55: Merge change 2359 into donutAndroid (Google) Code Review2009-05-231-11/+26
|\ \ | |/ | | | | | | | | | | Merge commit '04561a55df693e7bd8d3047ccc4fbef504ac07cf' * commit '04561a55df693e7bd8d3047ccc4fbef504ac07cf': Fix for the simultor build breakage.
| * Merge change 2359 into donutAndroid (Google) Code Review2009-05-231-11/+26
| |\ | | | | | | | | | | | | * changes: Fix for the simultor build breakage.
| | * Fix for the simultor build breakage.Nicolas Catania2009-05-221-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added missing include sys/time.h for utimes. Detects when stat64 uses a timespec for the modif and access times and work around the missing st_*time_nsec. Apologies for the whitespace changes, emacs removed them automatically.