summaryrefslogtreecommitdiffstats
path: root/libutils
Commit message (Collapse)AuthorAgeFilesLines
* Libutils: Comment out unused constantsAndreas Gampe2014-11-241-2/+3
| | | | | | For build-system CFLAGS clean-up, "remove" unused variables. Change-Id: Ic96f066981cd96ca16af81ee3fdbc972507e8c81
* Kill HAVE_BIG_ENDIAN, HAVE_ENDIAN_H, and HAVE_LITTLE_ENDIAN.Elliott Hughes2014-11-211-11/+4
| | | | Change-Id: I9e25ac9d27e95b04fb8bf7a66c619af0139d8b8f
* kill HAVE_MADVISEYabin Cui2014-11-191-2/+6
| | | | | | Change to avoid "unused parameter" warning. Bug: 18397020 Change-Id: I4b26de55314c78237daead8e873385b97cafe4d4
* kill HAVE_MADVISEYabin Cui2014-11-181-2/+2
| | | | | Bug: 18397020 Change-Id: Ibc8d886d729c51932a403531888214de4e541452
* Move libutils to libc++.Dan Albert2014-11-151-4/+0
| | | | | Bug: 15193147 Change-Id: I85aff3bcabb5ee3c8be9918b7bef0fd1bbfa98e3
* System/core: Use memmoveAndreas Gampe2014-11-131-1/+1
| | | | | | Should use memmove when you expect overlap. Change-Id: I268a173db40a4be54232958e37aa8a03c2a885ee
* kill HAVE_POSIX_FILEMAPYabin Cui2014-11-111-12/+10
| | | | | Bug: 18315579 Change-Id: I0bd5fb946b12cb90e0c9c73a478df41609b8c3e2
* am 7a92d20e: Merge "Clean up some test makefiles."Dan Albert2014-11-053-24/+47
|\ | | | | | | | | * commit '7a92d20ec845c07472eaea7cf14fd0e69df836ef': Clean up some test makefiles.
| * Clean up some test makefiles.Dan Albert2014-11-043-24/+47
| | | | | | | | | | | | | | Needed for building with libc++ as the default STL. Bug: 15193147 Change-Id: I8b462bd288fbea7e0ab182f85ffcbf438afb6aa4
* | am 1c77bf4c: Merge "Fix windows specific behavior of FileMap" into lmp-devXavier Ducrohet2014-10-161-1/+0
|\ \ | | | | | | | | | | | | * commit '1c77bf4ce5059f3a770418cfa8afed39ee41ab24': Fix windows specific behavior of FileMap
| * | Fix windows specific behavior of FileMapXavier Ducrohet2014-10-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The implementation of the FileMap destructor would close the file, only on Windows, which did not match the behavior on mac/linux. This is because calling munmap does not close the file descriptor. It must be closed separately, before or after munmap. On Windows, the file must also be closed manually, before or after closing the mappingFile. The change basically removes the closing file from the windows-specific part of the destructor, to make behavior more consistent on all platforms where the caller to FileMap is responsible for closing its own file (since FileMap receives an opened file). Change-Id: I5e3cfffbb870d5f3595802ccac57dbc1dbf1ce6e
* | | am 3fe9adc9: Merge "Fix write past end of memory." into lmp-devChristopher Ferris2014-10-071-9/+9
|\ \ \ | |/ / | | | | | | | | | * commit '3fe9adc932948da8993d3f812bce1875efc47c0e': Fix write past end of memory.
| * | Fix write past end of memory.Christopher Ferris2014-10-071-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | The computed flattened size of the blob does not match the size used by the flatten function when the last cached entry size is not 4 byte aligned. Bug: 17873145 Change-Id: I9f9fc102d4bde4681ae977b6de5f263aaaf56708
* | | am 522c1d34: am e18ed89e: Merge "Remove makefile cruft."Dan Albert2014-09-121-6/+0
|\ \ \ | | |/ | |/| | | | | | | * commit '522c1d340b6c1742d3e47aad27b974e43fad4bc2': Remove makefile cruft.
| * | Merge "Remove makefile cruft."Dan Albert2014-09-121-6/+0
| |\ \
| | * | Remove makefile cruft.Dan Albert2014-09-121-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | Don't manually include stlport, and don't use private bionic headers. Change-Id: I0fc4e8b34ab449e9ef07c26f71e472fca5640590
* | | | am e4bf208c: am 082a52b5: Merge "Move libutils over to pthread_gettid_np."Elliott Hughes2014-09-122-6/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'e4bf208ce8d893634a0f6f63ce34ec6498934d05': Move libutils over to pthread_gettid_np.
| * | | Move libutils over to pthread_gettid_np.Elliott Hughes2014-09-122-6/+2
| |/ / | | | | | | | | | | | | Bug: 17476168 Change-Id: I934d93a023eb00e036ed3cee8c52efaeb17b8915
* | | am 6ba555f2: Merge "libutils: Don\'t segfault ProcessCallStack when getting ↵Igor Murashkin2014-08-191-0/+5
|\ \ \ | | |/ | |/| | | | | | | | | | | | | thread name fails" into lmp-dev * commit '6ba555f2ad878129cd1da9dd7b7613ab166090ab': libutils: Don't segfault ProcessCallStack when getting thread name fails
| * | libutils: Don't segfault ProcessCallStack when getting thread name failsIgor Murashkin2014-08-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's an inherent race in trying to read out the thread name from the system and the thread closing out on its own (and thus being removed from procfs). Try to handle this by formatting the thread name unconditionally with the tid when getting the thread name fails (instead of dereferencing NULL and crashing). Bug: 15406837 Change-Id: Ibf2208b8ce345589e7e9c57e6a307728d1121c5d
| * | Exclude bionic private headers from include pathDmitriy Ivanov2014-07-312-2/+2
| | | | | | | | | | | | | | | | | | (cherry picked from commit 9516139c03e7e48b2c23a5b53dc4309989e54c6b) Change-Id: I2883e2a13a523e6938c8a3aed93e66af948cdcd8
* | | am 3859029a: am 7fb0ee0c: Merge "Remove androidGetTid."Elliott Hughes2014-08-181-9/+0
|\ \ \ | | |/ | |/| | | | | | | * commit '3859029a48aa78150fa61eb4988214f8632b33ce': Remove androidGetTid.
| * | Remove androidGetTid.Elliott Hughes2014-08-181-9/+0
| | | | | | | | | | | | | | | Bug: 17048545 Change-Id: I93cbb2d7bd18d506b5f5f7f262dd9ac0fca053b4
* | | am 52b59127: am e7ec28bb: Merge "Exclude bionic private headers from include ↵Dmitriy Ivanov2014-07-312-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | path" * commit '52b59127d847bef1fd16efe2df578b3079b37918': Exclude bionic private headers from include path
| * | Exclude bionic private headers from include pathDmitriy Ivanov2014-07-312-2/+2
| | | | | | | | | | | | Change-Id: I8b1269a739a690af91c63fa0f7f8f01d2d43bb97
* | | am 4bb951a8: Merge "BlobCache: fix uninitialized memory" into lmp-devAntoine Labour2014-07-301-1/+8
|\ \ \ | | |/ | |/| | | | | | | * commit '4bb951a85a4888540caba4f14f18e99917d4c994': BlobCache: fix uninitialized memory
| * | BlobCache: fix uninitialized memoryAntoine Labour2014-07-281-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | When flattening the BlobCache, we insert padding for alignment. Make sure to zero the padding bytes to have reproducible results. Bug: 16569863 Change-Id: Id39eac5e6a1687459eb6bc2074b1339393fce711
| * | Remove invalid 64-bit host objects.Stephen Hines2014-07-251-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 16408818 These targets are no longer in use, since we have a proper way to create both 32-bit and 64-bit host libraries in a single build now. Cherry-pick from AOSP: 03cc1f747c4e92d572a88ec3eb9fde920e871a7e Change-Id: Icd09f795acd220de5b5e956a8d8e1b4ab4864fa9
* | | am f2879ef6: am 6698ebf9: Merge "Fix Darwin build caused by -Wunused-parameter."Tim Murray2014-07-251-0/+3
|\ \ \ | | |/ | |/| | | | | | | * commit 'f2879ef61453c845e2f675011e0cbc41d1396040': Fix Darwin build caused by -Wunused-parameter.
| * | Fix Darwin build caused by -Wunused-parameter.Tim Murray2014-07-241-0/+3
| | | | | | | | | | | | | | | | | | bug 16172793 Change-Id: I1d0514c00085cb5d18ebdd064e96885d6eaa1e59
* | | am 31dc191b: am 73290cd1: Merge "Remove invalid 64-bit host objects."Stephen Hines2014-07-221-13/+0
|\ \ \ | |/ / | | / | |/ |/| * commit '31dc191b2b39d4cbd68feba29c7692c91de57a53': Remove invalid 64-bit host objects.
| * Remove invalid 64-bit host objects.Stephen Hines2014-07-221-13/+0
| | | | | | | | | | | | | | | | | | Bug: 16408818 These targets are no longer in use, since we have a proper way to create both 32-bit and 64-bit host libraries in a single build now. Change-Id: Icd09f795acd220de5b5e956a8d8e1b4ab4864fa9
* | am 72299bf0: [Bug]NE when playing mp3 with incorrect UTF16 charCylen Yao2014-06-111-1/+2
|\ \ | | | | | | | | | | | | * commit '72299bf0d240072174f847d13f1c9498b3ef9fa6': [Bug]NE when playing mp3 with incorrect UTF16 char
| * | [Bug]NE when playing mp3 with incorrect UTF16 charCylen Yao2014-06-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 15274351 Bug: 15539240 Many MP3 files have incorrect utf16 chars, but the Utf16_to_utf8_length() routine checks for errors in standard utf16 char. utf16_to_utf8() was not checking for errors in standard utf16 char. Change-Id: Iafd922ff92cabe6bba8971215fcfd1fd471c894b (cherry picked from commit 605b139cdf56364c6c9b37e59dd12efc61c24631)
| * | Add a couple of useful string functions. (DO NOT MERGE)Jeff Brown2014-06-091-0/+24
| | | | | | | | | | | | | | | Change-Id: I158f69917bab5f15482dd8f2b66b36a4cc0f11ad (cherry picked from commit 5ee915afe17b7190f992addc48cb53ed6371a68d)
* | | Add a couple of useful string functions.Jeff Brown2014-06-091-0/+24
| | | | | | | | | | | | Change-Id: I158f69917bab5f15482dd8f2b66b36a4cc0f11ad
* | | am 928821bd: am 72d77449: am 4ca26ce8: Merge "Host multilib build of both ↵Ian Rogers2014-06-051-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 32-bit and 64-bit libraries." * commit '928821bd123aa38094289b9c62debb4d92b84069': Host multilib build of both 32-bit and 64-bit libraries.
| * \ \ am 72d77449: am 4ca26ce8: Merge "Host multilib build of both 32-bit and ↵Ian Rogers2014-06-051-0/+1
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | 64-bit libraries." * commit '72d77449d99833140f7dd838db6556484031da29': Host multilib build of both 32-bit and 64-bit libraries.
| | * | Host multilib build of both 32-bit and 64-bit libraries.Ian Rogers2014-06-051-0/+1
| | | | | | | | | | | | | | | | Change-Id: I54f91f385b109fc664a1a1f9320affb2a846fef1
* | | | am b2a9129e: am bf0ed824: am 60ca7a22: Merge "libutils: turn on -Werror"Mark Salyzyn2014-06-0413-60/+80
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'b2a9129e8f0666884dee660515c51d4dd5c17c7a': libutils: turn on -Werror
| * | | am bf0ed824: am 60ca7a22: Merge "libutils: turn on -Werror"Mark Salyzyn2014-06-0413-60/+80
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit 'bf0ed82485e0166dd5f5c9415026c2dc3fd2ae4b': libutils: turn on -Werror
| | * | libutils: turn on -WerrorMark Salyzyn2014-06-0213-60/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Deal with some -Wunused issues - Override PRI macros (windows) - Revert use of PRI macros on off64_t (linux) - Deal with a gnu++11 complaince issue Change-Id: Ie66751293bd84477a5a6dfd8a57e700a16e36964
* | | | am 4b126c46: am e8f90ca6: am 570cd46d: Merge "Revert "Move libutils to libc++""Dan Albert2014-05-302-4/+9
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '4b126c4604965ea029d9c741d074ad7f820b5269': Revert "Move libutils to libc++"
| * | | am e8f90ca6: am 570cd46d: Merge "Revert "Move libutils to libc++""Dan Albert2014-05-302-4/+9
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit 'e8f90ca60d65f5a0542b77f8f517c4fb80da2e52': Revert "Move libutils to libc++"
| | * | Merge "Revert "Move libutils to libc++""Dan Albert2014-05-302-4/+9
| | |\ \
| | | * | Revert "Move libutils to libc++"Dan Albert2014-05-302-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Causes issues in the unbundled branches. This reverts commit dc133729b0bc983c6ecfecdb06ac8b433ea31350. Change-Id: I9185ce9ea9e0ea631f0bfe016edf38c6830b288a
* | | | | am 58f4a09b: am 36f536fc: am 9f69e028: Merge "Move libutils to libc++"Dan Albert2014-05-302-9/+4
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '58f4a09bb4375c2f7b85ec14449a0588e85e126a': Move libutils to libc++
| * | | | am 36f536fc: am 9f69e028: Merge "Move libutils to libc++"Dan Albert2014-05-302-9/+4
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '36f536fc7b88fe21a974bce6fed565bc622b5bc2': Move libutils to libc++
| | * | | Merge "Move libutils to libc++"Dan Albert2014-05-302-9/+4
| | |\ \ \ | | | |/ /
| | | * | Move libutils to libc++Dan Albert2014-05-292-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 15193147 Change-Id: Ib4b1835e77279db905e098abc7c9bf8d27d66b57