Home
last modified time | relevance | path

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

12345678910>>...99

/external/libjpeg-turbo/
Dturbojpeg-jni.c43 jclass _exccls=(*env)->FindClass(env, "java/lang/Exception"); \
45 (*env)->ThrowNew(env, _exccls, msg); \
56 jclass _cls=(*env)->GetObjectClass(env, obj); \
59 bailif0(_fid=(*env)->GetFieldID(env, _cls, "handle", "J")); \
60 handle=(tjhandle)(size_t)(*env)->GetLongField(env, obj, _fid); \
68 if((jName=(*env)->NewStringUTF(env, property))!=NULL \
69 && (jValue=(*env)->CallStaticObjectMethod(env, cls, mid, jName))!=NULL) \
71 if((value=(*env)->GetStringUTFChars(env, jValue, 0))!=NULL) \
74 (*env)->ReleaseStringUTFChars(env, jValue, value); \
79 int ProcessSystemProperties(JNIEnv *env) in ProcessSystemProperties() argument
[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.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 …]
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 …]
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 …]
/external/valgrind/VEX/priv/
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_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_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 …]
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 …]
Dhost_tilegx_isel.c119 static HReg lookupIRTemp ( ISelEnv * env, IRTemp tmp ) in lookupIRTemp() argument
122 vassert(tmp < env->n_vregmap); in lookupIRTemp()
123 return env->vregmap[tmp]; in lookupIRTemp()
126 static void addInstr ( ISelEnv * env, TILEGXInstr * instr ) in addInstr() argument
128 addHInstr(env->code, instr); in addInstr()
135 static HReg newVRegI ( ISelEnv * env ) in newVRegI() argument
137 HReg reg = mkHReg(True /*virtual R*/, HRcGPR(), 0, env->vreg_ctr); in newVRegI()
138 env->vreg_ctr++; in newVRegI()
158 static TILEGXRH *iselWordExpr_RH_wrk ( ISelEnv * env, Bool syned, IRExpr * e );
159 static TILEGXRH *iselWordExpr_RH ( ISelEnv * env, Bool syned, IRExpr * e );
[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/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/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/opencv3/modules/java/generator/src/cpp/
DMat.cpp12 static void throwJavaException(JNIEnv *env, const std::exception *e, const char *method) { in throwJavaException() argument
21 je = env->FindClass("org/opencv/core/CvException"); in throwJavaException()
27 if(!je) je = env->FindClass("java/lang/Exception"); in throwJavaException()
28 env->ThrowNew(je, what.c_str()); in throwJavaException()
59 (JNIEnv* env, jclass, jint rows, jint cols, jint type);
62 (JNIEnv* env, jclass, jint rows, jint cols, jint type) in Java_org_opencv_core_Mat_n_1Mat__III() argument
69 throwJavaException(env, &e, method_name); in Java_org_opencv_core_Mat_n_1Mat__III()
71 throwJavaException(env, 0, method_name); in Java_org_opencv_core_Mat_n_1Mat__III()
84 (JNIEnv* env, jclass, jdouble size_width, jdouble size_height, jint type);
87 (JNIEnv* env, jclass, jdouble size_width, jdouble size_height, jint type) in Java_org_opencv_core_Mat_n_1Mat__DDI() argument
[all …]
/external/v8/test/cctest/
Dtest-deoptimization.cc125 LocalContext env; in TEST() local
126 v8::HandleScope scope(env->GetIsolate()); in TEST()
140 CHECK_EQ(1, env->Global() in TEST()
141 ->Get(env.local(), v8_str("count")) in TEST()
143 ->Int32Value(env.local()) in TEST()
145 CHECK(!GetJSFunction(env.local(), "f")->IsOptimized()); in TEST()
160 CHECK_EQ(1, env->Global() in TEST()
161 ->Get(env.local(), v8_str("count")) in TEST()
163 ->Int32Value(env.local()) in TEST()
165 CHECK(!GetJSFunction(env.local(), "f")->IsOptimized()); in TEST()
[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 …]
/external/nanopb-c/tests/site_scons/site_tools/
Dnanopb.py10 myproto = env.NanopbProto("myproto")
13 env.Append(CPPPATH = "$NANOB")
14 myprog = env.Program(["myprog.c", myproto, "$NANOPB/pb_encode.c", "$NANOPB/pb_decode.c"])
22 env.SetDefault(NANOPB = "path/to/nanopb")
27 env.SetDefault(PROTOC = "path/to/protoc")
28 env.SetDefault(PROTOCFLAGS = "--plugin=protoc-gen-nanopb=path/to/protoc-gen-nanopb")
40 def _detect_nanopb(env): argument
42 if env.has_key('NANOPB'):
44 return env['NANOPB']
54 def _detect_protoc(env): argument
[all …]
/external/opencv3/modules/java/src/
Dml.cpp22 static void throwJavaException(JNIEnv *env, const std::exception *e, const char *method) { in throwJavaException() argument
31 je = env->FindClass("org/opencv/core/CvException"); in throwJavaException()
37 if(!je) je = env->FindClass("java/lang/Exception"); in throwJavaException()
38 env->ThrowNew(je, what.c_str()); in throwJavaException()
55 (JNIEnv* env, jclass , jlong self) in Java_org_opencv_ml_EM_getClustersNumber_10() argument
64 throwJavaException(env, &e, method_name); in Java_org_opencv_ml_EM_getClustersNumber_10()
66 throwJavaException(env, 0, method_name); in Java_org_opencv_ml_EM_getClustersNumber_10()
80 (JNIEnv* env, jclass , jlong self, jint val) in Java_org_opencv_ml_EM_setClustersNumber_10() argument
89 throwJavaException(env, &e, method_name); in Java_org_opencv_ml_EM_setClustersNumber_10()
91 throwJavaException(env, 0, method_name); in Java_org_opencv_ml_EM_setClustersNumber_10()
[all …]
Dcore.cpp25 static void throwJavaException(JNIEnv *env, const std::exception *e, const char *method) { in throwJavaException() argument
34 je = env->FindClass("org/opencv/core/CvException"); in throwJavaException()
40 if(!je) je = env->FindClass("java/lang/Exception"); in throwJavaException()
41 env->ThrowNew(je, what.c_str()); in throwJavaException()
58 (JNIEnv* env, jclass ) in Java_org_opencv_core_Core_getTickFrequency_10() argument
67 throwJavaException(env, &e, method_name); in Java_org_opencv_core_Core_getTickFrequency_10()
69 throwJavaException(env, 0, method_name); in Java_org_opencv_core_Core_getTickFrequency_10()
83 (JNIEnv* env, jclass ) in Java_org_opencv_core_Core_getCPUTickCount_10() argument
92 throwJavaException(env, &e, method_name); in Java_org_opencv_core_Core_getCPUTickCount_10()
94 throwJavaException(env, 0, method_name); in Java_org_opencv_core_Core_getCPUTickCount_10()
[all …]
/external/aac/libSBRenc/src/
Dps_encode.cpp179 int i, env; in InitPSData() local
192 for(env=0; env<PS_MAX_ENVELOPES; env++) { in InitPSData()
193 hPsData->iccDiffMode[env] = PS_DELTA_FREQ; in InitPSData()
194 hPsData->iccDiffMode[env] = PS_DELTA_FREQ; in InitPSData()
197 hPsData->iidIdx[env][i] = 0; in InitPSData()
198 hPsData->iccIdx[env][i] = 0; in InitPSData()
352 INT env, band; in processIidData() local
360 for(env=0;env<nEnvelopes; env++) { in processIidData()
361 errIID += quantizeCoef(iid[env], psBands, iidQuant_fx, 7, 15, iidIdxCoarse[env]); in processIidData()
362 errIIDFine += quantizeCoef(iid[env], psBands, iidQuantFine_fx, 15, 31, iidIdxFine[env]); in processIidData()
[all …]
/external/skia/platform_tools/android/apps/sample_app/src/main/jni/
Dcom_skia_SkiaSampleRenderer.cpp67 JNIEnv* env = gActivityGlue.m_env; in attach() local
68 if (!env || !gWindowGlue.m_getMSAASampleCount || !gWindowGlue.m_obj) { in attach()
71 if (env->IsSameObject(gWindowGlue.m_obj, nullptr)) { in attach()
75 info->fSampleCount = env->CallIntMethod(gWindowGlue.m_obj, gWindowGlue.m_getMSAASampleCount); in attach()
96 JNIEnv* env = gActivityGlue.m_env; in onSetTitle() local
97 if (!env) { in onSetTitle()
100 if (env->IsSameObject(gActivityGlue.m_obj, nullptr)) { in onSetTitle()
105 jstring string = env->NewStringUTF(title); in onSetTitle()
106 env->CallVoidMethod(gActivityGlue.m_obj, gActivityGlue.m_setTitle, string); in onSetTitle()
107 env->DeleteLocalRef(string); in onSetTitle()
[all …]
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp88 RegisterNativeMethods(env, jni_class_name, gMethods, arraysize(gMethods))
463 static int jniThrowOutOfMemory(JNIEnv* env, const char* message) { in jniThrowOutOfMemory() argument
464 return jniThrowException(env, "java/lang/OutOfMemoryError", message); in jniThrowOutOfMemory()
470 static int throwBadPaddingException(JNIEnv* env, const char* message) { in throwBadPaddingException() argument
472 return jniThrowException(env, "javax/crypto/BadPaddingException", message); in throwBadPaddingException()
478 static int throwSignatureException(JNIEnv* env, const char* message) { in throwSignatureException() argument
480 return jniThrowException(env, "java/security/SignatureException", message); in throwSignatureException()
486 static int throwInvalidKeyException(JNIEnv* env, const char* message) { in throwInvalidKeyException() argument
488 return jniThrowException(env, "java/security/InvalidKeyException", message); in throwInvalidKeyException()
494 static int throwIllegalBlockSizeException(JNIEnv* env, const char* message) { in throwIllegalBlockSizeException() argument
[all …]

12345678910>>...99