/external/mesa3d/src/gallium/auxiliary/util/ |
u_dynarray.h | 64 util_dynarray_resize(struct util_dynarray *buf, unsigned newsize) 67 if(newsize > buf->capacity) 70 if(newsize > newcap) 71 newcap = newsize; 77 buf->size = newsize;
|
/external/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];
|
StringMap.cpp | 185 unsigned NewSize; 192 NewSize = NumBuckets*2; 195 NewSize = NumBuckets; 204 (StringMapEntryBase **)calloc(NewSize+1, sizeof(StringMapEntryBase *) + 206 unsigned *NewHashArray = (unsigned *)(NewTableArray + NewSize + 1); 207 NewTableArray[NewSize] = (StringMapEntryBase*)2; 216 unsigned NewBucket = FullHash & (NewSize-1); 218 NewTableArray[FullHash & (NewSize-1)] = Bucket; 219 NewHashArray[FullHash & (NewSize-1)] = FullHash; 228 NewBucket = (NewBucket + ProbeSize++) & (NewSize-1) [all...] |
/packages/apps/TV/src/com/android/tv/menu/ |
ItemListRowView.java | 174 int newSize = itemList.size(); 176 if (oldSize > newSize) { 177 notifyItemRangeChanged(0, newSize); 178 notifyItemRangeRemoved(newSize, oldSize - newSize); 179 } else if (oldSize < newSize) { 181 notifyItemRangeInserted(oldSize, newSize - oldSize);
|
/external/icu/icu4c/source/common/ |
uvectr32.cpp | 271 * Change the size of this vector as follows: If newSize is smaller, 273 * newSize. If newSize is larger, grow the array, filling in new 276 void UVector32::setSize(int32_t newSize) { 278 if (newSize < 0) { 281 if (newSize > count) { 283 if (!ensureCapacity(newSize, ec)) { 286 for (i=count; i<newSize; ++i) { 290 count = newSize;
|
/cts/tests/tests/view/src/android/view/cts/ |
KeyboardShortcutGroupTest.java | 74 final int newSize = group.getItems().size(); 75 assertEquals(TEST_ITEMS.size() + 1, newSize); 76 assertEquals("Additional item", group.getItems().get(newSize - 1).getLabel());
|
/external/lzma/CPP/7zip/Archive/7z/ |
7zItem.h | 98 void ClearAndSetSize(unsigned newSize)
100 Defs.ClearAndSetSize(newSize);
101 Vals.ClearAndSetSize(newSize);
|
/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 | 248 int newSize = size() - 1; 250 if (newSize == 0) { 254 RegisterSpecList result = new RegisterSpecList(newSize); 256 for (int i = 0; i < newSize; i++) { 275 int newSize = size() - 1; 277 if (newSize == 0) { 281 RegisterSpecList result = new RegisterSpecList(newSize); 283 for (int i = 0; i < newSize; i++) { 304 int newSize = size() - exclusionSet.cardinality(); 306 if (newSize == 0) [all...] |
/external/dexmaker/src/dx/java/com/android/dx/rop/code/ |
RegisterSpecList.java | 249 int newSize = size() - 1; 251 if (newSize == 0) { 255 RegisterSpecList result = new RegisterSpecList(newSize); 257 for (int i = 0; i < newSize; i++) { 276 int newSize = size() - 1; 278 if (newSize == 0) { 282 RegisterSpecList result = new RegisterSpecList(newSize); 284 for (int i = 0; i < newSize; i++) { 305 int newSize = size() - exclusionSet.cardinality(); 307 if (newSize == 0) [all...] |
/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);
|
/external/llvm/lib/Fuzzer/ |
FuzzerMutate.cpp | 168 size_t NewSize = 170 assert(NewSize > 0 && "CrossOver returned empty unit"); 171 assert(NewSize <= MaxSize && "CrossOver returned overisized unit"); 172 memcpy(Data, U.data(), NewSize); 173 return NewSize; 202 size_t NewSize = (this->*(M.Fn))(Data, Size, MaxSize); 203 if (NewSize) { 205 return NewSize;
|
/frameworks/base/libs/hwui/tests/unit/ |
GpuMemoryTrackerTests.cpp | 35 void changeSize(int newSize) { 36 notifySizeChanged(newSize);
|
/hardware/ti/omap4-aah/libtiutils/ |
DebugUtils.cpp | 61 const int newSize = (mData.get() ? mData->threads.size() : 0) + size; 64 newData->threads.setCapacity(newSize);
|
/external/skia/src/views/mac/ |
SkNSView.mm | 102 - (void)resizeSkView:(NSSize)newSize { 104 newSize = [self convertSizeToBacking:newSize]; 106 if (fWind && (fWind->width() != newSize.width || fWind->height() != newSize.height)) { 107 fWind->resize((int) newSize.width, (int) newSize.height); 115 - (void) setFrameSize:(NSSize)newSize { 116 [super setFrameSize:newSize]; 117 [self resizeSkView:newSize]; [all...] |
/system/core/libcutils/ |
open_memstream.c | 92 size_t newSize; 95 newSize = kInitialSize; 97 newSize = stream->allocSize; 98 newSize += newSize / 2; /* expand by 3/2 */ 101 if (newSize < neededSize) 102 newSize = neededSize; 104 stream->bufp, *stream->bufp, newSize)); 105 char* newBuf = (char*) realloc(*stream->bufp, newSize); 110 stream->allocSize = newSize; [all...] |
/external/llvm/lib/Target/MSP430/ |
MSP430BranchSelector.cpp | 142 unsigned NewSize; 147 NewSize = 4; 160 NewSize = 6; 168 // Remember that this instruction is NewSize bytes, increase the size of the 169 // block by NewSize-2, remember to iterate. 170 BlockSizes[MBB.getNumber()] += NewSize-2; 171 MBBStartOffset += NewSize;
|
/prebuilts/gdb/darwin-x86/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/gdb/linux-x86/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)
|