void updateTabState(int newState){
  long now=System.currentTimeMillis();
  recordTabStateTransition(mLastTabState,newState,now - mLastTabStateChangeMillis);
  mLastTabStateChangeMillis=now;
  mLastTabState=newState;
}

void updateTabState ( int newState ) { long now = System . currentTimeMillis ( ) ; recordTabStateTransition ( mLastTabState , newState , now - mLastTabStateChangeMillis ) ; mLastTabStateChangeMillis = now ; mLastTabState = newState ; }
updates saved tabstate and its timestamp . records the state transition into the histogram .
