/external/icu/icu4c/source/common/ |
D | ucol_swp.cpp | 34 utrie_swap(const UDataSwapper *ds, in utrie_swap() argument 45 if(ds==NULL || inData==NULL || (length>=0 && outData==NULL)) { in utrie_swap() 57 trie.signature=ds->readUInt32(inTrie->signature); in utrie_swap() 58 trie.options=ds->readUInt32(inTrie->options); in utrie_swap() 59 trie.indexLength=udata_readInt32(ds, inTrie->indexLength); in utrie_swap() 60 trie.dataLength=udata_readInt32(ds, inTrie->dataLength); in utrie_swap() 89 ds->swapArray32(ds, inTrie, sizeof(UTrieHeader), outTrie, pErrorCode); in utrie_swap() 93 ds->swapArray16(ds, inTrie+1, trie.indexLength*2, outTrie+1, pErrorCode); in utrie_swap() 94 ds->swapArray32(ds, (const uint16_t *)(inTrie+1)+trie.indexLength, trie.dataLength*4, in utrie_swap() 97 … ds->swapArray16(ds, inTrie+1, (trie.indexLength+trie.dataLength)*2, outTrie+1, pErrorCode); in utrie_swap() [all …]
|
D | rbbidata.cpp | 304 ubrk_swap(const UDataSwapper *ds, const void *inData, int32_t length, void *outData, in ubrk_swap() argument 310 if(ds==NULL || inData==NULL || length<-1 || (length>0 && outData==NULL)) { in ubrk_swap() 325 …udata_printError(ds, "ubrk_swap(): data format %02x.%02x.%02x.%02x (format version %02x) is not re… in ubrk_swap() 339 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, status); in ubrk_swap() 352 if (ds->readUInt32(rbbiDH->fMagic) != 0xb1a0 || in ubrk_swap() 354 ds->readUInt32(rbbiDH->fLength) < sizeof(RBBIDataHeader)) in ubrk_swap() 356 udata_printError(ds, "ubrk_swap(): RBBI Data header is invalid.\n"); in ubrk_swap() 364 int32_t breakDataLength = ds->readUInt32(rbbiDH->fLength); in ubrk_swap() 374 … udata_printError(ds, "ubrk_swap(): too few bytes (%d after ICU Data header) for break data.\n", in ubrk_swap() 408 tableStartOffset = ds->readUInt32(rbbiDH->fFTable); in ubrk_swap() [all …]
|
D | udataswp.c | 31 uprv_swapArray16(const UDataSwapper *ds, in uprv_swapArray16() argument 42 if(ds==NULL || inData==NULL || length<0 || (length&1)!=0 || outData==NULL) { in uprv_swapArray16() 61 uprv_copyArray16(const UDataSwapper *ds, in uprv_copyArray16() argument 67 if(ds==NULL || inData==NULL || length<0 || (length&1)!=0 || outData==NULL) { in uprv_copyArray16() 79 uprv_swapArray32(const UDataSwapper *ds, in uprv_swapArray32() argument 90 if(ds==NULL || inData==NULL || length<0 || (length&3)!=0 || outData==NULL) { in uprv_swapArray32() 109 uprv_copyArray32(const UDataSwapper *ds, in uprv_copyArray32() argument 115 if(ds==NULL || inData==NULL || length<0 || (length&3)!=0 || outData==NULL) { in uprv_copyArray32() 127 uprv_swapArray64(const UDataSwapper *ds, in uprv_swapArray64() argument 137 if(ds==NULL || inData==NULL || length<0 || (length&7)!=0 || outData==NULL) { in uprv_swapArray64() [all …]
|
D | ucnv_bld.cpp | 1319 ucnv_swap(const UDataSwapper *ds, in ucnv_swap() argument 1348 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in ucnv_swap() 1363 …udata_printError(ds, "ucnv_swap(): data format %02x.%02x.%02x.%02x (format version %02x.%02x) is n… in ucnv_swap() 1379 staticDataSize=ds->readUInt32(inStaticData->structSize); in ucnv_swap() 1383 (uint32_t)length<(staticDataSize=ds->readUInt32(inStaticData->structSize)) in ucnv_swap() 1385 …udata_printError(ds, "ucnv_swap(): too few bytes (%d after header) for an ICU .cnv conversion tabl… in ucnv_swap() 1398 ds->swapArray32(ds, &inStaticData->structSize, 4, in ucnv_swap() 1400 ds->swapArray32(ds, &inStaticData->codepage, 4, in ucnv_swap() 1403 ds->swapInvChars(ds, inStaticData->name, (int32_t)uprv_strlen(inStaticData->name), in ucnv_swap() 1406 udata_printError(ds, "ucnv_swap(): error swapping converter name\n"); in ucnv_swap() [all …]
|
D | uresdata.cpp | 1012 ures_swapResource(const UDataSwapper *ds, in ures_swapResource() argument 1054 count=udata_readInt32(ds, (int32_t)*p); in ures_swapResource() 1056 ds->swapArray32(ds, p, 4, q, pErrorCode); in ures_swapResource() 1058 ds->swapArray16(ds, p+1, 2*count, q+1, pErrorCode); in ures_swapResource() 1061 count=udata_readInt32(ds, (int32_t)*p); in ures_swapResource() 1063 ds->swapArray32(ds, p, 4, q, pErrorCode); in ures_swapResource() 1071 0==ds->compareInvChars(ds, key, -1, in ures_swapResource() 1074 ucol_looksLikeCollationBinary(ds, p+1, count)) in ures_swapResource() 1076 ucol_swap(ds, p+1, count, q+1, pErrorCode); in ures_swapResource() 1096 count=ds->readUInt16(*pKey16); in ures_swapResource() [all …]
|
D | udataswp.h | 88 UDataSwapFn(const UDataSwapper *ds, 131 UDataCompareInvChars(const UDataSwapper *ds, 218 udata_closeSwapper(UDataSwapper *ds); 230 udata_swapDataHeader(const UDataSwapper *ds, 239 udata_readInt16(const UDataSwapper *ds, int16_t x); 246 udata_readInt32(const UDataSwapper *ds, int32_t x); 254 udata_swapInvStringBlock(const UDataSwapper *ds, 259 udata_printError(const UDataSwapper *ds, 272 uprv_ebcdicFromAscii(const UDataSwapper *ds, 281 uprv_copyAscii(const UDataSwapper *ds, [all …]
|
/external/icu/icu4c/source/tools/toolutil/ |
D | swapimpl.cpp | 73 upname_swap(const UDataSwapper *ds, in upname_swap() argument 77 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in upname_swap() 93 …udata_printError(ds, "upname_swap(): data format %02x.%02x.%02x.%02x (format version %02x) is not … in upname_swap() 108 udata_printError(ds, "upname_swap(): too few bytes (%d after header) for pnames.icu\n", in upname_swap() 116 int32_t totalSize=udata_readInt32(ds, inIndexes[PropNameData::IX_TOTAL_SIZE]); in upname_swap() 119 udata_printError(ds, "upname_swap(): too few bytes (%d after header, should be %d) " in upname_swap() 127 udata_readInt32(ds, inIndexes[PropNameData::IX_BYTE_TRIES_OFFSET]); in upname_swap() 130 ds->swapArray32(ds, inBytes, numBytesIndexesAndValueMaps, outBytes, pErrorCode); in upname_swap() 158 uprops_swap(const UDataSwapper *ds, in uprops_swap() argument 168 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in uprops_swap() [all …]
|
/external/strace/tests/ |
D | ipc_shm.c | 37 struct shmid_ds ds; in main() local 44 if (shmctl(id, IPC_STAT, &ds)) in main() 50 id, (unsigned) ds.shm_perm.uid, (unsigned) ds.shm_perm.gid, in main() 51 (unsigned) ds.shm_perm.mode, (unsigned) ds.shm_perm.__key, in main() 52 (unsigned) ds.shm_perm.cuid, (unsigned) ds.shm_perm.cgid, in main() 53 (unsigned) ds.shm_segsz, (unsigned) ds.shm_cpid, in main() 54 (unsigned) ds.shm_lpid, (unsigned) ds.shm_nattch, in main() 55 (unsigned) ds.shm_atime, (unsigned) ds.shm_dtime, in main() 56 (unsigned) ds. shm_ctime); in main() 58 int max = shmctl(0, SHM_INFO, &ds); in main() [all …]
|
D | ipc_msg.c | 37 struct msqid_ds ds; in main() local 44 if (msgctl(id, IPC_STAT, &ds)) in main() 50 id, (unsigned) ds.msg_perm.uid, (unsigned) ds.msg_perm.gid, in main() 51 (unsigned) ds.msg_perm.mode, (unsigned) ds.msg_perm.__key, in main() 52 (unsigned) ds.msg_perm.cuid, (unsigned) ds.msg_perm.cgid, in main() 53 (unsigned) ds.msg_stime, (unsigned) ds.msg_rtime, in main() 54 (unsigned) ds.msg_ctime, (unsigned) ds.msg_qnum, in main() 55 (unsigned) ds.msg_qbytes, (unsigned) ds.msg_lspid, in main() 56 (unsigned) ds.msg_lrpid); in main() 58 int max = msgctl(0, MSG_INFO, &ds); in main() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | gen6_depthstencil.c | 36 struct gen6_depth_stencil_state *ds; in gen6_upload_depth_stencil_state() local 42 ds = brw_state_batch(brw, AUB_TRACE_DEPTH_STENCIL_STATE, in gen6_upload_depth_stencil_state() 43 sizeof(*ds), 64, in gen6_upload_depth_stencil_state() 45 memset(ds, 0, sizeof(*ds)); in gen6_upload_depth_stencil_state() 51 ds->ds0.stencil_enable = 1; in gen6_upload_depth_stencil_state() 52 ds->ds0.stencil_func = in gen6_upload_depth_stencil_state() 54 ds->ds0.stencil_fail_op = in gen6_upload_depth_stencil_state() 56 ds->ds0.stencil_pass_depth_fail_op = in gen6_upload_depth_stencil_state() 58 ds->ds0.stencil_pass_depth_pass_op = in gen6_upload_depth_stencil_state() 60 ds->ds1.stencil_write_mask = ctx->Stencil.WriteMask[0]; in gen6_upload_depth_stencil_state() [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_depthstencil.c | 76 struct svga_depth_stencil_state *ds = CALLOC_STRUCT( svga_depth_stencil_state ); in svga_create_depth_stencil_state() local 82 ds->stencil[0].enabled = templ->stencil[0].enabled; in svga_create_depth_stencil_state() 83 if (ds->stencil[0].enabled) { in svga_create_depth_stencil_state() 84 ds->stencil[0].func = svga_translate_compare_func(templ->stencil[0].func); in svga_create_depth_stencil_state() 85 ds->stencil[0].fail = svga_translate_stencil_op(templ->stencil[0].fail_op); in svga_create_depth_stencil_state() 86 ds->stencil[0].zfail = svga_translate_stencil_op(templ->stencil[0].zfail_op); in svga_create_depth_stencil_state() 87 ds->stencil[0].pass = svga_translate_stencil_op(templ->stencil[0].zpass_op); in svga_create_depth_stencil_state() 92 ds->stencil_mask = templ->stencil[0].valuemask & 0xff; in svga_create_depth_stencil_state() 93 ds->stencil_writemask = templ->stencil[0].writemask & 0xff; in svga_create_depth_stencil_state() 97 ds->stencil[1].enabled = templ->stencil[1].enabled; in svga_create_depth_stencil_state() [all …]
|
/external/webrtc/webrtc/examples/peerconnection/server/ |
D | peer_channel.cc | 75 bool ChannelMember::is_wait_request(DataSocket* ds) const { in is_wait_request() 76 return ds && ds->PathEquals(kRequestPaths[kWait]); in is_wait_request() 106 void ChannelMember::ForwardRequestToPeer(DataSocket* ds, ChannelMember* peer) { in ForwardRequestToPeer() argument 108 assert(ds); in ForwardRequestToPeer() 113 ds->Send("200 OK", true, ds->content_type(), extra_headers, in ForwardRequestToPeer() 114 ds->data()); in ForwardRequestToPeer() 118 peer->QueueResponse("200 OK", ds->content_type(), extra_headers, in ForwardRequestToPeer() 119 ds->data()); in ForwardRequestToPeer() 120 ds->Send("200 OK", true, "text/plain", "", ""); in ForwardRequestToPeer() 124 void ChannelMember::OnClosing(DataSocket* ds) { in OnClosing() argument [all …]
|
D | peer_channel.h | 32 bool is_wait_request(DataSocket* ds) const; 44 void ForwardRequestToPeer(DataSocket* ds, ChannelMember* peer); 46 void OnClosing(DataSocket* ds); 51 void SetWaitingSocket(DataSocket* ds); 83 static bool IsPeerConnection(const DataSocket* ds); 86 ChannelMember* Lookup(DataSocket* ds) const; 90 ChannelMember* IsTargetedRequest(const DataSocket* ds) const; 94 bool AddMember(DataSocket* ds); 102 void OnClosing(DataSocket* ds);
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_dirty_surfaces.h | 51 util_dirty_surfaces_init(struct util_dirty_surfaces *ds) in util_dirty_surfaces_init() argument 53 LIST_INITHEAD(&ds->dirty_list); in util_dirty_surfaces_init() 62 struct util_dirty_surface *ds = LIST_ENTRY(struct util_dirty_surface, p, dirty_list); in util_dirty_surfaces_use_for_sampling() local 65 flush(pipe, &ds->base); in util_dirty_surfaces_use_for_sampling() 77 struct util_dirty_surface *ds = LIST_ENTRY(struct util_dirty_surface, p, dirty_list); in util_dirty_surfaces_use_levels_for_sampling() local 80 if(ds->base.u.tex.level >= first && ds->base.u.tex.level <= last) in util_dirty_surfaces_use_levels_for_sampling() 81 flush(pipe, &ds->base); in util_dirty_surfaces_use_levels_for_sampling() 94 util_dirty_surface_init(struct util_dirty_surface *ds) in util_dirty_surface_init() argument 96 LIST_INITHEAD(&ds->dirty_list); in util_dirty_surface_init() 100 util_dirty_surface_is_dirty(struct util_dirty_surface *ds) in util_dirty_surface_is_dirty() argument [all …]
|
/external/icu/icu4c/source/tools/icuswap/ |
D | icuswap.cpp | 73 const UDataSwapper *ds, 111 UDataSwapper *ds; in main() local 206 ds=udata_openSwapperForInputData(data, length, outIsBigEndian, outCharset, &errorCode); in main() 214 ds->printError=printError; in main() 215 ds->printErrorContext=stderr; in main() 233 length=udata_swapPackage(argv[1], argv[2], ds, data, length, data, &errorCode); in main() 234 udata_closeSwapper(ds); in main() 243 length=udata_swap(ds, data, length, data, &errorCode); in main() 244 udata_closeSwapper(ds); in main() 288 extractPackageName(const UDataSwapper *ds, const char *filename, in extractPackageName() argument [all …]
|
/external/libexif/libexif/ |
D | exif-data.c | 230 unsigned char **d, unsigned int *ds, in exif_data_save_data_entry() argument 255 exif_mnote_data_set_offset (data->priv->md, *ds - 6); in exif_data_save_data_entry() 271 doff = *ds - 6; in exif_data_save_data_entry() 272 ts = *ds + s; in exif_data_save_data_entry() 287 *ds = ts; in exif_data_save_data_entry() 290 *(*d + *ds - 1) = '\0'; in exif_data_save_data_entry() 308 unsigned int ds, ExifLong o, ExifLong s) in exif_data_load_data_thumbnail() argument 311 if ((o + s < o) || (o + s < s) || (o + s > ds) || (o > ds)) { in exif_data_load_data_thumbnail() 360 unsigned int ds, unsigned int offset, unsigned int recursion_depth) in exif_data_load_data_content() argument 382 if ((offset + 2 < offset) || (offset + 2 < 2) || (offset + 2 > ds)) { in exif_data_load_data_content() [all …]
|
D | exif-mem.c | 14 exif_mem_alloc_func (ExifLong ds) in exif_mem_alloc_func() argument 16 return calloc ((size_t) ds, 1); in exif_mem_alloc_func() 21 exif_mem_realloc_func (void *d, ExifLong ds) in exif_mem_realloc_func() argument 23 return realloc (d, (size_t) ds); in exif_mem_realloc_func() 79 exif_mem_alloc (ExifMem *mem, ExifLong ds) in exif_mem_alloc() argument 83 return mem->alloc_func ? mem->alloc_func (ds) : in exif_mem_alloc() 84 mem->realloc_func (NULL, ds); in exif_mem_alloc() 89 exif_mem_realloc (ExifMem *mem, void *d, ExifLong ds) in exif_mem_realloc() argument 91 return (mem && mem->realloc_func) ? mem->realloc_func (d, ds) : NULL; in exif_mem_realloc()
|
/external/e2fsprogs/contrib/ |
D | spd_readdir.c | 205 struct dirent_s *ds, *dnew; in cache_dirstruct() local 219 ds = &dirstruct->dp[dirstruct->num++]; in cache_dirstruct() 220 ds->d_ino = d->d_ino; in cache_dirstruct() 221 ds->d_off = d->d_off; in cache_dirstruct() 222 ds->d_reclen = d->d_reclen; in cache_dirstruct() 223 ds->d_type = d->d_type; in cache_dirstruct() 224 if ((ds->d_name = malloc(strlen(d->d_name)+1)) == NULL) { in cache_dirstruct() 228 strcpy(ds->d_name, d->d_name); in cache_dirstruct() 323 struct dirent_s *ds; in readdir() local 331 ds = &dirstruct->dp[dirstruct->pos++]; in readdir() [all …]
|
/external/valgrind/coregrind/m_demangle/ |
D | dyn-string.c | 121 dyn_string_delete (dyn_string_t ds) in dyn_string_delete() argument 123 free (ds->s); in dyn_string_delete() 124 free (ds); in dyn_string_delete() 132 dyn_string_release (dyn_string_t ds) in dyn_string_release() argument 135 char* result = ds->s; in dyn_string_release() 137 ds->s = NULL; in dyn_string_release() 139 free (ds); in dyn_string_release() 152 dyn_string_resize (dyn_string_t ds, int space) in dyn_string_resize() argument 154 int new_allocated = ds->allocated; in dyn_string_resize() 163 if (new_allocated != ds->allocated) in dyn_string_resize() [all …]
|
/external/jcommander/src/test/java/com/beust/jcommander/dynamic/ |
D | DynamicParameterTest.java | 20 DSimple ds = new DSimple(); in wrongSeparatorShouldThrow() local 21 new JCommander(ds).parse("-D", "a:b", "-D", "c=d"); in wrongSeparatorShouldThrow() 25 DSimple ds = new DSimple(); in simple() local 26 new JCommander(ds).parse(parameters); in simple() 27 Assert.assertEquals(ds.params, Maps.newHashMap("a", "b", "c", "d")); in simple() 39 DSimple ds = new DSimple(); in usage() local 40 new JCommander(ds).usage(new StringBuilder()); in usage() 44 DSimple ds = new DSimple(); in differentAssignment() local 45 new JCommander(ds).parse("-D", "a=b", "-A", "c@d"); in differentAssignment() 46 Assert.assertEquals(ds.params, Maps.newHashMap("a", "b")); in differentAssignment() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
D | BasicPeriodFormatterService.java | 23 private PeriodFormatterDataService ds; field in BasicPeriodFormatterService 32 PeriodFormatterDataService ds = ResourceBasedPeriodFormatterDataService in getInstance() local 34 instance = new BasicPeriodFormatterService(ds); in getInstance() 45 public BasicPeriodFormatterService(PeriodFormatterDataService ds) { in BasicPeriodFormatterService() argument 46 this.ds = ds; in BasicPeriodFormatterService() 54 return new BasicPeriodFormatterFactory(ds); in newPeriodFormatterFactory() 58 return new BasicPeriodBuilderFactory(ds); in newPeriodBuilderFactory() 62 return ds.getAvailableLocales(); in getAvailableLocaleNames()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
D | BasicPeriodFormatterService.java | 21 private PeriodFormatterDataService ds; field in BasicPeriodFormatterService 30 PeriodFormatterDataService ds = ResourceBasedPeriodFormatterDataService in getInstance() local 32 instance = new BasicPeriodFormatterService(ds); in getInstance() 43 public BasicPeriodFormatterService(PeriodFormatterDataService ds) { in BasicPeriodFormatterService() argument 44 this.ds = ds; in BasicPeriodFormatterService() 52 return new BasicPeriodFormatterFactory(ds); in newPeriodFormatterFactory() 56 return new BasicPeriodBuilderFactory(ds); in newPeriodBuilderFactory() 60 return ds.getAvailableLocales(); in getAvailableLocaleNames()
|
/external/freetype/src/autofit/ |
D | afstyles.h | 42 #define STYLE_LATIN( s, S, f, F, ds, df, C ) \ argument 44 ds " " df " style", \ 51 #define META_STYLE_LATIN( s, S, ds ) \ argument 52 STYLE_LATIN( s, S, c2cp, C2CP, ds, \ 55 STYLE_LATIN( s, S, c2sc, C2SC, ds, \ 58 STYLE_LATIN( s, S, ordn, ORDN, ds, \ 61 STYLE_LATIN( s, S, pcap, PCAP, ds, \ 64 STYLE_LATIN( s, S, sinf, SINF, ds, \ 67 STYLE_LATIN( s, S, smcp, SMCP, ds, \ 70 STYLE_LATIN( s, S, subs, SUBS, ds, \ [all …]
|
/external/icu/icu4c/source/i18n/ |
D | uspoof_impl.cpp | 722 uspoof_swap(const UDataSwapper *ds, const void *inData, int32_t length, void *outData, in uspoof_swap() argument 728 if(ds==NULL || inData==NULL || length<-1 || (length>0 && outData==NULL)) { in uspoof_swap() 743 udata_printError(ds, "uspoof_swap(): data format %02x.%02x.%02x.%02x " in uspoof_swap() 759 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, status); in uspoof_swap() 768 if (ds->readUInt32(spoofDH->fMagic) != USPOOF_MAGIC || in uspoof_swap() 769 ds->readUInt32(spoofDH->fLength) < sizeof(SpoofDataHeader)) in uspoof_swap() 771 udata_printError(ds, "uspoof_swap(): Spoof Data header is invalid.\n"); in uspoof_swap() 779 int32_t spoofDataLength = ds->readUInt32(spoofDH->fLength); in uspoof_swap() 789 … udata_printError(ds, "uspoof_swap(): too few bytes (%d after ICU Data header) for spoof data.\n", in uspoof_swap() 817 sectionStart = ds->readUInt32(spoofDH->fCFUKeys); in uspoof_swap() [all …]
|
/external/libvorbis/lib/ |
D | vorbisenc.c | 232 double ds=s-is; in vorbis_encode_global_psych_setup() local 238 ds=x[is]*(1.-ds)+x[is+1]*ds; in vorbis_encode_global_psych_setup() 239 is=(int)ds; in vorbis_encode_global_psych_setup() 240 ds-=is; in vorbis_encode_global_psych_setup() 241 if(ds==0 && is>0){ in vorbis_encode_global_psych_setup() 243 ds=1.; in vorbis_encode_global_psych_setup() 248 g->preecho_thresh[i]=in[is].preecho_thresh[i]*(1.-ds)+in[is+1].preecho_thresh[i]*ds; in vorbis_encode_global_psych_setup() 249 g->postecho_thresh[i]=in[is].postecho_thresh[i]*(1.-ds)+in[is+1].postecho_thresh[i]*ds; in vorbis_encode_global_psych_setup() 260 double ds=s-is; in vorbis_encode_global_stereo() local 271 float kHz=p[is].kHz[i]*(1.-ds)+p[is+1].kHz[i]*ds; in vorbis_encode_global_stereo() [all …]
|