/cts/tests/tests/graphics/jni/ |
D | android_graphics_fonts_cts_SystemFonts.cpp | 142 void nCloseIterator(JNIEnv*, jclass, jlong ptr) { in nCloseIterator() argument 143 ASystemFontIterator_close(reinterpret_cast<ASystemFontIterator*>(ptr)); in nCloseIterator() 146 jlong nGetNext(JNIEnv*, jclass, jlong ptr) { in nGetNext() argument 148 reinterpret_cast<ASystemFontIterator*>(ptr))); in nGetNext() 151 void nCloseFont(JNIEnv*, jclass, jlong ptr) { in nCloseFont() argument 152 return AFont_close(reinterpret_cast<AFont*>(ptr)); in nCloseFont() 155 jstring nGetFilePath(JNIEnv* env, jclass, jlong ptr) { in nGetFilePath() argument 156 return env->NewStringUTF(AFont_getFontFilePath(reinterpret_cast<AFont*>(ptr))); in nGetFilePath() 159 jint nGetWeight(JNIEnv*, jclass, jlong ptr) { in nGetWeight() argument 160 return AFont_getWeight(reinterpret_cast<AFont*>(ptr)); in nGetWeight() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0450/ |
D | poc.cpp | 48 static void (*real_GKI_freebuf)(void *ptr) = nullptr; 75 void *ptr = nullptr; in GKI_getbuf() local 77 ptr = malloc(size); in GKI_getbuf() 78 memset(ptr, DEFAULT_VALUE, size); in GKI_getbuf() 79 kVulnPtr = ptr; in GKI_getbuf() 82 ptr = real_GKI_getbuf(size); in GKI_getbuf() 84 return ptr; in GKI_getbuf() 87 void GKI_freebuf(void *ptr) { in GKI_freebuf() argument 91 if (ptr == kVulnPtr) { in GKI_freebuf() 92 free(ptr); in GKI_freebuf() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0473/ |
D | poc.cpp | 32 static void (*real_GKI_freebuf)(void *ptr) = nullptr; 38 void *ptr = nullptr; member 73 void *ptr = real_GKI_getpoolbuf(pool_id); in GKI_getpoolbuf() local 75 vulnerablePtr.ptr = ptr; in GKI_getpoolbuf() 77 return ptr; in GKI_getpoolbuf() 80 void GKI_freebuf(void *ptr) { in GKI_freebuf() argument 84 if (ptr == vulnerablePtr.ptr) { in GKI_freebuf() 91 real_GKI_freebuf(ptr); in GKI_freebuf()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/jni/ |
D | alloc_stress_activity.cpp | 30 volatile void *ptr; in Java_com_android_server_cts_device_statsdatom_MemoryHogger_allocate() local 33 ptr = mmap(NULL, s, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in Java_com_android_server_cts_device_statsdatom_MemoryHogger_allocate() 34 if (ptr == MAP_FAILED) { in Java_com_android_server_cts_device_statsdatom_MemoryHogger_allocate() 38 memset((void *)ptr, (int)allocCount >> 10, s); in Java_com_android_server_cts_device_statsdatom_MemoryHogger_allocate() 43 gptr = ptr; in Java_com_android_server_cts_device_statsdatom_MemoryHogger_allocate()
|
/cts/hostsidetests/securitybulletin/securityPatch/includes/ |
D | memutils.c | 174 void *ptr = memalign(sizeof(size_t), (nitems * size)); in calloc() local 175 if (ptr) in calloc() 176 memset(ptr, 0, (nitems * size)); in calloc() 177 return ptr; in calloc() 180 void *realloc(void *ptr, size_t size) { in realloc() argument 186 return real_realloc(ptr, size); in realloc() 189 if (ptr != NULL) { in realloc() 192 if (ptr == s_mem_map[i].mem_ptr) { in realloc() 198 memcpy(temp, ptr, size); in realloc() 200 memcpy(temp, ptr, s_mem_map[i].mem_size); in realloc() [all …]
|
D | memutils_track.c | 113 void free(void *ptr) { in free() argument 117 if (ptr) { in free() 119 if (ptr == s_allocation_list[i].mem_ptr) { in free() 120 real_free(ptr); in free() 127 return real_free(ptr); in free()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2022-20127/ |
D | poc.cpp | 27 static void (*real_GKI_freebuf)(void *ptr) = nullptr; 36 void *ptr = nullptr; member 62 void GKI_freebuf(void *ptr) { in GKI_freebuf() argument 67 if (ptr == vulnerablePtr.ptr) { in GKI_freebuf() 75 real_GKI_freebuf(ptr); in GKI_freebuf() 100 vulnerablePtr.ptr = p_c_apdu; in main()
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | ChoreographerNativeTest.java | 72 private static native boolean nativePrepareChoreographerTests(long ptr, long[] refreshPeriods); in nativePrepareChoreographerTests() argument 73 private static native void nativeTestPostCallbackWithoutDelayEventuallyRunsCallbacks(long ptr); in nativeTestPostCallbackWithoutDelayEventuallyRunsCallbacks() argument 74 private static native void nativeTestPostCallbackWithDelayEventuallyRunsCallbacks(long ptr); in nativeTestPostCallbackWithDelayEventuallyRunsCallbacks() argument 76 long ptr); in nativeTestPostCallback64WithoutDelayEventuallyRunsCallbacks() argument 77 private static native void nativeTestPostCallback64WithDelayEventuallyRunsCallbacks(long ptr); in nativeTestPostCallback64WithDelayEventuallyRunsCallbacks() argument 79 long ptr); in nativeTestPostVsyncCallbackWithoutDelayEventuallyRunsCallbacks() argument 81 long ptr); in nativeTestFrameCallbackDataVsyncIdValid() argument 83 long ptr); in nativeTestFrameCallbackDataDeadlineInFuture() argument 85 long ptr); in nativeTestFrameCallbackDataExpectedPresentTimeInFuture() argument 87 long ptr); in nativeTestPostCallbackMixedWithoutDelayEventuallyRunsCallbacks() argument [all …]
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | NativeSystemFontHelper.java | 161 private static native void nCloseIterator(long ptr); in nCloseIterator() argument 162 private static native long nNext(long ptr); in nNext() argument 163 private static native void nCloseFont(long ptr); in nCloseFont() argument 164 private static native String nGetFilePath(long ptr); in nGetFilePath() argument 165 private static native int nGetWeight(long ptr); in nGetWeight() argument 166 private static native boolean nIsItalic(long ptr); in nIsItalic() argument 167 private static native String nGetLocale(long ptr); in nGetLocale() argument 168 private static native int nGetCollectionIndex(long ptr); in nGetCollectionIndex() argument 169 private static native int nGetAxisCount(long ptr); in nGetAxisCount() argument 170 private static native int nGetAxisTag(long ptr, int index); in nGetAxisTag() argument [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2013/ |
D | poc.cpp | 54 static void (*real_GKI_freebuf)(void* ptr) = nullptr; 68 void GKI_freebuf(void* ptr) { in GKI_freebuf() argument 72 if (ptr == kAllocatedPointers[0] || ptr == kAllocatedPointers[1]) { in GKI_freebuf() 75 real_GKI_freebuf(ptr); in GKI_freebuf() 80 void *ptr = memalign(16, size); in allocate_memory() local 81 memset(ptr, 0x0, size); in allocate_memory() 82 kAllocatedPointers[++allocatedPointersIndex] = ptr; in allocate_memory() 83 return ptr; in allocate_memory()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-9247/ |
D | poc.cpp | 76 char *ptr = (char *) malloc(STACK_SIZE); in main() local 77 if (!ptr) { in main() 82 memset(ptr, INITIAL_VAL, STACK_SIZE); in main() 83 clone(&poc, ptr + STACK_SIZE, CLONE_VM, sTp); in main() 92 free(ptr); in main()
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/util/ |
D | NativeCameraManager.java | 83 private static native void releaseCameraManager(long ptr); in releaseCameraManager() argument 84 private static native String[] getCameraIds(long ptr); in getCameraIds() argument 85 private static native int getDeviceId(long ptr, String cameraId); in getDeviceId() argument 87 long ptr, AvailabilityCallback callback); in registerAvailabilityCallback() argument
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2023-21085/ |
D | poc.cpp | 29 static void (*real_GKI_freebuf)(void *ptr) = nullptr; 48 void GKI_freebuf(void *ptr) { in GKI_freebuf() argument 50 if (ptr == (void *)(buffer + BUFFER_SIZE - OVERFLOWED_VALUE)) { in GKI_freebuf() 56 real_GKI_freebuf(ptr); in GKI_freebuf()
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/util/jni/ |
D | android_virtualdevice_cts_camera_util_NativeCameraManager.cc | 225 CameraManager* ptr = reinterpret_cast<CameraManager*>(cameraManagerPtr); in releaseCameraManager() local 226 if (ptr != nullptr) { in releaseCameraManager() 227 delete ptr; in releaseCameraManager() 232 CameraManager* ptr = reinterpret_cast<CameraManager*>(cameraManagerPtr); in getCameraIds() local 233 if (ptr == nullptr) { in getCameraIds() 236 return toObjectArray(env, ptr->getCameraIds()); in getCameraIds() 240 CameraManager* ptr = reinterpret_cast<CameraManager*>(cameraManagerPtr); in getDeviceId() local 241 if (ptr == nullptr) { in getDeviceId() 244 return ptr->getCameraDeviceId(toNativeString(env, cameraId)); in getDeviceId() 249 CameraManager* ptr = reinterpret_cast<CameraManager*>(cameraManagerPtr); in registerAvailabilityCallback() local [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2024-43768/ |
D | poc.cpp | 32 void* ptr = malloc(item * size); in calloc() local 33 memset(ptr, 0, item * size); in calloc() 34 return ptr; in calloc()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2182/ |
D | poc.cpp | 61 void operator()(Type* ptr) const { in operator ()() 62 Destroyer(ptr); in operator ()() 74 void operator()(uint8_t* ptr) const { in operator ()() 75 OPENSSL_free(ptr); in operator ()()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0006/ |
D | poc.cpp | 38 void* ptr = malloc(size); in GKI_getbuf() local 40 vulnerable_ptr = ptr; in GKI_getbuf() 42 return ptr; in GKI_getbuf()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-39665/ |
D | poc.cpp | 43 void *ptr = memalign(pageSize, pageSize); in malloc() local 44 mprotect(ptr, pageSize, PROT_NONE); in malloc() 45 return ptr; in malloc()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2115/ |
D | poc.cpp | 29 void operator delete(void *ptr) throw() { in operator delete() argument 30 if (ptr == authTokenKey) { in operator delete() 33 if (!ptr) { in operator delete() 34 free(ptr); in operator delete()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0037/ |
D | poc.cpp | 38 static void (*real_GKI_freebuf)(void *ptr) = nullptr; 61 void GKI_freebuf(void *ptr) { in GKI_freebuf() argument 65 free(ptr); in GKI_freebuf()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0038/ |
D | poc.cpp | 38 static void (*real_GKI_freebuf)(void *ptr) = nullptr; 61 void GKI_freebuf(void *ptr) { in GKI_freebuf() argument 65 free(ptr); in GKI_freebuf()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0039/ |
D | poc.cpp | 38 static void (*real_GKI_freebuf)(void *ptr) = nullptr; 61 void GKI_freebuf(void *ptr) { in GKI_freebuf() argument 65 free(ptr); in GKI_freebuf()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2012/ |
D | poc.cpp | 48 void *ptr = malloc(size); in allocate_memory() local 49 if (ptr) { in allocate_memory() 50 memset(ptr, 0x0, size); in allocate_memory() 52 return ptr; in allocate_memory()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0477/ |
D | poc.c | 54 void *ptr = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in main() local 56 gdx2d_pixmap *pixmap = gdx2d_load((unsigned char *) ptr, st.st_size); in main()
|
/cts/common/device-side/bedstead/testapp/tools/index/ |
D | index_testapps.py | 73 def parse_line(manifest_content, ptr, incoming_indentation = -1): argument 74 line = manifest_content[ptr] 79 return ptr, None 81 ptr += 1 84 while (ptr < len(manifest_content)): 85 ptr, next_child = parse_line(manifest_content, ptr, indentation_size) 91 return ptr, XmlTreeLine(line_without_indentation, children)
|