/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_largefile.py | 116 newsize = size - 10 117 f.seek(newsize) 119 self.assertEqual(f.tell(), newsize) # else pointer moved 121 self.assertEqual(f.tell(), newsize) # else wasn't truncated 124 newsize -= 1 126 f.truncate(newsize) 130 self.assertEqual(f.tell(), newsize)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_largefile.py | 116 newsize = size - 10 117 f.seek(newsize) 119 self.assertEqual(f.tell(), newsize) # else pointer moved 121 self.assertEqual(f.tell(), newsize) # else wasn't truncated 124 newsize -= 1 126 f.truncate(newsize) 130 self.assertEqual(f.tell(), newsize)
|
/external/deqp/framework/delibs/decpp/ |
dePoolArray.hpp | 241 inline void PoolArray<T, Alignment>::resize (deUintptr newSize) 243 if (newSize < m_numElements) 246 for (deUintptr ndx = newSize; ndx < m_numElements; ndx++) 249 m_numElements = newSize; 251 else if (newSize > m_numElements) 255 reserve(newSize); 256 m_numElements = newSize; 265 inline void PoolArray<T, Alignment>::resize (deUintptr newSize, const T& value) 267 if (newSize < m_numElements) 268 resize(newSize); // value is not use [all...] |
deRingBuffer.hpp | 42 void resize (int newSize); 95 void RingBuffer<T>::resize (int newSize) 97 DE_ASSERT(newSize >= m_numElements); 98 T* buf = new T[newSize]; 109 m_size = newSize;
|
/external/bsdiff/ |
bspatch.cc | 125 uint64_t oldsize, newsize; local 129 newsize = signed_newsize; 172 if ((new_buf = static_cast<u_char*>(malloc(newsize + 1))) == NULL) 179 while (newpos < newsize) { 194 if (newpos + ctrl[0] > newsize) 236 if (newpos + ctrl[1] > newsize) 274 while (newsize > 0) { 276 if (!new_file->Write(temp_new_buf, newsize, &bytes_written)) 278 newsize -= bytes_written;
|
/cts/suite/audio_quality/lib/src/audio/ |
Buffer.cpp | 47 size_t newSize = mSize/2; 50 for (size_t i = 0; i < newSize/2; i++) { //16bpp only 55 for (size_t i = 0; i < newSize/2; i++) { //16bpp only 60 for (size_t i = 0; i < newSize/2; i++) { //16bpp only 67 mSize = newSize;
|
/frameworks/compile/slang/tests/P_reduce_general_input/ |
ScriptField_MyStruct.java.expect | 185 public synchronized void resize(int newSize) { 188 int copySize = Math.min(oldSize, newSize); 189 if (newSize == oldSize) return; 190 Item ni[] = new Item[newSize]; 195 mAllocation.resize(newSize);
|
/frameworks/compile/slang/tests/P_reduce_general_inputs/ |
ScriptField_MyStruct.java.expect | 185 public synchronized void resize(int newSize) { 188 int copySize = Math.min(oldSize, newSize); 189 if (newSize == oldSize) return; 190 Item ni[] = new Item[newSize]; 195 mAllocation.resize(newSize);
|
/frameworks/compile/slang/tests/P_reduce_general_result/ |
ScriptField_MyStruct.java.expect | 185 public synchronized void resize(int newSize) { 188 int copySize = Math.min(oldSize, newSize); 189 if (newSize == oldSize) return; 190 Item ni[] = new Item[newSize]; 195 mAllocation.resize(newSize);
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
LabeledList.java | 71 int newSize = i+1; 73 labelToIndex.shrink(newSize); 75 return newSize;
|
/developers/build/prebuilts/gradle/BasicTransition/Application/src/main/java/com/example/android/basictransition/ |
BasicTransitionFragment.java | 111 int newSize = getResources().getDimensionPixelSize(R.dimen.square_size_expanded); 112 params.width = newSize; 113 params.height = newSize;
|
/developers/samples/android/ui/transition/BasicTransition/Application/src/main/java/com/example/android/basictransition/ |
BasicTransitionFragment.java | 111 int newSize = getResources().getDimensionPixelSize(R.dimen.square_size_expanded); 112 params.width = newSize; 113 params.height = newSize;
|
/development/samples/browseable/BasicTransition/src/com.example.android.basictransition/ |
BasicTransitionFragment.java | 111 int newSize = getResources().getDimensionPixelSize(R.dimen.square_size_expanded); 112 params.width = newSize; 113 params.height = newSize;
|
/external/dng_sdk/source/ |
dng_memory_stream.cpp | 131 uint32 newSize = Max_uint32 (newSizeTemp1, newSizeTemp2); 133 if (!SafeUint32Mult (newSize, sizeof (dng_memory_block *), 170 fPagesAllocated = newSize;
|
/external/llvm/include/llvm/ADT/ |
IndexedMap.h | 69 unsigned NewSize = toIndex_(n) + 1; 70 if (NewSize > storage_.size()) 71 resize(NewSize);
|
/external/valgrind/none/tests/linux/ |
mremap2.c | 127 int newsize = newsizes[nsi] * PAGE; local 146 syscall(__NR_mremap, src, 20*PAGE, newsize, flags, dst, 0 ); 162 tidylen = newsize;
|
/frameworks/base/libs/hwui/ |
GpuMemoryTracker.cpp | 49 void GpuMemoryTracker::notifySizeChanged(int newSize) { 50 int delta = newSize - mSize; 51 mSize = newSize;
|
/dalvik/dexgen/src/com/android/dexgen/rop/code/ |
RegisterSpecList.java | 247 int newSize = size() - 1; 249 if (newSize == 0) { 253 RegisterSpecList result = new RegisterSpecList(newSize); 255 for (int i = 0; i < newSize; i++) { 274 int newSize = size() - 1; 276 if (newSize == 0) { 280 RegisterSpecList result = new RegisterSpecList(newSize); 282 for (int i = 0; i < newSize; i++) {
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
Pick.java | 714 public static double[] realloc(double[] source, int newSize) { 715 double[] temp = new double[newSize]; 716 if (newSize > source.length) newSize = source.length; 717 if (newSize != 0) System.arraycopy(source,0,temp,0,newSize); 721 public static int[] realloc(int[] source, int newSize) { 722 int[] temp = new int[newSize]; 723 if (newSize > source.length) newSize = source.length [all...] |
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
Pick.java | 713 public static double[] realloc(double[] source, int newSize) { 714 double[] temp = new double[newSize]; 715 if (newSize > source.length) newSize = source.length; 716 if (newSize != 0) System.arraycopy(source,0,temp,0,newSize); 720 public static int[] realloc(int[] source, int newSize) { 721 int[] temp = new int[newSize]; 722 if (newSize > source.length) newSize = source.length [all...] |
/external/lzma/CPP/Common/ |
NewHandler.cpp | 31 void * my_Realloc(void *p, size_t newSize, size_t oldSize)
33 void *newBuf = my_new(newSize);
|
/external/lzma/CPP/Windows/ |
FileFind.cpp | 534 UINT32 newSize = GetLogicalDriveStrings(size, buf.GetBuffer(size));
535 if (newSize == 0 || newSize > size)
538 for (UINT32 i = 0; i < newSize; i++)
558 UINT32 newSize = GetLogicalDriveStringsW(size, buf.GetBuffer(size));
559 if (newSize == 0 || newSize > size)
562 for (UINT32 i = 0; i < newSize; i++)
|
/external/pdfium/xfa/src/fxbarcode/common/ |
BC_CommonByteArray.cpp | 66 int32_t newSize = std::max(32, m_size << 1);
67 Reserve(newSize);
|
/external/vboot_reference/firmware/2lib/ |
2common.c | 93 uint32_t newsize) 101 return vb2_workbuf_alloc(wb, newsize);
|
/toolchain/binutils/binutils-2.25/bfd/ |
bfdio.c | 495 bfd_size_type newsize, oldsize; local 500 newsize = (bim->size + 127) & ~(bfd_size_type) 127; 501 if (newsize > oldsize) 503 bim->buffer = (bfd_byte *) bfd_realloc_or_free (bim->buffer, newsize); 509 if (newsize > bim->size) 510 memset (bim->buffer + bim->size, 0, newsize - bim->size); 548 bfd_size_type newsize, oldsize; local 553 newsize = (bim->size + 127) & ~(bfd_size_type) 127; 554 if (newsize > oldsize) 556 bim->buffer = (bfd_byte *) bfd_realloc_or_free (bim->buffer, newsize); [all...] |