question: protected byte [ ] readNotificationResponse ( ) throws DeviceDisconnectedException , DfuException , UploadAbortedException { try { synchronized ( mLock ) { while ( ( mReceivedData == null && mConnected && mError == 0 && ! mAborted ) || mPaused ) mLock . wait ( ) ; } } catch ( final InterruptedException e ) { loge ( "Sleeping interrupted" , e ) ; } if ( mAborted ) throw new UploadAbortedException ( ) ; if ( mError != 0 ) throw new DfuException ( "Unable to write Op Code" , mError ) ; if ( ! mConnected ) throw new DeviceDisconnectedException ( "Unable to write Op Code: device disconnected" ) ; return mReceivedData ; }
target:  Waits until the notification will arrive. Returns the data returned by the notification. This method will block the thread until response is not ready or the device gets disconnected. If connection state will change, or an error will occur, an exception will be thrown.