/frameworks/base/core/jni/ |
H A D | android_view_PointerIcon.cpp | 42 jobject android_view_PointerIcon_getSystemIcon(JNIEnv* env, jobject contextObj, int32_t style) { argument 43 jobject pointerIconObj = env->CallStaticObjectMethod(gPointerIconClassInfo.clazz, 45 if (env->ExceptionCheck()) { 47 LOGW_EX(env); 48 env->ExceptionClear(); 54 status_t android_view_PointerIcon_load(JNIEnv* env, jobject pointerIconObj, jobject contextObj, argument 62 jobject loadedPointerIconObj = env->CallObjectMethod(pointerIconObj, 64 if (env->ExceptionCheck() || !loadedPointerIconObj) { 66 LOGW_EX(env); 67 env 91 android_view_PointerIcon_loadSystemIcon(JNIEnv* env, jobject contextObj, int32_t style, PointerIcon* outPointerIcon) argument 125 register_android_view_PointerIcon(JNIEnv* env) argument [all...] |
H A D | android_hardware_UsbDeviceConnection.cpp | 36 struct usb_device* get_device_from_object(JNIEnv* env, jobject connection) argument 38 return (struct usb_device*)env->GetIntField(connection, field_context); 42 android_hardware_UsbDeviceConnection_open(JNIEnv *env, jobject thiz, jstring deviceName, argument 45 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 51 const char *deviceNameStr = env->GetStringUTFChars(deviceName, NULL); 54 env->SetIntField(thiz, field_context, (int)device); 60 env->ReleaseStringUTFChars(deviceName, deviceNameStr); 65 android_hardware_UsbDeviceConnection_close(JNIEnv *env, jobject thiz) argument 68 struct usb_device* device = get_device_from_object(env, thiz); 71 env 76 android_hardware_UsbDeviceConnection_get_fd(JNIEnv *env, jobject thiz) argument 87 android_hardware_UsbDeviceConnection_get_desc(JNIEnv *env, jobject thiz) argument 108 android_hardware_UsbDeviceConnection_claim_interface(JNIEnv *env, jobject thiz, int interfaceID, jboolean force) argument 127 android_hardware_UsbDeviceConnection_release_interface(JNIEnv *env, jobject thiz, int interfaceID) argument 143 android_hardware_UsbDeviceConnection_control_request(JNIEnv *env, jobject thiz, jint requestType, jint request, jint value, jint index, jbyteArray buffer, jint length, jint timeout) argument 172 android_hardware_UsbDeviceConnection_bulk_request(JNIEnv *env, jobject thiz, jint endpoint, jbyteArray buffer, jint length, jint timeout) argument 199 android_hardware_UsbDeviceConnection_request_wait(JNIEnv *env, jobject thiz) argument 215 android_hardware_UsbDeviceConnection_get_serial(JNIEnv *env, jobject thiz) argument 248 register_android_hardware_UsbDeviceConnection(JNIEnv *env) argument [all...] |
H A D | android_util_Log.cpp | 74 static jboolean android_util_Log_isLoggable(JNIEnv* env, jobject clazz, jstring tag, jint level) argument 80 const char* chars = env->GetStringUTFChars(tag, NULL); 91 jniThrowException(env, "java/lang/IllegalArgumentException", buf2); 96 env->ReleaseStringUTFChars(tag, chars); 108 static jint android_util_Log_println_native(JNIEnv* env, jobject clazz, argument 115 jniThrowNullPointerException(env, "println needs a message"); 120 jniThrowNullPointerException(env, "bad bufID"); 125 tag = env->GetStringUTFChars(tagObj, NULL); 126 msg = env->GetStringUTFChars(msgObj, NULL); 131 env 146 register_android_util_Log(JNIEnv* env) argument [all...] |
H A D | android_util_XmlBlock.cpp | 34 static jint android_content_XmlBlock_nativeCreate(JNIEnv* env, jobject clazz, argument 39 jniThrowNullPointerException(env, NULL); 43 jsize bLen = env->GetArrayLength(bArray); 45 jniThrowException(env, "java/lang/IndexOutOfBoundsException", NULL); 49 jbyte* b = env->GetByteArrayElements(bArray, NULL); 51 env->ReleaseByteArrayElements(bArray, b, 0); 54 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); 61 static jint android_content_XmlBlock_nativeGetStringBlock(JNIEnv* env, jobject clazz, argument 66 jniThrowNullPointerException(env, NULL); 73 static jint android_content_XmlBlock_nativeCreateParseState(JNIEnv* env, jobjec argument 93 android_content_XmlBlock_nativeNext(JNIEnv* env, jobject clazz, jint token) argument 125 android_content_XmlBlock_nativeGetNamespace(JNIEnv* env, jobject clazz, jint token) argument 136 android_content_XmlBlock_nativeGetName(JNIEnv* env, jobject clazz, jint token) argument 147 android_content_XmlBlock_nativeGetText(JNIEnv* env, jobject clazz, jint token) argument 158 android_content_XmlBlock_nativeGetLineNumber(JNIEnv* env, jobject clazz, jint token) argument 170 android_content_XmlBlock_nativeGetAttributeCount(JNIEnv* env, jobject clazz, jint token) argument 182 android_content_XmlBlock_nativeGetAttributeNamespace(JNIEnv* env, jobject clazz, jint token, jint idx) argument 194 android_content_XmlBlock_nativeGetAttributeName(JNIEnv* env, jobject clazz, jint token, jint idx) argument 206 android_content_XmlBlock_nativeGetAttributeResource(JNIEnv* env, jobject clazz, jint token, jint idx) argument 218 android_content_XmlBlock_nativeGetAttributeDataType(JNIEnv* env, jobject clazz, jint token, jint idx) argument 230 android_content_XmlBlock_nativeGetAttributeData(JNIEnv* env, jobject clazz, jint token, jint idx) argument 242 android_content_XmlBlock_nativeGetAttributeStringValue(JNIEnv* env, jobject clazz, jint token, jint idx) argument 254 android_content_XmlBlock_nativeGetAttributeIndex(JNIEnv* env, jobject clazz, jint token, jstring ns, jstring name) argument 284 android_content_XmlBlock_nativeGetIdAttribute(JNIEnv* env, jobject clazz, jint token) argument 297 android_content_XmlBlock_nativeGetClassAttribute(JNIEnv* env, jobject clazz, jint token) argument 310 android_content_XmlBlock_nativeGetStyleAttribute(JNIEnv* env, jobject clazz, jint token) argument 334 android_content_XmlBlock_nativeDestroyParseState(JNIEnv* env, jobject clazz, jint token) argument 346 android_content_XmlBlock_nativeDestroy(JNIEnv* env, jobject clazz, jint token) argument 409 register_android_content_XmlBlock(JNIEnv* env) argument [all...] |
H A D | android_graphics_PixelFormat.cpp | 43 JNIEnv* env, jobject clazz, jint format, jobject pixelFormatObject) 70 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); 75 env->SetIntField(pixelFormatObject, offsets.bytesPerPixel, info.bytesPerPixel); 76 env->SetIntField(pixelFormatObject, offsets.bitsPerPixel, info.bitsPerPixel); 82 static void nativeClassInit(JNIEnv* env, jclass clazz); 92 void nativeClassInit(JNIEnv* env, jclass clazz) argument 94 offsets.bytesPerPixel = env->GetFieldID(clazz, "bytesPerPixel", "I"); 95 offsets.bitsPerPixel = env->GetFieldID(clazz, "bitsPerPixel", "I"); 98 int register_android_graphics_PixelFormat(JNIEnv* env) argument 100 return AndroidRuntime::registerNativeMethods(env, 42 android_graphics_getPixelFormatInfo( JNIEnv* env, jobject clazz, jint format, jobject pixelFormatObject) argument [all...] |
H A D | android_os_FileUtils.cpp | 36 jint android_os_FileUtils_setPermissions(JNIEnv* env, jobject clazz, argument 40 const jchar* str = env->GetStringCritical(file, 0); 43 file8 = String8(str, env->GetStringLength(file)); 44 env->ReleaseStringCritical(file, str); 58 jint android_os_FileUtils_getFatVolumeId(JNIEnv* env, jobject clazz, jstring path) argument 61 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); 64 const char *pathStr = env->GetStringUTFChars(path, NULL); 75 env->ReleaseStringUTFChars(path, pathStr); 86 int register_android_os_FileUtils(JNIEnv* env) argument 89 env, kFileUtilsPathNam [all...] |
H A D | android_server_NetworkManagementSocketTagger.cpp | 33 static jint QTagUid_tagSocketFd(JNIEnv* env, jclass, argument 36 int userFd = jniGetFDFromFileDescriptor(env, fileDescriptor); 38 if (env->ExceptionOccurred() != NULL) { 50 static int QTagUid_untagSocketFd(JNIEnv* env, jclass, argument 52 int userFd = jniGetFDFromFileDescriptor(env, fileDescriptor); 54 if (env->ExceptionOccurred() != NULL) { 66 static jint QTagUid_setCounterSet(JNIEnv* env, jclass, argument 76 static jint QTagUid_deleteTagData(JNIEnv* env, jclass, argument 93 int register_android_server_NetworkManagementSocketTagger(JNIEnv* env) { argument 94 return jniRegisterNativeMethods(env, "co [all...] |
H A D | android_util_FloatMath.cpp | 9 static float FloorF(JNIEnv* env, jobject clazz, float x) { argument 13 static float CeilF(JNIEnv* env, jobject clazz, float x) { argument 17 static float SinF(JNIEnv* env, jobject clazz, float x) { argument 21 static float CosF(JNIEnv* env, jobject clazz, float x) { argument 25 static float SqrtF(JNIEnv* env, jobject clazz, float x) { argument 29 static float ExpF(JNIEnv* env, jobject clazz, float x) { argument 33 static float PowF(JNIEnv* env, jobject clazz, float x, float y) { argument 37 static float HypotF(JNIEnv* env, jobject clazz, float x, float y) { argument 53 int register_android_util_FloatMath(JNIEnv* env) argument 55 int result = android::AndroidRuntime::registerNativeMethods(env, [all...] |
H A D | AndroidRuntime.cpp | 52 extern int register_android_os_Binder(JNIEnv* env); 53 extern int register_android_os_Process(JNIEnv* env); 57 extern int register_android_graphics_Camera(JNIEnv* env); 58 extern int register_android_graphics_Graphics(JNIEnv* env); 59 extern int register_android_graphics_Interpolator(JNIEnv* env); 61 extern int register_android_graphics_MaskFilter(JNIEnv* env); 62 extern int register_android_graphics_Movie(JNIEnv* env); 64 extern int register_android_graphics_PathEffect(JNIEnv* env); 65 extern int register_android_graphics_Shader(JNIEnv* env); 66 extern int register_android_graphics_Typeface(JNIEnv* env); 179 doThrow(JNIEnv* env, const char* exc, const char* msg = NULL) argument 188 com_android_internal_os_RuntimeInit_nativeFinishInit(JNIEnv* env, jobject clazz) argument 193 com_android_internal_os_RuntimeInit_nativeZygoteInit(JNIEnv* env, jobject clazz) argument 198 com_android_internal_os_RuntimeInit_nativeSetExitWithoutCleanup(JNIEnv* env, jobject clazz, jboolean exitWithoutCleanup) argument 216 register_com_android_internal_os_RuntimeInit(JNIEnv* env) argument 257 registerNativeMethods(JNIEnv* env, const char* className, const JNINativeMethod* gMethods, int numMethods) argument 266 JNIEnv* env; local 838 JNIEnv* env; local 917 onVmCreated(JNIEnv* env) argument 929 JNIEnv* env; local 991 JNIEnv* env; local 1075 register_jni_procs(const RegJNIRec array[], size_t count, JNIEnv* env) argument 1220 startReg(JNIEnv* env) argument 1259 Java_com_android_internal_util_WithFramework_registerNatives( JNIEnv* env, jclass clazz) argument 1268 Java_LoadClass_registerNatives(JNIEnv* env, jclass clazz) argument [all...] |
H A D | android_media_AudioSystem.cpp | 57 android_media_AudioSystem_muteMicrophone(JNIEnv *env, jobject thiz, jboolean on) argument 63 android_media_AudioSystem_isMicrophoneMuted(JNIEnv *env, jobject thiz) argument 71 android_media_AudioSystem_isStreamActive(JNIEnv *env, jobject thiz, jint stream, jint inPastMs) argument 79 android_media_AudioSystem_isSourceActive(JNIEnv *env, jobject thiz, jint source) argument 87 android_media_AudioSystem_setParameters(JNIEnv *env, jobject thiz, jstring keyValuePairs) argument 89 const jchar* c_keyValuePairs = env->GetStringCritical(keyValuePairs, 0); 92 c_keyValuePairs8 = String8(c_keyValuePairs, env->GetStringLength(keyValuePairs)); 93 env->ReleaseStringCritical(keyValuePairs, c_keyValuePairs); 100 android_media_AudioSystem_getParameters(JNIEnv *env, jobject thiz, jstring keys) argument 102 const jchar* c_keys = env 114 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 139 android_media_AudioSystem_setDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jint state, jstring device_address) argument 150 android_media_AudioSystem_getDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jstring device_address) argument 160 android_media_AudioSystem_setPhoneState(JNIEnv *env, jobject thiz, jint state) argument 166 android_media_AudioSystem_setForceUse(JNIEnv *env, jobject thiz, jint usage, jint config) argument 173 android_media_AudioSystem_getForceUse(JNIEnv *env, jobject thiz, jint usage) argument 179 android_media_AudioSystem_initStreamVolume(JNIEnv *env, jobject thiz, jint stream, jint indexMin, jint indexMax) argument 187 android_media_AudioSystem_setStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint index, jint device) argument 200 android_media_AudioSystem_getStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint device) argument 216 android_media_AudioSystem_setMasterVolume(JNIEnv *env, jobject thiz, jfloat value) argument 222 android_media_AudioSystem_getMasterVolume(JNIEnv *env, jobject thiz) argument 232 android_media_AudioSystem_setMasterMute(JNIEnv *env, jobject thiz, jboolean mute) argument 238 android_media_AudioSystem_getMasterMute(JNIEnv *env, jobject thiz) argument 248 android_media_AudioSystem_getDevicesForStream(JNIEnv *env, jobject thiz, jint stream) argument 254 android_media_AudioSystem_getPrimaryOutputSamplingRate(JNIEnv *env, jobject clazz) argument 260 android_media_AudioSystem_getPrimaryOutputFrameCount(JNIEnv *env, jobject clazz) argument 291 register_android_media_AudioSystem(JNIEnv *env) argument [all...] |
H A D | android_view_MotionEvent.cpp | 66 MotionEvent* android_view_MotionEvent_getNativePtr(JNIEnv* env, jobject eventObj) { argument 71 env->GetIntField(eventObj, gMotionEventClassInfo.mNativePtr)); 74 static void android_view_MotionEvent_setNativePtr(JNIEnv* env, jobject eventObj, argument 76 env->SetIntField(eventObj, gMotionEventClassInfo.mNativePtr, 80 jobject android_view_MotionEvent_obtainAsCopy(JNIEnv* env, const MotionEvent* event) { argument 81 jobject eventObj = env->CallStaticObjectMethod(gMotionEventClassInfo.clazz, 83 if (env->ExceptionCheck() || !eventObj) { 85 LOGE_EX(env); 86 env->ExceptionClear(); 90 MotionEvent* destEvent = android_view_MotionEvent_getNativePtr(env, eventOb 100 android_view_MotionEvent_recycle(JNIEnv* env, jobject eventObj) argument 115 validatePointerCount(JNIEnv* env, jint pointerCount) argument 124 validatePointerPropertiesArray(JNIEnv* env, jobjectArray pointerPropertiesObjArray, size_t pointerCount) argument 140 validatePointerCoordsObjArray(JNIEnv* env, jobjectArray pointerCoordsObjArray, size_t pointerCount) argument 156 validatePointerIndex(JNIEnv* env, jint pointerIndex, size_t pointerCount) argument 165 validateHistoryPos(JNIEnv* env, jint historyPos, size_t historySize) argument 174 validatePointerCoords(JNIEnv* env, jobject pointerCoordsObj) argument 183 validatePointerProperties(JNIEnv* env, jobject pointerPropertiesObj) argument 192 pointerCoordsToNative(JNIEnv* env, jobject pointerCoordsObj, float xOffset, float yOffset, PointerCoords* outRawPointerCoords) argument 236 obtainPackedAxisValuesArray(JNIEnv* env, uint32_t minSize, jobject outPointerCoordsObj) argument 257 pointerCoordsFromNative(JNIEnv* env, const PointerCoords* rawPointerCoords, float xOffset, float yOffset, jobject outPointerCoordsObj) argument 318 pointerPropertiesToNative(JNIEnv* env, jobject pointerPropertiesObj, PointerProperties* outPointerProperties) argument 327 pointerPropertiesFromNative(JNIEnv* env, const PointerProperties* pointerProperties, jobject outPointerPropertiesObj) argument 338 android_view_MotionEvent_nativeInitialize(JNIEnv* env, jclass clazz, jint nativePtr, jint deviceId, jint source, jint action, jint flags, jint edgeFlags, jint metaState, jint buttonState, jfloat xOffset, jfloat yOffset, jfloat xPrecision, jfloat yPrecision, jlong downTimeNanos, jlong eventTimeNanos, jint pointerCount, jobjectArray pointerPropertiesObjArray, jobjectArray pointerCoordsObjArray) argument 390 android_view_MotionEvent_nativeCopy(JNIEnv* env, jclass clazz, jint destNativePtr, jint sourceNativePtr, jboolean keepHistory) argument 401 android_view_MotionEvent_nativeDispose(JNIEnv* env, jclass clazz, jint nativePtr) argument 407 android_view_MotionEvent_nativeAddBatch(JNIEnv* env, jclass clazz, jint nativePtr, jlong eventTimeNanos, jobjectArray pointerCoordsObjArray, jint metaState) argument 433 android_view_MotionEvent_nativeGetDeviceId(JNIEnv* env, jclass clazz, jint nativePtr) argument 439 android_view_MotionEvent_nativeGetSource(JNIEnv* env, jclass clazz, jint nativePtr) argument 445 android_view_MotionEvent_nativeSetSource(JNIEnv* env, jclass clazz, jint nativePtr, jint source) argument 451 android_view_MotionEvent_nativeGetAction(JNIEnv* env, jclass clazz, jint nativePtr) argument 457 android_view_MotionEvent_nativeSetAction(JNIEnv* env, jclass clazz, jint nativePtr, jint action) argument 463 android_view_MotionEvent_nativeIsTouchEvent(JNIEnv* env, jclass clazz, jint nativePtr) argument 469 android_view_MotionEvent_nativeGetFlags(JNIEnv* env, jclass clazz, jint nativePtr) argument 475 android_view_MotionEvent_nativeSetFlags(JNIEnv* env, jclass clazz, jint nativePtr, jint flags) argument 481 android_view_MotionEvent_nativeGetEdgeFlags(JNIEnv* env, jclass clazz, jint nativePtr) argument 487 android_view_MotionEvent_nativeSetEdgeFlags(JNIEnv* env, jclass clazz, jint nativePtr, jint edgeFlags) argument 493 android_view_MotionEvent_nativeGetMetaState(JNIEnv* env, jclass clazz, jint nativePtr) argument 499 android_view_MotionEvent_nativeGetButtonState(JNIEnv* env, jclass clazz, jint nativePtr) argument 505 android_view_MotionEvent_nativeOffsetLocation(JNIEnv* env, jclass clazz, jint nativePtr, jfloat deltaX, jfloat deltaY) argument 511 android_view_MotionEvent_nativeGetXOffset(JNIEnv* env, jclass clazz, jint nativePtr) argument 517 android_view_MotionEvent_nativeGetYOffset(JNIEnv* env, jclass clazz, jint nativePtr) argument 523 android_view_MotionEvent_nativeGetXPrecision(JNIEnv* env, jclass clazz, jint nativePtr) argument 529 android_view_MotionEvent_nativeGetYPrecision(JNIEnv* env, jclass clazz, jint nativePtr) argument 535 android_view_MotionEvent_nativeGetDownTimeNanos(JNIEnv* env, jclass clazz, jint nativePtr) argument 541 android_view_MotionEvent_nativeSetDownTimeNanos(JNIEnv* env, jclass clazz, jint nativePtr, jlong downTimeNanos) argument 547 android_view_MotionEvent_nativeGetPointerCount(JNIEnv* env, jclass clazz, jint nativePtr) argument 553 android_view_MotionEvent_nativeGetPointerId(JNIEnv* env, jclass clazz, jint nativePtr, jint pointerIndex) argument 563 android_view_MotionEvent_nativeGetToolType(JNIEnv* env, jclass clazz, jint nativePtr, jint pointerIndex) argument 573 android_view_MotionEvent_nativeFindPointerIndex(JNIEnv* env, jclass clazz, jint nativePtr, jint pointerId) argument 579 android_view_MotionEvent_nativeGetHistorySize(JNIEnv* env, jclass clazz, jint nativePtr) argument 585 android_view_MotionEvent_nativeGetEventTimeNanos(JNIEnv* env, jclass clazz, jint nativePtr, jint historyPos) argument 599 android_view_MotionEvent_nativeGetRawAxisValue(JNIEnv* env, jclass clazz, jint nativePtr, jint axis, jint pointerIndex, jint historyPos) argument 618 android_view_MotionEvent_nativeGetAxisValue(JNIEnv* env, jclass clazz, jint nativePtr, jint axis, jint pointerIndex, jint historyPos) argument 637 android_view_MotionEvent_nativeGetPointerCoords(JNIEnv* env, jclass clazz, jint nativePtr, jint pointerIndex, jint historyPos, jobject outPointerCoordsObj) argument 660 android_view_MotionEvent_nativeGetPointerProperties(JNIEnv* env, jclass clazz, jint nativePtr, jint pointerIndex, jobject outPointerPropertiesObj) argument 673 android_view_MotionEvent_nativeScale(JNIEnv* env, jclass clazz, jint nativePtr, jfloat scale) argument 679 android_view_MotionEvent_nativeTransform(JNIEnv* env, jclass clazz, jint nativePtr, jobject matrixObj) argument 686 android_view_MotionEvent_nativeReadFromParcel(JNIEnv* env, jclass clazz, jint nativePtr, jobject parcelObj) argument 706 android_view_MotionEvent_nativeWriteToParcel(JNIEnv* env, jclass clazz, jint nativePtr, jobject parcelObj) argument 851 register_android_view_MotionEvent(JNIEnv* env) argument [all...] |
H A D | android_backup_BackupDataInput.cpp | 33 ctor_native(JNIEnv* env, jobject clazz, jobject fileDescriptor) argument 35 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 44 dtor_native(JNIEnv* env, jobject clazz, int r) argument 50 readNextHeader_native(JNIEnv* env, jobject clazz, int r, jobject entity) argument 77 jstring keyStr = env->NewStringUTF(key.string()); 78 env->SetObjectField(entity, s_keyField, keyStr); 79 env->SetIntField(entity, s_dataSizeField, dataSize); 92 readEntityData_native(JNIEnv* env, jobject clazz, int r, jbyteArray data, int offset, int size) argument 97 if (env->GetArrayLength(data) < (size+offset)) { 102 jbyte* dataBytes = env 115 skipEntityData_native(JNIEnv* env, jobject clazz, int r) argument 134 register_android_backup_BackupDataInput(JNIEnv* env) argument [all...] |
H A D | com_android_internal_os_ZygoteInit.cpp | 44 JNIEnv* env, jobject clazz, jint ruid, jint euid) 57 JNIEnv* env, jobject clazz, jint rgid, jint egid) 70 JNIEnv* env, jobject clazz, jint pid, jint pgid) 83 JNIEnv* env, jobject clazz, jint pid) 89 jniThrowIOException(env, errno); 95 static void com_android_internal_os_ZygoteInit_reopenStdio(JNIEnv* env, argument 101 fd = jniGetFDFromFileDescriptor(env, in); 103 if (env->ExceptionOccurred() != NULL) { 111 fd = jniGetFDFromFileDescriptor(env, out); 113 if (env 43 com_android_internal_os_ZygoteInit_setreuid( JNIEnv* env, jobject clazz, jint ruid, jint euid) argument 56 com_android_internal_os_ZygoteInit_setregid( JNIEnv* env, jobject clazz, jint rgid, jint egid) argument 69 com_android_internal_os_ZygoteInit_setpgid( JNIEnv* env, jobject clazz, jint pid, jint pgid) argument 82 com_android_internal_os_ZygoteInit_getpgid( JNIEnv* env, jobject clazz, jint pid) argument 132 com_android_internal_os_ZygoteInit_setCloseOnExec(JNIEnv *env, jobject clazz, jobject descriptor, jboolean flag) argument 166 com_android_internal_os_ZygoteInit_setCapabilities(JNIEnv *env, jobject clazz, jlong permitted, jlong effective) argument 192 com_android_internal_os_ZygoteInit_capgetPermitted(JNIEnv *env, jobject clazz, jint pid) argument 215 com_android_internal_os_ZygoteInit_selectReadable( JNIEnv *env, jobject clazz, jobjectArray fds) argument 282 com_android_internal_os_ZygoteInit_createFileDescriptor( JNIEnv *env, jobject clazz, jint fd) argument 316 register_com_android_internal_os_ZygoteInit(JNIEnv* env) argument [all...] |
H A D | android_media_ToneGenerator.cpp | 41 static jboolean android_media_ToneGenerator_startTone(JNIEnv *env, jobject thiz, jint toneType, jint durationMs) { argument 44 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 47 jniThrowRuntimeException(env, "Method called after release()"); 54 static void android_media_ToneGenerator_stopTone(JNIEnv *env, jobject thiz) { argument 57 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 62 jniThrowRuntimeException(env, "Method called after release()"); 68 static jint android_media_ToneGenerator_getAudioSessionId(JNIEnv *env, jobject thiz) { argument 69 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 72 jniThrowRuntimeException(env, "Method called after release()"); 78 static void android_media_ToneGenerator_release(JNIEnv *env, jobjec argument 88 android_media_ToneGenerator_native_setup(JNIEnv *env, jobject thiz, jint streamType, jint volume) argument 115 android_media_ToneGenerator_native_finalize(JNIEnv *env, jobject thiz) argument 140 register_android_media_ToneGenerator(JNIEnv *env) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_mtp_MtpServer.cpp | 53 extern MtpDatabase* getMtpDatabase(JNIEnv *env, jobject database); 55 static inline MtpServer* getMtpServer(JNIEnv *env, jobject thiz) { argument 56 return (MtpServer*)env->GetIntField(thiz, field_MtpServer_nativeContext); 60 android_mtp_MtpServer_setup(JNIEnv *env, jobject thiz, jobject javaDatabase, jboolean usePtp) argument 64 MtpServer* server = new MtpServer(fd, getMtpDatabase(env, javaDatabase), 66 env->SetIntField(thiz, field_MtpServer_nativeContext, (int)server); 73 android_mtp_MtpServer_run(JNIEnv *env, jobject thiz) argument 75 MtpServer* server = getMtpServer(env, thiz); 83 android_mtp_MtpServer_cleanup(JNIEnv *env, jobject thiz) argument 87 MtpServer* server = getMtpServer(env, thi 97 android_mtp_MtpServer_send_object_added(JNIEnv *env, jobject thiz, jint handle) argument 109 android_mtp_MtpServer_send_object_removed(JNIEnv *env, jobject thiz, jint handle) argument 121 android_mtp_MtpServer_add_storage(JNIEnv *env, jobject thiz, jobject jstorage) argument 153 android_mtp_MtpServer_remove_storage(JNIEnv *env, jobject thiz, jint storageId) argument 184 register_android_mtp_MtpServer(JNIEnv *env) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Region.cpp | 32 static inline SkRegion* GetSkRegion(JNIEnv* env, jobject regionObject) { argument 33 SkRegion* rgn = (SkRegion*)env->GetIntField(regionObject, gRegion_nativeInstanceFieldID); 38 static SkRegion* Region_constructor(JNIEnv* env, jobject) { argument 42 static void Region_destructor(JNIEnv* env, jobject, SkRegion* region) { argument 47 static void Region_setRegion(JNIEnv* env, jobject, SkRegion* dst, const SkRegion* src) { argument 52 static jboolean Region_setRect(JNIEnv* env, jobject, SkRegion* dst, int left, int top, int right, int bottom) { argument 56 static jboolean Region_setPath(JNIEnv* env, jobject, SkRegion* dst, argument 62 static jboolean Region_getBounds(JNIEnv* env, jobject, SkRegion* region, jobject rectBounds) { argument 63 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds); 67 static jboolean Region_getBoundaryPath(JNIEnv* env, jobjec argument 71 Region_op0(JNIEnv* env, jobject, SkRegion* dst, int left, int top, int right, int bottom, int op) argument 78 Region_op1(JNIEnv* env, jobject, SkRegion* dst, jobject rectObject, const SkRegion* region, int op) argument 84 Region_op2(JNIEnv* env, jobject, SkRegion* dst, const SkRegion* region1, const SkRegion* region2, int op) argument 90 Region_isEmpty(JNIEnv* env, jobject region) argument 94 Region_isRect(JNIEnv* env, jobject region) argument 98 Region_isComplex(JNIEnv* env, jobject region) argument 102 Region_contains(JNIEnv* env, jobject region, int x, int y) argument 106 Region_quickContains(JNIEnv* env, jobject region, int left, int top, int right, int bottom) argument 110 Region_quickRejectIIII(JNIEnv* env, jobject region, int left, int top, int right, int bottom) argument 116 Region_quickRejectRgn(JNIEnv* env, jobject region, jobject other) argument 120 Region_translate(JNIEnv* env, jobject region, int x, int y, jobject dst) argument 150 Region_scale(JNIEnv* env, jobject region, jfloat scale, jobject dst) argument 158 Region_toString(JNIEnv* env, jobject clazz, SkRegion* region) argument 170 Region_createFromParcel(JNIEnv* env, jobject clazz, jobject parcel) argument 185 Region_writeToParcel(JNIEnv* env, jobject clazz, const SkRegion* region, jobject parcel) argument 202 Region_equals(JNIEnv* env, jobject clazz, const SkRegion *r1, const SkRegion* r2) argument 220 RegionIter_constructor(JNIEnv* env, jobject, const SkRegion* region) argument 226 RegionIter_destructor(JNIEnv* env, jobject, RgnIterPair* pair) argument 232 RegionIter_next(JNIEnv* env, jobject, RgnIterPair* pair, jobject rectObject) argument 283 register_android_graphics_Region(JNIEnv* env) argument 300 android_graphics_Region_getSkRegion(JNIEnv* env, jobject regionObj) argument [all...] |
H A D | PathEffect.cpp | 14 static void destructor(JNIEnv* env, jobject, SkPathEffect* effect) { argument 18 static SkPathEffect* Compose_constructor(JNIEnv* env, jobject, argument 23 static SkPathEffect* Sum_constructor(JNIEnv* env, jobject, argument 28 static SkPathEffect* Dash_constructor(JNIEnv* env, jobject, argument 30 AutoJavaFloatArray autoInterval(env, intervalArray); 42 static SkPathEffect* OneD_constructor(JNIEnv* env, jobject, argument 49 static SkPathEffect* Corner_constructor(JNIEnv* env, jobject, float radius){ argument 53 static SkPathEffect* Discrete_constructor(JNIEnv* env, jobject, argument 93 #define REG(env, name, array) \ 94 result = android::AndroidRuntime::registerNativeMethods(env, nam 98 register_android_graphics_PathEffect(JNIEnv* env) argument [all...] |
H A D | BitmapRegionDecoder.cpp | 73 static jobject doBuildTileIndex(JNIEnv* env, SkStream* stream) { argument 77 doThrowIOE(env, "Image format not supported"); 81 JavaPixelAllocator *javaAllocator = new JavaPixelAllocator(env); 89 doThrowIOE(env, msg); 95 return GraphicsJNI::createBitmapRegionDecoder(env, bm); 98 static jobject nativeNewInstanceFromByteArray(JNIEnv* env, jobject, jbyteArray byteArray, argument 104 AutoJavaByteArray ar(env, byteArray); 106 return doBuildTileIndex(env, stream); 109 static jobject nativeNewInstanceFromFileDescriptor(JNIEnv* env, jobject clazz, argument 111 NPE_CHECK_RETURN_ZERO(env, fileDescripto 150 nativeNewInstanceFromStream(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jboolean isShareable) argument 166 nativeNewInstanceFromAsset(JNIEnv* env, jobject clazz, jint native_asset, jboolean isShareable) argument 183 nativeDecodeRegion(JNIEnv* env, jobject, SkBitmapRegionDecoder *brd, int start_x, int start_y, int width, int height, jobject options) argument 263 nativeGetHeight(JNIEnv* env, jobject, SkBitmapRegionDecoder *brd) argument 267 nativeGetWidth(JNIEnv* env, jobject, SkBitmapRegionDecoder *brd) argument 271 nativeClean(JNIEnv* env, jobject, SkBitmapRegionDecoder *brd) argument 313 register_android_graphics_BitmapRegionDecoder(JNIEnv* env) argument [all...] |
H A D | ColorFilter.cpp | 35 static void finalizer(JNIEnv* env, jobject clazz, SkColorFilter* obj, SkiaColorFilter* f) { argument 47 static SkiaColorFilter* glCreatePorterDuffFilter(JNIEnv* env, jobject, SkColorFilter *skFilter, argument 56 static SkiaColorFilter* glCreateLightingFilter(JNIEnv* env, jobject, SkColorFilter *skFilter, argument 65 static SkiaColorFilter* glCreateColorMatrixFilter(JNIEnv* env, jobject, SkColorFilter *skFilter, argument 68 AutoJavaFloatArray autoArray(env, jarray, 20); 89 static SkColorFilter* CreatePorterDuffFilter(JNIEnv* env, jobject, jint srcColor, argument 94 static SkColorFilter* CreateLightingFilter(JNIEnv* env, jobject, jint mul, jint add) { argument 98 static SkColorFilter* CreateColorMatrixFilter(JNIEnv* env, jobject, jfloatArray jarray) { argument 99 AutoJavaFloatArray autoArray(env, jarray, 20); 133 #define REG(env, nam 138 register_android_graphics_ColorFilter(JNIEnv* env) argument [all...] |
/frameworks/base/media/jni/soundpool/ |
H A D | android_media_SoundPool.cpp | 36 static inline SoundPool* MusterSoundPool(JNIEnv *env, jobject thiz) { argument 37 return (SoundPool*)env->GetIntField(thiz, fields.mNativeContext); 42 android_media_SoundPool_load_URL(JNIEnv *env, jobject thiz, jstring path, jint priority) argument 45 SoundPool *ap = MusterSoundPool(env, thiz); 47 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); 50 const char* s = env->GetStringUTFChars(path, NULL); 52 env->ReleaseStringUTFChars(path, s); 57 android_media_SoundPool_load_FD(JNIEnv *env, jobject thiz, jobject fileDescriptor, argument 61 SoundPool *ap = MusterSoundPool(env, thiz); 63 return ap->load(jniGetFDFromFileDescriptor(env, fileDescripto 68 android_media_SoundPool_unload(JNIEnv *env, jobject thiz, jint sampleID) argument 76 android_media_SoundPool_play(JNIEnv *env, jobject thiz, jint sampleID, jfloat leftVolume, jfloat rightVolume, jint priority, jint loop, jfloat rate) argument 87 android_media_SoundPool_pause(JNIEnv *env, jobject thiz, jint channelID) argument 96 android_media_SoundPool_resume(JNIEnv *env, jobject thiz, jint channelID) argument 105 android_media_SoundPool_autoPause(JNIEnv *env, jobject thiz) argument 114 android_media_SoundPool_autoResume(JNIEnv *env, jobject thiz) argument 123 android_media_SoundPool_stop(JNIEnv *env, jobject thiz, jint channelID) argument 132 android_media_SoundPool_setVolume(JNIEnv *env, jobject thiz, jint channelID, float leftVolume, float rightVolume) argument 142 android_media_SoundPool_setPriority(JNIEnv *env, jobject thiz, jint channelID, int priority) argument 152 android_media_SoundPool_setLoop(JNIEnv *env, jobject thiz, jint channelID, int loop) argument 162 android_media_SoundPool_setRate(JNIEnv *env, jobject thiz, jint channelID, float rate) argument 174 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 179 android_media_SoundPool_native_setup(JNIEnv *env, jobject thiz, jobject weakRef, jint maxChannels, jint streamType, jint srcQuality) argument 197 android_media_SoundPool_release(JNIEnv *env, jobject thiz) argument 286 JNIEnv* env = NULL; local [all...] |
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_native_frame.cpp | 35 jboolean Java_android_filterfw_core_NativeFrame_nativeAllocate(JNIEnv* env, argument 38 return ToJBool(WrapObjectInJava(new NativeFrame(size), env, thiz, true)); 41 jboolean Java_android_filterfw_core_NativeFrame_nativeDeallocate(JNIEnv* env, jobject thiz) { argument 42 return ToJBool(DeleteNativeObject<NativeFrame>(env, thiz)); 53 jboolean Java_android_filterfw_core_NativeFrame_setNativeData(JNIEnv* env, argument 58 NativeFrame* frame = ConvertFromJava<NativeFrame>(env, thiz); 60 jbyte* bytes = env->GetByteArrayElements(data, NULL); 65 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT); 72 jbyteArray Java_android_filterfw_core_NativeFrame_getNativeData(JNIEnv* env, argument 75 NativeFrame* frame = ConvertFromJava<NativeFrame>(env, thi 87 Java_android_filterfw_core_NativeFrame_getNativeBuffer(JNIEnv* env, jobject thiz, jobject buffer) argument 98 Java_android_filterfw_core_NativeFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints) argument 116 Java_android_filterfw_core_NativeFrame_getNativeInts(JNIEnv* env, jobject thiz, jint size) argument 132 Java_android_filterfw_core_NativeFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray floats) argument 150 Java_android_filterfw_core_NativeFrame_getNativeFloats(JNIEnv* env, jobject thiz, jint size) argument 166 Java_android_filterfw_core_NativeFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument 216 Java_android_filterfw_core_NativeFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument 268 Java_android_filterfw_core_NativeFrame_getNativeCapacity(JNIEnv* env, jobject thiz) argument 273 Java_android_filterfw_core_NativeFrame_nativeCopyFromNative(JNIEnv* env, jobject thiz, jobject frame) argument 284 Java_android_filterfw_core_NativeFrame_nativeCopyFromGL(JNIEnv* env, jobject thiz, jobject frame) argument [all...] |
H A D | jni_gl_frame.h | 27 Java_android_filterfw_core_GLFrame_nativeAllocate(JNIEnv* env, 34 Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture(JNIEnv* env, 42 Java_android_filterfw_core_GLFrame_nativeAllocateWithFbo(JNIEnv* env, 50 Java_android_filterfw_core_GLFrame_nativeAllocateExternal(JNIEnv* env, 55 Java_android_filterfw_core_GLFrame_nativeDeallocate(JNIEnv* env, jobject thiz); 58 Java_android_filterfw_core_GLFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints); 61 Java_android_filterfw_core_GLFrame_getNativeInts(JNIEnv* env, jobject thiz); 64 Java_android_filterfw_core_GLFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray ints); 67 Java_android_filterfw_core_GLFrame_getNativeFloats(JNIEnv* env, jobject thiz); 70 Java_android_filterfw_core_GLFrame_setNativeData(JNIEnv* env, [all...] |
H A D | jni_vertex_frame.h | 27 Java_android_filterfw_core_VertexFrame_nativeAllocate(JNIEnv* env, jobject thiz, jint size); 30 Java_android_filterfw_core_VertexFrame_nativeDeallocate(JNIEnv* env, jobject thiz); 33 Java_android_filterfw_core_VertexFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints); 36 Java_android_filterfw_core_VertexFrame_setNativeFloats(JNIEnv* env, 41 Java_android_filterfw_core_VertexFrame_setNativeData(JNIEnv* env, 48 Java_android_filterfw_core_VertexFrame_getNativeVboId(JNIEnv* env, jobject thiz);
|
/frameworks/base/services/jni/ |
H A D | com_android_server_input_InputWindowHandle.cpp | 70 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 71 env->DeleteWeakGlobalRef(mObjWeak); 74 jobject NativeInputWindowHandle::getInputWindowHandleObjLocalRef(JNIEnv* env) { argument 75 return env->NewLocalRef(mObjWeak); 79 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 80 jobject obj = env->NewLocalRef(mObjWeak); 90 jobject inputChannelObj = env->GetObjectField(obj, 93 mInfo->inputChannel = android_view_InputChannel_getInputChannel(env, inputChannelObj); 94 env->DeleteLocalRef(inputChannelObj); 99 jstring nameObj = jstring(env 165 android_server_InputWindowHandle_getHandle( JNIEnv* env, jobject inputWindowHandleObj) argument 196 android_server_InputWindowHandle_nativeDispose(JNIEnv* env, jobject obj) argument 223 register_android_server_InputWindowHandle(JNIEnv* env) argument [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | DdmConnection.cpp | 33 JNIEnv* env; local 62 jint (*registerNatives)(JNIEnv* env, jclass clazz); 71 if (JNI_CreateJavaVM(&vm, &env, &args) == 0) { 76 if (registerNatives(env, 0) == 0) { 78 startClass = env->FindClass("android/ddm/DdmHandleAppName"); 80 startMeth = env->GetStaticMethodID(startClass, 83 jstring str = env->NewStringUTF(name); 84 env->CallStaticVoidMethod(startClass, startMeth, str, getuid()); 85 env->DeleteLocalRef(str); 91 startClass = env [all...] |