Home
last modified time | relevance | path

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

12345

/frameworks/base/media/libmedia/
Dmediarecorder.cpp42 status_t ret = mMediaRecorder->setCamera(camera); in setCamera() local
43 if (OK != ret) { in setCamera()
44 LOGV("setCamera failed: %d", ret); in setCamera()
46 return ret; in setCamera()
48 return ret; in setCamera()
67 status_t ret = mMediaRecorder->setPreviewSurface(surface->getISurface()); in setPreviewSurface() local
68 if (OK != ret) { in setPreviewSurface()
69 LOGV("setPreviewSurface failed: %d", ret); in setPreviewSurface()
71 return ret; in setPreviewSurface()
73 return ret; in setPreviewSurface()
[all …]
/frameworks/base/core/java/android/webkit/
DCacheManager.java269 boolean ret = mDataBase.endCacheTransaction(); in endCacheTransaction()
274 return ret; in endCacheTransaction()
376 CacheResult ret = parseHeaders(statusCode, headers, mimeType); in createCacheFile() local
377 if (ret == null) { in createCacheFile()
382 setupFiles(url, ret); in createCacheFile()
384 ret.outStream = new FileOutputStream(ret.outFile); in createCacheFile()
390 ret.outStream = new FileOutputStream(ret.outFile); in createCacheFile()
401 ret.mimeType = mimeType; in createCacheFile()
404 return ret; in createCacheFile()
529 StringBuffer ret = new StringBuffer(8); in setupFiles() local
[all …]
DWebViewDatabase.java368 boolean ret = cursor.moveToFirst() == true; in hasEntries()
370 return ret; in hasEntries()
574 CacheResult ret = new CacheResult(); in getCache() local
575 ret.localPath = cursor.getString(0); in getCache()
576 ret.lastModified = cursor.getString(1); in getCache()
577 ret.etag = cursor.getString(2); in getCache()
578 ret.expires = cursor.getLong(3); in getCache()
579 ret.expiresString = cursor.getString(4); in getCache()
580 ret.mimeType = cursor.getString(5); in getCache()
581 ret.encoding = cursor.getString(6); in getCache()
[all …]
DCookieManager.java448 StringBuilder ret = new StringBuilder(256); in getCookie() local
452 if (ret.length() > 0) { in getCookie()
453 ret.append(SEMICOLON); in getCookie()
456 ret.append(WHITE_SPACE); in getCookie()
459 ret.append(cookie.name); in getCookie()
460 ret.append(EQUAL); in getCookie()
461 ret.append(cookie.value); in getCookie()
464 if (ret.length() > 0) { in getCookie()
466 Log.v(LOGTAG, "getCookie: uri: " + uri + " value: " + ret); in getCookie()
468 return ret.toString(); in getCookie()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DIccUtils.java43 StringBuilder ret = new StringBuilder(length*2); in bcdToString() local
51 ret.append((char)('0' + v)); in bcdToString()
55 ret.append((char)('0' + v)); in bcdToString()
58 return ret.toString(); in bcdToString()
78 int ret = 0; in gsmBcdByteToInt() local
82 ret = (b >> 4) & 0xf; in gsmBcdByteToInt()
86 ret += (b & 0xf) * 10; in gsmBcdByteToInt()
89 return ret; in gsmBcdByteToInt()
100 int ret = 0; in cdmaBcdByteToInt() local
104 ret = ((b >> 4) & 0xf) * 10; in cdmaBcdByteToInt()
[all …]
DDriverCall.java56 DriverCall ret = new DriverCall(); in fromCLCCLine() local
63 ret.index = p.nextInt(); in fromCLCCLine()
64 ret.isMT = p.nextBoolean(); in fromCLCCLine()
65 ret.state = stateFromCLCC(p.nextInt()); in fromCLCCLine()
67 ret.isVoice = (0 == p.nextInt()); in fromCLCCLine()
68 ret.isMpty = p.nextBoolean(); in fromCLCCLine()
71 ret.numberPresentation = Connection.PRESENTATION_ALLOWED; in fromCLCCLine()
76 ret.number = PhoneNumberUtils.extractNetworkPortion( in fromCLCCLine()
79 if (ret.number.length() == 0) { in fromCLCCLine()
80 ret.number = null; in fromCLCCLine()
[all …]
DGsmAlphabet.java78 int ret; in charToGsm() local
80 ret = charToGsm.get(c, -1); in charToGsm()
82 if (ret == -1) { in charToGsm()
83 ret = charToGsmExtended.get(c, -1); in charToGsm()
85 if (ret == -1) { in charToGsm()
96 return ret; in charToGsm()
111 int ret; in charToGsmExtended() local
113 ret = charToGsmExtended.get(c, -1); in charToGsmExtended()
115 if (ret == -1) { in charToGsmExtended()
119 return ret; in charToGsmExtended()
[all …]
DRIL.java178 onError(int error, Object ret) { in onError() argument
188 AsyncResult.forMessage(mResult, ret, ex); in onError()
2074 Object ret = null; in processSolicited() local
2084 case RIL_REQUEST_GET_SIM_STATUS: ret = responseIccCardStatus(p); break; in processSolicited()
2085 case RIL_REQUEST_ENTER_SIM_PIN: ret = responseInts(p); break; in processSolicited()
2086 case RIL_REQUEST_ENTER_SIM_PUK: ret = responseInts(p); break; in processSolicited()
2087 case RIL_REQUEST_ENTER_SIM_PIN2: ret = responseInts(p); break; in processSolicited()
2088 case RIL_REQUEST_ENTER_SIM_PUK2: ret = responseInts(p); break; in processSolicited()
2089 case RIL_REQUEST_CHANGE_SIM_PIN: ret = responseInts(p); break; in processSolicited()
2090 case RIL_REQUEST_CHANGE_SIM_PIN2: ret = responseInts(p); break; in processSolicited()
[all …]
/frameworks/base/core/jni/
Dandroid_net_LocalSocketImpl.cpp57 int ret; in socket_create() local
59 ret = socket(PF_LOCAL, stream ? SOCK_STREAM : SOCK_DGRAM, 0); in socket_create()
61 if (ret < 0) { in socket_create()
66 return jniCreateFileDescriptor(env,ret); in socket_create()
76 int ret; in socket_connect_local() local
88 ret = socket_local_client_connect( in socket_connect_local()
96 if (ret < 0) { in socket_connect_local()
112 int ret; in socket_bind_local() local
129 ret = socket_local_server_bind(fd, nameUtf8, namespaceId); in socket_bind_local()
133 if (ret < 0) { in socket_bind_local()
[all …]
Dandroid_bluetooth_HeadsetBase.cpp68 int ret; in write_error_check() local
70 ret = write(fd, line, len); in write_error_check()
71 if (ret < 0) { in write_error_check()
76 if (ret != len) { in write_error_check()
77 LOGE("%s: write() only wrote %d of %d bytes", __FUNCTION__, ret, len); in write_error_check()
110 int ret = poll(&pfd, 1, timeout_ms); in get_line() local
111 if (ret < 0) { in get_line()
116 if (ret == 0) { in get_line()
122 "but with an unexpected revents bitmask: %#x\n", ret, pfd.revents); in get_line()
360 int ret = connectAsyncNative(env, obj); in waitForAsyncConnectNative() local
[all …]
Dandroid_bluetooth_common.cpp185 dbus_bool_t ret; in dbus_func_args_async() local
188 ret = dbus_func_args_async_valist(env, conn, in dbus_func_args_async()
194 return ret; in dbus_func_args_async()
258 DBusMessage *ret; in dbus_func_args_timeout() local
261 ret = dbus_func_args_timeout_valist(env, conn, timeout_ms, NULL, in dbus_func_args_timeout()
265 return ret; in dbus_func_args_timeout()
275 DBusMessage *ret; in dbus_func_args() local
278 ret = dbus_func_args_timeout_valist(env, conn, -1, NULL, in dbus_func_args()
282 return ret; in dbus_func_args()
293 DBusMessage *ret; in dbus_func_args_error() local
[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/telephony/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 = isMT; in toDriverCall()
93 ret.state = DriverCall.stateFromCLCC(state.value()); in toDriverCall()
98 ret.isMpty = isMpty; in toDriverCall()
99 ret.number = number; in toDriverCall()
100 ret.TOA = TOA; in toDriverCall()
101 ret.isVoice = true; in toDriverCall()
102 ret.als = 0; in toDriverCall()
[all …]
DSimulatedCommands.java717 int[] ret = new int[1]; in getLastCallFailCause() local
719 ret[0] = nextCallFailCause; in getLastCallFailCause()
720 resultSuccess(result, ret); in getLastCallFailCause()
747 int ret[] = new int[2]; in getSignalStrength() local
749 ret[0] = 23; in getSignalStrength()
750 ret[1] = 0; in getSignalStrength()
752 resultSuccess(result, ret); in getSignalStrength()
773 int ret[] = new int [4]; in queryAvailableBandMode() local
775 ret[0] = 4; in queryAvailableBandMode()
776 ret[1] = Phone.BM_US_BAND; in queryAvailableBandMode()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DEriManager.java285 EriDisplayInformation ret; in getEriDisplayInformation() local
292 ret = new EriDisplayInformation( in getEriDisplayInformation()
296 return ret; in getEriDisplayInformation()
303 ret = new EriDisplayInformation( in getEriDisplayInformation()
310 ret = new EriDisplayInformation( in getEriDisplayInformation()
317 ret = new EriDisplayInformation( in getEriDisplayInformation()
326 ret = new EriDisplayInformation( in getEriDisplayInformation()
333 ret = new EriDisplayInformation( in getEriDisplayInformation()
340 ret = new EriDisplayInformation( in getEriDisplayInformation()
347 ret = new EriDisplayInformation( in getEriDisplayInformation()
[all …]
/frameworks/base/cmds/dumpstate/
Dutils.c40 int ret = 0; in dump_file() local
47 ret = read(fd, buffer, sizeof(buffer)); in dump_file()
48 if (ret > 0) in dump_file()
49 ret = write(STDOUT_FILENO, buffer, ret); in dump_file()
50 } while (ret > 0); in dump_file()
56 return ret; in dump_file()
115 int ret = execv(cmd->path, cmd->args); in run_command() local
116 if (ret) in run_command()
117 fprintf(stderr, "execv %s returned %d\n", cmd->path, ret); in run_command()
118 exit(ret); in run_command()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsMessage.java253 SubmitPdu ret = new SubmitPdu(); in getSubmitPdu() local
258 statusReportRequested, ret); in getSubmitPdu()
317 ret.encodedMessage = bo.toByteArray(); in getSubmitPdu()
318 return ret; in getSubmitPdu()
343 byte[] ret = new byte[userData.length+1]; in encodeUCS2()
344 ret[0] = (byte) (userData.length & 0xff ); in encodeUCS2()
345 System.arraycopy(userData, 0, ret, 1, userData.length); in encodeUCS2()
346 return ret; in encodeUCS2()
396 SubmitPdu ret = new SubmitPdu(); in getSubmitPdu() local
400 statusReportRequested, ret); in getSubmitPdu()
[all …]
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberUtils.java193 StringBuilder ret = new StringBuilder(len); in extractNetworkPortion() local
200 ret.append(c); in extractNetworkPortion()
206 return ret.toString(); in extractNetworkPortion()
219 StringBuilder ret = new StringBuilder(len); in stripSeparators() local
224 ret.append(c); in stripSeparators()
228 return ret.toString(); in stripSeparators()
284 StringBuilder ret = new StringBuilder(); in extractPostDialPortion() local
293 ret.append(c); in extractPostDialPortion()
297 return ret.toString(); in extractPostDialPortion()
621 StringBuilder ret = new StringBuilder(numDigits); in internalGetStrippedReversed()
[all …]
/frameworks/base/libs/rs/
Drs.spec71 ret RsElement
84 ret RsType
89 ret RsAllocation
95 ret RsAllocation
105 ret RsAllocation
115 ret RsAllocation
163 ret RsAdapter1D
190 ret RsAdapter2D
227 ret RsSampler
299 ret RsScript
[all …]
/frameworks/base/core/java/android/text/
DStyled.java42 float ret = 0; in each() local
90 ret = workPaint.measureText(tmp, tmpstart, tmpend); in each()
95 canvas.drawRect(x - ret, top, x, bottom, workPaint); in each()
97 canvas.drawRect(x, top, x + ret, bottom, workPaint); in each()
105 ret = workPaint.measureText(tmp, tmpstart, tmpend); in each()
110 x - ret, y + workPaint.baselineShift, workPaint); in each()
114 ret = workPaint.measureText(tmp, tmpstart, tmpend); in each()
124 ret = workPaint.measureText(tmp, tmpstart, tmpend); in each()
129 ret = replacement.getSize(workPaint, text, start, end, fmi); in each()
134 x - ret, top, y, bottom, workPaint); in each()
[all …]
DSpannableStringInternal.java211 Object[] ret = null; in getSpans() local
243 ret = (Object[]) Array.newInstance(kind, spanCount - i + 1); in getSpans()
244 ret[0] = ret1; in getSpans()
252 int p = getSpanFlags(ret[j]) & Spanned.SPAN_PRIORITY; in getSpans()
259 System.arraycopy(ret, j, ret, j + 1, count - j); in getSpans()
260 ret[j] = spans[i]; in getSpans()
263 ret[count++] = spans[i]; in getSpans()
272 ret = (Object[]) Array.newInstance(kind, 1); in getSpans()
273 ret[0] = ret1; in getSpans()
274 return (T[]) ret; in getSpans()
[all …]
/frameworks/base/tests/CoreTests/android/core/
DPipedStreamTest.java39 int ret = n1 + n2; in next() local
41 n1 = ret; in next()
42 return ret; in next()
151 int ret; in testB()
156 ret = in.read(readBytes, nread, readBytes.length - nread); in testB()
158 if (ret == -1) { in testB()
161 nread += ret; in testB()
235 int ret; in testC()
240 ret = in.read(readBytes, nread, readBytes.length - nread); in testC()
242 if (ret == -1) { in testC()
[all …]
/frameworks/base/core/java/android/pim/vcard/
DVCardParser_V30.java77 String ret = mPreviousLine; in getLine() local
79 return ret; in getLine()
99 String ret = mPreviousLine; in getNonEmptyLine() local
101 return ret; in getNonEmptyLine()
108 String ret = mPreviousLine; in getNonEmptyLine() local
110 return ret; in getNonEmptyLine()
145 String ret = mPreviousLine; in getNonEmptyLine() local
147 return ret; in getNonEmptyLine()
/frameworks/base/telephony/java/android/telephony/gsm/
DSmsMessage.java300 int ret[] = new int[4]; in calculateLength() local
305 ret[1] = septets; in calculateLength()
307 ret[0] = (septets / MAX_USER_DATA_SEPTETS_WITH_HEADER) + 1; in calculateLength()
308 ret[2] = MAX_USER_DATA_SEPTETS_WITH_HEADER in calculateLength()
311 ret[0] = 1; in calculateLength()
312 ret[2] = MAX_USER_DATA_SEPTETS - septets; in calculateLength()
314 ret[3] = ENCODING_7BIT; in calculateLength()
318 ret[1] = messageBody.length(); in calculateLength()
321 ret[0] = (octets / MAX_USER_DATA_BYTES_WITH_HEADER) + 1; in calculateLength()
322 ret[2] = (MAX_USER_DATA_BYTES_WITH_HEADER in calculateLength()
[all …]
/frameworks/base/core/java/android/net/http/
DIdleCache.java69 boolean ret = false; in cacheConnection()
85 ret = true; in cacheConnection()
94 return ret; in cacheConnection()
98 Connection ret = null; in getConnection() local
105 ret = entry.mConnection; in getConnection()
114 return ret; in getConnection()

12345