/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 | 51 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/ |
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 …]
|
D | rsFifoSocket.cpp | 39 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/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/av/camera/ndk/ndk_vendor/tests/ |
D | AImageReaderVendorTest.cpp | 80 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/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/base/services/tests/servicestests/src/com/android/server/backup/transport/ |
D | DelegatingTransportTest.java | 75 String ret = mDelegatingTransport.name(); in testName() local 77 assertEquals(exp, ret); in testName() 87 Intent ret = mDelegatingTransport.configurationIntent(); in testConfigurationIntent() local 89 assertEquals(exp, ret); in testConfigurationIntent() 99 String ret = mDelegatingTransport.currentDestinationString(); in testCurrentDestinationString() local 101 assertEquals(exp, ret); in testCurrentDestinationString() 111 Intent ret = mDelegatingTransport.dataManagementIntent(); in testDataManagementIntent() local 113 assertEquals(exp, ret); in testDataManagementIntent() 123 CharSequence ret = mDelegatingTransport.dataManagementIntentLabel(); in testDataManagementIntentLabel() local 125 assertEquals(exp, ret); in testDataManagementIntentLabel() [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 | 55 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/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/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 63 StringBuilder ret = new StringBuilder(length*2); in bcdToString() local 70 ret.append((char)('0' + v)); in bcdToString() 76 ret.append((char)('0' + v)); in bcdToString() 79 return ret.toString(); in bcdToString() 142 String ret = bytesToHexString(trans); in bcdPlmnToString() local 145 if (ret.contains("F")) { in bcdPlmnToString() 146 ret = ret.replaceAll("F", ""); in bcdPlmnToString() 148 return ret; in bcdPlmnToString() 170 StringBuilder ret = new StringBuilder(length*2); in bchToString() local 176 ret.append(HEX_CHARS[v]); in bchToString() [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/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/native/libs/vr/libbufferhubqueue/benchmarks/ |
D | buffer_transport_benchmark.cpp | 85 status_t ret = 0; in onFrameAvailable() local 88 ret = buffer_item_consumer_->acquireBuffer(&buffer, /*presentWhen=*/0, in onFrameAvailable() 92 if (ret != OK) { in onFrameAvailable() 99 ret = buffer_item_consumer_->releaseBuffer(buffer); in onFrameAvailable() 102 if (ret != OK) { in onFrameAvailable() 214 int ret = dvr_get_api(&api_, sizeof(api_), /*version=*/1); in DvrApi() local 216 CHECK(ret == 0); in DvrApi() 248 int ret = epoll_fd_.Create(); in Start() local 249 if (ret < 0) { in Start() 250 LOG(ERROR) << "Failed to create epoll fd: %s", strerror(-ret); in Start() [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() 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/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 …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/ |
D | BrightnessUtils.java | 56 final float ret; in convertGammaToLinear() local 58 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinear() 60 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinear() 65 return Math.round(MathUtils.lerp(min, max, ret / 12)); in convertGammaToLinear() 79 final float ret; in convertGammaToLinearFloat() local 81 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinearFloat() 83 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinearFloat() 88 final float normalizedRet = MathUtils.constrain(ret, 0, 12); in convertGammaToLinearFloat() 132 final float ret; in convertLinearToGammaFloat() local 134 ret = MathUtils.sqrt(normalizedVal) * R; in convertLinearToGammaFloat() [all …]
|