/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/ |
MeasureToViewMapTest.java | 28 import io.opencensus.stats.ViewData; 29 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData; 63 ViewData viewData = measureToViewMap.getView(VIEW_NAME, clock, State.ENABLED); 64 assertThat(viewData.getView()).isEqualTo(VIEW); 65 assertThat(viewData.getWindowData()) 67 assertThat(viewData.getAggregationMap()).isEmpty();
|
StatsRecorderImplTest.java | 43 import io.opencensus.stats.ViewData; 44 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData; 99 ViewData viewData = viewManager.getView(VIEW_NAME); 102 assertThat(viewData.getAggregationMap().keySet()) 126 ViewData viewData = viewManager.getView(VIEW_NAME); 129 assertThat(viewData.getAggregationMap().keySet()).containsExactly(Arrays.asList(VALUE)); 149 ViewData viewData = viewManager.getView(VIEW_NAME) [all...] |
ViewManagerImplTest.java | 50 import io.opencensus.stats.ViewData; 51 import io.opencensus.stats.ViewData.AggregationWindowData; 52 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData; 53 import io.opencensus.stats.ViewData.AggregationWindowData.IntervalData; 310 ViewData viewData = viewManager.getView(VIEW_NAME); 311 assertThat(viewData.getView()).isEqualTo(view); 312 assertThat(viewData.getWindowData()) 315 viewData.getAggregationMap(), 485 ViewData viewData1 = viewManager.getView(VIEW_NAME) [all...] |
/external/opencensus-java/api/src/test/java/io/opencensus/stats/ |
NoopViewManagerTest.java | 28 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData; 29 import io.opencensus.stats.ViewData.AggregationWindowData.IntervalData; 105 ViewData viewData = viewManager.getView(VIEW_NAME); 106 assertThat(viewData.getView()).isEqualTo(view); 107 assertThat(viewData.getAggregationMap()).isEmpty(); 108 assertThat(viewData.getStart()).isEqualTo(Timestamp.create(0, 0)); 109 assertThat(viewData.getEnd()).isEqualTo(Timestamp.create(0, 0)); 110 assertThat(viewData.getWindowData()) 122 ViewData viewData = viewManager.getView(VIEW_NAME) [all...] |
ViewDataTest.java | 42 import io.opencensus.stats.ViewData.AggregationWindowData; 43 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData; 44 import io.opencensus.stats.ViewData.AggregationWindowData.IntervalData; 57 /** Tests for class {@link ViewData}. */ 69 ViewData viewData = ViewData.create(view, ENTRIES, windowData); 70 assertThat(viewData.getView()).isEqualTo(view); 71 assertThat(viewData.getAggregationMap()).isEqualTo(ENTRIES); 72 assertThat(viewData.getWindowData()).isEqualTo(windowData) [all...] |
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/ |
MeasureToViewMap.java | 30 import io.opencensus.stats.ViewData; 70 /** Returns a {@link ViewData} corresponding to the given {@link View.Name}. */ 72 synchronized ViewData getView(View.Name viewName, Clock clock, State state) { 132 for (MutableViewData viewData : views) { 133 if (viewData.getView().getName().equals(viewName)) { 134 return viewData; 158 for (MutableViewData viewData : viewDataCollection) { 159 viewData.record(
|
/external/opencensus-java/exporters/stats/prometheus/src/main/java/io/opencensus/exporter/stats/prometheus/ |
PrometheusStatsCollector.java | 29 import io.opencensus.stats.ViewData; 113 ViewData viewData = viewManager.getView(view.getName()); 114 if (viewData == null) { 117 samples.add(PrometheusExportUtils.createMetricFamilySamples(viewData));
|
PrometheusExportUtils.java | 38 import io.opencensus.stats.ViewData; 67 * <p>Each OpenCensus {@link ViewData} will be converted to a Prometheus {@link 68 * MetricFamilySamples}, and each {@code Row} of the {@link ViewData} will be converted to 100 // Converts a ViewData to a Prometheus MetricFamilySamples. 101 static MetricFamilySamples createMetricFamilySamples(ViewData viewData) { 102 View view = viewData.getView(); 108 viewData.getAggregationMap().entrySet()) { 152 // Converts a row in ViewData (a.k.a Entry<List<TagValue>, AggregationData>) to a list of
|
/external/opencensus-java/exporters/stats/signalfx/src/test/java/io/opencensus/exporter/stats/signalfx/ |
SignalFxSessionAdaptorTest.java | 46 import io.opencensus.stats.ViewData; 69 @Mock private ViewData viewData; 75 Mockito.when(viewData.getView()).thenReturn(view); 158 List<DataPoint> datapoints = SignalFxSessionAdaptor.adapt(viewData); 166 List<DataPoint> datapoints = SignalFxSessionAdaptor.adapt(viewData); 246 Mockito.when(viewData.getAggregationMap()).thenReturn(map); 250 List<DataPoint> datapoints = SignalFxSessionAdaptor.adapt(viewData); 287 Mockito.when(viewData.getAggregationMap()).thenReturn(map); 291 List<DataPoint> datapoints = SignalFxSessionAdaptor.adapt(viewData); [all...] |
SignalFxStatsExporterWorkerThreadTest.java | 40 import io.opencensus.stats.ViewData; 124 ViewData viewData = Mockito.mock(ViewData.class); 125 Mockito.when(viewData.getView()).thenReturn(view); 126 Mockito.when(viewData.getAggregationMap()) 132 Mockito.when(viewManager.getView(Mockito.eq(viewName))).thenReturn(viewData);
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/helloworld/ |
QuickStart.java | 27 import io.opencensus.stats.ViewData; 107 ViewData viewData = viewManager.getView(VIDEO_SIZE_VIEW_NAME); 109 String.format("Recorded stats for %s:\n %s", VIDEO_SIZE_VIEW_NAME.asString(), viewData));
|
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/ |
StackdriverExporterWorker.java | 33 import io.opencensus.stats.ViewData; 54 * Worker {@code Runnable} that polls ViewData from Stats library and batch export to StackDriver. 168 // Polls ViewData from Stats library for all exported views, and upload them as TimeSeries to 172 List</*@Nullable*/ ViewData> viewDataList = Lists.newArrayList(); 181 for (/*@Nullable*/ ViewData viewData : viewDataList) { 183 StackdriverExportUtils.createTimeSeriesList(viewData, monitoredResource, domain));
|
StackdriverExportUtils.java | 59 import io.opencensus.stats.ViewData; 298 // Convert ViewData to a list of TimeSeries, so that ViewData can be uploaded to Stackdriver. 300 @javax.annotation.Nullable ViewData viewData, 304 if (viewData == null) { 307 View view = viewData.getView(); 313 // Shared fields for all TimeSeries generated from the same ViewData 321 viewData.getAggregationMap().entrySet()) { 325 createPoint(entry.getValue(), viewData.getWindowData(), view.getAggregation())) [all...] |
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/ |
StatszZPageHandler.java | 45 import io.opencensus.stats.ViewData; 175 ViewData viewData = viewManager.getView(current.viewName); 176 emitViewData(viewData, current.viewName, out, formatter); 295 /*@Nullable*/ ViewData viewData, View.Name viewName, PrintWriter out, Formatter formatter) { 296 if (viewData == null) { 300 View view = viewData.getView(); 301 emitViewInfo(view, viewData.getWindowData(), out, formatter); 307 viewData.getAggregationMap().entrySet()) [all...] |
RpczZPageHandler.java | 89 import io.opencensus.stats.ViewData; 347 ViewData viewData = viewManager.getView(view.getName()); 348 if (viewData == null) { 352 viewData.getAggregationMap().entrySet()) { 367 getStats(snapshot, entry.getValue(), view, viewData.getWindowData()); 377 ViewData.AggregationWindowData windowData) { 400 / getDurationInSecs((ViewData.AggregationWindowData.CumulativeData) windowData); 417 / getDurationInSecs((ViewData.AggregationWindowData.CumulativeData) windowData); 441 / getDurationInSecs((ViewData.AggregationWindowData.CumulativeData) windowData) [all...] |
/external/opencensus-java/contrib/zpages/src/test/java/io/opencensus/contrib/zpages/ |
StatszZPageHandlerTest.java | 44 import io.opencensus.stats.ViewData; 94 private static final ViewData.AggregationWindowData.CumulativeData CUMULATIVE_DATA = 95 ViewData.AggregationWindowData.CumulativeData.create( 97 private static final ViewData VIEW_DATA_1 = 98 ViewData.create( 104 private static final ViewData VIEW_DATA_2 = 105 ViewData.create( 213 private static void assertContainsViewData(OutputStream output, ViewData viewData) { 214 View view = viewData.getView() [all...] |
/external/opencensus-java/exporters/stats/stackdriver/src/test/java/io/opencensus/exporter/stats/stackdriver/ |
StackdriverExporterWorkerTest.java | 50 import io.opencensus.stats.ViewData; 51 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData; 122 ViewData viewData = 123 ViewData.create( 128 doReturn(viewData).when(mockViewManager).getView(VIEW_NAME); 148 viewData, DEFAULT_RESOURCE, CUSTOM_OPENCENSUS_DOMAIN); 169 ViewData empty = 170 ViewData.create(
|
StackdriverExportUtilsTest.java | 57 import io.opencensus.stats.ViewData; 58 import io.opencensus.stats.ViewData.AggregationWindowData.CumulativeData; 59 import io.opencensus.stats.ViewData.AggregationWindowData.IntervalData; 482 ViewData viewData = ViewData.create(view, aggregationMap, cumulativeData); 485 viewData, DEFAULT_RESOURCE, CUSTOM_OPENCENSUS_DOMAIN); 528 ViewData viewData = 529 ViewData.create(view, aggregationMap, IntervalData.create(Timestamp.fromMillis(2000))) [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
ViewTest.java | 711 ViewData viewData = new ViewData(); 712 viewData.childCount = 3; 713 viewData.tag = "linearLayout"; 714 viewData.firstChild = mockView; 715 viewGroup.setTag(viewData); 717 assertSame(viewData, viewGroup.getTag()); 727 assertSame(viewGroup, viewGroup.findViewWithTag(viewData)); [all...] |