/frameworks/native/opengl/libs/GLES_trace/src/ |
gltrace_transport.cpp | 110 int TCPStream::send(void *buf, size_t len) { 116 int n = write(mSocket, buf, len); 122 int TCPStream::receive(void *data, size_t len) { 128 while (totalRead < len) { 129 int n = read(mSocket, (uint8_t*)data + totalRead, len - totalRead); 160 const uint32_t len = msg->ByteSize(); local 162 mStringBuffer.append((const char *)&len, sizeof(len)); // append header
|
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
glGetActiveUniformBlockName.cpp | 117 GLint len = 0; local 119 GL_UNIFORM_BLOCK_NAME_LENGTH, &len); 120 GLchar* name = (GLchar*)malloc(len); 122 len, NULL, name);
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
BluetoothMasRequestGetMessage.java | 64 int len; local 65 while ((len = stream.read(buf)) != -1) { 66 baos.write(buf, 0, len);
|
/frameworks/opt/emoji/ |
EmojiFactory.cpp | 57 int len = property_get("ro.config.libemoji", emoji_libraries, ""); local 59 if (len > 0) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
ATResponseParser.java | 98 int len = mLine.length(); local 104 if (mNext >= len) { 117 if (mNext >= len) { 122 while (c != '"' && mNext < len) { 129 if (mNext < len && mLine.charAt(mNext++) != ',') { 139 if (mNext == len) { 155 int len; local 156 len = mLine.length(); 157 while (mNext < len && Character.isWhitespace(c)) {
|
/frameworks/wilhelm/src/ |
data.c | 193 size_t len = strlen((const char *) pDataLocator->mURI.URI); local 194 SLchar *myURI = (SLchar *) malloc(len + 1); 198 memcpy(myURI, pDataLocator->mURI.URI, len + 1); 201 if ('\0' != myURI[len]) { 536 size_t len = strlen((const char *) pDataFormat->mMIME.mimeType); local 537 SLchar *myMIME = (SLchar *) malloc(len + 1); 541 memcpy(myMIME, pDataFormat->mMIME.mimeType, len + 1); 543 if ('\0' != myMIME[len]) { [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/libmkv/ |
EbmlWriter.c | 63 int len; local 66 len = 4; 68 len = 3; 70 len = 2; 72 len = 1; 74 Ebml_Serialize(glob, (void *)&class_id, sizeof(class_id), len); local 117 unsigned char len = 0x88; local 120 Ebml_Serialize(glob, &len, sizeof(len), 1);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/nestegg/halloc/src/ |
halloc.c | 58 void * halloc(void * ptr, size_t len) 72 if (! len) 75 p = allocator(0, len + sizeof_hblock); 91 if (len) 93 p = allocator(p, len + sizeof_hblock); 144 void * h_malloc(size_t len) 146 return halloc(0, len); 149 void * h_calloc(size_t n, size_t len) 151 void * ptr = halloc(0, len*=n); 152 return ptr ? memset(ptr, 0, len) : NULL 167 size_t len = strlen(str); local [all...] |
/hardware/intel/common/utils/ituxd/jni/ |
thermalJNI.cpp | 65 int ret, fd, len; local 77 len = snprintf(value, SIZE, "%d\n", val); 78 ret = write(fd, value, len); 81 return (ret == len) ? 0 : -1;
|
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/linux/ |
ml_stored_data.c | 81 inv_error_t inv_write_cal(unsigned char *cal, size_t len) 87 if (len <= 0) { 92 MPL_LOGI("cal data size to write = %d", len); 99 bytesWritten = fwrite(cal, 1, len, fp); 100 if (bytesWritten != len) { 102 bytesWritten, len); 131 * @param len 136 inv_error_t inv_load_cal_V0(unsigned char *calData, size_t len) 142 /*if (len != expLen) { 144 expLen, len); 196 int len = 0; local [all...] |
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/ |
storage_manager.c | 127 long len; local 129 len = length; // Important so we get negative numbers 130 if (len < sizeof(struct data_header_t)) 135 len = MIN(hd->size, len); 136 len = hd->size; 137 len -= sizeof(struct data_header_t); 139 checksum = inv_checksum(data, len); 143 while (len > (long)sizeof(struct data_header_t)) { 147 len -= sizeof(struct data_header_t) [all...] |
/hardware/invensense/60xx/mlsdk/mllite/ |
mlFIFOHW.c | 200 * @param[out] len amount of data currently stored in the fifo. 204 inv_error_t inv_get_fifo_length(uint_fast16_t * len) 210 if (NULL == len) 221 *len = 0; 225 *len = (uint_fast16_t) (fifoBuf[0] << 8); 226 *len += (uint_fast16_t) (fifoBuf[1]); 246 * @param[in] len Amount of data to read out of the fifo 250 inv_error_t inv_read_fifo(unsigned char *data, uint_fast16_t len) 256 (unsigned short)len, data); 275 int len = FIFO_HW_SIZE local [all...] |
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
ml_stored_data.c | 84 inv_error_t inv_write_cal(unsigned char *cal, size_t len) 90 if (len <= 0) { 94 MPL_LOGV("cal data size to write = %d", len); 101 bytesWritten = fwrite(cal, 1, len, fp); 102 if (bytesWritten != len) { 104 bytesWritten, len); 132 * @param len 137 inv_error_t inv_load_cal_V0(unsigned char *calData, size_t len) 143 /*if (len != expLen) { 145 expLen, len); 197 int len = 0; local [all...] |
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
storage_manager.c | 131 long len; local 133 len = length; // Important so we get negative numbers 134 if (data == NULL || len == 0) 136 if (len < sizeof(struct data_header_t)) 141 len = MIN(hd->size, len); 142 len = hd->size; 143 len -= sizeof(struct data_header_t); 145 checksum = inv_checksum(data, len); 149 while (len > (long)sizeof(struct data_header_t)) [all...] |
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
ml_stored_data.c | 84 inv_error_t inv_write_cal(unsigned char *cal, size_t len) 90 if (len <= 0) { 94 MPL_LOGV("cal data size to write = %d", len); 101 bytesWritten = fwrite(cal, 1, len, fp); 102 if (bytesWritten != len) { 104 bytesWritten, len); 132 * @param len 137 inv_error_t inv_load_cal_V0(unsigned char *calData, size_t len) 143 /*if (len != expLen) { 145 expLen, len); 197 int len = 0; local [all...] |
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
storage_manager.c | 131 long len; local 133 len = length; // Important so we get negative numbers 134 if (data == NULL || len == 0) 136 if (len < sizeof(struct data_header_t)) 141 len = MIN(hd->size, len); 142 len = hd->size; 143 len -= sizeof(struct data_header_t); 145 checksum = inv_checksum(data, len); 149 while (len > (long)sizeof(struct data_header_t)) [all...] |
/hardware/qcom/display/msm8084/libhwcomposer/ |
hwc_uevents.cpp | 70 static bool getPanelResetStatus(hwc_context_t* ctx, const char* strUdata, int len) 74 while(((iter_str - strUdata) <= len) && (*iter_str)) { 89 static int getConnectedState(const char* strUdata, int len) 92 while(((iter_str - strUdata) <= len) && (*iter_str)) { 151 static void handle_uevent(hwc_context_t* ctx, const char* udata, int len) 153 bool bpanelReset = getPanelResetStatus(ctx, udata, len); 165 int switch_state = getConnectedState(udata, len); 314 int len = 0; local 326 len = uevent_next_event(udata, (int)sizeof(udata) - 2); 327 handle_uevent(ctx, udata, len); [all...] |
/hardware/qcom/display/msm8960/libhwcomposer/ |
hwc_uevents.cpp | 54 static void handle_uevent(hwc_context_t* ctx, const char* udata, int len) 106 if (str - udata >= len) 181 int len = 0; local 190 len = uevent_next_event(udata, sizeof(udata) - 2); 191 handle_uevent(ctx, udata, len);
|
hwc_vsync.cpp | 66 ssize_t len = -1; local 98 len = pread(fd_timestamp, vdata, MAX_DATA, 0); 99 if (len < 0) {
|
/hardware/qcom/display/msm8960/libqservice/ |
IQService.cpp | 157 int len = read(fd, buf, size - 1); local 158 buf[len] = 0;
|
/hardware/qcom/display/msm8974/libhwcomposer/ |
hwc_uevents.cpp | 55 static void handle_uevent(hwc_context_t* ctx, const char* udata, int len) 98 if (str - udata >= len) 186 int len = 0; local 195 len = uevent_next_event(udata, sizeof(udata) - 2); 196 handle_uevent(ctx, udata, len);
|
hwc_vsync.cpp | 119 int len = pread(pfd[dpy].fd, vdata, MAX_DATA, 0); local 120 if (UNLIKELY(len < 0)) {
|
/hardware/qcom/display/msm8974/libqservice/ |
IQService.cpp | 157 int len = read(fd, buf, size - 1); local 158 buf[len] = 0;
|
/hardware/qcom/gps/msm8960/utils/ |
loc_target.cpp | 73 int len; local 75 len = strlen(line); 76 len = len < line_size - 1? len : line_size - 1; 77 line[len] = '\0';
|
/hardware/qcom/gps/utils/ |
loc_target.cpp | 79 int len; local 81 len = strlen(line); 82 len = len < line_size - 1? len : line_size - 1; 83 line[len] = '\0';
|