auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void enableAllNetworks ( ) { sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_ENABLE_ALL_NETWORKS ) ; }

Target:
java.lang.String printTime ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( " rt=" ) . append ( mClock.getUptimeSinceBootMillis ( ) ) ; sb.append ( "/" ) . append ( mClock.getElapsedSinceBootMillis ( ) ) ; return sb.toString ( ) ; }
Source:
private void makeFakeSysImgInternal ( java.io.File imagesDir , java.lang.String abiType ) throws java.io.IOException { imagesDir.mkdirs ( ) ; new java.io.File ( imagesDir , "userdata.img" ) . createNewFile ( ) ; createSourceProps ( imagesDir , PkgProps.VERSION_API_LEVEL , "0" , PkgProps.SYS_IMG_ABI , abiType ) ; }

Target:
private void makeFakeSysImgInternal ( java.io.File imagesDir , java.lang.String abiType ) throws java.io.IOException { imagesDir.mkdirs ( ) ; new java.io.File ( imagesDir , "userdata.img" ) . createNewFile ( ) ; createSourceProps ( imagesDir , PkgProps.PKG_REVISION , "0" , PkgProps.VERSION_API_LEVEL , "0" , PkgProps.SYS_IMG_ABI , abiType ) ; }
Source:
public java.util.Collection < com.android.builder.JarDependency > getJars ( ) { return mJars ; }

Target:
public java.util.Collection < com.android.builder.dependency.JarDependency > getJars ( ) { return mJars ; }
Source:
public void test_EmptyList_sort ( ) { java.util.Collections.emptyList ( ) . sort ( ( k1 , k2 ) -> 1 ) ; }

Target:
public void test_EmptyList_replaceAll ( ) { java.util.Collections.emptyList ( ) . replaceAll ( ( k ) -> 1 ) ; try { java.util.Collections.emptyList ( ) . replaceAll ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public void deleteLocal ( ) { if ( isLocal ( ) ) { deleteFileOrFolder ( new java.io.File ( getLocalOsPath ( ) ) ) ; } }

Target:
public void deleteLocal ( ) { if ( isLocal ( ) ) { new com.android.sdklib.internal.repository.ArchiveInstaller ( ) . deleteFileOrFolder ( new java.io.File ( getLocalOsPath ( ) ) ) ; } }
Source:
public java.io.OutputStream openStream ( ) throws java.io.IOException { return encodingStream ( encodedSink.openStream ( ) ) ; }

Target:
public java.io.InputStream openStream ( ) throws java.io.IOException { return decodingStream ( encodedSource.openStream ( ) ) ; }
Source:
public java.lang.String getDeviceId ( ) { java.lang.String id = getMeid ( ) ; if ( ( id == null ) || ( id.matches ( "^0*$" ) ) ) { android.util.Log.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "getDeviceId(): MEID is not initialized use ESN" ) ; id = getEsn ( ) ; } return id ; }

Target:
public java.lang.String getDeviceSvn ( ) { android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "getDeviceSvn(): return 0" ) ; return "0" ; }
Source:
public static boolean $opt$getBooleanField ( Main m ) { return m.booleanField ; }

Target:
public static boolean $opt$noinline$getBooleanField ( Main m ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return m.booleanField ; }
Source:
public com.intellij.openapi.vfs.VirtualFile getVirtualFile ( ) { final com.intellij.openapi.vfs.VirtualFile vFile = myPsiFile.getVirtualFile ( ) ; assert vFile != null ; return vFile ; }

Target:
public com.intellij.openapi.vfs.VirtualFile getVirtualFile ( ) { return myPsiFile.getViewProvider ( ) . getVirtualFile ( ) ; }
Source:
private void displayNetworkQueryFailed ( int error ) { java.lang.String status = getResources ( ) . getString ( R.string.network_query_error ) ; final com.android.phone.PhoneApp app = com.android.phone.PhoneApp.getInstance ( ) ; app.notificationMgr.postTransientNotification ( NotificationMgr.NETWORK_SELECTION_NOTIFICATION , status ) ; }

Target:
private void displayNetworkQueryFailed ( int error ) { java.lang.String status = getResources ( ) . getString ( R.string.network_query_error ) ; final com.android.phone.PhoneGlobals app = com.android.phone.PhoneGlobals.getInstance ( ) ; app.notificationMgr.postTransientNotification ( NotificationMgr.NETWORK_SELECTION_NOTIFICATION , status ) ; }
Source:
public void testE3 ( ) { dot.junit.opcodes.aput_object.d.T_aput_object_1 t = new dot.junit.opcodes.aput_object.d.T_aput_object_1 ( ) ; java.lang.String [ ] arr = null ; try { t.run ( arr , 0 , "abc" ) ; fail ( "expected NullPointerException" ) ; } catch ( java.lang.NullPointerException aie ) { } }

Target:
public void testE3 ( ) { loadAndRun ( "dot.junit.opcodes.aput_object.d.T_aput_object_1" , java.lang.NullPointerException.class , null , 0 , "abc" ) ; }
Source:
public void onDetached ( ) { super . onDetached ( ) ; mDataSaverBackend.addListener ( this ) ; }

Target:
public void onDetached ( ) { super . onDetached ( ) ; mDataSaverBackend.remListener ( this ) ; }
Source:
public boolean setConcurrencyPriority ( java.lang.String s ) { return doBooleanCommand ( ( "P2P_SET conc_pref " + s ) ) ; }

Target:
public java.lang.String startWpsPinDisplay ( java.lang.String iface , java.lang.String bssid ) { return mSupplicantP2pIfaceHal.startWpsPinDisplay ( iface , bssid ) ; }
Source:
public void test_F32_4_SCALE20_05_inSqure ( ) { testReszie ( inX , inX , Element.DataType.FLOAT_32 , 4 , 2.0F , 0.5F ) ; }

Target:
public void test_F32_4_SCALE20_05_inSqure ( ) { testResize ( inX , inX , Element.DataType.FLOAT_32 , 4 , 2.0F , 0.5F ) ; }
Source:
void rescaleToFit ( ) { mEditor.getCanvasControl ( ) . setFitScale ( ) ; }

Target:
void rescaleToFit ( boolean onlyZoomOut ) { mEditor.getCanvasControl ( ) . setFitScale ( onlyZoomOut ) ; }
Source:
public com.android.layoutlib.api.SceneResult getResult ( java.lang.Object data ) { com.android.layoutlib.api.SceneResult res = getResult ( ) ; if ( data != null ) { res = res.getCopyWithData ( data ) ; } return res ; }

Target:
public com.android.layoutlib.api.SceneResult createResult ( java.lang.Object data ) { com.android.layoutlib.api.SceneResult res = createResult ( ) ; if ( data != null ) { res = res.getCopyWithData ( data ) ; } return res ; }
Source:
public static com.google.common.primitives.UnsignedInteger valueOf ( long value ) { com.google.common.base.Preconditions.checkArgument ( ( ( value & ( com.google.common.primitives.UnsignedInts.INT_MASK ) ) == value ) , "value (%s) is outside the range for an unsigned integer value" , value ) ; return com.google.common.primitives.UnsignedInteger.asUnsigned ( ( ( int ) ( value ) ) ) ; }

Target:
public static com.google.common.primitives.UnsignedInteger valueOf ( long value ) { com.google.common.base.Preconditions.checkArgument ( ( ( value & ( com.google.common.primitives.UnsignedInts.INT_MASK ) ) == value ) , "value (%s) is outside the range for an unsigned integer value" , value ) ; return com.google.common.primitives.UnsignedInteger.fromIntBits ( ( ( int ) ( value ) ) ) ; }
Source:
public void testDeflaterInputStreamInputStream ( ) { new java.util.zip.DeflaterInputStream ( is ) ; try { new java.util.zip.DeflaterInputStream ( null ) ; fail ( "should throw NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void testDeflaterInputStreamInputStream ( ) throws java.io.IOException { new java.util.zip.DeflaterInputStream ( is ) . close ( ) ; try { new java.util.zip.DeflaterInputStream ( null ) ; fail ( "should throw NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } }
Source:
public void onUserSwitched ( int userId ) { mServiceCache.invalidateCache ( userId ) ; mPreferredServices.onUserSwitched ( userId ) ; }

Target:
public void onUserSwitched ( int userId ) { mServiceCache.invalidateCache ( userId ) ; mPreferredServices.onUserSwitched ( userId ) ; mHostNfcFEmulationManager.onUserSwitched ( ) ; mT3tIdentifiersCache.onUserSwitched ( ) ; mEnabledNfcFServices.onUserSwitched ( userId ) ; mNfcFServicesCache.invalidateCache ( userId ) ; }
Source:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsFloatFloatFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = java.lang.StrictMath.min ( args.inMaxValue , java.lang.StrictMath.max ( args.inValue , args.inMinValue ) ) ; }

Target:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsCharCharCharChar args ) { args.out = android.renderscript.cts.CoreMathVerifier.minI8 ( args.inMaxValue , android.renderscript.cts.CoreMathVerifier.maxI8 ( args.inValue , args.inMinValue ) ) ; }
Source:
public void validateHomeSpWithHomeNetworkIds ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.HomeSP homeSp = android.net.wifi.hotspot2.pps.HomeSPTest.createHomeSpWithHomeNetworkIds ( ) ; org.junit.Assert.assertTrue ( homeSp.validate ( ) ) ; }

Target:
public void validateValidHomeSP ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.HomeSP homeSp = android.net.wifi.hotspot2.pps.HomeSPTest.createHomeSpWithHomeNetworkIds ( ) ; org.junit.Assert.assertTrue ( homeSp.validate ( ) ) ; }
Source:
public void callSessionConferenceExtendReceived ( com.android.ims.internal.IImsCallSession newSession , com.android.ims.ImsCallProfile profile ) { if ( ( mListener ) != null ) { mListener.callSessionConferenceExtendReceived ( this , new com.android.ims.internal.ImsCallSession ( newSession ) , profile ) ; } }

Target:
public void callSessionConferenceExtendReceived ( com.android.ims.internal.IImsCallSession newSession , android.telephony.ims.ImsCallProfile profile ) { if ( ( mListener ) != null ) { mListener.callSessionConferenceExtendReceived ( this , new android.telephony.ims.ImsCallSession ( newSession ) , profile ) ; } }
Source:
private com.android.ide.common.res2.ResourceRepository getResourceRepository ( ) throws MergeConsumer.ConsumerException , com.android.ide.common.res2.DuplicateDataException , java.io.IOException { com.android.ide.common.res2.ResourceMerger merger = com.android.ide.common.res2.ResourceRepositoryTest.getBaseResourceMerger ( ) ; com.android.ide.common.res2.ResourceRepository repo = new com.android.ide.common.res2.ResourceRepository ( false ) ; merger.mergeData ( repo.getMergeConsumer ( ) , true ) ; return repo ; }

Target:
private com.android.ide.common.res2.ResourceRepository getResourceRepository ( ) throws MergeConsumer.ConsumerException , com.android.ide.common.res2.DuplicateDataException , java.io.IOException { com.android.ide.common.res2.ResourceMerger merger = com.android.ide.common.res2.ResourceRepositoryTest.getBaseResourceMerger ( ) ; com.android.ide.common.res2.ResourceRepository repo = new com.android.ide.common.res2.ResourceRepository ( false ) ; merger.mergeData ( repo.createMergeConsumer ( ) , true ) ; return repo ; }
Source:
private java.io.FileDescriptor createPingSocket ( ) throws libcore.io.ErrnoException { java.io.FileDescriptor s = Libcore.os.socket ( android.net.ipv6.cts.AF_INET6 , android.net.ipv6.cts.SOCK_DGRAM , android.net.ipv6.cts.IPPROTO_ICMPV6 ) ; Libcore.os.setsockoptTimeval ( s , android.net.ipv6.cts.SOL_SOCKET , android.net.ipv6.cts.SO_RCVTIMEO , libcore.io.StructTimeval.fromMillis ( 100 ) ) ; return s ; }

Target:
private java.io.FileDescriptor createPingSocket ( ) throws android.system.ErrnoException { java.io.FileDescriptor s = android.system.Os.socket ( android.net.ipv6.cts.AF_INET6 , android.net.ipv6.cts.SOCK_DGRAM , android.net.ipv6.cts.IPPROTO_ICMPV6 ) ; android.system.Os.setsockoptTimeval ( s , android.net.ipv6.cts.SOL_SOCKET , android.net.ipv6.cts.SO_RCVTIMEO , android.system.StructTimeval.fromMillis ( 100 ) ) ; return s ; }
Source:
public static void main ( java.lang.String [ ] args ) { Main.doTest ( new Transform ( "Hello" , "Goodbye" ) , new Transform ( "start" , "end" ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { art.Main.bindAgentJNIForClass ( Main.class ) ; Main.doTest ( new Transform ( "Hello" , "Goodbye" ) , new Transform ( "start" , "end" ) ) ; }
Source:
public static double scalb ( double d , int scaleFactor ) { return sun.misc.FpUtils.scalb ( d , scaleFactor ) ; }

Target:
public static double scalb ( double d , int scaleFactor ) { return java.lang.Math.scalb ( d , scaleFactor ) ; }
Source:
public static boolean isEnum ( @ javax.annotation.Nonnull org.objectweb.asm.tree.ClassNode cn ) { return ( ( cn.access ) & ( org.objectweb.asm.Opcodes.ACC_ENUM ) ) != 0 ; }

Target:
public static boolean isEnum ( @ javax.annotation.Nonnull org.objectweb.asm.tree.ClassNode cn ) { if ( ( ( cn.access ) & ( org.objectweb.asm.Opcodes.ACC_ENUM ) ) != 0 ) { assert ( cn.superName ) != null ; return cn.superName.equals ( com.android.jill.frontend.java.AsmHelper.JAVA_LANG_ENUM ) ; } return false ; }
Source:
protected boolean assertEquals ( java.lang.String message , boolean expected , boolean actual ) { return handleAssert ( ( expected == actual ) , message , java.lang.String.valueOf ( expected ) , java.lang.String.valueOf ( actual ) ) ; }

Target:
protected static boolean assertEquals ( java.lang.String message , boolean expected , boolean actual ) { return android.icu.dev.test.TestFmwk.handleAssert ( ( expected == actual ) , message , java.lang.String.valueOf ( expected ) , java.lang.String.valueOf ( actual ) ) ; }
Source:
private static void installMockWifiNanNative ( com.android.server.wifi.nan.WifiNanNative obj ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.nan.WifiNanNative.class . getDeclaredField ( "sWifiNanNativeSingleton" ) ; field.setAccessible ( true ) ; field.set ( null , obj ) ; }

Target:
private static void installMockWifiAwareNative ( com.android.server.wifi.aware.WifiAwareNative obj ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.aware.WifiAwareNative.class . getDeclaredField ( "sWifiAwareNativeSingleton" ) ; field.setAccessible ( true ) ; field.set ( null , obj ) ; }
Source:
public void dispatchGetNewSurface ( ) { android.os.Message msg = mHandler.obtainMessage ( android.view.SurfaceView.GET_NEW_SURFACE_MSG ) ; mHandler.sendMessage ( msg ) ; }

Target:
public void dispatchGetNewSurface ( ) { android.view.SurfaceView surfaceView = mSurfaceView.get ( ) ; if ( surfaceView != null ) { android.os.Message msg = surfaceView.mHandler.obtainMessage ( android.view.SurfaceView.GET_NEW_SURFACE_MSG ) ; surfaceView.mHandler.sendMessage ( msg ) ; } }
Source:
public void mousePressed ( java.awt.event.MouseEvent e ) { myPanel.setBackground ( com.google.gct.testing.GoogleCloudTestingUtils.makeDarker ( myPanel.getBackground ( ) , 1 ) ) ; }

Target:
public void mousePressed ( java.awt.event.MouseEvent e ) { myPanel.setBackground ( com.google.gct.testing.CloudTestingUtils.makeDarker ( myPanel.getBackground ( ) , 1 ) ) ; }
Source:
public boolean getDataEnabled ( ) { return isDataEnabled ( ) ; }

Target:
public boolean getDataEnabled ( int subId ) { return isUserMobileDataEnabled ( subId ) ; }
Source:
public libcore.util.ZoneInfoTestHelper.TzDataBuilder addZicData ( java.lang.String id , byte [ ] data ) { zicData.add ( new libcore.util.ZoneInfoTestHelper.TzDataBuilder.ZicDatum ( id , data ) ) ; return this ; }

Target:
public libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder addZicData ( java.lang.String id , byte [ ] data ) { zicData.add ( new libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder.ZicDatum ( id , data ) ) ; return this ; }
Source:
private native boolean nativeParse3339 ( java.lang.String s ) ;

Target:
private char toChar ( int n ) { return ( n >= 0 ) && ( n <= 9 ) ? ( ( char ) ( n + '0' ) ) : ' ' ; }
Source:
public com.android.build.gradle.model.AndroidComponentSpec createAndroidComponentSpec ( org.gradle.platform.base.ComponentSpecContainer specs ) { return ( ( com.android.build.gradle.model.AndroidComponentSpec ) ( specs.getByName ( com.android.build.gradle.model.AndroidComponentModelPlugin.COMPONENT_NAME ) ) ) ; }

Target:
public void createAndroidComponents ( org.gradle.model.ModelMap < com.android.build.gradle.model.AndroidComponentSpec > androidComponents ) { androidComponents.create ( com.android.build.gradle.model.AndroidComponentModelPlugin.COMPONENT_NAME ) ; }
Source:
public static int ShlIntLong ( ) { int lhs = Main.$inline$int ( 1 ) ; long rhs = Main.$inline$long ( 2L ) ; return lhs << rhs ; }

Target:
public static long ShlLongInt ( ) { long lhs = 3 ; int rhs = 2 ; return lhs << rhs ; }
Source:
public static void loop7 ( boolean incoming ) { while ( ( java.lang.Runtime.getRuntime ( ) ) != null ) { java.lang.System.out.println ( incoming ) ; 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 void onInitializeAccessibilityNodeInfo ( android.view.View host , android.support.v4.view.accessibility.AccessibilityNodeInfoCompat info ) { super . onInitializeAccessibilityNodeInfo ( host , info ) ; info.setCheckable ( true ) ; info.setChecked ( isChecked ( ) ) ; }

Target:
public void onInitializeAccessibilityNodeInfo ( android.view.View host , android.support.v4.view.accessibility.AccessibilityNodeInfoCompat info ) { super . onInitializeAccessibilityNodeInfo ( host , info ) ; info.setCheckable ( checkable ) ; if ( checkable ) { info.setChecked ( isChecked ( ) ) ; } }
Source:
private boolean stuckOnLockScreenBecauseSimMissing ( ) { return ( ( mRequiresSim ) && ( ! ( mUpdateMonitor.isDeviceProvisioned ( ) ) ) ) && ( ( mUpdateMonitor.getSimState ( ) ) == ( SimCard.State.ABSENT ) ) ; }

Target:
private boolean stuckOnLockScreenBecauseSimMissing ( ) { return ( ( mRequiresSim ) && ( ! ( mUpdateMonitor.isDeviceProvisioned ( ) ) ) ) && ( ( mUpdateMonitor.getSimState ( ) ) == ( IccCard.State.ABSENT ) ) ; }
Source:
private android.view.View findRootView ( ) { waitForRunningActivity ( ) ; io.appium.droiddriver.instrumentation.InstrumentationDriver.FindRootViewRunnable findRootViewRunnable = new io.appium.droiddriver.instrumentation.InstrumentationDriver.FindRootViewRunnable ( ) ; context.runOnMainSync ( findRootViewRunnable ) ; if ( ( findRootViewRunnable.exception ) != null ) { throw new io.appium.droiddriver.exceptions.DroidDriverException ( findRootViewRunnable.exception ) ; } return findRootViewRunnable.rootView ; }

Target:
private android.view.View findRootView ( ) { waitForRunningActivity ( ) ; return io.appium.droiddriver.util.InstrumentationUtils.runOnMainSyncWithTimeout ( io.appium.droiddriver.instrumentation.InstrumentationDriver.FIND_ROOT_VIEW ) ; }
Source:
private static byte [ ] decodeToBytes ( java.lang.String in ) throws java.lang.Exception { return libcore.io.Base64.decode ( in.getBytes ( java.nio.charset.StandardCharsets.US_ASCII ) ) ; }

Target:
private static int [ ] decodeToInts ( java.lang.String in ) throws java.lang.Exception { byte [ ] bytes = libcore.io.Base64.decode ( libcore.io.Base64Test.asciiToBytes ( in ) ) ; return libcore.io.Base64Test.bytesToInts ( bytes ) ; }
Source:
public static byte shortToCharToByte ( short value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( byte ) ( ( char ) ( value ) ) ) ; }

Target:
public static byte $noinline$shortToCharToByte ( short value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( byte ) ( ( char ) ( value ) ) ) ; }
Source:
public static native int EVP_SignInit ( org.conscrypt.NativeRef.EVP_MD_CTX ctx , long evpRef ) ;

Target:
public static native void EVP_DigestSignUpdate ( org.conscrypt.NativeRef.EVP_MD_CTX ctx , byte [ ] buffer , int offset , int length ) ;
Source:
public void close ( ) throws java.io.IOException { root.close ( ) ; vfs.close ( ) ; }

Target:
public synchronized void close ( ) throws java.io.IOException { if ( ! ( closed ) ) { root.close ( ) ; vfs.close ( ) ; closed = true ; } }
Source:
private long parseAsLong ( java.lang.String token ) throws java.io.IOException { try { return java.lang.Long.parseLong ( token ) ; } catch ( java.lang.NumberFormatException e ) { throw new java.io.IOException ( ( ( "Failed to parse " + token ) + " as a long." ) , e ) ; } }

Target:
public android.content.pm.PackageStats getOrCreateCompilerPackageStats ( android.content.pm.PackageParser.Package pkg ) { return getOrCreateCompilerPackageStats ( pkg.packageName ) ; }
Source:
private void verifyTimeServiceTimeZoneWasNotSet ( ) { org.mockito.Mockito.verify ( mTimeServiceHelper , org.mockito.Mockito.times ( 0 ) ) . setDeviceTimeZone ( org.mockito.ArgumentMatchers.any ( java.lang.String.class ) ) ; }

Target:
private void verifyTimeServiceTimeWasNotSet ( ) { org.mockito.Mockito.verify ( mTimeServiceHelper , org.mockito.Mockito.times ( 0 ) ) . setDeviceTime ( org.mockito.ArgumentMatchers.anyLong ( ) ) ; }
Source:
public static long Shr64 ( long arg ) { return arg > > 64 ; }

Target:
public static long $noinline$Shr64 ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg > > 64 ; }
Source:
private void setTransientSessionAsPrimary ( com.android.ims.internal.ImsCallSession transientSession ) { synchronized ( this ) { mSession.setListener ( null ) ; mSession = transientSession ; mSession.setListener ( createCallSessionListener ( ) ) ; } }

Target:
private void setTransientSessionAsPrimary ( android.telephony.ims.ImsCallSession transientSession ) { synchronized ( this ) { mSession.setListener ( null ) ; mSession = transientSession ; mSession.setListener ( createCallSessionListener ( ) ) ; } }
Source:
public org.eclipse.swt.graphics.Image getImage ( ) { return com.android.ide.eclipse.adt.AdtPlugin.getImageLoader ( ) . loadImage ( com.android.ide.eclipse.adt.internal.launch.MainLaunchConfigTab.LAUNCH_TAB_IMAGE , null ) ; }

Target:
public org.eclipse.swt.graphics.Image getImage ( ) { return com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . getIcon ( com.android.ide.eclipse.adt.internal.launch.MainLaunchConfigTab.LAUNCH_TAB_IMAGE ) ; }
Source:
public java.net.Socket createSocket ( java.lang.String host , int port ) throws java.io.IOException , java.net.UnknownHostException { return new org.conscrypt.OpenSSLSocketImpl ( host , port , ( ( org.conscrypt.SSLParametersImpl ) ( sslParameters.clone ( ) ) ) ) ; }

Target:
public java.net.Socket createSocket ( java.lang.String hostname , int port ) throws java.io.IOException , java.net.UnknownHostException { return new org.conscrypt.OpenSSLSocketImpl ( hostname , port , ( ( org.conscrypt.SSLParametersImpl ) ( sslParameters.clone ( ) ) ) ) ; }
Source:
public static int byteToDoubleToInt ( byte value ) { return ( ( int ) ( ( double ) ( value ) ) ) ; }

Target:
public static int $noinline$shortToLongToInt ( short value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( int ) ( ( long ) ( value ) ) ) ; }
Source:
public void testJar ( ) throws java.lang.Exception { assertEquals ( ( "GetterTest.java:47: Warning: Calling getter method getFoo1() on self is slower than field access (mFoo1)\n" + ( ( ( "GetterTest.java:48: Warning: Calling getter method getFoo2() on self is slower than field access (mFoo2)\n" + "GetterTest.java:52: Warning: Calling getter method isBar1() on self is slower than field access (mBar1)\n" ) + "GetterTest.java:54: Warning: Calling getter method getFoo1() on self is slower than field access (mFoo1)\n" ) + "GetterTest.java:55: Warning: Calling getter method getFoo2() on self is slower than field access (mFoo2)" ) ) , lintProject ( "bytecode/classpath-jar=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/GetterTest.java.txt=>src/test/bytecode/GetterTest.java" , "bytecode/GetterTest.jar.data=>bin/classes.jar" ) ) ; }

Target:
public void testJar ( ) throws java.lang.Exception { assertEquals ( ( "GetterTest.java:47: Warning: Calling getter method getFoo1() on self is slower than field access (mFoo1)\n" + ( ( ( "GetterTest.java:48: Warning: Calling getter method getFoo2() on self is slower than field access (mFoo2)\n" + "GetterTest.java:52: Warning: Calling getter method isBar1() on self is slower than field access (mBar1)\n" ) + "GetterTest.java:54: Warning: Calling getter method getFoo1() on self is slower than field access (mFoo1)\n" ) + "GetterTest.java:55: Warning: Calling getter method getFoo2() on self is slower than field access (mFoo2)" ) ) , lintProject ( "bytecode/classpath-jar=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "bytecode/GetterTest.java.txt=>src/test/bytecode/GetterTest.java" , "bytecode/GetterTest.jar.data=>bin/classes.jar" ) ) ; }
Source:
public void stop ( ) { mUpstreamLinkProperties = null ; }

Target:
public void stop ( ) { mUpstreamLinkProperties = null ; mHwInterface.stopOffloadControl ( ) ; mControlInitialized = false ; mConfigInitialized = false ; }
Source:
public static int $noinline$intAddSubSimplifyArg2 ( int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int sum = x + y ; return sum - y ; }

Target:
public static float $noinline$floatAddSubSimplifyArg2 ( float x , float y ) { float sum = x + y ; return sum - y ; }
Source:
public boolean remove ( java.lang.Object object ) { try { return delegate.remove ( object ) ; } catch ( java.lang.NullPointerException e ) { return false ; } catch ( java.lang.ClassCastException e ) { return false ; } }

Target:
public boolean remove ( java.lang.Object object ) { return ( object != null ) && ( com.google.common.collect.Collections2.safeRemove ( delegate , object ) ) ; }
Source:
public void writeTypeList ( com.android.dx.merge.TypeList typeList ) { short [ ] types = typeList.getTypes ( ) ; writeInt ( types.length ) ; for ( short type : types ) { writeShort ( type ) ; } alignToFourBytes ( ) ; }

Target:
public void writeTypeList ( com.android.dex.TypeList typeList ) { short [ ] types = typeList.getTypes ( ) ; writeInt ( types.length ) ; for ( short type : types ) { writeShort ( type ) ; } alignToFourBytes ( ) ; }
Source:
private void reset ( ) { android.os.IBinder operationToken = mOperationToken ; if ( operationToken != null ) { mOperationToken = null ; mKeyStore.abort ( operationToken ) ; } mMainDataStreamer = null ; mAdditionalEntropyForBegin = null ; }

Target:
private void reset ( ) { android.os.IBinder operationToken = mOperationToken ; if ( operationToken != null ) { mOperationToken = null ; mKeyStore.abort ( operationToken ) ; } mOperationHandle = null ; mMainDataStreamer = null ; mAdditionalEntropyForBegin = null ; }
Source:
public void setModifier ( @ javax.annotation.Nonnull com.android.jack.shrob.spec.KeepModifier modifier ) { this . modifier = modifier ; }

Target:
public synchronized void mergeModifier ( @ javax.annotation.Nonnull com.android.jack.shrob.spec.KeepModifier modifier ) { this . modifier = com.android.jack.shrob.spec.KeepModifier.combineModifiers ( this . modifier , modifier ) ; }
Source:
private java.lang.String getClassPath ( ) { java.util.List < java.lang.String > classPath = new java.util.ArrayList < java.lang.String > ( ) ; classPath.add ( "./prebuilts/misc/common/tradefed/tradefed-prebuilt.jar" ) ; return join ( classPath , ":" ) ; }

Target:
private java.lang.String getClassPath ( ) { java.util.List < java.lang.String > classPath = new java.util.ArrayList < java.lang.String > ( ) ; classPath.add ( "./prebuilts/misc/common/tradefed/tradefed-prebuilt.jar" ) ; classPath.add ( "./prebuilts/misc/common/ub-uiautomator/ub-uiautomator.jar" ) ; return join ( classPath , ":" ) ; }
Source:
public byte [ ] getEncoded ( ) { return org.bouncycastle.jcajce.provider.asymmetric.util.KeyUtil.getEncodedPrivateKeyInfo ( new org.bouncycastle.asn1.x509.AlgorithmIdentifier ( org.bouncycastle.asn1.oiw.OIWObjectIdentifiers.elGamalAlgorithm , new org.bouncycastle.asn1.oiw.ElGamalParameter ( elSpec.getP ( ) , elSpec.getG ( ) ) ) , new org.bouncycastle.asn1.DERInteger ( getX ( ) ) ) ; }

Target:
public byte [ ] getEncoded ( ) { return org.bouncycastle.jcajce.provider.asymmetric.util.KeyUtil.getEncodedPrivateKeyInfo ( new org.bouncycastle.asn1.x509.AlgorithmIdentifier ( org.bouncycastle.asn1.oiw.OIWObjectIdentifiers.elGamalAlgorithm , new org.bouncycastle.asn1.oiw.ElGamalParameter ( elSpec.getP ( ) , elSpec.getG ( ) ) ) , new org.bouncycastle.asn1.ASN1Integer ( getX ( ) ) ) ; }
Source:
native void rsnScriptSetVarI ( long con , long id , int slot , int val ) ;

Target:
native void rsnScriptSetVarI ( long con , long id , int slot , int val , boolean mUseInc ) ;
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearStartTime ( ) { bitField0_ = ( bitField0_ ) & ( ~ 128 ) ; startTime_ = 0L ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearSuiteBuildNumber ( ) { bitField0_ = ( bitField0_ ) & ( ~ 128 ) ; suiteBuildNumber_ = com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.getDefaultInstance ( ) . getSuiteBuildNumber ( ) ; onChanged ( ) ; return this ; }
Source:
public com.android.sdklib.AndroidVersion getAndroidVersion ( ) { return version ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newSource ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_SOURCES ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; return p ; }
Source:
private void debugPrintf ( java.lang.String msg , java.lang.Object ... params ) { com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( ( ( mNode ) == null ? "Groovy" : ( mNode.getDescriptor ( ) . getXmlLocalName ( ) ) + ".groovy" ) , java.lang.String.format ( msg , params ) ) ; }

Target:
private void warnPrintf ( java.lang.String msg , java.lang.Object ... params ) { com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( ( ( mNode ) == null ? "Groovy" : ( mNode.getDescriptor ( ) . getXmlLocalName ( ) ) + ".groovy" ) , java.lang.String.format ( msg , params ) ) ; }
Source:
public android.hardware.cts.helpers.sensoroperations.ISensorOperation call ( ) throws java.lang.Exception { operation.execute ( ) ; return operation ; }

Target:
public android.hardware.cts.helpers.sensoroperations.SensorOperation call ( ) throws java.lang.Exception { operation.execute ( currentNode ) ; return operation ; }
Source:
public static com.android.incallui.answer.protocol.AnswerScreen createAnswerScreen ( java.lang.String callId , boolean isVideoCall , boolean isVideoUpgradeRequest , boolean isSelfManagedCamera , boolean allowAnswerAndRelease , boolean hasCallOnHold ) { return com.android.incallui.answer.impl.AnswerFragment.newInstance ( callId , isVideoCall , isVideoUpgradeRequest , isSelfManagedCamera , allowAnswerAndRelease , hasCallOnHold ) ; }

Target:
public static com.android.incallui.answer.protocol.AnswerScreen createAnswerScreen ( java.lang.String callId , boolean isRttCall , boolean isVideoCall , boolean isVideoUpgradeRequest , boolean isSelfManagedCamera , boolean allowAnswerAndRelease , boolean hasCallOnHold ) { return com.android.incallui.answer.impl.AnswerFragment.newInstance ( callId , isRttCall , isVideoCall , isVideoUpgradeRequest , isSelfManagedCamera , allowAnswerAndRelease , hasCallOnHold ) ; }
Source:
void addInterface ( java.lang.String interfaceClass , int since ) { addToArray ( mInterfaces , interfaceClass , since ) ; }

Target:
void addInterface ( java.lang.String interfaceClass , int since ) { com.android.tools.lint.checks.ApiClass.addToArray ( mInterfaces , interfaceClass , since ) ; }
Source:
static int $opt$LongToInt ( long a ) { return ( ( int ) ( a ) ) ; }

Target:
static double $opt$LongToDouble ( long a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( double ) ( a ) ) ; }
Source:
public long getUidStats ( int uid , int type ) { android.util.Slog.w ( com.android.server.net.NetworkStatsService.TAG , "calling native method from Stats Service" ) ; return com.android.server.net.NetworkStatsService.nativeGetUidStat ( uid , type ) ; }

Target:
public long getUidStats ( int uid , int type ) { return com.android.server.net.NetworkStatsService.nativeGetUidStat ( uid , type , checkBpfStatsEnable ( ) ) ; }
Source:
public static void computeFastDistance ( android.renderscript.cts.TestFastDistance.ArgumentsFloatNFloatNFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( android.renderscript.cts.CoreMathVerifier.FAST_PRECISION , android.renderscript.cts.CoreMathVerifier.FAST_PRECISION , false ) ; args.out = android.renderscript.cts.CoreMathVerifier.distance ( args.inLhs , args.inRhs , t ) ; }

Target:
public static void computeFastDistance ( android.renderscript.cts.TestFastDistance.ArgumentsFloatNFloatNFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( android.renderscript.cts.CoreMathVerifier.FAST_PRECISION , android.renderscript.cts.CoreMathVerifier.FAST_PRECISION , false ) ; args.out = android.renderscript.cts.CoreMathVerifier.distance ( args.inLeftVector , args.inRightVector , t ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { onCustomDeviceConfig ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { selectDevice ( d ) ; onDeviceChange ( true ) ; }
Source:
protected int getPreferredPopupHeight ( ) { return com.google.gct.idea.elysium.ProjectSelector.PREFERRED_HEIGHT ; }

Target:
protected int getPreferredPopupHeight ( ) { return ! ( com.google.gct.idea.elysium.ProjectSelector.needsToSignIn ( ) ) ? com.google.gct.idea.elysium.ProjectSelector.PREFERRED_HEIGHT : ( ProjectSelectorGoogleLogin.PREFERRED_HEIGHT ) + ( com.google.gct.idea.elysium.ProjectSelector.POPUP_HEIGHTFRAMESIZE ) ; }
Source:
public void onDismissDialog ( ) { com.android.incallui.InCallPresenter.getInstance ( ) . onDismissDialog ( ) ; }

Target:
public com.android.incallui.incalluilock.InCallUiLock acquireInCallUiLock ( java.lang.String tag ) { return com.android.incallui.InCallPresenter.getInstance ( ) . acquireInCallUiLock ( tag ) ; }
Source:
public void callSessionResumeReceived ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsCallProfile imsCallProfile ) throws android.os.RemoteException { mNewListener.callSessionResumeReceived ( imsCallProfile ) ; }

Target:
public void callSessionUssdMessageReceived ( com.android.ims.internal.IImsCallSession i , int mode , java.lang.String message ) throws android.os.RemoteException { mNewListener.callSessionUssdMessageReceived ( mode , message ) ; }
Source:
private static void assertCreateSubFileThrows ( java.io.File parentDir , java.lang.String name ) { try { libcore.tzdata.update2.FileUtils.createSubFile ( parentDir , name ) ; fail ( ) ; } catch ( java.io.IOException expected ) { assertTrue ( expected.getMessage ( ) . contains ( "must exist beneath" ) ) ; } }

Target:
private static void assertCreateSubFileThrows ( java.io.File parentDir , java.lang.String name ) { try { libcore.tzdata.shared2.FileUtils.createSubFile ( parentDir , name ) ; fail ( ) ; } catch ( java.io.IOException expected ) { assertTrue ( expected.getMessage ( ) . contains ( "must exist beneath" ) ) ; } }
Source:
private static void test_simpleUse ( dalvik.system.DexClassLoaderTest.Configuration config ) throws java.lang.Exception { java.lang.String result = ( ( java.lang.String ) ( dalvik.system.DexClassLoaderTest.createInstanceAndCallStaticMethod ( config , "test.Test1" , "test" ) ) ) ; assertSame ( "blort" , result ) ; }

Target:
public void test_oneDex_simpleUse ( ) throws java.lang.Exception { java.lang.String result = ( ( java.lang.String ) ( createLoaderAndCallMethod ( "test.Test1" , "test" , dex1 ) ) ) ; assertSame ( "blort" , result ) ; }
Source:
public void validateHomeSpWithoutFqdn ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.HomeSP homeSp = new android.net.wifi.hotspot2.pps.HomeSP ( ) ; homeSp.friendlyName = "friendly name" ; org.junit.Assert.assertFalse ( homeSp.validate ( ) ) ; }

Target:
public void validateHomeSpWithoutFriendlyName ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.HomeSP homeSp = android.net.wifi.hotspot2.pps.HomeSPTest.createHomeSpWithHomeNetworkIds ( ) ; homeSp.setFriendlyName ( null ) ; org.junit.Assert.assertFalse ( homeSp.validate ( ) ) ; }
Source:
public native void setBoolean ( java.lang.Object object , boolean value ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;

Target:
public void setBoolean ( java.lang.Object object , boolean value ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException { setBoolean ( object , value , isAccessible ( ) ) ; }
Source:
com.android.build.gradle.internal.tasks.def prepare ( ) { com.android.build.gradle.internal.LibraryCache.unzipAar ( getBundle ( ) , getExplodedDir ( ) , project ) ; }

Target:
public void prepare ( ) { com.android.build.gradle.internal.LibraryCache.unzipAar ( getBundle ( ) , getExplodedDir ( ) , getProject ( ) ) ; }
Source:
public int getSelectedConfigurationId ( ) { com.google.gct.testing.GoogleCloudTestingConfiguration selection = getSelection ( ) ; if ( selection == null ) { return - 1 ; } return selection.getId ( ) ; }

Target:
public int getSelectedMatrixConfigurationId ( ) { com.google.gct.testing.GoogleCloudTestingConfiguration selection = getSelection ( ) ; if ( selection == null ) { return - 1 ; } return selection.getId ( ) ; }
Source:
private void readInput ( ) throws java.io.IOException { if ( configuration.verbose ) { java.lang.System.out.println ( "Reading input..." ) ; } new proguard.InputReader ( configuration ) . execute ( programClassPool , libraryClassPool ) ; }

Target:
private void initialize ( ) throws java.io.IOException { if ( configuration.verbose ) { java.lang.System.out.println ( "Initializing..." ) ; } new proguard.Initializer ( configuration ) . execute ( programClassPool , libraryClassPool ) ; }
Source:
public long getRetainedSize ( com.android.ahat.heapdump.AhatHeap heap ) { return 0 ; }

Target:
public com.android.ahat.heapdump.Size getRetainedSize ( com.android.ahat.heapdump.AhatHeap heap ) { return Size.ZERO ; }
Source:
static double $opt$ShortToDouble ( short a ) { return ( ( double ) ( a ) ) ; }

Target:
static float $opt$ShortToFloat ( short a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( float ) ( a ) ) ; }
Source:
native void rsnScriptInvoke ( long con , long id , int slot ) ;

Target:
native void rsnScriptForEach ( long con , long incCon , long id , int slot , long ain , long aout , byte [ ] params , boolean mUseInc ) ;
Source:
public void testCreatingAndApplying ( ) throws java.lang.Exception { createPatch ( ) ; assertAppliedAndRevertedCorrectly ( com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; myFile = getTempFile ( "patch.zip" ) ; myPatchSpec = new com.intellij.updater.PatchSpec ( ) . setOldFolder ( myOlderDir.getAbsolutePath ( ) ) . setNewFolder ( myNewerDir.getAbsolutePath ( ) ) ; }
Source:
public boolean connectAudio ( ) { return mBluetoothHeadset.connectAudio ( ) ; }

Target:
public boolean connectAudio ( java.lang.String deviceAddress ) { return mBluetoothHeadset.connectAudio ( ) ; }
Source:
public void stopKeepaliveResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo ) { throw new java.lang.UnsupportedOperationException ( "stopKeepaliveResponse not implemented" ) ; }

Target:
public void setLinkCapacityReportingCriteriaResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo ) { responseVoid ( responseInfo ) ; }
Source:
synchronized void nAllocationData1D ( long id , int off , int mip , int count , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData1D ( mContext , id , off , mip , count , d , sizeBytes ) ; }

Target:
synchronized void nScriptSetVarI ( long id , int slot , int val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarI ( curCon , id , slot , val , mUseInc ) ; }
Source:
private void loadPackages ( ) { loadPackages ( false , false ) ; }

Target:
protected boolean isSortByApi ( ) { return this . isSortByApi ( ) ; }
Source:
public com.android.systemui.qs.external.State newTileState ( ) { return new com.android.systemui.qs.external.State ( ) ; }

Target:
public com.android.systemui.qs.external.State newTileState ( ) { com.android.systemui.qs.external.State state = new com.android.systemui.qs.external.State ( ) ; state.autoMirrorDrawable = false ; return state ; }
Source:
public void setProcessorPath ( @ javax.annotation.Nonnull java.util.List < java.io.File > processorPath ) { options.processorPath = com.google.common.base.Joiner.on ( java.io.File.pathSeparatorChar ) . join ( processorPath ) ; }

Target:
public void setProcessorOptions ( @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.lang.String > processorOptions ) { options.addProperty ( Options.ANNOTATION_PROCESSOR_OPTIONS.getName ( ) , Options.ANNOTATION_PROCESSOR_OPTIONS.getCodec ( ) . formatValue ( processorOptions ) ) ; }
Source:
public void testStringSwedishOverlay ( ) throws java.lang.Throwable { final int resId = com.android.internal.R.string.phoneTypeWork ; setLocale ( "en_US" ) ; assertResource ( resId , "Work" , "Work" ) ; setLocale ( "sv_SE" ) ; assertResource ( resId , "Arbete" , "Jobb" ) ; }

Target:
public void testMatrix100011 ( ) throws java.lang.Throwable { final int resId = R.integer.matrix_100011 ; setLocale ( "sv_SE" ) ; assertResource ( resId , 100 , 100 , 600 ) ; }
Source:
private boolean isServiceClassVoiceorNone ( int serviceClass ) { return ( ( serviceClass & ( com.android.internal.telephony.CommandsInterface.CommandsInterface.SERVICE_CLASS_VOICE ) ) != 0 ) || ( serviceClass == ( com.android.internal.telephony.CommandsInterface.CommandsInterface.SERVICE_CLASS_NONE ) ) ; }

Target:
private boolean isServiceClassVoiceorNone ( int serviceClass ) { return ( ( serviceClass & ( com.android.internal.telephony.CommandsInterface.SERVICE_CLASS_VOICE ) ) != 0 ) || ( serviceClass == ( com.android.internal.telephony.CommandsInterface.SERVICE_CLASS_NONE ) ) ; }
Source:
public android.view.inputmethod.InputMethodSubtype getLastInputMethodSubtype ( ) { synchronized ( mH ) { try { return mService.getLastInputMethodSubtype ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.view.inputmethod.InputMethodManager.TAG , ( "IME died: " + ( mCurId ) ) , e ) ; return null ; } } }

Target:
public android.view.inputmethod.InputMethodSubtype getLastInputMethodSubtype ( ) { synchronized ( mH ) { try { return mService.getLastInputMethodSubtype ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }
Source:
public static com.android.server.wifi.ScanResults createWithNoIE ( int id , int ... freqs ) { return new com.android.server.wifi.ScanResults ( id , ( - 1 ) , com.android.server.wifi.ScanResults.generateNativeResults ( false , id , freqs ) ) ; }

Target:
public static com.android.server.wifi.ScanResults create ( int id , boolean allChannelsScanned , com.android.server.wifi.ScanDetail ... nativeResults ) { return new com.android.server.wifi.ScanResults ( id , allChannelsScanned , ( - 1 ) , nativeResults ) ; }
Source:
static void constantIndexing2b ( int [ ] array ) { array [ 0 ] = 7 ; array [ 1 ] = 7 ; array [ 2 ] = 7 ; array [ 3 ] = 7 ; }

Target:
static void constantIndexing2c ( int [ ] array ) { array [ 0 ] = 7 ; array [ 1 ] = 7 ; array [ 2 ] = 7 ; array [ 3 ] = 7 ; }
Source:
public void exit ( ) { android.os.Message message = obtainMessage ( com.android.server.connectivity.NetworkMonitor.EVENT_PROVISIONING_NOTIFICATION , 0 , mNetworkAgentInfo.network.netId , null ) ; mConnectivityServiceHandler.sendMessage ( message ) ; }

Target:
public void exit ( ) { android.os.Message message = obtainMessage ( com.android.server.connectivity.NetworkMonitor.EVENT_PROVISIONING_NOTIFICATION , 0 , mNetId , null ) ; mConnectivityServiceHandler.sendMessage ( message ) ; }
Source:
public native boolean setReadOnly ( java.io.File f ) ;

Target:
private native java.lang.String [ ] list0 ( java.io.File f ) ;
Source:
public void forceConnectivityScan ( ) { localLog ( "forceConnectivityScan" ) ; startConnectivityScan ( com.android.server.wifi.WifiConnectivityManager.SCAN_IMMEDIATELY ) ; }

Target:
public void forceConnectivityScan ( ) { localLog ( "forceConnectivityScan" ) ; mWaitForFullBandScanResults = true ; startSingleScan ( true ) ; }
Source:
public void onLost ( android.net.Network network ) { if ( network.equals ( currentNetwork ) ) { currentNetwork = null ; android.net.ConnectivityManager.setProcessDefaultNetworkForHostResolution ( null ) ; } android.util.Log.d ( android.net.ConnectivityManager.TAG , ( "startUsingNetworkFeature lost Network:" + network ) ) ; }

Target:
private void clearDnsBinding ( ) { if ( ( currentNetwork ) != null ) { currentNetwork = null ; android.net.ConnectivityManager.setProcessDefaultNetworkForHostResolution ( null ) ; } }
Source:
protected void visitArrayValue ( int argAndType ) { }

Target:
public int readMethod ( ) { checkType ( com.android.dx.io.EncodedValueReader.ENCODED_METHOD ) ; type = com.android.dx.io.EncodedValueReader.MUST_READ ; return com.android.dx.util.EncodedValueUtils.readUnsignedInt ( in , arg , false ) ; }
Source:
private void assertAreEqual ( java.lang.Object o1 , java.lang.Object o2 ) { assertTrue ( o1.equals ( o2 ) ) ; assertTrue ( o2.equals ( o1 ) ) ; }

Target:
private void assertAreNotEqual ( java.lang.Object o1 , java.lang.Object o2 ) { org.junit.Assert.assertFalse ( o1.equals ( o2 ) ) ; org.junit.Assert.assertFalse ( o2.equals ( o1 ) ) ; }
Source:
private static java.lang.String getDialogMessage ( com.android.internal.location.GpsNetInitiatedHandler.GpsNiNotification notif ) { return com.android.internal.location.GpsNetInitiatedHandler.getNotifMessage ( notif ) ; }

Target:
public static java.lang.String getDialogTitle ( com.android.internal.location.GpsNetInitiatedHandler.GpsNiNotification notif , android.content.Context context ) { return com.android.internal.location.GpsNetInitiatedHandler.getNotifTitle ( notif , context ) ; }
Source:
private native void gattClientEnableAdvNative ( int advertiserId , boolean enable , int timeout_s ) ;

Target:
private native void cleanupNative ( ) ;
Source:
public android.graphics.Bitmap takeScreenshot ( android.graphics.Point testOffset ) { android.graphics.Bitmap source = getInstrumentation ( ) . getUiAutomation ( ) . takeScreenshot ( ) ; return android.graphics.Bitmap.createBitmap ( source , testOffset.x , testOffset.y , android.uirendering.cts.testinfrastructure.ActivityTestBase.TEST_WIDTH , android.uirendering.cts.testinfrastructure.ActivityTestBase.TEST_HEIGHT ) ; }

Target:
public android.graphics.Bitmap takeScreenshot ( android.uirendering.cts.testinfrastructure.ActivityTestBase.TestPositionInfo testPositionInfo ) { android.graphics.Bitmap source = getInstrumentation ( ) . getUiAutomation ( ) . takeScreenshot ( ) ; return android.graphics.Bitmap.createBitmap ( source , testPositionInfo.screenOffset.x , testPositionInfo.screenOffset.y , android.uirendering.cts.testinfrastructure.ActivityTestBase.TEST_WIDTH , android.uirendering.cts.testinfrastructure.ActivityTestBase.TEST_HEIGHT ) ; }
Source:
public boolean startFilteringMulticastV6Packets ( ) { return ( ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) && ( mSupplicantStaIfaceHal.removeRxFilter ( SupplicantStaIfaceHal.RX_FILTER_TYPE_V6_MULTICAST ) ) ) && ( mSupplicantStaIfaceHal.startRxFilter ( ) ) ; }

Target:
public boolean startFilteringMulticastV6Packets ( ) { return ( ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) && ( mSupplicantStaIfaceHal.removeRxFilter ( com.android.server.wifi.WifiNative.RX_FILTER_TYPE_V6_MULTICAST ) ) ) && ( mSupplicantStaIfaceHal.startRxFilter ( ) ) ; }
Source:
public android.os.IBinder onBind ( android.content.Intent intent ) { return mProvider.getBinder ( ) ; }

Target:
public android.os.IBinder onBind ( android.content.Intent intent ) { mWifiWakeupController.start ( ) ; return mProvider.getBinder ( ) ; }
Source:
public void refreshProjectResources ( ) { mConfiguredProjectRes = null ; mConfigListener.getConfiguredProjectResources ( ) ; }

Target:
private void updateEditor ( ) { mLayoutEditor.commitPages ( false ) ; mConfiguredFrameworkRes = mConfiguredProjectRes = null ; mResourceResolver = null ; mProjectCallback = null ; mLayoutEditor.initUiRootNode ( true ) ; }
Source:
private void printTypeOfOperandStack ( ) { printer.print ( ( ( " |__STACK: " + ( inference.getOperandStackAsString ( ) ) ) + "\n" ) ) ; printer.print ( ( ( " |__LOCAL: " + ( inference.getLocalsAsString ( ) ) ) + "\n" ) ) ; }

Target:
private void printTypeOfOperandStackTop ( ) { printer.print ( ( ( " |__STACK: " + ( inference.getOperandStackAsString ( ) ) ) + "\n" ) ) ; }