/system/core/adb/sysdeps/ |
stat_test.cpp | 34 ASSERT_EQ(0, stat((std::string(td.path) + '/').c_str(), &st)); 38 ASSERT_EQ(0, stat((std::string(td.path) + '\\').c_str(), &st)); 43 ASSERT_EQ(-1, stat(nonexistent_path.c_str(), &st)); 46 ASSERT_EQ(-1, stat((nonexistent_path + "/").c_str(), &st)); 50 ASSERT_EQ(-1, stat((nonexistent_path + "\\").c_str(), &st)); 58 ASSERT_EQ(-1, stat((std::string(tf.path) + '/').c_str(), &st)); 62 ASSERT_EQ(-1, stat((std::string(tf.path) + '\\').c_str(), &st));
|
/build/kati/ |
regen.cc | 87 FILE* fp = fopen(GetNinjaStampFilename().c_str(), "rb+"); 103 GetNinjaFilename().c_str()); 108 GetNinjaShellScriptFilename().c_str()); 132 FILE* fp = fopen(stamp_filename.c_str(), "rb"); 135 printf("%s: %s\n", stamp_filename.c_str(), strerror(errno)); 160 fprintf(stderr, "%s was modified, ignored.\n", s.c_str()); 166 printf("file %s: ignored (%f)\n", s.c_str(), ts); 170 printf("file %s: dirty (%f)\n", s.c_str(), ts); 172 fprintf(stderr, "%s was modified, regenerating...\n", s.c_str()); 175 printf("file %s: clean (%f)\n", s.c_str(), ts) [all...] |
log.h | 38 fprintf(stderr, "*kati*: %s\n", StringPrintf(args).c_str()); \ 44 fprintf(stderr, "*kati*: %s\n", StringPrintf(args).c_str()); \ 48 fprintf(stderr, "%s: %s\n", StringPrintf(__VA_ARGS__).c_str(), \ 58 fprintf(stderr, "%s\n", StringPrintf(__VA_ARGS__).c_str()); \ 63 fprintf(stderr, "%s\n", StringPrintf(__VA_ARGS__).c_str()); \ 68 fprintf(stderr, "%s\n", StringPrintf(__VA_ARGS__).c_str()); \
|
/art/runtime/ |
dex2oat_environment_test.h | 45 ASSERT_EQ(0, mkdir(scratch_dir_.c_str(), 0700)); 49 ASSERT_EQ(0, mkdir(odex_oat_dir_.c_str(), 0700)); 52 ASSERT_EQ(0, mkdir(odex_dir_.c_str(), 0700)); 57 ASSERT_TRUE(OS::FileExists(GetSystemImageFile().c_str())) 59 ASSERT_TRUE(OS::FileExists(GetDexSrc1().c_str())) 61 ASSERT_TRUE(OS::FileExists(GetStrippedDexSrc1().c_str())) 63 ASSERT_FALSE(DexFile::GetChecksum(GetStrippedDexSrc1().c_str(), &checksum, &error_msg)) 65 ASSERT_TRUE(OS::FileExists(GetDexSrc2().c_str())) 71 ASSERT_TRUE(DexFile::Open(GetMultiDexSrc1().c_str(), 72 GetMultiDexSrc1().c_str(), &error_msg, &multi1)) << error_msg [all...] |
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/ |
arguments_parser.cpp | 30 AKLOGE("minCount = maxCount = 0 for %s.", mArgumentSpecs[i].getName().c_str()); 36 mArgumentSpecs[i].getName().c_str()v ); 41 mArgumentSpecs[i].getName().c_str()); 51 printf("Usage: %s", commandName.c_str()); 55 printf(" [-%s", optionName.c_str()); 57 printf(" <%s>", spec.getValueName().c_str()); 63 printf(" [<%s>]", argSpec.getName().c_str()); 65 printf(" <%s>", argSpec.getName().c_str()); 67 printf(" [<%s>...]", argSpec.getName().c_str()); 69 printf(" <%s>...", argSpec.getName().c_str()); [all...] |
/external/webrtc/webrtc/libjingle/xmpp/ |
xmppstanzaparser_unittest.cc | 60 parser.Parse(fragment.c_str(), fragment.length(), false); 70 parser.Parse(fragment.c_str(), fragment.length(), false); 75 parser.Parse(fragment.c_str(), fragment.length(), false); 80 parser.Parse(fragment.c_str(), fragment.length(), false); 84 parser.Parse(fragment.c_str(), fragment.length(), false); 89 parser.Parse(fragment.c_str(), fragment.length(), false); 99 parser.Parse(fragment.c_str(), fragment.length(), false); 103 parser.Parse(fragment.c_str(), fragment.length(), false); 109 parser.Parse(fragment.c_str(), fragment.length(), false); 115 parser.Parse(fragment.c_str(), fragment.length(), false) [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
native_program.cpp | 47 lib_handle_ = dlopen(lib_name.c_str(), RTLD_NOW); 49 ALOGE("NativeProgram: Error opening library: '%s': %s", lib_name.c_str(), dlerror()); 60 process_function_ = reinterpret_cast<ProcessFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 62 ALOGE("NativeProgram: Could not find process function symbol: '%s'!", func_name.c_str()); 71 init_function_ = reinterpret_cast<InitFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 78 setvalue_function_ = reinterpret_cast<SetValueFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 85 getvalue_function_ = reinterpret_cast<GetValueFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 92 reset_function_ = reinterpret_cast<ResetFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 99 teardown_function_ = reinterpret_cast<TeardownFunctionPtr>(dlsym(lib_handle_, func_name.c_str())); 128 setvalue_function_(key.c_str(), value.c_str(), user_data_) [all...] |
/system/vold/ |
EmulatedVolume.cpp | 64 mFuseDefault = StringPrintf("/mnt/runtime/default/%s", label.c_str()); 65 mFuseRead = StringPrintf("/mnt/runtime/read/%s", label.c_str()); 66 mFuseWrite = StringPrintf("/mnt/runtime/write/%s", label.c_str()); 69 setPath(StringPrintf("/storage/%s", label.c_str())); 71 if (fs_prepare_dir(mFuseDefault.c_str(), 0700, AID_ROOT, AID_ROOT) || 72 fs_prepare_dir(mFuseRead.c_str(), 0700, AID_ROOT, AID_ROOT) || 73 fs_prepare_dir(mFuseWrite.c_str(), 0700, AID_ROOT, AID_ROOT)) { 86 mRawPath.c_str(), 87 label.c_str(), 125 rmdir(mFuseDefault.c_str()); [all...] |
/external/bsdiff/ |
bsdiff_unittest.cc | 36 EXPECT_EQ(0, bsdiff(old_file_.filename().c_str(), 37 new_file_.filename().c_str(), 38 patch_file_.filename().c_str())); 52 EXPECT_EQ(0, bsdiff(old_file_.filename().c_str(), 53 new_file_.filename().c_str(), 54 patch_file_.filename().c_str()));
|
/external/jsoncpp/src/jsontestrunner/ |
main.cpp | 65 fprintf(fout, "%s\n", value.getComment(Json::commentBefore).c_str()); 69 fprintf(fout, "%s=null\n", path.c_str()); 74 path.c_str(), 75 Json::valueToString(value.asLargestInt()).c_str()); 80 path.c_str(), 81 Json::valueToString(value.asLargestUInt()).c_str()); 86 path.c_str(), 87 normalizeFloatingPointStr(value.asDouble()).c_str()); 90 fprintf(fout, "%s=\"%s\"\n", path.c_str(), value.asString().c_str()); [all...] |
/external/libcxx/test/std/input.output/file.streams/fstreams/ofstream.assign/ |
move_assign.pass.cpp | 26 std::ofstream fso(temp.c_str()); 32 std::ifstream fs(temp.c_str()); 37 std::remove(temp.c_str()); 39 std::wofstream fso(temp.c_str()); 45 std::wifstream fs(temp.c_str()); 50 std::remove(temp.c_str());
|
/external/libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/ |
move.pass.cpp | 26 std::ofstream fso(temp.c_str()); 31 std::ifstream fs(temp.c_str()); 36 std::remove(temp.c_str()); 38 std::wofstream fso(temp.c_str()); 43 std::wifstream fs(temp.c_str()); 48 std::remove(temp.c_str());
|
pointer.pass.cpp | 25 std::ofstream fs(temp.c_str()); 29 std::ifstream fs(temp.c_str()); 34 std::remove(temp.c_str()); 36 std::wofstream fs(temp.c_str()); 40 std::wifstream fs(temp.c_str()); 45 std::remove(temp.c_str());
|
/external/skia/tools/ |
picture_utils.cpp | 58 partialPath = SkOSPath::Join(dirPath.c_str(), subdirOrNull); 59 sk_mkdir(partialPath.c_str()); 63 SkString fullPath = SkOSPath::Join(partialPath.c_str(), baseName.c_str()); 64 if (SkImageEncoder::EncodeFile(fullPath.c_str(), bm, SkImageEncoder::kPNG_Type, 100)) { 67 SkDebugf("Failed to write the bitmap to %s.\n", fullPath.c_str());
|
/frameworks/base/tools/aapt2/ |
Locale.cpp | 83 setLanguage(lang.c_str()); 96 setRegion(part2.c_str()); 98 setScript(part2.c_str()); 100 setVariant(part2.c_str()); 113 setRegion(part3.c_str()); 115 setVariant(part3.c_str()); 126 setVariant(part4.c_str()); 149 setLanguage(subtags[0].c_str()); 151 setLanguage(subtags[0].c_str()); 157 setRegion(subtags[1].c_str()); [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/ofstream.assign/ |
move_assign.pass.cpp | 26 std::ofstream fso(temp.c_str()); 32 std::ifstream fs(temp.c_str()); 37 std::remove(temp.c_str()); 39 std::wofstream fso(temp.c_str()); 45 std::wifstream fs(temp.c_str()); 50 std::remove(temp.c_str());
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/ofstream.cons/ |
move.pass.cpp | 26 std::ofstream fso(temp.c_str()); 31 std::ifstream fs(temp.c_str()); 36 std::remove(temp.c_str()); 38 std::wofstream fso(temp.c_str()); 43 std::wifstream fs(temp.c_str()); 48 std::remove(temp.c_str());
|
pointer.pass.cpp | 25 std::ofstream fs(temp.c_str()); 29 std::ifstream fs(temp.c_str()); 34 std::remove(temp.c_str()); 36 std::wofstream fs(temp.c_str()); 40 std::wifstream fs(temp.c_str()); 45 std::remove(temp.c_str());
|
/system/tpm/attestation/common/ |
print_interface_proto.cc | 72 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); 76 base::StringAppendF(&output, "%s", value.key_label().c_str()); 83 indent_size + 2).c_str()); 90 indent_size + 2).c_str()); 97 indent_size + 2).c_str()); 102 base::StringAppendF(&output, "%s", value.username().c_str()); 107 base::StringAppendF(&output, "%s", value.origin().c_str()); 123 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); 129 GetProtoDebugStringWithIndent(value.status(), indent_size + 2).c_str()); 134 base::StringAppendF(&output, "%s", value.server_error().c_str()); [all...] |
print_common_proto.cc | 90 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); 96 base::HexEncode(value.quote().data(), value.quote().size()).c_str()); 103 value.quoted_data().size()).c_str()); 111 value.quoted_pcr_value().size()).c_str()); 118 value.pcr_source_hint().size()).c_str()); 133 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); 139 value.wrapped_key().size()).c_str()); 146 base::HexEncode(value.iv().data(), value.iv().size()).c_str()); 153 base::HexEncode(value.mac().data(), value.mac().size()).c_str()); 160 value.encrypted_data().size()).c_str()); [all...] |
/frameworks/av/media/libstagefright/httplive/ |
M3UParser.cpp | 216 const char *lang = item.mLanguage.empty() ? "und" : item.mLanguage.c_str(); 493 ALOGV("base:'%s', url:'%s' => '%s'", baseURL, url, out->c_str()); 542 ALOGV("base:'%s', url:'%s' => '%s'", baseURL, url, out->c_str()); 568 // ALOGI("#%s#", line.c_str()); 674 CHECK(MakeURL(mBaseURI.c_str(), line.c_str(), &item->mURI)); 713 groupID.c_str()); 733 status_t err = ParseInt32(line.c_str() + colonPos + 1, &x); 757 status_t err = ParseDouble(line.c_str() + colonPos + 1, &x); 780 char c = line.c_str()[offset] [all...] |
/build/tools/atree/ |
fs.cpp | 25 err = stat(path.c_str(), &st); 32 int err = unlink(path.c_str()); 34 fprintf(stderr, "error deleting file %s (%s)\n", path.c_str(), 47 DIR *d = opendir(path.c_str()); 50 path.c_str(), strerror(errno)); 89 err = rmdir(path.c_str()); 91 fprintf(stderr, "error deleting directory %s (%s)\n", path.c_str(), 114 err = stat(p.c_str(), &st); 116 err = mkdir(p.c_str(), 0770); 119 path.c_str(), strerror(errno)) [all...] |
/external/google-benchmark/cmake/ |
gnu_posix_regex.cpp | 10 return regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0;
|
posix_regex.cpp | 10 return regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0;
|
/external/gtest/test/ |
gtest-options_test.cc | 71 EXPECT_STREQ("", UnitTestOptions::GetOutputFormat().c_str()); 76 EXPECT_STREQ("xml", UnitTestOptions::GetOutputFormat().c_str()); 100 EXPECT_STRCASEEQ(expected_output_file.c_str(), output_file.c_str()); 102 EXPECT_EQ(expected_output_file, output_file.c_str()); 110 _strcmpi("gtest-options_test", exe_str.c_str()) == 0 || 111 _strcmpi("gtest-options-ex_test", exe_str.c_str()) == 0 || 112 _strcmpi("gtest_all_test", exe_str.c_str()) == 0 || 113 _strcmpi("gtest_dll_test", exe_str.c_str()) == 0; 138 posix::ChDir(original_working_dir_.string().c_str()); [all...] |