summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [libutils] Modernize codebase by replacing NULL with nullptrYi Kong2018-07-161-15/+15
| | | | | | | | Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I5e89ec8c42151875439d2656475a8739ab9cb7dc
* libutils: Remove Static.cpp and darwin hacks.Steven Moreland2018-03-061-32/+8
| | | | | | | | | | | | | | | Bug: N/A Test: in internal master, the only libraries that reference this symbol are: ./prebuilts/sdk/tools/linux/bin/split-select android::gDarwinIsReallyAnnoying ./prebuilts/sdk/tools/linux/bin/aapt android::gDarwinIsReallyAnnoying ./prebuilts/sdk/tools/linux/bin/aapt2 android::gDarwinIsReallyAnnoying ./prebuilts/sdk/tools/linux/lib64/libaapt2_jni.so android::gDarwinIsReallyAnnoying ./prebuilts/sdk/tools/linux/lib64/libaapt2_jni.so android::gDarwinIsReallyAnnoying + VNDK libraries Test: libutils_test Change-Id: Id39e5ef6438e48fa225ba06dbb59902ca5b60f70
* Add missing includes.Steven Moreland2017-03-101-0/+2
| | | | | | | | Includes are transitively imported by <string> in String8.h + String16.h but that include is being removed. Test: pass Change-Id: Ide5c011b40b4a4f031dd26ead08b5c8d5d299693
* clean-up libutils includesMathias Agopian2017-03-031-4/+0
| | | | | | | | | | | | moved Foo.h as first include of Foo.cpp, and removed redundant includes. Made NativeHandle non virtual. Test: run & compile Bug: n/a Change-Id: I37fa746cd42c9ba23aba181f84cb6c619386406a
* Merge \"libutils/Unicode.cpp: Correct length computation and add checks for ↵Sergio Giro2016-07-111-12/+13
|\ | | | | | | | | | | | | | | utf16->utf8\" into nyc-mr1-dev am: 7714abac6b Change-Id: I63e0299219dc1e50b31a88384fed7f3f43e9f86e
| * libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8Sergio Giro2016-07-111-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | Inconsistent behaviour between utf16_to_utf8 and utf16_to_utf8_length is causing a heap overflow. Correcting the length computation and adding bound checks to the conversion functions. Test: ran libutils_tests Bug: 29250543 Change-Id: I6115e3357141ed245c63c6eb25fc0fd0a9a7a2bb
* | libutils: remove whitespace from String8 filesSamuel Tan2016-02-181-1/+1
|/ | | | | | | | Remove trailing whitespace from String8 header and cpp files. BUG: None Change-Id: Ie77da3f0fbce9cdce20225ce1310cf62295179a4
* am e0453334: Merge "system/core: remove methods returning SharedBuffer in ↵Sergio Giro2015-09-301-5/+0
|\ | | | | | | | | | | | | String8, String16" * commit 'e045333445ab3ebb8d602d25ed750169f135baa6': system/core: remove methods returning SharedBuffer in String8, String16
| * system/core: remove methods returning SharedBuffer in String8, String16Sergio Giro2015-09-301-5/+0
| | | | | | | | | | | | Towards deprecation of SharedBuffer Change-Id: I3069837db32837bcc0f5d8f1118ccd502c9070dc
* | resolved conflicts for 6ee734cf to stage-aosp-masterSergio Giro2015-09-231-1/+12
|\| | | | | | | Change-Id: Ia06c4d941d9b8828707299bb363f51fab5549897
| * libutils: hide SharedBuffer by moving SharedBuffer.h to the implementation ↵Sergio Giro2015-09-231-1/+12
| | | | | | | | | | | | | | | | | | directory Some methods in header files of classes using SharedBuffer need to be moved to the implementation files accordingly Change-Id: I891f3ace2b940ab219e4e449040bfed71c0547db
| * libutils: fix overflow in String8::allocFromUTF8Sergio Giro2015-08-181-0/+3
| | | | | | | | | | | | | | | | Patch contributed in: https://code.google.com/p/android/issues/detail?id=182908 Bug: 23290056 Change-Id: Ide0e9a8acc4e95a9104bab3ae803aa3a40098222
* | am 219a006f: am fc5fdc85: am e45d96d6: am 19398a71: am d34846b7: am ↵Abhishek Arya2015-08-211-0/+3
|\ \ | | | | | | | | | | | | | | | | | | cd407a17: am e0dce90b: Fix compile failure after rIfe1dc0791040150132bea6884f1e6c8d31972d1b * commit '219a006f89a5448a9a6eeb1f37ad0088e85bd3f8': Fix compile failure after rIfe1dc0791040150132bea6884f1e6c8d31972d1b
| * \ am e45d96d6: am 19398a71: am d34846b7: am cd407a17: am e0dce90b: Fix compile ↵Abhishek Arya2015-08-211-0/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | failure after rIfe1dc0791040150132bea6884f1e6c8d31972d1b * commit 'e45d96d6bf592f0ae20bb021ea529acc94e0cb55': Fix compile failure after rIfe1dc0791040150132bea6884f1e6c8d31972d1b
| | * \ am cd407a17: am e0dce90b: Fix compile failure after ↵Abhishek Arya2015-08-211-0/+3
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rIfe1dc0791040150132bea6884f1e6c8d31972d1b * commit 'cd407a17fe326f3e18866ddddb1c747b06a45fc0': Fix compile failure after rIfe1dc0791040150132bea6884f1e6c8d31972d1b
| | | * | Fix compile failure after rIfe1dc0791040150132bea6884f1e6c8d31972d1bAbhishek Arya2015-08-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 23290056 Change-Id: If6e22b0159de6635a8ca5305895b7718f15becc7
| * | | | am e97682be: am a1a22b57: am e67b5848: am 4956c0fe: am 5b85b1d4: libutils: ↵Sergio Giro2015-08-201-0/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix overflow in String8::allocFromUTF8 * commit 'e97682be0634fe773f70097bc518e5d034efe8f7': libutils: fix overflow in String8::allocFromUTF8
| | * | | am 4956c0fe: am 5b85b1d4: libutils: fix overflow in String8::allocFromUTF8Sergio Giro2015-08-201-0/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | * commit '4956c0fe1e582a8497aff34a41aeb8bf4748eef0': libutils: fix overflow in String8::allocFromUTF8
| | | * | libutils: fix overflow in String8::allocFromUTF8Sergio Giro2015-08-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch contributed in: https://code.google.com/p/android/issues/detail?id=182908 Bug: 23290056 (cherry picked from commit 4eeacbeec0ae66e9d9395abbf83666709f2e11e3) Change-Id: Ife1dc0791040150132bea6884f1e6c8d31972d1b (cherry picked from commit ebabef275283f771151ec93c17469374b789b2c8)
* | | | | am 29c12755: Merge "libutils: fix overflow in String8::allocFromUTF8" into ↵Sergio Giro2015-08-181-0/+3
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | mnc-dev * commit '29c1275519ef85fa3f30be351f19dc6e7eedbee9': libutils: fix overflow in String8::allocFromUTF8
| * | | | libutils: fix overflow in String8::allocFromUTF8Sergio Giro2015-08-181-0/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch contributed in: https://code.google.com/p/android/issues/detail?id=182908 Bug: 23290056 (cherry picked from commit 4eeacbeec0ae66e9d9395abbf83666709f2e11e3) Change-Id: Ife1dc0791040150132bea6884f1e6c8d31972d1b
* / / / Move libutils off AndroidConfig.h.Elliott Hughes2015-07-291-0/+1
|/ / / | | | | | | | | | Change-Id: Ia0e4a4f968c640eb44317821d2dc6b195f9f490e
* / / System/core: Use memmoveAndreas Gampe2014-11-131-1/+1
|/ / | | | | | | | | | | Should use memmove when you expect overlap. Change-Id: I268a173db40a4be54232958e37aa8a03c2a885ee
* | Add a couple of useful string functions.Jeff Brown2014-06-091-0/+24
| | | | | | | | Change-Id: I158f69917bab5f15482dd8f2b66b36a4cc0f11ad
* | libutils: turn on -WerrorMark Salyzyn2014-06-021-1/+0
| | | | | | | | | | | | | | | | | | - 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
* | Fix undefined args access for x86_64.Fengwei Yin2014-02-261-2/+11
|/ | | | | | | | | | | | | | From libc manual for vsnprintf: The functions vprintf(), vfprintf(), vsprintf(), vsnprintf() are equivalent to the functions printf(), fprintf(), sprintf(), snprintf(), respectively, except that they are called with a va_list instead of a variable number of arguments. These functions do not call the va_end macro. Because they invoke the va_arg macro, the value of ap is undefined after the call. We need to allocate/end new va_list for each vsnprintf. Change-Id: I66ec058033be1cb918e7b2bc84ca546800da226b Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
* move libs/utils to libutilsAlex Ray2013-08-021-0/+640
Change-Id: I6cf4268599460791414882f91eeb88a992fbd29d