Home
last modified time | relevance | path

Searched refs:Error (Results 1 – 25 of 184) sorted by relevance

12345678

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCommandException.java28 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/
DMockComposer.h40 using android::hardware::graphics::composer::V2_1::Error;
56 MOCK_METHOD0(executeCommands, Error());
59 MOCK_METHOD4(createVirtualDisplay, Error(uint32_t, uint32_t, PixelFormat*, Display*));
60 MOCK_METHOD1(destroyVirtualDisplay, Error(Display));
61 MOCK_METHOD1(acceptDisplayChanges, Error(Display));
62 MOCK_METHOD2(createLayer, Error(Display, Layer* outLayer));
63 MOCK_METHOD2(destroyLayer, Error(Display, Layer));
64 MOCK_METHOD2(getActiveConfig, Error(Display, Config*));
66 Error(Display, std::vector<Layer>*, std::vector<IComposerClient::Composition>*));
67 MOCK_METHOD2(getColorModes, Error(Display, std::vector<ColorMode>*));
[all …]
DMockDisplay.h23 using HWC2::Error;
40 MOCK_METHOD0(acceptChanges, Error());
41 MOCK_METHOD1(createLayer, Error(Layer**));
42 MOCK_METHOD1(destroyLayer, Error(Layer*));
43 MOCK_CONST_METHOD1(getActiveConfig, Error(std::shared_ptr<const Config>*));
44 MOCK_CONST_METHOD1(getActiveConfigIndex, Error(int* outIndex));
45 MOCK_METHOD1(getChangedCompositionTypes, Error(std::unordered_map<Layer*, HWC2::Composition>*));
46 MOCK_CONST_METHOD1(getColorModes, Error(std::vector<android::ui::ColorMode>*));
50 Error(android::ui::ColorMode, std::vector<android::ui::RenderIntent>*));
51 MOCK_METHOD2(getDataspaceSaturationMatrix, Error(android::ui::Dataspace, android::mat4*));
[all …]
/frameworks/native/services/surfaceflinger/DisplayHardware/
DComposerHal.h59 using V2_1::Error;
90 virtual Error executeCommands() = 0;
94 virtual Error createVirtualDisplay(uint32_t width, uint32_t height, PixelFormat* format,
96 virtual Error destroyVirtualDisplay(Display display) = 0;
98 virtual Error acceptDisplayChanges(Display display) = 0;
100 virtual Error createLayer(Display display, Layer* outLayer) = 0;
101 virtual Error destroyLayer(Display display, Layer layer) = 0;
103 virtual Error getActiveConfig(Display display, Config* outConfig) = 0;
104 virtual Error getChangedCompositionTypes(
107 virtual Error getColorModes(Display display, std::vector<ColorMode>* outModes) = 0;
[all …]
DHWC2.h96 Error getDisplayIdentificationData(hwc2_display_t hwcDisplayId, uint8_t* outPort,
99 Error createVirtualDisplay(uint32_t width, uint32_t height,
114 Error flushCommands();
206 [[clang::warn_unused_result]] virtual Error acceptChanges() = 0;
207 [[clang::warn_unused_result]] virtual Error createLayer(Layer** outLayer) = 0;
208 [[clang::warn_unused_result]] virtual Error destroyLayer(Layer* layer) = 0;
209 [[clang::warn_unused_result]] virtual Error getActiveConfig(
211 [[clang::warn_unused_result]] virtual Error getActiveConfigIndex(int* outIndex) const = 0;
212 [[clang::warn_unused_result]] virtual Error getChangedCompositionTypes(
214 [[clang::warn_unused_result]] virtual Error getColorModes(
[all …]
DHWC2.cpp126 Error Device::getDisplayIdentificationData(hwc2_display_t hwcDisplayId, uint8_t* outPort, in getDisplayIdentificationData()
129 return static_cast<Error>(intError); in getDisplayIdentificationData()
132 Error Device::createVirtualDisplay(uint32_t width, uint32_t height, in createVirtualDisplay()
140 auto error = static_cast<Error>(intError); in createVirtualDisplay()
141 if (error != Error::None) { in createVirtualDisplay()
151 return Error::None; in createVirtualDisplay()
176 auto error = static_cast<Error>(intError); in onHotplug()
177 if (error != Error::None) { in onHotplug()
220 Error Device::flushCommands() in flushCommands()
222 return static_cast<Error>(mComposer->executeCommands()); in flushCommands()
[all …]
DComposerHal.cpp95 constexpr Error kDefaultError = Error::NO_RESOURCES;
104 Error unwrapRet(Return<Error>& ret) in unwrapRet()
176 if (tmpError == Error::NONE) { in Composer()
184 if (tmpError != Error::NONE) { in Composer()
248 Error Composer::executeCommands() { in executeCommands()
258 Error Composer::createVirtualDisplay(uint32_t width, uint32_t height, in createVirtualDisplay()
262 Error error = kDefaultError; in createVirtualDisplay()
270 if (error != Error::NONE) { in createVirtualDisplay()
284 if (error != Error::NONE) { in createVirtualDisplay()
296 Error Composer::destroyVirtualDisplay(Display display) in destroyVirtualDisplay()
[all …]
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.cpp176 Error HwcDisplay::GetFrame( in GetFrame()
187 return Error::BAD_LAYER; in GetFrame()
213 return Error::NONE; in GetFrame()
285 Error VrHwc::createVirtualDisplay(uint32_t width, uint32_t height, in createVirtualDisplay()
291 return Error::NONE; in createVirtualDisplay()
294 Error VrHwc::destroyVirtualDisplay(Display display) { in destroyVirtualDisplay()
297 return Error::BAD_DISPLAY; in destroyVirtualDisplay()
303 return Error::NONE; in destroyVirtualDisplay()
306 Error VrHwc::createLayer(Display display, Layer* outLayer) { in createLayer()
310 return Error::BAD_DISPLAY; in createLayer()
[all …]
Dvr_hwc.h145 Error GetFrame(std::vector<ComposerView::ComposerLayer>* out_frame);
200 Error setLayerInfo(Display display, Layer layer, uint32_t type,
202 Error setClientTargetMetadata(
204 Error setLayerBufferMetadata(
216 Error createVirtualDisplay(uint32_t width, uint32_t height,
218 Error destroyVirtualDisplay(Display display) override;
220 Error createLayer(Display display, Layer* outLayer) override;
221 Error destroyLayer(Display display, Layer layer) override;
223 Error getActiveConfig(Display display, Config* outConfig) override;
224 Error getClientTargetSupport(Display display,
[all …]
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DFakeComposerClient.cpp196 Error FakeComposerClient::createVirtualDisplay(uint32_t /*width*/, uint32_t /*height*/, in createVirtualDisplay()
199 return Error::NONE; in createVirtualDisplay()
202 Error FakeComposerClient::destroyVirtualDisplay(Display /*display*/) { in destroyVirtualDisplay()
204 return Error::NONE; in destroyVirtualDisplay()
207 Error FakeComposerClient::createLayer(Display /*display*/, Layer* outLayer) { in createLayer()
212 return Error::NONE; in createLayer()
215 Error FakeComposerClient::destroyLayer(Display /*display*/, Layer layer) { in destroyLayer()
218 return Error::NONE; in destroyLayer()
221 Error FakeComposerClient::getActiveConfig(Display /*display*/, Config* outConfig) { in getActiveConfig()
234 return Error::NONE; in getActiveConfig()
[all …]
DFakeComposerClient.h69 Error createVirtualDisplay(uint32_t width, uint32_t height, PixelFormat* format,
71 Error destroyVirtualDisplay(Display display) override;
72 Error createLayer(Display display, Layer* outLayer) override;
73 Error destroyLayer(Display display, Layer layer) override;
75 Error getActiveConfig(Display display, Config* outConfig) override;
76 Error getClientTargetSupport(Display display, uint32_t width, uint32_t height,
78 Error getColorModes(Display display, hidl_vec<ColorMode>* outModes) override;
79 Error getDisplayAttribute(Display display, Config config, IComposerClient::Attribute attribute,
81 Error getDisplayConfigs(Display display, hidl_vec<Config>* outConfigs) override;
82 Error getDisplayName(Display display, hidl_string* outName) override;
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DMockHWC2.h40 MOCK_METHOD2(setCursorPosition, Error(int32_t, int32_t));
42 Error(uint32_t, const android::sp<android::GraphicBuffer>&,
44 MOCK_METHOD1(setSurfaceDamage, Error(const android::Region&));
45 MOCK_METHOD1(setBlendMode, Error(BlendMode));
46 MOCK_METHOD1(setColor, Error(hwc_color_t));
47 MOCK_METHOD1(setCompositionType, Error(Composition));
48 MOCK_METHOD1(setDataspace, Error(android::ui::Dataspace));
49 MOCK_METHOD2(setPerFrameMetadata, Error(const int32_t, const android::HdrMetadata&));
50 MOCK_METHOD1(setDisplayFrame, Error(const android::Rect&));
51 MOCK_METHOD1(setPlaneAlpha, Error(float));
[all …]
/frameworks/base/cmds/idmap2/include/idmap2/
DResult.h30 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/
DBitcodeReader.cpp251 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/
DBitcodeReader.cpp488 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/native/libs/ui/
DGralloc3.cpp33 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 …]
DGralloc2.cpp34 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/tools/streaming_proto/
DErrors.cpp13 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()
DErrors.h11 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/
DResultTests.cpp34 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/base/cmds/idmap2/idmap2/
DLookup.cpp55 using android::idmap2::Error;
85 return Error("failed to obtain resource id for %s", res.c_str()); in ParseResReference()
94 return Error("no resource 0x%08x in asset manager", resid); in GetValue()
138 return Error("failed to open %s as zip", apk_path.c_str()); in GetTargetPackageNameFromManifest()
142 return Error("failed to uncompress AndroidManifest.xml in %s", apk_path.c_str()); in GetTargetPackageNameFromManifest()
146 return Error("failed to create XML buffer"); in GetTargetPackageNameFromManifest()
150 return Error("failed to find <overlay> tag"); in GetTargetPackageNameFromManifest()
154 return Error("failed to find targetPackage attribute"); in GetTargetPackageNameFromManifest()
182 return Error("failed to parse config"); in Lookup()
194 return Error("failed to read idmap from %s", idmap_path.c_str()); in Lookup()
[all …]
/frameworks/base/cmds/idmap2/libidmap2/
DIdmap.cpp127 : Error("failed to get CRC for \"%s\"", a ? "AndroidManifest.xml" : "resources.arsc"); in GetCrc()
147 return Error("bad magic: actual 0x%08x, expected 0x%08x", magic_, kIdmapMagic); in IsUpToDate()
151 return Error("bad version: actual 0x%08x, expected 0x%08x", version_, kIdmapCurrentVersion); in IsUpToDate()
156 return Error("failed to open target %s", GetTargetPath().to_string().c_str()); in IsUpToDate()
161 return Error("failed to get target crc"); in IsUpToDate()
165 return Error("bad target crc: idmap version 0x%08x, file system version 0x%08x", target_crc_, in IsUpToDate()
171 return Error("failed to open overlay %s", GetOverlayPath().to_string().c_str()); in IsUpToDate()
176 return Error("failed to get overlay crc"); in IsUpToDate()
180 return Error("bad overlay crc: idmap version 0x%08x, file system version 0x%08x", overlay_crc_, in IsUpToDate()
253 return Error("failed to parse idmap header"); in FromBinaryStream()
[all …]
DResult.cpp26 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
/frameworks/base/tools/aapt2/
DLoadedApk.cpp80 diag->Error(DiagMessage(path) << "failed opening zip: " << error); in LoadApkFromPath()
91 diag->Error(DiagMessage(path) << "could not identify format of APK"); in LoadApkFromPath()
105 diag->Error(DiagMessage(source) << "failed to open " << kProtoResourceTablePath); in LoadProtoApkFromFileCollection()
111 diag->Error(DiagMessage(source) << "failed to read " << kProtoResourceTablePath); in LoadProtoApkFromFileCollection()
118 diag->Error(DiagMessage(source) in LoadProtoApkFromFileCollection()
126 diag->Error(DiagMessage(source) << "failed to find " << kAndroidManifestPath); in LoadProtoApkFromFileCollection()
132 diag->Error(DiagMessage(source) << "failed to open " << kAndroidManifestPath); in LoadProtoApkFromFileCollection()
139 diag->Error(DiagMessage(source) << "failed to read proto " << kAndroidManifestPath); in LoadProtoApkFromFileCollection()
146 diag->Error(DiagMessage(source) in LoadProtoApkFromFileCollection()
163 diag->Error(DiagMessage(source) << "failed to open " << kApkResourceTablePath); in LoadBinaryApkFromFileCollection()
[all …]
DResourceParser.cpp296 diag_->Error(DiagMessage(source_.WithLine(parser->line_number())) in FlattenXmlSubtree()
371 diag_->Error(DiagMessage(source_.WithLine(parser->line_number())) << builder.GetError()); in FlattenXmlSubtree()
393 diag_->Error(DiagMessage(source_.WithLine(parser->line_number())) in Parse()
403 diag_->Error(DiagMessage(source_.WithLine(parser->line_number())) in Parse()
425 diag_->Error(DiagMessage(source_.WithLine(parser->line_number())) in ParseResources()
474 diag_->Error(DiagMessage(source_) << "resource '" << stripped_resource in ParseResources()
548 diag_->Error(DiagMessage(source_.WithLine(parser->line_number())) in ParseResource()
559 diag_->Error(DiagMessage(out_resource->source) in ParseResource()
572 diag_->Error(DiagMessage(source_.WithLine(parser->line_number())) in ParseResource()
584 diag_->Error(DiagMessage(out_resource->source) in ParseResource()
[all …]

12345678