auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void run ( final com.android.cts.TestDevice device , final com.android.cts.Test test , android.annotation.cts.Profile profile ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException { mTestStop = false ; mCurrentTestCase = null ; mCurrentSubSuite = null ; mCurrentTestCase = test.getTestCase ( ) ; mCurrentTestCase.run ( device , test , profile ) ; }

Target:
public void run ( final com.android.cts.TestDevice device , final com.android.cts.Test test ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException { mTestStop = false ; mCurrentTestCase = null ; mCurrentSubSuite = null ; mCurrentTestCase = test.getTestCase ( ) ; mCurrentTestCase.run ( device , test ) ; }
Source:
public void testNewConstructors_Success ( ) throws java.lang.Exception { java.security.SecureRandom sr1 = new java.security.SecureRandom ( ) ; assertNotNull ( sr1 ) ; assertNotNull ( sr1.getProvider ( ) ) ; assertEquals ( libcore.java.security.SecureRandomTest.EXPECTED_PROVIDER , sr1.getProvider ( ) . getClass ( ) . getName ( ) ) ; test_SecureRandom ( sr1 ) ; java.security.SecureRandom sr2 = new java.security.SecureRandom ( libcore.java.security.SecureRandomTest.STATIC_SEED_BYTES ) ; assertEquals ( libcore.java.security.SecureRandomTest.EXPECTED_PROVIDER , sr2.getProvider ( ) . getClass ( ) . getName ( ) ) ; test_SecureRandom ( sr2 ) ; }

Target:
public void testNewConstructors_Success ( ) throws java.lang.Exception { java.security.SecureRandom sr1 = new java.security.SecureRandom ( ) ; assertNotNull ( sr1.getProvider ( ) ) ; assertEquals ( libcore.java.security.SecureRandomTest.EXPECTED_PROVIDER , sr1.getProvider ( ) . getClass ( ) . getName ( ) ) ; test_SecureRandom ( sr1 ) ; java.security.SecureRandom sr2 = new java.security.SecureRandom ( libcore.java.security.SecureRandomTest.STATIC_SEED_BYTES ) ; assertEquals ( libcore.java.security.SecureRandomTest.EXPECTED_PROVIDER , sr2.getProvider ( ) . getClass ( ) . getName ( ) ) ; test_SecureRandom ( sr2 ) ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeLong ( mNetworkCapabilities ) ; dest.writeLong ( mTransportTypes ) ; dest.writeInt ( mLinkUpBandwidthKbps ) ; dest.writeInt ( mLinkDownBandwidthKbps ) ; dest.writeParcelable ( ( ( android.os.Parcelable ) ( mNetworkSpecifier ) ) , flags ) ; dest.writeInt ( mSignalStrength ) ; dest.writeArraySet ( new android.util.ArraySet ( mUids ) ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeLong ( mNetworkCapabilities ) ; dest.writeLong ( mTransportTypes ) ; dest.writeInt ( mLinkUpBandwidthKbps ) ; dest.writeInt ( mLinkDownBandwidthKbps ) ; dest.writeParcelable ( ( ( android.os.Parcelable ) ( mNetworkSpecifier ) ) , flags ) ; dest.writeInt ( mSignalStrength ) ; dest.writeArraySet ( mUids ) ; }
Source:
protected < U extends com.android.sched.item.Component > void runWithLog ( @ javax.annotation.Nonnull com.android.sched.schedulable.RunnableSchedulable < U > runner , @ javax.annotation.Nonnull U data ) throws java.lang.Exception { com.android.sched.scheduler.ManagedSchedulable managedSchedulable = schedulableManager.getManagedSchedulable ( runner.getClass ( ) ) ; java.util.Stack < com.android.sched.scheduler.ScheduleInstance.ElementStack > visitStack = com.android.sched.scheduler.ScheduleInstance.tlsVisitStack.get ( ) ; visitStack.push ( new com.android.sched.scheduler.ScheduleInstance.ElementStack ( features , managedSchedulable ) ) ; com.android.sched.util.log.Event event = logAndTrace ( runner , managedSchedulable ) ; try { runner.run ( data ) ; } finally { event.end ( ) ; } visitStack.pop ( ) ; }

Target:
protected < U extends com.android.sched.item.Component > void runWithLog ( @ javax.annotation.Nonnull com.android.sched.schedulable.RunnableSchedulable < U > runner , @ javax.annotation.Nonnull U data ) throws java.lang.Exception { com.android.sched.scheduler.ManagedSchedulable managedSchedulable = schedulableManager.getManagedSchedulable ( runner.getClass ( ) ) ; java.util.Stack < com.android.sched.scheduler.ScheduleInstance.ElementStack > visitStack = com.android.sched.scheduler.ScheduleInstance.tlsVisitStack.get ( ) ; visitStack.push ( new com.android.sched.scheduler.ScheduleInstance.ElementStack ( features , managedSchedulable ) ) ; com.android.sched.util.log.Event event = logAndTrace ( runner , managedSchedulable , data ) ; try { runner.run ( data ) ; } finally { event.end ( ) ; } visitStack.pop ( ) ; }
Source:
public void run ( ) { try { if ( ! serverClientMode ) { server.setSoTimeout ( ( 1 * 1000 ) ) ; } server.setUseClientMode ( serverClientMode ) ; server.startHandshake ( ) ; } catch ( javax.net.ssl.SSLHandshakeException e ) { sslHandshakeException [ 0 ] = e ; } catch ( java.net.SocketTimeoutException e ) { socketTimeoutException [ 0 ] = e ; } catch ( java.lang.RuntimeException e ) { throw e ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public java.io.IOException call ( ) throws java.lang.Exception { try { if ( ! serverClientMode ) { server.setSoTimeout ( ( 1 * 1000 ) ) ; } server.setUseClientMode ( serverClientMode ) ; server.startHandshake ( ) ; return null ; } catch ( javax.net.ssl.SSLHandshakeException e ) { return e ; } catch ( java.net.SocketTimeoutException e ) { return e ; } }
Source:
public java.util.Collection < java.io.File > doCall ( java.lang.Object it ) { java.util.List < java.io.File > proguardFiles = variantConfig.getProguardFiles ( true , java.util.Collections.singletonList ( scope.getGlobalScope ( ) . getExtension ( ) . getDefaultProguardFile ( TaskManager.DEFAULT_PROGUARD_CONFIG_FILE ) ) ) ; proguardFiles.add ( variantOutputData.processResourcesTask.getProguardOutputFile ( ) ) ; return proguardFiles ; }

Target:
public java.util.Collection < java.io.File > doCall ( java.lang.Object it ) { java.util.List < java.io.File > proguardFiles = variantConfig.getProguardFiles ( true , java.util.Collections.singletonList ( getDefaultProguardFile ( TaskManager.DEFAULT_PROGUARD_CONFIG_FILE ) ) ) ; proguardFiles.add ( variantOutputData.processResourcesTask.getProguardOutputFile ( ) ) ; return proguardFiles ; }
Source:
public void canBeTetheredAsUsb ( ) throws java.lang.Exception { initStateMachine ( android.net.ConnectivityManager.TETHERING_USB ) ; dispatchCommand ( TetherInterfaceStateMachine.CMD_TETHER_REQUESTED ) ; org.mockito.InOrder inOrder = org.mockito.Mockito.inOrder ( mTetherHelper , mNMService ) ; inOrder.verify ( mNMService ) . getInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ; inOrder.verify ( mNMService ) . setInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mInterfaceConfiguration ) ; inOrder.verify ( mNMService ) . tetherInterface ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ; inOrder.verify ( mTetherHelper ) . notifyInterfaceStateChange ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mTestedSm , com.android.server.connectivity.tethering.IControlsTethering.STATE_TETHERED , android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNMService , mStatsService , mTetherHelper ) ; }

Target:
public void canBeTetheredAsUsb ( ) throws java.lang.Exception { initStateMachine ( android.net.ConnectivityManager.TETHERING_USB ) ; dispatchCommand ( TetherInterfaceStateMachine.CMD_TETHER_REQUESTED , com.android.server.connectivity.tethering.IControlsTethering.STATE_TETHERED ) ; org.mockito.InOrder inOrder = org.mockito.Mockito.inOrder ( mTetherHelper , mNMService ) ; inOrder.verify ( mNMService ) . getInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ; inOrder.verify ( mNMService ) . setInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mInterfaceConfiguration ) ; inOrder.verify ( mNMService ) . tetherInterface ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ; inOrder.verify ( mTetherHelper ) . notifyInterfaceStateChange ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mTestedSm , com.android.server.connectivity.tethering.IControlsTethering.STATE_TETHERED , android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNMService , mStatsService , mTetherHelper ) ; }
Source:
public void loadComponentsInApMode ( ) throws java.lang.Exception { when ( mWifiNative.startHal ( anyBoolean ( ) ) ) . thenReturn ( true ) ; mWsm.setHostApRunning ( new android.net.wifi.WifiConfiguration ( ) , true ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( "SoftApState" , getCurrentState ( ) . getName ( ) ) ; verify ( mWifiNative ) . startHal ( eq ( false ) ) ; verify ( mSoftApManager ) . start ( ) ; }

Target:
public void loadComponentsInApMode ( ) throws java.lang.Exception { mWsm.setHostApRunning ( new android.net.wifi.WifiConfiguration ( ) , true ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( "SoftApState" , getCurrentState ( ) . getName ( ) ) ; verify ( mSoftApManager ) . start ( ) ; }
Source:
protected void computeFields ( ) { java.util.TimeZone timeZone = getTimeZone ( ) ; int dstOffset = ( timeZone.inDaylightTime ( new java.util.Date ( time ) ) ) ? timeZone.getDSTSavings ( ) : 0 ; int zoneOffset = timeZone.getRawOffset ( ) ; fields [ java.util.Calendar.DST_OFFSET ] = dstOffset ; fields [ java.util.Calendar.ZONE_OFFSET ] = zoneOffset ; fullFieldsCalc ( zoneOffset ) ; for ( int i = 0 ; i < ( java.util.Calendar.FIELD_COUNT ) ; i ++ ) { isSet [ i ] = true ; } }

Target:
protected void computeFields ( ) { java.util.TimeZone timeZone = getTimeZone ( ) ; int dstOffset = ( timeZone.inDaylightTime ( new java.util.Date ( time ) ) ) ? timeZone.getDSTSavings ( ) : 0 ; int zoneOffset = timeZone.getRawOffset ( ) ; fields [ java.util.Calendar.DST_OFFSET ] = dstOffset ; fields [ java.util.Calendar.ZONE_OFFSET ] = zoneOffset ; fullFieldsCalc ( ) ; for ( int i = 0 ; i < ( java.util.Calendar.FIELD_COUNT ) ; i ++ ) { isSet [ i ] = true ; } }
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 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!" ) ; } stopSelf ( startId ) ; } } }
Source:
public void test_EVP_CipherInit_ex_Success ( ) throws java.lang.Exception { final int ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CIPHER_CTX_new ( ) ; try { final int evpCipher = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_get_cipherbyname ( "aes-128-ecb" ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CipherInit_ex ( ctx , evpCipher , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.AES_128_KEY , null , true ) ; } finally { org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CIPHER_CTX_cleanup ( ctx ) ; } }

Target:
public void test_EVP_CipherInit_ex_Success ( ) throws java.lang.Exception { final long ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CIPHER_CTX_new ( ) ; try { final long evpCipher = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_get_cipherbyname ( "aes-128-ecb" ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CipherInit_ex ( ctx , evpCipher , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.AES_128_KEY , null , true ) ; } finally { org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CIPHER_CTX_cleanup ( ctx ) ; } }
Source:
public void handlePackagesChanged ( ) { final int oldItemCount = getCount ( ) ; rebuildList ( ) ; notifyDataSetChanged ( ) ; if ( ( mList.size ( ) ) <= 0 ) { finish ( ) ; } final int newItemCount = getCount ( ) ; if ( newItemCount != oldItemCount ) { resizeGrid ( ) ; } }

Target:
public void handlePackagesChanged ( ) { final int oldItemCount = getCount ( ) ; rebuildList ( ) ; notifyDataSetChanged ( ) ; final int newItemCount = getCount ( ) ; if ( newItemCount == 0 ) { finish ( ) ; } else if ( newItemCount != oldItemCount ) { resizeGrid ( ) ; } }
Source:
public int compareTo ( com.ibm.icu.text.DateTimePatternGenerator.DateTimeMatcher that ) { for ( int i = 0 ; i < ( original.length ) ; ++ i ) { int comp = original [ i ] . compareTo ( that.original [ i ] ) ; if ( comp != 0 ) return - comp ; } return 0 ; }

Target:
public int compareTo ( com.ibm.icu.text.DateTimePatternGenerator.DateTimeMatcher that ) { int result = original.compareTo ( that.original ) ; return result > 0 ? - 1 : result < 0 ? 1 : 0 ; }
Source:
public void run ( org.eclipse.jface.action.IAction action ) { java.util.List < org.eclipse.core.resources.IProject > projects = com.android.ide.eclipse.adt.internal.lint.RunLintAction.getProjects ( mSelection , true ) ; if ( ! ( projects.isEmpty ( ) ) ) { com.android.ide.eclipse.adt.internal.lint.EclipseLintRunner.startLint ( projects , null , null , false , true ) ; } else { org.eclipse.jface.dialogs.MessageDialog.openWarning ( com.android.ide.eclipse.adt.AdtPlugin.getDisplay ( ) . getActiveShell ( ) , "Lint" , "Could not run Lint: Select a project first." ) ; } }

Target:
public void run ( org.eclipse.jface.action.IAction action ) { java.util.List < org.eclipse.core.resources.IProject > projects = com.android.ide.eclipse.adt.internal.lint.RunLintAction.getProjects ( mSelection , true ) ; if ( ! ( projects.isEmpty ( ) ) ) { com.android.ide.eclipse.adt.internal.lint.EclipseLintRunner.startLint ( projects , null , null , false , true ) ; } }
Source:
protected void finalize ( ) { debugLog ( ( "finalize() - clean up object " + ( this ) ) ) ; cleanup ( ) ; if ( com.android.bluetooth.btservice.AdapterService.TRACE_REF ) { synchronized ( com.android.bluetooth.btservice.AdapterService.class ) { ( com.android.bluetooth.btservice.AdapterService.sRefCount ) -- ; debugLog ( ( "finalize() - REFCOUNT: FINALIZED. INSTANCE_COUNT= " + ( com.android.bluetooth.btservice.AdapterService.sRefCount ) ) ) ; } } }

Target:
public void finalize ( ) { if ( com.android.bluetooth.btservice.AdapterService.TRACE_REF ) { synchronized ( com.android.bluetooth.btservice.AdapterService.class ) { ( com.android.bluetooth.btservice.AdapterService.sRefCount ) -- ; debugLog ( ( "finalize() - REFCOUNT: FINALIZED. INSTANCE_COUNT= " + ( com.android.bluetooth.btservice.AdapterService.sRefCount ) ) ) ; } } }
Source:
public void testSupportsScreen ( ) { com.android.sdklib.xml.ManifestData.SupportsScreens supportsScreens = mManifestTestApp.getSupportsScreens ( ) ; assertEquals ( java.lang.Boolean.TRUE , supportsScreens.getAnyDensity ( ) ) ; assertEquals ( java.lang.Boolean.TRUE , supportsScreens.getResizeable ( ) ) ; assertEquals ( java.lang.Boolean.TRUE , supportsScreens.getSmallScreens ( ) ) ; assertEquals ( java.lang.Boolean.TRUE , supportsScreens.getNormalScreens ( ) ) ; assertEquals ( java.lang.Boolean.TRUE , supportsScreens.getLargeScreens ( ) ) ; }

Target:
public void testSupportsScreen ( ) { com.android.sdklib.xml.ManifestData.SupportsScreens supportsScreens = mManifestTestApp.getSupportsScreens ( ) ; assertNotNull ( supportsScreens ) ; assertEquals ( java.lang.Boolean.TRUE , supportsScreens.getAnyDensity ( ) ) ; assertEquals ( java.lang.Boolean.TRUE , supportsScreens.getResizeable ( ) ) ; assertEquals ( java.lang.Boolean.TRUE , supportsScreens.getSmallScreens ( ) ) ; assertEquals ( java.lang.Boolean.TRUE , supportsScreens.getNormalScreens ( ) ) ; assertEquals ( java.lang.Boolean.TRUE , supportsScreens.getLargeScreens ( ) ) ; }
Source:
public java.util.Properties getProjectProperties ( ) throws java.io.IOException { if ( ( mProjectProperties ) == null ) { assert isAndroidProject ( ) ; java.io.File file = getProjectPropertiesFile ( ) ; if ( file.exists ( ) ) { mProjectProperties = com.android.tools.gradle.eclipse.GradleImport.getProperties ( file ) ; } else { mImporter.reportError ( this , mDir , ( "No project.project file found in " + ( mDir.getPath ( ) ) ) ) ; return null ; } } return mProjectProperties ; }

Target:
public java.util.Properties getProjectProperties ( ) throws java.io.IOException { if ( ( mProjectProperties ) == null ) { assert isAndroidProject ( ) ; java.io.File file = getProjectPropertiesFile ( ) ; if ( file.exists ( ) ) { mProjectProperties = com.android.tools.gradle.eclipse.GradleImport.getProperties ( file ) ; } else { mProjectProperties = new java.util.Properties ( ) ; } } return mProjectProperties ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( 50 ) ; if ( ( sourceFile ) != null ) { sb.append ( sourceFile.toHuman ( ) ) ; sb.append ( ":" ) ; } if ( ( line ) >= 0 ) { sb.append ( line ) ; } sb.append ( '@' ) ; if ( ( address ) < 0 ) { sb.append ( "????" ) ; } else { sb.append ( com.android.dx.util.Hex.u2 ( address ) ) ; } return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 50 ) ; if ( ( sourceFile ) != null ) { sb.append ( sourceFile.toHuman ( ) ) ; sb.append ( ":" ) ; } if ( ( line ) >= 0 ) { sb.append ( line ) ; } sb.append ( '@' ) ; if ( ( address ) < 0 ) { sb.append ( "????" ) ; } else { sb.append ( com.android.dx.util.Hex.u2 ( address ) ) ; } return sb.toString ( ) ; }
Source:
public static java.lang.Long getLong ( java.lang.String nm , java.lang.Long val ) { java.lang.String v = null ; try { v = java.lang.System.getProperty ( nm ) ; } catch ( java.lang.IllegalArgumentException e ) { } catch ( java.lang.NullPointerException e ) { } if ( v != null ) { try { return java.lang.Long.decode ( v ) ; } catch ( java.lang.NumberFormatException e ) { } } return val ; }

Target:
public static java.lang.Long getLong ( java.lang.String nm , java.lang.Long val ) { java.lang.String v = null ; try { v = java.lang.System.getProperty ( nm ) ; } catch ( java.lang.IllegalArgumentException | java.lang.NullPointerException e ) { } if ( v != null ) { try { return java.lang.Long.decode ( v ) ; } catch ( java.lang.NumberFormatException e ) { } } return val ; }
Source:
public int getBit ( int i ) { if ( ( i < 0 ) || ( i > ( ( len ) - 1 ) ) ) { return 0 ; } return ( ( value [ ( i > > > 5 ) ] ) & ( org.bouncycastle.pqc.math.linearalgebra.GF2Polynomial.bitMask [ ( i & 31 ) ] ) ) != 0 ? 1 : 0 ; }

Target:
public int getBit ( int i ) { if ( i < 0 ) { throw new java.lang.RuntimeException ( ) ; } if ( i > ( ( len ) - 1 ) ) { return 0 ; } return ( ( value [ ( i > > > 5 ) ] ) & ( org.bouncycastle.pqc.math.linearalgebra.GF2Polynomial.bitMask [ ( i & 31 ) ] ) ) != 0 ? 1 : 0 ; }
Source:
public int getDims ( ) { if ( ( dims ) == 0 ) { dims = 1 ; if ( ( elementType ) instanceof com.android.jack.ir.ast.JArrayType ) { dims += ( ( com.android.jack.ir.ast.JArrayType ) ( elementType ) ) . getDims ( ) ; } } return dims ; }

Target:
public int getDims ( ) { int dims = this . dims ; if ( dims == 0 ) { dims = 1 ; if ( ( elementType ) instanceof com.android.jack.ir.ast.JArrayType ) { dims += ( ( com.android.jack.ir.ast.JArrayType ) ( elementType ) ) . getDims ( ) ; } this . dims = dims ; } return dims ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; testFile = java.io.File.createTempFile ( "testfile" , null ) ; testDir = new java.io.File ( ( ( java.lang.System.getProperty ( "java.io.tmpdir" ) ) + "/temp" ) ) ; if ( ! ( testDir.exists ( ) ) ) { testDir.mkdir ( ) ; } root = java.lang.System.getProperty ( "user.name" ) . equals ( "root" ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; testFile = java.io.File.createTempFile ( "testfile" , null ) ; testDir = new java.io.File ( ( ( java.lang.System.getProperty ( "java.io.tmpdir" ) ) + "/temp" ) ) ; if ( ! ( testDir.exists ( ) ) ) { testDir.mkdir ( ) ; } root = false ; }
Source:
private static void createVoicemailChannelForAccount ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.NonNull android.telecom.PhoneAccountHandle handle ) { android.telecom.PhoneAccount phoneAccount = context.getSystemService ( android.telecom.TelecomManager.class ) . getPhoneAccount ( handle ) ; android.app.NotificationChannel channel = com.android.dialer.notification.VoicemailChannelUtils.newChannel ( context , com.android.dialer.notification.VoicemailChannelUtils.getChannelIdForAccount ( handle ) , phoneAccount.getLabel ( ) ) ; com.android.dialer.notification.VoicemailChannelUtils.migrateVoicemailSoundSettings ( context , channel , handle ) ; context.getSystemService ( android.app.NotificationManager.class ) . createNotificationChannel ( channel ) ; }

Target:
private static void createVoicemailChannelForAccount ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.NonNull android.telecom.PhoneAccountHandle handle ) { android.telecom.PhoneAccount phoneAccount = context.getSystemService ( android.telecom.TelecomManager.class ) . getPhoneAccount ( handle ) ; if ( phoneAccount == null ) { return ; } android.app.NotificationChannel channel = com.android.dialer.notification.VoicemailChannelUtils.newChannel ( context , com.android.dialer.notification.VoicemailChannelUtils.getChannelIdForAccount ( handle ) , phoneAccount.getLabel ( ) ) ; com.android.dialer.notification.VoicemailChannelUtils.migrateVoicemailSoundSettings ( context , channel , handle ) ; context.getSystemService ( android.app.NotificationManager.class ) . createNotificationChannel ( channel ) ; }
Source:
public void onCallerInfoQueryComplete ( android.net.Uri queryHandle , com.android.internal.telephony.CallerInfo info ) { if ( ! ( java.util.Objects.equals ( queryHandle , handle ) ) ) { android.telecom.Log.w ( this , ( "CallerInfo query returned with " + "different handle." ) ) ; return ; } if ( ( info.contactDisplayPhotoUri ) == null ) { com.android.server.telecom.ui.CallInfo callInfo = callInfoFactory.makeCallInfo ( info , null , handle , date ) ; showMissedCallNotification ( callInfo , userHandle ) ; } }

Target:
public void onCallerInfoQueryComplete ( android.net.Uri queryHandle , com.android.internal.telephony.CallerInfo info ) { if ( ! ( java.util.Objects.equals ( queryHandle , handle ) ) ) { android.telecom.Log.w ( this , ( "CallerInfo query returned with " + "different handle." ) ) ; return ; } if ( ( info == null ) || ( ( info.contactDisplayPhotoUri ) == null ) ) { com.android.server.telecom.ui.CallInfo callInfo = callInfoFactory.makeCallInfo ( info , null , handle , date ) ; showMissedCallNotification ( callInfo , userHandle ) ; } }
Source:
private boolean needFullBuild ( ) { if ( ! ( options.isAutomaticFullRebuildEnabled ( ) ) ) { return false ; } com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; return ( ( ( incrementalInputLibrary ) == null ) || ( ! ( libraryDependencies.hasSameLibraryOnClasspath ( session.getLibraryDependencies ( ) ) ) ) ) || ( ! ( libraryDependencies.hasSameImportedLibrary ( session.getLibraryDependencies ( ) ) ) ) ; }

Target:
private boolean needFullBuild ( ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; return ( ( ( incrementalInputLibrary ) == null ) || ( ! ( libraryDependencies.hasSameLibraryOnClasspath ( session.getLibraryDependencies ( ) ) ) ) ) || ( ! ( libraryDependencies.hasSameImportedLibrary ( session.getLibraryDependencies ( ) ) ) ) ; }
Source:
private static int getSignatureAlgorithmContentDigestAlgorithm ( int sigAlgorithm ) { switch ( sigAlgorithm ) { case com.android.signapk.ApkSignerV2.SIGNATURE_RSA_PSS_WITH_SHA256 : case com.android.signapk.ApkSignerV2.SIGNATURE_RSA_PKCS1_V1_5_WITH_SHA256 : case com.android.signapk.ApkSignerV2.SIGNATURE_ECDSA_WITH_SHA256 : case com.android.signapk.ApkSignerV2.SIGNATURE_DSA_WITH_SHA256 : return com.android.signapk.ApkSignerV2.CONTENT_DIGEST_CHUNKED_SHA256 ; case com.android.signapk.ApkSignerV2.SIGNATURE_RSA_PSS_WITH_SHA512 : case com.android.signapk.ApkSignerV2.SIGNATURE_RSA_PKCS1_V1_5_WITH_SHA512 : case com.android.signapk.ApkSignerV2.SIGNATURE_ECDSA_WITH_SHA512 : case com.android.signapk.ApkSignerV2.SIGNATURE_DSA_WITH_SHA512 : return com.android.signapk.ApkSignerV2.CONTENT_DIGEST_CHUNKED_SHA512 ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown signature algorithm: 0x" + ( java.lang.Long.toHexString ( ( sigAlgorithm & - 1 ) ) ) ) ) ; } }

Target:
private static int getSignatureAlgorithmContentDigestAlgorithm ( int sigAlgorithm ) { switch ( sigAlgorithm ) { case com.android.signapk.ApkSignerV2.SIGNATURE_RSA_PSS_WITH_SHA256 : case com.android.signapk.ApkSignerV2.SIGNATURE_RSA_PKCS1_V1_5_WITH_SHA256 : case com.android.signapk.ApkSignerV2.SIGNATURE_ECDSA_WITH_SHA256 : case com.android.signapk.ApkSignerV2.SIGNATURE_DSA_WITH_SHA256 : return com.android.signapk.ApkSignerV2.CONTENT_DIGEST_CHUNKED_SHA256 ; case com.android.signapk.ApkSignerV2.SIGNATURE_RSA_PSS_WITH_SHA512 : case com.android.signapk.ApkSignerV2.SIGNATURE_RSA_PKCS1_V1_5_WITH_SHA512 : case com.android.signapk.ApkSignerV2.SIGNATURE_ECDSA_WITH_SHA512 : return com.android.signapk.ApkSignerV2.CONTENT_DIGEST_CHUNKED_SHA512 ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown signature algorithm: 0x" + ( java.lang.Long.toHexString ( ( sigAlgorithm & - 1 ) ) ) ) ) ; } }
Source:
private void checkGraphic ( java.lang.String baseName , com.android.assetstudiolib.GraphicGenerator.Shape shape , com.android.assetstudiolib.GraphicGenerator.Style style , boolean crop , int background , boolean isWebGraphic ) throws java.io.IOException { com.android.assetstudiolib.LauncherIconGenerator.LauncherOptions options = new com.android.assetstudiolib.LauncherIconGenerator.LauncherOptions ( ) ; options.shape = shape ; options.crop = crop ; options.style = style ; options.backgroundColor = background ; options.isWebGraphic = isWebGraphic ; com.android.assetstudiolib.LauncherIconGenerator generator = new com.android.assetstudiolib.LauncherIconGenerator ( ) ; checkGraphic ( ( 4 + ( isWebGraphic ? 1 : 0 ) ) , "launcher" , baseName , generator , options ) ; }

Target:
private void checkGraphic ( java.lang.String baseName , com.android.assetstudiolib.GraphicGenerator.Shape shape , com.android.assetstudiolib.GraphicGenerator.Style style , boolean crop , int background , boolean isWebGraphic ) throws java.io.IOException { com.android.assetstudiolib.LauncherIconGenerator.LauncherOptions options = new com.android.assetstudiolib.LauncherIconGenerator.LauncherOptions ( ) ; options.shape = shape ; options.crop = crop ; options.style = style ; options.backgroundColor = background ; options.isWebGraphic = isWebGraphic ; com.android.assetstudiolib.LauncherIconGenerator generator = new com.android.assetstudiolib.LauncherIconGenerator ( ) ; checkGraphic ( ( 5 + ( isWebGraphic ? 1 : 0 ) ) , "launcher" , baseName , generator , options ) ; }
Source:
public void dropAccept ( org.eclipse.swt.dnd.DropTargetEvent event ) { com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( "DEBUG" , "drop accept" ) ; if ( ( mLeaveTargetNode ) != null ) { mTargetNode = mLeaveTargetNode ; mFeedback = mLeaveFeedback ; mCurrentView = mLeaveView ; } mLeaveTargetNode = null ; mLeaveFeedback = null ; mLeaveView = null ; checkDataType ( event ) ; if ( ( event.detail ) != ( org.eclipse.swt.dnd.DND.DROP_NONE ) ) { processDropEvent ( event ) ; } else { clearDropInfo ( ) ; } }

Target:
public void dropAccept ( org.eclipse.swt.dnd.DropTargetEvent event ) { com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( "DEBUG" , "drop accept" ) ; checkDataType ( event ) ; if ( ( mLeaveTargetNode ) != null ) { mTargetNode = mLeaveTargetNode ; mFeedback = mLeaveFeedback ; mCurrentView = mLeaveView ; } if ( ( ( mLeaveTargetNode ) == null ) || ( ( event.detail ) == ( org.eclipse.swt.dnd.DND.DROP_NONE ) ) ) { clearDropInfo ( ) ; } mLeaveTargetNode = null ; mLeaveFeedback = null ; mLeaveView = null ; }
Source:
static void setBoolean ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , boolean value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertActualAndExpectedMatch ( exceptionThrown , expectFailure ) ; }

Target:
static void setBoolean ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , boolean value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }
Source:
protected com.android.ide.common.res2.ResourceFile createFileAndItems ( java.io.File sourceFolder , java.io.File file , com.android.utils.ILogger logger ) throws com.android.ide.common.res2.MergingException { com.android.ide.common.res2.ResourceSet.FolderData folderData = getFolderData ( file.getParentFile ( ) ) ; if ( folderData == null ) { return null ; } return com.android.ide.common.res2.ResourceSet.createResourceFile ( file , folderData , logger ) ; }

Target:
protected com.android.ide.common.res2.ResourceFile createFileAndItems ( java.io.File sourceFolder , java.io.File file , com.android.utils.ILogger logger ) throws com.android.ide.common.res2.MergingException { com.android.ide.common.res2.ResourceSet.FolderData folderData = getFolderData ( file.getParentFile ( ) ) ; if ( folderData == null ) { return null ; } return createResourceFile ( file , folderData , logger ) ; }
Source:
protected boolean getCompressionYTilde ( ) { org.bouncycastle.math.ec.ECFieldElement X = this . getRawXCoord ( ) ; if ( X.isZero ( ) ) { return false ; } org.bouncycastle.math.ec.ECFieldElement Y = this . getRawYCoord ( ) ; switch ( this . getCurveCoordinateSystem ( ) ) { case ECCurve.COORD_LAMBDA_AFFINE : case ECCurve.COORD_LAMBDA_PROJECTIVE : { return Y.subtract ( X ) . testBitZero ( ) ; } default : { return Y.divide ( X ) . testBitZero ( ) ; } } }

Target:
protected boolean getCompressionYTilde ( ) { org.bouncycastle.math.ec.ECFieldElement X = this . getRawXCoord ( ) ; if ( X.isZero ( ) ) { return false ; } org.bouncycastle.math.ec.ECFieldElement Y = this . getRawYCoord ( ) ; switch ( this . getCurveCoordinateSystem ( ) ) { case ECCurve.COORD_LAMBDA_AFFINE : case ECCurve.COORD_LAMBDA_PROJECTIVE : { return ( Y.testBitZero ( ) ) != ( X.testBitZero ( ) ) ; } default : { return Y.divide ( X ) . testBitZero ( ) ; } } }
Source:
private void disableArcIfExist ( ) { assertRunOnServiceThread ( ) ; android.hardware.hdmi.HdmiDeviceInfo avr = getAvrDeviceInfo ( ) ; if ( avr == null ) { return ; } removeAction ( com.android.server.hdmi.RequestShortAudioDescriptorAction.class ) ; com.android.server.hdmi.RequestShortAudioDescriptorAction.removeAudioFormat ( ) ; removeAction ( com.android.server.hdmi.RequestArcInitiationAction.class ) ; if ( ( ! ( hasAction ( com.android.server.hdmi.RequestArcTerminationAction.class ) ) ) && ( isArcEstablished ( ) ) ) { addAndStartAction ( new com.android.server.hdmi.RequestArcTerminationAction ( this , avr.getLogicalAddress ( ) ) ) ; } }

Target:
private void disableArcIfExist ( ) { assertRunOnServiceThread ( ) ; android.hardware.hdmi.HdmiDeviceInfo avr = getAvrDeviceInfo ( ) ; if ( avr == null ) { return ; } removeAction ( com.android.server.hdmi.RequestArcInitiationAction.class ) ; if ( ( ! ( hasAction ( com.android.server.hdmi.RequestArcTerminationAction.class ) ) ) && ( isArcEstablished ( ) ) ) { addAndStartAction ( new com.android.server.hdmi.RequestArcTerminationAction ( this , avr.getLogicalAddress ( ) ) ) ; } }
Source:
public int enableFirmwareRoaming ( int state ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "enableFirmwareRoaming: state =" + state ) ) ; if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.enableFirmwareRoaming ( state ) ; } else { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "enableFirmwareRoaming not supported" ) ; return - 1 ; } }

Target:
public int enableFirmwareRoaming ( int state ) { return mWifiVendorHal.enableFirmwareRoaming ( state ) ; }
Source:
public java.nio.CharBuffer asCharBuffer ( ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } int off = this . position ( ) ; int lim = this . limit ( ) ; assert off <= lim ; int rem = ( off <= lim ) ? lim - off : 0 ; int size = rem > > 1 ; return ( ( java.nio.CharBuffer ) ( new java.nio.ByteBufferAsCharBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ) ) ; }

Target:
public final java.nio.CharBuffer asCharBuffer ( ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } int off = this . position ( ) ; int lim = this . limit ( ) ; assert off <= lim ; int rem = ( off <= lim ) ? lim - off : 0 ; int size = rem > > 1 ; return new java.nio.ByteBufferAsCharBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) { com.android.sched.util.log.Tracer tracer = com.android.sched.util.log.TracerFactory.getTracer ( ) ; com.android.sched.util.log.Event event = tracer.start ( JackEventType.DEX_MERGER ) ; com.android.jack.backend.dex.DexWritingTool writingTool = com.android.sched.util.config.ThreadConfig.get ( com.android.jack.backend.dex.DexFileWriter.DEX_WRITING_POLICY ) ; try { writingTool.write ( outputVDir ) ; } catch ( com.android.jack.backend.dex.DexWritingException e ) { session.getReporter ( ) . report ( Severity.FATAL , e ) ; throw new com.android.jack.JackAbortException ( e ) ; } finally { event.end ( ) ; } }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) { com.android.jack.backend.dex.DexWritingTool writingTool = com.android.sched.util.config.ThreadConfig.get ( com.android.jack.backend.dex.DexFileWriter.DEX_WRITING_POLICY ) ; try { writingTool.write ( outputVDir ) ; } catch ( com.android.jack.backend.dex.DexWritingException e ) { session.getReporter ( ) . report ( Severity.FATAL , e ) ; throw new com.android.jack.JackAbortException ( e ) ; } }
Source:
public boolean onKeyUp ( final int keyCode , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyUp ( keyCode , event ) ; } } ) ; return ret ; } return mAwContents.getAwContentsProxy ( ) . onKeyUp ( keyCode , event ) ; }

Target:
public boolean onKeyUp ( final int keyCode , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyUp ( keyCode , event ) ; } } ) ; return ret ; } return mAwContents.onKeyUp ( keyCode , event ) ; }
Source:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object obj ) { if ( obj == ( this ) ) { return true ; } else if ( obj instanceof com.google.common.base.Equivalence.Wrapper ) { com.google.common.base.Equivalence.Wrapper < ? > that = ( ( com.google.common.base.Equivalence.Wrapper < ? > ) ( obj ) ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) com.google.common.base.Equivalence < java.lang.Object > equivalence = ( ( com.google.common.base.Equivalence < java.lang.Object > ) ( this . equivalence ) ) ; return ( equivalence.equals ( that.equivalence ) ) && ( equivalence.equivalent ( this . reference , that.reference ) ) ; } else { return false ; } }

Target:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object obj ) { if ( obj == ( this ) ) { return true ; } if ( obj instanceof com.google.common.base.Equivalence.Wrapper ) { com.google.common.base.Equivalence.Wrapper < ? > that = ( ( com.google.common.base.Equivalence.Wrapper < ? > ) ( obj ) ) ; if ( this . equivalence.equals ( that.equivalence ) ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) com.google.common.base.Equivalence < java.lang.Object > equivalence = ( ( com.google.common.base.Equivalence < java.lang.Object > ) ( this . equivalence ) ) ; return equivalence.equivalent ( this . reference , that.reference ) ; } } return false ; }
Source:
public void test_ConstructorS ( ) { java.util.Timer t = null ; try { t = new java.util.Timer ( "test_ConstructorSThread" ) ; tests.api.java.util.TimerTest.TimerTestTask testTask = new tests.api.java.util.TimerTest.TimerTestTask ( ) ; t.schedule ( testTask , 200 ) ; awaitRun ( testTask ) ; t.cancel ( ) ; } finally { if ( t != null ) t.cancel ( ) ; } try { new java.util.Timer ( null ) ; fail ( "NullPointerException expected" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void test_ConstructorS ( ) throws java.lang.Exception { java.util.Timer t = null ; try { t = new java.util.Timer ( "test_ConstructorSThread" ) ; tests.api.java.util.TimerTest.TimerTestTask testTask = new tests.api.java.util.TimerTest.TimerTestTask ( ) ; t.schedule ( testTask , 200 ) ; awaitRun ( testTask ) ; t.cancel ( ) ; } finally { if ( t != null ) t.cancel ( ) ; } try { new java.util.Timer ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.reportError ( device , error ) ; }

Target:
public boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; } com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.reportError ( device , error ) ; }
Source:
public void testEvictingQueue_canAddItems ( ) { com.android.bluetooth.avrcp.EvictingQueue < java.lang.Integer > e = new com.android.bluetooth.avrcp.EvictingQueue < java.lang.Integer > ( 10 ) ; e.add ( 1 ) ; assertEquals ( ( ( long ) ( e.size ( ) ) ) , ( ( long ) ( 1 ) ) ) ; }

Target:
public void testEvictingQueue_canAddItems ( ) { com.android.bluetooth.avrcp.EvictingQueue < java.lang.Integer > e = new com.android.bluetooth.avrcp.EvictingQueue < java.lang.Integer > ( 10 ) ; e.add ( 1 ) ; org.junit.Assert.assertEquals ( ( ( long ) ( e.size ( ) ) ) , ( ( long ) ( 1 ) ) ) ; }
Source:
static void flattenPackageHierarchy ( @ javax.annotation.Nonnull com.android.jack.shrob.spec.Flags flags , @ javax.annotation.CheckForNull java.lang.String newPackage ) { if ( newPackage == null ) { newPackage = "" ; } else { newPackage = com.android.jack.util.NamingTools.getBinaryName ( newPackage ) ; } flags.setPackageForFlatHierarchy ( newPackage ) ; flags.addKeepPackageNames ( com.android.jack.shrob.proguard.GrammarActions.name ( newPackage ) , false ) ; }

Target:
static void flattenPackageHierarchy ( @ javax.annotation.Nonnull com.android.jack.shrob.spec.Flags flags , @ javax.annotation.CheckForNull java.lang.String newPackage ) { if ( newPackage == null ) { newPackage = "" ; } flags.setPackageForFlatHierarchy ( newPackage ) ; flags.addKeepPackageNames ( com.android.jack.shrob.proguard.GrammarActions.name ( newPackage ) , false ) ; }
Source:
public void run ( ) { final org.eclipse.swt.graphics.Image image = loadCapture ( viewNode ) ; if ( image != null ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.android.hierarchyviewerlib.ui.CaptureDisplay.show ( shell , viewNode , image ) ; } } ) ; } }

Target:
public void run ( ) { loadCapture ( viewNode ) ; }
Source:
public void openFile ( org.eclipse.core.resources.IFile file ) { mEditedFile = file ; mConfigComposite.setFile ( mEditedFile ) ; if ( ( mReloadListener ) == null ) { mReloadListener = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.ReloadListener ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.getMonitor ( ) . addListener ( mEditedFile.getProject ( ) , mReloadListener ) ; } if ( ( mRulesEngine ) == null ) { mRulesEngine = new com.android.ide.eclipse.adt.internal.editors.layout.gre.RulesEngine ( mEditedFile.getProject ( ) ) ; if ( ( mCanvasViewer ) != null ) { mCanvasViewer.getCanvas ( ) . setRulesEngine ( mRulesEngine ) ; } } }

Target:
public void openFile ( org.eclipse.core.resources.IFile file ) { mEditedFile = file ; mConfigComposite.setFile ( mEditedFile ) ; if ( ( mReloadListener ) == null ) { mReloadListener = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.ReloadListener ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.getMonitor ( ) . addListener ( mEditedFile.getProject ( ) , mReloadListener ) ; } if ( ( mRulesEngine ) == null ) { mRulesEngine = new com.android.ide.eclipse.adt.internal.editors.layout.gre.RulesEngine ( this , mEditedFile.getProject ( ) ) ; if ( ( mCanvasViewer ) != null ) { mCanvasViewer.getCanvas ( ) . setRulesEngine ( mRulesEngine ) ; } } }
Source:
public boolean processMessage ( android.os.Message msg ) { if ( ( super . processMessage ( msg ) ) == ( HANDLED ) ) { return HANDLED ; } switch ( msg.what ) { case com.android.server.telecom.CallAudioRouteStateMachine.CONNECT_WIRED_HEADSET : sendInternalMessage ( com.android.server.telecom.CallAudioRouteStateMachine.SWITCH_HEADSET ) ; return HANDLED ; case com.android.server.telecom.CallAudioRouteStateMachine.CONNECT_BLUETOOTH : return HANDLED ; case com.android.server.telecom.CallAudioRouteStateMachine.DISCONNECT_BLUETOOTH : sendInternalMessage ( com.android.server.telecom.CallAudioRouteStateMachine.SWITCH_BASELINE_ROUTE , com.android.server.telecom.CallAudioRouteStateMachine.NO_INCLUDE_BLUETOOTH_IN_BASELINE ) ; mWasOnSpeaker = false ; return HANDLED ; case com.android.server.telecom.CallAudioRouteStateMachine.DISCONNECT_WIRED_HEADSET : updateSystemAudioState ( ) ; return HANDLED ; case com.android.server.telecom.CallAudioRouteStateMachine.CONNECT_DOCK : return HANDLED ; case com.android.server.telecom.CallAudioRouteStateMachine.DISCONNECT_DOCK : return HANDLED ; default : return NOT_HANDLED ; } }

Target:
public boolean processMessage ( android.os.Message msg ) { if ( ( super . processMessage ( msg ) ) == ( HANDLED ) ) { return HANDLED ; } switch ( msg.what ) { case com.android.server.telecom.CallAudioRouteStateMachine.CONNECT_WIRED_HEADSET : sendInternalMessage ( com.android.server.telecom.CallAudioRouteStateMachine.SWITCH_HEADSET ) ; return HANDLED ; case com.android.server.telecom.CallAudioRouteStateMachine.CONNECT_BLUETOOTH : return HANDLED ; case com.android.server.telecom.CallAudioRouteStateMachine.DISCONNECT_BLUETOOTH : sendInternalMessage ( com.android.server.telecom.CallAudioRouteStateMachine.SWITCH_BASELINE_ROUTE , com.android.server.telecom.CallAudioRouteStateMachine.NO_INCLUDE_BLUETOOTH_IN_BASELINE ) ; mWasOnSpeaker = false ; return HANDLED ; case com.android.server.telecom.CallAudioRouteStateMachine.DISCONNECT_WIRED_HEADSET : return HANDLED ; case com.android.server.telecom.CallAudioRouteStateMachine.CONNECT_DOCK : return HANDLED ; case com.android.server.telecom.CallAudioRouteStateMachine.DISCONNECT_DOCK : return HANDLED ; default : return NOT_HANDLED ; } }
Source:
private void initLayout ( ) { findViewById ( R.id.fab ) . setOnClickListener ( this ) ; com.android.dialer.main.impl.BottomNavBar navBar = findViewById ( R.id.bottom_nav_bar ) ; navBar.setOnTabSelectedListener ( new com.android.dialer.main.impl.MainActivity.MainBottomNavBarBottomNavTabListener ( ) ) ; navBar.selectTab ( BottomNavBar.TabIndex.SPEED_DIAL ) ; android.support.v7.widget.Toolbar toolbar = findViewById ( R.id.toolbar ) ; toolbar.setPopupTheme ( android.R.style.Theme_Material_Light ) ; setSupportActionBar ( toolbar ) ; }

Target:
private void initLayout ( ) { findViewById ( R.id.fab ) . setOnClickListener ( this ) ; setSupportActionBar ( findViewById ( R.id.toolbar ) ) ; com.android.dialer.main.impl.BottomNavBar navBar = findViewById ( R.id.bottom_nav_bar ) ; navBar.setOnTabSelectedListener ( new com.android.dialer.main.impl.MainActivity.MainBottomNavBarBottomNavTabListener ( ) ) ; navBar.selectTab ( BottomNavBar.TabIndex.SPEED_DIAL ) ; }
Source:
public com.google.common.hash.Hasher putBytes ( byte [ ] bytes , int off , int len ) { checkNotDone ( ) ; com.google.common.base.Preconditions.checkPositionIndexes ( off , ( off + len ) , bytes.length ) ; digest.update ( bytes , off , len ) ; return this ; }

Target:
protected void update ( byte [ ] b , int off , int len ) { checkNotDone ( ) ; digest.update ( b , off , len ) ; }
Source:
com.android.build.gradle.tasks.List < com.android.build.gradle.tasks.File > getOutputFiles ( ) { com.android.build.gradle.tasks.List < com.android.build.gradle.tasks.File > outputFiles = new com.android.build.gradle.tasks.ArrayList ( ) ; for ( java.lang.String split : getSplits ( ) ) { outputFiles.add ( getOutputFileForSplit ( split ) ) ; } return outputFiles ; }

Target:
public java.util.List < java.io.File > getOutputFiles ( ) { java.util.List < java.io.File > outputFiles = new java.util.ArrayList < java.io.File > ( ) ; for ( java.lang.String split : getSplits ( ) ) { outputFiles.add ( getOutputFileForSplit ( split ) ) ; } return outputFiles ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( com.android.internal.telephony.CarrierSignalAgent.DBG ) log ( ( "CarrierSignalAgent receiver action: " + action ) ) ; if ( action.equals ( CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED ) ) { if ( ( IccCardConstants.State.ABSENT ) == ( mPhone.getIccCard ( ) . getState ( ) ) ) { notifyCarrierSignalReceivers ( new android.content.Intent ( TelephonyIntents.ACTION_CARRIER_SIGNAL_RESET ) ) ; } loadCarrierConfig ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( com.android.internal.telephony.CarrierSignalAgent.DBG ) log ( ( "CarrierSignalAgent receiver action: " + action ) ) ; if ( action.equals ( CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED ) ) { if ( ( ( mPhone.getIccCard ( ) ) != null ) && ( ( IccCardConstants.State.ABSENT ) == ( mPhone.getIccCard ( ) . getState ( ) ) ) ) { notifyCarrierSignalReceivers ( new android.content.Intent ( TelephonyIntents.ACTION_CARRIER_SIGNAL_RESET ) ) ; } loadCarrierConfig ( ) ; } }