Home
last modified time | relevance | path

Searched refs:c_str (Results 1 – 25 of 34) 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.cpp97 void *handle = dlopen(path.c_str(), RTLD_NOW); in try_dlopen()
126 ScopedLocalRef<jstring> jpath(env, env->NewStringUTF(path.c_str())); in load_library()
136 std::string baselib = basename(path.c_str()); in load_library()
137 ScopedLocalRef<jstring> jname(env, env->NewStringUTF(baselib.c_str())); in load_library()
145 const std::string java_load_error(ScopedUtfChars(env, java_load_errmsg).c_str()); in load_library()
151 const std::string java_load_lib_error(ScopedUtfChars(env, java_load_lib_errmsg).c_str()); in load_library()
163 void* handle = dlopen(path.c_str(), RTLD_NOW); in load_library()
187 std::string baselib = basename(path.c_str()); in check_lib()
238 std::unique_ptr<DIR, decltype(&closedir)> dirp(opendir(dir.c_str()), closedir); in check_path()
253 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/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 __anon591119570111::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()
/cts/tests/tests/selinux/common/jni/
Dandroid_security_SELinuxTargetSdkTest.cpp44 if (path.c_str() == NULL) { in getFileContext()
49 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/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_status.cpp131 AStatus_fromExceptionCodeWithMessage(exception, kMessage.c_str()); in TEST()
149 AStatus_fromServiceSpecificErrorWithMessage(error, kMessage.c_str()); in TEST()
181 AStatus_fromExceptionCodeWithMessage(exception, kMessage.c_str()); in TEST()
Dtest_parcel.cpp227 return vector->element.c_str(); in TEST_F()
258 EXPECT_OK(AParcel_writeString(in, kTestcase.c_str(), i)); in TEST_F()
/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/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/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/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/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/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()
/cts/hostsidetests/jvmti/attaching/app/jni/
Dcts_agent.cpp107 std::string tmp = str.c_str(); in Java_android_jvmti_JvmtiActivity_didSeeLoadOf()

12