Home
last modified time | relevance | path

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

1234567891011

/frameworks/av/media/libstagefright/httplive/
DM3UParser.cpp216 const char *lang = item.mLanguage.empty() ? "und" : item.mLanguage.c_str(); in getTrackInfo()
493 ALOGV("base:'%s', url:'%s' => '%s'", baseURL, url, out->c_str()); in MakeURL()
542 ALOGV("base:'%s', url:'%s' => '%s'", baseURL, url, out->c_str()); in MakeURL()
674 CHECK(MakeURL(mBaseURI.c_str(), line.c_str(), &item->mURI)); in parse()
713 groupID.c_str()); in parse()
733 status_t err = ParseInt32(line.c_str() + colonPos + 1, &x); in parseMetaData()
757 status_t err = ParseDouble(line.c_str() + colonPos + 1, &x); in parseMetaDataDuration()
780 char c = line.c_str()[offset]; in FindNextUnquoted()
826 ALOGV("key=%s value=%s", key.c_str(), val.c_str()); in parseStreamInf()
828 if (!strcasecmp("bandwidth", key.c_str())) { in parseStreamInf()
[all …]
/frameworks/base/tools/aapt2/
DLocale.cpp83 setLanguage(lang.c_str()); in initFromFilterString()
96 setRegion(part2.c_str()); in initFromFilterString()
98 setScript(part2.c_str()); in initFromFilterString()
100 setVariant(part2.c_str()); in initFromFilterString()
113 setRegion(part3.c_str()); in initFromFilterString()
115 setVariant(part3.c_str()); in initFromFilterString()
126 setVariant(part4.c_str()); in initFromFilterString()
149 setLanguage(subtags[0].c_str()); in initFromParts()
151 setLanguage(subtags[0].c_str()); in initFromParts()
157 setRegion(subtags[1].c_str()); in initFromParts()
[all …]
DConfigDescription.cpp471 uint16_t w = (uint16_t)atoi(xName.c_str()); in parseScreenSize()
472 uint16_t h = (uint16_t)atoi(yName.c_str()); in parseScreenSize()
503 out->smallestScreenWidthDp = (uint16_t)atoi(xName.c_str()); in parseSmallestScreenWidthDp()
525 out->screenWidthDp = (uint16_t)atoi(xName.c_str()); in parseScreenWidthDp()
547 out->screenHeightDp = (uint16_t)atoi(xName.c_str()); in parseScreenHeightDp()
573 out->sdkVersion = (uint16_t)atoi(sdkName.c_str()); in parseVersion()
594 if (parseMcc(partIter->c_str(), &config)) { in parse()
601 if (parseMnc(partIter->c_str(), &config)) { in parse()
621 if (parseLayoutDirection(partIter->c_str(), &config)) { in parse()
628 if (parseSmallestScreenWidthDp(partIter->c_str(), &config)) { in parse()
[all …]
/frameworks/base/core/jni/
Dandroid_os_SELinux.cpp119 context_c_str = context->c_str(); in setFSCreateCon()
147 if (path.c_str() == NULL) { in setFileCon()
152 if (context.c_str() == NULL) { in setFileCon()
157 char *tmp = const_cast<char *>(context.c_str()); in setFileCon()
158 int ret = setfilecon(path.c_str(), tmp); in setFileCon()
160 ALOGV("setFileCon(%s, %s) => %d", path.c_str(), context.c_str(), ret); in setFileCon()
180 if (path.c_str() == NULL) { in getFileCon()
185 int ret = getfilecon(path.c_str(), &tmp); in getFileCon()
193 ALOGV("getFileCon(%s) => %s", path.c_str(), context.get()); in getFileCon()
267 if (subjectContext.c_str() == NULL) { in checkSELinuxAccess()
[all …]
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp201 systrace_path.c_str()); in dump_systrace()
203 systrace_path.c_str(), NULL)) { in dump_systrace()
213 MYLOGE("Unable to add systrace file %s to zip file\n", systrace_path.c_str()); in dump_systrace()
215 if (remove(systrace_path.c_str())) { in dump_systrace()
216 MYLOGE("Error removing systrace file %s: %s", systrace_path.c_str(), strerror(errno)); in dump_systrace()
528 printf("Bugreport format version: %s\n", version.c_str()); in print_header()
536 entry_name.c_str()); in add_zip_entry_from_fd()
541 int32_t err = zip_writer->StartEntryWithTime(entry_name.c_str(), in add_zip_entry_from_fd()
544 MYLOGE("zip_writer->StartEntryWithTime(%s): %s\n", entry_name.c_str(), in add_zip_entry_from_fd()
555 MYLOGE("read(%s): %s\n", entry_name.c_str(), strerror(errno)); in add_zip_entry_from_fd()
[all …]
/frameworks/av/media/libstagefright/
DMediaCodecListOverrides.cpp70 *width = strtol(sWidth.c_str(), NULL, 10); in getMeasureSize()
71 *height = strtol(sHeight.c_str(), NULL, 10); in getMeasureSize()
89 *bitrate = strtol(minBitrate.c_str(), NULL, 10); in getMeasureBitrate()
132 ALOGV("doProfileEncoderInputBuffers: name %s, mime %s", name.c_str(), mime.c_str()); in doProfileEncoderInputBuffers()
140 ALOGV("doProfileEncoderInputBuffers: format %s", format->debugString().c_str()); in doProfileEncoderInputBuffers()
148 sp<MediaCodec> codec = MediaCodec::CreateByComponentName(looper, name.c_str(), &err); in doProfileEncoderInputBuffers()
150 ALOGE("Failed to create codec: %s", name.c_str()); in doProfileEncoderInputBuffers()
156 ALOGE("Failed to configure codec: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileEncoderInputBuffers()
164 ALOGE("Failed to create surface: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileEncoderInputBuffers()
179 ALOGW("Failed to release codec: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileEncoderInputBuffers()
[all …]
/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/av/services/audiopolicy/engineconfigurable/wrapper/
DParameterManagerWrapper.cpp51 ALOGD("policy-parameter-manager: %s", log.c_str()); in info()
55 ALOGW("policy-parameter-manager: %s", log.c_str()); in warning()
108 ALOGE("%s: Policy PFW start error: %s", __FUNCTION__, error.c_str()); in start()
119 "CriterionType %s already added", typeName.c_str()); in addCriterionType()
120 ALOGD("%s: Adding new criterionType %s", __FUNCTION__, typeName.c_str()); in addCriterionType()
131 "CriterionType %s not found", typeName.c_str()); in addCriterionTypeValuePair()
133 numericValue, literalValue.c_str(), typeName.c_str()); in addCriterionTypeValuePair()
187 cnode *node = config_find(root, gInclusiveCriterionTypeTag.c_str()); in loadInclusiveCriterionType()
197 cnode *node = config_find(root, gExclusiveCriterionTypeTag.c_str()); in loadExclusiveCriterionType()
226 ALOG_ASSERT(it != elementsMap.end(), "Element %s not found", name.c_str()); in getElement()
[all …]
/frameworks/native/opengl/tests/hwc/
DhwcRects.cpp280 "closing >] in: %s", rectDesc.c_str()); in main()
373 testPrintE("Error parsing format from: %s", rectStr.c_str()); in parseRect()
376 format = hwcTestGraphicFormatLookup(str.c_str()); in parseRect()
378 testPrintE("Unknown graphic format in: %s", rectStr.c_str()); in parseRect()
386 testPrintE("Invalid display frame in: %s", rectStr.c_str()); in parseRect()
411 rectStr.c_str()); in parseRect()
433 testPrintE("Unknown transform of \"%s\" in: %s", str.c_str(), in parseRect()
434 rectStr.c_str()); in parseRect()
448 testPrintE("Unknown blend of \"%s\" in: %s", str.c_str(), in parseRect()
449 rectStr.c_str()); in parseRect()
[all …]
/frameworks/native/cmds/installd/
Dotapreopt.cpp208 environ_.push_back(StringPrintf("BOOTCLASSPATH=%s", boot_cp.c_str())); in PrepareEnvironment()
213 environ_.push_back(StringPrintf("ANDROID_ROOT=%s", android_root.c_str())); in PrepareEnvironment()
216 putenv(const_cast<char*>(e.c_str())); in PrepareEnvironment()
234 if (access(art_path.c_str(), F_OK) == 0 && in PrepareBootImage()
235 access(oat_path.c_str(), F_OK) == 0) { in PrepareBootImage()
241 if (access(dalvik_cache.c_str(), F_OK) != 0) { in PrepareBootImage()
242 if (mkdir(dalvik_cache.c_str(), 0711) != 0) { in PrepareBootImage()
247 if (access(isa_path.c_str(), F_OK) != 0) { in PrepareBootImage()
248 if (mkdir(isa_path.c_str(), 0711) != 0) { in PrepareBootImage()
259 if (access(preopted_boot_art_path.c_str(), F_OK) == 0) { in PrepareBootImage()
[all …]
/frameworks/native/vulkan/libvulkan/
Dlayers_extensions.cpp107 ALOGV("opening layer library '%s'", path_.c_str()); in Open()
119 dlhandle_ = android_dlopen_ext(path_.c_str(), RTLD_NOW | RTLD_LOCAL, in Open()
122 dlhandle_ = dlopen(path_.c_str(), RTLD_NOW | RTLD_LOCAL); in Open()
125 ALOGE("failed to load layer library '%s': %s", path_.c_str(), in Open()
137 ALOGV("closing layer library '%s'", path_.c_str()); in Close()
153 path_.c_str()); in EnumerateLayers()
174 path_.c_str(), result); in EnumerateLayers()
184 path_.c_str(), result); in EnumerateLayers()
195 path_.c_str(), result); in EnumerateLayers()
204 path_.c_str(), result); in EnumerateLayers()
[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 …]
DAPacketSource.cpp83 char c = s.c_str()[i]; in decodeHex()
265 const char *s = val.c_str(); in MakeAACCodecSpecificData2()
425 if (!strncmp(desc.c_str(), "H264/", 5)) { in APacketSource()
436 MakeAVCCodecSpecificData(params.c_str(), &encWidth, &encHeight); in APacketSource()
456 } else if (!strncmp(desc.c_str(), "H263-2000/", 10) in APacketSource()
457 || !strncmp(desc.c_str(), "H263-1998/", 10)) { in APacketSource()
468 } else if (!strncmp(desc.c_str(), "MP4A-LATM/", 10)) { in APacketSource()
473 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
479 MakeAACCodecSpecificData(params.c_str()); in APacketSource()
484 } else if (!strncmp(desc.c_str(), "AMR/", 4)) { in APacketSource()
[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 …]
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 …]
DARTSPConnection.cpp45 AStringPrintf("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", uriDebugString(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 …]
DMyHandler.h157 mSessionURL.c_str(), &host, &port, &path, &user, &pass)); in mNotify()
167 ALOGV("rewritten session url: '%s'", mSessionURL.c_str()); in mNotify()
181 mConn->connect(mOriginalSessionURL.c_str(), reply); in connect()
193 mConn->connect(mOriginalSessionURL.c_str(), reply); in loadSDP()
207 mBaseURL.c_str(), in getControlURL()
208 sessionLevelControlURL.c_str(), in getControlURL()
288 memcpy(&data[offset], cname.c_str(), cname.size()); in addSDES()
297 memcpy(&data[offset], tool.c_str(), tool.size()); in addSDES()
331 if (!GetAttribute(transport.c_str(), in pokeAHole()
337 struct hostent *ent = gethostbyname(mSessionHost.c_str()); in pokeAHole()
[all …]
/frameworks/compile/libbcc/tools/bcc/
DMain.cpp214 Context, outputFilepath.c_str(), OptBCLibFilename.c_str(), in compileScriptGroup()
215 OptBCLibRelaxedFilename.c_str(), OptEmitLLVM, OptChecksum.c_str(), in compileScriptGroup()
318 llvm::MemoryBuffer::getFile(OptInputFilenames[0].c_str()); in main()
321 OptInputFilenames[0].c_str(), mb_or_error.getError().message().c_str()); in main()
330 bool built = RSCD.build(context, OptOutputPath.c_str(), in main()
331 OptOutputFilename.c_str(), in main()
333 OptChecksum.c_str(), OptBCLibFilename.c_str(), in main()
342 Source *source = Source::CreateFromBuffer(context, OptInputFilenames[0].c_str(), in main()
347 ALOGE("Failed to load source from file %s", OptInputFilenames[0].c_str()); in main()
363 if (!RSCD.buildForCompatLib(*s, output.c_str(), OptChecksum.c_str(), in main()
[all …]
/frameworks/av/media/libstagefright/wifi-display/source/
DWifiDisplaySource.cpp156 const char *s = iface.c_str() + colonPos + 1; in onMessageReceived()
171 if (inet_aton(iface.c_str(), &mInterfaceAddr) != 0) { in onMessageReceived()
209 detail.c_str(), in onMessageReceived()
578 mNetSession->sendRequest(sessionID, request.c_str(), request.size()); in sendM1()
608 mNetSession->sendRequest(sessionID, request.c_str(), request.size()); in sendM3()
653 mClientInfo.mLocalIP.c_str())); in sendM4()
657 "wfd_client_rtp_ports: %s\r\n", mWfdClientRtpPorts.c_str())); in sendM4()
668 mNetSession->sendRequest(sessionID, request.c_str(), request.size()); in sendM4()
714 mNetSession->sendRequest(sessionID, request.c_str(), request.size()); in sendTrigger()
738 mNetSession->sendRequest(sessionID, request.c_str(), request.size()); in sendM16()
[all …]
/frameworks/compile/libbcc/lib/Core/
DSource.cpp49 pInput->getBufferIdentifier(), ec.message().c_str()); in helper_load_bitcode()
100 ALOGE("Failed to load bitcode from path %s! (%s)", pPath.c_str(), in CreateFromFile()
101 mb_or_error.getError().message().c_str()); in CreateFromFile()
117 Source *result = CreateFromModule(pContext, pPath.c_str(), *module, /* pNoDelete */false); in CreateFromFile()
132 ErrorStream.str().c_str()); in CreateFromModule()
139 pModule.getModuleIdentifier().c_str()); in CreateFromModule()
162 getIdentifier().c_str(), pSource.getIdentifier().c_str()); in merge()
177 ALOGE("Out of memory when creating empty LLVM module `%s'!", pName.c_str()); in CreateEmpty()
181 Source *result = CreateFromModule(pContext, pName.c_str(), *module, /* pNoDelete */false); in CreateEmpty()
/frameworks/compile/mclinker/unittests/
DPathTest.cpp132 EXPECT_STREQ("/usr/lib/", m_pTestee->generic_string().c_str()); in TEST_F()
137 EXPECT_STREQ("aa/bb/cc", m_pTestee->parent_path().c_str()); in TEST_F()
140 EXPECT_STREQ("/aa/bb", m_pTestee->parent_path().c_str()); in TEST_F()
143 EXPECT_STREQ("/aa", m_pTestee->parent_path().c_str()); in TEST_F()
146 EXPECT_STREQ("aa", m_pTestee->parent_path().c_str()); in TEST_F()
154 EXPECT_STREQ("cc", m_pTestee->filename().c_str()); in TEST_F()
157 EXPECT_STREQ("", m_pTestee->filename().c_str()); in TEST_F()
160 EXPECT_STREQ("aa", m_pTestee->filename().c_str()); in TEST_F()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.cpp172 ALOGE("Invalid layer type change: %s --> %s", to_string(from).c_str(), in validateChange()
173 to_string(to).c_str()); in validateChange()
180 to_string(connected).c_str()); in hotplug()
297 to_string(error).c_str(), static_cast<int32_t>(error)); in createLayer()
351 to_string(error).c_str(), static_cast<int32_t>(error)); in getActiveConfig()
390 ": %s (%d)", to_string(enabled).c_str(), disp, in setVsyncEnabled()
392 to_string(error).c_str(), static_cast<int32_t>(error)); in setVsyncEnabled()
413 to_string(error).c_str(), static_cast<int32_t>(error)); in setClientTarget()
440 to_string(error).c_str(), static_cast<int32_t>(error)); in prepare()
450 "%s (%d)", displayId, to_string(error).c_str(), in prepare()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DSerializer.cpp228 ALOGV("%s: %s %s=%s", __FUNCTION__, tag, Attributes::name, name.c_str()); in deserialize()
234 ALOGV("%s: Role=%s", __FUNCTION__, role.c_str()); in deserialize()
237 mixPort = new Element(String8(name.c_str()), portRole); in deserialize()
286 ALOGV("%s: %s %s=%s", __FUNCTION__, tag, Attributes::tagName, name.c_str()); in deserialize()
289 ALOGE("%s: no type for %s", __FUNCTION__, name.c_str()); in deserialize()
292 ALOGV("%s: %s %s=%s", __FUNCTION__, tag, Attributes::type, typeName.c_str()); in deserialize()
298 ALOGV("%s: %s %s=%s", __FUNCTION__, tag, Attributes::role, role.c_str()); in deserialize()
309 deviceDesc = new Element(type, String8(name.c_str())); in deserialize()
313 ALOGV("%s: address=%s for %s", __FUNCTION__, address.c_str(), name.c_str()); in deserialize()
314 deviceDesc->mAddress = String8(address.c_str()); in deserialize()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DStream.cpp35 ALOGD("%s: Stream %s identifier 0x%X", __FUNCTION__, getName().c_str(), identifier); in setIdentifier()
54 ALOGD("%s: 0x%X for Stream %s", __FUNCTION__, strategy, getName().c_str()); in set()
61 ALOGV("%s: 0x%X for Stream %s", __FUNCTION__, mApplicableStrategy, getName().c_str()); in get()
72 ALOGD("%s: 0x%X for Stream %s", __FUNCTION__, mVolumeProfile, getName().c_str()); in set()
79 ALOGV("%s: 0x%X for Stream %s", __FUNCTION__, mVolumeProfile, getName().c_str()); in get()
/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()

1234567891011