Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 113) sorted by relevance

12345

/hardware/ril/mock-ril/src/cpp/
Dnode_buffer.cpp87 size_t length; member
93 static inline Blob * blob_new(size_t length) { in blob_new() argument
98 blob->data = (char*) malloc(length); in blob_new()
105 V8::AdjustAmountOfExternalAllocatedMemory(sizeof(Blob) + length); in blob_new()
106 blob->length = length; in blob_new()
123 V8::AdjustAmountOfExternalAllocatedMemory(-(sizeof(Blob) + blob->length)); in blob_unref()
142 assert(start + length_ <= parent->length());
154 size_t length() const { return length_; }
181 size_t length = 0; in New() local
183 length = args[0]->Uint32Value(); in New()
[all …]
Dctrl_server.cpp71 Buffer *ObtainBuffer(int length) { in ObtainBuffer() argument
72 Buffer *b = Buffer::New(length); in ObtainBuffer()
76 int WriteAll(int s, void *data, int length) { in WriteAll() argument
79 int count = length; in WriteAll()
81 while (length > 0) { in WriteAll()
82 ret_value = send(s, bytes, length, 0); in WriteAll()
90 length -= ret_value; in WriteAll()
96 int ReadAll(int s, void *data, int length) { in ReadAll() argument
99 int count = length; in ReadAll()
101 while (length != 0) { in ReadAll()
[all …]
Dnode_buffer.h60 static Buffer* New(size_t length); // public constructor
68 size_t length() const { return length_; } in length() function
70 void NewBlob(size_t length);
72 int AsciiWrite(char *string, int offset, int length);
73 int Utf8Write(char *string, int offset, int length);
90 Buffer(size_t length);
Djs_support.cpp96 int ReadFile(const char *fileName, char** data, size_t *length) { in ReadFile() argument
131 if (length != NULL) { in ReadFile()
132 *length = fileLength; in ReadFile()
190 size_t length; in ReadFileToBuffer() local
191 int status = ReadFile(fileName, &buffer, &length); in ReadFileToBuffer()
193 Buffer *buf = Buffer::New(length); in ReadFileToBuffer()
194 memmove(buf->data(), buffer, length); in ReadFileToBuffer()
377 size_t length; in testReadFile() local
382 status = ReadFile("/sdcard/data/no-file", &buffer, &length); in testReadFile()
384 status, buffer, length); in testReadFile()
Drequests.cpp83 req->SerializeToArray(buffer->data(), buffer->length()); in ReqEnterSimPin()
139 DBG("buffer size=%d", buffer->length()); in ReqDial()
141 req->SerializeToArray(buffer->data(), buffer->length()); in ReqDial()
145 DBG("ReqDial X, buffer->length()=%d", buffer->length()); in ReqDial()
168 req->SerializeToArray(buffer->data(), buffer->length()); in ReqHangUp()
196 req->SerializeToArray(buffer->data(), buffer->length()); in ReqSeparateConnection()
224 req->SerializeToArray(buffer->data(), buffer->length()); in ReqSetMute()
254 req->SerializeToArray(buffer->data(), buffer->length()); in ReqScreenState()
362 buffer, buffer->length()); in AddRequest()
392 req->request_, req->buffer_, req->buffer_->length(), req->token_); in Process()
Dresponses.cpp73 rsp->ParseFromArray(buffer->data(), buffer->length()); in RspStrings()
99 rsp->ParseFromArray(buffer->data(), buffer->length()); in RspString()
117 rsp->ParseFromArray(buffer->data(), buffer->length()); in RspIntegers()
140 rsp->ParseFromArray(buffer->data(), buffer->length()); in RspGetSimStatus()
176 rsp->ParseFromArray(buffer->data(), buffer->length()); in RspEnterSimPinData()
196 rsp->ParseFromArray(buffer->data(), buffer->length()); in RspGetCurrentCalls()
251 rsp->ParseFromArray(buffer->data(), buffer->length()); in RspSignalStrength()
293 rsp->ParseFromArray(buffer->data(), buffer->length()); in RspOperator()
325 rsp->ParseFromArray(buffer->data(), buffer->length()); in UnsolRspSignalStrength()
417 if ((buffer == NULL) || (buffer->length() <= 0)) { in SendRilRequestComplete()
[all …]
Dprotobuf_v8.cpp207 return String::New(value.data(), value.length()); in ToJs()
291 message->ParseFromArray(buf->data(), buf->length()); in Parse()
325 SET(String, string(*ascii, ascii.length())); in ToProto()
421 int length = array->Length(); in ToProto() local
422 for (int j = 0; ok && (j < length); j++) { in ToProto()
445 int length = message->ByteSize(); in Serialize() local
446 Buffer* buffer = Buffer::New(length); in Serialize()
511 if (!descriptors.ParseFromArray(buf->data(), buf->length())) { in NewSchema()
/hardware/qcom/gps/loc_api/libloc_api/
Dloc_eng_xtra.cpp59 static int qct_loc_eng_inject_xtra_data(char* data, int length);
112 static int qct_loc_eng_inject_xtra_data(char* data, int length) in qct_loc_eng_inject_xtra_data() argument
123 LOGV ("qct_loc_eng_inject_xtra_data, xtra size = %d, data ptr = 0x%x\n", length, (int) data); in qct_loc_eng_inject_xtra_data()
129 predicted_orbits_data_ptr->total_size = length; in qct_loc_eng_inject_xtra_data()
130 total_parts = (length / XTRA_BLOCK_SIZE); in qct_loc_eng_inject_xtra_data()
143 if (XTRA_BLOCK_SIZE > (length - len_injected)) in qct_loc_eng_inject_xtra_data()
145 predicted_orbits_data_ptr->part_len = length - len_injected; in qct_loc_eng_inject_xtra_data()
/hardware/ti/wlan/wl1271/platforms/os/common/inc/
Dspi_api.h66 int SPI_Write (void* hSPI, TI_UINT8 *data, TI_UINT32 length, request_callback_t fCb, void …
67 int SPI_Read (void* hSPI, TI_UINT8 *data, TI_UINT32 length, request_callback_t fCb, void …
68 int SPI_WriteRead (void* hSPI, TI_UINT8 *data, TI_UINT32 length, TI_UINT8 *rdata, TI_UINT32 rl…
69 int SPI_WriteSync (void* hSPI, TI_UINT8 *data, TI_UINT32 length, int more);
70 int SPI_ReadSync (void* hSPI, TI_UINT8 *data, TI_UINT32 length);
/hardware/broadcom/wlan/bcm4329/src/wl/sys/
Dwl_iw.c548 wrqu->data.length = p - extra + 1; in wl_iw_set_active_scan()
580 wrqu->data.length = p - extra + 1; in wl_iw_set_passive_scan()
604 wrqu->data.length = p - extra + 1; in wl_iw_get_macaddr()
648 wrqu->data.length = p - extra + 1; in wl_iw_set_country()
694 wrqu->data.length = p - extra + 1; in wl_iw_set_power_mode()
725 wrqu->data.length = p - extra + 1; in wl_iw_get_power_mode()
849 wrqu->data.length = p - extra + 1;
928 wrqu->data.length = p - extra + 1;
958 wrqu->data.length = p - extra + 1;
1013 wrqu->data.length = p - extra + 1;
[all …]
/hardware/ti/wlan/wl1271/Test/
DsmeDebug.c235 TI_UINT32 length; in sme_printBssidList() local
239 length = scanResultTable_CalculateBssidListSize (sme->hScanResultTable, TI_FALSE); in sme_printBssidList()
241 blist = os_memoryAlloc(NULL, length); in sme_printBssidList()
245 WLAN_OS_REPORT(("ERROR. sme_printBssidList(): Cannot allocate memory!! length = %d\n", length)); in sme_printBssidList()
249 …scanResultTable_GetBssidList (sme->hScanResultTable, (POS_802_11_BSSID_LIST_EX)blist, &length, TI_… in sme_printBssidList()
253 os_memoryFree(NULL, blist, length); in sme_printBssidList()
/hardware/ti/omap3/omx/ti_omx_config_parser/src/
Dti_video_config_parser.cpp121 int16 length = 0; in ti_video_config_parser() local
126 tmp_ptr += length; in ti_video_config_parser()
127 length = GetNAL_Config(&tmp_ptr, &initbufsize); in ti_video_config_parser()
128 buffer_begin[0] = length & 0xFF; in ti_video_config_parser()
129 buffer_begin[1] = (length >> 8) & 0xFF; in ti_video_config_parser()
130 oscl_memcpy(buffer_begin + 2, tmp_ptr, length); in ti_video_config_parser()
131 buffer_begin += (length + 2); in ti_video_config_parser()
132 tConfigSize += (length + 2); in ti_video_config_parser()
Dti_m4v_config_parser.cpp102 OSCL_EXPORT_REF int16 iGetM4VConfigInfo(uint8 *buffer, int32 length, int32 *width, int32 *height, i… in iGetM4VConfigInfo() argument
107 psBits.numBytes = length; in iGetM4VConfigInfo()
114 if (length == 0) in iGetM4VConfigInfo()
797 OSCL_EXPORT_REF int16 iGetAVCConfigInfo(uint8 *buffer, int32 length, int32 *width, int32 *height, i… in iGetAVCConfigInfo() argument
805 uint8* temp = (uint8 *)OSCL_MALLOC(sizeof(uint8) * length); in iGetAVCConfigInfo()
813 oscl_memcpy(sps, buffer, length); in iGetAVCConfigInfo()
821 if (length < 3) in iGetAVCConfigInfo()
832 while (sps[i++] == 0 && i < length) in iGetAVCConfigInfo()
843 sps_length < length - i - 2) in iGetAVCConfigInfo()
848 if (sps_length >= length - i - 2) in iGetAVCConfigInfo()
[all …]
/hardware/ti/wlan/wl1271/platforms/os/linux/src/
DCmdInterpretWext.c342 data->length = sizeof(struct iw_range); in cmdInterpret_convertAndExecute()
646 end_buf = (char *)(cmdObj->buffer2 + wrqu->data.length); in cmdInterpret_convertAndExecute()
726 iwe.u.data.length = min((TI_UINT8)my_current->Ssid.SsidLength, (TI_UINT8)32); in cmdInterpret_convertAndExecute()
794 iwe.u.data.length = 0; in cmdInterpret_convertAndExecute()
835 iwe.u.data.length = strlen(buf); in cmdInterpret_convertAndExecute()
851 iwe.u.data.length = pIE->Length + 2; in cmdInterpret_convertAndExecute()
864 wrqu->data.length = event - ((char *)cmdObj->buffer2); in cmdInterpret_convertAndExecute()
885 int length; in cmdInterpret_convertAndExecute() local
904 length = wrqu->essid.length - 1; in cmdInterpret_convertAndExecute()
905 if (length > 0) in cmdInterpret_convertAndExecute()
[all …]
/hardware/ti/wlan/wl1271/stad/src/Connection_Managment/
DadmCtrlWpa.c528 TI_UINT8 length; in admCtrlWpa_getInfoElement() local
573 length = sizeof(wpaIePacket_t)-2; in admCtrlWpa_getInfoElement()
578 length -= 2; /* 2: capabilities + 4: keyMng suite, 2: keyMng count*/ in admCtrlWpa_getInfoElement()
583 length -= 6; /* 2: capabilities + 4: keyMng suite, 2: keyMng count*/ in admCtrlWpa_getInfoElement()
586 length -= 6; /* 4: unicast suite, 2: unicast count */ in admCtrlWpa_getInfoElement()
589 length -= 4; /* broadcast suite */ in admCtrlWpa_getInfoElement()
596 pWpaIePacket->length = length; in admCtrlWpa_getInfoElement()
597 *pLength = length+2; in admCtrlWpa_getInfoElement()
599 if (length>=WPA_IE_MIN_DEFAULT_LENGTH) in admCtrlWpa_getInfoElement()
604 if (length>=WPA_IE_MIN_KEY_MNG_SUITE_LENGTH(1)) in admCtrlWpa_getInfoElement()
[all …]
/hardware/ti/wlan/wl1271/CUDK/os/linux/src/
Dcu_wext.c78 bssidList[index-1].Ssid.SsidLength = iwe->u.data.length; in CuWext_FillBssidList()
80 if(iwe->u.data.length != MAX_SSID_LEN) in CuWext_FillBssidList()
138 os_memcpy(buffer, iwe->u.data.pointer, iwe->u.data.length); in CuWext_FillBssidList()
186 pCuWext->req_data.essid.length = sizeof(OS_802_11_SSID) - sizeof(U32); in CuOs_Get_SSID()
193 ssid->SsidLength = pCuWext->req_data.essid.length; in CuOs_Get_SSID()
281 pCuWext->req_data.data.length = sizeof(struct iw_scan_req); in CuOs_Start_Scan()
308 pCuWext->req_data.data.length = IW_SCAN_MAX_DATA; in CuOs_GetBssidList()
318 if(pCuWext->req_data.data.length) in CuOs_GetBssidList()
327 stream.end = (char *)(buffer + pCuWext->req_data.data.length); in CuOs_GetBssidList()
371 pCuWext->req_data.essid.length = ssid->SsidLength; in CuOs_Set_ESSID()
/hardware/ril/mock-ril/src/js/
Dsimulated_radio.js174 for (var i = 0; i < calls.length; i++) {
219 && (index < calls.length)
254 print('callArray.length=' + callArray.length);
255 for (var i = 0; i < callArray.length; i++) {
275 for (var i = 0; i < calls.length; i++) {
353 for (i = 0, j = 0; i < calls.length; i++) {
428 for (var i = 0; i < calls.length; i++) {
464 for (var i = 0; i < calls.length; i++) {
516 for (var i = 0; i < calls.length; i++) {
557 for (var i = 0; i < calls.length; i++) {
[all …]
/hardware/msm7k/libgralloc-qsd8k/
Dgralloc.cpp94 virtual void* mmap(void* start, size_t length, int prot, int flags, int fd, in mmap() argument
96 return ::mmap(start, length, prot, flags, fd, offset); in mmap()
99 virtual int munmap(void* start, size_t length) { in munmap() argument
100 return ::munmap(start, length); in munmap()
Dpmemalloc.h77 virtual void* mmap(void* start, size_t length, int prot, int flags, int fd,
137 virtual void* mmap(void* start, size_t length, int prot, int flags, int fd,
139 virtual int munmap(void* start, size_t length) = 0;
Dframebuffer.cpp214 info.red.length = 8; in mapFrameBufferLocked()
216 info.green.length = 8; in mapFrameBufferLocked()
218 info.blue.length = 8; in mapFrameBufferLocked()
220 info.transp.length = 0; in mapFrameBufferLocked()
295 info.red.offset, info.red.length, in mapFrameBufferLocked()
296 info.green.offset, info.green.length, in mapFrameBufferLocked()
297 info.blue.offset, info.blue.length in mapFrameBufferLocked()
/hardware/broadcom/wlan/bcm4329/src/include/proto/
Deapol.h30 unsigned short length; /* Length of body */ member
62 unsigned short length; /* Key Length (unaligned) */
132 uint8 length;
/hardware/libhardware/modules/gralloc/
Dframebuffer.cpp185 info.red.length = 5; in mapFrameBufferLocked()
187 info.green.length = 6; in mapFrameBufferLocked()
189 info.blue.length = 5; in mapFrameBufferLocked()
191 info.transp.length = 0; in mapFrameBufferLocked()
262 info.red.offset, info.red.length, in mapFrameBufferLocked()
263 info.green.offset, info.green.length, in mapFrameBufferLocked()
264 info.blue.offset, info.blue.length in mapFrameBufferLocked()
/hardware/ti/omap3/omx/ti_omx_config_parser/inc/
Dti_m4v_config_parser.h102 int32 length,
118 int32 length,
127 int32 FindNAL(uint8** nal_pnt, uint8* buffer, int32 length);
/hardware/msm7k/libgralloc/
Dframebuffer.cpp187 info.red.length = 5; in mapFrameBufferLocked()
189 info.green.length = 6; in mapFrameBufferLocked()
191 info.blue.length = 5; in mapFrameBufferLocked()
193 info.transp.length = 0; in mapFrameBufferLocked()
259 info.red.offset, info.red.length, in mapFrameBufferLocked()
260 info.green.offset, info.green.length, in mapFrameBufferLocked()
261 info.blue.offset, info.blue.length in mapFrameBufferLocked()
/hardware/ti/wlan/wl1271/stad/src/Sta_Management/
DassocSM.c128 TI_STATUS assoc_saveAssocReqMessage(assoc_t *pAssocSm, TI_UINT8 *pAssocBuffer, TI_UINT32 length);
486 TI_UINT8 length = 0; in assoc_recv() local
499 … while (length < pFrame->content.assocRsp.rsnIeLen && (pFrame->content.assocRsp.rsnIeLen < 255)) in assoc_recv()
501 curRsnData[0+length] = pRsnIe->hdr[0]; in assoc_recv()
502 curRsnData[1+length] = pRsnIe->hdr[1]; in assoc_recv()
503 … os_memoryCopy(pHandle->hOs, &curRsnData[2+length], (void *)pRsnIe->rsnIeData, pRsnIe->hdr[1]); in assoc_recv()
504 length += pRsnIe->hdr[1] + 2; in assoc_recv()
1584 TI_STATUS assoc_saveAssocRespMessage(assoc_t *pAssocSm, TI_UINT8 *pAssocBuffer, TI_UINT32 length) in assoc_saveAssocRespMessage() argument
1586 if ((pAssocSm==NULL) || (pAssocBuffer==NULL) || (length>=MAX_ASSOC_MSG_LENGTH)) in assoc_saveAssocRespMessage()
1590 os_memoryCopy(pAssocSm->hOs, pAssocSm->assocRespBuffer, pAssocBuffer, length); in assoc_saveAssocRespMessage()
[all …]

12345