Home
last modified time | relevance | path

Searched refs:truncate (Results 1 – 25 of 846) sorted by relevance

12345678910>>...34

/external/guava/android/guava-tests/test/com/google/common/base/
DAsciiTest.java85 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/
DAsciiTest.java85 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/e2fsprogs/resize/
Dtest-resize12 truncate -s 8T $FS
17 truncate -s 20T $FS
23 truncate -s 21T $FS
/external/rust/crates/tokio/src/fs/
Dopen_options.rs242 pub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions { in truncate() method
243 self.0.truncate(truncate); in truncate()
/external/llvm-project/llvm/test/CodeGen/X86/
Dvector-truncate-combine.ll7 ; sequence of extend and subsequent truncate operations. The bug was that an extension
11 ; preservation of the extend/truncate operations mentioned above (2 extend and
12 ; 3 truncate instructions).
14 ; NOTE: This operation could be collapsed in to a single truncate. Once that is done
/external/llvm-project/llvm/test/CodeGen/AArch64/
Dsve-fixed-length-trunc.ll24 ; truncate i16 -> i8
38 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store.
52 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store.
66 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store.
81 ; truncate i32 -> i8
108 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store.
123 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store.
139 ; truncate i32 -> i16
153 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store.
167 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store.
[all …]
/external/llvm-project/llvm/test/CodeGen/PowerPC/
Dadd_cmp.ll13 ; CHECK: [[REG1:t[0-9]+]]: i32 = truncate {{t[0-9]+}}
26 ; CHECK: [[REG1:t[0-9]+]]: i32 = truncate {{t[0-9]+}}
39 ; CHECK: [[REG1:t[0-9]+]]: i32 = truncate {{t[0-9]+}}
52 ; CHECK: [[REG1:t[0-9]+]]: i16 = truncate {{t[0-9]+}}
/external/pdfium/testing/resources/pixel/
Dbug_1314.in94 1.1 truncate
106 3123412341.1 truncate -3123412340.5 add
118 -1.9 truncate 1.5 add
/external/rust/cxx/gen/build/src/
Ddeps.rs67 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/perfetto/ui/src/controller/
Dtrace_converter.ts26 trace: Blob, format: Format, truncate?: 'start'|'end') {
29 if (truncate !== undefined) {
30 args.push('--truncate', truncate);
/external/tensorflow/tensorflow/core/kernels/
Dcast_op.h36 bool truncate = false) { \
37 if (truncate) { \
54 bool truncate = false) { \
55 if (truncate) { \
81 bool truncate = false) { \
148 typename TTypes<Tin>::ConstFlat i, bool truncate = false);
Dcast_op_impl_bfloat.cc35 bool truncate) { in GetGpuCastFromBfloat() argument
38 inp.flat<bfloat16>(), truncate); in GetGpuCastFromBfloat()
/external/icu/icu4c/source/common/
Dlocdispnames.cpp64 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/rust/crates/protobuf-codegen/src/
Dlib.rs110 let truncate = s.len() > MAX_LINE_LEN; in write_file_descriptor_data() localVariable
111 if truncate { in write_file_descriptor_data()
112 s.truncate(prev_len); in write_file_descriptor_data()
114 if truncate || s.len() == MAX_LINE_LEN { in write_file_descriptor_data()
119 if truncate { in write_file_descriptor_data()
/external/python/cpython2/Tools/framer/
Dexample.py83 def truncate(self, pos): member in cStringIO.InputType
85 truncate.pyarg = "|i"
/external/rust/crates/rayon/src/iter/collect/
Dmod.rs19 v.truncate(0); // clear any old data in collect_into_vec()
53 left.truncate(0); in unzip_into_vecs()
54 right.truncate(0); in unzip_into_vecs()
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DDowngradedSeekableByteChannel.java67 public SeekableByteChannel truncate(long size) throws IOException { in truncate() method in DowngradedSeekableByteChannel
68 channel.truncate(size); in truncate()
/external/llvm-project/llvm/test/MachineVerifier/
Dverifier-generic-extend-truncate.mir4 # CHECK: Bad machine code: Generic extend/truncate can not operate on pointers
24 # CHECK: Bad machine code: Generic truncate has destination type no smaller than source ***
30 # CHECK: Bad machine code: Generic extend/truncate can not operate on pointers
46 # CHECK: Bad machine code: Generic extend/truncate can not operate on pointers
/external/python/google-api-python-client/samples/tasks_appengine/
Dmain.py43 task['title_short'] = truncate(task['title'], 26)
50 def truncate(s, l): function
/external/e2fsprogs/tests/scripts/
Dresize_test4 truncate() function
20 if truncate -s $SIZE_2 $TMPFILE 2> /dev/null; then
27 if ! truncate -s $SIZE_2 $TMPFILE >> $LOG 2>&1; then
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DJimfsFileChannelTest.java213 channel.truncate(10); // no resize, >= size in testTruncate()
215 channel.truncate(11); // no resize, > size in testTruncate()
217 channel.truncate(5); // resize down to 5 in testTruncate()
221 channel.truncate(10); in testTruncate()
223 channel.truncate(2); in testTruncate()
295 channel.truncate(0); in testFileTimeUpdates()
386 channel.truncate(0); in testClose()
459 channel.truncate(0); in testWritesInReadOnlyMode()
528 channel.truncate(-1); in testTruncateNegative()
1009 channel.truncate(0); in testInterruptedThreads()
/external/skqp/tools/
Dgit-sync-deps103 def truncate(s, length): function
106 directory = truncate(directory, dlen)
107 checkoutable = truncate(checkoutable, 40)
/external/icu/icu4c/source/i18n/
Desctrn.cpp149 buf.truncate(0); in handleTransliterate()
157 buf.truncate(0); in handleTransliterate()
161 buf.truncate(prefixLen); in handleTransliterate()
/external/llvm-project/llvm/test/Transforms/PhaseOrdering/
Dvector-trunc.ll5 define <4 x i16> @truncate(<4 x i32> %x) {
6 ; CHECK-LABEL: @truncate(
/external/rust/crates/bytes/tests/
Dtest_bytes_vec_alloc.rs69 bytes.truncate(2); in test_bytes_truncate()
76 bytes.truncate(2); in test_bytes_truncate_and_advance()

12345678910>>...34