Home
last modified time | relevance | path

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

12

/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/tests/tests/jni/libjnitest/
Dandroid_jni_cts_LinkerNamespacesTest.cpp99 void *handle = dlopen(path.c_str(), RTLD_NOW); in try_dlopen()
128 ScopedLocalRef<jstring> jpath(env, env->NewStringUTF(path.c_str())); in load_library()
138 std::string baselib = basename(path.c_str()); in load_library()
139 ScopedLocalRef<jstring> jname(env, env->NewStringUTF(baselib.c_str())); in load_library()
147 const std::string java_load_error(ScopedUtfChars(env, java_load_errmsg).c_str()); in load_library()
153 const std::string java_load_lib_error(ScopedUtfChars(env, java_load_lib_errmsg).c_str()); in load_library()
165 void* handle = dlopen(path.c_str(), RTLD_NOW); in load_library()
189 std::string baselib = basename(path.c_str()); in check_lib()
251 std::unique_ptr<DIR, decltype(&closedir)> dirp(opendir(dir.c_str()), closedir); in check_path()
266 if (is_directory(path.c_str())) { in check_path()
[all …]
Dandroid_jni_cts_BasicLoaderTest.cpp74 return env->NewStringUTF(error_str.c_str()); in Java_android_jni_cts_BasicLoaderTestHelper_nativeRunTests()
/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()
Dtest_status.cpp134 AStatus_fromExceptionCodeWithMessage(exception, kMessage.c_str()); in TEST()
152 AStatus_fromServiceSpecificErrorWithMessage(error, kMessage.c_str()); in TEST()
184 AStatus_fromExceptionCodeWithMessage(exception, kMessage.c_str()); in TEST()
/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/graphics/jni/
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()
Dandroid_graphics_cts_VulkanFeaturesTest.cpp28 return env->NewStringUTF(vkjson.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetVkJSON()
Dandroid_graphics_cts_BasicVulkanGpuTest.cpp142 formatDesc.name.c_str(), x + y, x, y, framePixels[offset]); in verifyBasicBufferImport()
/cts/tests/tests/permission/jni/
Dandroid_permission_cts_FileUtils.cpp59 int res = statLinks == true ? lstat(cPath.c_str(), &s) in android_permission_cts_FileUtils_getFileStatus()
60 : stat(cPath.c_str(), &s); in android_permission_cts_FileUtils_getFileStatus()
103 ssize_t result = getxattr(cPath.c_str(), XATTR_NAME_CAPS, &capData, in isPermittedCapBitSet()
110 cPath.c_str(), result, strerror(errno), errno); in isPermittedCapBitSet()
187 ssize_t result = getxattr(cPath.c_str(), XATTR_NAME_CAPS, &actualCapData, in android_permission_cts_FileUtils_CapabilitySet_fileHasOnly()
194 cPath.c_str(), result, strerror(errno), errno); in android_permission_cts_FileUtils_CapabilitySet_fileHasOnly()
/cts/hostsidetests/jvmti/base/jni/
Dtracking.cpp38 return utf_chars.c_str(); in GetClassName()
54 object_klass_descriptor.c_str(), in ObjectAllocated()
55 object_klass_descriptor2.c_str(), in ObjectAllocated()
105 return env->NewStringUTF(result.c_str()); in Java_android_jvmti_cts_JvmtiTrackingTest_getAndResetAllocationTrackingString()
Dcts_logging.cpp43 JvmtiErrorToException(env, jvmti_env, set_flag_ext(jvmti_env, data.c_str(), true)); in Java_android_jvmti_cts_JvmtiRunTestBasedTest_setupExtraLogging()
/cts/tests/tests/selinux/common/jni/
Dandroid_security_SELinuxTargetSdkTest.cpp74 if (path.c_str() == NULL) { in getFileContext()
79 int ret = getfilecon(path.c_str(), &tmp); in getFileContext()
/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/gputools/apps/jni/
Dandroid_gputools_cts_RootlessGpuDebug.cpp128 return env->NewStringUTF(result.c_str()); in android_gputools_cts_RootlessGpuDebug_nativeInitVulkan()
137 return env->NewStringUTF(result.c_str()); in android_gputools_cts_RootlessGpuDebug_nativeInitGLES()
/cts/tests/tests/net/native/dns/
DNativeDnsAsyncTest.cpp90 EXPECT_EQ(1, inet_pton(ipType, answer.c_str(), pton)); in expectAnswersValid()
217 exceedingLabelQuery.c_str(), ns_c_in, ns_t_a, 0); in TEST()
220 exceedingDomainQuery.c_str(), ns_c_in, ns_t_a, 0); in TEST()
/cts/tools/cts-device-info/jni/
Dcom_android_cts_deviceinfo_VulkanDeviceInfo.cpp27 return env->NewStringUTF(vkjson.c_str()); in GetVkJSON()
/cts/hostsidetests/statsd/apps/statsdapp/jni/
Dalloc_stress_activity.cpp44 LOG(ss.str().c_str()); in Java_com_android_server_cts_device_statsd_StatsdCtsBackgroundService_cmain()
/cts/tests/vr/jni/
DVrExtensionsJni.cpp244 memcpy(data, test_string.c_str(), test_string.size()); in testExternalBuffer()
253 memcpy(data, test_string.c_str(), test_string.size()); in testExternalBuffer()
260 ASSERT_EQ(strncmp(static_cast<char*>(data), test_string.c_str(), in testExternalBuffer()
501 LOGV("Filtered Result: %8.8X Flags =%s", *middle_pixel, flag_string.str().c_str()); in testLinearMagnification()
590 LOGV("Blending Result: %8.8X Flags =%s", *final_color, flag_string.str().c_str()); in testFramebufferBlending()
/cts/tests/signature/api-check/src/jni/
Dclassdescriptors.cpp178 env->ThrowNew(rt_exception, error.c_str()); in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
202 env->ThrowNew(rt_exception, error.c_str()); in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp176 ALOGE("Received message: %s", memoryAsHexString(&clientMsg, clientMsg.size()).c_str()); in checkMessage()
178 memoryAsHexString(&sanitizedClientMsg, clientMsg.size()).c_str()); in checkMessage()
/cts/tests/tests/media/libmediandkjni/
Dnative_media_utils.cpp261 ALOGI("RESULT: %s", debugStr.c_str()); in checkDynamicKeyFrames()
322 ALOGI("RESULT: %s", debugStr.c_str()); in checkDynamicBitrate()
/cts/tests/camera/libctscamera2jni/
Ddng-validate-jni.cpp454 ALOGE("**|%s", line.c_str()); in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative()
456 ALOGI(" |%s", line.c_str()); in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative()
/cts/common/device-side/nativetesthelper/jni/
Dgtest_wrapper.cpp87 ScopedLocalRef<jstring> jTestName(env, env->NewStringUTF(mangledName.c_str())); in createTestDescription()
132 ScopedLocalRef<jstring> jmessage(mEnv, mEnv->NewStringUTF(error.c_str())); in OnTestEnd()

12