Home
last modified time | relevance | path

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

12

/device/google/cuttlefish/common/libs/utils/
Dunique_resource_allocator_test.cpp27 auto allocator = UniqueResourceAllocator<unsigned>::New(resources); in TEST_P() local
28 if (!allocator) { in TEST_P()
37 auto id_opt = allocator->UniqueItem(); in TEST_P()
42 ASSERT_FALSE(allocator->UniqueItem()); in TEST_P()
52 auto allocator = UniqueResourceAllocator<unsigned>::New(inputs); in TEST_F() local
53 if (!allocator) { in TEST_F()
58 auto allocated_items_opt = allocator->UniqueItems(inputs.size()); in TEST_F()
62 ASSERT_FALSE(allocator->UniqueItem()); in TEST_F()
67 auto allocator = UniqueResourceAllocator<unsigned>::New(inputs); in TEST_F() local
68 if (!allocator) { in TEST_F()
[all …]
/device/google/contexthub/firmware/os/core/
Dslab.c31 struct SlabAllocator *allocator; in slabAllocatorNew() local
42 allocator = (struct SlabAllocator*)heapAlloc(sizeof(struct SlabAllocator) + bitsetSz + dataSz); in slabAllocatorNew()
43 if (allocator) { in slabAllocatorNew()
44 allocator->itemSz = itemSz; in slabAllocatorNew()
45 allocator->dataChunks = ((uint8_t*)allocator->bitset) + bitsetSz; in slabAllocatorNew()
46 atomicBitsetInit(allocator->bitset, numItems); in slabAllocatorNew()
49 return allocator; in slabAllocatorNew()
52 void slabAllocatorDestroy(struct SlabAllocator *allocator) in slabAllocatorDestroy() argument
54 heapFree(allocator); in slabAllocatorDestroy()
57 void* slabAllocatorAlloc(struct SlabAllocator *allocator) in slabAllocatorAlloc() argument
[all …]
DosApi.c254 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *); in osExpApiSlabDestroy() local
256 slabAllocatorDestroy(allocator); in osExpApiSlabDestroy()
261 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *); in osExpApiSlabAlloc() local
263 *retValP = (uintptr_t)slabAllocatorAlloc(allocator); in osExpApiSlabAlloc()
268 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *); in osExpApiSlabFree() local
271 slabAllocatorFree(allocator, mem); in osExpApiSlabFree()
/device/generic/goldfish/camera/
Dexif.cpp48 void operator()(ExifMem* allocator) const { in operator ()()
49 exif_mem_unref(allocator); in operator ()()
156 ExifMemPtr allocator(exif_mem_new_default()); in createExifData() local
157 ExifDataPtr exifData(exif_data_new_mem(allocator.get())); in createExifData()
166 appendEntryS(exifData.get(), allocator.get(), EXIF_IFD_0, EXIF_TAG_MAKE, in createExifData()
171 appendEntryS(exifData.get(), allocator.get(), EXIF_IFD_0, EXIF_TAG_MODEL, in createExifData()
187 appendEntryS(exifData.get(), allocator.get(), EXIF_IFD_0, in createExifData()
189 appendEntryS(exifData.get(), allocator.get(), EXIF_IFD_EXIF, in createExifData()
191 appendEntryS(exifData.get(), allocator.get(), EXIF_IFD_EXIF, in createExifData()
197 appendEntryS(exifData.get(), allocator.get(), EXIF_IFD_EXIF, in createExifData()
[all …]
/device/google/contexthub/firmware/os/inc/
Dslab.h29 void slabAllocatorDestroy(struct SlabAllocator *allocator);
30 void* slabAllocatorAlloc(struct SlabAllocator *allocator);
31 void slabAllocatorFree(struct SlabAllocator *allocator, void *ptr);
33 void* slabAllocatorGetNth(struct SlabAllocator *allocator, uint32_t idx); // -> pointer or NULL if …
34 uint32_t slabAllocatorGetIndex(struct SlabAllocator *allocator, void *ptr); // -> index or -1 if in…
35 uint32_t slabAllocatorGetNumItems(struct SlabAllocator *allocator); // simply say hwo many items it…
DsyscallDo.h205 static inline void eOsSlabAllocatorDestroy(struct SlabAllocator* allocator) in eOsSlabAllocatorDestroy() argument
207 …YSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SLAB, SYSCALL_OS_MAIN_SLAB_DESTROY), allocator); in eOsSlabAllocatorDestroy()
210 static inline void* eOsSlabAllocatorAlloc(struct SlabAllocator* allocator) in eOsSlabAllocatorAlloc() argument
212 …(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SLAB, SYSCALL_OS_MAIN_SLAB_ALLOC), allocator); in eOsSlabAllocatorAlloc()
215 static inline void eOsSlabAllocatorFree(struct SlabAllocator* allocator, void* ptrP) in eOsSlabAllocatorFree() argument
217 …ALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SLAB, SYSCALL_OS_MAIN_SLAB_FREE), allocator, ptrP); in eOsSlabAllocatorFree()
/device/google/cuttlefish/guest/hals/gralloc/
DAndroid.bp41 "android.hardware.graphics.allocator-service.minigbm",
44 "allocator.minigbm.xml", // vintf
48 "android.hardware.graphics.allocator-service.minigbm",
86 srcs: [":allocator.minigbm.rc"],
Dapex_file_contexts5 /bin/hw/android\.hardware\.graphics\.allocator-service\.minigbm u:object_r:hal_graphics_allocator_…
/device/linaro/dragonboard/shared/graphics/minigbm_msm/sepolicy/
Dfile_contexts1 /vendor/bin/hw/android\.hardware\.graphics\.allocator-service\.minigbm u:object_r:hal_graphics_al…
2 /vendor/bin/hw/android\.hardware\.graphics\.allocator@4\.0-service\.minigbm u:object_r:hal_graphic…
3 /vendor/bin/hw/android\.hardware\.graphics\.allocator@4\.0-service\.minigbm_msm u:object_r:hal_gra…
/device/google/cuttlefish/host/frontend/webrtc/doc/
Dgraphics.dot55 minigbm -> hwcomposer_drm [dir = both, label = "HIDL (graphics.allocator)", style = "dashed"]
56 hwcomposer_ranchu -> minigbm [dir = both, label = "AIDL (graphics.allocator)", style = "dashed"]
67 surfaceflinger -> minigbm [dir = both, label = "HIDL (graphics.allocator)"]
/device/generic/goldfish-opengl/system/hals/
DAndroid.bp75 name: "android.hardware.graphics.allocator@3.0-service.ranchu",
78 init_rc: ["android.hardware.graphics.allocator@3.0-service.ranchu.rc"],
81 "android.hardware.graphics.allocator@3.0",
Dandroid.hardware.graphics.allocator@3.0-service.ranchu.rc1 service vendor.gralloc-3-0 /vendor/bin/hw/android.hardware.graphics.allocator@3.0-service.ranchu
2 interface android.hardware.graphics.allocator@3.0::IAllocator default
Dallocator3.cpp41 namespace AllocatorV3 = ::android::hardware::graphics::allocator::V3_0;
435 sp<IAllocator3> allocator(new GoldfishAllocator()); in main() local
436 if (allocator->registerAsService() != ::android::NO_ERROR) { in main()
/device/generic/goldfish-opengl/system/codecs/c2/decoders/vpxdec/
DAndroid.bp22 "android.hardware.graphics.allocator@3.0",
53 "android.hardware.graphics.allocator@3.0",
/device/linaro/poplar/
Ddevice.mk80 android.hardware.graphics.allocator@2.0 \
81 android.hardware.graphics.allocator@2.0-impl \
82 android.hardware.graphics.allocator@2.0-service \
/device/google/cuttlefish/shared/config/
DCleanSpec.mk51 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.graphics.allocator@4.…
52 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.graphics.allocator@4.0-…
/device/generic/goldfish/sepolicy/vendor/
Dfile_contexts45 /vendor/bin/hw/android\.hardware\.graphics\.allocator@3\.0-service\.ranchu u:object_r:hal_graphics_…
79 /vendor/bin/hw/android\.hardware\.graphics\.allocator-service\.minigbm u:object_r:hal_graphics_al…
80 /vendor/bin/hw/android\.hardware\.graphics\.allocator@4\.0-service\.minigbm u:object_r:hal_graphi…
/device/google/cuttlefish/shared/graphics/sepolicy/
Dfile_contexts7 /vendor/bin/hw/android\.hardware\.graphics\.allocator-service\.minigbm u:object_r:hal_graphics_al…
8 /vendor/bin/hw/android\.hardware\.graphics\.allocator@4\.0-service\.minigbm u:object_r:hal_graphi…
/device/generic/goldfish/fvpbase/
Dfvp.mk57 android.hardware.graphics.allocator@2.0-service \
58 android.hardware.graphics.allocator@2.0-impl \
/device/linaro/dragonboard/shared/graphics/minigbm_msm/
Ddevice.mk19 android.hardware.graphics.allocator@4.0-service.minigbm_msm \
/device/generic/goldfish/product/
Dgeneric.mk44 android.hidl.allocator@1.0-service
106 android.hardware.graphics.allocator-service.minigbm \
112 android.hardware.graphics.allocator@3.0-service.ranchu \
/device/generic/goldfish-opengl/system/codecs/c2/decoders/hevcdec/
DAndroid.bp23 "android.hardware.graphics.allocator@3.0",
/device/generic/goldfish-opengl/system/codecs/c2/decoders/avcdec/
DAndroid.bp23 "android.hardware.graphics.allocator@3.0",
/device/linaro/dragonboard/
Dmini.mk24 android.hidl.allocator@1.0-service \
/device/google/cuttlefish/shared/graphics/
Ddevice_vendor.mk64 android.hardware.graphics.allocator-service.minigbm \

12