Searched refs:StatsCollectionState (Results 1 – 10 of 10) sorted by relevance
22 import io.opencensus.stats.StatsCollectionState;42 assertThat(statsComponent.getState()).isEqualTo(StatsCollectionState.ENABLED); in defaultState()48 statsComponent.setState(StatsCollectionState.DISABLED); in setState_Disabled()49 assertThat(statsComponent.getState()).isEqualTo(StatsCollectionState.DISABLED); in setState_Disabled()55 statsComponent.setState(StatsCollectionState.DISABLED); in setState_Enabled()56 statsComponent.setState(StatsCollectionState.ENABLED); in setState_Enabled()57 assertThat(statsComponent.getState()).isEqualTo(StatsCollectionState.ENABLED); in setState_Enabled()71 statsComponent.setState(StatsCollectionState.DISABLED); in preventSettingStateAfterGettingState()75 statsComponent.setState(StatsCollectionState.ENABLED); in preventSettingStateAfterGettingState()
38 import io.opencensus.stats.StatsCollectionState;306 statsComponent.setState(StatsCollectionState.DISABLED); in record_StatsDisabled()327 statsComponent.setState(StatsCollectionState.DISABLED); in record_StatsReenabled()334 statsComponent.setState(StatsCollectionState.ENABLED); in record_StatsReenabled()
45 import io.opencensus.stats.StatsCollectionState;882 statsComponent.setState(StatsCollectionState.DISABLED); in registerRecordAndGetView_StatsDisabled()895 statsComponent.setState(StatsCollectionState.DISABLED); in registerRecordAndGetView_StatsReenabled()896 statsComponent.setState(StatsCollectionState.ENABLED); in registerRecordAndGetView_StatsReenabled()913 statsComponent.setState(StatsCollectionState.DISABLED); in registerViewWithStatsDisabled_RecordAndGetViewWithStatsEnabled()917 statsComponent.setState(StatsCollectionState.ENABLED); in registerViewWithStatsDisabled_RecordAndGetViewWithStatsEnabled()932 statsComponent.setState(StatsCollectionState.DISABLED); in registerDifferentViewWithSameNameWithStatsDisabled()990 statsComponent.setState(StatsCollectionState.DISABLED); // This will clear stats. in settingStateToDisabledWillClearStats()995 statsComponent.setState(StatsCollectionState.ENABLED); in settingStateToDisabledWillClearStats()
26 import io.opencensus.stats.StatsCollectionState;67 public StatsCollectionState getState() { in getState()73 public synchronized void setState(StatsCollectionState newState) { in setState()77 if (newState == StatsCollectionState.DISABLED) { in setState()85 private static State statsStateToState(StatsCollectionState statsCollectionState) { in statsStateToState()86 return statsCollectionState == StatsCollectionState.ENABLED ? State.ENABLED : State.DISABLED; in statsStateToState()89 private static StatsCollectionState stateToStatsState(State state) { in stateToStatsState()90 return state == State.ENABLED ? StatsCollectionState.ENABLED : StatsCollectionState.DISABLED; in stateToStatsState()
66 .isEqualTo(StatsCollectionState.DISABLED); in noopStatsComponent_GetState()73 noopStatsComponent.setState(StatsCollectionState.ENABLED); in noopStatsComponent_SetState_IgnoresInput()74 assertThat(noopStatsComponent.getState()).isEqualTo(StatsCollectionState.DISABLED); in noopStatsComponent_SetState_IgnoresInput()89 noopStatsComponent.setState(StatsCollectionState.DISABLED); in noopStatsComponent_DisallowsSetStateAfterGetState()93 noopStatsComponent.setState(StatsCollectionState.ENABLED); in noopStatsComponent_DisallowsSetStateAfterGetState()
68 assertThat(Stats.getState()).isEqualTo(StatsCollectionState.DISABLED); in getState()74 Stats.setState(StatsCollectionState.ENABLED); in setState_IgnoresInput()75 assertThat(Stats.getState()).isEqualTo(StatsCollectionState.DISABLED); in setState_IgnoresInput()
54 public abstract StatsCollectionState getState(); in getState()73 public abstract void setState(StatsCollectionState state); in setState()
66 public static StatsCollectionState getState() { in getState()87 public static void setState(StatsCollectionState state) { in setState()
100 public StatsCollectionState getState() { in getState()102 return StatsCollectionState.DISABLED; in getState()107 public void setState(StatsCollectionState state) { in setState()
24 public enum StatsCollectionState { enum