summaryrefslogtreecommitdiffstats
path: root/include/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* | | aapt now sorts the strings in the resource string pool.Dianne Hackborn2012-01-311-571/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In our current environment with very many translations, this can save a lot of RAM -- for example over 200K in Gmail just by sorting the strings in the Gmail .apk (not the framework). Also add a new aapt command to print the contents of the resource table string pool. Change-Id: I1da037b3e2c377b890833ff57ab158965314ac48
* | | Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc.Dianne Hackborn2012-01-251-0/+2
|/ / | | | | | | Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598
* | Fix compilation with Clang.Evgeniy Stepanov2012-01-131-4/+0
| | | | | | | | | | | | | | warning: extraneous template parameter list in template specialization template<> Change-Id: If3e3e1d06a018343b40ac0984dfd9ecc12629f8d
* | Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-1/+1
| | | | | | | | | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* | Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-041-5/+5
| | | | | | | | | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
* | Add a new ui mode for "appliance"Joe Onorato2011-12-151-0/+1
| | | | | | | | | | | | | | | | The idea is that this is a device which is more-or-less headless. It might have some limited interaction capabilities, but it's not something that you want to rely on having. Change-Id: Ib92f53a120bf83de781728011721a4859def7d9f
* | GenerationCache::get would return a random value instead of NULLRomain Guy2011-12-081-2/+4
| | | | | | | | | | | | | | | | Bug #5401917 This was causing a ton of random crashes in apps. Change-Id: I9069a060824ec89115cd3bcd38beaeb9ecc4488e
* | Use sized integer typedefs in hash_type specializations.Jeff Brown2011-11-241-8/+8
| | | | | | | | Change-Id: I3f9e004db2f3be1cb43a885c3ae142f251fd6845
* | Add a basic hashtable data structure, with tests!Jeff Brown2011-11-222-0/+437
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The basic hashtable is intended to be used to support a variety of different datastructures such as map, set, multimap, multiset, linkedmap, generationcache, etc. Consequently its interface is fairly primitive. The basic hashtable supports copy-on-write style functionality using SharedBuffer. The change introduces a simple generic function in TypeHelpers for specifying hash functions. The idea is to add template specializations of hash_type<T> next to the relevant data structures such as String8, String16, sp<T>, etc. Change-Id: I2c479229e9d4527b4fbfe3b8b04776a2fd32c973
* | Clean up GenerationCache.Jeff Brown2011-11-111-59/+49
| | | | | | | | | | | | | | | | | | | | | | Use const references to keys and values where appropriate to avoid copying them unnecessarily. Deleted some dead code. Simplified a few pieces that were doing unnecessary redundant work. Change-Id: Ib2145b7094a40db2d679e05dafe050fe1e87b846
* | am 236aea35: Merge changes Ibc99cb1c,Ie1f4f6f8 into ics-mr1Jamie Gennis2011-11-031-20/+87
|\ \ | |/ | | | | | | | | * commit '236aea3579787961fdd41d87574760b63323c0c1': BlobCache: implement cache serialization BlobCache: remove the mutex locking
| * BlobCache: implement cache serializationJamie Gennis2011-10-311-12/+84
| | | | | | | | | | | | | | This change adds serialization and deserialization functionality to BlobCache, conforming to the Flattenable interface. Change-Id: Ibc99cb1c3d015f363d57d0713eabccec07ff975e
| * BlobCache: remove the mutex lockingJamie Gennis2011-10-311-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | This change removes the mutex from the BlobCache class. The caller must be responsible for thread synchronization in order to properly implement the Flattenable interface, which is coming soon. Otherwise would be the potential for the cache contents to change between the call to the getFlattenedSize and flatten methods. Because the caller must do this synchronization anyway there's no reason to also some synchronization inside BlobCache. Change-Id: Ie1f4f6f82b78744f46a41ce863cac0cad276a20e
* | Use libcorkscrew for stack unwinding.Jeff Brown2011-10-221-5/+3
|/ | | | Change-Id: Iee1ee5a2018ab8cfc1ce12ec2a124809245eaa02
* Reduce the size of libhwui by 50%Romain Guy2011-10-121-1/+2
| | | | | | | | This change removes unnessary symbols. All symbols are hidden by default, public APIs with exported symbols are explicitly marked with ANDROID_API. Change-Id: I692fde432a86c12108de1cfd1f6504919a7d5f3f
* Fix regression in CursorWindow.copyStingToBuffer.Jeff Brown2011-10-071-0/+7
| | | | | | Bug: 5332296 Change-Id: Iff9eed786f0a8293b6156f883a66a322ddad5e99
* Add mechanism for Parcel to not allow FDs to be written to it.Dianne Hackborn2011-10-031-0/+1
| | | | | | This is to help implement issue #5224703. Change-Id: I026a5890495537d15b57fe61227a640aac806d46
* A new API "androidGetThreadPriority"Andreas Huber2011-09-161-0/+4
| | | | Change-Id: I6baeead8c70460863343fd557250635fb1e6a170
* Merge "Add C++ thread API androidGetThreadSchedulingGroup"Glenn Kasten2011-08-291-0/+7
|\
| * Add C++ thread API androidGetThreadSchedulingGroupGlenn Kasten2011-07-081-0/+7
| | | | | | | | | | | | | | This API is intended for applications that need to read a thread's scheduling group, while using the higher-level (C++) family of thread APIs. Change-Id: I5e58017f74c3989b20b5b1cc2bc4483c95720520
* | am ddf155b8: am 5dcda1fd: am 88512f59: am a8313e71: Merge "Fix String16 ↵Xavier Ducrohet2011-08-171-1/+1
|\ \ | | | | | | | | | | | | | | | | | | operator+ to actually work" * commit 'ddf155b8338eb894a97612e4cb21257c11d8434a': Fix String16 operator+ to actually work
| * \ am 5dcda1fd: am 88512f59: am a8313e71: Merge "Fix String16 operator+ to ↵Xavier Ducrohet2011-08-171-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | actually work" * commit '5dcda1fda53bdc6dfe80cf37e62cacdc216224b1': Fix String16 operator+ to actually work
| | * \ am 88512f59: am a8313e71: Merge "Fix String16 operator+ to actually work"Xavier Ducrohet2011-08-171-1/+1
| | |\ \ | | | | | | | | | | | | | | | | | | | | * commit '88512f59bc051a42f4dd70acc8af5622f7e99db6': Fix String16 operator+ to actually work
| | | * \ am a8313e71: Merge "Fix String16 operator+ to actually work"Xavier Ducrohet2011-08-171-1/+1
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a8313e71fe8b483448d14e22610101c5f3672744': Fix String16 operator+ to actually work
| | | | * | Fix String16 operator+ to actually workJosiah Gaskin2011-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes the String16 utility's operator+ function. Change-Id: Ibed7b07277b50bf178febc72b6ce497893e66f17
| | | | * | DO NOT MERGE. may fix build on some version of gccMathias Agopian2011-07-271-0/+1
| | | |/ / | | | | | | | | | | | | | | | Change-Id: Id99d390862731fd3fbc009dbffdf1d2a59dbe348
| | * | | am 54146a63: Merge "DO NOT MERGE. may fix build on some version of gcc" into ↵Xavier Ducrohet2011-06-281-0/+1
| | |\ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | gingerbread * commit '54146a634e0e66a5e4732ba1a80079a1e93bdd8a': DO NOT MERGE. may fix build on some version of gcc
| | | * | DO NOT MERGE. may fix build on some version of gccMathias Agopian2011-06-161-0/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Id99d390862731fd3fbc009dbffdf1d2a59dbe348
| | * | | am afffa8fa: fix RefBase so it retains binary-compatibility with gingerbread ↵Mathias Agopian2011-06-151-7/+13
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | (DO NOT MERGE) * commit 'afffa8fa9f82a7343e1158bf921931fd3e3df615': fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)
| | | * | fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)Mathias Agopian2011-06-131-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 4595257 Change-Id: I4773cf4fe59b2509db0ed733739eb6961d473b25
| * | | | am 48294b0d: am e7d3ee9d: Revert "merge various SF fixes from gingerbread to ↵Mathias Agopian2011-06-161-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb-mr2" (DO NOT MERGE) * commit '48294b0d9388cff632f0e6ae5220305d342c76fb': Revert "merge various SF fixes from gingerbread to honeycomb-mr2" (DO NOT MERGE)
| | * | | | Revert "merge various SF fixes from gingerbread to honeycomb-mr2" (DO NOT MERGE)Mathias Agopian2011-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also revert all dependent changes: This reverts commit 8e18668d14adf601cbe5973030c310ec23d88461. This reverts commit 69b4587bfbb3e98f793959d9123340360fa233a2. This reverts commit a9c9a4baf24700e8817d47d8ea8da1742caea0b5. This reverts commit 2c0042b666a969091c931614f2fc0dce2f1cfac8. This reverts commit f6c8206735e7e078461e5f2aef6e1a1446fdd075. This reverts commit 24855c09173a6caaec7dcedd0c2d7ce15121d39b. Change-Id: I33e699640f3f59e42fa03c99a9a1b7af0d27d4d8
| * | | | | am 0887b8c2: am 8e18668d: revert surfaceflinger leak fix as it uncovered a ↵Mathias Agopian2011-06-151-14/+0
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | crasher on xoom (DO NOT MERGE) * commit '0887b8c2e583e682cd2c1bc909cb3fdbec704004': revert surfaceflinger leak fix as it uncovered a crasher on xoom (DO NOT MERGE)
| | * | | | revert surfaceflinger leak fix as it uncovered a crasher on xoom (DO NOT MERGE)Mathias Agopian2011-06-151-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 52a43990880b27808bcf562afcc4209d34728e6e. Change-Id: I1856a48f863b051395b8091ddfd1e01292fa1b1e
| * | | | | am d5244e0a: am 52a43990: Revert "revert surfaceflinger leak fix as it ↵Mathias Agopian2011-06-151-0/+14
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | uncovered a crasher on xoom" * commit 'd5244e0a88ed2f843651aa5ffdc71a45c968e0f3': Revert "revert surfaceflinger leak fix as it uncovered a crasher on xoom"
| | * | | | Revert "revert surfaceflinger leak fix as it uncovered a crasher on xoom"Mathias Agopian2011-06-151-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit af6edba59e250adbdfa5b3c3be134f70d8c38a16. Change-Id: I7793d3ca8a4d20a2b188364f47854328ab5f586d
| * | | | | am 7ecdeb6e: am d20d72d1: Merge "revert surfaceflinger leak fix as it ↵Mathias Agopian2011-06-151-14/+0
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | uncovered a crasher on xoom" into honeycomb-mr2 * commit '7ecdeb6e548ff71d4f70b343e30136e89eaa3e33': revert surfaceflinger leak fix as it uncovered a crasher on xoom
| | * | | | revert surfaceflinger leak fix as it uncovered a crasher on xoomMathias Agopian2011-06-151-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 4600244 Change-Id: Ia68ebf0f243a051ff6a21b3863e3e5d259bbf7ac
| * | | | | am a9007fbd: am 69b4587b: DO NOT MERGE. may fix build on some version of gccMathias Agopian2011-06-141-0/+1
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit 'a9007fbdae6671f66535da4b9dad04b19aaf9186': DO NOT MERGE. may fix build on some version of gcc
| | * | | | DO NOT MERGE. may fix build on some version of gccMathias Agopian2011-06-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iff6d9ab3a7caf58f65fc3f60633a3bd577b7af25
| * | | | | am 77079399: am a9c9a4ba: fix RefBase so it retains binary-compatibility ↵Mathias Agopian2011-06-131-7/+13
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with gingerbread (DO NOT MERGE) * commit '77079399fca3e9c71e2ac06f3da26934e1c278b9': fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)
| | * | | | fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)Mathias Agopian2011-06-131-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 4595257 Change-Id: I1db83149107d7dab1f0b7e73c684e0ff82e17e62
* | | | | | fix a memory leak and memory corruption in RefBaseMathias Agopian2011-08-111-17/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we would leak a weakref_impl if a RefBase was never incWeak()'ed. there was also a dangling pointer that would cause memory corruption and double-delete when a custom destroyer was used to delay the execution of ~RefBase. it turns out that the custom destroyer feature caused most of the problems, so it's now gone. The only client was SurfaceFlinger who now handles things on its own. RefBase is essentially back its "gingerbread" state, but the code was slightly cleaned-up. Bug: 5151207, 5084978 Change-Id: Id6ef1d707f96d96366f75068f77b30e0ce2722a5
* | | | | | Fix typos and use new HAL_PRIORITY_URGENT_DISPLAY constantMathias Agopian2011-08-091-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I703f8a96dd0dfec427e74363ad95729bfefc95c7
* | | | | | Refactor input reader to add stylus support.Jeff Brown2011-07-311-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5064702 Introduced the concept of an InputListener to further decouple the InputReader from the InputDispatcher. The InputListener exposes just the minimum interface that the InputReader needs to communicate with the outside world. The InputReader passes arguments to the InputListener by reference, which makes it easy to queue them up. Consolidated all of the InputReader locks into one simple global Mutex. The reason this wasn't done before was due to potential re-entrance in outbound calls to the InputDispatcher. To fix this, the InputReader now queues up all of the events it wants to send using a QueuedInputListener, then flushes them outside of the critical section after all of the event processing is finished. Removing all of the InputMapper locks greatly simplifies the implementation. Added tests for new stylus features such as buttons, tool types, and hovering. Added some helpers to BitSet32 to handle common code patterns like finding the first marked bit and clearing it. Fixed a bug in VelocityTracker where the wrong pointer trace could get cleared when handling ACTION_POINTER_DOWN. Oops. Changed PointerCoords so it no longer stores useless zero axis values. Removed editAxisValue because it is not very useful when all zero value axes are absent and therefore cannot be edited in place. Added dispatch of stylus hover events. Added support for distance and tool types. Change-Id: I4cf14d134fcb1db7d10be5f2af7b37deef8f8468
* | | | | | Move extract native libraries to JNI codeKenny Root2011-07-261-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The built-in ZipFile class was quite a long time to find an unpack libraries. Move everything to using the libutils ZipFileRO class that goes quite a bit faster. Initial measurements are 6 times faster than the Java code. Also, read files off the disk and compare their CRC against the APK's CRC to see if we need to write the new file to disk. This also cuts down the bootup time by up to a second per APK that has native files. Change-Id: Ic464a7969a17368fb6a6b81d026888c4136c7603
* | | | | | Remove unimplemented memory pool.Jeff Brown2011-07-201-71/+0
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | dlmalloc does such a great job that we don't need a pool anyways. Change-Id: I105b28c4a5c491543959190c7c0a9de75a5b8052
* | | | | Merge "Add Thread::join"Glenn Kasten2011-07-061-0/+4
|\ \ \ \ \
| * | | | | Add Thread::joinGlenn Kasten2011-06-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new API will be used by applications that previously used the lower-level pthread APIs (including pthread_join). Centralizing on the Thread class instead of pthread will permit additional functionality to be added later in only one location. Change-Id: I8460169ac9c61ac9f85752405ed54c94651058d7
* | | | | | Merge "Thread ID zero for androidSetThreadSchedulingGroup"Glenn Kasten2011-07-051-2/+2
|\ \ \ \ \ \