Home
last modified time | relevance | path

Searched refs:ScopedJavaGlobalRef (Results 1 – 25 of 65) sorted by relevance

123

/aosp_15_r20/external/webrtc/sdk/android/native_api/jni/
H A Dscoped_java_ref.h171 class ScopedJavaGlobalRef : public JavaRef<T> {
175 ScopedJavaGlobalRef() = default;
176 explicit constexpr ScopedJavaGlobalRef(std::nullptr_t) {} in ScopedJavaGlobalRef() function
177 ScopedJavaGlobalRef(JNIEnv* env, const JavaRef<T>& other) in ScopedJavaGlobalRef() function
179 explicit ScopedJavaGlobalRef(const ScopedJavaLocalRef<T>& other) in ScopedJavaGlobalRef() function
180 : ScopedJavaGlobalRef(other.env(), other) {} in ScopedJavaGlobalRef()
181 ScopedJavaGlobalRef(ScopedJavaGlobalRef&& other) in ScopedJavaGlobalRef() function
184 ~ScopedJavaGlobalRef() { in ~ScopedJavaGlobalRef()
189 ScopedJavaGlobalRef(const ScopedJavaGlobalRef&) = delete;
190 ScopedJavaGlobalRef& operator=(const ScopedJavaGlobalRef&) = delete;
/aosp_15_r20/external/cronet/base/android/
H A Dscoped_java_ref_unittest.cc77 ScopedJavaGlobalRef<jstring> global(str); in TEST_F()
89 ScopedJavaGlobalRef<jarray> null_global(nullptr); in TEST_F()
110 ScopedJavaGlobalRef<jstring> str2(global); in TEST_F()
112 ScopedJavaGlobalRef<jstring> str3(std::move(str2)); in TEST_F()
115 ScopedJavaGlobalRef<jstring> str4; in TEST_F()
118 ScopedJavaGlobalRef<jstring> str5; in TEST_F()
140 ScopedJavaGlobalRef<jobject> obj2(global); in TEST_F()
142 ScopedJavaGlobalRef<jobject> obj3(std::move(obj2)); in TEST_F()
145 ScopedJavaGlobalRef<jobject> obj4; in TEST_F()
148 ScopedJavaGlobalRef<jobject> obj5; in TEST_F()
[all …]
H A Djni_utils.cc26 base::flat_map<const char*, ScopedJavaGlobalRef<jobject>> map; in GetSplitClassLoader()
36 ScopedJavaGlobalRef<jobject> class_loader(Java_JNIUtils_getSplitClassLoader( in GetSplitClassLoader()
H A Dscoped_java_ref.h23 using ScopedJavaGlobalRef = jni_zero::ScopedJavaGlobalRef<T>; variable
H A Djni_array_unittest.cc601 std::vector<ScopedJavaGlobalRef<jobject>> objects = { in TEST()
602 ScopedJavaGlobalRef<jobject>(ConvertUTF8ToJavaString(env, "one")), in TEST()
603 ScopedJavaGlobalRef<jobject>(ConvertUTF8ToJavaString(env, "two")), in TEST()
604 ScopedJavaGlobalRef<jobject>(ConvertUTF8ToJavaString(env, "three")), in TEST()
H A Djni_array.h98 base::span<const ScopedJavaGlobalRef<jobject>> v);
107 base::span<const ScopedJavaGlobalRef<jobject>> v,
/aosp_15_r20/out/soong/.intermediates/external/libchrome/libchrome-include/gen/0/external/libchrome/base/android/
Dscoped_java_ref.h238 class ScopedJavaGlobalRef : public JavaRef<T> {
240 constexpr ScopedJavaGlobalRef() {} in ScopedJavaGlobalRef() function
241 constexpr ScopedJavaGlobalRef(std::nullptr_t) {} in ScopedJavaGlobalRef() function
243 ScopedJavaGlobalRef(const ScopedJavaGlobalRef<T>& other) { in ScopedJavaGlobalRef() function
247 ScopedJavaGlobalRef(ScopedJavaGlobalRef<T>&& other) { this->swap(other); } in ScopedJavaGlobalRef() function
249 ScopedJavaGlobalRef(JNIEnv* env, T obj) { this->Reset(env, obj); } in ScopedJavaGlobalRef() function
251 explicit ScopedJavaGlobalRef(const JavaRef<T>& other) { this->Reset(other); } in ScopedJavaGlobalRef() function
253 ~ScopedJavaGlobalRef() { in ~ScopedJavaGlobalRef()
259 void operator=(const ScopedJavaGlobalRef<T>& other) {
263 void operator=(ScopedJavaGlobalRef<T>&& other) { this->swap(other); }
/aosp_15_r20/out/soong/.intermediates/external/libchrome/libchrome-include/gen/gensrcs/external/libchrome/base/android/
Dscoped_java_ref.h238 class ScopedJavaGlobalRef : public JavaRef<T> {
240 constexpr ScopedJavaGlobalRef() {} in ScopedJavaGlobalRef() function
241 constexpr ScopedJavaGlobalRef(std::nullptr_t) {} in ScopedJavaGlobalRef() function
243 ScopedJavaGlobalRef(const ScopedJavaGlobalRef<T>& other) { in ScopedJavaGlobalRef() function
247 ScopedJavaGlobalRef(ScopedJavaGlobalRef<T>&& other) { this->swap(other); } in ScopedJavaGlobalRef() function
249 ScopedJavaGlobalRef(JNIEnv* env, T obj) { this->Reset(env, obj); } in ScopedJavaGlobalRef() function
251 explicit ScopedJavaGlobalRef(const JavaRef<T>& other) { this->Reset(other); } in ScopedJavaGlobalRef() function
253 ~ScopedJavaGlobalRef() { in ~ScopedJavaGlobalRef()
259 void operator=(const ScopedJavaGlobalRef<T>& other) {
263 void operator=(ScopedJavaGlobalRef<T>&& other) { this->swap(other); }
/aosp_15_r20/external/libchrome/base/android/
H A Dscoped_java_ref.h235 class ScopedJavaGlobalRef : public JavaRef<T> {
237 constexpr ScopedJavaGlobalRef() {} in ScopedJavaGlobalRef() function
238 constexpr ScopedJavaGlobalRef(std::nullptr_t) {} in ScopedJavaGlobalRef() function
240 ScopedJavaGlobalRef(const ScopedJavaGlobalRef<T>& other) { in ScopedJavaGlobalRef() function
244 ScopedJavaGlobalRef(ScopedJavaGlobalRef<T>&& other) { this->swap(other); } in ScopedJavaGlobalRef() function
246 ScopedJavaGlobalRef(JNIEnv* env, T obj) { this->Reset(env, obj); } in ScopedJavaGlobalRef() function
248 explicit ScopedJavaGlobalRef(const JavaRef<T>& other) { this->Reset(other); } in ScopedJavaGlobalRef() function
250 ~ScopedJavaGlobalRef() { in ~ScopedJavaGlobalRef()
256 void operator=(const ScopedJavaGlobalRef<T>& other) {
260 void operator=(ScopedJavaGlobalRef<T>&& other) { this->swap(other); }
H A Dscoped_java_ref_unittest.cc71 ScopedJavaGlobalRef<jstring> global(str); in TEST_F()
73 ScopedJavaGlobalRef<jobject> global_obj(str); in TEST_F()
97 ScopedJavaGlobalRef<jstring> global_str(str); in TEST_F()
98 ScopedJavaGlobalRef<jobject> global_obj(global_str); in TEST_F()
124 ScopedJavaGlobalRef<jobject> global_obj2(global_obj); in TEST_F()
H A Djni_android.cc25 base::LazyInstance<base::android::ScopedJavaGlobalRef<jobject>>::Leaky
152 ScopedJavaGlobalRef<jclass> clazz; in LazyGetClass()
/aosp_15_r20/external/cronet/third_party/jni_zero/
H A Djni_zero.h374 class ScopedJavaGlobalRef : public JavaRef<T> {
376 constexpr ScopedJavaGlobalRef() {} in ScopedJavaGlobalRef() function
377 constexpr ScopedJavaGlobalRef(std::nullptr_t) {} in ScopedJavaGlobalRef() function
381 ScopedJavaGlobalRef(const ScopedJavaGlobalRef& other) { Reset(other); } in ScopedJavaGlobalRef() function
386 ScopedJavaGlobalRef(const ScopedJavaGlobalRef<U>& other) { in ScopedJavaGlobalRef() function
392 ScopedJavaGlobalRef(ScopedJavaGlobalRef&& other) { in ScopedJavaGlobalRef() function
399 ScopedJavaGlobalRef(ScopedJavaGlobalRef<U>&& other) { in ScopedJavaGlobalRef() function
404 explicit ScopedJavaGlobalRef(const JavaRef<T>& other) { Reset(other); } in ScopedJavaGlobalRef() function
406 ScopedJavaGlobalRef(JNIEnv* env, const JavaRef<T>& other) { in ScopedJavaGlobalRef() function
412 ScopedJavaGlobalRef(JNIEnv* env, T obj) { Reset(env, obj); } in ScopedJavaGlobalRef() function
[all …]
/aosp_15_r20/external/cronet/components/cronet/android/
H A Dcronet_bidirectional_stream_adapter.h48 base::android::ScopedJavaGlobalRef<jobjectArray> jwrite_buffer_list;
49 base::android::ScopedJavaGlobalRef<jintArray> jwrite_buffer_pos_list;
50 base::android::ScopedJavaGlobalRef<jintArray> jwrite_buffer_limit_list;
176 base::android::ScopedJavaGlobalRef<jobject> owner_;
H A Dio_buffer_with_byte_buffer.h46 base::android::ScopedJavaGlobalRef<jobject> byte_buffer_;
75 base::android::ScopedJavaGlobalRef<jobject> byte_buffer_;
H A Dcronet_url_request_adapter.h154 const base::android::ScopedJavaGlobalRef<jobject>& status_listener_ref,
164 base::android::ScopedJavaGlobalRef<jobject> owner_;
/aosp_15_r20/external/webrtc/sdk/android/src/jni/pc/
H A Dsdp_observer.h38 const ScopedJavaGlobalRef<jobject> j_observer_global_;
51 const ScopedJavaGlobalRef<jobject> j_observer_global_;
63 const ScopedJavaGlobalRef<jobject> j_observer_global_;
H A Dmedia_stream.h31 const ScopedJavaGlobalRef<jobject>& j_media_stream() { in j_media_stream()
45 ScopedJavaGlobalRef<jobject> j_media_stream_;
/aosp_15_r20/external/webrtc/sdk/android/src/jni/
H A Dvideo_frame.cc41 const ScopedJavaGlobalRef<jobject>& video_frame_buffer() const;
67 const ScopedJavaGlobalRef<jobject> j_video_frame_buffer_;
112 const ScopedJavaGlobalRef<jobject> j_video_frame_buffer_;
211 const ScopedJavaGlobalRef<jobject>& AndroidVideoBuffer::video_frame_buffer() in video_frame_buffer()
H A Dandroid_network_monitor.h136 ScopedJavaGlobalRef<jobject> j_application_context_;
137 ScopedJavaGlobalRef<jobject> j_network_monitor_;
186 ScopedJavaGlobalRef<jobject> j_application_context_;
H A Dvideo_encoder_wrapper.h92 const ScopedJavaGlobalRef<jobject> encoder_;
93 const ScopedJavaGlobalRef<jclass> int_array_class_;
/aosp_15_r20/external/libchrome/mojo/public/java/system/
H A Dbase_run_loop.cc44 const base::android::ScopedJavaGlobalRef<jobject>& runnable_ref) { in RunJavaRunnable()
55 base::android::ScopedJavaGlobalRef<jobject> runnable_ref; in JNI_BaseRunLoop_PostDelayedTask()
H A Dwatcher_impl.cc58 base::android::ScopedJavaGlobalRef<jobject> java_watcher_preserver; in OnHandleReady()
69 base::android::ScopedJavaGlobalRef<jobject> java_watcher_;
/aosp_15_r20/external/cronet/base/android/task_scheduler/
H A Dtask_runner_android.cc37 void RunJavaTask(base::android::ScopedJavaGlobalRef<jobject> task, in RunJavaTask()
79 base::android::ScopedJavaGlobalRef<jobject>(task), in PostDelayedTask()
/aosp_15_r20/external/cronet/net/ssl/
H A Dssl_platform_key_android.cc29 using base::android::ScopedJavaGlobalRef;
153 ScopedJavaGlobalRef<jobject> key_;
/aosp_15_r20/external/cronet/net/android/
H A Dnetwork_change_notifier_delegate_android.h212 const base::android::ScopedJavaGlobalRef<jobject>
217 base::android::ScopedJavaGlobalRef<jobject> java_network_active_notifier_;

123