Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 155) sorted by relevance

1234567

/cts/hostsidetests/securitybulletin/securityPatch/includes/
Dmemutils_track.h32 size_t mem_size;
39 extern bool is_tracking_required(size_t size);
40 static void* (*real_memalign)(size_t, size_t) = NULL;
41 static void* (*real_malloc)(size_t) = NULL;
49 static void* (*real_calloc)(size_t, size_t) = NULL;
Dmemutils.h43 size_t mem_size;
46 static void* (*real_memalign)(size_t, size_t) = NULL;
48 static void* (*real_calloc)(size_t, size_t) = NULL;
49 static void* (*real_malloc)(size_t) = NULL;
50 static void* (*real_realloc)(void *ptr, size_t size) = NULL;
Dmemutils.c30 size_t page_size = getpagesize(); in exit_handler()
90 void *memalign(size_t alignment, size_t size) { in memalign()
101 size_t total_size; in memalign()
102 size_t aligned_size = size; in memalign()
103 size_t num_pages; in memalign()
104 size_t page_size = getpagesize(); in memalign()
153 void *malloc(size_t size) { in malloc()
165 void *calloc(size_t nitems, size_t size) { in calloc()
174 void *ptr = memalign(sizeof(size_t), (nitems * size)); in calloc()
180 void *realloc(void *ptr, size_t size) { in realloc()
[all …]
Dmemutils_track.c53 void *memalign(size_t alignment, size_t size) { in memalign()
83 void *malloc(size_t size) { in malloc()
131 void *calloc(size_t nitems, size_t size) { in calloc()
176 size_t mem_size = s_allocation_list[i].mem_size; in is_memory_uninitialized()
183 for (size_t j = 0; j < sizeof(uint32_t); ++j) { in is_memory_uninitialized()
195 for (size_t j = 0; j < mem_size; ++j) { in is_memory_uninitialized()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0458/
Dpoc.cpp31 size_t getBurstBufferSizeBytes() const { in getBurstBufferSizeBytes()
35 size_t getByteCursor() const { in getByteCursor()
43 size_t getPayloadBytesPending() const { in getPayloadBytesPending()
47 ssize_t writeOutput(const void*, size_t numBytes) override { in writeOutput()
52 size_t mOutputSizeBytes = 0;
66 size_t bufferSize = encoder.getBurstBufferSizeBytes(); in main()
70 size_t pendingBytes = encoder.getPayloadBytesPending(); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-1906/
Dmsm_kgsl.h41 size_t len;
42 size_t offset;
60 size_t size;
70 size_t size;
71 size_t mmapsize;
83 size_t size;
84 size_t mmapsize;
/cts/tests/tests/media/audio/jni/
DBlob.h30 BlobReadOnly(const void *data, size_t size, bool byReference) : in BlobReadOnly()
47 const size_t mSize;
54 Blob(size_t size) : in Blob()
61 Blob(void *data, size_t size) : in Blob()
72 size_t mOffset;
73 const size_t mSize;
DGate.h64 size_t waitId = ++mWaitCount; in wait()
111 size_t waiters() { in waiters()
119 size_t mWaitCount; // total number of threads that have called wait()
120 size_t mPassCount; // total number of threads passed the gate.
125 inline size_t waiters_l() { in waiters_l()
130 inline bool passedGate_l(size_t waitId) { in passedGate_l()
/cts/tests/aslr/src/
DAslrMallocTest.cpp38 const size_t minEntropyBits = 8;
41 const size_t allocSizes[] = {
69 void GetAddress(size_t allocSize, uintptr_t& address) in GetAddress()
108 size_t iterations = 2 * (1 << minEntropyBits); in TestRandomization()
117 for (size_t i = 0; i < iterations; ++i) { in TestRandomization()
124 size_t entropy = static_cast<size_t>(0.5 + in TestRandomization()
143 size_t size; in main()
/cts/tests/sensor/jni/
DSensorTest.h65 int createSharedMemoryDirectChannel(int fd, size_t size);
66 int createHardwareBufferDirectChannel(AHardwareBuffer const *buffer, size_t size);
110 static TestSharedMemory* create(int type, size_t size);
112 std::vector<ASensorEvent> parseEvents(int64_t lastCounter = -1, size_t offset = 0) const;
127 size_t getSize() const { in getSize()
131 TestSharedMemory(int type, size_t size);
135 size_t mSize;
DSensorTest.cpp73 int TestSensorManager::createSharedMemoryDirectChannel(int fd, size_t size) { in createSharedMemoryDirectChannel()
82 AHardwareBuffer const *buffer, size_t size) { in createHardwareBufferDirectChannel()
110 std::vector<ASensorEvent> TestSharedMemory::parseEvents(int64_t lastCounter, size_t offset) const { in parseEvents()
111 constexpr size_t kEventSize = sizeof(ASensorEvent); in parseEvents()
112 constexpr size_t kOffsetSize = offsetof(ASensorEvent, version); in parseEvents()
113 constexpr size_t kOffsetAtomicCounter = offsetof(ASensorEvent, reserved0); in parseEvents()
137 TestSharedMemory::TestSharedMemory(int type, size_t size) in TestSharedMemory()
234 TestSharedMemory* TestSharedMemory::create(int type, size_t size) { in create()
235 constexpr size_t kMaxSize = 128*1024*1024; // sensor test should not need more than 128M in create()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9491/
Dpoc.cpp19 #define NUM_SUB_SAMPLES ((SIZE_MAX / (sizeof(size_t) * 2) - 34) + 32)
24 size_t clearBytes[4] = {5, 6, 7, 8}; in main()
25 size_t encryptedBytes[4] = {8, 7, 6, 5}; in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0925/
Dpoc.cpp34 const size_t page_size = getpagesize(); in sigsegv_handler()
35 const size_t page_mask = (~(page_size - 1)); in sigsegv_handler()
37 char *vulnPtrGuardPage = (char *)((size_t)vulnPtr & page_mask) + page_size; in sigsegv_handler()
38 char *faultPage = (char *)((size_t)info->si_addr & page_mask); in sigsegv_handler()
54 static std::vector<bytes_t> UnpackPackets(const uint8_t *Data, size_t Size) { in UnpackPackets()
86 size_t size = ftell(file); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2023-21127/
Dpoc.cpp29 constexpr size_t kTrackIndex = 0;
39 size_t sampleSize = -1; in main()
56 size_t offset = MINIMUM_ALIGNMENT - (sampleSize % MINIMUM_ALIGNMENT) + 1; in main()
57 size_t updatedSize = buffer->capacity() - offset; in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2228/
Dpoc.c25 size_t text_len = sizeof("text/plain") - 1;
27 static void *(*real_malloc)(size_t) = NULL;
31 real_malloc = (void *(*)(size_t))dlsym(RTLD_NEXT, "malloc"); in init()
42 void *malloc(size_t size) { in malloc()
/cts/tests/openglperf2/jni/reference/scene/
DScene.cpp47 for (size_t i = 0; i < mTextureIds.size(); i++) { in tearDown()
50 for (size_t i = 0; i < mMeshes.size(); i++) { in tearDown()
53 for (size_t i = 0; i < mSceneGraphs.size(); i++) { in tearDown()
68 for (size_t i = 0; i < mSceneGraphs.size(); i++) { in update()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-39665/
Dpoc.cpp32 static void *(*realMalloc)(size_t) = nullptr;
34 void *malloc(size_t size) { in malloc()
36 realMalloc = (void *(*)(size_t))dlsym(RTLD_NEXT, "malloc"); in malloc()
42 size_t pageSize = sysconf(_SC_PAGE_SIZE); in malloc()
/cts/tests/tests/media/common/jni/
Dcodec-utils-jni.cpp57 size_t size;
61 size_t cropWidth;
62 size_t cropHeight;
68 size_t numPlanes;
75 virtual size_t length() = 0;
96 size_t length() { in length()
101 size_t len;
229 for (size_t ix = 0; ix < img->numPlanes; ++ix) { in getNativeImage()
274 for (size_t ix = 0; ix < img->numPlanes; ++ix) { in Java_android_media_cts_CodecUtils_getImageChecksumAlder32()
276 for (size_t y = img->plane[ix].cropHeight; y > 0; --y) { in Java_android_media_cts_CodecUtils_getImageChecksumAlder32()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0069/
Dpoc.c118 size_t size) { in perform_pa_read()
123 size_t num_words = size / 4; in perform_pa_read()
149 for (size_t ii = 0; ii < num_words; ii++) { in perform_pa_read()
200 size_t read_size = 0x100; in main()
209 for (size_t ii = 0; ii < sizeof(device_names) / sizeof(device_names[0]); in main()
234 for (size_t ii = 0; ii < sizeof(kernel_bases) / sizeof(kernel_bases[0]); in main()
244 for (size_t ii = 0; ii < read_size; ii++) { in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2180/
Dpoc.c31 static size_t (*realStrlen)(const char *str) = NULL;
34 realStrlen = (size_t(*)(const char *))dlsym(RTLD_NEXT, "strlen"); in init()
41 size_t strlen(const char *str) { in strlen()
/cts/tests/tests/media/misc/jni/
Dnative-media-jni.cpp77 size_t bytesize = 0; in Java_android_media_misc_cts_NativeDecoderTest_testFormatNative()
109 for (size_t i = 0; i < info->numentries; i++) { in Java_android_media_misc_cts_NativeDecoderTest_testPsshNative()
132 size_t numsubsamples = 4; in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative()
135 size_t clearbytes[4] = { 5, 6, 7, 8 }; in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative()
136 size_t encryptedbytes[4] = { 8, 7, 6, 5 }; in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative()
160 size_t sizes[numsubsamples]; in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative()
162 if (memcmp(clearbytes, sizes, sizeof(size_t) * numsubsamples)) { in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative()
167 if (memcmp(encryptedbytes, sizes, sizeof(size_t) * numsubsamples)) { in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_MediaVulkanGpuTest.cpp39 for (size_t i = 0; i < 4; ++i) { in fuzzyMatch()
40 size_t shift = 8 * i; in fuzzyMatch()
128 size_t referenceSize = in loadMediaAndVerifyFrameImport()
129 static_cast<size_t>(env->GetArrayLength(referencePixels)); in loadMediaAndVerifyFrameImport()
136 size_t frame_offset = y * bufferDesc.width + x; in loadMediaAndVerifyFrameImport()
137 size_t reference_offset = y * kTestImageWidth + x; in loadMediaAndVerifyFrameImport()
Dandroid_graphics_cts_AImageDecoderTest.cpp67 auto testEmptyBuffer = [env, outDecoder](void* buffer, size_t length) { in testEmptyCreate()
412 size_t stride = AImageDecoder_getMinimumStride(decoder); in testGetMinimumStride()
450 static bool bitmapsEqual(size_t minStride, int height, in bitmapsEqual()
451 void* pixelsA, size_t strideA, in bitmapsEqual()
452 void* pixelsB, size_t strideB) { in bitmapsEqual()
477 int width, int height, int alphaFlags, size_t minStride, in bitmapsEqual()
478 void* pixelsA, size_t strideA) { in bitmapsEqual()
546 size_t minStride = AImageDecoder_getMinimumStride(decoder); in testDecode()
548 size_t size = minStride * height; in testDecode()
657 size_t minStride = AImageDecoder_getMinimumStride(decoder); in testDecodeStride()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0689/
Dpoc.cpp32 DecoderPointer makeDecoder(const uint8_t *data, size_t size) { in makeDecoder()
48 size_t size = ftell(file); in main()
59 size_t stride = AImageDecoder_getMinimumStride(decoder.get()); in main()
60 size_t pixelSize = height * stride; in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0313/
Dpoc.cpp27 size_t offset = 0; in main()
28 size_t len = sizeof(testCase) / sizeof(uint16_t); in main()

1234567