Home
last modified time | relevance | path

Searched refs:pf (Results 1 – 25 of 231) sorted by relevance

12345678910

/external/icu/icu4c/source/test/perf/convperf/
Dconvperf.cpp129 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/
Dpolicydb_convert.c14 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 …]
Dpolicydb_public.c9 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 …]
Dgenbools.c163 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/libvncserver/test/
Dtjunittest.c73 void initBuf(unsigned char *buf, int w, int h, int pf, int flags) in initBuf() argument
75 int roffset=tjRedOffset[pf]; in initBuf()
76 int goffset=tjGreenOffset[pf]; in initBuf()
77 int boffset=tjBlueOffset[pf]; in initBuf()
78 int ps=tjPixelSize[pf]; in initBuf()
82 if(pf==TJPF_GRAY) in initBuf()
143 int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp, in checkBuf() argument
146 int roffset=tjRedOffset[pf]; in checkBuf()
147 int goffset=tjGreenOffset[pf]; in checkBuf()
148 int boffset=tjBlueOffset[pf]; in checkBuf()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralFormatUnitTest.java125 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, in TestApplyPatternAndFormat() local
127 assertEquals("should use first occurrence of the 'odd' keyword", "foo", pf.format(1)); in TestApplyPatternAndFormat()
128 pf.applyPattern("odd{foo} other{bar} other{foobar}"); in TestApplyPatternAndFormat()
129 assertEquals("should use first occurrence of the 'other' keyword", "bar", pf.format(2)); in TestApplyPatternAndFormat()
131 pf.applyPattern("other{foo} odd{bar} other{foobar}"); in TestApplyPatternAndFormat()
132 assertEquals("should use first occurrence of the 'other' keyword", "foo", pf.format(2)); in TestApplyPatternAndFormat()
144 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, "otto{foo} other{bar}"); in TestApplyPatternAndFormat() local
145 assertEquals("should ignore unknown keywords", "bar", pf.format(1)); in TestApplyPatternAndFormat()
295 PluralFormat pf = new PluralFormat(pat); in TestPattern() local
296 assertEquals("should not trim() the pattern", pat, pf.toPattern()); in TestPattern()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralFormatUnitTest.java126 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, in TestApplyPatternAndFormat() local
128 assertEquals("should use first occurrence of the 'odd' keyword", "foo", pf.format(1)); in TestApplyPatternAndFormat()
129 pf.applyPattern("odd{foo} other{bar} other{foobar}"); in TestApplyPatternAndFormat()
130 assertEquals("should use first occurrence of the 'other' keyword", "bar", pf.format(2)); in TestApplyPatternAndFormat()
132 pf.applyPattern("other{foo} odd{bar} other{foobar}"); in TestApplyPatternAndFormat()
133 assertEquals("should use first occurrence of the 'other' keyword", "foo", pf.format(2)); in TestApplyPatternAndFormat()
145 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, "otto{foo} other{bar}"); in TestApplyPatternAndFormat() local
146 assertEquals("should ignore unknown keywords", "bar", pf.format(1)); in TestApplyPatternAndFormat()
296 PluralFormat pf = new PluralFormat(pat); in TestPattern() local
297 assertEquals("should not trim() the pattern", pat, pf.toPattern()); in TestPattern()
[all …]
/external/libmojo/mojo/public/tools/bindings/generators/cpp_templates/
Dstruct_data_view_definition.tmpl8 {%- for pf in struct.packed.packed_fields_in_ordinal_order %}
9 {%- set kind = pf.field.kind -%}
10 {%- set name = pf.field.name -%}
17 {%- if pf.min_version != 0 %}
18 if (data_->header_.version < {{pf.min_version}})
27 {%- if pf.min_version != 0 %}
28 auto pointer = data_->header_.version >= {{pf.min_version}}
40 {%- if pf.min_version != 0 %}
41 if (data_->header_.version < {{pf.min_version}})
52 {%- if pf.min_version != 0 %}
[all …]
Dstruct_data_view_declaration.tmpl7 {%- for pf in struct.packed.packed_fields_in_ordinal_order %}
8 {%- set kind = pf.field.kind -%}
9 {%- set name = pf.field.name -%}
14 {%- if pf.min_version != 0 %}
15 auto pointer = data_->header_.version >= {{pf.min_version}}
27 {%- if pf.min_version != 0 %}
28 auto data_value = data_->header_.version >= {{pf.min_version}}
/external/selinux/semodule-utils/semodule_link/
Dsemodule_link.c39 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/
Dpolicydb.h22 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/libjpeg-turbo/java/
DTJUnitTest.java153 private static void initBuf(byte[] buf, int w, int pitch, int h, int pf, in initBuf() argument
155 int roffset = TJ.getRedOffset(pf); in initBuf()
156 int goffset = TJ.getGreenOffset(pf); in initBuf()
157 int boffset = TJ.getBlueOffset(pf); in initBuf()
158 int aoffset = alphaOffset[pf]; in initBuf()
159 int ps = TJ.getPixelSize(pf); in initBuf()
162 if (pf == TJ.PF_GRAY) { in initBuf()
178 if (pf == TJ.PF_CMYK) { in initBuf()
222 private static void initIntBuf(int[] buf, int w, int pitch, int h, int pf, in initIntBuf() argument
224 int rshift = TJ.getRedOffset(pf) * 8; in initIntBuf()
[all …]
/external/libjpeg-turbo/
Dturbojpeg-jni.c189 jint width, jint pitch, jint height, jint pf, jbyteArray dst, in TJCompressor_compress() argument
199 if(pf<0 || pf>=org_libjpegturbo_turbojpeg_TJ_NUMPF || width<1 || height<1 in TJCompressor_compress()
205 actualPitch=(pitch==0)? width*tjPixelSize[pf]:pitch; in TJCompressor_compress()
206 arraySize=(y+height-1)*actualPitch + (x+width)*tjPixelSize[pf]; in TJCompressor_compress()
218 if(tjCompress2(handle, &srcBuf[y*actualPitch + x*tjPixelSize[pf]], width, in TJCompressor_compress()
219 pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp, jpegQual, in TJCompressor_compress()
232 jint pitch, jint height, jint pf, jbyteArray dst, jint jpegSubsamp, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII() argument
236 pf, dst, jpegSubsamp, jpegQual, flags); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII()
242 jint height, jint pf, jbyteArray dst, jint jpegSubsamp, jint jpegQual, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIII_3BIII() argument
246 pf, dst, jpegSubsamp, jpegQual, flags); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIII_3BIII()
[all …]
Dtjunittest.c88 void initBuf(unsigned char *buf, int w, int h, int pf, int flags) in initBuf() argument
90 int roffset=tjRedOffset[pf]; in initBuf()
91 int goffset=tjGreenOffset[pf]; in initBuf()
92 int boffset=tjBlueOffset[pf]; in initBuf()
93 int ps=tjPixelSize[pf]; in initBuf()
96 if(pf==TJPF_GRAY) in initBuf()
110 else if(pf==TJPF_CMYK) in initBuf()
180 int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp, in checkBuf() argument
183 int roffset=tjRedOffset[pf]; in checkBuf()
184 int goffset=tjGreenOffset[pf]; in checkBuf()
[all …]
/external/libpcap/
Dpcap-pf.c103 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/iputils/
Dtftpd.c102 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/libvncserver/client_examples/
Dppmtest.c20 rfbPixelFormat* pf=&client->format; in SaveFramebufferAsPPM() local
21 int bpp=pf->bitsPerPixel/8; in SaveFramebufferAsPPM()
54 fputc((v>>pf->redShift)*256/(pf->redMax+1),f); in SaveFramebufferAsPPM()
55 fputc((v>>pf->greenShift)*256/(pf->greenMax+1),f); in SaveFramebufferAsPPM()
56 fputc((v>>pf->blueShift)*256/(pf->blueMax+1),f); in SaveFramebufferAsPPM()
/external/libnl/lib/netfilter/
Dqueue.c65 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()
/external/mesa3d/src/gallium/auxiliary/util/
Du_pointer.h109 } 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/javassist/src/test/test/javassist/proxy/
DProxySimpleTest.java19 public ClassLoader get(ProxyFactory pf) { in testReadWrite()
23 ProxyFactory pf = new ProxyFactory(); in testReadWrite() local
24 pf.setSuperclass(ReadWriteData.class); in testReadWrite()
25 Object data = pf.createClass().newInstance(); in testReadWrite()
44 ProxyFactory pf = new ProxyFactory(); in testWriteReplace() local
45 pf.setSuperclass(WriteReplace.class); in testWriteReplace()
46 Object data = pf.createClass().newInstance(); in testWriteReplace()
/external/libvncserver/libvncserver/
Dtranslate.c29 static void PrintPixelFormat(rfbPixelFormat *pf);
460 PrintPixelFormat(rfbPixelFormat *pf) in PrintPixelFormat() argument
462 if (pf->bitsPerPixel == 1) { in PrintPixelFormat()
464 (pf->bigEndian ? "most" : "least")); in PrintPixelFormat()
466 rfbLog(" %d bpp, depth %d%s\n",pf->bitsPerPixel,pf->depth, in PrintPixelFormat()
467 ((pf->bitsPerPixel == 8) ? "" in PrintPixelFormat()
468 : (pf->bigEndian ? ", big endian" : ", little endian"))); in PrintPixelFormat()
469 if (pf->trueColour) { in PrintPixelFormat()
471 pf->redMax, pf->greenMax, pf->blueMax, in PrintPixelFormat()
472 pf->redShift, pf->greenShift, pf->blueShift); in PrintPixelFormat()
/external/curl/lib/
Dhostip6.c173 int pf; in Curl_getaddrinfo() local
183 pf = PF_INET; in Curl_getaddrinfo()
186 pf = PF_INET6; in Curl_getaddrinfo()
189 pf = PF_UNSPEC; in Curl_getaddrinfo()
193 if((pf != PF_INET) && !Curl_ipv6works()) in Curl_getaddrinfo()
195 pf = PF_INET; in Curl_getaddrinfo()
198 hints.ai_family = pf; in Curl_getaddrinfo()
/external/clang/test/SemaCXX/
Dmember-pointer.cpp30 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DLanguageTestFmwk.java248 PeriodFormatter pf = pfFactory.getFormatter(); in testFullPluralizedForms() local
257 String string = pf.format(p); in testFullPluralizedForms()
274 PeriodFormatter pf = pfFactory.getFormatter(); in testMediumForms() local
280 String string = pf.format(p); in testMediumForms()
296 PeriodFormatter pf = pfFactory.getFormatter(); in testShortForms() local
302 String string = pf.format(p); in testShortForms()
318 PeriodFormatter pf = pfFactory.getFormatter(); in testCustomMinutes() local
324 xAssertEquals(targets, n++, pf.format(p)); in testCustomMinutes()
326 xAssertEquals(targets, n++, pf.format(p)); in testCustomMinutes()
367 PeriodFormatter pf = pfFactory.getFormatter(); in testLimitedUnits() local
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
DLanguageTestFmwk.java249 PeriodFormatter pf = pfFactory.getFormatter(); in testFullPluralizedForms() local
258 String string = pf.format(p); in testFullPluralizedForms()
275 PeriodFormatter pf = pfFactory.getFormatter(); in testMediumForms() local
281 String string = pf.format(p); in testMediumForms()
297 PeriodFormatter pf = pfFactory.getFormatter(); in testShortForms() local
303 String string = pf.format(p); in testShortForms()
319 PeriodFormatter pf = pfFactory.getFormatter(); in testCustomMinutes() local
325 xAssertEquals(targets, n++, pf.format(p)); in testCustomMinutes()
327 xAssertEquals(targets, n++, pf.format(p)); in testCustomMinutes()
368 PeriodFormatter pf = pfFactory.getFormatter(); in testLimitedUnits() local
[all …]

12345678910