Searched defs:error (Results 201 - 225 of 293) sorted by path

1234567891011>>

/frameworks/native/cmds/dumpsys/
H A Ddumpsys.cpp228 bool error = false; local
241 error = true;
253 error = true;
263 error = true;
275 if (timed_out || error) {
/frameworks/native/cmds/installd/
H A DInstalldNativeService.cpp106 static binder::Status error() { function in namespace:android::installd::__anon1477
110 static binder::Status error(const std::string& msg) { function in namespace:android::installd::__anon1477
115 static binder::Status error(uint32_t code, const std::string& msg) { function in namespace:android::installd::__anon1477
369 return error("Failed to prepare " + path);
376 return error("Failed to restorecon " + path);
383 return error("Failed to write_path_inode for " + path);
390 return error("Failed to get_path_inode for " + path);
400 return error("Failed to prepare " + path);
407 return error("Failed to restorecon " + path);
411 return error("Faile
[all...]
/frameworks/native/include/ui/
H A DGralloc2.h104 Error error = mMapper.createDescriptor(descriptorInfo, &descriptor); local
105 if (error == Error::NONE) {
106 error = allocate(descriptor, count, outStride, outBufferHandles);
108 return error;
/frameworks/native/libs/binder/
H A DIPCThreadState.cpp506 ALOGE("getAndExecuteCommand(fd=%d) returned unexpected error %d, aborting",
1063 status_t error; local
1080 error = reinterpret_cast<BBinder*>(tr.cookie)->transact(tr.code, buffer,
1084 error = UNKNOWN_TRANSACTION;
1088 error = the_context_object->transact(tr.code, buffer, &reply, tr.flags);
1096 if (error < NO_ERROR) reply.setError(error);
/frameworks/native/libs/binder/tests/
H A DbinderThroughputTest.cpp74 int error = write(m_writeFd, &val, sizeof(val)); local
75 ASSERT_TRUE(error >= 0);
79 int error = read(m_readFd, &val, sizeof(val)); local
80 ASSERT_TRUE(error >= 0);
83 int error = write(m_writeFd, &v, sizeof(T)); local
84 ASSERT_TRUE(error >= 0);
87 int error = read(m_readFd, &v, sizeof(T)); local
88 ASSERT_TRUE(error >= 0);
H A Dschd-dbg.cpp173 int error = write(m_writeFd, &val, sizeof(val)); local
174 ASSERT(error >= 0);
178 int error = read(m_readFd, &val, sizeof(val)); local
179 ASSERT(error >= 0);
183 int error = write(m_writeFd, &v, sizeof(T)); local
184 ASSERT(error >= 0);
188 int error = read(m_readFd, &v, sizeof(T)); local
189 ASSERT(error >= 0);
/frameworks/native/libs/gui/
H A DBufferQueueProducer.cpp323 // Return an error if we're in non-blocking mode (producer and
509 status_t error = graphicBuffer->initCheck(); local
514 if (error == NO_ERROR && !mCore->mIsAbandoned) {
522 if (error != NO_ERROR) {
526 return error;
547 // If something goes wrong, log the error, but return the buffer without
551 BQ_LOGE("dequeueBuffer: error %#x waiting for fence",
1239 // It's not really an error to disconnect after the surface has
1250 // nobody is connected, it's not really an error.
H A DGLConsumer.cpp474 // keep going, with error raised [?]
509 GLenum error; local
510 while ((error = glGetError()) != GL_NO_ERROR) {
511 GLC_LOGW("bindTextureImage: clearing GL error: %#04x", error);
534 if ((error = glGetError()) != GL_NO_ERROR) {
545 if ((error = glGetError()) != GL_NO_ERROR) {
546 GLC_LOGE("bindTextureImage: error binding external image: %#04x", error);
561 // never been set, so don't error ou
1272 EGLint error = eglGetError(); local
[all...]
/frameworks/native/libs/hwc2on1adapter/
H A DHWC2On1Adapter.cpp785 Error error = mDevice.setAllDisplays(); local
786 if (error != Error::None) {
788 to_string(error).c_str());
789 return error;
813 auto error = config->getHwc1IdForColorMode(mActiveColorMode, &hwc1Id); local
814 if (error != Error::None) {
815 return error;
856 auto error = mActiveConfig->getHwc1IdForColorMode(mode, &hwc1Config); local
857 if (error != Error::None) {
858 return error;
920 int error = 0; local
954 int error = mDevice.mHwc1Device->eventControl(mDevice.mHwc1Device, local
2477 Error error = display->set(*mHwc1Contents[hwc1Id]); local
[all...]
/frameworks/native/libs/hwc2on1adapter/include/hwc2on1adapter/
H A DHWC2On1Adapter.h92 auto error = getAdapter(device)->createVirtualDisplay(width, height, local
94 return static_cast<int32_t>(error);
100 auto error = getAdapter(device)->destroyVirtualDisplay(display); local
101 return static_cast<int32_t>(error);
122 auto error = getAdapter(device)->registerCallback(descriptor, local
124 return static_cast<int32_t>(error);
473 auto error = ((*display).*member)(std::forward<Args>(args)...); local
474 return static_cast<int32_t>(error);
619 auto error = std::get<HWC2::Error>(result); local
620 if (error
[all...]
/frameworks/native/libs/input/
H A DInputTransport.cpp159 int error = errno; local
161 ALOGD("channel '%s' ~ error sending message of type %d, errno=%d", mName.string(),
162 msg->header.type, error);
164 if (error == EAGAIN || error == EWOULDBLOCK) {
167 if (error == EPIPE || error == ENOTCONN || error == ECONNREFUSED || error == ECONNRESET) {
170 return -error;
194 int error = errno; local
[all...]
/frameworks/native/libs/ui/
H A DGralloc2.cpp46 Error error; local
50 error = tmpError;
51 if (error != Error::NONE) {
58 return (ret.isOk()) ? error : kTransactionError;
64 Error error; local
68 error = tmpError;
69 if (error != Error::NONE) {
76 return (ret.isOk()) ? error : kTransactionError;
84 auto error = (ret.isOk()) ? static_cast<Error>(ret) : kTransactionError; local
85 ALOGE_IF(error !
104 Error error; local
139 Error error; local
165 Error error; local
220 Error error; local
[all...]
H A DGraphicBufferAllocator.cpp118 Gralloc2::Error error = mAllocator->allocate(info, stride, handle); local
119 if (error == Gralloc2::Error::NONE) {
139 error);
H A DGraphicBufferMapper.cpp55 Gralloc2::Error error = mMapper->importBuffer( local
58 ALOGW_IF(error != Gralloc2::Error::NONE, "importBuffer(%p) failed: %d",
59 rawHandle, error);
61 return static_cast<status_t>(error);
97 status_t error = unlockAsync(handle, &fenceFd); local
98 if (error == NO_ERROR) {
102 return error;
119 Gralloc2::Error error = mMapper->lock(handle, usage, local
122 ALOGW_IF(error != Gralloc2::Error::NONE, "lock(%p, ...) failed: %d",
123 handle, error);
157 Gralloc2::Error error = mMapper->lock(handle, usage, local
[all...]
/frameworks/native/libs/vr/libbufferhubqueue/
H A Dbuffer_hub_queue_client.cpp80 return ErrorStatus(status.error());
115 return ErrorStatus(status.error());
199 // or print an error log in this case.
369 Close(-status.error());
384 Close(-status.error());
412 return -status.error();
452 return -status.error();
488 Close(-status.error());
506 return ErrorStatus(status.error());
570 const int error local
[all...]
/frameworks/native/libs/vr/libdisplay/
H A Ddisplay_client.cpp25 Surface::Surface(LocalChannelHandle channel_handle, int* error) argument
32 Close(status.error());
33 if (error)
34 *error = status.error();
42 Surface::Surface(const SurfaceAttributes& attributes, int* error) argument
50 Close(status.error());
51 if (error)
52 *error = status.error();
158 DisplayClient(int* error) argument
172 int error; local
[all...]
/frameworks/native/libs/vr/libdisplay/include/private/dvr/
H A Ddisplay_client.h21 int error; local
23 if (auto surface = Create(attributes, &error))
26 status.SetError(error);
57 // TODO(eieio,avakulenko): Remove error param once pdx::ClientBase::Create()
59 explicit Surface(const SurfaceAttributes& attributes, int* error = nullptr);
61 int* error = nullptr);
81 explicit DisplayClient(int* error = nullptr);
/frameworks/native/libs/vr/libdvr/tests/
H A Ddvr_display_manager-test.cpp247 << ") expected to indicate success but actually contains error ("
248 << status.error() << ")";
260 << ") expected to indicate error but instead indicates success.";
273 } else if (status.error() != error_code) {
275 << "(" << status_expression << ") expected to indicate error ("
276 << error_code << ") but actually indicates error (" << status.error()
560 int error = local
562 ASSERT_EQ(0, error);
565 error
[all...]
/frameworks/native/libs/vr/libpdx/
H A Dclient.cpp28 error_ = -status.error();
29 ret.SetError(status.error());
51 bool Client::NeedToDisconnectChannel(int error) const {
52 return error == ESHUTDOWN && auto_reconnect_enabled_;
55 void Client::CheckDisconnect(int error) { argument
56 if (NeedToDisconnectChannel(error))
57 Close(error);
70 error_ = -status.error();
82 int Client::error() const { return error_; } function in class:android::pdx::Client
109 void Client::Close(int error) { argument
274 CheckDisconnect(int error) argument
[all...]
H A Dclient_tests.cpp130 void SetOnConnectError(int error) { on_connect_error_ = error; } argument
159 EXPECT_EQ(-EACCES, failed_client1.error());
163 EXPECT_EQ(-EACCES, failed_client2.error());
172 EXPECT_EQ(0, client_->error());
175 EXPECT_EQ(-EINVAL, client_->error());
192 EXPECT_EQ(EIO, status.error());
235 EXPECT_EQ(EIO, status.error());
266 EXPECT_EQ(EACCES, status.error());
299 EXPECT_EQ(EACCES, status.error());
[all...]
H A Dservice.cpp271 Status<void> Message::ReplyError(unsigned int error) { argument
276 svc->endpoint()->MessageReply(this, -static_cast<int>(error));
495 if (status.error() == ENOENT)
547 name_.c_str(), strerror(ret.error()));
666 // Don't block the sender indefinitely in this error case.
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Dargument_encoder.h98 // ErrorType error = decoder.DecodeReturn(&return_value);
113 ArgsTupleType DecodeArguments(ErrorType* error) { argument
115 *error = Deserialize(&value, reader_);
134 ArgsTupleType DecodeArguments(ErrorType* error) { argument
136 *error = Deserialize(&value, reader_);
H A Dremote_method.h120 // Returns an error code from a remote method to the client. May be called
163 RemoteMethodError(message, return_value.error());
167 // value or error within the Status<T>.
173 RemoteMethodError(message, return_value.error());
190 RemoteMethodError(message, read_status.error());
196 ErrorType error; local
198 auto arguments = decoder.DecodeArguments(&error);
199 if (error) {
226 RemoteMethodError(message, read_status.error());
232 ErrorType error; local
272 ErrorType error; local
365 rpc::ErrorType error = local
425 rpc::ErrorType error = local
[all...]
/frameworks/native/libs/vr/libpdx/private/pdx/
H A Dstatus.h11 // This is a helper class for constructing Status<T> with an error code.
14 ErrorStatus(int error) : error_{error} {} argument
15 int error() const { return error_; } function in struct:android::pdx::ErrorStatus
24 // or error code to the caller.
37 // Constructor for storing an error code inside the Status object.
39 : error_{error_status.error()} {}
60 // Change the value/error code of the status object directly.
65 void SetError(int error) { argument
66 error_ = error;
104 int error() const { return std::max(error_, 0); } function in class:android::pdx::Status
141 SetError(int error) argument
155 int error() const { return std::max(error_, 0); } function in class:android::pdx::Status
[all...]
/frameworks/native/libs/vr/libpdx_default_transport/private/pdx/default_transport/
H A Dservice_utility.h44 ServiceUtility(const std::string& endpoint_path, int* error = nullptr)
46 if (error)
47 *error = Client::error();
60 int error; local
61 auto utility = ServiceUtility::Create(fpath, &error);
63 if (error != -ECONNREFUSED) {
65 strerror(-error));
67 return kIgnoreErrors ? 0 : error;
76 return kIgnoreErrors ? 0 : -status.error();
[all...]

Completed in 275 milliseconds

1234567891011>>