auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean checkForCondition ( ) { if ( ( ( ( ( mDevice.hasObject ( android.support.test.uiautomator.By.textContains ( "has stopped" ) ) ) || ( mDevice.hasObject ( android.support.test.uiautomator.By.textContains ( "isn't responding" ) ) ) ) || ( mDevice.hasObject ( android.support.test.uiautomator.By.clazz ( "com.android.server.am.AppNotRespondingDialog" ) ) ) ) || ( mDevice.hasObject ( android.support.test.uiautomator.By.clazz ( "com.android.server.am.AppErrorDialog" ) ) ) ) || ( mDevice.hasObject ( android.support.test.uiautomator.By.textContains ( "keeps stopping" ) ) ) ) { reportCrashAndDismiss ( ) ; } return false ; }

Target:
public boolean checkForCondition ( ) { if ( ( ( ( ( mDevice.hasObject ( android.support.test.uiautomator.By.textContains ( "has stopped" ) ) ) || ( mDevice.hasObject ( android.support.test.uiautomator.By.textContains ( "isn't responding" ) ) ) ) || ( mDevice.hasObject ( android.support.test.uiautomator.By.clazz ( "com.android.server.am.AppNotRespondingDialog" ) ) ) ) || ( mDevice.hasObject ( android.support.test.uiautomator.By.clazz ( "com.android.server.am.AppErrorDialog" ) ) ) ) || ( mDevice.hasObject ( android.support.test.uiautomator.By.textContains ( "keeps stopping" ) ) ) ) { org.junit.Assert.fail ( "Caught an application crash." ) ; } return false ; }
Source:
public void exitEmergencyCallbackMode ( ) { if ( isPhoneTypeGsm ( ) ) { if ( ( mImsPhone ) != null ) { mImsPhone.exitEmergencyCallbackMode ( ) ; } } else { if ( mWakeLock.isHeld ( ) ) { mWakeLock.release ( ) ; } mCi.exitEmergencyCallbackMode ( obtainMessage ( com.android.internal.telephony.EVENT_EXIT_EMERGENCY_CALLBACK_RESPONSE ) ) ; } }

Target:
public void exitEmergencyCallbackMode ( ) { if ( com.android.internal.telephony.GsmCdmaPhone.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.GsmCdmaPhone.LOG_TAG , ( ( ( "exitEmergencyCallbackMode: mImsPhone=" + ( mImsPhone ) ) + " isPhoneTypeGsm=" ) + ( isPhoneTypeGsm ( ) ) ) ) ; } if ( isPhoneTypeGsm ( ) ) { if ( ( mImsPhone ) != null ) { mImsPhone.exitEmergencyCallbackMode ( ) ; } } else { if ( mWakeLock.isHeld ( ) ) { mWakeLock.release ( ) ; } mCi.exitEmergencyCallbackMode ( obtainMessage ( com.android.internal.telephony.EVENT_EXIT_EMERGENCY_CALLBACK_RESPONSE ) ) ; } }
Source:
public void screenTurnedOff ( int why ) { android.util.EventLog.writeEvent ( 70000 , 0 ) ; synchronized ( mLock ) { mScreenOnEarly = false ; mScreenOnFully = false ; } if ( ( mKeyguardDelegate ) != null ) { mKeyguardDelegate.onScreenTurnedOff ( why ) ; } synchronized ( mLock ) { updateOrientationListenerLp ( ) ; updateLockScreenTimeout ( ) ; } }

Target:
public void screenTurnedOff ( ) { if ( com.android.internal.policy.impl.PhoneWindowManager.DEBUG_WAKEUP ) android.util.Slog.i ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "Screen turned off..." ) ; synchronized ( mLock ) { mScreenOnEarly = false ; mScreenOnFully = false ; mWindowManagerDrawComplete = false ; mScreenOnListener = null ; updateOrientationListenerLp ( ) ; } }
Source:
private void checkSuccess ( java.util.Map < java.lang.String , java.lang.String > replacements ) throws java.lang.Exception { java.io.InputStream xmlStream = com.android.dvlib.DeviceSchemaTest.getReplacedStream ( replacements ) ; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; assertTrue ( com.android.dvlib.DeviceSchema.validate ( xmlStream , baos , null ) ) ; assertTrue ( baos.toString ( ) . trim ( ) . matches ( "" ) ) ; }

Target:
private void checkSuccess ( java.util.Map < java.lang.String , java.lang.String > replacements ) throws java.lang.Exception { java.io.InputStream xmlStream = com.android.dvlib.DeviceSchemaTest.getReplacedStream ( replacements ) ; assertTrue ( xmlStream.markSupported ( ) ) ; xmlStream.mark ( 500000 ) ; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; assertTrue ( com.android.dvlib.DeviceSchema.validate ( xmlStream , baos , null ) ) ; assertTrue ( baos.toString ( ) . trim ( ) . matches ( "" ) ) ; }
Source:
private byte getPlayStateBytes ( android.media.session.PlaybackState pbState ) { byte playStateBytes = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_STOPPED ; if ( pbState != null ) { playStateBytes = ( ( byte ) ( convertPlayStateToBytes ( pbState.getState ( ) ) ) ) ; android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "getPlayBackState: playStateBytes = " + playStateBytes ) ) ; } else { android.util.Log.w ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "playState object null, sending playStateBytes = " + playStateBytes ) ) ; } return playStateBytes ; }

Target:
private byte getBluetoothPlayState ( android.media.session.PlaybackState pbState ) { if ( pbState == null ) { android.util.Log.w ( com.android.bluetooth.avrcp.Avrcp.TAG , "playState object null, sending STOPPED" ) ; return com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_STOPPED ; } switch ( pbState.getState ( ) ) { case android.media.session.PlaybackState.STATE_PLAYING : case android.media.session.PlaybackState.STATE_BUFFERING : return com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_PLAYING ; case android.media.session.PlaybackState.STATE_STOPPED : case android.media.session.PlaybackState.STATE_NONE : case android.media.session.PlaybackState.STATE_CONNECTING : return com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_STOPPED ; case android.media.session.PlaybackState.STATE_PAUSED : return com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_PAUSED ; case android.media.session.PlaybackState.STATE_FAST_FORWARDING : case android.media.session.PlaybackState.STATE_SKIPPING_TO_NEXT : case android.media.session.PlaybackState.STATE_SKIPPING_TO_QUEUE_ITEM : return com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_FWD_SEEK ; case android.media.session.PlaybackState.STATE_REWINDING : case android.media.session.PlaybackState.STATE_SKIPPING_TO_PREVIOUS : return com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_REV_SEEK ; case android.media.session.PlaybackState.STATE_ERROR : default : return com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_ERROR ; } }
Source:
private void incrementWaiters ( com.google.common.util.concurrent.Monitor.Guard guard ) { int waiters = ( guard.waiterCount ) ++ ; if ( waiters == 0 ) { activeGuards.add ( guard ) ; } }

Target:
private void endWaitingFor ( com.google.common.util.concurrent.Monitor.Guard guard ) { int waiters = -- ( guard.waiterCount ) ; if ( waiters == 0 ) { for ( com.google.common.util.concurrent.Monitor.Guard p = activeGuards , pred = null ; ; pred = p , p = p.next ) { if ( p == guard ) { if ( pred == null ) { activeGuards = p.next ; } else { pred.next = p.next ; } p.next = null ; break ; } } } }
Source:
public void onFeatureReady ( ) { }

Target:
public void testNotifyCapabilityStatusChanged ( ) throws java.lang.Exception { android.telephony.ims.feature.ImsFeature.Capabilities status = new android.telephony.ims.feature.ImsFeature.Capabilities ( ) ; status.addCapabilities ( TestImsFeature.CAPABILITY_TEST_1 ) ; status.addCapabilities ( TestImsFeature.CAPABILITY_TEST_2 ) ; mTestImsFeature.capabilitiesStatusChanged ( status ) ; junit.framework.Assert.assertEquals ( status.getMask ( ) , mTestImsFeature.queryCapabilityStatus ( ) . getMask ( ) ) ; }
Source:
public void onChanged ( com.android.internal.widget.NumberPicker picker , int oldVal , int newVal ) { mMonth = newVal - 1 ; adjustMaxDay ( ) ; if ( ( mOnDateChangedListener ) != null ) { mOnDateChangedListener.onDateChanged ( this , mYear , mMonth , mDay ) ; } updateDaySpinner ( ) ; }

Target:
public void onChanged ( com.android.internal.widget.NumberPicker picker , int oldVal , int newVal ) { mMonth = newVal - 1 ; adjustMaxDay ( ) ; notifyDateChanged ( ) ; updateDaySpinner ( ) ; }
Source:
public boolean isPaused ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return isPaused ( ) ; } } ) ; return ret ; } return mAwContents.isPaused ( ) ; }

Target:
public android.graphics.Bitmap getFavicon ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.graphics.Bitmap ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.graphics.Bitmap > ( ) { @ java.lang.Override public android.graphics.Bitmap call ( ) { return getFavicon ( ) ; } } ) ; return ret ; } return mAwContents.getFavicon ( ) ; }
Source:
public boolean isAllowedToUseHiddenApi ( ) { boolean whitelisted = com.android.server.SystemConfig.getInstance ( ) . getHiddenApiWhitelistedApps ( ) . contains ( packageName ) ; return ( isSystemApp ( ) ) || ( whitelisted && ( ( isSystemApp ( ) ) || ( isUpdatedSystemApp ( ) ) ) ) ; }

Target:
public int getHiddenApiEnforcementPolicy ( ) { if ( ( mHiddenApiPolicy ) != ( android.content.pm.ApplicationInfo.HIDDEN_API_ENFORCEMENT_DEFAULT ) ) { return mHiddenApiPolicy ; } if ( ( isPackageWhitelistedForHiddenApis ( ) ) && ( ( isSystemApp ( ) ) || ( isUpdatedSystemApp ( ) ) ) ) { return android.content.pm.ApplicationInfo.HIDDEN_API_ENFORCEMENT_NONE ; } return android.content.pm.ApplicationInfo.HIDDEN_API_ENFORCEMENT_BLACK ; }
Source:
public void fromBundles ( android.content.Context context , java.util.List < android.os.Bundle > pendingTasks ) { com.android.voicemail.impl.Assert.isTrue ( queue.isEmpty ( ) ) ; for ( android.os.Bundle pendingTask : pendingTasks ) { com.android.voicemail.impl.scheduling.Task task = com.android.voicemail.impl.scheduling.Tasks.createTask ( context , pendingTask ) ; task.onRestore ( pendingTask ) ; add ( task ) ; } }

Target:
public void fromBundles ( android.content.Context context , java.util.List < android.os.Bundle > pendingTasks ) { com.android.voicemail.impl.Assert.isTrue ( queue.isEmpty ( ) ) ; for ( android.os.Bundle pendingTask : pendingTasks ) { try { com.android.voicemail.impl.scheduling.Task task = com.android.voicemail.impl.scheduling.Tasks.createTask ( context , pendingTask ) ; task.onRestore ( pendingTask ) ; add ( task ) ; } catch ( com.android.voicemail.impl.scheduling.Tasks.TaskCreationException e ) { com.android.voicemail.impl.VvmLog.e ( "TaskQueue.fromBundles" , "cannot create task" , e ) ; } } }
Source:
public final void onSmsReceived ( int token , java.lang.String format , byte [ ] pdu ) throws java.lang.RuntimeException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.RuntimeException ( "Feature not ready." ) ; } try { mListener.onSmsReceived ( token , format , pdu ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.stub.ImsSmsImplBase.LOG_TAG , ( "Can not deliver sms: " + ( e.getMessage ( ) ) ) ) ; acknowledgeSms ( token , 0 , android.telephony.ims.stub.ImsSmsImplBase.DELIVER_STATUS_ERROR ) ; } } }

Target:
public final void onSmsReceived ( int token , java.lang.String format , byte [ ] pdu ) throws java.lang.RuntimeException { synchronized ( mLock ) { if ( ( mListener ) == null ) { throw new java.lang.RuntimeException ( "Feature not ready." ) ; } try { mListener.onSmsReceived ( token , format , pdu ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.stub.ImsSmsImplBase.LOG_TAG , ( "Can not deliver sms: " + ( e.getMessage ( ) ) ) ) ; acknowledgeSms ( token , 0 , android.telephony.ims.stub.ImsSmsImplBase.DELIVER_STATUS_ERROR_GENERIC ) ; } } }
Source:
void disconnect ( android.content.Context context ) { try { if ( mBound ) { mBound = false ; context.unbindService ( this ) ; if ( com.android.server.NetworkScoreService.DBG ) android.util.Log.d ( com.android.server.NetworkScoreService.TAG , "ScoringServiceConnection unbound." ) ; } } catch ( java.lang.RuntimeException e ) { android.util.Log.e ( com.android.server.NetworkScoreService.TAG , "Unbind failed." , e ) ; } }

Target:
void disconnect ( android.content.Context context ) { try { if ( mBound ) { mBound = false ; context.unbindService ( this ) ; if ( com.android.server.NetworkScoreService.DBG ) android.util.Log.d ( com.android.server.NetworkScoreService.TAG , "ScoringServiceConnection unbound." ) ; } } catch ( java.lang.RuntimeException e ) { android.util.Log.e ( com.android.server.NetworkScoreService.TAG , "Unbind failed." , e ) ; } mRecommendationProvider = null ; }
Source:
public void testTryCatchHang ( ) throws java.lang.Exception { com.android.tools.lint.client.api.IJavaParser javaParser = createClient ( ) . getJavaParser ( ) ; assertNotNull ( javaParser ) ; assertTrue ( javaParser.getClass ( ) . getName ( ) , ( javaParser instanceof com.android.tools.lint.EcjParser ) ) ; assertEquals ( "No warnings." , lintProject ( "src/test/pkg/TryCatchHang.java.txt=>src/test/pkg/TryCatchHang.java" ) ) ; }

Target:
public void testTryCatchHang ( ) throws java.lang.Exception { com.android.tools.lint.client.api.JavaParser javaParser = createClient ( ) . getJavaParser ( null ) ; assertNotNull ( javaParser ) ; assertTrue ( javaParser.getClass ( ) . getName ( ) , ( javaParser instanceof com.android.tools.lint.EcjParser ) ) ; assertEquals ( "No warnings." , lintProject ( "src/test/pkg/TryCatchHang.java.txt=>src/test/pkg/TryCatchHang.java" ) ) ; }
Source:
public com.android.tools.perflib.heap.Heap getHeap ( @ com.android.annotations.NonNull java.lang.String name ) { for ( com.android.tools.perflib.heap.Heap mHeap : mHeaps ) { if ( name.equals ( mHeap.getName ( ) ) ) { return mHeap ; } } return null ; }

Target:
public com.android.tools.perflib.heap.Heap getHeap ( int id ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { if ( ( mHeaps.get ( i ) . getId ( ) ) == id ) { return mHeaps.get ( i ) ; } } return null ; }
Source:
private ClassData.Field [ ] readFields ( int count ) { com.android.dx.io.ClassData [ ] result = new com.android.dx.io.ClassData.Field [ count ] ; int fieldIndex = 0 ; for ( int i = 0 ; i < count ; i ++ ) { fieldIndex += readUleb128 ( ) ; int accessFlags = readUleb128 ( ) ; result [ i ] = new com.android.dx.io.ClassData.Field ( fieldIndex , accessFlags ) ; } return result ; }

Target:
private ClassData.Field [ ] readFields ( int count ) { com.android.dex.ClassData [ ] result = new com.android.dex.ClassData.Field [ count ] ; int fieldIndex = 0 ; for ( int i = 0 ; i < count ; i ++ ) { fieldIndex += readUleb128 ( ) ; int accessFlags = readUleb128 ( ) ; result [ i ] = new com.android.dex.ClassData.Field ( fieldIndex , accessFlags ) ; } return result ; }
Source:
void remove ( java.util.UUID uuid ) { synchronized ( mApps ) { java.util.Iterator < com.android.bluetooth.gatt.ContextMap < T > . App > i = mApps.iterator ( ) ; while ( i.hasNext ( ) ) { com.android.bluetooth.gatt.ContextMap < T > . App entry = i.next ( ) ; if ( entry.uuid.equals ( uuid ) ) { entry.unlinkToDeath ( ) ; mAppScanStats.get ( entry.name ) . isRegistered = false ; i.remove ( ) ; break ; } } } }

Target:
void remove ( java.util.UUID uuid ) { synchronized ( mApps ) { java.util.Iterator < com.android.bluetooth.gatt.ContextMap < T > . App > i = mApps.iterator ( ) ; while ( i.hasNext ( ) ) { com.android.bluetooth.gatt.ContextMap < T > . App entry = i.next ( ) ; if ( entry.uuid.equals ( uuid ) ) { entry.unlinkToDeath ( ) ; entry.appScanStats.isRegistered = false ; i.remove ( ) ; break ; } } } }
Source:
public void bindResponse ( int ind_id , boolean ind_status ) { if ( ( ( mService ) != null ) && ( isEnabled ( ) ) ) { try { mService.bindResponse ( ind_id , ind_status ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadset.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHeadset.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothHeadset.DBG ) android.util.Log.d ( android.bluetooth.BluetoothHeadset.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } }

Target:
public void bindResponse ( int indId , boolean indStatus ) { if ( ( ( mService ) != null ) && ( isEnabled ( ) ) ) { try { mService.bindResponse ( indId , indStatus ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadset.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHeadset.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothHeadset.DBG ) android.util.Log.d ( android.bluetooth.BluetoothHeadset.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } }
Source:
private static java.lang.String cleanupJavadocHtml ( java.lang.String s ) { if ( s != null ) { s = s.replaceAll ( "&lt;" , "\"" ) ; s = s.replaceAll ( "&gt;" , "\"" ) ; s = s.replaceAll ( "<[^>]+>" , "" ) ; } return s ; }

Target:
private static java.lang.String cleanupJavadocHtml ( java.lang.String s ) { if ( s != null ) { s = s.replaceAll ( com.android.util.XmlUtils.LT_ENTITY , "\"" ) ; s = s.replaceAll ( com.android.util.XmlUtils.GT_ENTITY , "\"" ) ; s = s.replaceAll ( "<[^>]+>" , "" ) ; } return s ; }
Source:
public void cdmaNewSms ( int var1 , android.hardware.radio.V1_0.CdmaSmsMessage var2 ) { }

Target:
public void cdmaNewSms ( int indicationType , android.hardware.radio.V1_0.CdmaSmsMessage msg ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_RESPONSE_CDMA_NEW_SMS ) ; mRil.writeMetricsNewSms ( SmsSession.Event.Tech.SMS_CDMA , SmsSession.Event.Format.SMS_FORMAT_3GPP2 ) ; android.telephony.SmsMessage sms = android.telephony.SmsMessage.newCdmaSmsFromRil ( msg ) ; if ( ( mRil.mCdmaSmsRegistrant ) != null ) { mRil.mCdmaSmsRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , sms , null ) ) ; } }
Source:
public void test_d2i_SSL_SESSION ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( null ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 0 ] ) ; org.junit.Assert.fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 1 ] ) ; org.junit.Assert.fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } }

Target:
public void d2i_SSL_SESSION_NullArgument ( ) throws java.lang.Exception { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( null ) ; }
Source:
public int getAndroidCarrierIdForSubscription ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; return service.getSubscriptionCarrierId ( getSubId ( ) ) ; } catch ( android.os.RemoteException ex ) { ex.rethrowAsRuntimeException ( ) ; } catch ( java.lang.NullPointerException ex ) { throw new java.lang.IllegalStateException ( "Telephony service unavailable" ) ; } return android.telephony.TelephonyManager.UNKNOWN_CARRIER_ID ; }

Target:
public int getSimCarrierId ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getSubscriptionCarrierId ( getSubId ( ) ) ; } } catch ( android.os.RemoteException ex ) { ex.rethrowAsRuntimeException ( ) ; } return android.telephony.TelephonyManager.UNKNOWN_CARRIER_ID ; }
Source:
public static void closeSocket ( java.io.FileDescriptor fd ) throws java.io.IOException { if ( ! ( fd.valid ( ) ) ) { return ; } int intFd = fd.getInt$ ( ) ; fd.setInt$ ( ( - 1 ) ) ; java.io.FileDescriptor oldFd = new java.io.FileDescriptor ( ) ; oldFd.setInt$ ( intFd ) ; libcore.io.AsynchronousCloseMonitor.signalBlockedThreads ( oldFd ) ; try { Libcore.os.close ( oldFd ) ; } catch ( libcore.io.ErrnoException errnoException ) { } }

Target:
public static void closeAndSignalBlockedThreads ( java.io.FileDescriptor fd ) throws java.io.IOException { if ( ( fd == null ) || ( ! ( fd.valid ( ) ) ) ) { return ; } int intFd = fd.getInt$ ( ) ; fd.setInt$ ( ( - 1 ) ) ; java.io.FileDescriptor oldFd = new java.io.FileDescriptor ( ) ; oldFd.setInt$ ( intFd ) ; libcore.io.AsynchronousCloseMonitor.signalBlockedThreads ( oldFd ) ; try { Libcore.os.close ( oldFd ) ; } catch ( libcore.io.ErrnoException errnoException ) { } }
Source:
public com.android.jack.api.v01.Api01CompilationTask getTask ( ) throws com.android.jack.api.v01.ConfigurationException { com.android.sched.util.RunnableHooks configHooks = new com.android.sched.util.RunnableHooks ( ) ; try { com.android.jack.Jack.check ( options , configHooks ) ; } catch ( com.android.jack.api.v01.impl.com.android.sched e ) { throw new com.android.jack.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } catch ( com.android.jack.IllegalOptionsException e ) { throw new com.android.jack.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } return new com.android.jack.api.v01.impl.Api01ConfigImpl.Api01CompilationTaskImpl ( options , configHooks ) ; }

Target:
public com.android.jack.api.v01.Api01CompilationTask getTask ( ) throws com.android.jack.api.v01.ConfigurationException { com.android.sched.util.RunnableHooks configHooks = new com.android.sched.util.RunnableHooks ( ) ; try { com.android.jack.Jack.check ( options , configHooks ) ; } catch ( com.android.jack.api.v01.impl.com.android.sched e ) { configHooks.runHooks ( ) ; throw new com.android.jack.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } catch ( com.android.jack.IllegalOptionsException e ) { configHooks.runHooks ( ) ; throw new com.android.jack.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } return new com.android.jack.api.v01.impl.Api01ConfigImpl.Api01CompilationTaskImpl ( options , configHooks ) ; }
Source:
public final com.android.tools.perflib.heap.Instance findReference ( long id ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.Instance instance = mHeaps.get ( i ) . getInstance ( id ) ; if ( instance != null ) { return instance ; } } return findClass ( id ) ; }

Target:
public final com.android.tools.perflib.heap.Instance findInstance ( long id ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.Instance instance = mHeaps.get ( i ) . getInstance ( id ) ; if ( instance != null ) { return instance ; } } return findClass ( id ) ; }
Source:
private boolean isAllowedBySettingsLocked ( java.lang.String provider ) { if ( mEnabledProviders.contains ( provider ) ) { return true ; } if ( mDisabledProviders.contains ( provider ) ) { return false ; } android.content.ContentResolver resolver = mContext.getContentResolver ( ) ; return Settings.Secure.isLocationProviderEnabled ( resolver , provider ) ; }

Target:
private boolean isAllowedBySettingsLocked ( java.lang.String provider , int userId ) { if ( userId != ( mCurrentUserId ) ) { return false ; } if ( mEnabledProviders.contains ( provider ) ) { return true ; } if ( mDisabledProviders.contains ( provider ) ) { return false ; } android.content.ContentResolver resolver = mContext.getContentResolver ( ) ; return Settings.Secure.isLocationProviderEnabledForUser ( resolver , provider , mCurrentUserId ) ; }
Source:
public void testEveryTypeHasAnExampleNumber ( ) throws java.lang.Exception { for ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType type : PhoneNumberUtil.PhoneNumberType.values ( ) ) { com.google.i18n.phonenumbers.Phonenumber.PhoneNumber exampleNumber = phoneNumberUtil.getExampleNumberForType ( type ) ; assertNotNull ( ( "No example number found for type " + type ) , exampleNumber ) ; } }

Target:
public void testEveryTypeHasAnExampleNumber ( ) throws java.lang.Exception { for ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType type : PhoneNumberUtil.PhoneNumberType.values ( ) ) { if ( type == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.UNKNOWN ) ) { continue ; } com.google.i18n.phonenumbers.Phonenumber.PhoneNumber exampleNumber = phoneNumberUtil.getExampleNumberForType ( type ) ; assertNotNull ( ( "No example number found for type " + type ) , exampleNumber ) ; } }
Source:
public java.lang.String getFlavorName ( ) { if ( ( mFlavorName ) == null ) { if ( mFlavors.isEmpty ( ) ) { mFlavorName = "" ; } else { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; boolean first = true ; for ( F flavor : mFlavors ) { sb.append ( ( first ? flavor.getName ( ) : com.android.builder.internal.StringHelper.capitalize ( flavor.getName ( ) ) ) ) ; first = false ; } mFlavorName = sb.toString ( ) ; } } return mFlavorName ; }

Target:
public java.lang.String getFlavorName ( ) { if ( ( mFlavorName ) == null ) { if ( mFlavors.isEmpty ( ) ) { mFlavorName = "" ; } else { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; boolean first = true ; for ( F flavor : mFlavors ) { sb.append ( ( first ? flavor.getName ( ) : com.android.utils.StringHelper.capitalize ( flavor.getName ( ) ) ) ) ; first = false ; } mFlavorName = sb.toString ( ) ; } } return mFlavorName ; }
Source:
public com.android.dx.util.ByteArrayAnnotatedOutput writeTo ( com.android.dx.dex.file.DexFile.Storage storage ) { return toDex0 ( false , false , storage ) ; }

Target:
public byte [ ] toDex ( java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { boolean annotate = humanOut != null ; com.android.dx.util.ByteArrayAnnotatedOutput result = toDex0 ( annotate , verbose ) ; if ( annotate ) { result.writeAnnotationsTo ( humanOut ) ; } return result.getArray ( ) ; }
Source:
public android.telephony.ims.feature.MMTelFeature onCreateMMTelImsFeature ( int slotId ) { return null ; }

Target:
private com.android.ims.internal.IImsMMTelFeature createMMTelFeatureInternal ( int slotId , com.android.ims.internal.IImsFeatureStatusCallback c ) { android.telephony.ims.feature.MMTelFeature f = onCreateMMTelImsFeature ( slotId ) ; if ( f != null ) { setupFeature ( f , slotId , ImsFeature.MMTEL , c ) ; return f.getBinder ( ) ; } else { return null ; } }
Source:
public void verifyCallbackVideoUnavailable ( ) { android.media.tv.cts.TvInputServiceTest.CountingTvInputService.CountingSession session = android.media.tv.cts.TvInputServiceTest.CountingTvInputService.sSession ; assertNotNull ( session ) ; session.notifyVideoUnavailable ( TvInputManager.VIDEO_UNAVAILABLE_REASON_TUNING ) ; new android.cts.util.PollingCheck ( android.media.tv.cts.TvInputServiceTest.TIME_OUT ) { @ java.lang.Override protected boolean check ( ) { return ( mCallback.mVideoUnavailableCount ) > 0 ; } } . run ( ) ; }

Target:
public void verifyCallbackVideoUnavailable ( ) { resetCounts ( ) ; android.media.tv.cts.TvInputServiceTest.CountingTvInputService.CountingSession session = android.media.tv.cts.TvInputServiceTest.CountingTvInputService.sSession ; assertNotNull ( session ) ; session.notifyVideoUnavailable ( TvInputManager.VIDEO_UNAVAILABLE_REASON_TUNING ) ; new android.cts.util.PollingCheck ( android.media.tv.cts.TvInputServiceTest.TIME_OUT ) { @ java.lang.Override protected boolean check ( ) { return ( mCallback.mVideoUnavailableCount ) > 0 ; } } . run ( ) ; }
Source:
public static long digestRegularFile ( java.io.File file ) throws java.io.IOException { if ( file.isDirectory ( ) ) { return com.intellij.updater.Digester.DIRECTORY ; } java.io.InputStream in = new java.io.BufferedInputStream ( new java.io.FileInputStream ( file ) ) ; try { return com.intellij.updater.Digester.digestStream ( in ) ; } finally { in.close ( ) ; } }

Target:
public static long digestRegularFile ( java.io.File file , boolean normalize ) throws java.io.IOException { if ( file.isDirectory ( ) ) { return com.intellij.updater.Digester.DIRECTORY ; } java.io.InputStream in = new java.io.BufferedInputStream ( com.intellij.updater.Utils.newFileInputStream ( file , normalize ) ) ; try { return com.intellij.updater.Digester.digestStream ( in ) ; } finally { in.close ( ) ; } }
Source:
public void testUngrant_Generated_Success ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to generate key for testcase" , mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertTrue ( "Should be able to grant key to other user" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to ungrant key to other user" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; }

Target:
public void testUngrant_Generated_Success ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to generate key for testcase" , mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeCrypto.EVP_PKEY_RSA , 1024 , KeyStore.FLAG_ENCRYPTED , null ) ) ; assertTrue ( "Should be able to grant key to other user" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to ungrant key to other user" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; }
Source:
public void testGetCurrentNetworkWpsNfcConfigurationToken ( ) throws java.lang.Exception { java.lang.String token = "45adbc1" ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.getWpsNfcConfigurationToken ( ) ) . thenReturn ( token ) ; executeAndValidateInitializationSequence ( false , false , false ) ; assertTrue ( ( ( mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) == null ) ) ; executeAndValidateConnectSequence ( 4 , false , false ) ; assertEquals ( token , mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) ; }

Target:
public void testSetCurrentNetworkBssid ( ) throws java.lang.Exception { java.lang.String bssidStr = "34:34:12:12:12:90" ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.setBssid ( org.mockito.Matchers.eq ( bssidStr ) ) ) . thenReturn ( true ) ; executeAndValidateInitializationSequence ( ) ; assertFalse ( mDut.setCurrentNetworkBssid ( bssidStr ) ) ; executeAndValidateConnectSequence ( 4 , false , false ) ; assertTrue ( mDut.setCurrentNetworkBssid ( bssidStr ) ) ; }
Source:
public void startScan ( int appIf , boolean isServer , android.bluetooth.le.ScanSettings settings , java.util.List < android.bluetooth.le.ScanFilter > filters , android.os.WorkSource workSource , java.util.List storages , java.lang.String callingPackage ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.startScan ( appIf , isServer , settings , filters , workSource , storages , callingPackage ) ; }

Target:
public void startScan ( int scannerId , android.bluetooth.le.ScanSettings settings , java.util.List < android.bluetooth.le.ScanFilter > filters , android.os.WorkSource workSource , java.util.List storages , java.lang.String callingPackage ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.startScan ( scannerId , settings , filters , workSource , storages , callingPackage ) ; }
Source:
public boolean equals ( java.lang.Object a ) { if ( a instanceof com.ibm.icu.text.DateIntervalInfo.PatternInfo ) { com.ibm.icu.text.DateIntervalInfo.PatternInfo patternInfo = ( ( com.ibm.icu.text.DateIntervalInfo.PatternInfo ) ( a ) ) ; return ( ( com.ibm.icu.impl.Utility.objectEquals ( fIntervalPatternFirstPart , patternInfo.fIntervalPatternFirstPart ) ) && ( com.ibm.icu.impl.Utility.objectEquals ( fIntervalPatternSecondPart , fIntervalPatternSecondPart ) ) ) && ( ( fFirstDateInPtnIsLaterDate ) == ( patternInfo.fFirstDateInPtnIsLaterDate ) ) ; } return false ; }

Target:
public boolean equals ( java.lang.Object a ) { if ( a instanceof com.ibm.icu.text.DateIntervalInfo.PatternInfo ) { com.ibm.icu.text.DateIntervalInfo.PatternInfo patternInfo = ( ( com.ibm.icu.text.DateIntervalInfo.PatternInfo ) ( a ) ) ; return ( ( com.ibm.icu.impl.Utility.objectEquals ( fIntervalPatternFirstPart , patternInfo.fIntervalPatternFirstPart ) ) && ( com.ibm.icu.impl.Utility.objectEquals ( fIntervalPatternSecondPart , patternInfo.fIntervalPatternSecondPart ) ) ) && ( ( fFirstDateInPtnIsLaterDate ) == ( patternInfo.fFirstDateInPtnIsLaterDate ) ) ; } return false ; }
Source:
protected org.eclipse.core.runtime.IStatus run ( org.eclipse.core.runtime.IProgressMonitor monitor ) { try { pingUsageServer ( ) ; return org.eclipse.core.runtime.Status.OK_STATUS ; } catch ( java.lang.Throwable t ) { com.android.ide.eclipse.adt.AdtPlugin.log ( t , "pingUsageServer failed" ) ; return new org.eclipse.core.runtime.Status ( org.eclipse.core.runtime.IStatus.ERROR , com.android.ide.eclipse.adt.AdtPlugin.PLUGIN_ID , "pingUsageServer failed" , t ) ; } }

Target:
public void run ( ) { org.eclipse.ui.IWorkbenchWindow window = workbench.getActiveWorkbenchWindow ( ) ; if ( window != null ) { com.android.ide.eclipse.adt.internal.welcome.WelcomeWizard wizard = new com.android.ide.eclipse.adt.internal.welcome.WelcomeWizard ( mStore ) ; org.eclipse.jface.wizard.WizardDialog dialog = new org.eclipse.jface.wizard.WizardDialog ( window.getShell ( ) , wizard ) ; dialog.open ( ) ; } mStore.setAdtUsed ( true ) ; if ( mStore.isPingOptIn ( ) ) { sendUsageStats ( ) ; } }
Source:
public void packageInstalled ( java.lang.String packageName , int returnCode ) { android.os.Message msg = mHandler.obtainMessage ( INSTALL_COMPLETE ) ; msg.arg1 = returnCode ; mHandler.sendMessage ( msg ) ; }

Target:
int getInstallFlags ( java.lang.String packageName ) { android.content.pm.PackageManager pm = getPackageManager ( ) ; try { android.content.pm.PackageInfo pi = pm.getPackageInfo ( packageName , PackageManager.GET_UNINSTALLED_PACKAGES ) ; if ( pi != null ) { return android.content.pm.PackageManager.INSTALL_REPLACE_EXISTING ; } } catch ( android.content.pm.PackageManager.NameNotFoundException e ) { } return 0 ; }
Source:
public void testEmptyLibraryInClassPath ( ) throws java.lang.Exception { java.io.File emptyLib = createEmptyLibrary ( ) ; com.android.jack.test.toolchain.AndroidToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.srcToExe ( ( ( ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( toolchain.getDefaultBootClasspath ( ) ) ) + ( java.io.File.pathSeparator ) ) + ( emptyLib.getPath ( ) ) ) , com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "library001" , ".jack" ) , true , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.library.test001.jack" ) ) ; }

Target:
public void testEmptyLibraryInClassPath ( ) throws java.lang.Exception { java.io.File emptyLib = createEmptyLibrary ( ) ; com.android.jack.test.toolchain.AndroidToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . addToClasspath ( emptyLib ) . srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "library001" , ".jack" ) , true , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.library.test001.jack" ) ) ; }
Source:
public void testKeyStore_GetCertificateAlias_CAEntry_Success ( ) throws java.lang.Exception { mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; java.security.cert.CertificateFactory f = java.security.cert.CertificateFactory.getInstance ( "X.509" ) ; java.security.cert.Certificate actual = f.generateCertificate ( new java.io.ByteArrayInputStream ( android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; assertEquals ( "Stored certificate alias should be found" , android.security.AndroidKeyStoreTest.TEST_ALIAS_1 , mKeyStore.getCertificateAlias ( actual ) ) ; }

Target:
public void testKeyStore_GetCertificateAlias_CAEntry_Encrypted_Success ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; java.security.cert.CertificateFactory f = java.security.cert.CertificateFactory.getInstance ( "X.509" ) ; java.security.cert.Certificate actual = f.generateCertificate ( new java.io.ByteArrayInputStream ( android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; assertEquals ( "Stored certificate alias should be found" , android.security.AndroidKeyStoreTest.TEST_ALIAS_1 , mKeyStore.getCertificateAlias ( actual ) ) ; }
Source:
static < Raw extends org.jetbrains.plugins.github.api.DataConstructor , Result > Result createDataFromRaw ( @ org.jetbrains.annotations.NotNull Raw rawObject , @ org.jetbrains.annotations.NotNull java.lang.Class < Result > resultClass ) throws org.jetbrains.plugins.github.api.JsonException { try { return rawObject.create ( resultClass ) ; } catch ( java.lang.Exception e ) { throw new org.jetbrains.plugins.github.api.JsonException ( "Json parse error" , e ) ; } }

Target:
static < Raw extends org.jetbrains.plugins.github.api.DataConstructor , Result > Result createDataFromRaw ( @ org.jetbrains.annotations.NotNull Raw rawObject , @ org.jetbrains.annotations.NotNull java.lang.Class < Result > resultClass ) throws org.jetbrains.plugins.github.exceptions.GithubJsonException { try { return rawObject.create ( resultClass ) ; } catch ( java.lang.Exception e ) { throw new org.jetbrains.plugins.github.exceptions.GithubJsonException ( "Json parse error" , e ) ; } }
Source:
public static double $noinline$returnDouble ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 300000 ; ++ i ) { } while ( ! ( Main.ensureInOsrCode ( ) ) ) { } java.lang.System.out.println ( i ) ; return java.lang.Double.longBitsToDouble ( - 1152921504606842607L ) ; }

Target:
public static double $noinline$returnDouble ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 300000 ; ++ i ) { } while ( ! ( Main.isInOsrCode ( "$noinline$returnDouble" ) ) ) { } java.lang.System.out.println ( i ) ; return java.lang.Double.longBitsToDouble ( - 1152921504606842607L ) ; }
Source:
protected boolean stop ( ) { android.util.Log.v ( com.android.bluetooth.sap.SapService.TAG , "stop()" ) ; if ( ! ( mIsRegistered ) ) { android.util.Log.i ( com.android.bluetooth.sap.SapService.TAG , "Avoid unregister when receiver it is not registered" ) ; return true ; } try { mIsRegistered = false ; unregisterReceiver ( mSapReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.sap.SapService.TAG , "Unable to unregister sap receiver" , e ) ; } setState ( BluetoothSap.STATE_DISCONNECTED , BluetoothSap.RESULT_CANCELED ) ; sendShutdownMessage ( ) ; return true ; }

Target:
protected boolean stop ( ) { android.util.Log.v ( com.android.bluetooth.sap.SapService.TAG , "stop()" ) ; if ( ! ( mIsRegistered ) ) { android.util.Log.i ( com.android.bluetooth.sap.SapService.TAG , "Avoid unregister when receiver it is not registered" ) ; return true ; } com.android.bluetooth.sap.SapService.setSapService ( null ) ; try { mIsRegistered = false ; unregisterReceiver ( mSapReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.sap.SapService.TAG , "Unable to unregister sap receiver" , e ) ; } setState ( BluetoothSap.STATE_DISCONNECTED , BluetoothSap.RESULT_CANCELED ) ; sendShutdownMessage ( ) ; return true ; }
Source:
public void onInitializeAccessibilityNodeInfo ( final android.view.accessibility.AccessibilityNodeInfo info ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onInitializeAccessibilityNodeInfo ( info ) ; } } ) ; return ; } mAwContents.onInitializeAccessibilityNodeInfo ( info ) ; }

Target:
public void onInitializeAccessibilityEvent ( final android.view.accessibility.AccessibilityEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onInitializeAccessibilityEvent ( event ) ; } } ) ; return ; } mAwContents.onInitializeAccessibilityEvent ( event ) ; }
Source:
public com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback callOnDropMove ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement [ ] elements , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback , com.android.ide.eclipse.adt.editors.layout.gscripts.Point where ) { com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { return rule.onDropMove ( targetNode , elements , feedback , where ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropMove() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }

Target:
public com.android.ide.common.api.DropFeedback callOnDropMove ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.common.api.IDragElement [ ] elements , com.android.ide.common.api.DropFeedback feedback , com.android.ide.common.api.Point where ) { com.android.ide.common.api.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { return rule.onDropMove ( targetNode , elements , feedback , where ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropMove() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }
Source:
public boolean shouldOverrideUrlLoading ( java.lang.String url ) { org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "shouldOverrideUrlLoading=" + url ) ) ; boolean result = mWebViewClient.shouldOverrideUrlLoading ( mWebView , url ) ; org.chromium.base.TraceEvent.end ( ) ; return result ; }

Target:
public boolean shouldOverrideUrlLoading ( java.lang.String url ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.shouldOverrideUrlLoading" ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "shouldOverrideUrlLoading=" + url ) ) ; boolean result = mWebViewClient.shouldOverrideUrlLoading ( mWebView , url ) ; return result ; } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.shouldOverrideUrlLoading" ) ; } }
Source:
public void run ( ) { com.android.rs.test.RenderScript pRS = com.android.rs.test.RenderScript.create ( mCtx ) ; pRS.setMessageHandler ( mRsMessage ) ; com.android.rs.test.ScriptC_refcount s = new com.android.rs.test.ScriptC_refcount ( pRS ) ; initializeGlobals ( pRS , s ) ; s.invoke_refcount_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; pRS.setMessageHandler ( mRsMessage ) ; com.android.rs.test.ScriptC_refcount s = new com.android.rs.test.ScriptC_refcount ( pRS ) ; initializeGlobals ( pRS , s ) ; s.invoke_refcount_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }
Source:
private static java.io.File prepareLib ( @ javax.annotation.Nonnull java.io.File sources , @ javax.annotation.Nonnull java.io.File ... classpath ) throws java.lang.Exception { java.io.File outDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; java.util.List < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > exclude = new java.util.ArrayList < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > ( ) ; exclude.add ( com.android.jack.test.toolchain.LegacyJillToolchain.class ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class , exclude ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . addToClasspath ( classpath ) . srcToLib ( outDir , false , sources ) ; return outDir ; }

Target:
private static java.io.File prepareLib ( @ javax.annotation.Nonnull java.io.File sources , @ javax.annotation.Nonnull java.io.File ... classpath ) throws java.lang.Exception { java.io.File outDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; java.util.List < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > exclude = new java.util.ArrayList < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > ( ) ; exclude.add ( com.android.jack.test.toolchain.JillBasedToolchain.class ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class , exclude ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . addToClasspath ( classpath ) . srcToLib ( outDir , false , sources ) ; return outDir ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExceptionRuntimeValue expr ) { assert ! ( expr.canThrow ( ) ) ; confirmBlockElement ( expr ) ; confirmVarAsgValue ( expr , com.android.jack.ir.ast.cfg.JVariableAsgBlockElement.class ) ; confirmParent ( expr.getParent ( ) . getParent ( ) , com.android.jack.ir.ast.cfg.JCatchBasicBlock.class ) ; return true ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExceptionRuntimeValue expr ) { assert ! ( expr.canThrow ( ) ) ; confirmBlockElement ( expr ) ; confirmVariableAssignmentRhs ( expr , com.android.jack.ir.ast.cfg.JVariableAsgBlockElement.class ) ; confirmParent ( expr.getParent ( ) . getParent ( ) , com.android.jack.ir.ast.cfg.JCatchBasicBlock.class ) ; return true ; }
Source:
public final short getBByte ( ) { int b = getB ( ) ; if ( ( b & ( ~ 255 ) ) != 0 ) { throw new com.android.jack.dx.util.DexException ( ( "Register B out of range: " + ( com.android.jack.dx.util.Hex.u8 ( b ) ) ) ) ; } return ( ( short ) ( b ) ) ; }

Target:
public final short getSecondIndexUnit ( ) { assert ( secondIndexType ) != ( com.android.jack.dx.io.IndexType.NONE ) ; return ( ( short ) ( secondIndex ) ) ; }
Source:
private synchronized void onGetReport ( byte type , byte id , short bufferSize ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( ( ( "onGetReport(): type=" + type ) + " id=" ) + id ) + " bufferSize=" ) + bufferSize ) ) ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDeviceService.MESSAGE_GET_REPORT ) ; msg.obj = ( bufferSize > 0 ) ? new java.lang.Integer ( bufferSize ) : null ; msg.arg1 = type ; msg.arg2 = id ; mHandler.sendMessage ( msg ) ; }

Target:
synchronized void onConnectStateChangedFromNative ( android.bluetooth.BluetoothDevice device , int state ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "onConnectStateChanged(): device=" + device ) + " state=" ) + state ) ) ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDeviceService.MESSAGE_CONNECT_STATE_CHANGED ) ; msg.obj = device ; msg.arg1 = state ; mHandler.sendMessage ( msg ) ; }
Source:
private void stopSelfIfIdle ( int startId ) { synchronized ( mProcessing ) { if ( ( mProcessing.isEmpty ( ) ) && ( mPending.isEmpty ( ) ) ) { if ( android.util.Log.isLoggable ( LogTag.TRANSACTION , Log.VERBOSE ) ) { android.util.Log.v ( com.android.mms.transaction.TransactionService.TAG , "stopSelfIfIdle: STOP!" ) ; } if ( android.util.Log.isLoggable ( LogTag.TRANSACTION , Log.VERBOSE ) ) { android.util.Log.v ( com.android.mms.transaction.TransactionService.TAG , "stopSelfIfIdle: unRegisterForConnectionStateChanges" ) ; } com.android.mms.transaction.MmsSystemEventReceiver.unRegisterForConnectionStateChanges ( getApplicationContext ( ) ) ; stopSelf ( startId ) ; } } }

Target:
private boolean isNetworkAvailable ( ) { if ( ( mConnMgr ) == null ) { return false ; } else { android.net.NetworkInfo ni = mConnMgr.getNetworkInfo ( ConnectivityManager.TYPE_MOBILE_MMS ) ; return ni == null ? false : ni.isAvailable ( ) ; } }