/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CommandException.java | 28 private Error mError; 30 public enum Error { enum in CommandException 131 public CommandException(Error e) { in CommandException() 136 public CommandException(Error e, String errString) { in CommandException() 147 return new CommandException(Error.INVALID_RESPONSE); in fromRilErrno() 149 return new CommandException(Error.RADIO_NOT_AVAILABLE); in fromRilErrno() 151 return new CommandException(Error.GENERIC_FAILURE); in fromRilErrno() 153 return new CommandException(Error.PASSWORD_INCORRECT); in fromRilErrno() 155 return new CommandException(Error.SIM_PIN2); in fromRilErrno() 157 return new CommandException(Error.SIM_PUK2); in fromRilErrno() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockComposer.h | 40 using android::hardware::graphics::composer::V2_1::Error; 57 MOCK_METHOD0(executeCommands, Error()); 60 MOCK_METHOD4(createVirtualDisplay, Error(uint32_t, uint32_t, PixelFormat*, Display*)); 61 MOCK_METHOD1(destroyVirtualDisplay, Error(Display)); 62 MOCK_METHOD1(acceptDisplayChanges, Error(Display)); 63 MOCK_METHOD2(createLayer, Error(Display, Layer* outLayer)); 64 MOCK_METHOD2(destroyLayer, Error(Display, Layer)); 65 MOCK_METHOD2(getActiveConfig, Error(Display, Config*)); 67 Error(Display, std::vector<Layer>*, std::vector<IComposerClient::Composition>*)); 68 MOCK_METHOD2(getColorModes, Error(Display, std::vector<ColorMode>*)); [all …]
|
D | MockDisplay.h | 43 MOCK_METHOD0(acceptChanges, hal::Error()); 44 MOCK_METHOD1(createLayer, hal::Error(Layer**)); 45 MOCK_METHOD1(destroyLayer, hal::Error(Layer*)); 46 MOCK_CONST_METHOD1(getActiveConfig, hal::Error(std::shared_ptr<const Config>*)); 47 MOCK_CONST_METHOD1(getActiveConfigIndex, hal::Error(int* outIndex)); 49 hal::Error(std::unordered_map<Layer*, hal::Composition>*)); 50 MOCK_CONST_METHOD1(getColorModes, hal::Error(std::vector<hal::ColorMode>*)); 54 hal::Error(hal::ColorMode, std::vector<hal::RenderIntent>*)); 55 MOCK_METHOD2(getDataspaceSaturationMatrix, hal::Error(hal::Dataspace, android::mat4*)); 58 MOCK_CONST_METHOD1(getName, hal::Error(std::string*)); [all …]
|
/frameworks/native/services/surfaceflinger/tests/fakehwc/ |
D | FakeComposerClient.cpp | 208 V2_1::Error FakeComposerClient::createVirtualDisplay(uint32_t /*width*/, uint32_t /*height*/, in createVirtualDisplay() 212 return V2_1::Error::NONE; in createVirtualDisplay() 215 V2_1::Error FakeComposerClient::destroyVirtualDisplay(Display /*display*/) { in destroyVirtualDisplay() 217 return V2_1::Error::NONE; in destroyVirtualDisplay() 220 V2_1::Error FakeComposerClient::createLayer(Display /*display*/, Layer* outLayer) { in createLayer() 225 return V2_1::Error::NONE; in createLayer() 228 V2_1::Error FakeComposerClient::destroyLayer(Display /*display*/, Layer layer) { in destroyLayer() 231 return V2_1::Error::NONE; in destroyLayer() 234 V2_1::Error FakeComposerClient::getActiveConfig(Display display, Config* outConfig) { in getActiveConfig() 250 return V2_1::Error::NONE; in getActiveConfig() [all …]
|
D | FakeComposerClient.h | 69 V2_1::Error createVirtualDisplay(uint32_t width, uint32_t height, V1_0::PixelFormat* format, 71 V2_1::Error destroyVirtualDisplay(Display display) override; 72 V2_1::Error createLayer(Display display, Layer* outLayer) override; 73 V2_1::Error destroyLayer(Display display, Layer layer) override; 75 V2_1::Error getActiveConfig(Display display, Config* outConfig) override; 76 V2_1::Error getClientTargetSupport(Display display, uint32_t width, uint32_t height, 79 V2_1::Error getColorModes(Display display, hidl_vec<V1_0::ColorMode>* outModes) override; 80 V2_1::Error getDisplayAttribute(Display display, Config config, 83 V2_1::Error getDisplayConfigs(Display display, hidl_vec<Config>* outConfigs) override; 84 V2_1::Error getDisplayName(Display display, hidl_string* outName) override; [all …]
|
D | MockComposerHal.h | 35 MOCK_METHOD2(getActiveConfig, V2_1::Error(Display, Config*)); 37 V2_4::Error(Display, Config, V2_4::IComposerClient::Attribute, int32_t*)); 38 MOCK_METHOD2(getDisplayConfigs, V2_1::Error(Display, hidl_vec<Config>*)); 39 MOCK_METHOD2(setActiveConfig, V2_1::Error(Display, Config)); 40 MOCK_METHOD2(getDisplayVsyncPeriod, V2_4::Error(Display, V2_4::VsyncPeriodNanos*)); 42 V2_4::Error(Display, Config,
|
/frameworks/native/services/vr/hardware_composer/impl/ |
D | vr_hwc.cpp | 176 Error HwcDisplay::GetFrame( in GetFrame() 187 return Error::BAD_LAYER; in GetFrame() 213 return Error::NONE; in GetFrame() 286 Error VrHwc::destroyVirtualDisplay(Display display) { in destroyVirtualDisplay() 289 return Error::BAD_DISPLAY; in destroyVirtualDisplay() 295 return Error::NONE; in destroyVirtualDisplay() 298 Error VrHwc::createLayer(Display display, Layer* outLayer) { in createLayer() 302 return Error::BAD_DISPLAY; in createLayer() 306 return Error::NONE; in createLayer() 309 Error VrHwc::destroyLayer(Display display, Layer layer) { in destroyLayer() [all …]
|
D | vr_hwc.h | 43 using android::hardware::graphics::composer::V2_1::Error; 158 Error GetFrame(std::vector<ComposerView::ComposerLayer>* out_frame); 213 Error setLayerInfo(Display display, Layer layer, uint32_t type, 215 Error setClientTargetMetadata( 217 Error setLayerBufferMetadata( 230 Error destroyVirtualDisplay(Display display) override; 232 Error createLayer(Display display, Layer* outLayer) override; 233 Error destroyLayer(Display display, Layer layer) override; 235 Error getActiveConfig(Display display, Config* outConfig) override; 236 Error getDisplayAttribute(Display display, Config config, [all …]
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWC2.cpp | 111 Error error = Error::NONE; in ~Display() 120 error = static_cast<Error>(mComposer.destroyVirtualDisplay(mId)); in ~Display() 128 ALOGE_IF(error != Error::NONE, "%s: Failed to %s display %" PRIu64 ": %d", __FUNCTION__, msg, in ~Display() 135 Error Display::acceptChanges() in acceptChanges() 138 return static_cast<Error>(intError); in acceptChanges() 141 Error Display::createLayer(HWC2::Layer** outLayer) { in createLayer() 143 return Error::BAD_PARAMETER; in createLayer() 147 auto error = static_cast<Error>(intError); in createLayer() 148 if (error != Error::NONE) { in createLayer() 155 return Error::NONE; in createLayer() [all …]
|
D | ComposerHal.h | 71 using V2_1::Error; 104 virtual Error executeCommands() = 0; 108 virtual Error createVirtualDisplay(uint32_t width, uint32_t height, PixelFormat* format, 110 virtual Error destroyVirtualDisplay(Display display) = 0; 112 virtual Error acceptDisplayChanges(Display display) = 0; 114 virtual Error createLayer(Display display, Layer* outLayer) = 0; 115 virtual Error destroyLayer(Display display, Layer layer) = 0; 117 virtual Error getActiveConfig(Display display, Config* outConfig) = 0; 118 virtual Error getChangedCompositionTypes( 121 virtual Error getColorModes(Display display, std::vector<ColorMode>* outModes) = 0; [all …]
|
D | ComposerHal.cpp | 101 constexpr Error kDefaultError = Error::NO_RESOURCES; 102 constexpr V2_4::Error kDefaultError_2_4 = static_cast<V2_4::Error>(kDefaultError); 111 Error unwrapRet(Return<Error>& ret) in unwrapRet() 185 if (tmpError == V2_4::Error::NONE) { in Composer() 194 if (tmpError == Error::NONE) { in Composer() 202 if (tmpError != Error::NONE) { in Composer() 273 Error Composer::executeCommands() { in executeCommands() 283 Error Composer::createVirtualDisplay(uint32_t width, uint32_t height, in createVirtualDisplay() 287 Error error = kDefaultError; in createVirtualDisplay() 295 if (error != Error::NONE) { in createVirtualDisplay() [all …]
|
D | HWC2.h | 164 [[clang::warn_unused_result]] virtual hal::Error acceptChanges() = 0; 165 [[clang::warn_unused_result]] virtual hal::Error createLayer(Layer** outLayer) = 0; 166 [[clang::warn_unused_result]] virtual hal::Error destroyLayer(Layer* layer) = 0; 167 [[clang::warn_unused_result]] virtual hal::Error getActiveConfig( 169 [[clang::warn_unused_result]] virtual hal::Error getActiveConfigIndex(int* outIndex) const = 0; 170 [[clang::warn_unused_result]] virtual hal::Error getChangedCompositionTypes( 172 [[clang::warn_unused_result]] virtual hal::Error getColorModes( 176 [[clang::warn_unused_result]] virtual hal::Error getRenderIntents( 178 [[clang::warn_unused_result]] virtual hal::Error getDataspaceSaturationMatrix( 185 [[clang::warn_unused_result]] virtual hal::Error getName(std::string* outName) const = 0; [all …]
|
D | Hal.h | 42 using V2_1::Error; 62 using HWError = V2_1::Error; 75 inline bool hasChangesError(hardware::graphics::composer::hal::Error error) { in hasChangesError() 117 inline std::string to_string(hardware::graphics::composer::hal::V2_4::Error error) { in to_string() 123 case hardware::graphics::composer::hal::V2_4::Error::NONE: in to_string() 125 case hardware::graphics::composer::hal::V2_4::Error::BAD_CONFIG: in to_string() 127 case hardware::graphics::composer::hal::V2_4::Error::BAD_DISPLAY: in to_string() 129 case hardware::graphics::composer::hal::V2_4::Error::BAD_LAYER: in to_string() 131 case hardware::graphics::composer::hal::V2_4::Error::BAD_PARAMETER: in to_string() 133 case hardware::graphics::composer::hal::V2_4::Error::NO_RESOURCES: in to_string() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | MockHWC2.h | 43 using Error = hal::Error; variable 52 MOCK_METHOD2(setCursorPosition, Error(int32_t, int32_t)); 54 Error(uint32_t, const android::sp<android::GraphicBuffer>&, 56 MOCK_METHOD1(setSurfaceDamage, Error(const android::Region&)); 57 MOCK_METHOD1(setBlendMode, Error(hal::BlendMode)); 58 MOCK_METHOD1(setColor, Error(hal::Color)); 59 MOCK_METHOD1(setCompositionType, Error(hal::Composition)); 60 MOCK_METHOD1(setDataspace, Error(android::ui::Dataspace)); 61 MOCK_METHOD2(setPerFrameMetadata, Error(const int32_t, const android::HdrMetadata&)); 62 MOCK_METHOD1(setDisplayFrame, Error(const android::Rect&)); [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/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 | 13 Error::Error() in Error() function in android::stream_proto::Error 17 Error::Error(const Error& that) in Error() function in android::stream_proto::Error 24 Error::Error(const string& f, int l, const char* m) in Error() function in android::stream_proto::Error 59 Error error(filename, lineno, buffer); in AddImpl() 68 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/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; 118 Error error; in createDescriptor() 121 if (error != Error::NONE) { in createDescriptor() 134 Error error; in importBuffer() 137 if (error != Error::NONE) { in importBuffer() 150 auto error = (ret.isOk()) ? static_cast<Error>(ret) : kTransactionError; in freeBuffer() 151 ALOGE_IF(error != Error::NONE, "freeBuffer(%p) failed with %d", buffer, error); in freeBuffer() 164 return static_cast<status_t>((ret.isOk()) ? static_cast<Error>(ret) : kTransactionError); in validateBufferSize() 172 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; 127 Error error; in createDescriptor() 131 if (error != Error::NONE) { in createDescriptor() 157 Error error; in importBuffer() 162 if (error != Error::NONE) { in importBuffer() 176 auto error = (ret.isOk()) ? static_cast<Error>(ret) : kTransactionError; in freeBuffer() 177 ALOGE_IF(error != Error::NONE, "freeBuffer(%p) failed with %d", in freeBuffer() 199 return static_cast<status_t>((ret.isOk()) ? static_cast<Error>(ret) : kTransactionError); in validateBufferSize() 211 Error error; in getTransportSize() [all …]
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | Idmap.cpp | 89 return Error("failed to read string size"); in ReadString() 96 return Error("failed to read string of size %u", size); in ReadString() 110 : Error("failed to get CRC for \"%s\"", a ? "AndroidManifest.xml" : "resources.arsc"); in GetPackageCrc() 140 return Error("failed to open target %s", target_path); in IsUpToDate() 145 return Error("failed to get target crc"); in IsUpToDate() 150 return Error("failed to overlay target %s", overlay_path); in IsUpToDate() 155 return Error("failed to get overlay crc"); in IsUpToDate() 167 return Error("bad magic: actual 0x%08x, expected 0x%08x", magic_, kIdmapMagic); in IsUpToDate() 171 return Error("bad version: actual 0x%08x, expected 0x%08x", version_, kIdmapCurrentVersion); in IsUpToDate() 175 return Error("bad target crc: idmap version 0x%08x, file system version 0x%08x", target_crc_, in IsUpToDate() [all …]
|
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
|
D | ResourceUtils.cpp | 77 return Error("no resource 0x%08x in asset manager", resid); in ResToTypeEntryName() 98 return Error("failed to open %s as a zip file", path.c_str()); in ExtractOverlayManifestInfo() 103 return Error("failed to uncompress AndroidManifest.xml from %s", path.c_str()); in ExtractOverlayManifestInfo() 108 return Error("failed to parse AndroidManifest.xml from %s", path.c_str()); in ExtractOverlayManifestInfo() 113 return Error("root element tag is not <manifest> in AndroidManifest.xml of %s", path.c_str()); in ExtractOverlayManifestInfo() 125 return Error("<overlay> missing from AndroidManifest.xml of %s", path.c_str()); in ExtractOverlayManifestInfo() 131 return Error("android:targetPackage missing from <overlay> of %s: %s", path.c_str(), in ExtractOverlayManifestInfo() 143 return Error("android:resourcesMap is not a reference in AndroidManifest.xml of %s", in ExtractOverlayManifestInfo() 153 return Error("android:isStatic is not a boolean in AndroidManifest.xml of %s", path.c_str()); in ExtractOverlayManifestInfo() 162 return Error("android:priority is not an integer in AndroidManifest.xml of %s", path.c_str()); in ExtractOverlayManifestInfo()
|