/external/libmojo/base/android/jni_generator/ |
D | testConstantsFromJavaP.golden | 24 #define MotionEvent_clazz(env) base::android::LazyGetClass(env, kMotionEventClassPath, &g_MotionEve… 116 static void Java_MotionEvent_finalize(JNIEnv* env, const 118 static void Java_MotionEvent_finalize(JNIEnv* env, const 120 CHECK_CLAZZ(env, obj.obj(), 121 MotionEvent_clazz(env)); 125 env, MotionEvent_clazz(env), 130 env->CallVoidMethod(obj.obj(), 132 jni_generator::CheckException(env); 139 env, jlong p0, 155 env, jlong p0, [all …]
|
D | testCalledByNatives.golden | 25 #define TestJni_clazz(env) base::android::LazyGetClass(env, kTestJniClassPath, &g_TestJni_clazz) 28 #define InfoBar_clazz(env) base::android::LazyGetClass(env, kInfoBarClassPath, &g_InfoBar_clazz) 36 Java_TestJni_showConfirmInfoBar(JNIEnv* env, const 42 CHECK_CLAZZ(env, obj.obj(), 43 TestJni_clazz(env), NULL); 47 env, TestJni_clazz(env), 60 env->CallObjectMethod(obj.obj(), 63 jni_generator::CheckException(env); 64 return base::android::ScopedJavaLocalRef<jobject>(env, ret); 69 Java_TestJni_showAutoLoginInfoBar(JNIEnv* env, const [all …]
|
D | testFromJavaP.golden | 24 #define InputStream_clazz(env) base::android::LazyGetClass(env, kInputStreamClassPath, &g_InputStre… 33 static jint Java_InputStream_available(JNIEnv* env, const 35 static jint Java_InputStream_available(JNIEnv* env, const 37 CHECK_CLAZZ(env, obj.obj(), 38 InputStream_clazz(env), 0); 42 env, InputStream_clazz(env), 48 env->CallIntMethod(obj.obj(), 50 jni_generator::CheckException(env); 55 static void Java_InputStream_close(JNIEnv* env, const 57 static void Java_InputStream_close(JNIEnv* env, const [all …]
|
D | testNatives.golden | 24 #define TestJni_clazz(env) base::android::LazyGetClass(env, kTestJniClassPath, &g_TestJni_clazz) 30 static jint Init(JNIEnv* env, const base::android::JavaParamRef<jobject>& 33 JNI_GENERATOR_EXPORT jint Java_org_chromium_TestJni_nativeInit(JNIEnv* env, 35 return Init(env, base::android::JavaParamRef<jobject>(env, jcaller)); 38 JNI_GENERATOR_EXPORT void Java_org_chromium_TestJni_nativeDestroy(JNIEnv* env, 43 CHECK_NATIVE_PTR(env, jcaller, native, "Destroy"); 44 return native->Destroy(env, base::android::JavaParamRef<jobject>(env, 49 env, jobject jcaller, 57 CHECK_NATIVE_PTR(env, jcaller, native, "AddBookmark", 0); 58 return native->AddBookmark(env, base::android::JavaParamRef<jobject>(env, [all …]
|
/external/libjpeg-turbo/ |
D | turbojpeg-jni.c | 43 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/ |
D | sqlite_jni.c | 62 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/ |
D | gallium.py | 47 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 …]
|
/external/jsoncpp/ |
D | SConstruct | 27 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/ |
D | host_arm_isel.c | 129 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 …]
|
D | host_mips_isel.c | 130 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 …]
|
D | host_ppc_isel.c | 61 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 …]
|
D | host_x86_isel.c | 193 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 …]
|
D | host_amd64_isel.c | 168 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/ |
D | jni_array.cc | 19 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 …]
|
D | jni_array_unittest.cc | 23 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/python/cpython2/Lib/bsddb/test/ |
D | test_dbenv.py | 12 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/vixl/ |
D | SConstruct | 121 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/nanopb-c/tests/ |
D | SConstruct | 17 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/tensorflow/tensorflow/examples/android/jni/object_tracking/ |
D | object_tracker_jni.cc | 38 ObjectTracker* get_object_tracker(JNIEnv* env, jobject thiz) { in get_object_tracker() argument 40 reinterpret_cast<ObjectTracker*>(object_tracker_field.get(env, thiz)); in get_object_tracker() 45 void set_object_tracker(JNIEnv* env, jobject thiz, in set_object_tracker() argument 47 object_tracker_field.set(env, thiz, in set_object_tracker() 55 void JNICALL OBJECT_TRACKER_METHOD(initNative)(JNIEnv* env, jobject thiz, 60 void JNICALL OBJECT_TRACKER_METHOD(releaseMemoryNative)(JNIEnv* env, 65 JNIEnv* env, jobject thiz, jstring object_id, jfloat x1, jfloat y1, 70 JNIEnv* env, jobject thiz, jstring object_id, jfloat x1, jfloat y1, 75 JNIEnv* env, jobject thiz, jstring object_id, jfloat x1, jfloat y1, 79 jboolean JNICALL OBJECT_TRACKER_METHOD(haveObject)(JNIEnv* env, jobject thiz, [all …]
|
/external/ltp/testcases/kernel/io/disktest/ |
D | stats.c | 55 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/conscrypt/common/src/jni/main/cpp/conscrypt/ |
D | jniutil.cc | 50 void init(JavaVM* vm, JNIEnv* env) { in init() argument 53 byteArrayClass = findClass(env, "[B"); in init() 54 calendarClass = findClass(env, "java/util/Calendar"); in init() 55 inputStreamClass = findClass(env, "java/io/InputStream"); in init() 56 integerClass = findClass(env, "java/lang/Integer"); in init() 57 objectClass = findClass(env, "java/lang/Object"); in init() 58 objectArrayClass = findClass(env, "[Ljava/lang/Object;"); in init() 59 outputStreamClass = findClass(env, "java/io/OutputStream"); in init() 60 stringClass = findClass(env, "java/lang/String"); in init() 63 env, TO_STRING(JNI_JARJAR_PREFIX) "org/conscrypt/CryptoUpcalls"); in init() [all …]
|
/external/deqp/framework/platform/android/ |
D | tcuAndroidUtil.cpp | 87 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/tensorflow/tensorflow/java/src/main/native/ |
D | operation_builder_jni.cc | 24 TF_OperationDescription* requireHandle(JNIEnv* env, jlong handle) { in requireHandle() argument 26 throwException(env, kIllegalStateException, in requireHandle() 33 bool resolveOutput(JNIEnv* env, jlong op_handle, jint index, TF_Output* out) { in resolveOutput() argument 35 throwException(env, kIllegalStateException, in resolveOutput() 44 TF_Tensor* requireTensor(JNIEnv* env, jlong handle) { in requireTensor() argument 46 throwException(env, kIllegalStateException, in requireTensor() 55 JNIEnv* env, jclass clazz, jlong graph_handle, jstring type, jstring name) { in Java_org_tensorflow_OperationBuilder_allocate() argument 57 throwException(env, kIllegalStateException, in Java_org_tensorflow_OperationBuilder_allocate() 62 const char* op_type = env->GetStringUTFChars(type, nullptr); in Java_org_tensorflow_OperationBuilder_allocate() 63 const char* op_name = env->GetStringUTFChars(name, nullptr); in Java_org_tensorflow_OperationBuilder_allocate() [all …]
|
/external/oj-libjdwp/src/share/back/ |
D | ArrayReferenceImpl.c | 34 JNIEnv *env = getEnv(); in length() local 37 jarray array = inStream_readArrayRef(env, in); in length() 42 arrayLength = JNI_FUNC_PTR(env,GetArrayLength)(env, array); in length() 70 writeBooleanComponents(JNIEnv *env, PacketOutputStream *out, in writeBooleanComponents() argument 78 JNI_FUNC_PTR(env,GetBooleanArrayRegion)(env, array, index, length, components); in writeBooleanComponents() local 87 writeByteComponents(JNIEnv *env, PacketOutputStream *out, in writeByteComponents() argument 95 JNI_FUNC_PTR(env,GetByteArrayRegion)(env, array, index, length, components); in writeByteComponents() local 104 writeCharComponents(JNIEnv *env, PacketOutputStream *out, in writeCharComponents() argument 112 JNI_FUNC_PTR(env,GetCharArrayRegion)(env, array, index, length, components); in writeCharComponents() local 121 writeShortComponents(JNIEnv *env, PacketOutputStream *out, in writeShortComponents() argument [all …]
|
/external/tensorflow/tensorflow/contrib/lite/java/src/main/native/ |
D | nativeinterpreterwrapper_jni.cc | 23 tflite::Interpreter* convertLongToInterpreter(JNIEnv* env, jlong handle) { in convertLongToInterpreter() argument 25 throwException(env, kIllegalArgumentException, in convertLongToInterpreter() 32 tflite::FlatBufferModel* convertLongToModel(JNIEnv* env, jlong handle) { in convertLongToModel() argument 34 throwException(env, kIllegalArgumentException, "Invalid handle to model."); in convertLongToModel() 40 BufferErrorReporter* convertLongToErrorReporter(JNIEnv* env, jlong handle) { in convertLongToErrorReporter() argument 42 throwException(env, kIllegalArgumentException, in convertLongToErrorReporter() 49 std::vector<int> convertJIntArrayToVector(JNIEnv* env, jintArray inputs) { in convertJIntArrayToVector() argument 50 int size = static_cast<int>(env->GetArrayLength(inputs)); in convertJIntArrayToVector() 52 jint* ptr = env->GetIntArrayElements(inputs, nullptr); in convertJIntArrayToVector() 54 throwException(env, kIllegalArgumentException, in convertJIntArrayToVector() [all …]
|