/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",utf8_uniSource, UPRV_LENGT… 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 …]
|
D | genbools.c | 163 struct policy_file pf; local 184 policy_file_init(&pf); 185 pf.type = PF_USE_MEMORY; 186 pf.data = data; 187 pf.len = len; 188 rc = policydb_write(&policydb, &pf); 224 struct policy_file pf; local 256 policy_file_init(&pf); 257 pf.type = PF_USE_MEMORY; 258 pf.data = data; [all …]
|
/external/libjpeg-turbo/ |
D | tjunittest.c | 99 void initBuf(unsigned char *buf, int w, int h, int pf, int flags) in initBuf() argument 101 int roffset = tjRedOffset[pf]; in initBuf() 102 int goffset = tjGreenOffset[pf]; in initBuf() 103 int boffset = tjBlueOffset[pf]; in initBuf() 104 int ps = tjPixelSize[pf]; in initBuf() 107 if (pf == TJPF_GRAY) { in initBuf() 118 } else if (pf == TJPF_CMYK) { in initBuf() 177 int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp, in checkBuf() argument 180 int roffset = tjRedOffset[pf]; in checkBuf() 181 int goffset = tjGreenOffset[pf]; in checkBuf() [all …]
|
D | turbojpeg-jni.c | 214 jint width, jint pitch, jint height, jint pf, jbyteArray dst, in TJCompressor_compress() argument 224 if (pf < 0 || pf >= org_libjpegturbo_turbojpeg_TJ_NUMPF || width < 1 || in TJCompressor_compress() 230 actualPitch = (pitch == 0) ? width * tjPixelSize[pf] : pitch; in TJCompressor_compress() 231 arraySize = (y + height - 1) * actualPitch + (x + width) * tjPixelSize[pf]; in TJCompressor_compress() 243 if (tjCompress2(handle, &srcBuf[y * actualPitch + x * tjPixelSize[pf]], in TJCompressor_compress() 244 width, pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp, in TJCompressor_compress() 257 jint pitch, jint height, jint pf, jbyteArray dst, jint jpegSubsamp, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII() argument 261 pf, dst, jpegSubsamp, jpegQual, flags); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII() 267 jint height, jint pf, jbyteArray dst, jint jpegSubsamp, jint jpegQual, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIII_3BIII() argument 271 pf, dst, jpegSubsamp, jpegQual, flags); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIII_3BIII() [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/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/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/java/ |
D | TJUnitTest.java | 145 static void initBuf(byte[] buf, int w, int pitch, int h, int pf, int flags) in initBuf() argument 147 int roffset = TJ.getRedOffset(pf); in initBuf() 148 int goffset = TJ.getGreenOffset(pf); in initBuf() 149 int boffset = TJ.getBlueOffset(pf); in initBuf() 150 int aoffset = TJ.getAlphaOffset(pf); in initBuf() 151 int ps = TJ.getPixelSize(pf); in initBuf() 154 if (pf == TJ.PF_GRAY) { in initBuf() 170 if (pf == TJ.PF_CMYK) { in initBuf() 214 static void initIntBuf(int[] buf, int w, int pitch, int h, int pf, int flags) in initIntBuf() argument 216 int rshift = TJ.getRedOffset(pf) * 8; in initIntBuf() [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/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/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, 108 extern int sepol_policydb_read(sepol_policydb_t * p, sepol_policy_file_t * pf); 115 extern int sepol_policydb_write(sepol_policydb_t * p, sepol_policy_file_t * pf);
|
/external/libpcap/ |
D | pcap-pf.c | 103 struct pcap_pf *pf = pc->priv; in pcap_read_pf() local 190 pf->TotPkts++; in pcap_read_pf() 191 pf->TotDrops += sp->ens_dropped; in pcap_read_pf() 192 pf->TotMissed = sp->ens_ifoverflows; in pcap_read_pf() 193 if (pf->OrigMissed < 0) in pcap_read_pf() 194 pf->OrigMissed = pf->TotMissed; in pcap_read_pf() 207 if (pf->filtering_in_kernel || in pcap_read_pf() 210 pf->TotAccepted++; in pcap_read_pf() 245 struct pcap_pf *pf = p->priv; in pcap_stats_pf() local 283 ps->ps_recv = pf->TotAccepted; in pcap_stats_pf() [all …]
|
/external/libnl/lib/netfilter/ |
D | queue.c | 65 cmd.pf = htons(family); in build_queue_cmd_request() 79 int nfnl_queue_build_pf_bind(uint8_t pf, struct nl_msg **result) in nfnl_queue_build_pf_bind() argument 81 return build_queue_cmd_request(pf, 0, NFQNL_CFG_CMD_PF_BIND, result); in nfnl_queue_build_pf_bind() 84 int nfnl_queue_pf_bind(struct nl_sock *nlh, uint8_t pf) in nfnl_queue_pf_bind() argument 89 if ((err = nfnl_queue_build_pf_bind(pf, &msg)) < 0) in nfnl_queue_pf_bind() 95 int nfnl_queue_build_pf_unbind(uint8_t pf, struct nl_msg **result) in nfnl_queue_build_pf_unbind() argument 97 return build_queue_cmd_request(pf, 0, NFQNL_CFG_CMD_PF_UNBIND, result); in nfnl_queue_build_pf_unbind() 100 int nfnl_queue_pf_unbind(struct nl_sock *nlh, uint8_t pf) in nfnl_queue_pf_unbind() argument 105 if ((err = nfnl_queue_build_pf_unbind(pf, &msg)) < 0) in nfnl_queue_pf_unbind() 169 cmd.pf = 0; in nfnl_queue_build_create_request()
|
D | log.c | 69 int nfnl_log_build_pf_bind(uint8_t pf, struct nl_msg **result) in nfnl_log_build_pf_bind() argument 71 return build_log_cmd_request(pf, 0, NFULNL_CFG_CMD_PF_BIND, result); in nfnl_log_build_pf_bind() 74 int nfnl_log_pf_bind(struct nl_sock *nlh, uint8_t pf) in nfnl_log_pf_bind() argument 79 if ((err = nfnl_log_build_pf_bind(pf, &msg)) < 0) in nfnl_log_pf_bind() 85 int nfnl_log_build_pf_unbind(uint8_t pf, struct nl_msg **result) in nfnl_log_build_pf_unbind() argument 87 return build_log_cmd_request(pf, 0, NFULNL_CFG_CMD_PF_UNBIND, result); in nfnl_log_build_pf_unbind() 90 int nfnl_log_pf_unbind(struct nl_sock *nlh, uint8_t pf) in nfnl_log_pf_unbind() argument 95 if ((err = nfnl_log_build_pf_unbind(pf, &msg)) < 0) in nfnl_log_pf_unbind()
|
/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/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/curl/lib/ |
D | hostip6.c | 141 int pf; in Curl_getaddrinfo() local 151 pf = PF_INET; in Curl_getaddrinfo() 154 pf = PF_INET6; in Curl_getaddrinfo() 157 pf = PF_UNSPEC; in Curl_getaddrinfo() 161 if((pf != PF_INET) && !Curl_ipv6works()) in Curl_getaddrinfo() 163 pf = PF_INET; in Curl_getaddrinfo() 166 hints.ai_family = pf; in Curl_getaddrinfo()
|
/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/mesa3d/src/gallium/state_trackers/dri/ |
D | dri2.c | 203 enum pipe_format pf; in dri2_format_to_pipe_format() local 207 pf = PIPE_FORMAT_B5G6R5_UNORM; in dri2_format_to_pipe_format() 210 pf = PIPE_FORMAT_BGRX8888_UNORM; in dri2_format_to_pipe_format() 213 pf = PIPE_FORMAT_BGRA8888_UNORM; in dri2_format_to_pipe_format() 216 pf = PIPE_FORMAT_RGBX8888_UNORM; in dri2_format_to_pipe_format() 219 pf = PIPE_FORMAT_RGBA8888_UNORM; in dri2_format_to_pipe_format() 222 pf = PIPE_FORMAT_B10G10R10X2_UNORM; in dri2_format_to_pipe_format() 225 pf = PIPE_FORMAT_B10G10R10A2_UNORM; in dri2_format_to_pipe_format() 228 pf = PIPE_FORMAT_R8_UNORM; in dri2_format_to_pipe_format() 231 pf = PIPE_FORMAT_RG88_UNORM; in dri2_format_to_pipe_format() [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()
|