platform_system_core/libutils
Atneya Nair dde6034eac Fix OkOrFail<status_t> conversion ambiguities
OkOrFail<status_t> has specialized conversions for Result<int, StatusT>
to avoid ambiguous implicit conversion sequences. Since user conversion
operators sequences can be followed by integral promotion, specializing
for integral types is necessary.

Specialize ResultError<StatusT> so calling code() returns a status_t
instead of a StatusT and message() is implemented even when not carrying
a string.
Eventually, these classes should be combined.

Add equality operators for ResultError<StatusT>.

Bug: 219580167
Test: atest Errors_test.cpp
Merged-In: I14acecfd2aef33c40e79ddb091e2f4af9291d837
Change-Id: Ifb5ed3c2d3452b10901e4aeb19368d873225d9ce
2022-02-25 14:27:41 -05:00
..
include/utils Fix OkOrFail<status_t> conversion ambiguities 2022-02-25 14:27:41 -05:00
Android.bp libutils -= libprocessgroup dep 2022-02-08 01:56:45 +00:00
BitSet_fuzz.cpp
BitSet_test.cpp
CallStack.cpp
CallStack_fuzz.cpp
CleanSpec.mk
Errors.cpp
Errors_test.cpp Fix OkOrFail<status_t> conversion ambiguities 2022-02-25 14:27:41 -05:00
FileMap.cpp
FileMap_fuzz.cpp
FileMap_test.cpp
FuzzFormatTypes.h Adds license header 2020-10-02 11:08:15 -07:00
JenkinsHash.cpp
LightRefBase.cpp libutils: LightRefBase: incStrongRequireStrong 2021-05-04 21:42:26 +00:00
Looper.cpp Looper: Use sequence numbers in epoll_event to track requests 2021-09-01 14:52:52 +00:00
Looper_fuzz.cpp
Looper_test.cpp Looper: Use sequence numbers in epoll_event to track requests 2021-09-01 14:52:52 +00:00
Looper_test_pipe.h
LruCache_fuzz.cpp
LruCache_test.cpp
misc.cpp
MODULE_LICENSE_APACHE2
Mutex_test.cpp
NativeHandle.cpp
NOTICE
OWNERS
Printer.cpp
Printer_fuzz.cpp
ProcessCallStack.cpp
ProcessCallStack_fuzz.cpp
RefBase.cpp RefBase: Unknown mFlag meaning 2021-08-22 16:36:36 +00:00
RefBase_fuzz.cpp Resolved UAF issue in RefBase fuzzer 2020-11-30 16:18:27 -08:00
RefBase_test.cpp libutils: wp::fromExisting bugfix 2021-04-07 23:06:09 +00:00
SharedBuffer.cpp
SharedBuffer.h
SharedBuffer_test.cpp libutils: sharedbuffer test - expect greatness! 2021-04-28 17:15:58 +00:00
Singleton_test.cpp
Singleton_test.h
Singleton_test1.cpp
Singleton_test2.cpp
StopWatch.cpp libutils: remove the unused StopWatch lap functionality. 2021-05-11 16:33:47 -07:00
String8.cpp Merge "Revert "Revert "Remove unused String8::setPathName.""" am: f9a9ee048c am: e9a9a4f071 2021-07-20 20:07:22 +00:00
String8_fuzz.cpp Revert "Revert "Remove unused String8::setPathName."" 2021-07-19 20:19:44 +00:00
String8_test.cpp Check for overflow in String8::real_append. 2021-06-10 16:42:20 -07:00
String16.cpp Merge "String16 is moveable (noexcept)" am: 3551e457ca am: 32ceaa1299 2021-06-30 01:48:14 +00:00
String16_fuzz.cpp Remove String16::remove. 2021-05-12 20:24:26 +00:00
String16_test.cpp Merge "libutil: no special copy from StaticString16" am: 7d067aee62 am: ece939ecc9 2021-06-30 02:51:49 +00:00
StrongPointer.cpp
StrongPointer_test.cpp libutils: LightRefBase: incStrongRequireStrong 2021-05-04 21:42:26 +00:00
SystemClock.cpp
SystemClock_test.cpp
TEST_MAPPING Split up the system/core/ TEST_MAPPING. 2021-08-16 16:37:10 -07:00
Threads.cpp libutils: Remove a little dead code 2022-02-08 07:37:13 -08:00
Timers.cpp Increase coverage of Timers to 100%. 2021-05-18 13:10:50 -07:00
Timers_test.cpp Increase coverage of Timers to 100%. 2021-05-18 13:10:50 -07:00
Tokenizer.cpp
Trace.cpp
Unicode.cpp Remove move dead code. 2021-04-15 15:18:54 -07:00
Unicode_test.cpp Use 0 instead of NULL for comparison to char16_t 2022-01-13 13:41:59 -08:00
Vector_benchmark.cpp
Vector_fuzz.cpp
Vector_test.cpp
VectorImpl.cpp