Searched refs:ret (Results 1 - 25 of 632) 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/libeffects/factory/test/
H A DDumpConfig.cpp43 ssize_t ret = EffectLoadXmlEffectConfig(path); local
44 if (ret < 0) {
48 if (ret > 0) {
50 "see logcat for detail.\n", (size_t)ret);
55 auto ret = EffectLoadEffectConfig(); local
56 if (ret < 0) {
/frameworks/av/media/libaudiohal/2.0/
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/base/packages/SettingsLib/src/com/android/settingslib/display/
H A DBrightnessUtils.java55 final float ret;
57 ret = MathUtils.sq(normalizedVal / R);
59 ret = MathUtils.exp((normalizedVal - C) / A) + B;
64 return Math.round(MathUtils.lerp(min, max, ret / 12));
92 final float ret;
94 ret = MathUtils.sqrt(normalizedVal) * R;
96 ret = A * MathUtils.log(normalizedVal - B) + C;
99 return Math.round(MathUtils.lerp(0, GAMMA_SPACE_MAX, 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));
58 const int ret = sync_wait(acquire_fence_.Get(), 0); local
59 ALOGD_IF(TRACE || (ret < 0 && errno != ETIME),
62 buffer_->id(), acquire_fence_.Get(), ret, ret < 0 ? errno : 0);
63 if (ret == 0) {
68 return ret
86 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.cpp13 int ret = -1; local
22 ret = getrlimit64(RLIMIT_NOFILE, &rlim);
23 LOG_ALWAYS_FATAL_IF(ret != 0, "Failed to get nofile limit.");
27 ret = setrlimit64(RLIMIT_NOFILE, &rlim);
28 ALOGE_IF(ret < 0, "Failed to set nofile limit, error=%s", strerror(errno));
44 ret = dvrSetSchedulerClass(0, "graphics");
45 CHECK_ERROR(ret < 0, error, "Failed to set thread priority");
49 ret = dispatcher->EnterDispatchLoop();
50 CHECK_ERROR(ret < 0, error, "Dispatch loop exited because: %s\n",
51 strerror(-ret));
[all...]
/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/av/media/libaudioclient/tests/
H A Dtest_create_utils.cpp27 int ret = 0; local
31 ret = -1;
35 ret = -1;
42 return ret;
80 int ret = 0; local
94 ret = 1;
97 ret = 1;
105 ret = 1;
108 ret = 1;
117 if (ret !
[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/libaudiohal/4.0/
H A DConversionHelperHidl.h45 status_t processReturn(const char* funcName, const Return<R>& ret, T *retval) { argument
46 if (ret.isOk()) {
48 *retval = static_cast<T>(static_cast<R>(ret));
51 return processReturn(funcName, ret);
55 status_t processReturn(const char* funcName, const Return<T>& ret) { argument
56 if (!ret.isOk()) {
57 emitError(funcName, ret.description().c_str());
59 return ret.isOk() ? OK : FAILED_TRANSACTION;
62 status_t processReturn(const char* funcName, const Return<hardware::audio::V4_0::Result>& ret) { argument
63 if (!ret
70 processReturn( const char* funcName, const Return<T>& ret, hardware::audio::V4_0::Result retval) argument
[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/ml/nn/runtime/
H A DVersionedIDevice.cpp35 Return<void> ret = mDeviceV1_1->getCapabilities_1_1( local
39 if (!ret.isOk()) {
40 LOG(ERROR) << "getCapabilities_1_1 failure: " << ret.description();
44 Return<void> ret = mDeviceV1_0->getCapabilities( local
48 if (!ret.isOk()) {
49 LOG(ERROR) << "getCapabilities failure: " << ret.description();
65 Return<void> ret = mDeviceV1_1->getSupportedOperations_1_1( local
69 if (!ret.isOk()) {
70 LOG(ERROR) << "getSupportedOperations_1_1 failure: " << ret.description();
74 Return<void> ret local
95 Return<ErrorStatus> ret = mDeviceV1_1->prepareModel_1_1(model, preference, callback); local
102 Return<ErrorStatus> ret = mDeviceV1_0->prepareModel(convertToV1_0(model), callback); local
122 Return<DeviceStatus> ret = mDeviceV1_0->getStatus(); local
[all...]
/frameworks/native/libs/binder/tests/
H A DbinderLibTest.cpp77 int ret; local
94 ret = pipe(pipefd);
95 if (ret < 0)
96 return ret;
114 ret = read(pipefd[0], &status, sizeof(status));
115 //printf("pipe read returned %d, status %d\n", ret, status);
117 if (ret == sizeof(status)) {
118 ret = status;
121 if (ret >= 0) {
122 ret
152 status_t ret; local
187 int ret; local
216 int ret; local
282 int ret; local
344 int ret; local
383 status_t ret; local
392 status_t ret; local
401 status_t ret; local
412 status_t ret; local
427 status_t ret; local
470 status_t ret; local
534 status_t ret; local
554 status_t ret; local
575 status_t ret; local
598 status_t ret; local
624 status_t ret; local
671 status_t ret; local
729 int ret; local
779 int ret; local
795 status_t ret; local
810 status_t ret; local
851 status_t ret; local
871 status_t ret; local
964 int ret; local
1097 int ret; local
1119 int ret; local
1142 int ret; local
1201 status_t ret; local
1282 int ret; local
[all...]
/frameworks/av/media/utils/
H A DSchedulingPolicyService.cpp34 int ret; local
50 ret = sps->requestPriority(pid, tid, prio, isForApp, asynchronous);
51 if (ret != DEAD_OBJECT) {
59 return ret;
64 int ret; local
78 ret = sps->requestCpusetBoost(enable, client);
79 if (ret != DEAD_OBJECT) {
80 return ret;
86 return ret;

Completed in 504 milliseconds

1234567891011>>