summaryrefslogtreecommitdiffstats
path: root/include/utils
Commit message (Collapse)AuthorAgeFilesLines
* Implement issue #1780928: Need support hiding nav keys.Dianne Hackborn2009-09-151-1/+32
| | | | | | | | | | | | | This implements support for devices whose hardware can hide their navigation keys. It works much like the existing keyboardHidden configuration, and for compatibility uses the same configuration change bit. Also add FLAG_TURN_ON_SCREEN for windows, which has the system cause the screen to be turned on when the window is displayed. Great fun when used with FLAG_SHOW_WHEN_LOCKED! Change-Id: I0b867f19af85cfd8786a14cea194b34f7bdd9b7a
* process: Switch to common cutils sched_policy apiSan Mehat2009-09-121-5/+0
| | | | Signed-off-by: San Mehat <san@google.com>
* Process: Add support for using scheduler policies instead of cgroups.San Mehat2009-09-101-0/+5
| | | | | | Preference is given to cgroups if available. Signed-off-by: San Mehat <san@google.com>
* use broadcast() instead of signal() when signaling the condition-variable ↵Mathias Agopian2009-09-091-0/+3
| | | | | | | | 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.
* fix [2068105] implement queueBuffer/lockBuffer/dequeueBuffer properlyMathias Agopian2009-09-071-1/+1
| | | | | | | | | | | | | | | Rewrote SurfaceFlinger's buffer management from the ground-up. The design now support an arbitrary number of buffers per surface, however the current implementation is limited to four. Currently only 2 buffers are used in practice. The main new feature is to be able to dequeue all buffers at once (very important when there are only two). A client can dequeue all buffers until there are none available, it can lock all buffers except the last one that is used for composition. The client will block then, until a new buffer is enqueued. The current implementation requires that buffers are locked in the same order they are dequeued and enqueued in the same order they are locked. Only one buffer can be locked at a time. eg. Allowed sequence: DQ, DQ, LOCK, Q, LOCK, Q eg. Forbidden sequence: DQ, DQ, LOCK, LOCK, Q, Q
* Support for marshalling pointers / intptr_t in Parcel.Andreas Huber2009-08-171-0/+2
| | | | Some refactoring to eliminate code duplication in Parcel implementation.
* am b8546001: Merge change 20878 into donutDianne Hackborn2009-08-121-0/+12
|\ | | | | | | | | | | | | Merge commit 'b8546001701405a76dad7e6235046e592296fac2' * commit 'b8546001701405a76dad7e6235046e592296fac2': Fix issue #2048263: More debugging information
| * Fix issue #2048263: More debugging informationDianne Hackborn2009-08-111-0/+12
| | | | | | | | | | We now hopefully do better about generating the anr reports, and include information about the malloc loaded assets in meminfo.
* | am 25dff70f: Merge change 9039 into donutAndroid (Google) Code Review2009-07-301-2/+4
|\ \ | |/ | | | | | | | | | | 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-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | am 9fc20b0e: Merge change 8126 into donutAndroid (Google) Code Review2009-07-211-27/+57
|\ \ | |/ | | | | | | | | | | 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-27/+57
| | | | | | | | | | | | | | | | 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-1/+2
|\ \ | |/ | | | | | | | | | | 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-1/+2
| | | | | | | | | | 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.
* | add a ctor to Mutex to specify the type, which can be shared. This is used ↵Mathias Agopian2009-07-131-0/+17
| | | | | | | | by sf and af an soon will allow some optimization in the kernel for non shared mutexes
* | implement Mutex and Condition with pthread instead of calling futex directly.Mathias Agopian2009-07-131-4/+86
| | | | | | | | | | internally pthread uses futex. the implementation consists of simple inlines there are no implementation files anymore.
* | am 8a715b4b: Merge change 5510 into donutAndroid (Google) Code Review2009-07-091-5/+111
|\ \ | |/ | | | | | | | | | | 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-5/+111
| | | | | | | | | | | | | | | | | | 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
* | Fix sim build.Andy McFadden2009-07-071-1/+1
| | | | | | | | | | Looks like older gcc (4.1.x) doesn't properly handle templated fanciness. Apparently that's what we have on the build server.
* | Merge commit 'goog/master' into merge_masterMathias Agopian2009-07-062-3/+13
|\ \
| * \ am 991eec03: Merge change 6252 into donutAndroid (Google) Code Review2009-07-062-2/+10
| |\ \ | | |/ | | | | | | | | | | | | | | | 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-062-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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-1/+3
| |\ \ | | |/ | | | | | | | | | | | | | | | 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-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge commit 'goog/master' into merge_masterMathias Agopian2009-07-012-94/+45
|\ \ \ | |/ /
| * | am 72eb0aca: Merge change 5483 into donutAndroid (Google) Code Review2009-06-291-5/+45
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '72eb0acad5cffc57ce5006f6deab29ee259e461e' * commit '72eb0acad5cffc57ce5006f6deab29ee259e461e': Expand support for different screen sizes.
| | * Expand support for different screen sizes.Dianne Hackborn2009-06-261-5/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 c44989d6: Merge change 5350 into donutAndroid (Google) Code Review2009-06-251-89/+0
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit 'c44989d6c7bcc761fb37f54fd37aac2070ba8e5e' * commit 'c44989d6c7bcc761fb37f54fd37aac2070ba8e5e': move ui/Time.cpp to core/jni, since this is the only place it is used
| | * move ui/Time.cpp to core/jni, since this is the only place it is usedMathias Agopian2009-06-251-89/+0
| | |
* | | merge master in master_glMathias Agopian2009-06-242-13/+18
|\ \ \ | |/ /
| * | am df65b60c: Merge change 5243 into donutAndroid (Google) Code Review2009-06-241-0/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit 'df65b60ce33e5a56815864f8f0713e25378fa649' * commit 'df65b60ce33e5a56815864f8f0713e25378fa649': Only report "unknown metadata" once per restore helper
| | * Only report "unknown metadata" once per restore helperChristopher Tate2009-06-241-0/+1
| | | | | | | | | | | | Also removes the auto-free object, replacing it with direct memory manipulation.
| * | am 11b15779: Add file mode to the file-backup saved state blobsChristopher Tate2009-06-231-0/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | 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-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-13/+13
| |\ \ | | |/ | | | | | | | | | | | | | | | 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-13/+13
| | |\ | | | | | | | | | | | | | | | | * 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-13/+13
| | | |
| * | | am 856dd8a6: Merge change 4952 into donutAndroid (Google) Code Review2009-06-221-0/+3
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | 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-0/+3
| | |/ | | | | | | | | | | | | because they'll always go in the same order, and this lets us not have to write headers to keep them paired.
* | | improve Vector<> with types that can be trivially moved and remove some ↵Mathias Agopian2009-06-224-71/+77
| | | | | | | | | | | | | | | | | | unused code. This optimization applies to sp<> and wp<> which should now perform about the same as regular pointers when placed in to Vector<>.
* | | Merge commit 'goog/master' into merge_masterMathias Agopian2009-06-192-25/+40
|\ \ \ | |/ /
| * | am 1585bd24: Merge change 4828 into donutAndroid (Google) Code Review2009-06-191-1/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | 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-1/+1
| | | | | | | | | | | | | | | | | | | | | 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-181-0/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '5502f04c1dcf2b1918858bacb99fb0480a711707' * commit '5502f04c1dcf2b1918858bacb99fb0480a711707': backup stuff
| | * backup stuffJoe Onorato2009-06-181-0/+1
| | |
| * | am 16ce3504: Merge change 4708 into donutAndroid (Google) Code Review2009-06-181-0/+35
| |\ \ | | |/ | | | | | | | | | | | | | | | 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-0/+35
| | |
| * | am de72697b: Merge change 4524 into donutAndroid (Google) Code Review2009-06-171-1/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit 'de72697b771d33738c5f9d6c28087504e0796622' * commit 'de72697b771d33738c5f9d6c28087504e0796622': FileRestoreHelper and RestoreHelperDispatcher work.
| | * FileRestoreHelper and RestoreHelperDispatcher work.Joe Onorato2009-06-171-1/+1
| | |
| * | am 5f15d151: checkpoint BackupDatAInput / RestoreHelperJoe Onorato2009-06-171-24/+3
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '5f15d151b5101fadfe6cba1e8f4aa6367e8c603e' * commit '5f15d151b5101fadfe6cba1e8f4aa6367e8c603e': checkpoint BackupDatAInput / RestoreHelper