/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CommandException.java | 29 private Error mError; 31 public enum Error { enum in CommandException 148 public CommandException(Error e) { in CommandException() 153 public CommandException(Error e, String errString) { in CommandException() 164 return new CommandException(Error.INVALID_RESPONSE); in fromRilErrno() 166 return new CommandException(Error.RADIO_NOT_AVAILABLE); in fromRilErrno() 168 return new CommandException(Error.GENERIC_FAILURE); in fromRilErrno() 170 return new CommandException(Error.PASSWORD_INCORRECT); in fromRilErrno() 172 return new CommandException(Error.SIM_PIN2); in fromRilErrno() 174 return new CommandException(Error.SIM_PUK2); in fromRilErrno() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockComposer.h | 39 using android::hardware::graphics::composer::V2_1::Error; 59 MOCK_METHOD1(executeCommands, Error(Display)); 61 MOCK_METHOD4(createVirtualDisplay, Error(uint32_t, uint32_t, PixelFormat*, Display*)); 62 MOCK_METHOD1(destroyVirtualDisplay, Error(Display)); 63 MOCK_METHOD1(acceptDisplayChanges, Error(Display)); 64 MOCK_METHOD2(createLayer, Error(Display, Layer* outLayer)); 65 MOCK_METHOD2(destroyLayer, Error(Display, Layer)); 66 MOCK_METHOD2(getActiveConfig, Error(Display, Config*)); 68 Error(Display, std::vector<Layer>*, 70 MOCK_METHOD2(getColorModes, Error(Display, std::vector<ColorMode>*)); [all …]
|
D | MockHWC2.h | 39 MOCK_METHOD(hal::Error, acceptChanges, (), (override)); 40 MOCK_METHOD((base::expected<std::shared_ptr<HWC2::Layer>, hal::Error>), createLayer, (), 42 MOCK_METHOD(hal::Error, getChangedCompositionTypes, 46 MOCK_METHOD(hal::Error, getColorModes, (std::vector<hal::ColorMode> *), (const, override)); 48 MOCK_METHOD(hal::Error, getRenderIntents, (hal::ColorMode, std::vector<hal::RenderIntent> *), 50 MOCK_METHOD(hal::Error, getDataspaceSaturationMatrix, (hal::Dataspace, android::mat4 *), 52 MOCK_METHOD(hal::Error, getName, (std::string *), (const, override)); 53 MOCK_METHOD(hal::Error, getRequests, 56 MOCK_METHOD((ftl::Expected<ui::DisplayConnectionType, hal::Error>), getConnectionType, (), 58 MOCK_METHOD(hal::Error, supportsDoze, (bool *), (const, override)); [all …]
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWC2.cpp | 102 Error error = Error::NONE; in ~Display() 111 error = static_cast<Error>(mComposer.destroyVirtualDisplay(mId)); in ~Display() 119 ALOGE_IF(error != Error::NONE, "%s: Failed to %s display %" PRIu64 ": %d", __FUNCTION__, msg, in ~Display() 126 Error Display::acceptChanges() in acceptChanges() 129 return static_cast<Error>(intError); in acceptChanges() 132 base::expected<std::shared_ptr<HWC2::Layer>, hal::Error> Display::createLayer() { in createLayer() 135 auto error = static_cast<Error>(intError); in createLayer() 136 if (error != Error::NONE) { in createLayer() 157 return mComposer.hasDisplayIdleTimerCapability(mId, &isCapabilitySupported) == Error::NONE && in hasDisplayIdleTimerCapability() 161 Error Display::getPhysicalDisplayOrientation(Hwc2::AidlTransform* outTransform) const { in getPhysicalDisplayOrientation() [all …]
|
D | HidlComposerHal.cpp | 174 constexpr Error kDefaultError = Error::NO_RESOURCES; 175 constexpr V2_4::Error kDefaultError_2_4 = static_cast<V2_4::Error>(kDefaultError); 182 Error unwrapRet(Return<Error>& ret) { in unwrapRet() 227 if (tmpError == V2_4::Error::NONE) { in HidlComposer() 236 if (tmpError == Error::NONE) { in HidlComposer() 244 if (tmpError != Error::NONE) { in HidlComposer() 314 Error HidlComposer::executeCommands(Display) { in executeCommands() 323 Error HidlComposer::createVirtualDisplay(uint32_t width, uint32_t height, PixelFormat* format, in createVirtualDisplay() 326 Error error = kDefaultError; in createVirtualDisplay() 334 if (error != Error::NONE) { in createVirtualDisplay() [all …]
|
D | HWC2.h | 106 [[nodiscard]] virtual hal::Error acceptChanges() = 0; 107 [[nodiscard]] virtual base::expected<std::shared_ptr<HWC2::Layer>, hal::Error> 109 [[nodiscard]] virtual hal::Error getChangedCompositionTypes( 112 [[nodiscard]] virtual hal::Error getColorModes(std::vector<hal::ColorMode>* outModes) const = 0; 115 [[nodiscard]] virtual hal::Error getRenderIntents( 117 [[nodiscard]] virtual hal::Error getDataspaceSaturationMatrix(hal::Dataspace dataspace, 120 [[nodiscard]] virtual hal::Error getName(std::string* outName) const = 0; 121 [[nodiscard]] virtual hal::Error getRequests( 124 [[nodiscard]] virtual ftl::Expected<ui::DisplayConnectionType, hal::Error> getConnectionType() 126 [[nodiscard]] virtual hal::Error supportsDoze(bool* outSupport) const = 0; [all …]
|
D | AidlComposerHal.h | 78 Error executeCommands(Display) override; 81 Error createVirtualDisplay(uint32_t width, uint32_t height, PixelFormat* format, 83 Error destroyVirtualDisplay(Display display) override; 85 Error acceptDisplayChanges(Display display) override; 87 Error createLayer(Display display, Layer* outLayer) override; 88 Error destroyLayer(Display display, Layer layer) override; 90 Error getActiveConfig(Display display, Config* outConfig) override; 91 Error getChangedCompositionTypes( 95 Error getColorModes(Display display, std::vector<ColorMode>* outModes) override; 96 Error getDisplayAttribute(Display display, Config config, IComposerClient::Attribute attribute, [all …]
|
D | ComposerHal.h | 76 using V2_1::Error; 117 virtual Error executeCommands(Display) = 0; 120 virtual Error createVirtualDisplay(uint32_t width, uint32_t height, PixelFormat*, 122 virtual Error destroyVirtualDisplay(Display display) = 0; 124 virtual Error acceptDisplayChanges(Display display) = 0; 126 virtual Error createLayer(Display display, Layer* outLayer) = 0; 127 virtual Error destroyLayer(Display display, Layer layer) = 0; 129 virtual Error getActiveConfig(Display display, Config* outConfig) = 0; 130 virtual Error getChangedCompositionTypes(Display display, std::vector<Layer>* outLayers, 132 virtual Error getColorModes(Display display, std::vector<ColorMode>* outModes) = 0; [all …]
|
D | AidlComposerHal.cpp | 356 Error AidlComposer::executeCommands(Display display) { in executeCommands() 373 Error AidlComposer::createVirtualDisplay(uint32_t width, uint32_t height, PixelFormat* format, in createVirtualDisplay() 386 return static_cast<Error>(status.getServiceSpecificError()); in createVirtualDisplay() 392 return Error::NONE; in createVirtualDisplay() 395 Error AidlComposer::destroyVirtualDisplay(Display display) { in destroyVirtualDisplay() 399 return static_cast<Error>(status.getServiceSpecificError()); in destroyVirtualDisplay() 402 return Error::NONE; in destroyVirtualDisplay() 405 Error AidlComposer::acceptDisplayChanges(Display display) { in acceptDisplayChanges() 406 Error error = Error::NONE; in acceptDisplayChanges() 411 error = Error::BAD_DISPLAY; in acceptDisplayChanges() [all …]
|
D | HidlComposerHal.h | 63 using V2_1::Error; 82 Error parse(); 87 Error error; 179 Error executeCommands(Display) override; 182 Error createVirtualDisplay(uint32_t width, uint32_t height, PixelFormat* format, 184 Error destroyVirtualDisplay(Display display) override; 186 Error acceptDisplayChanges(Display display) override; 188 Error createLayer(Display display, Layer* outLayer) override; 189 Error destroyLayer(Display display, Layer layer) override; 191 Error getActiveConfig(Display display, Config* outConfig) override; [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | MockHWC2.h | 46 using Error = hal::Error; variable 55 MOCK_METHOD2(setCursorPosition, Error(int32_t, int32_t)); 57 Error(uint32_t, const android::sp<android::GraphicBuffer>&, 59 MOCK_METHOD2(setBufferSlotsToClear, Error(const std::vector<uint32_t>&, uint32_t)); 60 MOCK_METHOD1(setSurfaceDamage, Error(const android::Region&)); 61 MOCK_METHOD1(setBlendMode, Error(hal::BlendMode)); 62 MOCK_METHOD1(setColor, Error(aidl::android::hardware::graphics::composer3::Color)); 64 Error(aidl::android::hardware::graphics::composer3::Composition)); 65 MOCK_METHOD1(setDataspace, Error(android::ui::Dataspace)); 66 MOCK_METHOD2(setPerFrameMetadata, Error(const int32_t, const android::HdrMetadata&)); [all …]
|
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/ |
D | vulkan_xml_test.go | 35 t.Error("Failed to parse test XML") 39 t.Error("Name of type improperly parsed") 42 t.Error("Name of type improperly parsed") 55 t.Error("XML was errorneously accepted") 58 if err.Error() != "Unknown type without category: \"Foo\"" { 59 t.Error("Unexpected error: \"" + err.Error() + "\"") 75 t.Error("Failed to parse test XML") 79 t.Error("Name of member improperly parsed") 82 t.Error("Name of member improperly parsed") 106 t.Error("Failed to parse test XML") [all …]
|
D | gen_vulkan_test.go | 33 t.Error("Directly referred type is not declared, but areBaseTypesDeclared reports it as declared") 36 …t.Error("Directly referred type Bar is not declared, but areBaseTypesDeclared reports it as declar… 39 …t.Error("Directly referred array of type Foo is not declared, but areBaseTypesDeclared reports it … 42 …t.Error("Directly referred array o type Bar is not declared, but areBaseTypesDeclared reports it a… 45 …t.Error("Pointer for non-opaque struct is not declared, but areBaseTypesDeclared reports it as dec… 48 …t.Error("Pointer for opaque struct must always be considered declared, but areBaseTypesDeclared re… 53 …t.Error("Directly referred defined types are declared, but areBaseTypesDeclared reports it as not … 56 …t.Error("Directly referred defined types are declared, but areBaseTypesDeclared reports it as not … 59 …t.Error("Directly referred arrays of defined types are considred declared, but areBaseTypesDeclare… 62 …t.Error("Directly referred arrays of defined types are considred declared, but areBaseTypesDeclare… [all …]
|
D | cpp_types_test.go | 26 t.Error("Wrong alignment on " + arch_name) 29 t.Error("Wrong size on " + arch_name) 32 t.Error("Wrong fieldname on " + arch_name) 35 t.Error("Wrong offset on " + arch_name) 82 t.Error("Wrong alignment on " + arch_name) 85 t.Error("Wrong size on " + arch_name) 89 t.Error("Wrong extra info on " + arch_name) 93 t.Error("Wrong extra info on " + arch_name) 123 t.Error("Wrong name of pointer to array") 127 t.Error("Wrong name of pointer to array") [all …]
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | Result.h | 30 class Error { 32 explicit Error(const Error& parent) = default; 35 explicit Error(const char* fmt, ...) __attribute__((__format__(printf, 2, 3))); 38 explicit Error(const Error& parent, const char* fmt, ...) 55 Result(const Error& error); // NOLINT(runtime/explicit) 56 Result(Error&& error) noexcept; // NOLINT(runtime/explicit) 72 Error GetError() const; 77 std::variant<T, Error> data_; 89 Result<T>::Result(const Error& error) : data_(std::in_place_type<Error>, error) { in Result() 93 Result<T>::Result(Error&& error) noexcept in Result() [all …]
|
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/ |
D | BitcodeReader.cpp | 251 std::error_code Error(BitcodeError E, const Twine &Message); 252 std::error_code Error(BitcodeError E); 253 std::error_code Error(const Twine &Message); 360 static std::error_code Error(const DiagnosticHandlerFunction &DiagnosticHandler, in Error() function 367 static std::error_code Error(const DiagnosticHandlerFunction &DiagnosticHandler, in Error() function 369 return Error(DiagnosticHandler, EC, EC.message()); in Error() 372 std::error_code BitcodeReader::Error(BitcodeError E, const Twine &Message) { in Error() function in BitcodeReader 373 return ::Error(DiagnosticHandler, make_error_code(E), Message); in Error() 376 std::error_code BitcodeReader::Error(const Twine &Message) { in Error() function in BitcodeReader 377 return ::Error(DiagnosticHandler, in Error() [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/ |
D | AidlConversionUtils.java | 21 import android.hardware.biometrics.fingerprint.Error; 33 if (aidlError == Error.UNKNOWN) { in toFrameworkError() 35 } else if (aidlError == Error.HW_UNAVAILABLE) { in toFrameworkError() 37 } else if (aidlError == Error.UNABLE_TO_PROCESS) { in toFrameworkError() 39 } else if (aidlError == Error.TIMEOUT) { in toFrameworkError() 41 } else if (aidlError == Error.NO_SPACE) { in toFrameworkError() 43 } else if (aidlError == Error.CANCELED) { in toFrameworkError() 45 } else if (aidlError == Error.UNABLE_TO_REMOVE) { in toFrameworkError() 47 } else if (aidlError == Error.VENDOR) { in toFrameworkError() 49 } else if (aidlError == Error.BAD_CALIBRATION) { in toFrameworkError() [all …]
|
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/ |
D | BitcodeReader.cpp | 488 std::error_code Error(BitcodeError E, const Twine &Message); 489 std::error_code Error(BitcodeError E); 490 std::error_code Error(const Twine &Message); 598 static std::error_code Error(const DiagnosticHandlerFunction &DiagnosticHandler, in Error() function 605 static std::error_code Error(const DiagnosticHandlerFunction &DiagnosticHandler, in Error() function 607 return Error(DiagnosticHandler, EC, EC.message()); in Error() 610 std::error_code BitcodeReader::Error(BitcodeError E, const Twine &Message) { in Error() function in BitcodeReader 611 return ::Error(DiagnosticHandler, make_error_code(E), Message); in Error() 614 std::error_code BitcodeReader::Error(const Twine &Message) { in Error() function in BitcodeReader 615 return ::Error(DiagnosticHandler, in Error() [all …]
|
/frameworks/base/tools/streaming_proto/ |
D | Errors.cpp | 14 Error::Error() in Error() function in android::stream_proto::Error 18 Error::Error(const Error& that) in Error() function in android::stream_proto::Error 25 Error::Error(const string& f, int l, const char* m) in Error() function in android::stream_proto::Error 60 Error error(filename, lineno, buffer); in AddImpl() 69 for (vector<Error>::const_iterator it = m_errors.begin(); it != m_errors.end(); it++) { in Print()
|
D | Errors.h | 11 struct Error struct 13 Error(); 14 Error(const Error& that); 15 Error(const string& filename, int lineno, const char* message); 38 vector<Error> m_errors; argument
|
/frameworks/native/libs/binder/rust/rpcbinder/src/server/ |
D | android.rs | 22 use std::io::{Error, ErrorKind}; 47 pub fn new_vsock(mut service: SpIBinder, cid: u32, port: u32) -> Result<RpcServer, Error> { in new_vsock() argument 65 ) -> Result<RpcServer, Error> { in new_bound_socket() argument 86 ) -> Result<RpcServer, Error> { in new_unix_domain_bootstrap() argument 102 pub fn new_inet(mut service: SpIBinder, address: &str, port: u32) -> Result<RpcServer, Error> { in new_inet() argument 107 return Err(Error::from(ErrorKind::InvalidInput)); in new_inet() 123 unsafe fn checked_from_ptr(ptr: *mut ARpcServer) -> Result<RpcServer, Error> { in checked_from_ptr() argument 125 return Err(Error::new(ErrorKind::Other, "Failed to start server")); in checked_from_ptr() 179 pub fn shutdown(&self) -> Result<(), Error> { in shutdown() argument 184 Err(Error::from(ErrorKind::UnexpectedEof)) in shutdown()
|
/frameworks/base/cmds/idmap2/tests/ |
D | ResultTests.cpp | 34 ASSERT_TRUE(std::is_move_constructible<Error>::value); in TEST() 35 ASSERT_TRUE(std::is_move_assignable<Error>::value); in TEST() 36 ASSERT_TRUE(std::is_copy_constructible<Error>::value); in TEST() 37 ASSERT_TRUE(std::is_copy_assignable<Error>::value); in TEST() 41 Error e("%s=0x%08x", "resid", 0x7f010002); in TEST() 46 Error e1("foo"); in TEST() 49 Error e2(e1, "bar"); in TEST() 52 Error e3(e2); // NOLINT(performance-unnecessary-copy-initialization) in TEST() 55 Error e4(e3, "%02d", 1); in TEST() 81 Error e("foo"); in TEST() [all …]
|
/frameworks/native/libs/ui/ |
D | Gralloc3.cpp | 33 using android::hardware::graphics::mapper::V3_0::Error; 41 static constexpr Error kTransactionError = Error::NO_RESOURCES; 127 Error error; in createDescriptor() 130 if (error != Error::NONE) { in createDescriptor() 143 Error error; in importBuffer() 146 if (error != Error::NONE) { in importBuffer() 159 auto error = (ret.isOk()) ? static_cast<Error>(ret) : kTransactionError; in freeBuffer() 160 ALOGE_IF(error != Error::NONE, "freeBuffer(%p) failed with %d", buffer, error); in freeBuffer() 173 return static_cast<status_t>((ret.isOk()) ? static_cast<Error>(ret) : kTransactionError); in validateBufferSize() 181 Error error; in getTransportSize() [all …]
|
D | Gralloc2.cpp | 34 using android::hardware::graphics::mapper::V2_0::Error; 42 static constexpr Error kTransactionError = Error::NO_RESOURCES; 136 Error error; in createDescriptor() 140 if (error != Error::NONE) { in createDescriptor() 166 Error error; in importBuffer() 171 if (error != Error::NONE) { in importBuffer() 185 auto error = (ret.isOk()) ? static_cast<Error>(ret) : kTransactionError; in freeBuffer() 186 ALOGE_IF(error != Error::NONE, "freeBuffer(%p) failed with %d", in freeBuffer() 208 return static_cast<status_t>((ret.isOk()) ? static_cast<Error>(ret) : kTransactionError); in validateBufferSize() 220 Error error; in getTransportSize() [all …]
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | Result.cpp | 26 Error::Error(const char* fmt, ...) { in Error() function in android::idmap2::Error 34 Error::Error(const Error& parent, const char* fmt, ...) : msg_(parent.msg_) { in Error() function in android::idmap2::Error
|