| /third_party/skia/m133/third_party/externals/harfbuzz/src/ |
| D | hb-cff-interp-cs-common.hh | 214 template <typename ENV, typename PARAM> 217 static void rmoveto (ENV &env, PARAM& param) {} in rmoveto() 218 static void hmoveto (ENV &env, PARAM& param) {} in hmoveto() 219 static void vmoveto (ENV &env, PARAM& param) {} in vmoveto() 220 static void rlineto (ENV &env, PARAM& param) {} in rlineto() 221 static void hlineto (ENV &env, PARAM& param) {} in hlineto() 222 static void vlineto (ENV &env, PARAM& param) {} in vlineto() 223 static void rrcurveto (ENV &env, PARAM& param) {} in rrcurveto() 224 static void rcurveline (ENV &env, PARAM& param) {} in rcurveline() 225 static void rlinecurve (ENV &env, PARAM& param) {} in rlinecurve() [all …]
|
| /third_party/skia/third_party/externals/harfbuzz/src/ |
| D | hb-cff-interp-cs-common.hh | 225 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 …]
|
| /third_party/vulkan-loader/tests/ |
| D | loader_envvar_tests.cpp | 36 FrameworkEnvironment env{}; in TEST() local 37 …env.add_icd(TestICDDetails(TEST_ICD_PATH_EXPORT_NONE).set_discovery_type(ManifestDiscoveryType::en… in TEST() 39 InstWrapper inst{env.vulkan_functions}; in TEST() 42 ASSERT_EQ(env.get_test_icd(0).called_vk_icd_gipa, CalledICDGIPA::vk_gipa); in TEST() 48 FrameworkEnvironment env{}; in TEST() local 49 …env.add_icd(TestICDDetails(TEST_ICD_PATH_EXPORT_ICD_GIPA).set_discovery_type(ManifestDiscoveryType… in TEST() 51 InstWrapper inst{env.vulkan_functions}; in TEST() 54 ASSERT_EQ(env.get_test_icd(0).called_vk_icd_gipa, CalledICDGIPA::vk_icd_gipa); in TEST() 59 FrameworkEnvironment env{}; in TEST() local 60 env.add_icd( in TEST() [all …]
|
| D | loader_layer_tests.cpp | 30 void CheckLogForLayerString(FrameworkEnvironment& env, const char* implicit_layer_name, bool check_… in CheckLogForLayerString() argument 32 InstWrapper inst{env.vulkan_functions}; in CheckLogForLayerString() 33 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in CheckLogForLayerString() 36 … ASSERT_TRUE(env.debug_log.find(std::string("Insert instance layer \"") + implicit_layer_name)); in CheckLogForLayerString() 38 … ASSERT_FALSE(env.debug_log.find(std::string("Insert instance layer \"") + implicit_layer_name)); in CheckLogForLayerString() 41 env.debug_log.clear(); in CheckLogForLayerString() 47 FrameworkEnvironment env; in TEST() local 48 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)); in TEST() 54 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST() 61 auto layers = env.GetLayerProperties(1); in TEST() [all …]
|
| D | loader_settings_tests.cpp | 32 std::string get_settings_location_log_message([[maybe_unused]] FrameworkEnvironment const& env, in get_settings_location_log_message() argument 36 …return s + (env.get_folder(ManifestLocation::settings_location).location() / "vk_loader_settings.j… in get_settings_location_log_message() 49 const char* add_layer_and_settings(FrameworkEnvironment& env, const char* layer_name, LayerType lay… in add_layer_and_settings() argument 51 env.add_implicit_layer( in add_layer_and_settings() 55 … .set_disable_environment("BADGER" + std::to_string(env.layers.size()))), in add_layer_and_settings() 56 std::string(layer_name) + std::to_string(env.layers.size()) + ".json"); in add_layer_and_settings() 58 env.add_implicit_layer( in add_layer_and_settings() 62 … .set_disable_environment("BADGER" + std::to_string(env.layers.size())) in add_layer_and_settings() 63 … .set_enable_environment("MUSHROOM" + std::to_string(env.layers.size()))), in add_layer_and_settings() 64 std::string(layer_name) + std::to_string(env.layers.size()) + ".json"); in add_layer_and_settings() [all …]
|
| D | loader_handle_validation_tests.cpp | 43 FrameworkEnvironment env{}; in TEST() local 44 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device("physical_device_0"); in TEST() 46 InstWrapper instance(env.vulkan_functions); in TEST() 52 …ASSERT_DEATH(env.vulkan_functions.vkEnumeratePhysicalDevices(bad_instance, &returned_physical_coun… in TEST() 57 FrameworkEnvironment env{}; in TEST() local 58 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device("physical_device_0"); in TEST() 60 InstWrapper instance(env.vulkan_functions); in TEST() 64 … ASSERT_DEATH(env.vulkan_functions.vkGetInstanceProcAddr(bad_instance, "vkGetBufferDeviceAddress"), in TEST() 69 FrameworkEnvironment env{}; in TEST() local 70 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device("physical_device_0"); in TEST() [all …]
|
| D | loader_wsi_tests.cpp | 36 FrameworkEnvironment env{}; in TEST() local 37 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)); in TEST() 38 auto& cur_icd = env.get_test_icd(0); in TEST() 41 InstWrapper inst{env.vulkan_functions}; in TEST() 45 InstWrapper inst2{env.vulkan_functions}; in TEST() 48 …ASSERT_EQ(nullptr, env.vulkan_functions.vkGetInstanceProcAddr(inst2.inst, "vkCreateWin32SurfaceKHR… in TEST() 53 FrameworkEnvironment env{}; in TEST() local 54 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)); in TEST() 55 auto& cur_icd = env.get_test_icd(0); in TEST() 61 InstWrapper inst{env.vulkan_functions}; in TEST() [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_node/binding/ |
| D | Errors.cpp | 50 static Napi::Error New(Napi::Env env, in New() argument 54 auto err = Napi::Error::New(env); 63 Napi::Error Errors::HierarchyRequestError(Napi::Env env) { in HierarchyRequestError() argument 64 return New(env, kHierarchyRequestError); in HierarchyRequestError() 67 Napi::Error Errors::WrongDocumentError(Napi::Env env) { in WrongDocumentError() argument 68 return New(env, kWrongDocumentError); in WrongDocumentError() 71 Napi::Error Errors::InvalidCharacterError(Napi::Env env) { in InvalidCharacterError() argument 72 return New(env, kInvalidCharacterError); in InvalidCharacterError() 75 Napi::Error Errors::NoModificationAllowedError(Napi::Env env) { in NoModificationAllowedError() argument 76 return New(env, kNoModificationAllowedError); in NoModificationAllowedError() [all …]
|
| D | GPUDevice.cpp | 47 std::variant<interop::GPUDeviceLostReason> getReason(Napi::Env env) override { in getReason() argument 50 std::string getMessage(Napi::Env) override { in getMessage() argument 65 std::string getMessage(Napi::Env) override { in getMessage() argument 78 GPUDevice::GPUDevice(Napi::Env env, wgpu::Device device) in GPUDevice() argument 79 : env_(env), device_(device), async_(std::make_shared<AsyncRunner>(env, device)) { in GPUDevice() 115 interop::Interface<interop::GPUSupportedFeatures> GPUDevice::getFeatures(Napi::Env env) { in getFeatures() argument 118 bool has(Napi::Env, std::string feature) override { in getFeatures() argument 121 std::vector<std::string> keys(Napi::Env) override { in getFeatures() argument 125 return interop::GPUSupportedFeatures::Create<Features>(env); in getFeatures() 128 interop::Interface<interop::GPUSupportedLimits> GPUDevice::getLimits(Napi::Env env) { in getLimits() argument [all …]
|
| /third_party/backends/japi/ |
| D | Sane.c | 60 (JNIEnv *env, jobject jobj, jintArray versionCode) in Java_Sane_init() argument 68 len = (*env)->GetArrayLength(env, versionCode); in Java_Sane_init() 69 versionCodeBody = (*env)->GetIntArrayElements(env, versionCode, 0); in Java_Sane_init() 72 (*env)->ReleaseIntArrayElements(env, versionCode, versionCodeBody, 0); in Java_Sane_init() 81 (JNIEnv *env, jobject jobj) in Java_Sane_exit() argument 93 (JNIEnv *env, jobject jobj, jobjectArray devList, jboolean localOnly) in Java_Sane_getDevicesNative() argument 109 devListLen = (*env)->GetArrayLength(env, devList); in Java_Sane_getDevicesNative() 114 devObj = (*env)->GetObjectArrayElement(env, devList, i); in Java_Sane_getDevicesNative() 115 devClass = (*env)->GetObjectClass(env, devObj); in Java_Sane_getDevicesNative() 117 fid = (*env)->GetFieldID(env, devClass, "name", in Java_Sane_getDevicesNative() [all …]
|
| /third_party/ffmpeg/libavcodec/ |
| D | mediacodec_wrapper.c | 300 #define JNI_GET_ENV_OR_RETURN(env, log_ctx, ret) do { \ argument 301 (env) = ff_jni_get_env(log_ctx); \ 302 if (!(env)) { \ 307 #define JNI_GET_ENV_OR_RETURN_VOID(env, log_ctx) do { \ argument 308 (env) = ff_jni_get_env(log_ctx); \ 309 if (!(env)) { \ 318 JNIEnv *env = NULL; in ff_AMediaCodecProfile_getProfileFromAVCodecContext() local 322 JNI_GET_ENV_OR_RETURN(env, avctx, -1); in ff_AMediaCodecProfile_getProfileFromAVCodecContext() 324 if (ff_jni_init_jfields(env, &jfields, jni_amediacodeclist_mapping, 0, avctx) < 0) { in ff_AMediaCodecProfile_getProfileFromAVCodecContext() 370 ret = (*env)->GetStaticIntField(env, jfields.codec_profile_level_class, field_id); in ff_AMediaCodecProfile_getProfileFromAVCodecContext() [all …]
|
| D | ffjni.c | 55 JNIEnv *env = NULL; in ff_jni_get_env() local 69 if ((env = pthread_getspecific(current_env)) != NULL) { in ff_jni_get_env() 73 ret = (*java_vm)->GetEnv(java_vm, (void **)&env, JNI_VERSION_1_6); in ff_jni_get_env() 76 if ((*java_vm)->AttachCurrentThread(java_vm, &env, NULL) != 0) { in ff_jni_get_env() 78 env = NULL; in ff_jni_get_env() 80 pthread_setspecific(current_env, env); in ff_jni_get_env() 95 return env; in ff_jni_get_env() 98 char *ff_jni_jstring_to_utf_chars(JNIEnv *env, jstring string, void *log_ctx) in ff_jni_jstring_to_utf_chars() argument 109 utf_chars = (*env)->GetStringUTFChars(env, string, ©); in ff_jni_jstring_to_utf_chars() 110 if ((*env)->ExceptionCheck(env)) { in ff_jni_jstring_to_utf_chars() [all …]
|
| /third_party/skia/third_party/externals/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 …]
|
| /third_party/skia/m133/third_party/externals/libjpeg-turbo/ |
| D | turbojpeg-jni.c | 39 if (!(f) || (*env)->ExceptionCheck(env)) { \ 51 jclass _exccls = (*env)->FindClass(env, exceptionClass); \ 54 (*env)->ThrowNew(env, _exccls, msg); \ 64 BAILIF0(_errstr = (*env)->NewStringUTF(env, tjGetErrorStr2(handle))); \ 65 BAILIF0(_exccls = (*env)->FindClass(env, \ 67 BAILIF0(_excid = (*env)->GetMethodID(env, _exccls, "<init>", \ 69 BAILIF0(_excobj = (*env)->NewObject(env, _exccls, _excid, _errstr, \ 71 (*env)->Throw(env, _excobj); \ 81 jclass _cls = (*env)->GetObjectClass(env, obj); \ 85 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "handle", "J")); \ [all …]
|
| /third_party/backends/testsuite/tools/data/ |
| D | udev+acl.ref | 27 ENV{DEVTYPE}=="usb_device", GOTO="libsane_create_usb_dev" 37 # ENV{DEVTYPE}=="usb_device", MODE="0664", OWNER="root", GROUP="root" 43 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0101", ENV{libsane_matched}="yes" 45 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0105", ENV{libsane_matched}="yes" 47 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0201", ENV{libsane_matched}="yes" 49 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0205", ENV{libsane_matched}="yes" 51 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0305", ENV{libsane_matched}="yes" 53 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0401", ENV{libsane_matched}="yes" 55 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0405", ENV{libsane_matched}="yes" 57 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0505", ENV{libsane_matched}="yes" [all …]
|
| D | udev.ref | 27 ENV{DEVTYPE}=="usb_device", GOTO="libsane_create_usb_dev" 37 # ENV{DEVTYPE}=="usb_device", MODE="0664", OWNER="root", GROUP="root" 43 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0101", MODE="0664", GROUP="scanner", ENV{libsane_matched}… 45 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0105", MODE="0664", GROUP="scanner", ENV{libsane_matched}… 47 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0201", MODE="0664", GROUP="scanner", ENV{libsane_matched}… 49 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0205", MODE="0664", GROUP="scanner", ENV{libsane_matched}… 51 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0305", MODE="0664", GROUP="scanner", ENV{libsane_matched}… 53 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0401", MODE="0664", GROUP="scanner", ENV{libsane_matched}… 55 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0405", MODE="0664", GROUP="scanner", ENV{libsane_matched}… 57 ATTR{idVendor}=="03f0", ATTR{idProduct}=="0505", MODE="0664", GROUP="scanner", ENV{libsane_matched}… [all …]
|
| /third_party/node/src/ |
| D | js_native_api.h | 52 napi_get_last_error_info(napi_env env, 56 NAPI_EXTERN napi_status napi_get_undefined(napi_env env, napi_value* result); 57 NAPI_EXTERN napi_status napi_get_null(napi_env env, napi_value* result); 58 NAPI_EXTERN napi_status napi_get_global(napi_env env, napi_value* result); 59 NAPI_EXTERN napi_status napi_get_boolean(napi_env env, 64 NAPI_EXTERN napi_status napi_create_object(napi_env env, napi_value* result); 65 NAPI_EXTERN napi_status napi_create_array(napi_env env, napi_value* result); 66 NAPI_EXTERN napi_status napi_create_array_with_length(napi_env env, 69 NAPI_EXTERN napi_status napi_create_double(napi_env env, 72 NAPI_EXTERN napi_status napi_create_int32(napi_env env, [all …]
|
| /third_party/cares/src/lib/ |
| D | ares_android.c | 50 static jclass jni_get_class(JNIEnv *env, const char *path) in jni_get_class() argument 54 if (env == NULL || path == NULL || *path == '\0') { in jni_get_class() 58 cls = (*env)->FindClass(env, path); in jni_get_class() 59 if ((*env)->ExceptionOccurred(env)) { in jni_get_class() 60 (*env)->ExceptionClear(env); in jni_get_class() 66 static jmethodID jni_get_method_id(JNIEnv *env, jclass cls, in jni_get_method_id() argument 71 if (env == NULL || cls == NULL || func_name == NULL || *func_name == '\0' || in jni_get_method_id() 76 mid = (*env)->GetMethodID(env, cls, func_name, signature); in jni_get_method_id() 77 if ((*env)->ExceptionOccurred(env)) { in jni_get_method_id() 78 (*env)->ExceptionClear(env); in jni_get_method_id() [all …]
|
| /third_party/vixl/ |
| D | SConstruct | 131 def modifiable_flags_handler(env): 132 env['modifiable_flags'] = \ 133 'on' if 'mode' in env and env['mode'] == 'debug' else 'off' 136 def symbols_handler(env): 137 env['symbols'] = 'on' if 'mode' in env and env['mode'] == 'debug' else 'off' 139 def Is32BitHost(env): 140 return env['host_arch'] in ['aarch32', 'i386'] 142 def IsAArch64Host(env): 143 return env['host_arch'] == 'aarch64' 145 def CanTargetA32(env): [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/lite/cmake/ |
| D | lite_options.cmake | 64 if(DEFINED ENV{MSLITE_ENABLE_EXPERIMENTAL_KERNEL}) 65 set(MSLITE_ENABLE_EXPERIMENTAL_KERNEL $ENV{MSLITE_ENABLE_EXPERIMENTAL_KERNEL}) 68 if(DEFINED ENV{MSLITE_GPU_BACKEND}) 69 set(MSLITE_GPU_BACKEND $ENV{MSLITE_GPU_BACKEND}) 71 if(DEFINED ENV{MSLITE_REGISTRY_DEVICE}) 72 set(MSLITE_REGISTRY_DEVICE $ENV{MSLITE_REGISTRY_DEVICE}) 74 if(DEFINED ENV{MSLITE_MICRO_PLATFORM}) 75 set(MSLITE_MICRO_PLATFORM $ENV{MSLITE_MICRO_PLATFORM}) 77 if(DEFINED ENV{MSLITE_ENABLE_NPU}) 78 set(MSLITE_ENABLE_NPU $ENV{MSLITE_ENABLE_NPU}) [all …]
|
| /third_party/skia/third_party/externals/dawn/src/dawn_node/interop/ |
| D | Core.cpp | 25 Result Converter<bool>::FromJS(Napi::Env env, Napi::Value value, bool& out) { in FromJS() argument 32 Napi::Value Converter<bool>::ToJS(Napi::Env env, bool value) { in ToJS() argument 33 return Napi::Value::From(env, value); in ToJS() 36 Result Converter<std::string>::FromJS(Napi::Env env, Napi::Value value, std::string& out) { in FromJS() argument 43 Napi::Value Converter<std::string>::ToJS(Napi::Env env, std::string value) { in ToJS() argument 44 return Napi::Value::From(env, value); in ToJS() 47 Result Converter<int8_t>::FromJS(Napi::Env env, Napi::Value value, int8_t& out) { in FromJS() argument 54 Napi::Value Converter<int8_t>::ToJS(Napi::Env env, int8_t value) { in ToJS() argument 55 return Napi::Value::From(env, value); in ToJS() 58 Result Converter<uint8_t>::FromJS(Napi::Env env, Napi::Value value, uint8_t& out) { in FromJS() argument [all …]
|
| /third_party/vk-gl-cts/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 …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/lite/java/src/main/native/ |
| D | model.cpp | 23 extern "C" JNIEXPORT jlong JNICALL Java_com_mindspore_Model_createModel(JNIEnv *env, jobject thiz) { in Java_com_mindspore_Model_createModel() argument 32 extern "C" JNIEXPORT bool JNICALL Java_com_mindspore_Model_buildByGraph(JNIEnv *env, jobject thiz, … in Java_com_mindspore_Model_buildByGraph() argument 73 extern "C" JNIEXPORT bool JNICALL Java_com_mindspore_Model_buildByBuffer(JNIEnv *env, jobject thiz,… in Java_com_mindspore_Model_buildByBuffer() argument 95 jlong buffer_len = env->GetDirectBufferCapacity(model_buffer); in Java_com_mindspore_Model_buildByBuffer() 96 auto *model_buf = static_cast<char *>(env->GetDirectBufferAddress(model_buffer)); in Java_com_mindspore_Model_buildByBuffer() 106 auto key_len = static_cast<size_t>(env->GetArrayLength(key_str)); in Java_com_mindspore_Model_buildByBuffer() 112 jchar *key_array = env->GetCharArrayElements(key_str, NULL); in Java_com_mindspore_Model_buildByBuffer() 121 env->ReleaseCharArrayElements(key_str, key_array, JNI_ABORT); in Java_com_mindspore_Model_buildByBuffer() 128 auto c_dec_mod = env->GetStringUTFChars(dec_mod, JNI_FALSE); in Java_com_mindspore_Model_buildByBuffer() 129 auto c_cropto_lib_path = env->GetStringUTFChars(cropto_lib_path, JNI_FALSE); in Java_com_mindspore_Model_buildByBuffer() [all …]
|
| D | ms_context.cpp | 26 extern "C" JNIEXPORT jlong JNICALL Java_com_mindspore_config_MSContext_createMSContext(JNIEnv *env,… in Java_com_mindspore_config_MSContext_createMSContext() argument 43 …"C" JNIEXPORT jlong JNICALL Java_com_mindspore_config_MSContext_createDefaultMSContext(JNIEnv *env, in Java_com_mindspore_config_MSContext_createDefaultMSContext() argument 56 std::string ParseAscendDevInfoProvider(JNIEnv *env, jclass clazz_ascend_device_info, jobject ascend… in ParseAscendDevInfoProvider() argument 57 …jmethodID methodID_getProvider = env->GetMethodID(clazz_ascend_device_info, "getProvider", "()Ljav… in ParseAscendDevInfoProvider() 62 jstring rv = (jstring)(env->CallObjectMethod(ascend_device_info_obj, methodID_getProvider, 0)); in ParseAscendDevInfoProvider() 66 const char *c_provider = env->GetStringUTFChars(rv, nullptr); in ParseAscendDevInfoProvider() 67 std::string str_provider(c_provider, env->GetStringLength(rv)); in ParseAscendDevInfoProvider() 68 env->ReleaseStringUTFChars(rv, c_provider); in ParseAscendDevInfoProvider() 75 int ParseAscendDevInfoDeviceID(JNIEnv *env, jclass clazz_ascend_device_info, jobject ascend_device_… in ParseAscendDevInfoDeviceID() argument 76 jmethodID methodID_getDeviceID = env->GetMethodID(clazz_ascend_device_info, "getDeviceID", "()I"); in ParseAscendDevInfoDeviceID() [all …]
|
| /third_party/libjpeg-turbo/ |
| D | strtest.c | 59 char env[3]; in main() local 94 env[0] = 1; in main() 95 env[1] = 2; in main() 96 env[2] = 3; in main() 97 err = GETENV_S(env, 3, NULL); in main() 99 CHECK_VALUE(env[0], 0, "env[0]"); in main() 100 CHECK_VALUE(env[1], 2, "env[1]"); in main() 101 CHECK_VALUE(env[2], 3, "env[2]"); in main() 104 env[0] = 1; in main() 105 env[1] = 2; in main() [all …]
|