Searched refs:cropText (Results 1 – 6 of 6) sorted by relevance
/external/perfetto/ui/src/common/ |
D | canvas_utils_unittest.ts | 15 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);
|
D | canvas_utils.ts | 15 export function cropText(str: string, charWidth: number, rectWidth: number) { function
|
/external/perfetto/ui/src/tracks/thread_state/ |
D | frontend.ts | 17 import {cropText} from '../../common/canvas_utils'; 103 const title = cropText(state, charWidth, rectWidth);
|
/external/perfetto/ui/src/tracks/cpu_slices/ |
D | frontend.ts | 18 import {cropText, drawDoubleHeadedArrow} from '../../common/canvas_utils'; 140 title = cropText(title, charWidth, rectWidth); 141 subTitle = cropText(subTitle, charWidth, rectWidth);
|
/external/perfetto/ui/src/frontend/ |
D | flamegraph.ts | 16 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/ |
D | frontend.ts | 18 import {cropText, drawIncompleteSlice} from '../../common/canvas_utils'; 172 const displayText = cropText(title, charWidth, rect.width);
|