/external/icu/icu4c/source/test/perf/convperf/ |
D | convperf.cpp | 129 UPerfFunction* pf = new ICUOpenAllConvertersFunction(TRUE, status); in TestICU_CleanOpenAllConverters() local 133 return pf; in TestICU_CleanOpenAllConverters() 138 UPerfFunction* pf = new ICUOpenAllConvertersFunction(FALSE, status); in TestICU_OpenAllConverters() local 142 return pf; in TestICU_OpenAllConverters() 147 …ICUFromUnicodePerfFunction* pf = new ICUFromUnicodePerfFunction("utf-8", (UChar *)utf8_uniSource, … in TestICU_UTF8_FromUnicode() local 151 return pf; in TestICU_UTF8_FromUnicode() 156 …UPerfFunction* pf = new ICUToUnicodePerfFunction("utf-8",(char*)utf8_encSource, UPRV_LENGTHOF(utf8… in TestICU_UTF8_ToUnicode() local 160 return pf; in TestICU_UTF8_ToUnicode() 166 …UPerfFunction* pf = new WinIMultiLanguage2FromUnicodePerfFunction("utf-8",utf8_uniSource, UPRV_LEN… in TestWinIML2_UTF8_FromUnicode() local 170 return pf; in TestWinIML2_UTF8_FromUnicode() [all …]
|
/external/selinux/libsepol/src/ |
D | policydb_convert.c | 14 policy_file_t pf; in policydb_from_image() local 16 policy_file_init(&pf); in policydb_from_image() 17 pf.type = PF_USE_MEMORY; in policydb_from_image() 18 pf.data = data; in policydb_from_image() 19 pf.len = len; in policydb_from_image() 20 pf.handle = handle; in policydb_from_image() 22 if (policydb_read(policydb, &pf, 0)) { in policydb_from_image() 40 policy_file_t pf; in policydb_to_image() local 44 policy_file_init(&pf); in policydb_to_image() 45 pf.type = PF_LEN; in policydb_to_image() [all …]
|
D | policydb_public.c | 9 int sepol_policy_file_create(sepol_policy_file_t ** pf) in sepol_policy_file_create() argument 11 *pf = calloc(1, sizeof(sepol_policy_file_t)); in sepol_policy_file_create() 12 if (!(*pf)) in sepol_policy_file_create() 20 struct policy_file *pf = &spf->pf; in sepol_policy_file_set_mem() local 22 pf->type = PF_LEN; in sepol_policy_file_set_mem() 25 pf->type = PF_USE_MEMORY; in sepol_policy_file_set_mem() 26 pf->data = data; in sepol_policy_file_set_mem() 27 pf->len = len; in sepol_policy_file_set_mem() 28 pf->size = len; in sepol_policy_file_set_mem() 34 struct policy_file *pf = &spf->pf; in sepol_policy_file_set_fp() local [all …]
|
/external/flac/src/test_grabbag/picture/ |
D | main.c | 68 static FLAC__bool test_one_picture(const char *prefix, const PictureFile *pf, const PictureResoluti… in test_one_picture() argument 74 flac_snprintf(s, sizeof(s), "pictures/%s", pf->path); in test_one_picture() 76 …intf(s, sizeof(s), "%u|%s|%s||pictures/%s", (uint32_t)pf->type, pf->mime_type, pf->description, pf… in test_one_picture() 78 …d/%d|pictures/%s", (uint32_t)pf->type, pf->mime_type, pf->description, res->width, res->height, re… in test_one_picture() 82 flac_snprintf(s, sizeof(s), "%s/%s", prefix, pf->path); in test_one_picture() 83 …tion(fn_only? FLAC__STREAM_METADATA_PICTURE_TYPE_FRONT_COVER : pf->type, pf->mime_type, pf->descri… in test_one_picture() 99 if(obj->data.picture.type != (fn_only? FLAC__STREAM_METADATA_PICTURE_TYPE_FRONT_COVER : pf->type)) in test_one_picture() 101 if(strcmp(obj->data.picture.mime_type, pf->mime_type)) in test_one_picture() 103 if(strcmp((const char *)obj->data.picture.description, (const char *)pf->description)) in test_one_picture() 105 if(obj->data.picture.width != pf->width) in test_one_picture() [all …]
|
/external/selinux/libsepol/fuzz/ |
D | binpolicy-fuzzer.c | 10 struct policy_file pf; in write_binary_policy() local 12 policy_file_init(&pf); in write_binary_policy() 13 pf.type = PF_USE_STDIO; in write_binary_policy() 14 pf.fp = outfp; in write_binary_policy() 15 return policydb_write(p, &pf); in write_binary_policy() 22 struct policy_file pf; in LLVMFuzzerTestOneInput() local 27 policy_file_init(&pf); in LLVMFuzzerTestOneInput() 28 pf.type = PF_USE_MEMORY; in LLVMFuzzerTestOneInput() 29 pf.data = (char *) data; in LLVMFuzzerTestOneInput() 30 pf.len = size; in LLVMFuzzerTestOneInput() [all …]
|
/external/libchrome/mojo/public/tools/bindings/generators/cpp_templates/ |
D | struct_data_view_declaration.tmpl | 16 {%- for pf in struct.packed.packed_fields_in_ordinal_order %} 17 {%- set kind = pf.field.kind %} 18 {%- set name = pf.field.name %} 25 {%- if pf.min_version != 0 %} 26 auto* pointer = data_->header_.version >= {{pf.min_version}} && !data_->{{name}}.is_null() 41 {%- if pf.min_version != 0 %} 42 auto* pointer = data_->header_.version >= {{pf.min_version}} 54 {%- if pf.min_version != 0 %} 55 auto data_value = data_->header_.version >= {{pf.min_version}} 65 {%- if pf.min_version != 0 %} [all …]
|
D | struct_data_view_definition.tmpl | 1 {%- for pf in struct.packed.packed_fields_in_ordinal_order %} 2 {%- set kind = pf.field.kind %} 3 {%- set name = pf.field.name %} 8 {%- if pf.min_version != 0 %} 9 auto pointer = data_->header_.version >= {{pf.min_version}} 20 {%- if pf.min_version != 0 %} 21 auto pointer = data_->header_.version >= {{pf.min_version}}
|
/external/libjpeg-turbo/ |
D | tjunittest.c | 103 static void initBuf(unsigned char *buf, int w, int h, int pf, int flags) in initBuf() argument 105 int roffset = tjRedOffset[pf]; in initBuf() 106 int goffset = tjGreenOffset[pf]; in initBuf() 107 int boffset = tjBlueOffset[pf]; in initBuf() 108 int ps = tjPixelSize[pf]; in initBuf() 111 if (pf == TJPF_GRAY) { in initBuf() 122 } else if (pf == TJPF_CMYK) { in initBuf() 183 static int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp, in checkBuf() argument 186 int roffset = tjRedOffset[pf]; in checkBuf() 187 int goffset = tjGreenOffset[pf]; in checkBuf() [all …]
|
D | turbojpeg-jni.c | 219 jint width, jint pitch, jint height, jint pf, jbyteArray dst, in TJCompressor_compress() argument 229 if (pf < 0 || pf >= org_libjpegturbo_turbojpeg_TJ_NUMPF || width < 1 || in TJCompressor_compress() 235 actualPitch = (pitch == 0) ? width * tjPixelSize[pf] : pitch; in TJCompressor_compress() 236 arraySize = (y + height - 1) * actualPitch + (x + width) * tjPixelSize[pf]; in TJCompressor_compress() 248 if (tjCompress2(handle, &srcBuf[y * actualPitch + x * tjPixelSize[pf]], in TJCompressor_compress() 249 width, pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp, in TJCompressor_compress() 265 jint pitch, jint height, jint pf, jbyteArray dst, jint jpegSubsamp, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII() argument 269 pf, dst, jpegSubsamp, jpegQual, flags); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII() 275 jint height, jint pf, jbyteArray dst, jint jpegSubsamp, jint jpegQual, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIII_3BIII() argument 279 pf, dst, jpegSubsamp, jpegQual, flags); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIII_3BIII() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralFormatUnitTest.java | 130 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, in TestApplyPatternAndFormat() local 132 assertEquals("should use first occurrence of the 'odd' keyword", "foo", pf.format(1)); in TestApplyPatternAndFormat() 133 pf.applyPattern("odd{foo} other{bar} other{foobar}"); in TestApplyPatternAndFormat() 134 assertEquals("should use first occurrence of the 'other' keyword", "bar", pf.format(2)); in TestApplyPatternAndFormat() 136 pf.applyPattern("other{foo} odd{bar} other{foobar}"); in TestApplyPatternAndFormat() 137 assertEquals("should use first occurrence of the 'other' keyword", "foo", pf.format(2)); in TestApplyPatternAndFormat() 149 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, "otto{foo} other{bar}"); in TestApplyPatternAndFormat() local 150 assertEquals("should ignore unknown keywords", "bar", pf.format(1)); in TestApplyPatternAndFormat() 300 PluralFormat pf = new PluralFormat(pat); in TestPattern() local 301 assertEquals("should not trim() the pattern", pat, pf.toPattern()); in TestPattern() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | PluralFormatUnitTest.java | 133 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, in TestApplyPatternAndFormat() local 135 assertEquals("should use first occurrence of the 'odd' keyword", "foo", pf.format(1)); in TestApplyPatternAndFormat() 136 pf.applyPattern("odd{foo} other{bar} other{foobar}"); in TestApplyPatternAndFormat() 137 assertEquals("should use first occurrence of the 'other' keyword", "bar", pf.format(2)); in TestApplyPatternAndFormat() 139 pf.applyPattern("other{foo} odd{bar} other{foobar}"); in TestApplyPatternAndFormat() 140 assertEquals("should use first occurrence of the 'other' keyword", "foo", pf.format(2)); in TestApplyPatternAndFormat() 152 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, "otto{foo} other{bar}"); in TestApplyPatternAndFormat() local 153 assertEquals("should ignore unknown keywords", "bar", pf.format(1)); in TestApplyPatternAndFormat() 303 PluralFormat pf = new PluralFormat(pat); in TestPattern() local 304 assertEquals("should not trim() the pattern", pat, pf.toPattern()); in TestPattern() [all …]
|
/external/libwebsockets/lib/core/ |
D | vfs.c | 75 const struct lws_plat_file_ops *pf; in lws_vfs_select_fops() local 97 pf = fops->next; in lws_vfs_select_fops() 98 while (pf) { in lws_vfs_select_fops() 100 while (n < (int)LWS_ARRAY_SIZE(pf->fi) && pf->fi[n].sig) { in lws_vfs_select_fops() 101 if (p >= vfs_path + pf->fi[n].len) in lws_vfs_select_fops() 102 if (!strncmp(p - (pf->fi[n].len - 1), in lws_vfs_select_fops() 103 pf->fi[n].sig, in lws_vfs_select_fops() 104 (unsigned int)(pf->fi[n].len - 1))) { in lws_vfs_select_fops() 106 return pf; in lws_vfs_select_fops() 111 pf = pf->next; in lws_vfs_select_fops()
|
/external/libwebm/ |
D | sample_muxer_metadata.cc | 305 void SampleMuxerMetadata::MakeFrame(const cue_t& c, std::string* pf) { in MakeFrame() argument 306 pf->clear(); in MakeFrame() 307 WriteCueIdentifier(c.identifier, pf); in MakeFrame() 308 WriteCueSettings(c.settings, pf); in MakeFrame() 309 WriteCuePayload(c.payload, pf); in MakeFrame() 313 std::string* pf) { in WriteCueIdentifier() argument 314 pf->append(identifier); in WriteCueIdentifier() 315 pf->push_back('\x0A'); // LF in WriteCueIdentifier() 319 std::string* pf) { in WriteCueSettings() argument 321 pf->push_back('\x0A'); // LF in WriteCueSettings() [all …]
|
/external/selinux/semodule-utils/semodule_link/ |
D | semodule_link.c | 39 struct sepol_policy_file *pf = NULL; in load_module() local 46 if (sepol_policy_file_create(&pf)) { in load_module() 56 sepol_policy_file_set_fp(pf, fp); in load_module() 60 ret = sepol_module_package_read(p, pf, 0); in load_module() 67 sepol_policy_file_free(pf); in load_module() 71 sepol_policy_file_free(pf); in load_module() 83 struct sepol_policy_file *pf; in main() local 157 if (sepol_policy_file_create(&pf)) { in main() 161 sepol_policy_file_set_fp(pf, outfile); in main() 162 if (sepol_module_package_write(base, pf)) { in main() [all …]
|
/external/selinux/libsepol/include/sepol/ |
D | policydb.h | 22 extern int sepol_policy_file_create(sepol_policy_file_t ** pf); 23 extern void sepol_policy_file_free(sepol_policy_file_t * pf); 33 extern void sepol_policy_file_set_mem(sepol_policy_file_t * pf, 40 extern int sepol_policy_file_get_len(sepol_policy_file_t * pf, size_t * len); 47 extern void sepol_policy_file_set_fp(sepol_policy_file_t * pf, FILE * fp); 54 extern void sepol_policy_file_set_handle(sepol_policy_file_t * pf, 113 extern int sepol_policydb_read(sepol_policydb_t * p, sepol_policy_file_t * pf); 120 extern int sepol_policydb_write(sepol_policydb_t * p, sepol_policy_file_t * pf);
|
/external/iputils/ |
D | tftpd.c | 102 void sendfile(struct formats *pf); 103 void recvfile(struct formats *pf); 227 register struct formats *pf; in tftp() local 249 for (pf = formats; pf->f_mode; pf++) in tftp() 250 if (strcmp(pf->f_mode, mode) == 0) in tftp() 252 if (pf->f_mode == 0) { in tftp() 256 ecode = (*pf->f_validate)(filename, tp->th_opcode); in tftp() 262 (*pf->f_recv)(pf); in tftp() 264 (*pf->f_send)(pf); in tftp() 349 void sendfile(struct formats *pf) in sendfile() argument [all …]
|
/external/libpcap/ |
D | pcap-pf.c | 102 struct pcap_pf *pf = pc->priv; in pcap_read_pf() local 185 pf->TotPkts++; in pcap_read_pf() 186 pf->TotDrops += sp->ens_dropped; in pcap_read_pf() 187 pf->TotMissed = sp->ens_ifoverflows; in pcap_read_pf() 188 if (pf->OrigMissed < 0) in pcap_read_pf() 189 pf->OrigMissed = pf->TotMissed; in pcap_read_pf() 202 if (pf->filtering_in_kernel || in pcap_read_pf() 205 pf->TotAccepted++; in pcap_read_pf() 240 struct pcap_pf *pf = p->priv; in pcap_stats_pf() local 278 ps->ps_recv = pf->TotAccepted; in pcap_stats_pf() [all …]
|
/external/libnl/lib/netfilter/ |
D | queue.c | 66 cmd.pf = htons(family); in build_queue_cmd_request() 80 int nfnl_queue_build_pf_bind(uint8_t pf, struct nl_msg **result) in nfnl_queue_build_pf_bind() argument 82 return build_queue_cmd_request(pf, 0, NFQNL_CFG_CMD_PF_BIND, result); in nfnl_queue_build_pf_bind() 85 int nfnl_queue_pf_bind(struct nl_sock *nlh, uint8_t pf) in nfnl_queue_pf_bind() argument 90 if ((err = nfnl_queue_build_pf_bind(pf, &msg)) < 0) in nfnl_queue_pf_bind() 96 int nfnl_queue_build_pf_unbind(uint8_t pf, struct nl_msg **result) in nfnl_queue_build_pf_unbind() argument 98 return build_queue_cmd_request(pf, 0, NFQNL_CFG_CMD_PF_UNBIND, result); in nfnl_queue_build_pf_unbind() 101 int nfnl_queue_pf_unbind(struct nl_sock *nlh, uint8_t pf) in nfnl_queue_pf_unbind() argument 106 if ((err = nfnl_queue_build_pf_unbind(pf, &msg)) < 0) in nfnl_queue_pf_unbind() 170 cmd.pf = 0; in nfnl_queue_build_create_request()
|
D | log.c | 70 int nfnl_log_build_pf_bind(uint8_t pf, struct nl_msg **result) in nfnl_log_build_pf_bind() argument 72 return build_log_cmd_request(pf, 0, NFULNL_CFG_CMD_PF_BIND, result); in nfnl_log_build_pf_bind() 75 int nfnl_log_pf_bind(struct nl_sock *nlh, uint8_t pf) in nfnl_log_pf_bind() argument 80 if ((err = nfnl_log_build_pf_bind(pf, &msg)) < 0) in nfnl_log_pf_bind() 86 int nfnl_log_build_pf_unbind(uint8_t pf, struct nl_msg **result) in nfnl_log_build_pf_unbind() argument 88 return build_log_cmd_request(pf, 0, NFULNL_CFG_CMD_PF_UNBIND, result); in nfnl_log_build_pf_unbind() 91 int nfnl_log_pf_unbind(struct nl_sock *nlh, uint8_t pf) in nfnl_log_pf_unbind() argument 96 if ((err = nfnl_log_build_pf_unbind(pf, &msg)) < 0) in nfnl_log_pf_unbind()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_pointer.h | 109 } pf; in pointer_to_func() local 110 pf.p = p; in pointer_to_func() 111 return pf.f; in pointer_to_func() 120 } pf; in func_to_pointer() local 121 pf.f = f; in func_to_pointer() 122 return pf.p; in func_to_pointer()
|
/external/virglrenderer/src/gallium/auxiliary/util/ |
D | u_pointer.h | 109 } pf; in pointer_to_func() local 110 pf.p = p; in pointer_to_func() 111 return pf.f; in pointer_to_func() 120 } pf; in func_to_pointer() local 121 pf.f = f; in func_to_pointer() 122 return pf.p; in func_to_pointer()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
D | LanguageTestFmwk.java | 251 PeriodFormatter pf = pfFactory.getFormatter(); in testFullPluralizedForms() local 260 String string = pf.format(p); in testFullPluralizedForms() 277 PeriodFormatter pf = pfFactory.getFormatter(); in testMediumForms() local 283 String string = pf.format(p); in testMediumForms() 299 PeriodFormatter pf = pfFactory.getFormatter(); in testShortForms() local 305 String string = pf.format(p); in testShortForms() 321 PeriodFormatter pf = pfFactory.getFormatter(); in testCustomMinutes() local 327 xAssertEquals(targets, n++, pf.format(p)); in testCustomMinutes() 329 xAssertEquals(targets, n++, pf.format(p)); in testCustomMinutes() 370 PeriodFormatter pf = pfFactory.getFormatter(); in testLimitedUnits() local [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
D | LanguageTestFmwk.java | 252 PeriodFormatter pf = pfFactory.getFormatter(); in testFullPluralizedForms() local 261 String string = pf.format(p); in testFullPluralizedForms() 278 PeriodFormatter pf = pfFactory.getFormatter(); in testMediumForms() local 284 String string = pf.format(p); in testMediumForms() 300 PeriodFormatter pf = pfFactory.getFormatter(); in testShortForms() local 306 String string = pf.format(p); in testShortForms() 322 PeriodFormatter pf = pfFactory.getFormatter(); in testCustomMinutes() local 328 xAssertEquals(targets, n++, pf.format(p)); in testCustomMinutes() 330 xAssertEquals(targets, n++, pf.format(p)); in testCustomMinutes() 371 PeriodFormatter pf = pfFactory.getFormatter(); in testLimitedUnits() local [all …]
|
/external/clang/test/SemaCXX/ |
D | member-pointer.cpp | 30 int (A::*pf)(int, int); in f() local 37 pf = 0; in f() 38 pf = __null; in f() 54 bool b1 = (pf == pf2); (void)b1; in f() 55 bool b2 = (pf != pf2); (void)b2; in f() 56 bool b3 = (pf == pf3); (void)b3; in f() 57 bool b4 = (pf != 0); (void)b4; in f() 111 void (HasMembers::*pf)() = &HasMembers::f; in h() local 112 (hm.*pf)(); in h() 113 (phm->*pf)(); in h()
|
/external/selinux/semodule-utils/semodule_expand/ |
D | semodule_expand.c | 42 struct sepol_policy_file *pf; in main() local 113 if (sepol_policy_file_create(&pf)) { in main() 129 sepol_policy_file_set_fp(pf, fp); in main() 130 ret = sepol_module_package_read(base, pf, 0); in main() 175 sepol_policy_file_set_fp(pf, outfile); in main() 176 ret = sepol_policydb_write(out, pf); in main() 186 sepol_policy_file_free(pf); in main()
|