/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/vulkan/vkprofiles/generated/ |
D | vulkan_profiles.cpp | 369 bool ret = true; in __anon526a5adc0202() local 373 …ret = ret && (prettify_VkPhysicalDeviceFeatures2KHR->features.drawIndirectFirstInstance == VK_TRUE… in __anon526a5adc0202() 374 …ret = ret && (prettify_VkPhysicalDeviceFeatures2KHR->features.samplerAnisotropy == VK_TRUE); VP_DE… in __anon526a5adc0202() 375 …ret = ret && (prettify_VkPhysicalDeviceFeatures2KHR->features.shaderImageGatherExtended == VK_TRUE… in __anon526a5adc0202() 376 …ret = ret && (prettify_VkPhysicalDeviceFeatures2KHR->features.shaderStorageImageExtendedFormats ==… in __anon526a5adc0202() 377 …ret = ret && (prettify_VkPhysicalDeviceFeatures2KHR->features.shaderStorageImageReadWithoutFormat … in __anon526a5adc0202() 378 …ret = ret && (prettify_VkPhysicalDeviceFeatures2KHR->features.shaderStorageImageWriteWithoutFormat… in __anon526a5adc0202() 382 …ret = ret && (prettify_VkPhysicalDeviceVulkan12Features->shaderFloat16 == VK_TRUE); VP_DEBUG_COND_… in __anon526a5adc0202() 383 …ret = ret && (prettify_VkPhysicalDeviceVulkan12Features->shaderInt8 == VK_TRUE); VP_DEBUG_COND_MSG… in __anon526a5adc0202() 387 …ret = ret && (prettify_VkPhysicalDeviceCustomBorderColorFeaturesEXT->customBorderColors == VK_TRUE… in __anon526a5adc0202() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/paint/ |
D | PaintBundle.java | 182 StringBuilder ret = new StringBuilder("\n"); in toString() local 190 ret.append(" TextSize(" in toString() 200 ret.append(" TypeFace(" + (font_type + ", " in toString() 205 ret.append(" Color(" + colorInt(mArray[i++])); in toString() 209 ret.append(" ColorId([" + mArray[i++] + "]"); in toString() 213 ret.append(" StrokeWidth(" in toString() 218 ret.append(" StrokeMiter(" in toString() 223 ret.append(" StrokeCap(" in toString() 228 ret.append(" Style(" + (cmd >> 16)); in toString() 232 ret.append(" ColorFilter(color=" in toString() [all …]
|
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/ |
D | HostStubGenOptions.kt | 135 val ret = HostStubGenOptions() in parseArgs() constant 175 "--in-jar" -> ret.inJar.setNextStringArg().ensureFileExists() in parseArgs() 176 "--out-stub-jar" -> ret.outStubJar.setNextStringArg() in parseArgs() 177 "--out-impl-jar" -> ret.outImplJar.setNextStringArg() in parseArgs() 180 ret.policyOverrideFile.setNextStringArg().ensureFileExists() in parseArgs() 182 "--clean-up-on-error" -> ret.cleanUpOnError.set(true) in parseArgs() 183 "--no-clean-up-on-error" -> ret.cleanUpOnError.set(false) in parseArgs() 185 "--default-remove" -> ret.defaultPolicy.set(FilterPolicy.Remove) in parseArgs() 186 "--default-throw" -> ret.defaultPolicy.set(FilterPolicy.Throw) in parseArgs() 187 "--default-keep" -> ret.defaultPolicy.set(FilterPolicy.Keep) in parseArgs() [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/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/libaudiohal/impl/ |
D | ConversionHelperHidl.h | 38 const ::android::hardware::Return<R>& ret, T *retval) { in processReturn() 39 if (ret.isOk()) { in processReturn() 41 *retval = static_cast<T>(static_cast<R>(ret)); in processReturn() 44 return processReturn(funcName, ret); in processReturn() 48 status_t processReturn(const char* funcName, const ::android::hardware::Return<T>& ret) { in processReturn() argument 49 if (!ret.isOk()) { in processReturn() 50 emitError(funcName, ret.description().c_str()); in processReturn() 52 return ret.isOk() ? OK : FAILED_TRANSACTION; in processReturn() 56 const ::android::hardware::Return<HalResult>& ret) { in processReturn() 57 if (!ret.isOk()) { in processReturn() [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_bytes_per_frame(channelCount, format); in Format_from_SR_C() 59 return ret; in Format_from_SR_C() 82 ssize_t ret = via(user, buffer, count); in writeVia() local 83 if (ret > 0) { in writeVia() 84 ALOG_ASSERT((size_t) ret <= count); in writeVia() 85 size_t maxRet = ret; in writeVia() [all …]
|
/frameworks/native/libs/binder/ |
D | UtilsHost.cpp | 88 CommandResult ret; in execute() local 90 if (!binder::Pipe(&ret.outPipe, &outWrite)) { in execute() 95 if (!binder::Pipe(&ret.errPipe, &errWrite)) { in execute() 107 ret.outPipe.reset(); in execute() 108 ret.errPipe.reset(); in execute() 124 ret.pid = pid; in execute() 141 while (ret.outPipe.ok() || ret.errPipe.ok()) { in execute() 146 if (ret.outPipe.ok()) { in execute() 148 *outPollFd = {.fd = ret.outPipe.get(), .events = POLLIN}; in execute() 150 if (ret.errPipe.ok()) { in execute() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/ |
D | ThermalManagerServiceMockingTest.java | 109 List<Temperature> ret = mAidlWrapper.getCurrentTemperatures(true, TemperatureType.MODEM); in verifyWrapperStatusOnCallbackError() local 112 assertNotNull(ret); in verifyWrapperStatusOnCallbackError() 118 assertTrue("Got temperature list as " + ret + " with different values compared to " in verifyWrapperStatusOnCallbackError() 119 + expectedRet, expectedRet.containsAll(ret)); in verifyWrapperStatusOnCallbackError() 138 List<Temperature> ret = mAidlWrapper.getCurrentTemperatures(false, TemperatureType.UNKNOWN); in getCurrentTemperatures_aidl() local 146 assertTrue("Got temperature list as " + ret + " with different values compared to " in getCurrentTemperatures_aidl() 147 + expectedRet, expectedRet.containsAll(ret)); in getCurrentTemperatures_aidl() 171 List<Temperature> ret = mAidlWrapper.getCurrentTemperatures(true, TemperatureType.MODEM); in getCurrentTemperatures_withFilter_aidl() local 180 assertTrue("Got temperature list as " + ret + " with different values compared to " in getCurrentTemperatures_withFilter_aidl() 181 + expectedRet, expectedRet.containsAll(ret)); in getCurrentTemperatures_withFilter_aidl() [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/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/av/services/camera/libcameraservice/aidl/ |
D | AidlCameraDeviceUser.cpp | 103 UStatus ret = mDeviceRemote->prepare(in_streamId); in prepare() local 104 return fromUStatus(ret); in prepare() 119 UStatus ret = mDeviceRemote->submitRequestList(requests, in submitRequestList() local 121 if (!ret.isOk()) { in submitRequestList() 123 __FUNCTION__, ret.toString8().c_str()); in submitRequestList() 124 return fromUStatus(ret); in submitRequestList() 132 UStatus ret = mDeviceRemote->cancelRequest(mRequestId, _aidl_return); in cancelRepeatingRequest() local 133 return fromUStatus(ret); in cancelRepeatingRequest() 137 UStatus ret = mDeviceRemote->beginConfigure(); in beginConfigure() local 138 return fromUStatus(ret); in beginConfigure() [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/base/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 68 StringBuilder ret = new StringBuilder(length*2); in bcdToString() local 75 ret.append((char)('0' + v)); in bcdToString() 81 ret.append((char)('0' + v)); in bcdToString() 84 return ret.toString(); in bcdToString() 147 String ret = bytesToHexString(trans); in bcdPlmnToString() local 150 if (ret.contains("F")) { in bcdPlmnToString() 151 ret = ret.replaceAll("F", ""); in bcdPlmnToString() 153 return ret; in bcdPlmnToString() 175 StringBuilder ret = new StringBuilder(length*2); in bchToString() local 181 ret.append(HEX_CHARS[v]); in bchToString() [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() 74 int ret = 0; in main() local 88 ret = 1; in main() 91 ret = 1; in main() 99 ret = 1; in main() 102 ret = 1; in main() 111 if (ret != 0) { 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 …]
|
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/binder/tests/parcel_fuzzer/ |
D | random_fd.cpp | 35 std::vector<unique_fd> ret; in getRandomFds() local 36 ret.push_back(unique_fd( in getRandomFds() 39 return ret; in getRandomFds() 43 std::vector<unique_fd> ret; in getRandomFds() local 44 ret.push_back(unique_fd(open("/dev/null", O_RDWR))); in getRandomFds() 45 return ret; in getRandomFds() 62 std::vector<unique_fd> ret; in getRandomFds() local 63 ret.push_back(unique_fd(pipefds[0])); in getRandomFds() 64 ret.push_back(unique_fd(pipefds[1])); in getRandomFds() 65 return ret; in getRandomFds() [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/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/DisplayUtils/src/com/android/settingslib/display/ |
D | BrightnessUtils.java | 57 final float ret; in convertGammaToLinear() local 59 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinear() 61 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinear() 66 return Math.round(MathUtils.lerp(min, max, ret / 12)); in convertGammaToLinear() 80 final float ret; in convertGammaToLinearFloat() local 82 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinearFloat() 84 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinearFloat() 89 final float normalizedRet = MathUtils.constrain(ret, 0, 12); in convertGammaToLinearFloat() 133 final float ret; in convertLinearToGammaFloat() local 135 ret = MathUtils.sqrt(normalizedVal) * R; in convertLinearToGammaFloat() [all …]
|