/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/ |
D | parcelable_composer_layer.cpp | 19 status_t ret = parcel->writeUint64(layer_.id); in writeToParcel() local 20 if (ret != OK) return ret; in writeToParcel() 22 ret = parcel->write(*layer_.buffer); in writeToParcel() 23 if (ret != OK) return ret; in writeToParcel() 25 ret = parcel->writeBool(layer_.fence->isValid()); in writeToParcel() 26 if (ret != OK) return ret; in writeToParcel() 29 ret = parcel->writeFileDescriptor(layer_.fence->dup(), true); in writeToParcel() 30 if (ret != OK) return ret; in writeToParcel() 33 ret = parcel->writeInt32(layer_.display_frame.left); in writeToParcel() 34 if (ret != OK) return ret; in writeToParcel() [all …]
|
D | parcelable_composer_frame.cpp | 19 status_t ret = parcel->writeUint64(frame_.display_id); in writeToParcel() local 20 if (ret != OK) return ret; in writeToParcel() 22 ret = parcel->writeInt32(frame_.display_width); in writeToParcel() 23 if (ret != OK) return ret; in writeToParcel() 25 ret = parcel->writeInt32(frame_.display_height); in writeToParcel() 26 if (ret != OK) return ret; in writeToParcel() 28 ret = parcel->writeBool(frame_.removed); in writeToParcel() 29 if (ret != OK) return ret; in writeToParcel() 31 ret = parcel->writeUint32(static_cast<uint32_t>(frame_.active_config)); in writeToParcel() 32 if (ret != OK) return ret; in writeToParcel() [all …]
|
D | parcelable_unique_fd.cpp | 16 status_t ret = parcel->writeBool(fence_.get() >= 0); in writeToParcel() local 17 if (ret != OK) return ret; in writeToParcel() 20 ret = parcel->writeUniqueFileDescriptor(fence_); in writeToParcel() 22 return ret; in writeToParcel() 27 status_t ret = parcel->readBool(&has_fence); in readFromParcel() local 28 if (ret != OK) return ret; in readFromParcel() 31 ret = parcel->readUniqueFileDescriptor(&fence_); in readFromParcel() 33 return ret; in readFromParcel()
|
/frameworks/av/media/libmedia/ |
D | mediarecorder.cpp | 48 status_t ret = mMediaRecorder->setCamera(camera, proxy); in setCamera() local 49 if (OK != ret) { in setCamera() 50 ALOGV("setCamera failed: %d", ret); in setCamera() 52 return ret; in setCamera() 54 return ret; in setCamera() 73 status_t ret = mMediaRecorder->setPreviewSurface(surface); in setPreviewSurface() local 74 if (OK != ret) { in setPreviewSurface() 75 ALOGV("setPreviewSurface failed: %d", ret); in setPreviewSurface() 77 return ret; in setPreviewSurface() 79 return ret; in setPreviewSurface() [all …]
|
/frameworks/rs/ |
D | rsDriverLoader.cpp | 52 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 …]
|
D | rsGrallocConsumer.cpp | 45 media_status_t ret = AImageReader_new( in GrallocConsumer() local 48 if (ret != AMEDIA_OK || mImgReader == nullptr) { in GrallocConsumer() 49 ALOGE("Error creating image reader. ret %d", ret); in GrallocConsumer() 52 ret = AImageReader_getWindow(mImgReader, &mNativeWindow); in GrallocConsumer() 53 if (ret != AMEDIA_OK || mNativeWindow == nullptr) { in GrallocConsumer() 54 ALOGE("Error creating native window. ret %d", ret); in GrallocConsumer() 58 ret = AImageReader_setImageListener(mImgReader, &mReaderCb); in GrallocConsumer() 88 media_status_t ret; in lockNextBuffer() local 96 ret = unlockBuffer(idx); in lockNextBuffer() 97 if (ret != AMEDIA_OK) { in lockNextBuffer() [all …]
|
D | rsFifoSocket.cpp | 39 int ret = socketpair(AF_UNIX, SOCK_STREAM, 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/native/libs/binder/tests/ |
D | binderLibTest.cpp | 65 int ret; in start_server_process() local 80 ret = pipe(pipefd); in start_server_process() 81 if (ret < 0) in start_server_process() 82 return ret; in start_server_process() 99 ret = read(pipefd[0], &status, sizeof(status)); in start_server_process() 102 if (ret == sizeof(status)) { in start_server_process() 103 ret = status; in start_server_process() 106 if (ret >= 0) { in start_server_process() 107 ret = NO_INIT; in start_server_process() 110 if (ret < 0) { in start_server_process() [all …]
|
/frameworks/native/libs/vr/libdvr/tests/ |
D | dvr_buffer_queue-test.cpp | 67 int ret = dvrWriteBufferQueueCreate( in TEST_F() local 70 ASSERT_EQ(0, ret); in TEST_F() 77 int ret = dvrWriteBufferQueueCreate( in TEST_F() local 80 ASSERT_EQ(0, ret); in TEST_F() 89 int ret = dvrWriteBufferQueueCreate( in TEST_F() local 92 ASSERT_EQ(0, ret); in TEST_F() 95 ret = dvrWriteBufferQueueCreateReadQueue(write_queue_, &read_queue); in TEST_F() 97 ASSERT_EQ(0, ret); in TEST_F() 104 int ret = dvrWriteBufferQueueCreate( in TEST_F() local 107 ASSERT_EQ(0, ret); in TEST_F() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 45 StringBuilder ret = new StringBuilder(length*2); in bcdToString() local 52 ret.append((char)('0' + v)); in bcdToString() 58 ret.append((char)('0' + v)); in bcdToString() 61 return ret.toString(); in bcdToString() 77 String ret = bytesToHexString(trans); in bcdPlmnToString() local 80 if (ret.endsWith("f")) { in bcdPlmnToString() 81 ret = ret.substring(0, ret.length() - 1); in bcdPlmnToString() 83 return ret; in bcdPlmnToString() 91 StringBuilder ret = new StringBuilder(length*2); in bchToString() local 97 ret.append("0123456789abcdef".charAt(v)); in bchToString() [all …]
|
/frameworks/av/media/libeffects/factory/ |
D | EffectsFactory.c | 67 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/media/libnbaio/ |
D | NBAIO.cpp | 54 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/av/media/libaudiohal/ |
D | ConversionHelperHidl.h | 40 status_t processReturn(const char* funcName, const Return<R>& ret, T *retval) { in processReturn() argument 41 if (ret.isOk()) { in processReturn() 43 *retval = static_cast<T>(static_cast<R>(ret)); in processReturn() 46 return processReturn(funcName, ret); in processReturn() 50 status_t processReturn(const char* funcName, const Return<T>& ret) { in processReturn() argument 51 if (!ret.isOk()) { in processReturn() 52 emitError(funcName, ret.description().c_str()); in processReturn() 54 return ret.isOk() ? OK : FAILED_TRANSACTION; in processReturn() 57 status_t processReturn(const char* funcName, const Return<hardware::audio::V2_0::Result>& ret) { in processReturn() argument 58 if (!ret.isOk()) { in processReturn() [all …]
|
/frameworks/base/cmds/interrupter/ |
D | interrupter.h | 29 #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/rs/script_api/ |
D | rs_math.spec | 171 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 …]
|
D | rs_debug.spec | 29 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/libs/vr/libvrflinger/ |
D | acquired_buffer.cpp | 18 const int ret = buffer->Acquire(&fence); in AcquiredBuffer() local 21 *error = ret; in AcquiredBuffer() 23 if (ret < 0) { in AcquiredBuffer() 25 strerror(-ret)); in AcquiredBuffer() 58 const int ret = sync_wait(acquire_fence_.Get(), 0); in IsAvailable() local 59 ALOGD_IF(TRACE || (ret < 0 && errno != ETIME), in IsAvailable() 62 buffer_->id(), acquire_fence_.Get(), ret, ret < 0 ? errno : 0); in IsAvailable() 63 if (ret == 0) { in IsAvailable() 68 return ret == 0; in IsAvailable() 86 const int ret = buffer_->ReleaseAsync(); in Release() local [all …]
|
/frameworks/native/services/vr/performanced/ |
D | main.cpp | 25 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/native/libs/vr/libpdx/ |
D | client.cpp | 22 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() 139 void Transaction::SendTransaction(int opcode, Status<void>* ret, in SendTransaction() argument 143 *ret = client_.CheckReconnect(); in SendTransaction() 144 if (!*ret) in SendTransaction() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | DriverCall.java | 57 DriverCall ret = new DriverCall(); in fromCLCCLine() local 64 ret.index = p.nextInt(); in fromCLCCLine() 65 ret.isMT = p.nextBoolean(); in fromCLCCLine() 66 ret.state = stateFromCLCC(p.nextInt()); in fromCLCCLine() 68 ret.isVoice = (0 == p.nextInt()); in fromCLCCLine() 69 ret.isMpty = p.nextBoolean(); in fromCLCCLine() 72 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in fromCLCCLine() 77 ret.number = PhoneNumberUtils.extractNetworkPortionAlt(p.nextString()); in fromCLCCLine() 79 if (ret.number.length() == 0) { in fromCLCCLine() 80 ret.number = null; in fromCLCCLine() [all …]
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | ipc_helper.cpp | 56 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/native/services/vr/bufferhubd/ |
D | bufferhubd.cpp | 13 int ret = -1; in main() local 22 ret = getrlimit64(RLIMIT_NOFILE, &rlim); in main() 23 LOG_ALWAYS_FATAL_IF(ret != 0, "Failed to get nofile limit."); in main() 27 ret = setrlimit64(RLIMIT_NOFILE, &rlim); in main() 28 ALOGE_IF(ret < 0, "Failed to set nofile limit, error=%s", strerror(errno)); in main() 44 ret = dvrSetSchedulerClass(0, "graphics"); in main() 45 CHECK_ERROR(ret < 0, error, "Failed to set thread priority"); in main() 49 ret = dispatcher->EnterDispatchLoop(); in main() 50 CHECK_ERROR(ret < 0, error, "Dispatch loop exited because: %s\n", in main() 51 strerror(-ret)); in main() [all …]
|
/frameworks/opt/net/wifi/libwifi_hal/ |
D | wifi_hal_common.cpp | 56 int ret; in insmod() local 61 ret = init_module(module, size, args); in insmod() 65 return ret; in insmod() 69 int ret = -1; in rmmod() local 73 ret = delete_module(modname, O_NONBLOCK | O_EXCL); in rmmod() 74 if (ret < 0 && errno == EAGAIN) in rmmod() 80 if (ret != 0) in rmmod() 82 return ret; in rmmod() 89 int ret = 0; in wifi_change_driver_state() local 100 ret = -1; in wifi_change_driver_state() [all …]
|
/frameworks/base/libs/usb/tests/accessorytest/ |
D | usb.c | 46 int ret = 0; in read_thread() local 48 while (current_device && ret >= 0) { in read_thread() 51 ret = usb_device_bulk_transfer(current_device, read_ep, buffer, sizeof(buffer), 1000); in read_thread() 52 if (ret < 0 && errno == ETIMEDOUT) in read_thread() 53 ret = 0; in read_thread() 54 if (ret > 0) { in read_thread() 55 fwrite(buffer, 1, ret, stdout); in read_thread() 65 int ret = 0; in write_thread() local 67 while (ret >= 0) { in write_thread() 72 ret = usb_device_bulk_transfer(current_device, write_ep, line, strlen(line), 1000); in write_thread() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_PersistentDataBlockService.cpp | 38 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 …]
|