Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 190) sorted by relevance

12345678

/ndk/tests/device/test-stlport/unit/
Dalg_test.cpp229 vector<int>::iterator first; in find_first_of_test() local
230 first = find_first_of(intv.begin(), intv.end(), intsl.begin(), intsl.end()); in find_first_of_test()
231 CPPUNIT_ASSERT( first != intv.end() ); in find_first_of_test()
232 CPPUNIT_ASSERT( *first == 1 ); in find_first_of_test()
241 vector<int>::iterator first; in find_first_of_test() local
242 first = find_first_of(intv.begin(), intv.end(), intsl.begin(), intsl.end()); in find_first_of_test()
243 CPPUNIT_ASSERT( first != intv.end() ); in find_first_of_test()
244 CPPUNIT_ASSERT( *first == 2 ); in find_first_of_test()
259 vector<int>::iterator first; in find_first_of_test() local
260 first = find_first_of(intv.begin(), intv.end(), intl.begin(), intl.end()); in find_first_of_test()
[all …]
Dequal_test.cpp45 CPPUNIT_ASSERT( (range.first - numbers) == 4 ); in equal_range0()
57 CPPUNIT_ASSERT( (range.first - v.begin()) == 6 ); in equal_range1()
59 for (; range.first != range.second; ++range.first) in equal_range1()
60 CPPUNIT_ASSERT( *range.first == 2 ); in equal_range1()
63 CPPUNIT_ASSERT( range.first == range.second ); in equal_range1()
64 CPPUNIT_ASSERT( range.first == v.end() ); in equal_range1()
96 CPPUNIT_ASSERT( (range.first - chars) == 18 ); in equal_range2()
98 for (; range.first != range.second; ++range.first) in equal_range2()
99 CPPUNIT_ASSERT( *range.first == 'q' ); in equal_range2()
102 CPPUNIT_ASSERT( (range.second - range.first) == 1 ); in equal_range2()
[all …]
Dmismatch_test.cpp45 CPPUNIT_ASSERT(result.first ==(n1 + 5) && result.second ==(n2 + 5)); in mismatch0()
48 CPPUNIT_ASSERT(!(result.first ==(n1 + 5) && result.second ==(n3 + 5))); in mismatch0()
49 CPPUNIT_ASSERT((result.first - n1)==3); in mismatch0()
60 CPPUNIT_ASSERT(result.first == v1.end() && result.second == v2.end()); in mismatch1()
64 CPPUNIT_ASSERT(!(result.first == v1.end() && result.second == v2.end())); in mismatch1()
65 CPPUNIT_ASSERT((result.first - v1.begin())==5); in mismatch1()
76 CPPUNIT_ASSERT(result.first == n1 + size && result.second == n2 + size); in mismatch2()
80 CPPUNIT_ASSERT(!(result.first == n2 + size && result.second == n2 + size)); in mismatch2()
81 CPPUNIT_ASSERT((result.first - n1)==2); in mismatch2()
Dmap_test.cpp66 CPPUNIT_ASSERT( p.first != m.end() ); in map1()
67 CPPUNIT_ASSERT( (*p.first).first == 'c' ); in map1()
68 CPPUNIT_ASSERT( (*p.first).second == 100 ); in map1()
72 CPPUNIT_ASSERT( p.first != m.end() ); in map1()
73 CPPUNIT_ASSERT( (*p.first).first == 'c' ); in map1()
74 CPPUNIT_ASSERT( (*p.first).second == 100 ); in map1()
96 CPPUNIT_ASSERT((*i).first == 'X'); in mmap1()
99 CPPUNIT_ASSERT((*i).first == 'X'); in mmap1()
102 CPPUNIT_ASSERT((*i).first == 'Y'); in mmap1()
135 CPPUNIT_ASSERT((*i).first==3); in mmap2()
[all …]
Distmit_test.cpp91 2, back_inserter(chars)).first, in copy_n_test()
92 2, back_inserter(chars)).first; in copy_n_test()
141 itr = copy_n(itr, 0, back_inserter(ints)).first; in copy_n_test()
143 itr = copy_n(itr, -1, back_inserter(ints)).first; in copy_n_test()
145 itr = copy_n(itr, 2, back_inserter(ints)).first; in copy_n_test()
149 itr = copy_n(itr, 2, back_inserter(ints)).first; in copy_n_test()
153 itr = copy_n(itr, 2, back_inserter(ints)).first; in copy_n_test()
Dhash_test.cpp128 CPPUNIT_ASSERT((*i).first=='X'); in hmmap1()
131 CPPUNIT_ASSERT((*i).first=='X'); in hmmap1()
134 CPPUNIT_ASSERT((*i).first=='Y'); in hmmap1()
209 pair<hashType::iterator,hashType::iterator> range = h.equal_range( i->first ); in check_keys()
210 for ( hashType::iterator j = range.first; j != range.second; ++j ) { in check_keys()
224 if (mIter->first != lastKey) { in check_keys()
225 cout << endl << "Key : " << mIter->first << endl; in check_keys()
226 lastKey = mIter->first; in check_keys()
230 pair<hashType::iterator,hashType::iterator> range = h.equal_range(mIter->first); in check_keys()
232 for (hashType::iterator h = range.first; h != range.second; h++) { in check_keys()
[all …]
Dunordered_test.cpp82 CPPUNIT_ASSERT( *ret.first == i ); in uset()
86 CPPUNIT_ASSERT( *ret.first == i ); in uset()
183 CPPUNIT_ASSERT( *ret.first == p1 ); in umap()
188 CPPUNIT_ASSERT( *ret.first == p1 ); in umap()
210 umaptype::size_type bucket_pos = us.bucket((*lit).first); in umap()
212 CPPUNIT_ASSERT( us.bucket((*lit).first) == bucket_pos ); in umap()
213 us_val.push_back(make_pair((*lit).first, (*lit).second)); in umap()
250 umaptype::size_type bucket_pos = us.bucket((*lit).first); in umultimap()
252 CPPUNIT_ASSERT( us.bucket((*lit).first) == bucket_pos ); in umultimap()
253 us_val.push_back(ptype((*lit).first, (*lit).second)); in umultimap()
[all …]
/ndk/tests/device/test-gnustl-full/unit/
Dalg_test.cpp229 vector<int>::iterator first; in find_first_of_test() local
230 first = find_first_of(intv.begin(), intv.end(), intsl.begin(), intsl.end()); in find_first_of_test()
231 CPPUNIT_ASSERT( first != intv.end() ); in find_first_of_test()
232 CPPUNIT_ASSERT( *first == 1 ); in find_first_of_test()
241 vector<int>::iterator first; in find_first_of_test() local
242 first = find_first_of(intv.begin(), intv.end(), intsl.begin(), intsl.end()); in find_first_of_test()
243 CPPUNIT_ASSERT( first != intv.end() ); in find_first_of_test()
244 CPPUNIT_ASSERT( *first == 2 ); in find_first_of_test()
259 vector<int>::iterator first; in find_first_of_test() local
260 first = find_first_of(intv.begin(), intv.end(), intl.begin(), intl.end()); in find_first_of_test()
[all …]
Dequal_test.cpp45 CPPUNIT_ASSERT( (range.first - numbers) == 4 ); in equal_range0()
57 CPPUNIT_ASSERT( (range.first - v.begin()) == 6 ); in equal_range1()
59 for (; range.first != range.second; ++range.first) in equal_range1()
60 CPPUNIT_ASSERT( *range.first == 2 ); in equal_range1()
63 CPPUNIT_ASSERT( range.first == range.second ); in equal_range1()
64 CPPUNIT_ASSERT( range.first == v.end() ); in equal_range1()
96 CPPUNIT_ASSERT( (range.first - chars) == 18 ); in equal_range2()
98 for (; range.first != range.second; ++range.first) in equal_range2()
99 CPPUNIT_ASSERT( *range.first == 'q' ); in equal_range2()
102 CPPUNIT_ASSERT( (range.second - range.first) == 1 ); in equal_range2()
[all …]
Dmismatch_test.cpp45 CPPUNIT_ASSERT(result.first ==(n1 + 5) && result.second ==(n2 + 5)); in mismatch0()
48 CPPUNIT_ASSERT(!(result.first ==(n1 + 5) && result.second ==(n3 + 5))); in mismatch0()
49 CPPUNIT_ASSERT((result.first - n1)==3); in mismatch0()
60 CPPUNIT_ASSERT(result.first == v1.end() && result.second == v2.end()); in mismatch1()
64 CPPUNIT_ASSERT(!(result.first == v1.end() && result.second == v2.end())); in mismatch1()
65 CPPUNIT_ASSERT((result.first - v1.begin())==5); in mismatch1()
76 CPPUNIT_ASSERT(result.first == n1 + size && result.second == n2 + size); in mismatch2()
80 CPPUNIT_ASSERT(!(result.first == n2 + size && result.second == n2 + size)); in mismatch2()
81 CPPUNIT_ASSERT((result.first - n1)==2); in mismatch2()
Dmap_test.cpp66 CPPUNIT_ASSERT( p.first != m.end() ); in map1()
67 CPPUNIT_ASSERT( (*p.first).first == 'c' ); in map1()
68 CPPUNIT_ASSERT( (*p.first).second == 100 ); in map1()
72 CPPUNIT_ASSERT( p.first != m.end() ); in map1()
73 CPPUNIT_ASSERT( (*p.first).first == 'c' ); in map1()
74 CPPUNIT_ASSERT( (*p.first).second == 100 ); in map1()
96 CPPUNIT_ASSERT((*i).first == 'X'); in mmap1()
99 CPPUNIT_ASSERT((*i).first == 'X'); in mmap1()
102 CPPUNIT_ASSERT((*i).first == 'Y'); in mmap1()
135 CPPUNIT_ASSERT((*i).first==3); in mmap2()
[all …]
Distmit_test.cpp91 2, back_inserter(chars)).first, in copy_n_test()
92 2, back_inserter(chars)).first; in copy_n_test()
141 itr = copy_n(itr, 0, back_inserter(ints)).first; in copy_n_test()
143 itr = copy_n(itr, -1, back_inserter(ints)).first; in copy_n_test()
145 itr = copy_n(itr, 2, back_inserter(ints)).first; in copy_n_test()
149 itr = copy_n(itr, 2, back_inserter(ints)).first; in copy_n_test()
153 itr = copy_n(itr, 2, back_inserter(ints)).first; in copy_n_test()
Dhash_test.cpp128 CPPUNIT_ASSERT((*i).first=='X'); in hmmap1()
131 CPPUNIT_ASSERT((*i).first=='X'); in hmmap1()
134 CPPUNIT_ASSERT((*i).first=='Y'); in hmmap1()
209 pair<hashType::iterator,hashType::iterator> range = h.equal_range( i->first ); in check_keys()
210 for ( hashType::iterator j = range.first; j != range.second; ++j ) { in check_keys()
224 if (mIter->first != lastKey) { in check_keys()
225 cout << endl << "Key : " << mIter->first << endl; in check_keys()
226 lastKey = mIter->first; in check_keys()
230 pair<hashType::iterator,hashType::iterator> range = h.equal_range(mIter->first); in check_keys()
232 for (hashType::iterator h = range.first; h != range.second; h++) { in check_keys()
[all …]
Dunordered_test.cpp82 CPPUNIT_ASSERT( *ret.first == i ); in uset()
86 CPPUNIT_ASSERT( *ret.first == i ); in uset()
183 CPPUNIT_ASSERT( *ret.first == p1 ); in umap()
188 CPPUNIT_ASSERT( *ret.first == p1 ); in umap()
210 umaptype::size_type bucket_pos = us.bucket((*lit).first); in umap()
212 CPPUNIT_ASSERT( us.bucket((*lit).first) == bucket_pos ); in umap()
213 us_val.push_back(make_pair((*lit).first, (*lit).second)); in umap()
250 umaptype::size_type bucket_pos = us.bucket((*lit).first); in umultimap()
252 CPPUNIT_ASSERT( us.bucket((*lit).first) == bucket_pos ); in umultimap()
253 us_val.push_back(ptype((*lit).first, (*lit).second)); in umultimap()
[all …]
/ndk/sources/cxx-stl/gabi++/include/
Dstl_pair.h68 _T1 first; member
70 pair() : first(), second() {} in pair()
71 pair(const _T1& __a, const _T2& __b) : first(__a), second(__b) {} in pair()
74 pair(const pair<_U1, _U2>& __p) : first(__p.first), second(__p.second) {} in pair()
80 return __x.first == __y.first && __x.second == __y.second;
86 return __x.first < __y.first ||
87 (!(__y.first < __x.first) && __x.second < __y.second);
/ndk/sources/cxx-stl/system/include/
Dstl_pair.h68 _T1 first; member
70 pair() : first(), second() {} in pair()
71 pair(const _T1& __a, const _T2& __b) : first(__a), second(__b) {} in pair()
74 pair(const pair<_U1, _U2>& __p) : first(__p.first), second(__p.second) {} in pair()
80 return __x.first == __y.first && __x.second == __y.second;
86 return __x.first < __y.first ||
87 (!(__y.first < __x.first) && __x.second < __y.second);
/ndk/sources/cxx-stl/stlport/src/
Dnum_put.cpp31 __insert_grouping_aux(Char* first, Char* last, const string& grouping, in __insert_grouping_aux() argument
36 if (first == last) in __insert_grouping_aux()
41 if (*first == Plus || *first == Minus) { in __insert_grouping_aux()
43 ++first; in __insert_grouping_aux()
46 first += basechars; in __insert_grouping_aux()
57 if ((groupsize <= 0) || (groupsize >= cur_group - first) || (groupsize == CHAR_MAX)) { in __insert_grouping_aux()
68 return (last - first) + sign + basechars; in __insert_grouping_aux()
135 __insert_grouping(char * first, char * last, const string& grouping, in __insert_grouping() argument
137 return __insert_grouping_aux(first, last, grouping, in __insert_grouping()
149 __insert_grouping(wchar_t* first, wchar_t* last, const string& grouping, in __insert_grouping() argument
[all …]
Dlocale_catalog.cpp183 (*result.first).second.first = create_obj(name, hint, __err_code); in __acquire_category()
184 if (!(*result.first).second.first) { in __acquire_category()
185 (*M)->erase(result.first); in __acquire_category()
197 ++((*result.first).second.second); in __acquire_category()
199 return (*result.first).second.first; in __acquire_category()
221 void* cat1 = (*it).second.first; in __release_category()
Dios.cpp154 if (tmp.first) { // The allocation, if any, succeeded. in iword()
155 _M_iwords = tmp.first; in iword()
171 if (tmp.first) { // The allocation, if any, succeeded. in pword()
172 _M_pwords = tmp.first; in pword()
186 if (tmp.first) { in register_callback()
187 _M_callbacks = tmp.first; in register_callback()
201 event_callback f = _M_callbacks[i-1].first; in _M_invoke_callbacks()
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_pair.h55 _T1 first; member
60 pair() : first(_T1()), second(_T2()) {} in pair()
62 pair(const _T1& __a, const _T2& __b) : first(__a), second(__b) {} in pair()
66 pair(const pair<_U1, _U2>& __p) : first(__p.first), second(__p.second) {} in pair()
68 pair(const pair<_T1,_T2>& __o) : first(__o.first), second(__o.second) {} in pair()
72 pair(__move_source<pair<_T1, _T2> > src) : first(_STLP_PRIV _AsMoveSource(src.get().first)), in pair()
82 { return __x.first == __y.first && __x.second == __y.second; }
86 return __x.first < __y.first ||
87 (!(__y.first < __x.first) && __x.second < __y.second);
/ndk/tests/device/multi-static-instances/jni/
Dmain.cpp15 A* first = A::instance(); in main() local
18 if (first != second) { in main()
19 … fprintf(stderr, "ERROR: instance() returned two distinct addresses: %p %p\n", first, second); in main()
22 printf("OK: instance() returned the same address twice: %p\n", first); in main()
/ndk/sources/host-tools/make-3.81/tests/scripts/functions/
Dword59 "#MAKEFILE#:3: *** non-numeric first argument to `word' function: ''. Stop.",
64 "#MAKEFILE#:4: *** non-numeric first argument to `word' function: 'abc '. Stop.",
69 "#MAKEFILE#:5: *** non-numeric first argument to `word' function: '1a'. Stop.",
74 "#MAKEFILE#:7: *** non-numeric first argument to `wordlist' function: ''. Stop.",
79 "#MAKEFILE#:8: *** non-numeric first argument to `wordlist' function: 'abc '. Stop.",
97 "#MAKEFILE#:3: *** non-numeric first argument to `word' function: ''. Stop.",
102 "#MAKEFILE#:3: *** non-numeric first argument to `word' function: 'abc'. Stop.",
107 "#MAKEFILE#:3: *** first argument to `word' function must be greater than 0. Stop.",
112 "#MAKEFILE#:4: *** non-numeric first argument to `wordlist' function: ''. Stop.",
117 "#MAKEFILE#:4: *** non-numeric first argument to `wordlist' function: 'abc'. Stop.",
[all …]
/ndk/sources/host-tools/sed-4.2.1/testsuite/
Dmac-mf.inp7 # This first part is long enough that NFS/Share doesn't notice the non-ASCII
12 # This first part is long enough that NFS/Share doesn't notice the non-ASCII
17 # This first part is long enough that NFS/Share doesn't notice the non-ASCII
22 # This first part is long enough that NFS/Share doesn't notice the non-ASCII
27 # This first part is long enough that NFS/Share doesn't notice the non-ASCII
32 # This first part is long enough that NFS/Share doesn't notice the non-ASCII
37 # This first part is long enough that NFS/Share doesn't notice the non-ASCII
42 # This first part is long enough that NFS/Share doesn't notice the non-ASCII
47 # This first part is long enough that NFS/Share doesn't notice the non-ASCII
52 # This first part is long enough that NFS/Share doesn't notice the non-ASCII
[all …]
Dmac-mf.good7 # This first part is long enough that NFS:Share doesn't notice the non-ASCII
12 # This first part is long enough that NFS:Share doesn't notice the non-ASCII
17 # This first part is long enough that NFS:Share doesn't notice the non-ASCII
22 # This first part is long enough that NFS:Share doesn't notice the non-ASCII
27 # This first part is long enough that NFS:Share doesn't notice the non-ASCII
32 # This first part is long enough that NFS:Share doesn't notice the non-ASCII
37 # This first part is long enough that NFS:Share doesn't notice the non-ASCII
42 # This first part is long enough that NFS:Share doesn't notice the non-ASCII
47 # This first part is long enough that NFS:Share doesn't notice the non-ASCII
52 # This first part is long enough that NFS:Share doesn't notice the non-ASCII
[all …]
/ndk/sources/host-tools/make-3.81/tests/scripts/features/
Dparallelism7 rules. The first rule has a series of sleep and echo commands
12 first command is a sleep command, the output of the second
13 and third commands will appear before the first if indeed
49 # Test parallelism with included files--this time recurse first and make
75 first.CMD = echo hi
78 .PHONY: all first second
79 all: first second
81 first second: ; \@echo \$\@; $sleep_command 1; echo \$\@",
82 '-j2', "first\nfirst\nsecond\nsecond");

12345678