/libcore/jsr166-tests/src/test/java/jsr166/ |
TreeSetTest.java | 44 static final int SIZE = 20; 47 * Returns a new set of given size containing consecutive 58 assertEquals(n, q.size()); 73 assertEquals(5, q.size()); 81 assertEquals(0, new TreeSet().size()); 99 new TreeSet(Arrays.asList(new Integer[SIZE])); 108 Integer[] ints = new Integer[SIZE]; 109 for (int i = 0; i < SIZE - 1; ++i) 121 Integer[] ints = new Integer[SIZE]; 122 for (int i = 0; i < SIZE; ++i 717 int size = set.size(); local 742 int size = set.size(); local 928 int size = 0; local [all...] |
ConcurrentSkipListSetTest.java | 42 * Returns a new set of given size containing consecutive 54 assertEquals(n, q.size()); 69 assertEquals(5, q.size()); 77 assertEquals(0, new ConcurrentSkipListSet().size()); 95 new ConcurrentSkipListSet(Arrays.asList(new Integer[SIZE])); 104 Integer[] ints = new Integer[SIZE]; 105 for (int i = 0; i < SIZE - 1; ++i) 117 Integer[] ints = new Integer[SIZE]; 118 for (int i = 0; i < SIZE; ++i) 121 for (int i = 0; i < SIZE; ++i 713 int size = set.size(); local 739 int size = set.size(); local 927 int size = 0; local [all...] |
AbstractQueueTest.java | 37 public int size() { return 0; } method in class:AbstractQueueTest.Succeed 48 public int size() { return 0; } method in class:AbstractQueueTest.Fail 147 Integer[] ints = new Integer[SIZE]; 160 Integer[] ints = new Integer[SIZE]; 161 for (int i = 0; i < SIZE - 1; ++i) 174 Integer[] ints = new Integer[SIZE]; 175 for (int i = 0; i < SIZE; ++i)
|
CopyOnWriteArraySetTest.java | 40 assertEquals(n, a.size()); 50 assertEquals(elements.length, a.size()); 66 Integer[] ints = new Integer[SIZE]; 67 for (int i = 0; i < SIZE - 1; ++i) 70 for (int i = 0; i < SIZE; ++i) 80 assertEquals(6, full.size()); 82 assertEquals(6, full.size()); 92 assertEquals(5, full.size()); 94 assertEquals(5, full.size()); 103 assertEquals(3, full.size()); [all...] |
/toolchain/binutils/binutils-2.25/gas/config/ |
tc-pj.h | 38 #define md_section_align(SEGMENT, SIZE) (SIZE) 40 #define md_estimate_size_before_relax(A, B) (as_fatal (_("estimate size\n")),0)
|
/hardware/interfaces/drm/1.0/default/ |
TypeConvert.h | 34 vec.setToExternal(const_cast<T *>(Vector.array()), Vector.size()); 40 vec.setToExternal(Vector.editArray(), Vector.size()); 46 vector.appendArray(vec.data(), vec.size()); 52 vector.appendArray(vec.data(), vec.size()); 56 template<typename T, size_t SIZE> const Vector<T> toVector( 57 const hidl_array<T, SIZE> &array) { 59 vector.appendArray(array.data(), array.size()); 63 template<typename T, size_t SIZE> Vector<T> toVector( 64 hidl_array<T, SIZE> &array) { 66 vector.appendArray(array.data(), array.size()); [all...] |
/hardware/libhardware_legacy/audio/ |
AudioHardwareInterface.cpp | 139 const size_t SIZE = 256; 140 char buffer[SIZE]; 142 snprintf(buffer, SIZE, "AudioHardwareBase::dumpState\n"); 144 snprintf(buffer, SIZE, "\tmMode: %d\n", mMode); 146 ::write(fd, result.string(), result.size());
|
/system/extras/ext4_utils/ |
mkuserimg.sh | 8 mkuserimg.sh [-s] SRC_DIR OUTPUT_FILE EXT_VARIANT MOUNT_POINT SIZE [-j <journal_size>] 35 SIZE=$5 119 if [ -z $SIZE ]; then 120 echo "Need size of filesystem" 153 MAKE_EXT4FS_CMD="make_ext4fs $ENABLE_SPARSE_IMAGE -T $TIMESTAMP $OPT -l $SIZE $JOURNAL_FLAGS -a $MOUNT_POINT $OUTPUT_FILE $SRC_DIR $PRODUCT_OUT"
|
/cts/hostsidetests/security/securityPatch/Bug-33863407/ |
poc.c | 43 #define SIZE 2048 48 char buf[SIZE] = {0}; 51 ret = read(fd1, buf, SIZE);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
DrawPoints.java | 36 private static final float SIZE = 300; 46 final float delta = SIZE / SEGS; 48 mPts[i*4 + X] = SIZE - value;
|
/device/google/dragon/health/ |
healthd-dragon.cpp | 32 static int read_sysfs(const char *path, char *buf, size_t size) { 41 ssize_t count = TEMP_FAILURE_RETRY(read(fd, buf, size)); 55 const int SIZE = 10; 56 char buf[SIZE]; 57 if (read_sysfs(PSU_SYSFS_MAX_CURRENT_PATH, buf, SIZE) > 0)
|
/external/fmtlib/test/ |
util.h | 42 template <std::size_t SIZE> 43 void safe_sprintf(char (&buffer)[SIZE], const char *format, ...) { 46 FMT_VSNPRINTF(buffer, SIZE, format, args);
|
/frameworks/av/media/libaaudio/src/fifo/ |
FifoBuffer.h | 32 SIZE = 2 34 void *data[SIZE]; 35 int32_t numFrames[SIZE]; 63 * Return pointer to available full frames in data1 and set size in numFrames1. 72 * Return pointer to available empty frames in data1 and set size in numFrames1.
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
EffectDescriptor.cpp | 27 const size_t SIZE = 256; 28 char buffer[SIZE]; 31 snprintf(buffer, SIZE, " I/O: %d\n", mIo); 33 snprintf(buffer, SIZE, " Strategy: %d\n", mStrategy); 35 snprintf(buffer, SIZE, " Session: %d\n", mSession); 37 snprintf(buffer, SIZE, " Name: %s\n", mDesc.name); 39 snprintf(buffer, SIZE, " %s\n", mEnabled ? "Enabled" : "Disabled"); 41 write(fd, result.string(), result.size()); 155 for (size_t i = 0; i < size(); i++) { 179 const size_t SIZE = 256 [all...] |
AudioSession.cpp | 140 const size_t SIZE = 256; 141 char buffer[SIZE]; 144 snprintf(buffer, SIZE, "%*sAudio session %d:\n", spaces, "", index+1); 146 snprintf(buffer, SIZE, "%*s- session: %2d\n", spaces, "", mRecordClientInfo.session); 148 snprintf(buffer, SIZE, "%*s- owner uid: %2d\n", spaces, "", mRecordClientInfo.uid); 150 snprintf(buffer, SIZE, "%*s- input source: %d\n", spaces, "", mRecordClientInfo.source); 152 snprintf(buffer, SIZE, "%*s- format: %08x\n", spaces, "", mConfig.format); 154 snprintf(buffer, SIZE, "%*s- sample: %d\n", spaces, "", mConfig.sample_rate); 156 snprintf(buffer, SIZE, "%*s- channel mask: %08x\n", 159 snprintf(buffer, SIZE, "%*s- is soundtrigger: %s\n" [all...] |
AudioInputDescriptor.cpp | 36 if (profile->mGains.size() > 0) { 164 return mSessions.size(); 197 const size_t SIZE = 256; 198 char buffer[SIZE]; 201 snprintf(buffer, SIZE, " ID: %d\n", getId()); 203 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate); 205 snprintf(buffer, SIZE, " Format: %d\n", mFormat); 207 snprintf(buffer, SIZE, " Channels: %08x\n", mChannelMask); 209 snprintf(buffer, SIZE, " Devices %08x\n", mDevice); 212 write(fd, result.string(), result.size()); [all...] |
/external/autotest/client/tests/linus_stress/ |
linus_stress.c | 12 #define SIZE (NRCHUNKS * CHUNKSIZE) 60 munmap(mapping, SIZE); 61 posix_fadvise(fd, 0, SIZE, POSIX_FADV_DONTNEED); 63 return mmap(NULL, SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 92 if (ftruncate(fd, SIZE) < 0)
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
hugeshmat04.c | 52 #define SIZE (1024 * 1024 * 1024) 98 size_t size = (size_t)SIZE; local 101 shmid = shmget(IPC_PRIVATE, size, SHM_HUGETLB | IPC_CREAT | 0777); 111 memset(buf, 2, size); 133 SAFE_FILE_PRINTF(NULL, PATH_SHMMAX, "%ld", (long)SIZE); 139 if (new_shmmax < SIZE) 145 hugepages = (orig_hugepages * hpage_size + SIZE) / hpage_size;
|
/external/okhttp/okio/okio/src/main/java/okio/ |
Segment.java | 34 /** The size of all segments in bytes. */ 35 static final int SIZE = 8192; 58 this.data = new byte[SIZE]; 126 int availableByteCount = SIZE - prev.limit + (prev.shared ? 0 : prev.pos); 136 if (sink.limit + byteCount > SIZE) { 139 if (sink.limit + byteCount - sink.pos > SIZE) throw new IllegalArgumentException();
|
/art/test/564-checker-bitcount/src/ |
Main.java | 80 int signExtensionSize = Integer.SIZE - Byte.SIZE; 82 int signBit = Byte.SIZE - 1; 96 for (int i = 0; i < Byte.SIZE; i++) { 105 int signExtensionSize = Integer.SIZE - Short.SIZE; 107 int signBit = Short.SIZE - 1; 123 for (int i = 0; i < Short.SIZE; i++) { 144 for (int i = 0; i < Character.SIZE; i++) { 164 for (int i = 0; i < Integer.SIZE; i++) [all...] |
/external/okhttp/okio/okio/src/test/java/okio/ |
BufferedSourceTest.java | 148 sink.writeUtf8(repeat('a', Segment.SIZE - 1)); 150 source.skip(Segment.SIZE - 1); 176 sink.writeUtf8(repeat('a', Segment.SIZE - 3)); 180 source.skip(Segment.SIZE - 3); 208 sink.writeUtf8(repeat('a', Segment.SIZE - 7)); 213 source.skip(Segment.SIZE - 7); 239 assertEquals(10, sink.size()); 250 assertEquals(10, sink.size()); 277 data.writeUtf8("Hello").writeUtf8(repeat('e', Segment.SIZE)); 280 sink.write(data, data.size()); [all...] |
/bionic/tests/ |
inttypes_test.cpp | 74 #define SCANF_SIZED(SIZE) \ 75 SCANF_TYPED(SIZE, SIZE##_t); \ 76 SCANF_TYPED(FAST##SIZE, _fast##SIZE##_t); \ 77 SCANF_TYPED(LEAST##SIZE, _least##SIZE##_t) \
|
/external/elfutils/tests/ |
run-readelf-vmcoreinfo.sh | 25 Owner Data size Type 72 SIZE(mem_section)=32 74 SIZE(page)=56 75 SIZE(pglist_data)=81664 76 SIZE(zone)=1792 77 SIZE(free_area)=88 78 SIZE(list_head)=16 79 SIZE(nodemask_t)=64
|
/external/mesa3d/src/gallium/tests/graw/ |
quad-sample.c | 160 #define SIZE 16 168 ubyte tex2d[SIZE][SIZE][4]; 171 #if (SIZE != 2) 172 for (s = 0; s < SIZE; s++) { 173 for (t = 0; t < SIZE; t++) { 183 tex2d[t][s][0] = s*255/(SIZE-1); 184 tex2d[t][s][1] = t*255/(SIZE-1); 215 templat.width0 = SIZE; 216 templat.height0 = SIZE; [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
SweepGradientTest.java | 43 private static final int SIZE = 200; 44 private static final int CENTER = SIZE / 2; 56 mBitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); 67 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); 77 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); 89 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint) [all...] |