/frameworks/av/camera/tests/ |
H A D | main.cpp | 24 int ret = RUN_ALL_TESTS(); local 26 return ret;
|
/frameworks/av/media/mtp/ |
H A D | MtpResponsePacket.cpp | 41 int ret = ::write(fd, mBuffer, mPacketSize); local 42 return (ret < 0 ? ret : 0); 50 int ret = transfer(request); local 51 if (ret >= 0) 52 mPacketSize = ret; 55 return ret;
|
H A D | MtpEventPacket.cpp | 51 int ret = ::ioctl(fd, MTP_SEND_EVENT, (unsigned long)&event); local 52 return (ret < 0 ? ret : 0); 60 int ret = transfer(request); local 61 if (ret >= 0) 62 mPacketSize = ret; 65 return ret;
|
H A D | MtpRequestPacket.cpp | 39 int ret = ::read(fd, mBuffer, mBufferSize); local 40 if (ret >= 0) 41 mPacketSize = ret; 44 return ret;
|
/frameworks/av/media/libmedia/ |
H A D | mediarecorder.cpp | 43 status_t ret = mMediaRecorder->setCamera(camera, proxy); local 44 if (OK != ret) { 45 ALOGV("setCamera failed: %d", ret); 47 return ret; 49 return ret; 68 status_t ret = mMediaRecorder->setPreviewSurface(surface); local 69 if (OK != ret) { 70 ALOGV("setPreviewSurface failed: %d", ret); 72 return ret; 74 return ret; 89 status_t ret = mMediaRecorder->init(); local 120 status_t ret = init(); local 131 status_t ret = mMediaRecorder->setVideoSource(vs); local 151 status_t ret = init(); local 165 status_t ret = mMediaRecorder->setAudioSource(as); local 191 status_t ret = mMediaRecorder->setOutputFormat(of); local 221 status_t ret = mMediaRecorder->setVideoEncoder(ve); local 251 status_t ret = mMediaRecorder->setAudioEncoder(ae); local 277 status_t ret = mMediaRecorder->setOutputFile(path); local 314 status_t ret = mMediaRecorder->setOutputFile(fd, offset, length); local 340 status_t ret = mMediaRecorder->setVideoSize(width, height); local 383 status_t ret = mMediaRecorder->setVideoFrameRate(frames_per_second); local 408 status_t ret = mMediaRecorder->setParameters(params); local 448 status_t ret = mMediaRecorder->prepare(); local 470 status_t ret = mMediaRecorder->getMaxAmplitude(max); local 491 status_t ret = mMediaRecorder->start(); local 513 status_t ret = mMediaRecorder->stop(); local 538 status_t ret = UNKNOWN_ERROR; local 572 status_t ret = mMediaRecorder->close(); local 586 status_t ret = mMediaRecorder->reset(); local [all...] |
/frameworks/base/core/java/android/os/ |
H A D | AsyncResult.java | 38 AsyncResult ret; 40 ret = new AsyncResult (m.obj, r, ex); 42 m.obj = ret; 44 return ret; 51 AsyncResult ret; 53 ret = new AsyncResult (m.obj, null, null); 55 m.obj = ret; 57 return ret;
|
/frameworks/base/cmds/interrupter/ |
H A D | interrupter.h | 29 #define CALL_FUNCTION_1(sym, ret, type1) \ 30 ret (*real_##sym)(type1) = NULL; \ 31 ret sym(type1 arg1) { \ 36 #define CALL_FUNCTION_2(sym, ret, type1, type2) \ 37 ret (*real_##sym)(type1, type2) = NULL; \ 38 ret sym(type1 arg1, type2 arg2) { \ 43 #define CALL_FUNCTION_3(sym, ret, type1, type2, type3) \ 44 ret (*real_##sym)(type1, type2, type3) = NULL; \ 45 ret sym(type1 arg1, type2 arg2, type3 arg3) { \ 50 #define CALL_FUNCTION_4(sym, ret, type [all...] |
/frameworks/rs/ |
H A D | rsFifoSocket.cpp | 39 int ret = socketpair(AF_UNIX, SOCK_STREAM, 0, sv); local 57 size_t ret = ::send(sv[0], data, bytes, 0); local 58 rsAssert(ret == bytes); 59 if (ret != bytes) { 60 ALOGE("writeAsync %p %zu ret %zu", data, bytes, ret); 71 size_t ret = ::recv(sv[0], retData, retBytes, MSG_WAITALL); local 72 //ALOGE("writeWaitReturn %i", ret); 73 rsAssert(ret == retBytes); 82 size_t ret local 103 size_t ret = ::send(sv[1], data, bytes, 0); local [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MediaExtractor.cpp | 93 MediaExtractor *ret = NULL; local 96 ret = new MPEG4Extractor(source); 98 ret = new MP3Extractor(source, meta); 101 ret = new AMRExtractor(source); 103 ret = new FLACExtractor(source); 105 ret = new WAVExtractor(source); 107 ret = new OggExtractor(source); 109 ret = new MatroskaExtractor(source); 111 ret = new MPEG2TSExtractor(source); 116 ret [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | DriverCall.java | 57 DriverCall ret = new DriverCall(); 64 ret.index = p.nextInt(); 65 ret.isMT = p.nextBoolean(); 66 ret.state = stateFromCLCC(p.nextInt()); 68 ret.isVoice = (0 == p.nextInt()); 69 ret.isMpty = p.nextBoolean(); 72 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED; 77 ret.number = PhoneNumberUtils.extractNetworkPortionAlt(p.nextString()); 79 if (ret.number.length() == 0) { 80 ret [all...] |
H A D | SmsResponse.java | 43 String ret = "{ mMessageRef = " + mMessageRef 47 return ret;
|
H A D | IccUtils.java | 44 StringBuilder ret = new StringBuilder(length*2); 52 ret.append((char)('0' + v)); 58 ret.append((char)('0' + v)); 61 return ret.toString(); 69 StringBuilder ret = new StringBuilder(length); 76 ret.append((char)('0' + v)); 82 ret.append((char)('0' + v)); 85 return ret.toString(); 104 int ret = 0; 108 ret [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | SELinuxTest.java | 39 boolean ret; 40 ret = SELinux.checkSELinuxAccess(mycon, mycon, "process", "fork"); 41 assertEquals(ret,"true"); 42 ret = SELinux.checkSELinuxAccess(mycon, mycon, "memprotect", "mmap_zero"); 43 assertEquals(ret,"true");
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
H A D | IccUtils.java | 44 StringBuilder ret = new StringBuilder(length*2); 52 ret.append((char)('0' + v)); 58 ret.append((char)('0' + v)); 61 return ret.toString(); 69 StringBuilder ret = new StringBuilder(length); 76 ret.append((char)('0' + v)); 82 ret.append((char)('0' + v)); 85 return ret.toString(); 104 int ret = 0; 108 ret [all...] |
/frameworks/av/media/libnbaio/ |
H A D | NBAIO.cpp | 160 ssize_t ret = via(user, buffer, count); local 161 if (ret > 0) { 162 ALOG_ASSERT((size_t) ret <= count); 163 size_t maxRet = ret; 164 ret = write(buffer, maxRet); 165 if (ret > 0) { 166 ALOG_ASSERT((size_t) ret <= maxRet); 167 accumulator += ret; 171 return accumulator > 0 ? accumulator : ret; 197 ssize_t ret local [all...] |
H A D | AudioStreamOutSink.cpp | 60 ssize_t ret = mStream->write(mStream, buffer, count << mBitShift); local 61 if (ret > 0) { 62 ret >>= mBitShift; 63 mFramesWritten += ret; 67 return ret;
|
H A D | MonoPipeReader.cpp | 41 ssize_t ret = android_atomic_acquire_load(&mPipe->mRear) - mPipe->mFront; local 42 ALOG_ASSERT((0 <= ret) && (ret <= mMaxFrames)); 43 return ret;
|
/frameworks/av/services/audioflinger/ |
H A D | SchedulingPolicyService.cpp | 34 int ret; local 50 ret = sps->requestPriority(pid, tid, prio, asynchronous); 51 if (ret != DEAD_OBJECT) { 59 return ret;
|
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
H A D | accessorychat.c | 36 int ret = 0; local 38 while (sDevice && ret >= 0) { 41 ret = usb_device_bulk_transfer(sDevice, endpoint, buffer, sizeof(buffer), 1000); 42 if (ret < 0 && errno == ETIMEDOUT) 43 ret = 0; 44 if (ret > 0) { 45 fwrite(buffer, 1, ret, stdout); 56 int ret = 0; local 58 while (ret >= 0) { 63 ret 78 int ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, local 89 int ret; local [all...] |
/frameworks/base/core/jni/ |
H A D | android_net_LocalSocketImpl.cpp | 55 int ret; local 57 ret = socket(PF_LOCAL, stream ? SOCK_STREAM : SOCK_DGRAM, 0); 59 if (ret < 0) { 64 return jniCreateFileDescriptor(env,ret); 74 int ret; local 86 ret = socket_local_client_connect( 94 if (ret < 0) { 110 int ret; local 127 ret = socket_local_server_bind(fd, nameUtf8, namespaceId); 131 if (ret < 141 int ret; local 170 int ret; local 207 int ret; local 261 int ret, value; local 309 int ret; local 386 int ret = ioctl(fd, TIOCOUTQ, &pending); local 412 int ret = ioctl(fd, FIONREAD, &avail); local 544 ssize_t ret; local 602 ssize_t ret; local 717 int ret; local [all...] |
H A D | android_os_SELinux.cpp | 106 int ret = getpeercon(fd, &tmp); local 110 if (ret != -1) { 142 int ret = setfscreatecon(const_cast<char *>(context_c_str)); local 144 ALOGV("setFSCreateCon(%s) => %d", context_c_str, ret); 146 return (ret == 0) ? true : false; 175 int ret = setfilecon(path.c_str(), tmp); local 177 ALOGV("setFileCon(%s, %s) => %d", path.c_str(), context.c_str(), ret); 178 return (ret == 0) ? true : false; 202 int ret = getfilecon(path.c_str(), &tmp); local 206 if (ret ! 228 int ret = getcon(&tmp); local 255 int ret = getpidcon(static_cast<pid_t>(pid), &tmp); local 316 int ret = security_get_boolean_active(name.c_str()); local 341 int ret = security_set_boolean(name.c_str(), value ? 1 : 0); local 418 int ret = selinux_android_restorecon(pathname.c_str()); local [all...] |
/frameworks/av/media/libeffects/factory/ |
H A D | EffectsFactory.c | 70 int ret = init(); local 71 if (ret < 0) { 72 return ret; 83 ret = (*fx->subItfe)->process(fx->subItfe, inBuffer, outBuffer); 85 return ret; 95 int ret = init(); local 96 if (ret < 0) { 97 return ret; 108 ret = (*fx->subItfe)->command(fx->subItfe, cmdCode, cmdSize, pCmdData, replySize, pReplyData); 110 return ret; 116 int ret = init(); local 136 int ret = init(); local 179 int ret = init(); local 197 int ret = init(); local 244 int ret = init(); local 268 int ret; local 332 int ret = init(); local 640 int ret = 0; local [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | memalign.c | 42 int ret; local 50 ret = pMemop->Alloc(CodecID, &MemInfo); 51 if(ret != 0) 65 ret = pMemop->Alloc(CodecID, &MemInfo); 66 if(ret != 0)
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | mem_align.c | 42 int ret; local 50 ret = pMemop->Alloc(CodecID, &MemInfo); 51 if(ret != 0) 65 ret = pMemop->Alloc(CodecID, &MemInfo); 66 if(ret != 0)
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothInputStream.java | 60 int ret = mSocket.read(b, 0, 1); 61 if (ret == 1) {
|