Searched refs:ret (Results 1 - 25 of 544) sorted by relevance

1234567891011>>

/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/
H A Dparcelable_composer_layer.cpp19 status_t ret = parcel->writeUint64(layer_.id); local
20 if (ret != OK) return ret;
22 ret = parcel->write(*layer_.buffer);
23 if (ret != OK) return ret;
25 ret = parcel->writeBool(layer_.fence->isValid());
26 if (ret != OK) return ret;
29 ret
117 status_t ret = parcel->readUint64(&layer_.id); local
[all...]
H A Dparcelable_composer_frame.cpp19 status_t ret = parcel->writeUint64(frame_.display_id); local
20 if (ret != OK) return ret;
22 ret = parcel->writeInt32(frame_.display_width);
23 if (ret != OK) return ret;
25 ret = parcel->writeInt32(frame_.display_height);
26 if (ret != OK) return ret;
28 ret
61 status_t ret = parcel->readUint64(&frame_.display_id); local
[all...]
H A Dparcelable_unique_fd.cpp16 status_t ret = parcel->writeBool(fence_.get() >= 0); local
17 if (ret != OK) return ret;
20 ret = parcel->writeUniqueFileDescriptor(fence_);
22 return ret;
27 status_t ret = parcel->readBool(&has_fence); local
28 if (ret != OK) return ret;
31 ret = parcel->readUniqueFileDescriptor(&fence_);
33 return ret;
[all...]
/frameworks/av/media/mtp/
H A DMtpResponsePacket.cpp42 int ret = h->write(mBuffer, mPacketSize); local
43 return (ret < 0 ? ret : 0);
51 int ret = transfer(request); local
52 if (ret >= 0)
53 mPacketSize = ret;
56 return ret;
H A DMtpRequestPacket.cpp41 int ret = h->read(mBuffer, mBufferSize); local
42 if (ret < 0) {
44 return ret;
48 const size_t read_size = static_cast<size_t>(ret);
56 ret = -1;
58 return ret;
/frameworks/av/media/libaudiohal/
H A DConversionHelperHidl.h40 status_t processReturn(const char* funcName, const Return<R>& ret, T *retval) { argument
41 if (ret.isOk()) {
43 *retval = static_cast<T>(static_cast<R>(ret));
46 return processReturn(funcName, ret);
50 status_t processReturn(const char* funcName, const Return<T>& ret) { argument
51 if (!ret.isOk()) {
52 emitError(funcName, ret.description().c_str());
54 return ret.isOk() ? OK : FAILED_TRANSACTION;
57 status_t processReturn(const char* funcName, const Return<hardware::audio::V2_0::Result>& ret) { argument
58 if (!ret
65 processReturn( const char* funcName, const Return<T>& ret, hardware::audio::V2_0::Result retval) argument
[all...]
/frameworks/rs/
H A DrsDriverLoader.cpp52 bool ret = true; local
54 ret &= fn(RS_HAL_CORE_SHUTDOWN, (void **)&rsc->mHal.funcs.shutdownDriver);
55 ret &= fn(RS_HAL_CORE_SET_PRIORITY, (void **)&rsc->mHal.funcs.setPriority);
56 ret &= fn(RS_HAL_CORE_ALLOC_RUNTIME_MEM, (void **)&rsc->mHal.funcs.allocRuntimeMem);
57 ret &= fn(RS_HAL_CORE_FREE_RUNTIME_MEM, (void **)&rsc->mHal.funcs.freeRuntimeMem);
58 ret &= fn(RS_HAL_CORE_FINISH, (void **)&rsc->mHal.funcs.finish);
60 ret &= fn(RS_HAL_SCRIPT_INIT, (void **)&rsc->mHal.funcs.script.init);
61 ret &= fn(RS_HAL_SCRIPT_INIT_INTRINSIC, (void **)&rsc->mHal.funcs.script.initIntrinsic);
62 ret &= fn(RS_HAL_SCRIPT_INVOKE_FUNCTION, (void **)&rsc->mHal.funcs.script.invokeFunction);
63 ret
[all...]
H A DrsGrallocConsumer.cpp45 media_status_t ret = AImageReader_new( local
48 if (ret != AMEDIA_OK || mImgReader == nullptr) {
49 ALOGE("Error creating image reader. ret %d", ret);
52 ret = AImageReader_getWindow(mImgReader, &mNativeWindow);
53 if (ret != AMEDIA_OK || mNativeWindow == nullptr) {
54 ALOGE("Error creating native window. ret %d", ret);
58 ret = AImageReader_setImageListener(mImgReader, &mReaderCb);
88 media_status_t ret; local
232 media_status_t ret; local
267 media_status_t ret; local
[all...]
H A DrsFifoSocket.cpp39 int ret = socketpair(AF_UNIX, SOCK_STREAM, 0, sv); local
40 return (ret == 0);
57 size_t ret = ::send(sv[0], data, bytes, 0); local
58 rsAssert(ret == bytes);
59 if (ret != bytes) {
60 ALOGE("writeAsync %p %zu ret %zu", data, bytes, ret);
71 size_t ret = ::recv(sv[0], retData, retBytes, MSG_WAITALL); local
72 //ALOGE("writeWaitReturn %i", ret);
73 rsAssert(ret
82 size_t ret = ::recv(sv[1], data, bytes, MSG_WAITALL); local
[all...]
/frameworks/base/core/java/android/os/
H A DAsyncResult.java38 AsyncResult ret;
40 ret = new AsyncResult (m.obj, r, ex);
42 m.obj = ret;
44 return ret;
51 AsyncResult ret;
53 ret = new AsyncResult (m.obj, null, null);
55 m.obj = ret;
57 return ret;
/frameworks/av/media/libmedia/
H A Dmediarecorder.cpp48 status_t ret = mMediaRecorder->setCamera(camera, proxy); local
49 if (OK != ret) {
50 ALOGV("setCamera failed: %d", ret);
52 return ret;
54 return ret;
73 status_t ret = mMediaRecorder->setPreviewSurface(surface); local
74 if (OK != ret) {
75 ALOGV("setPreviewSurface failed: %d", ret);
77 return ret;
79 return ret;
94 status_t ret = mMediaRecorder->init(); local
125 status_t ret = init(); local
136 status_t ret = mMediaRecorder->setVideoSource(vs); local
156 status_t ret = init(); local
170 status_t ret = mMediaRecorder->setAudioSource(as); local
199 status_t ret = mMediaRecorder->setOutputFormat(of); local
229 status_t ret = mMediaRecorder->setVideoEncoder(ve); local
260 status_t ret = mMediaRecorder->setAudioEncoder(ae); local
302 status_t ret = mMediaRecorder->setOutputFile(fd); local
336 status_t ret = mMediaRecorder->setNextOutputFile(fd); local
359 status_t ret = mMediaRecorder->setVideoSize(width, height); local
420 status_t ret = mMediaRecorder->setVideoFrameRate(frames_per_second); local
445 status_t ret = mMediaRecorder->setParameters(params); local
485 status_t ret = mMediaRecorder->prepare(); local
507 status_t ret = mMediaRecorder->getMaxAmplitude(max); local
520 status_t ret = mMediaRecorder->getMetrics(reply); local
539 status_t ret = mMediaRecorder->start(); local
561 status_t ret = mMediaRecorder->stop(); local
586 status_t ret = UNKNOWN_ERROR; local
625 status_t ret = mMediaRecorder->pause(); local
647 status_t ret = mMediaRecorder->resume(); local
664 status_t ret = mMediaRecorder->close(); local
678 status_t ret = mMediaRecorder->reset(); local
[all...]
H A DIResourceManagerClient.cpp43 bool ret = false; local
46 ret = (bool)reply.readInt32();
48 return ret;
55 String8 ret; local
58 ret = reply.readString8();
60 return ret;
75 bool ret = reclaimResource(); local
76 reply->writeInt32(ret);
81 String8 ret = getName(); local
82 reply->writeString8(ret);
[all...]
/frameworks/native/libs/vr/libvrflinger/
H A Dacquired_buffer.cpp18 const int ret = buffer->Acquire(&fence); local
21 *error = ret;
23 if (ret < 0) {
25 strerror(-ret));
56 const int ret = sync_wait(acquire_fence_.Get(), 0); local
57 ALOGD_IF(TRACE || (ret < 0 && errno != ETIME),
60 acquire_fence_.Get(), ret, ret < 0 ? errno : 0);
61 if (ret == 0) {
66 return ret
84 const int ret = buffer_->ReleaseAsync(); local
[all...]
/frameworks/av/media/img_utils/src/
H A DInput.cpp35 ssize_t ret = read(skipBuf, 0, amt); local
36 if (ret < 0) {
37 if(ret == NOT_ENOUGH_DATA) {
48 return ret;
50 remaining -= ret;
/frameworks/native/services/vr/bufferhubd/
H A Dbufferhubd.cpp12 int ret = -1; local
26 ret = dvrSetSchedulerClass(0, "graphics");
27 CHECK_ERROR(ret < 0, error, "Failed to set thread priority");
31 ret = dispatcher->EnterDispatchLoop();
32 CHECK_ERROR(ret < 0, error, "Dispatch loop exited because: %s\n",
33 strerror(-ret));
36 return -ret;
/frameworks/base/cmds/interrupter/
H A Dinterrupter.h29 #define CALL_FUNCTION_1(sym, ret, type1) \
30 ret (*real_##sym)(type1) = NULL; \
31 ret sym(type1 arg1) { \
36 #define CALL_FUNCTION_2(sym, ret, type1, type2) \
37 ret (*real_##sym)(type1, type2) = NULL; \
38 ret sym(type1 arg1, type2 arg2) { \
43 #define CALL_FUNCTION_3(sym, ret, type1, type2, type3) \
44 ret (*real_##sym)(type1, type2, type3) = NULL; \
45 ret sym(type1 arg1, type2 arg2, type3 arg3) { \
50 #define CALL_FUNCTION_4(sym, ret, type
[all...]
/frameworks/native/libs/binder/tests/
H A DbinderLibTest.cpp65 int ret; local
80 ret = pipe(pipefd);
81 if (ret < 0)
82 return ret;
99 ret = read(pipefd[0], &status, sizeof(status));
100 //printf("pipe read returned %d, status %d\n", ret, status);
102 if (ret == sizeof(status)) {
103 ret = status;
106 if (ret >= 0) {
107 ret
137 status_t ret; local
172 int ret; local
190 int ret; local
256 int ret; local
323 status_t ret; local
332 status_t ret; local
341 status_t ret; local
352 status_t ret; local
367 status_t ret; local
410 status_t ret; local
474 status_t ret; local
494 status_t ret; local
515 status_t ret; local
538 status_t ret; local
564 status_t ret; local
610 int ret; local
660 int ret; local
676 status_t ret; local
691 status_t ret; local
778 int ret; local
874 int ret; local
896 int ret; local
919 int ret; local
976 status_t ret; local
1004 int ret; local
[all...]
/frameworks/native/services/vr/performanced/
H A Dmain.cpp25 int ret = -1; local
39 ret = prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
40 CHECK_ERROR(ret < 0, error, "Failed to set KEEPCAPS: %s", strerror(errno));
43 ret = setresgid(AID_SYSTEM, AID_SYSTEM, AID_SYSTEM);
44 CHECK_ERROR(ret < 0, error, "Failed to set GID: %s", strerror(errno));
45 ret = setresuid(AID_SYSTEM, AID_SYSTEM, AID_SYSTEM);
46 CHECK_ERROR(ret < 0, error, "Failed to set UID: %s", strerror(errno));
57 ret = capset(&capheader, capdata);
58 CHECK_ERROR(ret < 0, error, "Could not set capabilities: %s",
70 ret
[all...]
/frameworks/av/media/libnbaio/
H A DNBAIO.cpp54 NBAIO_Format ret; local
55 ret.mSampleRate = sampleRate;
56 ret.mChannelCount = channelCount;
57 ret.mFormat = format;
58 ret.mFrameSize = audio_is_linear_pcm(format) ?
60 return ret;
83 ssize_t ret = via(user, buffer, count); local
84 if (ret > 0) {
85 ALOG_ASSERT((size_t) ret <= count);
86 size_t maxRet = ret;
119 ssize_t ret = read(buffer, count); local
[all...]
/frameworks/opt/net/wifi/libwifi_hal/
H A Dwifi_hal_common.cpp56 int ret; local
61 ret = init_module(module, size, args);
65 return ret;
69 int ret = -1; local
73 ret = delete_module(modname, O_NONBLOCK | O_EXCL);
74 if (ret < 0 && errno == EAGAIN)
80 if (ret != 0)
82 return ret;
89 int ret = 0; local
100 ret
209 int ret = 0; local
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DDriverCall.java57 DriverCall ret = new DriverCall();
64 ret.index = p.nextInt();
65 ret.isMT = p.nextBoolean();
66 ret.state = stateFromCLCC(p.nextInt());
68 ret.isVoice = (0 == p.nextInt());
69 ret.isMpty = p.nextBoolean();
72 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED;
77 ret.number = PhoneNumberUtils.extractNetworkPortionAlt(p.nextString());
79 if (ret.number.length() == 0) {
80 ret
[all...]
H A DSmsResponse.java43 String ret = "{ mMessageRef = " + mMessageRef
47 return ret;
/frameworks/base/services/core/jni/
H A Dcom_android_server_PersistentDataBlockService.cpp38 int ret; local
40 ret = ioctl(fd, BLKGETSIZE64, &size);
42 if (ret)
51 int ret; local
60 ret = ioctl(fd, BLKSECDISCARD, &range);
61 if (ret < 0) {
65 ret = ioctl(fd, BLKDISCARD, &range);
66 if (ret < 0) {
76 return ret;
101 const int ret local
[all...]
/frameworks/base/libs/hwui/debug/
H A DDefaultGlesDriver.h27 #define GL_ENTRY(ret, api, ...) virtual ret api##_(__VA_ARGS__) override;
H A DFatalBaseDriver.h30 #define GL_ENTRY(ret, api, ...) virtual ret api##_(__VA_ARGS__) override;

Completed in 789 milliseconds

1234567891011>>