question: private synchronized void sendPendingState ( ) { if ( ! mPendingClients . isEmpty ( ) ) { final Message [ ] messages = new Message [ ] { SantaServiceMessages . getBeginFullStateMessage ( ) , SantaServiceMessages . getSwitchOffMessage ( mPreferences . getSwitchOff ( ) ) , getTimeUpdateMessage ( ) , SantaServiceMessages . getCastDisabledMessage ( mPreferences . getCastDisabled ( ) ) , SantaServiceMessages . getGamesMessage ( mPreferences . getGumballDisabled ( ) , mPreferences . getJetpackDisabled ( ) , mPreferences . getMemoryDisabled ( ) , mPreferences . getRocketDisabled ( ) , mPreferences . getDancerDisabled ( ) , mPreferences . getSnowdownDisabled ( ) ) , SantaServiceMessages . getDestinationPhotoMessage ( mPreferences . getDestinationPhotoDisabled ( ) ) , SantaServiceMessages . getStateMessage ( mState ) , SantaServiceMessages . getVideosMessage ( mPreferences . getVideos ( ) ) } ; for ( int i = 0 ; i < mPendingClients . size ( ) ; i ++ ) { final Messenger messenger = mPendingClients . get ( i ) ; try { for ( Message msg : messages ) { messenger . send ( msg ) ; } mClients . add ( messenger ) ; } catch ( RemoteException e ) { } mPendingClients . remove ( i ) ; } } }
target:  Send the current state of the application to all pending clients.