/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 | 49 status_t ret = mMediaRecorder->setCamera(camera, proxy); in setCamera() local 50 if (OK != ret) { in setCamera() 51 ALOGV("setCamera failed: %d", ret); in setCamera() 53 return ret; in setCamera() 55 return ret; in setCamera() 74 status_t ret = mMediaRecorder->setPreviewSurface(surface); in setPreviewSurface() local 75 if (OK != ret) { in setPreviewSurface() 76 ALOGV("setPreviewSurface failed: %d", ret); in setPreviewSurface() 78 return ret; in setPreviewSurface() 80 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 | 48 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 …]
|
/frameworks/native/libs/binder/tests/ |
D | binderLibTest.cpp | 80 int ret; in start_server_process() local 97 ret = pipe(pipefd); in start_server_process() 98 if (ret < 0) in start_server_process() 99 return ret; in start_server_process() 117 ret = read(pipefd[0], &status, sizeof(status)); in start_server_process() 120 if (ret == sizeof(status)) { in start_server_process() 121 ret = status; in start_server_process() 124 if (ret >= 0) { in start_server_process() 125 ret = NO_INIT; in start_server_process() 128 if (ret < 0) { in start_server_process() [all …]
|
/frameworks/av/camera/ndk/ndk_vendor/tests/ |
D | AImageReaderVendorTest.cpp | 75 int ret; in initCamera() local 78 ret = ACameraManager_openCamera(mCameraManager, mCameraId, &mDeviceCb, &mDevice); in initCamera() 79 if (ret != AMEDIA_OK || mDevice == nullptr) { in initCamera() 80 ALOGE("Failed to open camera, ret=%d, mDevice=%p.", ret, mDevice); in initCamera() 85 ret = ACaptureSessionOutputContainer_create(&mOutputs); in initCamera() 86 if (ret != AMEDIA_OK) { in initCamera() 87 ALOGE("ACaptureSessionOutputContainer_create failed, ret=%d", ret); in initCamera() 88 return ret; in initCamera() 90 ret = ACaptureSessionOutput_create(mImgReaderAnw, &mImgReaderOutput); in initCamera() 91 if (ret != AMEDIA_OK) { in initCamera() [all …]
|
/frameworks/native/libs/vr/libdvr/tests/ |
D | dvr_buffer_queue-test.cpp | 71 int ret = api_.WriteBufferQueueCreate( in TEST_F() local 74 ASSERT_EQ(0, ret); in TEST_F() 81 int ret = api_.WriteBufferQueueCreate( in TEST_F() local 84 ASSERT_EQ(0, ret); in TEST_F() 93 int ret = api_.WriteBufferQueueCreate( in TEST_F() local 96 ASSERT_EQ(0, ret); in TEST_F() 99 ret = api_.WriteBufferQueueCreateReadQueue(write_queue_, &read_queue); in TEST_F() 101 ASSERT_EQ(0, ret); in TEST_F() 108 int ret = api_.WriteBufferQueueCreate( in TEST_F() local 111 ASSERT_EQ(0, ret); in TEST_F() [all …]
|
D | dvr_display-test.cpp | 21 int ret = api_.GetNativeDisplayMetrics(sizeof(display_metrics_), in SetUp() local 23 ASSERT_EQ(ret, 0) << "Failed to get display metrics."; in SetUp() 82 int ret = in TEST_F() local 85 ASSERT_EQ(ret, 0) << "Failed to create direct surface."; in TEST_F() 91 ret = api_.SurfaceCreateWriteBufferQueue( in TEST_F() 94 EXPECT_EQ(0, ret) << "Failed to create buffer queue."; in TEST_F() 101 ret = api_.WriteBufferQueueGainBuffer(write_queue_, kTimeoutMs, &write_buffer, in TEST_F() 103 EXPECT_EQ(0, ret) << "Failed to get the buffer."; in TEST_F() 113 ret = api_.WriteBufferQueuePostBuffer(write_queue_, write_buffer, &out_meta, in TEST_F() 115 EXPECT_EQ(0, ret) << "Failed to post the buffer."; in TEST_F() [all …]
|
/frameworks/native/libs/input/ |
D | InputWindow.cpp | 107 InputWindowInfo ret; in read() local 110 return ret; in read() 115 return ret; in read() 118 ret.token = token; in read() 119 ret.name = from.readString8().c_str(); in read() 120 ret.layoutParamsFlags = from.readInt32(); in read() 121 ret.layoutParamsType = from.readInt32(); in read() 122 ret.dispatchingTimeout = from.readInt64(); in read() 123 ret.frameLeft = from.readInt32(); in read() 124 ret.frameTop = from.readInt32(); in read() [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/hardware/interfaces/stats/1.0/vts/functional/ |
D | VtsHalStatsV1_0TargetTest.cpp | 68 Return<void> ret; in TEST_F() local 69 ret = client->reportSpeakerImpedance(impedance); in TEST_F() 70 ASSERT_TRUE(ret.isOk()); in TEST_F() 78 Return<void> ret; in TEST_F() local 80 ret = client->reportHardwareFailed(failed); in TEST_F() 81 ASSERT_TRUE(ret.isOk()); in TEST_F() 90 Return<void> ret; in TEST_F() local 91 ret = client->reportChargeCycles(cycles); in TEST_F() 92 ASSERT_TRUE(ret.isOk()); in TEST_F() 104 Return<void> ret; in TEST_F() local [all …]
|
/frameworks/av/media/libaudiohal/impl/ |
D | ConversionHelperHidl.h | 44 status_t processReturn(const char* funcName, const Return<R>& ret, T *retval) { in processReturn() argument 45 if (ret.isOk()) { in processReturn() 47 *retval = static_cast<T>(static_cast<R>(ret)); in processReturn() 50 return processReturn(funcName, ret); in processReturn() 54 status_t processReturn(const char* funcName, const Return<T>& ret) { in processReturn() argument 55 if (!ret.isOk()) { in processReturn() 56 emitError(funcName, ret.description().c_str()); in processReturn() 58 return ret.isOk() ? OK : FAILED_TRANSACTION; in processReturn() 61 status_t processReturn(const char* funcName, const Return<CoreResult>& ret) { in processReturn() argument 62 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/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/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Compatibility/ |
D | TypeExtensions.cs | 68 var ret = typeInfo.GetDeclaredProperty(name); in GetProperty() 69 …if (ret != null && ((ret.CanRead && ret.GetMethod.IsPublic) || (ret.CanWrite && ret.SetMethod.IsPu… in GetProperty() 71 return ret; in GetProperty() 95 var ret = typeInfo.GetDeclaredMethod(name); in GetMethod() 96 if (ret != null && ret.IsPublic) in GetMethod() 98 return ret; in GetMethod()
|
/frameworks/ml/nn/runtime/ |
D | VersionedInterfaces.cpp | 113 const Return<bool> ret = preparedModel->linkToDeath(deathHandler, 0); in makeVersionedIPreparedModel() local 114 if (!ret.isOk() || ret != true) { in makeVersionedIPreparedModel() 144 Return<ErrorStatus> ret = mPreparedModelV1_2->execute_1_2(request, measure, callback); in execute() local 145 if (!ret.isOk()) { in execute() 147 LOG(ERROR) << "execute_1_2 failure: " << ret.description(); in execute() 150 if (ret != ErrorStatus::NONE) { in execute() 152 LOG(ERROR) << "execute_1_2 returned " << toString(static_cast<ErrorStatus>(ret)); in execute() 153 return static_cast<ErrorStatus>(ret); in execute() 156 return static_cast<ErrorStatus>(ret); in execute() 158 Return<ErrorStatus> ret = mPreparedModelV1_0->execute(request, callback); in execute() local [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 51 StringBuilder ret = new StringBuilder(length*2); in bcdToString() local 58 ret.append((char)('0' + v)); in bcdToString() 64 ret.append((char)('0' + v)); in bcdToString() 67 return ret.toString(); in bcdToString() 130 String ret = bytesToHexString(trans); in bcdPlmnToString() local 133 if (ret.contains("F")) { in bcdPlmnToString() 134 ret = ret.replaceAll("F", ""); in bcdPlmnToString() 136 return ret; in bcdPlmnToString() 158 StringBuilder ret = new StringBuilder(length*2); in bchToString() local 164 ret.append(HEX_CHARS[v]); in bchToString() [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 …]
|
/frameworks/opt/net/wifi/libwifi_hal/ |
D | wifi_hal_common.cpp | 56 int ret; in insmod() local 65 ret = syscall(__NR_finit_module, fd, args, 0); in insmod() 68 if (ret < 0) { in insmod() 69 PLOG(ERROR) << "finit_module return: " << ret; in insmod() 72 return ret; in insmod() 76 int ret = -1; in rmmod() local 80 ret = delete_module(modname, O_NONBLOCK | O_EXCL); in rmmod() 81 if (ret < 0 && errno == EAGAIN) in rmmod() 87 if (ret != 0) in rmmod() 89 return ret; in rmmod() [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | test_create_utils.cpp | 27 int ret = 0; in readLine() local 31 ret = -1; in readLine() 35 ret = -1; in readLine() 42 return ret; in readLine() 80 int ret = 0; in main() local 94 ret = 1; in main() 97 ret = 1; in main() 105 ret = 1; in main() 108 ret = 1; in main() 117 if (ret != 0) { in main() [all …]
|
/frameworks/native/services/vr/bufferhubd/ |
D | bufferhubd.cpp | 11 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 …]
|