Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 869) sorted by relevance

12345678910>>...35

/external/chromium_org/v8/test/webkit/
Dlegitimately-captured-argument-expected.txt29 PASS counter() is 1
30 PASS counter() is 2
31 PASS counter() is 3
32 PASS counter() is 4
33 PASS counter() is 5
34 PASS counter() is 6
35 PASS counter() is 7
36 PASS counter() is 8
37 PASS counter() is 9
38 PASS counter() is 10
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DCountingInputStreamTest.java29 private CountingInputStream counter; field in CountingInputStreamTest
33 counter = new CountingInputStream(new ByteArrayInputStream(new byte[20])); in setUp()
37 assertEquals(0, counter.getCount()); in testReadSingleByte()
38 assertEquals(0, counter.read()); in testReadSingleByte()
39 assertEquals(1, counter.getCount()); in testReadSingleByte()
43 assertEquals(10, counter.read(new byte[10])); in testReadArray()
44 assertEquals(10, counter.getCount()); in testReadArray()
48 assertEquals(3, counter.read(new byte[10], 1, 3)); in testReadArrayRange()
49 assertEquals(3, counter.getCount()); in testReadArrayRange()
53 assertEquals(10, counter.skip(10)); in testSkip()
[all …]
DCountingOutputStreamTest.java31 CountingOutputStream counter = new CountingOutputStream(out); in testCount() local
33 assertEquals(written, counter.getCount()); in testCount()
35 counter.write(0); in testCount()
38 assertEquals(written, counter.getCount()); in testCount()
41 counter.write(data); in testCount()
44 assertEquals(written, counter.getCount()); in testCount()
46 counter.write(data, 0, 5); in testCount()
49 assertEquals(written, counter.getCount()); in testCount()
51 counter.write(data, 2, 5); in testCount()
54 assertEquals(written, counter.getCount()); in testCount()
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DArraysTest.java80 for (int counter = 0; counter < arraySize; counter++) { in test_asList$Ljava_lang_Object()
83 convertedList.get(counter) == objectArray[counter]); in test_asList$Ljava_lang_Object()
95 for (int counter = 0; counter < arraySize; counter++) { in test_asList$Ljava_lang_Object()
98 convertedList.get(counter) == myArray[counter]); in test_asList$Ljava_lang_Object()
114 for (byte counter = 0; counter < arraySize; counter++) in test_binarySearch$BB()
116 Arrays.binarySearch(byteArray, counter) == counter); in test_binarySearch$BB()
122 for (byte counter = 0; counter < arraySize; counter++) in test_binarySearch$BB()
123 byteArray[counter] -= 50; in test_binarySearch$BB()
124 for (byte counter = 0; counter < arraySize; counter++) in test_binarySearch$BB()
127 Arrays.binarySearch(byteArray, (byte) (counter - 50)) == counter); in test_binarySearch$BB()
[all …]
DRandomTest.java51 for (int counter = 0; counter < 100; counter++) in test_nextBoolean()
71 for (int counter = 1; counter < randomBytes.length; counter++) in test_nextBytes$B()
72 if (randomBytes[counter] != firstByte) in test_nextBytes$B()
88 for (int counter = 0; counter < 100; counter++) { in test_nextDouble()
112 for (int counter = 0; counter < 100; counter++) { in test_nextFloat()
135 for (int counter = 0; counter < 100; counter++) { in test_nextGaussian()
158 for (int counter = 0; counter < 100; counter++) { in test_nextInt()
178 for (int counter = 0; counter < 100; counter++) { in test_nextIntI()
202 for (int counter = 0; counter < 100; counter++) { in test_nextLong()
226 for (int counter = 0; counter < randomArray.length; counter++) { in test_setSeedJ()
[all …]
DEmptyStackExceptionTest.java29 for (int counter = 0; counter < objArray.length; counter++)
30 objArray[counter] = new Integer(counter);
39 for (int counter = 0; counter < objArray.length + 1; counter++) in test_Constructor()
53 for (int counter = 0; counter < objArray.length; counter++) in setUp()
54 s.push(objArray[counter]); in setUp()
/external/kernel-headers/original/asm-mips/
Datomic.h23 typedef struct { volatile int counter; } atomic_t; member
33 #define atomic_read(v) ((v)->counter)
42 #define atomic_set(v, i) ((v)->counter = (i))
63 : "=&r" (temp), "=m" (v->counter) in atomic_add()
64 : "Ir" (i), "m" (v->counter)); in atomic_add()
78 : "=&r" (temp), "=m" (v->counter) in atomic_add()
79 : "Ir" (i), "m" (v->counter)); in atomic_add()
84 v->counter += i; in atomic_add()
108 : "=&r" (temp), "=m" (v->counter) in atomic_sub()
109 : "Ir" (i), "m" (v->counter)); in atomic_sub()
[all …]
/external/v8/test/mjsunit/compiler/
Dinline-construct.js34 var counter = { value:0 }; variable in TestInlinedConstructor
35 result = closure(11, 12, counter);
37 assertEquals(1, counter.value);
38 result = closure(23, 19, counter);
40 assertEquals(2, counter.value);
42 result = closure(1, 42, counter)
44 assertEquals(3, counter.value);
45 result = closure("foo", "bar", counter)
47 assertEquals(4, counter.value);
51 function value_context(a, b, counter) { argument
[all …]
/external/chromium/chrome/browser/instant/
Dpromo_counter_unittest.cc17 PromoCounter counter(&profile, "test", "test", 2, 2); in TEST_F() local
18 ASSERT_TRUE(counter.ShouldShow(test_time)); in TEST_F()
19 ASSERT_TRUE(counter.ShouldShow(test_time + base::TimeDelta::FromHours(2))); in TEST_F()
20 ASSERT_FALSE(counter.ShouldShow(test_time + base::TimeDelta::FromDays(4))); in TEST_F()
30 PromoCounter counter(&profile, "test", "test", 2, 2); in TEST_F() local
31 ASSERT_TRUE(counter.ShouldShow(test_time)); in TEST_F()
35 PromoCounter counter(&profile, "test", "test", 2, 2); in TEST_F() local
36 ASSERT_TRUE(counter.ShouldShow(test_time)); in TEST_F()
40 PromoCounter counter(&profile, "test", "test", 2, 2); in TEST_F() local
41 ASSERT_FALSE(counter.ShouldShow(test_time)); in TEST_F()
[all …]
/external/chromium_org/v8/test/mjsunit/compiler/
Dinline-construct.js34 var counter = { value:0 }; variable in TestInlinedConstructor
38 result = closure(constructor, 11, noDeopt, counter);
40 assertEquals(1, counter.value);
42 result = closure(constructor, 23, noDeopt, counter);
44 assertEquals(2, counter.value);
47 result = closure(constructor, 42, noDeopt, counter);
49 assertEquals(3, counter.value);
51 result = closure(constructor, 127, forceDeopt, counter);
53 assertEquals(4, counter.value);
60 function value_context(constructor, val, deopt, counter) { argument
[all …]
/external/chromium_org/chrome/browser/chromeos/settings/
Ddevice_oauth2_token_service_factory_unittest.cc23 int* counter, in CopyTokenServiceAndCount() argument
26 ++(*counter); in CopyTokenServiceAndCount()
67 int counter = 0; in TEST_F() local
69 base::Bind(&CopyTokenServiceAndCount, &token_service, &counter)); in TEST_F()
71 EXPECT_EQ(0, counter); in TEST_F()
76 EXPECT_EQ(1, counter); in TEST_F()
85 int counter = 0; in TEST_F() local
87 base::Bind(&CopyTokenServiceAndCount, &token_service, &counter)); in TEST_F()
89 EXPECT_EQ(0, counter); in TEST_F()
94 EXPECT_EQ(1, counter); in TEST_F()
[all …]
/external/chromium-trace/trace-viewer/src/tracing/tracks/
Dcounter_track.js45 get counter() { getter in CounterTrack
49 set counter(counter) { argument
50 this.counter_ = counter;
51 this.heading = counter.name + ': ';
85 var counter = this.counter_;
100 var numSeries = counter.numSeries;
101 var numSamples = counter.numSamples;
103 counter.timestamps,
109 var yScale = height / counter.maxTotal;
110 for (var seriesIndex = counter.numSeries - 1;
[all …]
/external/chromium/net/base/
Dmime_sniffer.cc214 base::Histogram* counter = in UMASnifferHistogramGet() local
217 return counter; in UMASnifferHistogramGet()
269 base::Histogram* counter, in CheckForMagicNumbers() argument
273 if (counter) counter->Add(static_cast<int>(i)); in CheckForMagicNumbers()
311 static base::Histogram* counter(NULL); in SniffForHTML() local
312 if (!counter) in SniffForHTML()
313 counter = UMASnifferHistogramGet("mime_sniffer.kSniffableTags2", in SniffForHTML()
318 counter, result); in SniffForHTML()
330 static base::Histogram* counter(NULL); in SniffForMagicNumbers() local
331 if (!counter) in SniffForMagicNumbers()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
Du_time.h58 int64_t counter; member
66 t->counter = os_time_get(); in util_time_get()
79 t2->counter = t1->counter + usecs; in util_time_add()
91 return t2->counter - t1->counter; in util_time_diff()
105 if (t1->counter < t2->counter) in _util_time_compare()
107 else if(t1->counter > t2->counter) in _util_time_compare()
123 return os_time_timeout(start->counter, end->counter, curr->counter); in util_time_timeout()
/external/mesa3d/src/gallium/auxiliary/util/
Du_time.h58 int64_t counter; member
66 t->counter = os_time_get(); in util_time_get()
79 t2->counter = t1->counter + usecs; in util_time_add()
91 return t2->counter - t1->counter; in util_time_diff()
105 if (t1->counter < t2->counter) in _util_time_compare()
107 else if(t1->counter > t2->counter) in _util_time_compare()
123 return os_time_timeout(start->counter, end->counter, curr->counter); in util_time_timeout()
/external/chromium/base/metrics/
Dhistogram.h77 static base::Histogram* counter(NULL); \
78 if (!counter) \
79 counter = base::Histogram::FactoryGet(name, min, max, bucket_count, \
81 DCHECK_EQ(name, counter->histogram_name()); \
82 counter->Add(sample); \
91 static base::Histogram* counter(NULL); \
92 if (!counter) \
93 counter = base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \
95 DCHECK_EQ(name, counter->histogram_name()); \
96 counter->AddTime(sample); \
[all …]
/external/chromium_org/components/autofill/core/browser/crypto/
Drc4_decryptor.h70 short counter; in PrepareKey() local
73 for (counter = 0; counter < kKeyDataSize; ++counter) in PrepareKey()
74 state[counter] = static_cast<uint8>(counter); in PrepareKey()
78 for (counter = 0; counter < kKeyDataSize; counter++) { in PrepareKey()
79 index2 = (key_data[index1] + state[counter] + index2) % kKeyDataSize; in PrepareKey()
80 SwapByte(&state[counter], &state[index2]); in PrepareKey()
89 int counter; in RunInternal() local
94 for (counter = 0; counter < buffer_len; ++counter) { in RunInternal()
99 buffer[counter] ^= state[xor_index]; in RunInternal()
/external/chromium/chrome/browser/autofill/crypto/
Drc4_decryptor.h65 short counter; in PrepareKey() local
68 for (counter = 0; counter < kKeyDataSize; ++counter) in PrepareKey()
69 state[counter] = static_cast<uint8>(counter); in PrepareKey()
73 for (counter = 0; counter < kKeyDataSize; counter++) { in PrepareKey()
74 index2 = (key_data[index1] + state[counter] + index2) % kKeyDataSize; in PrepareKey()
75 SwapByte(&state[counter], &state[index2]); in PrepareKey()
84 int counter; in RunInternal() local
89 for (counter = 0; counter < buffer_len; ++counter) { in RunInternal()
94 buffer[counter] ^= state[xor_index]; in RunInternal()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DDSAValidationParameters.java9 private int counter; field in DSAValidationParameters
13 int counter) in DSAValidationParameters() argument
15 this(seed, counter, -1); in DSAValidationParameters()
20 int counter, in DSAValidationParameters() argument
24 this.counter = counter; in DSAValidationParameters()
30 return counter; in getCounter()
45 return counter ^ Arrays.hashCode(seed); in hashCode()
58 if (other.counter != this.counter) in equals()
/external/chromium/net/disk_cache/
Dhistogram_macros.h25 static base::Histogram* counter(NULL); \
26 if (!counter || name != counter->histogram_name()) \
27 counter = base::Histogram::FactoryGet( \
30 counter->Add(sample); \
44 static base::Histogram* counter(NULL); \
45 if (!counter || name != counter->histogram_name()) \
46 counter = base::Histogram::FactoryTimeGet( \
49 counter->AddTime(sample); \
57 static base::Histogram* counter(NULL); \
58 if (!counter || name != counter->histogram_name()) \
[all …]
/external/chromium_org/net/disk_cache/
Dhistogram_macros.h24 static base::HistogramBase* counter(NULL); \
25 if (!counter || name != counter->histogram_name()) \
26 counter = base::Histogram::FactoryGet( \
29 counter->Add(sample); \
43 static base::HistogramBase* counter(NULL); \
44 if (!counter || name != counter->histogram_name()) \
45 counter = base::Histogram::FactoryTimeGet( \
48 counter->AddTime(sample); \
56 static base::HistogramBase* counter(NULL); \
57 if (!counter || name != counter->histogram_name()) \
[all …]
/external/iputils/
Dtftpsubs.c62 int counter; /* size of data in buffer, or flag */ member
89 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */ in rw_init()
91 bfs[1].counter = BF_FREE; in rw_init()
104 bfs[current].counter = BF_FREE; /* free old one */ in readit()
108 if (b->counter == BF_FREE) /* if it's empty */ in readit()
111 assert(b->counter != BF_FREE); /* check */ in readit()
114 return b->counter; in readit()
130 if (b->counter != BF_FREE) /* nop if not free */ in read_ahead()
137 b->counter = read(fileno(file), dp->th_data, SEGSIZE); in read_ahead()
160 b->counter = (int)(p - dp->th_data); in read_ahead()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
Dlp_perf.h73 #define LP_COUNT(counter) lp_count.counter++ argument
74 #define LP_COUNT_ADD(counter, incr) lp_count.counter += (incr) argument
75 #define LP_COUNT_GET(counter) (lp_count.counter) argument
77 #define LP_COUNT(counter) argument
78 #define LP_COUNT_ADD(counter, incr) (void)(incr) argument
79 #define LP_COUNT_GET(counter) 0 argument
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_perf.h73 #define LP_COUNT(counter) lp_count.counter++ argument
74 #define LP_COUNT_ADD(counter, incr) lp_count.counter += (incr) argument
75 #define LP_COUNT_GET(counter) (lp_count.counter) argument
77 #define LP_COUNT(counter) argument
78 #define LP_COUNT_ADD(counter, incr) (void)(incr) argument
79 #define LP_COUNT_GET(counter) 0 argument
/external/chromium_org/media/base/
Duser_input_monitor_unittest.cc27 KeyboardEventCounter counter; in TEST() local
29 EXPECT_EQ(0u, counter.GetKeyPressCount()); in TEST()
31 counter.OnKeyboardEvent(ui::ET_KEY_PRESSED, ui::VKEY_0); in TEST()
32 EXPECT_EQ(1u, counter.GetKeyPressCount()); in TEST()
35 counter.OnKeyboardEvent(ui::ET_KEY_PRESSED, ui::VKEY_0); in TEST()
36 EXPECT_EQ(1u, counter.GetKeyPressCount()); in TEST()
39 counter.OnKeyboardEvent(ui::ET_KEY_RELEASED, ui::VKEY_0); in TEST()
40 EXPECT_EQ(1u, counter.GetKeyPressCount()); in TEST()
42 counter.OnKeyboardEvent(ui::ET_KEY_PRESSED, ui::VKEY_0); in TEST()
43 counter.OnKeyboardEvent(ui::ET_KEY_RELEASED, ui::VKEY_0); in TEST()
[all …]

12345678910>>...35