Home
last modified time | relevance | path

Searched refs:random_number (Results 1 – 25 of 49) sorted by relevance

12

/external/stlport/test/eh/
Dtest_bit_vector.cpp79 size_t BitVectorSize = random_number( random_base ); in test_bit_vector()
81 if ( random_number(2) ) in test_bit_vector()
88 testVector.push_back(random_number(2) != 0); in test_bit_vector()
89 testVector2.push_back(random_number(2) != 0); in test_bit_vector()
97 StrongCheck(testVector, test_insert_n<BitVector>(testVector, random_number(random_base) ) ); in test_bit_vector()
98 StrongCheck(testVector, test_insert_n<BitVector>(testVector, random_number(random_base),0 ) ); in test_bit_vector()
99 …StrongCheck(testVector, test_insert_n<BitVector>(testVector, random_number(random_base), (int)test… in test_bit_vector()
102 size_t insCnt = 1 + random_number(random_base); in test_bit_vector()
105 insFirst[n] = random_number(2); in test_bit_vector()
117 StrongCheck(testVector, test_BitVector_reserve( testVector.capacity() + random_number(50))); in test_bit_vector()
[all …]
Dtest_vector.cpp46 if ( random_number(2) ) in prepare_insert_n()
66 if ( random_number(2) ) in prepare_insert_range()
77 ConstCheck( 0, test_construct_n<TestVector>( random_number(random_base) ) ); in test_vector()
81 size_t vectorSize = random_number(random_base); in test_vector()
91 size_t insCnt = random_number(random_base); in test_vector()
105 WeakCheck( testVector, test_insert_n<TestVector>(testVector, random_number(random_base) ) ); in test_vector()
106 WeakCheck( testVector, test_insert_n<TestVector>(testVector, random_number(random_base), 0 ) ); in test_vector()
107 …WeakCheck( testVector, test_insert_n<TestVector>(testVector, random_number(random_base), (int)test… in test_vector()
112 StrongCheck( testVector, test_reserve( testVector.capacity() + random_number(random_base) ) ); in test_vector()
117 ConstCheck( 0, test_construct_n_instance<TestVector>( random_number(random_base) ) ); in test_vector()
Dtest_valarray.cpp41 size_t ropeSize = random_number(random_base); in test_rope()
45 TestValarray::value_type x = random_number(random_base) ; // initialize before use in test_rope()
53 … WeakCheck( testValarray, test_insert_n<TestValarray>(testValarray, random_number(random_base) ) ); in test_rope()
54 …WeakCheck( testValarray, test_insert_n<TestValarray>(testValarray, random_number(random_base), 0 )… in test_rope()
55 …WeakCheck( testValarray, test_insert_n<TestValarray>(testValarray, random_number(random_base), tes… in test_rope()
57 size_t insCnt = random_number(random_base); in test_rope()
73 ConstCheck( 0, test_construct_n<TestValarray>( random_number(random_base) ) ); in test_rope()
74 ConstCheck( 0, test_construct_n_instance<TestValarray>( random_number(random_base) ) ); in test_rope()
Dtest_string.cpp40 size_t ropeSize = random_number(random_base); in test_string()
43 …TestString::value_type x = TestString::value_type(random_number(random_base)) ; // initialize bef… in test_string()
51 WeakCheck( testString, test_insert_n<TestString>(testString, random_number(random_base) ) ); in test_string()
52 WeakCheck( testString, test_insert_n<TestString>(testString, random_number(random_base), 0 ) ); in test_string()
53 …WeakCheck( testString, test_insert_n<TestString>(testString, random_number(random_base), (int)test… in test_string()
55 size_t insCnt = random_number(random_base); in test_string()
72 ConstCheck( 0, test_construct_n_instance<TestString>( random_number(random_base) ) ); in test_string()
Dtest_rope.cpp52 size_t ropeSize = random_number(random_base); in test_rope()
56 …TestRope::value_type x = TestRope::value_type(random_number(random_base)); // initialize before u… in test_rope()
64 WeakCheck( testRope, test_insert_n<TestRope>(testRope, random_number(random_base) ) ); in test_rope()
65 WeakCheck( testRope, test_insert_n<TestRope>(testRope, random_number(random_base), 0 ) ); in test_rope()
66 …WeakCheck( testRope, test_insert_n<TestRope>(testRope, random_number(random_base), (int)testRope.s… in test_rope()
68 size_t insCnt = random_number(random_base); in test_rope()
91 ConstCheck( 0, test_construct_n_instance<TestRope>( random_number(random_base) ) ); in test_rope()
Dtest_slist.cpp57 size_t slistSize = random_number(random_base); in test_slist()
69 WeakCheck( testSList, test_insert_n<TestSList>(testSList, random_number(random_base) ) ); in test_slist()
70 WeakCheck( testSList, test_insert_n<TestSList>(testSList, random_number(random_base), 0 ) ); in test_slist()
71 …WeakCheck( testSList, test_insert_n<TestSList>(testSList, random_number(random_base), (int)testSLi… in test_slist()
73 size_t insCnt = random_number(random_base); in test_slist()
84 ConstCheck( 0, test_construct_n<TestSList>( random_number(random_base) ) ); in test_slist()
85 ConstCheck( 0, test_construct_n_instance<TestSList>( random_number(random_base) ) ); in test_slist()
Dtest_deque.cpp49 size_t dequeSize = random_number(random_base); in test_deque()
64 WeakCheck( testDeque, test_insert_n<TestDeque>(testDeque, random_number(random_base) ) ); in test_deque()
65 StrongCheck( testDeque, test_insert_n<TestDeque>(testDeque, random_number(random_base), 0 ) ); in test_deque()
66 …StrongCheck( testDeque, test_insert_n<TestDeque>(testDeque, random_number(random_base), (int)testD… in test_deque()
68 size_t insCnt = random_number(random_base); in test_deque()
87 ConstCheck( 0, test_construct_n<TestDeque>( random_number(random_base) ) ); in test_deque()
88 ConstCheck( 0, test_construct_n_instance<TestDeque>( random_number(random_base) ) ); in test_deque()
Dtest_list.cpp67 size_t listSize = random_number(random_base); in test_list()
80 WeakCheck( testList, test_insert_n<TestList>(testList, random_number(random_base) ) ); in test_list()
81 WeakCheck( testList, test_insert_n<TestList>(testList, random_number(random_base), 0 ) ); in test_list()
82 …WeakCheck( testList, test_insert_n<TestList>(testList, random_number(random_base), (int)testList.s… in test_list()
84 size_t insCnt = random_number(random_base); in test_list()
102 ConstCheck( 0, test_construct_n<TestList>( random_number(random_base) ) ); in test_list()
103 ConstCheck( 0, test_construct_n_instance<TestList>( random_number(random_base) ) ); in test_list()
Dtest_set.cpp44 const size_t setSize = random_number(random_base); in test_multiset()
54 size_t insCnt = random_number(random_base); in test_multiset()
78 const size_t setSize = random_number(random_base); in test_set()
87 size_t insCnt = random_number(random_base); in test_set()
Dtest_hash_map.cpp50 const size_t hash_mapSize = random_number(random_base); in test_hash_multimap()
66 size_t insCnt = random_number(random_base); in test_hash_multimap()
98 const size_t hash_mapSize = random_number(random_base); in test_hash_map()
113 size_t insCnt = random_number(random_base); in test_hash_map()
Dtest_hash_set.cpp46 const size_t hash_setSize = random_number(random_base); in test_hash_multiset()
62 size_t insCnt = random_number(random_base); in test_hash_multiset()
93 const size_t hash_setSize = random_number(random_base); in test_hash_set()
109 size_t insCnt = random_number(random_base); in test_hash_set()
Dtest_map.cpp54 const size_t mapSize = random_number(random_base); in test_multimap()
65 size_t insCnt = 1 + random_number(random_base); in test_multimap()
102 const size_t mapSize = random_number(random_base); in test_map()
113 size_t insCnt = random_number(random_base); in test_map()
Dexport13 random_number.cpp
14 random_number.h
Drandom_number.h22 unsigned random_number( size_t range );
Drandom_number.cpp26 unsigned random_number( size_t range ) in random_number() function
Dtest_hash_resize.h32 t.resize( 1+random_number(random_base) + t.bucket_count() ); in operator()
Dtest_insert.h322 inline void MakeRandomValue(bool& b) { b = bool(random_number(2) != 0); } in MakeRandomValue()
331 : original( orig ), fPos( random_number( orig.size() )) in original()
368 : original( orig ), fPos( random_number( orig.size() )), fInsCnt(insCnt) in original()
503 fPos( random_number( orig.size() )) in fFirst()
Ddescrip.mms14 AUX_LIST=TestClass.obj,main.obj,nc_alloc.obj,random_number.obj
Dcray.mak9 AUX_LIST=TestClass.o main.o nc_alloc.o random_number.o
DTestClass.h156 return random_number( range ); in get_random()
Dbcb.mak21 random_number.obj \
Dsgi_mipspro.mak15 AUX_LIST=TestClass.o main.o nc_alloc.o random_number.o
Dintel.mak27 random_number.obj test_algo.obj test_algobase.obj test_bit_vector.obj test_deque.obj \
Dcomo-linux.mak14 AUX_LIST=TestClass.cpp main.cpp nc_alloc.cpp random_number.cpp
/external/libyuv/files/unit_test/
Drotate_test.cc989 uint8 random_number = random() & 0x7f; in TEST_F() local
990 orig_uv[i * ((2 * uvw) + (2 * b)) + j] = random_number; in TEST_F()
991 orig_uv[i * ((2 * uvw) + (2 * b)) + j + 1] = -random_number; in TEST_F()
1091 uint8 random_number = random() & 0x7f; in TEST_F() local
1092 orig_uv[i * ((2 * uvw) + (2 * b)) + j] = random_number; in TEST_F()
1093 orig_uv[i * ((2 * uvw) + (2 * b)) + j + 1] = -random_number; in TEST_F()
1193 uint8 random_number = random() & 0x7f; in TEST_F() local
1194 orig_uv[i * ((2 * uvw) + (2 * b)) + j] = random_number; in TEST_F()
1195 orig_uv[i * ((2 * uvw) + (2 * b)) + j + 1] = -random_number; in TEST_F()
1295 uint8 random_number = random() & 0x7f; in TEST_F() local
[all …]

12