/libcore/dex/src/main/java/com/android/dex/ |
EncodedValue.java | 45 int size = Math.min(data.length, other.data.length); local 46 for (int i = 0; i < size; i++) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
ConcurrentModTest.java | 45 assertEquals(2, sub.size()); 68 al.get(al.size()+1); 89 assertEquals(2, sub.size()); 119 assertEquals(2, sub.size()); 149 assertEquals(2, sub.size()); 172 sub.remove(sub.size() + 1); 187 public int size() { 215 assertEquals(2, sub.size()); 243 public int size() { 267 public int size() { [all...] |
/libcore/luni/src/main/java/java/nio/charset/ |
ModifiedUtf8.java | 35 * the size cannot be presented in an (unsigned) java short. 57 "Size of the encoded string doesn't fit in two bytes"); 93 * (as a big endian short. A UTFDataFormatException is thrown if the encoded size cannot be 100 long size = countBytes(s, true); local 101 byte[] output = new byte[(int) size + 2]; 103 output[0] = (byte) (size >>> 8); 104 output[1] = (byte) size;
|
/libcore/luni/src/main/java/libcore/io/ |
MemoryMappedFile.java | 37 private final long size; field in class:MemoryMappedFile 42 public MemoryMappedFile(long address, long size) { 44 this.size = size; 52 long size = Libcore.os.fstat(fd).st_size; local 53 long address = Libcore.os.mmap(0L, size, PROT_READ, MAP_SHARED, fd, 0); 55 return new MemoryMappedFile(address, size); 68 Libcore.os.munmap(address, size); 77 return new NioBufferIterator(address, (int) size, ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN); 84 return new NioBufferIterator(address, (int) size, ByteOrder.nativeOrder() != ByteOrder.LITTLE_ENDIAN) 90 public long size() { method in class:MemoryMappedFile [all...] |
NioBufferIterator.java | 29 private final int size; field in class:NioBufferIterator 34 NioBufferIterator(long address, int size, boolean swap) { 36 this.size = size;
|
/libcore/luni/src/main/java/libcore/reflect/ |
ListOfTypes.java | 49 return types.size(); 62 int size = unresolved.size(); local 63 if (size == 0) { 66 Type[] result = new Type[size]; 67 for (int i = 0; i < size; i++) { 80 for (int i = 0; i < types.size(); i++) {
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
FileLock.java | 61 * held, the type and validity of the lock, and the position and size of the 105 * whole multiple of the underlying hardware's page size. Some network 120 private final long size; field in class:FileLock 133 * @param size 134 * The size of the locked region; must be non-negative, and the sum 135 * <tt>position</tt> + <tt>size</tt> must be non-negative 145 long position, long size, boolean shared) 149 if (size < 0) 150 throw new IllegalArgumentException("Negative size"); 151 if (position + size < 0 206 public final long size() { method in class:FileLock [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
FileDispatcher.java | 39 abstract int truncate(FileDescriptor fd, long size) throws IOException; 41 abstract long size(FileDescriptor fd) throws IOException; method in class:FileDispatcher 43 abstract int lock(FileDescriptor fd, boolean blocking, long pos, long size, 46 abstract void release(FileDescriptor fd, long pos, long size)
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
IntUniqOpTest.java | 59 if (data.size() > 0) 60 assertTrue(result.size() > 0); 62 assertTrue(result.size() == 0); 63 assertTrue(result.size() <= data.size()); 73 if (data.size() > 0) 74 assertTrue(result.size() > 0); 76 assertTrue(result.size() == 0); 77 assertTrue(result.size() <= data.size()); [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
IdentityScopeStub.java | 66 * @see java.security.IdentityScope#size() 68 public int size() { method in class:IdentityScopeStub
|
/libcore/support/src/test/java/tests/support/ |
Support_ASimpleOutputStream.java | 20 public int size; field in class:Support_ASimpleOutputStream 37 size = bufferSize; 82 if (pos < size) {
|
/libnativehelper/include/nativehelper/ |
ScopedStringChars.h | 55 size_t size() const { function in class:ScopedStringChars
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.modifying.operations/alg.partitions/ |
stable_partition.pass.cpp | 56 const unsigned size = sizeof(array)/sizeof(array[0]); local 57 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); 85 const unsigned size = sizeof(array)/sizeof(array[0]); local 86 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); 125 const unsigned size = sizeof(array)/sizeof(array[0]); local 126 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); 154 const unsigned size = sizeof(array)/sizeof(array[0]); local 155 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); 156 assert(base(r) == array + size); 183 const unsigned size = sizeof(array)/sizeof(array[0]) local 212 const unsigned size = sizeof(array)\/sizeof(array[0]); local 241 const unsigned size = sizeof(array)\/sizeof(array[0]); local 270 const unsigned size = sizeof(array)\/sizeof(array[0]); local 298 const unsigned size = 5; local [all...] |
/ndk/sources/cxx-stl/stlport/src/ |
locale_impl.h | 70 size_t size() const { return facets_vec.size(); } function in class:_Locale_impl
|
/ndk/sources/third_party/googletest/googletest/src/ |
gtest-test-part.cc | 74 if (index < 0 || index >= size()) { 83 int TestPartResultArray::size() const { function in class:testing::TestPartResultArray 84 return static_cast<int>(array_.size());
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/mpl/list/aux_/ |
item.hpp | 25 typename Size 38 typedef Size size; typedef in struct:boost::mpl::l_item 50 typedef long_<0> size; typedef in struct:boost::mpl::l_end
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/mpl/vector/aux_/ |
item.hpp | 38 typedef typename next<typename Base::size>::type size; typedef in struct:boost::mpl::v_item 57 typedef typename next<typename Base::size>::type size; typedef in struct:boost::mpl::v_item 75 typedef typename prior<typename Base::size>::type size; typedef in struct:boost::mpl::v_mask 91 typedef typename prior<typename Base::size>::type size; typedef in struct:boost::mpl::v_mask
|
/ndk/tests/device/test-gnustl-full/unit/ |
copy_test.cpp | 52 const size_t size = sizeof(a) / sizeof(a[0]); local 53 volatile int va[size]; 54 copy(a, a + size, va); 55 for (size_t i = 0; i != size; ++i) { 62 const size_t size = sizeof(a) / sizeof(a[0]); local 63 volatile int va[size]; 64 copy(a, a + size, va); 65 for (size_t i = 0; i != size; ++i) { 74 const size_t size = sizeof(a) / sizeof(a[0]); 75 const volatile int va[size] = {5, 4, 3, 2, 1, 0}; [all...] |
mismatch_test.cpp | 62 v2[v2.size()/2] = 42; 69 const unsigned size = 5; local 70 char const* n1[size] = { "Brett", "Graham", "Jack", "Mike", "Todd" }; 72 char const* n2[size]; 74 pair <char const**, char const**> result = mismatch((char const**)n1, (char const**)n1 + size, (char const**)n2, str_equal); 76 CPPUNIT_ASSERT(result.first == n1 + size && result.second == n2 + size); 79 result = mismatch((char const**)n1, (char const**)n1 + size, (char const**)n2, str_equal); 80 CPPUNIT_ASSERT(!(result.first == n2 + size && result.second == n2 + size)); [all...] |
/ndk/tests/device/test-stlport/unit/ |
copy_test.cpp | 52 const size_t size = sizeof(a) / sizeof(a[0]); local 53 volatile int va[size]; 54 copy(a, a + size, va); 55 for (size_t i = 0; i != size; ++i) { 62 const size_t size = sizeof(a) / sizeof(a[0]); local 63 volatile int va[size]; 64 copy(a, a + size, va); 65 for (size_t i = 0; i != size; ++i) { 74 const size_t size = sizeof(a) / sizeof(a[0]); 75 const volatile int va[size] = {5, 4, 3, 2, 1, 0}; [all...] |
mismatch_test.cpp | 62 v2[v2.size()/2] = 42; 69 const unsigned size = 5; local 70 char const* n1[size] = { "Brett", "Graham", "Jack", "Mike", "Todd" }; 72 char const* n2[size]; 74 pair <char const**, char const**> result = mismatch((char const**)n1, (char const**)n1 + size, (char const**)n2, str_equal); 76 CPPUNIT_ASSERT(result.first == n1 + size && result.second == n2 + size); 79 result = mismatch((char const**)n1, (char const**)n1 + size, (char const**)n2, str_equal); 80 CPPUNIT_ASSERT(!(result.first == n2 + size && result.second == n2 + size)); [all...] |
/ndk/tests/device/test-stlport_shared-exception/jni/ |
eh-vararg-1.cpp | 15 bar (char *p, int size) 17 __builtin_strncpy (p, "good", size); 35 int size; local 39 size = va_arg (arg, int); 40 if (size != 5) 42 p = (char *) __builtin_alloca (size + 1); 48 bar (p, size); 49 if (__builtin_strncmp (p, "good", size) != 0) 52 p[size] = '\0';
|
eh-vararg-2.cpp | 15 bar (char *p, int size) 17 __builtin_strncpy (p, "good", size); 34 int size; local 37 size = va_arg (arg, int); 38 if (size != 5) 41 p = (char *) __builtin_alloca (size + 1); 47 bar (p, size); 48 if (__builtin_strncmp (p, "good", size) != 0) 51 p[size] = '\0';
|
/ndk/tests/device/test-stlport_static-exception/jni/ |
eh-vararg-1.cpp | 15 bar (char *p, int size) 17 __builtin_strncpy (p, "good", size); 35 int size; local 39 size = va_arg (arg, int); 40 if (size != 5) 42 p = (char *) __builtin_alloca (size + 1); 48 bar (p, size); 49 if (__builtin_strncmp (p, "good", size) != 0) 52 p[size] = '\0';
|
eh-vararg-2.cpp | 15 bar (char *p, int size) 17 __builtin_strncpy (p, "good", size); 34 int size; local 37 size = va_arg (arg, int); 38 if (size != 5) 41 p = (char *) __builtin_alloca (size + 1); 47 bar (p, size); 48 if (__builtin_strncmp (p, "good", size) != 0) 51 p[size] = '\0';
|