Searched defs:ret (Results 101 - 125 of 346) sorted by relevance

1234567891011>>

/frameworks/av/media/img_utils/include/img_utils/
H A DTiffWriter.h304 status_t ret = buildEntry<T>(tag, count, data, &outEntry); local
305 if (ret != OK) {
307 return ret;
/frameworks/av/media/libaaudio/examples/write_sine/src/
H A Dwrite_sine_callback.cpp112 long ret = myData.waker.wait(AAUDIO_OK, NANOS_PER_SECOND); local
118 ret, result, (int) millis,
/frameworks/av/media/libaudioclient/tests/
H A Dtest_create_audiotrack.cpp39 int ret = 0; local
85 ret = 1;
143 return ret;
/frameworks/av/media/libcpustats/
H A DThreadCpuUsage.cpp242 uint32_t ret; local
244 ret = atoi(kHz);
246 ret = 0;
248 if (ret != mCurrentkHz[cpuNum]) {
249 if (ret > 0) {
250 ALOGV("CPU %d frequency %u kHz", cpuNum, ret);
254 mCurrentkHz[cpuNum] = ret;
256 return ret;
/frameworks/av/media/libeffects/proxy/
H A DEffectProxy.cpp185 int ret = 0; local
190 ret = (*pContext->eHandle[index])->process(pContext->eHandle[index],
194 return ret;
/frameworks/av/media/libmedia/
H A DIResourceManagerService.cpp103 bool ret = false; local
106 ret = (bool)reply.readInt32();
108 return ret;
157 bool ret = reclaimResource(callingPid, resources); local
158 reply->writeInt32(ret);
/frameworks/av/media/libnbaio/
H A DMonoPipe.cpp61 ssize_t ret = mFifoWriter.available(); local
62 ALOG_ASSERT(ret <= mMaxFrames);
63 return ret;
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;
119 ssize_t ret = read(buffer, count); local
[all...]
/frameworks/av/media/libstagefright/codecs/gsm/dec/
H A DSoftGSM.cpp319 int ret = 0; local
325 ret += 160;
330 ret += 160;
332 return ret;
/frameworks/av/media/libstagefright/foundation/
H A DABitReader.cpp55 uint32_t ret; local
56 CHECK(getBitsGraceful(n, &ret));
57 return ret;
61 uint32_t ret = fallback; local
62 (void)getBitsGraceful(n, &ret);
63 return ret;
/frameworks/av/media/mtp/
H A DMtpDescriptors.cpp264 ssize_t ret = TEMP_FAILURE_RETRY(write(fd, local
266 if (ret < 0) {
268 ret = TEMP_FAILURE_RETRY(write(fd,
270 if (ret < 0) {
275 ret = TEMP_FAILURE_RETRY(write(fd, &mtp_strings, sizeof(mtp_strings)));
276 if (ret < 0) {
/frameworks/base/cmds/incidentd/src/
H A Dincidentd_util.cpp105 const char** ret = (const char**)malloc(sizeof(const char*) * (numOfArgs + 1)); local
106 ret[0] = first;
109 ret[i] = arg;
111 ret[numOfArgs] = NULL;
112 return ret;
/frameworks/base/cmds/statsd/src/external/
H A DStatsPullerManagerImpl.cpp184 bool ret = kAllPullAtomInfo.find(tagId)->second.puller->Pull(timeNs, data); local
186 return ret;
/frameworks/base/libs/common_time/
H A Dcommon_time_config_service.cpp66 status_t ret = mTimeServer.getInterfaceBinding(tmp); local
68 return ret;
H A Dcommon_time_server_packets.cpp105 ssize_t ret, tmp; local
107 ret = serializeHeader(data, length);
108 if (ret < 0)
109 return ret;
111 data += ret;
112 length -= ret;
140 return ret + tmp;
147 ssize_t ret; local
155 ret = p.who_is_master_request.deserializePacket(data, length);
159 ret
[all...]
H A Ddiag_thread.cpp93 bool ret = false; local
122 ret = true;
124 if (!ret)
127 return ret;
/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/libs/usb/tests/accessorytest/
H A Dhid.c52 int id, ret, offset; local
87 ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR,
89 fprintf(stderr, "ACCESSORY_REGISTER_HID returned %d\n", ret);
100 ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR,
102 fprintf(stderr, "ACCESSORY_SET_HID_REPORT_DESC returned %d errno %d\n", ret, errno);
109 ret = read(fd, buffer, sizeof(buffer));
110 if (ret < 0) {
115 ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR,
116 ACCESSORY_SEND_HID_EVENT, id, 0, buffer, ret, 1000);
117 if (ret <
[all...]
H A Dusb.c46 int ret = 0; local
48 while (current_device && ret >= 0) {
51 ret = usb_device_bulk_transfer(current_device, read_ep, buffer, sizeof(buffer), 1000);
52 if (ret < 0 && errno == ETIMEDOUT)
53 ret = 0;
54 if (ret > 0) {
55 fwrite(buffer, 1, ret, stdout);
65 int ret = 0; local
67 while (ret >= 0) {
72 ret
88 int ret; local
[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);
/frameworks/base/services/core/jni/
H A Dcom_android_server_HardwarePropertiesManagerService.cpp129 Return<void> ret = gThermalHal->getCoolingDevices( local
139 if (!ret.isOk()) {
140 ALOGE("getCoolingDevices failed status: %s", ret.description().c_str());
161 Return<void> ret = gThermalHal->getTemperatures( local
171 if (!ret.isOk()) {
172 ALOGE("getDeviceTemperatures failed status: %s", ret.description().c_str());
208 Return<void> ret = gThermalHal->getCpuUsages( local
218 if (!ret.isOk()) {
219 ALOGE("getCpuUsages failed status: %s", ret.description().c_str());
/frameworks/base/tests/JankBench/app/src/main/jni/
H A Dtest.cpp41 bool ret = b->init(); local
43 if (ret) {
/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/native/cmds/dumpstate/
H A DDumpstateInternal.cpp162 int ret = TEMP_FAILURE_RETRY(poll(fds, arraysize(fds), 30 * 1000)); local
163 if (ret == -1) {
167 } else if (ret == 0) {
/frameworks/native/cmds/lshal/
H A DLshal.cpp153 hardware::Return<void> ret = base->debug(fdHandle.get(), convert(options)); local
155 if (!ret.isOk()) {
157 + ret.description();

Completed in 411 milliseconds

1234567891011>>