Home
last modified time | relevance | path

Searched refs:newPtr (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/libs/hwui/utils/
H A DAutoMalloc.h76 T* newPtr = nullptr; in mallocIfCountThrowOnFail() local
78 newPtr = (T*)std::malloc(count * sizeof(T)); in mallocIfCountThrowOnFail()
79 LOG_ALWAYS_FATAL_IF(!newPtr, "failed to malloc %zu bytes", count * sizeof(T)); in mallocIfCountThrowOnFail()
81 return newPtr; in mallocIfCountThrowOnFail()
84 T* newPtr = nullptr; in reallocIfCountThrowOnFail() local
86 newPtr = (T*)std::realloc(fPtr.release(), count * sizeof(T)); in reallocIfCountThrowOnFail()
87 LOG_ALWAYS_FATAL_IF(!newPtr, "failed to realloc %zu bytes", count * sizeof(T)); in reallocIfCountThrowOnFail()
89 return newPtr; in reallocIfCountThrowOnFail()
/aosp14/frameworks/base/core/java/android/view/
H A DSurface.java707 final long newPtr; in transferFrom() local
709 newPtr = other.mNativeObject; in transferFrom()
717 setNativeObjectLocked(newPtr); in transferFrom()