auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.Iterator < com.android.jack.ir.ast.cfg.JControlFlowGraph > adapt ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface declaredType ) { java.util.ArrayList < com.android.jack.ir.ast.cfg.JControlFlowGraph > cfgList = new java.util.ArrayList < > ( ) ; for ( com.android.jack.ir.ast.JMethod method : declaredType.getMethods ( ) ) { com.android.jack.ir.ast.JAbstractMethodBody body = method.getBody ( ) ; if ( body instanceof com.android.jack.ir.ast.JMethodBodyCfg ) { cfgList.add ( ( ( com.android.jack.ir.ast.JMethodBodyCfg ) ( body ) ) . getCfg ( ) ) ; } } return cfgList.iterator ( ) ; }

Target:
public java.util.Iterator < com.android.jack.ir.ast.JMethodBodyCfg > adapt ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface declaredType ) { java.util.ArrayList < com.android.jack.ir.ast.JMethodBodyCfg > cfgList = new java.util.ArrayList < > ( ) ; for ( com.android.jack.ir.ast.JMethod method : declaredType.getMethods ( ) ) { com.android.jack.ir.ast.JAbstractMethodBody body = method.getBody ( ) ; if ( body instanceof com.android.jack.ir.ast.JMethodBodyCfg ) { cfgList.add ( ( ( com.android.jack.ir.ast.JMethodBodyCfg ) ( body ) ) ) ; } } return cfgList.iterator ( ) ; }
Source:
private void run ( @ javax.annotation.Nonnull java.lang.String mainClass , @ javax.annotation.Nonnull java.io.File [ ] dexFiles ) throws java.lang.Exception { java.util.List < com.android.jack.test.runner.RuntimeRunner > runnerList = com.android.jack.test.toolchain.AbstractTestTools.listRuntimeTestRunners ( null ) ; for ( com.android.jack.test.runner.RuntimeRunner runner : runnerList ) { org.junit.Assert.assertEquals ( 0 , runner.runJUnit ( new java.lang.String [ 0 ] , AbstractTestTools.JUNIT_RUNNER_NAME , new java.lang.String [ ] { mainClass } , dexFiles ) ) ; } }

Target:
private void run ( @ javax.annotation.Nonnull java.lang.String mainClass , @ javax.annotation.Nonnull java.io.File [ ] dexFiles ) throws java.lang.Exception { java.util.List < com.android.jack.test.runner.RuntimeRunner > runnerList = com.android.jack.test.toolchain.AbstractTestTools.listRuntimeTestRunners ( ) ; for ( com.android.jack.test.runner.RuntimeRunner runner : runnerList ) { org.junit.Assert.assertEquals ( 0 , runner.runJUnit ( new java.lang.String [ 0 ] , AbstractTestTools.JUNIT_RUNNER_NAME , new java.lang.String [ ] { mainClass } , dexFiles ) ) ; } }
Source:
public void testNonBlockingRecv ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; try { dc.configureBlocking ( false ) ; dc.socket ( ) . bind ( null ) ; assertNull ( dc.receive ( java.nio.ByteBuffer.allocate ( 2048 ) ) ) ; } finally { dc.close ( ) ; } }

Target:
public void testNonBlockingRecv ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; try { dc.configureBlocking ( false ) ; dc.bind ( null ) ; assertNull ( dc.receive ( java.nio.ByteBuffer.allocate ( 2048 ) ) ) ; } finally { dc.close ( ) ; } }
Source:
public synchronized void release ( ) throws java.io.IOException { java.nio.channels.Channel ch = acquiredBy ( ) ; if ( ! ( ch.isOpen ( ) ) ) throw new java.nio.channels.ClosedChannelException ( ) ; if ( valid ) { if ( ch instanceof sun.nio.ch.FileChannelImpl ) ( ( sun.nio.ch.FileChannelImpl ) ( ch ) ) . release ( this ) ; else if ( ch instanceof sun.nio.ch.AsynchronousFileChannelImpl ) ( ( sun.nio.ch.AsynchronousFileChannelImpl ) ( ch ) ) . release ( this ) ; else throw new java.lang.AssertionError ( ) ; valid = false ; } }

Target:
public synchronized void release ( ) throws java.io.IOException { java.nio.channels.Channel ch = acquiredBy ( ) ; if ( ! ( ch.isOpen ( ) ) ) throw new java.nio.channels.ClosedChannelException ( ) ; if ( valid ) { if ( ch instanceof sun.nio.ch.FileChannelImpl ) ( ( sun.nio.ch.FileChannelImpl ) ( ch ) ) . release ( this ) ; else throw new java.lang.AssertionError ( ) ; valid = false ; } }
Source:
public void onListenerConnected ( ) { if ( com.android.systemui.statusbar.BaseStatusBar.DEBUG ) android.util.Log.d ( com.android.systemui.statusbar.BaseStatusBar.TAG , "onListenerConnected" ) ; final android.service.notification.StatusBarNotification [ ] notifications = getActiveNotifications ( ) ; if ( notifications == null ) { android.util.Log.w ( com.android.systemui.statusbar.BaseStatusBar.TAG , "onListenerConnected unable to get active notifications." ) ; return ; } final android.service.notification.NotificationListenerService.RankingMap currentRanking = getCurrentRanking ( ) ; mHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { for ( android.service.notification.StatusBarNotification sbn : notifications ) { addNotification ( sbn , currentRanking , null ) ; } } } ) ; }

Target:
public void onListenerConnected ( ) { if ( com.android.systemui.statusbar.BaseStatusBar.DEBUG ) android.util.Log.d ( com.android.systemui.statusbar.BaseStatusBar.TAG , "onListenerConnected" ) ; final android.service.notification.StatusBarNotification [ ] notifications = getActiveNotifications ( ) ; final android.service.notification.NotificationListenerService.RankingMap currentRanking = getCurrentRanking ( ) ; mHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { for ( android.service.notification.StatusBarNotification sbn : notifications ) { addNotification ( sbn , currentRanking , null ) ; } } } ) ; }
Source:
public void testStyleables2 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "int[] styleable LimitedSizeLinearLayout { 0x7f010000, 0x7f010001 }\n" + ( ( "int styleable LimitedSizeLinearLayout_max_height 1\n" + "int styleable LimitedSizeLinearLayout_max_width 0\n" ) + "int xml authenticator 0x7f040000\n" ) ) , ( "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " *\n" + " * This class was automatically generated by the\n" ) + " * aapt tool from the resource data it found. It\n" ) + " * should not be modified by hand.\n" ) + " */\n" ) + "package test.pkg;\n" ) + "\n" ) + "public final class R {\n" ) + " public static final class styleable {\n" ) + " public static final int LimitedSizeLinearLayout_max_height = 1;\n" ) + " public static final int LimitedSizeLinearLayout_max_width = 0;\n" ) + " public static final int[] LimitedSizeLinearLayout = { 0x7f010000, 0x7f010001 };\n" ) + " }\n" ) + " public static final class xml {\n" ) + " public static final int authenticator = 0x7f040000;\n" ) + " }\n" ) + "}\n" ) ) ) ; }

Target:
public void testStyleables2 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "int[] styleable LimitedSizeLinearLayout { 0x7f010000, 0x7f010001 }\n" + ( ( "int styleable LimitedSizeLinearLayout_max_height 1\n" + "int styleable LimitedSizeLinearLayout_max_width 0\n" ) + "int xml authenticator 0x7f040000\n" ) ) , ( "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " *\n" + " * This class was automatically generated by the\n" ) + " * aapt tool from the resource data it found. It\n" ) + " * should not be modified by hand.\n" ) + " */\n" ) + "package test.pkg;\n" ) + "\n" ) + "public final class R {\n" ) + " public static final class styleable {\n" ) + " public static final int[] LimitedSizeLinearLayout = { 0x7f010000, 0x7f010001 };\n" ) + " public static final int LimitedSizeLinearLayout_max_height = 1;\n" ) + " public static final int LimitedSizeLinearLayout_max_width = 0;\n" ) + " }\n" ) + " public static final class xml {\n" ) + " public static final int authenticator = 0x7f040000;\n" ) + " }\n" ) + "}\n" ) ) ) ; }
Source:
public void onClick ( android.view.View view ) { android.content.Intent shareIntent = new android.content.Intent ( android.content.Intent.ACTION_SEND ) ; shareIntent.putExtra ( Intent.EXTRA_STREAM , uri ) ; shareIntent.setType ( "image/jpg" ) ; shareIntent.addFlags ( Intent.FLAG_GRANT_READ_URI_PERMISSION ) ; shareIntent.setClassName ( com.android.cts.verifier.managedprovisioning.NfcTestActivity.NFC_BEAM_PACKAGE , com.android.cts.verifier.managedprovisioning.NfcTestActivity.NFC_BEAM_ACTIVITY ) ; try { startActivity ( shareIntent ) ; } catch ( android.content.ActivityNotFoundException e ) { android.widget.Toast.makeText ( this , R.string.provisioning_byod_cannot_resolve_beam_activity , Toast.LENGTH_SHORT ) . show ( ) ; android.util.Log.e ( com.android.cts.verifier.managedprovisioning.NfcTestActivity.TAG , "Nfc beam activity not found" , e ) ; } }

Target:
public void onClick ( android.view.View view ) { shareIntent.setClassName ( com.android.cts.verifier.managedprovisioning.NfcTestActivity.NFC_BEAM_PACKAGE , com.android.cts.verifier.managedprovisioning.NfcTestActivity.NFC_BEAM_ACTIVITY ) ; try { startActivity ( shareIntent ) ; } catch ( android.content.ActivityNotFoundException e ) { android.widget.Toast.makeText ( this , R.string.provisioning_byod_cannot_resolve_beam_activity , Toast.LENGTH_SHORT ) . show ( ) ; android.util.Log.e ( com.android.cts.verifier.managedprovisioning.NfcTestActivity.TAG , "Nfc beam activity not found" , e ) ; } }
Source:
public void testFailed ( com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { java.lang.String statusString ; if ( status == ( TestFailure.ERROR ) ) { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_ERROR ; } else { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_FAILED ; } org.eclipse.jdt.internal.junit.runner.TestReferenceFailure failure = new org.eclipse.jdt.internal.junit.runner.TestReferenceFailure ( new com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestCaseReference ( mDeviceName , test ) , statusString , trace , null ) ; mNotifier.testFailed ( failure ) ; }

Target:
public void testFailed ( com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { org.eclipse.jdt.internal.junit.runner.TestReferenceFailure failure = new org.eclipse.jdt.internal.junit.runner.TestReferenceFailure ( new com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestCaseReference ( mDeviceName , test ) , org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_FAILED , trace , null ) ; mNotifier.testFailed ( failure ) ; }
Source:
public void run ( ) { synchronized ( this ) { if ( ( this . image ) != null ) { this . image.dispose ( ) ; } this . image = image ; this . viewNode = viewNode ; this . selected = null ; } }

Target:
public void run ( ) { synchronized ( this ) { this . viewNode = viewNode ; this . selected = null ; } }
Source:
public boolean startWpsRegistrar ( java.lang.String bssid , java.lang.String pin ) { if ( ( android.text.TextUtils.isEmpty ( bssid ) ) || ( android.text.TextUtils.isEmpty ( pin ) ) ) return false ; if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.startWpsRegistrar ( bssid , pin ) ; } else { return doBooleanCommand ( ( ( ( "WPS_REG " + bssid ) + " " ) + pin ) ) ; } }

Target:
public boolean startWpsRegistrar ( java.lang.String bssid , java.lang.String pin ) { return mSupplicantStaIfaceHal.startWpsRegistrar ( bssid , pin ) ; }
Source:
public static com.android.dialer.contactsfragment.ContactsFragment newInstance ( @ com.android.dialer.contactsfragment.ContactsFragment.Header int header , @ com.android.dialer.contactsfragment.ContactsFragment.ClickAction int clickAction ) { com.android.dialer.common.Assert.checkArgument ( ( clickAction != ( com.android.dialer.contactsfragment.ContactsFragment.ClickAction.INVALID ) ) , "Invalid click action" ) ; com.android.dialer.contactsfragment.ContactsFragment fragment = new com.android.dialer.contactsfragment.ContactsFragment ( ) ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( com.android.dialer.contactsfragment.ContactsFragment.EXTRA_HEADER , header ) ; args.putInt ( com.android.dialer.contactsfragment.ContactsFragment.EXTRA_CLICK_ACTION , clickAction ) ; fragment.setArguments ( args ) ; return fragment ; }

Target:
public static com.android.dialer.contactsfragment.ContactsFragment newInstance ( @ com.android.dialer.contactsfragment.ContactsFragment.Header int header ) { com.android.dialer.contactsfragment.ContactsFragment fragment = new com.android.dialer.contactsfragment.ContactsFragment ( ) ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( com.android.dialer.contactsfragment.ContactsFragment.EXTRA_HEADER , header ) ; fragment.setArguments ( args ) ; return fragment ; }
Source:
public boolean visit ( org.eclipse.jdt.internal.compiler.ast.TryStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { if ( ( x.catchBlocks ) != null ) { for ( org.eclipse.jdt.internal.compiler.ast.Argument argument : x.catchArguments ) { createLocal ( argument ) ; } } return true ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public boolean visit ( org.eclipse.jdt.internal.compiler.ast.TryStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { if ( ( x.catchBlocks ) != null ) { for ( org.eclipse.jdt.internal.compiler.ast.Argument argument : x.catchArguments ) { createLocal ( argument ) ; } } return true ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public void test_parse_h_z_2DigitOffsetFromGMT_doesNotParse ( ) throws java.lang.Exception { java.text.SimpleDateFormat pFormat = new java.text.SimpleDateFormat ( "h z" , java.util.Locale.ENGLISH ) ; try { pFormat.parse ( "14 GMT-23" ) ; } catch ( java.text.ParseException expected ) { } try { pFormat.parse ( "14 GMT+23" ) ; } catch ( java.text.ParseException expected ) { } }

Target:
public void test_parse_h_z_2DigitOffsetFromGMT_doesNotParse ( ) throws java.lang.Exception { java.text.SimpleDateFormat pFormat = new java.text.SimpleDateFormat ( "h z" , java.util.Locale.ENGLISH ) ; try { pFormat.parse ( "14 GMT-23" ) ; fail ( ) ; } catch ( java.text.ParseException expected ) { } try { pFormat.parse ( "14 GMT+23" ) ; fail ( ) ; } catch ( java.text.ParseException expected ) { } }
Source:
public static java.util.List < libcore.Repository > openJdkLegacy ( java.nio.file.Path upstreamRoot , java.util.List < java.lang.String > upstreamNames ) { java.util.List < java.lang.String > sourceDirs = java.util.Arrays.asList ( "jdk/src/share/classes" , "jdk/src/solaris/classes" ) ; java.util.List < libcore.Repository > result = new java.util.ArrayList < > ( ) ; for ( java.lang.String upstreamName : upstreamNames ) { result.add ( new libcore.Repository.OpenJdkRepository ( upstreamRoot , upstreamName , sourceDirs ) ) ; } return java.util.Collections.unmodifiableList ( result ) ; }

Target:
public static java.util.List < libcore.Repository > openJdkLegacy ( java.nio.file.Path upstreamRoot , java.util.List < java.lang.String > upstreamNames ) { java.util.List < libcore.Repository > result = new java.util.ArrayList < > ( ) ; for ( java.lang.String upstreamName : upstreamNames ) { result.add ( libcore.Repository.openJdkLegacy ( upstreamRoot , upstreamName ) ) ; } return java.util.Collections.unmodifiableList ( result ) ; }
Source:
public void test_getI ( ) { assertTrue ( "Returned incorrect element" , ( ( alist.get ( 22 ) ) == ( objArray [ 22 ] ) ) ) ; try { alist.get ( 8765 ) ; fail ( "Failed to throw expected exception for index > size" ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { } }

Target:
public void test_getI ( ) { assertTrue ( "Returned incorrect element" , ( ( alist.get ( 22 ) ) == ( objArray [ 22 ] ) ) ) ; try { alist.get ( 8765 ) ; fail ( "Failed to throw expected exception for index > size" ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { assertNotNull ( e.getMessage ( ) ) ; } }
Source:
static boolean nativeEquals ( int native_r1 , int native_r2 ) { android.graphics.Region_Delegate region1 = android.graphics.Region_Delegate.sManager.getDelegate ( native_r1 ) ; if ( region1 == null ) { return false ; } android.graphics.Region_Delegate region2 = android.graphics.Region_Delegate.sManager.getDelegate ( native_r2 ) ; if ( region2 == null ) { return false ; } return region1.mArea.equals ( region2.mArea ) ; }

Target:
static boolean nativeEquals ( long native_r1 , long native_r2 ) { android.graphics.Region_Delegate region1 = android.graphics.Region_Delegate.sManager.getDelegate ( native_r1 ) ; if ( region1 == null ) { return false ; } android.graphics.Region_Delegate region2 = android.graphics.Region_Delegate.sManager.getDelegate ( native_r2 ) ; if ( region2 == null ) { return false ; } return region1.mArea.equals ( region2.mArea ) ; }
Source:
public void configure ( org.bouncycastle.jcajce.provider.config.ConfigurableProvider provider ) { provider.addAlgorithm ( "KeyStore.BKS" , ( ( org.bouncycastle.jcajce.provider.keystore.BC.PREFIX ) + "BcKeyStoreSpi$Std" ) ) ; provider.addAlgorithm ( "KeyStore.BKS-V1" , ( ( org.bouncycastle.jcajce.provider.keystore.BC.PREFIX ) + "BcKeyStoreSpi$Version1" ) ) ; provider.addAlgorithm ( "KeyStore.BouncyCastle" , ( ( org.bouncycastle.jcajce.provider.keystore.BC.PREFIX ) + "BcKeyStoreSpi$BouncyCastleStore" ) ) ; provider.addAlgorithm ( "Alg.Alias.KeyStore.UBER" , "BouncyCastle" ) ; provider.addAlgorithm ( "Alg.Alias.KeyStore.BOUNCYCASTLE" , "BouncyCastle" ) ; provider.addAlgorithm ( "Alg.Alias.KeyStore.bouncycastle" , "BouncyCastle" ) ; }

Target:
public void configure ( org.bouncycastle.jcajce.provider.config.ConfigurableProvider provider ) { provider.addAlgorithm ( "KeyStore.BKS" , ( ( org.bouncycastle.jcajce.provider.keystore.BC.PREFIX ) + "BcKeyStoreSpi$Std" ) ) ; provider.addAlgorithm ( "KeyStore.BouncyCastle" , ( ( org.bouncycastle.jcajce.provider.keystore.BC.PREFIX ) + "BcKeyStoreSpi$BouncyCastleStore" ) ) ; provider.addAlgorithm ( "Alg.Alias.KeyStore.UBER" , "BouncyCastle" ) ; provider.addAlgorithm ( "Alg.Alias.KeyStore.BOUNCYCASTLE" , "BouncyCastle" ) ; provider.addAlgorithm ( "Alg.Alias.KeyStore.bouncycastle" , "BouncyCastle" ) ; }
Source:
public static void setName ( int id , java.lang.String name ) { try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.incModCount ( id ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.putRecordInt ( id , com.intellij.openapi.vfs.newvfs.persistent.FSRecords.NAME_OFFSET , com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getNames ( ) . enumerate ( name ) ) ; } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }

Target:
public static void setName ( int id , java.lang.String name ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.incModCount ( id ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.putRecordInt ( id , com.intellij.openapi.vfs.newvfs.persistent.FSRecords.NAME_OFFSET , com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getNames ( ) . enumerate ( name ) ) ; } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }
Source:
private com.android.jack.Options createCommonOptionsForMultiDex ( @ javax.annotation.Nonnull java.io.File configFile ) throws java.io.IOException { java.io.File tmpOut = com.android.jack.TestTools.createTempDir ( "tmp" , "" ) ; com.android.jack.Options app1Options = new com.android.jack.Options ( ) ; app1Options.addProperty ( Options.TYPEDEX_DIR.getName ( ) , tmpOut.getPath ( ) ) ; app1Options.addProperty ( MultiDexLegacy.MULTIDEX_LEGACY.getName ( ) , "true" ) ; app1Options.addProperty ( PreProcessor.ENABLE.getName ( ) , "true" ) ; app1Options.addProperty ( PreProcessor.FILE.getName ( ) , configFile.getAbsolutePath ( ) ) ; return app1Options ; }

Target:
private com.android.jack.Options createCommonOptionsForMultiDex ( @ javax.annotation.Nonnull java.io.File configFile ) { com.android.jack.Options app1Options = new com.android.jack.Options ( ) ; app1Options.addProperty ( MultiDexLegacy.MULTIDEX_LEGACY.getName ( ) , "true" ) ; app1Options.addProperty ( PreProcessor.ENABLE.getName ( ) , "true" ) ; app1Options.addProperty ( PreProcessor.FILE.getName ( ) , configFile.getAbsolutePath ( ) ) ; return app1Options ; }
Source:
public static synchronized void loadPreferences ( android.content.Context context ) { if ( ( ( com.android.tv.tuner.TunerPreferences.sLoadPreferencesTask ) != null ) && ( ( com.android.tv.tuner.TunerPreferences.sLoadPreferencesTask.getStatus ( ) ) != ( AsyncTask.Status.FINISHED ) ) ) { com.android.tv.tuner.TunerPreferences.sLoadPreferencesTask.cancel ( true ) ; } com.android.tv.tuner.TunerPreferences.sLoadPreferencesTask = new com.android.tv.tuner.TunerPreferences.LoadPreferencesTask ( context ) ; com.android.tv.tuner.TunerPreferences.sLoadPreferencesTask.execute ( ) ; }

Target:
public static void loadPreferences ( android.content.Context context ) { if ( ( ( com.android.tv.tuner.TunerPreferences.sLoadPreferencesTask ) != null ) && ( ( com.android.tv.tuner.TunerPreferences.sLoadPreferencesTask.getStatus ( ) ) != ( AsyncTask.Status.FINISHED ) ) ) { com.android.tv.tuner.TunerPreferences.sLoadPreferencesTask.cancel ( true ) ; } com.android.tv.tuner.TunerPreferences.sLoadPreferencesTask = new com.android.tv.tuner.TunerPreferences.LoadPreferencesTask ( context ) ; com.android.tv.tuner.TunerPreferences.sLoadPreferencesTask.execute ( ) ; }
Source:
public void test_close ( ) throws java.lang.Exception { zos = new java.util.zip.ZipOutputStream ( bos ) ; zos.putNextEntry ( new java.util.zip.ZipEntry ( "XX" ) ) ; zos.closeEntry ( ) ; zos.close ( ) ; java.util.zip.ZipOutputStream zos = new java.util.zip.ZipOutputStream ( new java.io.ByteArrayOutputStream ( ) ) ; zos.putNextEntry ( new java.util.zip.ZipEntry ( "myFile" ) ) ; zos.close ( ) ; zos.close ( ) ; }

Target:
public void test_close ( ) throws java.lang.Exception { zos.putNextEntry ( new java.util.zip.ZipEntry ( "XX" ) ) ; zos.closeEntry ( ) ; zos.close ( ) ; java.util.zip.ZipOutputStream zos = new java.util.zip.ZipOutputStream ( new java.io.ByteArrayOutputStream ( ) ) ; zos.putNextEntry ( new java.util.zip.ZipEntry ( "myFile" ) ) ; zos.close ( ) ; zos.close ( ) ; }
Source:
private final java.security.cert.X509Certificate getCertificate ( java.security.cert.CertificateFactory f , java.lang.String name ) throws java.lang.Exception { final java.io.InputStream is = tests.support.resource.Support_Resources.getStream ( name ) ; assertNotNull ( ( "File does not exist: " + name ) , is ) ; try { return ( ( java.security.cert.X509Certificate ) ( f.generateCertificate ( is ) ) ) ; } finally { try { is.close ( ) ; } catch ( java.io.IOException ignored ) { } } }

Target:
private final java.security.cert.X509Certificate getCertificate ( java.security.cert.CertificateFactory f , java.lang.String name ) throws java.lang.Exception { final java.io.InputStream is = tests.support.resource.Support_Resources.getStream ( name ) ; assertNotNull ( ( "File does not exist: " + name ) , is ) ; try { java.security.cert.X509Certificate c = ( ( java.security.cert.X509Certificate ) ( f.generateCertificate ( is ) ) ) ; assertNotNull ( c ) ; return c ; } finally { try { is.close ( ) ; } catch ( java.io.IOException ignored ) { } } }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String pkgName , java.lang.String instructionSet , int dexoptNeeded , boolean vmSafeMode , boolean debuggable , @ android.annotation.Nullable java.lang.String outputPath ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , pkgName , instructionSet , dexoptNeeded , vmSafeMode , debuggable , outputPath ) ; }

Target:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String pkgName , java.lang.String instructionSet , int dexoptNeeded , boolean vmSafeMode , boolean debuggable , @ android.annotation.Nullable java.lang.String outputPath ) { return dexopt ( apkPath , uid , isPublic , pkgName , instructionSet , dexoptNeeded , vmSafeMode , debuggable , outputPath , true ) ; }
Source:
private static void assertImeiCheckDigit ( java.lang.String deviceId ) { int expectedCheckDigit = android.telephony.cts.TelephonyManagerTest.getLuhnCheckDigit ( deviceId.substring ( 0 , 14 ) ) ; int actualCheckDigit = java.lang.Character.digit ( deviceId.charAt ( 14 ) , 10 ) ; assertEquals ( ( "Incorrect check digit for " + deviceId ) , expectedCheckDigit , actualCheckDigit ) ; }

Target:
private static void assertImeiCheckDigit ( java.lang.String deviceId ) { int expectedCheckDigit = android.telephony.cts.TelephonyManagerTest.getLuhnCheckDigit ( deviceId.substring ( 0 , 14 ) ) ; int actualCheckDigit = java.lang.Character.digit ( deviceId.charAt ( 14 ) , 10 ) ; org.junit.Assert.assertEquals ( ( "Incorrect check digit for " + deviceId ) , expectedCheckDigit , actualCheckDigit ) ; }
Source:
public void test_SSLEngine_clientAuthWantedNoClientCert ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLContext clientAuthContext = libcore.javax.net.ssl.TestSSLContext.create ( libcore.java.security.TestKeyStore.getClient ( ) , libcore.java.security.TestKeyStore.getServer ( ) ) ; libcore.javax.net.ssl.TestSSLEnginePair p = libcore.javax.net.ssl.TestSSLEnginePair.create ( clientAuthContext , new libcore.javax.net.ssl.TestSSLEnginePair.Hooks ( ) { @ java.lang.Override void beforeBeginHandshake ( javax.net.ssl.SSLEngine client , javax.net.ssl.SSLEngine server ) { server.setWantClientAuth ( true ) ; } } ) ; assertConnected ( p ) ; clientAuthContext.close ( ) ; }

Target:
public void test_SSLEngine_clientAuthWantedNoClientCert ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLContext clientAuthContext = libcore.javax.net.ssl.TestSSLContext.create ( libcore.java.security.TestKeyStore.getClient ( ) , libcore.java.security.TestKeyStore.getServer ( ) ) ; libcore.javax.net.ssl.TestSSLEnginePair p = libcore.javax.net.ssl.TestSSLEnginePair.create ( clientAuthContext , new libcore.javax.net.ssl.TestSSLEnginePair.Hooks ( ) { @ java.lang.Override void beforeBeginHandshake ( javax.net.ssl.SSLEngine client , javax.net.ssl.SSLEngine server ) { server.setWantClientAuth ( true ) ; } } ) ; assertConnected ( p ) ; clientAuthContext.close ( ) ; p.close ( ) ; }
Source:
public boolean performDexOpt ( java.lang.String packageName , boolean updateUsage ) { android.content.pm.PackageParser.Package p ; synchronized ( mPackages ) { p = mPackages.get ( packageName ) ; if ( p == null ) { return false ; } if ( updateUsage ) { p.mLastPackageUsageTimeInMills = java.lang.System.currentTimeMillis ( ) ; } mPackageUsage.write ( ) ; if ( ! ( p.mDexOptNeeded ) ) { return false ; } } synchronized ( mInstallLock ) { return ( performDexOptLI ( p , false , false , true ) ) == ( com.android.server.pm.PackageManagerService.DEX_OPT_PERFORMED ) ; } }

Target:
public boolean performDexOpt ( java.lang.String packageName , boolean updateUsage ) { android.content.pm.PackageParser.Package p ; synchronized ( mPackages ) { p = mPackages.get ( packageName ) ; if ( p == null ) { return false ; } if ( updateUsage ) { p.mLastPackageUsageTimeInMills = java.lang.System.currentTimeMillis ( ) ; } mPackageUsage.write ( false ) ; if ( ! ( p.mDexOptNeeded ) ) { return false ; } } synchronized ( mInstallLock ) { return ( performDexOptLI ( p , false , false , true ) ) == ( com.android.server.pm.PackageManagerService.DEX_OPT_PERFORMED ) ; } }
Source:
public static void computeCeil ( android.renderscript.cts.TestCeil.ArgumentsFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 0 , 1 , false ) ; android.renderscript.cts.Target.Floaty in = t.new32 ( args.in ) ; args.out = t.new32 ( android.renderscript.cts.CoreMathVerifier.ceil ( in.mid32 ( ) ) , android.renderscript.cts.CoreMathVerifier.ceil ( in.min32 ( ) ) , android.renderscript.cts.CoreMathVerifier.ceil ( in.max32 ( ) ) ) ; }

Target:
public static void computeCeil ( android.renderscript.cts.TestCeil.ArgumentsFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 0 , 1 , false ) ; android.renderscript.cts.Target.Floaty in = t.new32 ( args.inV ) ; args.out = t.new32 ( android.renderscript.cts.CoreMathVerifier.ceil ( in.mid32 ( ) ) , android.renderscript.cts.CoreMathVerifier.ceil ( in.min32 ( ) ) , android.renderscript.cts.CoreMathVerifier.ceil ( in.max32 ( ) ) ) ; }
Source:
private org.apache.harmony.dalvik.ddmc.Chunk handleMPSS ( org.apache.harmony.dalvik.ddmc.Chunk request ) { java.nio.ByteBuffer in = wrapChunk ( request ) ; int bufferSize = in.getInt ( ) ; int flags = in.getInt ( ) ; if ( false ) { android.util.Log.v ( "ddm-heap" , ( ( ( "Method prof stream start: size=" + bufferSize ) + ", flags=" ) + flags ) ) ; } try { android.os.Debug.startMethodTracingDdms ( bufferSize , flags ) ; return null ; } catch ( java.lang.RuntimeException re ) { return createFailChunk ( 1 , re.getMessage ( ) ) ; } }

Target:
private org.apache.harmony.dalvik.ddmc.Chunk handleMPSS ( org.apache.harmony.dalvik.ddmc.Chunk request ) { java.nio.ByteBuffer in = wrapChunk ( request ) ; int bufferSize = in.getInt ( ) ; int flags = in.getInt ( ) ; if ( false ) { android.util.Log.v ( "ddm-heap" , ( ( ( "Method prof stream start: size=" + bufferSize ) + ", flags=" ) + flags ) ) ; } try { android.os.Debug.startMethodTracingDdms ( bufferSize , flags , false , 0 ) ; return null ; } catch ( java.lang.RuntimeException re ) { return createFailChunk ( 1 , re.getMessage ( ) ) ; } }
Source:
public static synchronized void removeProvider ( java.lang.String name ) { java.security.Security.check ( ( "removeProvider." + name ) ) ; sun.security.jca.ProviderList list = sun.security.jca.Providers.getFullProviderList ( ) ; sun.security.jca.ProviderList newList = sun.security.jca.ProviderList.remove ( list , name ) ; sun.security.jca.Providers.setProviderList ( newList ) ; java.security.Security.increaseVersion ( ) ; }

Target:
public static synchronized void removeProvider ( java.lang.String name ) { sun.security.jca.ProviderList list = sun.security.jca.Providers.getFullProviderList ( ) ; sun.security.jca.ProviderList newList = sun.security.jca.ProviderList.remove ( list , name ) ; sun.security.jca.Providers.setProviderList ( newList ) ; java.security.Security.increaseVersion ( ) ; }
Source:
public void testStageInstallWithErrorCode_withBadlyFormedRulesVersion ( ) throws java.lang.Exception { com.android.timezone.distro.DistroVersion validDistroVersion = new com.android.timezone.distro.DistroVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidRulesVersionBytes = validDistroVersion.toBytes ( ) ; invalidRulesVersionBytes [ ( ( invalidRulesVersionBytes.length ) - 6 ) ] = 'B' ; com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createTimeZoneDistroWithVersionBytes ( invalidRulesVersionBytes ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_withBadlyFormedRulesVersion ( ) throws java.lang.Exception { com.android.timezone.distro.DistroVersion validDistroVersion = new com.android.timezone.distro.DistroVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidRulesVersionBytes = validDistroVersion.toBytes ( ) ; invalidRulesVersionBytes [ ( ( invalidRulesVersionBytes.length ) - 6 ) ] = 'B' ; com.android.timezone.distro.TimeZoneDistro distro = createTimeZoneDistroWithVersionBytes ( invalidRulesVersionBytes ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( distro ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }
Source:
public void test_getSoLinger ( ) throws java.lang.Exception { java.net.ServerSocket server = new java.net.ServerSocket ( 0 ) ; java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , server.getLocalPort ( ) ) ; client.setSoLinger ( true , 200 ) ; assertEquals ( "Returned incorrect linger" , 200 , client.getSoLinger ( ) ) ; client.setSoLinger ( false , 0 ) ; client.close ( ) ; server.close ( ) ; }

Target:
public void test_getSoLinger ( ) throws java.lang.Exception { try ( java.net.ServerSocket server = new java.net.ServerSocket ( 0 ) ; java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , server.getLocalPort ( ) ) ) { client.setSoLinger ( true , 200 ) ; assertEquals ( "Returned incorrect linger" , 200 , client.getSoLinger ( ) ) ; client.setSoLinger ( false , 0 ) ; } }
Source:
private static void printClassInstanceFields ( com.android.ahat.Doc doc , com.android.ahat.Query query , com.android.ahat.heapdump.AhatClassInstance inst ) { doc.section ( "Fields" ) ; com.android.ahat.heapdump.AhatInstance base = inst.getBaseline ( ) ; com.android.ahat.ObjectHandler.printFields ( doc , query , com.android.ahat.ObjectHandler.INSTANCE_FIELDS_ID , ( ! ( base.isPlaceHolder ( ) ) ) , inst.asClassInstance ( ) . getInstanceFields ( ) , ( base.isPlaceHolder ( ) ? null : base.asClassInstance ( ) . getInstanceFields ( ) ) ) ; }

Target:
private static void printClassInstanceFields ( com.android.ahat.Doc doc , com.android.ahat.Query query , com.android.ahat.heapdump.AhatClassInstance inst ) { doc.section ( "Fields" ) ; com.android.ahat.heapdump.AhatInstance base = inst.getBaseline ( ) ; com.android.ahat.ObjectHandler.printFields ( doc , query , com.android.ahat.ObjectHandler.INSTANCE_FIELDS_ID , ( ( inst != base ) && ( ! ( base.isPlaceHolder ( ) ) ) ) , inst.asClassInstance ( ) . getInstanceFields ( ) , ( base.isPlaceHolder ( ) ? null : base.asClassInstance ( ) . getInstanceFields ( ) ) ) ; }
Source:
private static void showHint ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.editor.Editor editor , @ org.jetbrains.annotations.NotNull java.lang.String info ) { javax.swing.JComponent component = com.intellij.codeInsight.hint.HintUtil.createInformationLabel ( info ) ; com.intellij.ui.LightweightHint hint = new com.intellij.ui.LightweightHint ( component ) ; com.intellij.codeInsight.hint.HintManagerImpl.getInstanceImpl ( ) . showEditorHint ( hint , editor , HintManager.UNDER , ( ( ( com.intellij.codeInsight.hint.HintManager.HIDE_BY_ANY_KEY ) | ( com.intellij.codeInsight.hint.HintManager.HIDE_BY_TEXT_CHANGE ) ) | ( com.intellij.codeInsight.hint.HintManager.HIDE_BY_SCROLLING ) ) , 0 , false ) ; }

Target:
public static void showHint ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.editor.Editor editor , @ org.jetbrains.annotations.NotNull java.lang.String info ) { javax.swing.JComponent component = com.intellij.codeInsight.hint.HintUtil.createInformationLabel ( info ) ; com.intellij.ui.LightweightHint hint = new com.intellij.ui.LightweightHint ( component ) ; com.intellij.codeInsight.hint.HintManagerImpl.getInstanceImpl ( ) . showEditorHint ( hint , editor , HintManager.UNDER , ( ( ( com.intellij.codeInsight.hint.HintManager.HIDE_BY_ANY_KEY ) | ( com.intellij.codeInsight.hint.HintManager.HIDE_BY_TEXT_CHANGE ) ) | ( com.intellij.codeInsight.hint.HintManager.HIDE_BY_SCROLLING ) ) , 0 , false ) ; }
Source:
void selectTheme ( java.lang.String theme ) { assert ( theme.startsWith ( com.android.ide.common.resources.ResourceResolver.PREFIX_STYLE ) ) || ( theme.startsWith ( com.android.ide.common.resources.ResourceResolver.PREFIX_ANDROID_STYLE ) ) ; mThemeCombo.setData ( theme ) ; if ( theme != null ) { mThemeCombo.setText ( getThemeLabel ( theme , true ) ) ; } else { mThemeCombo.setText ( "(Set Theme)" ) ; } resizeToolBar ( ) ; }

Target:
void selectTheme ( java.lang.String theme ) { assert ( theme.startsWith ( com.android.ide.common.resources.ResourceResolver.PREFIX_STYLE ) ) || ( theme.startsWith ( com.android.ide.common.resources.ResourceResolver.PREFIX_ANDROID_STYLE ) ) : theme ; mThemeCombo.setData ( theme ) ; if ( theme != null ) { mThemeCombo.setText ( getThemeLabel ( theme , true ) ) ; } else { mThemeCombo.setText ( "(Set Theme)" ) ; } resizeToolBar ( ) ; }
Source:
public void rm ( java.io.File file ) { new vogar.commands.Command.Builder ( log ) . args ( "ssh" , "-p" , java.lang.Integer.toString ( port ) , host , "-C" , "rm" , "-r" , file.getPath ( ) ) . permitNonZeroExitStatus ( ) . execute ( ) ; }

Target:
public void rm ( java.io.File file ) { new vogar.commands.Command.Builder ( log ) . args ( "ssh" , "-p" , java.lang.Integer.toString ( port ) , host , "-C" , "rm" , "-r" , file.getPath ( ) ) . permitNonZeroExitStatus ( true ) . execute ( ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { Main.holder = new char [ 128 * 1024 ] [ ] ; if ( Main.triggerArrayOOM ( Main.holder ) ) { java.lang.System.out.println ( "NEW_ARRAY correctly threw OOME" ) ; } if ( ! ( Main.triggerInstanceFinalizerOOM ( ) ) ) { java.lang.System.out.println ( "NEW_INSTANCE (finalize) did not threw OOME" ) ; } if ( Main.triggerInstanceOOM ( ) ) { java.lang.System.out.println ( "NEW_INSTANCE correctly threw OOME" ) ; } }

Target:
public static void main ( java.lang.String [ ] args ) { if ( Main.triggerArrayOOM ( ) ) { java.lang.System.out.println ( "NEW_ARRAY correctly threw OOME" ) ; } if ( Main.triggerInstanceOOM ( ) ) { java.lang.System.out.println ( "NEW_INSTANCE correctly threw OOME" ) ; } }
Source:
public void close ( ) throws java.io.IOException { if ( closed ) { return ; } closed = true ; try { obuffer = cipher.doFinal ( ) ; } catch ( javax.crypto.IllegalBlockSizeException | javax.crypto.BadPaddingException e ) { obuffer = null ; } try { flush ( ) ; } catch ( java.io.IOException ignored ) { } out.close ( ) ; }

Target:
public void close ( ) throws java.io.IOException { if ( closed ) { return ; } closed = true ; try { obuffer = cipher.doFinal ( ) ; } catch ( javax.crypto.IllegalBlockSizeException | javax.crypto.BadPaddingException e ) { obuffer = null ; throw new java.io.IOException ( e ) ; } try { flush ( ) ; } catch ( java.io.IOException ignored ) { } out.close ( ) ; }
Source:
public void traverse ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.visit ( this ) ) { visitor.accept ( lhs ) ; for ( com.android.jack.ir.ast.JSsaVariableRef rhsVar : rhs.values ( ) ) { if ( rhsVar == null ) { throw new java.lang.RuntimeException ( "this can't be that good for business" ) ; } visitor.accept ( rhsVar ) ; } } visitor.endVisit ( this ) ; }

Target:
public void traverse ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.visit ( this ) ) { visitor.accept ( lhs ) ; for ( int i = 0 ; i < ( rhs.length ) ; i ++ ) { visitor.accept ( rhs [ i ] ) ; } } visitor.endVisit ( this ) ; }
Source:
private void addDependencies ( @ javax.annotation.Nonnull java.util.List < java.lang.String > filesToRecompile , @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.util.Set < java.lang.String > > typeRecompileDependencies , @ javax.annotation.Nonnull java.util.Set < java.lang.String > fileNames ) { for ( java.lang.String fileName : fileNames ) { if ( ! ( filesToRecompile.contains ( fileName ) ) ) { filesToRecompile.add ( fileName ) ; for ( java.lang.String dependencyFileName : getDependencyFileNamesToRecompile ( typeRecompileDependencies , fileName ) ) { if ( ! ( filesToRecompile.contains ( dependencyFileName ) ) ) { filesToRecompile.add ( dependencyFileName ) ; } } } } }

Target:
private void addDependencies ( @ javax.annotation.Nonnull java.util.Set < java.lang.String > filesToRecompile , @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.util.Set < java.lang.String > > typeRecompileDependencies , @ javax.annotation.Nonnull java.util.Set < java.lang.String > fileNames ) { for ( java.lang.String fileName : fileNames ) { if ( filesToRecompile.add ( fileName ) ) { for ( java.lang.String dependencyFileName : getDependencyFileNamesToRecompile ( typeRecompileDependencies , fileName ) ) { filesToRecompile.add ( dependencyFileName ) ; } } } }
Source:
public void testAbiOnlyWithNoMatch ( ) { java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "foo" ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "bar" ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertNull ( result ) ; }

Target:
public void testAbiOnlyWithNoMatch ( ) { java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "foo" , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "bar" , 2 ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertNull ( result ) ; }
Source:
public void onUiReady ( com.android.incallui.CallCardPresenter.CallCardUi ui ) { super . onUiReady ( ui ) ; if ( ( mPrimaryContactInfo ) != null ) { updatePrimaryDisplayInfo ( mPrimaryContactInfo , com.android.incallui.CallCardPresenter.isConference ( mPrimary ) ) ; } com.android.incallui.InCallPresenter.getInstance ( ) . addListener ( this ) ; com.android.incallui.InCallPresenter.getInstance ( ) . addIncomingCallListener ( this ) ; com.android.incallui.InCallPresenter.getInstance ( ) . addDetailsListener ( this ) ; com.android.incallui.InCallPresenter.getInstance ( ) . addInCallEventListener ( this ) ; }

Target:
public void onUiReady ( com.android.incallui.CallCardPresenter.CallCardUi ui ) { super . onUiReady ( ui ) ; if ( ( mPrimaryContactInfo ) != null ) { updatePrimaryDisplayInfo ( ) ; } com.android.incallui.InCallPresenter.getInstance ( ) . addListener ( this ) ; com.android.incallui.InCallPresenter.getInstance ( ) . addIncomingCallListener ( this ) ; com.android.incallui.InCallPresenter.getInstance ( ) . addDetailsListener ( this ) ; com.android.incallui.InCallPresenter.getInstance ( ) . addInCallEventListener ( this ) ; }
Source:
public void testEnumConstructor ( ) throws java.lang.Exception { java.lang.reflect.Constructor < ? > constructor = libcore.java.lang.reflect.ParameterTest.TestEnum.class . getDeclaredConstructor ( java.lang.String.class , int . class ) ; libcore.java.lang.reflect.ParameterTest.ExecutableTestHelper helper = new libcore.java.lang.reflect.ParameterTest.ExecutableTestHelper ( constructor ) ; helper.checkStandardParametersBehavior ( ) . checkParametersToString ( "[java.lang.String arg0, int arg1]" ) . checkParametersMetadataNotAvailable ( ) . checkParametersNoVarArgs ( ) ; helper.getParameterTestHelper ( 0 ) . checkGetType ( java.lang.String.class ) . checkGetParameterizedType ( "class java.lang.String" ) ; helper.getParameterTestHelper ( 1 ) . checkGetType ( int . class ) . checkGetParameterizedType ( "int" ) ; }

Target:
public void testEnumConstructor ( ) throws java.lang.Exception { java.lang.reflect.Constructor < ? > constructor = libcore.java.lang.reflect.ParameterTest.TestEnum.class . getDeclaredConstructor ( java.lang.String.class , int . class ) ; libcore.java.lang.reflect.ParameterTest.ExecutableTestHelper helper = new libcore.java.lang.reflect.ParameterTest.ExecutableTestHelper ( constructor ) ; helper.checkStandardParametersBehavior ( ) . checkParametersToString ( "[java.lang.String arg0, int arg1]" ) . checkParametersNoVarArgs ( ) ; helper.getParameterTestHelper ( 0 ) . checkGetType ( java.lang.String.class ) . checkGetParameterizedType ( "class java.lang.String" ) ; helper.getParameterTestHelper ( 1 ) . checkGetType ( int . class ) . checkGetParameterizedType ( "int" ) ; }
Source:
static void native_arcTo ( int nPath , android.graphics.RectF oval , float startAngle , float sweepAngle , boolean forceMoveTo ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.arcTo ( oval , startAngle , sweepAngle , forceMoveTo ) ; }

Target:
static void native_arcTo ( long nPath , android.graphics.RectF oval , float startAngle , float sweepAngle , boolean forceMoveTo ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.arcTo ( oval , startAngle , sweepAngle , forceMoveTo ) ; }
Source:
public java.lang.Void run ( ) throws java.lang.NoSuchMethodException { java.lang.Class [ ] cl = new java.lang.Class [ 2 ] ; cl [ 0 ] = java.net.SocketAddress.class ; cl [ 1 ] = java.lang.Integer.TYPE ; impl.getClass ( ) . getDeclaredMethod ( "connect" , cl ) ; return null ; }

Target:
public java.lang.Void run ( ) throws java.lang.NoSuchMethodException { impl.getClass ( ) . getDeclaredMethod ( "connect" , java.net.SocketAddress.class , int . class ) ; return null ; }
Source:
public void run ( ) { try { waitBackOffTime ( ) ; com.android.ddmlib.PropertyFetcher.GetPropReceiver propReceiver = new com.android.ddmlib.PropertyFetcher.GetPropReceiver ( ) ; mDevice.executeShellCommand ( com.android.ddmlib.PropertyFetcher.GETPROP_COMMAND , propReceiver , com.android.ddmlib.PropertyFetcher.GETPROP_TIMEOUT_SEC , java.util.concurrent.TimeUnit.SECONDS ) ; populateCache ( propReceiver.getCollectedProperties ( ) ) ; } catch ( com.android.ddmlib.TimeoutException e ) { handleException ( e ) ; } catch ( com.android.ddmlib.AdbCommandRejectedException e ) { handleException ( e ) ; } catch ( com.android.ddmlib.ShellCommandUnresponsiveException e ) { handleException ( e ) ; } catch ( java.io.IOException e ) { handleException ( e ) ; } }

Target:
public void run ( ) { try { com.android.ddmlib.PropertyFetcher.GetPropReceiver propReceiver = new com.android.ddmlib.PropertyFetcher.GetPropReceiver ( ) ; mDevice.executeShellCommand ( com.android.ddmlib.PropertyFetcher.GETPROP_COMMAND , propReceiver , com.android.ddmlib.PropertyFetcher.GETPROP_TIMEOUT_SEC , java.util.concurrent.TimeUnit.SECONDS ) ; populateCache ( propReceiver.getCollectedProperties ( ) ) ; } catch ( java.lang.Exception e ) { handleException ( e ) ; } }
Source:
public void setLabelFor ( int id ) { if ( ( mLabelForId ) == id ) { return ; } mLabelForId = id ; if ( ( ( mLabelForId ) != ( android.view.View.NO_ID ) ) && ( ( mID ) == ( android.view.View.NO_ID ) ) ) { mID = android.view.View.generateViewId ( ) ; } notifyViewAccessibilityStateChangedIfNeeded ( AccessibilityEvent.CONTENT_CHANGE_TYPE_UNDEFINED ) ; }

Target:
public void setLabelFor ( int id ) { mLabelForId = id ; if ( ( ( mLabelForId ) != ( android.view.View.NO_ID ) ) && ( ( mID ) == ( android.view.View.NO_ID ) ) ) { mID = android.view.View.generateViewId ( ) ; } }