summaryrefslogtreecommitdiff
path: root/libs/binder/BufferedTextOutput.cpp
AgeCommit message (Collapse)Author
2021-04-09libbinder use stronger refbase semantics Steven Moreland
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
2021-03-06libbinder: hide Debug.h header Steven Moreland
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
2020-12-04Use C++ thread_local rather than libcutils. Elliott Hughes
Test: treehugger Change-Id: I11114b8e591e7ec034bac6420b1a0adda88e8af2
2020-03-27Merge "Fix addition/overflow checks." into qt-qpr1-dev am: af8f6cf3ab Martijn Coenen
Change-Id: I4f604cb104cc49b7e8f6612f1033a113faf51a48
2020-01-31Fix addition/overflow checks. Martijn Coenen
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)
2020-01-30libbinder: hide BufferedTextOutput.h Steven Moreland
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
2019-09-27Remove extraneous semicolon. Steven Moreland
Bug: N/A Test: build w/o -Wno-c++98-compat-extra-semi Merged-In: I632d6df9a03485e547a6e7f14df0f1c068066c1e Change-Id: I632d6df9a03485e547a6e7f14df0f1c068066c1e
2019-07-12libbinder: don't export Static.h Steven Moreland
This was being exported by the build system, but it shouldn't be used anywhere. Bug: N/A Test: N/A Change-Id: Id10772ec3e0ebf39ddf83f0f7981552c3f2e528d
2018-09-04Update for modified CapturedStderr. Christopher Ferris
Also fix off by one error exposed by changing the test. Test: Built and ran unit tests. Change-Id: Id983b8301fe33c21bfe1db1e67ef00681f852557
2018-07-13libbinder: move to <pthread.h> mutexes. Elliott Hughes
Bug: N/A Test: builds Change-Id: Ia3a3719c7d66b6cbd2f3aaa18cff4ca11967f34b
2018-06-07[binder] Replace NULL/0 with nullptr Yi Kong
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)
2018-02-23Don't use cutils/Atomic.h Steven Moreland
Test: builds Change-Id: Idb7a51db4382e1012afe12df3c9fe807922b17fe
2016-04-25Fix google-explicit-constructor warnings. Chih-Hung Hsieh
Bug: 28341362 Change-Id: I0ce850de85e0de6a5472dd142f738856142db9ec
2015-06-08Prevent integer overflow when calculating buffer resizes Christopher Tate
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
2013-05-07libutils clean-up Mathias Agopian
Change-Id: I6ff4cfc736751de2912c697f954e45e275f2d386