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

1234567891011>>

/frameworks/av/camera/tests/
H A Dmain.cpp24 int ret = RUN_ALL_TESTS(); local
26 return ret;
/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/base/cmds/interrupter/
H A Dinterrupter.h29 #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 DrsFifoSocket.cpp39 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 DMediaExtractor.cpp93 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 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.java43 String ret = "{ mMessageRef = " + mMessageRef
47 return ret;
H A DIccUtils.java44 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 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/base/packages/services/PacProcessor/src/com/android/pacprocessor/
H A DPacNative.java75 String ret = makeProxyRequestNativeLocked(url, host);
76 if ((ret == null) || (ret.length() == 0)) {
78 ret = null;
80 return ret;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DIccUtils.java44 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 DNBAIO.cpp160 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...]
/frameworks/av/services/audioflinger/
H A DSchedulingPolicyService.cpp34 int ret; local
50 ret = sps->requestPriority(pid, tid, prio, asynchronous);
51 if (ret != DEAD_OBJECT) {
59 return ret;
/frameworks/webview/chromium/plat_support/
H A Djni_entry_point.cpp31 jint ret = vm->AttachCurrentThread(&env, NULL); local
32 LOG_ALWAYS_FATAL_IF(ret != JNI_OK, "AttachCurrentThread failed");
/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.cpp54 int ret; local
66 ret = socket_local_client_connect(
74 if (ret < 0) {
90 int ret; local
107 ret = socket_local_server_bind(fd, nameUtf8, namespaceId);
111 if (ret < 0) {
121 int ret; local
130 ret = listen(fd, backlog);
132 if (ret < 0) {
150 int ret; local
187 int ret; local
241 int ret, value; local
289 int ret; local
366 int ret = ioctl(fd, TIOCOUTQ, &pending); local
392 int ret = ioctl(fd, FIONREAD, &avail); local
498 ssize_t ret; local
556 ssize_t ret; local
671 int ret; local
[all...]
H A Dandroid_os_SELinux.cpp106 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/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/base/core/java/android/bluetooth/
H A DBluetoothInputStream.java60 int ret = mSocket.read(b, 0, 1);
61 if (ret == 1) {
/frameworks/av/media/libeffects/factory/
H A DEffectsFactory.c79 int ret = init(); local
80 if (ret < 0) {
81 return ret;
92 ret = (*fx->subItfe)->process(fx->subItfe, inBuffer, outBuffer);
94 return ret;
104 int ret = init(); local
105 if (ret < 0) {
106 return ret;
117 ret = (*fx->subItfe)->command(fx->subItfe, cmdCode, cmdSize, pCmdData, replySize, pReplyData);
119 return ret;
125 int ret = init(); local
145 int ret = init(); local
188 int ret = init(); local
206 int ret = init(); local
253 int ret = init(); local
277 int ret; local
346 int ret = init(); local
414 int ret = init(); local
750 int ret = 0; local
846 int ret = 0; local
[all...]

Completed in 1079 milliseconds

1234567891011>>