/frameworks/av/media/libnbaio/ |
H A D | AudioBufferProviderSource.cpp | 120 ssize_t ret = via(user, (char *) mBuffer.raw + (mConsumed * mFrameSize), count); local 122 if (CC_UNLIKELY(ret <= 0)) { 126 return ret; 128 ALOG_ASSERT((size_t) ret <= count); 129 mFramesRead += ret; 130 accumulator += ret; 131 if (CC_LIKELY((mConsumed += ret) < mBuffer.frameCount)) {
|
H A D | AudioStreamOutSink.cpp | 65 status_t ret = mStream->write(buffer, count * mFrameSize, &written); local 66 if (ret == OK && written > 0) { 72 ALOGE_IF(ret != OK, "Error while writing data to HAL: %d", ret); 73 return ret;
|
/frameworks/av/media/mtp/ |
H A D | MtpFfsHandle.cpp | 307 ssize_t ret; local 329 ret = TEMP_FAILURE_RETRY(::write(mControl, &v2_descriptor, sizeof(v2_descriptor))); 330 if (ret < 0) { 338 ret = TEMP_FAILURE_RETRY(::write(mControl, &v1_descriptor, sizeof(v1_descriptor))); 339 if (ret < 0) { 344 ret = TEMP_FAILURE_RETRY(::write(mControl, &strings, sizeof(strings))); 345 if (ret < 0) { 366 int ret = 0; local 382 ret += n; 384 return ret; 389 int ret = 0; local 409 int ret = 0; local 497 int ret = 0; local 541 int ret = -1; local 645 int ret, length; local 723 int ret = writeHandle(mIntr, me.data, length); local [all...] |
/frameworks/native/libs/binder/ |
H A D | Status.cpp | 55 Status ret; local 56 ret.setFromStatusT(status); 57 return ret; 167 String8 ret; local 169 ret.append("No error"); 171 ret.appendFormat("Status(%d): '", mException); 174 ret.appendFormat("%d: ", mErrorCode); 176 ret.append(String8(mMessage)); 177 ret.append("'"); 179 return ret; [all...] |
/frameworks/native/libs/vr/libpdx/ |
H A D | service.cpp | 251 const auto ret = svc->endpoint()->MessageReply(this, return_code); local 252 replied_ = ret.ok(); 253 return ret; 263 const auto ret = svc->endpoint()->MessageReplyFd(this, fd); local 264 replied_ = ret.ok(); 265 return ret; 275 const auto ret = local 277 replied_ = ret.ok(); 278 return ret; 288 Status<void> ret; local 306 Status<void> ret; local 324 Status<void> ret; local 341 const auto ret = svc->endpoint()->MessageReplyChannelHandle(this, handle); local 352 const auto ret = svc->endpoint()->MessageReplyChannelHandle(this, handle); local 363 const auto ret = svc->endpoint()->MessageReplyChannelHandle(this, handle); local 544 Status<RemoteChannelHandle> ret = local 568 Status<int> ret = endpoint_->CheckChannel( local [all...] |
/frameworks/rs/script_api/ |
H A D | rs_atomic.spec | 36 ret: int32_t, "Value of *addr prior to the operation." 47 ret: int32_t 55 ret: int32_t, "Value of *addr prior to the operation." 67 ret: int32_t 75 ret: int32_t, "Value of *addr prior to the operation." 91 ret: uint32_t 100 ret: int32_t, "Value of *addr prior to the operation." 110 ret: int32_t 117 ret: int32_t, "Value of *addr prior to the operation." 127 ret [all...] |
H A D | rs_quaternion.spec | 25 ret: void 41 ret: void 55 ret: float 68 ret: void 101 ret: void 124 ret: void 143 ret: void 159 ret: void 183 ret: void 202 ret [all...] |
H A D | rs_vector_math.spec | 42 ret: #2#1 56 ret: #2#1 67 ret: #2 83 ret: #2 94 ret: #2 108 ret: #2 119 ret: #2 138 ret: #2 156 ret: #2#1 177 ret [all...] |
H A D | rs_convert.spec | 30 ret: #3#1 52 ret: #3#1 62 ret: #3#1 72 ret: #3#1 82 ret: #3#1 92 ret: #3#1 98 ret: uchar4 119 ret: uchar4 129 ret: uchar4 136 ret [all...] |
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/ |
H A D | SamplesList.java | 37 Map<String,Object> ret = new HashMap<String,Object>(); 38 ret.put(KEY_NAME, name); 39 ret.put(KEY_CLASS, activity); 40 ret.put(KEY_RESOURCE, resourceId); 41 return ret;
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | GsmAlphabet.java | 165 int ret; 167 ret = sCharsToGsmTables[0].get(c, -1); 169 if (ret == -1) { 170 ret = sCharsToShiftTables[0].get(c, -1); 172 if (ret == -1) { 183 return ret; 195 int ret; 197 ret = sCharsToShiftTables[0].get(c, -1); 199 if (ret == -1) { 203 return ret; [all...] |
/frameworks/native/libs/ui/ |
H A D | Gralloc2.cpp | 47 auto ret = mMapper->createDescriptor(descriptorInfo, local 58 return (ret.isOk()) ? error : kTransactionError; 65 auto ret = mMapper->importBuffer(rawHandle, local 76 return (ret.isOk()) ? error : kTransactionError; 82 auto ret = mMapper->freeBuffer(buffer); local 84 auto error = (ret.isOk()) ? static_cast<Error>(ret) : kTransactionError; 105 auto ret = mMapper->lock(buffer, usage, accessRegion, acquireFenceHandle, local 121 return (ret.isOk()) ? error : kTransactionError; 140 auto ret local 166 auto ret = mMapper->unlock(buffer, local 221 auto ret = mAllocator->allocate(descriptor, count, local [all...] |
/frameworks/native/libs/vr/libdvr/tests/ |
H A D | dvr_display_manager-test.cpp | 49 const int ret = dvrSurfaceCreate( local 51 if (ret < 0) 52 return ErrorStatus(-ret); 61 const int ret = local 64 if (ret < 0) 65 return ErrorStatus(-ret); 84 const int ret = dvrDisplayManagerGetReadBufferQueue( local 86 if (ret < 0) 87 return ErrorStatus(-ret); 93 const int ret local 114 const int ret = dvrDisplayManagerTranslateEpollEventMask( local 126 const int ret = local 136 const int ret = dvrSurfaceStateGetUpdateFlags(surface_state_.get(), local 146 const int ret = dvrSurfaceStateGetSurfaceId(surface_state_.get(), local 156 const int ret = dvrSurfaceStateGetProcessId(surface_state_.get(), local 167 const int ret = dvrSurfaceStateGetAttributeCount(surface_state_.get(), local 185 const int ret = dvrSurfaceStateGetQueueCount(surface_state_.get(), local 217 int ret; variable [all...] |
/frameworks/av/camera/ndk/impl/ |
H A D | ACameraDevice.cpp | 119 camera_status_t ret = checkCameraClosedOrErrorLocked(); local 120 if (ret != ACAMERA_OK) { 121 return ret; 150 camera_status_t ret = checkCameraClosedOrErrorLocked(); local 151 if (ret != ACAMERA_OK) { 152 return ret; 161 ret = configureStreamsLocked(outputs); 162 if (ret != ACAMERA_OK) { 164 return ret; 205 camera_status_t ret local 281 camera_status_t ret; local 345 camera_status_t ret = configureStreamsLocked(nullptr); local 372 camera_status_t ret = checkCameraClosedOrErrorLocked(); local 398 camera_status_t ret = checkCameraClosedOrErrorLocked(); local 450 camera_status_t ret = checkCameraClosedOrErrorLocked(); local 515 camera_status_t ret = checkCameraClosedOrErrorLocked(); local 1135 binder::Status ret = binder::Status::ok(); local 1197 binder::Status ret = binder::Status::ok(); local 1238 binder::Status ret = binder::Status::ok(); local 1278 binder::Status ret = binder::Status::ok(); local 1357 binder::Status ret = binder::Status::ok(); local [all...] |
/frameworks/av/media/libaudiohal/ |
H A D | EffectHalHidl.cpp | 147 Return<void> ret = mEffect->prepareForProcessing( local 157 if (!ret.isOk() || retval != Result::OK) { 158 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION; 192 status_t ret = mEfGroup->wait( local 203 if (ret == -EAGAIN || ret == -EINTR) { 207 return ret; 211 Return<Result> ret = mEffect->setProcessBuffers( local 214 if (ret.isOk() && ret 240 Return<void> ret = mEffect->command(cmdCode, hidlData, *replySize, local 256 Return<void> ret = mEffect->getDescriptor( local 278 Return<void> ret; local 315 Return<Result> ret = cmdCode == EFFECT_CMD_SET_CONFIG ? local [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
H A D | EriManager.java | 312 EriDisplayInformation ret; 319 ret = new EriDisplayInformation( 323 return ret; 330 ret = new EriDisplayInformation( 337 ret = new EriDisplayInformation( 344 ret = new EriDisplayInformation( 353 ret = new EriDisplayInformation( 360 ret = new EriDisplayInformation( 367 ret = new EriDisplayInformation( 374 ret [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | MetaData.cpp | 395 status_t ret; local 397 ret = parcel.writeUint32(uint32_t(numItems)); 398 if (ret) { 399 return ret; 408 ret = parcel.writeInt32(key); 409 if (ret) { 410 return ret; 412 ret = parcel.writeUint32(type); 413 if (ret) { 414 return ret; 446 status_t ret = parcel.readInt32(&key); local [all...] |
H A D | ABitReader.cpp | 55 uint32_t ret; local 56 CHECK(getBitsGraceful(n, &ret)); 57 return ret; 61 uint32_t ret = fallback; local 62 (void)getBitsGraceful(n, &ret); 63 return ret;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
H A D | SimulatedGsmCallState.java | 85 DriverCall ret; 87 ret = new DriverCall(); 89 ret.index = index; 90 ret.isMT = mIsMT; 93 ret.state = DriverCall.stateFromCLCC(mState.value()); 98 ret.isMpty = mIsMpty; 99 ret.number = mNumber; 100 ret.TOA = mTOA; 101 ret.isVoice = true; 102 ret [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/SampleCode/ |
H A D | AMRWB_E_SAMPLE.c | 81 int ret = 0; local 113 ret = -1; 119 ret = -1; 156 ret = voGetAMRWBEncAPI(&AudioAPI); 157 if(ret) 159 ret = -1; 166 ret = AudioAPI.Init(&hCodec, VO_AUDIO_CodingAMRWB, &useData); 168 if(ret) 170 ret = -1; 178 ret [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_UsbDeviceConnection.cpp | 101 jbyteArray ret = env->NewByteArray(length); 102 if (ret) { 103 jbyte* bytes = (jbyte*)env->GetPrimitiveArrayCritical(ret, 0); 106 env->ReleasePrimitiveArrayCritical(ret, bytes, 0); 109 return ret; 122 int ret = usb_device_claim_interface(device, interfaceID); local 123 if (ret && force && errno == EBUSY) { 126 ret = usb_device_claim_interface(device, interfaceID); 128 return (ret == 0) ? JNI_TRUE : JNI_FALSE; 139 int ret local 156 int ret = usb_device_set_interface(device, interfaceID, alternateSetting); local 168 int ret = usb_device_set_configuration(device, configurationID); local 294 int ret = usb_device_reset(device); local [all...] |
/frameworks/native/libs/binder/tests/ |
H A D | binderDriverInterfaceTest.cpp | 34 int ret; local 41 ret = ioctl(m_binderFd, BINDER_SET_MAX_THREADS, &max_threads); 42 EXPECT_EQ(0, ret); 56 int ret; local 63 ret = ioctl(m_binderFd, BINDER_WRITE_READ, &bwr); 64 EXPECT_EQ(0, ret); 65 if (ret < 0) { 81 int ret; local 83 ret = ioctl(m_binderFd, cmd, arg); 84 EXPECT_EQ(expect_ret, ret); 100 int ret; local 124 int ret; local [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | RadioResponse.java | 76 * @param ret Return object to be included in the response message 78 static void sendMessageResponse(Message msg, Object ret) { argument 80 AsyncResult.forMessage(msg, ret, null); 1093 RadioCapability ret = RIL.convertHalRadioCapability(rc, mRil); 1098 ret = mRil.makeStaticRadioCapability(); 1102 sendMessageResponse(rr.mResult, ret); 1104 mRil.processResponseDone(rr, responseInfo, ret); 1242 int[] ret = new int[var.size()]; 1244 ret[i] = var.get(i); 1247 sendMessageResponse(rr.mResult, ret); [all...] |
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/ |
H A D | ShellUiAutomatorBridge.java | 102 int ret = -1; 104 ret = wm.getDefaultDisplayRotation(); 109 return ret; 116 boolean ret = false; 118 ret = pm.isInteractive(); 123 return ret;
|
/frameworks/native/libs/vr/libvrsensor/ |
H A D | pose_client.cpp | 48 int ret = GetRingBuffer(nullptr); local 49 if (ret < 0) 50 return ret; 59 int ret = GetRingBuffer(nullptr); local 60 if (ret < 0) 72 int ret = GetControllerRingBuffer(controller_id); local 73 if (ret < 0) 74 return ret; 150 int ret = buffer->GetBlobReadOnlyPointer(sizeof(DvrPoseRingBuffer), &addr); local 151 if (ret < 195 int ret = buffer->GetBlobReadOnlyPointer(size, &addr); local 233 int ret = GetRingBuffer(nullptr); local [all...] |