Home
last modified time | relevance | path

Searched refs:ih (Results 1 – 25 of 87) sorted by relevance

1234

/external/avb/test/
Dimage_handler_unittest.py117 ih = avbtool.ImageHandler(self.TEST_FILE_SPARSE_PATH)
120 self.assertEqual(ih.tell(), 0)
123 self.assertEqual(ih.read(14), bytearray('Barfoo43Barfoo'))
124 self.assertEqual(ih.tell(), 14)
125 self.assertEqual(ih.read(2), bytearray('43'))
126 self.assertEqual(ih.tell(), 16)
129 ih.seek(0x6000 + 1)
130 self.assertEqual(ih.read(4), bytearray('\x02\x03\x04\x01'))
133 ih.seek(0x3000 - 10)
134 self.assertEqual(ih.read(12), bytearray('43Barfoo43\x00\x00'))
[all …]
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/
Dunique.pass.cpp71 int ih[] = {0, 1, 1}; in test() local
72 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
73 r = std::unique(Iter(ih), Iter(ih+sh)); in test()
74 assert(base(r) == ih + 2); in test()
75 assert(ih[0] == 0); in test()
76 assert(ih[1] == 1); in test()
148 Ptr ih[3]; in test1() local
149 ih[1].reset(&one); in test1()
150 ih[2].reset(&one); in test1()
151 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test1()
[all …]
Dunique_pred.pass.cpp93 int ih[] = {0, 1, 1}; in test() local
94 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
96 r = std::unique(Iter(ih), Iter(ih+sh), count_equal()); in test()
97 assert(base(r) == ih + 2); in test()
98 assert(ih[0] == 0); in test()
99 assert(ih[1] == 1); in test()
186 Ptr ih[3]; in test1() local
187 ih[1].reset(&one); in test1()
188 ih[2].reset(&one); in test1()
189 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test1()
[all …]
Dunique_copy.pass.cpp76 const int ih[] = {0, 1, 1}; in test() local
77 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
79 r = std::unique_copy(InIter(ih), InIter(ih+sh), OutIter(jh)); in test()
Dunique_copy_pred.pass.cpp99 const int ih[] = {0, 1, 1}; in test() local
100 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
103 r = std::unique_copy(InIter(ih), InIter(ih+sh), OutIter(jh), count_equal()); in test()
/external/kernel-headers/original/uapi/linux/
Dcoda.h322 struct coda_in_hdr ih; member
336 struct coda_in_hdr ih; member
347 struct coda_in_hdr ih; member
358 struct coda_in_hdr ih; member
369 struct coda_in_hdr ih; member
386 struct coda_in_hdr ih; member
398 struct coda_in_hdr ih; member
409 struct coda_in_hdr ih; member
425 struct coda_in_hdr ih; member
440 struct coda_in_hdr ih; member
[all …]
/external/fdlibm/
Dk_rem_pio2.c170 int jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; local
205 ih = 0;
209 ih = iq[jz-1]>>(23-q0);
211 else if(q0==0) ih = iq[jz-1]>>23;
212 else if(z>=0.5) ih=2;
214 if(ih>0) { /* q > 0.5 */
232 if(ih==2) {
286 y[0] = (ih==0)? fw: -fw;
292 y[0] = (ih==0)? fw: -fw;
295 y[1] = (ih==0)? fw: -fw;
[all …]
/external/ltp/testcases/kernel/syscalls/utils/
Dinotify.h86 struct inotify_handle *ih; /* associated inotify handle */ member
176 static inline void inotify_destroy(struct inotify_handle *ih) in inotify_destroy() argument
180 static inline __s32 inotify_find_watch(struct inotify_handle *ih, struct inode *inode, in inotify_find_watch() argument
186 static inline __s32 inotify_find_update_watch(struct inotify_handle *ih, in inotify_find_update_watch() argument
192 static inline __s32 inotify_add_watch(struct inotify_handle *ih, in inotify_add_watch() argument
199 static inline int inotify_rm_watch(struct inotify_handle *ih, in inotify_rm_watch() argument
205 static inline int inotify_rm_wd(struct inotify_handle *ih, __u32 wd) in inotify_rm_wd() argument
210 static inline void inotify_remove_watch_locked(struct inotify_handle *ih, in inotify_remove_watch_locked() argument
/external/webrtc/talk/session/media/
Dyuvscaler_unittest.cc98 bool TestScale(int iw, int ih, int ow, int oh, int offset, bool usefile, in TestScale() argument
102 size_t isize = I420_SIZE(iw, ih); in TestScale()
116 if (!LoadPlanarYuvTestImage("faces", iw, ih, ibuf) || in TestScale()
149 EXPECT_EQ(0, libyuv::ScaleOffset(ibuf, iw, ih, obuf, ow, oh, in TestScale()
193 const int iw = 640, ih = 360; in TEST_F() local
195 ALIGN16(uint8_t ibuf[I420_SIZE(iw, ih)]); in TEST_F()
199 ASSERT_TRUE(LoadPlanarYuvTestImage("faces", iw, ih, ibuf)); in TEST_F()
201 libyuv::ScaleOffset(ibuf, iw, ih, obuf, ow, oh, 0, false); in TEST_F()
209 const int iw = 640, ih = 360; in TEST_F() local
212 scoped_ptr<uint8_t[]> ibuffer(new uint8_t[I420_SIZE(iw, ih) + kAlignment]); in TEST_F()
[all …]
/external/libcxx/test/std/experimental/func/func.searchers/func.searchers.boyer_moore/
Dhash.pass.cpp81 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
82 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
84 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test()
115 char ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test2() local
116 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test2()
118 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test2()
Dhash.pred.pass.cpp96 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
97 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
99 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test()
133 char ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test2() local
134 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test2()
136 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test2()
Dpred.pass.cpp90 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
91 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
93 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test()
124 char ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test2() local
125 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test2()
127 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test2()
Ddefault.pass.cpp75 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
76 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
78 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3)); in test()
114 char ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test2() local
115 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test2()
117 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3)); in test2()
/external/libcxx/test/std/experimental/func/func.searchers/func.searchers.boyer_moore_horspool/
Dhash.pass.cpp80 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
81 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
83 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test()
114 char ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test2() local
115 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test2()
117 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test2()
Dhash.pred.pass.cpp93 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
94 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
96 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test()
127 char ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test2() local
128 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test2()
130 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test2()
Dpred.pass.cpp87 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
88 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
90 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test()
121 char ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test2() local
122 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test2()
124 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test2()
Ddefault.pass.cpp75 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
76 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
78 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3)); in test()
114 char ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test2() local
115 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test2()
117 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3)); in test2()
/external/libcxx/test/std/experimental/func/func.searchers/func.searchers.default/
Ddefault.pass.cpp75 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
76 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
78 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3)); in test()
Ddefault.pred.pass.cpp87 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
88 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
90 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test()
/external/libcxx/test/std/experimental/func/func.searchers/func.searchers.default/func.searchers.default.creation/
Dmake_default_searcher.pass.cpp60 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
61 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
63 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3)); in test()
Dmake_default_searcher.pred.pass.cpp72 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
73 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
75 do_search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), Iter1(ih+3), sh*3); in test()
/external/libcxx/test/std/algorithms/alg.nonmodifying/alg.search/
Dsearch.pass.cpp50 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
51 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
53 assert(std::search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3)) == Iter1(ih+3)); in test()
Dsearch_pred.pass.cpp93 int ih[] = {0, 1, 1, 1, 1, 2, 3, 0, 1, 2, 3, 4}; in test() local
94 const unsigned sh = sizeof(ih)/sizeof(ih[0]); in test()
96 …assert(std::search(Iter1(ih), Iter1(ih+sh), Iter2(ii), Iter2(ii+3), count_equal()) == Iter1(ih+3)); in test()
/external/tcpdump/
Dprint-juniper.c510 const struct juniper_ipsec_header *ih; in juniper_es_print() local
517 ih = (struct juniper_ipsec_header *)p; in juniper_es_print()
519 switch (ih->type) { in juniper_es_print()
533 ih->type, in juniper_es_print()
544 EXTRACT_16BITS(&ih->sa_index), in juniper_es_print()
545 ih->ttl, in juniper_es_print()
546 tok2str(juniper_ipsec_type_values,"Unknown",ih->type), in juniper_es_print()
547 ih->type, in juniper_es_print()
548 EXTRACT_32BITS(&ih->spi), in juniper_es_print()
549 ipaddr_string(ndo, &ih->src_ip), in juniper_es_print()
[all …]
/external/slf4j/slf4j-api/src/test/java/org/slf4j/helpers/
DSubstitutableLoggerTest.java51 LoggerInvocationHandler ih = new LoggerInvocationHandler(); in testDelegate() local
52 …r = (Logger) Proxy.newProxyInstance(getClass().getClassLoader(), new Class[] { Logger.class }, ih); in testDelegate()
58 expectedMethodSignatures.removeAll(ih.getInvokedMethodSignatures()); in testDelegate()

1234