auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static java.lang.String eventTypeToString ( int type ) { switch ( type ) { case com.android.bluetooth.a2dp.A2dpStackEvent.EVENT_TYPE_NONE : return "EVENT_TYPE_NONE" ; case com.android.bluetooth.a2dp.A2dpStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED : return "EVENT_TYPE_CONNECTION_STATE_CHANGED" ; case com.android.bluetooth.a2dp.A2dpStackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED : return "EVENT_TYPE_AUDIO_STATE_CHANGED" ; default : return "EVENT_TYPE_UNKNOWN:" + type ; } }

Target:
private static java.lang.String eventTypeToString ( int type ) { switch ( type ) { case com.android.bluetooth.a2dp.A2dpStackEvent.EVENT_TYPE_NONE : return "EVENT_TYPE_NONE" ; case com.android.bluetooth.a2dp.A2dpStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED : return "EVENT_TYPE_CONNECTION_STATE_CHANGED" ; case com.android.bluetooth.a2dp.A2dpStackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED : return "EVENT_TYPE_AUDIO_STATE_CHANGED" ; case com.android.bluetooth.a2dp.A2dpStackEvent.EVENT_TYPE_CODEC_CONFIG_CHANGED : return "EVENT_TYPE_CODEC_CONFIG_CHANGED" ; default : return "EVENT_TYPE_UNKNOWN:" + type ; } }
Source:
public void setJavaCompileTask ( @ com.android.annotations.Nullable com.android.build.gradle.internal.scope.AndroidTask < ? extends org.gradle.api.tasks.compile.AbstractCompile > javaCompileTask ) { this . javaCompileTask = javaCompileTask ; }

Target:
public void setJackTask ( @ com.android.annotations.Nullable com.android.build.gradle.internal.scope.AndroidTask < com.android.build.gradle.tasks.JackTask > jackTask ) { this . jackTask = jackTask ; }
Source:
private void cleanWifiScore ( ) { mWifiInfo.txBadRate = 0 ; mWifiInfo.txSuccessRate = 0 ; mWifiInfo.txRetriesRate = 0 ; mWifiInfo.rxSuccessRate = 0 ; }

Target:
private void cleanWifiScore ( ) { mWifiInfo.txBadRate = 0 ; mWifiInfo.txSuccessRate = 0 ; mWifiInfo.txRetriesRate = 0 ; mWifiInfo.rxSuccessRate = 0 ; mWifiScoreReport.reset ( ) ; }
Source:
public void disconnect ( ) { disconnect ( false ) ; }

Target:
private void maybeSetCallAsDisconnectingChild ( ) { if ( ( mParentCall ) != null ) { mIsDisconnectingChildCall = true ; } }
Source:
public void requestIccSimAuthenticationResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.IccIoResult var2 ) { }

Target:
public void getCdmaRoamingPreferenceResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , int type ) { responseInts ( responseInfo , type ) ; }
Source:
public void classObjToString ( ) throws java.io.IOException { com.android.ahat.TestDump dump = com.android.ahat.TestDump.getTestDump ( ) ; com.android.ahat.heapdump.AhatInstance obj = dump.getAhatSnapshot ( ) . findClass ( "Main" ) ; org.junit.Assert.assertEquals ( "Main" , obj.toString ( ) ) ; }

Target:
public void classObjToString ( ) throws java.io.IOException { com.android.ahat.TestDump dump = com.android.ahat.TestDump.getTestDump ( ) ; com.android.ahat.heapdump.AhatInstance obj = dump.getAhatSnapshot ( ) . findClass ( "Main" ) ; org.junit.Assert.assertEquals ( "class Main" , obj.toString ( ) ) ; }
Source:
synchronized void nScriptSetVarD ( long id , int slot , double val ) { validate ( ) ; rsnScriptSetVarD ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptSetVarF ( long id , int slot , float val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarF ( curCon , id , slot , val , mUseInc ) ; }
Source:
public java.lang.String format ( com.android.tools.perflib.vmtrace.Call c ) { com.android.tools.perflib.vmtrace.MethodInfo info = mMethodInfo.get ( c.getMethodId ( ) ) ; return info == null ? java.lang.Long.toString ( c.getMethodId ( ) ) : info.getName ( ) ; }

Target:
public java.lang.String format ( com.android.tools.perflib.vmtrace.Call c ) { com.android.tools.perflib.vmtrace.MethodInfo info = mMethodInfo.get ( c.getMethodId ( ) ) ; return info == null ? java.lang.Long.toString ( c.getMethodId ( ) ) : info.getFullName ( ) ; }
Source:
public static native long SSL_get_options ( int ssl ) ;

Target:
public static native long create_BIO_OutputStream ( java.io.OutputStream os ) ;
Source:
native void rsnAllocationRead ( int con , int id , int [ ] d ) ;

Target:
native void rsnAllocationRead2D ( int con , int id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , int dt ) ;
Source:
public E poll ( ) { final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lock ( ) ; E result ; try { result = extract ( ) ; } finally { lock.unlock ( ) ; } return result ; }

Target:
public E poll ( ) { final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lock ( ) ; try { return dequeue ( ) ; } finally { lock.unlock ( ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.String > getTestInstrumentationRunnerArguments ( ) { return null ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getTestInstrumentationRunnerArguments ( ) { return com.google.common.collect.Maps.newHashMap ( ) ; }
Source:
native void rsnScriptSetVarObj ( long con , long id , int slot , long val ) ;

Target:
native void rsnScriptForEachClipped ( long con , long incCon , long id , int slot , long ain , long aout , byte [ ] params , int xstart , int xend , int ystart , int yend , int zstart , int zend , boolean mUseInc ) ;
Source:
public void initRttCallScreenDelegate ( android.content.Context context , com.android.incallui.rtt.protocol.RttCallScreen rttCallScreen ) { this . appContext = context.getApplicationContext ( ) ; this . rttCallScreen = rttCallScreen ; }

Target:
public void onRttCallScreenUiReady ( ) { com.android.dialer.common.LogUtil.enterBlock ( "RttCallPresenter.onRttCallScreenUiReady" ) ; com.android.incallui.InCallPresenter.getInstance ( ) . addListener ( this ) ; startListenOnRemoteMessage ( ) ; }
Source:
org.eclipse.swt.dnd.DropTargetListener getDropListener ( ) { return mGestureManager.getDropTargetListener ( ) ; }

Target:
public com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage getOutlinePage ( ) { return mOutlinePage ; }
Source:
public void validateSimCredentialWithEapAkaPrime ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = new android.net.wifi.hotspot2.pps.Credential ( ) ; cred.realm = "realm" ; cred.simCredential = new android.net.wifi.hotspot2.pps.Credential.SimCredential ( ) ; cred.simCredential.imsi = "1234*" ; cred.simCredential.eapType = android.net.wifi.EAPConstants.EAP_AKA_PRIME ; org.junit.Assert.assertTrue ( cred.validate ( ) ) ; }

Target:
public void validateSimCredentialWithEapSim ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = android.net.wifi.hotspot2.pps.CredentialTest.createCredentialWithSimCredential ( ) ; org.junit.Assert.assertTrue ( cred.validate ( ) ) ; }
Source:
public com.android.server.wifi.hotspot2.PasspointEventHandler makePasspointEventHandler ( com.android.server.wifi.hotspot2.PasspointEventHandler.Callbacks callbacks ) { return new com.android.server.wifi.hotspot2.PasspointEventHandler ( mWifiNative , callbacks ) ; }

Target:
public com.android.server.wifi.WifiWakeupController getWifiWakeupController ( ) { return mWifiWakeupController ; }
Source:
public abstract void render ( @ org.jetbrains.annotations.NotNull com.intellij.ui.ColoredTreeCellRenderer renderer , boolean isSelected , boolean isActive ) ;

Target:
public abstract void render ( @ org.jetbrains.annotations.NotNull com.intellij.ui.ColoredTreeCellRenderer renderer , boolean isSelected , boolean isActive , @ org.jetbrains.annotations.Nullable java.lang.String forceRenderedText ) ;
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 1 ] ) ; Main.doTest ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 1 ] ) ; Main.doTest ( ) ; Main.doFollowReferencesTest ( ) ; }
Source:
public void testIsEmergencyNumber_AO ( ) { assertFalse ( shortInfo.isEmergencyNumber ( "911" , RegionCode.AO ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( "222123456" , RegionCode.AO ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( "923123456" , RegionCode.AO ) ) ; }

Target:
public void testIsEmergencyNumber_ZW ( ) { assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "911" , RegionCode.ZW ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "01312345" , RegionCode.ZW ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "0711234567" , RegionCode.ZW ) ) ; }
Source:
android.content.Context getContext ( ) { android.content.Context context = mock ( android.content.Context.class ) ; android.content.res.Resources resource = mock ( android.content.res.Resources.class ) ; when ( context.getResources ( ) ) . thenReturn ( mResource ) ; return context ; }

Target:
private void setupWifiConfigManager ( ) { when ( mWifiConfigManager.getLastSelectedNetwork ( ) ) . thenReturn ( WifiConfiguration.INVALID_NETWORK_ID ) ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearStartTime ( ) { bitField0_ = ( bitField0_ ) & ( ~ 256 ) ; startTime_ = 0L ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setEndTime ( long value ) { bitField0_ |= 1024 ; endTime_ = value ; onChanged ( ) ; return this ; }
Source:
public void visitBootstrapMethodsAttribute ( proguard.classfile.constant.visitor.Clazz clazz , proguard.classfile.constant.visitor.BootstrapMethodsAttribute bootstrapMethodsAttribute ) { bootstrapMethodsAttribute.bootstrapMethodEntryAccept ( clazz , bootstrapMethodAttributeIndex , this ) ; }

Target:
public void visitBootstrapMethodsAttribute ( proguard.classfile.Clazz clazz , proguard.classfile.constant.visitor.BootstrapMethodsAttribute bootstrapMethodsAttribute ) { bootstrapMethodsAttribute.bootstrapMethodEntryAccept ( clazz , bootstrapMethodAttributeIndex , this ) ; }
Source:
public java.util.List < java.lang.String > getApplicableCallOwners ( ) { return java.util.Collections.singletonList ( com.android.tools.lint.checks.DateFormatDetector.DATE_FORMAT_OWNER ) ; }

Target:
public java.util.List < java.lang.Class < ? extends lombok.ast.Node > > getApplicableNodeTypes ( ) { return java.util.Collections.< java.lang.Class < ? extends lombok.ast.Node > > singletonList ( lombok.ast.ConstructorInvocation.class ) ; }
Source:
public void run ( ) { if ( mKeyguardDelegate.isDismissable ( ) ) { mKeyguardDelegate.keyguardDone ( false , true ) ; } else { mKeyguardDelegate.dismiss ( ) ; } }

Target:
public void run ( ) { mKeyguardDelegate.onActivityDrawn ( ) ; }
Source:
public void setVar ( int index , float v ) { mRS.nScriptSetVarF ( getID ( mRS ) , index , v ) ; }

Target:
public void setVar ( int index , float v ) { mRS.nScriptSetVarF ( getID ( mRS ) , index , v , mUseIncSupp ) ; }
Source:
public boolean hasUnsupportedCritical ( ) { if ( ( critical ) == null ) { makeOidsLists ( ) ; } return hasUnsupported ; }

Target:
public java.util.Set < java.lang.String > getCriticalExtensions ( ) { java.util.Set < java.lang.String > resultCritical = critical ; if ( resultCritical == null ) { makeOidsLists ( ) ; resultCritical = critical ; } return resultCritical ; }
Source:
public void setProgressMax ( int max ) { assert max > 0 ; mIncCoef = ( max > 0 ) ? ( com.android.sdkuilib.internal.repository.UpdateNoWindow.ConsoleTask.MAX_COUNT ) / max : 0 ; assert ( mIncCoef ) > 0 ; }

Target:
public void setProgressMax ( int max ) { assert max > 0 ; mIncCoef = ( max > 0 ) ? ( com.android.sdkuilib.internal.repository.SdkUpdaterNoWindow.ConsoleTask.MAX_COUNT ) / max : 0 ; assert ( mIncCoef ) > 0 ; }
Source:
public void test3rdPartyTests ( ) throws java.lang.Exception { runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_MIN_VERSION , new java.io.File ( testDir , "3rdPartyTests" ) , "clean" , "deviceCheck" ) ; }

Target:
public void test3rdPartyTests ( ) throws java.lang.Exception { runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_MIN_VERSION , new java.io.File ( testDir , "3rdPartyTests" ) , java.util.Collections.< java.lang.String > emptyList ( ) , "clean" , "deviceCheck" ) ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearModulesTotal ( ) { bitField0_ = ( bitField0_ ) & ( ~ 32768 ) ; modulesTotal_ = 0 ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearSuiteName ( ) { bitField0_ = ( bitField0_ ) & ( ~ 2048 ) ; suiteName_ = com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.getDefaultInstance ( ) . getSuiteName ( ) ; onChanged ( ) ; return this ; }
Source:
public static long Shr56And127 ( long arg ) { return ( arg > > 56 ) & 127 ; }

Target:
public static long $noinline$Shr56And127 ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( arg > > 56 ) & 127 ; }
Source:
final void scheduleContextCleanup ( android.app.ContextImpl context , java.lang.String who , java.lang.String what ) { android.app.ActivityThread.ContextCleanupInfo cci = new android.app.ActivityThread.ContextCleanupInfo ( ) ; cci.context = context ; cci.who = who ; cci.what = what ; queueOrSendMessage ( android.app.ActivityThread.H.CLEAN_UP_CONTEXT , cci ) ; }

Target:
final void scheduleContextCleanup ( android.app.ContextImpl context , java.lang.String who , java.lang.String what ) { android.app.ActivityThread.ContextCleanupInfo cci = new android.app.ActivityThread.ContextCleanupInfo ( ) ; cci.context = context ; cci.who = who ; cci.what = what ; sendMessage ( android.app.ActivityThread.H.CLEAN_UP_CONTEXT , cci ) ; }
Source:
static com.android.sched.vfs.VPath getFilePath ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { return new com.android.sched.vfs.VPath ( ( ( com.android.jack.ir.formatter.BinaryQualifiedNameFormatter.getFormatter ( ) . getName ( type ) ) + ( FileType.DEX.getFileExtension ( ) ) ) , '/' ) ; }

Target:
static com.android.sched.vfs.VPath getFilePath ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { return new com.android.sched.vfs.VPath ( ( ( com.android.jack.ir.formatter.BinaryQualifiedNameFormatter.getFormatter ( ) . getName ( type ) ) + ( DexFileWriter.DEX_FILE_EXTENSION ) ) , '/' ) ; }
Source:
public void prepareDownload ( java.lang.String callingPackage , @ android.annotation.Nullable byte [ ] hashCc , byte [ ] smdpSigned2 , byte [ ] smdpSignature2 , byte [ ] smdpCertificate , com.android.internal.telephony.euicc.IPrepareDownloadCallback callback ) { checkCallingPackage ( callingPackage ) ; }

Target:
public void onException ( java.lang.Throwable e ) { try { callback.onComplete ( getResultCode ( e ) , null ) ; } catch ( android.os.RemoteException exception ) { throw exception.rethrowFromSystemServer ( ) ; } }
Source:
static long $opt$NegLong ( long a ) { return - a ; }

Target:
private static float $opt$noinline$NegFloat ( float a ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return - a ; }
Source:
public void testInstallSdcard ( ) { mountMedia ( ) ; sampleInstallFromRawResource ( PackageManager.INSTALL_EXTERNAL , true ) ; }

Target:
public void testFlagE ( ) { if ( android.os.Environment.isExternalStorageEmulated ( ) ) { return ; } sampleInstallFromRawResource ( PackageManager.INSTALL_EXTERNAL , true ) ; }
Source:
public void testGetActivityThemes1 ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo info = getManifestInfo ( ( "<manifest xmlns:android=\'http://schemas.android.com/apk/res/android\'\n" + ( ( " package=\'com.android.unittest\'>\n" + " <uses-sdk android:minSdkVersion=\'3\' android:targetSdkVersion=\'4\'/>\n" ) + "</manifest>\n" ) ) ) ; java.util.Map < java.lang.String , java.lang.String > map = info.getActivityThemes ( ) ; assertEquals ( map.toString ( ) , 0 , map.size ( ) ) ; assertEquals ( "com.android.unittest" , info.getPackage ( ) ) ; assertEquals ( "Theme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( info.getDefaultTheme ( null , com.android.resources.ScreenLayoutSize.NORMAL ) ) ) ; assertEquals ( "@android:style/Theme" , info.getDefaultTheme ( null , null ) ) ; assertEquals ( "Theme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( info.getDefaultTheme ( null , com.android.resources.ScreenLayoutSize.XLARGE ) ) ) ; }

Target:
public void testGetActivityThemes1 ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.manifest.ManifestInfo info = getManifestInfo ( ( "<manifest xmlns:android=\'http://schemas.android.com/apk/res/android\'\n" + ( ( " package=\'com.android.unittest\'>\n" + " <uses-sdk android:minSdkVersion=\'3\' android:targetSdkVersion=\'4\'/>\n" ) + "</manifest>\n" ) ) ) ; java.util.Map < java.lang.String , java.lang.String > map = info.getActivityThemes ( ) ; assertEquals ( map.toString ( ) , 0 , map.size ( ) ) ; assertEquals ( "com.android.unittest" , info.getPackage ( ) ) ; assertEquals ( "Theme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( info.getDefaultTheme ( null , com.android.resources.ScreenSize.NORMAL ) ) ) ; assertEquals ( "@android:style/Theme" , info.getDefaultTheme ( null , null ) ) ; assertEquals ( "Theme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( info.getDefaultTheme ( null , com.android.resources.ScreenSize.XLARGE ) ) ) ; }
Source:
private void replyToMessage ( android.os.Message msg , int what ) { if ( ( msg.replyTo ) == null ) return ; android.os.Message dstMsg = obtainMessageWithArg2 ( msg ) ; dstMsg.what = what ; mReplyChannel.replyToMessage ( msg , dstMsg ) ; }

Target:
private void replyToMessage ( android.os.Message msg , int what ) { if ( ( msg.replyTo ) == null ) return ; android.os.Message dstMsg = obtainMessageWithWhatAndArg2 ( msg , what ) ; mReplyChannel.replyToMessage ( msg , dstMsg ) ; }
Source:
synchronized void nScriptSetVarJ ( long id , int slot , long val ) { validate ( ) ; rsnScriptSetVarJ ( mContext , id , slot , val ) ; }

Target:
synchronized long nScriptFieldIDCreate ( long sid , int slot , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } return rsnScriptFieldIDCreate ( curCon , sid , slot , mUseInc ) ; }
Source:
public static boolean NotNotBool ( boolean arg ) { return ! ( ! arg ) ; }

Target:
public static boolean NegateValue ( boolean arg ) { return ! arg ; }
Source:
native void rsnAllocationResize2D ( int con , int id , int dimX , int dimY ) ;

Target:
native void rsnAllocationResize1D ( long con , long id , int dimX ) ;
Source:
public void remove ( ) { com.google.common.base.Preconditions.checkState ( ( ( prevEntry ) != null ) ) ; setCount ( prevEntry.getElement ( ) , 0 ) ; prevEntry = null ; }

Target:
public void remove ( ) { com.google.common.collect.CollectPreconditions.checkRemove ( ( ( prevEntry ) != null ) ) ; setCount ( prevEntry.getElement ( ) , 0 ) ; prevEntry = null ; }
Source:
com.android.bluetooth.gatt.AppScanStats getAppScanStatsById ( int id ) { com.android.bluetooth.gatt.ContextMap < T > . App temp = getById ( id ) ; if ( temp != null ) { return mAppScanStats.get ( temp.name ) ; } return null ; }

Target:
com.android.bluetooth.gatt.AppScanStats getAppScanStatsById ( int id ) { com.android.bluetooth.gatt.ContextMap < T > . App temp = getById ( id ) ; if ( temp != null ) { return temp.appScanStats ; } return null ; }
Source:
protected void removeFile ( @ com.android.annotations.NonNull java.util.Collection < com.android.resources.ResourceType > types , @ com.android.annotations.NonNull com.android.ide.common.resources.ResourceFile file ) { for ( com.android.resources.ResourceType type : types ) { removeFile ( type , file ) ; } }

Target:
protected void removeFile ( @ com.android.annotations.NonNull java.util.Collection < com.android.resources.ResourceType > types , @ com.android.annotations.NonNull com.android.ide.common.resources.ResourceFile file ) { ensureInitialized ( ) ; for ( com.android.resources.ResourceType type : types ) { removeFile ( type , file ) ; } }
Source:
private < T > T addLocalServiceMock ( java.lang.Class < T > clazz ) { final T mock = org.mockito.Mockito.mock ( clazz ) ; return addLocalServiceMock ( clazz , mock ) ; }

Target:
private static < T > T addLocalServiceMock ( java.lang.Class < T > clazz ) { final T mock = org.mockito.Mockito.mock ( clazz ) ; com.android.server.LocalServices.addService ( clazz , mock ) ; return mock ; }
Source:
public com.android.server.connectivity.tethering.OffloadHardwareInterface getOffloadHardwareInterface ( ) { return new com.android.server.connectivity.tethering.OffloadHardwareInterface ( ) ; }

Target:
public com.android.server.connectivity.tethering.OffloadHardwareInterface getOffloadHardwareInterface ( android.os.Handler h , android.net.util.SharedLog log ) { return new com.android.server.connectivity.tethering.OffloadHardwareInterface ( h , log ) ; }
Source:
public void tearDown ( ) { com.android.incallui.InCallPresenter.getInstance ( ) . removeInCallUiListener ( this ) ; com.android.incallui.call.CallList.getInstance ( ) . removeListener ( this ) ; com.android.incallui.audiomode.AudioModeProvider.getInstance ( ) . removeListener ( this ) ; }

Target:
public void tearDown ( ) { hide ( ) ; com.android.incallui.InCallPresenter.getInstance ( ) . removeInCallUiListener ( this ) ; com.android.incallui.call.CallList.getInstance ( ) . removeListener ( this ) ; com.android.incallui.audiomode.AudioModeProvider.getInstance ( ) . removeListener ( this ) ; }
Source:
long getCurrentTimeInMillis ( ) { return mNitzData.getCurrentTimeInMillis ( ) ; }

Target:
com.android.internal.telephony.NitzData getNitzData ( ) { return mNitzData.mValue ; }
Source:
public void setIconDrawable ( @ android.support.annotation.DrawableRes int drawableRes ) { iconView.setImageResource ( drawableRes ) ; }

Target:
public void setIconDrawable ( @ android.support.annotation.DrawableRes int drawableRes ) { if ( ( iconResource ) != drawableRes ) { iconView.setImageResource ( drawableRes ) ; iconResource = drawableRes ; } }
Source:
void modifyAssembleTaskDescription ( @ org.gradle.model.Path ( value = "tasks.assemble" ) org.gradle.api.Task assembleTask ) { assembleTask.description = "Assembles all variants of all applications and secondary packages." ; }

Target:
public void modifyAssembleTaskDescription ( @ org.gradle.model.Path ( value = "tasks.assemble" ) org.gradle.api.Task assembleTask ) { assembleTask.setDescription ( "Assembles all variants of all applications and secondary packages." ) ; }
Source:
private com.android.rs.test.Short3 pack_s3 ( short [ ] val ) { assert ( val.length ) == 3 ; return new com.android.rs.test.Short3 ( val [ 0 ] , val [ 1 ] , val [ 2 ] ) ; }

Target:
private android.renderscript.Short3 pack_s3 ( short [ ] val ) { assert ( val.length ) == 3 ; return new android.renderscript.Short3 ( val [ 0 ] , val [ 1 ] , val [ 2 ] ) ; }
Source:
public java.util.Iterator < ? extends T > next ( ) { return iterableIterator.next ( ) . iterator ( ) ; }

Target:
java.util.Iterator < ? extends T > transform ( java.lang.Iterable < ? extends T > from ) { return from.iterator ( ) ; }
Source:
public static java.lang.String prettyPrint ( @ com.android.annotations.NonNull org.w3c.dom.Node node ) { return com.android.ide.common.xml.XmlPrettyPrinter.prettyPrint ( node , com.android.ide.common.xml.XmlFormatPreferences.defaults ( ) , com.android.ide.common.xml.XmlFormatStyle.get ( node ) , com.android.utils.SdkUtils.getLineSeparator ( ) ) ; }

Target:
public static java.lang.String prettyPrint ( @ com.android.annotations.NonNull org.w3c.dom.Node node , boolean endWithNewline ) { return com.android.ide.common.xml.XmlPrettyPrinter.prettyPrint ( node , com.android.ide.common.xml.XmlFormatPreferences.defaults ( ) , com.android.ide.common.xml.XmlFormatStyle.get ( node ) , com.android.utils.SdkUtils.getLineSeparator ( ) , endWithNewline ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mBluetoothAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mBluetoothAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; mPackageManager = mContext.getPackageManager ( ) ; }
Source:
public void resume ( com.android.ims.ImsStreamMediaProfile profile ) { if ( mClosed ) { return ; } try { miSession.resume ( profile ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public void resume ( android.telephony.ims.ImsStreamMediaProfile profile ) { if ( mClosed ) { return ; } try { miSession.resume ( profile ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public void visitBootstrapMethodsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.BootstrapMethodsAttribute bootstrapMethodsAttribute ) { if ( accepted ( clazz , bootstrapMethodsAttribute ) ) { bootstrapMethodsAttribute.accept ( clazz , attributeVisitor ) ; } }

Target:
public void visitSyntheticAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Field field , proguard.classfile.attribute.visitor.SyntheticAttribute syntheticAttribute ) { if ( accepted ( clazz , syntheticAttribute ) ) { attributeVisitor.visitSyntheticAttribute ( clazz , field , syntheticAttribute ) ; } }
Source:
public void createDefaultComponents ( @ com.android.annotations.NonNull org.gradle.api.NamedDomainObjectContainer < com.android.build.gradle.internal.dsl.BuildType > buildTypes , @ com.android.annotations.NonNull org.gradle.api.NamedDomainObjectContainer < com.android.build.gradle.internal.dsl.ProductFlavor > productFlavors , @ com.android.annotations.NonNull org.gradle.api.NamedDomainObjectContainer < com.android.build.gradle.internal.dsl.SigningConfig > signingConfigs ) { signingConfigs.create ( com.android.builder.core.BuilderConstants.DEBUG ) ; buildTypes.create ( com.android.builder.core.BuilderConstants.DEBUG ) ; }

Target:
public void createDefaultComponents ( @ com.android.annotations.NonNull org.gradle.api.NamedDomainObjectContainer < com.android.build.gradle.internal.dsl.BuildType > buildTypes , @ com.android.annotations.NonNull org.gradle.api.NamedDomainObjectContainer < com.android.build.gradle.internal.dsl.ProductFlavor > productFlavors , @ com.android.annotations.NonNull org.gradle.api.NamedDomainObjectContainer < com.android.build.gradle.internal.dsl.SigningConfig > signingConfigs ) { signingConfigs.create ( BuilderConstants.DEBUG ) ; buildTypes.create ( BuilderConstants.DEBUG ) ; }
Source:
static void multiplyP ( int [ ] x ) { if ( ( org.bouncycastle.crypto.modes.gcm.GCMUtil.shiftRight ( x ) ) != 0 ) { x [ 0 ] ^= org.bouncycastle.crypto.modes.gcm.GCMUtil.E1 ; } }

Target:
public static void multiplyP ( int [ ] x , int [ ] z ) { int m = ( org.bouncycastle.crypto.modes.gcm.GCMUtil.shiftRight ( x , z ) ) > > 8 ; z [ 0 ] ^= m & ( org.bouncycastle.crypto.modes.gcm.GCMUtil.E1 ) ; }
Source:
private void setupPassword ( ) { assertTrue ( mAndroidKeyStore.password ( "1111" ) ) ; assertTrue ( mAndroidKeyStore.isUnlocked ( ) ) ; assertEquals ( 0 , mAndroidKeyStore.saw ( "" ) . length ) ; }

Target:
private void setupPassword ( ) { assertTrue ( mAndroidKeyStore.onUserPasswordChanged ( "1111" ) ) ; assertTrue ( mAndroidKeyStore.isUnlocked ( ) ) ; assertEquals ( 0 , mAndroidKeyStore.saw ( "" ) . length ) ; }
Source:
private com.android.rs.test.Float2 pack_f2 ( float [ ] val ) { assert ( val.length ) == 2 ; return new com.android.rs.test.Float2 ( val [ 0 ] , val [ 1 ] ) ; }

Target:
private android.renderscript.Float2 pack_f2 ( float [ ] val ) { assert ( val.length ) == 2 ; return new android.renderscript.Float2 ( val [ 0 ] , val [ 1 ] ) ; }
Source:
public void run ( ) { mDrawable = mContext.getResources ( ) . getDrawable ( R.drawable.btn_check_on ) ; mBuilder = new android.app.AlertDialog.Builder ( mContext ) ; mBuilder.setIcon ( mDrawable ) ; mDialog = mBuilder.show ( ) ; }

Target:
public void run ( ) { mDrawable = mContext.getResources ( ) . getDrawable ( android.R.drawable.btn_default ) ; mBuilder = new android.app.AlertDialog.Builder ( mContext ) ; mBuilder.setIcon ( android.R.drawable.btn_default ) ; mDialog = mBuilder.show ( ) ; }
Source:
private static void cancelRootNotification ( android.content.Context context ) { android.app.NotificationManager nm = context.getSystemService ( android.app.NotificationManager.class ) ; nm.cancel ( com.android.traceur.Receiver.class . getName ( ) , 0 ) ; }

Target:
private static void cancelNotifications ( android.content.Context context ) { android.app.NotificationManager notificationManager = context.getSystemService ( android.app.NotificationManager.class ) ; notificationManager.cancel ( com.android.traceur.Receiver.class . getName ( ) , com.android.traceur.Receiver.TRACE_NOTIFICATION ) ; notificationManager.cancel ( com.android.traceur.Receiver.class . getName ( ) , com.android.traceur.Receiver.CATEGORY_NOTIFICATION ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSwitchStatement switchStmt ) { super . visit ( switchStmt ) ; this . accept ( switchStmt.getExpr ( ) ) ; return false ; }

Target:
boolean isCondition1or2Violated ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JStatement startStmt ) { return traverse ( com.google.common.collect.Sets.newHashSet ( startStmt ) , com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.failTestFor1and2 , com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.descendTestFor1and2 ) ; }
Source:
static long $opt$CharToLong ( int a ) { return ( ( long ) ( a ) ) ; }

Target:
static long $opt$ShortToLong ( short a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( long ) ( a ) ) ; }
Source:
public void close ( ) throws java.io.IOException { super . close ( ) ; synchronized ( this ) { digests.put ( getPath ( ) , getDigestString ( getMessageDigest ( ) . digest ( ) ) ) ; this . digest = null ; } }

Target:
public java.io.OutputStream getOutputStream ( ) throws com.android.sched.util.file.WrongPermissionException { return vfs.openWrite ( this ) ; }
Source:
public void onStart ( ) { android.util.Log.i ( com.android.server.wifi.nan.WifiNanService.TAG , ( "Registering " + ( android.content.Context.WIFI_NAN_SERVICE ) ) ) ; publishBinderService ( Context.WIFI_NAN_SERVICE , mImpl ) ; }

Target:
public void onStart ( ) { android.util.Log.i ( com.android.server.wifi.aware.WifiAwareService.TAG , ( "Registering " + ( android.content.Context.WIFI_AWARE_SERVICE ) ) ) ; publishBinderService ( Context.WIFI_AWARE_SERVICE , mImpl ) ; }
Source:
private void handleClearItemSelected ( ) { mAdapter.clearTestResults ( ) ; android.widget.Toast.makeText ( this , R.string.test_results_cleared , Toast.LENGTH_SHORT ) . show ( ) ; }

Target:
public void onClick ( android.content.DialogInterface dialog , int id ) { mAdapter.clearTestResults ( ) ; android.widget.Toast.makeText ( this , R.string.test_results_cleared , Toast.LENGTH_SHORT ) . show ( ) ; }
Source:
static com.android.cts.verifier.TestListAdapter.TestListItem createTestItem ( android.app.Activity activity , java.lang.String id , int titleRes , android.content.Intent intent ) { HEAD ( 7 ) ; com.android.cts.verifier.managedprovisioning.bd23c Merge ; }

Target:
static com.android.cts.verifier.TestListAdapter.TestListItem createTestItem ( android.app.Activity activity , java.lang.String id , int titleRes , android.content.Intent intent ) { intent.putExtra ( com.android.cts.verifier.managedprovisioning.DeviceOwnerPositiveTestActivity.EXTRA_TEST_ID , id ) ; return com.android.cts.verifier.TestListAdapter.TestListItem.newTest ( activity , titleRes , id , intent , null ) ; }
Source:
private static native void native_drawRoundRect ( int nativeCanvas , android.graphics.RectF rect , float rx , float ry , int paint ) ;

Target:
private static native void native_drawRoundRect ( long nativeCanvas , android.graphics.RectF rect , float rx , float ry , long nativePaint ) ;
Source:
public void callSessionHoldFailed ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsReasonInfo imsReasonInfo ) throws android.os.RemoteException { mNewListener.callSessionHoldFailed ( imsReasonInfo ) ; }

Target:
public void callSessionTtyModeReceived ( com.android.ims.internal.IImsCallSession iImsCallSession , int mode ) throws android.os.RemoteException { mNewListener.callSessionTtyModeReceived ( mode ) ; }
Source:
public java.lang.String call ( ) { return getTitle ( ) ; }

Target:
public android.graphics.Bitmap call ( ) { return getFavicon ( ) ; }
Source:
public static short $noinline$byteToDoubleToShort ( byte value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( short ) ( ( double ) ( value ) ) ) ; }

Target:
public static int $noinline$byteToDoubleToInt ( byte value ) { return ( ( int ) ( ( double ) ( value ) ) ) ; }
Source:
static com.android.manifmerger.IMergerLog.FileAndLine xmlFileAndLine ( @ com.android.annotations.NonNull org.w3c.dom.Node node ) { java.lang.String name = com.android.manifmerger.XmlUtils.extractXmlFilename ( node ) ; int line = com.android.manifmerger.XmlUtils.extractLineNumber ( node ) ; return new com.android.manifmerger.IMergerLog.FileAndLine ( name , line ) ; }

Target:
static com.android.manifmerger.IMergerLog.FileAndLine xmlFileAndLine ( @ com.android.annotations.NonNull org.w3c.dom.Node node ) { java.lang.String name = com.android.manifmerger.MergerXmlUtils.extractXmlFilename ( node ) ; int line = com.android.manifmerger.MergerXmlUtils.extractLineNumber ( node ) ; return new com.android.manifmerger.IMergerLog.FileAndLine ( name , line ) ; }
Source:
public void testAutofillCallbackDisabled ( ) throws java.lang.Exception { disableService ( ) ; final android.autofillservice.cts.MyAutofillCallback callback = mActivity.registerCallback ( ) ; mActivity.mUsername.changeFocus ( true ) ; callback.assertUiUnavailableEvent ( mActivity.mCustomView , mActivity.mUsername.text.id ) ; }

Target:
public void testAutofillCallbackDisabled ( ) throws java.lang.Exception { disableService ( ) ; final android.autofillservice.cts.MyAutofillCallback callback = mActivity.registerCallback ( ) ; focusToUsername ( ) ; callback.assertUiUnavailableEvent ( mActivity.mCustomView , mActivity.mUsername.text.id ) ; }
Source:
private void carrierActionReset ( ) { carrierActionSetMeteredApnsEnabled ( true ) ; carrierActionSetRadioEnabled ( true ) ; mPhone.getCarrierSignalAgent ( ) . notifyCarrierSignalReceivers ( new android.content.Intent ( TelephonyIntents.ACTION_CARRIER_SIGNAL_RESET ) ) ; }

Target:
private void carrierActionReset ( ) { carrierActionReportDefaultNetworkStatus ( false ) ; carrierActionSetMeteredApnsEnabled ( true ) ; carrierActionSetRadioEnabled ( true ) ; mPhone.getCarrierSignalAgent ( ) . notifyCarrierSignalReceivers ( new android.content.Intent ( TelephonyIntents.ACTION_CARRIER_SIGNAL_RESET ) ) ; }
Source:
public static int getMinSdkVersion ( com.android.sdklib.io.IAbstractFile manifestFile ) throws com.android.sdklib.io.StreamException , javax.xml.xpath.XPathExpressionException { javax.xml.xpath.XPath xPath = com.android.sdklib.xml.AndroidXPathFactory.newXPath ( ) ; java.lang.String result = xPath.evaluate ( ( ( ( ( ( ( ( "/" + ( com.android.sdklib.xml.AndroidManifest.NODE_MANIFEST ) ) + "/" ) + ( com.android.sdklib.xml.AndroidManifest.NODE_USES_SDK ) ) + "/@" ) + ( AndroidXPathFactory.DEFAULT_NS_PREFIX ) ) + ":" ) + ( com.android.sdklib.xml.AndroidManifest.ATTRIBUTE_MIN_SDK_VERSION ) ) , new org.xml.sax.InputSource ( manifestFile.getContents ( ) ) ) ; try { return java.lang.Integer.parseInt ( result ) ; } catch ( java.lang.NumberFormatException e ) { return ( result.length ( ) ) > 0 ? - 1 : 1 ; } }

Target:
public static java.lang.Integer getTargetSdkVersion ( com.android.sdklib.io.IAbstractFile manifestFile ) throws com.android.sdklib.io.StreamException , javax.xml.xpath.XPathExpressionException { javax.xml.xpath.XPath xPath = com.android.sdklib.xml.AndroidXPathFactory.newXPath ( ) ; java.lang.String result = xPath.evaluate ( ( ( ( ( ( ( ( "/" + ( com.android.sdklib.xml.AndroidManifest.NODE_MANIFEST ) ) + "/" ) + ( com.android.sdklib.xml.AndroidManifest.NODE_USES_SDK ) ) + "/@" ) + ( AndroidXPathFactory.DEFAULT_NS_PREFIX ) ) + ":" ) + ( com.android.sdklib.xml.AndroidManifest.ATTRIBUTE_TARGET_SDK_VERSION ) ) , new org.xml.sax.InputSource ( manifestFile.getContents ( ) ) ) ; try { return java.lang.Integer.valueOf ( result ) ; } catch ( java.lang.NumberFormatException e ) { return ( result.length ( ) ) > 0 ? - 1 : null ; } }
Source:
public void testConstructor_NullSubjectDN_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , "RSA" , 1024 , null , null , android.security.KeyPairGeneratorSpecTest.SERIAL_1 , android.security.KeyPairGeneratorSpecTest.NOW , android.security.KeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , 0 ) ; fail ( "Should throw IllegalArgumentException when subjectDN is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testConstructor_NullEndDate_Success ( ) throws java.lang.Exception { android.security.KeyPairGeneratorSpec spec = new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , "RSA" , 1024 , null , android.security.KeyPairGeneratorSpecTest.TEST_DN_1 , android.security.KeyPairGeneratorSpecTest.SERIAL_1 , android.security.KeyPairGeneratorSpecTest.NOW , null , 0 ) ; assertEquals ( android.security.KeyPairGeneratorSpecTest.DEFAULT_CERT_NOT_AFTER , spec.getEndDate ( ) ) ; }
Source:
public void test_F32_3_SCALE05_20_inSqure ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inX , Element.DataType.FLOAT_32 , 3 , 0.5F , 2.0F ) ; checkError ( ) ; }

Target:
public void test_F32_3_SCALE05_20_inSquare ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inX , Element.DataType.FLOAT_32 , 3 , 0.5F , 2.0F ) ; checkError ( ) ; }
Source:
public void writeTo ( com.android.dx.io.DexBuffer.Section out ) { out.writeByte ( visibility ) ; encodedAnnotation.writeTo ( out ) ; }

Target:
public void writeTo ( com.android.dex.Dex.Section out ) { out.writeByte ( visibility ) ; encodedAnnotation.writeTo ( out ) ; }
Source:
com.android.sched.util.location.Location getVFileLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return vfs.getVFileLocation ( parent , path ) ; }

Target:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.DeflateFS.DeflateVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return vfs.getVDirLocation ( parent.getWrappedDir ( ) , path ) ; }
Source:
com.google.common.collect.ImmutableList < java.lang.String > getExpansion ( com.google.devtools.common.options.ExpansionContext context ) throws com.google.devtools.common.options.OptionsParsingException ;

Target:
com.google.common.collect.ImmutableList < java.lang.String > getExpansion ( com.google.devtools.common.options.IsolatedOptionsData optionsData ) ;
Source:
public void testGetExpectedType ( ) { assertEquals ( "string" , com.android.tools.lint.checks.DuplicateResourceDetector.getExpectedType ( "Unexpected resource reference type; expected value of type @string/" ) ) ; }

Target:
public void testGetExpectedType ( ) { assertEquals ( "string" , com.android.tools.lint.checks.DuplicateResourceDetector.getExpectedType ( "Unexpected resource reference type; expected value of type `@string/`" , com.android.tools.lint.detector.api.TextFormat.RAW ) ) ; assertEquals ( "string" , com.android.tools.lint.checks.DuplicateResourceDetector.getExpectedType ( "Unexpected resource reference type; expected value of type @string/" , com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ; }
Source:
public static boolean isNexus ( @ com.android.annotations.NonNull com.android.sdklib.devices.Device device ) { return device.getName ( ) . contains ( com.android.ide.common.rendering.HardwareConfigHelper.NEXUS ) ; }

Target:
public static boolean isNexus ( @ com.android.annotations.NonNull com.android.sdklib.devices.Device device ) { return device.getId ( ) . contains ( com.android.ide.common.rendering.HardwareConfigHelper.NEXUS ) ; }
Source:
public java.lang.String getAppNameSpace ( ) { fail ( "Not supported in tests yet" ) ; return null ; }

Target:
public java.lang.String getUniqueId ( @ com.android.annotations.NonNull java.lang.String prefix ) { fail ( "Not supported in tests yet" ) ; return null ; }
Source:
public static void computeCbrt ( android.renderscript.cts.TestCbrt.ArgumentsFloatFloat args ) { args.ulf = 2 ; args.ulfRelaxed = 128 ; args.out = ( ( float ) ( java.lang.StrictMath.cbrt ( args.in ) ) ) ; }

Target:
public static void computeConvert ( android.renderscript.cts.TestConvert.ArgumentsFloatChar args ) { args.out = android.renderscript.cts.CoreMathVerifier.convertFloatToChar ( args.inV ) ; }
Source:
private native int createSocketChannelNative ( int type , java.lang.String serviceName , byte [ ] uuid , int port , int flag ) ;

Target:
private native int createSocketChannelNative ( int type , java.lang.String serviceName , byte [ ] uuid , int port , int flag , int callingUid ) ;
Source:
public void getConfiguration ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { config.set ( mSelectedConfiguration ) ; }

Target:
public void getConfiguration ( com.android.ide.common.resources.configuration.FolderConfiguration config ) { config.set ( mSelectedConfiguration ) ; }
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 testInterruptReader ( final java.io.PipedReader reader ) throws java.lang.Exception { java.lang.Thread thread = interruptMeLater ( ) ; try { reader.read ( ) ; fail ( ) ; } catch ( java.io.InterruptedIOException expected ) { } finally { libcore.java.io.InterruptedStreamTest.confirmInterrupted ( thread ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { mSnapshot = new com.android.tools.perflib.heap.Snapshot ( ) ; mSnapshot.setHeapTo ( 13 , "testHeap" ) ; mDummyClass.setSize ( 20 ) ; mSnapshot.addClass ( 0 , mDummyClass ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mSnapshot = new com.android.tools.perflib.heap.Snapshot ( ) ; mSnapshot.setHeapTo ( 13 , "testHeap" ) ; mDummyClass.setInstanceSize ( 20 ) ; mSnapshot.addClass ( 0 , mDummyClass ) ; }
Source:
private void mergeAnnotations ( @ javax.annotation.Nonnull com.android.jack.dx.io.DexBuffer dexToMerge , @ javax.annotation.Nonnull com.android.jack.dx.io.ClassDef classDefToMerge , @ javax.annotation.Nonnull com.android.jack.dx.dex.file.ClassDefItem newClassDef ) { if ( ( classDefToMerge.getAnnotationsOffset ( ) ) != 0 ) { am.mergeAnnotationDirectory ( dexToMerge , classDefToMerge.getAnnotationsOffset ( ) , newClassDef ) ; } }

Target:
private void mergeAnnotations ( @ javax.annotation.Nonnull com.android.jack.dx.io.DexBuffer dexToMerge , @ javax.annotation.Nonnull com.android.jack.dx.io.ClassDef classDefToMerge , @ javax.annotation.Nonnull com.android.jack.dx.dex.file.ClassDefItem newClassDef , @ javax.annotation.Nonnull com.android.jack.dx.rop.cst.CstIndexMap cstIndexMap ) { if ( ( classDefToMerge.getAnnotationsOffset ( ) ) != 0 ) { am.mergeAnnotationDirectory ( dexToMerge , classDefToMerge.getAnnotationsOffset ( ) , newClassDef , cstIndexMap ) ; } }
Source:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }

Target:
public void testMethodRef014 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( METHODREF014 ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . compileAndRunTest ( ) ; }
Source:
public void testGetNonStartedScheduledRecordings_past ( ) { mDvrDataManager.addScheduledRecordingInternal ( createNewScheduledRecordingStartingNow ( ) ) ; mFakeClock.increment ( java.util.concurrent.TimeUnit.MINUTES , 6 ) ; java.util.List < com.android.tv.dvr.ScheduledRecording > result = mDvrDataManager.getNonStartedScheduledRecordings ( ) ; android.test.MoreAsserts.assertContentsInAnyOrder ( result ) ; }

Target:
public void testGetNonStartedScheduledRecordings_past ( ) { mDvrDataManager.addScheduledRecordingInternal ( createNewScheduledRecordingStartingNow ( ) ) ; mFakeClock.increment ( java.util.concurrent.TimeUnit.MINUTES , 6 ) ; java.util.List < com.android.tv.dvr.data.ScheduledRecording > result = mDvrDataManager.getNonStartedScheduledRecordings ( ) ; android.test.MoreAsserts.assertContentsInAnyOrder ( result ) ; }
Source:
public int [ ] getRelevantUids ( ) { return getUidComplete ( ) . getRelevantUids ( checkAccessLevel ( mCallingPackage ) ) ; }

Target:
public int [ ] getRelevantUids ( ) { return getUidComplete ( ) . getRelevantUids ( mAccessLevel ) ; }
Source:
public static com.google.common.util.concurrent.RateLimiter create ( double permitsPerSecond ) { return com.google.common.util.concurrent.RateLimiter.create ( com.google.common.util.concurrent.RateLimiter.SleepingTicker.SYSTEM_TICKER , permitsPerSecond ) ; }

Target:
public static com.google.common.util.concurrent.RateLimiter create ( double permitsPerSecond ) { return com.google.common.util.concurrent.RateLimiter.create ( com.google.common.util.concurrent.RateLimiter.SleepingStopwatch.createFromSystemTimer ( ) , permitsPerSecond ) ; }
Source:
public void testUtilityFunctions ( ) { android.renderscript.cts.ScriptC_utils t = new android.renderscript.cts.ScriptC_utils ( mRS ) ; t.invoke_test ( ) ; waitForMessage ( ) ; checkForErrors ( ) ; }

Target:
public void testUtilityFunctions ( ) { android.renderscript.cts.ScriptC_utils t = new android.renderscript.cts.ScriptC_utils ( mRS ) ; t.invoke_test ( ) ; waitForMessage ( ) ; checkForErrors ( ) ; t.destroy ( ) ; }
Source:
public static int IntRemainder ( ) { int a ; int b ; int c ; a = Main.$inline$int ( 8 ) ; b = Main.$inline$int ( 3 ) ; c = a % b ; return c ; }

Target:
public static double DoubleMultiplication ( ) { double a ; double b ; double c ; a = 7.0 ; b = 3.0 ; c = a * b ; return c ; }
Source:
public com.android.build.gradle.integration.common.fixture.GradleTestProject create ( ) { return new com.android.build.gradle.integration.common.fixture.GradleTestProject ( name , testApp , captureStdOut ) ; }

Target:
public com.android.build.gradle.integration.common.fixture.GradleTestProject create ( ) { return new com.android.build.gradle.integration.common.fixture.GradleTestProject ( name , testApp , captureStdOut , captureStdErr ) ; }
Source:
public static void isMainThread ( ) { if ( ( com.android.voicemail.impl.Assert.sIsMainThreadForTest ) != null ) { com.android.voicemail.impl.Assert.isTrue ( com.android.voicemail.impl.Assert.sIsMainThreadForTest ) ; return ; } com.android.voicemail.impl.Assert.isTrue ( android.os.Looper.getMainLooper ( ) . equals ( android.os.Looper.myLooper ( ) ) ) ; }

Target:
public static void isMainThread ( ) { if ( ( com.android.voicemail.impl.Assert.isMainThreadForTest ) != null ) { com.android.voicemail.impl.Assert.isTrue ( com.android.voicemail.impl.Assert.isMainThreadForTest ) ; return ; } com.android.voicemail.impl.Assert.isTrue ( android.os.Looper.getMainLooper ( ) . equals ( android.os.Looper.myLooper ( ) ) ) ; }