auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void assertNothingIsPending ( ) throws java.lang.Exception { final android.autofillservice.cts.MultipleExceptionsCatcher catcher = new android.autofillservice.cts.MultipleExceptionsCatcher ( ) . run ( ( ) -> android.autofillservice.cts.AutoFillServiceTestCase.sReplier.assertNumberUnhandledFillRequests ( 0 ) ) . run ( ( ) -> android.autofillservice.cts.AutoFillServiceTestCase.sReplier.assertNumberUnhandledSaveRequests ( 0 ) ) ; final java.util.List < java.lang.Exception > replierExceptions = android.autofillservice.cts.AutoFillServiceTestCase.sReplier.getExceptions ( ) ; if ( replierExceptions != null ) { for ( java.lang.Exception e : replierExceptions ) { catcher.add ( e ) ; } } catcher.throwIfAny ( ) ; }

Target:
public void assertNoPendingRequests ( ) { android.autofillservice.cts.AutoFillServiceTestCase.sReplier.assertNumberUnhandledFillRequests ( 0 ) ; android.autofillservice.cts.AutoFillServiceTestCase.sReplier.assertNumberUnhandledSaveRequests ( 0 ) ; }
Source:
public void handleError ( java.lang.Exception exception , int lineNumber ) { if ( ( mErrorListener ) != null ) { mErrorListener.errorFound ( ) ; } java.lang.String message = exception.getMessage ( ) ; if ( message == null ) { message = "Unknown error " + ( exception.getClass ( ) . getCanonicalName ( ) ) ; } if ( ( mFile ) != null ) { com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.markResource ( mFile , AndroidConstants.MARKER_XML , message , lineNumber , IMarker.SEVERITY_ERROR ) ; } }

Target:
public void handleError ( java.lang.Exception exception , int lineNumber ) { if ( ( mErrorListener ) != null ) { mErrorListener.errorFound ( ) ; } java.lang.String message = exception.getMessage ( ) ; if ( message == null ) { message = "Unknown error " + ( exception.getClass ( ) . getCanonicalName ( ) ) ; } if ( ( mFile ) != null ) { com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.markResource ( mFile , AdtConstants.MARKER_XML , message , lineNumber , IMarker.SEVERITY_ERROR ) ; } }
Source:
void assertFutureTimesOut ( java.util.concurrent.Future future , long timeoutMillis ) { long startTime = java.lang.System.nanoTime ( ) ; try { future.get ( timeoutMillis , java.util.concurrent.TimeUnit.MILLISECONDS ) ; shouldThrow ( ) ; } catch ( java.util.concurrent.TimeoutException success ) { } catch ( java.lang.Exception e ) { threadUnexpectedException ( e ) ; } finally { future.cancel ( true ) ; } assertTrue ( ( ( millisElapsedSince ( startTime ) ) >= timeoutMillis ) ) ; }

Target:
public void runWithPermissions ( java.lang.Runnable r , java.security.Permission ... permissions ) { java.lang.SecurityManager sm = java.lang.System.getSecurityManager ( ) ; if ( sm == null ) { r.run ( ) ; } runWithSecurityManagerWithPermissions ( r , permissions ) ; }
Source:
public void drawTextRun ( android.graphics.Canvas c , int start , int end , int contextStart , int contextEnd , float x , float y , int flags , android.graphics.Paint p ) { int count = end - start ; int contextCount = contextEnd - contextStart ; c.drawTextRun ( mChars , ( start + ( mStart ) ) , count , ( contextStart + ( mStart ) ) , contextCount , x , y , flags , p ) ; }

Target:
public float getTextRunAdvances ( int start , int end , int contextStart , int contextEnd , boolean isRtl , float [ ] advances , int advancesIndex , android.graphics.Paint p ) { int count = end - start ; int contextCount = contextEnd - contextStart ; return p.getTextRunAdvances ( mChars , ( start + ( mStart ) ) , count , ( contextStart + ( mStart ) ) , contextCount , isRtl , advances , advancesIndex ) ; }
Source:
public static void stopStreaming ( com.android.phone.testapps.embmsmw.StreamingAppIdentifier appIdentifier , java.lang.String serviceId ) { com.android.phone.testapps.embmsmw.AppActiveStreams appStreams = com.android.phone.testapps.embmsmw.StreamStateTracker.sPerAppStreamStates.get ( appIdentifier ) ; if ( appStreams == null ) { return ; } appStreams.stopStreaming ( serviceId ) ; }

Target:
public static void stopStreaming ( com.android.phone.testapps.embmsmw.StreamingAppIdentifier appIdentifier , java.lang.String serviceId ) { android.util.Log.i ( com.android.phone.testapps.embmsmw.StreamStateTracker.LOG_TAG , ( "Stopping stream " + serviceId ) ) ; com.android.phone.testapps.embmsmw.AppActiveStreams appStreams = com.android.phone.testapps.embmsmw.StreamStateTracker.sPerAppStreamStates.get ( appIdentifier ) ; if ( appStreams == null ) { return ; } appStreams.stopStreaming ( serviceId ) ; }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; bindService ( new android.content.Intent ( this , com.googlecode.android_scripting.activity.ScriptingLayerService.class ) , mConnection , 0 ) ; com.googlecode.android_scripting.activity.CustomizeWindow.requestCustomTitle ( this , "Script Monitor" , R.layout.script_monitor ) ; mAdapter = new com.googlecode.android_scripting.activity.ScriptProcessMonitor.ScriptMonitorAdapter ( ) ; setListAdapter ( mAdapter ) ; registerForContextMenu ( getListView ( ) ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; bindService ( new android.content.Intent ( this , com.googlecode.android_scripting.service.ScriptingLayerService.class ) , mConnection , 0 ) ; com.googlecode.android_scripting.activity.CustomizeWindow.requestCustomTitle ( this , "Script Monitor" , R.layout.script_monitor ) ; mAdapter = new com.googlecode.android_scripting.activity.ScriptProcessMonitor.ScriptMonitorAdapter ( ) ; setListAdapter ( mAdapter ) ; registerForContextMenu ( getListView ( ) ) ; }
Source:
public void update ( com.intellij.openapi.actionSystem.AnActionEvent e ) { org.jetbrains.plugins.github.GithubShowCommitInBrowserFromLogAction.EventData eventData = org.jetbrains.plugins.github.GithubShowCommitInBrowserFromLogAction.collectData ( e ) ; e.getPresentation ( ) . setVisible ( ( ( eventData != null ) && ( org.jetbrains.plugins.github.GithubUtil.isRepositoryOnGitHub ( eventData.getRepository ( ) ) ) ) ) ; e.getPresentation ( ) . setEnabled ( ( eventData != null ) ) ; }

Target:
public void update ( com.intellij.openapi.actionSystem.AnActionEvent e ) { org.jetbrains.plugins.github.GithubShowCommitInBrowserFromLogAction.EventData eventData = org.jetbrains.plugins.github.GithubShowCommitInBrowserFromLogAction.collectData ( e ) ; e.getPresentation ( ) . setVisible ( ( ( eventData != null ) && ( org.jetbrains.plugins.github.util.GithubUtil.isRepositoryOnGitHub ( eventData.getRepository ( ) ) ) ) ) ; e.getPresentation ( ) . setEnabled ( ( eventData != null ) ) ; }
Source:
public void test_truncatedTo_normal ( ) { org.testng.Assert.assertEquals ( TEST_2008_6_30_11_30_59_000000500.truncatedTo ( java.time.temporal.ChronoUnit.NANOS ) , TEST_2008_6_30_11_30_59_000000500 ) ; org.testng.Assert.assertEquals ( TEST_2008_6_30_11_30_59_000000500.truncatedTo ( java.time.temporal.ChronoUnit.SECONDS ) , TEST_2008_6_30_11_30_59_000000500.withNano ( 0 ) ) ; org.testng.Assert.assertEquals ( TEST_2008_6_30_11_30_59_000000500.truncatedTo ( java.time.temporal.ChronoUnit.DAYS ) , TEST_2008_6_30_11_30_59_000000500.with ( java.time.LocalTime.MIDNIGHT ) ) ; }

Target:
public void test_truncatedTo_normal ( ) { org.testng.Assert.assertEquals ( tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500.truncatedTo ( java.time.temporal.ChronoUnit.NANOS ) , tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500 ) ; org.testng.Assert.assertEquals ( tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500.truncatedTo ( java.time.temporal.ChronoUnit.SECONDS ) , tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500.withNano ( 0 ) ) ; org.testng.Assert.assertEquals ( tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500.truncatedTo ( java.time.temporal.ChronoUnit.DAYS ) , tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500.with ( java.time.LocalTime.MIDNIGHT ) ) ; }
Source:
public void setConnectionDisconnected ( int cause ) { mMediaPlayer.stop ( ) ; setDisconnected ( new android.telecom.DisconnectCause ( cause ) ) ; destroy ( ) ; if ( ( mListener ) != null ) { mListener.onConnectionRemoved ( this ) ; } }

Target:
public void setConnectionDisconnected ( int cause ) { android.app.NotificationManager notificationManager = mContext.getSystemService ( android.app.NotificationManager.class ) ; notificationManager.cancel ( com.android.server.telecom.testapps.SelfManagedConnection.CALL_NOTIFICATION , mCallId ) ; mMediaPlayer.stop ( ) ; setDisconnected ( new android.telecom.DisconnectCause ( cause ) ) ; destroy ( ) ; if ( ( mListener ) != null ) { mListener.onConnectionRemoved ( this ) ; } }
Source:
public final short short_literal ( ) throws org.jf.smali.RecognitionException { short value = 0 ; org.antlr.runtime.tree.CommonTree SHORT_LITERAL193 = null ; try { { SHORT_LITERAL193 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.SHORT_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_SHORT_LITERAL_in_short_literal3279 ) ) ) ; value = org.jf.smali.LiteralTools.parseShort ( ( SHORT_LITERAL193 != null ? SHORT_LITERAL193.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final int integer_literal ( ) throws org.jf.smali.RecognitionException { int value = 0 ; org.antlr.runtime.tree.CommonTree INTEGER_LITERAL204 = null ; try { { INTEGER_LITERAL204 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.INTEGER_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_INTEGER_LITERAL_in_integer_literal3438 ) ) ) ; value = org.jf.smali.LiteralTools.parseInt ( ( INTEGER_LITERAL204 != null ? INTEGER_LITERAL204.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
public void testSingleOutofOrder ( ) { android.hardware.cts.helpers.SensorStats stats = new android.hardware.cts.helpers.SensorStats ( ) ; android.hardware.cts.helpers.sensorverification.EventOrderingVerification verification = getVerification ( 0 , 2 , 1 , 3 , 4 ) ; try { verification.verify ( stats ) ; fail ( "Expected an AssertionError" ) ; } catch ( java.lang.AssertionError e ) { } verifyStats ( stats , false , 1 ) ; java.util.List < java.lang.Integer > indices = getIndices ( stats ) ; assertTrue ( indices.contains ( 2 ) ) ; }

Target:
public void testSingleOutofOrder ( ) { android.hardware.cts.helpers.SensorStats stats = new android.hardware.cts.helpers.SensorStats ( ) ; android.hardware.cts.helpers.sensorverification.EventOrderingVerification verification = android.hardware.cts.helpers.sensorverification.EventOrderingVerificationTest.getVerification ( 0 , 2 , 1 , 3 , 4 ) ; try { verification.verify ( stats ) ; fail ( "Expected an AssertionError" ) ; } catch ( java.lang.AssertionError e ) { } verifyStats ( stats , false , 1 ) ; java.util.List < java.lang.Integer > indices = getIndices ( stats ) ; assertTrue ( indices.contains ( 2 ) ) ; }
Source:
protected boolean engineVerify ( byte [ ] sigBytes ) throws java.security.SignatureException { final org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = ctx ; try { return org.conscrypt.NativeCrypto.EVP_DigestVerifyFinal ( ctxLocal , sigBytes , 0 , sigBytes.length ) ; } catch ( java.lang.Exception ex ) { throw new java.security.SignatureException ( ex ) ; } finally { resetContext ( ) ; } }

Target:
protected boolean engineVerify ( byte [ ] sigBytes ) throws java.security.SignatureException { final org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = ctx ; try { return org.conscrypt.NativeCrypto.EVP_DigestVerifyFinal ( ctxLocal , sigBytes , 0 , sigBytes.length ) ; } catch ( java.lang.Exception ex ) { throw new java.security.SignatureException ( ex ) ; } finally { try { resetContext ( ) ; } catch ( java.security.InvalidAlgorithmParameterException e ) { throw new java.lang.AssertionError ( "Reset of context failed after it was successful once" ) ; } } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mDevice = getDevice ( ) ; if ( ! ( supportsDragAndDrop ( ) ) ) { return ; } mSourcePackageName = android.wm.cts.CrossAppDragAndDropTests.SOURCE_PACKAGE_NAME ; mTargetPackageName = android.wm.cts.CrossAppDragAndDropTests.TARGET_PACKAGE_NAME ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mDevice = getDevice ( ) ; if ( ( ! ( supportsDragAndDrop ( ) ) ) || ( ! ( supportsMultiWindowMode ( ) ) ) ) { return ; } mSourcePackageName = android.wm.cts.CrossAppDragAndDropTests.SOURCE_PACKAGE_NAME ; mTargetPackageName = android.wm.cts.CrossAppDragAndDropTests.TARGET_PACKAGE_NAME ; }
Source:
public void reject ( boolean rejectWithMessage , java.lang.String textMessage ) { if ( isRinging ( "reject" ) ) { mVideoStateHistory |= mVideoState ; if ( ( mConnectionService ) != null ) { mConnectionService.reject ( this , rejectWithMessage , textMessage ) ; } else { android.telecom.Log.e ( this , new java.lang.NullPointerException ( ) , "reject call failed due to null CS callId=%s" , getId ( ) ) ; } android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_REJECT ) ; } }

Target:
public void reject ( boolean rejectWithMessage , java.lang.String textMessage , java.lang.String callingPackage ) { if ( isRinging ( "reject" ) ) { mVideoStateHistory |= mVideoState ; if ( ( mConnectionService ) != null ) { mConnectionService.reject ( this , rejectWithMessage , textMessage ) ; } else { android.telecom.Log.e ( this , new java.lang.NullPointerException ( ) , "reject call failed due to null CS callId=%s" , getId ( ) ) ; } android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_REJECT , callingPackage ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testThrowException ( ) ; Main.testDropArguments ( ) ; Main.testCatchException ( ) ; Main.testGuardWithTest ( ) ; Main.testArrayElementGetter ( ) ; Main.testArrayElementSetter ( ) ; Main.testIdentity ( ) ; Main.testConstant ( ) ; Main.testBindTo ( ) ; Main.testFilterReturnValue ( ) ; Main.testPermuteArguments ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testThrowException ( ) ; Main.testDropArguments ( ) ; Main.testCatchException ( ) ; Main.testGuardWithTest ( ) ; Main.testArrayElementGetter ( ) ; Main.testArrayElementSetter ( ) ; Main.testIdentity ( ) ; Main.testConstant ( ) ; Main.testBindTo ( ) ; Main.testFilterReturnValue ( ) ; Main.testPermuteArguments ( ) ; Main.testInvokers ( ) ; }
Source:
private void handleCarrierNameOverride ( ) { android.telephony.CarrierConfigManager configLoader = ( ( android.telephony.CarrierConfigManager ) ( mContext.getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; if ( ( configLoader != null ) && ( configLoader.getConfig ( ) . getBoolean ( CarrierConfigManager.KEY_CARRIER_NAME_OVERRIDE_BOOL ) ) ) { java.lang.String carrierName = configLoader.getConfig ( ) . getString ( CarrierConfigManager.KEY_CARRIER_NAME_STRING ) ; setServiceProviderName ( carrierName ) ; mTelephonyManager.setSimOperatorNameForPhone ( mParentApp.getPhoneId ( ) , carrierName ) ; } else { setSpnFromConfig ( getOperatorNumeric ( ) ) ; } }

Target:
private boolean useRoamingFromServiceState ( ) { android.telephony.CarrierConfigManager configManager = ( ( android.telephony.CarrierConfigManager ) ( mContext.getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; if ( configManager != null ) { android.os.PersistableBundle b = configManager.getConfigForSubId ( com.android.internal.telephony.SubscriptionController.getInstance ( ) . getSubIdUsingPhoneId ( mParentApp.getPhoneId ( ) ) ) ; if ( ( b != null ) && ( b.getBoolean ( CarrierConfigManager.KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL ) ) ) { return true ; } } return false ; }
Source:
public void testParceling ( ) { android.net.LinkAddress l ; l = new android.net.LinkAddress ( android.net.LinkAddressTest.V6_ADDRESS , 64 , 123 , 456 ) ; assertParcelingIsLossless ( l ) ; l = new android.net.LinkAddress ( ( ( android.net.LinkAddressTest.V4 ) + "/28" ) , libcore.io.OsConstants.IFA_F_PERMANENT , libcore.io.OsConstants.RT_SCOPE_LINK ) ; assertParcelingIsLossless ( l ) ; }

Target:
public void testParceling ( ) { android.net.LinkAddress l ; l = new android.net.LinkAddress ( android.net.LinkAddressTest.V6_ADDRESS , 64 , 123 , 456 ) ; assertParcelingIsLossless ( l ) ; l = new android.net.LinkAddress ( ( ( android.net.LinkAddressTest.V4 ) + "/28" ) , android.system.OsConstants.IFA_F_PERMANENT , android.system.OsConstants.RT_SCOPE_LINK ) ; assertParcelingIsLossless ( l ) ; }
Source:
public void testMakeTimeZone_NoOffsets ( ) throws java.lang.Exception { int [ ] [ ] times = new int [ ] [ ] { } ; int [ ] [ ] offsets = new int [ ] [ ] { } ; try { createZoneInfo ( times , offsets ) ; fail ( "Did not detect no transitions" ) ; } catch ( java.lang.IllegalStateException expected ) { } }

Target:
public void testMakeTimeZone_NoTypes ( ) throws java.lang.Exception { int [ ] [ ] transitions = new int [ ] [ ] { } ; int [ ] [ ] types = new int [ ] [ ] { } ; try { createZoneInfo ( transitions , types ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } }
Source:
public void hangupAllConnections ( com.android.internal.telephony.GsmCdmaCall call ) { try { int count = call.mConnections.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { com.android.internal.telephony.GsmCdmaConnection cn = ( ( com.android.internal.telephony.GsmCdmaConnection ) ( call.mConnections.get ( i ) ) ) ; mCi.hangupConnection ( cn.getGsmCdmaIndex ( ) , obtainCompleteMessage ( ) ) ; } } catch ( com.android.internal.telephony.CallStateException ex ) { android.telephony.Rlog.e ( com.android.internal.telephony.GsmCdmaCallTracker.LOG_TAG , ( "hangupConnectionByIndex caught " + ex ) ) ; } }

Target:
public void hangupAllConnections ( com.android.internal.telephony.GsmCdmaCall call ) { try { int count = call.mConnections.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { com.android.internal.telephony.GsmCdmaConnection cn = ( ( com.android.internal.telephony.GsmCdmaConnection ) ( call.mConnections.get ( i ) ) ) ; if ( ! ( cn.mDisconnected ) ) { mCi.hangupConnection ( cn.getGsmCdmaIndex ( ) , obtainCompleteMessage ( ) ) ; } } } catch ( com.android.internal.telephony.CallStateException ex ) { android.telephony.Rlog.e ( com.android.internal.telephony.GsmCdmaCallTracker.LOG_TAG , ( "hangupConnectionByIndex caught " + ex ) ) ; } }
Source:
public void answerCall ( android.bluetooth.BluetoothDevice device ) { if ( device == null ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetSystemInterface.TAG , "answerCall device is null" ) ; return ; } if ( ( mPhoneProxy ) != null ) { try { mPhoneProxy.answerCall ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetSystemInterface.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } } else { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetSystemInterface.TAG , "Handsfree phone proxy null for answering call" ) ; } }

Target:
public void answerCall ( android.bluetooth.BluetoothDevice device ) { if ( device == null ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetSystemInterface.TAG , "answerCall device is null" ) ; return ; } if ( ( mPhoneProxy ) != null ) { try { mHeadsetService.setActiveDevice ( device ) ; mPhoneProxy.answerCall ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetSystemInterface.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } } else { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetSystemInterface.TAG , "Handsfree phone proxy null for answering call" ) ; } }
Source:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.android.builder.BundleDependency that = ( ( com.android.builder.BundleDependency ) ( o ) ) ; if ( ( mName ) != null ? ! ( mName.equals ( that.mName ) ) : ( that.mName ) != null ) return false ; return true ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.android.builder.BundleDependency that = ( ( com.android.builder.BundleDependency ) ( o ) ) ; return com.google.common.base.Objects.equal ( mName , that.mName ) ; }
Source:
public final short getShort ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.SHORT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } short result = this . block.peekShort ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }

Target:
public final double getDouble ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.DOUBLE ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } double result = java.lang.Double.longBitsToDouble ( this . block.peekLong ( ( ( offset ) + ( position ) ) , order ) ) ; position = newPosition ; return result ; }
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "AndroidManifest.xml:13: Error: Class referenced in the manifest, test.pkg.TestProvider, was not found in the project or the libraries [MissingRegistered]\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( " <activity android:name=\".TestProvider\" />\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "AndroidManifest.xml:14: Error: Class referenced in the manifest, test.pkg.TestProvider2, was not found in the project or the libraries [MissingRegistered]\n" ) + " <service android:name=\"test.pkg.TestProvider2\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "AndroidManifest.xml:15: Error: Class referenced in the manifest, test.pkg.TestService, was not found in the project or the libraries [MissingRegistered]\n" ) + " <provider android:name=\".TestService\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "AndroidManifest.xml:16: Error: Class referenced in the manifest, test.pkg.OnClickActivity, was not found in the project or the libraries [MissingRegistered]\n" ) + " <receiver android:name=\"OnClickActivity\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "AndroidManifest.xml:17: Error: Class referenced in the manifest, test.pkg.TestReceiver, was not found in the project or the libraries [MissingRegistered]\n" ) + " <service android:name=\"TestReceiver\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "5 errors, 0 warnings\n" ) ) , lintProject ( "bytecode/AndroidManifestWrongRegs.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" ) ) ; }

Target:
public void testIncrementalInManifest ( ) throws java.lang.Exception { mScopes = com.android.tools.lint.detector.api.Scope.MANIFEST_SCOPE ; assertEquals ( "No warnings." , lintProject ( "bytecode/AndroidManifestWrongRegs.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" ) ) ; }
Source:
public com.android.ahat.heapdump.Value getDumpedValue ( java.lang.String name ) { com.android.ahat.heapdump.AhatClassObj main = mSnapshot.findClass ( "Main" ) ; com.android.ahat.heapdump.AhatInstance stuff = null ; for ( com.android.ahat.heapdump.FieldValue fields : main.getStaticFieldValues ( ) ) { if ( "stuff" . equals ( fields.getName ( ) ) ) { stuff = fields.getValue ( ) . asAhatInstance ( ) ; } } return stuff.getField ( name ) ; }

Target:
private com.android.ahat.heapdump.Value getDumpedValue ( java.lang.String name , com.android.ahat.heapdump.AhatSnapshot snapshot ) { com.android.ahat.heapdump.AhatClassObj main = snapshot.findClass ( "Main" ) ; com.android.ahat.heapdump.AhatInstance stuff = null ; for ( com.android.ahat.heapdump.FieldValue fields : main.getStaticFieldValues ( ) ) { if ( "stuff" . equals ( fields.getName ( ) ) ) { stuff = fields.getValue ( ) . asAhatInstance ( ) ; } } return stuff.getField ( name ) ; }
Source:
public java.security.PublicKey getPublicKey ( ) throws java.security.NoSuchAlgorithmException { switch ( org.conscrypt.NativeCrypto.EVP_PKEY_type ( ctx ) ) { case NativeCrypto.EVP_PKEY_RSA : return new org.conscrypt.OpenSSLRSAPublicKey ( this ) ; case NativeCrypto.EVP_PKEY_DH : return new org.conscrypt.OpenSSLDHPublicKey ( this ) ; case NativeCrypto.EVP_PKEY_EC : return new org.conscrypt.OpenSSLECPublicKey ( this ) ; default : throw new java.security.NoSuchAlgorithmException ( "unknown PKEY type" ) ; } }

Target:
public java.security.PublicKey getPublicKey ( ) throws java.security.NoSuchAlgorithmException { switch ( org.conscrypt.NativeCrypto.EVP_PKEY_type ( ctx ) ) { case NativeConstants.EVP_PKEY_RSA : return new org.conscrypt.OpenSSLRSAPublicKey ( this ) ; case NativeConstants.EVP_PKEY_EC : return new org.conscrypt.OpenSSLECPublicKey ( this ) ; default : throw new java.security.NoSuchAlgorithmException ( "unknown PKEY type" ) ; } }
Source:
private static boolean isCLDRFieldName ( int index ) { if ( ( index < 0 ) && ( index >= ( com.ibm.icu.text.DateTimePatternGenerator.TYPE_LIMIT ) ) ) { return false ; } if ( ( com.ibm.icu.text.DateTimePatternGenerator.CLDR_FIELD_NAME [ index ] . charAt ( 0 ) ) == '*' ) { return false ; } else { return true ; } }

Target:
void populate ( int field , char ch , int length ) { assert ch <= ( java.lang.Byte.MAX_VALUE ) ; assert length <= ( java.lang.Byte.MAX_VALUE ) ; chars [ field ] = ( ( byte ) ( ch ) ) ; lengths [ field ] = ( ( byte ) ( length ) ) ; }
Source:
public void testPownF32_4_relaxed ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_4 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 4 ] ; android.renderscript.cts.RSUtils.genRandom ( 4400074 , 32 , 1 , ( - 16 ) , n ) ; nAlloc.copyFrom ( n ) ; script_f32_relaxed.set_n4 ( nAlloc ) ; doF32_4_relaxed ( 11145969 , 128 ) ; }

Target:
public void testPownF32_4_relaxed ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_4 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 4 ] ; android.renderscript.cts.RSUtils.genRandomInts ( 4400074 , 32 , ( - 16 ) , n ) ; nAlloc.copyFrom ( n ) ; script_f32_relaxed.set_n4 ( nAlloc ) ; doF32_4_relaxed ( 11145969 , 128 ) ; }
Source:
public void entering ( java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.Object param1 ) { if ( ( java.util.logging.Level.FINER.intValue ( ) ) < ( levelValue ) ) { return ; } java.lang.Object [ ] params = new java.lang.Object [ ] { param1 } ; logp ( java.util.logging.Level.FINER , sourceClass , sourceMethod , "ENTRY {0}" , params ) ; }

Target:
private void doLog ( java.util.logging.LogRecord lr , java.util.ResourceBundle rb ) { lr.setLoggerName ( name ) ; if ( rb != null ) { lr.setResourceBundleName ( rb.getBaseBundleName ( ) ) ; lr.setResourceBundle ( rb ) ; } log ( lr ) ; }
Source:
public void onLooperPrepared ( ) { mEuiccCard = new com.android.internal.telephony.uicc.euicc.EuiccCard ( mContextFixture.getTestDouble ( ) , mMockCi , mMockIccCardStatus , 0 ) { @ java.lang.Override protected byte [ ] getDeviceId ( ) { return com.android.internal.telephony.uicc.IccUtils.bcdToBytes ( "987654321012345" ) ; } } ; mHandler = new android.os.Handler ( mTestHandlerThread.getLooper ( ) ) ; setReady ( true ) ; }

Target:
protected void loadEidAndNotifyRegistrants ( ) { }
Source:
public void run ( ) { com.android.hierarchyviewerlib.device.ViewNode viewNode = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindowData ( window ) ; if ( viewNode != null ) { com.android.hierarchyviewerlib.device.DeviceBridge.loadProfileData ( window , viewNode ) ; viewNode.setViewCount ( ) ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . setData ( window , viewNode ) ; } }

Target:
public void run ( ) { filterText = "" ; com.android.hierarchyviewerlib.device.ViewNode viewNode = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindowData ( window ) ; if ( viewNode != null ) { com.android.hierarchyviewerlib.device.DeviceBridge.loadProfileData ( window , viewNode ) ; viewNode.setViewCount ( ) ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . setData ( window , viewNode ) ; } }
Source:
public void onStart ( ) { super . onStart ( ) ; com.android.dialer.common.LogUtil.i ( "AnswerFragment.onStart" , null ) ; updateUI ( ) ; if ( ( answerVideoCallScreen ) != null ) { answerVideoCallScreen.onVideoScreenStart ( ) ; } }

Target:
public void onStart ( ) { android.os.Trace.beginSection ( "AnswerFragment.onStart" ) ; super . onStart ( ) ; com.android.dialer.common.LogUtil.i ( "AnswerFragment.onStart" , null ) ; updateUI ( ) ; if ( ( answerVideoCallScreen ) != null ) { answerVideoCallScreen.onVideoScreenStart ( ) ; } android.os.Trace.endSection ( ) ; }
Source:
public void testReplacedLayout ( ) throws java.lang.Exception { com.android.builder.resources.ResourceMerger merger = com.android.builder.resources.ResourceMergerTest.getResourceMerger ( ) ; com.google.common.collect.ListMultimap < java.lang.String , com.android.builder.resources.Resource > mergedMap = merger.getResourceMap ( ) ; java.util.List < com.android.builder.resources.Resource > values = mergedMap.get ( "layout/main" ) ; assertEquals ( 2 , values.size ( ) ) ; com.android.builder.resources.Resource mainLayout = values.get ( 1 ) ; com.android.builder.resources.ResourceFile sourceFile = mainLayout.getSource ( ) ; assertTrue ( sourceFile.getFile ( ) . getAbsolutePath ( ) . endsWith ( "overlay/layout/main.xml" ) ) ; }

Target:
public void testReplacedLayout ( ) throws java.lang.Exception { com.android.builder.resources.ResourceMerger merger = com.android.builder.resources.ResourceMergerTest.getResourceMerger ( ) ; com.google.common.collect.ListMultimap < java.lang.String , com.android.builder.resources.Resource > mergedMap = merger.getResourceMap ( ) ; java.util.List < com.android.builder.resources.Resource > values = mergedMap.get ( "layout/main" ) ; assertEquals ( 2 , values.size ( ) ) ; com.android.builder.resources.Resource mainLayout = values.get ( 1 ) ; com.android.builder.resources.ResourceFile sourceFile = mainLayout.getSource ( ) ; assertTrue ( sourceFile.getFile ( ) . getAbsolutePath ( ) . endsWith ( getPlatformPath ( "overlay/layout/main.xml" ) ) ) ; }
Source:
public static com.android.builder.model.AndroidProject createMockProject ( java.lang.String modelVersion , int apiVersion ) { com.android.builder.model.AndroidProject project = org.easymock.EasyMock.createNiceMock ( com.android.builder.model.AndroidProject.class ) ; org.easymock.EasyMock.expect ( project.getApiVersion ( ) ) . andReturn ( apiVersion ) . anyTimes ( ) ; org.easymock.EasyMock.expect ( project.getModelVersion ( ) ) . andReturn ( modelVersion ) . anyTimes ( ) ; org.easymock.EasyMock.replay ( project ) ; return project ; }

Target:
public static com.android.builder.model.AndroidProject createMockProject ( java.lang.String modelVersion , int apiVersion ) { com.android.builder.model.AndroidProject project = org.mockito.Mockito.mock ( com.android.builder.model.AndroidProject.class ) ; org.mockito.Mockito.when ( project.getApiVersion ( ) ) . thenReturn ( apiVersion ) ; org.mockito.Mockito.when ( project.getModelVersion ( ) ) . thenReturn ( modelVersion ) ; return project ; }
Source:
private void responseString ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.lang.String str ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.lang.String ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = str ; sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseString ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.lang.String str ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.lang.String ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = str ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
public static void setEnabled ( boolean enabled ) { org.chromium.base.TraceEvent.sEnabled = enabled ; if ( org.chromium.base.TraceEvent.sATraceEnabled ) return ; org.chromium.base.ThreadUtils.getUiThreadLooper ( ) . setMessageLogging ( ( enabled ? org.chromium.base.TraceEvent.LooperMonitorHolder.sInstance : null ) ) ; }

Target:
public static void setEnabled ( boolean enabled ) { if ( enabled ) org.chromium.base.EarlyTraceEvent.disable ( ) ; if ( ( org.chromium.base.TraceEvent.sEnabled ) != enabled ) { org.chromium.base.TraceEvent.sEnabled = enabled ; if ( org.chromium.base.TraceEvent.sATraceEnabled ) return ; org.chromium.base.ThreadUtils.getUiThreadLooper ( ) . setMessageLogging ( ( enabled ? org.chromium.base.TraceEvent.LooperMonitorHolder.sInstance : null ) ) ; } }
Source:
private void assertFailureStackContainsThisClass ( java.lang.Throwable e ) { assertTrue ( com.google.common.base.Throwables.getStackTraceAsString ( e ) . contains ( getClass ( ) . getSimpleName ( ) . toString ( ) ) ) ; }

Target:
private org.hamcrest.CustomTypeSafeMatcher < java.lang.Throwable > stackTraceContainsThisClass ( ) { return new org.hamcrest.CustomTypeSafeMatcher < java.lang.Throwable > ( "Stack Contains This Class" ) { @ java.lang.Override protected boolean matchesSafely ( java.lang.Throwable e ) { return com.google.common.base.Throwables.getStackTraceAsString ( e ) . contains ( android.support.test.espresso.base.DefaultFailureHandlerTest.class . getSimpleName ( ) . toString ( ) ) ; } } ; }
Source:
public com.android.sched.vfs.OutputVFile createOutputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.CannotCreateFileException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( getSeparator ( ) ) ) ; if ( ( ! ( file.getParentFile ( ) . mkdirs ( ) ) ) && ( ! ( file.getParentFile ( ) . isDirectory ( ) ) ) ) { throw new com.android.sched.util.file.CannotCreateFileException ( new com.android.sched.util.location.DirectoryLocation ( file.getParentFile ( ) ) ) ; } return new com.android.sched.vfs.direct.DirectFile ( file , vfsRoot ) ; }

Target:
public com.android.sched.vfs.OutputVFile createOutputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.CannotCreateFileException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( getSeparator ( ) ) ) ; if ( ( ! ( file.getParentFile ( ) . mkdirs ( ) ) ) && ( ! ( file.getParentFile ( ) . isDirectory ( ) ) ) ) { throw new com.android.sched.util.file.CannotCreateFileException ( new com.android.sched.util.location.DirectoryLocation ( file.getParentFile ( ) ) ) ; } return new com.android.sched.vfs.DirectFile ( file , vfsRoot ) ; }
Source:
public static java.lang.String testDelegate_returnString ( ) { return "plank" ; }

Target:
public static java.lang.String testCatchException_target ( java.lang.String arg1 , long arg2 , java.lang.String exceptionMessage ) throws java.lang.Throwable { if ( exceptionMessage != null ) { throw new java.lang.IllegalArgumentException ( exceptionMessage ) ; } java.lang.System.out.println ( ( ( ( "Target: Arg1: " + arg1 ) + ", Arg2: " ) + arg2 ) ) ; return "target" ; }
Source:
public com.android.jack.test.toolchain.IToolchain build ( ) { return new com.android.jack.test.toolchain.JillApiV01Toolchain ( com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jill" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jack" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "legacy-java-compiler" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jarjar" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "proguard" ) ) ; }

Target:
public com.android.jack.test.toolchain.JillApiV01Toolchain build ( ) { java.io.File jillPrebuilt = ( com.android.jack.test.toolchain.AbstractTestTools.isPrebuiltAvailable ( "jill" ) ) ? com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jill" ) : null ; return new com.android.jack.test.toolchain.JillApiV01Toolchain ( jillPrebuilt , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jack" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "legacy-java-compiler" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jarjar" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "proguard" ) ) ; }
Source:
android.media.session.PlaybackState getCurrentPlayBackState ( ) { synchronized ( mLock ) { if ( ( mAddressedPlayer ) == null ) { return new android.media.session.PlaybackState.Builder ( ) . setState ( PlaybackState.STATE_ERROR , PlaybackState.PLAYBACK_POSITION_UNKNOWN , 0 ) . build ( ) ; } return mAddressedPlayer.getPlaybackState ( ) ; } }

Target:
android.media.session.PlaybackState getCurrentPlayBackState ( boolean cached ) { if ( cached ) { synchronized ( mLock ) { if ( ( mAddressedPlayer ) == null ) { return new android.media.session.PlaybackState.Builder ( ) . setState ( PlaybackState.STATE_ERROR , PlaybackState.PLAYBACK_POSITION_UNKNOWN , 0 ) . build ( ) ; } return mAddressedPlayer.getPlaybackState ( ) ; } } else { com.android.bluetooth.avrcpcontroller.AvrcpControllerService.getPlaybackStateNative ( mRemoteDevice.getBluetoothAddress ( ) ) ; return null ; } }
Source:
public void testE3 ( ) { dot.junit.opcodes.aput_char.d.T_aput_char_1 t = new dot.junit.opcodes.aput_char.d.T_aput_char_1 ( ) ; char [ ] arr = new char [ 2 ] ; try { t.run ( arr , ( - 1 ) , 'g' ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testVFE4 ( ) { load ( "dot.junit.opcodes.aput_char.d.T_aput_char_5" , java.lang.VerifyError.class ) ; }
Source:
synchronized boolean setCurrentBrowsedFolder ( java.lang.String uid ) { com.android.bluetooth.avrcpcontroller.BrowseTree.BrowseNode bn = findFolderByIDLocked ( uid ) ; if ( bn == null ) { android.util.Log.e ( com.android.bluetooth.avrcpcontroller.BrowseTree.TAG , ( "Setting an unknown browsed folder, ignoring bn " + uid ) ) ; return false ; } mCurrentBrowseNode = bn ; return true ; }

Target:
synchronized boolean setCurrentBrowsedFolder ( java.lang.String uid ) { com.android.bluetooth.avrcpcontroller.BrowseTree.BrowseNode bn = findFolderByIDLocked ( uid ) ; if ( bn == null ) { android.util.Log.e ( com.android.bluetooth.avrcpcontroller.BrowseTree.TAG , ( "Setting an unknown browsed folder, ignoring bn " + uid ) ) ; return false ; } mCurrentBrowseNode.setCached ( false ) ; mCurrentBrowseNode = bn ; return true ; }
Source:
public void testTrivialTraversal_breadthFirst ( ) { java.util.List < java.lang.String > breadthFirst = com.google.common.collect.Lists.newArrayList ( com.google.common.collect.Iterables.transform ( android.support.test.espresso.util.TreeIterables.breadthFirstTraversal ( android.support.test.espresso.util.TreeIterablesTest.trivialTree , new android.support.test.espresso.util.TreeIterablesTest.TestElementTreeViewer ( ) ) , new android.support.test.espresso.util.TreeIterablesTest.TestElementStringConvertor ( ) ) ) ; org.hamcrest.MatcherAssert.assertThat ( breadthFirst , org.hamcrest.Matchers.is ( ( ( java.util.List < java.lang.String > ) ( com.google.common.collect.Lists.newArrayList ( "a" , "b" , "c" , "d" ) ) ) ) ) ; }

Target:
public void trivialTraversal_breadthFirst ( ) { java.util.List < java.lang.String > breadthFirst = com.google.common.collect.Lists.newArrayList ( com.google.common.collect.Iterables.transform ( android.support.test.espresso.util.TreeIterables.breadthFirstTraversal ( android.support.test.espresso.util.TreeIterablesTest.trivialTree , new android.support.test.espresso.util.TreeIterablesTest.TestElementTreeViewer ( ) ) , new android.support.test.espresso.util.TreeIterablesTest.TestElementStringConvertor ( ) ) ) ; org.hamcrest.MatcherAssert.assertThat ( breadthFirst , org.hamcrest.Matchers.is ( ( ( java.util.List < java.lang.String > ) ( com.google.common.collect.Lists.newArrayList ( "a" , "b" , "c" , "d" ) ) ) ) ) ; }
Source:
public static final void checkAndFixCompilerCompliance ( org.eclipse.jdt.core.IJavaProject javaProject ) { if ( ( com.android.ide.eclipse.adt.internal.project.ProjectHelper.checkCompilerCompliance ( javaProject ) ) != ( com.android.ide.eclipse.adt.internal.project.ProjectHelper.COMPILER_COMPLIANCE_OK ) ) { javaProject.setOption ( org.eclipse.jdt.core.JavaCore.COMPILER_COMPLIANCE , AndroidConstants.COMPILER_COMPLIANCE_PREFERRED ) ; javaProject.setOption ( org.eclipse.jdt.core.JavaCore.COMPILER_SOURCE , AndroidConstants.COMPILER_COMPLIANCE_PREFERRED ) ; javaProject.setOption ( org.eclipse.jdt.core.JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM , AndroidConstants.COMPILER_COMPLIANCE_PREFERRED ) ; try { javaProject.getProject ( ) . build ( IncrementalProjectBuilder.CLEAN_BUILD , new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; } catch ( org.eclipse.core.runtime.CoreException e ) { com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( javaProject.getProject ( ) , "Project compiler settings changed. Clean your project." ) ; } } }

Target:
public static final void checkAndFixCompilerCompliance ( org.eclipse.jdt.core.IJavaProject javaProject ) { if ( ( com.android.ide.eclipse.adt.internal.project.ProjectHelper.checkCompilerCompliance ( javaProject ) ) != ( com.android.ide.eclipse.adt.internal.project.ProjectHelper.COMPILER_COMPLIANCE_OK ) ) { javaProject.setOption ( org.eclipse.jdt.core.JavaCore.COMPILER_COMPLIANCE , AdtConstants.COMPILER_COMPLIANCE_PREFERRED ) ; javaProject.setOption ( org.eclipse.jdt.core.JavaCore.COMPILER_SOURCE , AdtConstants.COMPILER_COMPLIANCE_PREFERRED ) ; javaProject.setOption ( org.eclipse.jdt.core.JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM , AdtConstants.COMPILER_COMPLIANCE_PREFERRED ) ; try { javaProject.getProject ( ) . build ( IncrementalProjectBuilder.CLEAN_BUILD , new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; } catch ( org.eclipse.core.runtime.CoreException e ) { com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( javaProject.getProject ( ) , "Project compiler settings changed. Clean your project." ) ; } } }
Source:
private com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder _addProjectResourceFolder ( com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources resources , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config , org.eclipse.core.resources.IFolder folder ) throws java.lang.Exception { java.lang.reflect.Method addMethod = com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources.class . getDeclaredMethod ( "add" , com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType.class , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.class , com.android.sdklib.io.IAbstractFolder.class ) ; addMethod.setAccessible ( true ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder = ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder ) ( addMethod.invoke ( resources , ResourceFolderType.LAYOUT , config , new com.android.ide.eclipse.adt.io.IFolderWrapper ( folder ) ) ) ) ; return resFolder ; }

Target:
private com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder _addProjectResourceFolder ( com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources resources , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config , org.eclipse.core.resources.IFolder folder ) throws java.lang.Exception { java.lang.reflect.Method addMethod = com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources.class . getDeclaredMethod ( "add" , com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType.class , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.class , com.android.io.IAbstractFolder.class ) ; addMethod.setAccessible ( true ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder = ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder ) ( addMethod.invoke ( resources , ResourceFolderType.LAYOUT , config , new com.android.ide.eclipse.adt.io.IFolderWrapper ( folder ) ) ) ) ; return resFolder ; }
Source:
public static < K , V > com.google.common.collect.Multimap < K , V > filterEntries ( com.google.common.collect.Multimap < K , V > unfiltered , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Preconditions.checkNotNull ( entryPredicate ) ; return unfiltered instanceof com.google.common.collect.Multimaps.FilteredMultimap ? com.google.common.collect.Multimaps.filterFiltered ( ( ( com.google.common.collect.Multimaps.FilteredMultimap < K , V > ) ( unfiltered ) ) , entryPredicate ) : new com.google.common.collect.Multimaps.FilteredMultimap < K , V > ( com.google.common.base.Preconditions.checkNotNull ( unfiltered ) , entryPredicate ) ; }

Target:
public static < K , V > java.util.Map < K , java.util.SortedSet < V > > asMap ( com.google.common.collect.SortedSetMultimap < K , V > multimap ) { return ( ( java.util.Map < K , java.util.SortedSet < V > > ) ( ( java.util.Map < K , ? > ) ( multimap.asMap ( ) ) ) ) ; }
Source:
public java.net.Socket createSocket ( java.net.InetAddress addr , int port ) throws java.io.IOException { com.android.org.conscrypt.OpenSSLSocketImpl s = ( ( com.android.org.conscrypt.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( addr , port ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; return s ; }

Target:
public java.net.Socket createSocket ( java.net.InetAddress addr , int port ) throws java.io.IOException { com.android.org.conscrypt.OpenSSLSocketImpl s = ( ( com.android.org.conscrypt.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( addr , port ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setAlpnProtocols ( mAlpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; return s ; }
Source:
public static void runUI ( ) { org.eclipse.swt.widgets.Display display = new org.eclipse.swt.widgets.Display ( ) ; org.eclipse.swt.widgets.Shell shell = new org.eclipse.swt.widgets.Shell ( display ) ; shell.setLayout ( new org.eclipse.swt.layout.FillLayout ( ) ) ; com.android.hierarchyvieweruilib.DeviceSelector deviceSelector = new com.android.hierarchyvieweruilib.DeviceSelector ( shell ) ; shell.open ( ) ; while ( ! ( shell.isDisposed ( ) ) ) { if ( ! ( display.readAndDispatch ( ) ) ) { display.sleep ( ) ; } } deviceSelector.terminate ( ) ; com.android.ddmuilib.ImageLoader.dispose ( ) ; display.dispose ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent arg0 ) { int newZoom = slider.getSelection ( ) ; if ( newZoom != ( oldZoom ) ) { pixelPerfectLoupe.setZoom ( newZoom ) ; oldZoom = newZoom ; } }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , int [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 4 ) ) ; }

Target:
public void copy2DRangeTo ( int xoff , int yoff , int w , int h , short [ ] data ) { validateIsInt16 ( ) ; copy2DRangeToUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_16 , data.length ) ; }