Home
last modified time | relevance | path

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

1234567

/frameworks/av/media/libstagefright/httplive/
DM3UParser.cpp202 const char *lang = item.mLanguage.empty() ? "und" : item.mLanguage.c_str(); in getTrackInfo()
406 ALOGV("base:'%s', url:'%s' => '%s'", baseURL, url, out->c_str()); in MakeURL()
455 ALOGV("base:'%s', url:'%s' => '%s'", baseURL, url, out->c_str()); in MakeURL()
572 CHECK(MakeURL(mBaseURI.c_str(), line.c_str(), &item->mURI)); in parse()
596 status_t err = ParseInt32(line.c_str() + colonPos + 1, &x); in parseMetaData()
620 status_t err = ParseDouble(line.c_str() + colonPos + 1, &x); in parseMetaDataDuration()
643 char c = line.c_str()[offset]; in FindNextUnquoted()
689 ALOGV("key=%s value=%s", key.c_str(), val.c_str()); in parseStreamInf()
691 if (!strcasecmp("bandwidth", key.c_str())) { in parseStreamInf()
692 const char *s = val.c_str(); in parseStreamInf()
[all …]
/frameworks/base/core/jni/
Dandroid_os_SELinux.cpp136 context_c_str = context->c_str(); in setFSCreateCon()
164 if (path.c_str() == NULL) { in setFileCon()
169 if (context.c_str() == NULL) { in setFileCon()
174 char *tmp = const_cast<char *>(context.c_str()); in setFileCon()
175 int ret = setfilecon(path.c_str(), tmp); in setFileCon()
177 ALOGV("setFileCon(%s, %s) => %d", path.c_str(), context.c_str(), ret); in setFileCon()
197 if (path.c_str() == NULL) { in getFileCon()
202 int ret = getfilecon(path.c_str(), &tmp); in getFileCon()
210 ALOGV("getFileCon(%s) => %s", path.c_str(), context.get()); in getFileCon()
316 int ret = security_get_boolean_active(name.c_str()); in getBooleanValue()
[all …]
Dcom_android_internal_content_NativeLibraryHelper.cpp189 …if (strlcpy(localFileName, nativeLibPath.c_str(), sizeof(localFileName)) != nativeLibPath.size()) { in copyFileIfChanged()
209 if (strlcpy(localTmpFileName, nativeLibPath.c_str(), sizeof(localTmpFileName)) in copyFileIfChanged()
278 if (zipFile.open(filePath.c_str()) != NO_ERROR) { in iterateOverNativeFiles()
279 ALOGI("Couldn't open APK %s\n", filePath.c_str()); in iterateOverNativeFiles()
318 … ALOGV("Comparing ABIs %s and %s versus %s\n", cpuAbi.c_str(), cpuAbi2.c_str(), cpuAbiOffset); in iterateOverNativeFiles()
321 && !strncmp(cpuAbiOffset, cpuAbi.c_str(), cpuAbiRegionSize)) { in iterateOverNativeFiles()
322 ALOGV("Using primary ABI %s\n", cpuAbi.c_str()); in iterateOverNativeFiles()
326 && !strncmp(cpuAbiOffset, cpuAbi2.c_str(), cpuAbiRegionSize)) { in iterateOverNativeFiles()
333 ALOGV("Already saw primary ABI, skipping secondary ABI %s\n", cpuAbi2.c_str()); in iterateOverNativeFiles()
336 ALOGV("Using secondary ABI %s\n", cpuAbi2.c_str()); in iterateOverNativeFiles()
/frameworks/base/media/mca/filterfw/native/core/
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 …]
/frameworks/native/opengl/tests/hwc/
DhwcRects.cpp282 "closing >] in: %s", rectDesc.c_str()); in main()
376 testPrintE("Error parsing format from: %s", rectStr.c_str()); in parseRect()
379 format = hwcTestGraphicFormatLookup(str.c_str()); in parseRect()
381 testPrintE("Unknown graphic format in: %s", rectStr.c_str()); in parseRect()
389 testPrintE("Invalid display frame in: %s", rectStr.c_str()); in parseRect()
414 rectStr.c_str()); in parseRect()
436 testPrintE("Unknown transform of \"%s\" in: %s", str.c_str(), in parseRect()
437 rectStr.c_str()); in parseRect()
451 testPrintE("Unknown blend of \"%s\" in: %s", str.c_str(), in parseRect()
452 rectStr.c_str()); in parseRect()
[all …]
/frameworks/base/tools/aidl/
DAST.cpp84 fprintf(to, "%s\n", this->comment.c_str()); in Write()
87 fprintf(to, "%s %s", this->variable->type->QualifiedName().c_str(), in Write()
88 this->variable->name.c_str()); in Write()
90 fprintf(to, " = %s", this->value.c_str()); in Write()
111 fprintf(to, "%s", this->value.c_str()); in Write()
126 fprintf(to, "\"%s\"", this->value.c_str()); in Write()
167 fprintf(to, "%s%s %s", this->type->QualifiedName().c_str(), dim.c_str(), in WriteDeclaration()
168 this->name.c_str()); in WriteDeclaration()
174 fprintf(to, "%s", name.c_str()); in Write()
202 fprintf(to, "%s", this->clazz->QualifiedName().c_str()); in Write()
[all …]
Dsearch_path.cpp46 if (0 == _access(f.c_str(), 0) && /* mode 0=exist */
47 0 == _access(f.c_str(), 4) ) { /* mode 4=readable */
49 if (0 == access(f.c_str(), R_OK)) {
51 return strdup(f.c_str());
Daidl.cpp217 p = fn.c_str() + (len - expected.length());
233 valid = !strcasecmp(expected.c_str(), p);
240 filename, name->lineno, name->data, expected.c_str());
364 type->QualifiedName().c_str());
373 type->QualifiedName().c_str(), newKind);
375 old->DeclFile().c_str(), old->DeclLine(), oldKind);
641 to = fopen(fileName.c_str(), "wb");
643 to = fopen(options.depFileName.c_str(), "wb");
657 fprintf(to, "%s: \\\n", options.outputFileName.c_str());
662 fprintf(to, " %s %s\n", options.inputFileName.c_str(), slash);
[all …]
/frameworks/av/media/libstagefright/rtsp/
DASessionDescription.cpp66 if ((size_t)eolPos > i && desc.c_str()[eolPos - 1] == '\r') { in parse()
79 if (line.size() < 2 || line.c_str()[1] != '=') { in parse()
83 ALOGI("%s", line.c_str()); in parse()
85 switch (line.c_str()[0]) { in parse()
88 if (strcmp(line.c_str(), "v=0")) { in parse()
123 ALOGV("adding '%s' => '%s'", key.c_str(), value.c_str()); in parse()
132 AString(line, 2, line.size() - 2).c_str()); in parse()
151 ALOGV("adding '%s' => '%s'", key.c_str(), value.c_str()); in parse()
204 const char *lastSpacePos = strrchr(format.c_str(), ' '); in getFormatType()
238 const char *s = value.c_str(); in getDimensions()
[all …]
DARTPSource.cpp58 if (!strncmp(desc.c_str(), "H264/", 5)) { in ARTPSource()
61 } else if (!strncmp(desc.c_str(), "MP4A-LATM/", 10)) { in ARTPSource()
63 } else if (!strncmp(desc.c_str(), "H263-1998/", 10) in ARTPSource()
64 || !strncmp(desc.c_str(), "H263-2000/", 10)) { in ARTPSource()
67 } else if (!strncmp(desc.c_str(), "AMR/", 4)) { in ARTPSource()
69 } else if (!strncmp(desc.c_str(), "AMR-WB/", 7)) { in ARTPSource()
71 } else if (!strncmp(desc.c_str(), "MP4V-ES/", 8) in ARTPSource()
72 || !strncasecmp(desc.c_str(), "mpeg4-generic/", 14)) { in ARTPSource()
75 } else if (ARawAudioAssembler::Supports(desc.c_str())) { in ARTPSource()
76 mAssembler = new ARawAudioAssembler(notify, desc.c_str(), params); in ARTPSource()
[all …]
DAPacketSource.cpp83 char c = s.c_str()[i]; in decodeHex()
265 const char *s = val.c_str(); in MakeAACCodecSpecificData2()
427 if (!strncmp(desc.c_str(), "H264/", 5)) { in APacketSource()
438 MakeAVCCodecSpecificData(params.c_str(), &encWidth, &encHeight); in APacketSource()
458 } else if (!strncmp(desc.c_str(), "H263-2000/", 10) in APacketSource()
459 || !strncmp(desc.c_str(), "H263-1998/", 10)) { in APacketSource()
470 } else if (!strncmp(desc.c_str(), "MP4A-LATM/", 10)) { in APacketSource()
475 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
481 MakeAACCodecSpecificData(params.c_str()); in APacketSource()
486 } else if (!strncmp(desc.c_str(), "AMR/", 4)) { in APacketSource()
[all …]
DAMPEG4ElementaryAssembler.cpp76 s = val.c_str(); in GetIntegerAttribute()
129 mIsGeneric = !strncasecmp(desc.c_str(),"mpeg4-generic/", 14); in AMPEG4ElementaryAssembler()
133 CHECK(GetAttribute(params.c_str(), "mode", &value)); in AMPEG4ElementaryAssembler()
135 if (!GetIntegerAttribute(params.c_str(), "sizeLength", &mSizeLength)) { in AMPEG4ElementaryAssembler()
140 params.c_str(), "indexLength", &mIndexLength)) { in AMPEG4ElementaryAssembler()
145 params.c_str(), "indexDeltaLength", &mIndexDeltaLength)) { in AMPEG4ElementaryAssembler()
150 params.c_str(), "CTSDeltaLength", &mCTSDeltaLength)) { in AMPEG4ElementaryAssembler()
155 params.c_str(), "DTSDeltaLength", &mDTSDeltaLength)) { in AMPEG4ElementaryAssembler()
161 params.c_str(), "randomAccessIndication", &x)) { in AMPEG4ElementaryAssembler()
169 params.c_str(), "streamStateIndication", in AMPEG4ElementaryAssembler()
[all …]
DMyHandler.h142 mSessionURL.c_str(), &host, &port, &path, &user, &pass)); in mNotify()
152 ALOGI("rewritten session url: '%s'", mSessionURL.c_str()); in mNotify()
166 mConn->connect(mOriginalSessionURL.c_str(), reply); in connect()
178 mConn->connect(mOriginalSessionURL.c_str(), reply); in loadSDP()
192 mBaseURL.c_str(), in getControlURL()
193 sessionLevelControlURL.c_str(), in getControlURL()
265 memcpy(&data[offset], cname.c_str(), cname.size()); in addSDES()
274 memcpy(&data[offset], tool.c_str(), tool.size()); in addSDES()
308 if (!GetAttribute(transport.c_str(), in pokeAHole()
314 struct hostent *ent = gethostbyname(mSessionHost.c_str()); in pokeAHole()
[all …]
DARTSPConnection.cpp45 StringPrintf("User-Agent: %s\r\n", MakeUserAgent().c_str());
173 const char *colonPos = strchr(host->c_str(), ':'); in ParseURL()
183 size_t colonOffset = colonPos - host->c_str(); in ParseURL()
236 if (!ParseURL(url.c_str(), &host, &port, &path, &mUser, &mPass) in onConnect()
242 ALOGE("Malformed rtsp url %s", url.c_str()); in onConnect()
252 ALOGV("user = '%s', pass = '%s'", mUser.c_str(), mPass.c_str()); in onConnect()
255 struct hostent *ent = gethostbyname(host.c_str()); in onConnect()
257 ALOGE("Unknown host %s", host.c_str()); in onConnect()
423 reply->setString("original-request", request.c_str(), request.size()); in onSendRequest()
440 ALOGV("request: '%s'", request.c_str()); in onSendRequest()
[all …]
/frameworks/compile/libbcc/lib/Renderscript/
DRSCompilerDriver.cpp88 dep_info.push(std::make_pair(output_path.c_str(), bitcode_sha1)); in loadScript()
93 FileMutex<FileBase::kReadLock> read_output_mutex(output_path.c_str()); in loadScript()
96 ALOGE("Unable to acquire the read lock for %s! (%s)", output_path.c_str(), in loadScript()
97 read_output_mutex.getErrorMessage().c_str()); in loadScript()
104 InputFile *object_file = new (std::nothrow) InputFile(output_path.c_str()); in loadScript()
116 android::String8 info_path = RSInfo::GetPath(output_path.c_str()); in loadScript()
120 output_path.c_str(), info_path.string(), in loadScript()
121 object_file->getErrorMessage().c_str()); in loadScript()
243 pOutputPath, write_output_mutex.getErrorMessage().c_str()); in compileScript()
254 output_file.getErrorMessage().c_str()); in compileScript()
[all …]
DRSExecutable.cpp56 pObjFile.getName().c_str()); in Create()
132 android::String8 info_path = RSInfo::GetPath(mObjFile->getName().c_str()); in syncInfo()
137 info_file.getErrorMessage().c_str()); in syncInfo()
146 mObjFile->getName().c_str(), info_file.getErrorMessage().c_str()); in syncInfo()
173 mObjFile->getName().c_str()); in dumpDisassembly()
190 func_name, mObjFile->getName().c_str(), static_cast<size_t>(result)); in dumpDisassembly()
/frameworks/av/media/libstagefright/wifi-display/source/
DWifiDisplaySource.cpp150 const char *s = iface.c_str() + colonPos + 1; in onMessageReceived()
165 if (inet_aton(iface.c_str(), &mInterfaceAddr) != 0) { in onMessageReceived()
203 detail.c_str(), in onMessageReceived()
572 mNetSession->sendRequest(sessionID, request.c_str(), request.size()); in sendM1()
602 mNetSession->sendRequest(sessionID, request.c_str(), request.size()); in sendM3()
647 mClientInfo.mLocalIP.c_str())); in sendM4()
651 "wfd_client_rtp_ports: %s\r\n", mWfdClientRtpPorts.c_str())); in sendM4()
662 mNetSession->sendRequest(sessionID, request.c_str(), request.size()); in sendM4()
708 mNetSession->sendRequest(sessionID, request.c_str(), request.size()); in sendTrigger()
732 mNetSession->sendRequest(sessionID, request.c_str(), request.size()); in sendM16()
[all …]
/frameworks/av/media/libstagefright/chromium_http/
Dsupport.cpp112 data.writeString16(String16(hostname.c_str())); in verifyX509CertChain()
113 data.writeString16(String16(auth_type.c_str())); in verifyX509CertChain()
156 "%s:%d: %s", file, line, str.c_str()); in logMessageHandler()
224 TickCountToString(time).c_str(), in AddEntry()
227 EventPhaseToString(phase)).c_str()); in AddEntry()
242 mUserAgent = MakeUserAgent().c_str(); in SfRequestContext()
296 std::string proxy = StringPrintf("%s:%d", host, port).c_str(); in updateProxyConfig()
372 mOwner->onRedirect(new_url.spec().c_str()); in OnReceivedRedirect()
413 request->status().os_error()).c_str()); in OnResponseStarted()
424 request->GetResponseCode()).c_str()); in OnResponseStarted()
[all …]
/frameworks/compile/mclinker/unittests/
DPathTest.cpp138 EXPECT_STREQ("/usr/lib/", m_pTestee->generic_string().c_str()); in TEST_F()
143 EXPECT_STREQ("aa/bb/cc", m_pTestee->parent_path().c_str()); in TEST_F()
146 EXPECT_STREQ("/aa/bb", m_pTestee->parent_path().c_str()); in TEST_F()
149 EXPECT_STREQ("/aa", m_pTestee->parent_path().c_str()); in TEST_F()
152 EXPECT_STREQ("aa", m_pTestee->parent_path().c_str()); in TEST_F()
160 EXPECT_STREQ("cc", m_pTestee->filename().c_str()); in TEST_F()
163 EXPECT_STREQ("", m_pTestee->filename().c_str()); in TEST_F()
166 EXPECT_STREQ("aa", m_pTestee->filename().c_str()); in TEST_F()
/frameworks/compile/libbcc/lib/Core/
DSource.cpp46 pInput->getBufferIdentifier(), error.c_str()); in helper_load_bitcode()
94 ALOGE("Failed to load bitcode from path %s! (%s)", pPath.c_str(), in CreateFromFile()
95 ec.message().c_str()); in CreateFromFile()
120 pModule.getModuleIdentifier().c_str()); in CreateFromModule()
145 getIdentifier().c_str(), in merge()
146 pSource.getIdentifier().c_str(), in merge()
147 error.c_str()); in merge()
165 ALOGE("Out of memory when creating empty LLVM module `%s'!", pName.c_str()); in CreateEmpty()
/frameworks/av/media/libstagefright/foundation/
DParsedMessage.cpp71 *value = strtol(stringValue.c_str(), &end, 10); in findInt32()
73 if (end == stringValue.c_str() || *end != '\0') { in findInt32()
82 return mContent.c_str(); in getContent()
124 if (line.c_str()[0] == ' ' || line.c_str()[0] == '\t') { in parse()
214 *statusCode = strtol(statusCodeString.c_str(), &end, 10); in getStatusCode()
216 if (*end != '\0' || end == statusCodeString.c_str() in getStatusCode()
291 *value = strtol(stringValue.c_str(), &end, 10); in GetInt32Attribute()
293 if (end == stringValue.c_str() || *end != '\0') { in GetInt32Attribute()
/frameworks/base/core/jni/android/graphics/
DTypeface.cpp23 const char* c_str() const { return fCStr; } in c_str() function in AutoJavaStringToUTF8
37 face = SkTypeface::CreateFromName(str.c_str(), style); in Typeface_create()
40 … face = SkTypeface::CreateFromName(str.c_str(), (SkTypeface::Style)(style ^ SkTypeface::kItalic)); in Typeface_create()
43 face = SkTypeface::CreateFromName(str.c_str(), (SkTypeface::Style)i); in Typeface_create()
90 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); in Typeface_createFromAsset()
111 return SkTypeface::CreateFromFile(str.c_str()); in Typeface_createFromFile()
/frameworks/compile/slang/
Dslang_rs_reflection_base.cpp96 printf("Generating %s\n", filename.c_str()); in startFile()
143 FILE *pfin = fopen((mOutputPath + filename).c_str(), "wt"); in writeFile()
145 fprintf(stderr, "Error: could not write file %s\n", filename.c_str()); in writeFile()
150 fprintf(pfin, "%s\n", txt[ct].c_str()); in writeFile()
178 tmp << s.c_str(); in genInitValue()
/frameworks/compile/libbcc/tools/bcc/
DMain.cpp193 llvm::MemoryBuffer::getFile(OptInputFilename.c_str(), input_data); in main()
196 OptInputFilename.c_str(), ec.message().c_str()); in main()
209 bool built = RSCD.build(context, OptOutputPath.c_str(), in main()
210 OptOutputFilename.c_str(), bitcode, bitcodeSize, in main()
211 OptBCLibFilename.c_str(), NULL, OptEmitLLVM); in main()
/frameworks/compile/libbcc/bcinfo/tools/
Dmain.cpp118 FILE *info = fopen(infoFile.c_str(), "w"); in dumpInfo()
120 fprintf(stderr, "Could not open info file %s\n", infoFile.c_str()); in dumpInfo()
226 if (stat(inFile.c_str(), &statInFile) < 0) { in readBitcode()
236 FILE *in = fopen(inFile.c_str(), "r"); in readBitcode()
238 fprintf(stderr, "Could not open input file %s\n", inFile.c_str()); in readBitcode()
248 fprintf(stderr, "Could not read all of file %s\n", inFile.c_str()); in readBitcode()
319 inFile.c_str(), false)); in main()
330 fprintf(stderr, "error: %s\n", errmsg.c_str()); in main()
338 new llvm::tool_output_file(outFile.c_str(), errmsg, in main()

1234567