/external/mesa3d/scons/ |
D | gallium.py | 48 def symlink(target, source, env): argument 55 def install(env, source, subdir): argument 56 target_dir = os.path.join(env.Dir('#.').srcnode().abspath, env['build_dir'], subdir) 57 return env.Install(target_dir, source) 59 def install_program(env, source): argument 60 return install(env, source, 'bin') 62 def install_shared_library(env, sources, version = ()): argument 64 install_dir = os.path.join(env.Dir('#.').srcnode().abspath, env['build_dir']) 66 if env['SHLIBSUFFIX'] == '.dll': 67 dlls = env.FindIxes(sources, 'SHLIBPREFIX', 'SHLIBSUFFIX') [all …]
|
D | crossmingw.py | 53 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 …]
|
D | custom.py | 58 def quietCommandLines(env): argument 61 env['ASCOMSTR'] = " Assembling $SOURCE ..." 62 env['ASPPCOMSTR'] = " Assembling $SOURCE ..." 63 env['CCCOMSTR'] = " Compiling $SOURCE ..." 64 env['SHCCCOMSTR'] = " Compiling $SOURCE ..." 65 env['CXXCOMSTR'] = " Compiling $SOURCE ..." 66 env['SHCXXCOMSTR'] = " Compiling $SOURCE ..." 67 env['ARCOMSTR'] = " Archiving $TARGET ..." 68 env['RANLIBCOMSTR'] = " Indexing $TARGET ..." 69 env['LINKCOMSTR'] = " Linking $TARGET ..." [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-cff-interp-cs-common.hh | 228 static void rmoveto (ENV &env, PARAM& param) {} in rmoveto() 229 static void hmoveto (ENV &env, PARAM& param) {} in hmoveto() 230 static void vmoveto (ENV &env, PARAM& param) {} in vmoveto() 231 static void rlineto (ENV &env, PARAM& param) {} in rlineto() 232 static void hlineto (ENV &env, PARAM& param) {} in hlineto() 233 static void vlineto (ENV &env, PARAM& param) {} in vlineto() 234 static void rrcurveto (ENV &env, PARAM& param) {} in rrcurveto() 235 static void rcurveline (ENV &env, PARAM& param) {} in rcurveline() 236 static void rlinecurve (ENV &env, PARAM& param) {} in rlinecurve() 237 static void vvcurveto (ENV &env, PARAM& param) {} in vvcurveto() [all …]
|
/external/python/jinja/tests/ |
D | test_lexnparse.py | 21 def test_simple(self, env): argument 35 def test_iter(self, env): argument 44 def test_raw1(self, env): argument 45 tmpl = env.from_string( 51 def test_raw2(self, env): argument 52 tmpl = env.from_string("1 {%- raw -%} 2 {%- endraw -%} 3") 55 def test_raw3(self, env): argument 58 env = Environment(lstrip_blocks=True, trim_blocks=True) 59 tmpl = env.from_string("bar\n{% raw %}\n {{baz}}2 spaces\n{% endraw %}\nfoo") 62 def test_raw4(self, env): argument [all …]
|
D | test_filters.py | 30 def test_filter_calling(self, env): argument 31 rv = env.call_filter("sum", [1, 2, 3]) 34 def test_capitalize(self, env): argument 35 tmpl = env.from_string('{{ "foo bar"|capitalize }}') 38 def test_center(self, env): argument 39 tmpl = env.from_string('{{ "foo"|center(9) }}') 42 def test_default(self, env): argument 43 tmpl = env.from_string( 58 def test_dictsort(self, env, args, expect): argument 59 t = env.from_string(f"{{{{ foo|dictsort({args}) }}}}") [all …]
|
D | test_regression.py | 13 def test_assigned_scoping(self, env): argument 14 t = env.from_string( 24 t = env.from_string( 35 t = env.from_string( 46 def test_closure_scoping(self, env): argument 47 t = env.from_string( 59 t = env.from_string( 71 t = env.from_string( 84 def test_keyword_folding(self, env): argument 85 env = Environment() [all …]
|
D | test_security.py | 38 def test_unsafe(self, env): argument 39 env = SandboxedEnvironment() 41 SecurityError, env.from_string("{{ foo.foo() }}").render, foo=PrivateStuff() 43 assert env.from_string("{{ foo.bar() }}").render(foo=PrivateStuff()) == "23" 46 SecurityError, env.from_string("{{ foo._foo() }}").render, foo=PublicStuff() 48 assert env.from_string("{{ foo.bar() }}").render(foo=PublicStuff()) == "23" 49 assert env.from_string("{{ foo.__class__ }}").render(foo=42) == "" 50 assert env.from_string("{{ foo.func_code }}").render(foo=lambda: None) == "" 54 env.from_string("{{ foo.__class__.__subclasses__() }}").render, 58 def test_immutable_environment(self, env): argument [all …]
|
D | test_inheritance.py | 59 def env(): function 77 def test_layout(self, env): argument 78 tmpl = env.get_template("layout") 83 def test_level1(self, env): argument 84 tmpl = env.get_template("level1") 89 def test_level2(self, env): argument 90 tmpl = env.get_template("level2") 96 def test_level3(self, env): argument 97 tmpl = env.get_template("level3") 102 def test_level4(self, env): argument [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/ |
D | ares_android.c | 42 static jclass jni_get_class(JNIEnv *env, const char *path) in jni_get_class() argument 46 if (env == NULL || path == NULL || *path == '\0') in jni_get_class() 49 cls = (*env)->FindClass(env, path); in jni_get_class() 50 if ((*env)->ExceptionOccurred(env)) { in jni_get_class() 51 (*env)->ExceptionClear(env); in jni_get_class() 57 static jmethodID jni_get_method_id(JNIEnv *env, jclass cls, in jni_get_method_id() argument 62 if (env == NULL || cls == NULL || func_name == NULL || *func_name == '\0' || in jni_get_method_id() 68 mid = (*env)->GetMethodID(env, cls, func_name, signature); in jni_get_method_id() 69 if ((*env)->ExceptionOccurred(env)) in jni_get_method_id() 71 (*env)->ExceptionClear(env); in jni_get_method_id() [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/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 | 54 void init(JavaVM* vm, JNIEnv* env) { in init() argument 57 byteArrayClass = findClass(env, "[B"); in init() 58 calendarClass = findClass(env, "java/util/Calendar"); in init() 59 inputStreamClass = findClass(env, "java/io/InputStream"); in init() 60 integerClass = findClass(env, "java/lang/Integer"); in init() 61 objectClass = findClass(env, "java/lang/Object"); in init() 62 objectArrayClass = findClass(env, "[Ljava/lang/Object;"); in init() 63 outputStreamClass = findClass(env, "java/io/OutputStream"); in init() 64 stringClass = findClass(env, "java/lang/String"); in init() 65 byteBufferClass = findClass(env, "java/nio/ByteBuffer"); in init() [all …]
|
/external/libjpeg-turbo/ |
D | turbojpeg-jni.c | 42 if (!(f) || (*env)->ExceptionCheck(env)) { \ 48 jclass _exccls = (*env)->FindClass(env, exceptionClass); \ 51 (*env)->ThrowNew(env, _exccls, msg); \ 61 BAILIF0(_errstr = (*env)->NewStringUTF(env, tjGetErrorStr2(handle))); \ 62 BAILIF0(_exccls = (*env)->FindClass(env, \ 64 BAILIF0(_excid = (*env)->GetMethodID(env, _exccls, "<init>", \ 66 BAILIF0(_excobj = (*env)->NewObject(env, _exccls, _excid, _errstr, \ 68 (*env)->Throw(env, _excobj); \ 78 jclass _cls = (*env)->GetObjectClass(env, obj); \ 82 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "handle", "J")); \ [all …]
|
/external/pigweed/pw_env_setup/py/ |
D | environment_test.py | 43 def _evaluate_env_in_shell(env): argument 62 env.write(temp) 99 self.env = environment.Environment() 102 self.var_already_set = self.env.normalize_key('var_already_set') 107 self.var_not_set = self.env.normalize_key('var_not_set') 118 self.env.set(self.var_not_set, '1') 119 with self.env(export=False) as env: 120 self.assertIn(self.var_not_set, env) 121 self.assertEqual(env[self.var_not_set], '1') 124 self.env.set(self.var_not_set, '1') [all …]
|
/external/libchrome/base/android/jni_generator/ |
D | testConstantsFromJavaP.golden | 27 inline jclass android_view_MotionEvent_clazz(JNIEnv* env) { 28 return base::android::LazyGetClass(env, kClassPath_android_view_MotionEvent, 128 static void Java_MotionEvent_finalize(JNIEnv* env, const base::android::JavaRef<jobject>& obj) 130 static void Java_MotionEvent_finalize(JNIEnv* env, const base::android::JavaRef<jobject>& obj) { 131 CHECK_CLAZZ(env, obj.obj(), 132 android_view_MotionEvent_clazz(env)); 135 env, android_view_MotionEvent_clazz(env), 140 env->CallVoidMethod(obj.obj(), 142 jni_generator::CheckException(env); 148 Java_MotionEvent_obtainAVME_J_J_I_I_LAVMEPP_LAVMEPC_I_I_F_F_I_I_I_I(JNIEnv* env, jlong p0, [all …]
|
D | SampleForTests_jni.golden | 46 env) { 47 return base::android::LazyGetClass(env, 57 inline jclass org_chromium_example_jni_1generator_SampleForTests_00024InnerClass_clazz(JNIEnv* env) 59 return base::android::LazyGetClass(env, 69 inline jclass org_chromium_example_jni_1generator_SampleForTests_clazz(JNIEnv* env) { 70 return base::android::LazyGetClass(env, 81 env) { 82 return base::android::LazyGetClass(env, 96 static jlong JNI_SampleForTests_Init(JNIEnv* env, const base::android::JavaParamRef<jobject>& 101 JNIEnv* env, [all …]
|
D | testCalledByNatives.golden | 30 inline jclass org_chromium_TestJni_clazz(JNIEnv* env) { 31 return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni, 39 inline jclass org_chromium_TestJni_00024InfoBar_clazz(JNIEnv* env) { 40 return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni_00024InfoBar, 52 static base::android::ScopedJavaLocalRef<jobject> Java_TestJni_showConfirmInfoBar(JNIEnv* env, const 58 CHECK_CLAZZ(env, obj.obj(), 59 org_chromium_TestJni_clazz(env), NULL); 62 env, org_chromium_TestJni_clazz(env), 68 env->CallObjectMethod(obj.obj(), 71 jni_generator::CheckException(env); [all …]
|
/external/libchrome/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 …]
|
/external/llvm-project/lldb/test/API/python_api/sbenvironment/ |
D | TestSBEnvironment.py | 18 def assertEqualEntries(self, env, entries): argument 19 self.assertEqual(env.GetNumValues(), len(entries)) 20 for i in range(env.GetNumValues()): 21 name = env.GetNameAtIndex(i) 22 value = env.GetValueAtIndex(i) 25 entries = env.GetEntries() 36 env = self.dbg.GetSelectedPlatform().GetEnvironment() 38 self.assertNotEqual(env.Get("PATH"), None) 45 env = launch_info.GetEnvironment() 46 env_count = env.GetNumValues() [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/lite/java/src/main/native/ |
D | tensor_jni.cc | 54 TfLiteTensor* GetTensorFromHandle(JNIEnv* env, jlong handle) { in GetTensorFromHandle() argument 56 ThrowException(env, tflite::jni::kIllegalArgumentException, in GetTensorFromHandle() 63 int GetTensorIndexFromHandle(JNIEnv* env, jlong handle) { in GetTensorIndexFromHandle() argument 65 ThrowException(env, tflite::jni::kIllegalArgumentException, in GetTensorIndexFromHandle() 107 size_t WriteOneDimensionalArray(JNIEnv* env, jobject object, TfLiteType type, in WriteOneDimensionalArray() argument 110 const int num_elements = env->GetArrayLength(array); in WriteOneDimensionalArray() 113 ThrowException(env, tflite::jni::kIllegalStateException, in WriteOneDimensionalArray() 123 env->GetFloatArrayRegion(float_array, 0, num_elements, float_dst); in WriteOneDimensionalArray() 129 env->GetIntArrayRegion(int_array, 0, num_elements, int_dst); in WriteOneDimensionalArray() 135 env->GetLongArrayRegion(long_array, 0, num_elements, long_dst); in WriteOneDimensionalArray() [all …]
|
/external/grpc-grpc/third_party/nanopb/tests/site_scons/site_tools/ |
D | nanopb.py | 40 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/nanopb-c/tests/site_scons/site_tools/ |
D | nanopb.py | 40 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/conscrypt/common/src/jni/main/include/conscrypt/ |
D | jniutil.h | 60 void init(JavaVM* vm, JNIEnv* env); 66 JNIEnv* env; in getJNIEnv() local 69 int ret = gJavaVM->AttachCurrentThread(&env, nullptr); in getJNIEnv() 71 int ret = gJavaVM->AttachCurrentThread(reinterpret_cast<void**>(&env), nullptr); in getJNIEnv() 77 return env; in getJNIEnv() 87 inline jclass getGlobalRefToClass(JNIEnv* env, const char* className) { in getGlobalRefToClass() argument 88 ScopedLocalRef<jclass> localClass(env, env->FindClass(className)); in getGlobalRefToClass() 89 jclass globalRef = reinterpret_cast<jclass>(env->NewGlobalRef(localClass.get())); in getGlobalRefToClass() 97 inline jmethodID getMethodRef(JNIEnv* env, jclass clazz, const char* name, const char* sig) { in getMethodRef() argument 98 jmethodID localMethod = env->GetMethodID(clazz, name, sig); in getMethodRef() [all …]
|