test_class.declarator: canvas
test_class.modifier: @Mock
test_class.original_string: @Mock
      Canvas canvas;
test_class.type: Canvas
test_class.var_name: canvas
test_class.declarator: paint
test_class.modifier: @Mock
test_class.original_string: @Mock
      Paint paint;
test_class.type: Paint
test_class.var_name: paint
test_class.declarator: plot
test_class.modifier: @Mock
test_class.original_string: @Mock
      Plot plot;
test_class.type: Plot
test_class.var_name: plot
test_class.declarator: ps = new PlotStatistics(1, true)
test_class.modifier: @InjectMocks
test_class.original_string: @InjectMocks
      PlotStatistics ps = new PlotStatistics(1, true);
test_class.type: PlotStatistics
test_class.var_name: ps
test_class.file: androidplot-core/src/test/java/com/androidplot/util/PlotStatisticsTest.java
test_class.identifier: PlotStatisticsTest
test_class.superclass: extends AndroidplotTest
test_case.body: @Test
      public void annotatePlot_annotates_ifEnabled() {
          ps.onAfterDraw(plot, canvas);
          verify(canvas).drawText(anyString(), anyFloat(), anyFloat(), any(Paint.class));
      }
test_case.class_method_signature: PlotStatisticsTest.annotatePlot_annotates_ifEnabled()
test_case.full_signature: @Test public void annotatePlot_annotates_ifEnabled()
test_case.identifier: annotatePlot_annotates_ifEnabled
test_case.invocations: onAfterDraw drawText verify anyString anyFloat anyFloat any
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void annotatePlot_annotates_ifEnabled()
focal_class.declarator: updateDelayMs
focal_class.original_string: long updateDelayMs;
focal_class.type: long
focal_class.var_name: updateDelayMs
focal_class.declarator: longestRenderMs = 0
focal_class.original_string: long longestRenderMs = 0;
focal_class.type: long
focal_class.var_name: longestRenderMs
focal_class.declarator: shortestRenderMs = 0
focal_class.original_string: long shortestRenderMs = 0;
focal_class.type: long
focal_class.var_name: shortestRenderMs
focal_class.declarator: lastStart = 0
focal_class.original_string: long lastStart = 0;
focal_class.type: long
focal_class.var_name: lastStart
focal_class.declarator: lastLatency = 0
focal_class.original_string: long lastLatency = 0;
focal_class.type: long
focal_class.var_name: lastLatency
focal_class.declarator: lastAnnotation
focal_class.original_string: long lastAnnotation;
focal_class.type: long
focal_class.var_name: lastAnnotation
focal_class.declarator: latencySamples = 0
focal_class.original_string: long latencySamples = 0;
focal_class.type: long
focal_class.var_name: latencySamples
focal_class.declarator: latencySum = 0
focal_class.original_string: long latencySum = 0;
focal_class.type: long
focal_class.var_name: latencySum
focal_class.declarator: annotationString = ""
focal_class.original_string: String annotationString = "";
focal_class.type: String
focal_class.var_name: annotationString
focal_class.declarator: annotatePlotEnabled
focal_class.modifier: private
focal_class.original_string: private boolean annotatePlotEnabled;
focal_class.type: boolean
focal_class.var_name: annotatePlotEnabled
focal_class.declarator: paint
focal_class.modifier: private
focal_class.original_string: private Paint paint;
focal_class.type: Paint
focal_class.var_name: paint
focal_class.file: androidplot-core/src/main/java/com/androidplot/util/PlotStatistics.java
focal_class.identifier: PlotStatistics
focal_class.interfaces: implements PlotListener
focal_class.class_method_signature: PlotStatistics.PlotStatistics(long updateDelayMs, boolean annotatePlotEnabled)
focal_class.full_signature: public  PlotStatistics(long updateDelayMs, boolean annotatePlotEnabled)
focal_class.identifier: PlotStatistics
focal_class.modifiers: public
focal_class.parameters: (long updateDelayMs, boolean annotatePlotEnabled)
focal_class.signature:  PlotStatistics(long updateDelayMs, boolean annotatePlotEnabled)
focal_class.class_method_signature: PlotStatistics.setAnnotatePlotEnabled(boolean enabled)
focal_class.full_signature: public void setAnnotatePlotEnabled(boolean enabled)
focal_class.identifier: setAnnotatePlotEnabled
focal_class.modifiers: public
focal_class.parameters: (boolean enabled)
focal_class.return: void
focal_class.signature: void setAnnotatePlotEnabled(boolean enabled)
focal_class.class_method_signature: PlotStatistics.resetCounters()
focal_class.full_signature: private void resetCounters()
focal_class.identifier: resetCounters
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetCounters()
focal_class.class_method_signature: PlotStatistics.annotatePlot(Plot source, Canvas canvas)
focal_class.full_signature: private void annotatePlot(Plot source, Canvas canvas)
focal_class.identifier: annotatePlot
focal_class.modifiers: private
focal_class.parameters: (Plot source, Canvas canvas)
focal_class.return: void
focal_class.signature: void annotatePlot(Plot source, Canvas canvas)
focal_class.class_method_signature: PlotStatistics.onBeforeDraw(Plot source, Canvas canvas)
focal_class.full_signature: @Override public void onBeforeDraw(Plot source, Canvas canvas)
focal_class.identifier: onBeforeDraw
focal_class.modifiers: @Override public
focal_class.parameters: (Plot source, Canvas canvas)
focal_class.return: void
focal_class.signature: void onBeforeDraw(Plot source, Canvas canvas)
focal_class.class_method_signature: PlotStatistics.onAfterDraw(Plot source, Canvas canvas)
focal_class.full_signature: @Override public void onAfterDraw(Plot source, Canvas canvas)
focal_class.identifier: onAfterDraw
focal_class.modifiers: @Override public
focal_class.parameters: (Plot source, Canvas canvas)
focal_class.return: void
focal_class.signature: void onAfterDraw(Plot source, Canvas canvas)
focal_class.class_method_signature: PlotStatistics.setEnabled(boolean isEnabled)
focal_class.full_signature: public void setEnabled(boolean isEnabled)
focal_class.identifier: setEnabled
focal_class.modifiers: public
focal_class.parameters: (boolean isEnabled)
focal_class.return: void
focal_class.signature: void setEnabled(boolean isEnabled)
focal_method.body: @Override
      public void onAfterDraw(Plot source, Canvas canvas) {
          lastLatency = System.currentTimeMillis() - lastStart;
          if(lastLatency < shortestRenderMs) {
              shortestRenderMs = lastLatency;
          }
  
          if(lastLatency > longestRenderMs) {
              longestRenderMs = lastLatency;
          }
          latencySum += lastLatency;
          latencySamples++;
          annotatePlot(source, canvas);
      }
focal_method.class_method_signature: PlotStatistics.onAfterDraw(Plot source, Canvas canvas)
focal_method.full_signature: @Override public void onAfterDraw(Plot source, Canvas canvas)
focal_method.identifier: onAfterDraw
focal_method.invocations: currentTimeMillis annotatePlot
focal_method.modifiers: @Override public
focal_method.parameters: (Plot source, Canvas canvas)
focal_method.return: void
focal_method.signature: void onAfterDraw(Plot source, Canvas canvas)