Searched refs:ret (Results 101 - 125 of 417) sorted by relevance

1234567891011>>

/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutUser.java145 ShortcutPackage ret = mPackages.get(packageName);
146 if (ret == null) {
147 ret = new ShortcutPackage(s, this, mUserId, packageName);
148 mPackages.put(packageName, ret);
150 ret.attemptToRestoreIfNeededAndSave(s);
152 return ret;
158 ShortcutLauncher ret = mLaunchers.get(key);
159 if (ret == null) {
160 ret = new ShortcutLauncher(this, mUserId, packageName, launcherUserId);
161 mLaunchers.put(key, ret);
[all...]
/frameworks/native/services/batteryservice/
H A DIBatteryPropertiesRegistrar.cpp53 int32_t ret = reply.readExceptionCode(); local
54 if (ret != 0) {
55 return ret;
57 ret = reply.readInt32();
61 return ret;
/frameworks/wilhelm/src/objects/
H A DCEngine.c151 predestroy_t ret; local
157 ret = predestroy_error;
160 ret = predestroy_ok;
164 ret = predestroy_again;
168 return ret;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A DEvaluationTestBench.c46 H264SwDecRet ret; local
100 ret = H264SwDecInit(&decInst, 0);
101 if (ret != H264SWDEC_OK)
128 ret = H264SwDecDecode(decInst, &decInput, &decOutput);
130 switch(ret)
136 ret = H264SwDecGetInfo(decInst, &decInfo);
137 if (ret != H264SWDEC_OK)
/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp231 status_t ret = mData->mCodec->start(); local
232 if (ret != OK) {
233 return translate_error(ret);
243 media_status_t ret = translate_error(mData->mCodec->stop()); local
250 return ret;
261 status_t ret = mData->mCodec->dequeueInputBuffer(&idx, timeoutUs); local
263 if (ret == OK) {
266 return translate_error(ret);
310 status_t ret = mData->mCodec->queueInputBuffer(idx, offset, size, time, flags, &errorMsg); local
311 return translate_error(ret);
322 status_t ret = mData->mCodec->dequeueOutputBuffer(&idx, &offset, &size, &presentationTimeUs, local
451 AMediaCodecCryptoInfo *ret = (AMediaCodecCryptoInfo*) malloc(cryptosize); local
[all...]
/frameworks/base/core/java/android/net/
H A DPacProxySelector.java97 List<Proxy> ret = Lists.newArrayList();
101 ret.add(java.net.Proxy.NO_PROXY);
105 ret.add(proxy);
110 ret.add(proxy);
114 if (ret.size() == 0) {
115 ret.add(java.net.Proxy.NO_PROXY);
117 return ret;
/frameworks/base/tests/SerialChat/src/com/android/serialchat/
H A DSerialChat.java126 int ret = 0;
128 while (ret >= 0) {
132 ret = mSerialPort.read(mInputBuffer);
133 Log.d(TAG, "read returned " + ret);
134 mInputBuffer.get(buffer, 0, ret);
140 if (ret > 0) {
142 String text = new String(buffer, 0, ret);
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
H A DVolume.java40 String ret = "Volume[" + mDimx + "," + mDimy + "," + mDimz + "]";
41 ret += "(" + mVoxelDim[0] + ", " + mVoxelDim[1] + ", " + mVoxelDim[2] + ")";
43 return ret;
102 int[] ret = new int[split.length];
103 for (int i = 0; i < ret.length; i++) {
104 ret[i] = Integer.decode(split[i].trim());
106 return ret;
H A DCube.java67 String ret = "";
72 ret += ",";
74 ret += s.substring(s.length() - 8);
77 return ret;
/frameworks/av/media/mtp/
H A DMtpDataPacket.cpp422 int ret = ::read(fd, mBuffer, MTP_BUFFER_SIZE);
423 if (ret < MTP_CONTAINER_HEADER_SIZE)
425 mPacketSize = ret;
427 return ret;
433 int ret = ::write(fd, mBuffer, mPacketSize);
434 return (ret < 0 ? ret : 0);
443 int ret = ::write(fd, mBuffer, length);
444 return (ret < 0 ? ret
[all...]
/frameworks/av/media/img_utils/src/
H A DTiffWriter.cpp61 status_t ret = OK; local
93 BAIL_ON_FAIL(writeFileHeader(endOut), ret); local
98 BAIL_ON_FAIL(ifd->writeData(offset, &endOut), ret);
113 if ((ret = sources[i]->writeToStream(endOut, sizeToWrite)) != OK) {
114 ALOGE("%s: Could not write to stream, received %d.", __FUNCTION__, ret);
115 return ret;
117 ZERO_TILL_WORD(&endOut, sizeToWrite, ret);
129 return ret;
133 status_t ret = OK; local
140 BAIL_ON_FAIL(writeFileHeader(endOut), ret); local
359 status_t ret = OK; local
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_AlarmManagerService.cpp248 int ret; local
259 ret = impl->setTime(&tv);
261 if(ret < 0) {
263 ret = -1;
265 return ret;
294 AlarmImpl *ret = new AlarmImplAlarmDriver(fd); local
295 return reinterpret_cast<jlong>(ret);
312 bool ret = false; local
320 ret = hctosys;
323 return ret;
383 AlarmImpl *ret = new AlarmImplTimerFd(fds, epollfd, wall_clock_rtc()); local
416 jlong ret = init_alarm_driver(); local
[all...]
H A Dcom_android_server_ConsumerIrService.cpp55 int ret; local
64 ret = dev->transmit(dev, carrierFrequency, cPattern.get(), patternLength);
66 return reinterpret_cast<jint>(ret);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DSmsMessage.java274 SubmitPdu ret = new SubmitPdu();
279 statusReportRequested, ret);
339 ret.encodedMessage = bo.toByteArray();
340 return ret;
365 byte[] ret = new byte[userData.length+1];
366 ret[0] = (byte) (userData.length & 0xff );
367 System.arraycopy(userData, 0, ret, 1, userData.length);
368 return ret;
418 SubmitPdu ret = new SubmitPdu();
422 statusReportRequested, ret);
456 getSubmitPduHead( String scAddress, String destinationAddress, byte mtiByte, boolean statusReportRequested, SubmitPdu ret) argument
[all...]
/frameworks/compile/slang/
H A Dslang_rs_special_kernel_param.cpp75 std::string ret; local
83 ret += ", ";
84 ret += "'";
85 ret += specialParameterTable[i].name;
86 ret += "'";
88 return ret;
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/loaders/
H A DVolumeLoader.java53 String [] ret = map.keySet().toArray(new String[map.size()]);
54 Arrays.sort(ret);
55 return ret;
108 Properties[]ret = new Properties[f.length];
111 ret[i] = prop;
119 return ret;
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DDeviceDescriptor.cpp91 ssize_t ret = indexOf(item); local
93 if (ret < 0) {
94 ret = SortedVector::add(item);
95 if (ret >= 0) {
100 ret = -1;
102 return ret;
108 ssize_t ret = indexOf(item); local
110 if (ret < 0) {
113 ret = SortedVector::removeAt(ret);
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
H A DTestSystemImpl.java99 PackageInfo ret = mPackages.get(info.packageName);
100 if (ret == null) throw new NameNotFoundException(info.packageName);
101 return ret;
/frameworks/base/tools/preload2/src/com/android/preload/actions/
H A DScanPackageAction.java57 ClientWrapper ret = Main.getUI().showChoiceDialog("Choose a package to scan",
60 if (ret != null) {
61 work(ret.client);
/frameworks/native/services/sensorservice/tests/
H A Dsensorservicetest.cpp89 int32_t ret = loop->pollOnce(-1); local
90 switch (ret) {
104 printf("ugh? poll returned %d\n", ret);
/frameworks/rs/api/
H A Drs_io.spec28 ret: void
43 ret: void
57 ret: bool
72 ret: bool
80 ret: void
96 ret: void
H A Drs_object_info.spec69 ret: uint32_t, "Returns 1 if more than one face is present, 0 otherwise."
81 ret: uint32_t, "Returns 1 if more than one LOD is present, 0 otherwise."
93 ret: uint32_t, "X dimension of the Allocation."
104 ret: uint32_t, "Y dimension of the Allocation."
116 ret: uint32_t, "Z dimension of the Allocation."
128 ret: rs_element, "Element describing Allocation layout."
139 ret: void
152 ret: bool
168 ret: uint32_t
178 ret
[all...]
/frameworks/av/camera/ndk/impl/
H A DACameraMetadata.h82 status_t ret = OK; local
84 ret = mData.erase(tag);
88 ret = mData.update(tag, reinterpret_cast<const INTERNAL_T*>(data), count);
91 if (ret == OK) {
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
H A DDefaultContainerService.java157 PackageInfoLite ret = new PackageInfoLite();
160 ret.recommendedInstallLocation = PackageHelper.RECOMMEND_FAILED_INVALID_APK;
161 return ret;
174 ret.recommendedInstallLocation = PackageHelper.RECOMMEND_FAILED_INVALID_URI;
176 ret.recommendedInstallLocation = PackageHelper.RECOMMEND_FAILED_INVALID_APK;
179 return ret;
182 ret.packageName = pkg.packageName;
183 ret.splitNames = pkg.splitNames;
184 ret.versionCode = pkg.versionCode;
185 ret
[all...]
/frameworks/base/packages/services/PacProcessor/jni/
H A Dcom_android_pacprocessor_PacNative.cpp110 String16 ret; local
122 if (proxyResolver->GetProxyForURL(url16, host16, &ret) != OK) {
123 String8 ret8(ret);
128 jstring jret = string16ToJstring(env, ret);

Completed in 8918 milliseconds

1234567891011>>