auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "ToastTest.java:31: Warning: Toast created but not shown: did you forget to call show() ?\n" + ( "ToastTest.java:32: Warning: Expected duration Toast.LENGTH_SHORT or Toast.LENGTH_LONG, a custom duration value is not supported\n" + "ToastTest.java:32: Warning: Toast created but not shown: did you forget to call show() ?" ) ) , lintProject ( "src/test/pkg/ToastTest.java.txt=>src/test/pkg/ToastTest.java" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "ToastTest.java:31: Warning: Toast created but not shown: did you forget to call show() ?\n" + ( ( "ToastTest.java:32: Warning: Expected duration Toast.LENGTH_SHORT or Toast.LENGTH_LONG, a custom duration value is not supported\n" + "ToastTest.java:32: Warning: Toast created but not shown: did you forget to call show() ?\n" ) + "ToastTest.java:38: Warning: Toast created but not shown: did you forget to call show() ?" ) ) , lintProject ( "src/test/pkg/ToastTest.java.txt=>src/test/pkg/ToastTest.java" ) ) ; }
Source:
public void setupDataCall ( int accessNetworkType , android.telephony.data.DataProfile dataProfile , boolean isRoaming , boolean allowRoaming , boolean isHandover , android.net.LinkProperties linkProperties , android.telephony.data.DataServiceCallback callback ) { callback.onSetupDataCallComplete ( DataServiceCallback.RESULT_ERROR_UNSUPPORTED , null ) ; }

Target:
public void setupDataCall ( int accessNetworkType , android.telephony.data.DataProfile dataProfile , boolean isRoaming , boolean allowRoaming , @ android.telephony.data.DataService.SetupDataReason int reason , android.net.LinkProperties linkProperties , android.telephony.data.DataServiceCallback callback ) { callback.onSetupDataCallComplete ( DataServiceCallback.RESULT_ERROR_UNSUPPORTED , null ) ; }
Source:
public void waitForIdle ( int timeoutMs ) { com.android.server.ConnectivityServiceTest.waitForIdleHandler ( mHandlerThread , timeoutMs ) ; }

Target:
public void waitForIdle ( int timeoutMs ) { com.android.internal.util.TestUtils.waitForIdleHandler ( mHandlerThread , timeoutMs ) ; }
Source:
public void testVideoAudio ( ) throws java.lang.Exception { int source = R.raw.video_176x144_3gp_h263_300kbps_25fps_aac_stereo_128kbps_11025hz ; java.lang.String outputFile = "/sdcard/videoAudio.mp4" ; cloneAndVerify ( source , outputFile , 2 , 90 ) ; }

Target:
public void testVideoAudio ( ) throws java.lang.Exception { int source = R.raw.video_176x144_3gp_h263_300kbps_25fps_aac_stereo_128kbps_11025hz ; java.lang.String outputFile = java.io.File.createTempFile ( "MediaMuxerTest_testAudioVideo" , ".mp4" ) . getAbsolutePath ( ) ; cloneAndVerify ( source , outputFile , 2 , 90 ) ; }
Source:
public void expectMessage ( java.lang.String substring ) { expectMessage ( org.junit.matchers.JUnitMatchers.containsString ( substring ) ) ; }

Target:
public void expect ( org.hamcrest.Matcher < ? > matcher ) { matcherBuilder.add ( matcher ) ; }
Source:
public com.android.ide.common.resources.configuration.ScreenSizeQualifier getScreenSizeQualifier ( ) { return ( ( com.android.ide.common.resources.configuration.ScreenSizeQualifier ) ( mQualifiers [ com.android.ide.common.resources.configuration.FolderConfiguration.INDEX_SCREEN_SIZE ] ) ) ; }

Target:
public com.android.ide.common.resources.configuration.ScreenLayoutSizeQualifier getScreenLayoutSizeQualifier ( ) { return ( ( com.android.ide.common.resources.configuration.ScreenLayoutSizeQualifier ) ( mQualifiers [ com.android.ide.common.resources.configuration.FolderConfiguration.INDEX_SCREEN_LAYOUT_SIZE ] ) ) ; }
Source:
public java.lang.String getAuthTokenLabel ( java.lang.String s ) { android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; return null ; }

Target:
public java.lang.String getAuthTokenLabel ( java.lang.String s ) { if ( com.android.bluetooth.pbapclient.Authenticator.DBG ) android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; return null ; }
Source:
public final com.android.jack.dx.rop.type.TypeBearer getFrameType ( ) { return this ; }

Target:
public final com.android.jack.dx.rop.type.TypeBearer getFrameType ( ) { return getType ( ) . getFrameTypeImpl ( ) ; }
Source:
private void assertSameReserialized ( java.lang.Object o ) throws java.io.IOException , java.lang.ClassNotFoundException { assertSame ( o , libcore.util.SerializationTester.reserialize ( o ) ) ; }

Target:
private void assertSameReserialized ( java.lang.Object o ) throws java.io.IOException , java.lang.ClassNotFoundException { assertSame ( o , libcore.libcore.util.SerializationTester.reserialize ( o ) ) ; }
Source:
public boolean accept ( java.io.File dir , java.lang.String name ) { return com.android.apkbuilder.internal.ApkBuilderImpl.PATTERN_JAR_EXT.matcher ( name ) . matches ( ) ; }

Target:
public boolean accept ( java.io.File dir , java.lang.String name ) { return com.android.apkbuilder.internal.ApkBuilderHelper.PATTERN_JAR_EXT.matcher ( name ) . matches ( ) ; }
Source:
void unregisterSync ( android.bluetooth.le.IPeriodicAdvertisingCallback callback ) { enforceAdminPermission ( ) ; }

Target:
void unregisterSync ( android.bluetooth.le.IPeriodicAdvertisingCallback callback ) { enforceAdminPermission ( ) ; mPeriodicScanManager.stopSync ( callback ) ; }
Source:
public int equal ( proguard.evaluation.value.ReferenceValue other ) { return ( ( this . type ) == null ) && ( ( other.type ) == null ) ? ALWAYS : MAYBE ; }

Target:
public int equal ( proguard.evaluation.value.IdentifiedReferenceValue other ) { return equal ( ( ( proguard.evaluation.value.TypedReferenceValue ) ( other ) ) ) ; }
Source:
public com.android.apksig.ApkVerifier.Builder setCheckedPlatformVersions ( int minSdkVersion , int maxSdkVersion ) { mMinSdkVersion = minSdkVersion ; mMaxSdkVersion = maxSdkVersion ; return this ; }

Target:
public com.android.apksig.ApkVerifier.Builder setMaxCheckedPlatformVersion ( int maxSdkVersion ) { mMaxSdkVersion = maxSdkVersion ; return this ; }
Source:
private com.android.rs.test.Short2 pack_s2 ( short [ ] val ) { assert ( val.length ) == 2 ; return new com.android.rs.test.Short2 ( val [ 0 ] , val [ 1 ] ) ; }

Target:
private android.renderscript.Short2 pack_s2 ( short [ ] val ) { assert ( val.length ) == 2 ; return new android.renderscript.Short2 ( val [ 0 ] , val [ 1 ] ) ; }
Source:
public void partActivated ( org.eclipse.ui.IWorkbenchPartReference partRef ) { }

Target:
public void partActivated ( org.eclipse.ui.IWorkbenchPartReference partRef ) { org.eclipse.ui.IWorkbenchPart part = partRef.getPart ( false ) ; if ( part instanceof com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor ) { ( ( com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor ) ( part ) ) . activated ( ) ; } }
Source:
protected abstract boolean isModified ( java.io.File toFile ) throws java.io.IOException ;

Target:
protected boolean isModified ( java.io.File toFile ) throws java.io.IOException { return ( ( myChecksum ) == ( - 1 ) ) || ( ( myChecksum ) != ( myPatch.digestFile ( toFile ) ) ) ; }
Source:
public void test_minus_Period_negativeDays ( ) { test.java.time.MockSimplePeriod period = test.java.time.MockSimplePeriod.of ( ( - 25 ) , java.time.temporal.ChronoUnit.DAYS ) ; java.time.LocalDate t = TEST_2007_07_15.minus ( period ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2007 , 8 , 9 ) ) ; }

Target:
public void test_minus_Period_negativeDays ( ) { test.java.time.MockSimplePeriod period = test.java.time.MockSimplePeriod.of ( ( - 25 ) , java.time.temporal.ChronoUnit.DAYS ) ; java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.minus ( period ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2007 , 8 , 9 ) ) ; }
Source:
public int getDeviceConfigurationCount ( ) { int product = 1 ; for ( com.google.gct.testing.GoogleCloudTestingDimension dimension : getDimensions ( ) ) { product *= dimension.getEnabledTypes ( ) . size ( ) ; } return product ; }

Target:
public int getDeviceConfigurationCount ( ) { int product = 1 ; for ( com.google.gct.testing.CloudConfigurationDimension dimension : getDimensions ( ) ) { product *= dimension.getEnabledTypes ( ) . size ( ) ; } return product ; }
Source:
public void bindResponse ( int indId , boolean indStatus ) { com.android.bluetooth.hfp.HeadsetService service = getService ( ) ; if ( service == null ) { return ; } service.bindResponse ( indId , indStatus ) ; }

Target:
public android.bluetooth.BluetoothDevice getActiveDevice ( ) { com.android.bluetooth.hfp.HeadsetService service = getService ( ) ; if ( service == null ) { return null ; } return service.getActiveDevice ( ) ; }
Source:
private void resolveStrictModeHostname ( ) { try { mPrivateDnsConfig = new com.android.server.connectivity.DnsManager.PrivateDnsConfig ( mPrivateDnsProviderHostname , mNetwork.getAllByName ( mPrivateDnsProviderHostname ) ) ; } catch ( java.net.UnknownHostException uhe ) { mPrivateDnsConfig = null ; } }

Target:
private void resolveStrictModeHostname ( ) { try { final java.net.InetAddress [ ] ips = android.net.dns.ResolvUtil.blockingResolveAllLocally ( mNetwork , mPrivateDnsProviderHostname ) ; mPrivateDnsConfig = new com.android.server.connectivity.DnsManager.PrivateDnsConfig ( mPrivateDnsProviderHostname , ips ) ; } catch ( java.net.UnknownHostException uhe ) { mPrivateDnsConfig = null ; } }
Source:
public void testCreateTestForTestCase ( ) throws java.lang.Exception { junit.framework.Test test = android.test.TestCaseUtil.createTestSuite ( android.test.TestCaseUtilTest.OneTestTestCase.class ) ; assertEquals ( 1 , test.countTestCases ( ) ) ; }

Target:
public void testInvokeSuiteMethodIfPossible_ForTestCase ( ) throws java.lang.Exception { junit.framework.Test test = android.test.TestCaseUtil.invokeSuiteMethodIfPossible ( android.test.TestCaseUtilTest.OneTestTestCase.class , new java.util.HashSet < > ( ) ) ; assertNull ( test ) ; }
Source:
public android.os.IBinder onBind ( android.content.Intent intent ) { mWifiWakeupController.start ( ) ; return mProvider.getBinder ( ) ; }

Target:
public android.os.IBinder onBind ( android.content.Intent intent ) { mWifiWakeupController.start ( ) ; mWifiNotificationController.start ( ) ; return mProvider.getBinder ( ) ; }
Source:
public static float length ( float x , float y ) { return android.util.FloatMath.sqrt ( ( ( x * x ) + ( y * y ) ) ) ; }

Target:
public static float length ( float x , float y ) { return ( ( float ) ( java.lang.Math.hypot ( x , y ) ) ) ; }
Source:
synchronized long nScriptIntrinsicCreate ( int id , long eid ) { validate ( ) ; return rsnScriptIntrinsicCreate ( mContext , id , eid ) ; }

Target:
synchronized long nIncElementCreate ( long type , int kind , boolean norm , int vecSize ) { validate ( ) ; return rsnIncElementCreate ( mIncCon , type , kind , norm , vecSize ) ; }
Source:
private void log ( java.lang.String msg ) { if ( com.android.internal.telephony.gsm.UsimPhoneBookManager.DBG ) android.util.Log.d ( com.android.internal.telephony.gsm.UsimPhoneBookManager.LOG_TAG , msg ) ; }

Target:
private void log ( java.lang.String msg ) { if ( com.android.internal.telephony.gsm.UsimPhoneBookManager.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.UsimPhoneBookManager.LOG_TAG , msg ) ; }
Source:
protected org.apache.harmony.jpda.tests.jdwp.StackFrame.VarInfo getVariableInfo ( long classID , long methodID , java.lang.String variableName ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.VarInfo [ ] variables = jdwpGetVariableTable ( classID , methodID ) ; return getVariableInfo ( variables , variableName ) ; }

Target:
protected Frame.Variable getVariableInfo ( long classID , long methodID , java.lang.String variableName ) { org.apache.harmony.jpda.tests.framework.jdwp.Frame [ ] variables = jdwpGetVariableTable ( classID , methodID ) ; return getVariableInfo ( variables , variableName ) ; }
Source:
private void testInterruptReader ( final java.io.PipedReader reader ) throws java.lang.Exception { interruptMeLater ( ) ; try { reader.read ( ) ; fail ( ) ; } catch ( java.io.InterruptedIOException expected ) { } }

Target:
private void testInterruptInputStream ( final java.io.InputStream in ) throws java.lang.Exception { java.lang.Thread thread = interruptMeLater ( ) ; try { in.read ( ) ; fail ( ) ; } catch ( java.io.InterruptedIOException expected ) { } finally { libcore.java.io.InterruptedStreamTest.confirmInterrupted ( thread ) ; } }
Source:
protected byte [ ] engineSign ( ) throws java.security.SignatureException { return spiImpl.engineSign ( ) ; }

Target:
protected byte [ ] engineSign ( ) throws java.security.SignatureException { return getSpi ( ) . engineSign ( ) ; }
Source:
public void testFailures ( ) { assertEquals ( false , lq.checkAndSet ( "" , config ) ) ; assertEquals ( false , lq.checkAndSet ( "abc" , config ) ) ; }

Target:
public void testFailures ( ) { assertEquals ( false , lq.checkAndSet ( "" , config ) ) ; assertEquals ( false , lq.checkAndSet ( "abcd" , config ) ) ; assertEquals ( false , lq.checkAndSet ( "en-USofA" , config ) ) ; }
Source:
public java.io.File getTextSymbol ( ) { return textSymbol ; }

Target:
public java.io.File getSymbolFile ( ) { return symbolFile ; }
Source:
public proguard.evaluation.value.LongValue createLongValue ( long value ) { return value == 0 ? proguard.evaluation.value.SpecificValueFactory.LONG_VALUE_0 : value == 1 ? proguard.evaluation.value.SpecificValueFactory.LONG_VALUE_1 : new proguard.evaluation.value.ParticularLongValue ( value ) ; }

Target:
public proguard.evaluation.value.LongValue createLongValue ( long value ) { return value == 0L ? proguard.evaluation.value.ParticularValueFactory.LONG_VALUE_0 : value == 1L ? proguard.evaluation.value.ParticularValueFactory.LONG_VALUE_1 : new proguard.evaluation.value.ParticularLongValue ( value ) ; }
Source:
public java.security.PermissionCollection newPermissionCollection ( ) { return null ; }

Target:
public java.lang.String getActions ( ) { return null ; }
Source:
native void rsnAllocationRead2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , int dt ) ;

Target:
native void rsnAllocationRead1D ( long con , long id , int off , int mip , int count , java.lang.Object d , int sizeBytes , int dt , int mSize , boolean usePadding ) ;
Source:
private static javax.net.ssl.X509KeyManager getDefaultKeyManager ( ) throws java.security.KeyManagementException { javax.net.ssl.X509KeyManager result = org.conscrypt.SSLParametersImpl.defaultKeyManager ; if ( result == null ) { org.conscrypt.SSLParametersImpl.defaultKeyManager = result = org.conscrypt.SSLParametersImpl.createDefaultKeyManager ( ) ; } return result ; }

Target:
private static javax.net.ssl.X509KeyManager getDefaultX509KeyManager ( ) throws java.security.KeyManagementException { javax.net.ssl.X509KeyManager result = org.conscrypt.SSLParametersImpl.defaultX509KeyManager ; if ( result == null ) { org.conscrypt.SSLParametersImpl.defaultX509KeyManager = result = org.conscrypt.SSLParametersImpl.createDefaultX509KeyManager ( ) ; } return result ; }
Source:
public com.google.currysrc.api.match.SourceMatcher matcher ( ) { return com.google.currysrc.api.match.SourceMatchers.contains ( com.android.icu4j.srcgen.FixupBidiClassDoc.LOCATER ) ; }

Target:
public com.google.currysrc.api.match.SourceMatcher matcher ( ) { return com.google.currysrc.api.match.SourceMatchers.contains ( com.android.icu4j.srcgen.FixupBidiClassDoc.LOCATOR ) ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newIndex ) { return new com.android.jack.dx.io.instructions.ZeroRegisterDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newIndex , getIndexType ( ) , getTarget ( ) , getLiteral ( ) ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newFirstIndex , int newSecondIndex ) { assert ( getSecondIndexType ( ) ) == ( com.android.jack.dx.io.IndexType.NONE ) ; return new com.android.jack.dx.io.instructions.ZeroRegisterDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newFirstIndex , getFirstIndexType ( ) , getTarget ( ) , getLiteral ( ) ) ; }
Source:
private void ensurePollFdsCapacity ( ) { while ( ( pollFds.size ( ) ) < ( ( mutableKeys.size ( ) ) + 1 ) ) { pollFds.add ( new libcore.io.StructPollfd ( ) ) ; } }

Target:
private void ensurePollFdsCapacity ( ) { while ( ( pollFds.size ( ) ) < ( ( mutableKeys.size ( ) ) + 1 ) ) { pollFds.add ( new android.system.StructPollfd ( ) ) ; } }
Source:
public static com.android.server.wifi.ScanResults create ( int id , com.android.server.wifi.ScanDetail ... nativeResults ) { return new com.android.server.wifi.ScanResults ( id , ( - 1 ) , nativeResults ) ; }

Target:
public static com.android.server.wifi.ScanResults create ( int id , boolean allChannelsScanned , int ... freqs ) { return com.android.server.wifi.ScanResults.create ( id , allChannelsScanned , com.android.server.wifi.ScanResults.generateNativeResults ( id , freqs ) ) ; }
Source:
public boolean install ( byte [ ] content ) throws java.io.IOException { int result = stageInstallWithErrorCode ( content ) ; return result == ( libcore.tzdata.update2.TimeZoneDistroInstaller.INSTALL_SUCCESS ) ; }

Target:
public boolean install ( com.android.timezone.distro.TimeZoneDistro distro ) throws java.io.IOException { int result = stageInstallWithErrorCode ( distro ) ; return result == ( libcore.tzdata.update2.TimeZoneDistroInstaller.INSTALL_SUCCESS ) ; }
Source:
public static void computeHalfSqrt ( android.renderscript.cts.TestHalfSqrt.ArgumentsFloatFloat args ) { args.ulf = 128000 ; args.ulfRelaxed = 128000 ; args.out = ( ( float ) ( java.lang.StrictMath.sqrt ( args.inV ) ) ) ; }

Target:
public static void computeAbs ( android.renderscript.cts.TestAbs.ArgumentsShortUshort args ) { args.out = ( ( short ) ( java.lang.Math.abs ( args.inValue ) ) ) ; }
Source:
public boolean isRoot ( ) { return ( mNodeProxy.getParent ( ) ) == null ; }

Target:
public boolean isRoot ( ) { return mCanvasViewInfo.isRoot ( ) ; }
Source:
public void testNameSpecialChars_RFC2253_01 ( ) throws java.lang.Exception { try { new javax.security.auth.x500.X500Principal ( "CN=\\\nB" ) ; fail ( "No expected IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }

Target:
public void testNameSpecialChars_RFC1779_01 ( ) throws java.lang.Exception { java.lang.String dn = "CN=\\\nB" ; javax.security.auth.x500.X500Principal principal = new javax.security.auth.x500.X500Principal ( dn ) ; java.lang.String s = principal.getName ( javax.security.auth.x500.X500Principal.RFC1779 ) ; assertEquals ( "CN=\"\nB\"" , s ) ; }
Source:
public static double shortAnd0xffffToShortToDouble ( short value ) { short same = ( ( short ) ( value & 65535 ) ) ; return ( ( double ) ( same ) ) ; }

Target:
public static double $noinline$shortAnd0xffffToShortToDouble ( short value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } short same = ( ( short ) ( value & 65535 ) ) ; return ( ( double ) ( same ) ) ; }
Source:
public void testRefactor2 ( ) throws java.lang.Exception { renamePackage ( com.android.ide.eclipse.adt.internal.refactorings.renamepackage.TEST_PROJECT2 , "my.pkg.name" , ( "CHANGES:\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "-------\n" + "[x] MyFragment.java - /testRefactor2/src/com/example/refactoringtest/MyFragment.java\n" ) + " @@ -3 +3\n" ) + " + import my.pkg.name.R;\n" ) + "\n" ) + "\n" ) + "[x] MainActivity.java - /testRefactor2/src/com/example/refactoringtest/MainActivity.java\n" ) + " @@ -7 +7\n" ) + " + import my.pkg.name.R;\n" ) + "\n" ) + "\n" ) + "[x] CustomView1.java - /testRefactor2/src/com/example/refactoringtest/CustomView1.java\n" ) + " @@ -5 +5\n" ) + " + import my.pkg.name.R;\n" ) + "\n" ) + "\n" ) + "[x] Make Manifest edits - /testRefactor2/AndroidManifest.xml\n" ) + " @@ -3 +3\n" ) + " - package=\"com.example.refactoringtest\"\n" ) + " + package=\"my.pkg.name\"\n" ) + " @@ -25 +25\n" ) + " - android:name=\".MainActivity2\"\n" ) + " + android:name=\"com.example.refactoringtest.MainActivity2\"" ) ) ) ; }

Target:
public void testRefactor3 ( ) throws java.lang.Exception { renamePackage ( com.android.ide.eclipse.adt.internal.refactorings.renamepackage.TEST_PROJECT3 , "my.pkg.name" , ( "CHANGES:\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "-------\n" + "[x] MoreCode.java - /testRefactor3/src/com/example/refactoringtest/subpkg/MoreCode.java\n" ) + " @@ -7 +7\n" ) + " - import com.example.refactoringtest.BuildConfig;\n" ) + " - import com.example.refactoringtest.Manifest;\n" ) + " - import com.example.refactoringtest.R;\n" ) + " + import my.pkg.name.BuildConfig;\n" ) + " + import my.pkg.name.Manifest;\n" ) + " + import my.pkg.name.R;\n" ) + "\n" ) + "\n" ) + "[x] MainActivity.java - /testRefactor3/src/com/example/refactoringtest/MainActivity.java\n" ) + " @@ -7 +7\n" ) + " + import my.pkg.name.R;\n" ) + "\n" ) + "\n" ) + "[x] Make Manifest edits - /testRefactor3/AndroidManifest.xml\n" ) + " @@ -3 +3\n" ) + " - package=\"com.example.refactoringtest\"\n" ) + " + package=\"my.pkg.name\"\n" ) + " @@ -25 +25\n" ) + " - android:name=\".MainActivity2\"\n" ) + " + android:name=\"com.example.refactoringtest.MainActivity2\"" ) ) ) ; }
Source:
private boolean isDeviceProvisioned ( ) { return ( Settings.System.getInt ( mContext.getContentResolver ( ) , Settings.System.DEVICE_PROVISIONED , 0 ) ) != 0 ; }

Target:
private boolean isDeviceProvisioned ( ) { if ( ! ( android.os.SystemProperties.getBoolean ( "ro.requires_provisioning" , false ) ) ) { return true ; } return ( Settings.System.getInt ( mContext.getContentResolver ( ) , Settings.System.DEVICE_PROVISIONED , 0 ) ) != 0 ; }
Source:
public void testIsEmergencyNumber_US ( ) { assertTrue ( shortInfo.isEmergencyNumber ( "911" , RegionCode.US ) ) ; assertTrue ( shortInfo.isEmergencyNumber ( "112" , RegionCode.US ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( "999" , RegionCode.US ) ) ; }

Target:
public void testIsEmergencyNumberLongNumber_US ( ) { assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "9116666666" , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "1126666666" , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "9996666666" , RegionCode.US ) ) ; }
Source:
public static boolean containsFieldKey ( @ javax.annotation.Nonnull java.lang.String name , @ javax.annotation.Nonnull com.android.jack.ir.ast.JField field ) { com.android.jack.shrob.obfuscation.FieldInHierarchyFinderVisitor visitor = new com.android.jack.shrob.obfuscation.FieldInHierarchyFinderVisitor ( name ) ; visitor.startVisit ( field.getEnclosingType ( ) ) ; return visitor.hasFoundField ; }

Target:
public static boolean containsFieldKey ( @ javax.annotation.Nonnull com.android.jack.shrob.obfuscation.key.FieldKey key , @ javax.annotation.Nonnull com.android.jack.ir.ast.JField field ) { com.android.jack.shrob.obfuscation.FieldInHierarchyFinderVisitor visitor = new com.android.jack.shrob.obfuscation.FieldInHierarchyFinderVisitor ( key ) ; visitor.startVisit ( field.getEnclosingType ( ) ) ; return visitor.hasFoundField ; }
Source:
native void rsnScriptForEachClipped ( long con , long id , int slot , long ain , long aout , byte [ ] params , int xstart , int xend , int ystart , int yend , int zstart , int zend ) ;

Target:
native void rsnScriptForEach ( long con , long incCon , long id , int slot , long ain , long aout , byte [ ] params , boolean mUseInc ) ;
Source:
public static native byte [ ] SSL_get_signed_cert_timestamp_list ( long ssl ) ;

Target:
public static native void SSL_enable_ocsp_stapling ( long ssl ) ;
Source:
private boolean isVideoMode ( ) { return com.android.incallui.VideoCallPresenter.mIsVideoMode ; }

Target:
private boolean isVideoMode ( ) { return com.android.incallui.VideoCallPresenter.isVideoMode ; }
Source:
public native int umask ( int mask ) ;

Target:
private native int umaskImpl ( int mask ) ;
Source:
public java.lang.String getClientCertificate ( ) { return getFieldValue ( android.net.wifi.WifiEnterpriseConfig.CLIENT_CERT_KEY , android.net.wifi.WifiEnterpriseConfig.CLIENT_CERT_PREFIX ) ; }

Target:
public java.lang.String getClientCertificateAlias ( ) { return getFieldValue ( android.net.wifi.WifiEnterpriseConfig.CLIENT_CERT_KEY , android.net.wifi.WifiEnterpriseConfig.CLIENT_CERT_PREFIX ) ; }
Source:
public void onSetCamera ( java.lang.String cameraId , java.lang.String callingPackageName , int callingUid , int callingPid ) { }

Target:
public void onSetCamera ( java.lang.String cameraId , java.lang.String callingPackageName , int callingUid , int callingPid , int targetSdkVersion ) { }
Source:
public void testSelfReference ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "res/layout/layout3.xml:12: Error: Cannot be relative to self: id=tv_portfolio_title, layout_below=tv_portfolio_title [NotSibling]\n" + " android:layout_below=\"@+id/tv_portfolio_title\"/>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintFiles ( "wrongid/layout3.xml=>res/layout/layout3.xml" ) ) ; }

Target:
public void testSelfReference ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "res/layout/layout3.xml:9: Error: Cannot be relative to self: id=tv_portfolio_title, layout_below=tv_portfolio_title [NotSibling]\n" + " android:layout_below=\"@+id/tv_portfolio_title\"/>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintFiles ( "wrongid/layout3.xml=>res/layout/layout3.xml" ) ) ; }
Source:
public void testSendEtwsMessageTest ( ) throws java.lang.Exception { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , createFromPdu ( com.android.cellbroadcastreceiver.DialogSmsDisplayTests.etwsMessageTest ) ) ; mContext.sendOrderedBroadcast ( intent , "android.permission.RECEIVE_EMERGENCY_BROADCAST" ) ; }

Target:
public void testSendEtwsMessageTest ( ) throws java.lang.Exception { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , createFromPdu ( com.android.cellbroadcastreceiver.DialogSmsDisplayTests.etwsMessageTest ) ) ; intent.setPackage ( com.android.cellbroadcastreceiver.DialogSmsDisplayTests.CB_RECEIVER_PKG ) ; mContext.sendOrderedBroadcast ( intent , "android.permission.RECEIVE_EMERGENCY_BROADCAST" ) ; }
Source:
public java.lang.String [ ] getAvailableIDs ( ) { return ids.clone ( ) ; }

Target:
public java.lang.String [ ] getAvailableIDs ( ) { checkNotClosed ( ) ; return ids.clone ( ) ; }
Source:
public static void loop8 ( ) { boolean incoming = Main.field ; while ( ( java.lang.Runtime.getRuntime ( ) ) != null ) { while ( incoming ) { } } }

Target:
public static void loop8 ( ) { boolean incoming = Main.field ; while ( ( java.lang.Runtime.getRuntime ( ) ) != null ) { java.lang.System.nanoTime ( ) ; while ( incoming ) { } java.lang.System.nanoTime ( ) ; } }
Source:
public static int getVersionCode ( com.android.io.IAbstractFile manifestFile ) throws com.android.io.StreamException , javax.xml.xpath.XPathExpressionException { javax.xml.xpath.XPath xPath = com.android.xml.AndroidXPathFactory.newXPath ( ) ; java.lang.String result = xPath.evaluate ( ( ( ( ( ( "/" + ( com.android.xml.AndroidManifest.NODE_MANIFEST ) ) + "/@" ) + ( AndroidXPathFactory.DEFAULT_NS_PREFIX ) ) + ":" ) + ( com.android.xml.AndroidManifest.ATTRIBUTE_VERSIONCODE ) ) , new org.xml.sax.InputSource ( manifestFile.getContents ( ) ) ) ; try { return java.lang.Integer.parseInt ( result ) ; } catch ( java.lang.NumberFormatException e ) { return - 1 ; } }

Target:
public static boolean hasVersionCode ( com.android.io.IAbstractFile manifestFile ) throws com.android.io.StreamException , javax.xml.xpath.XPathExpressionException { javax.xml.xpath.XPath xPath = com.android.xml.AndroidXPathFactory.newXPath ( ) ; java.io.InputStream is = null ; try { is = manifestFile.getContents ( ) ; java.lang.Object result = xPath.evaluate ( ( ( ( ( ( "/" + ( com.android.xml.AndroidManifest.NODE_MANIFEST ) ) + "/@" ) + ( AndroidXPathFactory.DEFAULT_NS_PREFIX ) ) + ":" ) + ( com.android.xml.AndroidManifest.ATTRIBUTE_VERSIONCODE ) ) , new org.xml.sax.InputSource ( is ) , javax.xml.xpath.XPathConstants.NODE ) ; if ( result != null ) { org.w3c.dom.Node node = ( ( org.w3c.dom.Node ) ( result ) ) ; if ( ! ( node.getNodeValue ( ) . isEmpty ( ) ) ) { return true ; } } } finally { com.google.common.io.Closeables.closeQuietly ( is ) ; } return false ; }
Source:
public static float $opt$getFloatField ( Main m ) { return m.floatField ; }

Target:
public static float $opt$noinline$getFloatField ( Main m ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return m.floatField ; }
Source:
protected abstract void addRevocablePermissions ( @ com.android.annotations.NonNull java.util.Set < java.lang.String > result ) ;

Target:
protected abstract void addRevocablePermissions ( @ com.android.annotations.NonNull java.util.Set < java.lang.String > result , @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionHolder revocable ) ;
Source:
public java.lang.String getAbi ( ) { return com.android.compatibility.common.util.ModuleResult.parseId ( mId ) [ 0 ] ; }

Target:
public java.lang.String getAbi ( ) { return com.android.compatibility.common.util.AbiUtils.parseAbi ( mId ) ; }
Source:
public native boolean setPermission ( java.io.File f , int access , boolean enable , boolean owneronly ) ;

Target:
private native boolean setPermission0 ( java.io.File f , int access , boolean enable , boolean owneronly ) ;
Source:
private boolean handleCcbsIncallSupplementaryService ( java.lang.String dialString ) { if ( ( dialString.length ( ) ) > 1 ) { return false ; } android.telephony.Rlog.i ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , "MmiCode 5: CCBS not supported!" ) ; notifySuppServiceFailed ( Phone.SuppService.UNKNOWN ) ; return true ; }

Target:
private boolean handleCcbsIncallSupplementaryService ( java.lang.String dialString ) { if ( ( dialString.length ( ) ) > 1 ) { return false ; } logi ( "MmiCode 5: CCBS not supported!" ) ; notifySuppServiceFailed ( Phone.SuppService.UNKNOWN ) ; return true ; }
Source:
public final int getDexMethodIndex ( ) { return dexMethodIndex ; }

Target:
public int getParameterCount ( ) { com.android.dex.Dex dex = declaringClassOfOverriddenMethod.getDex ( ) ; short [ ] types = dex.parameterTypeIndicesFromMethodIndex ( dexMethodIndex ) ; return types.length ; }
Source:
static int testStatic ( int interations ) { new Main.SubClass ( ) . testStatic ( interations ) ; return interations ; }

Target:
static int testStatic ( int iterations ) { new Main.SubClass ( ) . testStatic ( iterations ) ; return iterations ; }
Source:
void toggleMute ( ) { mCallAudioRouteStateMachine.sendMessageWithSessionInfo ( CallAudioRouteStateMachine.TOGGLE_MUTE ) ; }

Target:
public void toggleMute ( ) { if ( mCallsManager.hasEmergencyCall ( ) ) { android.telecom.Log.v ( this , "ignoring toggleMute for emergency call" ) ; return ; } mCallAudioRouteStateMachine.sendMessageWithSessionInfo ( CallAudioRouteStateMachine.TOGGLE_MUTE ) ; }
Source:
public static java.lang.String getPackage ( com.android.sdklib.io.IAbstractFolder projectFolder ) throws com.android.sdklib.io.StreamException , javax.xml.xpath.XPathExpressionException { com.android.sdklib.io.IAbstractFile file = projectFolder.getFile ( SdkConstants.FN_ANDROID_MANIFEST_XML ) ; return com.android.sdklib.xml.AndroidManifest.getPackage ( file ) ; }

Target:
public static java.lang.String getPackage ( com.android.sdklib.io.IAbstractFolder projectFolder ) throws com.android.sdklib.io.StreamException , javax.xml.xpath.XPathExpressionException { com.android.sdklib.io.IAbstractFile file = com.android.sdklib.xml.AndroidManifest.getManifest ( projectFolder ) ; if ( file != null ) { return com.android.sdklib.xml.AndroidManifest.getPackage ( file ) ; } return null ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( "FieldLocator{" + "typeLocater=" ) + ( typeLocater ) ) + ", fieldName='" ) + ( fieldName ) ) + '\'' ) + '}' ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( "FieldLocator{" + "typeLocator=" ) + ( typeLocator ) ) + ", fieldName='" ) + ( fieldName ) ) + '\'' ) + '}' ; }
Source:
public java.lang.String getFolderSegment ( ) { if ( ( mValue ) != null ) { return com.android.ide.eclipse.adt.internal.resources.configurations.LanguageQualifier.getFolderSegment ( mValue ) ; } return "" ; }

Target:
public java.lang.String getFolderSegment ( ) { if ( ( mValue ) != null ) { return com.android.ide.common.resources.configuration.LanguageQualifier.getFolderSegment ( mValue ) ; } return "" ; }
Source:
public void decode ( ) { try { decode0 ( ) ; } catch ( java.lang.Exception ex ) { throw com.android.dx.util.ExceptionWithContext.withContext ( ex , "...while decoding debug info" ) ; } }

Target:
public void decode ( ) { try { decode0 ( ) ; } catch ( java.lang.Exception ex ) { throw com.android.dex.util.ExceptionWithContext.withContext ( ex , "...while decoding debug info" ) ; } }
Source:
public void getFeatureValue ( int feature , int network , com.android.ims.ImsConfigListener listener ) throws android.os.RemoteException { }

Target:
public void setFeatureValue ( int feature , int network , int value , com.android.ims.ImsConfigListener listener ) throws android.os.RemoteException { }
Source:
protected void visitEncodedBoolean ( int argAndType ) { }

Target:
public boolean readBoolean ( ) { checkType ( com.android.dx.io.EncodedValueReader.ENCODED_BOOLEAN ) ; type = com.android.dx.io.EncodedValueReader.MUST_READ ; return ( arg ) != 0 ; }
Source:
public org.eclipse.swt.graphics.Image getImage ( ) { if ( ( mTabIcon ) == null ) { mTabIcon = com.android.ide.eclipse.adt.AdtPlugin.getImageLoader ( ) . loadImage ( MainLaunchConfigTab.LAUNCH_TAB_IMAGE , null ) ; } return mTabIcon ; }

Target:
public org.eclipse.swt.graphics.Image getImage ( ) { if ( ( mTabIcon ) == null ) { mTabIcon = com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . getIcon ( MainLaunchConfigTab.LAUNCH_TAB_IMAGE ) ; } return mTabIcon ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { onButtonAddonSites ( e ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { onButtonInstall ( ) ; }
Source:
com.android.sched.vfs.BaseVDir createVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { return changeVFS ( vfs.createVDir ( parent , name ) ) ; }

Target:
com.android.sched.util.location.Location getVFileLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.DeflateFS.DeflateVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { return vfs.getVFileLocation ( parent.getWrappedDir ( ) , name ) ; }
Source:
public void actionPerformed ( java.awt.event.ActionEvent e ) { doRetry ( ) ; }

Target:
public void windowClosing ( java.awt.event.WindowEvent e ) { doCancel ( ) ; }
Source:
public void disableOptionalCodecs ( ) { com.android.bluetooth.a2dp.A2dpService service = getService ( ) ; if ( service == null ) { return ; } service.disableOptionalCodecs ( ) ; }

Target:
public void setCodecConfigPreference ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothCodecConfig codecConfig ) { com.android.bluetooth.a2dp.A2dpService service = getService ( ) ; if ( service == null ) { return ; } service.setCodecConfigPreference ( device , codecConfig ) ; }
Source:
public java.lang.Iterable < java.lang.String > getLdFlags ( ) { }

Target:
public java.lang.Iterable < java.lang.String > getLdFlags ( ) { return com.google.common.collect.Iterables.concat ( getTargetFlags ( ) , ( platform.getName ( ) . equals ( SdkConstants.ABI_ARMEABI_V7A ) ? com.google.common.collect.ImmutableList.of ( "-Wl,--fix-cortex-a8" ) : com.google.common.collect.ImmutableList.< java.lang.String > of ( ) ) ) ; }
Source:
protected void finalize ( ) { if ( mPartialWakeLock.isHeld ( ) ) { android.telephony.Rlog.e ( com.android.internal.telephony.GsmCdmaConnection.LOG_TAG , "[GsmCdmaConn] UNEXPECTED; mPartialWakeLock is held when finalizing." ) ; } clearPostDialListeners ( ) ; releaseWakeLock ( ) ; }

Target:
protected void finalize ( ) { if ( ( ( mPartialWakeLock ) != null ) && ( mPartialWakeLock.isHeld ( ) ) ) { android.telephony.Rlog.e ( com.android.internal.telephony.GsmCdmaConnection.LOG_TAG , "UNEXPECTED; mPartialWakeLock is held when finalizing." ) ; } clearPostDialListeners ( ) ; releaseWakeLock ( ) ; }
Source:
public void imageChanged ( ) { synchronized ( this ) { loadImage ( ) ; } doRedraw ( ) ; }

Target:
public void imageChanged ( ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( this ) { loadImage ( ) ; } } } ) ; doRedraw ( ) ; }
Source:
public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_TOOLS ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newTool ( @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision minPlatformToolsRev ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_TOOLS ) ; p.mFullRevision = revision ; p.mMinPlatformToolsRev = minPlatformToolsRev ; return p ; }
Source:
public void onHideCustomView ( ) { org.chromium.content.common.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onHideCustomView" ) ; mWebChromeClient.onHideCustomView ( ) ; } org.chromium.content.common.TraceEvent.end ( ) ; }

Target:
public void onHideCustomView ( ) { org.chromium.base.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onHideCustomView" ) ; mWebChromeClient.onHideCustomView ( ) ; } org.chromium.base.TraceEvent.end ( ) ; }
Source:
public void testSp ( ) throws java.lang.Exception { assertEquals ( ( "textsize.xml:11: Warning: Should use \"sp\" instead of \"dp\" for text sizes\n" + "textsize.xml:16: Warning: Should use \"sp\" instead of \"dp\" for text sizes" ) , lintFiles ( "res/layout/textsize.xml" ) ) ; }

Target:
public void testSp ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/textsize.xml:11: Warning: Should use \"sp\" instead of \"dp\" for text sizes [SpUsage]\n" + ( ( ( ( ( ( " android:textSize=\"14dp\" />\n" + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/textsize.xml:16: Warning: Should use \"sp\" instead of \"dp\" for text sizes [SpUsage]\n" ) + " android:textSize=\"14dip\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 2 warnings\n" ) + "" ) ) , lintFiles ( "res/layout/textsize.xml" ) ) ; }
Source:
private static native void nativePostForkChild ( long token , int debugFlags ) ;

Target:
private static native void nativePostForkChild ( long token , int debugFlags , java.lang.String instructionSet ) ;
Source:
public void dump ( android.os.ParcelFileDescriptor fd ) { com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return ; service.dump ( fd.getFileDescriptor ( ) ) ; }

Target:
public void dump ( java.io.FileDescriptor fd , java.lang.String [ ] args ) { java.io.PrintWriter writer = new java.io.PrintWriter ( new java.io.FileOutputStream ( fd ) ) ; com.android.bluetooth.btservice.AdapterService service = getService ( ) ; service.dump ( fd , writer , args ) ; }
Source:
private android.net.Uri getGoodUrl ( ) { return android.net.Uri.parse ( mWebServer.getTestDownloadUrl ( ) ) ; }

Target:
private android.net.Uri getGoodUrl ( ) { return android.net.Uri.parse ( mWebServer.getTestDownloadUrl ( "cts-good-download" , 0 ) ) ; }
Source:
public void visitFieldInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { printer.visitFieldInsn ( opcode , owner , name , desc ) ; printTypeOfOperandStack ( ) ; super . visitFieldInsn ( opcode , owner , name , desc ) ; }

Target:
public void visitTypeInsn ( int opcode , java.lang.String type ) { printer.visitTypeInsn ( opcode , type ) ; printTypeOfOperandStackTop ( ) ; super . visitTypeInsn ( opcode , type ) ; }
Source:
public void execute ( org.gradle.logging.StyledTextOutput styledTextOutput ) { getTextOutput ( ) . withStyle ( org.gradle.logging.StyledTextOutput.Style.Identifier ) . text ( variantData.getName ( ) ) ; getTextOutput ( ) . withStyle ( org.gradle.logging.StyledTextOutput.Style.Description ) . text ( "" ) ; }

Target:
public void execute ( org.gradle.logging.StyledTextOutput styledTextOutput ) { getTextOutput ( ) . withStyle ( org.gradle.logging.StyledTextOutput.Style.Identifier ) . text ( variantData.getVariantConfiguration ( ) . getFullName ( ) ) ; getTextOutput ( ) . withStyle ( org.gradle.logging.StyledTextOutput.Style.Description ) . text ( "" ) ; }
Source:
final boolean casBase ( long cmp , long val ) { return com.google.common.cache.Striped64.baseUpdater.compareAndSet ( this , cmp , val ) ; }

Target:
final boolean casBusy ( ) { return com.google.common.cache.Striped64.UNSAFE.compareAndSwapInt ( this , com.google.common.cache.Striped64.busyOffset , 0 , 1 ) ; }
Source:
public boolean supports64Bits ( ) { java.lang.String targetString = compileSdkVersion.replace ( "android-" , "" ) ; try { return ( java.lang.Integer.parseInt ( targetString ) ) >= 20 ; } catch ( java.lang.NumberFormatException ignored ) { return true ; } }

Target:
public boolean supports64Bits ( ) { java.lang.String targetString = getCompileSdkVersion ( ) . replace ( "android-" , "" ) ; try { return ( java.lang.Integer.parseInt ( targetString ) ) >= 20 ; } catch ( java.lang.NumberFormatException ignored ) { return true ; } }
Source:
public void testBug28698301_1 ( ) throws java.lang.Exception { checkBug28698301 ( "bug28698301-1.xml" ) ; }

Target:
public void testBug28698301_1 ( ) throws java.lang.Exception { checkBug28698301 ( "bug28698301-1.xml" , "At line 19, column 18: no element found" ) ; }
Source:
public java.math.BigInteger getBaseCRLNumber ( ) throws java.io.IOException { sun.security.x509.DeltaCRLIndicatorExtension dciExt = getDeltaCRLIndicatorExtension ( ) ; if ( dciExt != null ) { java.math.BigInteger num = ( ( java.math.BigInteger ) ( dciExt.get ( dciExt.NUMBER ) ) ) ; return num ; } else { return null ; } }

Target:
public java.math.BigInteger getCRLNumber ( ) throws java.io.IOException { sun.security.x509.CRLNumberExtension numExt = getCRLNumberExtension ( ) ; if ( numExt != null ) { java.math.BigInteger num = numExt.get ( sun.security.x509.CRLNumberExtension.NUMBER ) ; return num ; } else { return null ; } }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPrefixOperation x ) { endVisit ( ( ( com.android.jack.ir.ast.JUnaryOperation ) ( x ) ) ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPrefixOperation prefixOperation ) { endVisit ( ( ( com.android.jack.ir.ast.JUnaryOperation ) ( prefixOperation ) ) ) ; }
Source:
public static void setAppLayerName ( java.lang.String name ) { com.android.graphics.benchmark.metric.GraphicsBenchmarkMetricCollector.mAppLayerName = name ; com.android.graphics.benchmark.metric.GraphicsBenchmarkMetricCollector.mTargetLayer = null ; }

Target:
public static void setAppLayerName ( java.lang.String name , java.lang.String layer ) { com.android.graphics.benchmark.metric.GraphicsBenchmarkMetricCollector.mAppLayerName = name ; com.android.graphics.benchmark.metric.GraphicsBenchmarkMetricCollector.mTargetLayer = layer ; }
Source:
public static java.lang.String readFirstLine ( java.io.File file , java.nio.charset.Charset charset ) throws java.io.IOException { return com.google.common.io.CharStreams.readFirstLine ( com.google.common.io.Files.newReaderSupplier ( file , charset ) ) ; }

Target:
public static com.google.common.base.Predicate < java.io.File > isDirectory ( ) { return com.google.common.io.Files.FilePredicate.IS_DIRECTORY ; }
Source:
public native boolean getBoolean ( java.lang.Object obj , long offset ) ;

Target:
public native void putOrderedObject ( java.lang.Object obj , long offset , java.lang.Object newValue ) ;
Source:
public void setKlass ( com.android.tools.rpclib.rpc.ClassInfo v ) { Klass = v ; }

Target:
public void setNanoseconds ( long v ) { Nanoseconds = v ; }
Source:
public void visitStackMapAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Method method , proguard.classfile.attribute.visitor.CodeAttribute codeAttribute , proguard.classfile.attribute.visitor.StackMapAttribute stackMapAttribute ) { if ( accepted ( clazz , stackMapAttribute ) ) { stackMapAttribute.accept ( clazz , method , codeAttribute , attributeVisitor ) ; } }

Target:
public void visitCodeAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Method method , proguard.classfile.attribute.visitor.CodeAttribute codeAttribute ) { if ( accepted ( clazz , codeAttribute ) ) { attributeVisitor.visitCodeAttribute ( clazz , method , codeAttribute ) ; } }
Source:
public void onCreateIncomingConnectionFailed ( android.telecom.ConnectionRequest request ) { mCallList.notifyCreateIncomingConnectionFailed ( request ) ; }

Target:
public void onCreateIncomingConnectionFailed ( android.telecom.PhoneAccountHandle connectionManagerPhoneAccount , android.telecom.ConnectionRequest request ) { mCallList.notifyCreateIncomingConnectionFailed ( request ) ; }
Source:
public void update ( java.util.List < com.android.server.wifi.ScanDetail > scanDetails ) { if ( mNetworkRecommendationsEnabled ) { updateNetworkScoreCache ( scanDetails ) ; } else { mExternalScoreEvaluator.update ( scanDetails ) ; } }

Target:
public void update ( java.util.List < com.android.server.wifi.ScanDetail > scanDetails ) { if ( mNetworkRecommendationsEnabled ) { updateNetworkScoreCache ( scanDetails ) ; } else { mExternalScoreEvaluator.update ( scanDetails ) ; } clearNotRecommendedFlag ( ) ; }
Source:
static void repackageClasses ( @ javax.annotation.Nonnull com.android.jack.shrob.spec.Flags flags , @ javax.annotation.CheckForNull java.lang.String newPackage ) { if ( newPackage == null ) { newPackage = "" ; } flags.setPackageForRenamedClasses ( newPackage ) ; flags.addKeepPackageNames ( com.android.jack.shrob.proguard.GrammarActions.name ( newPackage ) , false ) ; }

Target:
static void repackageClasses ( @ javax.annotation.Nonnull com.android.jack.shrob.spec.Flags flags , @ javax.annotation.CheckForNull java.lang.String newPackage ) { if ( newPackage == null ) { newPackage = "" ; } flags.setPackageForRenamedClasses ( newPackage ) ; flags.addKeepPackageNames ( com.android.jack.shrob.proguard.GrammarActions.name ( newPackage , com.android.jack.shrob.proguard.GrammarActions.FilterSeparator.GENERAL ) , false ) ; }
Source:
public static native boolean BN_sub_word ( int a , int w ) ;

Target:
public static native int BN_mod_word ( long a , int w ) ;
Source:
public void process ( org.simpleframework.transport.Socket socket ) throws java.io.IOException { socket.getEngine ( ) . setNeedClientAuth ( true ) ; super . process ( socket ) ; }

Target:
public void process ( org.simpleframework.transport.Socket socket ) throws java.io.IOException { configureSocket ( socket ) ; super . process ( socket ) ; }
Source:
private byte [ ] getByteAddress ( android.bluetooth.BluetoothDevice device ) { return com.android.bluetooth.Utils.getBytesFromAddress ( device.getAddress ( ) ) ; }

Target:
private byte [ ] getByteAddress ( android.bluetooth.BluetoothDevice device ) { if ( device == null ) { return com.android.bluetooth.Utils.getBytesFromAddress ( "00:00:00:00:00:00" ) ; } return com.android.bluetooth.Utils.getBytesFromAddress ( device.getAddress ( ) ) ; }