Home
last modified time | relevance | path

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

123456

/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/base/core/jni/
Dandroid_net_wifi_Wifi.cpp133 return (jboolean)(::wifi_connect_to_supplicant(ifname.c_str()) == 0); in android_net_wifi_connectToSupplicant()
139 ::wifi_close_supplicant_connection(ifname.c_str()); in android_net_wifi_closeSupplicantConnection()
146 int nread = ::wifi_wait_for_event(ifname.c_str(), buf, sizeof buf); in android_net_wifi_waitForEvent()
160 if (command.c_str() == NULL) { in android_net_wifi_doBooleanCommand()
163 if (DBG) ALOGD("doBoolean: %s", command.c_str()); in android_net_wifi_doBooleanCommand()
164 return doBooleanCommand(ifname.c_str(), "OK", "%s", command.c_str()); in android_net_wifi_doBooleanCommand()
173 if (command.c_str() == NULL) { in android_net_wifi_doIntCommand()
176 if (DBG) ALOGD("doInt: %s", command.c_str()); in android_net_wifi_doIntCommand()
177 return doIntCommand(ifname.c_str(), "%s", command.c_str()); in android_net_wifi_doIntCommand()
186 if (command.c_str() == NULL) { in android_net_wifi_doStringCommand()
[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/native/opengl/tests/hwc/
DhwcRects.cpp282 "closing >] in: %s", rectDesc.c_str()); in main()
374 testPrintE("Error parsing format from: %s", rectStr.c_str()); in parseRect()
377 format = hwcTestGraphicFormatLookup(str.c_str()); in parseRect()
379 testPrintE("Unknown graphic format in: %s", rectStr.c_str()); in parseRect()
387 testPrintE("Invalid display frame in: %s", rectStr.c_str()); in parseRect()
412 rectStr.c_str()); in parseRect()
434 testPrintE("Unknown transform of \"%s\" in: %s", str.c_str(), in parseRect()
435 rectStr.c_str()); in parseRect()
449 testPrintE("Unknown blend of \"%s\" in: %s", str.c_str(), in parseRect()
450 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.cpp211 p = fn.c_str() + (len - expected.length());
227 valid = !strcasecmp(expected.c_str(), p);
234 filename, name->lineno, name->data, expected.c_str());
358 type->QualifiedName().c_str());
367 type->QualifiedName().c_str(), newKind);
369 old->DeclFile().c_str(), old->DeclLine(), oldKind);
637 to = fopen(fileName.c_str(), "wb");
639 to = fopen(options.depFileName.c_str(), "wb");
653 fprintf(to, "%s: \\\n", options.outputFileName.c_str());
658 fprintf(to, " %s %s\n", options.inputFileName.c_str(), slash);
[all …]
/frameworks/av/media/libstagefright/httplive/
DM3UParser.cpp104 ALOGV("base:'%s', url:'%s' => '%s'", baseURL, url, out->c_str()); in MakeURL()
143 ALOGV("base:'%s', url:'%s' => '%s'", baseURL, url, out->c_str()); in MakeURL()
259 CHECK(MakeURL(mBaseURI.c_str(), line.c_str(), &item->mURI)); in parse()
283 status_t err = ParseInt32(line.c_str() + colonPos + 1, &x); in parseMetaData()
307 status_t err = ParseDouble(line.c_str() + colonPos + 1, &x); in parseMetaDataDuration()
354 ALOGV("key=%s value=%s", key.c_str(), val.c_str()); in parseStreamInf()
356 if (!strcasecmp("bandwidth", key.c_str())) { in parseStreamInf()
357 const char *s = val.c_str(); in parseStreamInf()
385 char c = line.c_str()[offset]; in FindNextUnquoted()
432 ALOGV("key=%s value=%s", key.c_str(), val.c_str()); in parseCipherInfo()
[all …]
DLiveSession.cpp171 ALOGI("onConnect '%s'", url.c_str()); in onConnect()
179 sp<M3UParser> playlist = fetchPlaylist(url.c_str(), &dummy); in onConnect()
182 ALOGE("unable to fetch master playlist '%s'.", url.c_str()); in onConnect()
248 … ? "" : StringPrintf("%lld", range_offset + range_length - 1).c_str()).c_str())); in fetchFile()
528 sp<M3UParser> playlist = fetchPlaylist(url.c_str(), &unchanged); in onDownloadNext()
534 ALOGE("failed to load playlist at url '%s'", url.c_str()); in onDownloadNext()
694 status_t err = fetchFile(uri.c_str(), &buffer, range_offset, range_length); in onDownloadNext()
696 ALOGE("failed to fetch .ts segment at url '%s'", uri.c_str()); in onDownloadNext()
799 ALOGE("Unsupported cipher method '%s'", method.c_str()); in decryptBuffer()
829 keyURI.c_str(), in decryptBuffer()
[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()
260 const char *s = val.c_str(); in MakeAACCodecSpecificData2()
422 if (!strncmp(desc.c_str(), "H264/", 5)) { in APacketSource()
433 MakeAVCCodecSpecificData(params.c_str(), &encWidth, &encHeight); in APacketSource()
453 } else if (!strncmp(desc.c_str(), "H263-2000/", 10) in APacketSource()
454 || !strncmp(desc.c_str(), "H263-1998/", 10)) { in APacketSource()
465 } else if (!strncmp(desc.c_str(), "MP4A-LATM/", 10)) { in APacketSource()
470 desc.c_str(), &sampleRate, &numChannels); in APacketSource()
476 MakeAACCodecSpecificData(params.c_str()); in APacketSource()
481 } else if (!strncmp(desc.c_str(), "AMR/", 4)) { in APacketSource()
[all …]
DMyHandler.h149 mSessionURL.c_str(), &host, &port, &path, &user, &pass)); in mNotify()
159 ALOGI("rewritten session url: '%s'", mSessionURL.c_str()); in mNotify()
173 mConn->connect(mOriginalSessionURL.c_str(), reply); in connect()
221 memcpy(&data[offset], cname.c_str(), cname.size()); in addSDES()
231 memcpy(&data[offset], tool.c_str(), tool.size()); in addSDES()
265 if (!GetAttribute(transport.c_str(), in pokeAHole()
271 struct hostent *ent = gethostbyname(mSessionHost.c_str()); in pokeAHole()
274 mSessionHost.c_str()); in pokeAHole()
281 addr.sin_addr.s_addr = inet_addr(source.c_str()); in pokeAHole()
284 if (!GetAttribute(transport.c_str(), in pokeAHole()
[all …]
DARTPSource.cpp57 if (!strncmp(desc.c_str(), "H264/", 5)) { in ARTPSource()
60 } else if (!strncmp(desc.c_str(), "MP4A-LATM/", 10)) { in ARTPSource()
62 } else if (!strncmp(desc.c_str(), "H263-1998/", 10) in ARTPSource()
63 || !strncmp(desc.c_str(), "H263-2000/", 10)) { in ARTPSource()
66 } else if (!strncmp(desc.c_str(), "AMR/", 4)) { in ARTPSource()
68 } else if (!strncmp(desc.c_str(), "AMR-WB/", 7)) { in ARTPSource()
70 } else if (!strncmp(desc.c_str(), "MP4V-ES/", 8) in ARTPSource()
71 || !strncasecmp(desc.c_str(), "mpeg4-generic/", 14)) { in ARTPSource()
74 } else if (ARawAudioAssembler::Supports(desc.c_str())) { in ARTPSource()
75 mAssembler = new ARawAudioAssembler(notify, desc.c_str(), params); in ARTPSource()
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.cpp170 const char *colonPos = strchr(host->c_str(), ':'); in ParseURL()
180 size_t colonOffset = colonPos - host->c_str(); in ParseURL()
232 if (!ParseURL(url.c_str(), &host, &port, &path, &mUser, &mPass) in onConnect()
238 ALOGE("Malformed rtsp url %s", url.c_str()); in onConnect()
248 ALOGV("user = '%s', pass = '%s'", mUser.c_str(), mPass.c_str()); in onConnect()
251 struct hostent *ent = gethostbyname(host.c_str()); in onConnect()
253 ALOGE("Unknown host %s", host.c_str()); in onConnect()
415 reply->setString("original-request", request.c_str(), request.size()); in onSendRequest()
432 ALOGV("request: '%s'", request.c_str()); in onSendRequest()
437 send(mSocket, request.c_str() + numBytesSent, in onSendRequest()
[all …]
DMyTransmitter.h104 mConn->connect(mServerURL.c_str(), reply); in MyTransmitter()
222 addAuthentication(&request, "ANNOUNCE", mStreamURL.c_str()); in issueAnnounce()
233 mConn->sendRequest(request.c_str(), reply); in issueAnnounce()
241 MD5_Update(&m, s.c_str(), s.size()); in H()
271 if (!strncmp(value.c_str(), "Basic", 5)) { in authenticate()
274 CHECK(!strncmp(value.c_str(), "Digest", 6)); in authenticate()
279 CHECK_EQ(value.c_str()[i + 6], '\"'); in authenticate()
408 addAuthentication(&request, "SETUP", mTrackURL.c_str()); in onMessageReceived()
418 mConn->sendRequest(request.c_str(), reply); in onMessageReceived()
491 CHECK(GetAttribute(transport.c_str(), "server_port", &value)); in onMessageReceived()
[all …]
/frameworks/av/media/libstagefright/chromium_http/
Dsupport.cpp73 "%s:%d: %s", file, line, str.c_str()); in logMessageHandler()
141 TickCountToString(time).c_str(), in AddEntry()
144 EventPhaseToString(phase)).c_str()); in AddEntry()
171 mUserAgent = ua.c_str(); in SfRequestContext()
289 request->status().os_error()).c_str()); in OnResponseStarted()
300 request->GetResponseCode()).c_str()); in OnResponseStarted()
310 request->GetResponseCode()).c_str()); in OnResponseStarted()
324 MY_LOGV(StringPrintf("response headers: %s", headers.c_str()).c_str()); in OnResponseStarted()
330 request->GetExpectedContentSize(), contentType.c_str()); in OnResponseStarted()
337 request->status().status()).c_str()); in OnReadCompleted()
[all …]
/frameworks/compile/mclinker/utils/gtest/src/
Dgtest-all.cpp1386 const BiggestConvertible parsed = _strtoui64(str.c_str(), &end, 10); in ParseNaturalNumber()
1391 const BiggestConvertible parsed = strtoull(str.c_str(), &end, 10); in ParseNaturalNumber()
1690 const char* const gtest_output_flag = GTEST_FLAG(output).c_str(); in GetOutputFormat()
1702 const char* const gtest_output_flag = GTEST_FLAG(output).c_str(); in GetAbsolutePathToOutputFile()
1728 GetOutputFormat().c_str())); in GetAbsolutePathToOutputFile()
1757 if (PatternMatchesString(cur_pattern, name.c_str())) { in MatchesFilter()
1781 test_case_name.c_str(), in FilterMatchesTest()
1782 test_name.c_str()); in FilterMatchesTest()
1786 const char* const p = GTEST_FLAG(filter).c_str(); in FilterMatchesTest()
1791 positive = GTEST_FLAG(filter).c_str(); // Whole string is a positive filter in FilterMatchesTest()
[all …]
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/jni/
Djni_stochastic_linear_ranker.cpp60 jstring jstr = env->NewStringUTF(key.c_str()); in DecomposeSparseWeightVector()
259 ConvertParameter2Object(env, &key_array_param, &value_array_param, ITR_NUM, s.c_str(), 0 ); in Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetParameterClassifier()
262 …ConvertParameter2Object(env, &key_array_param, &value_array_param, NORM_CONSTRAINT, s.c_str(), 1 ); in Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetParameterClassifier()
282 ConvertParameter2Object(env, &key_array_param, &value_array_param, REG_TYPE, s.c_str(), 2 ); in Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetParameterClassifier()
285 ConvertParameter2Object(env, &key_array_param, &value_array_param, LAMBDA, s.c_str(), 3 ); in Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetParameterClassifier()
305 ConvertParameter2Object(env, &key_array_param, &value_array_param, UPDATE_TYPE, s.c_str(), 4 ); in Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetParameterClassifier()
322 ConvertParameter2Object(env, &key_array_param, &value_array_param, ADAPT_MODE, s.c_str(), 5 ); in Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetParameterClassifier()
336 ConvertParameter2Object(env, &key_array_param, &value_array_param, KERNEL_TYPE, s.c_str(), 6 ); in Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetParameterClassifier()
339 ConvertParameter2Object(env, &key_array_param, &value_array_param, KERNEL_PARAM, s.c_str(), 7 ); in Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetParameterClassifier()
342 ConvertParameter2Object(env, &key_array_param, &value_array_param, KERNEL_GAIN, s.c_str(), 8 ); in Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetParameterClassifier()
[all …]
/frameworks/compile/slang/
Dslang_rs_reflection_base.cpp94 printf("Generating %s\n", filename.c_str()); in startFile()
137 FILE *pfin = fopen(filename.c_str(), "wt"); in writeFile()
139 fprintf(stderr, "Error: could not write file %s\n", filename.c_str()); in writeFile()
144 fprintf(pfin, "%s\n", txt[ct].c_str()); in writeFile()
Dslang_rs.cpp79 BCAccessorContext.rsFileName = getInputFileName().c_str(); in generateBitcodeAccessor()
80 BCAccessorContext.bcFileName = getOutputFileName().c_str(); in generateBitcodeAccessor()
81 BCAccessorContext.reflectPath = OutputPathBase.c_str(); in generateBitcodeAccessor()
82 BCAccessorContext.packageName = PackageName.c_str(); in generateBitcodeAccessor()
348 JavaReflectionPathBase.c_str(), in compile()
349 (RealPackageName + OS_PATH_SEPARATOR_STR + *I).c_str()); in compile()
356 RealPackageName.c_str())) { in compile()
/frameworks/base/media/jni/
Dandroid_media_Utils.cpp207 valueObj = env->NewStringUTF(val.c_str()); in ConvertMessageToMap()
230 StringPrintf("%s-left", key).c_str(), in ConvertMessageToMap()
237 StringPrintf("%s-top", key).c_str(), in ConvertMessageToMap()
244 StringPrintf("%s-right", key).c_str(), in ConvertMessageToMap()
251 StringPrintf("%s-bottom", key).c_str(), in ConvertMessageToMap()
336 msg->setString(key.c_str(), value); in ConvertKeyValueArraysToMessage()
347 msg->setInt32(key.c_str(), value); in ConvertKeyValueArraysToMessage()
355 msg->setFloat(key.c_str(), value); in ConvertKeyValueArraysToMessage()
394 msg->setBuffer(key.c_str(), buffer); in ConvertKeyValueArraysToMessage()
/frameworks/compile/libbcc/lib/ExecutionEngine/
DScript.cpp274 if (objFile.open(objPath.c_str(), OpenMode::Read) < 0) { in internalLoadCache()
280 if (infoFile.open(infoPath.c_str(), OpenMode::Read) < 0) { in internalLoadCache()
407 ::unlink(objPath.c_str()); in writeCache()
408 ::unlink(infoPath.c_str()); in writeCache()
413 if (objFile.open(objPath.c_str(), OpenMode::Write) >= 0 && in writeCache()
414 infoFile.open(infoPath.c_str(), OpenMode::Write) >= 0) { in writeCache()
443 if (unlink(objPath.c_str()) != 0) { in writeCache()
445 objPath.c_str(), strerror(errno)); in writeCache()
451 if (unlink(infoPath.c_str()) != 0) { in writeCache()
453 infoPath.c_str(), strerror(errno)); in writeCache()
/frameworks/av/media/libstagefright/
DACodec.cpp390 ALOGV("[%s] signalFlush", mComponentName.c_str()); in signalFlush()
423 mComponentName.c_str(), in allocateBuffersOnPort()
577 mComponentName.c_str(), newBufferCount, err); in allocateOutputBuffersFromNativeWindow()
593 mComponentName.c_str(), def.nBufferCountActual, def.nBufferSize); in allocateOutputBuffersFromNativeWindow()
623 mComponentName.c_str(), in allocateOutputBuffersFromNativeWindow()
653 mComponentName.c_str(), info->mBufferID); in cancelBufferToNativeWindow()
832 mComponentName.c_str(), role); in setComponentRole()
956 } else if (!strcmp("OMX.Nvidia.aac.decoder", mComponentName.c_str())) { in configureCodec()
1309 if (!strcmp("OMX.TI.Video.encoder", mComponentName.c_str())) { in setVideoPortFormatType()
1440 mComponentName.c_str(), colorFormat); in setupVideoEncoder()
[all …]
/frameworks/compile/mclinker/lib/LD/
DSectionMerger.cpp36 if (0 == strncmp(pName.c_str(), in find()
37 (*it).inputSubStr.c_str(), in find()
41 else if(0 == strcmp("*", (*it).inputSubStr.c_str())) in find()

123456