Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/frameworks/av/media/libmedia/
Dmediarecorder.cpp46 status_t ret = mMediaRecorder->setCamera(camera, proxy); in setCamera() local
47 if (OK != ret) { in setCamera()
48 ALOGV("setCamera failed: %d", ret); in setCamera()
50 return ret; in setCamera()
52 return ret; in setCamera()
71 status_t ret = mMediaRecorder->setPreviewSurface(surface); in setPreviewSurface() local
72 if (OK != ret) { in setPreviewSurface()
73 ALOGV("setPreviewSurface failed: %d", ret); in setPreviewSurface()
75 return ret; in setPreviewSurface()
77 return ret; in setPreviewSurface()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccUtils.java44 StringBuilder ret = new StringBuilder(length*2); in bcdToString() local
52 ret.append((char)('0' + v)); in bcdToString()
58 ret.append((char)('0' + v)); in bcdToString()
61 return ret.toString(); in bcdToString()
69 StringBuilder ret = new StringBuilder(length); in cdmaBcdToString() local
76 ret.append((char)('0' + v)); in cdmaBcdToString()
82 ret.append((char)('0' + v)); in cdmaBcdToString()
85 return ret.toString(); in cdmaBcdToString()
104 int ret = 0; in gsmBcdByteToInt() local
108 ret = (b >> 4) & 0xf; in gsmBcdByteToInt()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccUtils.java44 StringBuilder ret = new StringBuilder(length*2); in bcdToString() local
52 ret.append((char)('0' + v)); in bcdToString()
58 ret.append((char)('0' + v)); in bcdToString()
61 return ret.toString(); in bcdToString()
69 StringBuilder ret = new StringBuilder(length); in cdmaBcdToString() local
76 ret.append((char)('0' + v)); in cdmaBcdToString()
82 ret.append((char)('0' + v)); in cdmaBcdToString()
85 return ret.toString(); in cdmaBcdToString()
104 int ret = 0; in gsmBcdByteToInt() local
108 ret = (b >> 4) & 0xf; in gsmBcdByteToInt()
[all …]
DDriverCall.java57 DriverCall ret = new DriverCall(); in fromCLCCLine() local
64 ret.index = p.nextInt(); in fromCLCCLine()
65 ret.isMT = p.nextBoolean(); in fromCLCCLine()
66 ret.state = stateFromCLCC(p.nextInt()); in fromCLCCLine()
68 ret.isVoice = (0 == p.nextInt()); in fromCLCCLine()
69 ret.isMpty = p.nextBoolean(); in fromCLCCLine()
72 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in fromCLCCLine()
77 ret.number = PhoneNumberUtils.extractNetworkPortionAlt(p.nextString()); in fromCLCCLine()
79 if (ret.number.length() == 0) { in fromCLCCLine()
80 ret.number = null; in fromCLCCLine()
[all …]
DRIL.java199 onError(int error, Object ret) { in onError() argument
206 + " error: " + ex + " ret=" + RIL.retToString(mRequest, ret)); in onError()
209 AsyncResult.forMessage(mResult, ret, ex); in onError()
2409 Object ret = null; in processSolicited() local
2419 case RIL_REQUEST_GET_SIM_STATUS: ret = responseIccCardStatus(p); break; in processSolicited()
2420 case RIL_REQUEST_ENTER_SIM_PIN: ret = responseInts(p); break; in processSolicited()
2421 case RIL_REQUEST_ENTER_SIM_PUK: ret = responseInts(p); break; in processSolicited()
2422 case RIL_REQUEST_ENTER_SIM_PIN2: ret = responseInts(p); break; in processSolicited()
2423 case RIL_REQUEST_ENTER_SIM_PUK2: ret = responseInts(p); break; in processSolicited()
2424 case RIL_REQUEST_CHANGE_SIM_PIN: ret = responseInts(p); break; in processSolicited()
[all …]
/frameworks/av/media/libnbaio/
DNBAIO.cpp54 NBAIO_Format ret; in Format_from_SR_C() local
55 ret.mSampleRate = sampleRate; in Format_from_SR_C()
56 ret.mChannelCount = channelCount; in Format_from_SR_C()
57 ret.mFormat = format; in Format_from_SR_C()
58 ret.mFrameSize = audio_is_linear_pcm(format) ? in Format_from_SR_C()
60 return ret; in Format_from_SR_C()
83 ssize_t ret = via(user, buffer, count); in writeVia() local
84 if (ret > 0) { in writeVia()
85 ALOG_ASSERT((size_t) ret <= count); in writeVia()
86 size_t maxRet = ret; in writeVia()
[all …]
/frameworks/rs/api/
Drs_core_math.spec23 ret: #3#1
35 ret: #3#1
47 ret: #3#1
59 ret: #3#1
69 ret: #2#1
80 ret: #2#1
91 ret: #2#1
102 ret: #2#1
113 ret: #2#1
124 ret: #2#1
[all …]
/frameworks/base/cmds/interrupter/
Dinterrupter.h29 #define CALL_FUNCTION_1(sym, ret, type1) \ argument
30 ret (*real_##sym)(type1) = NULL; \
31 ret sym(type1 arg1) { \
36 #define CALL_FUNCTION_2(sym, ret, type1, type2) \ argument
37 ret (*real_##sym)(type1, type2) = NULL; \
38 ret sym(type1 arg1, type2 arg2) { \
43 #define CALL_FUNCTION_3(sym, ret, type1, type2, type3) \ argument
44 ret (*real_##sym)(type1, type2, type3) = NULL; \
45 ret sym(type1 arg1, type2 arg2, type3 arg3) { \
50 #define CALL_FUNCTION_4(sym, ret, type1, type2, type3, type4) \ argument
[all …]
/frameworks/av/media/libstagefright/
DMediaExtractor.cpp93 MediaExtractor *ret = NULL; in Create() local
96 ret = new MPEG4Extractor(source); in Create()
98 ret = new MP3Extractor(source, meta); in Create()
101 ret = new AMRExtractor(source); in Create()
103 ret = new FLACExtractor(source); in Create()
105 ret = new WAVExtractor(source); in Create()
107 ret = new OggExtractor(source); in Create()
109 ret = new MatroskaExtractor(source); in Create()
111 ret = new MPEG2TSExtractor(source); in Create()
116 ret = new AACExtractor(source, meta); in Create()
[all …]
/frameworks/base/core/jni/
Dandroid_net_LocalSocketImpl.cpp55 int ret; in socket_connect_local() local
66 ret = socket_local_client_connect( in socket_connect_local()
72 if (ret < 0) { in socket_connect_local()
88 int ret; in socket_bind_local() local
104 ret = socket_local_server_bind(fd, nameUtf8.c_str(), namespaceId); in socket_bind_local()
106 if (ret < 0) { in socket_bind_local()
116 int ret; in socket_listen() local
125 ret = listen(fd, backlog); in socket_listen()
127 if (ret < 0) { in socket_listen()
145 int ret; in socket_accept() local
[all …]
Dandroid_os_SELinux.cpp106 int ret = getpeercon(fd, &tmp); in getPeerCon() local
110 if (ret != -1) { in getPeerCon()
142 int ret = setfscreatecon(const_cast<char *>(context_c_str)); in setFSCreateCon() local
144 ALOGV("setFSCreateCon(%s) => %d", context_c_str, ret); in setFSCreateCon()
146 return (ret == 0) ? true : false; in setFSCreateCon()
175 int ret = setfilecon(path.c_str(), tmp); in setFileCon() local
177 ALOGV("setFileCon(%s, %s) => %d", path.c_str(), context.c_str(), ret); in setFileCon()
178 return (ret == 0) ? true : false; in setFileCon()
202 int ret = getfilecon(path.c_str(), &tmp); in getFileCon() local
206 if (ret != -1) { in getFileCon()
[all …]
/frameworks/av/media/mtp/
DMtpRequestPacket.cpp40 int ret = ::read(fd, mBuffer, mBufferSize); in read() local
41 if (ret < 0) { in read()
43 return ret; in read()
47 if (ret >= MTP_CONTAINER_HEADER_SIZE in read()
48 && ret <= MTP_CONTAINER_HEADER_SIZE + 5 * sizeof(uint32_t) in read()
49 && ((ret - MTP_CONTAINER_HEADER_SIZE) & 3) == 0) { in read()
50 mPacketSize = ret; in read()
51 mParameterCount = (ret - MTP_CONTAINER_HEADER_SIZE) / sizeof(uint32_t); in read()
54 ret = -1; in read()
56 return ret; in read()
DMtpResponsePacket.cpp41 int ret = ::write(fd, mBuffer, mPacketSize); in write() local
42 return (ret < 0 ? ret : 0); in write()
50 int ret = transfer(request); in read() local
51 if (ret >= 0) in read()
52 mPacketSize = ret; in read()
55 return ret; in read()
DMtpEventPacket.cpp51 int ret = ::ioctl(fd, MTP_SEND_EVENT, (unsigned long)&event); in write() local
52 return (ret < 0 ? ret : 0); in write()
60 int ret = transfer(request); in read() local
61 if (ret >= 0) in read()
62 mPacketSize = ret; in read()
65 return ret; in read()
/frameworks/rs/
DrsFifoSocket.cpp39 int ret = socketpair(AF_UNIX, SOCK_STREAM, 0, sv); in init() local
57 size_t ret = ::send(sv[0], data, bytes, 0); in writeAsync() local
58 rsAssert(ret == bytes); in writeAsync()
59 if (ret != bytes) { in writeAsync()
60 ALOGE("writeAsync %p %zu ret %zu", data, bytes, ret); in writeAsync()
71 size_t ret = ::recv(sv[0], retData, retBytes, MSG_WAITALL); in writeWaitReturn() local
73 rsAssert(ret == retBytes); in writeWaitReturn()
82 size_t ret = ::recv(sv[1], data, bytes, MSG_WAITALL); in read() local
83 rsAssert(ret == bytes || mShutdown); in read()
86 ret = 0; in read()
[all …]
/frameworks/av/media/libeffects/factory/
DEffectsFactory.c79 int ret = init(); in Effect_Process() local
80 if (ret < 0) { in Effect_Process()
81 return ret; in Effect_Process()
92 ret = (*fx->subItfe)->process(fx->subItfe, inBuffer, outBuffer); in Effect_Process()
94 return ret; in Effect_Process()
104 int ret = init(); in Effect_Command() local
105 if (ret < 0) { in Effect_Command()
106 return ret; in Effect_Command()
117 ret = (*fx->subItfe)->command(fx->subItfe, cmdCode, cmdSize, pCmdData, replySize, pReplyData); in Effect_Command()
119 return ret; in Effect_Command()
[all …]
/frameworks/base/libs/usb/tests/accessorytest/
Dusb.c46 int ret = 0; in read_thread() local
48 while (current_device && ret >= 0) { in read_thread()
51 ret = usb_device_bulk_transfer(current_device, read_ep, buffer, sizeof(buffer), 1000); in read_thread()
52 if (ret < 0 && errno == ETIMEDOUT) in read_thread()
53 ret = 0; in read_thread()
54 if (ret > 0) { in read_thread()
55 fwrite(buffer, 1, ret, stdout); in read_thread()
65 int ret = 0; in write_thread() local
67 while (ret >= 0) { in write_thread()
72 ret = usb_device_bulk_transfer(current_device, write_ep, line, strlen(line), 1000); in write_thread()
[all …]
/frameworks/av/media/img_utils/include/img_utils/
DTiffEntryImpl.h125 status_t ret = OK; in writeTagInfo() local
126 BAIL_ON_FAIL(out->write(&mTag, 0, 1), ret); in writeTagInfo()
127 BAIL_ON_FAIL(out->write(&mType, 0, 1), ret); in writeTagInfo()
128 BAIL_ON_FAIL(out->write(&mCount, 0, 1), ret); in writeTagInfo()
132 BAIL_ON_FAIL(out->write(&offset, 0, 1), ret); in writeTagInfo()
143 BAIL_ON_FAIL(out->write(mData.array(), 0, count), ret); in writeTagInfo()
144 ZERO_TILL_WORD(out, dataSize, ret); in writeTagInfo()
146 return ret; in writeTagInfo()
151 status_t ret = OK; in writeData() local
170 BAIL_ON_FAIL(out->write(mData.array(), 0, count), ret); in writeData()
[all …]
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
Daccessorychat.c36 int ret = 0; in read_thread() local
38 while (sDevice && ret >= 0) { in read_thread()
41 ret = usb_device_bulk_transfer(sDevice, endpoint, buffer, sizeof(buffer), 1000); in read_thread()
42 if (ret < 0 && errno == ETIMEDOUT) in read_thread()
43 ret = 0; in read_thread()
44 if (ret > 0) { in read_thread()
45 fwrite(buffer, 1, ret, stdout); in read_thread()
56 int ret = 0; in write_thread() local
58 while (ret >= 0) { in write_thread()
63 ret = usb_device_bulk_transfer(sDevice, endpoint, line, strlen(line), 1000); in write_thread()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsConfig.java263 int ret = 0; in getProvisionedValue() local
265 ret = miConfig.getProvisionedValue(item); in getProvisionedValue()
270 if (DBG) Rlog.d(TAG, "getProvisionedValue(): item = " + item + ", ret =" + ret); in getProvisionedValue()
272 return ret; in getProvisionedValue()
286 String ret = "Unknown"; in getProvisionedStringValue() local
288 ret = miConfig.getProvisionedStringValue(item); in getProvisionedStringValue()
293 if (DBG) Rlog.d(TAG, "getProvisionedStringValue(): item = " + item + ", ret =" + ret); in getProvisionedStringValue()
295 return ret; in getProvisionedStringValue()
313 int ret = ImsConfig.OperationStatusConstants.UNKNOWN; in setProvisionedValue() local
319 ret = miConfig.setProvisionedValue(item, value); in setProvisionedValue()
[all …]
/frameworks/base/core/java/android/os/
DAsyncResult.java38 AsyncResult ret; in forMessage() local
40 ret = new AsyncResult (m.obj, r, ex); in forMessage()
42 m.obj = ret; in forMessage()
44 return ret; in forMessage()
51 AsyncResult ret; in forMessage() local
53 ret = new AsyncResult (m.obj, null, null); in forMessage()
55 m.obj = ret; in forMessage()
57 return ret; in forMessage()
/frameworks/base/services/core/jni/
Dcom_android_server_PersistentDataBlockService.cpp37 int ret; in get_block_device_size() local
39 ret = ioctl(fd, BLKGETSIZE64, &size); in get_block_device_size()
41 if (ret) in get_block_device_size()
50 int ret; in wipe_block_device() local
59 ret = ioctl(fd, BLKSECDISCARD, &range); in wipe_block_device()
60 if (ret < 0) { in wipe_block_device()
64 ret = ioctl(fd, BLKDISCARD, &range); in wipe_block_device()
65 if (ret < 0) { in wipe_block_device()
75 return ret; in wipe_block_device()
/frameworks/base/telephony/java/com/android/internal/telephony/
DGsmAlphabet.java165 int ret; in charToGsm() local
167 ret = sCharsToGsmTables[0].get(c, -1); in charToGsm()
169 if (ret == -1) { in charToGsm()
170 ret = sCharsToShiftTables[0].get(c, -1); in charToGsm()
172 if (ret == -1) { in charToGsm()
183 return ret; in charToGsm()
195 int ret; in charToGsmExtended() local
197 ret = sCharsToShiftTables[0].get(c, -1); in charToGsmExtended()
199 if (ret == -1) { in charToGsmExtended()
203 return ret; in charToGsmExtended()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedGsmCallState.java85 DriverCall ret; in toDriverCall() local
87 ret = new DriverCall(); in toDriverCall()
89 ret.index = index; in toDriverCall()
90 ret.isMT = mIsMT; in toDriverCall()
93 ret.state = DriverCall.stateFromCLCC(mState.value()); in toDriverCall()
98 ret.isMpty = mIsMpty; in toDriverCall()
99 ret.number = mNumber; in toDriverCall()
100 ret.TOA = mTOA; in toDriverCall()
101 ret.isVoice = true; in toDriverCall()
102 ret.als = 0; in toDriverCall()
[all …]
/frameworks/av/media/ndk/
DNdkMediaFormat.cpp78 String8 ret; in AMediaFormat_toString() local
82 ret.append(", "); in AMediaFormat_toString()
86 ret.append(name); in AMediaFormat_toString()
87 ret.append(": "); in AMediaFormat_toString()
93 ret.appendFormat("int32(%" PRId32 ")", val); in AMediaFormat_toString()
100 ret.appendFormat("int64(%" PRId64 ")", val); in AMediaFormat_toString()
107 ret.appendFormat("size_t(%zu)", val); in AMediaFormat_toString()
114 ret.appendFormat("float(%f)", val); in AMediaFormat_toString()
121 ret.appendFormat("double(%f)", val); in AMediaFormat_toString()
128 ret.appendFormat("string(%s)", val.c_str()); in AMediaFormat_toString()
[all …]

12345678910>>...15