Home
last modified time | relevance | path

Searched refs:to_string (Results 1 – 25 of 225) sorted by relevance

123456789

/frameworks/av/media/tests/benchmark/src/native/common/
DStats.cpp65 rowData.append(to_string(systemTime(CLOCK_MONOTONIC)) + ", "); in dumpStatistics()
71 rowData.append(to_string(mInitTimeNs) + ", "); in dumpStatistics()
72 rowData.append(to_string(mDeInitTimeNs) + ", "); in dumpStatistics()
73 rowData.append(to_string(minTimeTakenNs) + ", "); in dumpStatistics()
74 rowData.append(to_string(maxTimeTakenNs) + ", "); in dumpStatistics()
75 rowData.append(to_string(totalTimeTakenNs / mOutputTimer.size()) + ", "); in dumpStatistics()
76 rowData.append(to_string(timeTakenPerSec) + ", "); in dumpStatistics()
77 rowData.append(to_string(bytesPerSec) + ", "); in dumpStatistics()
78 rowData.append(to_string(timeToFirstFrameNs) + ", "); in dumpStatistics()
79 rowData.append(to_string(size) + ","); in dumpStatistics()
[all …]
/frameworks/base/tools/aapt2/
DSource.h38 inline Source(const android::StringPiece& path) : path(path.to_string()) { // NOLINT(implicit) in Source()
42 : path(path.to_string()), archive(archive.to_string()) {} in Source()
45 : path(path.to_string()), line(line) {} in Source()
51 std::string to_string() const { in to_string() function
68 return out << source.to_string();
DResource.h73 android::StringPiece to_string(ResourceType type);
95 std::string to_string() const;
121 std::string to_string() const;
156 std::string to_string() const;
268 return out << res_id.to_string();
272 inline std::string to_string(const ResourceId& id) { in to_string() function
273 return id.to_string(); in to_string()
294 return out << to_string(val);
303 : package(p.to_string()), type(t), entry(e.to_string()) {} in ResourceName()
334 return out << name.to_string();
[all …]
DResource.cpp30 std::string ResourceId::to_string() const { in to_string() function in aapt::ResourceId
34 std::string ResourceName::to_string() const { in to_string() function in aapt::ResourceName
35 return ResourceNameRef(*this).to_string(); in to_string()
38 std::string ResourceNameRef::to_string() const { in to_string() function in aapt::ResourceNameRef
47 StringPiece to_string(ResourceType type) { in to_string() function
DDebug.cpp81 printer_->Print(to_string(parent_name.type)); in Visit()
86 printer_->Print(parent_ref.id.value().to_string()); in Visit()
90 printer_->Print(parent_ref.id.value().to_string()); in Visit()
143 printer_->Print(symbol.symbol.id.value().to_string()); in Visit()
147 printer_->Print(symbol.symbol.id.value().to_string()); in Visit()
169 printer_->Print(entry.key.id.value().to_string()); in Visit()
173 printer_->Print(entry.key.id.value().to_string()); in Visit()
225 printer_->Print(attr.id.value().to_string()); in Visit()
231 printer_->Print(attr.id.value().to_string()); in Visit()
274 printer->Print(to_string(type.type)); in PrintTable()
[all …]
DResourceTable.h76 : name(name.to_string()), actor(actor.to_string()) {} in Overlayable()
79 : name(name.to_string()), actor(actor.to_string()), source(source ){} in Overlayable()
109 : config(config), product(product.to_string()) {} in ResourceConfigValue()
139 explicit ResourceEntry(const android::StringPiece& name) : name(name.to_string()) {} in ResourceEntry()
195 explicit ResourceTablePackage(const android::StringPiece& name) : name(name.to_string()) { in ResourceTablePackage()
DResourceUtils_test.cpp246 .to_string(), in TEST()
251 .to_string(), in TEST()
256 .to_string(), in TEST()
264 .to_string(), in TEST()
266 EXPECT_THAT(ResourceUtils::StringBuilder().AppendText("\\@\\?\\#\\\\\\'").to_string(), in TEST()
276 EXPECT_THAT(ResourceUtils::StringBuilder().AppendText("\\u00AF\\u0AF0 woah").to_string(), in TEST()
282 EXPECT_THAT(ResourceUtils::StringBuilder(true /*preserve_spaces*/).AppendText("\"").to_string(), in TEST()
/frameworks/base/tools/aapt2/cmd/
DCommand.h34 explicit Command(const android::StringPiece& name) : name_(name.to_string()), in Command()
36 full_subcommand_name_(name.to_string()) {} in Command()
39 : name_(name.to_string()), short_name_(short_name.to_string()), in Command()
40 full_subcommand_name_(name.to_string()) {} in Command()
96 : name(name.to_string()), description(description.to_string()), is_required(is_required), in Flag()
DCommand.cpp50 return arg.to_string(); in GetSafePath()
57 *value = (flags & Command::kPath) ? GetSafePath(arg) : arg.to_string(); in AddRequiredFlag()
67 value->push_back((flags & Command::kPath) ? GetSafePath(arg) : arg.to_string()); in AddRequiredFlagList()
77 *value = (flags & Command::kPath) ? GetSafePath(arg) : arg.to_string(); in AddOptionalFlag()
87 value->push_back((flags & Command::kPath) ? GetSafePath(arg) : arg.to_string()); in AddOptionalFlagList()
97 value->insert(arg.to_string()); in AddOptionalFlagList()
124 description_ = description.to_string(); in SetDescription()
/frameworks/native/services/surfaceflinger/layerproto/
DLayerProtoParser.cpp238 result.append(layer->to_string()); in layerToString()
248 std::string LayerProtoParser::ActiveBuffer::to_string() const { in to_string() function in android::surfaceflinger::LayerProtoParser::ActiveBuffer
253 std::string LayerProtoParser::Transform::to_string() const { in to_string() function in android::surfaceflinger::LayerProtoParser::Transform
259 std::string LayerProtoParser::Rect::to_string() const { in to_string() function in android::surfaceflinger::LayerProtoParser::Rect
263 std::string LayerProtoParser::FloatRect::to_string() const { in to_string() function in android::surfaceflinger::LayerProtoParser::FloatRect
267 std::string LayerProtoParser::Region::to_string(const char* what) const { in to_string() function in android::surfaceflinger::LayerProtoParser::Region
273 StringAppendF(&result, " %s\n", rect.to_string().c_str()); in to_string()
279 std::string LayerProtoParser::Layer::to_string() const { in to_string() function in android::surfaceflinger::LayerProtoParser::Layer
282 result.append(transparentRegion.to_string("TransparentRegion").c_str()); in to_string()
283 result.append(visibleRegion.to_string("VisibleRegion").c_str()); in to_string()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DProjectionSpaceTest.cpp103 << "Source content doesn't map to dest content when projecting " << to_string(source) in testTransform()
104 << " onto " << to_string(dest); in testTransform()
122 << to_string(sourceStrip) << " maps to " << to_string(mappedStrip) << " instead of " in testTransform()
123 << to_string(destStrip) << " when projecting " << to_string(source) << " onto " in testTransform()
124 << to_string(dest); in testTransform()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeEncoder.cpp87 inputReference = string(fileName) + "_" + to_string(jWidth) + "x" + to_string(jHeight) + in Java_com_android_media_benchmark_library_Native_Encode()
88 "_" + to_string(jBitRate) + "bps"; in Java_com_android_media_benchmark_library_Native_Encode()
93 inputReference = string(fileName) + "_" + to_string(jSampleRate) + "hz_" + in Java_com_android_media_benchmark_library_Native_Encode()
94 to_string(jNumChannels) + "ch_" + to_string(jBitRate) + "bps"; in Java_com_android_media_benchmark_library_Native_Encode()
/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/
DLayerProtoParser.h39 std::string to_string() const;
49 std::string to_string() const;
59 std::string to_string() const;
69 std::string to_string() const;
77 std::string to_string(const char* what) const;
120 std::string to_string() const;
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputCompositionState.cpp40 dumpVal(out, "layerStackSpace", to_string(layerStackSpace)); in dump()
42 dumpVal(out, "framebufferSpace", to_string(framebufferSpace)); in dump()
44 dumpVal(out, "orientedDisplaySpace", to_string(orientedDisplaySpace)); in dump()
46 dumpVal(out, "displaySpace", to_string(displaySpace)); in dump()
DOutputLayer.cpp398 displayFrame.bottom, to_string(error).c_str(), static_cast<int32_t>(error)); in writeOutputDependentGeometryStateToHWC()
405 sourceCrop.bottom, to_string(error).c_str(), static_cast<int32_t>(error)); in writeOutputDependentGeometryStateToHWC()
410 to_string(error).c_str(), static_cast<int32_t>(error)); in writeOutputDependentGeometryStateToHWC()
421 toString(outputDependentState.bufferTransform).c_str(), to_string(error).c_str(), in writeOutputDependentGeometryStateToHWC()
437 toString(blendMode).c_str(), to_string(error).c_str(), static_cast<int32_t>(error)); in writeOutputIndependentGeometryStateToHWC()
447 to_string(error).c_str(), static_cast<int32_t>(error)); in writeOutputIndependentGeometryStateToHWC()
454 name.c_str(), to_string(error).c_str(), static_cast<int32_t>(error)); in writeOutputIndependentGeometryStateToHWC()
469 to_string(error).c_str(), static_cast<int32_t>(error)); in writeOutputDependentPerFrameStateToHWC()
479 to_string(error).c_str(), static_cast<int32_t>(error)); in writeOutputDependentPerFrameStateToHWC()
494 to_string(error).c_str(), static_cast<int32_t>(error)); in writeOutputIndependentPerFrameStateToHWC()
[all …]
/frameworks/native/services/gpuservice/tests/unittests/
DGpuStatsTest.cpp132 expectedResult = "driverVersionCode = " + std::to_string(BUILTIN_DRIVER_VER_CODE); in TEST_F()
134 expectedResult = "driverBuildTime = " + std::to_string(BUILTIN_DRIVER_BUILD_TIME); in TEST_F()
140 expectedResult = "driverVersionCode = " + std::to_string(BUILTIN_DRIVER_VER_CODE); in TEST_F()
142 expectedResult = "glDriverLoadingTime: " + std::to_string(DRIVER_LOADING_TIME_1); in TEST_F()
156 expectedResult = "driverVersionCode = " + std::to_string(UPDATED_DRIVER_VER_CODE); in TEST_F()
158 expectedResult = "driverBuildTime = " + std::to_string(UPDATED_DRIVER_BUILD_TIME); in TEST_F()
164 expectedResult = "driverVersionCode = " + std::to_string(UPDATED_DRIVER_VER_CODE); in TEST_F()
166 expectedResult = "vkDriverLoadingTime: " + std::to_string(DRIVER_LOADING_TIME_2); in TEST_F()
178 std::string expectedResult = "angleDriverLoadingTime: " + std::to_string(DRIVER_LOADING_TIME_3); in TEST_F()
188 std::string expectedResult = "vulkanVersion = " + std::to_string(VULKAN_VERSION); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/java/
DClassDefinition.h63 : name_(name.to_string()), val_(val), staged_api_(staged_api) {
76 using std::to_string;
89 printer->Print("=").Print(to_string(val_)).Print(";");
108 : name_(name.to_string()), val_(val) {
144 explicit PrimitiveArrayMember(const android::StringPiece& name) : name_(name.to_string()) {} in PrimitiveArrayMember()
198 return to_string(*id); in ToString()
213 : signature_(signature.to_string()) {} in MethodDefinition()
246 : name_(name.to_string()), qualifier_(qualifier), create_if_empty_(createIfEmpty) {} in ClassDefinition()
/frameworks/native/services/surfaceflinger/tests/unittests/
DTimeStatsTest.cpp188 args.push_back(String16(std::to_string(NUM_LAYERS).c_str())); in inputCommand()
204 return (layerId < 0 ? "PopupWindow:b54fcd1#0" : "com.example.fake#") + std::to_string(layerId); in genLayerName()
301 const std::string expectedResult = "lateAcquireFrames = " + std::to_string(LATE_ACQUIRE_FRAMES); in TEST_F()
319 "badDesiredPresentFrames = " + std::to_string(BAD_DESIRED_PRESENT_FRAMES); in TEST_F()
350 "displayRefreshRate = " + std::to_string(REFRESH_RATE_BUCKET_0) + " fps"; in TEST_F()
352 expectedResult = "renderRate = " + std::to_string(RENDER_RATE_BUCKET_0) + " fps"; in TEST_F()
354 expectedResult = "totalTimelineFrames = " + std::to_string(8); in TEST_F()
356 expectedResult = "jankyFrames = " + std::to_string(7); in TEST_F()
358 expectedResult = "sfLongCpuJankyFrames = " + std::to_string(1); in TEST_F()
360 expectedResult = "sfLongGpuJankyFrames = " + std::to_string(1); in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DProjectionSpace.h108 inline std::string to_string(const android::compositionengine::ProjectionSpace& space) { in to_string() function
111 to_string(space.bounds).c_str(), to_string(space.content).c_str(), in to_string()
117 *os << to_string(space); in PrintTo()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHal.h79 inline std::string to_string(hardware::graphics::composer::hal::Attribute attribute) { in to_string() function
98 inline std::string to_string(hardware::graphics::composer::hal::Composition composition) { in to_string() function
117 inline std::string to_string(hardware::graphics::composer::hal::V2_4::Error error) { in to_string() function
148 inline std::string to_string(hardware::graphics::composer::hal::Error error) { in to_string() function
149 return to_string(static_cast<hardware::graphics::composer::hal::V2_4::Error>(error)); in to_string()
152 inline std::string to_string(hardware::graphics::composer::hal::PowerMode mode) { in to_string() function
/frameworks/native/cmds/lshal/
DTableEntry.cpp77 return vintf::to_string(transport); in getField()
79 return serverPid == NO_PID ? "N/A" : std::to_string(serverPid); in getField()
99 return lshal::to_string(serviceStatus); in getField()
135 std::string to_string(ServiceStatus s) { in to_string() function
196 std::string TableEntry::to_string() const { in to_string() function in android::lshal::TableEntry
DTableEntry.h79 std::string to_string(ServiceStatus s);
111 return std::to_string(threadUsage) + "/" + std::to_string(threadCount); in getThreadUsage()
121 std::string to_string() const;
/frameworks/native/services/vr/bufferhubd/
Dbuffer_hub.cpp75 std::string size = std::to_string(info.width) + " B"; in DumpState()
78 std::string dimensions = std::to_string(info.width) + "x" + in DumpState()
79 std::to_string(info.height) + "x" + in DumpState()
80 std::to_string(info.layer_count); in DumpState()
109 std::string size = std::to_string(info.width) + " B"; in DumpState()
112 std::string dimensions = std::to_string(info.width) + "x" + in DumpState()
113 std::to_string(info.height) + "x" + in DumpState()
114 std::to_string(info.layer_count); in DumpState()
210 stream << (" channel_id=" + std::to_string(channel->channel_id())); in DumpState()
/frameworks/base/core/jni/
Dandroid_os_VintfRuntimeInfo.cpp45 MAP_STRING_METHOD(getKernelVersion, vintf::to_string(info->kernelVersion()),
47 MAP_STRING_METHOD(getBootAvbVersion, vintf::to_string(info->bootAvbVersion()),
49 MAP_STRING_METHOD(getBootVbmetaAvbVersion, vintf::to_string(info->bootVbmetaAvbVersion()),
/frameworks/native/cmds/installd/
Drun_dex2oat_test.cpp166 default_expected_flags_["--zip-fd"] = "=" + std::to_string(ZIP_FD); in initializeDefaultExpectedFlags()
168 default_expected_flags_["--oat-fd"] = "=" + std::to_string(OAT_FD); in initializeDefaultExpectedFlags()
170 default_expected_flags_["--input-vdex-fd"] = "=" + std::to_string(INPUT_VDEX_FD); in initializeDefaultExpectedFlags()
171 default_expected_flags_["--output-vdex-fd"] = "=" + std::to_string(OUTPUT_VDEX_FD); in initializeDefaultExpectedFlags()
284 SetExpectedFlagUsed("--app-image-fd", "=" + std::to_string(IMAGE_FD)); in TEST_F()
285 SetExpectedFlagUsed("--profile-file-fd", "=" + std::to_string(PROFILE_FD)); in TEST_F()
286 SetExpectedFlagUsed("--swap-fd", "=" + std::to_string(SWAP_FD)); in TEST_F()
338 SetExpectedFlagUsed("--output-vdex-fd", "=" + std::to_string(INPUT_VDEX_FD)); in TEST_F()

123456789