@VisibleForTesting protected void listenToPhoneState(PhoneStateListener listener,int events){
  TelephonyManager telephony=(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
  if (telephony != null) {
    telephony.listen(listener,events);
  }
}

@ VisibleForTesting protected void listenToPhoneState ( PhoneStateListener listener , int events ) { TelephonyManager telephony = ( TelephonyManager ) context . getSystemService ( Context . TELEPHONY_SERVICE ) ; if ( telephony != null ) { telephony . listen ( listener , events ) ; } }
listens to phone state .
