Home
last modified time | relevance | path

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

123456789

/external/icu/icu4c/source/test/perf/convperf/
Dconvperf.cpp125 UPerfFunction* pf = new ICUOpenAllConvertersFunction(TRUE, status); in TestICU_CleanOpenAllConverters() local
129 return pf; in TestICU_CleanOpenAllConverters()
134 UPerfFunction* pf = new ICUOpenAllConvertersFunction(FALSE, status); in TestICU_OpenAllConverters() local
138 return pf; in TestICU_OpenAllConverters()
143 …ICUFromUnicodePerfFunction* pf = new ICUFromUnicodePerfFunction("utf-8",utf8_uniSource, UPRV_LENGT… in TestICU_UTF8_FromUnicode() local
147 return pf; in TestICU_UTF8_FromUnicode()
152 …UPerfFunction* pf = new ICUToUnicodePerfFunction("utf-8",(char*)utf8_encSource, UPRV_LENGTHOF(utf8… in TestICU_UTF8_ToUnicode() local
156 return pf; in TestICU_UTF8_ToUnicode()
162 …UPerfFunction* pf = new WinIMultiLanguage2FromUnicodePerfFunction("utf-8",utf8_uniSource, UPRV_LEN… in TestWinIML2_UTF8_FromUnicode() local
166 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.c152 struct policy_file pf; local
173 policy_file_init(&pf);
174 pf.type = PF_USE_MEMORY;
175 pf.data = data;
176 pf.len = len;
177 rc = policydb_write(&policydb, &pf);
213 struct policy_file pf; local
245 policy_file_init(&pf);
246 pf.type = PF_USE_MEMORY;
247 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.java124 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, in TestApplyPatternAndFormat() local
126 assertEquals("should use first occurrence of the 'odd' keyword", "foo", pf.format(1)); in TestApplyPatternAndFormat()
127 pf.applyPattern("odd{foo} other{bar} other{foobar}"); in TestApplyPatternAndFormat()
128 assertEquals("should use first occurrence of the 'other' keyword", "bar", pf.format(2)); in TestApplyPatternAndFormat()
130 pf.applyPattern("other{foo} odd{bar} other{foobar}"); in TestApplyPatternAndFormat()
131 assertEquals("should use first occurrence of the 'other' keyword", "foo", pf.format(2)); in TestApplyPatternAndFormat()
143 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, "otto{foo} other{bar}"); in TestApplyPatternAndFormat() local
144 assertEquals("should ignore unknown keywords", "bar", pf.format(1)); in TestApplyPatternAndFormat()
290 PluralFormat pf = new PluralFormat(pat); in TestPattern() local
291 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.java128 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, in TestApplyPatternAndFormat() local
130 assertEquals("should use first occurrence of the 'odd' keyword", "foo", pf.format(1)); in TestApplyPatternAndFormat()
131 pf.applyPattern("odd{foo} other{bar} other{foobar}"); in TestApplyPatternAndFormat()
132 assertEquals("should use first occurrence of the 'other' keyword", "bar", pf.format(2)); in TestApplyPatternAndFormat()
134 pf.applyPattern("other{foo} odd{bar} other{foobar}"); in TestApplyPatternAndFormat()
135 assertEquals("should use first occurrence of the 'other' keyword", "foo", pf.format(2)); in TestApplyPatternAndFormat()
147 PluralFormat pf = new PluralFormat(ULocale.ENGLISH, oddAndEven, "otto{foo} other{bar}"); in TestApplyPatternAndFormat() local
148 assertEquals("should ignore unknown keywords", "bar", pf.format(1)); in TestApplyPatternAndFormat()
294 PluralFormat pf = new PluralFormat(pat); in TestPattern() local
295 assertEquals("should not trim() the pattern", pat, pf.toPattern()); in TestPattern()
[all …]
/external/selinux/policycoreutils/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.h21 extern int sepol_policy_file_create(sepol_policy_file_t ** pf);
22 extern void sepol_policy_file_free(sepol_policy_file_t * pf);
32 extern void sepol_policy_file_set_mem(sepol_policy_file_t * pf,
39 extern int sepol_policy_file_get_len(sepol_policy_file_t * pf, size_t * len);
46 extern void sepol_policy_file_set_fp(sepol_policy_file_t * pf, FILE * fp);
53 extern void sepol_policy_file_set_handle(sepol_policy_file_t * pf,
107 extern int sepol_policydb_read(sepol_policydb_t * p, sepol_policy_file_t * pf);
114 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.c185 jint width, jint pitch, jint height, jint pf, jbyteArray dst, in TJCompressor_compress() argument
195 if(pf<0 || pf>=org_libjpegturbo_turbojpeg_TJ_NUMPF || width<1 || height<1 in TJCompressor_compress()
201 actualPitch=(pitch==0)? width*tjPixelSize[pf]:pitch; in TJCompressor_compress()
202 arraySize=(y+height-1)*actualPitch + (x+width)*tjPixelSize[pf]; in TJCompressor_compress()
214 if(tjCompress2(handle, &srcBuf[y*actualPitch + x*tjPixelSize[pf]], width, in TJCompressor_compress()
215 pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp, jpegQual, in TJCompressor_compress()
228 jint pitch, jint height, jint pf, jbyteArray dst, jint jpegSubsamp, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII() argument
232 pf, dst, jpegSubsamp, jpegQual, flags); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII()
238 jint height, jint pf, jbyteArray dst, jint jpegSubsamp, jint jpegQual, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIII_3BIII() argument
242 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/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/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/autotest/client/tests/kvm/scripts/
Dksm_overcommit_guest.py143 pf = array.array("B")
144 pf.fromfile(self.f, PAGE_SIZE / pf.itemsize)
145 if not (page == pf):
147 self.compare_page(page, pf)
203 pf = array.array(self.allocate_by)
204 pf.fromfile(self.f, PAGE_SIZE / pf.itemsize)
205 if not (p == pf):
207 self.compare_page(p, pf)
/external/mesa3d/src/gallium/state_trackers/dri/drm/
Ddri2.c298 enum pipe_format pf; in dri2_allocate_buffer() local
322 pf = PIPE_FORMAT_B8G8R8A8_UNORM; in dri2_allocate_buffer()
325 pf = PIPE_FORMAT_B8G8R8X8_UNORM; in dri2_allocate_buffer()
328 pf = PIPE_FORMAT_Z16_UNORM; in dri2_allocate_buffer()
340 templ.format = pf; in dri2_allocate_buffer()
362 buffer->base.cpp = util_format_get_blocksize(pf); in dri2_allocate_buffer()
442 enum pipe_format pf; in dri2_create_image_from_name() local
448 pf = PIPE_FORMAT_B5G6R5_UNORM; in dri2_create_image_from_name()
451 pf = PIPE_FORMAT_B8G8R8X8_UNORM; in dri2_create_image_from_name()
454 pf = PIPE_FORMAT_B8G8R8A8_UNORM; in dri2_create_image_from_name()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DLanguageTestRoot.java243 PeriodFormatter pf = pfFactory.getFormatter(); in testFullPluralizedForms() local
252 String string = pf.format(p); in testFullPluralizedForms()
268 PeriodFormatter pf = pfFactory.getFormatter(); in testMediumForms() local
274 String string = pf.format(p); in testMediumForms()
289 PeriodFormatter pf = pfFactory.getFormatter(); in testShortForms() local
295 String string = pf.format(p); in testShortForms()
310 PeriodFormatter pf = pfFactory.getFormatter(); in testCustomMinutes() local
316 xAssertEquals(targets, n++, pf.format(p)); in testCustomMinutes()
318 xAssertEquals(targets, n++, pf.format(p)); in testCustomMinutes()
358 PeriodFormatter pf = pfFactory.getFormatter(); in testLimitedUnits() local
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
DLanguageTestRoot.java247 PeriodFormatter pf = pfFactory.getFormatter(); in testFullPluralizedForms() local
256 String string = pf.format(p); in testFullPluralizedForms()
272 PeriodFormatter pf = pfFactory.getFormatter(); in testMediumForms() local
278 String string = pf.format(p); in testMediumForms()
293 PeriodFormatter pf = pfFactory.getFormatter(); in testShortForms() local
299 String string = pf.format(p); in testShortForms()
314 PeriodFormatter pf = pfFactory.getFormatter(); in testCustomMinutes() local
320 xAssertEquals(targets, n++, pf.format(p)); in testCustomMinutes()
322 xAssertEquals(targets, n++, pf.format(p)); in testCustomMinutes()
362 PeriodFormatter pf = pfFactory.getFormatter(); in testLimitedUnits() local
[all …]
/external/curl/lib/
Dhostip6.c171 int pf; in Curl_getaddrinfo() local
181 pf = PF_INET; in Curl_getaddrinfo()
184 pf = PF_INET6; in Curl_getaddrinfo()
187 pf = PF_UNSPEC; in Curl_getaddrinfo()
191 if((pf != PF_INET) && !Curl_ipv6works()) in Curl_getaddrinfo()
193 pf = PF_INET; in Curl_getaddrinfo()
196 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()

123456789