summaryrefslogtreecommitdiffstats
path: root/libs/utils
Commit message (Collapse)AuthorAgeFilesLines
* Turn off most of the backup-related debug loggingChristopher Tate2009-09-301-1/+1
| | | | | | | The core logging in BackupManagerService and in the Google backup transport are still enabled at this point. Change-Id: I10abfa565bbd1097dd3631051b6aca163e4af33a
* fix "pacakge" typo in error log messageDoug Zongker2009-09-271-2/+2
|
* Clear the device's data from the transport when backup is disabledChristopher Tate2009-09-241-1/+2
| | | | | | | | | | | | | | | | Turning off backup in the Settings UI constitutes an opt-out of the whole mechanism. For privacy reasons we instruct the backend to wipe all of the data belonging to this device when the user does this. If the attempt fails it is rescheduled in the future based on the transport's requestBackupTime() suggestion. If network connectivity changes prompt the transport to indicate a backup pass is appropriate "now," any pending init operation is processed before the backup schedule is resumed. The broadcasts used internally to the backup manager are now fully protected; third party apps can neither send nor receive them. (Also a minor logging change; don't log 'appropriate' EOF encountered during parsing of a backup data stream.)
* Fix issue #1862317: Browser does not appear to honor anchors (#es) in linksDianne Hackborn2009-09-201-2/+10
| | | | | | Also a little improved debugging output of bad resource identifiers. Change-Id: I054064ef22855608ffd722e4ccf12ce57d1992b2
* use broadcast() instead of signal() when signaling the condition-variable ↵Mathias Agopian2009-09-091-2/+7
| | | | | | | | Thread::RequestExitAndWait() is waiting for we could have several thread waiting on the condition and they all need to wake-up. also added a debug "mTid" field in the class, which contains the tid of the thread (as opposed to pthread_t), this is useful when debugging under gdb for instance.
* Make it an error to use a bare apostrophe in aapt, and adjust warnings/errors.Eric Fischer2009-09-011-1/+10
| | | | | | | | | | | | | | | | | | In practice, no one ever writes an apostrophe in an aapt string with the intent of using it to quote whitespace -- they always mean to include a literal apostrophe in the string and then are surprised when they find the apostrophe missing. Make this an error so that it is discovered right away instead of waiting until late in QA or after the strings have already been sent for translation. (And fix a recently-introduced string that has exactly this problem.) Silence the warning about an empty span in a string, since this seems to annoy people instead of finding any real problems. Make the error about having a translated string with no base string into a warning, since this is a big pain when making changes to an application that has already had some translations done, and the dead translations should be removed by a later translation import anyway.
* am b8546001: Merge change 20878 into donutDianne Hackborn2009-08-121-5/+53
|\ | | | | | | | | | | | | Merge commit 'b8546001701405a76dad7e6235046e592296fac2' * commit 'b8546001701405a76dad7e6235046e592296fac2': Fix issue #2048263: More debugging information
| * Fix issue #2048263: More debugging informationDianne Hackborn2009-08-111-5/+53
| | | | | | | | | | We now hopefully do better about generating the anr reports, and include information about the malloc loaded assets in meminfo.
* | Fix Win32 libutils to get a working SDK build.David 'Digit' Turner2009-08-011-1/+18
| |
* | am 25dff70f: Merge change 9039 into donutAndroid (Google) Code Review2009-07-301-4/+7
|\ \ | |/ | | | | | | | | | | Merge commit '25dff70f153529b87f5ad4a92f4de21e8950b1de' * commit '25dff70f153529b87f5ad4a92f4de21e8950b1de': Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
| * Fix #2018814: System cannot correctly render assets with "wrap_content" ↵Dianne Hackborn2009-07-291-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | attribute in QVGA It turns out we were not returning the density for anything retrieved from a TypedArray... which basically means any bitmap references from a layout or style...!!! This is now fixed. Also fiddle with the density compatibility mode to turn on smoothing in certain situations, helping the look of things when they need to scale and we couldn't do the scaling at load time.
* | Only restore the bits for wallpapers that aren't built in.Joe Onorato2009-07-291-1/+6
| |
* | Fix the IOException in wallpaper restore -- the padding isn't required at ↵Joe Onorato2009-07-281-2/+13
| | | | | | | | the end.
* | am 9fc20b0e: Merge change 8126 into donutAndroid (Google) Code Review2009-07-211-3/+4
|\ \ | |/ | | | | | | | | | | Merge commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf' * commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf': First pass at reworking screen density/size APIs.
| * First pass at reworking screen density/size APIs.Dianne Hackborn2009-07-211-3/+4
| | | | | | | | | | | | | | | | This changes the names of the directories in aapt, to what you see in the list of DpiTest resources. Also adds a new "long" configuration for wide screens, which the platform sets appropriate, and introduces a new kind of resizeability for not large but significantly larger than normal screens which may have compatibility issues.
* | am aad0fcc9: Merge change 7783 into donutAndroid (Google) Code Review2009-07-191-2/+11
|\ \ | |/ | | | | | | | | | | Merge commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54' * commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54': Add "nodpi" density, and expose a bunch of density-related APIs.
| * Add "nodpi" density, and expose a bunch of density-related APIs.Dianne Hackborn2009-07-171-2/+11
| | | | | | | | | | Also update the DpiTest app to use nodpi images, and try to have a mode where it turns off compatibility though it's not quite working.
* | am 3e1663a2: Merge change 7536 into donutAndroid (Google) Code Review2009-07-161-2/+1
|\ \ | |/ | | | | | | | | | | Merge commit '3e1663a2539ff0b939193304cfb601f6b134af7d' * commit '3e1663a2539ff0b939193304cfb601f6b134af7d': fix FILE* version of ZipUtils::inflateToBuffer
| * fix FILE* version of ZipUtils::inflateToBufferDoug Zongker2009-07-161-2/+1
| | | | | | | | | | This can't have ever worked; a successful fread() was returning 1 instead of getSize.
* | Need to skip the padding after reading.Joe Onorato2009-07-151-3/+5
| | | | | | | | | | m_dataEndPos points to the end of the data, not the beginning of the next entity.
* | implement Mutex and Condition with pthread instead of calling futex directly.Mathias Agopian2009-07-133-474/+6
| | | | | | | | | | internally pthread uses futex. the implementation consists of simple inlines there are no implementation files anymore.
* | am be91fdbc: Merge change 6665 into donutAndroid (Google) Code Review2009-07-091-1/+0
|\ \ | |/ | | | | | | | | | | Merge commit 'be91fdbc5c4f2de3a2bb574a98fdfeef44d8cdb5' * commit 'be91fdbc5c4f2de3a2bb574a98fdfeef44d8cdb5': Fix resources not being set correctly.
| * Fix resources not being set correctly.Dianne Hackborn2009-07-091-1/+0
| |
* | am fe811d8b: Merge change 6603 into donutAndroid (Google) Code Review2009-07-091-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit 'fe811d8bd0da15f14702968a9c7deb02db7eec9f' * commit 'fe811d8bd0da15f14702968a9c7deb02db7eec9f': quick fix; utf8_codepoint_count must be utf8_length
| * quick fix; utf8_codepoint_count must be utf8_lengthDaisuke Miyakawa2009-07-091-1/+1
| |
* | am 8a715b4b: Merge change 5510 into donutAndroid (Google) Code Review2009-07-091-26/+272
|\ \ | |/ | | | | | | | | | | Merge commit '8a715b4b791db4390d12e0ded02280592634a424' * commit '8a715b4b791db4390d12e0ded02280592634a424': Add useful functions to String8, which enables users to convert between UTF-8 and UTF-32
| * Add useful functions to String8, which enables users to convert between ↵Daisuke Miyakawa2009-07-091-26/+272
| | | | | | | | | | | | | | | | | | UTF-8 and UTF-32 It will be used in SQL functions in external/sqlite/android. See https://android-git.corp.google.com/g/Gerrit#change,5511 for example. Related internal bug id: 1707173
* | am 991eec03: Merge change 6252 into donutAndroid (Google) Code Review2009-07-063-40/+158
|\ \ | |/ | | | | | | | | | | Merge commit '991eec03a73f8803d0f8c80b418480ea25293cfb' * commit '991eec03a73f8803d0f8c80b418480ea25293cfb': Don't re-parse the framework resources all the time.
| * Don't re-parse the framework resources all the time.Dianne Hackborn2009-07-063-40/+158
| | | | | | | | | | | | | | | | A small optimization to the resource code, to not re-parse the framework resources every time we build a new AssetManager. Instead, you can now construct a ResTable from a previously created one... of course, like the existing code for using the data in-place, you can't delete the original ResTable until you have deleted the one that has been constructed from it.
* | 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.