/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/ |
Utils.java | 319 public static String[] copyOf(String[] source, int newSize) { 320 String[] result = new String[newSize]; 321 newSize = Math.min(source.length, newSize); 322 System.arraycopy(source, 0, result, 0, newSize);
|
/external/bison/lib/ |
ebitset.c | 126 bitset_windex newsize; local 132 newsize = EBITSET_N_ELTS (n_bits); 134 if (oldsize < newsize) 140 if (newsize > EBITSET_ASIZE (src)) 148 size = newsize; 150 size = newsize + newsize / 4; 158 (newsize - oldsize) * sizeof (ebitset_elt *)); 164 if ((oldsize - newsize) >= oldsize / 2) 167 = realloc (EBITSET_ELTS (src), newsize * sizeof (ebitset_elt *)) [all...] |
/external/chromium_org/third_party/skia/include/core/ |
SkPathRef.h | 325 size_t newSize = sizeof(uint8_t) * verbCount + sizeof(SkPoint) * pointCount; 327 size_t minSize = newSize + newReserve; 341 fFreeSpace -= newSize; 386 size_t newSize = oldSize + growSize; 389 fPoints = reinterpret_cast<SkPoint*>(sk_realloc_throw(fPoints, newSize)); 392 reinterpret_cast<intptr_t>(fPoints) + newSize - oldVerbSize); 396 fVerbs = reinterpret_cast<uint8_t*>(reinterpret_cast<intptr_t>(fPoints) + newSize);
|
/external/deqp/framework/common/ |
tcuVector.hpp | 169 template <int NewSize> 170 Vector<T, NewSize> toWidth (void) const; 251 template <int NewSize> 252 inline Vector<T, NewSize> Vector<T, Size>::toWidth (void) const 254 Vector<T, NewSize> res; 256 for (i = 0; i < deMin32(Size, NewSize); i++) 258 for (; i < NewSize; i++)
|
/external/skia/include/core/ |
SkPathRef.h | 325 size_t newSize = sizeof(uint8_t) * verbCount + sizeof(SkPoint) * pointCount; 327 size_t minSize = newSize + newReserve; 341 fFreeSpace -= newSize; 386 size_t newSize = oldSize + growSize; 389 fPoints = reinterpret_cast<SkPoint*>(sk_realloc_throw(fPoints, newSize)); 392 reinterpret_cast<intptr_t>(fPoints) + newSize - oldVerbSize); 396 fVerbs = reinterpret_cast<uint8_t*>(reinterpret_cast<intptr_t>(fPoints) + newSize);
|
/external/eigen/Eigen/src/Core/ |
CwiseNullaryOp.h | 387 EIGEN_STRONG_INLINE Derived& DenseBase<Derived>::setLinSpaced(Index newSize, const Scalar& low, const Scalar& high) 390 return derived() = Derived::NullaryExpr(newSize, internal::linspaced_op<Scalar,false>(low,high,newSize)); 515 PlainObjectBase<Derived>::setZero(Index newSize) 517 resize(newSize); 564 * The parameter \a newSize is the size of the returned vector. 580 DenseBase<Derived>::Ones(Index newSize) 582 return Constant(newSize, Scalar(1)); 630 /** Resizes to the given \a newSize, and sets all coefficients in this expression to one. 641 PlainObjectBase<Derived>::setOnes(Index newSize) [all...] |
/external/chromium_org/chrome/installer/mac/third_party/bsdiff/ |
goobspatch.c | 371 off_t expect_oldsize, oldsize, newsize, patchsize; local 427 newsize = offtin(header + 40); 430 if (expect_oldsize < 0 || newsize < 0) 462 if((new=malloc(newsize+1))==NULL) err(1,NULL); 465 while(newpos<newsize) { 477 if(newpos+ctrl[0]>newsize) 493 if(newpos+ctrl[1]>newsize) 509 SHA1(new, newsize, sha1); 519 (write(fd,new,newsize)!=newsize) || (close(fd)==-1) [all...] |
/external/llvm/lib/ExecutionEngine/JIT/ |
JITMemoryManager.cpp | 97 /// than NewSize, split it into two pieces (where the former is NewSize 100 uint64_t NewSize); 138 void GrowBlock(uintptr_t NewSize); 215 void FreeRangeHeader::GrowBlock(uintptr_t NewSize) { 216 assert(NewSize > BlockSize && "Not growing block?"); 217 BlockSize = NewSize; 223 /// than NewSize, split it into two pieces (where the former is NewSize 226 TrimAllocationToSize(FreeRangeHeader *FreeList, uint64_t NewSize) { [all...] |
/libcore/luni/src/main/java/java/util/ |
TimSort.java | [all...] |
/external/lzma/C/ |
MtCoder.c | 148 #define MY_BUF_ALLOC(buf, size, newSize) \
149 if (buf == 0 || size != newSize) \
151 size = newSize; buf = (Byte *)IAlloc_Alloc(p->mtCoder->alloc, size); \
|
XzIn.c | 44 { UInt64 newSize = size + (val); if (newSize < size) return XZ_SIZE_OVERFLOW; size = newSize; }
|
/frameworks/av/media/ndk/ |
NdkMediaExtractor.cpp | 265 size_t newsize = buffer->size() - (sizeof(uint32_t) * numentries) + sizeof(size_t) local 267 ex->mPsshBuf = new ABuffer(newsize); 268 ex->mPsshBuf->setRange(0, newsize);
|
/external/chromium_org/chrome/browser/ui/cocoa/extensions/ |
extension_popup_controller.mm | 58 - (void)onSizeChanged:(NSSize)newSize; 362 - (void)onSizeChanged:(NSSize)newSize { 365 pendingSize_ = newSize; 372 frame.size = newSize;
|
/external/chromium_org/third_party/icu/source/common/ |
uvectr32.h | 135 * Change the size of this vector as follows: If newSize is 137 * elements for i >= newSize. If newSize is larger, grow the 140 void setSize(int32_t newSize);
|
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
sortkey.h | 256 * If this CollationKey has capacity less than newSize, 257 * its internal capacity will be increased to newSize. 258 * @param newSize minimum size this CollationKey has to have 261 CollationKey& ensureCapacity(int32_t newSize);
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_addrhashmap.h | 265 uptr newsize = oldsize * 2; local 266 AddBucket *add1 = (AddBucket*)InternalAlloc(newsize); 267 internal_memset(add1, 0, newsize); 268 add1->cap = (newsize - sizeof(*add)) / sizeof(add->cells[0]) + 1;
|
/external/icu/icu4c/source/common/ |
uvectr32.h | 135 * Change the size of this vector as follows: If newSize is 137 * elements for i >= newSize. If newSize is larger, grow the 140 void setSize(int32_t newSize);
|
/external/lzma/CPP/7zip/Common/ |
FileStreams.h | 130 STDMETHOD(SetSize)(UInt64 newSize);
|
/frameworks/base/media/mca/filterfw/native/core/ |
native_frame.h | 54 bool Resize(int newSize);
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
nmsupp.h | 66 extern LPVOID WINAPI ReallocMemory(LPVOID ptr,SIZE_T NewSize);
|
/external/chromium_org/third_party/WebKit/Source/wtf/text/ |
StringImplCF.cpp | 69 static void* reallocate(void* pointer, CFIndex newSize, CFOptionFlags, void*) 71 size_t newAllocationSize = sizeof(StringImpl*) + newSize;
|
/external/chromium_org/third_party/skia/gm/ |
rrect.cpp | 75 static SkScalar prop(SkScalar radius, SkScalar newSize, SkScalar oldSize) { 76 return newSize * radius / oldSize;
|
/external/llvm/include/llvm/ADT/ |
IntervalMap.h | 328 /// @param NewSize Array of desired node sizes. 331 unsigned CurSize[], const unsigned NewSize[]) { 334 if (CurSize[n] == NewSize[n]) 338 NewSize[n] - CurSize[n]); 342 if (CurSize[n] >= NewSize[n]) 352 if (CurSize[n] == NewSize[n]) 356 CurSize[n] - NewSize[n]); 360 if (CurSize[n] >= NewSize[n]) 367 assert(CurSize[n] == NewSize[n] && "Insufficient element shuffle"); 381 /// NewSize[] will be filled in such that [all...] |
/external/lzma/CPP/7zip/UI/Common/ |
Update.cpp | 85 STDMETHOD(SetSize)(UInt64 newSize);
207 STDMETHODIMP COutMultiVolStream::SetSize(UInt64 newSize)
209 if (newSize < 0)
215 if ((UInt64)newSize < subStream.RealSize)
217 RINOK(subStream.Stream->SetSize(newSize));
218 subStream.RealSize = newSize;
221 newSize -= subStream.RealSize;
234 _length = newSize;
|
/external/qemu/distrib/sdl-1.2.15/src/video/maccommon/ |
SDL_macevents.c | 297 int newSize; 305 newSize = GrowWindow(win, event.where, NULL); 307 newSize = GrowWindow(win, event.where, &theQD->screenBits.bounds); 309 if ( newSize ) { 313 SizeWindow ( win, LoWord (newSize), HiWord (newSize), 1 ); 314 SDL_PrivateResize ( LoWord (newSize), HiWord (newSize) );
|