summaryrefslogtreecommitdiffstats
path: root/include/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* libutils cleanup: remove unused or seldom used code from misc.{cpp|h}Mathias Agopian2013-07-301-39/+1
| | | | Change-Id: I72206f16619d81887e3b85603494563faab3b445
* We now have a real list of displays.Mathias Agopian2013-07-301-1/+15
| | | | | | | displays can be dynamically added or removed, and the list is part of the SF's transaction. Change-Id: I4186ea39f1317c0e7c044f869004017738968fab
* Add elapsedRealtimeNano(), and use CLOCK_BOOTTIME where possible.Nick Pelly2013-07-302-2/+4
| | | | Change-Id: I4231c8ca32663e6e2cb5b7c126d091f837373807
* one more step towards multiple display supportMathias Agopian2013-07-301-4/+4
| | | | | | | | | - remove dependency on cached state in validateVisibility - get rid of mVertices and mTransformedBounds - get rid of validateVisibility - get rid of unlockPageFlip - handleTransaction now returns a dirty region - computevisibileregion now uses window-manager space
* Support looper callbacks based on smart pointers.Jeff Brown2013-07-301-2/+52
| | | | | Bug: 6559630 Change-Id: I5a667f219f431838638acefbc9fa6afa610971bd
* Add camera as an ATRACE tagEino-Ville Talvala2013-07-301-1/+2
| | | | Change-Id: Ib4f22d593836c4b973d122efa114d359f1529914
* Delete unused poll() code.Jeff Brown2013-07-301-29/+0
| | | | | | | We don't need this code anymore and it is just in the way. Bug: 6559630 Change-Id: I1dc9decf85d5ea1feab159c2985da6c20baffdd5
* Remove unused statistics code.Jeff Brown2013-07-301-21/+0
| | | | | Bug: 6559630 Change-Id: Iacdf4bb4c1c125c09305cbd8cb443c7c80cfc010
* libutils: add a tracing tag for videoJamie Gennis2013-07-301-1/+2
| | | | Change-Id: Icbecc7184844e95ee81a558b0a54d5513d5cf59f
* Add callback hack to find out when to reload system properties.Dianne Hackborn2013-07-302-0/+9
| | | | | | | | | | | | Every IBinder object can accept a new transaction to tell it that it might want to reload system properties, and in the process anyone can register a callback to be executed when this happens. Use this to reload the trace property. This is very much ONLY for debugging. Change-Id: I55c67c46f8f3fa9073bef0dfaab4577ed1d47eb4
* Add audio tag to systraceGlenn Kasten2013-07-301-1/+2
| | | | Change-Id: I4a558c43e4ccd81a4ed94684c5fad6b3c486bd14
* Add System Tracing capability to Sync ManagerAndy Stadler2013-07-301-1/+2
| | | | | | See also: Change-Id: Ia8bc01adbba345a568405b0ac8ade96e56b40cc1 Change-Id: I2678974cf85464fbc09072b06f647a0787e6e23f
* Add traces for window manager and activity manager.Dianne Hackborn2013-07-301-7/+9
| | | | Change-Id: I6677ca64164f234efc7856ddd173ad6989b4f59e
* Scheduling group cleanupGlenn Kasten2013-07-302-20/+0
| | | | | | | | | | | | | Remove C++ APIs androidSetThreadSchedulingGroup and androidGetThreadSchedulingGroup, and the ANDROID_TGROUP_* constants. Former callers of these should now use the C APIs set_sched_policy and get_sched_policy, and the SP_* constants. Note: debug.sys.noschedgroups is not supported by the C APIs, this needs to be discussed. Change-Id: I32bbfc539ef4090faf9ef0320380e8cca9eae07c
* Support tokenizing arbitrary content.Jeff Brown2013-07-301-1/+12
| | | | | Bug: 6110399 Change-Id: I37be63b68934fd451e6dffbf7d6079553619c0a3
* Add webview tracing bitChris Craik2013-07-301-1/+2
| | | | Change-Id: I82e54f5eeb2666a255e372fd3bfcc54c1b3d76a0
* frameworks/native: move Zip* from libandroidfw to libutilsColin Cross2013-07-303-0/+390
| | | | | | | ZipUtils is needed by build/tools, move it from libandroidfw (frameworks/base) to libutils (frameworks/native). Change-Id: Ib8c41134ccdec6d6aa8d49860f8dddef49a24783
* Add UniquePtr.h to frameworks/nativeKenny Root2013-07-301-0/+239
| | | | | | | | | | This is a copy of libcore's UniquePtr.h header which is used until we get C++11 which has std::unique_ptr which is essentially the same. Taken from libcore project at commit 3e6dd45baa0d7f9b4fa06f4ade76e088b59cc7bf Change-Id: I7537b016f9eae33bfc4c57b24f86260909719ab8
* Add a simple work queue abstraction.Jeff Brown2013-07-302-0/+121
| | | | | | Makes it easy to schedule a bunch of work to happen in parallel. Change-Id: Id9c0e52fc8b6d78d2b9ed4c2ee47abce0a01775c
* Add traits to common utils data structures.Jeff Brown2013-07-308-4/+43
| | | | | | | | | | | Many of our basic data structures are trivially movable using memcpy() even if they are not trivially constructable, destructable or copyable. It's worth taking advantage of this *ahem* trait. Adding trivial_move_trait to String16 reduces appt running time on frameworks/base/core/res by 40%! Change-Id: I630a1a027e2d0ded96856e4ca042ea82906289fe
* Expose the set of enabled tags.Jeff Brown2013-07-301-22/+32
| | | | | | | | | This is used by the Java trace wrappers to avoid JNI overhead when trace tags are disabled. Also added a new tag for the input subsystem and view hierarchy. Change-Id: Ia04a507e42a37b1d3bbb19859e6c07a92f4fe9aa
* Instead of hardcoding OMX component names in our code, supportAndreas Huber2013-07-301-2/+2
| | | | | | a config file instead. Change-Id: I5835903ab9f1c4a22ccc605ca99ed966767adf57
* split utils/threads.h into multiple headersMathias Agopian2013-07-307-544/+779
| | | | | | | | | | | | | AndroidDefs.h - C/C++ enums and types Mutex.h - Mutex class declaration Condition.h - Condition class declaration RWLock.h - RWLock class declaration Thread.h - Thread class declaration AndroidThreads.h - low-level thread creation functions threads.h - includes all the above for backward source compatibility Change-Id: Ia2f80c175333b59a41d1720985810bb2346e94cb Note: implementations are still in Threads.cpp
* libutils: add a system-wide tracing utilityJamie Gennis2013-07-301-0/+166
| | | | | | | This change adds some utility functionality for doing userland tracing into the kernel trace log. Change-Id: Id0a8cee9ea515b1d8765afd1cecf472a88b4b9e8
* Xcode 4.3 compatibility checkinAl Sutton2013-07-301-3/+3
| | | | | | | | | The update compiler in Xcode 4.3 (and 4.4) requires lookups into dependant bases of class templates to be qualified. This checkin fixes the issues raised by the compiler by implementing the this-> recommendation from the llvm page at http://clang.llvm.org/compatibility.html#dep_lookup_bases Signed-off-by: Al Sutton <al@funkyandroid.com>
* frameworks/base refactoring.Mathias Agopian2013-07-3010-3218/+0
| | | | | | step 2: move libutils headers to their new home: androidfw Change-Id: I14624ba23db92a81f2cb929f104386e1fab293ef
* Update commentsGlenn Kasten2013-07-301-1/+1
| | | | | | We no longer put the filename at start of file. Change-Id: Ic435b159a23105681e3d4a6cb1ac097bc853302e
* DO NOT MERGERamanan Rajeswaran2013-07-301-2/+0
| | | | | | | | Revert "Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc." This reverts commit c1496d2d9a496e4aba817a58ecb9e07fe55cdba5. Change-Id: If60df742b19c925cc99b20d01108b84415b124ad
* Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc.Dianne Hackborn2013-07-301-0/+2
| | | | Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598
* DO NOT MERGERamanan Rajeswaran2013-07-301-2/+0
| | | | | | | | Revert "Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc." This reverts commit c1496d2d9a496e4aba817a58ecb9e07fe55cdba5. Change-Id: If60df742b19c925cc99b20d01108b84415b124ad
* aapt now sorts the strings in the resource string pool.Dianne Hackborn2013-07-301-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 Hackborn2013-07-301-0/+2
| | | | Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598
* Thread::getTid returns pid_t gettid() after runGlenn Kasten2013-07-301-2/+10
| | | | | | | This is needed when the parent or any other thread besides the child needs access to the child's kernel tid. Change-Id: Ib148505913eb78314cfd76657c30d7b20663dffd
* Fix compilation with Clang.Evgeniy Stepanov2013-07-301-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 Block2013-07-301-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 Block2013-07-301-5/+5
| | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
* Add a new ui mode for "appliance"Joe Onorato2013-07-301-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 Guy2013-07-301-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 Brown2013-07-301-8/+8
| | | | Change-Id: I3f9e004db2f3be1cb43a885c3ae142f251fd6845
* Add a basic hashtable data structure, with tests!Jeff Brown2013-07-302-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 Brown2013-07-301-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
* BlobCache: implement cache serializationJamie Gennis2013-07-301-12/+84
| | | | | | | This change adds serialization and deserialization functionality to BlobCache, conforming to the Flattenable interface. Change-Id: Ibc99cb1c3d015f363d57d0713eabccec07ff975e
* BlobCache: remove the mutex lockingJamie Gennis2013-07-301-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 Brown2013-07-301-5/+3
| | | | Change-Id: Iee1ee5a2018ab8cfc1ce12ec2a124809245eaa02
* Reduce the size of libhwui by 50%Romain Guy2013-07-301-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 Brown2013-07-301-0/+7
| | | | | | Bug: 5332296 Change-Id: Iff9eed786f0a8293b6156f883a66a322ddad5e99
* Add mechanism for Parcel to not allow FDs to be written to it.Dianne Hackborn2013-07-301-0/+1
| | | | | | This is to help implement issue #5224703. Change-Id: I026a5890495537d15b57fe61227a640aac806d46
* A new API "androidGetThreadPriority"Andreas Huber2013-07-301-0/+4
| | | | Change-Id: I6baeead8c70460863343fd557250635fb1e6a170
* Fix String16 operator+ to actually workJosiah Gaskin2013-07-301-1/+1
| | | | | | This change fixes the String16 utility's operator+ function. Change-Id: Ibed7b07277b50bf178febc72b6ce497893e66f17
* fix a memory leak and memory corruption in RefBaseMathias Agopian2013-07-301-3/+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