Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 1179) sorted by relevance

12345678910>>...48

/external/mesa3d/scons/
Dgallium.py45 def symlink(target, source, env): argument
52 def install(env, source, subdir): argument
53 target_dir = os.path.join(env.Dir('#.').srcnode().abspath, env['build_dir'], subdir)
54 return env.Install(target_dir, source)
56 def install_program(env, source): argument
57 return install(env, source, 'bin')
59 def install_shared_library(env, sources, version = ()): argument
61 install_dir = os.path.join(env.Dir('#.').srcnode().abspath, env['build_dir'])
63 if env['SHLIBSUFFIX'] == '.dll':
64 dlls = env.FindIxes(sources, 'SHLIBPREFIX', 'SHLIBSUFFIX')
[all …]
Dcrossmingw.py66 def find(env): argument
67 if env['machine'] == 'x86_64':
73 if env.WhereIs(prefix + 'gcc') or SCons.Util.WhereIs(prefix + 'gcc'):
78 def shlib_generator(target, source, env, for_signature): argument
81 dll = env.FindIxes(target, 'SHLIBPREFIX', 'SHLIBSUFFIX')
86 implib = env.FindIxes(target, 'LIBPREFIX', 'LIBSUFFIX')
89 def_target = env.FindIxes(target, 'WIN32DEFPREFIX', 'WIN32DEFSUFFIX')
94 def shlib_emitter(target, source, env): argument
95 dll = env.FindIxes(target, 'SHLIBPREFIX', 'SHLIBSUFFIX')
96 no_import_lib = env.get('no_import_lib', 0)
[all …]
Dcustom.py47 def quietCommandLines(env): argument
50 env['ASCOMSTR'] = " Assembling $SOURCE ..."
51 env['ASPPCOMSTR'] = " Assembling $SOURCE ..."
52 env['CCCOMSTR'] = " Compiling $SOURCE ..."
53 env['SHCCCOMSTR'] = " Compiling $SOURCE ..."
54 env['CXXCOMSTR'] = " Compiling $SOURCE ..."
55 env['SHCXXCOMSTR'] = " Compiling $SOURCE ..."
56 env['ARCOMSTR'] = " Archiving $TARGET ..."
57 env['RANLIBCOMSTR'] = " Indexing $TARGET ..."
58 env['LINKCOMSTR'] = " Linking $TARGET ..."
[all …]
/external/libmojo/base/android/jni_generator/
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 …]
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 …]
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 …]
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/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/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/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/valgrind/VEX/priv/
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_ppc_isel.c302 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
323 vassert(!env->mode64); in lookupIRTempQuad()
[all …]
Dhost_mips_isel.c133 static HReg lookupIRTemp(ISelEnv * env, IRTemp tmp) in lookupIRTemp() argument
136 vassert(tmp < env->n_vregmap); in lookupIRTemp()
137 return env->vregmap[tmp]; in lookupIRTemp()
140 static void lookupIRTemp64(HReg * vrHI, HReg * vrLO, ISelEnv * env, IRTemp tmp) in lookupIRTemp64() argument
143 vassert(tmp < env->n_vregmap); in lookupIRTemp64()
144 vassert(! hregIsInvalid(env->vregmapHI[tmp])); in lookupIRTemp64()
145 *vrLO = env->vregmap[tmp]; in lookupIRTemp64()
146 *vrHI = env->vregmapHI[tmp]; in lookupIRTemp64()
150 lookupIRTempPair(HReg * vrHI, HReg * vrLO, ISelEnv * env, IRTemp tmp) in lookupIRTempPair() argument
152 vassert(env->mode64); in lookupIRTempPair()
[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 …]
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_s390_isel.c174 addInstr(ISelEnv *env, s390_insn *insn) in addInstr() argument
176 addHInstr(env->code, insn); in addInstr()
197 lookupIRTemp(ISelEnv *env, IRTemp tmp) in lookupIRTemp() argument
199 vassert(tmp < env->n_vregmap); in lookupIRTemp()
200 vassert(! hregIsInvalid(env->vregmap[tmp])); in lookupIRTemp()
202 return env->vregmap[tmp]; in lookupIRTemp()
208 lookupIRTemp128(HReg *hi, HReg *lo, ISelEnv *env, IRTemp tmp) in lookupIRTemp128() argument
210 vassert(tmp < env->n_vregmap); in lookupIRTemp128()
211 vassert(! hregIsInvalid(env->vregmapHI[tmp])); in lookupIRTemp128()
213 *lo = env->vregmap[tmp]; in lookupIRTemp128()
[all …]
Dhost_arm64_isel.c115 static HReg lookupIRTemp ( ISelEnv* env, IRTemp tmp ) in lookupIRTemp() argument
118 vassert(tmp < env->n_vregmap); in lookupIRTemp()
119 return env->vregmap[tmp]; in lookupIRTemp()
123 ISelEnv* env, IRTemp tmp ) in lookupIRTempPair() argument
126 vassert(tmp < env->n_vregmap); in lookupIRTempPair()
127 vassert(! hregIsInvalid(env->vregmapHI[tmp])); in lookupIRTempPair()
128 *vrLO = env->vregmap[tmp]; in lookupIRTempPair()
129 *vrHI = env->vregmapHI[tmp]; in lookupIRTempPair()
132 static void addInstr ( ISelEnv* env, ARM64Instr* instr ) in addInstr() argument
134 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/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 …]
/external/conscrypt/common/src/jni/main/include/
DErrors.h52 static int jniThrowException(JNIEnv* env, const char* className, const char* msg) { in jniThrowException() argument
53 jclass exceptionClass = env->FindClass(className); in jniThrowException()
61 if (env->ThrowNew(exceptionClass, msg) != JNI_OK) { in jniThrowException()
67 env->DeleteLocalRef(exceptionClass); in jniThrowException()
74 static int jniThrowRuntimeException(JNIEnv* env, const char* msg) { in jniThrowRuntimeException() argument
75 return jniThrowException(env, "java/lang/RuntimeException", msg); in jniThrowRuntimeException()
81 static int jniThrowNullPointerException(JNIEnv* env, const char* msg) { in jniThrowNullPointerException() argument
82 return jniThrowException(env, "java/lang/NullPointerException", msg); in jniThrowNullPointerException()
88 static int jniThrowOutOfMemory(JNIEnv* env, const char* message) { in jniThrowOutOfMemory() argument
89 return jniThrowException(env, "java/lang/OutOfMemoryError", message); in jniThrowOutOfMemory()
[all …]
/external/nanopb-c/tests/site_scons/site_tools/
Dnanopb.py40 def _detect_nanopb(env): argument
42 if env.has_key('NANOPB'):
44 return env['NANOPB']
54 def _detect_protoc(env): argument
56 if env.has_key('PROTOC'):
58 return env['PROTOC']
60 n = _detect_nanopb(env)
61 p1 = os.path.join(n, 'generator-bin', 'protoc' + env['PROGSUFFIX'])
64 return env['ESCAPE'](p1)
66 p = env.WhereIs('protoc')
[all …]
/external/mesa3d/src/gallium/targets/egl-static/
DSConscript6 env = env.Clone()
8 env.Append(CPPPATH = [
20 env.Append(CPPDEFINES = [
28 env.Prepend(LIBS = [
38 if env['llvm']:
39 env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE'])
40 env.Prepend(LIBS = [llvmpipe])
48 if env['platform'] == 'windows':
51 env.Append(LIBS = [
58 env.Prepend(LIBS = [
[all …]

12345678910>>...48