/external/eigen/bench/btl/generic_bench/static/ |
static_size_generator.hh | 28 template <int SIZE,template<class> class Perf_Analyzer, template<class> class Action, template<class,int> class Interface> 32 tab_sizes.push_back(SIZE); 34 Perf_Analyzer<Action<Interface<REAL_TYPE,SIZE> > > perf_action; 35 tab_mflops.push_back(perf_action.eval_mflops(SIZE)); 37 static_size_generator<SIZE-1,Perf_Analyzer,Action,Interface>::go(tab_sizes,tab_mflops);
|
/frameworks/base/libs/hwui/utils/ |
RingBuffer.h | 26 template<class T, size_t SIZE> 34 constexpr size_t capacity() const { return SIZE; } 35 size_t size() const { return mCount; } function in class:android::uirenderer::RingBuffer 38 mHead = (mHead + 1) % SIZE; 39 if (mCount < SIZE) { 50 return (*this)[size() - 1]; 67 T mBuffer[SIZE];
|
/external/r8/src/main/java/com/android/tools/r8/utils/ |
EncodedValueUtils.java | 24 int bit_size = Long.SIZE + 1 - Long.numberOfLeadingZeros(value ^ (value >> (Long.SIZE - 1))); 25 int size = Math.max((bit_size + Byte.SIZE - 1) / Byte.SIZE, 1); local 26 assert size > 0 && size <= expectedSize; local 27 for (int i = 0; i < size; i++) { 29 value >>= Byte.SIZE; 31 return size; 37 int size = Math.max((bit_size + Byte.SIZE - 1) \/ Byte.SIZE, 1); local 61 int size = Math.max((bit_size + Byte.SIZE - 1) \/ Byte.SIZE, 1); local 62 assert size > 0 && size <= expectedSize; local 72 int size = Math.max((bit_size + Byte.SIZE - 1) \/ Byte.SIZE, 1); local 84 int size = (bit_size - 1) \/ Byte.SIZE + 1; local 85 assert size > 0 && size <= expectedSize; local 96 int size = (bit_size - 1) \/ Byte.SIZE + 1; local [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
ConcurrentLinkedQueueTest.java | 34 * Returns a new queue of given size containing consecutive 43 assertEquals(n, q.size()); 51 assertEquals(0, new ConcurrentLinkedQueue().size()); 69 new ConcurrentLinkedQueue(Arrays.asList(new Integer[SIZE])); 78 Integer[] ints = new Integer[SIZE]; 79 for (int i = 0; i < SIZE - 1; ++i) 91 Integer[] ints = new Integer[SIZE]; 92 for (int i = 0; i < SIZE; ++i) 95 for (int i = 0; i < SIZE; ++i) 114 * size changes when elements added and remove [all...] |
ArrayBlockingQueueTest.java | 34 // return new ArrayBlockingQueue(SIZE, true); 40 // return new ArrayBlockingQueue(SIZE, false); 57 * Returns a new queue of given size containing consecutive 67 assertEquals(n, q.size()); 75 assertEquals(SIZE, new ArrayBlockingQueue(SIZE).remainingCapacity()); 102 Collection<Integer> elements = Arrays.asList(new Integer[SIZE]); 104 new ArrayBlockingQueue(SIZE, false, elements); 113 Integer[] ints = new Integer[SIZE]; 114 for (int i = 0; i < SIZE - 1; ++i 602 int size = q.size(); local 636 int size = q.size(); local [all...] |
ArrayBlockingQueueFairTest.java | 22 return new ArrayBlockingQueue(SIZE, true);
|
ArrayBlockingQueueNonFairTest.java | 17 return new ArrayBlockingQueue(SIZE, false);
|
LinkedBlockingDequeBoundedTest.java | 15 return new LinkedBlockingDeque(SIZE);
|
LinkedBlockingQueueBoundedTest.java | 17 return new LinkedBlockingQueue(SIZE);
|
PriorityBlockingQueueInitialCapacityTest.java | 17 return new PriorityBlockingQueue(SIZE);
|
AtomicIntegerArrayTest.java | 30 * constructor creates array of given size with all elements zero 33 AtomicIntegerArray aa = new AtomicIntegerArray(SIZE); 34 for (int i = 0; i < SIZE; i++) 50 * constructor with array is of same size and has all elements 64 AtomicIntegerArray aa = new AtomicIntegerArray(SIZE); 65 for (int index : new int[] { -1, SIZE }) { 101 AtomicIntegerArray aa = new AtomicIntegerArray(SIZE); 102 for (int i = 0; i < SIZE; i++) { 116 AtomicIntegerArray aa = new AtomicIntegerArray(SIZE); 117 for (int i = 0; i < SIZE; i++) [all...] |
/prebuilts/misc/common/swig/include/2.0.11/ocaml/ |
cstring.i | 10 /* %cstring_input_binary(TYPEMAP, SIZE) 13 * a size. 16 %define %cstring_input_binary(TYPEMAP, SIZE) 17 %apply (char *STRING, int LENGTH) { (TYPEMAP, SIZE) }; 44 * %cstring_chunk_output(TYPEMAP, SIZE) 56 %define %cstring_chunk_output(TYPEMAP,SIZE) 57 %typemap(ignore) TYPEMAP(char temp[SIZE]) { 61 $result = caml_list_append($result,caml_val_string_len($1,SIZE)); 66 * %cstring_bounded_mutable(TYPEMAP, SIZE) 96 * It may change size up to a user-defined expansion. [all...] |
/art/test/542-bitfield-rotates/src/ |
Main.java | 64 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE - 1), 0x22); 65 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE), 0x11); 66 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE + 1), 0x80000008); 69 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -(Integer.SIZE - 1)), 0x80000008); 70 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -Integer.SIZE), 0x11); 71 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -(Integer.SIZE + 1)), 0x22); 87 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, Long.SIZE - 1), 0x22); 88 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, Long.SIZE), 0x11); 89 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, Long.SIZE + 1), 0x8000000000000008L); 92 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, -(Long.SIZE - 1)), 0x8000000000000008L) [all...] |
/cts/tests/tests/database/src/android/database/cts/ |
CursorIndexOutOfBoundsExceptionTest.java | 26 int SIZE = 99; 28 String expected2 = "Index " + INDEX + " requested, with a size of " + SIZE; 44 throw new CursorIndexOutOfBoundsException(INDEX, SIZE);
|
/external/ltp/testcases/kernel/device-drivers/zram/ |
zram03.c | 43 #define SIZE (512 * 1024 * 1024L) 83 tst_resm(TINFO, "create a zram device with %ld bytes in size.", SIZE); 84 SAFE_FILE_PRINTF(cleanup, PATH_ZRAM "/disksize", "%ld", SIZE); 94 s = SAFE_MMAP(cleanup, NULL, SIZE, PROT_READ | PROT_WRITE, 98 memset(s, 'a', SIZE - 1); 99 s[SIZE - 1] = '\0'; 101 SAFE_MUNMAP(cleanup, s, SIZE); 113 s = SAFE_MMAP(cleanup, NULL, SIZE, PROT_READ, MAP_PRIVATE, fd, 0); 115 while (s[i] && i < SIZE - 1) [all...] |
/external/okhttp/okio/okio/src/main/java/okio/ |
SegmentPool.java | 24 // TODO: Is 64 KiB a good maximum size? Do we ever have that many idle segments? 42 byteCount -= Segment.SIZE; 53 if (byteCount + Segment.SIZE > MAX_SIZE) return; // Pool is full. 54 byteCount += Segment.SIZE;
|
/external/eigen/bench/ |
vdw_new.cpp | 10 #ifndef SIZE 11 #define SIZE 10000 43 Vec interactions1(SIZE), interactions2(SIZE); // SIZE is the number of vdw interactions in our system
|
/external/ltp/testcases/kernel/syscalls/modify_ldt/ |
modify_ldt03.c | 41 # define SIZE sizeof(struct user_desc) 43 # define SIZE 16 46 static char buf[SIZE]; 62 TEST(modify_ldt(0, buf, SIZE));
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
AudioCollections.cpp | 31 for (size_t i = 0; i < size(); i++) { 45 const size_t SIZE = 256; 46 char buffer[SIZE]; 48 snprintf(buffer, SIZE, "\n%*sAudio Routes (%zu):\n", spaces, "", size()); 50 for (size_t i = 0; i < size(); i++) { 51 snprintf(buffer, SIZE, "%*s- Route %zu:\n", spaces, "", i + 1);
|
VolumeCurve.cpp | 29 size_t nbCurvePoints = mCurvePoints.size(); 66 const size_t SIZE = 256; 67 char buffer[SIZE]; 69 snprintf(buffer, SIZE, " {"); 71 for (size_t i = 0; i < mCurvePoints.size(); i++) { 72 snprintf(buffer, SIZE, "(%3d, %5d)", 75 result.append(i == (mCurvePoints.size() - 1) ? " }\n" : ", "); 77 write(fd, result.string(), result.size()); 82 const size_t SIZE = 256; 83 char buffer[SIZE]; [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
ByteArrayHelpers.java | 51 return toByteArray(array, Short.SIZE); 61 return toByteArray(array, Character.SIZE); 70 return toByteArray(array, Integer.SIZE); 79 return toByteArray(array, Long.SIZE); 88 return toByteArray(array, Float.SIZE); 97 return toByteArray(array, Double.SIZE); 127 sizeInBits = Integer.SIZE; 129 sizeInBits = Float.SIZE; 131 sizeInBits = Double.SIZE; 133 sizeInBits = Short.SIZE; [all...] |
/packages/services/Car/TrustAgent/src/com/android/car/trust/ |
Utils.java | 28 ByteBuffer buffer = ByteBuffer.allocate(Long.SIZE / Byte.SIZE); 34 ByteBuffer buffer = ByteBuffer.allocate(Long.SIZE / Byte.SIZE);
|
/developers/build/prebuilts/gradle/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/ |
ImageContract.java | 37 String SIZE = "size"; 44 Columns.SIZE
|
/developers/samples/android/content/documentsUi/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/ |
ImageContract.java | 37 String SIZE = "size"; 44 Columns.SIZE
|
/frameworks/base/core/java/android/hardware/camera2/marshal/ |
MarshalHelpers.java | 31 * such as the native size, the managed class wrappers, and various precondition checks.</p> 36 public static final int SIZEOF_INT32 = Integer.SIZE / Byte.SIZE; 37 public static final int SIZEOF_INT64 = Long.SIZE / Byte.SIZE; 38 public static final int SIZEOF_FLOAT = Float.SIZE / Byte.SIZE; 39 public static final int SIZEOF_DOUBLE = Double.SIZE / Byte.SIZE; 43 * Get the size in bytes for the native camera metadata type [all...] |