summaryrefslogtreecommitdiffstats
path: root/include/utils
Commit message (Collapse)AuthorAgeFilesLines
* Fix Mac build.Elliott Hughes2014-11-221-1/+1
| | | | Change-Id: Iae697ae257cf4b1d675e2b758dd31d5a6a71ae4d
* Kill HAVE_BIG_ENDIAN, HAVE_ENDIAN_H, and HAVE_LITTLE_ENDIAN.Elliott Hughes2014-11-211-10/+5
| | | | Change-Id: I9e25ac9d27e95b04fb8bf7a66c619af0139d8b8f
* Add a pre-C++11 constexpr compatibility macro.Dan Albert2014-11-201-0/+11
| | | | | | | | | Needed for cases where something should be constexpr if possible, but not being constexpr is fine if in pre-C++11 code (such as a const static float member variable). Bug: 18466763 Change-Id: I635d062575ba2fbc4cbe3a89f730128c404d95e1
* kill HAVE_POSIX_FILEMAPYabin Cui2014-11-111-2/+2
| | | | | Bug: 18315579 Change-Id: I0bd5fb946b12cb90e0c9c73a478df41609b8c3e2
* Merge "Move winsock2.h in front of a potential windows.h include."Stephen Hines2014-11-091-0/+4
|\
| * Move winsock2.h in front of a potential windows.h include.Stephen Hines2014-11-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | Files that included FileMap.h (possibly transitively), before including ByteOrder.h (which pulls in winsock2.h directly), will experience a compiler warning/error from the latest mingw headers. This happens because the headers require that winsock2.h come before windows.h in all cases. The simplest (and most error-proof) fix for now is to include winsock2.h before this use of windows.h. Change-Id: I33069e4c9962d9820d0ea5976554f89d7ff6307c
* | Make Unicode.h use types that match libc++.Dan Albert2014-11-081-2/+2
|/ | | | | | | libc++ also defines these types for pre-C++11, and the two definitions need to match to avoid redefinition errors. Bug: 18300613 Change-Id: I1e9198d39f7c470f37bc6edba2dca2d499f54c9b
* am fbb4188c: am d559d6c7: Merge "defined(HAVE_OFF_T) is really just ↵Elliott Hughes2014-09-231-8/+4
|\ | | | | | | | | | | | | !defined(__APPLE__)." * commit 'fbb4188cfac18b457801cf3e304bfa39dd29dde8': defined(HAVE_OFF_T) is really just !defined(__APPLE__).
| * defined(HAVE_OFF_T) is really just !defined(__APPLE__).Elliott Hughes2014-09-221-8/+4
| | | | | | | | Change-Id: I83c271bfe24b777acf293d2b4ac5af2cce8398b9
* | am 3859029a: am 7fb0ee0c: Merge "Remove androidGetTid."Elliott Hughes2014-08-182-5/+2
|\ \ | |/ | | | | | | * commit '3859029a48aa78150fa61eb4988214f8632b33ce': Remove androidGetTid.
| * Remove androidGetTid.Elliott Hughes2014-08-182-5/+2
| | | | | | | | | | Bug: 17048545 Change-Id: I93cbb2d7bd18d506b5f5f7f262dd9ac0fca053b4
* | am 4c818dc8: am 56b28f6b: Merge "RefBase: make Renamer destructor virtual"Elliott Hughes2014-08-061-2/+4
|\ \ | |/ | | | | | | * commit '4c818dc800d97e2fdee0337a0e9736099d90cc47': RefBase: make Renamer destructor virtual
| * RefBase: make Renamer destructor virtualUkri Niemimuukko2014-08-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes the Renamer class destructor virtual and fixes the incorrect constructor initialization list ordering. These issues and related compiler warnings have been suppressed by the build system which uses the gcc –isystem command line option, unless a project explicitly adds the include the path system/core/include to Android.mk and uses the templates. Change-Id: Iff76a655eb8bd547adfe994c7315a005e98aed41 Signed-off-by: Ukri Niemimuukko <ukri.niemimuukko@intel.com> Signed-off-by: Mingwei Shi <mingwei.shi@intel.com> Signed-off-by: Yong Yao <yong.yao@intel.com>
* | Add a couple of useful string functions.Jeff Brown2014-06-091-0/+13
| | | | | | | | Change-Id: I158f69917bab5f15482dd8f2b66b36a4cc0f11ad
* | am 7aa8cdfb: am 21157abc: am 8814bd1d: Merge "include: cleanup for ↵Mark Salyzyn2014-05-232-5/+9
|\ \ | | | | | | | | | | | | | | | | | | -Wsystem-header" * commit '7aa8cdfb317dcb7efb7127b070526df09da05377': include: cleanup for -Wsystem-header
| * \ am 21157abc: am 8814bd1d: Merge "include: cleanup for -Wsystem-header"Mark Salyzyn2014-05-232-5/+9
| |\ \ | | |/ | | | | | | | | | * commit '21157abcd932e899032689dba120d4f7cb08aa23': include: cleanup for -Wsystem-header
| | * include: cleanup for -Wsystem-headerMark Salyzyn2014-05-232-5/+9
| | | | | | | | | | | | | | | | | | | | | - warnings as errors, or errors introduced when -Wsystem-header was experimentally introduced. Change-Id: Ia8f5b3c1c1096e191741223d52526aa48c7f1cc4
* | | Add VirtualLightRefBaseJohn Reck2014-05-091-0/+7
| | | | | | | | | | | | Change-Id: I040db87d9e87ba0584e7e5bdd72f0c319a522fa1
* | | Merge "libutils: Clarify Condition::signal wakes up exactly one thread"Igor Murashkin2014-04-151-1/+12
|\ \ \
| * | | libutils: Clarify Condition::signal wakes up exactly one threadIgor Murashkin2014-04-151-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Contrary to POSIX pthread_cond_signal guarantees, bionic will wake up either zero or one threads. Change-Id: I628fcd4d5bd8d5290104506f86caa82c54142230
* | | | Merge "Add a peekOldestValue"John Reck2014-04-141-0/+9
|\ \ \ \
| * | | | Add a peekOldestValueJohn Reck2014-04-111-0/+9
| |/ / / | | | | | | | | | | | | Change-Id: I89d8ea14c8ac02653d9c0e1fe24a4b17bb9c87f5
* | | | BitSet32 64b compatibility fixAndreas Gampe2014-04-111-3/+22
|/ / / | | | | | | | | | | | | | | | | | | | | | Using __builtin_c{l,t}zl fails on 64b systems as unsigned long is 8B there. However, unsigned int is only guaranteed to be 2B. Introduce a check that should be optimized away by the compiler. Change-Id: I854d0817c6bb5ae13c257241240664bf8f1a7c8a
* | | am 1f87d3ab: am 83fd6375: am 31631861: Merge "Add guards to prevent typedefs ↵Tim Murray2014-04-071-0/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | when C++11 is available." * commit '1f87d3ab8c384d03d1496c63f7faad15bd5eeba9': Add guards to prevent typedefs when C++11 is available.
| * | am 83fd6375: am 31631861: Merge "Add guards to prevent typedefs when C++11 ↵Tim Murray2014-04-071-0/+3
| |\ \ | | |/ | | | | | | | | | | | | | | | is available." * commit '83fd6375f6d9016afe9bb03453d39b8c41cda548': Add guards to prevent typedefs when C++11 is available.
| | * Add guards to prevent typedefs when C++11 is available.Tim Murray2014-04-071-0/+3
| | | | | | | | | | | | | | | | | | char32_t and char16_t are both defined in C++11. Change-Id: I44fe8f4f05f230c18a1b77fa21b6a40c8f8ecc2d
| * | am df33e8b5: Add BitSet64. DO NOT MERGEMichael Wright2014-03-261-22/+173
| |\ \ | | |/ | |/| | | | | | | * commit 'df33e8b544c457e4b08e8fa0b8a3eaf5eaf8fc2e': Add BitSet64. DO NOT MERGE
| | * Add BitSet64. DO NOT MERGEMichael Wright2014-03-241-22/+173
| | | | | | | | | | | | Change-Id: Idf3e21dfaa9f90f4dcb1b4d41eed3891dda99561
* | | Clarify ownership for NativeHandle::mHandleWonsik Kim2014-03-241-3/+6
| | | | | | | | | | | | Change-Id: I0835278df1aa78f10d5493d7ef2c9e4a15c0fee9
* | | Add static methods to BitSet.Michael Wright2014-03-191-41/+99
| | | | | | | | | | | | | | | | | | Also, moar testing. Change-Id: I512b337a1a85a0794445fc6249af7ca39ba7c381
* | | Add traits to BitSet64, not 32.Michael Wright2014-03-181-1/+1
| | | | | | | | | | | | Change-Id: I3d41bbe47f5b02c610f69fc7824e416436d086b1
* | | Add BitSet64Michael Wright2014-03-181-5/+98
| | | | | | | | | | | | Change-Id: Ia0039aae00316f42a8306a9fb8ad37269180b58c
* | | Add NativeHandle, a refcounted C++ wrapper around a native_handle_t*Jesse Hall2014-03-051-0/+53
| | | | | | | | | | | | Change-Id: I232dfa2ad2e4a463a39e2e901e4097dffe278cc3
* | | am bfed1360: am 1ed1d341: am 26fa5cd3: Merge "AArch64: Use negative values ↵Narayan Kamath2014-02-271-10/+10
|\ \ \ | |/ / | | | | | | | | | | | | | | | in error enumeration" * commit 'bfed136068feb299b3ca8a07d6eaf5d93e3ff2a3': AArch64: Use negative values in error enumeration
| * | AArch64: Use negative values in error enumerationAshok Bhat2014-02-201-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With AArch64 the enumerations with values in the range 0x80000000 to 0x80000007 are being assigned to ssize_t typed variables which are 64-bit rather than 32-bit, and are being used in conditions where they are being checked for being negative. This is not the case when ssize_t is 64-bit, so redefine this to INT32_MIN value. Change-Id: I7a031a940a28658b3bf34bebac93dfb3ba397b05 Signed-off-by: Marcus Oakland <marcus.oakland@arm.com> Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
| * | Revert "Move to the canonical UniquePtr.h."Elliott Hughes2014-02-042-1/+240
| | | | | | | | | | | | | | | | | | This reverts commit 2a72c575d260cd256f767b7ad511a6959444134b. Change-Id: Idb485f1be2906e8c1c8f0da3df186a7aade027f6
| * | Move to the canonical UniquePtr.h.Elliott Hughes2014-02-042-240/+1
| |/ | | | | | | Change-Id: I5330c36d2b571acb6d3debd30b8020e33aa8a4a7
* | resolved conflicts for merge of 47fa9064 to masterChristopher Ferris2014-01-171-1/+1
|\ \ | |/ | | | | Change-Id: I53fb8ff2dfbefe6246385e624c5c3525cc6f4253
| * Rewrite libbacktrace to be all C++.Christopher Ferris2014-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This includes removing the map_info.c source and replacing it with the BacktraceMap class to handle all map related code. Change all callers of libbacktrace map functionality. Also modify the corkscrew thread code so that it doesn't need to build the map twice (once in the corkscrew format and once in the libbacktrace format). Change-Id: I32865a39f83a3dd6f958fc03c2759ba47d12382e
| * Move BACKTRACE_NO_TID to BACKTRACE_CURRENT_THREAD.Christopher Ferris2014-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | Use a bit better name for this. The other name was a bit confusing. Change-Id: I1261f2ee3854a9c8b82133ad0bfbbbe48b43c9ac (cherry picked from commit 242b1a8c7a5ec73172bac811e51acbc27201f22c) Conflicts: libbacktrace/Backtrace.cpp
| * Move CallStack to libbacktrace.Christopher Ferris2014-01-092-32/+9
| | | | | | | | | | | | | | | | | | Fix a small bug in the Printer for strings that didn't properly prepend the prefix. (cherry picked from commit 9b0e074c6d38143e01616404a08b0c7aa992f3c3) Change-Id: I78bfa3f76864c34f33fb439bf20dfc85616f1077
* | am 137ab19a: am b37b53bf: am 87942c9a: am b3bfe881: Merge "Make libutils ↵Brian Carlstrom2013-12-191-23/+112
|\ \ | |/ | | | | | | | | | | Looper independent of frameworks/native" * commit '137ab19a0a196a419636b078f94aef23b1172335': Make libutils Looper independent of frameworks/native
| * Make libutils Looper independent of frameworks/nativeBrian Carlstrom2013-12-181-23/+112
| | | | | | | | Change-Id: I1dacca10a3cd7601abc3451b69ed761bf71c38fe
* | Move BACKTRACE_NO_TID to BACKTRACE_CURRENT_THREAD.Christopher Ferris2013-11-121-1/+1
| | | | | | | | | | | | Use a bit better name for this. The other name was a bit confusing. Change-Id: I1261f2ee3854a9c8b82133ad0bfbbbe48b43c9ac
* | Move CallStack to libbacktrace.Christopher Ferris2013-11-062-32/+9
| | | | | | | | | | | | | | Fix a small bug in the Printer for strings that didn't properly prepend the prefix. Change-Id: I33c63841ef6e07728ab3195886539d82b38ee19a
* | am 39f18c9e: am 1b84e0a3: Merge "utils: Add ProcessCallStack to collect ↵Igor Murashkin2013-10-303-18/+235
|\ \ | |/ | | | | | | | | | | stack traces for all threads in a process" into klp-dev * commit '39f18c9ece973a0eaff7e982a120de63f31ee5c0': utils: Add ProcessCallStack to collect stack traces for all threads in a process
| * utils: Add ProcessCallStack to collect stack traces for all threads in a processIgor Murashkin2013-10-253-18/+235
| | | | | | | | | | | | | | - Also add a Printer class (print lines to logcat, fd, or strings) Bug: 11324229 Change-Id: I78435ed49aa196a0efb45bf9b2d58b62c41737d3
* | Remove UniquePtr.h copyKenny Root2013-09-201-239/+0
| | | | | | | | | | | | | | | | | | | | This was copied from libcore/include quite a while ago, but the canonical version has since moved out to a generic library called libnativehelper. All users of this header should already have libnativehelper on their include path, so switching to the canonical version is as easy as removing the "utils/" part. Change-Id: Iae8e59bf3eee573bfa78381866989934e5bbf19d
* | Use canonical UniquePtr.h fileKenny Root2013-09-111-1/+1
|/ | | | Change-Id: I88b51b76120a83d2165d44421f29bcb5fd6d62a2
* minor tweaks to FlattenableUtilsMathias Agopian2013-08-011-5/+8
| | | | Change-Id: Ibfceec36434baac92c8815a18d902375d3fa1a6d