/third_party/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 …]
|
/third_party/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 …]
|
/third_party/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 …]
|
D | secilc-fuzzer.c | 17 struct sepol_policy_file *pf = NULL; in LLVMFuzzerTestOneInput() local 59 if (sepol_policy_file_create(&pf) != 0) in LLVMFuzzerTestOneInput() 62 sepol_policy_file_set_fp(pf, dev_null); in LLVMFuzzerTestOneInput() 64 if (sepol_policydb_write(pdb, pf) != 0) in LLVMFuzzerTestOneInput() 72 sepol_policy_file_free(pf); in LLVMFuzzerTestOneInput()
|
/third_party/skia/third_party/externals/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 …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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 …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralFormatUnitTest.java | 131 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, in TestApplyPatternAndFormat() local 133 assertEquals("should use first occurrence of the 'odd' keyword", "foo", pf.format(1)); in TestApplyPatternAndFormat() 134 pf.applyPattern("odd{foo} other{bar} other{foobar}"); in TestApplyPatternAndFormat() 135 assertEquals("should use first occurrence of the 'other' keyword", "bar", pf.format(2)); in TestApplyPatternAndFormat() 137 pf.applyPattern("other{foo} odd{bar} other{foobar}"); in TestApplyPatternAndFormat() 138 assertEquals("should use first occurrence of the 'other' keyword", "foo", pf.format(2)); in TestApplyPatternAndFormat() 150 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, "otto{foo} other{bar}"); in TestApplyPatternAndFormat() local 151 assertEquals("should ignore unknown keywords", "bar", pf.format(1)); in TestApplyPatternAndFormat() 301 PluralFormat pf = new PluralFormat(pat); in TestPattern() local 302 assertEquals("should not trim() the pattern", pat, pf.toPattern()); in TestPattern() [all …]
|
/third_party/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()
|
/third_party/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);
|
/third_party/typescript/tests/baselines/reference/ |
D | truthinessPromiseCoercion.js | 5 declare function pf(): Promise<boolean> 41 if (pf()) { // error 44 if (pf()) { // error 45 pf().then(); 82 if (pf()) { // error 85 if (pf()) { // error 86 pf().then();
|
D | truthinessPromiseCoercion.types | 13 declare function pf(): Promise<boolean> 14 >pf : () => Promise<boolean> 141 if (pf()) { // error 142 >pf() : Promise<boolean> 143 >pf : () => Promise<boolean> 148 if (pf()) { // error 149 >pf() : Promise<boolean> 150 >pf : () => Promise<boolean> 152 pf().then(); 153 >pf().then() : Promise<boolean> [all …]
|
D | truthinessPromiseCoercion.symbols | 15 declare function pf(): Promise<boolean> 16 >pf : Symbol(pf, Decl(truthinessPromiseCoercion.ts, 2, 42)) 124 if (pf()) { // error 125 >pf : Symbol(pf, Decl(truthinessPromiseCoercion.ts, 2, 42)) 129 if (pf()) { // error 130 >pf : Symbol(pf, Decl(truthinessPromiseCoercion.ts, 2, 42)) 132 pf().then(); 133 >pf().then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) 134 >pf : Symbol(pf, Decl(truthinessPromiseCoercion.ts, 2, 42))
|
/third_party/mesa3d/src/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()
|
/third_party/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 …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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 …]
|
/third_party/vk-gl-cts/framework/platform/ohos/context/ |
D | tcuOhosNativeContext.cpp | 113 OHOS::RCI_PIXEL_FORMAT pf = { in OhosRendContext() local 124 pf.redBits = config.redBits; in OhosRendContext() 128 pf.greenBits = config.greenBits; in OhosRendContext() 132 pf.blueBits = config.blueBits; in OhosRendContext() 136 pf.alphaBits = config.alphaBits; in OhosRendContext() 140 pf.depthBits = config.depthBits; in OhosRendContext() 144 pf.stencilBits = config.stencilBits; in OhosRendContext() 148 pf.numSamples = config.numSamples; in OhosRendContext() 196 …if (!OHOS::OhosContextI::GetInstance().SetConfig(w, h, ver, pf, surfaceType, profile, static_cast<… in OhosRendContext()
|
/third_party/mesa3d/src/mesa/state_tracker/tests/ |
D | st_format.c | 73 enum pipe_format pf; in main() local 77 pf = st_mesa_format_to_pipe_format(st, i); in main() 78 if (pf != PIPE_FORMAT_NONE) { in main() 79 mesa_format mf = st_pipe_format_to_mesa_format(pf); in main() 82 _mesa_get_format_name(i), util_format_short_name(pf), in main()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_fence.c | 62 struct pipe_fence_handle *pf) in vc4_fence_reference() argument 65 struct vc4_fence *f = vc4_fence(pf); in vc4_fence_reference() 79 struct pipe_fence_handle *pf, in vc4_fence_finish() argument 83 struct vc4_fence *f = vc4_fence(pf); in vc4_fence_finish() 107 vc4_fence_create_fd(struct pipe_context *pctx, struct pipe_fence_handle **pf, in vc4_fence_create_fd() argument 111 struct vc4_fence **fence = (struct vc4_fence **)pf; in vc4_fence_create_fd()
|
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
D | tasn_fre.c | 152 const ASN1_PRIMITIVE_FUNCS *pf = it->funcs; in ossl_asn1_primitive_free() local 155 if (pf && pf->prim_clear) { in ossl_asn1_primitive_free() 156 pf->prim_clear(pval, it); in ossl_asn1_primitive_free() 159 } else if (pf && pf->prim_free) { in ossl_asn1_primitive_free() 160 pf->prim_free(pval, it); in ossl_asn1_primitive_free()
|
/third_party/openssl/crypto/asn1/ |
D | tasn_fre.c | 152 const ASN1_PRIMITIVE_FUNCS *pf = it->funcs; in ossl_asn1_primitive_free() local 155 if (pf && pf->prim_clear) { in ossl_asn1_primitive_free() 156 pf->prim_clear(pval, it); in ossl_asn1_primitive_free() 159 } else if (pf && pf->prim_free) { in ossl_asn1_primitive_free() 160 pf->prim_free(pval, it); in ossl_asn1_primitive_free()
|
/third_party/typescript/tests/cases/compiler/ |
D | truthinessPromiseCoercion.ts | 7 declare function pf(): Promise<boolean> function 43 if (pf()) { // error 46 if (pf()) { // error 47 pf().then();
|
/third_party/mbedtls/library/ |
D | ecjpake.c | 202 const int pf, in ecjpake_write_len_point() argument 213 ret = mbedtls_ecp_point_write_binary(grp, P, pf, in ecjpake_write_len_point() 237 const int pf, in ecjpake_hash() argument 252 MBEDTLS_MPI_CHK(ecjpake_write_len_point(&p, end, grp, pf, G)); in ecjpake_hash() 253 MBEDTLS_MPI_CHK(ecjpake_write_len_point(&p, end, grp, pf, V)); in ecjpake_hash() 254 MBEDTLS_MPI_CHK(ecjpake_write_len_point(&p, end, grp, pf, X)); in ecjpake_hash() 288 const int pf, in ecjpake_zkp_read() argument 335 MBEDTLS_MPI_CHK(ecjpake_hash(md_type, grp, pf, G, &V, X, id, &h)); in ecjpake_zkp_read() 358 const int pf, in ecjpake_zkp_write() argument 385 MBEDTLS_MPI_CHK(ecjpake_hash(md_type, grp, pf, G, &V, X, id, &h)); in ecjpake_zkp_write() [all …]
|
/third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
D | Timer.java | 64 return pf; in getPercentFormat() 78 …return nf.format(getDuration()/iterations) + "\tns\t" + pf.format((double)getDuration()/other - 1D… in toString() 82 private DecimalFormat pf = (DecimalFormat) NumberFormat.getPercentInstance(ULocale.ENGLISH); field in Timer 85 pf.setMaximumFractionDigits(1); 86 pf.setPositivePrefix("+");
|