/frameworks/av/media/libmedia/ |
D | mediarecorder.cpp | 43 status_t ret = mMediaRecorder->setCamera(camera, proxy); in setCamera() local 44 if (OK != ret) { in setCamera() 45 ALOGV("setCamera failed: %d", ret); in setCamera() 47 return ret; in setCamera() 49 return ret; in setCamera() 68 status_t ret = mMediaRecorder->setPreviewSurface(surface); in setPreviewSurface() local 69 if (OK != ret) { in setPreviewSurface() 70 ALOGV("setPreviewSurface failed: %d", ret); in setPreviewSurface() 72 return ret; in setPreviewSurface() 74 return ret; in setPreviewSurface() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | IccUtils.java | 46 StringBuilder ret = new StringBuilder(length*2); in bcdToString() local 54 ret.append((char)('0' + v)); in bcdToString() 60 ret.append((char)('0' + v)); in bcdToString() 63 return ret.toString(); in bcdToString() 71 StringBuilder ret = new StringBuilder(length); in cdmaBcdToString() local 78 ret.append((char)('0' + v)); in cdmaBcdToString() 84 ret.append((char)('0' + v)); in cdmaBcdToString() 87 return ret.toString(); in cdmaBcdToString() 106 int ret = 0; in gsmBcdByteToInt() local 110 ret = (b >> 4) & 0xf; in gsmBcdByteToInt() [all …]
|
D | DriverCall.java | 57 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 …]
|
D | RIL.java | 177 onError(int error, Object ret) { in onError() argument 187 AsyncResult.forMessage(mResult, ret, ex); in onError() 2204 Object ret = null; in processSolicited() local 2214 case RIL_REQUEST_GET_SIM_STATUS: ret = responseIccCardStatus(p); break; in processSolicited() 2215 case RIL_REQUEST_ENTER_SIM_PIN: ret = responseInts(p); break; in processSolicited() 2216 case RIL_REQUEST_ENTER_SIM_PUK: ret = responseInts(p); break; in processSolicited() 2217 case RIL_REQUEST_ENTER_SIM_PIN2: ret = responseInts(p); break; in processSolicited() 2218 case RIL_REQUEST_ENTER_SIM_PUK2: ret = responseInts(p); break; in processSolicited() 2219 case RIL_REQUEST_CHANGE_SIM_PIN: ret = responseInts(p); break; in processSolicited() 2220 case RIL_REQUEST_CHANGE_SIM_PIN2: ret = responseInts(p); break; in processSolicited() [all …]
|
/frameworks/compile/libbcc/lib/Renderscript/runtime/ |
D | convert.ll | 11 ret <2 x float> %1 16 ret <3 x float> %1 21 ret <4 x float> %1 26 ret <2 x float> %1 31 ret <3 x float> %1 36 ret <4 x float> %1 41 ret <2 x float> %1 46 ret <3 x float> %1 51 ret <4 x float> %1 56 ret <2 x float> %1 [all …]
|
/frameworks/base/core/jni/ |
D | android_net_LocalSocketImpl.cpp | 55 int ret; in socket_create() local 57 ret = socket(PF_LOCAL, stream ? SOCK_STREAM : SOCK_DGRAM, 0); in socket_create() 59 if (ret < 0) { in socket_create() 64 return jniCreateFileDescriptor(env,ret); in socket_create() 74 int ret; in socket_connect_local() local 86 ret = socket_local_client_connect( in socket_connect_local() 94 if (ret < 0) { in socket_connect_local() 110 int ret; in socket_bind_local() local 127 ret = socket_local_server_bind(fd, nameUtf8, namespaceId); in socket_bind_local() 131 if (ret < 0) { in socket_bind_local() [all …]
|
/frameworks/av/media/libstagefright/ |
D | MediaExtractor.cpp | 94 MediaExtractor *ret = NULL; in Create() local 99 ret = new FragmentedMP4Extractor(source); in Create() 101 ret = new MPEG4Extractor(source); in Create() 104 ret = new MP3Extractor(source, meta); in Create() 107 ret = new AMRExtractor(source); in Create() 109 ret = new FLACExtractor(source); in Create() 111 ret = new WAVExtractor(source); in Create() 113 ret = new OggExtractor(source); in Create() 115 ret = new MatroskaExtractor(source); in Create() 117 ret = new MPEG2TSExtractor(source); in Create() [all …]
|
/frameworks/av/media/libeffects/factory/ |
D | EffectsFactory.c | 70 int ret = init(); in Effect_Process() local 71 if (ret < 0) { in Effect_Process() 72 return ret; in Effect_Process() 83 ret = (*fx->subItfe)->process(fx->subItfe, inBuffer, outBuffer); in Effect_Process() 85 return ret; in Effect_Process() 95 int ret = init(); in Effect_Command() local 96 if (ret < 0) { in Effect_Command() 97 return ret; in Effect_Command() 108 ret = (*fx->subItfe)->command(fx->subItfe, cmdCode, cmdSize, pCmdData, replySize, pReplyData); in Effect_Command() 110 return ret; in Effect_Command() [all …]
|
/frameworks/av/media/libnbaio/ |
D | NBAIO.cpp | 114 ssize_t ret = via(user, buffer, count); in writeVia() local 115 if (ret > 0) { in writeVia() 116 ALOG_ASSERT((size_t) ret <= count); in writeVia() 117 size_t maxRet = ret; in writeVia() 118 ret = write(buffer, maxRet); in writeVia() 119 if (ret > 0) { in writeVia() 120 ALOG_ASSERT((size_t) ret <= maxRet); in writeVia() 121 accumulator += ret; in writeVia() 125 return accumulator > 0 ? accumulator : ret; in writeVia() 151 ssize_t ret = read(buffer, count, readPTS); in readVia() local [all …]
|
/frameworks/rs/ |
D | rsFifoSocket.cpp | 41 int ret = socketpair(AF_UNIX, SOCK_STREAM, 0, sv); in init() local 59 size_t ret = ::send(sv[0], data, bytes, 0); in writeAsync() local 60 rsAssert(ret == bytes); in writeAsync() 61 if (ret != bytes) { in writeAsync() 62 ALOGE("writeAsync %p %zu ret %zu", data, bytes, ret); in writeAsync() 73 size_t ret = ::recv(sv[0], retData, retBytes, MSG_WAITALL); in writeWaitReturn() local 75 rsAssert(ret == retBytes); in writeWaitReturn() 84 size_t ret = ::recv(sv[1], data, bytes, MSG_WAITALL); in read() local 85 rsAssert(ret == bytes || mShutdown); in read() 88 ret = 0; in read() [all …]
|
D | rs.spec | 11 ret RsMessageToClientType 18 ret RsMessageToClientType 37 ret RsType 46 ret RsAllocation 55 ret RsAllocation 64 ret RsAllocation 69 ret int32_t 161 ret RsElement 169 ret RsElement 264 ret RsSampler [all …]
|
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
D | accessorychat.c | 36 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/support/renderscript/v8/rs_support/ |
D | rsFifoSocket.cpp | 41 int ret = socketpair(AF_UNIX, SOCK_STREAM, 0, sv); in init() local 59 size_t ret = ::send(sv[0], data, bytes, 0); in writeAsync() local 61 rsAssert(ret == bytes); 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() 88 return ret; in read() 103 size_t ret = ::send(sv[1], data, bytes, 0); in readReturn() local
|
/frameworks/base/core/java/android/os/ |
D | AsyncResult.java | 38 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/opt/telephony/src/java/com/android/internal/telephony/test/ |
D | SimulatedGsmCallState.java | 85 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 …]
|
D | SimulatedCommands.java | 733 int[] ret = new int[1]; in getLastCallFailCause() local 735 ret[0] = nextCallFailCause; in getLastCallFailCause() 736 resultSuccess(result, ret); in getLastCallFailCause() 763 int ret[] = new int[2]; in getSignalStrength() local 765 ret[0] = 23; in getSignalStrength() 766 ret[1] = 0; in getSignalStrength() 768 resultSuccess(result, ret); in getSignalStrength() 789 int ret[] = new int [4]; in queryAvailableBandMode() local 791 ret[0] = 4; in queryAvailableBandMode() 792 ret[1] = Phone.BM_US_BAND; in queryAvailableBandMode() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | GsmAlphabet.java | 165 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/av/media/mtp/ |
D | MtpResponsePacket.cpp | 41 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()
|
D | MtpDevice.cpp | 111 int ret = usb_device_control_transfer(device, in open() 115 printf("usb_device_control_transfer returned %d errno: %d\n", ret, errno); in open() 116 if (ret > 0) { in open() 118 ret = usb_device_control_transfer(device, in open() 121 printf("OS descriptor got %d\n", ret); in open() 289 MtpResponseCode ret = readResponse(); in openSession() local 290 if (ret == MTP_RESPONSE_SESSION_ALREADY_OPEN) in openSession() 292 else if (ret != MTP_RESPONSE_OK) in openSession() 313 MtpResponseCode ret = readResponse(); in getDeviceInfo() local 314 if (ret == MTP_RESPONSE_OK) { in getDeviceInfo() [all …]
|
D | MtpEventPacket.cpp | 51 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()
|
D | MtpDataPacket.cpp | 350 int ret = ::read(fd, mBuffer, MTP_BUFFER_SIZE); in read() local 351 if (ret < MTP_CONTAINER_HEADER_SIZE) in read() 353 mPacketSize = ret; in read() 355 return ret; in read() 361 int ret = ::write(fd, mBuffer, mPacketSize); in write() local 362 return (ret < 0 ? ret : 0); in write() 371 int ret = ::write(fd, mBuffer, length); in writeData() local 372 return (ret < 0 ? ret : 0); in writeData() 390 int ret = transfer(request); in read() local 391 if (ret >= 0) in read() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | EriManager.java | 287 EriDisplayInformation ret; in getEriDisplayInformation() local 294 ret = new EriDisplayInformation( in getEriDisplayInformation() 298 return ret; in getEriDisplayInformation() 305 ret = new EriDisplayInformation( in getEriDisplayInformation() 312 ret = new EriDisplayInformation( in getEriDisplayInformation() 319 ret = new EriDisplayInformation( in getEriDisplayInformation() 328 ret = new EriDisplayInformation( in getEriDisplayInformation() 335 ret = new EriDisplayInformation( in getEriDisplayInformation() 342 ret = new EriDisplayInformation( in getEriDisplayInformation() 349 ret = new EriDisplayInformation( in getEriDisplayInformation() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | SmsMessage.java | 275 SubmitPdu ret = new SubmitPdu(); in getSubmitPdu() local 280 statusReportRequested, ret); in getSubmitPdu() 340 ret.encodedMessage = bo.toByteArray(); in getSubmitPdu() 341 return ret; in getSubmitPdu() 366 byte[] ret = new byte[userData.length+1]; in encodeUCS2() 367 ret[0] = (byte) (userData.length & 0xff ); in encodeUCS2() 368 System.arraycopy(userData, 0, ret, 1, userData.length); in encodeUCS2() 369 return ret; in encodeUCS2() 419 SubmitPdu ret = new SubmitPdu(); in getSubmitPdu() local 423 statusReportRequested, ret); in getSubmitPdu() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/SampleCode/ |
D | AMRWB_E_SAMPLE.c | 80 int ret = 0; in encode() local 112 ret = -1; in encode() 118 ret = -1; in encode() 155 ret = voGetAMRWBEncAPI(&AudioAPI); in encode() 156 if(ret) in encode() 158 ret = -1; in encode() 165 ret = AudioAPI.Init(&hCodec, VO_AUDIO_CodingAMRWB, &useData); in encode() 167 if(ret) in encode() 169 ret = -1; in encode() 177 ret = -1; //Invalid magic number in encode() [all …]
|
/frameworks/base/services/common_time/ |
D | common_time_server_packets.cpp | 105 ssize_t ret, tmp; in serializePacket() local 107 ret = serializeHeader(data, length); in serializePacket() 108 if (ret < 0) in serializePacket() 109 return ret; in serializePacket() 111 data += ret; in serializePacket() 112 length -= ret; in serializePacket() 140 return ret + tmp; in serializePacket() 147 ssize_t ret; in deserializePacket() local 155 ret = p.who_is_master_request.deserializePacket(data, length); in deserializePacket() 159 ret = p.who_is_master_response.deserializePacket(data, length); in deserializePacket() [all …]
|