Home
last modified time | relevance | path

Searched refs:oldSize (Results 1 – 25 of 44) sorted by relevance

12

/aosp12/system/chre/chpp/platform/linux/
H A Dmemory.c75 void *chppRealloc(void *oldPtr, const size_t newSize, const size_t oldSize) { in chppRealloc() argument
76 UNUSED_VAR(oldSize); in chppRealloc()
78 if (newSize != oldSize) { in chppRealloc()
90 if (newSize > oldSize) { in chppRealloc()
91 gTotalAllocBytes += (newSize - oldSize); in chppRealloc()
93 gTotalAllocBytes -= (oldSize - newSize); in chppRealloc()
/aosp12/packages/apps/TV/src/com/android/tv/menu/
H A DItemListRowView.java179 int oldSize = mItemList.size(); in setItemList() local
182 if (oldSize > newSize) { in setItemList()
184 notifyItemRangeRemoved(newSize, oldSize - newSize); in setItemList()
185 } else if (oldSize < newSize) { in setItemList()
186 notifyItemRangeChanged(0, oldSize); in setItemList()
187 notifyItemRangeInserted(oldSize, newSize - oldSize); in setItemList()
189 notifyItemRangeChanged(0, oldSize); in setItemList()
/aosp12/frameworks/base/graphics/java/android/graphics/
H A DPaint.java2229 final float oldSize = getTextSize(); in measureText() local
2233 setTextSize(oldSize); in measureText()
2260 final float oldSize = getTextSize(); in measureText() local
2264 setTextSize(oldSize); in measureText()
2350 final float oldSize = getTextSize(); in breakText() local
2354 setTextSize(oldSize); in breakText()
2438 final float oldSize = getTextSize(); in breakText() local
2442 setTextSize(oldSize); in breakText()
2478 setTextSize(oldSize); in getTextWidths()
2561 setTextSize(oldSize); in getTextWidths()
[all …]
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/
H A DLevelListDrawable.java226 public void growArray(int oldSize, int newSize) { in growArray() argument
227 super.growArray(oldSize, newSize); in growArray()
229 System.arraycopy(mLows, 0, newInts, 0, oldSize); in growArray()
232 System.arraycopy(mHighs, 0, newInts, 0, oldSize); in growArray()
H A DAnimationDrawable.java421 public void growArray(int oldSize, int newSize) { in growArray() argument
422 super.growArray(oldSize, newSize); in growArray()
424 System.arraycopy(mDurations, 0, newDurations, 0, oldSize); in growArray()
H A DStateListDrawable.java374 public void growArray(int oldSize, int newSize) { in growArray() argument
375 super.growArray(oldSize, newSize); in growArray()
377 System.arraycopy(mStateSets, 0, newStateSets, 0, oldSize); in growArray()
/aosp12/frameworks/base/core/java/android/util/
H A DMapCollections.java177 int oldSize = colGetSize(); in addAll() local
181 return oldSize != colGetSize(); in addAll()
471 int oldSize = map.size(); in removeAllHelper() local
476 return oldSize != map.size(); in removeAllHelper()
480 int oldSize = map.size(); in retainAllHelper() local
487 return oldSize != map.size(); in retainAllHelper()
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A DFullScreenMagnificationGestureHandler.java241 final int oldSize = (mTempPointerCoords != null) ? mTempPointerCoords.length : 0; in getTempPointerCoordsWithMinSize() local
242 if (oldSize < size) { in getTempPointerCoordsWithMinSize()
246 System.arraycopy(oldTempPointerCoords, 0, mTempPointerCoords, 0, oldSize); in getTempPointerCoordsWithMinSize()
249 for (int i = oldSize; i < size; i++) { in getTempPointerCoordsWithMinSize()
256 final int oldSize = (mTempPointerProperties != null) ? mTempPointerProperties.length in getTempPointerPropertiesWithMinSize() local
258 if (oldSize < size) { in getTempPointerPropertiesWithMinSize()
263 oldSize); in getTempPointerPropertiesWithMinSize()
266 for (int i = oldSize; i < size; i++) { in getTempPointerPropertiesWithMinSize()
/aosp12/frameworks/av/services/camera/libcameraservice/tests/
H A DNV12Compressor.cpp256 size_t oldSize = manager->mBuffer.size(); in emptyOutputBuffer() local
257 manager->mBuffer.resize(oldSize * 2); in emptyOutputBuffer()
258 manager->next_output_byte = &manager->mBuffer[oldSize]; in emptyOutputBuffer()
259 manager->free_in_buffer = manager->mBuffer.size() - oldSize; in emptyOutputBuffer()
/aosp12/frameworks/base/core/java/android/os/
H A DTokenWatcher.java87 int oldSize = mTokens.size(); in acquire() local
97 if (oldSize == 0 && !mAcquired) { in acquire()
/aosp12/system/chre/chpp/include/chpp/
H A Dmemory.h61 void *chppRealloc(void *oldPtr, const size_t newSize, const size_t oldSize);
/aosp12/frameworks/av/media/libstagefright/id3/
H A DID3.cpp421 size_t oldSize = mSize; in removeUnsynchronizationV2_4() local
481 if (readOffset <= oldSize) { in removeUnsynchronizationV2_4()
482 memmove(&mData[writeOffset], &mData[readOffset], oldSize - readOffset); in removeUnsynchronizationV2_4()
484 ALOGE("b/34618607 (%zu %zu %zu %zu)", readOffset, writeOffset, oldSize, mSize); in removeUnsynchronizationV2_4()
498 memset(&mData[mSize], 0, oldSize - mSize); in removeUnsynchronizationV2_4()
/aosp12/frameworks/av/media/bufferpool/1.0/vts/
H A Dallocator.cpp152 size_t oldSize = oldParams.size(); in compatible() local
153 if (newSize == oldSize) { in compatible()
/aosp12/packages/modules/adb/client/
H A Dincremental_utils.cpp150 auto oldSize = blocks->size(); in appendBlocks() local
151 blocks->resize(oldSize + count); in appendBlocks()
152 std::iota(blocks->begin() + oldSize, blocks->end(), start); in appendBlocks()
/aosp12/frameworks/compile/slang/tests/P_reduce_general_input/
H A DScriptField_MyStruct.java.expect190 int oldSize = mItemArray.length;
191 int copySize = Math.min(oldSize, newSize);
192 if (newSize == oldSize) return;
/aosp12/frameworks/compile/slang/tests/P_reduce_general_inputs/
H A DScriptField_MyStruct.java.expect190 int oldSize = mItemArray.length;
191 int copySize = Math.min(oldSize, newSize);
192 if (newSize == oldSize) return;
/aosp12/frameworks/compile/slang/tests/P_reduce_general_result/
H A DScriptField_MyStruct.java.expect190 int oldSize = mItemArray.length;
191 int copySize = Math.min(oldSize, newSize);
192 if (newSize == oldSize) return;
/aosp12/frameworks/compile/slang/tests/P_reflection3264_divergent/
H A DScriptField_NonDivergent.java.expect188 int oldSize = mItemArray.length;
189 int copySize = Math.min(oldSize, newSize);
190 if (newSize == oldSize) return;
H A DScriptField_Divergent.java.expect221 int oldSize = mItemArray.length;
222 int copySize = Math.min(oldSize, newSize);
223 if (newSize == oldSize) return;
H A DScriptField_DivergentNest.java.expect234 int oldSize = mItemArray.length;
235 int copySize = Math.min(oldSize, newSize);
236 if (newSize == oldSize) return;
/aosp12/frameworks/av/media/bufferpool/2.0/tests/
H A Dallocator.cpp170 size_t oldSize = oldParams.size(); in compatible() local
171 if (newSize == oldSize) { in compatible()
/aosp12/frameworks/compile/slang/tests/P_struct_field/
H A DScriptField_InnerTwo.java.expect198 int oldSize = mItemArray.length;
199 int copySize = Math.min(oldSize, newSize);
200 if (newSize == oldSize) return;
H A DScriptField_InnerOne.java.expect211 int oldSize = mItemArray.length;
212 int copySize = Math.min(oldSize, newSize);
213 if (newSize == oldSize) return;
H A DScriptField_Outer.java.expect398 int oldSize = mItemArray.length;
399 int copySize = Math.min(oldSize, newSize);
400 if (newSize == oldSize) return;
/aosp12/frameworks/base/tools/aapt/
H A DImages.cpp1433 size_t oldSize = (size_t)ftell(fp); in preProcessImage() local
1435 float factor = ((float)newSize)/oldSize; in preProcessImage()
1515 size_t oldSize = (size_t)ftell(fp); in preProcessImageToCache() local
1571 float factor = ((float)newSize)/oldSize; in preProcessImageToCache()

12