/external/ltp/testcases/kernel/mem/mtest07/ |
mallocstress.c | 137 size_t newsize = 0; local 149 newsize = size + oldsize; 153 newsize = size * 2; 156 newsize = size * 3; 159 newsize = size * 5; 165 if (newsize < size) 167 size = newsize;
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
IntervalMap.cpp | 121 const unsigned *CurSize, unsigned NewSize[], 134 Sum += NewSize[n] = PerNode + (n < Extra); 136 PosPair = IdxPair(n, Position - (Sum - NewSize[n])); 143 assert(NewSize[PosPair.first] && "Too few elements to need Grow"); 144 --NewSize[PosPair.first]; 150 assert(NewSize[n] <= Capacity && "Overallocated node"); 151 Sum += NewSize[n];
|
/packages/apps/TV/src/com/android/tv/menu/ |
ItemListRowView.java | 171 int newSize = itemList.size(); 173 if (oldSize > newSize) { 174 notifyItemRangeChanged(0, newSize); 175 notifyItemRangeRemoved(newSize, oldSize - newSize); 176 } else if (oldSize < newSize) { 178 notifyItemRangeInserted(oldSize, newSize - oldSize);
|
/external/deqp/framework/platform/lnx/ |
tcuLnxVulkanPlatform.cpp | 65 void resize (const UVec2& newSize) 67 m_window->setDimensions((int)newSize.x(), (int)newSize.y()); 108 void resize (const UVec2& newSize) 110 m_window->setDimensions((int)newSize.x(), (int)newSize.y()); 149 void resize (const UVec2& newSize) 151 m_window->setDimensions((int)newSize.x(), (int)newSize.y());
|
/external/icu/icu4c/source/common/ |
uvectr32.cpp | 273 * Change the size of this vector as follows: If newSize is smaller, 275 * newSize. If newSize is larger, grow the array, filling in new 278 void UVector32::setSize(int32_t newSize) { 280 if (newSize < 0) { 283 if (newSize > count) { 285 if (!ensureCapacity(newSize, ec)) { 288 for (i=count; i<newSize; ++i) { 292 count = newSize;
|
/external/lzma/CPP/7zip/Archive/7z/ |
7zItem.h | 95 void ClearAndSetSize(unsigned newSize)
97 Defs.ClearAndSetSize(newSize);
98 Vals.ClearAndSetSize(newSize);
|
/hardware/google/av/codec2/vndk/bufferpool/vts/ |
allocator.cpp | 68 size_t newSize = newParams.size(); 70 if (newSize == oldSize) { 71 for (size_t i = 0; i < newSize; ++i) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
GestureTrailDrawingPoints.java | 230 final int newSize = trailSize - startIndex; 231 if (newSize < startIndex) { 233 if (newSize > 0) { 234 System.arraycopy(eventTimes, startIndex, eventTimes, 0, newSize); 235 System.arraycopy(xCoords, startIndex, xCoords, 0, newSize); 236 System.arraycopy(yCoords, startIndex, yCoords, 0, newSize); 238 System.arraycopy(pointTypes, startIndex, pointTypes, 0, newSize); 241 mEventTimes.setLength(newSize); 242 mXCoordinates.setLength(newSize); 243 mYCoordinates.setLength(newSize); [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/misc/ |
IntArray.java | 78 int newSize = data.length*2; 79 if ( index>newSize ) { 80 newSize = index+1; 82 int[] newData = new int[newSize];
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
IntArray.h | 78 int newSize = data.length*2; 79 if ( index>newSize ) { 80 newSize = index+1; 82 int[] newData = new int[newSize];
|
IntArray.m | 78 int newSize = data.length*2; 79 if ( index>newSize ) { 80 newSize = index+1; 82 int[] newData = new int[newSize];
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/ |
IntArrayList.java | 68 public void setSize(int newSize) { 69 if ( newSize>=elements.length ) { 70 ensureCapacity(newSize); 72 n = newSize;
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowCameraParameters.java | 154 Camera.Size newSize = Robolectric.newInstanceOf(Camera.class).new Size(0, 0); 155 newSize.width = width; 156 newSize.height = height; 157 sizes.add(newSize);
|
/frameworks/base/core/java/android/text/ |
PackedObjectVector.java | 116 int newsize = newvalues.length / mColumns; local 120 System.arraycopy(mValues, (mRows - after) * mColumns, newvalues, (newsize - after) * mColumns, after * mColumns); 122 mRowGapLength += newsize - mRows; 123 mRows = newsize;
|
/dalvik/dx/src/com/android/dx/rop/code/ |
RegisterSpecList.java | 251 int newSize = size() - 1; 253 if (newSize == 0) { 257 RegisterSpecList result = new RegisterSpecList(newSize); 259 for (int i = 0; i < newSize; i++) { 278 int newSize = size() - 1; 280 if (newSize == 0) { 284 RegisterSpecList result = new RegisterSpecList(newSize); 286 for (int i = 0; i < newSize; i++) { 307 int newSize = size() - exclusionSet.cardinality(); 309 if (newSize == 0) [all...] |
/external/llvm/lib/Support/ |
StringMap.cpp | 199 unsigned NewSize; 206 NewSize = NumBuckets*2; 209 NewSize = NumBuckets; 218 (StringMapEntryBase **)calloc(NewSize+1, sizeof(StringMapEntryBase *) + 220 unsigned *NewHashArray = (unsigned *)(NewTableArray + NewSize + 1); 221 NewTableArray[NewSize] = (StringMapEntryBase*)2; 230 unsigned NewBucket = FullHash & (NewSize-1); 232 NewTableArray[FullHash & (NewSize-1)] = Bucket; 233 NewHashArray[FullHash & (NewSize-1)] = FullHash; 242 NewBucket = (NewBucket + ProbeSize++) & (NewSize-1) [all...] |
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
StringMap.cpp | 197 unsigned NewSize; 204 NewSize = NumBuckets*2; 207 NewSize = NumBuckets; 216 (StringMapEntryBase **)calloc(NewSize+1, sizeof(StringMapEntryBase *) + 218 unsigned *NewHashArray = (unsigned *)(NewTableArray + NewSize + 1); 219 NewTableArray[NewSize] = (StringMapEntryBase*)2; 228 unsigned NewBucket = FullHash & (NewSize-1); 230 NewTableArray[FullHash & (NewSize-1)] = Bucket; 231 NewHashArray[FullHash & (NewSize-1)] = FullHash; 240 NewBucket = (NewBucket + ProbeSize++) & (NewSize-1) [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/ |
MemoryAllocationLib.c | 863 Allocates and zeros the number bytes specified by NewSize from memory of the type
865 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
867 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
870 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
875 @param NewSize The size, in bytes, of the buffer to reallocate.
886 IN UINTN NewSize,
892 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
894 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
903 Allocates and zeros the number bytes specified by NewSize from memory of type
905 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiMemoryAllocationProfileLib/ |
MemoryAllocationLib.c | 860 Allocates and zeros the number bytes specified by NewSize from memory of the type
862 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
864 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
867 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
872 @param NewSize The size, in bytes, of the buffer to reallocate.
883 IN UINTN NewSize,
889 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
891 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
900 Allocates and zeros the number bytes specified by NewSize from memory of type
902 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/ |
OnigurumaUefiPort.h | 44 #define realloc(OldPtr,NewSize,OldSize) ReallocatePool(OldSize,NewSize,OldPtr)
|
/external/jsoncpp/src/lib_json/ |
json_internalarray.inl | 263 void ValueInternalArray::resize(ArrayIndex newSize) { 264 if (newSize == 0) 266 else if (newSize < size_) { 269 makeIterator(it, newSize); 275 PageIndex pageIndex = (newSize + itemsPerPage - 1) / itemsPerPage; 279 size_ = newSize; 280 } else if (newSize > size_) 281 resolveReference(newSize);
|
/frameworks/base/libs/hwui/tests/unit/ |
GpuMemoryTrackerTests.cpp | 34 void changeSize(int newSize) { notifySizeChanged(newSize); }
|
/frameworks/base/core/java/android/util/ |
IntArray.java | 78 public void resize(int newSize) { 79 Preconditions.checkArgumentNonnegative(newSize); 80 if (newSize <= mValues.length) { 81 Arrays.fill(mValues, newSize, mValues.length, 0); 83 ensureCapacity(newSize - mSize); 85 mSize = newSize;
|
LongArray.java | 82 public void resize(int newSize) { 83 Preconditions.checkArgumentNonnegative(newSize); 84 if (newSize <= mValues.length) { 85 Arrays.fill(mValues, newSize, mValues.length, 0); 87 ensureCapacity(newSize - mSize); 89 mSize = newSize;
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/ |
MemoryAllocationLib.c | 858 Allocates and zeros the number bytes specified by NewSize from memory of the type
860 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
862 If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
865 If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
870 @param NewSize The size, in bytes, of the buffer to reallocate.
881 IN UINTN NewSize,
887 NewBuffer = InternalAllocateZeroPool (PoolType, NewSize);
889 CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
898 Allocates and zeros the number bytes specified by NewSize from memory of type
900 NewSize bytes are copied from OldBuffer to the newly allocated buffer, and [all...] |