Home
last modified time | relevance | path

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

12345678910>>...27

/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/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dverifier-generic-extend-truncate.mir3 # CHECK: Bad machine code: Generic extend/truncate can not operate on pointers
8 # CHECK: Bad machine code: Generic extend/truncate must be all-vector or all-scalar
13 # CHECK: Bad machine code: Generic vector extend/truncate must preserve number of lanes
23 # CHECK: Bad machine code: Generic truncate has destination type no smaller than source ***
29 # CHECK: Bad machine code: Generic extend/truncate can not operate on pointers
34 # CHECK: Bad machine code: Generic vector extend/truncate must preserve number of lanes
45 # CHECK: Bad machine code: Generic extend/truncate can not operate on pointers
50 # CHECK: Bad machine code: Generic extend/truncate must be all-vector or all-scalar
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/e2fsprogs/resize/
Dtest-resize12 truncate -s 8T $FS
17 truncate -s 20T $FS
23 truncate -s 21T $FS
/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/arm-trusted-firmware/plat/marvell/a3700/common/
Da3700_common.mk122 $(shell truncate -s %128K ${BUILD_PLAT}/bl1.bin)
124 $(shell truncate -s %4 ${BUILD_PLAT}/${BOOT_IMAGE})
125 $(shell truncate -s %4 $(WTMI_IMG))
154 @truncate -s %16 $(WTMI_MULTI_IMG)
159 @truncate -s %16 $(BUILD_PLAT)/$(BOOT_IMAGE);
/external/icu/icu4c/source/common/
Dlocdispnames.cpp62 result.truncate(0); in getDisplayLanguage()
74 result.truncate(0); in getDisplayLanguage()
102 result.truncate(0); in getDisplayScript()
114 result.truncate(0); in getDisplayScript()
142 result.truncate(0); in getDisplayCountry()
154 result.truncate(0); in getDisplayCountry()
182 result.truncate(0); in getDisplayVariant()
194 result.truncate(0); in getDisplayVariant()
222 result.truncate(0); in getDisplayName()
234 result.truncate(0); in getDisplayName()
/external/tensorflow/tensorflow/core/kernels/
Dcast_op_impl_bfloat.cc35 bool truncate) { in GetGpuCastFromBfloat() argument
38 inp.flat<bfloat16>(), truncate); in GetGpuCastFromBfloat()
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);
/external/perfetto/ui/src/controller/
Dtrace_converter.ts21 export function ConvertTrace(trace: Blob, truncate?: 'start'|'end') {
30 if (truncate === undefined) {
34 ['json', '--truncate', truncate, '/fs/trace.proto', outPath]);
/external/python/cpython2/Tools/framer/
Dexample.py83 def truncate(self, pos): member in cStringIO.InputType
85 truncate.pyarg = "|i"
/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/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/deqp-deps/SPIRV-Tools/utils/
Dgit-sync-deps127 def truncate(s, length): function
130 directory = truncate(directory, dlen)
131 checkoutable = truncate(checkoutable, 40)
/external/angle/third_party/spirv-tools/src/utils/
Dgit-sync-deps127 def truncate(s, length): function
130 directory = truncate(directory, dlen)
131 checkoutable = truncate(checkoutable, 40)
/external/deqp-deps/amber/tools/
Dgit-sync-deps126 def truncate(s, length): function
129 directory = truncate(directory, dlen)
130 checkoutable = truncate(checkoutable, 40)
/external/swiftshader/third_party/SPIRV-Tools/utils/
Dgit-sync-deps127 def truncate(s, length): function
130 directory = truncate(directory, dlen)
131 checkoutable = truncate(checkoutable, 40)
/external/ltp/testcases/kernel/io/ltp-aiodio/
Ddio_truncate.c167 truncate(filename, 0); in main()
169 truncate("junkfile", 0); in main()
/external/deqp-deps/glslang/Test/
Dhlsl.mul-truncate.frag25 float4 r11 = mul(v4, m34); // truncate vector to vec3
29 float4 r21 = mul(m43, v4); // truncate vector to vec3
/external/angle/third_party/glslang/src/Test/
Dhlsl.mul-truncate.frag25 float4 r11 = mul(v4, m34); // truncate vector to vec3
29 float4 r21 = mul(m43, v4); // truncate vector to vec3
/external/python/cpython2/Tools/freeze/
Dbkfile.py30 self.truncate = self.__file.truncate
/external/python/cpython3/Lib/test/
Dtest_memoryio.py82 self.assertEqual(f.truncate(12), 12)
125 self.assertRaises(ValueError, memio.truncate, -1)
126 self.assertRaises(ValueError, memio.truncate, IntLike(-1))
128 self.assertEqual(memio.truncate(IntLike(8)), 8)
130 self.assertEqual(memio.truncate(), 6)
132 self.assertEqual(memio.truncate(4), 4)
139 self.assertEqual(memio.truncate(None), pos)
141 self.assertRaises(TypeError, memio.truncate, '0')
143 self.assertRaises(ValueError, memio.truncate, 0)
144 self.assertRaises(ValueError, memio.truncate, IntLike(0))
[all …]

12345678910>>...27