HomeSort by relevance Sort by last modified time
    Searched refs:SIZE (Results 26 - 50 of 188) sorted by null

12 3 4 5 6 7 8

  /libcore/luni/src/test/java/tests/api/java/util/concurrent/
LinkedListTest.java 21 * Create a queue of given size containing consecutive
30 assertEquals(n, q.size());
38 assertEquals(0, new LinkedList().size());
58 Integer[] ints = new Integer[SIZE];
59 for (int i = 0; i < SIZE; ++i)
62 for (int i = 0; i < SIZE; ++i)
83 * size changes when elements added and removed
86 LinkedList q = populatedQueue(SIZE);
87 for (int i = 0; i < SIZE; ++i) {
88 assertEquals(SIZE-i, q.size())
    [all...]
DelayQueueTest.java 107 * Create a queue of given size containing consecutive
119 assertEquals(n, q.size());
145 PDelay[] ints = new PDelay[SIZE];
156 PDelay[] ints = new PDelay[SIZE];
157 for (int i = 0; i < SIZE-1; ++i)
168 PDelay[] ints = new PDelay[SIZE];
169 for (int i = 0; i < SIZE; ++i)
172 for (int i = 0; i < SIZE; ++i)
193 * but size does
196 DelayQueue q = populatedQueue(SIZE);
    [all...]
AtomicReferenceArrayTest.java 22 * constructor creates array of given size with all elements null
25 AtomicReferenceArray<Integer> ai = new AtomicReferenceArray<Integer>(SIZE);
26 for (int i = 0; i < SIZE; ++i) {
43 * constructor with array is of same size and has all elements
58 AtomicReferenceArray<Integer> ai = new AtomicReferenceArray<Integer>(SIZE);
60 ai.get(SIZE);
70 ai.set(SIZE, null);
85 AtomicReferenceArray ai = new AtomicReferenceArray(SIZE);
86 for (int i = 0; i < SIZE; ++i) {
100 AtomicReferenceArray ai = new AtomicReferenceArray(SIZE);
    [all...]
ConcurrentSkipListSubSetTest.java 26 * Create a set of given size containing consecutive
41 assertEquals(n, s.size());
59 assertEquals(5, s.size());
75 assertEquals(5, s.size());
95 assertEquals(0, set0().size());
114 * size changes when elements added and removed
117 NavigableSet q = populatedSet(SIZE);
118 for (int i = 0; i < SIZE; ++i) {
119 assertEquals(SIZE-i, q.size());
    [all...]
ConcurrentSkipListSetTest.java 26 * Create a set of given size containing consecutive
37 assertEquals(n, q.size());
52 assertEquals(5, q.size());
60 assertEquals(0, new ConcurrentSkipListSet().size());
78 Integer[] ints = new Integer[SIZE];
89 Integer[] ints = new Integer[SIZE];
90 for (int i = 0; i < SIZE-1; ++i)
101 Integer[] ints = new Integer[SIZE];
102 for (int i = 0; i < SIZE; ++i)
105 for (int i = 0; i < SIZE; ++i
692 int size = set.size(); local
717 int size = set.size(); local
903 int size = 0; local
910 assertEquals(set.size(), size); local
    [all...]
AbstractQueueTest.java 29 public int size() { return 0; } method in class:AbstractQueueTest.Succeed
40 public int size() { return 0; } method in class:AbstractQueueTest.Fail
142 Integer[] ints = new Integer[SIZE];
154 Integer[] ints = new Integer[SIZE];
155 for (int i = 0; i < SIZE-1; ++i)
167 Integer[] ints = new Integer[SIZE];
168 for (int i = 0; i < SIZE; ++i)
CopyOnWriteArrayListTest.java 27 assertEquals(n, a.size());
44 Integer[] ints = new Integer[SIZE];
45 for (int i = 0; i < SIZE-1; ++i)
48 for (int i = 0; i < SIZE; ++i)
56 Integer[] ints = new Integer[SIZE];
57 for (int i = 0; i < SIZE-1; ++i)
60 for (int i = 0; i < SIZE; ++i)
75 assertEquals(6, full.size());
89 assertEquals(5, full.size());
96 CopyOnWriteArrayList full = populatedArray(SIZE);
    [all...]
  /cts/tests/tests/database/src/android/database/cts/
CursorIndexOutOfBoundsExceptionTest.java 45 int SIZE = 99;
47 String expected2 = "Index " + INDEX + " requested, with a size of " + SIZE;
63 throw new CursorIndexOutOfBoundsException(INDEX, SIZE);
  /external/bluetooth/glib/tests/
list-test.c 11 #define SIZE 50
16 static guint32 array[SIZE];
41 for (i = 0; i < SIZE; i++) {
46 for (i = 0; i < SIZE - 1; i++) {
67 for (i = 0; i < SIZE; i++) {
72 for (i = 0; i < SIZE - 1; i++) {
93 for (i = 0; i < SIZE; i++) {
97 for (i = 0; i < SIZE - 1; i++) {
118 for (i = 0; i < SIZE; i++) {
125 for (i = 0; i < SIZE - 1; i++)
    [all...]
slist-test.c 11 #define SIZE 50
16 static guint32 array[SIZE];
41 for (i = 0; i < SIZE; i++) {
46 for (i = 0; i < SIZE - 1; i++) {
65 for (i = 0; i < SIZE; i++) {
70 for (i = 0; i < SIZE - 1; i++) {
89 for (i = 0; i < SIZE; i++) {
93 for (i = 0; i < SIZE - 1; i++) {
112 for (i = 0; i < SIZE; i++) {
119 for (i = 0; i < SIZE - 1; i++)
    [all...]
  /frameworks/base/services/audioflinger/
AudioHardwareStub.cpp 101 const size_t SIZE = 256;
102 char buffer[SIZE];
105 snprintf(buffer, SIZE, "\tmMicMute: %s\n", mMicMute? "true": "false");
107 ::write(fd, result.string(), result.size());
142 const size_t SIZE = 256;
143 char buffer[SIZE];
145 snprintf(buffer, SIZE, "AudioStreamOutStub::dump\n");
146 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate());
147 snprintf(buffer, SIZE, "\tbuffer size: %d\n", bufferSize())
    [all...]
AudioHardwareGeneric.cpp 166 const size_t SIZE = 256;
167 char buffer[SIZE];
170 snprintf(buffer, SIZE, "\tmFd: %d mMicMute: %s\n", mFd, mMicMute? "true": "false");
172 ::write(fd, result.string(), result.size());
245 const size_t SIZE = 256;
246 char buffer[SIZE];
248 snprintf(buffer, SIZE, "AudioStreamOutGeneric::dump\n");
250 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate());
252 snprintf(buffer, SIZE, "\tbuffer size: %d\n", bufferSize())
    [all...]
AudioHardwareInterface.cpp 168 const size_t SIZE = 256;
169 char buffer[SIZE];
171 snprintf(buffer, SIZE, "AudioHardwareBase::dumpState\n");
173 snprintf(buffer, SIZE, "\tmMode: %d\n", mMode);
175 ::write(fd, result.string(), result.size());
  /external/e2fsprogs/intl/
xsize.h 32 /* The size of memory objects is often computed through expressions of
44 size_t size = xsum (header_size, xtimes (n, element_size));
45 void *p = (size_in_bounds_p (size) ? malloc (size) : NULL);
95 /* Multiplication of a count with an element size, with overflow check.
96 The count must be >= 0 and the element size must be > 0.
103 #define size_overflow_p(SIZE) \
104 ((SIZE) == SIZE_MAX)
106 #define size_in_bounds_p(SIZE) \
107 ((SIZE) != SIZE_MAX
    [all...]
  /prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/lib/gcc/arm-eabi/4.4.0/plugin/include/config/arm/
aout.h 299 #define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) \
305 (int)(ROUNDED), (int)(SIZE)); \
315 #define ASM_OUTPUT_ALIGNED_LOCAL(STREAM, NAME, SIZE, ALIGN) \
321 fprintf (STREAM, "\t.space\t%d\n", (int)(SIZE)); \
328 #define ASM_OUTPUT_ALIGNED_BSS(STREAM, DECL, NAME, SIZE, ALIGN) \
329 asm_output_aligned_bss (STREAM, DECL, NAME, SIZE, ALIGN)
  /prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/lib/gcc/arm-eabi/4.4.3/plugin/include/config/arm/
aout.h 299 #define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) \
305 (int)(ROUNDED), (int)(SIZE)); \
315 #define ASM_OUTPUT_ALIGNED_LOCAL(STREAM, NAME, SIZE, ALIGN) \
321 fprintf (STREAM, "\t.space\t%d\n", (int)(SIZE)); \
328 #define ASM_OUTPUT_ALIGNED_BSS(STREAM, DECL, NAME, SIZE, ALIGN) \
329 asm_output_aligned_bss (STREAM, DECL, NAME, SIZE, ALIGN)
  /cts/tests/tests/graphics/src/android/graphics/cts/
RadialGradientTest.java 34 private static final int SIZE = 200;
36 private static final int CENTER = SIZE / 2;
50 Bitmap b = Bitmap.createBitmap(SIZE, SIZE, Bitmap.Config.ARGB_8888);
54 canvas.drawRect(0, 0, SIZE, SIZE, p);
69 Bitmap b = Bitmap.createBitmap(SIZE, SIZE, Bitmap.Config.ARGB_8888);
73 canvas.drawRect(0, 0, SIZE, SIZE, p)
    [all...]
ComposeShaderTest.java 42 private static final int SIZE = 255;
51 LinearGradient blueGradient = new LinearGradient(0, 0, SIZE, 0,
53 LinearGradient redGradient = new LinearGradient(0, 0, 0, SIZE,
57 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888);
63 for (int y = 0; y < SIZE; y++) {
64 for (int x = 0; x < SIZE; x++) {
SweepGradientTest.java 41 private static final int SIZE = 200;
42 private static final int CENTER = SIZE / 2;
51 mBitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888);
66 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint);
80 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint);
96 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
DrawPoints.java 37 private static final float SIZE = 300;
47 final float delta = SIZE / SEGS;
49 mPts[i*4 + X] = SIZE - value;
  /external/webkit/WebKit/android/
RenderSkinRadio.cpp 46 static SkScalar SIZE;
65 SIZE = SkIntToScalar(s_bitmap[0].width());
85 SkScalar scale = SkScalarDiv(width, SIZE);
  /external/chromium/base/gfx/
size.cc 5 #include "base/gfx/size.h"
19 Size::Size(int width, int height) {
25 Size::Size(const CGSize& s) {
30 Size& Size::operator=(const CGSize& s) {
38 SIZE Size::ToSIZE() const {
39 SIZE s
    [all...]
size.h 13 typedef struct tagSIZE SIZE;
21 // A size has width and height values.
23 class Size {
25 Size() : width_(0), height_(0) {}
26 Size(int width, int height);
28 explicit Size(const CGSize& s);
31 ~Size() {}
34 Size& operator=(const CGSize& s);
55 bool operator==(const Size& s) const {
59 bool operator!=(const Size& s) const
    [all...]
  /external/openssl/crypto/bn/
exp.c 7 #define SIZE 256
17 int j,i,size=SIZE,num=NUM,mod=MOD; local
31 while (size <= 1024*8)
33 BN_rand(&a,size,0,0);
34 BN_rand(&b,size,1,0);
35 BN_rand(&c,size,0,1);
54 printf("%5d bit:%6.2f %6d %6.4f %4d m_set(%5.4f)\n",size,
59 size*=2;
  /frameworks/base/services/jni/
com_android_server_BatteryService.cpp 135 static int readFromFile(const char* path, char* buf, size_t size)
145 size_t count = read(fd, buf, size);
147 count = (count < size) ? count : size - 1;
160 const int SIZE = 16;
161 char buf[SIZE];
164 if (readFromFile(path, buf, SIZE) > 0) {
174 const int SIZE = 128;
175 char buf[SIZE];
178 if (readFromFile(path, buf, SIZE) > 0)
    [all...]

Completed in 286 milliseconds

12 3 4 5 6 7 8