Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 25 of 28) sorted by relevance

12

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/graphics/
H A DImageLoader.kt105 allocator: Int = ImageDecoder.ALLOCATOR_DEFAULT
129 allocator: Int = ImageDecoder.ALLOCATOR_DEFAULT
136 allocator
164 allocator: Int = ImageDecoder.ALLOCATOR_DEFAULT
169 decoder.allocator = allocator
200 allocator: Int = ImageDecoder.ALLOCATOR_DEFAULT
228 allocator: Int = ImageDecoder.ALLOCATOR_DEFAULT
262 allocator
304 decoder.allocator = allocator
337 allocator
[all …]
/aosp14/frameworks/base/libs/hwui/tests/common/scenes/
H A DTvApp.cpp57 explicit TvApp(BitmapAllocationTestUtils::BitmapAllocator allocator) in TvApp() argument
58 : TestScene(), mAllocator(allocator) {} in TvApp()
241 …it TvAppNoRoundedCorner(BitmapAllocationTestUtils::BitmapAllocator allocator) : TvApp(allocator) {} in TvAppNoRoundedCorner() argument
249 …plicit TvAppColorFilter(BitmapAllocationTestUtils::BitmapAllocator allocator) : TvApp(allocator) {} in TvAppColorFilter() argument
257 explicit TvAppNoRoundedCornerColorFilter(BitmapAllocationTestUtils::BitmapAllocator allocator) in TvAppNoRoundedCornerColorFilter() argument
258 : TvApp(allocator) {} in TvAppNoRoundedCornerColorFilter()
H A DBitmapShaders.cpp40 explicit BitmapShaders(BitmapAllocationTestUtils::BitmapAllocator allocator) in BitmapShaders() argument
41 : TestScene(), mAllocator(allocator) {} in BitmapShaders()
H A DBitmapFillrate.cpp35 explicit BitmapFillrate(BitmapAllocationTestUtils::BitmapAllocator allocator) in BitmapFillrate() argument
36 : TestScene(), mAllocator(allocator) {} in BitmapFillrate()
/aosp14/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaDisplayList.h50 size_t getUsedSize() const { return allocator.usedSize() + mDisplayList.usedSize(); } in getUsedSize()
52 return allocator.allocatedSize() + mDisplayList.allocatedSize(); in getAllocatedSize()
79 return allocator.create<T>(std::forward<Params>(params)...); in allocateDrawable()
161 LinearAllocator allocator; variable
H A DSkiaDisplayList.cpp185 allocator.~LinearAllocator(); in reset()
186 new (&allocator) LinearAllocator(); in reset()
/aosp14/frameworks/base/libs/hwui/jni/
H A DBitmapRegionDecoder.cpp86 bool decodeRegion(SkBitmap* bitmap, skia::BRDAllocator* allocator, const SkIRect& desiredSubset, in decodeRegion() argument
89 return mMainImageBRD->decodeRegion(bitmap, allocator, desiredSubset, sampleSize, colorType, in decodeRegion()
118 RecyclingClippingPixelAllocator allocator(nativeBitmap.get(), false); in decodeGainmapRegion() local
119 if (!mGainmapBRD->decodeRegion(&bm, &allocator, desiredSubset, sampleSize, decodeColorType, in decodeGainmapRegion()
124 allocator.copyIfNecessary(); in decodeGainmapRegion()
281 skia::BRDAllocator* allocator = nullptr; in nativeDecodeRegion() local
285 allocator = &recycleAlloc; in nativeDecodeRegion()
289 allocator = &heapAlloc; in nativeDecodeRegion()
298 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, in nativeDecodeRegion()
H A DImageDecoder.cpp253 jboolean requireMutable, jint allocator, in ImageDecoder_nDecodeBitmap() argument
281 if (allocator != kHardware_Allocator && in ImageDecoder_nDecodeBitmap()
282 (allocator != kDefault_Allocator || requireMutable)) { in ImageDecoder_nDecodeBitmap()
294 && (allocator == kDefault_Allocator || in ImageDecoder_nDecodeBitmap()
295 allocator == kHardware_Allocator) in ImageDecoder_nDecodeBitmap()
343 if (allocator == kSharedMemory_Allocator) { in ImageDecoder_nDecodeBitmap()
368 allocator == kSharedMemory_Allocator ? true : false); in ImageDecoder_nDecodeBitmap()
491 if (allocator == kHardware_Allocator) { in ImageDecoder_nDecodeBitmap()
H A DBitmap.cpp399 HeapAllocator allocator; in Bitmap_copy() local
401 if (!bitmapCopyTo(&result, dstCT, src, &allocator)) { in Bitmap_copy()
404 auto bitmap = allocator.getStorageObjAndReset(); in Bitmap_copy()
423 AshmemPixelAllocator allocator(env); in Bitmap_copyAshmemImpl() local
424 if (!bitmapCopyTo(&result, dstCT, src, &allocator)) { in Bitmap_copyAshmemImpl()
427 auto bitmap = allocator.getStorageObjAndReset(); in Bitmap_copyAshmemImpl()
903 HeapAllocator allocator; in Bitmap_extractAlpha() local
905 src.extractAlpha(&dst, paint, &allocator, &offset); in Bitmap_extractAlpha()
919 return createBitmap(env, allocator.getStorageObjAndReset(), in Bitmap_extractAlpha()
/aosp14/frameworks/base/libs/hwui/utils/
H A DLinearAllocator.h161 explicit LinearStdAllocator(LinearAllocator& allocator) : linearAllocator(allocator) {} in LinearStdAllocator() argument
201 explicit LsaVector(const LinearStdAllocator<T>& allocator) in LsaVector() argument
202 : std::vector<T, LinearStdAllocator<T>>(allocator) {} in LsaVector()
/aosp14/frameworks/base/libs/hwui/tests/common/
H A DBitmapAllocationTestUtils.h52 template <class T, BitmapAllocator allocator>
54 return new T(allocator); in createBitmapAllocationScene()
/aosp14/frameworks/base/tools/lock_agent/
H A Dagent.cpp227 const unsigned char* classData, dex::Writer::Allocator* allocator) { in maybeTransform() argument
246 dex::u1* newClassData = writer.CreateImage(allocator, &new_size); in maybeTransform()
293 JvmtiAllocator allocator(jvmtiEnv); in transformHook() local
295 &allocator); in transformHook()
523 NewDeleteAllocator allocator; in locktest_main() local
526 reinterpret_cast<unsigned char*>(data.get()), &allocator); in locktest_main()
/aosp14/frameworks/base/libs/hwui/tests/unit/
H A DLinearAllocatorTests.cpp117 LinearAllocator allocator; in TEST() local
118 LinearStdAllocator<void*> stdAllocator(allocator); in TEST()
/aosp14/system/core/trusty/confirmationui/
H A DTrustyApp.cpp103 BufferAllocator allocator; in TrustyApp() local
104 unique_fd dma_buf(allocator.Alloc("system", shm_len)); in TrustyApp()
/aosp14/system/core/trusty/confirmationui/fuzz/
H A Dmsg_fuzzer.cpp62 BufferAllocator allocator; in LLVMFuzzerInitialize() local
63 dma_buf.reset(allocator.Alloc(kDmabufSystemHeapName, CONFIRMATIONUI_MAX_MSG_SIZE)); in LLVMFuzzerInitialize()
/aosp14/system/core/trusty/libtrusty/tipc-test/
H A Dtipc_test.c879 BufferAllocator* allocator = NULL; in send_fd_test() local
890 allocator = CreateDmabufHeapBufferAllocator(); in send_fd_test()
891 if (!allocator) { in send_fd_test()
898 dma_buf = DmabufHeapAlloc(allocator, "system", buf_size, 0, 0 /* legacy align */); in send_fd_test()
939 if (allocator) { in send_fd_test()
940 FreeDmabufHeapBufferAllocator(allocator); in send_fd_test()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
H A DActivityManagerServiceTest.java446 final IsolatedUidRangeAllocator allocator = mAms.mProcessList.mAppIsolatedUidRangeAllocator; in testIsolatedUidRangeAllocator() local
452 final IsolatedUidRange range = allocator.getOrCreateIsolatedUidRangeLocked( in testIsolatedUidRangeAllocator()
461 IsolatedUidRange range2 = allocator.getOrCreateIsolatedUidRangeLocked( in testIsolatedUidRangeAllocator()
470 allocator.freeUidRangeLocked(appInfo2); in testIsolatedUidRangeAllocator()
471 range2 = allocator.getOrCreateIsolatedUidRangeLocked(appInfo2.processName, appInfo2.uid); in testIsolatedUidRangeAllocator()
477 allocator.freeUidRangeLocked(appInfo); in testIsolatedUidRangeAllocator()
478 allocator.freeUidRangeLocked(appInfo2); in testIsolatedUidRangeAllocator()
484 final IsolatedUidRange range3 = allocator.getOrCreateIsolatedUidRangeLocked( in testIsolatedUidRangeAllocator()
489 allocator.freeUidRangeLocked(appInfo3); in testIsolatedUidRangeAllocator()
497 IsolatedUidRange uidRange = allocator.getOrCreateIsolatedUidRangeLocked( in testIsolatedUidRangeAllocator()
[all …]
/aosp14/system/core/trusty/coverage/
H A Dcoverage.cpp141 BufferAllocator allocator; in Open() local
143 fd = allocator.Alloc("system", shm_len_); in Open()
/aosp14/system/core/libgrallocusage/
H A DAndroid.bp44 shared_libs: ["android.hardware.graphics.allocator@2.0"],
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DImageDecoder.java1349 public void setAllocator(@Allocator int allocator) { in setAllocator() argument
1350 if (allocator < ALLOCATOR_DEFAULT || allocator > ALLOCATOR_HARDWARE) { in setAllocator()
1351 throw new IllegalArgumentException("invalid allocator " + allocator); in setAllocator()
1353 mAllocator = allocator; in setAllocator()
2295 int allocator, boolean unpremulRequired,
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/graphics/
H A DImageLoaderTest.kt310 allocator = ImageDecoder.ALLOCATOR_HARDWARE
323 allocator = ImageDecoder.ALLOCATOR_SOFTWARE
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/
H A DGainmapDecodeTest.kt70 decoder.allocator = ImageDecoder.ALLOCATOR_SOFTWARE
H A DGainmapTransformsTest.kt39 decoder.allocator = ImageDecoder.ALLOCATOR_SOFTWARE
H A DGainmapImage.kt125 decoder.allocator = ImageDecoder.ALLOCATOR_SOFTWARE
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSmartReplyStateInflater.kt315 decoder.allocator = ImageDecoder.ALLOCATOR_DEFAULT

12