/external/guava/android/guava-tests/test/com/google/common/base/ |
D | AsciiTest.java | 85 assertEquals("foobar", Ascii.truncate("foobar", 10, "...")); in testTruncate() 86 assertEquals("fo...", Ascii.truncate("foobar", 5, "...")); in testTruncate() 87 assertEquals("foobar", Ascii.truncate("foobar", 6, "...")); in testTruncate() 88 assertEquals("...", Ascii.truncate("foobar", 3, "...")); in testTruncate() 89 assertEquals("foobar", Ascii.truncate("foobar", 10, "…")); in testTruncate() 90 assertEquals("foo…", Ascii.truncate("foobar", 4, "…")); in testTruncate() 91 assertEquals("fo--", Ascii.truncate("foobar", 4, "--")); in testTruncate() 92 assertEquals("foobar", Ascii.truncate("foobar", 6, "…")); in testTruncate() 93 assertEquals("foob…", Ascii.truncate("foobar", 5, "…")); in testTruncate() 94 assertEquals("foo", Ascii.truncate("foobar", 3, "")); in testTruncate() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | AsciiTest.java | 85 assertEquals("foobar", Ascii.truncate("foobar", 10, "...")); in testTruncate() 86 assertEquals("fo...", Ascii.truncate("foobar", 5, "...")); in testTruncate() 87 assertEquals("foobar", Ascii.truncate("foobar", 6, "...")); in testTruncate() 88 assertEquals("...", Ascii.truncate("foobar", 3, "...")); in testTruncate() 89 assertEquals("foobar", Ascii.truncate("foobar", 10, "…")); in testTruncate() 90 assertEquals("foo…", Ascii.truncate("foobar", 4, "…")); in testTruncate() 91 assertEquals("fo--", Ascii.truncate("foobar", 4, "--")); in testTruncate() 92 assertEquals("foobar", Ascii.truncate("foobar", 6, "…")); in testTruncate() 93 assertEquals("foob…", Ascii.truncate("foobar", 5, "…")); in testTruncate() 94 assertEquals("foo", Ascii.truncate("foobar", 3, "")); in testTruncate() [all …]
|
/external/perfetto/ui/src/traceconv/ |
D | index.ts | 100 truncate?: 'start'|'end'; property 120 truncate?: 'start'|'end'): Promise<void> { 125 if (truncate !== undefined) { 126 args.push('--truncate', truncate); 142 truncate?: 'start'|'end'; property 154 trace: Blob, truncate?: 'start'|'end') { 159 if (truncate !== undefined) { 160 args.push('--truncate', truncate); 227 ConvertTraceAndDownload(args.trace, args.format, args.truncate); 229 ConvertTraceAndOpenInLegacy(args.trace, args.truncate);
|
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/time/ |
D | DateUtilsTest.java | 89 assertCalendarsEquals("", cal, DateUtils.truncate(cal, Calendar.DATE), 0); in assertWeekIterator() 1413 DateUtils.truncate(date1, Calendar.YEAR), in testTruncate() 1416 DateUtils.truncate(date2, Calendar.YEAR), in testTruncate() 1419 DateUtils.truncate(date1, Calendar.MONTH), in testTruncate() 1422 DateUtils.truncate(date2, Calendar.MONTH), in testTruncate() 1425 DateUtils.truncate(date1, DateUtils.SEMI_MONTH), in testTruncate() 1428 DateUtils.truncate(date2, DateUtils.SEMI_MONTH), in testTruncate() 1431 DateUtils.truncate(date1, Calendar.DATE), in testTruncate() 1434 DateUtils.truncate(date2, Calendar.DATE), in testTruncate() 1437 DateUtils.truncate(date1, Calendar.HOUR), in testTruncate() [all …]
|
D | DateUtilsRoundingTest.java | 129 …assertEquals(truncatedDate, DateUtils.truncate(truncatedDate, calendarField), "Truncating "+ fdf.f… in baseTruncateTest() 130 assertEquals(truncatedDate, DateUtils.truncate(lastTruncateDate, calendarField)); in baseTruncateTest() 131 …assertNotEquals(truncatedDate, DateUtils.truncate(nextTruncateDate, calendarField), fdf.format(las… in baseTruncateTest() 145 …assertEquals(truncatedCalendar, DateUtils.truncate(truncatedCalendar, calendarField), "Truncating … in baseTruncateTest() 146 assertEquals(truncatedCalendar, DateUtils.truncate(lastTruncateCalendar, calendarField)); in baseTruncateTest() 147 …assertNotEquals(truncatedCalendar, DateUtils.truncate(nextTruncateCalendar, calendarField), fdf.fo… in baseTruncateTest() 150 …assertEquals(truncatedDate, DateUtils.truncate((Object) truncatedDate, calendarField), "Truncating… in baseTruncateTest() 151 assertEquals(truncatedDate, DateUtils.truncate((Object) lastTruncateDate, calendarField)); in baseTruncateTest() 152 …assertNotEquals(truncatedDate, DateUtils.truncate((Object) nextTruncateDate, calendarField), fdf.f… in baseTruncateTest() 153 …assertEquals(truncatedDate, DateUtils.truncate((Object) truncatedCalendar, calendarField), "Trunca… in baseTruncateTest() [all …]
|
/external/cronet/net/disk_cache/simple/ |
D | simple_entry_operation.cc | 84 bool truncate, in WriteOperation() argument 89 truncate, optimistic); in WriteOperation() 139 const bool truncate = false; in DoomOperation() local 143 index, truncate, optimistic); in DoomOperation() 155 bool truncate, in SimpleEntryOperation() argument 166 truncate_(truncate), in SimpleEntryOperation()
|
D | simple_entry_operation.h | 76 bool truncate, 118 bool truncate() const { return truncate_; } in truncate() function 131 bool truncate,
|
/external/cronet/net/disk_cache/ |
D | net_log_parameters.cc | 21 bool truncate) { in NetLogReadWriteDataParams() argument 26 if (truncate) in NetLogReadWriteDataParams() 27 dict.Set("truncate", truncate); in NetLogReadWriteDataParams() 76 bool truncate) { in NetLogReadWriteData() argument 78 return NetLogReadWriteDataParams(index, offset, buf_len, truncate); in NetLogReadWriteData()
|
/external/rust/crates/tokio/src/fs/ |
D | open_options.rs | 249 pub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions { in truncate() method 250 self.0.truncate(truncate); in truncate()
|
/external/e2fsprogs/resize/ |
D | test-resize | 12 truncate -s 8T $FS 17 truncate -s 20T $FS 23 truncate -s 21T $FS
|
/external/rust/crates/protobuf-codegen/src/gen/ |
D | file_descriptor.rs | 147 let truncate = s.len() > MAX_LINE_LEN; in write_file_descriptor_data() localVariable 148 if truncate { in write_file_descriptor_data() 149 s.truncate(prev_len); in write_file_descriptor_data() 151 if truncate || s.len() == MAX_LINE_LEN { in write_file_descriptor_data() 156 if truncate { in write_file_descriptor_data()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | cast_op.h | 36 bool truncate = false) { \ 37 if (truncate) { \ 54 bool truncate = false) { \ 55 if (truncate) { \ 81 bool truncate = false) { \ 101 bool truncate = false) { \ 169 typename TTypes<Tin>::ConstFlat i, bool truncate = false);
|
D | cast_op_impl_bfloat.cc | 35 bool truncate) { in GetGpuCastFromBfloat() argument 38 inp.flat<bfloat16>(), truncate); in GetGpuCastFromBfloat()
|
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/time/ |
D | DateUtils.java | 772 public static Date truncate(final Date date, final int field) { in truncate() method in DateUtils 791 public static Calendar truncate(final Calendar date, final int field) { in truncate() method in DateUtils 812 public static Date truncate(final Object date, final int field) { in truncate() method in DateUtils 815 return truncate((Date) date, field); in truncate() 818 return truncate((Calendar) date, field).getTime(); in truncate() 1102 start = truncate(calendar, Calendar.MONTH); in iterator() 1118 start = truncate(calendar, Calendar.DATE); in iterator() 1119 end = truncate(calendar, Calendar.DATE); in iterator() 1689 final Calendar truncatedCal1 = truncate(cal1, field); in truncatedCompareTo() 1690 final Calendar truncatedCal2 = truncate(cal2, field); in truncatedCompareTo() [all …]
|
/external/pdfium/testing/resources/pixel/ |
D | bug_1314.in | 94 1.1 truncate 106 3123412341.1 truncate -3123412340.5 add 118 -1.9 truncate 1.5 add
|
/external/musl/src/unistd/ |
D | truncate.c | 4 int truncate(const char *path, off_t length) in truncate() function 9 weak_alias(truncate, truncate64);
|
/external/rust/crates/rayon/src/iter/collect/ |
D | mod.rs | 18 v.truncate(0); // clear any old data in collect_into_vec() 52 left.truncate(0); in unzip_into_vecs() 53 right.truncate(0); in unzip_into_vecs()
|
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/ |
D | StringUtilsTest.java | 3035 assertNull(StringUtils.truncate(null, 12)); in testTruncate_StringInt() 3037 …IllegalArgumentException.class, () -> StringUtils.truncate(null, -1), "maxWith cannot be negative"… in testTruncate_StringInt() 3039 …IllegalArgumentException.class, () -> StringUtils.truncate(null, -10), "maxWith cannot be negative… in testTruncate_StringInt() 3042 () -> StringUtils.truncate(null, Integer.MIN_VALUE), in testTruncate_StringInt() 3044 assertEquals("", StringUtils.truncate("", 10)); in testTruncate_StringInt() 3045 assertEquals("abc", StringUtils.truncate("abcdefghij", 3)); in testTruncate_StringInt() 3046 assertEquals("abcdef", StringUtils.truncate("abcdefghij", 6)); in testTruncate_StringInt() 3047 assertEquals("", StringUtils.truncate("abcdefghij", 0)); in testTruncate_StringInt() 3050 () -> StringUtils.truncate("abcdefghij", -1), in testTruncate_StringInt() 3054 () -> StringUtils.truncate("abcdefghij", -100), in testTruncate_StringInt() [all …]
|
/external/rust/cxx/gen/build/src/ |
D | deps.rs | 67 k.truncate(k.len() - "_CXXBRIDGE_PREFIX".len()); in direct_dependencies() 73 k.truncate(k.len() - "_CXXBRIDGE_LINKS".len()); in direct_dependencies() 87 k.truncate(k.len() - counter_len - "_CXXBRIDGE_DIR".len()); in direct_dependencies()
|
/external/rust/crates/protobuf-codegen/2.27.1/src/ |
D | lib.rs | 172 let truncate = s.len() > MAX_LINE_LEN; in write_file_descriptor_data() localVariable 173 if truncate { in write_file_descriptor_data() 174 s.truncate(prev_len); in write_file_descriptor_data() 176 if truncate || s.len() == MAX_LINE_LEN { in write_file_descriptor_data() 181 if truncate { in write_file_descriptor_data()
|
/external/cronet/third_party/icu/source/common/ |
D | locdispnames.cpp | 64 result.truncate(0); in getDisplayLanguage() 76 result.truncate(0); in getDisplayLanguage() 104 result.truncate(0); in getDisplayScript() 116 result.truncate(0); in getDisplayScript() 144 result.truncate(0); in getDisplayCountry() 156 result.truncate(0); in getDisplayCountry() 184 result.truncate(0); in getDisplayVariant() 196 result.truncate(0); in getDisplayVariant() 224 result.truncate(0); in getDisplayName() 236 result.truncate(0); in getDisplayName()
|
/external/icu/icu4c/source/common/ |
D | locdispnames.cpp | 64 result.truncate(0); in getDisplayLanguage() 76 result.truncate(0); in getDisplayLanguage() 104 result.truncate(0); in getDisplayScript() 116 result.truncate(0); in getDisplayScript() 144 result.truncate(0); in getDisplayCountry() 156 result.truncate(0); in getDisplayCountry() 184 result.truncate(0); in getDisplayVariant() 196 result.truncate(0); in getDisplayVariant() 224 result.truncate(0); in getDisplayName() 236 result.truncate(0); in getDisplayName()
|
/external/cronet/net/disk_cache/blockfile/ |
D | entry_impl.h | 67 bool truncate); 189 bool truncate) override; 226 bool truncate); 251 bool PrepareTarget(int index, int offset, int buf_len, bool truncate);
|
/external/rust/crates/protobuf/2.27.1/src/ |
D | repeated.rs | 76 vec.truncate(self.len); in into_vec() 188 self.vec.truncate(self.len); in pop() 230 self.vec.truncate(self.len); in retain() 237 pub fn truncate(&mut self, len: usize) { in truncate() method 252 self.vec.truncate(self.len); in into_iter() 472 self.vec.truncate(self.len); in extend() 480 self.vec.truncate(self.len); in extend()
|
/external/python/cpython2/Tools/framer/ |
D | example.py | 83 def truncate(self, pos): member in cStringIO.InputType 85 truncate.pyarg = "|i"
|