/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 …]
|
D | android_graphics_cts_CameraGpuCtsActivity.cpp | 297 inline CameraFrameRenderer* native(jlong ptr) { in native() argument 298 return reinterpret_cast<CameraFrameRenderer*>(ptr); in native()
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | NativeSystemFontHelper.java | 84 private static native void nCloseIterator(long ptr); in nCloseIterator() argument 85 private static native long nNext(long ptr); in nNext() argument 86 private static native void nCloseFont(long ptr); in nCloseFont() argument 87 private static native String nGetFilePath(long ptr); in nGetFilePath() argument 88 private static native int nGetWeight(long ptr); in nGetWeight() argument 89 private static native boolean nIsItalic(long ptr); in nIsItalic() argument 90 private static native String nGetLocale(long ptr); in nGetLocale() argument 91 private static native int nGetCollectionIndex(long ptr); in nGetCollectionIndex() argument 92 private static native int nGetAxisCount(long ptr); in nGetAxisCount() argument 93 private static native int nGetAxisTag(long ptr, int index); in nGetAxisTag() argument [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ChoreographerNativeTest.java | 37 private static native boolean nativePrepareChoreographerTests(long ptr); in nativePrepareChoreographerTests() argument 38 private static native void nativeTestPostCallbackWithoutDelayEventuallyRunsCallbacks(long ptr); in nativeTestPostCallbackWithoutDelayEventuallyRunsCallbacks() argument 39 private static native void nativeTestPostCallbackWithDelayEventuallyRunsCallbacks(long ptr); in nativeTestPostCallbackWithDelayEventuallyRunsCallbacks() argument 41 long ptr); in nativeTestPostCallback64WithoutDelayEventuallyRunsCallbacks() argument 42 private static native void nativeTestPostCallback64WithDelayEventuallyRunsCallbacks(long ptr); in nativeTestPostCallback64WithDelayEventuallyRunsCallbacks() argument 44 long ptr); in nativeTestPostCallbackMixedWithoutDelayEventuallyRunsCallbacks() argument 46 long ptr); in nativeTestPostCallbackMixedWithDelayEventuallyRunsCallbacks() argument
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | SecurityTestCase.java | 131 String ptr = null; in assertNotKernelPointer() local 133 ptr = getPtrFunction.call(); in assertNotKernelPointer() 134 if (ptr == null) { in assertNotKernelPointer() 137 if (!isKptr(ptr)) { in assertNotKernelPointer() 147 fail("\"" + ptr + "\" is an exposed kernel pointer."); in assertNotKernelPointer() 150 private boolean isKptr(String ptr) { in isKptr() argument 151 Matcher m = Pattern.compile("[0-9a-fA-F]*").matcher(ptr); in isKptr() 160 BigInteger address = new BigInteger(ptr.substring(0, length), RADIX_HEX); in isKptr() 167 BigInteger address = new BigInteger(ptr.substring(0, length), RADIX_HEX); in isKptr()
|
/cts/hostsidetests/statsd/apps/statsdapp/jni/ |
D | alloc_stress_activity.cpp | 40 char *ptr = (char *) malloc(s); in Java_com_android_server_cts_device_statsd_StatsdCtsBackgroundService_cmain() local 41 memset(ptr, (int) allocCount >> 10, s); in Java_com_android_server_cts_device_statsd_StatsdCtsBackgroundService_cmain()
|
/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/tests/tests/os/jni/ |
D | android_os_cts_CpuInstructions.cpp | 87 uint32_t *ptr = &dummy; in swp() local 88 asm volatile ( "swp r0, r0, [%0]" : "+r"(ptr) : : "r0" ); in swp()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-mediadrm-jni.cpp | 248 if (!array.ptr) { in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative() 253 if (memcmp(array.ptr, value, sizeof(value)) != 0) { in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative() 467 crypto = AMediaCrypto_new(&uuid[0], sessionId.ptr, sessionId.length); in playContent() 586 keyStatus.keyId.ptr = keysStatus[i].keyId.ptr; in onKeysChangeListener() 590 ALOGD("key[%zd]: key: %0x, %0x, %0x", i, keyStatus.keyId.ptr[0], keyStatus.keyId.ptr[1], in onKeysChangeListener() 591 keyStatus.keyId.ptr[2]); in onKeysChangeListener() 920 memcpy(sids.at(i).data(), sessionId.ptr, sessionId.length); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testFindSessionIdNative() 921 sessionId.ptr = static_cast<uint8_t *>(sids.at(i).data()); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testFindSessionIdNative()
|
/cts/tests/tests/view/jni/ |
D | android_view_cts_ASurfaceControlTest.cpp | 88 uint32_t* ptr = static_cast<uint32_t*>(data); in fillRegion() local 90 ptr += stride * top; in fillRegion() 94 ptr[x] = color; in fillRegion() 96 ptr += stride; in fillRegion()
|