Home
last modified time | relevance | path

Searched refs:c_str (Results 1 – 25 of 67) sorted by relevance

123

/cts/tests/signature/dex-checker/
Ddex-checker.cpp35 const char* c_str() const { in c_str() function in ScopedUtfChars
50 jfieldID fid = env->GetFieldID(klass, utf_name.c_str(), utf_type.c_str()); in Java_android_signature_cts_DexMemberChecker_getField_1JNI()
64 jfieldID fid = env->GetStaticFieldID(klass, utf_name.c_str(), utf_type.c_str()); in Java_android_signature_cts_DexMemberChecker_getStaticField_1JNI()
78 jmethodID mid = env->GetMethodID(klass, utf_name.c_str(), utf_signature.c_str()); in Java_android_signature_cts_DexMemberChecker_getMethod_1JNI()
92 jmethodID mid = env->GetStaticMethodID(klass, utf_name.c_str(), utf_signature.c_str()); in Java_android_signature_cts_DexMemberChecker_getStaticMethod_1JNI()
/cts/tests/tests/security/jni/
Dandroid_security_cts_MMapExecutableTest.cpp42 int fd = open(filename.c_str(), O_RDONLY); in mmap_executable()
44 ALOGE("open %s: %s", filename.c_str(), strerror(errno)); in mmap_executable()
50 ALOGE("fstat %s: %s", filename.c_str(), strerror(errno)); in mmap_executable()
55 ALOGE("file %s is too small", filename.c_str()); in mmap_executable()
63 ALOGE("mmap %s: %s", filename.c_str(), strerror(errno)); in mmap_executable()
68 ALOGE("munmap %s: %s", filename.c_str(), strerror(errno)); in mmap_executable()
/cts/hostsidetests/appsecurity/test-apps/ApkVerityTestApp/jni/
Dandroid_appsecurity_cts_apkveritytestapp_InstalledFilesCheck.cpp42 if (statx(AT_FDCWD, path.c_str(), 0 /* flags */, STATX_ALL, &out) != 0) { in Java_android_appsecurity_cts_apkveritytestapp_InstalledFilesCheck_hasFsverityNative()
43 ALOGE("statx failed at %s", path.c_str()); in Java_android_appsecurity_cts_apkveritytestapp_InstalledFilesCheck_hasFsverityNative()
53 int fd = open(path.c_str(), O_RDONLY | O_CLOEXEC); in Java_android_appsecurity_cts_apkveritytestapp_InstalledFilesCheck_hasFsverityNative()
55 ALOGE("failed to open %s", path.c_str()); in Java_android_appsecurity_cts_apkveritytestapp_InstalledFilesCheck_hasFsverityNative()
64 ALOGE("ioctl(FS_IOC_GETFLAGS) failed at %s", path.c_str()); in Java_android_appsecurity_cts_apkveritytestapp_InstalledFilesCheck_hasFsverityNative()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_VulkanFeaturesTest.cpp39 return env->NewStringUTF(vkjson.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetVkJSON()
57 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
62 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
94 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
103 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
112 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
133 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
154 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport()
159 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport()
191 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPCpuOnlySupport()
[all …]
Dandroid_graphics_fonts_cts_SystemFonts.cpp51 const char* c_str() const { in c_str() function in __anon6417662e0111::ScopedUtfChars
116 AFontMatcher_setLocales(mMatcher.get(), locales.c_str()); in setLocales()
128 AFont* font = AFontMatcher_match(mMatcher.get(), familyName.c_str(), text.data(), in match()
197 .setLocales(langTagsChars.c_str()) in nMatchFamilyStyleCharacter()
199 .match(familyNameChars.c_str(), utf16).first); in nMatchFamilyStyleCharacter()
211 .setLocales(langTagsChars.c_str()) in nMatchFamilyStyleCharacter_runLength()
213 .match(familyNameChars.c_str(), utf16).second; in nMatchFamilyStyleCharacter_runLength()
/cts/hostsidetests/graphics/gpuprofiling/app/
Dandroid_graphics_cts_GpuCounters.cpp60 ALOGI("Trying %s", producerPath.c_str()); in startCounterProducer()
61 void *handle = dlopen(producerPath.c_str(), RTLD_GLOBAL); in startCounterProducer()
75 ALOGE("Did not find the producer library %s", producerPath.c_str()); in startCounterProducer()
82 ALOGI("Producer %s has exited.", producerPath.c_str()); in startCounterProducer()
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dutilities.cpp81 jclass cl = env->FindClass(clazz.c_str()); in callStaticJavaMethodForObject()
83 __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, "No class %s", clazz.c_str()); in callStaticJavaMethodForObject()
87 jmethodID mid = env->GetStaticMethodID(cl, method.c_str(), type.c_str()); in callStaticJavaMethodForObject()
89 __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, "No method id %s", method.c_str()); in callStaticJavaMethodForObject()
/cts/tests/aslr/src/
DAslrMallocTest.cpp86 ASSERT_TRUE(execl(self_.c_str(), self_.c_str(), argPrint.c_str(), in GetAddress()
87 android::base::StringPrintf("%zu", allocSize).c_str(), in GetAddress()
102 ASSERT_TRUE(android::base::ParseUint(output.c_str(), &address)); in GetAddress()
/cts/tests/tests/jni/libjnitest/
Dandroid_jni_cts_LinkerNamespacesTest.cpp117 void *handle = dlopen(path.c_str(), RTLD_NOW); in try_dlopen()
146 ScopedLocalRef<jstring> jpath(env, env->NewStringUTF(path.c_str())); in load_library()
156 std::string baselib = basename(path.c_str()); in load_library()
157 ScopedLocalRef<jstring> jname(env, env->NewStringUTF(baselib.c_str())); in load_library()
169 const std::string java_load_error(ScopedUtfChars(env, java_load_errmsg).c_str()); in load_library()
174 const std::string java_load_lib_error(ScopedUtfChars(env, java_load_lib_errmsg).c_str()); in load_library()
186 void* handle = dlopen(path.c_str(), RTLD_NOW); in load_library()
228 std::string baselib = basename(path.c_str()); in check_lib()
294 std::unique_ptr<DIR, decltype(&closedir)> dirp(opendir(dir.c_str()), closedir); in check_path()
319 if (lstat(path.c_str(), &sb) != -1) { in check_path()
[all …]
/cts/tests/media/jni/
DNativeMediaFormatUnitTest.cpp157 if (strstr(toString, std::to_string(it.first + offset).c_str()) == nullptr) { in validateFormatInt32()
159 std::to_string(it.first + offset).c_str()); in validateFormatInt32()
195 if (strstr(toString, std::to_string(it.first + offset).c_str()) == nullptr) { in validateFormatInt64()
197 std::to_string(it.first + offset).c_str()); in validateFormatInt64()
233 if (strstr(toString, std::to_string(it.first + offset).c_str()) == nullptr) { in validateFormatFloat()
235 std::to_string(it.first + offset).c_str()); in validateFormatFloat()
272 if (strstr(toString, std::to_string(it.first + offset).c_str()) == nullptr) { in validateFormatDouble()
274 std::to_string(it.first + offset).c_str()); in validateFormatDouble()
310 if (strstr(toString, std::to_string(it.first + offset).c_str()) == nullptr) { in validateFormatSize()
312 std::to_string(it.first + offset).c_str()); in validateFormatSize()
[all …]
DNativeMediaCommon.cpp201 AMediaFormat_setInt32(fmt, keyStr.c_str(), std::stoi(valueStr)); in deSerializeMediaFormat()
203 AMediaFormat_setFloat(fmt, keyStr.c_str(), std::stof(valueStr)); in deSerializeMediaFormat()
205 AMediaFormat_setString(fmt, keyStr.c_str(), valueStr.c_str()); in deSerializeMediaFormat()
207 ALOGE("unrecognized type for key %s", keyStr.c_str()); in deSerializeMediaFormat()
DNativeMediaCommon.h29 auto size = std::snprintf(nullptr, 0, format.c_str(), args...); in StringFormat()
32 std::snprintf(buffer.data(), buffer.size(), format.c_str(), args...); in StringFormat()
DNativeCodecTestBase.h36 ALOGE("%s", msg.c_str()); \
44 ALOGE("%s", (msg).c_str()); \
51 ALOGE("%s", (msg).c_str()); \
58 ALOGE("%s", (msg).c_str()); \
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/
Dpoc.cpp109 std::string nstr = nm.c_str(); in get_sensor_list()
111 std::string vstr = vd.c_str(); in get_sensor_list()
113 printf("%s : %s, handle %d\n", nstr.c_str(), vstr.c_str(), handle); in get_sensor_list()
/cts/hostsidetests/adpf/app/hintsession/src/cpp/
DShader.cpp68 GLint positionAttribute = glGetAttribLocation(program, positionAttributeName.c_str()); in loadShader()
69 GLint uvAttribute = glGetAttribLocation(program, uvAttributeName.c_str()); in loadShader()
71 glGetUniformLocation(program, projectionMatrixUniformName.c_str()); in loadShader()
94 auto *shaderRawString = (GLchar *)shaderSource.c_str(); in loadShader()
DJNIManager.cpp36 env->SetObjectArrayElement(namesOut, index, env->NewStringUTF(item.first.c_str())); in sendResultsToJava()
37 env->SetObjectArrayElement(valuesOut, index, env->NewStringUTF(item.second.c_str())); in sendResultsToJava()
/cts/tests/tests/view/jni/
Dandroid_view_cts_InputDeviceKeyLayoutMapTest.cpp75 if (keyLayout.c_str() == nullptr) { in android_view_cts_nativeLoadKeyLayout()
78 std::map<int, std::string> map = loadGenericKl(keyLayout.c_str()); in android_view_cts_nativeLoadKeyLayout()
97 env->CallObjectMethod(keyLayoutMap, hashMapPutID, env->NewStringUTF(label.c_str()), in android_view_cts_nativeLoadKeyLayout()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0420/
Dpoc.cpp54 if (0 == strcmp(driverPath.c_str(), UpdatableDriverPath.c_str())) { in main()
/cts/hostsidetests/jvmti/base/jni/
Dtracking.cpp38 return utf_chars.c_str(); in GetClassName()
51 object_klass_descriptor.c_str(), in RecordAllocationEvent()
52 object_klass_descriptor2.c_str(), in RecordAllocationEvent()
140 return env->NewStringUTF(result.c_str()); in Java_android_jvmti_cts_JvmtiTrackingTest_getAndResetAllocationTrackingString()
/cts/hostsidetests/sustainedperf/shadertoy_android/jni/
Dutils.cpp87 LOGE("OpenGL error : %s : %s (%#08x)\n", msg.c_str(), str.c_str(), e); in GLCheckErrorStr()
/cts/hostsidetests/incrementalinstall/app/nativelibcompressed/src/cpp/
Dcompressednative_lib.cpp8 return env->NewStringUTF(str.c_str()); in Java_android_incrementalinstall_incrementaltestapp_nativelib_CompressedNativeLib_getString()
/cts/hostsidetests/incrementalinstall/app/nativelibuncompressed/src/cpp/
Duncompressednative_lib.cpp8 return env->NewStringUTF(str.c_str()); in Java_android_incrementalinstall_incrementaltestapp_nativelib_UncompressedNativeLib_getString()
/cts/hostsidetests/gwp_asan/common/jni/
Dgwp_asan_cts_library.cpp51 sscanf(line.c_str(), "%zx-%zx", &map_start, &map_end) == 2) { in get_gwp_asan_ranges()
55 line.c_str()); in get_gwp_asan_ranges()
/cts/tools/cts-device-info/jni/
Dcom_android_cts_deviceinfo_VulkanDeviceInfo.cpp27 return env->NewStringUTF(vkjson.c_str()); in GetVkJSON()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-137878930/
Dpoc.cpp74 ALOGV("found drm@1.0 IDrmFactory %s", instance.c_str()); in makeDrmFactories()
87 ALOGV("found drm@1.1 IDrmFactory %s", instance.c_str()); in makeDrmFactories()
100 factory->createPlugin(uuid, appPackageName.c_str(), in makeDrmPlugin()

123