Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 738) sorted by relevance

12345678910>>...30

/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/
Dparcelable_composer_layer.cpp19 status_t ret = parcel->writeUint64(layer_.id); in writeToParcel() local
20 if (ret != OK) return ret; in writeToParcel()
22 ret = parcel->write(*layer_.buffer); in writeToParcel()
23 if (ret != OK) return ret; in writeToParcel()
25 ret = parcel->writeBool(layer_.fence->isValid()); in writeToParcel()
26 if (ret != OK) return ret; in writeToParcel()
29 ret = parcel->writeFileDescriptor(layer_.fence->dup(), true); in writeToParcel()
30 if (ret != OK) return ret; in writeToParcel()
33 ret = parcel->writeInt32(layer_.display_frame.left); in writeToParcel()
34 if (ret != OK) return ret; in writeToParcel()
[all …]
Dparcelable_composer_frame.cpp19 status_t ret = parcel->writeUint64(frame_.display_id); in writeToParcel() local
20 if (ret != OK) return ret; in writeToParcel()
22 ret = parcel->writeInt32(frame_.display_width); in writeToParcel()
23 if (ret != OK) return ret; in writeToParcel()
25 ret = parcel->writeInt32(frame_.display_height); in writeToParcel()
26 if (ret != OK) return ret; in writeToParcel()
28 ret = parcel->writeBool(frame_.removed); in writeToParcel()
29 if (ret != OK) return ret; in writeToParcel()
31 ret = parcel->writeUint32(static_cast<uint32_t>(frame_.active_config)); in writeToParcel()
32 if (ret != OK) return ret; in writeToParcel()
[all …]
/frameworks/av/media/libmedia/
Dmediarecorder.cpp49 status_t ret = mMediaRecorder->setCamera(camera, proxy); in setCamera() local
50 if (OK != ret) { in setCamera()
51 ALOGV("setCamera failed: %d", ret); in setCamera()
53 return ret; in setCamera()
55 return ret; in setCamera()
74 status_t ret = mMediaRecorder->setPreviewSurface(surface); in setPreviewSurface() local
75 if (OK != ret) { in setPreviewSurface()
76 ALOGV("setPreviewSurface failed: %d", ret); in setPreviewSurface()
78 return ret; in setPreviewSurface()
80 return ret; in setPreviewSurface()
[all …]
/frameworks/rs/
DrsDriverLoader.cpp52 bool ret = true; in LoadHalTable() local
54 ret &= fn(RS_HAL_CORE_SHUTDOWN, (void **)&rsc->mHal.funcs.shutdownDriver); in LoadHalTable()
55 ret &= fn(RS_HAL_CORE_SET_PRIORITY, (void **)&rsc->mHal.funcs.setPriority); in LoadHalTable()
56 ret &= fn(RS_HAL_CORE_ALLOC_RUNTIME_MEM, (void **)&rsc->mHal.funcs.allocRuntimeMem); in LoadHalTable()
57 ret &= fn(RS_HAL_CORE_FREE_RUNTIME_MEM, (void **)&rsc->mHal.funcs.freeRuntimeMem); in LoadHalTable()
58 ret &= fn(RS_HAL_CORE_FINISH, (void **)&rsc->mHal.funcs.finish); in LoadHalTable()
60 ret &= fn(RS_HAL_SCRIPT_INIT, (void **)&rsc->mHal.funcs.script.init); in LoadHalTable()
61 ret &= fn(RS_HAL_SCRIPT_INIT_INTRINSIC, (void **)&rsc->mHal.funcs.script.initIntrinsic); in LoadHalTable()
62 ret &= fn(RS_HAL_SCRIPT_INVOKE_FUNCTION, (void **)&rsc->mHal.funcs.script.invokeFunction); in LoadHalTable()
63 ret &= fn(RS_HAL_SCRIPT_INVOKE_ROOT, (void **)&rsc->mHal.funcs.script.invokeRoot); in LoadHalTable()
[all …]
DrsGrallocConsumer.cpp48 media_status_t ret = AImageReader_newWithUsage( in GrallocConsumer() local
51 if (ret != AMEDIA_OK || mImgReader == nullptr) { in GrallocConsumer()
52 ALOGE("Error creating image reader. ret %d", ret); in GrallocConsumer()
55 ret = AImageReader_getWindow(mImgReader, &mNativeWindow); in GrallocConsumer()
56 if (ret != AMEDIA_OK || mNativeWindow == nullptr) { in GrallocConsumer()
57 ALOGE("Error creating native window. ret %d", ret); in GrallocConsumer()
61 ret = AImageReader_setImageListener(mImgReader, &mReaderCb); in GrallocConsumer()
91 media_status_t ret; in lockNextBuffer() local
99 ret = unlockBuffer(idx); in lockNextBuffer()
100 if (ret != AMEDIA_OK) { in lockNextBuffer()
[all …]
/frameworks/native/libs/vr/libdvr/tests/
Ddvr_buffer_queue-test.cpp71 int ret = api_.WriteBufferQueueCreate( in TEST_F() local
74 ASSERT_EQ(0, ret); in TEST_F()
81 int ret = api_.WriteBufferQueueCreate( in TEST_F() local
84 ASSERT_EQ(0, ret); in TEST_F()
93 int ret = api_.WriteBufferQueueCreate( in TEST_F() local
96 ASSERT_EQ(0, ret); in TEST_F()
99 ret = api_.WriteBufferQueueCreateReadQueue(write_queue_, &read_queue); in TEST_F()
101 ASSERT_EQ(0, ret); in TEST_F()
108 int ret = api_.WriteBufferQueueCreate( in TEST_F() local
111 ASSERT_EQ(0, ret); in TEST_F()
[all …]
Ddvr_display-test.cpp21 int ret = api_.GetNativeDisplayMetrics(sizeof(display_metrics_), in SetUp() local
23 ASSERT_EQ(ret, 0) << "Failed to get display metrics."; in SetUp()
82 int ret = in TEST_F() local
85 ASSERT_EQ(ret, 0) << "Failed to create direct surface."; in TEST_F()
91 ret = api_.SurfaceCreateWriteBufferQueue( in TEST_F()
94 EXPECT_EQ(0, ret) << "Failed to create buffer queue."; in TEST_F()
101 ret = api_.WriteBufferQueueGainBuffer(write_queue_, kTimeoutMs, &write_buffer, in TEST_F()
103 EXPECT_EQ(0, ret) << "Failed to get the buffer."; in TEST_F()
113 ret = api_.WriteBufferQueuePostBuffer(write_queue_, write_buffer, &out_meta, in TEST_F()
115 EXPECT_EQ(0, ret) << "Failed to post the buffer."; in TEST_F()
[all …]
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp85 int ret; in start_server_process() local
102 ret = pipe(pipefd); in start_server_process()
103 if (ret < 0) in start_server_process()
104 return ret; in start_server_process()
123 ret = read(pipefd[0], &status, sizeof(status)); in start_server_process()
126 if (ret == sizeof(status)) { in start_server_process()
127 ret = status; in start_server_process()
130 if (ret >= 0) { in start_server_process()
131 ret = NO_INIT; in start_server_process()
134 if (ret < 0) { in start_server_process()
[all …]
/frameworks/av/camera/ndk/ndk_vendor/tests/
DAImageReaderVendorTest.cpp80 int ret; in initCamera() local
83 ret = ACameraManager_openCamera(mCameraManager, mCameraId, &mDeviceCb, &mDevice); in initCamera()
84 if (ret != AMEDIA_OK || mDevice == nullptr) { in initCamera()
85 ALOGE("Failed to open camera, ret=%d, mDevice=%p.", ret, mDevice); in initCamera()
86 return ret; in initCamera()
90 ret = ACaptureSessionOutputContainer_create(&mOutputs); in initCamera()
91 if (ret != AMEDIA_OK) { in initCamera()
92 ALOGE("ACaptureSessionOutputContainer_create failed, ret=%d", ret); in initCamera()
93 return ret; in initCamera()
95 ret = ACaptureSessionOutput_create(mImgReaderAnw, &mImgReaderOutput); in initCamera()
[all …]
/frameworks/native/libs/input/
DInputWindow.cpp107 InputWindowInfo ret; in read() local
110 return ret; in read()
115 return ret; in read()
118 ret.token = token; in read()
119 ret.name = from.readString8().c_str(); in read()
120 ret.layoutParamsFlags = from.readInt32(); in read()
121 ret.layoutParamsType = from.readInt32(); in read()
122 ret.dispatchingTimeout = from.readInt64(); in read()
123 ret.frameLeft = from.readInt32(); in read()
124 ret.frameTop = from.readInt32(); in read()
[all …]
/frameworks/av/media/libeffects/factory/
DEffectsFactory.c67 int ret = init(); in Effect_Process() local
68 if (ret < 0) { in Effect_Process()
69 return ret; in Effect_Process()
80 ret = (*fx->subItfe)->process(fx->subItfe, inBuffer, outBuffer); in Effect_Process()
82 return ret; in Effect_Process()
92 int ret = init(); in Effect_Command() local
93 if (ret < 0) { in Effect_Command()
94 return ret; in Effect_Command()
105 ret = (*fx->subItfe)->command(fx->subItfe, cmdCode, cmdSize, pCmdData, replySize, pReplyData); in Effect_Command()
107 return ret; in Effect_Command()
[all …]
/frameworks/ml/nn/driver/sample/
DSampleDriverUtils.cpp30 const auto ret = callback->notify(convertToV1_0(status), preparedModel); in notify() local
31 if (!ret.isOk()) { in notify()
32 LOG(ERROR) << "Error when calling IPreparedModelCallback::notify: " << ret.description(); in notify()
38 const auto ret = callback->notify_1_2(convertToV1_0(status), preparedModel); in notify() local
39 if (!ret.isOk()) { in notify()
41 << ret.description(); in notify()
47 const auto ret = callback->notify_1_3(status, preparedModel); in notify() local
48 if (!ret.isOk()) { in notify()
50 << ret.description(); in notify()
56 const auto ret = callback->notify(convertToV1_0(status)); in notify() local
[all …]
/frameworks/av/media/libnbaio/
DNBAIO.cpp54 NBAIO_Format ret; in Format_from_SR_C() local
55 ret.mSampleRate = sampleRate; in Format_from_SR_C()
56 ret.mChannelCount = channelCount; in Format_from_SR_C()
57 ret.mFormat = format; in Format_from_SR_C()
58 ret.mFrameSize = audio_is_linear_pcm(format) ? in Format_from_SR_C()
60 return ret; in Format_from_SR_C()
83 ssize_t ret = via(user, buffer, count); in writeVia() local
84 if (ret > 0) { in writeVia()
85 ALOG_ASSERT((size_t) ret <= count); in writeVia()
86 size_t maxRet = ret; in writeVia()
[all …]
/frameworks/hardware/interfaces/stats/1.0/vts/functional/
DVtsHalStatsV1_0TargetTest.cpp55 Return<void> ret; in TEST_P() local
56 ret = client->reportSpeakerImpedance(impedance); in TEST_P()
57 ASSERT_TRUE(ret.isOk()); in TEST_P()
65 Return<void> ret; in TEST_P() local
67 ret = client->reportHardwareFailed(failed); in TEST_P()
68 ASSERT_TRUE(ret.isOk()); in TEST_P()
77 Return<void> ret; in TEST_P() local
78 ret = client->reportChargeCycles(cycles); in TEST_P()
79 ASSERT_TRUE(ret.isOk()); in TEST_P()
91 Return<void> ret; in TEST_P() local
[all …]
/frameworks/av/media/libaudiohal/impl/
DConversionHelperHidl.h44 status_t processReturn(const char* funcName, const Return<R>& ret, T *retval) { in processReturn() argument
45 if (ret.isOk()) { in processReturn()
47 *retval = static_cast<T>(static_cast<R>(ret)); in processReturn()
50 return processReturn(funcName, ret); in processReturn()
54 status_t processReturn(const char* funcName, const Return<T>& ret) { in processReturn() argument
55 if (!ret.isOk()) { in processReturn()
56 emitError(funcName, ret.description().c_str()); in processReturn()
58 return ret.isOk() ? OK : FAILED_TRANSACTION; in processReturn()
61 status_t processReturn(const char* funcName, const Return<CoreResult>& ret) { in processReturn() argument
62 if (!ret.isOk()) { in processReturn()
[all …]
/frameworks/base/cmds/interrupter/
Dinterrupter.h29 #define CALL_FUNCTION_1(sym, ret, type1) \ argument
30 ret (*real_##sym)(type1) = NULL; \
31 ret sym(type1 arg1) { \
36 #define CALL_FUNCTION_2(sym, ret, type1, type2) \ argument
37 ret (*real_##sym)(type1, type2) = NULL; \
38 ret sym(type1 arg1, type2 arg2) { \
43 #define CALL_FUNCTION_3(sym, ret, type1, type2, type3) \ argument
44 ret (*real_##sym)(type1, type2, type3) = NULL; \
45 ret sym(type1 arg1, type2 arg2, type3 arg3) { \
50 #define CALL_FUNCTION_4(sym, ret, type1, type2, type3, type4) \ argument
[all …]
/frameworks/rs/script_api/
Drs_math.spec171 ret: u#2#1
185 ret: #2#1
199 ret: #2#1
208 ret: #2#1
222 ret: #2#1
231 ret: #2#1
247 ret: #2#1
256 ret: #2#1
270 ret: #2#1
279 ret: #2#1
[all …]
/frameworks/native/libs/vr/libvrflinger/
Dacquired_buffer.cpp18 const int ret = buffer->Acquire(&fence); in AcquiredBuffer() local
21 *error = ret; in AcquiredBuffer()
23 if (ret < 0) { in AcquiredBuffer()
25 strerror(-ret)); in AcquiredBuffer()
58 const int ret = sync_wait(acquire_fence_.Get(), 0); in IsAvailable() local
59 ALOGD_IF(TRACE || (ret < 0 && errno != ETIME), in IsAvailable()
62 buffer_->id(), acquire_fence_.Get(), ret, ret < 0 ? errno : 0); in IsAvailable()
63 if (ret == 0) { in IsAvailable()
68 return ret == 0; in IsAvailable()
86 const int ret = buffer_->ReleaseAsync(); in Release() local
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/benchmarks/
Dbuffer_transport_benchmark.cpp85 status_t ret = 0; in onFrameAvailable() local
88 ret = buffer_item_consumer_->acquireBuffer(&buffer, /*presentWhen=*/0, in onFrameAvailable()
92 if (ret != OK) { in onFrameAvailable()
99 ret = buffer_item_consumer_->releaseBuffer(buffer); in onFrameAvailable()
102 if (ret != OK) { in onFrameAvailable()
214 int ret = dvr_get_api(&api_, sizeof(api_), /*version=*/1); in DvrApi() local
216 CHECK(ret == 0); in DvrApi()
248 int ret = epoll_fd_.Create(); in Start() local
249 if (ret < 0) { in Start()
250 LOG(ERROR) << "Failed to create epoll fd: %s", strerror(-ret); in Start()
[all …]
/frameworks/native/libs/vr/libpdx/
Dclient.cpp22 Status<void> ret; in CheckReconnect() local
28 ret.SetError(status.error()); in CheckReconnect()
29 return ret; in CheckReconnect()
35 ret.SetError(ESHUTDOWN); in CheckReconnect()
42 ret.SetError(-error_); in CheckReconnect()
44 ret.SetValue(); in CheckReconnect()
47 return ret; in CheckReconnect()
143 void Transaction::SendTransaction(int opcode, Status<void>* ret, in SendTransaction() argument
147 *ret = client_.CheckReconnect(); in SendTransaction()
148 if (!*ret) in SendTransaction()
[all …]
/frameworks/native/services/vr/performanced/
Dmain.cpp25 int ret = -1; in main() local
39 ret = prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0); in main()
40 CHECK_ERROR(ret < 0, error, "Failed to set KEEPCAPS: %s", strerror(errno)); in main()
43 ret = setresgid(AID_SYSTEM, AID_SYSTEM, AID_SYSTEM); in main()
44 CHECK_ERROR(ret < 0, error, "Failed to set GID: %s", strerror(errno)); in main()
45 ret = setresuid(AID_SYSTEM, AID_SYSTEM, AID_SYSTEM); in main()
46 CHECK_ERROR(ret < 0, error, "Failed to set UID: %s", strerror(errno)); in main()
57 ret = capset(&capheader, capdata); in main()
58 CHECK_ERROR(ret < 0, error, "Could not set capabilities: %s", in main()
70 ret = dispatcher->EnterDispatchLoop(); in main()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
DIccUtils.java60 StringBuilder ret = new StringBuilder(length*2); in bcdToString() local
67 ret.append((char)('0' + v)); in bcdToString()
73 ret.append((char)('0' + v)); in bcdToString()
76 return ret.toString(); in bcdToString()
139 String ret = bytesToHexString(trans); in bcdPlmnToString() local
142 if (ret.contains("F")) { in bcdPlmnToString()
143 ret = ret.replaceAll("F", ""); in bcdPlmnToString()
145 return ret; in bcdPlmnToString()
167 StringBuilder ret = new StringBuilder(length*2); in bchToString() local
173 ret.append(HEX_CHARS[v]); in bchToString()
[all …]
/frameworks/native/libs/vr/libpdx_uds/
Dipc_helper.cpp56 Status<void> ret; in SendAll() local
62 ret.SetError(errno); in SendAll()
64 ret.GetErrorMessage().c_str()); in SendAll()
70 return ret; in SendAll()
75 Status<void> ret; in SendMsgAll() local
79 ret.SetError(errno); in SendMsgAll()
81 ret.GetErrorMessage().c_str()); in SendMsgAll()
82 return ret; in SendMsgAll()
93 ret = SendAll(sender, socket_fd, chunk_base + offset_within_chunk, in SendMsgAll()
95 if (!ret) in SendMsgAll()
[all …]
/frameworks/ml/nn/runtime/
DVersionedInterfaces.cpp167 const Return<bool> ret = preparedModel->linkToDeath(deathHandler, 0); in makeVersionedIPreparedModel() local
168 if (ret.isDeadObject()) { in makeVersionedIPreparedModel()
173 if (!ret.isOk()) { in makeVersionedIPreparedModel()
176 << ret.description(); in makeVersionedIPreparedModel()
179 if (ret != true) { in makeVersionedIPreparedModel()
227 Return<ErrorStatus> ret = mPreparedModelV1_3->execute_1_3(request, measure, otp, in executeAsynchronously() local
229 if (ret.isDeadObject()) { in executeAsynchronously()
230 LOG(ERROR) << "execute_1_3 failure: " << ret.description(); in executeAsynchronously()
233 if (!ret.isOk()) { in executeAsynchronously()
234 LOG(ERROR) << "execute_1_3 failure: " << ret.description(); in executeAsynchronously()
[all …]
/frameworks/opt/net/wifi/libwifi_hal/
Dwifi_hal_common.cpp56 int ret; in insmod() local
65 ret = syscall(__NR_finit_module, fd, args, 0); in insmod()
68 if (ret < 0) { in insmod()
69 PLOG(ERROR) << "finit_module return: " << ret; in insmod()
72 return ret; in insmod()
76 int ret = -1; in rmmod() local
80 ret = delete_module(modname, O_NONBLOCK | O_EXCL); in rmmod()
81 if (ret < 0 && errno == EAGAIN) in rmmod()
87 if (ret != 0) in rmmod()
89 return ret; in rmmod()
[all …]

12345678910>>...30