Searched refs:font_attr_segs (Results 1 – 12 of 12) sorted by relevance
/external/tensorflow/tensorflow/python/debug/cli/ |
D | curses_widgets_test.py | 151 self.assertEqual({}, output.font_attr_segs) 169 self.assertEqual(2, output.font_attr_segs[0][0][0]) 170 self.assertEqual(5, output.font_attr_segs[0][0][1]) 171 self.assertEqual("prev", output.font_attr_segs[0][0][2].content) 173 self.assertEqual(12, output.font_attr_segs[0][1][0]) 174 self.assertEqual(15, output.font_attr_segs[0][1][1]) 175 self.assertEqual("green", output.font_attr_segs[0][1][2]) 196 self.assertEqual(2, output.font_attr_segs[0][0][0]) 197 self.assertEqual(5, output.font_attr_segs[0][0][1]) 198 self.assertEqual("prev", output.font_attr_segs[0][0][2].content) [all …]
|
D | debugger_cli_common.py | 75 self.font_attr_segs = [(0, len(text), font_attr)] 77 self.font_attr_segs = [] 97 ret.font_attr_segs = self.font_attr_segs[:] 101 ret.font_attr_segs = self.font_attr_segs[:] 103 for start, end, font_attr in other.font_attr_segs: 104 ret.font_attr_segs.append((old_len + start, old_len + end, font_attr)) 124 font_attr_segs = {} 128 if rl.font_attr_segs: 129 font_attr_segs[i] = rl.font_attr_segs 132 return RichTextLines(lines, font_attr_segs, annotations=annotations) [all …]
|
D | debugger_cli_common_test.py | 53 font_attr_segs={0: [(0, 5, "red")], 59 self.assertEqual(2, len(screen_output.font_attr_segs)) 60 self.assertEqual(1, len(screen_output.font_attr_segs[0])) 61 self.assertEqual(1, len(screen_output.font_attr_segs[1])) 75 font_attr_segs={0: [(0, 5, "red")]}, 79 self.assertEqual(1, len(screen_output.font_attr_segs)) 80 self.assertEqual(1, len(screen_output.font_attr_segs[0])) 86 font_attr_segs={0: [(0, 5, "red")]}) 90 self.assertEqual(2, len(rtl.font_attr_segs)) 91 self.assertEqual(1, len(rtl.font_attr_segs[0])) [all …]
|
D | cli_shared_test.py | 138 annot = run_start_intro.font_attr_segs[11][0] 143 annot = run_start_intro.font_attr_segs[13][0] 149 self.assertEqual([(2, 12, "bold")], run_start_intro.font_attr_segs[15]) 151 self.assertEqual([(2, 22, "bold")], run_start_intro.font_attr_segs[17]) 305 annot = run_start_intro.font_attr_segs[20][0] 307 annot = run_start_intro.font_attr_segs[21][0] 340 error_intro.font_attr_segs[1]) 343 self.assertEqual(2, error_intro.font_attr_segs[4][0][0]) 344 self.assertEqual(22, error_intro.font_attr_segs[4][0][1]) 346 error_intro.font_attr_segs[4][0][2][0].content) [all …]
|
D | analyzer_cli.py | 584 font_attr_segs=[( 738 return debugger_cli_common.RichTextLines([row], font_attr_segs=attr_segs) 788 font_attr_segs = { 795 lines, font_attr_segs=font_attr_segs) 1015 font_attr_segs = {} 1021 font_attr_segs[len(lines) - 1] = [( 1033 lines, font_attr_segs=font_attr_segs) 1312 font_attr_segs = {} 1333 font_attr_segs[0] = [(len(line) - 1 - len(node_name), len(line) - 1, "bold") 1341 font_attr_segs, [all …]
|
D | curses_ui_test.py | 272 font_attr_segs = {} 275 font_attr_segs[i] = [( 290 lines, font_attr_segs=font_attr_segs, annotations=annotations) 837 self.assertEqual({}, ui.unwrapped_outputs[i].font_attr_segs) 844 self.assertEqual({}, ui.wrapped_outputs[0].font_attr_segs) 850 ui.wrapped_outputs[1].font_attr_segs[i]) 856 ui.wrapped_outputs[2].font_attr_segs[i]) 886 self.assertEqual({}, ui.unwrapped_outputs[i].font_attr_segs) 889 self.assertEqual({}, ui.wrapped_outputs[0].font_attr_segs) 897 }, ui.wrapped_outputs[j].font_attr_segs) [all …]
|
D | analyzer_cli_test.py | 142 attr_segs = out.font_attr_segs 169 attr_segs = out.font_attr_segs[line_counter] 499 attr_segs = out.font_attr_segs[line_index] 922 out.font_attr_segs[0]) 1047 self.assertEqual({0: [(0, 59, cli_shared.COLOR_RED)]}, out.font_attr_segs) 1114 self.assertEqual([(8, 11, "bold")], out.font_attr_segs[5]) 1134 self.assertEqual([(9, 11, "bold")], out.font_attr_segs[4]) 1135 self.assertNotIn(5, out.font_attr_segs) 1170 self.assertEqual([(8, 11, "bold")], out.font_attr_segs[11]) 1408 out.font_attr_segs[index + 1][0][2].content) [all …]
|
D | tensor_format.py | 104 font_attr_segs = {} 111 font_attr_segs[0] = [(8, 8 + len(tensor_label), "bold")] 117 font_attr_segs[0] = [ 142 lines, font_attr_segs=font_attr_segs) 192 if row in formatted.font_attr_segs: 193 formatted.font_attr_segs[row].append( 196 formatted.font_attr_segs[row] = [(start_col, end_col,
|
D | curses_ui.py | 181 [up_text], font_attr_segs={0: [(0, width, self.BASE_ATTR)]}) 183 font_attr_segs = foreground_font_attr_segs if i == block_y else None 184 layout.append(empty_line, font_attr_segs=font_attr_segs) 185 layout.append(down_text, font_attr_segs=foreground_font_attr_segs) 922 self._nav_bar.font_attr_segs[0]) 926 self._main_menu.font_attr_segs[0]) 929 if absolute_mouse_y in self._curr_wrapped_output.font_attr_segs: 931 mouse_x, self._curr_wrapped_output.font_attr_segs[absolute_mouse_y]) 1042 self._curr_wrapped_output.font_attr_segs[self.max_output_lines] = [ 1163 if i in output.font_attr_segs: [all …]
|
D | cli_config_test.py | 108 output.font_attr_segs[3][0]) 109 self.assertEqual((14, 18, "bold"), output.font_attr_segs[3][1])
|
D | tensor_format_test.py | 132 if i not in out.font_attr_segs: 134 line_attrs = out.font_attr_segs[i] 155 self.assertEqual([(8, 8 + len(tensor_name), "bold")], out.font_attr_segs[0]) 166 out.font_attr_segs[0]) 303 self.assertNotIn(i, out.font_attr_segs)
|
D | profile_analyzer_cli_test.py | 373 for seg in prof_output.font_attr_segs[line_index]: 418 for seg in prof_output.font_attr_segs[line_index]:
|