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

1234567891011>>

/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/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/webview/chromium/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/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...]
H A DDevicesFactoryHalHidl.cpp79 Return<void> ret = mDevicesFactory->openDevice( local
87 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 DAsyncIO.h49 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/native/libs/binder/
H A DIActivityManager.cpp41 status_t ret = remote()->transact(OPEN_CONTENT_URI_TRANSACTION, data, & reply); local
43 if (ret == NO_ERROR) {
/frameworks/av/media/audioserver/
H A Dmain_audioserver.cpp67 int ret = waitid(P_PID, childPid, &info, WEXITED | WSTOPPED | WCONTINUED); local
68 if (ret == EINTR) {
71 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/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/aacenc/src/
H A Dmemalign.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/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;
/frameworks/av/services/camera/libcameraservice/utils/
H A DAutoConditionLock.cpp54 status_t ret = manager->mCondition.waitRelative(*(manager->mMutex), waitTime); local
55 if (ret != NO_ERROR) {
81 status_t ret = manager->mCondition.wait(*(manager->mMutex)); local
82 if (ret != NO_ERROR) {
/frameworks/base/libs/hwui/tests/unit/
H A Dmain.cpp82 int ret = RUN_ALL_TESTS(); local
84 return ret;
/frameworks/base/packages/DefaultContainerService/jni/
H A Dcom_android_defcontainer_MeasurementUtils.cpp33 jlong ret = 0L; local
37 return ret;
44 ret = calculate_dir_size(dirfd);
50 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...]

Completed in 481 milliseconds

1234567891011>>