Home
last modified time | relevance | path

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

12345678910>>...300

/external/harfbuzz_ng/src/
Dhb-cff-interp-cs-common.hh225 template <typename ENV, typename PARAM>
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()
[all …]
/external/libchrome/base/android/jni_generator/
DtestConstantsFromJavaP.golden27 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 …]
DSampleForTests_jni.golden46 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 …]
DtestCalledByNatives.golden30 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 …]
DtestFromJavaP.golden27 inline jclass java_io_InputStream_clazz(JNIEnv* env) {
28 return base::android::LazyGetClass(env, kClassPath_java_io_InputStream,
42 static jint Java_InputStream_available(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
44 static jint Java_InputStream_available(JNIEnv* env, const base::android::JavaRef<jobject>& obj) {
45 CHECK_CLAZZ(env, obj.obj(),
46 java_io_InputStream_clazz(env), 0);
49 env, java_io_InputStream_clazz(env),
55 env->CallIntMethod(obj.obj(),
57 jni_generator::CheckException(env);
62 static void Java_InputStream_close(JNIEnv* env, const base::android::JavaRef<jobject>& obj)
[all …]
DtestNatives.golden27 inline jclass org_chromium_TestJni_clazz(JNIEnv* env) {
28 return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni,
38 static jint JNI_TestJni_Init(JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller);
41 JNIEnv* env,
43 return JNI_TestJni_Init(env, base::android::JavaParamRef<jobject>(env, jcaller));
47 JNIEnv* env,
52 CHECK_NATIVE_PTR(env, jcaller, native, "Destroy");
53 return native->Destroy(env, base::android::JavaParamRef<jobject>(env, jcaller));
57 JNIEnv* env,
66 CHECK_NATIVE_PTR(env, jcaller, native, "AddBookmark", 0);
[all …]
DtestNativeExportsOnlyOption.golden41 org_chromium_example_jni_1generator_SampleForTests_00024MyOtherInnerClass_clazz(JNIEnv* env) {
42 return base::android::LazyGetClass(env,
53 env) {
54 return base::android::LazyGetClass(env,
64 inline jclass org_chromium_example_jni_1generator_SampleForTests_clazz(JNIEnv* env) {
65 return base::android::LazyGetClass(env,
78 JNIEnv* env,
83 CHECK_NATIVE_PTR(env, jcaller, native, "StaticMethod", 0);
84 return native->StaticMethod(env, base::android::JavaParamRef<jobject>(env, jcaller), arg1);
88 JNIEnv* env,
[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.c42 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/mesa3d/scons/
Dgallium.py48 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 …]
/external/pigweed/pw_env_setup/py/
Denvironment_test.py43 def _evaluate_env_in_shell(env): argument
44 """Write env to a file then evaluate and save the resulting environment.
46 Write env to a file, then launch a shell command that sources that file
51 env(environment.Environment): environment to write out
56 # Write env sourcing script to file.
58 prefix='pw-test-written-env-',
62 env.write(temp)
65 # Evaluate env sourcing script and capture output of 'env'.
72 cmd = '. {} && env'.format(temp_name)
99 self.env = environment.Environment()
[all …]
/external/llvm-project/llvm/utils/lit/tests/
Dshtest-env.py1 # Check the env command
3 # RUN: not %{lit} -j 1 -a -v %{inputs}/shtest-env \
8 # Make sure env commands are included in printed commands.
12 # CHECK: FAIL: shtest-env :: env-args-last-is-assign.txt ({{[^)]*}})
13 # CHECK: $ "env" "FOO=1"
14 # CHECK: Error: 'env' requires a subcommand
17 # CHECK: FAIL: shtest-env :: env-args-last-is-u-arg.txt ({{[^)]*}})
18 # CHECK: $ "env" "-u" "FOO"
19 # CHECK: Error: 'env' requires a subcommand
22 # CHECK: FAIL: shtest-env :: env-args-last-is-u.txt ({{[^)]*}})
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/
Dares_android.c42 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/python/jinja/tests/
Dtest_lexnparse.py21 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 …]
Dtest_filters.py30 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 …]
/external/libchrome/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()
48 void CheckBoolConversion(JNIEnv* env, in CheckBoolConversion() argument
54 jsize java_array_len = env->GetArrayLength(booleans.obj()); in CheckBoolConversion()
59 env->GetBooleanArrayRegion(booleans.obj(), i, 1, &value); in CheckBoolConversion()
68 JNIEnv* env = AttachCurrentThread(); in TEST() local
[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/grpc-grpc/third_party/nanopb/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/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/vixl/
DSConstruct126 def modifiable_flags_handler(env):
127 env['modifiable_flags'] = \
128 'on' if 'mode' in env and env['mode'] == 'debug' else 'off'
131 def symbols_handler(env):
132 env['symbols'] = 'on' if 'mode' in env and env['mode'] == 'debug' else 'off'
134 def Is32BitHost(env):
135 return env['host_arch'] in ['aarch32', 'i386']
137 def IsAArch64Host(env):
138 return env['host_arch'] == 'aarch64'
140 def CanTargetA32(env):
[all …]
/external/tensorflow/tensorflow/lite/java/src/main/native/
Dtensor_jni.cc54 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/tensorflow/tensorflow/tools/android/test/jni/object_tracking/
Dobject_tracker_jni.cc38 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/
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/conscrypt/common/src/jni/main/cpp/conscrypt/
Djniutil.cc54 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 …]

12345678910>>...300