Home
last modified time | relevance | path

Searched refs:JObject (Results 1 – 22 of 22) sorted by relevance

/external/rust/crates/jni/src/wrapper/objects/
Djstring.rs2 objects::JObject,
10 pub struct JString<'a>(JObject<'a>);
13 type Target = JObject<'a>;
20 impl<'a> From<JString<'a>> for JObject<'a> { implementation
21 fn from(other: JString) -> JObject { in from() argument
26 impl<'a> From<JObject<'a>> for JString<'a> {
27 fn from(other: JObject) -> Self { in from()
34 Self(JObject::null()) in default()
45 Self(JObject::from_raw(raw as jobject)) in from_raw()
Djthrowable.rs2 objects::JObject,
10 pub struct JThrowable<'a>(JObject<'a>);
13 type Target = JObject<'a>;
20 impl<'a> From<JThrowable<'a>> for JObject<'a> { implementation
21 fn from(other: JThrowable) -> JObject { in from() argument
26 impl<'a> From<JObject<'a>> for JThrowable<'a> {
27 fn from(other: JObject) -> Self { in from()
34 Self(JObject::null()) in default()
45 Self(JObject::from_raw(raw as jobject)) in from_raw()
Djbytebuffer.rs1 use crate::{objects::JObject, sys::jobject};
7 pub struct JByteBuffer<'a>(JObject<'a>);
10 type Target = JObject<'a>;
17 impl<'a> From<JByteBuffer<'a>> for JObject<'a> { implementation
18 fn from(other: JByteBuffer) -> JObject { in from() argument
23 impl<'a> From<JObject<'a>> for JByteBuffer<'a> {
24 fn from(other: JObject) -> Self { in from()
31 Self(JObject::null()) in default()
42 Self(JObject::from_raw(raw as jobject)) in from_raw()
Djclass.rs2 objects::JObject,
10 pub struct JClass<'a>(JObject<'a>);
13 type Target = JObject<'a>;
20 impl<'a> From<JClass<'a>> for JObject<'a> { implementation
21 fn from(other: JClass) -> JObject { in from() argument
27 impl<'a> From<JObject<'a>> for JClass<'a> {
28 fn from(other: JObject) -> Self { in from()
35 Self(JObject::null()) in default()
46 Self(JObject::from_raw(raw as jobject)) in from_raw()
Djmap.rs3 objects::{AutoLocal, JMethodID, JObject, JValue},
14 internal: JObject<'a>,
23 type Target = JObject<'a>;
30 impl<'a: 'b, 'b> From<JMap<'a, 'b>> for JObject<'a> { implementation
31 fn from(other: JMap<'a, 'b>) -> JObject<'a> { in from()
40 pub fn from_env(env: &'b JNIEnv<'a>, obj: JObject<'a>) -> Result<JMap<'a, 'b>> { in from_env()
66 pub fn get(&self, key: JObject<'a>) -> Result<Option<JObject<'a>>> { in get()
85 pub fn put(&self, key: JObject<'a>, value: JObject<'a>) -> Result<Option<JObject<'a>>> { in put()
104 pub fn remove(&self, key: JObject<'a>) -> Result<Option<JObject<'a>>> { in remove()
199 fn get_next(&self) -> Result<Option<(JObject<'a>, JObject<'a>)>> { in get_next()
[all …]
Dglobal_ref.rs5 use crate::{errors::Result, objects::JObject, sys, JNIEnv, JavaVM};
31 obj: JObject<'static>,
38 impl<'a> From<&'a GlobalRef> for JObject<'a> { implementation
39 fn from(other: &'a GlobalRef) -> JObject<'a> { in from()
60 pub fn as_obj(&self) -> JObject { in as_obj() argument
70 obj: JObject::from_raw(obj), in from_raw()
79 pub fn as_obj(&self) -> JObject { in as_obj() argument
86 fn drop_impl(env: &JNIEnv, global_ref: JObject) -> Result<()> { in drop()
Dauto_local.rs5 use crate::{objects::JObject, JNIEnv};
27 obj: JObject<'a>,
37 pub fn new(env: &'b JNIEnv<'a>, obj: JObject<'a>) -> Self { in new()
48 pub fn forget(self) -> JObject<'a> { in forget()
58 pub fn as_obj<'c>(&self) -> JObject<'c> in as_obj()
76 impl<'a> From<&'a AutoLocal<'a, '_>> for JObject<'a> { implementation
77 fn from(other: &'a AutoLocal) -> JObject<'a> { in from()
Djlist.rs3 objects::{JMethodID, JObject, JValue},
15 internal: JObject<'a>,
25 type Target = JObject<'a>;
32 impl<'a: 'b, 'b> From<JList<'a, 'b>> for JObject<'a> { implementation
33 fn from(other: JList<'a, 'b>) -> JObject<'a> { in from()
42 pub fn from_env(env: &'b JNIEnv<'a>, obj: JObject<'a>) -> Result<JList<'a, 'b>> { in from_env()
64 pub fn get(&self, idx: jint) -> Result<Option<JObject<'a>>> { in get()
82 pub fn add(&self, value: JObject<'a>) -> Result<()> { in add()
95 pub fn insert(&self, idx: jint, value: JObject<'a>) -> Result<()> { in insert()
108 pub fn remove(&self, idx: jint) -> Result<Option<JObject<'a>>> { in remove()
[all …]
Djobject.rs15 pub struct JObject<'a> { struct
20 impl<'a> ::std::ops::Deref for JObject<'a> { argument
28 impl<'a> JObject<'a> { impl
47 pub fn null() -> JObject<'a> { in null()
52 impl<'a> std::default::Default for JObject<'a> { implementation
Dauto_array.rs8 use crate::{errors::*, objects::JObject, sys, JNIEnv};
13 fn get(env: &JNIEnv, obj: JObject, is_copy: &mut jboolean) -> Result<*mut Self>; in get() argument
16 fn release(env: &JNIEnv, obj: JObject, ptr: NonNull<Self>, mode: i32) -> Result<()>; in release() argument
25 fn get(env: &JNIEnv, obj: JObject, is_copy: &mut jboolean) -> Result<*mut Self> {
38 fn release(env: &JNIEnv, obj: JObject, ptr: NonNull<Self>, mode: i32) -> Result<()> {
68 obj: JObject<'a>,
76 pub(crate) fn new(env: &JNIEnv<'a>, obj: JObject<'a>, mode: ReleaseMode) -> Result<Self> { in new()
Dauto_primitive_array.rs5 use crate::{errors::*, objects::JObject, JNIEnv};
17 obj: JObject<'a>,
27 obj: JObject<'a>, in new()
Djvalue.rs6 use crate::{errors::*, objects::JObject, signature::Primitive, sys::*};
13 Object(JObject<'a>),
90 pub fn l(self) -> Result<JObject<'a>> { in l()
170 impl<'a, T: Into<JObject<'a>>> From<T> for JValue<'a> {
176 impl<'a> TryFrom<JValue<'a>> for JObject<'a> { implementation
/external/rust/crates/jni/tests/
Djni_api.rs9 AutoArray, AutoLocal, JByteBuffer, JList, JObject, JString, JThrowable, JValue, ReleaseMode,
98 let obj = JObject::null(); in is_instance_of_null()
111 let ref_from_string = unwrap(&env, env.new_local_ref::<JObject>(string.into())); in is_same_object_diff_references()
136 env.is_same_object(JObject::null(), JObject::null()) in is_not_same_object_null()
184 env.pop_local_frame(JObject::null()) in pop_local_frame_pending_exception()
203 env.pop_local_frame(JObject::null()).unwrap(); in push_local_frame_pending_exception()
215 env.pop_local_frame(JObject::null()).unwrap(); in push_local_frame_too_many_refs()
243 env.with_local_frame(16, || Ok(JObject::null())) in with_local_frame_pending_exception()
308 let obj = AutoLocal::new(&env, unsafe { JObject::from_raw(java_array) }); in java_byte_array_from_slice()
568 let null_obj = JObject::null(); in get_object_class_null_arg()
[all …]
Djava_integers.rs3 use jni::{objects::JObject, objects::JValue};
21 let values_array = unsafe { JObject::from_raw(values_array) }; in test_java_integers()
34 Ok(JObject::null()) in test_java_integers()
Djmap.rs3 use jni::objects::{JMap, JObject};
22 .map(JObject::from) in jmap_push_and_iterate()
/external/rust/crates/jni/src/wrapper/
Djnienv.rs17 JMap, JMethodID, JObject, JStaticFieldID, JStaticMethodID, JString, JThrowable, JValue,
106 pub fn define_class<S>(&self, name: S, loader: JObject<'a>, buf: &[u8]) -> Result<JClass<'a>> in define_class()
116 pub fn define_unnamed_class<S>(&self, loader: JObject<'a>, buf: &[u8]) -> Result<JClass<'a>> in define_unnamed_class()
126 loader: JObject<'a>, in define_class_impl()
196 O: Into<JObject<'a>>, in is_instance_of()
212 O: Into<JObject<'b>>, in is_same_object()
213 T: Into<JObject<'c>>, in is_same_object()
379 O: Into<JObject<'a>>, in new_global_ref()
478 pub fn new_local_ref<'b, O>(&self, obj: O) -> Result<JObject<'a>> in new_local_ref()
480 O: Into<JObject<'b>>, in new_local_ref()
[all …]
Dexecutor.rs3 use crate::{errors::*, objects::JObject, JNIEnv, JavaVM};
78 Ok(JObject::null()) in with_attached_capacity()
/external/rust/crates/jni/benches/
Dapi_calls.rs11 objects::{JClass, JMethodID, JObject, JStaticMethodID, JValue},
42 fn jni_hash_safe(env: &JNIEnv, obj: JObject) -> jint { in jni_hash_safe()
58 ) -> JObject<'e> { in jni_local_date_time_of_safe()
95 fn jni_int_call_unchecked<'m, M>(env: &JNIEnv<'m>, obj: JObject<'m>, method_id: M) -> jint in jni_int_call_unchecked()
109 ) -> JObject<'c> in jni_object_call_static_unchecked()
212 let obj = black_box(JObject::from(s)); in jni_call_object_hash_method_safe()
221 let obj = black_box(JObject::from(s)); in jni_call_object_hash_method_unchecked()
324 env.with_local_frame(LOCAL_FRAME_SIZE, || Ok(JObject::null())) in jni_noop_with_local_frame()
/external/rust/crates/jni/src/wrapper/descriptors/
Dclass_desc.rs4 objects::{AutoLocal, GlobalRef, JClass, JObject},
18 impl<'a, 'b> Desc<'a, JClass<'a>> for JObject<'b> { implementation
Dexception_desc.rs4 objects::{JClass, JObject, JThrowable, JValue},
17 let jmsg: JObject = env.new_string(self.1)?.into(); in lookup()
/external/rust/crates/jni/
DCHANGELOG.md22 - `Default` trait implemented for `JObject`, `JString`, `JClass`, and `JByteBuffer` ([#199](https:/…
40 - The `From` trait implementations converting `jni_sys` types like `jobject` to `JObject` have been…
87 - Ability to pass object wrappers that are convertible to `JObject` as arguments to the majority
91 - Conversion from `Into<JObject>` to `JValue::Object`.
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DInteropClient.cs700 var jobject = JObject.Parse(File.ReadAllText(keyFile)); in GetEmailFromServiceAccountFile()