/external/rust/crates/textwrap/src/ |
D | core.rs | 179 pub fn display_width(text: &str) -> usize { in display_width() function 243 width: display_width(&trimmed), in from() 413 width: display_width(&word[prev..idx]), in split_words() 424 width: display_width(&word[prev..]), in split_words() 718 assert_eq!(display_width("Café Plain"), 10); in display_width_works() 719 assert_eq!(display_width("\u{1b}[31mCafé Rouge\u{1b}[0m"), 10); in display_width_works() 725 assert_eq!(display_width("⁉"), 1); in display_width_narrow_emojis() 729 assert_eq!(display_width("⁉"), 2); in display_width_narrow_emojis() 735 assert_eq!(display_width("⁉\u{fe0f}"), 1); in display_width_narrow_emojis_variant_selector() 739 assert_eq!(display_width("⁉\u{fe0f}"), 4); in display_width_narrow_emojis_variant_selector() [all …]
|
D | lib.rs | 680 options.width = std::cmp::max(options.width, core::display_width(line)); in unfill() 888 .saturating_sub(core::display_width(options.initial_indent)); in wrap() 891 .saturating_sub(core::display_width(options.subsequent_indent)); in wrap() 1045 .saturating_sub(core::display_width(left_gap)) in wrap_columns() 1046 .saturating_sub(core::display_width(right_gap)) in wrap_columns() 1047 .saturating_sub(core::display_width(mid_gap) * (columns - 1)); in wrap_columns() 1062 line.push_str(&" ".repeat(column_width - core::display_width(&column_line))); in wrap_columns()
|
/external/libwebm/webm_parser/tests/ |
D | video_parser_test.cc | 63 EXPECT_FALSE(video.display_width.is_present()); in TEST_F() 64 EXPECT_EQ(video.pixel_width.value(), video.display_width.value()); in TEST_F() 167 EXPECT_TRUE(video.display_width.is_present()); in TEST_F() 168 EXPECT_EQ(video.pixel_width.value(), video.display_width.value()); in TEST_F() 293 EXPECT_TRUE(video.display_width.is_present()); in TEST_F() 294 EXPECT_EQ(static_cast<std::uint64_t>(10), video.display_width.value()); in TEST_F() 360 EXPECT_FALSE(video.display_width.is_present()); in TEST_F() 361 EXPECT_EQ(static_cast<std::uint64_t>(1), video.display_width.value()); in TEST_F() 427 EXPECT_TRUE(video.display_width.is_present()); in TEST_F() 428 EXPECT_EQ(static_cast<std::uint64_t>(1), video.display_width.value()); in TEST_F()
|
/external/crosvm/rutabaga_gfx/src/ |
D | rutabaga_core.rs | 647 display_width: Option<u32>, field 659 display_width: None, in new() 669 pub fn set_display_width(mut self, display_width: u32) -> RutabagaBuilder { in set_display_width() 670 self.display_width = Some(display_width); in set_display_width() 744 let display_width = self in build() localVariable 745 .display_width in build() 755 let gfxstream = Gfxstream::init(display_width, display_height, gfxstream_flags)?; in build()
|
D | gfxstream.rs | 43 display_width: u32, in gfxstream_backend_init() 200 display_width: u32, in init() 212 display_width, in init()
|
/external/crosvm/devices/src/virtio/gpu/ |
D | virtio_gpu.rs | 74 display_width: u32, field 117 display_width: u32, in new() 143 display_width, in new() 198 [(self.display_width, self.display_height)] 234 display.create_surface(None, self.display_width, self.display_height)?; in set_scanout() 345 .framebuffer_region(surface_id, 0, 0, self.display_width, self.display_height) in flush_resource_to_surface() 348 let mut transfer = Transfer3D::new_2d(0, 0, self.display_width, self.display_height); in flush_resource_to_surface()
|
D | mod.rs | 65 pub display_width: u32, field 92 display_width: DEFAULT_DISPLAY_WIDTH, in default() 121 display_width: u32, in build() 152 display_width, in build() 880 display_width: u32, field 946 .set_display_width(gpu_parameters.display_width) in new() 962 display_width: gpu_parameters.display_width, in new() 1135 let display_width = self.display_width; in activate() localVariable 1152 display_width, in activate()
|
/external/libvpx/libvpx/ |
D | webmenc.cc | 58 const uint64_t display_width = static_cast<uint64_t>( in write_webm_file_header() local 60 video_track->set_display_width(display_width); in write_webm_file_header()
|
/external/libwebm/webm_parser/src/ |
D | video_parser.h | 52 &Video::display_width) in VideoParser() 109 *mutable_value()->display_width.mutable_value() = in FixMissingDisplaySize()
|
/external/libaom/libaom/common/ |
D | webmenc.cc | 113 const uint64_t display_width = static_cast<uint64_t>( in write_webm_file_header() local 115 video_track->set_display_width(display_width); in write_webm_file_header()
|
/external/oss-fuzz/docs/ |
D | Gemfile.lock | 246 unicode-display_width (~> 1.1, >= 1.1.1) 255 unicode-display_width (1.7.0)
|
/external/libwebm/ |
D | mkvmuxer_sample.cc | 216 uint64_t display_width = 0; in main() local 287 display_width = strtol(argv[++i], &end, 10); in main() 530 if (display_width > 0) in main() 531 video->set_display_width(display_width); in main()
|
D | webm_info.cc | 483 const int64_t display_width = video_track->GetDisplayWidth(); in OutputTracks() local 494 if (display_unit > 0 || display_width != width || in OutputTracks() 497 indent->indent_str().c_str(), display_width); in OutputTracks()
|
/external/libwebm/webm_parser/include/webm/ |
D | dom_types.h | 1171 Element<std::uint64_t> display_width; member 1214 display_width == other.display_width &&
|
/external/crosvm/src/ |
D | main.rs | 326 gpu_params.display_width = in parse_gpu_options() 1789 let (width, height) = (gpu_parameters.display_width, gpu_parameters.display_height); in validate_arguments() 2764 let display_width = 1234u32; in single_touch_spec_with_size_independent_from_gpu() localVariable 2784 display_width, display_height in single_touch_spec_with_size_independent_from_gpu()
|
/external/libwebm/mkvmuxer/ |
D | mkvmuxer.h | 775 uint64_t display_width() const { return display_width_; } in display_width() function
|
/external/libaom/libaom/third_party/libwebm/mkvmuxer/ |
D | mkvmuxer.h | 775 uint64_t display_width() const { return display_width_; } in display_width() function
|
/external/libvpx/libvpx/third_party/libwebm/mkvmuxer/ |
D | mkvmuxer.h | 775 uint64_t display_width() const { return display_width_; } in display_width() function
|
/external/libwebm/testing/ |
D | mkvmuxer_tests.cc | 154 EXPECT_EQ(kDisplayWidth, video->display_width()); in TEST_F()
|
/external/rust/crates/textwrap/ |
D | CHANGELOG.md | 23 `core::display_width` to handle emojis when the unicode-width Cargo
|
/external/libwebm/webm_parser/demo/ |
D | demo.cc | 706 PrintOptionalElement("DisplayWidth", video.display_width); in PrintMasterElement()
|
/external/libwebm/mkvparser/ |
D | mkvparser.cc | 5307 long long display_width = 0; in Parse() local 5348 display_width = UnserializeUInt(pReader, pos, size); in Parse() 5350 if (display_width <= 0) in Parse() 5420 pTrack->m_display_width = display_width; in Parse()
|
/external/libvpx/libvpx/third_party/libwebm/mkvparser/ |
D | mkvparser.cc | 5304 long long display_width = 0; in Parse() local 5345 display_width = UnserializeUInt(pReader, pos, size); in Parse() 5347 if (display_width <= 0) in Parse() 5415 pTrack->m_display_width = display_width; in Parse()
|
/external/libaom/libaom/third_party/libwebm/mkvparser/ |
D | mkvparser.cc | 5304 long long display_width = 0; in Parse() local 5345 display_width = UnserializeUInt(pReader, pos, size); in Parse() 5347 if (display_width <= 0) in Parse() 5415 pTrack->m_display_width = display_width; in Parse()
|
/external/libvpx/libwebm/mkvparser/ |
D | mkvparser.cc | 5307 long long display_width = 0; in Parse() local 5348 display_width = UnserializeUInt(pReader, pos, size); in Parse() 5350 if (display_width <= 0) in Parse() 5420 pTrack->m_display_width = display_width; in Parse()
|