Home
last modified time | relevance | path

Searched refs:newSize (Results 1 – 11 of 11) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureTrailDrawingPoints.java230 final int newSize = trailSize - startIndex; in drawGestureTrailLocked() local
231 if (newSize < startIndex) { in drawGestureTrailLocked()
233 if (newSize > 0) { in drawGestureTrailLocked()
234 System.arraycopy(eventTimes, startIndex, eventTimes, 0, newSize); in drawGestureTrailLocked()
235 System.arraycopy(xCoords, startIndex, xCoords, 0, newSize); in drawGestureTrailLocked()
236 System.arraycopy(yCoords, startIndex, yCoords, 0, newSize); in drawGestureTrailLocked()
238 System.arraycopy(pointTypes, startIndex, pointTypes, 0, newSize); in drawGestureTrailLocked()
241 mEventTimes.setLength(newSize); in drawGestureTrailLocked()
242 mXCoordinates.setLength(newSize); in drawGestureTrailLocked()
243 mYCoordinates.setLength(newSize); in drawGestureTrailLocked()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dallocators.h71 void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) { in Realloc() argument
73 if (newSize == 0) { in Realloc()
77 return std::realloc(originalPtr, newSize); in Realloc()
190 void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) { in Realloc() argument
192 return Malloc(newSize); in Realloc()
194 if (newSize == 0) in Realloc()
198 if (originalSize >= newSize) in Realloc()
203 size_t increment = static_cast<size_t>(newSize - originalSize); in Realloc()
212 void* newBuffer = Malloc(newSize); in Realloc()
/packages/apps/TV/src/com/android/tv/menu/
DItemListRowView.java180 int newSize = itemList.size(); in setItemList() local
182 if (oldSize > newSize) { in setItemList()
183 notifyItemRangeChanged(0, newSize); in setItemList()
184 notifyItemRangeRemoved(newSize, oldSize - newSize); in setItemList()
185 } else if (oldSize < newSize) { in setItemList()
187 notifyItemRangeInserted(oldSize, newSize - oldSize); in setItemList()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DUtils.java319 public static String[] copyOf(String[] source, int newSize) { in copyOf() argument
320 String[] result = new String[newSize]; in copyOf()
321 newSize = Math.min(source.length, newSize); in copyOf()
322 System.arraycopy(source, 0, result, 0, newSize); in copyOf()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dstack.h162 size_t newSize = GetSize() + sizeof(T) * count; in Expand() local
163 if (newCapacity < newSize) in Expand()
164 newCapacity = newSize; in Expand()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DVideoUtils.java162 int newSize = format.getInteger(MediaFormat.KEY_MAX_INPUT_SIZE); in genVideoUsingMuxer() local
163 bufferSize = newSize > bufferSize ? newSize : bufferSize; in genVideoUsingMuxer()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetProvider.java400 final Sizes measuredSizes = template.newSize(); in measure()
514 private Sizes newSize() { in newSize() method in DigitalAppWidgetProvider.Sizes
DDigitalAppWidgetProvider.kt250 fun newSize(): Sizes { in <lambda>() method
469 val measuredSizes = template.newSize() in <lambda>()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java239 public void ensureSize(int newSize) { in ensureSize() argument
240 if (newSize >= array.length) { in ensureSize()
242 array = Arrays.copyOf(array, newSize + 16 * 7); in ensureSize()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java771 int newSize = mBrowseNode.addChildren(folderList); in processMessage() local
772 logD("Added " + newSize + " items to the browse tree"); in processMessage()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dinternals.md144 // \param newSize the new size in bytes.
145 void* Realloc(void* originalPtr, size_t originalSize, size_t newSize);