Home
last modified time | relevance | path

Searched refs:cropText (Results 1 – 6 of 6) sorted by relevance

/external/perfetto/ui/src/common/
Dcanvas_utils_unittest.ts15 import {cropText} from './canvas_utils';
20 expect(cropText(
25 expect(cropText('com.android.camera [4096]', 5, 4 * 5 + 2))
27 expect(cropText('com.android.camera [4096]', 5, 5 * 5 + 2))
29 expect(cropText('com.android.camera [4096]', 5, 13 * 5 + 2))
31 expect(cropText('com.android.camera [4096]', 5, 26 * 5 + 2))
33 expect(cropText(emoji + 'abc', 5, 2 * 5)).toBe(emoji);
34 expect(cropText(emoji + 'abc', 5, 5 * 5)).toBe(emoji + 'a' + tripleDot);
Dcanvas_utils.ts15 export function cropText(str: string, charWidth: number, rectWidth: number) { function
/external/perfetto/ui/src/tracks/thread_state/
Dfrontend.ts17 import {cropText} from '../../common/canvas_utils';
103 const title = cropText(state, charWidth, rectWidth);
/external/perfetto/ui/src/tracks/cpu_slices/
Dfrontend.ts18 import {cropText, drawDoubleHeadedArrow} from '../../common/canvas_utils';
140 title = cropText(title, charWidth, rectWidth);
141 subTitle = cropText(subTitle, charWidth, rectWidth);
/external/perfetto/ui/src/frontend/
Dflamegraph.ts16 import {cropText} from '../common/canvas_utils';
161 const text = cropText(
223 let text = cropText(name, this.labelCharWidth, maxLabelWidth);
/external/perfetto/ui/src/tracks/chrome_slices/
Dfrontend.ts18 import {cropText, drawIncompleteSlice} from '../../common/canvas_utils';
172 const displayText = cropText(title, charWidth, rect.width);