auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void runWithoutVerification ( ) { new android.uirendering.cts.bitmapverifiers.BitmapVerifier ( ) { @ java.lang.Override public boolean verify ( int [ ] bitmap , int offset , int stride , int width , int height ) { } } ; }

Target:
public void runWithoutVerification ( ) { runWithVerifier ( new android.uirendering.cts.bitmapverifiers.BitmapVerifier ( ) { @ java.lang.Override public boolean verify ( int [ ] bitmap , int offset , int stride , int width , int height ) { return true ; } } ) ; }
Source:
public android.net.NetworkCapabilities removeCapability ( @ android.net.NetworkCapabilities.NetCapability int capability ) { if ( ( capability < ( android.net.NetworkCapabilities.MIN_NET_CAPABILITY ) ) || ( capability > ( android.net.NetworkCapabilities.MAX_NET_CAPABILITY ) ) ) { throw new java.lang.IllegalArgumentException ( "NetworkCapability out of range" ) ; } mNetworkCapabilities &= ~ ( 1 << capability ) ; return this ; }

Target:
public android.net.NetworkCapabilities removeCapability ( @ android.net.NetworkCapabilities.NetCapability int capability ) { android.net.NetworkCapabilities.checkValidCapability ( capability ) ; final long mask = ~ ( 1 << capability ) ; mNetworkCapabilities &= mask ; mUnwantedNetworkCapabilities &= mask ; return this ; }
Source:
public static com.android.jack.dx.rop.code.Rop opLiberateVariable ( com.android.jack.dx.rop.type.TypeBearer type , com.android.jack.dx.rop.type.TypeList sources ) { return new com.android.jack.dx.rop.code.Rop ( RegOps.LIBERATE_VARIABLE , type.getType ( ) , sources , com.android.jack.dx.rop.type.StdTypeList.EMPTY , Rop.BRANCH_NONE , "liberate-lambda" ) ; }

Target:
public static com.android.jack.dx.rop.code.Rop opLiberateVariable ( com.android.jack.dx.rop.type.TypeBearer type , com.android.jack.dx.rop.type.TypeList sources ) { return new com.android.jack.dx.rop.code.Rop ( RegOps.LIBERATE_VARIABLE , type.getType ( ) , sources , com.android.jack.dx.rop.type.StdTypeList.EMPTY , Rop.BRANCH_THROW , "liberate-lambda" ) ; }
Source:
protected void visitAnnotationValue ( int argAndType ) { }

Target:
public void readNull ( ) { checkType ( com.android.dx.io.EncodedValueReader.ENCODED_NULL ) ; type = com.android.dx.io.EncodedValueReader.MUST_READ ; }
Source:
private static void onDataPathEnd ( int ndpId ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( "onDataPathEndNotification: ndpId=" + ndpId ) ) ; } com.android.server.wifi.aware.WifiAwareStateManager.getInstance ( ) . onDataPathEndNotification ( ndpId ) ; }

Target:
private static void onDataPathEnd ( int ndpId ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( "onDataPathEndNotification: ndpId=" + ndpId ) ) ; } com.android.server.wifi.aware.WifiAwareNative.sWifiAwareStateManager.onDataPathEndNotification ( ndpId ) ; }
Source:
public void onSuccessfulUnknownCall ( com.android.server.telecom.Call call , int callState ) { setCallState ( call , callState , "successful unknown call" ) ; com.android.server.telecom.Log.i ( this , "onSuccessfulUnknownCall for call %s" , call ) ; addCall ( call ) ; }

Target:
public void onSuccessfulUnknownCall ( com.android.server.telecom.Call call , int callState ) { setCallState ( call , callState , "successful unknown call" ) ; android.telecom.Log.i ( this , "onSuccessfulUnknownCall for call %s" , call ) ; addCall ( call ) ; }
Source:
public java.lang.String getMessage ( ) { return ( ( ( ( ( "Failed to perform import: Resource in " + ( newResourceLocation.getDescription ( ) ) ) + " has already been imported from " ) + ( existingResourceLocation.getDescription ( ) ) ) + " (see property '" ) + ( ResourceImporter.RESOURCE_COLLISION_POLICY.getName ( ) ) ) + "' for resource collision policy)" ; }

Target:
public java.lang.String getMessage ( ) { return ( ( ( ( ( "Resource in " + ( newResourceLocation.getDescription ( ) ) ) + " has already been imported from " ) + ( existingResourceLocation.getDescription ( ) ) ) + " (see property '" ) + ( ResourceImporter.RESOURCE_COLLISION_POLICY.getName ( ) ) ) + "' for resource collision policy)" ; }
Source:
public static java.util.Map < java.lang.String , java.lang.Integer > retrieveFieldValueNames ( java.lang.String id , int field , int style , java.util.Locale locale ) { return null ; }

Target:
public static java.lang.String retrieveJavaTimeFieldValueName ( java.lang.String id , int field , int value , int style , java.util.Locale locale ) { return sun.util.locale.provider.CalendarDataUtility.retrieveFieldValueName ( id , field , value , style , locale ) ; }
Source:
public static void setMasterSyncAutomatically ( boolean sync ) { try { android.content.ContentResolver.getContentService ( ) . setMasterSyncAutomatically ( sync ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public static void setMasterSyncAutomatically ( boolean sync ) { android.content.ContentResolver.setMasterSyncAutomaticallyAsUser ( sync , android.os.UserHandle.myUserId ( ) ) ; }
Source:
public int getLocalPort ( ) { return serverSocket.getLocalPort ( ) ; }

Target:
public void close ( ) throws java.io.IOException { if ( ( serverSocket ) != null ) { serverSocket.close ( ) ; } for ( java.net.Socket client : clients ) { client.close ( ) ; } }
Source:
public int hashCode ( ) { return ( ( ( scanStatus ) * 31 ) + ( ( scanError ) * 23 ) ) + ( ( networkInfos.hashCode ( ) ) * 37 ) ; }

Target:
public int hashCode ( ) { return ( ( ( scanStatus ) * 31 ) + ( ( scanError ) * 23 ) ) + ( ( java.util.Objects.hashCode ( networkInfos ) ) * 37 ) ; }
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 computeCbrt ( android.renderscript.cts.TestCbrt.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.cbrt ( args.in ) , 2 , 128 ) ; }
Source:
public final int read ( byte [ ] buffer , int offset , int length ) throws java.io.IOException { return in.read ( buffer , offset , length ) ; }

Target:
public final int read ( byte [ ] buffer , int byteOffset , int byteCount ) throws java.io.IOException { return in.read ( buffer , byteOffset , byteCount ) ; }
Source:
public boolean matchesObject ( java.lang.Object argument ) { android.os.Message message = ( ( android.os.Message ) ( argument ) ) ; return ( message.what ) == what ; }

Target:
public boolean matches ( android.os.Message message ) { boolean isMatch = ( message.what ) == ( mWhat ) ; if ( isMatch ) { mLastValue = message ; } return isMatch ; }
Source:
protected java.util.Set < java.lang.String > getAllowedValues ( ) { return com.android.build.gradle.internal.dsl.AbiSplitOptions.ABI_LIST ; }

Target:
protected com.google.common.collect.ImmutableSet < java.lang.String > getAllowedValues ( ) { return com.google.common.collect.ImmutableSet.copyOf ( com.android.build.gradle.internal.dsl.AbiSplitOptions.ABI_LIST ) ; }
Source:
public void setOutgoingCallerIdDisplay ( int commandInterfaceCLIRMode , android.os.Message onComplete ) { android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "setOutgoingCallerIdDisplay: not possible in CDMA" ) ; }

Target:
public void getAvailableNetworks ( android.os.Message response ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "getAvailableNetworks: not possible in CDMA" ) ; }
Source:
public static com.google.common.io.InputSupplier < java.io.InputStream > newInputStreamSupplier ( final java.net.URL url ) { com.google.common.base.Preconditions.checkNotNull ( url ) ; return new com.google.common.io.InputSupplier < java.io.InputStream > ( ) { @ java.lang.Override public java.io.InputStream getInput ( ) throws java.io.IOException { return url.openStream ( ) ; } } ; }

Target:
public static com.google.common.io.ByteSource asByteSource ( java.net.URL url ) { return new com.google.common.io.Resources.UrlByteSource ( url ) ; }
Source:
public com.google.common.collect.RegularImmutableMap.LinkedEntry < K , V > next ( ) { return null ; }

Target:
com.google.common.collect.ImmutableMapEntry < K , V > getNextInValueBucket ( ) { return null ; }
Source:
void setStatusHints ( java.lang.String callId , android.telecom.StatusHints statusHints ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.setStatusHints ( callId , statusHints ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
void setIsVoipAudioMode ( java.lang.String callId , boolean isVoip ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.setIsVoipAudioMode ( callId , isVoip , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
protected void onResume ( ) { super . onResume ( ) ; registerReceiver ( mConnectivityReceiver , mConnectivityIntentFilter , android.Manifest.permission.CHANGE_NETWORK_STATE , null ) ; registerReceiver ( mBatteryInfoReceiver , new android.content.IntentFilter ( android.content.Intent.ACTION_BATTERY_CHANGED ) ) ; mHandler.sendEmptyMessage ( com.android.settings.deviceinfo.Status.EVENT_UPDATE_STATS ) ; }

Target:
public void onResume ( ) { super . onResume ( ) ; getContext ( ) . registerReceiver ( mConnectivityReceiver , mConnectivityIntentFilter , android.Manifest.permission.CHANGE_NETWORK_STATE , null ) ; getContext ( ) . registerReceiver ( mBatteryInfoReceiver , new android.content.IntentFilter ( android.content.Intent.ACTION_BATTERY_CHANGED ) ) ; mHandler.sendEmptyMessage ( com.android.settings.deviceinfo.Status.EVENT_UPDATE_STATS ) ; }
Source:
public java.lang.String getPath ( ) { return ( ( mVendorId ) + '/' ) + ( mExtraPath ) ; }

Target:
public com.android.sdklib.repository.descriptors.IPkgDesc getDesc ( ) { return mDesc ; }
Source:
public android.net.IpSecTransform.Builder setSpi ( @ android.net.IpSecTransform.TransformDirection int direction , android.net.IpSecManager.SecurityParameterIndex spi ) { mConfig.flow [ direction ] . spi = spi.getSpi ( ) ; return this ; }

Target:
public android.net.IpSecTransform.Builder setSpi ( @ android.net.IpSecTransform.TransformDirection int direction , android.net.IpSecManager.SecurityParameterIndex spi ) { mConfig.setSpiResourceId ( direction , spi.getResourceId ( ) ) ; return this ; }
Source:
static com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation findIntDef ( @ com.android.annotations.NonNull java.lang.Iterable < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > annotations ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : annotations ) { if ( com.android.SdkConstants.INT_DEF_ANNOTATION.equals ( annotation.getName ( ) ) ) { return annotation ; } } return null ; }

Target:
private static com.intellij.psi.PsiAnnotation findIntRange ( @ com.android.annotations.NonNull com.intellij.psi.PsiAnnotation [ ] annotations ) { for ( com.intellij.psi.PsiAnnotation annotation : annotations ) { if ( com.android.tools.lint.checks.SupportAnnotationDetector.INT_RANGE_ANNOTATION.equals ( annotation.getQualifiedName ( ) ) ) { return annotation ; } } return null ; }
Source:
public java.io.File [ ] getDefaultBootClasspath ( ) { return new java.io.File [ ] { new java.io.File ( com.android.jack.test.toolchain.AbstractTestTools.getJackRootDir ( ) , "toolchain/jack/jack-tests/libs/core-stubs-mini.jack" ) , new java.io.File ( com.android.jack.test.toolchain.AbstractTestTools.getJackRootDir ( ) , "toolchain/jack/jack-tests/prebuilts/junit4-targetdex-jack.zip" ) } ; }

Target:
public java.io.File [ ] getDefaultBootClasspath ( ) { return new java.io.File [ ] { new java.io.File ( com.android.jack.test.toolchain.AbstractTestTools.getJackRootDir ( ) , "jack-tests/libs/core-stubs-mini.jack" ) , new java.io.File ( com.android.jack.test.toolchain.AbstractTestTools.getJackRootDir ( ) , "jack-tests/prebuilts/junit4-targetdex-jack.zip" ) } ; }
Source:
public int previous ( ) { throw new java.lang.UnsupportedOperationException ( "previous() is not yet implemented" ) ; }

Target:
public int previous ( ) { return internalPrev ( delegate.previous ( ) ) ; }
Source:
public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { }

Target:
public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; constructorArguments.add ( byteArrayValue ) ; }
Source:
private static boolean shouldSkipPakExtraction ( ) { return ( org.chromium.base.ResourceExtractor.sResourcesToExtract.length ) == 0 ; }

Target:
private static boolean shouldSkipPakExtraction ( ) { return ( org.chromium.base.ResourceExtractor.get ( ) . mAssetsToExtract.length ) == 0 ; }
Source:
public void fileChanged ( @ com.android.annotations.NonNull org.eclipse.core.resources.IFile file , @ com.android.annotations.NonNull org.eclipse.core.resources.IMarkerDelta [ ] markerDeltas , int kind , @ com.android.annotations.Nullable java.lang.String extension , int flags ) { if ( file.equals ( inputFile ) ) { processMarkerChanges ( markerDeltas ) ; } }

Target:
public void fileChanged ( @ com.android.annotations.NonNull org.eclipse.core.resources.IFile file , @ com.android.annotations.NonNull org.eclipse.core.resources.IMarkerDelta [ ] markerDeltas , int kind , @ com.android.annotations.Nullable java.lang.String extension , int flags , boolean isAndroidProject ) { if ( isAndroidProject && ( file.equals ( inputFile ) ) ) { processMarkerChanges ( markerDeltas ) ; } }
Source:
public final java.lang.String getTypeName ( ) { com.android.tools.perflib.heap.ClassObj theClass = mHeap.mState.findClass ( mClassId ) ; return theClass.mClassName ; }

Target:
public final java.lang.String getTypeName ( ) { return getClassObj ( ) . mClassName ; }
Source:
void requestUpgrade ( android.telecom.Call call ) ;

Target:
void requestUpgrade ( @ android.support.annotation.NonNull android.content.Context context , android.telecom.Call call ) ;
Source:
public static double DoubleDivision ( ) { double a ; double b ; double c ; a = 8.0 ; b = 2.5 ; c = a / b ; return c ; }

Target:
public static double DoubleDivision ( ) { double a ; double b ; double c ; a = Main.$inline$double ( 8.0 ) ; b = Main.$inline$double ( 2.5 ) ; c = a / b ; return c ; }
Source:
public void testRunDeviceNotAvailable ( ) { mTest.setDevice ( null ) ; try { mTest.run ( mMockInvocationListener ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException e ) { fail ( ) ; } catch ( com.android.tradefed.device.DeviceNotAvailableException e ) { } }

Target:
public void testRunDeviceNotAvailable ( ) { mTest.setDevice ( null ) ; try { mTest.run ( mMockInvocationListener ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.IllegalArgumentException e ) { org.junit.Assert.fail ( ) ; } catch ( com.android.tradefed.device.DeviceNotAvailableException e ) { } }
Source:
public boolean isTrue ( ) throws java.lang.Exception { return ! ( com.android.devtools.systemimage.uitest.smoke.PlayStoreTest.findInGooglePlay ( device , ( ( "App: " + application ) + " Adults" ) ) ) ; }

Target:
public boolean isTrue ( ) throws android.support.test.uiautomator.UiObjectNotFoundException { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . descriptionContains ( testDescription ) ) . exists ( ) ; }
Source:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsIntIntIntInt 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.ArgumentsIntIntIntInt args ) { args.out = android.renderscript.cts.CoreMathVerifier.minI32 ( args.inMaxValue , android.renderscript.cts.CoreMathVerifier.maxI32 ( args.inValue , args.inMinValue ) ) ; }
Source:
private static native boolean tryReuseArenaOfMethod ( long artMethod , int tries_count ) ;

Target:
private static native void reuseArenaOfMethod ( long artMethod ) ;
Source:
public static float abs ( float a ) { return a <= 0.0F ? 0.0F - a : a ; }

Target:
public static float max ( float a , float b ) { return java.lang.Math.max ( a , b ) ; }
Source:
public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_PLATFORM_TOOLS ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newPlatformTool ( @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_PLATFORM_TOOLS ) ; p.mFullRevision = revision ; return p ; }
Source:
public void finish ( ) { final android.content.ComponentName adminComponent = com.android.cts.verifier.managedprovisioning.DeviceAdminTestReceiver.getReceiverComponentName ( ) ; if ( mDpm.isAdminActive ( adminComponent ) ) { mDpm.resetPassword ( null , 0 ) ; mDpm.removeActiveAdmin ( adminComponent ) ; } super . finish ( ) ; }

Target:
public void finish ( ) { final android.content.ComponentName adminComponent = getAdminComponent ( ) ; if ( mDpm.isAdminActive ( adminComponent ) ) { mDpm.resetPassword ( null , 0 ) ; mDpm.removeActiveAdmin ( adminComponent ) ; } super . finish ( ) ; }
Source:
protected void doPerformAndWait ( java.util.concurrent.FutureTask < java.lang.Boolean > futureTask , long timeoutMillis ) { futureTask.run ( ) ; context.tryWaitForIdleSync ( timeoutMillis ) ; }

Target:
protected void doPerformAndWait ( java.util.concurrent.FutureTask < java.lang.Boolean > futureTask , long timeoutMillis ) { futureTask.run ( ) ; io.appium.droiddriver.util.InstrumentationUtils.tryWaitForIdleSync ( timeoutMillis ) ; }
Source:
protected void ensureAll ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JParameter loaded ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void ensureAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JParameter loaded , @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationType annotation ) { ensureAnnotations ( loaded ) ; }
Source:
boolean matchesNationalNumber ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc numberDesc , boolean allowPrefixMatch ) ;

Target:
boolean matchNationalNumber ( java.lang.CharSequence number , com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc numberDesc , boolean allowPrefixMatch ) ;
Source:
private void setIssuer ( java.lang.Object val ) throws java.security.cert.CertificateException { if ( ! ( val instanceof sun.security.x509.CertificateIssuerName ) ) { throw new java.security.cert.CertificateException ( "Issuer class type invalid." ) ; } issuer = ( ( sun.security.x509.CertificateIssuerName ) ( val ) ) ; }

Target:
private void setIssuer ( java.lang.Object val ) throws java.security.cert.CertificateException { if ( ! ( val instanceof sun.security.x509.X500Name ) ) { throw new java.security.cert.CertificateException ( "Issuer class type invalid." ) ; } issuer = ( ( sun.security.x509.X500Name ) ( val ) ) ; }
Source:
public java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > getConfiguredResources ( @ com.android.annotations.NonNull com.android.ide.common.resources.configuration.FolderConfiguration referenceConfig ) { return doGetConfiguredResources ( referenceConfig ) ; }

Target:
public java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > getConfiguredResources ( @ com.android.annotations.NonNull com.android.ide.common.resources.configuration.FolderConfiguration referenceConfig ) { ensureInitialized ( ) ; return doGetConfiguredResources ( referenceConfig ) ; }
Source:
public void clearLocalPkg ( @ com.android.annotations.NonNull java.util.EnumSet < com.android.sdklib.repository.descriptors.PkgType > filters ) { mLegacyBuildTools = null ; for ( com.android.sdklib.repository.descriptors.PkgType filter : filters ) { mVisitedDirs.removeAll ( filter ) ; mLocalPackages.removeAll ( filter ) ; } }

Target:
public void clearLocalPkg ( @ com.android.annotations.NonNull java.util.EnumSet < com.android.sdklib.repository.descriptors.PkgType > filters ) { mCachedTargets = null ; mLegacyBuildTools = null ; for ( com.android.sdklib.repository.descriptors.PkgType filter : filters ) { mVisitedDirs.removeAll ( filter ) ; mLocalPackages.removeAll ( filter ) ; } }
Source:
public final void logln ( java.lang.String message ) { msg ( message , com.ibm.icu.dev.test.LOG , true , true ) ; }

Target:
public static final void err ( java.lang.String message ) { org.junit.Assert.fail ( message ) ; }
Source:
public static native int nativeReadNetworkStatsDetail ( android.net.NetworkStats stats , java.lang.String path , int limitUid , java.lang.String [ ] limitIfaces , int limitTag ) ;

Target:
public static native int nativeReadNetworkStatsDetail ( android.net.NetworkStats stats , java.lang.String path , int limitUid , java.lang.String [ ] limitIfaces , int limitTag , boolean useBpfStats ) ;
Source:
public void testWelcome ( ) { assertEquals ( mWelcomeText , mWelcomeTextView.getText ( ) . toString ( ) ) ; }

Target:
public void testWelcome ( ) { assertEquals ( mWelcomeText , mWelcomeTextView.getText ( ) . toString ( ) ) ; assertEquals ( mContinueText , mContinueButton.getText ( ) . toString ( ) ) ; }
Source:
public void testViewAbsent_AndThatsWhatIWant ( ) { try { android.support.test.espresso.assertion.ViewAssertions.matches ( nullViewMatcher ) . check ( absentView , presentException ) ; } catch ( android.support.test.espresso.NoMatchingViewException expected ) { return ; } fail ( "should not accept, view not present." ) ; }

Target:
public void viewAbsent_Unexpectedly ( ) { expectedException.expect ( android.support.test.espresso.NoMatchingViewException.class ) ; android.support.test.espresso.assertion.ViewAssertions.matches ( alwaysAccepts ) . check ( absentView , presentException ) ; }
Source:
protected abstract void sendSubmitPdu ( com.android.internal.telephony.SMSDispatcher.SmsTracker tracker ) ;

Target:
protected abstract boolean shouldBlockSms ( ) ;
Source:
public static void computeHypot ( android.renderscript.cts.TestHypot.ArgumentsFloatFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 4 ; args.out = ( ( float ) ( java.lang.StrictMath.hypot ( args.inX , args.inY ) ) ) ; }

Target:
public static void computeHypot ( android.renderscript.cts.TestHypot.ArgumentsFloatFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.hypot ( args.inX , args.inY ) , 4 , 4 ) ; }
Source:
public android.telephony.mbms.DownloadRequest download ( android.telephony.mbms.DownloadRequest downloadRequest , android.telephony.mbms.DownloadCallback listener ) { return null ; }

Target:
public android.telephony.mbms.DownloadRequest download ( android.telephony.mbms.DownloadRequest request , android.telephony.mbms.IDownloadCallback listener ) { request.setAppName ( mDownloadAppName ) ; return request ; }
Source:
public void invokeOemRilRequestRaw ( byte [ ] data , android.os.Message response ) { if ( response != null ) { android.os.AsyncResult.forMessage ( response ) . result = data ; response.sendToTarget ( ) ; } }

Target:
public void setIccSlotStatus ( com.android.internal.telephony.uicc.IccSlotStatus iccSlotStatus ) { mIccSlotStatus = iccSlotStatus ; }
Source:
public static void computePown ( android.renderscript.cts.TestPown.ArgumentsFloatIntFloat args ) { args.ulf = 16 ; args.ulfRelaxed = 128 ; args.out = ( ( float ) ( java.lang.StrictMath.pow ( args.inX , args.inY ) ) ) ; }

Target:
public static void computeRound ( android.renderscript.cts.TestRound.ArgumentsFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = java.lang.StrictMath.round ( args.in ) ; }
Source:
public void enter ( ) { turnOnMasterTetherSettings ( ) ; startListeningForSimChanges ( ) ; mUpstreamNetworkMonitor.start ( ) ; mTryCell = true ; chooseUpstreamType ( mTryCell ) ; mTryCell = ! ( mTryCell ) ; }

Target:
public void enter ( ) { turnOnMasterTetherSettings ( ) ; simChange.startListening ( ) ; mUpstreamNetworkMonitor.start ( ) ; mTryCell = true ; chooseUpstreamType ( mTryCell ) ; mTryCell = ! ( mTryCell ) ; }
Source:
public void test_getName ( ) { android.bluetooth.BluetoothAdapter adapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; enable ( adapter ) ; java.lang.String name = adapter.getName ( ) ; assertNotNull ( name ) ; }

Target:
public void test_getName ( ) { if ( ! ( mHasBluetooth ) ) { return ; } android.bluetooth.BluetoothAdapter adapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; enable ( adapter ) ; java.lang.String name = adapter.getName ( ) ; assertNotNull ( name ) ; }
Source:
public com.android.sched.util.codec.Formatter < ? > [ ] getFormatters ( ) ;

Target:
public int getDataCount ( ) ;
Source:
public static void computeLog1p ( android.renderscript.cts.TestLog1p.ArgumentsFloatFloat args ) { args.ulf = 2 ; args.ulfRelaxed = 16 ; args.out = ( ( float ) ( java.lang.StrictMath.log1p ( args.in ) ) ) ; }

Target:
public static void computeCbrt ( android.renderscript.cts.TestCbrt.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.cbrt ( args.in ) , 2 , 128 ) ; }
Source:
void startKeepalive ( android.content.Context c ) { if ( ( mConfig.getNattKeepaliveInterval ( ) ) != 0 ) { android.util.Log.wtf ( android.net.IpSecTransform.TAG , "Keepalive not yet supported." ) ; } }

Target:
public void stopNattKeepalive ( ) { synchronized ( mKeepaliveCallback ) { if ( ( mKeepalive ) == null ) { android.util.Log.e ( android.net.IpSecTransform.TAG , "No active keepalive to stop" ) ; return ; } mKeepalive.stop ( ) ; } }
Source:
public com.android.sdklib.repository.local.LocalExtraPkgInfo getExtra ( @ com.android.annotations.NonNull java.lang.String vendor , @ com.android.annotations.NonNull java.lang.String path ) { return ( ( com.android.sdklib.repository.local.LocalExtraPkgInfo ) ( getPkgInfo ( PkgType.PKG_EXTRAS , vendor , path ) ) ) ; }

Target:
public com.android.sdklib.repository.local.LocalExtraPkgInfo getExtra ( @ com.android.annotations.NonNull java.lang.String vendor , @ com.android.annotations.NonNull java.lang.String path ) { return ( ( com.android.sdklib.repository.local.LocalExtraPkgInfo ) ( getPkgInfo ( PkgType.PKG_EXTRA , vendor , path ) ) ) ; }
Source:
com.android.server.wifi.WifiConnectivityManager createConnectivityManager ( ) { return new com.android.server.wifi.WifiConnectivityManager ( mContext , mWifiStateMachine , mWifiScanner , mWifiConfigManager , mWifiInfo , mWifiNS , mWifiLastResortWatchdog , mWifiMetrics , mLooper.getLooper ( ) , mClock , true ) ; }

Target:
com.android.server.wifi.WifiConnectivityManager createConnectivityManager ( ) { return new com.android.server.wifi.WifiConnectivityManager ( mContext , mWifiStateMachine , mWifiScanner , mWifiConfigManager , mWifiInfo , mWifiNS , mScoreCache , mWifiLastResortWatchdog , mWifiMetrics , mLooper.getLooper ( ) , mClock , true ) ; }
Source:
public int getSerializedSize ( ) { cachedSize = 0 ; return 0 ; }

Target:
public int getSerializedSize ( ) { int size = computeSerializedSize ( ) ; cachedSize = size ; return size ; }
Source:
boolean checkFreeStorage ( com.android.internal.app.IMediaContainerService imcs ) throws android.os.RemoteException { try { mContext.grantUriPermission ( com.android.server.pm.PackageManagerService.DEFAULT_CONTAINER_PACKAGE , packageURI , Intent.FLAG_GRANT_READ_URI_PERMISSION ) ; return imcs.checkExternalFreeStorage ( packageURI , isFwdLocked ( ) ) ; } finally { mContext.revokeUriPermission ( packageURI , Intent.FLAG_GRANT_READ_URI_PERMISSION ) ; } }

Target:
boolean checkFreeStorage ( com.android.internal.app.IMediaContainerService imcs ) throws android.os.RemoteException { try { mContext.grantUriPermission ( com.android.server.pm.PackageManagerService.DEFAULT_CONTAINER_PACKAGE , packageURI , Intent.FLAG_GRANT_READ_URI_PERMISSION ) ; return imcs.checkExternalFreeStorage ( packageURI , isFwdLocked ( ) , abiOverride ) ; } finally { mContext.revokeUriPermission ( packageURI , Intent.FLAG_GRANT_READ_URI_PERMISSION ) ; } }
Source:
public void TestGetPatternWithNoPlaceholders ( ) { assertEquals ( "" , "Templates and are here." , com.ibm.icu.impl.SimplePatternFormatter.compile ( "Templates {1}{2} and {3} are here." ) . getPatternWithNoPlaceholders ( ) ) ; }

Target:
public void TestGetPatternWithNoPlaceholders ( ) { assertEquals ( "" , "Templates and are here." , com.ibm.icu.impl.SimplePatternFormatter.compile ( "Templates {1}{2} and {3} are here." ) . getTextWithNoPlaceholders ( ) ) ; }
Source:
public static int booleanFieldEqualZero ( ) { return ( Main.booleanField ) != false ? 13 : 54 ; }

Target:
private static boolean $inline$true ( ) { return true ; }
Source:
public org.objectweb.asm.ClassReader reader ( java.io.InputStream content ) throws java.io.IOException { if ( ( prefix.length ( ) ) != 0 ) { return new com.google.devtools.build.android.desugar.CoreLibraryRewriter.PrefixingClassReader ( content ) ; } else { return new org.objectweb.asm.ClassReader ( content ) ; } }

Target:
public org.objectweb.asm.ClassReader reader ( java.io.InputStream content ) throws java.io.IOException { if ( prefix.isEmpty ( ) ) { return new org.objectweb.asm.ClassReader ( content ) ; } else { return new com.google.devtools.build.android.desugar.CoreLibraryRewriter.PrefixingClassReader ( content , prefix ) ; } }
Source:
void cleanup ( ) { logd ( "cleanup()" ) ; cleanupNative ( ) ; mSyncs.clear ( ) ; com.android.bluetooth.gatt.PeriodicScanManager.sTempRegistrationId = - 1 ; }

Target:
void cleanup ( ) { if ( com.android.bluetooth.gatt.PeriodicScanManager.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.PeriodicScanManager.TAG , "cleanup()" ) ; cleanupNative ( ) ; mSyncs.clear ( ) ; com.android.bluetooth.gatt.PeriodicScanManager.sTempRegistrationId = - 1 ; }
Source:
public void reset ( ) { mReceivedCalls.clear ( ) ; mHandler.removeCallbacksAndMessages ( null ) ; mAppCallback = null ; mErrorCodeOverride = android.telephony.mbms.MbmsErrors.SUCCESS ; mReceivedRequests.clear ( ) ; mDownloadStateCallback = null ; }

Target:
public void reset ( ) { mReceivedCalls.clear ( ) ; mHandler.removeCallbacksAndMessages ( null ) ; mAppCallback = null ; mErrorCodeOverride = android.telephony.mbms.MbmsErrors.SUCCESS ; mReceivedRequests.clear ( ) ; mDownloadStateCallback = null ; mTempFileRootDirPath = null ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSwitchStatement switchStmt ) { super . visit ( switchStmt ) ; this . accept ( switchStmt.getExpr ( ) ) ; return false ; }

Target:
public boolean test ( int flag ) { return ( flag == ( com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.BB_ENTRY_POINT ) ) || ( flag == ( com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.BB_ASSIGNS_OR_READS_B ) ) ; }
Source:
private native void gattClientSetPreferredPhyNative ( int clientIf , java.lang.String address , int tx_phy , int rx_phy , int phy_options ) ;

Target:
private native void gattClientSetPreferredPhyNative ( int clientIf , java.lang.String address , int txPhy , int rxPhy , int phyOptions ) ;
Source:
public void run ( ) { mImageCanvas.setImage ( image ) ; }

Target:
public void run ( ) { mImageCanvas.setImage ( image ) ; mFitToCanvasAction.setEnabled ( ( image != null ) ) ; mSaveImageAction.setEnabled ( ( image != null ) ) ; }
Source:
public com.android.builder.model.AndroidProject getModel ( ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { return connection.getModel ( com.android.builder.model.AndroidProject.class ) ; } finally { connection.close ( ) ; } }

Target:
public java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > getAllModels ( ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { return com.android.build.gradle.integration.common.fixture.GradleTestProject.buildModel ( connection ) ; } finally { connection.close ( ) ; } }
Source:
public static void div ( ) { Main.divInt ( ) ; Main.divLong ( ) ; Main.divFloat ( ) ; Main.divDouble ( ) ; }

Target:
public static void main ( ) { DivTest.divInt ( ) ; DivTest.divLong ( ) ; DivTest.divFloat ( ) ; DivTest.divDouble ( ) ; }
Source:
public void onClick ( android.view.View v ) { mAdapter.setShowBackground ( true ) ; }

Target:
public void onClick ( android.view.View v ) { mAdapter.setShowBackground ( true ) ; if ( ( mOwner ) != null ) { mOwner.getActivity ( ) . invalidateOptionsMenu ( ) ; } }
Source:
public static long OrSame ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg | arg ; }

Target:
public static long $noinline$OrSame ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg | arg ; }
Source:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , int timeoutMs ) { int legacyType = inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ; requestNetwork ( request , networkCallback , timeoutMs , legacyType ) ; }

Target:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , int timeoutMs ) { int legacyType = inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ; requestNetwork ( request , networkCallback , timeoutMs , legacyType , getDefaultHandler ( ) ) ; }
Source:
public void testIsToday ( ) { assertTrue ( android.text.format.DateUtils.isToday ( mBaseTime ) ) ; assertFalse ( android.text.format.DateUtils.isToday ( ( ( mBaseTime ) - ( android.text.format.cts.DateUtilsTest.DAY_DURATION ) ) ) ) ; }

Target:
public void testIsToday ( ) { final long ONE_DAY_IN_MS = ( ( 24 * 60 ) * 60 ) * 1000 ; assertTrue ( android.text.format.DateUtils.isToday ( mBaseTime ) ) ; assertFalse ( android.text.format.DateUtils.isToday ( ( ( mBaseTime ) - ONE_DAY_IN_MS ) ) ) ; }
Source:
public void dispatchMediaKeyEvent ( android.view.KeyEvent keyEvent ) { mMediaFocusControl.dispatchMediaKeyEvent ( keyEvent ) ; }

Target:
public void binderDied ( ) { if ( mVolumeController.isSameBinder ( controller ) ) { android.util.Log.w ( android.media.AudioService.TAG , "Current remote volume controller died, unregistering" ) ; setVolumeController ( null ) ; } }
Source:
private final void copyBundledResource ( @ com.android.annotations.NonNull java.lang.String relativeFrom , @ com.android.annotations.NonNull java.io.File output ) throws java.io.IOException { java.io.File from = getFullPath ( relativeFrom ) ; copy ( from , output ) ; }

Target:
private final void copyTemplateResource ( @ com.android.annotations.NonNull java.lang.String relativeFrom , @ com.android.annotations.NonNull org.eclipse.core.runtime.IPath output ) throws java.io.IOException { java.io.File from = getFullPath ( relativeFrom ) ; copy ( from , output ) ; }
Source:
public static native java.lang.String SSL_get_servername ( int sslNativePointer ) ;

Target:
public static native byte [ ] SSL_get_tls_channel_id ( long ssl ) throws javax.net.ssl.SSLException ;
Source:
public void test_U8_3_SCALE10_10_inSqure ( ) { testReszie ( inX , inX , Element.DataType.UNSIGNED_8 , 3 , 1.0F , 1.0F ) ; }

Target:
public void test_U8_3_SCALE10_10_inSqure ( ) { testResize ( inX , inX , Element.DataType.UNSIGNED_8 , 3 , 1.0F , 1.0F ) ; }
Source:
public void testChangeView1 ( ) throws java.lang.Exception { checkRefactoring ( "sample1a.xml" , "@+id/button1" , "@+id/button6" ) ; }

Target:
public void testChangeView1 ( ) throws java.lang.Exception { checkRefactoring ( "sample1a.xml" , com.android.ide.common.layout.LayoutConstants.FQCN_RADIO_BUTTON , "@+id/button1" , "@+id/button6" ) ; }
Source:
public static java.lang.String getGeoDescription ( android.content.Context context , java.lang.String number ) { return com.android.dialer.phonenumbergeoutil.PhoneNumberGeoUtilComponent.get ( context ) . getPhoneNumberGeoUtil ( ) . getGeoDescription ( context , number ) ; }

Target:
public static java.lang.String getGeoDescription ( android.content.Context context , java.lang.String number , @ android.support.annotation.Nullable java.lang.String countryIso ) { return com.android.dialer.phonenumbergeoutil.PhoneNumberGeoUtilComponent.get ( context ) . getPhoneNumberGeoUtil ( ) . getGeoDescription ( context , number , countryIso ) ; }
Source:
public static android.security.KeymasterException getExceptionForKeymasterError ( int keymasterErrorCode ) { switch ( keymasterErrorCode ) { case android.security.keymaster.KeymasterDefs.KM_ERROR_INVALID_AUTHORIZATION_TIMEOUT : return new android.security.KeymasterException ( keymasterErrorCode , "Invalid user authentication validity duration" ) ; default : return new android.security.KeymasterException ( keymasterErrorCode , android.security.keymaster.KeymasterDefs.getErrorMessage ( keymasterErrorCode ) ) ; } }

Target:
public static android.security.KeymasterException getKeymasterException ( int keymasterErrorCode ) { switch ( keymasterErrorCode ) { case android.security.keymaster.KeymasterDefs.KM_ERROR_INVALID_AUTHORIZATION_TIMEOUT : return new android.security.KeymasterException ( keymasterErrorCode , "Invalid user authentication validity duration" ) ; default : return new android.security.KeymasterException ( keymasterErrorCode , android.security.keymaster.KeymasterDefs.getErrorMessage ( keymasterErrorCode ) ) ; } }
Source:
public V setValue ( V value ) { com.google.common.base.Preconditions.checkArgument ( apply ( entry.getKey ( ) , value ) ) ; return super . setValue ( value ) ; }

Target:
public V setValue ( V newValue ) { com.google.common.base.Preconditions.checkArgument ( apply ( getKey ( ) , newValue ) ) ; return super . setValue ( newValue ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotationLiteral ) { print ( "@" ) ; printTypeName ( annotationLiteral.getType ( ) ) ; lparen ( ) ; java.util.List < com.android.jack.ir.ast.JNameValuePair > nameValuePairs = new java.util.ArrayList < com.android.jack.ir.ast.JNameValuePair > ( annotationLiteral.getNameValuePairs ( ) ) ; java.util.Collections.sort ( nameValuePairs , new java.util.Comparator < com.android.jack.ir.ast.JNameValuePair > ( ) { @ java.lang.Override public int compare ( com.android.jack.ir.ast.JNameValuePair nameValuePair1 , com.android.jack.ir.ast.JNameValuePair nameValuePair2 ) { return nameValuePair1.getName ( ) . compareTo ( nameValuePair2.getName ( ) ) ; } } ) ; visitCollectionWithCommas ( nameValuePairs.iterator ( ) ) ; rparen ( ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotation ) { print ( "@" ) ; printTypeName ( annotation.getType ( ) ) ; lparen ( ) ; java.util.List < com.android.jack.ir.ast.JNameValuePair > nameValuePairs = new java.util.ArrayList < com.android.jack.ir.ast.JNameValuePair > ( annotation.getNameValuePairs ( ) ) ; java.util.Collections.sort ( nameValuePairs , new java.util.Comparator < com.android.jack.ir.ast.JNameValuePair > ( ) { @ java.lang.Override public int compare ( com.android.jack.ir.ast.JNameValuePair nameValuePair1 , com.android.jack.ir.ast.JNameValuePair nameValuePair2 ) { return nameValuePair1.getName ( ) . compareTo ( nameValuePair2.getName ( ) ) ; } } ) ; visitCollectionWithCommas ( nameValuePairs.iterator ( ) ) ; rparen ( ) ; return false ; }
Source:
public static int factorial ( int n ) { com.google.common.math.MathPreconditions.checkNonNegative ( "n" , n ) ; return n < ( com.google.common.math.IntMath.FACTORIALS.length ) ? com.google.common.math.IntMath.FACTORIALS [ n ] : java.lang.Integer.MAX_VALUE ; }

Target:
public static int factorial ( int n ) { com.google.common.math.MathPreconditions.checkNonNegative ( "n" , n ) ; return n < ( com.google.common.math.IntMath.factorials.length ) ? com.google.common.math.IntMath.factorials [ n ] : java.lang.Integer.MAX_VALUE ; }
Source:
public static int charCount ( int cp ) { return android.icu.text.UTF16.getCharCount ( cp ) ; }

Target:
public static int charCount ( int cp ) { return java.lang.Character.charCount ( cp ) ; }
Source:
public void test_dropSourceSpecific_sourceKeysAreIndependent_IPv6 ( ) throws java.lang.Exception { test_dropSourceSpecific_sourceKeysAreIndependent ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_1 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_2 , ipv6NetworkInterface ) ; }

Target:
public void test_dropSourceSpecific_sourceKeysAreIndependent_IPv6 ( ) throws java.lang.Exception { check_dropSourceSpecific_sourceKeysAreIndependent ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_1 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_2 , ipv6NetworkInterface ) ; }
Source:
public int requestNetworkScan ( int subId , android.telephony.NetworkScanRequest request , android.os.Messenger messenger , android.os.IBinder binder ) { throw new java.lang.UnsupportedOperationException ( "To be implemented..." ) ; }

Target:
public int requestNetworkScan ( int subId , android.telephony.NetworkScanRequest request , android.os.Messenger messenger , android.os.IBinder binder ) { enforceModifyPermissionOrCarrierPrivilege ( subId ) ; return mNetworkScanRequestTracker.startNetworkScan ( request , messenger , binder , getPhone ( subId ) ) ; }
Source:
boolean hasReadResolveMethod ( ) { return ( readResolveMethod ) != null ; }

Target:
boolean hasReadResolveMethod ( ) { requireInitialized ( ) ; return ( readResolveMethod ) != null ; }
Source:
public boolean inKeyguardRestrictedKeyInputMode ( ) { if ( ( mKeyguardMediator ) == null ) return false ; return mKeyguardMediator.isInputRestricted ( ) ; }

Target:
private boolean keyguardIsShowingTq ( ) { if ( ( mKeyguardMediator ) == null ) return false ; return mKeyguardMediator.isShowingAndNotHidden ( ) ; }
Source:
public boolean apply ( java.util.Map.Entry < K , V > input ) { return valuePredicate.apply ( input.getValue ( ) ) ; }

Target:
public boolean apply ( java.util.Map.Entry < V , K > input ) { return forwardPredicate.apply ( com.google.common.collect.Maps.immutableEntry ( input.getValue ( ) , input.getKey ( ) ) ) ; }
Source:
public java.lang.Object or ( java.lang.Object defaultValue ) { return com.google.common.base.Preconditions.checkNotNull ( defaultValue , "use orNull() instead of or(null)" ) ; }

Target:
public T or ( T defaultValue ) { return com.google.common.base.Preconditions.checkNotNull ( defaultValue , "use Optional.orNull() instead of Optional.or(null)" ) ; }
Source:
public void writeSources ( java.io.File sourceDir ) throws java.io.IOException { for ( com.android.build.gradle.integration.common.fixture.app.TestSourceFile srcFile : getAllSourceFiles ( ) ) { srcFile.writeToDir ( sourceDir ) ; } }

Target:
public void write ( @ com.android.annotations.NonNull java.io.File projectDir , @ com.android.annotations.Nullable java.lang.String buildScriptContent ) throws java.io.IOException { for ( com.android.build.gradle.integration.common.fixture.app.TestSourceFile srcFile : getAllSourceFiles ( ) ) { srcFile.writeToDir ( projectDir ) ; } }
Source:
public void testRSAllocationTypes ( ) { assertTrue ( typedTest ( ) ) ; }

Target:
public void testRSAllocationTypes ( ) { assertTrue ( typedTest ( this . getContext ( ) . getCacheDir ( ) . toString ( ) ) ) ; }
Source:
public static com.android.hierarchyviewerlib.actions.DisplayViewAction getAction ( org.eclipse.swt.widgets.Shell shell ) { if ( ( com.android.hierarchyviewerlib.actions.DisplayViewAction.action ) == null ) { com.android.hierarchyviewerlib.actions.DisplayViewAction.action = new com.android.hierarchyviewerlib.actions.DisplayViewAction ( shell ) ; } return com.android.hierarchyviewerlib.actions.DisplayViewAction.action ; }

Target:
public static com.android.hierarchyviewerlib.actions.DisplayViewAction getAction ( org.eclipse.swt.widgets.Shell shell ) { if ( ( com.android.hierarchyviewerlib.actions.DisplayViewAction.sAction ) == null ) { com.android.hierarchyviewerlib.actions.DisplayViewAction.sAction = new com.android.hierarchyviewerlib.actions.DisplayViewAction ( shell ) ; } return com.android.hierarchyviewerlib.actions.DisplayViewAction.sAction ; }
Source:
private boolean needAction ( int arrayPos ) { com.android.bluetooth.opp.BluetoothOppShareInfo info = mShares.get ( arrayPos ) ; if ( com.android.bluetooth.opp.BluetoothShare.isStatusCompleted ( info.mStatus ) ) { return false ; } return true ; }

Target:
public void cleanup ( ) { }
Source:
public static void copy ( java.io.File from , com.google.common.io.OutputSupplier < ? extends java.io.OutputStream > to ) throws java.io.IOException { com.google.common.io.ByteStreams.copy ( com.google.common.io.Files.newInputStreamSupplier ( from ) , to ) ; }

Target:
public static com.google.common.hash.HashCode hash ( java.io.File file , com.google.common.hash.HashFunction hashFunction ) throws java.io.IOException { return com.google.common.io.Files.asByteSource ( file ) . hash ( hashFunction ) ; }
Source:
public native boolean checkAccess ( java.io.File f , int access ) ;

Target:
public boolean checkAccess ( java.io.File f , int access ) { dalvik.system.BlockGuard.getThreadPolicy ( ) . onReadFromDisk ( ) ; return checkAccess0 ( f , access ) ; }
Source:
public com.android.monkeyrunner.MonkeyDevice waitForConnection ( ) { return waitForConnection ( java.lang.Integer.MAX_VALUE , ".*" ) ; }

Target:
public com.android.monkeyrunner.core.IMonkeyDevice waitForConnection ( ) { return waitForConnection ( java.lang.Integer.MAX_VALUE , ".*" ) ; }
Source:
java.util.Collection < com.android.jack.ir.ast.JField > getAllFields ( ) { return fields ; }

Target:
java.util.Set < com.android.jack.ir.ast.JField > getFields ( ) { return fields ; }
Source:
private void verifyRssiDbm ( int dbm ) { assertTrue ( "getCellSignalStrength().getDbm() out of range" , ( ( dbm >= ( android.telephony.cts.CellInfoTest.MIN_RSSI ) ) && ( dbm <= ( android.telephony.cts.CellInfoTest.MAX_RSSI ) ) ) ) ; }

Target:
private void verifyRssiDbm ( int dbm ) { assertTrue ( ( "getCellSignalStrength().getDbm() out of range, dbm=" + dbm ) , ( ( dbm >= ( android.telephony.cts.CellInfoTest.MIN_RSSI ) ) && ( dbm <= ( android.telephony.cts.CellInfoTest.MAX_RSSI ) ) ) ) ; }
Source:
public static native float abs ( float f ) ;

Target:
public static float abs ( float f ) { return java.lang.Float.intBitsToFloat ( ( ( java.lang.Float.floatToRawIntBits ( f ) ) & 2147483647 ) ) ; }
Source:
public static void computeMin ( android.renderscript.cts.TestMin.ArgumentsUcharUcharUchar args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( byte ) ( java.lang.StrictMath.min ( ( ( args.inV1 ) & 255 ) , ( ( args.inV2 ) & 255 ) ) ) ) ; }

Target:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsFloatFloatFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( java.lang.Math.min ( args.inMaxValue , java.lang.Math.max ( args.inValue , args.inMinValue ) ) , 0 , 0 ) ; }
Source:
public void testInstall_incompatibleContext ( ) { try { android.net.SSLSessionCache.install ( new android.net.SSLSessionCache ( com.google.testing.littlemock.LittleMock.mock ( com.android.org.conscrypt.SSLClientSessionCache.class ) ) , new android.net.SSLSessionCacheTest.FakeSSLContext ( ) ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }

Target:
public void testInstall_incompatibleContext ( ) { try { android.net.SSLSessionCache.install ( new android.net.SSLSessionCache ( org.mockito.Mockito.mock ( com.android.org.conscrypt.SSLClientSessionCache.class ) ) , new android.net.SSLSessionCacheTest.FakeSSLContext ( ) ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }