summaryrefslogtreecommitdiff
path: root/include/utils
AgeCommit message (Collapse)Author
2013-07-31remove libutils Alex Ray
libutils is being moved from frameworks/native/ to system/core/ in order to facilitate native C++ platform (non-frameworks) code. Change-Id: I44089fb960591a40b8a9c30faabb10459d107d71
2013-07-30Make Flattenable not virtual (libutils) Mathias Agopian
Making an object Flattenable doesn't force it to become virtual anymore. For instance, Fence and GraphicBuffer are now non-virtual classes. Also change Flatennable protocol a bit so that it updates its parameters (pointers, sizes) to make it easier to implement a flattenable in terms of other flattenables. Change-Id: Ie81dc7637180b3c2cfcbaf644f8987ca804eb891
2013-07-24libutils: give BasicHashtableImpl a virtual destructor Alex Ray
Change-Id: I4ec590b060d732af5fe525670becbe778684247b
2013-07-23utils: move thread enums to system/core Alex Ray
Change-Id: Ia97963cc9acf8661d01355786f5e7e7bf54581c2
2013-05-30Added bitwise-or and bitwise-and to BitSet Michael Wright
Change-Id: I9bbf41f9d2d4a2593b0e6d7d8be7e283f985bade
2013-05-28am 31ab96fc: am 135e4dbd: Merge "utils: Allow non android namespaces to use ↵ Jeff Brown
ALOGD_IF_SLOW" * commit '31ab96fcc1810e044f8bdb35d3bfbbba2fa6bafd': utils: Allow non android namespaces to use ALOGD_IF_SLOW
2013-05-28am 135e4dbd: Merge "utils: Allow non android namespaces to use ALOGD_IF_SLOW" Jeff Brown
* commit '135e4dbd65d49730fbd6f830de7b303e01d20d5f': utils: Allow non android namespaces to use ALOGD_IF_SLOW
2013-05-28Merge "utils: Allow non android namespaces to use ALOGD_IF_SLOW" Jeff Brown
2013-05-23Make trace macros slightly more robust Tim Murray
Change-Id: I9544eb7b27fc1a971cabadd8d5b4b4b80678febf
2013-05-09remove unused declarations and reformat Mathias Agopian
Change-Id: I4e168fb62c275e02621c4b6e0c6000d0f006c327
2013-05-09remove reserved virtual slots Mathias Agopian
these consume small amount of space (plt) in every library that links against libutils. Change-Id: I1b6b3dd9098aa5a051243f7a5dbf91cd7dcb8b2c
2013-05-08new String8, String16 ctors to initialize empty static strings with static ↵ Mathias Agopian
linkage when libutils is statically linked, the ordering of the static initializer is not guaranteed and therefore it's unsafe to use empty static strings: e.g.: static String8 sThisStaticStringIsNotSafe; instead, this new constructor can be used: static String8 sThisStaticStringIsSafe(kEmptyString); Change-Id: Ia3daf1cab1c97d021c0ee9c2b394b5e27e8d6c0d
2013-05-07libutils clean-up Mathias Agopian
Change-Id: I6ff4cfc736751de2912c697f954e45e275f2d386
2013-05-07Add new Looper API to check whether the looper is idle. Dianne Hackborn
This is just to support the watchdog to give it a faster way to determine if a thread is deadlocked without having to post a message to it. Change-Id: I068dc8b9387caf94fe5811fb4aeb0f9b57b1a080
2013-03-21improved CallStack a bit Mathias Agopian
- added a ctor that updates and dumps the stack immediately - added a "logtag" parameter to dump() Change-Id: Ie51c256071d282591752243bdb4f68cf9ff8829d
2013-03-19Fix a crasher with RefBase debugging and vectors of wp<> Mathias Agopian
background: we have some code to fix-up the IDs of references when using RefBase's DEBUG_REFS when those refs are managed by arrays wp<> or sp<> (this is because wp<> / sp<> don't have a trivial ctor when DEBUG_REFS is enabled, and Vector treats them as trivial for obvious performance reasons) this is complicated by the fact that we don't want to have to recompile everything when enabling DEBUG_REFs (i.e.: the Vector code cannot know wheter it's enabled or not for its template stuff). problem: there was a bug in the fix-up code for wp<> which was trying to access the weakref_impl from the RefBase* however, this was moronic since RefBase could have been destroyed if there wasn't any more strong refs -- and this happned. Instead we need to get the weakref_impl directly from the wp<> Change-Id: Ie16e334204205fdbff142acb9faff8479a78450b
2013-03-15Add Vector::resize() Jesse Hall
Bug: 8384764 Change-Id: Icee83d389f3e555eba7d419b64c8d52a9aa21b8b
2013-03-11Merge "Add Thread::isRunning and Condition::signal(WakeUpType)" into jb-mr2-dev Romain Guy
2013-03-11Add Thread::isRunning and Condition::signal(WakeUpType) Romain Guy
The signal() method is useful to choose whether to wake up one or all threads. Change-Id: I062ab6d3ddd306a9fb735549ea140e2a76eed75a
2013-03-07rename binder services main thread to Binder_* Mathias Agopian
When a binder service's main thread joins the thread pool it retains its name (whatever the exec name was), which is very confusing in systrace. we now rename that thread just like its friends in the thread pool. Change-Id: Ibb3b6ff07304b247cfc6fb1694e72350c579513e
2013-03-06Tweaks for forward compatibility Jean-Baptiste Queru
Change-Id: I136fcbbc14072ee5f5281d09445f28d083ed3ce1
2013-02-15utils: Allow non android namespaces to use ALOGD_IF_SLOW Naseer Ahmed
Change-Id: I9207b64954fae2f56cc5f6aa5796a2e737400623
2012-12-12Merge "utils: fix warnings for unused parameters" Igor Murashkin
2012-12-05Add LinearAllocator Chris Craik
Moving from external/webkit/Source/WebCore/platform/graphics/android/utils/ Change-Id: If91830aa9b207dbc8692b2ca7c4a0b76778addd5
2012-12-05utils: fix warnings for unused parameters Igor Murashkin
Change-Id: Ibfb755a30ba2923669060fe0aed019beecbe38a1
2012-11-30utils: clarify scoped tracing functionality Alex Ray
ScopedTrace objects were being used in place of ATRACE_NAME because of a misunderstanding of it's function. Cleared up documentation for usage. Also explicitly use global namespace for sysprop callback. Change-Id: I7c248b486b614ccdb841659ca0dcfc644fda670a
2012-11-29Merge "utils: Use cutils tracing functionality." Alex Ray
2012-11-29utils: Use cutils tracing functionality. Alex Ray
Tracing functionality has moved to cutils. Change-Id: Ie78ccc1d59dd5178f5058fbc3858a37f9adce552
2012-11-28Add LruCache::Iterator Romain Guy
Required by libhwui Change-Id: I164b9a4a82d89d132da01a56535c0df084de86f7
2012-11-28Add another ifndef and a couple of methods to LruCache Romain Guy
The new methods on LruCache are needed by libhwui to manage the cache of paths. Change-Id: If54fa325c54e2b04e7fe5dfe6dad66066c40127c
2012-11-28Add #ifndef to prevent multiple definitions Romain Guy
Change-Id: Ib861eee0f333fe29290437b7e67623622d8dabd0
2012-11-09am 41f7736a: am 434e21bf: am 3fdeb48e: Reduce emulator logspam Andy McFadden
* commit '41f7736ad1e72df8796416a82ce3cede6193d1eb': Reduce emulator logspam
2012-11-09am 434e21bf: am 3fdeb48e: Reduce emulator logspam Andy McFadden
* commit '434e21bfd6b14f8d99b9bcdb829e7252edd574f3': Reduce emulator logspam
2012-11-09am 3fdeb48e: Reduce emulator logspam Andy McFadden
* commit '3fdeb48e3c89be15fe3b539a26ec9a3cf28c898c': Reduce emulator logspam
2012-11-08Reduce emulator logspam Andy McFadden
The emulator doesn't support systrace, but we should point that out at most once per process. Bug 7436352 Change-Id: I06b2c1ea0df6c02c11cd2496423c337f8d7c62a1
2012-10-29Merge "Add an LRU cache plus hashing primitives" Raph Levien
2012-10-26Add an LRU cache plus hashing primitives Raph Levien
This patch adds a hashtable-based LRU cache. This should be significantly higher performance than the GenerationCache it is intended to replace. It is a large part of the fix for bug 7271109 TextLayoutCache low-level performance issues. We added a new method to BasicHashtable to detect when rehashing is needed, because the internal linked list pointers would get invalidated by that rehashing. Also, the hash_type specialized to pointers had a small flaw. Change-Id: I950c2083f96519777b851dbe157100e0a334caec
2012-10-25am 78b4977e: Merge "Ensure that Vector::erase() returns a valid iterator" ↵ Jason Simmons
into jb-mr1-aah-dev * commit '78b4977efd365d2ad7c9227c3a89e65ab60c3260': Ensure that Vector::erase() returns a valid iterator
2012-10-25Merge "Ensure that Vector::erase() returns a valid iterator" into jb-mr1-aah-dev Jason Simmons
2012-10-25Ensure that Vector::erase() returns a valid iterator Jason Simmons
Vector::erase may reallocate the Vector's storage while removing an element. However, erase() calls begin() before calling removeItemsAt(), thus caching a pointer the the Vector's old storage. If the storage is reallocated, the iterator returned by erase() will be based on the old storage pointer and will thus be invalid. Change-Id: I2450c55fd418e6b1c558a4ca7c024573abbaa098
2012-10-25am 04075569: Revert "Revert "put back the unused virtuals in Vector<>"" Dave Burke
* commit '04075569b565c949a6db8b4e8a9f10d281de4d9c': Revert "Revert "put back the unused virtuals in Vector<>""
2012-10-25Revert "Revert "put back the unused virtuals in Vector<>"" Dave Burke
This reverts commit 225c66a48cdc3acef21ee380dc134449749d3cb3 Change-Id: If31a04b81052cbc7dd7bf237c07107c33066d03d
2012-10-18am 60393d45: Merge "Add runtime debugging capabilities to OpenGL" into ↵ Romain Guy
jb-mr1-dev * commit '60393d45207b6548e1f61ca104fa59aecee87d30': Add runtime debugging capabilities to OpenGL
2012-10-18Add runtime debugging capabilities to OpenGL Romain Guy
The shell property debug.egl.trace can now be set to: 0 disables tracing 1 logs all GL calls error checks glGetError after every GL call, logs a stack trace on error systrace logs each GL call to systrace Change-Id: I34a2a2d4e19c373fd9eaa1b0cd93e67c87378996
2012-10-16am 125becee: am 7abbbc68: Merge "Add TEMP_FAILURE_RETRY to ZipUtils" Kenny Root
* commit '125beceefd44f6abd17ff336bb989e1850965bd8': Add TEMP_FAILURE_RETRY to ZipUtils
2012-10-16Add TEMP_FAILURE_RETRY to ZipUtils Kenny Root
Change-Id: I275c415f14eeffaf9a58d45f3ea014d766441ec3
2012-08-31minor SharedBuffer clean-up Mathias Agopian
Change-Id: If38b7ce85806ae628c00f2c938de4e3f75142543
2012-08-31Add a way to retrieve a Region as a SharedBuffer Mathias Agopian
Change-Id: Ia53cb905fbc88f899521658545f990fb9217b1e1
2012-08-27am 9801575a: am 908c8ff5: Merge "Fixed clang build error for libgui" Jean-Baptiste Queru
* commit '9801575a65f2f9d0bdc924ec0a4bbfb6ef071bbe': Fixed clang build error for libgui
2012-08-24Revert "put back the unused virtuals in Vector<>" Mathias Agopian
This reverts commit 1648d4c13ba2eff3ea14cd87ee94028458a39f97. Bug: 6977192 Change-Id: Idbb6b239aaed4fb1c054ce943f6ba06ede3492bb