Searched refs:ret (Results 1 - 25 of 339) 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.cpp46 status_t ret = mMediaRecorder->setCamera(camera, proxy); local
47 if (OK != ret) {
48 ALOGV("setCamera failed: %d", ret);
50 return ret;
52 return ret;
71 status_t ret = mMediaRecorder->setPreviewSurface(surface); local
72 if (OK != ret) {
73 ALOGV("setPreviewSurface failed: %d", ret);
75 return ret;
77 return ret;
92 status_t ret = mMediaRecorder->init(); local
123 status_t ret = init(); local
134 status_t ret = mMediaRecorder->setVideoSource(vs); local
154 status_t ret = init(); local
168 status_t ret = mMediaRecorder->setAudioSource(as); local
197 status_t ret = mMediaRecorder->setOutputFormat(of); local
227 status_t ret = mMediaRecorder->setVideoEncoder(ve); local
257 status_t ret = mMediaRecorder->setAudioEncoder(ae); local
283 status_t ret = mMediaRecorder->setOutputFile(path); local
320 status_t ret = mMediaRecorder->setOutputFile(fd, offset, length); local
346 status_t ret = mMediaRecorder->setVideoSize(width, height); local
389 status_t ret = mMediaRecorder->setVideoFrameRate(frames_per_second); local
414 status_t ret = mMediaRecorder->setParameters(params); local
454 status_t ret = mMediaRecorder->prepare(); local
476 status_t ret = mMediaRecorder->getMaxAmplitude(max); local
497 status_t ret = mMediaRecorder->start(); local
519 status_t ret = mMediaRecorder->stop(); local
544 status_t ret = UNKNOWN_ERROR; local
578 status_t ret = mMediaRecorder->close(); local
592 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/av/media/img_utils/src/
H A DInput.cpp35 ssize_t ret = read(skipBuf, 0, amt); local
36 if (ret < 0) {
37 if(ret == NOT_ENOUGH_DATA) {
48 return ret;
50 remaining -= 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/av/media/libnbaio/
H A DNBAIO.cpp54 NBAIO_Format ret; local
55 ret.mSampleRate = sampleRate;
56 ret.mChannelCount = channelCount;
57 ret.mFormat = format;
58 ret.mFrameSize = audio_is_linear_pcm(format) ?
60 return ret;
83 ssize_t ret = via(user, buffer, count); local
84 if (ret > 0) {
85 ALOG_ASSERT((size_t) ret <= count);
86 size_t maxRet = ret;
120 ssize_t ret = read(buffer, count, readPTS); local
[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/base/services/core/jni/
H A Dcom_android_server_PersistentDataBlockService.cpp37 int ret; local
39 ret = ioctl(fd, BLKGETSIZE64, &size);
41 if (ret)
50 int ret; local
59 ret = ioctl(fd, BLKSECDISCARD, &range);
60 if (ret < 0) {
64 ret = ioctl(fd, BLKDISCARD, &range);
65 if (ret < 0) {
75 return ret;
/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/base/core/java/com/android/internal/util/
H A DParcelableString.java43 ParcelableString ret = new ParcelableString();
44 ret.string = in.readString();
45 return ret;
/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.cpp55 int ret; local
66 ret = socket_local_client_connect(
72 if (ret < 0) {
88 int ret; local
104 ret = socket_local_server_bind(fd, nameUtf8.c_str(), namespaceId);
106 if (ret < 0) {
116 int ret; local
125 ret = listen(fd, backlog);
127 if (ret < 0) {
145 int ret; local
182 int ret; local
236 int ret, value; local
284 int ret; local
361 int ret = ioctl(fd, TIOCOUTQ, &pending); local
387 int ret = ioctl(fd, FIONREAD, &avail); local
494 ssize_t ret; local
552 ssize_t ret; local
667 int ret; local
[all...]
/frameworks/av/media/img_utils/include/img_utils/
H A DTiffEntryImpl.h125 status_t ret = OK;
126 BAIL_ON_FAIL(out->write(&mTag, 0, 1), ret);
127 BAIL_ON_FAIL(out->write(&mType, 0, 1), ret);
128 BAIL_ON_FAIL(out->write(&mCount, 0, 1), ret);
132 BAIL_ON_FAIL(out->write(&offset, 0, 1), ret);
143 BAIL_ON_FAIL(out->write(mData.array(), 0, count), ret);
144 ZERO_TILL_WORD(out, dataSize, ret);
146 return ret;
151 status_t ret = OK; local
170 BAIL_ON_FAIL(out->write(mData.array(), 0, count), ret);
185 status_t ret = OK; local
205 status_t ret = OK; local
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DRequestQueue.java67 Pair<BurstHolder, Long> ret = new Pair<BurstHolder, Long>(next, mCurrentFrameNumber);
69 return ret;
80 long ret = INVALID_FRAME;
83 ret = (mCurrentRepeatingFrameNumber == INVALID_FRAME) ? INVALID_FRAME :
90 return ret;
124 long ret = INVALID_FRAME;
128 ret = (mCurrentRepeatingFrameNumber == INVALID_FRAME) ? INVALID_FRAME :
135 ret = calculateLastFrame(burst.getRequestId());
137 frameNumber.setNumber(ret);

Completed in 749 milliseconds

1234567891011>>