Home
last modified time | relevance | path

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

12345678910>>...106

/third_party/node/test/js-native-api/test_object/
Dtest_object.c8 static napi_value Get(napi_env env, napi_callback_info info) { in Get() argument
11 NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL)); in Get()
13 NODE_API_ASSERT(env, argc >= 2, "Wrong number of arguments"); in Get()
16 NODE_API_CALL(env, napi_typeof(env, args[0], &valuetype0)); in Get()
18 NODE_API_ASSERT(env, valuetype0 == napi_object, in Get()
22 NODE_API_CALL(env, napi_typeof(env, args[1], &valuetype1)); in Get()
24 NODE_API_ASSERT(env, valuetype1 == napi_string || valuetype1 == napi_symbol, in Get()
29 NODE_API_CALL(env, napi_get_property(env, object, args[1], &output)); in Get()
34 static napi_value GetNamed(napi_env env, napi_callback_info info) { in GetNamed() argument
39 NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL)); in GetNamed()
[all …]
Dtest_null.c6 static napi_value SetProperty(napi_env env, napi_callback_info info) { in SetProperty() argument
9 NODE_API_CALL(env, napi_create_object(env, &return_value)); in SetProperty()
10 NODE_API_CALL(env, napi_create_object(env, &object)); in SetProperty()
11 NODE_API_CALL(env, in SetProperty()
12 napi_create_string_utf8(env, "someString", NAPI_AUTO_LENGTH, &key)); in SetProperty()
14 add_returned_status(env, in SetProperty()
21 napi_set_property(env, NULL, key, object); in SetProperty()
22 add_last_status(env, "objectIsNull", return_value); in SetProperty()
24 napi_set_property(env, object, NULL, object); in SetProperty()
25 add_last_status(env, "keyIsNull", return_value); in SetProperty()
[all …]
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-cff-interp-cs-common.hh228 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 …]
/third_party/node/deps/npm/node_modules/libnpmpublish/lib/
Dprovenance.js4 const { env } = process
22 const [workflowPath, workflowRef] = (env.GITHUB_WORKFLOW_REF || '')
23 .replace(env.GITHUB_REPOSITORY + '/', '')
35 repository: `${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}`,
41 event_name: env.GITHUB_EVENT_NAME,
42 repository_id: env.GITHUB_REPOSITORY_ID,
43 repository_owner_id: env.GITHUB_REPOSITORY_OWNER_ID,
48 uri: `git+${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}@${env.GITHUB_REF}`,
50 gitCommit: env.GITHUB_SHA,
56 builder: { id: `${GITHUB_BUILDER_ID_PREFIX}/${env.RUNNER_ENVIRONMENT}` },
[all …]
/third_party/gstreamer/gstplugins_bad/sys/androidmedia/
Dgstjniutils.c49 JNIEnv *env; in gst_amc_jni_get_android_level() local
53 env = gst_amc_jni_get_env (); in gst_amc_jni_get_android_level()
55 jclass versionClass = (*env)->FindClass (env, "android/os/Build$VERSION"); in gst_amc_jni_get_android_level()
59 sdkIntFieldID = (*env)->GetStaticFieldID (env, versionClass, "SDK_INT", "I"); in gst_amc_jni_get_android_level()
63 ret = (*env)->GetStaticIntField (env, versionClass, sdkIntFieldID); in gst_amc_jni_get_android_level()
69 gst_amc_jni_get_class (JNIEnv * env, GError ** err, const gchar * name) in gst_amc_jni_get_class() argument
75 tmp = (*env)->FindClass (env, name); in gst_amc_jni_get_class()
76 if ((*env)->ExceptionCheck (env) || !tmp) { in gst_amc_jni_get_class()
77 gst_amc_jni_set_error (env, err, GST_LIBRARY_ERROR, in gst_amc_jni_get_class()
82 ret = (*env)->NewGlobalRef (env, tmp); in gst_amc_jni_get_class()
[all …]
Dgst-android-hardware-camera.c285 gst_ah_camera_on_preview_frame (JNIEnv * env, jclass klass, jbyteArray data, in gst_ah_camera_on_preview_frame() argument
295 gst_ah_camera_on_error (JNIEnv * env, jclass klass, jint error, in gst_ah_camera_on_error() argument
305 gst_ah_camera_on_auto_focus (JNIEnv * env, jclass klass, jboolean success, in gst_ah_camera_on_auto_focus() argument
329 JNIEnv *env; in _init_classes() local
335 env = gst_amc_jni_get_env (); in _init_classes()
339 gst_amc_jni_get_class (env, &err, "android/hardware/Camera"); in _init_classes()
344 gst_amc_jni_get_method_id (env, &err, klass, in _init_classes()
348 gst_amc_jni_get_method_id (env, &err, klass, in _init_classes()
352 gst_amc_jni_get_method_id (env, &err, klass, "cancelAutoFocus", "()V"); in _init_classes()
355 gst_amc_jni_get_static_method_id (env, &err, klass, in _init_classes()
[all …]
/third_party/node/test/js-native-api/test_general/
Dtest_general.c12 static napi_value testStrictEquals(napi_env env, napi_callback_info info) { in testStrictEquals() argument
15 NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL)); in testStrictEquals()
19 NODE_API_CALL(env, napi_strict_equals(env, args[0], args[1], &bool_result)); in testStrictEquals()
20 NODE_API_CALL(env, napi_get_boolean(env, bool_result, &result)); in testStrictEquals()
25 static napi_value testGetPrototype(napi_env env, napi_callback_info info) { in testGetPrototype() argument
28 NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL)); in testGetPrototype()
31 NODE_API_CALL(env, napi_get_prototype(env, args[0], &result)); in testGetPrototype()
36 static napi_value testGetVersion(napi_env env, napi_callback_info info) { in testGetVersion() argument
39 NODE_API_CALL(env, napi_get_version(env, &version)); in testGetVersion()
40 NODE_API_CALL(env, napi_create_uint32(env, version, &result)); in testGetVersion()
[all …]
/third_party/ffmpeg/libavcodec/
Dmediacodec_wrapper.c301 #define JNI_GET_ENV_OR_RETURN(env, log_ctx, ret) do { \ argument
302 (env) = ff_jni_get_env(log_ctx); \
303 if (!(env)) { \
308 #define JNI_GET_ENV_OR_RETURN_VOID(env, log_ctx) do { \ argument
309 (env) = ff_jni_get_env(log_ctx); \
310 if (!(env)) { \
319 JNIEnv *env = NULL; in ff_AMediaCodecProfile_getProfileFromAVCodecContext() local
323 JNI_GET_ENV_OR_RETURN(env, avctx, -1); in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
325 if (ff_jni_init_jfields(env, &jfields, jni_amediacodeclist_mapping, 0, avctx) < 0) { in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
371 ret = (*env)->GetStaticIntField(env, jfields.codec_profile_level_class, field_id); in ff_AMediaCodecProfile_getProfileFromAVCodecContext()
[all …]
Dffjni.c54 JNIEnv *env = NULL; in ff_jni_get_env() local
68 if ((env = pthread_getspecific(current_env)) != NULL) { in ff_jni_get_env()
72 ret = (*java_vm)->GetEnv(java_vm, (void **)&env, JNI_VERSION_1_6); in ff_jni_get_env()
75 if ((*java_vm)->AttachCurrentThread(java_vm, &env, NULL) != 0) { in ff_jni_get_env()
77 env = NULL; in ff_jni_get_env()
79 pthread_setspecific(current_env, env); in ff_jni_get_env()
94 return env; in ff_jni_get_env()
97 char *ff_jni_jstring_to_utf_chars(JNIEnv *env, jstring string, void *log_ctx) in ff_jni_jstring_to_utf_chars() argument
108 utf_chars = (*env)->GetStringUTFChars(env, string, &copy); in ff_jni_jstring_to_utf_chars()
109 if ((*env)->ExceptionCheck(env)) { in ff_jni_jstring_to_utf_chars()
[all …]
/third_party/node/test/js-native-api/test_error/
Dtest_error.c5 static napi_value checkError(napi_env env, napi_callback_info info) { in checkError() argument
8 NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL)); in checkError()
11 NODE_API_CALL(env, napi_is_error(env, args[0], &r)); in checkError()
14 NODE_API_CALL(env, napi_get_boolean(env, r, &result)); in checkError()
19 static napi_value throwExistingError(napi_env env, napi_callback_info info) { in throwExistingError() argument
22 NODE_API_CALL(env, napi_create_string_utf8( in throwExistingError()
23 env, "existing error", NAPI_AUTO_LENGTH, &message)); in throwExistingError()
24 NODE_API_CALL(env, napi_create_error(env, NULL, message, &error)); in throwExistingError()
25 NODE_API_CALL(env, napi_throw(env, error)); in throwExistingError()
29 static napi_value throwError(napi_env env, napi_callback_info info) { in throwError() argument
[all …]
/third_party/node/test/js-native-api/test_reference/
Dtest_reference.c11 static napi_value GetFinalizeCount(napi_env env, napi_callback_info info) { in GetFinalizeCount() argument
13 NODE_API_CALL(env, napi_create_int32(env, finalize_count, &result)); in GetFinalizeCount()
17 static void FinalizeExternal(napi_env env, void* data, void* hint) { in FinalizeExternal() argument
19 NODE_API_ASSERT_RETURN_VOID(env, actual_value == &test_value, in FinalizeExternal()
24 static void FinalizeExternalCallJs(napi_env env, void* data, void* hint) { in FinalizeExternalCallJs() argument
26 NODE_API_ASSERT_RETURN_VOID(env, actual_value == &test_value, in FinalizeExternalCallJs()
32 NODE_API_CALL_RETURN_VOID(env, napi_get_reference_value(env, finalizer_ref, &js_finalizer)); in FinalizeExternalCallJs()
33 NODE_API_CALL_RETURN_VOID(env, napi_get_global(env, &recv)); in FinalizeExternalCallJs()
34 NODE_API_CALL_RETURN_VOID(env, napi_call_function(env, recv, js_finalizer, 0, NULL, NULL)); in FinalizeExternalCallJs()
35 NODE_API_CALL_RETURN_VOID(env, napi_delete_reference(env, finalizer_ref)); in FinalizeExternalCallJs()
[all …]
/third_party/node/test/node-api/test_async/
Dtest_async.c20 static void Execute(napi_env env, void* data) { in Execute() argument
29 static void Complete(napi_env env, napi_status status, void* data) { in Complete() argument
33 napi_throw_type_error(env, NULL, "Wrong data parameter to Complete."); in Complete()
38 napi_throw_type_error(env, NULL, "Execute callback failed."); in Complete()
44 NODE_API_CALL_RETURN_VOID(env, napi_get_null(env, &argv[0])); in Complete()
45 NODE_API_CALL_RETURN_VOID(env, napi_create_int32(env, c->_output, &argv[1])); in Complete()
47 NODE_API_CALL_RETURN_VOID(env, in Complete()
48 napi_get_reference_value(env, c->_callback, &callback)); in Complete()
50 NODE_API_CALL_RETURN_VOID(env, napi_get_global(env, &global)); in Complete()
53 NODE_API_CALL_RETURN_VOID(env, in Complete()
[all …]
/third_party/node/deps/cares/src/lib/
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 …]
/third_party/gstreamer/gstplugins_bad/sys/androidmedia/jni/
Dgstamc-codec-jni.c96 JNIEnv *env; in gst_amc_codec_static_init() local
100 env = gst_amc_jni_get_env (); in gst_amc_codec_static_init()
102 java_nio_buffer.klass = gst_amc_jni_get_class (env, &err, "java/nio/Buffer"); in gst_amc_codec_static_init()
110 gst_amc_jni_get_method_id (env, &err, java_nio_buffer.klass, "limit", in gst_amc_codec_static_init()
119 gst_amc_jni_get_method_id (env, &err, java_nio_buffer.klass, "position", in gst_amc_codec_static_init()
128 gst_amc_jni_get_method_id (env, &err, java_nio_buffer.klass, "limit", in gst_amc_codec_static_init()
137 gst_amc_jni_get_method_id (env, &err, java_nio_buffer.klass, "position", in gst_amc_codec_static_init()
146 gst_amc_jni_get_method_id (env, &err, java_nio_buffer.klass, "clear", in gst_amc_codec_static_init()
154 tmp = (*env)->FindClass (env, "android/media/MediaCodec$BufferInfo"); in gst_amc_codec_static_init()
157 (*env)->ExceptionClear (env); in gst_amc_codec_static_init()
[all …]
/third_party/node/test/js-native-api/test_array/
Dtest_array.c5 static napi_value TestGetElement(napi_env env, napi_callback_info info) { in TestGetElement() argument
8 NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL)); in TestGetElement()
10 NODE_API_ASSERT(env, argc >= 2, "Wrong number of arguments"); in TestGetElement()
13 NODE_API_CALL(env, napi_typeof(env, args[0], &valuetype0)); in TestGetElement()
15 NODE_API_ASSERT(env, valuetype0 == napi_object, in TestGetElement()
19 NODE_API_CALL(env, napi_typeof(env, args[1], &valuetype1)); in TestGetElement()
21 NODE_API_ASSERT(env, valuetype1 == napi_number, in TestGetElement()
26 NODE_API_CALL(env, napi_get_value_int32(env, args[1], &index)); in TestGetElement()
28 NODE_API_ASSERT(env, index >= 0, "Invalid index. Expects a positive integer."); in TestGetElement()
31 NODE_API_CALL(env, napi_is_array(env, array, &isarray)); in TestGetElement()
[all …]
/third_party/node/test/js-native-api/test_function/
Dtest_function.c4 static napi_value TestCreateFunctionParameters(napi_env env, in TestCreateFunctionParameters() argument
9 NODE_API_CALL(env, napi_create_object(env, &return_value)); in TestCreateFunctionParameters()
18 add_returned_status(env, in TestCreateFunctionParameters()
25 napi_create_function(env, in TestCreateFunctionParameters()
32 add_last_status(env, "nameIsNull", return_value); in TestCreateFunctionParameters()
34 napi_create_function(env, in TestCreateFunctionParameters()
41 add_last_status(env, "cbIsNull", return_value); in TestCreateFunctionParameters()
43 napi_create_function(env, in TestCreateFunctionParameters()
50 add_last_status(env, "resultIsNull", return_value); in TestCreateFunctionParameters()
55 static napi_value TestCallFunction(napi_env env, napi_callback_info info) { in TestCallFunction() argument
[all …]
/third_party/node/src/
Djs_native_api_v8.cc10 #define CHECK_MAYBE_NOTHING(env, maybe, status) \ argument
11 RETURN_STATUS_IF_FALSE((env), !((maybe).IsNothing()), (status))
13 #define CHECK_MAYBE_NOTHING_WITH_PREAMBLE(env, maybe, status) \ argument
14 RETURN_STATUS_IF_FALSE_WITH_PREAMBLE((env), !((maybe).IsNothing()), (status))
16 #define CHECK_TO_NUMBER(env, context, result, src) \ argument
17 CHECK_TO_TYPE((env), Number, (context), (result), (src), napi_number_expected)
23 #define CHECK_NEW_FROM_UTF8_LEN(env, result, str, len) \ argument
28 (env), (len == NAPI_AUTO_LENGTH) || len <= INT_MAX, napi_invalid_arg); \
29 RETURN_STATUS_IF_FALSE((env), (str) != nullptr, napi_invalid_arg); \
30 auto str_maybe = v8::String::NewFromUtf8((env)->isolate, \
[all …]
/third_party/skia/third_party/externals/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 …]
/third_party/node/test/node-api/test_reference_by_node_api_version/
Dtest_reference_by_node_api_version.c7 static void FreeData(napi_env env, void* data, void* hint) { in FreeData() argument
8 NODE_API_ASSERT_RETURN_VOID(env, data != NULL, "Expects non-NULL data."); in FreeData()
12 static void Finalize(napi_env env, void* data, void* hint) { in Finalize() argument
16 static napi_status GetArgValue(napi_env env, in GetArgValue() argument
21 napi_get_cb_info(env, info, &argc, argValue, NULL, NULL)); in GetArgValue()
23 NODE_API_ASSERT_STATUS(env, argc == 1, "Expects one arg."); in GetArgValue()
27 static napi_status GetArgValueAsIndex(napi_env env, in GetArgValueAsIndex() argument
31 NODE_API_CHECK_STATUS(GetArgValue(env, info, &argValue)); in GetArgValueAsIndex()
34 NODE_API_CHECK_STATUS(napi_typeof(env, argValue, &valueType)); in GetArgValueAsIndex()
36 env, valueType == napi_number, "Argument must be a number."); in GetArgValueAsIndex()
[all …]
/third_party/node/test/js-native-api/test_typedarray/
Dtest_typedarray.c6 static napi_value Multiply(napi_env env, napi_callback_info info) { in Multiply() argument
9 NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL)); in Multiply()
11 NODE_API_ASSERT(env, argc == 2, "Wrong number of arguments"); in Multiply()
14 NODE_API_CALL(env, napi_typeof(env, args[0], &valuetype0)); in Multiply()
16 NODE_API_ASSERT(env, valuetype0 == napi_object, in Multiply()
21 NODE_API_CALL(env, napi_is_typedarray(env, input_array, &is_typedarray)); in Multiply()
23 NODE_API_ASSERT(env, is_typedarray, in Multiply()
27 NODE_API_CALL(env, napi_typeof(env, args[1], &valuetype1)); in Multiply()
29 NODE_API_ASSERT(env, valuetype1 == napi_number, in Multiply()
33 NODE_API_CALL(env, napi_get_value_double(env, args[1], &multiplier)); in Multiply()
[all …]
/third_party/node/test/js-native-api/6_object_wrap/
D6_object_wrap.cc13 napi_env env, void* nativeObject, void* /*finalize_hint*/) { in Destructor() argument
18 void MyObject::Init(napi_env env, napi_value exports) { in Init() argument
28 NODE_API_CALL_RETURN_VOID(env, napi_define_class( in Init()
29 env, "MyObject", -1, New, nullptr, in Init()
33 NODE_API_CALL_RETURN_VOID(env, in Init()
34 napi_create_reference(env, cons, 1, &constructor)); in Init()
36 NODE_API_CALL_RETURN_VOID(env, in Init()
37 napi_set_named_property(env, exports, "MyObject", cons)); in Init()
40 napi_value MyObject::New(napi_env env, napi_callback_info info) { in New() argument
42 NODE_API_CALL(env, napi_get_new_target(env, info, &new_target)); in New()
[all …]
/third_party/node/test/node-api/test_threadsafe_function/
Dbinding.c122 static void call_js(napi_env env, napi_value cb, void* hint, void* data) { in call_js() argument
123 if (!(env == NULL || cb == NULL)) { in call_js()
125 NODE_API_CALL_RETURN_VOID(env, napi_create_int32(env, *(int*)data, &argv)); in call_js()
126 NODE_API_CALL_RETURN_VOID(env, napi_get_undefined(env, &undefined)); in call_js()
127 NODE_API_CALL_RETURN_VOID(env, napi_call_function(env, undefined, cb, 1, &argv, in call_js()
134 static void call_ref(napi_env env, napi_value _, void* hint, void* data) { in call_ref() argument
135 if (!(env == NULL || alt_ref == NULL)) { in call_ref()
137 NODE_API_CALL_RETURN_VOID(env, napi_get_reference_value(env, alt_ref, &fn)); in call_ref()
138 NODE_API_CALL_RETURN_VOID(env, napi_create_int32(env, *(int*)data, &argv)); in call_ref()
139 NODE_API_CALL_RETURN_VOID(env, napi_get_undefined(env, &undefined)); in call_ref()
[all …]
/third_party/node/test/node-api/test_instance_data/
Dtest_instance_data.c13 static void AsyncWorkCbExecute(napi_env env, void* data) { in AsyncWorkCbExecute() argument
14 (void) env; in AsyncWorkCbExecute()
18 static void call_cb_and_delete_ref(napi_env env, napi_ref* optional_ref) { in call_cb_and_delete_ref() argument
23 NODE_API_CALL_RETURN_VOID(env, napi_get_instance_data(env, (void**)&data)); in call_cb_and_delete_ref()
27 NODE_API_CALL_RETURN_VOID(env, in call_cb_and_delete_ref()
28 napi_get_reference_value(env, *optional_ref, &js_cb)); in call_cb_and_delete_ref()
29 NODE_API_CALL_RETURN_VOID(env, napi_get_undefined(env, &undefined)); in call_cb_and_delete_ref()
30 NODE_API_CALL_RETURN_VOID(env, in call_cb_and_delete_ref()
31 napi_call_function(env, undefined, js_cb, 0, NULL, NULL)); in call_cb_and_delete_ref()
32 NODE_API_CALL_RETURN_VOID(env, napi_delete_reference(env, *optional_ref)); in call_cb_and_delete_ref()
[all …]
/third_party/node/test/js-native-api/test_conversions/
Dtest_conversions.c5 static napi_value AsBool(napi_env env, napi_callback_info info) { in AsBool() argument
8 NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL)); in AsBool()
11 NODE_API_CALL(env, napi_get_value_bool(env, args[0], &value)); in AsBool()
14 NODE_API_CALL(env, napi_get_boolean(env, value, &output)); in AsBool()
19 static napi_value AsInt32(napi_env env, napi_callback_info info) { in AsInt32() argument
22 NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL)); in AsInt32()
25 NODE_API_CALL(env, napi_get_value_int32(env, args[0], &value)); in AsInt32()
28 NODE_API_CALL(env, napi_create_int32(env, value, &output)); in AsInt32()
33 static napi_value AsUInt32(napi_env env, napi_callback_info info) { in AsUInt32() argument
36 NODE_API_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL)); in AsUInt32()
[all …]
/third_party/vulkan-loader/tests/
Dloader_envvar_tests.cpp51 FrameworkEnvironment env{}; in TEST() local
52env.add_icd(TestICDDetails(TEST_ICD_PATH_EXPORT_NONE).set_discovery_type(ManifestDiscoveryType::en… in TEST()
54 InstWrapper inst{env.vulkan_functions}; in TEST()
57 ASSERT_EQ(env.get_test_icd(0).called_vk_icd_gipa, CalledICDGIPA::vk_gipa); in TEST()
63 FrameworkEnvironment env{}; in TEST() local
64env.add_icd(TestICDDetails(TEST_ICD_PATH_EXPORT_ICD_GIPA).set_discovery_type(ManifestDiscoveryType… in TEST()
66 InstWrapper inst{env.vulkan_functions}; in TEST()
69 ASSERT_EQ(env.get_test_icd(0).called_vk_icd_gipa, CalledICDGIPA::vk_icd_gipa); in TEST()
74 FrameworkEnvironment env{}; in TEST() local
75 env.add_icd( in TEST()
[all …]

12345678910>>...106