dde6034eac
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 |
||
---|---|---|
.. | ||
include/utils | ||
Android.bp | ||
BitSet_fuzz.cpp | ||
BitSet_test.cpp | ||
CallStack.cpp | ||
CallStack_fuzz.cpp | ||
CleanSpec.mk | ||
Errors.cpp | ||
Errors_test.cpp | ||
FileMap.cpp | ||
FileMap_fuzz.cpp | ||
FileMap_test.cpp | ||
FuzzFormatTypes.h | ||
JenkinsHash.cpp | ||
LightRefBase.cpp | ||
Looper.cpp | ||
Looper_fuzz.cpp | ||
Looper_test.cpp | ||
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_fuzz.cpp | ||
RefBase_test.cpp | ||
SharedBuffer.cpp | ||
SharedBuffer.h | ||
SharedBuffer_test.cpp | ||
Singleton_test.cpp | ||
Singleton_test.h | ||
Singleton_test1.cpp | ||
Singleton_test2.cpp | ||
StopWatch.cpp | ||
String8.cpp | ||
String8_fuzz.cpp | ||
String8_test.cpp | ||
String16.cpp | ||
String16_fuzz.cpp | ||
String16_test.cpp | ||
StrongPointer.cpp | ||
StrongPointer_test.cpp | ||
SystemClock.cpp | ||
SystemClock_test.cpp | ||
TEST_MAPPING | ||
Threads.cpp | ||
Timers.cpp | ||
Timers_test.cpp | ||
Tokenizer.cpp | ||
Trace.cpp | ||
Unicode.cpp | ||
Unicode_test.cpp | ||
Vector_benchmark.cpp | ||
Vector_fuzz.cpp | ||
Vector_test.cpp | ||
VectorImpl.cpp |