Home
last modified time | relevance | path

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

12345678910>>...21

/aosp14/system/core/libcutils/
H A Dtrace-dev_test.cpp59 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
73 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
82 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
97 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
108 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
122 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
131 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
146 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
157 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
171 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
[all …]
H A Dproperties_test.cpp133 int len = SetAndGetProperty(maxLengthString.c_str()); in TEST_F()
135 EXPECT_STREQ(maxLengthString.c_str(), mValue); in TEST_F()
147 EXPECT_GT(0, property_set(PROPERTY_TEST_KEY, oneLongerString.c_str())); in TEST_F()
165 EXPECT_STREQ(maxLengthString.c_str(), mValue); in TEST_F()
178 EXPECT_STREQ(maxLengthString.c_str(), mValue); in TEST_F()
191 EXPECT_STREQ(oneCharString.c_str(), mValue); in TEST_F()
204 EXPECT_STREQ(zeroCharString.c_str(), mValue); in TEST_F()
302 " 2", "2 ", "+0", "-0", " +0 ", longMaxString.c_str(), longMinString.c_str(), in TEST_F()
305 longStringOverflow.c_str(), longStringUnderflow.c_str(), in TEST_F()
349 " 2", "2 ", "+0", "-0", " +0 ", intMaxString.c_str(), intMinString.c_str(), in TEST_F()
[all …]
/aosp14/frameworks/base/services/incremental/test/
H A Dpath_test.cpp26 EXPECT_STREQ("", normalize("").c_str()); in TEST()
29 .c_str()); in TEST()
30 EXPECT_STREQ("/a/b", normalize("/a/c/../b").c_str()); in TEST()
44 EXPECT_STREQ("", path::join("", "").c_str()); in TEST()
46 EXPECT_STREQ("/", path::join("", "/").c_str()); in TEST()
47 EXPECT_STREQ("/", path::join("/", "").c_str()); in TEST()
48 EXPECT_STREQ("/", path::join("/", "/").c_str()); in TEST()
49 EXPECT_STREQ("/", path::join("/"s, "/").c_str()); in TEST()
50 EXPECT_STREQ("/", path::join("/"sv, "/").c_str()); in TEST()
53 EXPECT_STREQ("/a/b/c/d", path::join("/a/b/"s, "c", "d").c_str()); in TEST()
[all …]
/aosp14/frameworks/base/startop/view_compiler/
H A Djava_lang_builder.cc55 package_.c_str(), in Start()
56 layout_name_.c_str()) in Start()
80 class_name.c_str(), in StartView()
81 view_var.c_str(), in StartView()
82 parent.c_str(), in StartView()
83 class_name.c_str()) in StartView()
85 view_var.c_str(), in StartView()
86 view_var.c_str(), in StartView()
87 class_name.c_str()); in StartView()
91 parent.c_str()); in StartView()
[all …]
/aosp14/system/core/debuggerd/libdebuggerd/test/
H A Ddump_memory_test.cpp195 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F()
215 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F()
234 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F()
247 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F()
266 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F()
292 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F()
313 getFakeLogPrint().c_str()); in TEST_F()
317 getFakeLogPrint().c_str()); in TEST_F()
321 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F()
374 ASSERT_STREQ("", getFakeLogBuf().c_str()); in TEST_F()
[all …]
/aosp14/frameworks/base/core/jni/
H A Dandroid_os_SELinux.cpp229 if (path.c_str() == NULL) { in setFileCon()
234 if (context.c_str() == NULL) { in setFileCon()
243 ALOGV("setFileCon(%s, %s) => %d", path.c_str(), context.c_str(), ret); in setFileCon()
246 ALOGE("setFileCon(%s, %s) => %d, err: %s", path.c_str(), context.c_str(), ret, strerror(errno)); in setFileCon()
266 if (path.c_str() == NULL) { in getFileCon()
363 if (objectClass.c_str() == NULL) { in checkSELinuxAccess()
368 if (permission.c_str() == NULL) { in checkSELinuxAccess()
374 int accessGranted = selinux_check_access(tmp1, tmp2, objectClass.c_str(), permission.c_str(), in checkSELinuxAccess()
377 ALOGV("checkSELinuxAccess(%s, %s, %s, %s) => %d", subjectContext.c_str(), objectContext.c_str(), in checkSELinuxAccess()
378 objectClass.c_str(), permission.c_str(), accessGranted); in checkSELinuxAccess()
[all …]
H A Dcom_android_internal_content_om_OverlayManagerImpl.cpp192 if (result.c_str() == nullptr) { in getNullableString()
224 if (packageName.c_str() == nullptr) { in CreateFrroFile()
231 if (overlayName.c_str() == nullptr) { in CreateFrroFile()
258 frroFilePath.c_str(), packageName.c_str(), overlayName.c_str(), targetPackageName.c_str(), in CreateFrroFile()
291 resourceName.c_str(), dataType, data, string_data.value_or(std::string()).c_str(), in CreateFrroFile()
296 if (!dlLoader.callCreateFrroFile(err_result, packageName.c_str(), overlayName.c_str(), in CreateFrroFile()
315 if (targetPath.c_str() == nullptr) { in CreateIdmapFile()
325 if (idmapPath.c_str() == nullptr) { in CreateIdmapFile()
335 targetPath.c_str(), overlayPath.c_str(), idmapPath.c_str(), overlayName.c_str()); in CreateIdmapFile()
338 if (!dlLoader.callCreateIdmapFile(err_result, targetPath.c_str(), overlayPath.c_str(), in CreateIdmapFile()
[all …]
H A Dandroid_content_res_ApkAssets.cpp150 jstring java_string = env->NewStringUTF(path.c_str()); in OpenInternal()
214 debug_name_ = std::string(str.c_str(), str.size()); in LoaderAssetsProvider()
225 if (path.c_str() == nullptr) { in NativeLoad()
229 ATRACE_NAME(base::StringPrintf("LoadApkAssets(%s)", path.c_str()).c_str()); in NativeLoad()
273 if (friendly_name_utf8.c_str() == nullptr) { in NativeLoadFromFd()
277 ATRACE_NAME(base::StringPrintf("LoadApkAssetsFd(%s)", friendly_name_utf8.c_str()).c_str()); in NativeLoadFromFd()
328 if (friendly_name_utf8.c_str() == nullptr) { in NativeLoadFromFdOffset()
332 ATRACE_NAME(base::StringPrintf("LoadApkAssetsFd(%s)", friendly_name_utf8.c_str()).c_str()); in NativeLoadFromFdOffset()
422 return env->NewStringUTF(apk_assets->GetDebugName().c_str()); in NativeGetDebugName()
439 if (path_utf8.c_str() == nullptr) { in NativeOpenXml()
[all …]
H A Dandroid_view_InputEventReceiver.cpp246 getInputChannelName().c_str(), statusToString(status).c_str(), status); in processOutboundEvents()
274 getInputChannelName().c_str(), events); in handleEvent()
296 getInputChannelName().c_str(), events); in handleEvent()
324 getInputChannelName().c_str(), statusToString(status).c_str(), status); in consumeEvents()
344 getInputChannelName().c_str()); in consumeEvents()
461 getInputChannelName().c_str()); in consumeEvents()
519 jniThrowRuntimeException(env, message.c_str()); in nativeInit()
546 jniThrowRuntimeException(env, message.c_str()); in nativeFinishInputEvent()
565 jniThrowRuntimeException(env, message.c_str()); in nativeReportTimeline()
580 jniThrowRuntimeException(env, message.c_str()); in nativeConsumeBatchedInputEvents()
[all …]
H A Dandroid_os_GraphicsEnvironment.cpp37 android::GraphicsEnv::getInstance().setDriverPathAndSphalLibraries(pathChars.c_str(), in setDriverPathAndSphalLibraries_native()
38 sphalLibrariesChars.c_str()); in setDriverPathAndSphalLibraries_native()
47 android::GraphicsEnv::getInstance().setGpuStats(driverPackageNameChars.c_str(), in setGpuStats_native()
48 driverVersionNameChars.c_str(), in setGpuStats_native()
50 appPackageNameChars.c_str(), vulkanVersion); in setGpuStats_native()
76 android::GraphicsEnv::getInstance().setAngleInfo(pathChars.c_str(), useNativeDriver, in setAngleInfo_native()
77 packageNameChars.c_str(), features); in setAngleInfo_native()
84 android::GraphicsEnv::getInstance().setLayerPaths(appNamespace, layerPathsChars.c_str()); in setLayerPaths_native()
90 android::GraphicsEnv::getInstance().setDebugLayers(layersChars.c_str()); in setDebugLayers_native()
97 android::GraphicsEnv::getInstance().setDebugLayersGLES(layersChars.c_str()); in setDebugLayersGLES_native()
/aosp14/frameworks/base/libs/androidfw/
H A DLocale.cpp79 set_language(lang.c_str()); in InitFromFilterString()
92 set_region(part2.c_str()); in InitFromFilterString()
94 set_script(part2.c_str()); in InitFromFilterString()
96 set_variant(part2.c_str()); in InitFromFilterString()
110 set_region(part3.c_str()); in InitFromFilterString()
112 set_variant(part3.c_str()); in InitFromFilterString()
123 set_variant(part4.c_str()); in InitFromFilterString()
192 set_script(subtags[1].c_str()); in InitFromBcp47TagImpl()
193 set_region(subtags[2].c_str()); in InitFromBcp47TagImpl()
194 set_variant(subtags[3].c_str()); in InitFromBcp47TagImpl()
[all …]
/aosp14/system/core/trusty/keymaster/set_attestation_ids/
H A Dset_attestation_ids.cpp59 prog, buf2string(req.brand).c_str(), buf2string(req.device).c_str(), in print_usage()
60 buf2string(req.product).c_str(), buf2string(req.serial).c_str(), in print_usage()
61 buf2string(req.manufacturer).c_str(), buf2string(req.model).c_str(), in print_usage()
62 buf2string(req.imei).c_str(), buf2string(req.meid).c_str()); in print_usage()
148 buf2string(req.brand).c_str(), buf2string(req.device).c_str(), in main()
149 buf2string(req.product).c_str(), buf2string(req.serial).c_str(), in main()
150 buf2string(req.manufacturer).c_str(), buf2string(req.model).c_str(), in main()
151 buf2string(req.imei).c_str(), buf2string(req.meid).c_str()); in main()
/aosp14/system/core/debuggerd/libdebuggerd/
H A Dtombstone_proto_to_text.cpp86 thread.name().c_str(), process_name); in print_thread_header()
186 CB(should_log, "%s", line.c_str()); in print_backtrace()
212 CBS("memory near %s (%s):", mem.register_name().c_str(), mem.mapping_name().c_str()); in print_thread_memory_dump()
247 CBS("%s %s", line.c_str(), ascii); in print_thread_memory_dump()
347 CBS("%s", memory_map_header.c_str()); in print_memory_maps()
380 CBS("%s", line.c_str()); in print_memory_maps()
385 format_pointer(fault_address).c_str()); in print_memory_maps()
415 signal_info.name().c_str(), signal_info.code(), signal_info.code_name().c_str(), in print_main_thread()
416 sender_desc.c_str(), fault_addr_desc.c_str()); in print_main_thread()
508 msg.tag().c_str(), msg.message().c_str()); in print_logs()
[all …]
/aosp14/frameworks/base/cmds/idmap2/self_targeting/
H A DSelfTargeting.cpp76 unlink(frro_file_path.c_str()); in CreateFrroFile()
82 unlink(frro_file_path.c_str()); in CreateFrroFile()
86 if (chmod(frro_file_path.c_str(), kIdmapFilePermission) == -1) { in CreateFrroFile()
88 frro_file_path.c_str()); in CreateFrroFile()
138 unlink(idmapPath.c_str()); in CreateIdmapFile()
143 target.GetErrorMessage().c_str()); in CreateIdmapFile()
150 overlay.GetErrorMessage().c_str()); in CreateIdmapFile()
162 idmap.GetErrorMessage().c_str()); in CreateIdmapFile()
166 std::ofstream fout(idmapPath.c_str()); in CreateIdmapFile()
177 unlink(idmapPath.c_str()); in CreateIdmapFile()
[all …]
/aosp14/system/core/libutils/
H A DPrinter_fuzz.cpp39 android::FdPrinter filePrinter = android::FdPrinter(tf.fd, indent, prefix.c_str()); in LLVMFuzzerTestOneInput()
41 android::PrefixPrinter printer = android::PrefixPrinter(stringPrinter, prefix.c_str()); in LLVMFuzzerTestOneInput()
43 android::LogPrinter(logTag.c_str(), priority, prefix.c_str(), ignoreBlankLines); in LLVMFuzzerTestOneInput()
45 printer.printLine(line.c_str()); in LLVMFuzzerTestOneInput()
46 printer.printFormatLine("%s", line.c_str()); in LLVMFuzzerTestOneInput()
47 logPrinter.printLine(line.c_str()); in LLVMFuzzerTestOneInput()
48 logPrinter.printFormatLine("%s", line.c_str()); in LLVMFuzzerTestOneInput()
49 filePrinter.printLine(line.c_str()); in LLVMFuzzerTestOneInput()
50 filePrinter.printFormatLine("%s", line.c_str()); in LLVMFuzzerTestOneInput()
H A DString8_fuzz.cpp48 str1->removeAll(str2->c_str()); in __anon14e4abfe0502()
57 str1->append(str2->c_str()); in __anon14e4abfe0702()
67 str1->find(str2->c_str(), start_index); in __anon14e4abfe0902()
132 str1->appendFormat(formatString.c_str(), val); in fuzzFormat()
146 str1->appendFormat(formatString.c_str(), val); in fuzzFormat()
148 str1->format(formatString.c_str(), val); in fuzzFormat()
166 str1->format(formatString.c_str(), val); in fuzzFormat()
176 str1->format(formatString.c_str(), val); in fuzzFormat()
184 str1->appendFormat(formatString.c_str(), val.c_str()); in fuzzFormat()
186 str1->format(formatString.c_str(), val.c_str()); in fuzzFormat()
[all …]
/aosp14/system/core/fs_mgr/libfs_avb/tests/
H A Dfs_avb_test_util.cpp61 image_path.value().c_str(), hash_algorithm.c_str(), in CalcVBMetaDigest()
62 vbmeta_digest_path.value().c_str()); in CalcVBMetaDigest()
106 rollback_index, signing_options.c_str(), include_descriptor_options.c_str(), in GenerateVBMetaImage()
107 chain_partition_options.c_str(), additional_options.c_str(), in GenerateVBMetaImage()
131 image_path.value().c_str(), vbmeta_image.path.value().c_str(), padding_size); in ExtractVBMetaImage()
183 add_footer_option.c_str(), image_path.value().c_str(), partition_name.c_str(), in AddAvbFooter()
184 partition_size, rollback_index, salt.c_str(), signing_options.c_str(), in AddAvbFooter()
185 additional_options.c_str()); in AddAvbFooter()
234 tmp_path.value().c_str()); in InfoImage()
254 key_path.value().c_str(), tmp_path.value().c_str()); in ExtractPublicKeyAvb()
[all …]
/aosp14/frameworks/base/media/mca/filterfw/native/core/
H A Dnative_program.cpp47 lib_handle_ = dlopen(lib_name.c_str(), RTLD_NOW); in OpenLibrary()
49 ALOGE("NativeProgram: Error opening library: '%s': %s", lib_name.c_str(), dlerror()); in OpenLibrary()
60 process_function_ = reinterpret_cast<ProcessFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); in BindProcessFunction()
62 ALOGE("NativeProgram: Could not find process function symbol: '%s'!", func_name.c_str()); in BindProcessFunction()
71 init_function_ = reinterpret_cast<InitFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); in BindInitFunction()
78 setvalue_function_ = reinterpret_cast<SetValueFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); in BindSetValueFunction()
85 getvalue_function_ = reinterpret_cast<GetValueFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); in BindGetValueFunction()
92 reset_function_ = reinterpret_cast<ResetFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); in BindResetFunction()
99 teardown_function_ = reinterpret_cast<TeardownFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); in BindTeardownFunction()
128 setvalue_function_(key.c_str(), value.c_str(), user_data_); in CallSetValue()
[all …]
/aosp14/system/core/cli-test/
H A Dcli-test.cpp189 V("running %s \"%s\"", what, command.c_str()); in RunCommands()
190 int exit_status = system(command.c_str()); in RunCommands()
194 ExitStatusToString(exit_status).c_str()); in RunCommands()
208 actual_output.c_str()); in CheckOutput()
226 V("setenv(\"FILES\", \"%s\")", FILES.c_str()); in RunTests()
227 setenv("FILES", FILES.c_str(), 1); in RunTests()
238 V("running command \"%s\"", test.command.c_str()); in RunTests()
241 int status = system(test.command.c_str()); in RunTests()
249 ExitStatusToString(status).c_str()); in RunTests()
262 Print(kRed, "[ FAILED ]", " %s (%s)", test.name.c_str(), duration.str().c_str()); in RunTests()
[all …]
/aosp14/system/core/fs_mgr/libfiemap/
H A Dfiemap_writer_test.cpp487 int ret = system(dd_cmd.c_str()); in SetUpExt4()
493 ret = system(mkfs_cmd.c_str()); in SetUpExt4()
497 ASSERT_EQ(mount(loop_dev.device().c_str(), mntpoint_.c_str(), "ext4", 0, nullptr), 0); in SetUpExt4()
511 int ret = system(dd_cmd.c_str()); in SetUpF2fs()
517 ret = system(mkfs_cmd.c_str()); in SetUpF2fs()
521 ASSERT_EQ(mount(loop_dev.device().c_str(), mntpoint_.c_str(), "f2fs", 0, nullptr), 0); in SetUpF2fs()
525 umount(mntpoint_.c_str()); in TearDown()
526 rmdir(mntpoint_.c_str()); in TearDown()
527 unlink(fs_path_.c_str()); in TearDown()
554 if (statfs(gTestDir.c_str(), &s)) { in DetermineBlockSize()
[all …]
/aosp14/system/core/init/
H A Dselinux.cpp264 if (access(actual_id_path.c_str(), R_OK) != 0) { in FindPrecompiledSplitPolicy()
386 if (access(plat_compat_cil_file.c_str(), F_OK) == -1) { in OpenSplitPolicy()
413 if (access(product_mapping_file.c_str(), F_OK) == -1) { in OpenSplitPolicy()
431 if (access(odm_policy_cil_file.c_str(), F_OK) == -1) { in OpenSplitPolicy()
437 if (access(apex_policy_cil_file.c_str(), F_OK) == -1) { in OpenSplitPolicy()
447 "-c", version_as_string.c_str(), in OpenSplitPolicy()
448 plat_mapping_file.c_str(), in OpenSplitPolicy()
531 if (stat(kTmpfsDir.c_str(), &stat_data) != 0) { in CreateTmpfsDir()
535 if (mkdir(kTmpfsDir.c_str(), mode) != 0) { in CreateTmpfsDir()
547 if (chmod(kTmpfsDir.c_str(), mode) != 0) { in CreateTmpfsDir()
[all …]
/aosp14/frameworks/base/cmds/incidentd/src/
H A DBroadcaster.cpp177 file->getEnvelopeFileName().c_str()); in sendBroadcasts()
185 file->getEnvelopeFileName().c_str()); in sendBroadcasts()
309 ALOGI("send_approval_broadcasts for %s %s/%s", id.c_str(), pkg.c_str(), cls.c_str()); in send_approval_broadcasts()
311 Status status = ics->authorizeReport(0, String16(pkg.c_str()), in send_approval_broadcasts()
312 String16(cls.c_str()), String16(id.c_str()), 0, listener); in send_approval_broadcasts()
329 reportId.id.c_str(), reportId.pkg.c_str(), reportId.cls.c_str()); in report_approved()
341 reportId.id.c_str(), reportId.pkg.c_str(), reportId.cls.c_str()); in report_approved()
356 reportId.id.c_str(), reportId.pkg.c_str(), reportId.cls.c_str()); in report_denied()
371 ALOGI("send_report_ready_broadcasts for %s %s/%s", id.c_str(), pkg.c_str(), cls.c_str()); in send_report_ready_broadcasts()
373 Status status = ics->sendReportReadyBroadcast(String16(pkg.c_str()), String16(cls.c_str())); in send_report_ready_broadcasts()
[all …]
H A DWorkDirectory.cpp128 *result = strtoll(id.c_str(), &endptr, 10); in parse_timestamp_ns()
379 mDataFileName.c_str()); in startWritingDataFile()
538 create_directory(mDirectory.c_str()); in WorkDirectory()
545 create_directory(mDirectory.c_str()); in WorkDirectory()
609 ALOGW("Can't open envelope file for report %s/%s %s", pkg.c_str(), cls.c_str(), id.c_str()); in getReport()
639 ALOGI("Committing report %s for %s/%s", report->getId().c_str(), pkg.c_str(), cls.c_str()); in commit()
653 ALOGI("All reports for %s", pkg.c_str()); in commitAll()
714 return stat(filename.c_str(), &st) == 0; in file_exists_locked()
793 unlink(it->second.data.c_str()); in get_directory_contents_locked()
829 unlink(it->second.envelope.c_str()); in clean_directory_locked()
[all …]
/aosp14/frameworks/base/tools/bit/
H A Dmain.cpp287 m_currentAction->target->name.c_str(), className.c_str(), testName.c_str(), in OnTestStatus()
295 printf("%s\n", logcat.c_str()); in OnTestStatus()
298 printf("%s\n", stack.c_str()); in OnTestStatus()
305 m_currentAction->target->name.c_str(), className.c_str(), testName.c_str(), in OnTestStatus()
575 arg.c_str()); in parse_args()
711 chdir_or_exit(buildTop.c_str()); in run_phases()
904 err = run_adb("push", pushed.file.filename.c_str(), pushed.dest.c_str(), NULL); in run_phases()
986 err = run_adb("exec-out", installedPath.c_str(), filterArg.c_str(), NULL); in run_phases()
1169 printf(" %s%s", target->name.c_str(), padding.c_str() + target->name.length()); in run_phases()
1207 chdir_or_exit(buildTop.c_str()); in run_refresh()
[all …]
/aosp14/frameworks/base/tools/aapt2/cmd/
H A DCompile_test.cpp66 ::android::base::utf8::unlink(path0_out.c_str()); in TEST_F()
68 ASSERT_EQ(::android::base::utf8::unlink(path0_out.c_str()), 0); in TEST_F()
70 ASSERT_EQ(::android::base::utf8::unlink(path0_out.c_str()), 0); in TEST_F()
74 ::android::base::utf8::unlink(path1_out.c_str()); in TEST_F()
76 ASSERT_EQ(::android::base::utf8::unlink(path1_out.c_str()), 0); in TEST_F()
82 ::android::base::utf8::unlink(path2_out.c_str()); in TEST_F()
91 ::android::base::utf8::unlink(path3_out.c_str()); in TEST_F()
99 ::android::base::utf8::unlink(path4_out.c_str()); in TEST_F()
107 ::android::base::utf8::unlink(path5_out.c_str()); in TEST_F()
120 ::android::base::utf8::unlink(kOutputFlata.c_str()); in TEST_F()
[all …]

12345678910>>...21