Searched refs:counter (Results 1 - 25 of 529) sorted by relevance

1234567891011>>

/external/dbus/dbus/
H A Ddbus-resources.c58 long size_value; /**< current size counter value */
59 long unix_fd_value; /**< current unix fd counter value */
79 * @returns new counter or #NULL on failure
84 DBusCounter *counter; local
86 counter = dbus_new (DBusCounter, 1);
87 if (counter == NULL)
90 counter->refcount = 1;
91 counter->size_value = 0;
92 counter->unix_fd_value = 0;
94 counter
109 _dbus_counter_ref(DBusCounter *counter) argument
125 _dbus_counter_unref(DBusCounter *counter) argument
148 _dbus_counter_adjust_size(DBusCounter *counter, long delta) argument
178 _dbus_counter_adjust_unix_fd(DBusCounter *counter, long delta) argument
205 _dbus_counter_get_size_value(DBusCounter *counter) argument
217 _dbus_counter_get_unix_fd_value(DBusCounter *counter) argument
234 _dbus_counter_set_notify(DBusCounter *counter, long size_guard_value, long unix_fd_guard_value, DBusCounterNotifyFunction function, void *user_data) argument
[all...]
H A Ddbus-resources.h34 typedef void (* DBusCounterNotifyFunction) (DBusCounter *counter,
38 DBusCounter* _dbus_counter_ref (DBusCounter *counter);
39 void _dbus_counter_unref (DBusCounter *counter);
41 void _dbus_counter_adjust_size (DBusCounter *counter,
43 void _dbus_counter_adjust_unix_fd (DBusCounter *counter,
45 long _dbus_counter_get_size_value (DBusCounter *counter);
46 long _dbus_counter_get_unix_fd_value (DBusCounter *counter);
48 void _dbus_counter_set_notify (DBusCounter *counter,
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
H A 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++)
53 for (int counter = 0; counter < objArra
[all...]
H A DRandomTest.java51 for (int counter = 0; counter < 100; counter++)
71 for (int counter = 1; counter < randomBytes.length; counter++)
72 if (randomBytes[counter] != firstByte)
88 for (int counter = 0; counter < 100; counter
[all...]
/external/guava/guava-tests/test/com/google/common/io/
H A DCountingInputStreamTest.java29 private CountingInputStream counter; field in class:CountingInputStreamTest
33 counter = new CountingInputStream(new ByteArrayInputStream(new byte[20]));
37 assertEquals(0, counter.getCount());
38 assertEquals(0, counter.read());
39 assertEquals(1, counter.getCount());
43 assertEquals(10, counter.read(new byte[10]));
44 assertEquals(10, counter.getCount());
48 assertEquals(3, counter.read(new byte[10], 1, 3));
49 assertEquals(3, counter.getCount());
53 assertEquals(10, counter
[all...]
H A DCountingOutputStreamTest.java31 CountingOutputStream counter = new CountingOutputStream(out);
33 assertEquals(written, counter.getCount());
35 counter.write(0);
38 assertEquals(written, counter.getCount());
41 counter.write(data);
44 assertEquals(written, counter.getCount());
46 counter.write(data, 0, 5);
49 assertEquals(written, counter.getCount());
51 counter.write(data, 2, 5);
54 assertEquals(written, counter
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
H A DDHValidationParameters.java8 private int counter; field in class:DHValidationParameters
12 int counter)
15 this.counter = counter;
20 return counter;
38 if (other.counter != this.counter)
48 return counter ^ Arrays.hashCode(seed);
10 DHValidationParameters( byte[] seed, int counter) argument
H A DDSAValidationParameters.java8 private int counter; field in class:DSAValidationParameters
12 int counter)
15 this.counter = counter;
20 return counter;
30 return counter ^ Arrays.hashCode(seed);
43 if (other.counter != this.counter)
10 DSAValidationParameters( byte[] seed, int counter) argument
/external/chromium/chrome/common/extensions/docs/examples/api/messaging/timer/
H A Dpage.js3 port.postMessage({counter: msg.counter+1});
9 sendResponse({counter: request.counter+1});
/external/chromium-trace/trace-viewer/src/tracks/
H A Dtimeline_counter_track.css5 .timeline-counter-track {
/external/chromium/chrome/browser/instant/
H A Dpromo_counter_unittest.cc17 PromoCounter counter(&profile, "test", "test", 2, 2);
18 ASSERT_TRUE(counter.ShouldShow(test_time));
19 ASSERT_TRUE(counter.ShouldShow(test_time + base::TimeDelta::FromHours(2)));
20 ASSERT_FALSE(counter.ShouldShow(test_time + base::TimeDelta::FromDays(4)));
30 PromoCounter counter(&profile, "test", "test", 2, 2);
31 ASSERT_TRUE(counter.ShouldShow(test_time));
35 PromoCounter counter(&profile, "test", "test", 2, 2);
36 ASSERT_TRUE(counter.ShouldShow(test_time));
40 PromoCounter counter(&profile, "test", "test", 2, 2);
41 ASSERT_FALSE(counter
[all...]
/external/v8/test/mjsunit/compiler/
H A Dinline-construct.js34 var counter = { value:0 };
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) {
[all...]
/external/compiler-rt/BlocksRuntime/tests/
H A Ddispatch_async.c20 __block CFIndex counter; local
25 counter = 0;
31 counter++;
34 counter--;
35 if(counter == 0) {
40 if(counter == 0) {
/external/kernel-headers/original/asm-mips/
H A Datomic.h23 typedef struct { volatile int counter; } atomic_t; member in struct:__anon6643
33 #define atomic_read(v) ((v)->counter)
42 #define atomic_set(v, i) ((v)->counter = (i))
63 : "=&r" (temp), "=m" (v->counter)
64 : "Ir" (i), "m" (v->counter));
78 : "=&r" (temp), "=m" (v->counter)
79 : "Ir" (i), "m" (v->counter));
84 v->counter += i;
108 : "=&r" (temp), "=m" (v->counter)
109 : "Ir" (i), "m" (v->counter));
407 typedef struct { volatile long counter; } atomic64_t; member in struct:__anon6644
[all...]
/external/qemu/telephony/
H A Dtest1.c17 static int counter = 0; variable
25 ++counter;
26 printf( "tick %d/%d a %.2fs\n", counter, MAX_COUNTER, now/1000. );
27 if (counter < MAX_COUNTER)
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
H A DPasswordAuthenticationTest.java39 for (int counter = password.length - 1; counter >= 0; counter--)
41 returnedPassword[counter] == password[counter]);
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
H A Deap_psk_common.c44 u8 counter = 1; local
50 hash[aes_block_size - 1] ^= counter;
53 hash[aes_block_size - 1] ^= counter;
54 counter++;
57 hash[aes_block_size - 1] ^= counter;
60 hash[aes_block_size - 1] ^= counter;
61 counter++;
65 hash[aes_block_size - 1] ^= counter;
69 hash[aes_block_size - 1] ^= counter;
70 counter
[all...]
/external/wpa_supplicant_8/hostapd/src/eap_common/
H A Deap_psk_common.c38 u8 counter = 1; local
44 hash[aes_block_size - 1] ^= counter;
47 hash[aes_block_size - 1] ^= counter;
48 counter++;
51 hash[aes_block_size - 1] ^= counter;
54 hash[aes_block_size - 1] ^= counter;
55 counter++;
59 hash[aes_block_size - 1] ^= counter;
63 hash[aes_block_size - 1] ^= counter;
64 counter
[all...]
/external/wpa_supplicant_8/src/eap_common/
H A Deap_psk_common.c38 u8 counter = 1; local
44 hash[aes_block_size - 1] ^= counter;
47 hash[aes_block_size - 1] ^= counter;
48 counter++;
51 hash[aes_block_size - 1] ^= counter;
54 hash[aes_block_size - 1] ^= counter;
55 counter++;
59 hash[aes_block_size - 1] ^= counter;
63 hash[aes_block_size - 1] ^= counter;
64 counter
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/
H A Deap_psk_common.c38 u8 counter = 1; local
44 hash[aes_block_size - 1] ^= counter;
47 hash[aes_block_size - 1] ^= counter;
48 counter++;
51 hash[aes_block_size - 1] ^= counter;
54 hash[aes_block_size - 1] ^= counter;
55 counter++;
59 hash[aes_block_size - 1] ^= counter;
63 hash[aes_block_size - 1] ^= counter;
64 counter
[all...]
/external/oprofile/daemon/
H A Dopd_events.h3 * Event details for each counter
23 unsigned long counter; member in struct:opd_event
36 /** Find the event for the given counter */
37 struct opd_event * find_counter_event(unsigned long counter);
42 void fill_header(struct opd_header * header, unsigned long counter,
H A Dopd_mangling.h22 * @param counter counter number
25 * Open image sample file for the sfile, counter
26 * counter and set up memory mappings for it.
31 struct sfile * sf, int counter, int cg);
/external/valgrind/main/none/tests/s390x/
H A Dex_sig.c16 static int counter; local
19 counter++;
27 if (counter == 2) {
/external/chromium/chrome/browser/autofill/crypto/
H A Drc4_decryptor.h65 short counter; local
68 for (counter = 0; counter < kKeyDataSize; ++counter)
69 state[counter] = static_cast<uint8>(counter);
73 for (counter = 0; counter < kKeyDataSize; counter++) {
74 index2 = (key_data[index1] + state[counter]
84 int counter; local
[all...]
/external/chromium/net/disk_cache/
H A Dhistogram_macros.h21 // |counter| was made static (i.e., there will be no race for reinitialization).
25 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
[all...]

Completed in 419 milliseconds

1234567891011>>