/external/skia/samplecode/ |
SampleSVGFile.cpp | 22 : fPath(path), fLabel(SkStringPrintf("[%s]", SkOSPath::Basename(path.c_str()).c_str())) {} 27 SkFILEStream svgStream(fPath.c_str()); 29 SkDebugf("file not found: \"path\"\n", fPath.c_str()); 35 SkDebugf("XML parsing failed: \"path\"\n", fPath.c_str()); 61 SampleCode::TitleR(evt, fLabel.c_str());
|
/frameworks/base/tools/aapt2/ |
Locale.cpp | 85 set_language(lang.c_str()); 98 set_region(part2.c_str()); 100 set_script(part2.c_str()); 102 set_variant(part2.c_str()); 116 set_region(part3.c_str()); 118 set_variant(part3.c_str()); 129 set_variant(part4.c_str()); 152 set_language(subtags[0].c_str()); 154 set_language(subtags[0].c_str()); 160 set_region(subtags[1].c_str()); [all...] |
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/filebuf.members/ |
open_pointer.pass.cpp | 23 assert(f.open(temp.c_str(), std::ios_base::out) != 0); 29 assert(f.open(temp.c_str(), std::ios_base::in) != 0); 35 std::remove(temp.c_str()); 38 assert(f.open(temp.c_str(), std::ios_base::out) != 0); 44 assert(f.open(temp.c_str(), std::ios_base::in) != 0); 50 remove(temp.c_str());
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/input.output/file.streams/fstreams/filebuf.members/ |
open_pointer.pass.cpp | 23 assert(f.open(temp.c_str(), std::ios_base::out) != 0); 29 assert(f.open(temp.c_str(), std::ios_base::in) != 0); 35 std::remove(temp.c_str()); 38 assert(f.open(temp.c_str(), std::ios_base::out) != 0); 44 assert(f.open(temp.c_str(), std::ios_base::in) != 0); 50 remove(temp.c_str());
|
/system/core/base/ |
parsenetaddress.cpp | 39 *error = StringPrintf("bad IPv6 address '%s'", address.c_str()); 60 *error = StringPrintf("no host in '%s'", address.c_str()); 65 if (sscanf(port_str.c_str(), "%d", port) != 1 || *port <= 0 || 67 *error = StringPrintf("bad port number '%s' in '%s'", port_str.c_str(), 68 address.c_str()); 75 StringPrintf(ipv6 ? "[%s]:%d" : "%s:%d", host->c_str(), *port);
|
/test/vts/runners/target/vts_hal_hidl_target/ |
VtsHalHidlTargetTestBase.h | 41 ALOGI("[Test Case] %s.%s BEGIN", getTestSuiteName().c_str(), 42 getTestCaseName().c_str()); 45 ALOGD("Test case info: %s", testCaseInfo.c_str()); 57 ALOGI("[Test Case] %s.%s END", getTestSuiteName().c_str(), 58 getTestCaseName().c_str()); 61 ALOGD("Test case info: %s", testCaseInfo.c_str());
|
/build/kati/ |
regen.cc | 93 FILE* fp = fopen(GetNinjaStampFilename().c_str(), "rb+"); 109 GetNinjaFilename().c_str()); 114 GetNinjaShellScriptFilename().c_str()); 138 FILE* fp = fopen(stamp_filename.c_str(), "rb"); 141 printf("%s: %s\n", stamp_filename.c_str(), strerror(errno)); 166 fprintf(stderr, "%s was modified, ignored.\n", s.c_str()); 172 printf("file %s: ignored (%f)\n", s.c_str(), ts); 176 printf("file %s: dirty (%f)\n", s.c_str(), ts); 178 fprintf(stderr, "%s was modified, regenerating...\n", s.c_str()); 181 printf("file %s: clean (%f)\n", s.c_str(), ts) [all...] |
/external/google-breakpad/src/testing/gtest/src/ |
gtest-filepath.cc | 120 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { 121 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); 130 const char* const last_sep = strrchr(c_str(), kPathSeparator); 132 const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator); 163 dir = String(c_str(), last_sep + 1 - c_str()); 182 file = String::Format("%s.%s", base_name.c_str(), extension); 184 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); 196 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, 197 relative_path.c_str())); [all...] |
/external/llvm/utils/unittest/googletest/src/ |
gtest-filepath.cc | 118 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { 119 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); 128 const char* const last_sep = strrchr(c_str(), kPathSeparator); 130 const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator); 161 dir = String(c_str(), last_sep + 1 - c_str()); 180 file = String::Format("%s.%s", base_name.c_str(), extension); 182 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); 194 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, 195 relative_path.c_str())); [all...] |
/external/protobuf/gtest/src/ |
gtest-filepath.cc | 120 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { 121 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); 130 const char* const last_sep = strrchr(c_str(), kPathSeparator); 132 const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator); 163 dir = String(c_str(), last_sep + 1 - c_str()); 182 file = String::Format("%s.%s", base_name.c_str(), extension); 184 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); 196 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, 197 relative_path.c_str())); [all...] |
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/ |
gtest-filepath.cc | 120 if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { 121 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); 130 const char* const last_sep = strrchr(c_str(), kPathSeparator); 132 const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator); 163 dir = String(c_str(), last_sep + 1 - c_str()); 182 file = String::Format("%s.%s", base_name.c_str(), extension); 184 file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); 196 return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, 197 relative_path.c_str())); [all...] |
/system/bt/osi/test/ |
wakelock_test.cc | 58 char* buffer = const_cast<char*>(tmp_dir_.c_str()); 68 creat(lock_path_.c_str(), S_IRWXU); 69 creat(unlock_path_.c_str(), S_IRWXU); 78 unlink(lock_path_.c_str()); 79 unlink(unlock_path_.c_str()); 80 rmdir(tmp_dir_.c_str()); 91 int lock_fd = open(lock_path_.c_str(), O_RDONLY); 94 int unlock_fd = open(unlock_path_.c_str(), O_RDONLY); 146 wakelock_set_paths(lock_path_.c_str(), unlock_path_.c_str()); [all...] |
/external/skia/src/gpu/ccpr/ |
GrCCPRTriangleProcessor.cpp | 21 SkStringPrintf("%s[sk_VertexID]", proc.instanceAttrib()).c_str()); 77 SkStringPrintf("%s[(sk_VertexID+1) %% 3]", proc.instanceAttrib()).c_str()); 140 f->codeAppendf("%s = fragcoord.y + vec4(-0.375, -0.125, 0.125, 0.375);", samples.c_str()); 145 f->codeAppendf("%s = vec4(fragcoord.x - 0.5);", leftedge.c_str()); 150 f->codeAppendf("%s = vec4(fragcoord.x + 0.5);", rightedge.c_str()); 158 edgeArg.c_str(), edgeArg.c_str()); 160 edgeArg.c_str(), edgeArg.c_str()); 162 edgeArg.c_str(), edgeArg.c_str(), edgeArg.c_str()) [all...] |
/external/webrtc/webrtc/modules/audio_coding/test/ |
Tester.cc | 39 "acm_allcodecs_trace.txt").c_str()); 51 "acm_encodedecode_trace.txt").c_str()); 64 "acm_fec_trace.txt").c_str()); 78 "acm_isac_trace.txt").c_str()); 93 "acm_twowaycom_trace.txt").c_str()); 106 "acm_stereo_trace.txt").c_str()); 118 "acm_vaddtx_trace.txt").c_str()); 126 "acm_opusdtx_trace.txt").c_str()); 134 "acm_opus_trace.txt").c_str()); 142 "acm_packetloss_trace.txt").c_str()); [all...] |
/hardware/interfaces/gnss/1.0/default/ |
GnssConfiguration.cpp | 40 mGnssConfigIface->configuration_update(config.c_str(), config.size()); 51 mGnssConfigIface->configuration_update(config.c_str(), config.size()); 63 mGnssConfigIface->configuration_update(config.c_str(), config.size()); 74 mGnssConfigIface->configuration_update(config.c_str(), config.size()); 86 mGnssConfigIface->configuration_update(config.c_str(), config.size()); 97 mGnssConfigIface->configuration_update(config.c_str(), config.size()); 109 mGnssConfigIface->configuration_update(config.c_str(), config.size());
|
/bootable/recovery/tests/component/ |
applypatch_test.cpp | 51 SHA1(reinterpret_cast<const uint8_t*>(data.c_str()), data.size(), digest); 110 system(cmd.c_str()); 169 ASSERT_EQ(0, applypatch_check(src_file.c_str(), sha1s)); 174 ASSERT_EQ(1, applypatch_check(src_file.c_str(), sha1s)); 181 ASSERT_EQ(0, applypatch_check(src_file.c_str(), sha1s)); 188 ASSERT_EQ(0, applypatch_check(src_file.c_str(), sha1s)); 197 ASSERT_EQ(0, applypatch_check(src_file.c_str(), sha1s)); 267 bonus_file.c_str(), 268 src_file.c_str(), 269 tgt_file.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...] |
/external/boringssl/src/fipstools/ |
cavp_rsa2_keygen_test.cc | 38 printf("[mod = %s]\r\n", mod_str.c_str()); 39 printf("[Table for M-R Test = %s]\r\n\r\n", table.c_str()); 41 size_t bits = strtoul(mod_str.c_str(), nullptr, 0); 42 size_t count = strtoul(count_str.c_str(), nullptr, 0); 71 EncodeHex(e_bytes.data(), e_bytes.size()).c_str(), 72 EncodeHex(p_bytes.data(), p_bytes.size()).c_str(), 73 EncodeHex(q_bytes.data(), q_bytes.size()).c_str(), 74 EncodeHex(n_bytes.data(), n_bytes.size()).c_str(), 75 EncodeHex(d_bytes.data(), d_bytes.size()).c_str());
|
/external/skia/tests/ |
OSPathTest.cpp | 30 SkString fullName = SkOSPath::Join(dir.c_str(), filename.c_str()); 40 SkString basename = SkOSPath::Basename(fullName.c_str()); 41 SkString dirname = SkOSPath::Dirname(fullName.c_str()); 53 SkDebugf("OOUCH %s %s %s\n", dir.c_str(), strippedDir.c_str(), dirname.c_str()); 61 basename = SkOSPath::Basename(filename.c_str()); 86 SkString baseOfDir = SkOSPath::Basename(dir.c_str());
|
/system/netd/server/ |
VirtualNetwork.cpp | 62 add ? "adding" : "removing", uidRanges.toString().c_str(), mNetId, strerror(-ret)); 73 if (int ret = RouteController::addUsersToVirtualNetwork(mNetId, interface.c_str(), mSecure, 75 ALOGE("failed to add users on interface %s of netId %u", interface.c_str(), mNetId); 88 if (int ret = RouteController::removeUsersFromVirtualNetwork(mNetId, interface.c_str(), 90 ALOGE("failed to remove users on interface %s of netId %u", interface.c_str(), mNetId); 106 if (int ret = RouteController::addInterfaceToVirtualNetwork(mNetId, interface.c_str(), mSecure, 108 ALOGE("failed to add interface %s to VPN netId %u", interface.c_str(), mNetId); 119 if (int ret = RouteController::removeInterfaceFromVirtualNetwork(mNetId, interface.c_str(), 121 ALOGE("failed to remove interface %s from VPN netId %u", interface.c_str(), mNetId);
|
/external/webrtc/webrtc/tools/frame_analyzer/ |
frame_analyzer.cc | 81 int width = strtol((parser.GetFlag("width")).c_str(), NULL, 10); 82 int height = strtol((parser.GetFlag("height")).c_str(), NULL, 10); 91 webrtc::test::RunAnalysis(parser.GetFlag("reference_file").c_str(), 92 parser.GetFlag("test_file").c_str(), 93 parser.GetFlag("stats_file").c_str(), width, height,
|
/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
Stream.cpp | 35 ALOGD("%s: Stream %s identifier 0x%X", __FUNCTION__, getName().c_str(), identifier); 54 ALOGD("%s: 0x%X for Stream %s", __FUNCTION__, strategy, getName().c_str()); 61 ALOGV("%s: 0x%X for Stream %s", __FUNCTION__, mApplicableStrategy, getName().c_str()); 72 ALOGD("%s: 0x%X for Stream %s", __FUNCTION__, mVolumeProfile, getName().c_str()); 79 ALOGV("%s: 0x%X for Stream %s", __FUNCTION__, mVolumeProfile, getName().c_str());
|
/hardware/interfaces/drm/1.0/vts/functional/ |
vendor_modules.cpp | 36 DIR* dir = opendir(directory.c_str()); 38 ALOGE("Unable to open drm VTS vendor directory %s", directory.c_str()); 54 auto library = std::make_unique<SharedLibrary>(String8(path.c_str())); 56 ALOGE("failed to map shared library %s", path.c_str()); 65 "%s", path.c_str(), library->lastError());
|
/system/core/debuggerd/libdebuggerd/test/ |
tombstone_test.cpp | 122 ASSERT_STREQ(expected_dump, tombstone_contents.c_str()); 124 ASSERT_STREQ("", amfd_data_.c_str()); 127 ASSERT_STREQ("", getFakeLogBuf().c_str()); 128 ASSERT_STREQ("", getFakeLogPrint().c_str()); 157 ASSERT_STREQ(expected_dump, tombstone_contents.c_str()); 159 ASSERT_STREQ("", amfd_data_.c_str()); 162 ASSERT_STREQ("", getFakeLogBuf().c_str()); 163 ASSERT_STREQ("", getFakeLogPrint().c_str()); 198 ASSERT_STREQ(expected_dump, tombstone_contents.c_str()); 200 ASSERT_STREQ("", amfd_data_.c_str()); [all...] |
/frameworks/av/media/libstagefright/ |
OmxInfoBuilder.cpp | 58 node.owner.c_str(), node.name.c_str(), mime, isEncoder, caps); 71 attribute.key.c_str(), 76 attribute.key.c_str(), attribute.value.c_str()); 125 p.key.c_str(), p.value.c_str()); 201 p.key.c_str(), p.value.c_str()); 245 info->setName(nodeName.c_str()); [all...] |