Home
last modified time | relevance | path

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

12345678910>>...36

/frameworks/av/media/libmedia/
Dmediarecorder.cpp51 status_t ret = mMediaRecorder->setCamera(camera, proxy); in setCamera() local
52 if (OK != ret) { in setCamera()
53 ALOGV("setCamera failed: %d", ret); in setCamera()
55 return ret; in setCamera()
57 return ret; in setCamera()
76 status_t ret = mMediaRecorder->setPreviewSurface(surface); in setPreviewSurface() local
77 if (OK != ret) { in setPreviewSurface()
78 ALOGV("setPreviewSurface failed: %d", ret); in setPreviewSurface()
80 return ret; in setPreviewSurface()
82 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 …]
DrsFifoSocket.cpp39 int ret = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, sv); in init() local
40 return (ret == 0); in init()
57 size_t ret = ::send(sv[0], data, bytes, 0); in writeAsync() local
58 rsAssert(ret == bytes); in writeAsync()
59 if (ret != bytes) { in writeAsync()
60 ALOGE("writeAsync %p %zu ret %zu", data, bytes, ret); in writeAsync()
71 size_t ret = ::recv(sv[0], retData, retBytes, MSG_WAITALL); in writeWaitReturn() local
73 rsAssert(ret == retBytes); in writeWaitReturn()
82 size_t ret = ::recv(sv[1], data, bytes, MSG_WAITALL); in read() local
83 rsAssert(ret == bytes || mShutdown); 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/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/av/media/libaudiohal/impl/
DConversionHelperHidl.h38 const ::android::hardware::Return<R>& ret, T *retval) { in processReturn()
39 if (ret.isOk()) { in processReturn()
41 *retval = static_cast<T>(static_cast<R>(ret)); in processReturn()
44 return processReturn(funcName, ret); in processReturn()
48 status_t processReturn(const char* funcName, const ::android::hardware::Return<T>& ret) { in processReturn() argument
49 if (!ret.isOk()) { in processReturn()
50 emitError(funcName, ret.description().c_str()); in processReturn()
52 return ret.isOk() ? OK : FAILED_TRANSACTION; in processReturn()
56 const ::android::hardware::Return<HalResult>& ret) { in processReturn()
57 if (!ret.isOk()) { in processReturn()
[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/base/services/tests/mockingservicestests/src/com/android/server/power/
DThermalManagerServiceMockingTest.java109 List<Temperature> ret = mAidlWrapper.getCurrentTemperatures(true, TemperatureType.MODEM); in verifyWrapperStatusOnCallbackError() local
112 assertNotNull(ret); in verifyWrapperStatusOnCallbackError()
118 assertTrue("Got temperature list as " + ret + " with different values compared to " in verifyWrapperStatusOnCallbackError()
119 + expectedRet, expectedRet.containsAll(ret)); in verifyWrapperStatusOnCallbackError()
138 List<Temperature> ret = mAidlWrapper.getCurrentTemperatures(false, TemperatureType.UNKNOWN); in getCurrentTemperatures_aidl() local
146 assertTrue("Got temperature list as " + ret + " with different values compared to " in getCurrentTemperatures_aidl()
147 + expectedRet, expectedRet.containsAll(ret)); in getCurrentTemperatures_aidl()
171 List<Temperature> ret = mAidlWrapper.getCurrentTemperatures(true, TemperatureType.MODEM); in getCurrentTemperatures_withFilter_aidl() local
180 assertTrue("Got temperature list as " + ret + " with different values compared to " in getCurrentTemperatures_withFilter_aidl()
181 + expectedRet, expectedRet.containsAll(ret)); in getCurrentTemperatures_withFilter_aidl()
[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/native/libs/binder/
DUtilsHost.cpp83 CommandResult ret; in execute() local
85 if (!android::base::Pipe(&ret.outPipe, &outWrite)) in execute()
88 if (!android::base::Pipe(&ret.errPipe, &errWrite)) in execute()
95 ret.outPipe.reset(); in execute()
96 ret.errPipe.reset(); in execute()
112 ret.pid = pid; in execute()
129 while (ret.outPipe.ok() || ret.errPipe.ok()) { in execute()
134 if (ret.outPipe.ok()) { in execute()
136 *outPollFd = {.fd = ret.outPipe.get(), .events = POLLIN}; in execute()
138 if (ret.errPipe.ok()) { in execute()
[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/av/services/camera/libcameraservice/aidl/
DAidlCameraDeviceUser.cpp102 UStatus ret = mDeviceRemote->prepare(in_streamId); in prepare() local
103 return fromUStatus(ret); in prepare()
118 UStatus ret = mDeviceRemote->submitRequestList(requests, in submitRequestList() local
120 if (!ret.isOk()) { in submitRequestList()
122 __FUNCTION__, ret.toString8().string()); in submitRequestList()
123 return fromUStatus(ret); in submitRequestList()
131 UStatus ret = mDeviceRemote->cancelRequest(mRequestId, _aidl_return); in cancelRepeatingRequest() local
132 return fromUStatus(ret); in cancelRepeatingRequest()
136 UStatus ret = mDeviceRemote->beginConfigure(); in beginConfigure() local
137 return fromUStatus(ret); in beginConfigure()
[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.java68 StringBuilder ret = new StringBuilder(length*2); in bcdToString() local
75 ret.append((char)('0' + v)); in bcdToString()
81 ret.append((char)('0' + v)); in bcdToString()
84 return ret.toString(); in bcdToString()
147 String ret = bytesToHexString(trans); in bcdPlmnToString() local
150 if (ret.contains("F")) { in bcdPlmnToString()
151 ret = ret.replaceAll("F", ""); in bcdPlmnToString()
153 return ret; in bcdPlmnToString()
175 StringBuilder ret = new StringBuilder(length*2); in bchToString() local
181 ret.append(HEX_CHARS[v]); in bchToString()
[all …]
/frameworks/av/media/libaudioclient/tests/
Dtest_create_utils.cpp27 int ret = 0; in readLine() local
31 ret = -1; in readLine()
35 ret = -1; in readLine()
42 return ret; in readLine()
74 int ret = 0; in main() local
88 ret = 1; in main()
91 ret = 1; in main()
99 ret = 1; in main()
102 ret = 1; in main()
111 if (ret != 0) { in main()
[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 …]
Drs_debug.spec29 ret: void
45 ret: void
55 ret: void
63 ret: void
72 ret: void
82 ret: void
89 ret: void
97 ret: void
106 ret: void
116 ret: void
[all …]
/frameworks/native/services/vr/bufferhubd/
Dbufferhubd.cpp11 int ret = -1; in main() local
20 ret = getrlimit64(RLIMIT_NOFILE, &rlim); in main()
21 LOG_ALWAYS_FATAL_IF(ret != 0, "Failed to get nofile limit."); in main()
25 ret = setrlimit64(RLIMIT_NOFILE, &rlim); in main()
26 ALOGE_IF(ret < 0, "Failed to set nofile limit, error=%s", strerror(errno)); in main()
42 ret = dvrSetSchedulerClass(0, "graphics"); in main()
43 CHECK_ERROR(ret < 0, error, "Failed to set thread priority"); in main()
47 ret = dispatcher->EnterDispatchLoop(); in main()
48 CHECK_ERROR(ret < 0, error, "Dispatch loop exited because: %s\n", in main()
49 strerror(-ret)); in main()
[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/base/packages/SettingsLib/DisplayUtils/src/com/android/settingslib/display/
DBrightnessUtils.java57 final float ret; in convertGammaToLinear() local
59 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinear()
61 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinear()
66 return Math.round(MathUtils.lerp(min, max, ret / 12)); in convertGammaToLinear()
80 final float ret; in convertGammaToLinearFloat() local
82 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinearFloat()
84 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinearFloat()
89 final float normalizedRet = MathUtils.constrain(ret, 0, 12); in convertGammaToLinearFloat()
133 final float ret; in convertLinearToGammaFloat() local
135 ret = MathUtils.sqrt(normalizedVal) * R; in convertLinearToGammaFloat()
[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/opt/net/wifi/libwifi_hal/
Dwifi_hal_common.cpp61 int ret; in insmod() local
70 ret = syscall(__NR_finit_module, fd, args, 0); in insmod()
73 if (ret < 0) { in insmod()
74 PLOG(ERROR) << "finit_module return: " << ret; in insmod()
77 return ret; in insmod()
81 int ret = -1; in rmmod() local
85 ret = delete_module(modname, O_NONBLOCK | O_EXCL); in rmmod()
86 if (ret < 0 && errno == EAGAIN) in rmmod()
92 if (ret != 0) in rmmod()
94 return ret; in rmmod()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDriverCall.java99 DriverCall ret = new DriverCall(); in fromCLCCLine() local
106 ret.index = p.nextInt(); in fromCLCCLine()
107 ret.isMT = p.nextBoolean(); in fromCLCCLine()
108 ret.state = stateFromCLCC(p.nextInt()); in fromCLCCLine()
110 ret.isVoice = (0 == p.nextInt()); in fromCLCCLine()
111 ret.isMpty = p.nextBoolean(); in fromCLCCLine()
114 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in fromCLCCLine()
119 ret.number = PhoneNumberUtils.extractNetworkPortionAlt(p.nextString()); in fromCLCCLine()
121 if (ret.number.length() == 0) { in fromCLCCLine()
122 ret.number = null; in fromCLCCLine()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_PersistentDataBlockService.cpp38 int ret; in get_block_device_size() local
40 ret = ioctl(fd, BLKGETSIZE64, &size); in get_block_device_size()
42 if (ret) in get_block_device_size()
51 int ret; in wipe_block_device() local
60 ret = ioctl(fd, BLKSECDISCARD, &range); in wipe_block_device()
61 if (ret < 0) { in wipe_block_device()
65 ret = ioctl(fd, BLKDISCARD, &range); in wipe_block_device()
66 if (ret < 0) { in wipe_block_device()
76 return ret; in wipe_block_device()
101 const int ret = wipe_block_device(fd); in com_android_server_PersistentDataBlockService_wipe() local
[all …]

12345678910>>...36