/frameworks/base/core/jni/ |
H A D | android_view_KeyCharacterMap.h | 27 extern jobject android_view_KeyCharacterMap_create(JNIEnv* env, int32_t deviceId,
|
H A D | com_android_internal_os_Zygote.cpp | 78 static void RuntimeAbort(JNIEnv* env, int line, const char* msg) { argument 81 env->FatalError(oss.str().c_str()); 168 static void SetGids(JNIEnv* env, jintArray javaGids) { argument 173 ScopedIntArrayRO gids(env, javaGids); 175 RuntimeAbort(env, __LINE__, "Getting gids int array failed"); 179 RuntimeAbort(env, __LINE__, "setgroups failed"); 187 static void SetRLimits(JNIEnv* env, jobjectArray javaRlimits) { argument 195 for (int i = 0; i < env->GetArrayLength(javaRlimits); ++i) { 196 ScopedLocalRef<jobject> javaRlimitObject(env, env 217 EnableKeepCapabilities(JNIEnv* env) argument 224 DropCapabilitiesBoundingSet(JNIEnv* env) argument 238 SetCapabilities(JNIEnv* env, int64_t permitted, int64_t effective) argument 257 SetSchedulerPolicy(JNIEnv* env) argument 362 DetachDescriptors(JNIEnv* env, jintArray fdsToClose) argument 438 ForkAndSpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArray javaGids, jint debug_flags, jobjectArray javaRlimits, jlong permittedCapabilities, jlong effectiveCapabilities, jint mount_external, jstring java_se_info, jstring java_se_name, bool is_system_server, jintArray fdsToClose, jstring instructionSet, jstring dataDir) argument 600 com_android_internal_os_Zygote_nativeForkAndSpecialize( JNIEnv* env, jclass, jint uid, jint gid, jintArray gids, jint debug_flags, jobjectArray rlimits, jint mount_external, jstring se_info, jstring se_name, jintArray fdsToClose, jstring instructionSet, jstring appDataDir) argument 642 com_android_internal_os_Zygote_nativeForkSystemServer( JNIEnv* env, jclass, uid_t uid, gid_t gid, jintArray gids, jint debug_flags, jobjectArray rlimits, jlong permittedCapabilities, jlong effectiveCapabilities) argument 667 com_android_internal_os_Zygote_nativeUnmountStorageOnInit(JNIEnv* env, jclass) argument 687 register_com_android_internal_os_Zygote(JNIEnv* env) argument [all...] |
H A D | android_view_HardwareLayer.cpp | 44 static jboolean android_view_HardwareLayer_prepare(JNIEnv* env, jobject clazz, argument 53 static void android_view_HardwareLayer_setLayerPaint(JNIEnv* env, jobject clazz, argument 62 static void android_view_HardwareLayer_setTransform(JNIEnv* env, jobject clazz, argument 69 static void android_view_HardwareLayer_setSurfaceTexture(JNIEnv* env, jobject clazz, argument 72 sp<GLConsumer> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, surface)); 76 static void android_view_HardwareLayer_updateSurfaceTexture(JNIEnv* env, jobject clazz, argument 97 int register_android_view_HardwareLayer(JNIEnv* env) { argument 98 return RegisterMethodsOrDie(env, kClassPathName, gMethods, NELEM(gMethods));
|
H A D | android_app_NativeActivity.cpp | 130 if (env != NULL && clazz != NULL) { 131 env->DeleteGlobalRef(clazz); 149 nativeWindow = android_view_Surface_getNativeWindow(env, _surface); 225 code->env->CallVoidMethod(code->clazz, gNativeActivityClassInfo.finish); 226 code->messageQueue->raiseAndClearException(code->env, "finish"); 229 code->env->CallVoidMethod(code->clazz, 231 code->messageQueue->raiseAndClearException(code->env, "setWindowFormat"); 234 code->env->CallVoidMethod(code->clazz, 236 code->messageQueue->raiseAndClearException(code->env, "setWindowFlags"); 239 code->env 259 loadNativeCode_native(JNIEnv* env, jobject clazz, jstring path, jstring funcName, jobject messageQueue, jstring internalDataDir, jstring obbDir, jstring externalDataDir, jint sdkVersion, jobject jAssetMgr, jbyteArray savedState, jobject classLoader, jstring libraryPath) argument 367 getDlError_native(JNIEnv* env, jobject clazz) argument 372 unloadNativeCode_native(JNIEnv* env, jobject clazz, jlong handle) argument 384 onStart_native(JNIEnv* env, jobject clazz, jlong handle) argument 398 onResume_native(JNIEnv* env, jobject clazz, jlong handle) argument 412 onSaveInstanceState_native(JNIEnv* env, jobject clazz, jlong handle) argument 441 onPause_native(JNIEnv* env, jobject clazz, jlong handle) argument 455 onStop_native(JNIEnv* env, jobject clazz, jlong handle) argument 469 onConfigurationChanged_native(JNIEnv* env, jobject clazz, jlong handle) argument 483 onLowMemory_native(JNIEnv* env, jobject clazz, jlong handle) argument 497 onWindowFocusChanged_native(JNIEnv* env, jobject clazz, jlong handle, jboolean focused) argument 511 onSurfaceCreated_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface) argument 533 onSurfaceChanged_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface, jint format, jint width, jint height) argument 576 onSurfaceRedrawNeeded_native(JNIEnv* env, jobject clazz, jlong handle) argument 590 onSurfaceDestroyed_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface) argument 606 onInputQueueCreated_native(JNIEnv* env, jobject clazz, jlong handle, jlong queuePtr) argument 621 onInputQueueDestroyed_native(JNIEnv* env, jobject clazz, jlong handle, jlong queuePtr) argument 636 onContentRectChanged_native(JNIEnv* env, jobject clazz, jlong handle, jint x, jint y, jint w, jint h) argument 682 register_android_app_NativeActivity(JNIEnv* env) argument [all...] |
H A D | android_graphics_drawable_AnimatedVectorDrawable.cpp | 39 JNIEnv* env; local 40 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { 43 return env; 46 static AnimationListener* createAnimationListener(JNIEnv* env, jobject finishListener, jint id) { argument 49 AnimationListenerBridge(JNIEnv* env, jobject finishListener, jint id) { argument 50 mFinishListener = env->NewGlobalRef(finishListener); 51 env->GetJavaVM(&mJvm); 63 JNIEnv* env = getEnv(mJvm); local 64 env->CallStaticVoidMethod( 73 JNIEnv* env local 139 setPropertyHolderData(JNIEnv* env, jobject, jlong propertyHolderPtr, jfloatArray srcData, jint length) argument 147 start(JNIEnv* env, jobject, jlong animatorSetPtr, jobject finishListener, jint id) argument 153 reverse(JNIEnv* env, jobject, jlong animatorSetPtr, jobject finishListener, jint id) argument 185 register_android_graphics_drawable_AnimatedVectorDrawable(JNIEnv* env) argument [all...] |
H A D | android_view_InputEventSender.cpp | 52 NativeInputEventSender(JNIEnv* env, 76 status_t receiveFinishedSignals(JNIEnv* env); 80 NativeInputEventSender::NativeInputEventSender(JNIEnv* env, argument 83 mSenderWeakGlobal(env->NewGlobalRef(senderWeak)), 92 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 93 env->DeleteGlobalRef(mSenderWeakGlobal); 175 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 176 status_t status = receiveFinishedSignals(env); 177 mMessageQueue->raiseAndClearException(env, "handleReceiveCallback"); 181 status_t NativeInputEventSender::receiveFinishedSignals(JNIEnv* env) { argument 236 nativeInit(JNIEnv* env, jclass clazz, jobject senderWeak, jobject inputChannelObj, jobject messageQueueObj) argument 265 nativeDispose(JNIEnv* env, jclass clazz, jlong senderPtr) argument 272 nativeSendKeyEvent(JNIEnv* env, jclass clazz, jlong senderPtr, jint seq, jobject eventObj) argument 282 nativeSendMotionEvent(JNIEnv* env, jclass clazz, jlong senderPtr, jint seq, jobject eventObj) argument 305 register_android_view_InputEventSender(JNIEnv* env) argument [all...] |
H A D | android_net_NetUtils.cpp | 52 static void android_net_utils_attachDhcpFilter(JNIEnv *env, jobject clazz, jobject javaFd) argument 83 int fd = jniGetFDFromFileDescriptor(env, javaFd); 85 jniThrowExceptionFmt(env, "java/net/SocketException", 90 static void android_net_utils_attachRaFilter(JNIEnv *env, jobject clazz, jobject javaFd, argument 94 jniThrowExceptionFmt(env, "java/net/SocketException", 121 int fd = jniGetFDFromFileDescriptor(env, javaFd); 123 jniThrowExceptionFmt(env, "java/net/SocketException", 128 static jboolean android_net_utils_bindProcessToNetwork(JNIEnv *env, jobject thiz, jint netId) argument 133 static jint android_net_utils_getBoundNetworkForProcess(JNIEnv *env, jobject thiz) argument 138 static jboolean android_net_utils_bindProcessToNetworkForHostResolution(JNIEnv *env, jobjec argument 144 android_net_utils_bindSocketToNetwork(JNIEnv *env, jobject thiz, jint socket, jint netId) argument 150 android_net_utils_protectFromVpn(JNIEnv *env, jobject thiz, jint socket) argument 155 android_net_utils_queryUserAccess(JNIEnv *env, jobject thiz, jint uid, jint netId) argument 178 register_android_net_NetworkUtils(JNIEnv* env) argument [all...] |
/frameworks/base/include/android_runtime/ |
H A D | android_content_res_Configuration.h | 31 JNIEnv* env, jobject clazz, struct AConfiguration* out);
|
H A D | android_hardware_camera2_CameraMetadata.h | 29 status_t CameraMetadata_getNativeMetadata(JNIEnv* env, jobject thiz,
|
/frameworks/base/media/jni/ |
H A D | android_media_SyncParams.h | 50 void init(JNIEnv *env); 53 void exit(JNIEnv *env); 57 void fillFromJobject(JNIEnv *env, const fields_t& fields, jobject params); 60 jobject asJobject(JNIEnv *env, const fields_t& fields);
|
H A D | android_media_MediaProfiles.cpp | 37 android_media_MediaProfiles_native_init(JNIEnv* /* env */) 48 android_media_MediaProfiles_native_get_num_file_formats(JNIEnv* /* env */, jobject /* thiz */) 55 android_media_MediaProfiles_native_get_file_format(JNIEnv *env, jobject /* thiz */, jint index) argument 61 jniThrowException(env, "java/lang/IllegalArgumentException", "out of array boundary"); 68 android_media_MediaProfiles_native_get_num_video_encoders(JNIEnv* /* env */, jobject /* thiz */) 75 android_media_MediaProfiles_native_get_video_encoder_cap(JNIEnv *env, jobject /* thiz */, argument 82 jniThrowException(env, "java/lang/IllegalArgumentException", "out of array boundary"); 102 jniThrowException(env, "java/lang/RuntimeException", "Error retrieving video encoder capability params"); 107 jclass videoEncoderCapClazz = env->FindClass("android/media/EncoderCapabilities$VideoEncoderCap"); 108 jmethodID videoEncoderCapConstructorMethodID = env 127 android_media_MediaProfiles_native_get_audio_encoder_cap(JNIEnv *env, jobject , jint index) argument 177 android_media_MediaProfiles_native_get_camcorder_profile(JNIEnv *env, jobject , jint id, jint quality) argument 247 android_media_MediaProfiles_native_get_video_decoder_type(JNIEnv *env, jobject , jint index) argument 269 android_media_MediaProfiles_native_get_audio_decoder_type(JNIEnv *env, jobject , jint index) argument 293 android_media_MediaProfiles_native_get_image_encoding_quality_level(JNIEnv *env, jobject , jint cameraId, jint index) argument 348 register_android_media_MediaProfiles(JNIEnv *env) argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | brightness.h | 29 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer);
|
H A D | colorspace.h | 31 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height); 35 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height); 39 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height); 43 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height);
|
H A D | contrast.h | 29 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer);
|
H A D | exposure.h | 29 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer); 33 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer);
|
/frameworks/ml/bordeaux/learning/multiclass_pa/jni/ |
H A D | jni_multiclass_pa.h | 27 Java_android_bordeaux_learning_MulticlassPA_initNativeClassifier(JNIEnv* env, 35 Java_android_bordeaux_learning_MulticlassPA_deleteNativeClassifier(JNIEnv* env, 40 Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample(JNIEnv* env, 48 Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass(JNIEnv* env,
|
/frameworks/native/include/android/ |
H A D | asset_manager_jni.h | 42 AAssetManager* AAssetManager_fromJava(JNIEnv* env, jobject assetManager);
|
H A D | native_window_jni.h | 43 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface);
|
/frameworks/native/cmds/ip-up-vpn/ |
H A D | ip-up-vpn.c | 36 static const char *env(const char *name) { function 80 fprintf(state, "%s %s\n", env("DNS1"), env("DNS2")); 85 const char *interface = env("INTERFACE"); 86 const char *address = env("INTERNAL_ADDR4"); 87 const char *routes = env("SPLIT_INCLUDE_CIDR"); 109 if (set_address(&ifr.ifr_netmask, env("INTERNAL_NETMASK4"))) { 119 fprintf(state, "%s/%s\n", address, env("INTERNAL_CIDR4")); 121 fprintf(state, "%s\n", env("INTERNAL_DNS4_LIST")); 122 fprintf(state, "%s\n", env("DEFAULT_DOMAI [all...] |
/frameworks/base/core/tests/coretests/apks/install_jni_lib/ |
H A D | com_android_frameworks_coretests_JNITest.cpp | 30 int register_com_android_frameworks_coretests_JNITests(JNIEnv* env) { argument 31 return jniRegisterNativeMethods(env, "com/android/frameworks/coretests/JNITests", sMethods,
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_SystemServer.cpp | 28 static void android_server_SystemServer_startSensorService(JNIEnv* /* env */, jobject /* clazz */) { 45 int register_android_server_SystemServer(JNIEnv* env) argument 47 return jniRegisterNativeMethods(env, "com/android/server/SystemServer",
|
H A D | com_android_server_input_InputApplicationHandle.h | 32 jobject getInputApplicationHandleObjLocalRef(JNIEnv* env); 42 JNIEnv* env, jobject inputApplicationHandleObj);
|
H A D | com_android_server_input_InputWindowHandle.h | 33 jobject getInputWindowHandleObjLocalRef(JNIEnv* env); 43 JNIEnv* env, jobject inputWindowHandleObj);
|
/frameworks/base/cmds/hid/jni/ |
H A D | com_android_commands_hid_Device.cpp | 57 static void checkAndClearException(JNIEnv* env, const char* methodName) { argument 58 if (env->ExceptionCheck()) { 60 LOGE_EX(env); 61 env->ExceptionClear(); 65 DeviceCallback::DeviceCallback(JNIEnv* env, jobject callback) : argument 66 mCallbackObject(env->NewGlobalRef(callback)) { } 69 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 70 env->DeleteGlobalRef(mCallbackObject); 74 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 75 env 80 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 176 getData(JNIEnv* env, jbyteArray javaArray, size_t& outSize) argument 186 openDevice(JNIEnv* env, jclass , jstring rawName, jint id, jint vid, jint pid, jbyteArray rawDescriptor, jobject queue, jobject callback) argument 205 sendReport(JNIEnv* env, jclass , jlong ptr,jbyteArray rawReport) argument 230 register_com_android_commands_hid_Device(JNIEnv* env) argument 243 JNIEnv *env = NULL; local [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | PathMeasure.cpp | 55 static jlong create(JNIEnv* env, jobject clazz, jlong pathHandle, argument 67 static void setPath(JNIEnv* env, jobject clazz, jlong pairHandle, argument 81 static jfloat getLength(JNIEnv* env, jobject clazz, jlong pairHandle) { argument 86 static void convertTwoElemFloatArray(JNIEnv* env, jfloatArray array, const SkScalar src[2]) { argument 87 AutoJavaFloatArray autoArray(env, array, 2); 93 static jboolean getPosTan(JNIEnv* env, jobject clazz, jlong pairHandle, jfloat dist, jfloatArray pos, jfloatArray tan) { argument 104 convertTwoElemFloatArray(env, pos, tmpPos); 107 convertTwoElemFloatArray(env, tan, tmpTan); 112 static jboolean getMatrix(JNIEnv* env, jobject clazz, jlong pairHandle, jfloat dist, argument 120 static jboolean getSegment(JNIEnv* env, jobjec argument 128 isClosed(JNIEnv* env, jobject clazz, jlong pairHandle) argument 134 nextContour(JNIEnv* env, jobject clazz, jlong pairHandle) argument 140 destroy(JNIEnv* env, jobject clazz, jlong pairHandle) argument 158 register_android_graphics_PathMeasure(JNIEnv* env) argument [all...] |