Home
last modified time | relevance | path

Searched refs:jni (Results 1 – 25 of 117) sorted by relevance

12345

/external/webrtc/talk/app/webrtc/java/jni/
Dpeerconnection_jni.cc149 JNIEnv* jni, const std::string& state_class_fragment, int index) { in JavaEnumFromIndex() argument
151 return JavaEnumFromIndex(jni, FindClass(jni, state_class.c_str()), in JavaEnumFromIndex()
156 JNIEnv* jni, jobject j_init) { in JavaDataChannelInitToNative() argument
159 jclass j_init_class = FindClass(jni, "org/webrtc/DataChannel$Init"); in JavaDataChannelInitToNative()
160 jfieldID ordered_id = GetFieldID(jni, j_init_class, "ordered", "Z"); in JavaDataChannelInitToNative()
162 GetFieldID(jni, j_init_class, "maxRetransmitTimeMs", "I"); in JavaDataChannelInitToNative()
164 GetFieldID(jni, j_init_class, "maxRetransmits", "I"); in JavaDataChannelInitToNative()
166 GetFieldID(jni, j_init_class, "protocol", "Ljava/lang/String;"); in JavaDataChannelInitToNative()
167 jfieldID negotiated_id = GetFieldID(jni, j_init_class, "negotiated", "Z"); in JavaDataChannelInitToNative()
168 jfieldID id_id = GetFieldID(jni, j_init_class, "id", "I"); in JavaDataChannelInitToNative()
[all …]
Dclassreferenceholder.cc37 explicit ClassReferenceHolder(JNIEnv* jni);
40 void FreeReferences(JNIEnv* jni);
44 void LoadClass(JNIEnv* jni, const std::string& name);
64 ClassReferenceHolder::ClassReferenceHolder(JNIEnv* jni) { in ClassReferenceHolder() argument
65 LoadClass(jni, "java/nio/ByteBuffer"); in ClassReferenceHolder()
66 LoadClass(jni, "java/util/ArrayList"); in ClassReferenceHolder()
67 LoadClass(jni, "org/webrtc/AudioTrack"); in ClassReferenceHolder()
68 LoadClass(jni, "org/webrtc/DataChannel"); in ClassReferenceHolder()
69 LoadClass(jni, "org/webrtc/DataChannel$Buffer"); in ClassReferenceHolder()
70 LoadClass(jni, "org/webrtc/DataChannel$Init"); in ClassReferenceHolder()
[all …]
Djni_helpers.cc91 JNIEnv* jni = nullptr; in InitGlobalJniVariables() local
92 if (jvm->GetEnv(reinterpret_cast<void**>(&jni), JNI_VERSION_1_6) != JNI_OK) in InitGlobalJniVariables()
118 JNIEnv* jni = GetEnv(); in AttachCurrentThreadIfNeeded() local
119 if (jni) in AttachCurrentThreadIfNeeded()
120 return jni; in AttachCurrentThreadIfNeeded()
138 jni = reinterpret_cast<JNIEnv*>(env); in AttachCurrentThreadIfNeeded()
139 RTC_CHECK(!pthread_setspecific(g_jni_ptr, jni)) << "pthread_setspecific"; in AttachCurrentThreadIfNeeded()
140 return jni; in AttachCurrentThreadIfNeeded()
160 JNIEnv* jni, jclass c, const std::string& name, const char* signature) { in GetMethodID() argument
161 jmethodID m = jni->GetMethodID(c, name.c_str(), signature); in GetMethodID()
[all …]
Dandroidmediadecoder_jni.cc74 JNIEnv* jni, VideoCodecType codecType, jobject render_egl_context);
109 bool DeliverPendingOutputs(JNIEnv* jni, int dequeue_timeout_us);
175 JNIEnv* jni, VideoCodecType codecType, jobject render_egl_context) : in MediaCodecVideoDecoder() argument
183 jni, in MediaCodecVideoDecoder()
184 FindClass(jni, "org/webrtc/MediaCodecVideoDecoder")), in MediaCodecVideoDecoder()
186 jni, in MediaCodecVideoDecoder()
187 jni->NewObject(*j_media_codec_video_decoder_class_, in MediaCodecVideoDecoder()
188 GetMethodID(jni, in MediaCodecVideoDecoder()
192 ScopedLocalRefFrame local_ref_frame(jni); in MediaCodecVideoDecoder()
197 jni, *j_media_codec_video_decoder_class_, "initDecode", in MediaCodecVideoDecoder()
[all …]
Dandroidmediaencoder_jni.cc85 MediaCodecVideoEncoder(JNIEnv* jni,
139 bool EncodeByteBufferOnCodecThread(JNIEnv* jni,
141 bool EncodeTextureOnCodecThread(JNIEnv* jni,
150 int GetOutputBufferInfoIndex(JNIEnv* jni, jobject j_output_buffer_info);
151 jobject GetOutputBufferInfoBuffer(JNIEnv* jni, jobject j_output_buffer_info);
152 bool GetOutputBufferInfoIsKeyFrame(JNIEnv* jni, jobject j_output_buffer_info);
154 JNIEnv* jni, jobject j_output_buffer_info);
158 bool DeliverPendingOutputs(JNIEnv* jni);
250 JNIEnv* jni, VideoCodecType codecType, jobject egl_context) : in MediaCodecVideoEncoder() argument
255 jni, in MediaCodecVideoEncoder()
[all …]
Dandroidvideocapturer_jni.cc41 int AndroidVideoCapturerJni::SetAndroidObjects(JNIEnv* jni, in SetAndroidObjects() argument
44 jni->DeleteGlobalRef(application_context_); in SetAndroidObjects()
46 application_context_ = NewGlobalRef(jni, appliction_context); in SetAndroidObjects()
52 JNIEnv* jni, in AndroidVideoCapturerJni() argument
55 : j_video_capturer_(jni, j_video_capturer), in AndroidVideoCapturerJni()
57 jni, FindClass(jni, "org/webrtc/VideoCapturerAndroid")), in AndroidVideoCapturerJni()
59 jni, in AndroidVideoCapturerJni()
60 FindClass(jni, in AndroidVideoCapturerJni()
63 jni, j_surface_texture_helper)), in AndroidVideoCapturerJni()
71 jni()->CallVoidMethod( in ~AndroidVideoCapturerJni()
[all …]
Djni_helpers.h44 #define CHECK_EXCEPTION(jni) \ argument
45 RTC_CHECK(!jni->ExceptionCheck()) \
46 << (jni->ExceptionDescribe(), jni->ExceptionClear(), "")
73 JNIEnv* jni, jclass c, const std::string& name, const char* signature);
76 JNIEnv* jni, jclass c, const char* name, const char* signature);
78 jfieldID GetFieldID(JNIEnv* jni, jclass c, const char* name,
81 jclass GetObjectClass(JNIEnv* jni, jobject object);
83 jobject GetObjectField(JNIEnv* jni, jobject object, jfieldID id);
85 jstring GetStringField(JNIEnv* jni, jobject object, jfieldID id);
87 jlong GetLongField(JNIEnv* jni, jobject object, jfieldID id);
[all …]
Dandroidnetworkmonitor_jni.cc38 void AndroidNetworkMonitor::SetAndroidContext(JNIEnv* jni, jobject context) { in SetAndroidContext() argument
40 jni->DeleteGlobalRef(application_context_); in SetAndroidContext()
42 application_context_ = NewGlobalRef(jni, context); in SetAndroidContext()
46 : j_network_monitor_class_(jni(), in AndroidNetworkMonitor()
47 FindClass(jni(), "org/webrtc/NetworkMonitor")), in AndroidNetworkMonitor()
49 jni(), in AndroidNetworkMonitor()
50 jni()->CallStaticObjectMethod( in AndroidNetworkMonitor()
53 jni(), in AndroidNetworkMonitor()
59 CHECK_EXCEPTION(jni()) << "Error during NetworkMonitor.init"; in AndroidNetworkMonitor()
65 GetMethodID(jni(), *j_network_monitor_class_, "startMonitoring", "(J)V"); in Start()
[all …]
Dsurfacetexturehelper_jni.cc39 JNIEnv* jni, jobject surface_texture_helper) in SurfaceTextureHelper() argument
40 : j_surface_texture_helper_(jni, surface_texture_helper), in SurfaceTextureHelper()
42 GetMethodID(jni, in SurfaceTextureHelper()
43 FindClass(jni, "org/webrtc/SurfaceTextureHelper"), in SurfaceTextureHelper()
46 CHECK_EXCEPTION(jni) << "error during initialization of SurfaceTextureHelper"; in SurfaceTextureHelper()
53 JNIEnv* jni = AttachCurrentThreadIfNeeded(); in ReturnTextureFrame() local
54 jni->CallVoidMethod(*j_surface_texture_helper_, j_return_texture_method_); in ReturnTextureFrame()
57 jni) << "error during SurfaceTextureHelper.returnTextureFrame"; in ReturnTextureFrame()
Dnative_handle_impl.cc85 NativeHandleImpl::NativeHandleImpl(JNIEnv* jni, in NativeHandleImpl() argument
89 RTC_CHECK_EQ(16, jni->GetArrayLength(j_transform_matrix)); in NativeHandleImpl()
91 jni->GetFloatArrayElements(j_transform_matrix, nullptr); in NativeHandleImpl()
95 jni->ReleaseFloatArrayElements(j_transform_matrix, transform_matrix_ptr, 0); in NativeHandleImpl()
139 JNIEnv* jni = AttachCurrentThreadIfNeeded(); in NativeToI420Buffer() local
140 ScopedLocalRefFrame local_ref_frame(jni); in NativeToI420Buffer()
143 jni, in NativeToI420Buffer()
144 GetObjectClass(jni, surface_texture_helper_), in NativeToI420Buffer()
148 jobject byte_buffer = jni->NewDirectByteBuffer(y_data, size); in NativeToI420Buffer()
151 jfloatArray sampling_matrix = jni->NewFloatArray(16); in NativeToI420Buffer()
[all …]
Dandroidmediacodeccommon.h95 JNIEnv* jni, const std::string& state_class_fragment, int index) { in JavaEnumFromIndex() argument
97 return JavaEnumFromIndex(jni, FindClass(jni, state_class.c_str()), in JavaEnumFromIndex()
103 static inline bool CheckException(JNIEnv* jni) { in CheckException() argument
104 if (jni->ExceptionCheck()) { in CheckException()
106 jni->ExceptionDescribe(); in CheckException()
107 jni->ExceptionClear(); in CheckException()
/external/webrtc/webrtc/modules/utility/source/
Djvm_android.cc40 void LoadClasses(JNIEnv* jni) { in LoadClasses() argument
42 jclass localRef = FindClass(jni, c.name); in LoadClasses()
43 CHECK_EXCEPTION(jni) << "Error during FindClass: " << c.name; in LoadClasses()
45 jclass globalRef = reinterpret_cast<jclass>(jni->NewGlobalRef(localRef)); in LoadClasses()
46 CHECK_EXCEPTION(jni) << "Error during NewGlobalRef: " << c.name; in LoadClasses()
52 void FreeClassReferences(JNIEnv* jni) { in FreeClassReferences() argument
54 jni->DeleteGlobalRef(c.clazz); in FreeClassReferences()
74 JNIEnv* jni = GetEnv(jvm); in AttachCurrentThreadIfNeeded() local
75 if (!jni) { in AttachCurrentThreadIfNeeded()
94 GlobalRef::GlobalRef(JNIEnv* jni, jobject object) in GlobalRef() argument
[all …]
Dhelpers_android.cc49 JNIEnv* jni, jclass c, const char* name, const char* signature) { in GetMethodID() argument
50 jmethodID m = jni->GetMethodID(c, name, signature); in GetMethodID()
51 CHECK_EXCEPTION(jni) << "Error during GetMethodID: " << name << ", " in GetMethodID()
58 JNIEnv* jni, jclass c, const char* name, const char* signature) { in GetStaticMethodID() argument
59 jmethodID m = jni->GetStaticMethodID(c, name, signature); in GetStaticMethodID()
60 CHECK_EXCEPTION(jni) << "Error during GetStaticMethodID: " << name << ", " in GetStaticMethodID()
66 jclass FindClass(JNIEnv* jni, const char* name) { in FindClass() argument
67 jclass c = jni->FindClass(name); in FindClass()
68 CHECK_EXCEPTION(jni) << "Error during FindClass: " << name; in FindClass()
73 jobject NewGlobalRef(JNIEnv* jni, jobject o) { in NewGlobalRef() argument
[all …]
/external/webrtc/webrtc/modules/utility/include/
Dhelpers_android.h19 #define CHECK_EXCEPTION(jni) \ argument
20 RTC_CHECK(!jni->ExceptionCheck()) \
21 << (jni->ExceptionDescribe(), jni->ExceptionClear(), "")
37 JNIEnv* jni, jclass c, const char* name, const char* signature);
40 JNIEnv* jni, jclass c, const char* name, const char* signature);
42 jclass FindClass(JNIEnv* jni, const char* name);
44 jobject NewGlobalRef(JNIEnv* jni, jobject o);
46 void DeleteGlobalRef(JNIEnv* jni, jobject o);
72 ScopedGlobalRef(JNIEnv* jni, T obj) in ScopedGlobalRef() argument
73 : jni_(jni), obj_(static_cast<T>(NewGlobalRef(jni, obj))) {} in ScopedGlobalRef()
Djvm_android.h44 GlobalRef(JNIEnv* jni, jobject object);
60 JavaClass(JNIEnv* jni, jclass clazz) : jni_(jni), j_class_(clazz) {} in JavaClass() argument
76 NativeRegistration(JNIEnv* jni, jclass clazz);
92 explicit JNIEnvironment(JNIEnv* jni);
176 JNIEnv* jni() const { return GetEnv(jvm_); } in jni() function
/external/tensorflow/tensorflow/contrib/makefile/sub_makefiles/android/
DMakefile.in44 tensorflow/contrib/android/jni/run_stats_jni.cc
67 tensorflow/examples/android/jni/imageutils_jni.cc \
68 tensorflow/examples/android/jni/object_tracking/frame_pair.cc \
69 tensorflow/examples/android/jni/object_tracking/image_neon.cc \
70 tensorflow/examples/android/jni/object_tracking/keypoint_detector.cc \
71 tensorflow/examples/android/jni/object_tracking/logging.cc \
72 tensorflow/examples/android/jni/object_tracking/object_detector.cc \
73 tensorflow/examples/android/jni/object_tracking/object_tracker.cc \
74 tensorflow/examples/android/jni/object_tracking/object_tracker_jni.cc \
75 tensorflow/examples/android/jni/object_tracking/optical_flow.cc \
[all …]
/external/toolchain-utils/android_bench_suite/
Dpanorama.diff1 diff --git a/jni/Android.mk b/jni/Android.mk
3 --- a/jni/Android.mk
4 +++ b/jni/Android.mk
101 diff --git a/jni/benchmark.cpp b/jni/benchmark.cpp
105 +++ b/jni/benchmark.cpp
238 diff --git a/jni/feature_mos/src/mosaic/AlignFeatures.cpp b/jni/feature_mos/src/mosaic/AlignFeature…
240 --- a/jni/feature_mos/src/mosaic/AlignFeatures.cpp
241 +++ b/jni/feature_mos/src/mosaic/AlignFeatures.cpp
251 diff --git a/jni/feature_mos/src/mosaic/AlignFeatures.h b/jni/feature_mos/src/mosaic/AlignFeatures.h
253 --- a/jni/feature_mos/src/mosaic/AlignFeatures.h
[all …]
/external/conscrypt/android/
DCMakeLists.txt4 ../common/src/jni/main/cpp/conscrypt/compatibility_close_monitor.cc
5 ../common/src/jni/main/cpp/conscrypt/jniload.cc
6 ../common/src/jni/main/cpp/conscrypt/jniutil.cc
7 ../common/src/jni/main/cpp/conscrypt/native_crypto.cc
8 ../common/src/jni/main/cpp/conscrypt/netutil.cc
9 ../common/src/jni/main/cpp/conscrypt/trace.cc
11 include_directories(../common/src/jni/main/include/
12 ../common/src/jni/unbundled/include/
/external/brotli/java/
DBUILD10 outs = ["jni/jni.h"],
24 outs = ["jni/jni_md.h"],
31 ":jni/jni.h",
32 ":jni/jni_md.h",
34 includes = ["jni"],
/external/tensorflow/tensorflow/lite/java/jni/
DBUILD7 name = "jni",
9 # The Android toolchain makes "jni.h" available in the include path.
10 # For non-Android toolchains, generate jni.h and jni_md.h.
13 ":jni.h",
24 # #include <jni.h>
35 outs = ["jni.h"],
/external/conscrypt/
DAndroid.bp30 // src/jni/
58 "common/src/jni/main/cpp/conscrypt/compatibility_close_monitor.cc",
59 "common/src/jni/main/cpp/conscrypt/jniload.cc",
60 "common/src/jni/main/cpp/conscrypt/jniutil.cc",
61 "common/src/jni/main/cpp/conscrypt/native_crypto.cc",
62 "common/src/jni/main/cpp/conscrypt/netutil.cc",
63 "common/src/jni/main/cpp/conscrypt/trace.cc",
67 "common/src/jni/main/include",
75 name: "conscrypt_unbundled-jni-defaults",
78 "common/src/jni/unbundled/include",
[all …]
/external/toolchain-utils/binary_search_tool/ndk/
DPATCH216 Teapot/app/src/main/jni/TeapotRenderer.cpp | 2 +-
19 diff --git a/Teapot/app/src/main/jni/TeapotRenderer.cpp b/Teapot/app/src/main/jni/TeapotRenderer.cpp
21 --- a/Teapot/app/src/main/jni/TeapotRenderer.cpp
22 +++ b/Teapot/app/src/main/jni/TeapotRenderer.cpp
/external/tensorflow/tensorflow/examples/android/
DBUILD18 LINKER_SCRIPT = "//tensorflow/contrib/android:jni/version_script.lds"
27 "jni/**/*.cc",
28 "jni/**/*.h",
112 "jni/**/*.cc",
113 "jni/**/*.h",
/external/tensorflow/tensorflow/java/src/main/native/
DBUILD22 # The Android toolchain makes "jni.h" available in the include path.
23 # For non-Android toolchains, generate jni.h and jni_md.h.
26 ":jni.h",
51 # #include <jni.h>
62 outs = ["jni.h"],
/external/libchrome/base/android/jni_generator/
DtestTracing.golden14 #include <jni.h>
45 TRACE_EVENT0("jni", "org::chromium_foo::Instance::InstanceMethod"); Instance* native =
56 TRACE_EVENT0("jni", "org::chromium_foo::JNI_Foo_StaticMethod"); return JNI_Foo_StaticMethod(env,
72 TRACE_EVENT0("jni", "org.chromium.foo.Foo.<init>"); jobject ret =
90 TRACE_EVENT0("jni", "org.chromium.foo.Foo.callbackFromNative");

12345