Home
last modified time | relevance | path

Searched full:env (Results 1 – 25 of 2938) sorted by relevance

12345678910>>...118

/external/libmojo/base/android/jni_generator/
DtestConstantsFromJavaP.golden24 #define MotionEvent_clazz(env) g_MotionEvent_clazz
116 static void Java_MotionEvent_finalize(JNIEnv* env, jobject obj) __attribute__
118 static void Java_MotionEvent_finalize(JNIEnv* env, jobject obj) {
120 CHECK_CLAZZ(env, obj,
121 MotionEvent_clazz(env));
125 env, MotionEvent_clazz(env),
130 env->CallVoidMethod(obj,
132 jni_generator::CheckException(env);
140 env, jlong p0,
156 env, jlong p0,
[all …]
DtestCalledByNatives.golden25 #define TestJni_clazz(env) g_TestJni_clazz
28 #define InfoBar_clazz(env) g_InfoBar_clazz
35 static ScopedJavaLocalRef<jobject> Java_TestJni_showConfirmInfoBar(JNIEnv* env,
42 CHECK_CLAZZ(env, obj,
43 TestJni_clazz(env), NULL);
47 env, TestJni_clazz(env),
61 env->CallObjectMethod(obj,
64 jni_generator::CheckException(env);
65 return ScopedJavaLocalRef<jobject>(env, ret);
70 env, jobject obj, JniIntWrapper nativeInfoBar,
[all …]
Dgolden_sample_for_tests_jni.h29 #define InnerStructA_clazz(env) g_InnerStructA_clazz argument
32 #define SampleForTests_clazz(env) g_SampleForTests_clazz argument
35 #define InnerStructB_clazz(env) g_InnerStructB_clazz argument
44 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& jcaller,
49 env, jobject jcaller, in Java_org_chromium_example_jni_1generator_SampleForTests_nativeInit()
51 return Init(env, JavaParamRef<jobject>(env, jcaller), in Java_org_chromium_example_jni_1generator_SampleForTests_nativeInit()
52 JavaParamRef<jstring>(env, param)); in Java_org_chromium_example_jni_1generator_SampleForTests_nativeInit()
57 env, in Java_org_chromium_example_jni_1generator_SampleForTests_nativeDestroy()
61 CHECK_NATIVE_PTR(env, jcaller, native, "Destroy"); in Java_org_chromium_example_jni_1generator_SampleForTests_nativeDestroy()
62 return native->Destroy(env, JavaParamRef<jobject>(env, jcaller)); in Java_org_chromium_example_jni_1generator_SampleForTests_nativeDestroy()
[all …]
DtestFromJavaP.golden24 #define InputStream_clazz(env) g_InputStream_clazz
33 static jint Java_InputStream_available(JNIEnv* env, jobject obj) __attribute__
35 static jint Java_InputStream_available(JNIEnv* env, jobject obj) {
37 CHECK_CLAZZ(env, obj,
38 InputStream_clazz(env), 0);
42 env, InputStream_clazz(env),
48 env->CallIntMethod(obj,
50 jni_generator::CheckException(env);
55 static void Java_InputStream_close(JNIEnv* env, jobject obj) __attribute__
57 static void Java_InputStream_close(JNIEnv* env, jobject obj) {
[all …]
DtestNativeExportsOptionalOption.golden25 #define SampleForTests_clazz(env) base::android::LazyGetClass(env, kSampleForTestsClassPath, &g_Sam…
33 env,
38 CHECK_NATIVE_PTR(env, jcaller, native, "StaticMethod", 0);
39 return native->StaticMethod(env, JavaParamRef<jobject>(env, jcaller), arg1);
45 env,
50 CHECK_NATIVE_PTR(env, jcaller, native, "Method", 0);
51 return native->Method(env, JavaParamRef<jobject>(env, jcaller), arg1);
54 static jint Init(JNIEnv* env, const JavaParamRef<jobject>& jcaller);
59 env, jobject jcaller) {
60 return Init(env, JavaParamRef<jobject>(env, jcaller));
[all …]
DtestNatives.golden24 #define TestJni_clazz(env) g_TestJni_clazz
30 static jint Init(JNIEnv* env, const JavaParamRef<jobject>& jcaller);
32 static jint Java_org_chromium_TestJni_nativeInit(JNIEnv* env, jobject jcaller) {
33 return Init(env, JavaParamRef<jobject>(env, jcaller));
36 static void Java_org_chromium_TestJni_nativeDestroy(JNIEnv* env,
41 CHECK_NATIVE_PTR(env, jcaller, native, "Destroy");
42 return native->Destroy(env, JavaParamRef<jobject>(env, jcaller));
45 static jlong Java_org_chromium_TestJni_nativeAddBookmark(JNIEnv* env,
54 CHECK_NATIVE_PTR(env, jcaller, native, "AddBookmark", 0);
55 return native->AddBookmark(env, JavaParamRef<jobject>(env, jcaller),
[all …]
DtestNativeExportsOption.golden25 #define SampleForTests_clazz(env) base::android::LazyGetClass(env, kSampleForTestsClassPath, &g_Sam…
33 env,
38 CHECK_NATIVE_PTR(env, jcaller, native, "StaticMethod", 0);
39 return native->StaticMethod(env, JavaParamRef<jobject>(env, jcaller), arg1);
45 env,
50 CHECK_NATIVE_PTR(env, jcaller, native, "Method", 0);
51 return native->Method(env, JavaParamRef<jobject>(env, jcaller), arg1);
54 static jint Init(JNIEnv* env, const JavaParamRef<jobject>& jcaller);
59 env, jobject jcaller) {
60 return Init(env, JavaParamRef<jobject>(env, jcaller));
[all …]
/external/libjpeg-turbo/
Dturbojpeg-jni.c43 jclass _exccls=(*env)->FindClass(env, exceptionClass); \
44 if(!_exccls || (*env)->ExceptionCheck(env)) goto bailout; \
45 (*env)->ThrowNew(env, _exccls, msg); \
55 #define bailif0(f) {if(!(f) || (*env)->ExceptionCheck(env)) { \
60 jclass _cls=(*env)->GetObjectClass(env, obj); \
62 if(!_cls || (*env)->ExceptionCheck(env)) goto bailout; \
63 bailif0(_fid=(*env)->GetFieldID(env, _cls, "handle", "J")); \
64 handle=(tjhandle)(size_t)(*env)->GetLongField(env, obj, _fid); \
72 if((jName=(*env)->NewStringUTF(env, property))!=NULL \
73 && (jValue=(*env)->CallStaticObjectMethod(env, cls, mid, jName))!=NULL) \
[all …]
/external/javasqlite/src/main/native/
Dsqlite_jni.c62 JNIEnv *env; /* Java environment for callbacks */ member
93 JNIEnv *env; /* Java environment for callbacks */ member
163 seterr(JNIEnv *env, jobject obj, int err) in seterr() argument
169 (*env)->SetIntField(env, obj, F_SQLite_Database_error_code, v.i); in seterr()
174 setvmerr(JNIEnv *env, jobject obj, int err) in setvmerr() argument
180 (*env)->SetIntField(env, obj, F_SQLite_Vm_error_code, v.i); in setvmerr()
185 setstmterr(JNIEnv *env, jobject obj, int err) in setstmterr() argument
191 (*env)->SetIntField(env, obj, F_SQLite_Stmt_error_code, v.i); in setstmterr()
210 gethandle(JNIEnv *env, jobject obj) in gethandle() argument
214 v.j = (*env)->GetLongField(env, obj, F_SQLite_Database_handle); in gethandle()
[all …]
/external/mesa3d/scons/
Dgallium.py47 def symlink(target, source, env): argument
54 def install(env, source, subdir): argument
55 target_dir = os.path.join(env.Dir('#.').srcnode().abspath, env['build_dir'], subdir)
56 return env.Install(target_dir, source)
58 def install_program(env, source): argument
59 return install(env, source, 'bin')
61 def install_shared_library(env, sources, version = ()): argument
63 install_dir = os.path.join(env.Dir('#.').srcnode().abspath, env['build_dir'])
65 if env['SHLIBSUFFIX'] == '.dll':
66 dlls = env.FindIxes(sources, 'SHLIBPREFIX', 'SHLIBSUFFIX')
[all …]
Dcrossmingw.py53 def find(env): argument
54 if env['machine'] == 'x86_64':
60 if env.WhereIs(prefix + 'gcc') or SCons.Util.WhereIs(prefix + 'gcc'):
65 def shlib_generator(target, source, env, for_signature): argument
68 dll = env.FindIxes(target, 'SHLIBPREFIX', 'SHLIBSUFFIX')
73 implib = env.FindIxes(target, 'LIBPREFIX', 'LIBSUFFIX')
76 def_target = env.FindIxes(target, 'WIN32DEFPREFIX', 'WIN32DEFSUFFIX')
81 def shlib_emitter(target, source, env): argument
82 dll = env.FindIxes(target, 'SHLIBPREFIX', 'SHLIBSUFFIX')
83 no_import_lib = env.get('no_import_lib', 0)
[all …]
Dcustom.py53 def quietCommandLines(env): argument
56 env['ASCOMSTR'] = " Assembling $SOURCE ..."
57 env['ASPPCOMSTR'] = " Assembling $SOURCE ..."
58 env['CCCOMSTR'] = " Compiling $SOURCE ..."
59 env['SHCCCOMSTR'] = " Compiling $SOURCE ..."
60 env['CXXCOMSTR'] = " Compiling $SOURCE ..."
61 env['SHCXXCOMSTR'] = " Compiling $SOURCE ..."
62 env['ARCOMSTR'] = " Archiving $TARGET ..."
63 env['RANLIBCOMSTR'] = " Indexing $TARGET ..."
64 env['LINKCOMSTR'] = " Linking $TARGET ..."
[all …]
/external/jsoncpp/
DSConstruct27 CXX = 'g++' # not quite right, but env is not yet available.
68 env = Environment( ENV = make_environ_vars(),
73 env.Tool( 'sunc++' )
74 env.Tool( 'sunlink' )
75 env.Tool( 'sunar' )
76 env.Append( CCFLAGS = ['-mt'] )
78 env.Tool( 'default' )
79 env.Tool( 'aixcc' )
80 env['CXX'] = 'xlC_r' #scons does not pick-up the correct one !
83 env.Append( CCFLAGS = '-qrtti=all',
[all …]
/external/valgrind/VEX/priv/
Dhost_arm_isel.c129 static HReg lookupIRTemp ( ISelEnv* env, IRTemp tmp ) in lookupIRTemp() argument
132 vassert(tmp < env->n_vregmap); in lookupIRTemp()
133 return env->vregmap[tmp]; in lookupIRTemp()
136 static void lookupIRTemp64 ( HReg* vrHI, HReg* vrLO, ISelEnv* env, IRTemp tmp ) in lookupIRTemp64() argument
139 vassert(tmp < env->n_vregmap); in lookupIRTemp64()
140 vassert(! hregIsInvalid(env->vregmapHI[tmp])); in lookupIRTemp64()
141 *vrLO = env->vregmap[tmp]; in lookupIRTemp64()
142 *vrHI = env->vregmapHI[tmp]; in lookupIRTemp64()
145 static void addInstr ( ISelEnv* env, ARMInstr* instr ) in addInstr() argument
147 addHInstr(env->code, instr); in addInstr()
[all …]
Dhost_mips_isel.c130 static HReg lookupIRTemp(ISelEnv * env, IRTemp tmp) in lookupIRTemp() argument
132 vassert(tmp < env->n_vregmap); in lookupIRTemp()
133 return env->vregmap[tmp]; in lookupIRTemp()
136 static void lookupIRTemp64(HReg * vrHI, HReg * vrLO, ISelEnv * env, IRTemp tmp) in lookupIRTemp64() argument
138 vassert(tmp < env->n_vregmap); in lookupIRTemp64()
139 vassert(! hregIsInvalid(env->vregmapHI[tmp])); in lookupIRTemp64()
140 *vrLO = env->vregmap[tmp]; in lookupIRTemp64()
141 *vrHI = env->vregmapHI[tmp]; in lookupIRTemp64()
145 lookupIRTempPair(HReg * vrHI, HReg * vrLO, ISelEnv * env, IRTemp tmp) in lookupIRTempPair() argument
147 vassert(env->mode64); in lookupIRTempPair()
[all …]
Dhost_ppc_isel.c61 GPR11 if mode64: not used - calls by ptr / env ptr for some langs
302 static HReg lookupIRTemp ( ISelEnv* env, IRTemp tmp ) in lookupIRTemp() argument
305 vassert(tmp < env->n_vregmap); in lookupIRTemp()
306 return env->vregmapLo[tmp]; in lookupIRTemp()
310 ISelEnv* env, IRTemp tmp ) in lookupIRTempPair() argument
313 vassert(tmp < env->n_vregmap); in lookupIRTempPair()
314 vassert(! hregIsInvalid(env->vregmapMedLo[tmp])); in lookupIRTempPair()
315 *vrLO = env->vregmapLo[tmp]; in lookupIRTempPair()
316 *vrHI = env->vregmapMedLo[tmp]; in lookupIRTempPair()
321 HReg* vrLo, ISelEnv* env, IRTemp tmp ) in lookupIRTempQuad() argument
[all …]
Dhost_x86_isel.c193 static HReg lookupIRTemp ( ISelEnv* env, IRTemp tmp ) in lookupIRTemp() argument
196 vassert(tmp < env->n_vregmap); in lookupIRTemp()
197 return env->vregmap[tmp]; in lookupIRTemp()
200 static void lookupIRTemp64 ( HReg* vrHI, HReg* vrLO, ISelEnv* env, IRTemp tmp ) in lookupIRTemp64() argument
203 vassert(tmp < env->n_vregmap); in lookupIRTemp64()
204 vassert(! hregIsInvalid(env->vregmapHI[tmp])); in lookupIRTemp64()
205 *vrLO = env->vregmap[tmp]; in lookupIRTemp64()
206 *vrHI = env->vregmapHI[tmp]; in lookupIRTemp64()
209 static void addInstr ( ISelEnv* env, X86Instr* instr ) in addInstr() argument
211 addHInstr(env->code, instr); in addInstr()
[all …]
Dhost_amd64_isel.c168 static HReg lookupIRTemp ( ISelEnv* env, IRTemp tmp ) in lookupIRTemp() argument
171 vassert(tmp < env->n_vregmap); in lookupIRTemp()
172 return env->vregmap[tmp]; in lookupIRTemp()
176 ISelEnv* env, IRTemp tmp ) in lookupIRTempPair() argument
179 vassert(tmp < env->n_vregmap); in lookupIRTempPair()
180 vassert(! hregIsInvalid(env->vregmapHI[tmp])); in lookupIRTempPair()
181 *vrLO = env->vregmap[tmp]; in lookupIRTempPair()
182 *vrHI = env->vregmapHI[tmp]; in lookupIRTempPair()
185 static void addInstr ( ISelEnv* env, AMD64Instr* instr ) in addInstr() argument
187 addHInstr(env->code, instr); in addInstr()
[all …]
/external/libmojo/base/android/
Djni_array.cc19 size_t SafeGetArrayLength(JNIEnv* env, JavaArrayType jarray) { in SafeGetArrayLength() argument
21 jsize length = env->GetArrayLength(jarray); in SafeGetArrayLength()
28 ScopedJavaLocalRef<jbyteArray> ToJavaByteArray(JNIEnv* env, in ToJavaByteArray() argument
31 jbyteArray byte_array = env->NewByteArray(len); in ToJavaByteArray()
32 CheckException(env); in ToJavaByteArray()
35 env->SetByteArrayRegion( in ToJavaByteArray()
37 CheckException(env); in ToJavaByteArray()
39 return ScopedJavaLocalRef<jbyteArray>(env, byte_array); in ToJavaByteArray()
43 JNIEnv* env, in ToJavaByteArray() argument
45 return ToJavaByteArray(env, bytes.data(), bytes.size()); in ToJavaByteArray()
[all …]
Djni_array_unittest.cc23 JNIEnv* env = AttachCurrentThread(); in TEST() local
24 ScopedJavaLocalRef<jbyteArray> bytes = ToJavaByteArray(env, kBytes, kLen); in TEST()
29 ToJavaByteArray(env, inputVector); in TEST()
34 JavaByteArrayToByteVector(env, bytes.obj(), &vectorFromBytes); in TEST()
35 JavaByteArrayToByteVector(env, bytesFromVector.obj(), &vectorFromVector); in TEST()
42 AppendJavaByteArrayToByteVector(env, bytes.obj(), &vectorFromBytes); in TEST()
49 JNIEnv* env, in CheckIntConversion() argument
55 jsize java_array_len = env->GetArrayLength(ints.obj()); in CheckIntConversion()
60 env->GetIntArrayRegion(ints.obj(), i, 1, &value); in CheckIntConversion()
70 JNIEnv* env = AttachCurrentThread(); in TEST() local
[all …]
/external/vixl/
DSConstruct121 def modifiable_flags_handler(env):
122 env['modifiable_flags'] = \
123 'on' if 'mode' in env and env['mode'] == 'debug' else 'off'
126 def symbols_handler(env):
127 env['symbols'] = 'on' if 'mode' in env and env['mode'] == 'debug' else 'off'
129 def Is32BitHost(env):
130 return env['host_arch'] in ['aarch32', 'i386']
132 def IsAArch64Host(env):
133 return env['host_arch'] == 'aarch64'
135 def CanTargetA32(env):
[all …]
/external/python/cpython2/Lib/bsddb/test/
Dtest_dbenv.py12 self.env = db.DBEnv()
15 self.env.close()
16 del self.env
22 self.env.open(self.homeDir, flags)
23 self.assertEqual(flags, self.env.get_open_flags())
28 self.env.open(self.homeDir, flags)
29 self.assertEqual(flags, self.env.get_open_flags())
34 self.env.set_lk_partitions(i)
35 self.assertEqual(i, self.env.get_lk_partitions())
38 self.assertEqual(None, self.env.get_intermediate_dir_mode())
[all …]
/external/nanopb-c/tests/
DSConstruct17 env = Environment(ENV = os.environ, tools = ['default', 'nanopb'])
20 if 'CC' in ARGUMENTS: env.Replace(CC = ARGUMENTS['CC'])
21 if 'CXX' in ARGUMENTS: env.Replace(CXX = ARGUMENTS['CXX'])
22 if 'CCFLAGS' in ARGUMENTS: env.Append(CCFLAGS = ARGUMENTS['CCFLAGS'])
23 if 'CXXFLAGS' in ARGUMENTS: env.Append(CXXFLAGS = ARGUMENTS['CXXFLAGS'])
26 add_nanopb_builders(env)
29 env.Append(CPPPATH = ["#../", "$COMMON"])
32 env.Append(PROTOCPATH = '#../generator')
35 if not env.GetOption('clean'):
39 oldflags = context.env['CCFLAGS']
[all …]
/external/ltp/testcases/kernel/io/disktest/
Dstats.c55 void print_stats(child_args_t * args, test_env_t * env, statop_t operation) in print_stats() argument
66 if ((curr_time - env->start_time) == 0) in print_stats()
70 hread_time = env->hbeat_stats.rtime; in print_stats()
71 hwrite_time = env->hbeat_stats.wtime; in print_stats()
72 read_time = env->cycle_stats.rtime; in print_stats()
73 write_time = env->cycle_stats.wtime; in print_stats()
74 gr_time = env->global_stats.rtime; in print_stats()
75 gw_time = env->global_stats.wtime; in print_stats()
77 hread_time = ((env->hbeat_stats.rtime * args->rperc) / 100); in print_stats()
78 hwrite_time = ((env->hbeat_stats.wtime * args->wperc) / 100); in print_stats()
[all …]
/external/deqp/framework/platform/android/
DtcuAndroidUtil.cpp87 LocalRef (JNIEnv* env, jobject ref);
101 LocalRef::LocalRef (JNIEnv* env, jobject ref) in LocalRef() argument
102 : m_env(env) in LocalRef()
113 void checkException (JNIEnv* env) in checkException() argument
115 if (env->ExceptionCheck()) in checkException()
117 env->ExceptionDescribe(); in checkException()
118 env->ExceptionClear(); in checkException()
123 jclass findClass (JNIEnv* env, const char* className) in findClass() argument
125 const jclass cls = env->FindClass(className); in findClass()
127 checkException(env); in findClass()
[all …]

12345678910>>...118