summaryrefslogtreecommitdiff
path: root/libs/binder/BufferedTextOutput.cpp
Commit message (Collapse)AuthorAgeFilesLines
* libbinder use stronger refbase semanticsSteven Moreland2021-04-091-1/+1
| | | | | | | | | | As a larger example of how to use ANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION. Bug: 184190315 Test: boot (relevant tests in TEST_MAPPING) Change-Id: I88283543e1f63fd1010f9cd3f63baefec84e6a84
* libbinder: hide Debug.h headerSteven Moreland2021-03-061-1/+1
| | | | | | | | | | | | | This is all an implementation detail for TextOutput which we want to delete anyway. Since I'm working on binder sockets (and I don't want to expand the usage of alog), I might add some other functions here, which I don't want to expose from libbinder. Bug: 148676615 Bug: 167966510 Test: N/A Change-Id: Id5677c9ac195dac046becc5d36b02bbdd1f7c339
* Use C++ thread_local rather than libcutils.Elliott Hughes2020-12-041-27/+8
| | | | | Test: treehugger Change-Id: I11114b8e591e7ec034bac6420b1a0adda88e8af2
* Merge "Fix addition/overflow checks." into qt-qpr1-dev am: af8f6cf3abMartijn Coenen2020-03-271-1/+2
|\ | | | | | | Change-Id: I4f604cb104cc49b7e8f6612f1033a113faf51a48
| * Fix addition/overflow checks.Martijn Coenen2020-01-311-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | For unsigned arithmetic, use: (a + b < a) to detect whether a+b wraps (a > c / b) to detect whether a*b > c Bug: 120078455 Test: builds and boots Change-Id: Ic4f4d44f7c0656caa115f90f4cfa130192914949 (cherry picked from commit da2f2fd0f4c4eeb498b4b0541719f4f34faf13e2)
* | libbinder: hide BufferedTextOutput.hSteven Moreland2020-01-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | Nothing uses this now, and the general feeling is that we should deprecate TextOutput at some point in favor of liblog (potentially to save a small amount of memory from static TextOutput objects). So, hiding this header. Bug: N/A Test: builds Change-Id: I4f1d8a1aa8a5db4e602da6499050881ab4aaeca2
* | Remove extraneous semicolon.Steven Moreland2019-09-271-1/+1
| | | | | | | | | | | | | | Bug: N/A Test: build w/o -Wno-c++98-compat-extra-semi Merged-In: I632d6df9a03485e547a6e7f14df0f1c068066c1e Change-Id: I632d6df9a03485e547a6e7f14df0f1c068066c1e
* | libbinder: don't export Static.hSteven Moreland2019-07-121-2/+2
|/ | | | | | | | | This was being exported by the build system, but it shouldn't be used anywhere. Bug: N/A Test: N/A Change-Id: Id10772ec3e0ebf39ddf83f0f7981552c3f2e528d
* Update for modified CapturedStderr.Christopher Ferris2018-09-041-1/+1
| | | | | | | Also fix off by one error exposed by changing the test. Test: Built and ran unit tests. Change-Id: Id983b8301fe33c21bfe1db1e67ef00681f852557
* libbinder: move to <pthread.h> mutexes.Elliott Hughes2018-07-131-5/+6
| | | | | | Bug: N/A Test: builds Change-Id: Ia3a3719c7d66b6cbd2f3aaa18cff4ca11967f34b
* [binder] Replace NULL/0 with nullptrYi Kong2018-06-071-4/+4
| | | | | | | | | | | | | Fixes -Wzero-as-null-pointer-constant warning. clang-tidy -checks=modernize-use-nullptr -p compile_commands.json -fix ... Test: m Bug: 68236239 Change-Id: I3181bc5683796423a98b0f9b94daf30880c07bdc Merged-In: I3181bc5683796423a98b0f9b94daf30880c07bdc (cherry picked from commit 91635563b8a1bf7a31e4ceb439728dacb79abd76)
* Don't use cutils/Atomic.hSteven Moreland2018-02-231-2/+2
| | | | | Test: builds Change-Id: Idb7a51db4382e1012afe12df3c9fe807922b17fe
* Fix google-explicit-constructor warnings.Chih-Hung Hsieh2016-04-251-1/+1
| | | | | Bug: 28341362 Change-Id: I0ce850de85e0de6a5472dd142f738856142db9ec
* Prevent integer overflow when calculating buffer resizesChristopher Tate2015-06-081-1/+4
| | | | | | | | | | | Make sure that we don't go haywire if an exponential buffer growth operation winds up wrapping integer range. Along the way, fix a bookkeeping bug in BufferedTextOutput that would cause it to keep spuriously realloc()ing on every append(). Bug 20674694 Change-Id: Ia845b7de36b90672a151a918ffc26c7da68e20a2
* libutils clean-upMathias Agopian2013-05-071-0/+279
Change-Id: I6ff4cfc736751de2912c697f954e45e275f2d386