/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/graphics/ |
H A D | ImageLoader.kt | 105 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 D | TvApp.cpp | 57 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 D | BitmapShaders.cpp | 40 explicit BitmapShaders(BitmapAllocationTestUtils::BitmapAllocator allocator) in BitmapShaders() argument 41 : TestScene(), mAllocator(allocator) {} in BitmapShaders()
|
H A D | BitmapFillrate.cpp | 35 explicit BitmapFillrate(BitmapAllocationTestUtils::BitmapAllocator allocator) in BitmapFillrate() argument 36 : TestScene(), mAllocator(allocator) {} in BitmapFillrate()
|
/aosp14/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaDisplayList.h | 50 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 D | SkiaDisplayList.cpp | 185 allocator.~LinearAllocator(); in reset() 186 new (&allocator) LinearAllocator(); in reset()
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | BitmapRegionDecoder.cpp | 86 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 D | ImageDecoder.cpp | 253 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 D | Bitmap.cpp | 399 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 D | LinearAllocator.h | 161 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 D | BitmapAllocationTestUtils.h | 52 template <class T, BitmapAllocator allocator> 54 return new T(allocator); in createBitmapAllocationScene()
|
/aosp14/frameworks/base/tools/lock_agent/ |
H A D | agent.cpp | 227 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 D | LinearAllocatorTests.cpp | 117 LinearAllocator allocator; in TEST() local 118 LinearStdAllocator<void*> stdAllocator(allocator); in TEST()
|
/aosp14/system/core/trusty/confirmationui/ |
H A D | TrustyApp.cpp | 103 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 D | msg_fuzzer.cpp | 62 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 D | tipc_test.c | 879 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 D | ActivityManagerServiceTest.java | 446 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 D | coverage.cpp | 141 BufferAllocator allocator; in Open() local 143 fd = allocator.Alloc("system", shm_len_); in Open()
|
/aosp14/system/core/libgrallocusage/ |
H A D | Android.bp | 44 shared_libs: ["android.hardware.graphics.allocator@2.0"],
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | ImageDecoder.java | 1349 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 D | ImageLoaderTest.kt | 310 allocator = ImageDecoder.ALLOCATOR_HARDWARE 323 allocator = ImageDecoder.ALLOCATOR_SOFTWARE
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/ |
H A D | GainmapDecodeTest.kt | 70 decoder.allocator = ImageDecoder.ALLOCATOR_SOFTWARE
|
H A D | GainmapTransformsTest.kt | 39 decoder.allocator = ImageDecoder.ALLOCATOR_SOFTWARE
|
H A D | GainmapImage.kt | 125 decoder.allocator = ImageDecoder.ALLOCATOR_SOFTWARE
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | SmartReplyStateInflater.kt | 315 decoder.allocator = ImageDecoder.ALLOCATOR_DEFAULT
|