Searched refs:ret (Results 1 - 25 of 269) sorted by relevance

1234567891011

/frameworks/av/media/mtp/
H A DMtpResponsePacket.cpp41 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 DMtpEventPacket.cpp51 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 DMtpRequestPacket.cpp39 int ret = ::read(fd, mBuffer, mBufferSize); local
40 if (ret >= 0)
41 mPacketSize = ret;
44 return ret;
/frameworks/av/media/libmedia/
H A Dmediarecorder.cpp43 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 DAsyncResult.java38 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/rs/
H A DrsFifoSocket.cpp41 int ret = socketpair(AF_UNIX, SOCK_STREAM, 0, sv); local
59 size_t ret = ::send(sv[0], data, bytes, 0); local
60 rsAssert(ret == bytes);
61 if (ret != bytes) {
62 ALOGE("writeAsync %p %zu ret %zu", data, bytes, ret);
73 size_t ret = ::recv(sv[0], retData, retBytes, MSG_WAITALL); local
74 //ALOGE("writeWaitReturn %i", ret);
75 rsAssert(ret == retBytes);
84 size_t ret local
105 size_t ret = ::send(sv[1], data, bytes, 0); local
[all...]
/frameworks/av/media/libstagefright/
H A DMediaExtractor.cpp94 MediaExtractor *ret = NULL; local
99 ret = new FragmentedMP4Extractor(source);
101 ret = new MPEG4Extractor(source);
104 ret = new MP3Extractor(source, meta);
107 ret = new AMRExtractor(source);
109 ret = new FLACExtractor(source);
111 ret = new WAVExtractor(source);
113 ret = new OggExtractor(source);
115 ret = new MatroskaExtractor(source);
117 ret
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DDriverCall.java57 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 DSmsResponse.java42 String ret = "{ messageRef = " + messageRef
46 return ret;
H A DIccUtils.java46 StringBuilder ret = new StringBuilder(length*2);
54 ret.append((char)('0' + v));
60 ret.append((char)('0' + v));
63 return ret.toString();
71 StringBuilder ret = new StringBuilder(length);
78 ret.append((char)('0' + v));
84 ret.append((char)('0' + v));
87 return ret.toString();
106 int ret = 0;
110 ret
[all...]
/frameworks/compile/libbcc/runtime/lib/x86_64/
H A Dfloatundixf.S25 ret
27 ret
58 ret
H A Dfloatundisf.S24 ret
31 ret
/frameworks/base/core/tests/coretests/src/android/os/
H A DSELinuxTest.java39 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/support/renderscript/v8/rs_support/
H A DrsFifoSocket.cpp41 int ret = socketpair(AF_UNIX, SOCK_STREAM, 0, sv); local
59 size_t ret = ::send(sv[0], data, bytes, 0); local
60 //ALOGE("writeAsync ret %i", ret);
61 rsAssert(ret == bytes);
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 = ::recv(sv[1], data, bytes, MSG_WAITALL); local
83 rsAssert(ret
103 size_t ret = ::send(sv[1], data, bytes, 0); local
[all...]
/frameworks/av/media/libnbaio/
H A DNBAIO.cpp114 ssize_t ret = via(user, buffer, count); local
115 if (ret > 0) {
116 ALOG_ASSERT((size_t) ret <= count);
117 size_t maxRet = ret;
118 ret = write(buffer, maxRet);
119 if (ret > 0) {
120 ALOG_ASSERT((size_t) ret <= maxRet);
121 accumulator += ret;
125 return accumulator > 0 ? accumulator : ret;
151 ssize_t ret local
[all...]
H A DAudioStreamOutSink.cpp60 ssize_t ret = mStream->write(mStream, buffer, count << mBitShift); local
61 if (ret > 0) {
62 ret >>= mBitShift;
63 mFramesWritten += ret;
67 return ret;
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c36 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 Dandroid_net_LocalSocketImpl.cpp55 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
388 int ret = ioctl(fd, FIONREAD, &avail); local
520 ssize_t ret; local
578 ssize_t ret; local
693 int ret; local
[all...]
/frameworks/av/media/libeffects/factory/
H A DEffectsFactory.c70 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/compile/libbcc/lib/Renderscript/runtime/
H A Drs_core.c50 float4 ret = (float4)0.003921569f; local
51 ret *= convert_float4(c);
52 return ret;
92 float4 ret;
93 ret.x = (m->m[0] * in.x) + (m->m[4] * in.y) + (m->m[8] * in.z) + (m->m[12] * in.w);
94 ret.y = (m->m[1] * in.x) + (m->m[5] * in.y) + (m->m[9] * in.z) + (m->m[13] * in.w);
95 ret.z = (m->m[2] * in.x) + (m->m[6] * in.y) + (m->m[10] * in.z) + (m->m[14] * in.w);
96 ret.w = (m->m[3] * in.x) + (m->m[7] * in.y) + (m->m[11] * in.z) + (m->m[15] * in.w);
97 return ret;
106 float4 ret;
161 float2 ret; local
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dmemalign.c42 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 Dmem_align.c42 int ret; local
50 ret = pMemop->Alloc(CodecID, &MemInfo);
51 if(ret != 0)
65 ret = pMemop->Alloc(CodecID, &MemInfo);
66 if(ret != 0)
/frameworks/compile/libbcc/runtime/lib/i386/
H A Dashldi3.S33 ret
48 ret
53 ret
H A Dlshrdi3.S33 ret
49 ret
54 ret
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothInputStream.java60 int ret = mSocket.read(b, 0, 1);
61 if (ret == 1) {

Completed in 325 milliseconds

1234567891011