Searched defs:ret (Results 1 - 25 of 346) sorted by relevance

1234567891011>>

/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/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/base/native/webview/plat_support/
H A Djni_entry_point.cpp31 jint ret = vm->AttachCurrentThread(&env, NULL); local
32 LOG_ALWAYS_FATAL_IF(ret != JNI_OK, "AttachCurrentThread failed");
/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/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...]
H A DDevicesFactoryHalHidl.cpp82 Return<void> ret = mDevicesFactory->openDevice( local
90 if (ret.isOk()) {
/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...]
H A DDevicesFactoryHalHidl.cpp58 Return<void> ret = mDevicesFactory->openDevice( local
66 if (ret.isOk()) {
/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 DPosixAsyncIO.h39 ssize_t ret; member in struct:aiocb
H A DMtpEventPacket.cpp47 int ret = h->sendEvent(event); local
48 return (ret < 0 ? ret : 0);
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/base/libs/hwui/debug/
H A DGlesDriver.cpp34 std::unique_ptr<GlesDriver> ret = std::move(sGlesDriver); local
36 return ret;
/frameworks/opt/car/services/src/jni/
H A Dcom_android_internal_car_CarServiceHelperService.cpp32 jint ret = autosuspend_force_suspend(timeoutMs); local
33 ALOGD("nativeForceSuspend returned %d", ret);
34 return ret;
/frameworks/av/include/media/
H A DDataSource.h64 int ret = snprintf(uriString, bufferSize, "%s", getUri().c_str()); variable
65 return ret >= 0 && static_cast<size_t>(ret) < bufferSize;
/frameworks/av/media/audioserver/
H A Dmain_audioserver.cpp72 int ret = waitid(P_PID, childPid, &info, WEXITED | WSTOPPED | WCONTINUED); local
73 if (ret == EINTR) {
76 if (ret < 0) {
/frameworks/av/media/common_time/
H A Dcc_helper.cpp31 bool ret = false; local
50 ret = true;
53 if (!ret) {
57 return ret;
/frameworks/av/media/img_utils/src/
H A DFileInput.cpp75 status_t ret = OK; local
78 ret = BAD_VALUE;
81 return ret;
H A DFileOutput.cpp69 status_t ret = OK; local
72 ret = BAD_VALUE;
75 return ret;
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/av/media/libmedia/
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/av/media/libmediaextractor/include/media/
H A DDataSource.h64 int ret = snprintf(uriString, bufferSize, "%s", getUri().c_str()); variable
65 return ret >= 0 && static_cast<size_t>(ret) < bufferSize;
/frameworks/av/media/libnbaio/
H A DMonoPipeReader.cpp41 ssize_t ret = mFifoReader.available(); local
42 ALOG_ASSERT(ret <= mPipe->mMaxFrames);
43 return ret;
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dmem_align.c42 int ret; local
50 ret = pMemop->Alloc(CodecID, &MemInfo);
51 if(ret != 0)
65 ret = pMemop->Alloc(CodecID, &MemInfo);
66 if(ret != 0)
/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 132 milliseconds

1234567891011>>