Home
last modified time | relevance | path

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

12345678910>>...35

/frameworks/base/startop/view_compiler/
Djava_lang_builder.cc25 out_ << StringPrintf("package %s;\n", package_.c_str()) in Start()
55 package_.c_str(), in Start()
56 layout_name_.c_str()) in Start()
80 class_name.c_str(), in StartView()
81 view_var.c_str(), in StartView()
82 parent.c_str(), in StartView()
83 class_name.c_str()) in StartView()
85 view_var.c_str(), in StartView()
86 view_var.c_str(), in StartView()
87 class_name.c_str()); in StartView()
[all …]
/frameworks/base/libs/androidfw/
DLocale.cpp86 set_language(lang.c_str()); in InitFromFilterString()
99 set_region(part2.c_str()); in InitFromFilterString()
101 set_script(part2.c_str()); in InitFromFilterString()
103 set_variant(part2.c_str()); in InitFromFilterString()
117 set_region(part3.c_str()); in InitFromFilterString()
119 set_variant(part3.c_str()); in InitFromFilterString()
130 set_variant(part4.c_str()); in InitFromFilterString()
149 set_language(subtags[0].c_str()); in InitFromBcp47TagImpl()
151 set_language(subtags[0].c_str()); in InitFromBcp47TagImpl()
157 set_region(subtags[1].c_str()); in InitFromBcp47TagImpl()
[all …]
/frameworks/base/core/jni/
Dandroid_content_res_ApkAssets.cpp37 if (path.c_str() == nullptr) { in NativeLoad()
41 ATRACE_NAME(base::StringPrintf("LoadApkAssets(%s)", path.c_str()).c_str()); in NativeLoad()
45 apk_assets = ApkAssets::LoadOverlay(path.c_str(), system); in NativeLoad()
47 apk_assets = ApkAssets::LoadAsSharedLibrary(path.c_str(), system); in NativeLoad()
49 apk_assets = ApkAssets::Load(path.c_str(), system); in NativeLoad()
53 std::string error_msg = base::StringPrintf("Failed to load asset path %s", path.c_str()); in NativeLoad()
54 jniThrowException(env, "java/io/IOException", error_msg.c_str()); in NativeLoad()
63 if (friendly_name_utf8.c_str() == nullptr) { in NativeLoadFromFd()
67 ATRACE_NAME(base::StringPrintf("LoadApkAssetsFd(%s)", friendly_name_utf8.c_str()).c_str()); in NativeLoadFromFd()
82 friendly_name_utf8.c_str(), in NativeLoadFromFd()
[all …]
Dandroid_os_SELinux.cpp97 const char* path_c_str = path.c_str(); in fileSelabelLookup()
198 context_c_str = context->c_str(); in setFSCreateCon()
226 if (path.c_str() == NULL) { in setFileCon()
231 if (context.c_str() == NULL) { in setFileCon()
236 char *tmp = const_cast<char *>(context.c_str()); in setFileCon()
237 int ret = setfilecon(path.c_str(), tmp); in setFileCon()
239 ALOGV("setFileCon(%s, %s) => %d", path.c_str(), context.c_str(), ret); in setFileCon()
259 if (path.c_str() == NULL) { in getFileCon()
264 int ret = getfilecon(path.c_str(), &tmp); in getFileCon()
272 ALOGV("getFileCon(%s) => %s", path.c_str(), context.get()); in getFileCon()
[all …]
Dandroid_os_GraphicsEnvironment.cpp34 android::GraphicsEnv::getInstance().setDriverPathAndSphalLibraries(pathChars.c_str(), in setDriverPathAndSphalLibraries_native()
35 sphalLibrariesChars.c_str()); in setDriverPathAndSphalLibraries_native()
44 android::GraphicsEnv::getInstance().setGpuStats(driverPackageNameChars.c_str(), in setGpuStats_native()
45 driverVersionNameChars.c_str(), in setGpuStats_native()
47 appPackageNameChars.c_str(), vulkanVersion); in setGpuStats_native()
58 android::GraphicsEnv::getInstance().setAngleInfo(pathChars.c_str(), appNameChars.c_str(), in setAngleInfo_native()
59 devOptInChars.c_str(), rulesFd_native, rulesOffset, rulesLength); in setAngleInfo_native()
64 return android::GraphicsEnv::getInstance().shouldUseAngle(appNameChars.c_str()); in shouldUseAngle_native()
71 android::GraphicsEnv::getInstance().setLayerPaths(appNamespace, layerPathsChars.c_str()); in setLayerPaths_native()
77 android::GraphicsEnv::getInstance().setDebugLayers(layersChars.c_str()); in setDebugLayers_native()
[all …]
/frameworks/av/media/libstagefright/httplive/
DM3UParser.cpp218 const char *lang = item.mLanguage.empty() ? "und" : item.mLanguage.c_str(); in getTrackInfo()
330 *uri = mItems.itemAt(index).makeURL(mBaseURI.c_str()); in itemAt()
436 *uri = mItems.itemAt(index).makeURL(mBaseURI.c_str()); in getTypeURI()
467 if (!group->getActiveURI(uri, mBaseURI.c_str())) { in getTypeURI()
472 *uri = mItems.itemAt(index).makeURL(mBaseURI.c_str()); in getTypeURI()
502 ALOGV("base:'%s', url:'%s' => '%s'", baseURL, url, out->c_str()); in MakeURL()
551 ALOGV("base:'%s', url:'%s' => '%s'", baseURL, url, out->c_str()); in MakeURL()
558 CHECK(MakeURL(baseURL, mURI.c_str(), &out)); in makeURL()
564 CHECK(MakeURL(baseURL, mURI.c_str(), &out)); in makeURL()
743 groupID.c_str()); in parse()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/testing/
Dfile.cc62 return access(name.c_str(), F_OK) == 0; in Exists()
67 FILE* file = fopen(name.c_str(), "rb"); in ReadFileToString()
86 FILE* file = fopen(name.c_str(), "wb"); in WriteStringToFile()
104 FILE* file = fopen(name.c_str(), "wb"); in WriteStringToFileOrDie()
115 return mkdir(name.c_str(), mode) == 0; in CreateDir()
144 HANDLE find_handle = FindFirstFile((name + "/*").c_str(), &find_data); in DeleteRecursively()
147 DeleteFile(name.c_str()); in DeleteRecursively()
148 RemoveDirectory(name.c_str()); in DeleteRecursively()
158 RemoveDirectory(path.c_str()); in DeleteRecursively()
160 DeleteFile(path.c_str()); in DeleteRecursively()
[all …]
/frameworks/native/cmds/installd/
Dutils.cpp76 DIR* dir = opendir(root_path.c_str()); in resolve_ce_path_by_inode_or_fallback()
85 auto resolved = StringPrintf("%s/%s", root_path.c_str(), ent->d_name); in resolve_ce_path_by_inode_or_fallback()
111 create_data_app_path(volume_uuid).c_str(), package_name); in create_data_app_package_path()
123 create_data_user_ce_path(volume_uuid, user).c_str(), package_name); in create_data_user_ce_package_path()
137 return StringPrintf("%s/user/%u/%s", data.c_str(), userid, package_name); in create_data_user_ce_package_path_as_user_link()
153 create_data_user_de_path(volume_uuid, user).c_str(), package_name); in create_data_user_de_package_path()
172 return StringPrintf("%s/app", create_data_path(volume_uuid).c_str()); in create_data_app_path()
182 std::string legacy = StringPrintf("%s/data", data.c_str()); in create_data_user_ce_path()
184 if (lstat(legacy.c_str(), &sb) == 0 && S_ISDIR(sb.st_mode)) { in create_data_user_ce_path()
189 return StringPrintf("%s/user/%u", data.c_str(), userid); in create_data_user_ce_path()
[all …]
Dotapreopt.cpp170 return StringPrintf("%s/%s", GetOtaDirectoryPrefix().c_str(), GetTargetSlot().c_str()); in GetOTADataDirectory()
259 int result = setenv(ASEC_MOUNTPOINT_ENV_NAME, asec_mountpoint_.c_str(), 0); in CheckAndInitializeInstalldGlobals()
265 if (!init_globals_from_data_and_root(GetAndroidData().c_str(), GetAndroidRoot().c_str())) { in CheckAndInitializeInstalldGlobals()
272 if (access(GetOtaDirectoryPrefix().c_str(), R_OK) < 0) { in CheckAndInitializeInstalldGlobals()
306 environ_.push_back(StringPrintf("BOOTCLASSPATH=%s", boot_classpath_.c_str())); in PrepareEnvironment()
307 environ_.push_back(StringPrintf("ANDROID_DATA=%s", GetOTADataDirectory().c_str())); in PrepareEnvironment()
308 environ_.push_back(StringPrintf("ANDROID_ROOT=%s", android_root_.c_str())); in PrepareEnvironment()
311 putenv(const_cast<char*>(e.c_str())); in PrepareEnvironment()
330 if (access(dalvik_cache.c_str(), F_OK) != 0) { in PrepareBootImage()
336 if (access(isa_path.c_str(), F_OK) != 0) { in PrepareBootImage()
[all …]
DInstalldNativeService.cpp115 return binder::Status::fromExceptionCode(code, String8(msg.c_str())); in exception()
124 return binder::Status::fromServiceSpecificError(errno, String8(msg.c_str())); in error()
129 return binder::Status::fromServiceSpecificError(code, String8(msg.c_str())); in error()
160 StringPrintf("UUID %s is malformed", uuid->c_str())); in checkArgumentUuid()
165 if (!uuid || strcmp(uuid->c_str(), kTestUuid) == 0) { in checkArgumentUuidTestOrNull()
169 StringPrintf("UUID must be null or \"%s\", got: %s", kTestUuid, uuid->c_str())); in checkArgumentUuidTestOrNull()
178 StringPrintf("Package name %s is malformed", packageName.c_str())); in checkArgumentPackageName()
188 StringPrintf("Path %s is relative", path.c_str())); in checkArgumentPath()
192 StringPrintf("Path %s is shady", path.c_str())); in checkArgumentPath()
197 StringPrintf("Path %s is malformed", path.c_str())); in checkArgumentPath()
[all …]
/frameworks/native/services/vr/performanced/
Dtask.cpp27 open(stream.str().c_str(), O_RDONLY | O_DIRECTORY)); in OpenTaskDirectory()
31 const char* start = value.c_str(); in ParseUidStatusField()
60 task_id_, name_.c_str(), thread_group_id_, parent_process_id_, in Task()
68 openat(task_fd_.get(), relative_path.c_str(), O_RDONLY)); in OpenTaskFile()
73 base::unique_fd fd(openat(task_fd_.get(), relative_path.c_str(), O_RDONLY)); in OpenTaskFilePointer()
76 name.c_str(), strerror(errno)); in OpenTaskFilePointer()
83 task_id_, name.c_str(), strerror(errno)); in OpenTaskFilePointer()
98 field.c_str(), line.c_str(), offset); in GetStatusField()
121 line.c_str()); in ReadStatusFields()
129 key.c_str(), value.c_str()); in ReadStatusFields()
[all …]
Dcpu_set.cpp39 base::unique_fd root_cpuset_fd(open(path.c_str(), kDirectoryFlags)); in Create()
41 ALOGE("CpuSet::Create: Failed to open \"%s\": %s", path.c_str(), in Create()
54 ALOGE("CpuSet::Create: Failed to opendir %s cpuset: %s", name.c_str(), in Create()
71 openat(base_fd.get(), directory_name.c_str(), kDirectoryFlags)); in Create()
74 Create(std::move(entry_fd), directory_name.c_str(), group.get()); in Create()
160 target_set.c_str()); in MoveUnboundTasks()
175 task_id, task.name().c_str(), target_set.c_str(), in MoveUnboundTasks()
182 task_id, target_set.c_str(), status.GetErrorMessage().c_str()); in MoveUnboundTasks()
186 task_id, task.name().c_str(), task.cpus_allowed_list().c_str()); in MoveUnboundTasks()
201 ALOGI("CpuSet::CpuSet: path=%s", path().c_str()); in CpuSet()
[all …]
/frameworks/av/media/libstagefright/
DOmxInfoBuilder.cpp56 return strncasecmp(s.c_str(), prefix, strlen(prefix)) == 0; in hasPrefix()
71 attribute.key.c_str(), in queryCapabilities()
76 attribute.key.c_str(), attribute.value.c_str()); in queryCapabilities()
81 node.owner.c_str(), node.name.c_str(), mediaType, isEncoder, caps); in queryCapabilities()
133 p.key.c_str(), p.value.c_str()); in buildMediaCodecList()
160 nodeName.c_str(), role.type.c_str()); in buildMediaCodecList()
173 if (sscanf(attribute.value.c_str(), "%u%c", &rank, &dummy) != 1) { in buildMediaCodecList()
187 info->setName(nodeName.c_str()); in buildMediaCodecList()
188 info->setOwner(node.owner.c_str()); in buildMediaCodecList()
214 info->addMediaType(typeName.c_str()); in buildMediaCodecList()
[all …]
DMediaCodecListOverrides.cpp68 *width = strtol(sWidth.c_str(), NULL, 10); in getMeasureSize()
69 *height = strtol(sHeight.c_str(), NULL, 10); in getMeasureSize()
87 *bitrate = strtol(minBitrate.c_str(), NULL, 10); in getMeasureBitrate()
135 name.c_str(), mime.c_str(), isEncoder ? "encoder" : "decoder", in doProfileCodecs()
136 format->debugString().c_str()); in doProfileCodecs()
148 sp<MediaCodec> codec = MediaCodec::CreateByComponentName(looper, name.c_str(), &err); in doProfileCodecs()
150 ALOGV("Failed to create codec: %s", name.c_str()); in doProfileCodecs()
159 ALOGV("Failed to configure codec: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileCodecs()
166 ALOGV("Failed to start codec: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileCodecs()
174 ALOGV("doProfileCodecs release %s", name.c_str()); in doProfileCodecs()
[all …]
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp156 int fd = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode)); in Open()
158 MYLOGE("open(%s, %s)\n", path.c_str(), strerror(errno)); in Open()
180 MYLOGD("Going to copy file (%s) to %d\n", input_file.c_str(), out_fd); in CopyFileToFd()
194 if (unlink(file.c_str())) { in UnlinkAndLogOnError()
195 MYLOGE("Failed to unlink file (%s): %s\n", file.c_str(), strerror(errno)); in UnlinkAndLogOnError()
204 MYLOGE("Cannot open file: %s\n", file_path.c_str()); in IsFileEmpty()
220 MYLOGE("Failed to retrieve module metadata package name: %s", status.toString8().c_str()); in GetModuleMetadataVersion()
223 MYLOGD("Module metadata package name: %s", package_name.c_str()); in GetModuleMetadataVersion()
225 status = package_service->getVersionCodeForPackage(android::String16(package_name.c_str()), in GetModuleMetadataVersion()
228 MYLOGE("Failed to retrieve module metadata version: %s", status.toString8().c_str()); in GetModuleMetadataVersion()
[all …]
DDumpstateService.cpp43 MYLOGE("%s (%d) ", msg.c_str(), code); in exception()
44 return binder::Status::fromExceptionCode(code, String8(msg.c_str())); in exception()
104 MYLOGE("setListener(%s): already set (%s)\n", name.c_str(), ds_->listener_name_.c_str()); in setListener()
199 : ds_->bugreport_internal_dir_.c_str(); in dump()
207 dprintf(fd, "args: %s\n", ds_->options_->args.c_str()); in dump()
208 dprintf(fd, "extra_options: %s\n", ds_->options_->extra_options.c_str()); in dump()
209 dprintf(fd, "version: %s\n", ds_->version_.c_str()); in dump()
210 dprintf(fd, "bugreport_dir: %s\n", destination.c_str()); in dump()
211 dprintf(fd, "screenshot_path: %s\n", ds_->screenshot_path_.c_str()); in dump()
212 dprintf(fd, "log_path: %s\n", ds_->log_path_.c_str()); in dump()
[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/native/libs/graphicsenv/
DGraphicsEnv.cpp130 ALOGE("Failed to retrieve library names from %s", nativeLibrariesSystemConfig.c_str()); in getSystemNativeLibraries()
155 mDriverPath.c_str(), path.c_str(), mSphalLibraries.c_str(), sphalLibraries.c_str()); in setDriverPathAndSphalLibraries()
158 ALOGV("setting driver path to '%s' and sphal libraries to '%s'", path.c_str(), in setDriverPathAndSphalLibraries()
159 sphalLibraries.c_str()); in setDriverPathAndSphalLibraries()
197 driverPackageName.c_str(), driverVersionName.c_str(), driverVersionCode, driverBuildTime, in setGpuStats()
198 appPackageName.c_str(), vulkanVersion); in setGpuStats()
300 mGpuStats.driverPackageName.c_str(), mGpuStats.driverVersionName.c_str(), in sendGpuStatsLocked()
301 mGpuStats.driverVersionCode, mGpuStats.driverBuildTime, mGpuStats.appPackageName.c_str(), in sendGpuStatsLocked()
333 void* so = android_dlopen_ext(libName.c_str(), RTLD_LOCAL | RTLD_NOW, &dlextinfo); in loadLibrary()
336 ALOGD("dlopen_ext from APK (%s) success at %p", libName.c_str(), so); in loadLibrary()
[all …]
/frameworks/base/tools/stats_log_api_gen/
Dmain.cpp137 fprintf(out, " %s,\n", make_constant_name(*blacklistedAtom).c_str()); in write_atoms_info_cpp()
150 fprintf(out, " %s,\n", constant.c_str()); in write_atoms_info_cpp()
165 fprintf(out, " %s,\n", constant.c_str()); in write_atoms_info_cpp()
182 atom->code, atom->name.c_str()); in write_atoms_info_cpp()
184 make_constant_name(atom->name).c_str(), atom->uidField); in write_atoms_info_cpp()
207 atom->code, atom->name.c_str()); in write_atoms_info_cpp()
215 make_constant_name(atom->name).c_str()); in write_atoms_info_cpp()
238 atom->code, atom->name.c_str()); in write_atoms_info_cpp()
242 make_constant_name(atom->name).c_str(), field); in write_atoms_info_cpp()
259 fprintf(out, "namespace %s {\n", cppNamespace.c_str()); in write_namespace()
[all …]
/frameworks/native/opengl/libs/EGL/
Degl_layers.cpp344 ALOGI("Debug layer list: %s", debug_layers.c_str()); in LoadLayers()
351 android::base::Split(android::GraphicsEnv::getInstance().getLayerPaths().c_str(), in LoadLayers()
364 ALOGI("Searching %s for GLES layers", paths[j].c_str()); in LoadLayers()
371 ALOGI("GLES layer found: %s", layer.c_str()); in LoadLayers()
388 app_namespace, layer.c_str(), &native_bridge, &error_message); in LoadLayers()
390 ALOGE("Failed to load layer %s with error: %s", layer.c_str(), in LoadLayers()
397 handle = dlopen(layer.c_str(), RTLD_NOW | RTLD_LOCAL); in LoadLayers()
402 layers[i].c_str()); in LoadLayers()
406 ALOGE("Failed to load layer %s with error: %s", layer.c_str(), dlsym_error); in LoadLayers()
412 ALOGV("Looking for entrypoint %s", init_func.c_str()); in LoadLayers()
[all …]
/frameworks/av/media/codec2/sfplugin/
DCodec2InfoBuilder.cpp345 writer->addGlobalSetting(v.first.c_str(), v.second.c_str()); in buildMediaCodecList()
363 Codec2Client::CreateInterfaceByName(nameOrAlias.c_str()); in buildMediaCodecList()
367 nameOrAlias.c_str()); in buildMediaCodecList()
373 writer->findMediaCodecInfo(trait.name.c_str()); in buildMediaCodecList()
376 nameOrAlias.c_str(), in buildMediaCodecList()
377 trait.name.c_str()); in buildMediaCodecList()
380 nameOrAlias.c_str()); in buildMediaCodecList()
382 baseCodecInfo->addAlias(nameOrAlias.c_str()); in buildMediaCodecList()
385 ALOGD("component '%s' not found in xml", trait.name.c_str()); in buildMediaCodecList()
442 nameOrAlias.c_str(), domain.c_str(), asString(enabled)); in buildMediaCodecList()
[all …]
/frameworks/base/tools/aapt2/cmd/
DCompile_test.cpp65 ::android::base::utf8::unlink(path0_out.c_str()); in TEST_F()
67 ASSERT_EQ(::android::base::utf8::unlink(path0_out.c_str()), 0); in TEST_F()
69 ASSERT_EQ(::android::base::utf8::unlink(path0_out.c_str()), 0); in TEST_F()
73 ::android::base::utf8::unlink(path1_out.c_str()); in TEST_F()
75 ASSERT_EQ(::android::base::utf8::unlink(path1_out.c_str()), 0); in TEST_F()
77 ASSERT_EQ(::android::base::utf8::unlink(path1_out.c_str()), 0); in TEST_F()
81 ::android::base::utf8::unlink(path2_out.c_str()); in TEST_F()
83 ASSERT_EQ(::android::base::utf8::unlink(path2_out.c_str()), 0); in TEST_F()
85 ASSERT_EQ(::android::base::utf8::unlink(path2_out.c_str()), 0); in TEST_F()
90 ::android::base::utf8::unlink(path3_out.c_str()); in TEST_F()
[all …]
/frameworks/native/vulkan/libvulkan/
Dlayers_extensions.cpp136 ALOGV("opening layer library '%s'", path_.c_str()); in Open()
147 app_namespace, path_.c_str(), &native_bridge_, &error_msg); in Open()
149 ALOGE("failed to load layer library '%s': %s", path_.c_str(), error_msg); in Open()
155 dlhandle_ = dlopen(path_.c_str(), RTLD_NOW | RTLD_LOCAL); in Open()
157 ALOGE("failed to load layer library '%s': %s", path_.c_str(), in Open()
170 ALOGV("closing layer library '%s'", path_.c_str()); in Close()
173 ALOGE("failed to unload library '%s': %s", path_.c_str(), error_msg); in Close()
192 path_.c_str()); in EnumerateLayers()
213 path_.c_str(), result); in EnumerateLayers()
223 path_.c_str(), result); in EnumerateLayers()
[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/base/cmds/incidentd/src/
DWorkDirectory.cpp75 int fd = open(filename.c_str(), O_RDONLY | O_CLOEXEC); in read_proto()
94 int fd = open(filename.c_str(), O_CREAT | O_TRUNC | O_RDWR | O_CLOEXEC, 0660); in write_proto()
103 ALOGW("write_proto: error writing to %s", filename.c_str()); in write_proto()
125 *result = strtoll(id.c_str(), &endptr, 10); in parse_timestamp_ns()
200 ALOGD(" pkg=%s", envelope.report(i).pkg().c_str()); in log_envelope()
201 ALOGD(" cls=%s", envelope.report(i).cls().c_str()); in log_envelope()
210 ALOGD(" data_file=%s", envelope.data_file().c_str()); in log_envelope()
375 mDataFileName.c_str()); in startWritingDataFile()
378 mDataFd = open(mDataFileName.c_str(), O_CREAT | O_TRUNC | O_RDWR | O_CLOEXEC, 0660); in startWritingDataFile()
395 int dataFd = open(mDataFileName.c_str(), O_RDONLY | O_CLOEXEC); in startFilteringData()
[all …]

12345678910>>...35