summaryrefslogtreecommitdiffstats
path: root/include/utils
Commit message (Collapse)AuthorAgeFilesLines
* Tweaks for forward compatibilityJean-Baptiste Queru2013-03-061-0/+42
| | | | Change-Id: I136fcbbc14072ee5f5281d09445f28d083ed3ce1
* am 434e21bf: am 3fdeb48e: Reduce emulator logspamAndy McFadden2012-11-091-0/+2
|\ | | | | | | | | * commit '434e21bfd6b14f8d99b9bcdb829e7252edd574f3': Reduce emulator logspam
| * am 3fdeb48e: Reduce emulator logspamAndy McFadden2012-11-091-0/+2
| |\ | | | | | | | | | | | | * commit '3fdeb48e3c89be15fe3b539a26ec9a3cf28c898c': Reduce emulator logspam
| | * Reduce emulator logspamAndy McFadden2012-11-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | The emulator doesn't support systrace, but we should point that out at most once per process. Bug 7436352 Change-Id: I06b2c1ea0df6c02c11cd2496423c337f8d7c62a1
* | | am 78b4977e: Merge "Ensure that Vector::erase() returns a valid iterator" ↵Jason Simmons2012-10-251-1/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | into jb-mr1-aah-dev * commit '78b4977efd365d2ad7c9227c3a89e65ab60c3260': Ensure that Vector::erase() returns a valid iterator
| * | Merge "Ensure that Vector::erase() returns a valid iterator" into jb-mr1-aah-devJason Simmons2012-10-251-1/+2
| |\ \ | | |/ | |/|
| | * Ensure that Vector::erase() returns a valid iteratorJason Simmons2012-10-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am 04075569: Revert "Revert "put back the unused virtuals in Vector<>""Dave Burke2012-10-251-0/+20
|\ \ \ | |/ / | | | | | | | | | * commit '04075569b565c949a6db8b4e8a9f10d281de4d9c': Revert "Revert "put back the unused virtuals in Vector<>""
| * | Revert "Revert "put back the unused virtuals in Vector<>""Dave Burke2012-10-251-0/+20
| |/ | | | | | | | | | | This reverts commit 225c66a48cdc3acef21ee380dc134449749d3cb3 Change-Id: If31a04b81052cbc7dd7bf237c07107c33066d03d
* | am 60393d45: Merge "Add runtime debugging capabilities to OpenGL" into ↵Romain Guy2012-10-181-0/+5
|\ \ | |/ | | | | | | | | | | jb-mr1-dev * commit '60393d45207b6548e1f61ca104fa59aecee87d30': Add runtime debugging capabilities to OpenGL
| * Add runtime debugging capabilities to OpenGLRomain Guy2012-10-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | am 125becee: am 7abbbc68: Merge "Add TEMP_FAILURE_RETRY to ZipUtils"Kenny Root2012-10-161-0/+23
|\ \ | |/ |/| | | | | * commit '125beceefd44f6abd17ff336bb989e1850965bd8': Add TEMP_FAILURE_RETRY to ZipUtils
| * Add TEMP_FAILURE_RETRY to ZipUtilsKenny Root2012-10-161-0/+23
| | | | | | | | Change-Id: I275c415f14eeffaf9a58d45f3ea014d766441ec3
* | minor SharedBuffer clean-upMathias Agopian2012-08-311-17/+8
| | | | | | | | Change-Id: If38b7ce85806ae628c00f2c938de4e3f75142543
* | Add a way to retrieve a Region as a SharedBufferMathias Agopian2012-08-311-1/+1
| | | | | | | | Change-Id: Ia53cb905fbc88f899521658545f990fb9217b1e1
* | am 9801575a: am 908c8ff5: Merge "Fixed clang build error for libgui"Jean-Baptiste Queru2012-08-271-2/+2
|\ \ | |/ | | | | | | * commit '9801575a65f2f9d0bdc924ec0a4bbfb6ef071bbe': Fixed clang build error for libgui
| * Fixed clang build error for libguiTareq A. Siraj2012-08-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | Fixed the order of the statements in ANDROID_SINGLETON_STATIC_INSTANCE macro so that the templated static member variable initialization comes before the instantiation of the Singleton class. This fixes the clang compile error. Change-Id: Ic47d17e152b657f2dff3191ccc3770753fdf002b Author: Tareq A. Siraj <tareq.a.siraj@intel.com> Reviewed-by: Edwin Vane <edwin.vane@intel.com>
* | Revert "put back the unused virtuals in Vector<>"Mathias Agopian2012-08-241-20/+0
| | | | | | | | | | | | | | | | This reverts commit 1648d4c13ba2eff3ea14cd87ee94028458a39f97. Bug: 6977192 Change-Id: Idbb6b239aaed4fb1c054ce943f6ba06ede3492bb
* | put back the unused virtuals in Vector<>Mathias Agopian2012-08-201-0/+20
| | | | | | | | | | | | | | | | | | some binaries are using these private APIs and broke (as they should!) with this change. Temporarily restore the virtuals to work around this. Bug: 6977550 Change-Id: I7c37f24b16e4d586b89205c493db5169cf87e024
* | get rid of mirrorItemAt() which isn't used anywhereMathias Agopian2012-08-202-22/+0
| | | | | | | | Change-Id: Id6f2dbeed21cabc127d39538c0ff464077ada83f
* | Merge "Add a very simple helper function to log slow functions." into jb-mr1-devJeff Brown2012-08-131-0/+38
|\ \
| * | Add a very simple helper function to log slow functions.Jeff Brown2012-08-101-0/+38
| | | | | | | | | | | | Change-Id: I2e2e072206d02b572a330dd25857c161b5b563bf
* | | improve [un]marshalling of non-binder objectsMathias Agopian2012-08-131-0/+72
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this change introduces a new class LightFlattenable<> which is a protocol to flatten simple objects that don't require binders or file descriptors; the benefit of this protocol is that it doesn't require the objects to have a virtual table and give us a consitant way of doing this. we also introduce an implementation of this protocol for POD structures, LightFlattenablePod<>. Parcel has been update to handle this protocol automatically. Sensor, Rect, Point and Region now use this new protocol. Change-Id: Icb3ce7fa1d785249eb666f39c2129f2fc143ea4a
* | improve Vector<> safety checksMathias Agopian2012-08-104-38/+30
| | | | | | | | | | | | | | | | | | | | - make errors that will always cause a memory corruption always fatal (for eg: KeyedVector<>::editValue{For|At}() failure) - make other errors fatal in debug mode, those that can be caught by the caller. - fix typos Change-Id: I65cc7d81035c37ce2906fc4500c50e5d5b5c49eb
* | libutils cleanup: remove unused or seldom used code from misc.{cpp|h}Mathias Agopian2012-08-051-39/+1
| | | | | | | | Change-Id: I72206f16619d81887e3b85603494563faab3b445
* | We now have a real list of displays.Mathias Agopian2012-08-021-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 Pelly2012-07-192-2/+4
| | | | | | | | Change-Id: I4231c8ca32663e6e2cb5b7c126d091f837373807
* | one more step towards multiple display supportMathias Agopian2012-07-101-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
* | am d5085da3: am 4467bba7: Merge "Support looper callbacks based on smart ↵Jeff Brown2012-05-311-2/+52
|\ \ | |/ | | | | | | | | | | pointers." into jb-dev * commit 'd5085da3c0c103bba0c2c927382f7d414275b661': Support looper callbacks based on smart pointers.
| * Support looper callbacks based on smart pointers.Jeff Brown2012-05-311-2/+52
| | | | | | | | | | Bug: 6559630 Change-Id: I5a667f219f431838638acefbc9fa6afa610971bd
* | am 80586761: am dad23789: Merge "Delete unused poll() code." into jb-devJeff Brown2012-05-311-29/+0
|\ \ | |/ | | | | | | * commit '805867612c0c11d3bb494cbf454cbb2de21a1b75': Delete unused poll() code.
| * Delete unused poll() code.Jeff Brown2012-05-301-29/+0
| | | | | | | | | | | | | | We don't need this code anymore and it is just in the way. Bug: 6559630 Change-Id: I1dc9decf85d5ea1feab159c2985da6c20baffdd5
* | am dce1547d: am 9e2e781a: Merge "Remove unused statistics code." into jb-devJeff Brown2012-05-311-21/+0
|\ \ | |/ | | | | | | * commit 'dce1547d65877b89cec4e52ee8e5b39830911d00': Remove unused statistics code.
| * Remove unused statistics code.Jeff Brown2012-05-301-21/+0
| | | | | | | | | | Bug: 6559630 Change-Id: Iacdf4bb4c1c125c09305cbd8cb443c7c80cfc010
* | Add camera as an ATRACE tagEino-Ville Talvala2012-05-311-1/+2
|/ | | | Change-Id: Ib4f22d593836c4b973d122efa114d359f1529914
* libutils: add a tracing tag for videoJamie Gennis2012-05-111-1/+2
| | | | Change-Id: Icbecc7184844e95ee81a558b0a54d5513d5cf59f
* Add callback hack to find out when to reload system properties.Dianne Hackborn2012-05-092-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 Kasten2012-05-071-1/+2
| | | | Change-Id: I4a558c43e4ccd81a4ed94684c5fad6b3c486bd14
* Add System Tracing capability to Sync ManagerAndy Stadler2012-05-031-1/+2
| | | | | | See also: Change-Id: Ia8bc01adbba345a568405b0ac8ade96e56b40cc1 Change-Id: I2678974cf85464fbc09072b06f647a0787e6e23f
* Add traces for window manager and activity manager.Dianne Hackborn2012-04-261-7/+9
| | | | Change-Id: I6677ca64164f234efc7856ddd173ad6989b4f59e
* Scheduling group cleanupGlenn Kasten2012-04-192-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
* Merge "Support tokenizing arbitrary content."Jeff Brown2012-04-171-1/+12
|\
| * Support tokenizing arbitrary content.Jeff Brown2012-04-171-1/+12
| | | | | | | | | | Bug: 6110399 Change-Id: I37be63b68934fd451e6dffbf7d6079553619c0a3
* | Add webview tracing bitChris Craik2012-04-161-1/+2
|/ | | | Change-Id: I82e54f5eeb2666a255e372fd3bfcc54c1b3d76a0
* frameworks/native: move Zip* from libandroidfw to libutilsColin Cross2012-03-223-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 Root2012-03-221-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 Brown2012-03-172-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 Brown2012-03-168-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 Brown2012-03-091-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 Huber2012-03-011-2/+2
| | | | | | a config file instead. Change-Id: I5835903ab9f1c4a22ccc605ca99ed966767adf57