auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.Boolean getFunctionalTest ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( ( mType ) == ( com.android.builder.core.VariantConfiguration.Type.TEST ) ) { config = getTestedConfig ( ) ; } java.lang.Boolean functionalTest = config.mMergedFlavor.getTestFunctionalTest ( ) ; return functionalTest != null ? functionalTest : com.android.builder.core.VariantConfiguration.DEFAULT_FUNCTIONAL_TEST ; }

Target:
public java.lang.Boolean getFunctionalTest ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( mType.isForTesting ( ) ) { config = getTestedConfig ( ) ; com.google.common.base.Preconditions.checkState ( ( config != null ) ) ; } java.lang.Boolean functionalTest = config.mMergedFlavor.getTestFunctionalTest ( ) ; return functionalTest != null ? functionalTest : com.android.builder.core.VariantConfiguration.DEFAULT_FUNCTIONAL_TEST ; }
Source:
public java.util.Collection < java.lang.Class < ? extends com.android.sched.util.config.category.Category > > getCategories ( ) { return java.util.Collections.unmodifiableCollection ( categories ) ; }

Target:
public com.android.sched.util.config.category.Category getDirectCategory ( @ javax.annotation.Nonnull java.lang.Class < ? extends com.android.sched.util.config.category.Category > target ) { if ( target == ( com.android.sched.util.config.category.Category.class ) ) { return null ; } if ( categories.containsKey ( target ) ) { return categories.get ( target ) ; } throw new java.util.NoSuchElementException ( ) ; }
Source:
protected void applyEditorTo ( com.google.gct.idea.appengine.run.AppEngineRunConfiguration configuration ) throws com.intellij.openapi.options.ConfigurationException { moduleSelector.applyTo ( configuration ) ; configuration.setSdkPath ( myAppEngineSdkField.getText ( ) ) ; configuration.setServerAddress ( myServerAddressField.getText ( ) ) ; configuration.setServerPort ( myServerPortField.getText ( ) ) ; configuration.setVmArgs ( myVmArgsField.getText ( ) ) ; configuration.setWarPath ( myWarPathField.getText ( ) ) ; }

Target:
protected void applyEditorTo ( com.google.gct.idea.appengine.run.AppEngineRunConfiguration configuration ) throws com.intellij.openapi.options.ConfigurationException { moduleSelector.applyTo ( configuration ) ; configuration.setSdkPath ( myAppEngineSdkField.getText ( ) ) ; configuration.setServerAddress ( myServerAddressField.getText ( ) ) ; configuration.setServerPort ( myServerPortField.getText ( ) ) ; configuration.setVmArgs ( myVmArgsField.getText ( ) ) ; configuration.setWarPath ( myWarPathField.getText ( ) ) ; configuration.setSyncWithGradle ( mySynchronizeWithBuildGradleCheckBox.isSelected ( ) ) ; }
Source:
protected long readId ( ) { switch ( Type.OBJECT.getSize ( ) ) { case 1 : return getBuffer ( ) . readByte ( ) ; case 2 : return getBuffer ( ) . readShort ( ) ; case 4 : return getBuffer ( ) . readInt ( ) ; case 8 : return getBuffer ( ) . readLong ( ) ; } return 0 ; }

Target:
protected long readId ( ) { switch ( mHeap.mSnapshot.getTypeSize ( Type.OBJECT ) ) { case 1 : return getBuffer ( ) . readByte ( ) ; case 2 : return getBuffer ( ) . readShort ( ) ; case 4 : return getBuffer ( ) . readInt ( ) ; case 8 : return getBuffer ( ) . readLong ( ) ; } return 0 ; }
Source:
public void testConnectFailureDueToNetworkSaveFailure ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; setupMocksForConnectSequence ( true ) ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.saveWifiConfiguration ( org.mockito.Matchers.any ( android.net.wifi.WifiConfiguration.class ) ) ) . thenReturn ( false ) ; assertFalse ( mDut.connectToNetwork ( new android.net.wifi.WifiConfiguration ( ) , false ) ) ; org.mockito.Mockito.verify ( mISupplicantStaIfaceMock , org.mockito.Mockito.times ( 2 ) ) . removeNetwork ( org.mockito.Matchers.anyInt ( ) ) ; }

Target:
public void testConnectFailureDueToNetworkAddFailure ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; setupMocksForConnectSequence ( false ) ; org.mockito.Mockito.doAnswer ( new android.app.test.MockAnswerUtil.AnswerWithArguments ( ) { public void answer ( ISupplicantStaIface.addNetworkCallback cb ) throws android.os.RemoteException { cb.onValues ( mStatusFailure , org.mockito.Mockito.mock ( android.hardware.wifi.supplicant.V1_0.ISupplicantStaNetwork.class ) ) ; return ; } } ) . when ( mISupplicantStaIfaceMock ) . addNetwork ( org.mockito.Matchers.any ( ISupplicantStaIface.addNetworkCallback.class ) ) ; assertFalse ( mDut.connectToNetwork ( new android.net.wifi.WifiConfiguration ( ) ) ) ; }
Source:
public static void testSendMessage7bitWithLanguageInBody ( android.app.Activity activity , int serialNumber , int category ) { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , com.android.cellbroadcastreceiver.tests.SendTestMessages.createFromPdu ( activity , com.android.cellbroadcastreceiver.tests.SendTestMessages.gsm7BitTestWithLanguageInBody , serialNumber , category ) ) ; activity.sendOrderedBroadcastAsUser ( intent , UserHandle.ALL , Manifest.permission.RECEIVE_SMS , AppOpsManager.OP_RECEIVE_SMS , null , null , Activity.RESULT_OK , null , null ) ; }

Target:
public static void testSendMessage7bitWithLanguageInBody ( android.app.Activity activity , int serialNumber , int category ) { com.android.cellbroadcastreceiver.tests.SendTestMessages.sendBroadcast ( activity , serialNumber , category , com.android.cellbroadcastreceiver.tests.SendTestMessages.gsm7BitTestWithLanguageInBody ) ; }
Source:
private void savePreferences ( ) { org.eclipse.core.runtime.preferences.IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode ( GlTracePlugin.PLUGIN_ID ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_APP_PACKAGE , mAppPackageToTrace ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_ACTIVITY , mActivityToTrace ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_TRACEFILE , mTraceFilePath ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_DEVICE , mSelectedDevice ) ; try { prefs.flush ( ) ; } catch ( org.osgi.service.prefs.BackingStoreException e ) { } }

Target:
private void savePreferences ( ) { org.eclipse.core.runtime.preferences.IEclipsePreferences prefs = new org.eclipse.core.runtime.preferences.InstanceScope ( ) . getNode ( GlTracePlugin.PLUGIN_ID ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_APP_PACKAGE , mAppPackageToTrace ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_ACTIVITY , mActivityToTrace ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_TRACEFILE , mTraceFilePath ) ; prefs.put ( com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.PREF_DEVICE , mSelectedDevice ) ; try { prefs.flush ( ) ; } catch ( org.osgi.service.prefs.BackingStoreException e ) { } }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder buf = new java.lang.StringBuilder ( ) ; buf.append ( getClass ( ) . getName ( ) ) ; buf.append ( ", status: capacity=" ) ; buf.append ( capacity ) ; buf.append ( " position=" ) ; buf.append ( position ) ; buf.append ( " limit=" ) ; buf.append ( limit ) ; return buf.toString ( ) ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( getClass ( ) . getName ( ) ) + "[position=" ) + ( position ) ) + ",limit=" ) + ( limit ) ) + ",capacity=" ) + ( capacity ) ) + "]" ; }
Source:
public void test_getInstanceLjava_lang_StringLjava_lang_String03 ( ) throws java.lang.Exception { for ( java.lang.String invalidValue : tests.api.javax.net.ssl.TrustManagerFactory1Test.invalidValues ) { for ( java.lang.String validValue : tests.api.javax.net.ssl.TrustManagerFactory1Test.getValidValues ( ) ) { try { javax.net.ssl.TrustManagerFactory.getInstance ( validValue , invalidValue ) ; fail ( "NoSuchProviderException must be thrown (algorithm: " . concat ( validValue ) . concat ( " provider: " ) . concat ( invalidValue ) . concat ( ")" ) ) ; } catch ( java.security.NoSuchProviderException expected ) { assertFalse ( "" . equals ( invalidValue ) ) ; } catch ( java.lang.IllegalArgumentException expected ) { assertEquals ( "" , invalidValue ) ; } } } }

Target:
public void test_getInstanceLjava_lang_StringLjava_lang_String03 ( ) throws java.lang.Exception { for ( java.lang.String invalidValue : org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.invalidValues ) { for ( java.lang.String validValue : org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.getValidValues ( ) ) { try { javax.net.ssl.TrustManagerFactory.getInstance ( validValue , invalidValue ) ; fail ( "NoSuchProviderException must be thrown (algorithm: " . concat ( validValue ) . concat ( " provider: " ) . concat ( invalidValue ) . concat ( ")" ) ) ; } catch ( java.security.NoSuchProviderException expected ) { assertFalse ( "" . equals ( invalidValue ) ) ; } catch ( java.lang.IllegalArgumentException expected ) { assertEquals ( "" , invalidValue ) ; } } } }
Source:
public org.w3c.dom.Document parse ( @ com.android.annotations.NonNull java.io.InputStream input ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream ( ) ; byte [ ] buf = new byte [ 1024 ] ; while ( true ) { int r = input.read ( buf ) ; if ( r == ( - 1 ) ) { break ; } out.write ( buf , 0 , r ) ; } input.close ( ) ; return parse ( out.toByteArray ( ) ) ; }

Target:
public static org.w3c.dom.Document parse ( @ com.android.annotations.NonNull java.io.InputStream input ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream ( ) ; byte [ ] buf = new byte [ 1024 ] ; while ( true ) { int r = input.read ( buf ) ; if ( r == ( - 1 ) ) { break ; } out.write ( buf , 0 , r ) ; } input.close ( ) ; return com.android.utils.PositionXmlParser.parse ( out.toByteArray ( ) ) ; }
Source:
public static void initialize ( ) { if ( org.chromium.base.metrics.RecordHistogram.sIsDisabledForTests ) return ; org.chromium.base.metrics.RecordHistogram.nativeInitialize ( ) ; }

Target:
private static void recordCustomTimesHistogramMilliseconds ( java.lang.String name , long duration , long min , long max , int numBuckets ) { if ( ( org.chromium.base.metrics.RecordHistogram.sDisabledBy ) != null ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordCustomTimesHistogramMilliseconds ( name , key , org.chromium.base.metrics.RecordHistogram.clampToInt ( duration ) , org.chromium.base.metrics.RecordHistogram.clampToInt ( min ) , org.chromium.base.metrics.RecordHistogram.clampToInt ( max ) , numBuckets ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }
Source:
public void testConsideringOptions ( ) throws java.lang.Exception { createPatch ( ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; java.util.Map < java.lang.String , com.intellij.updater.ValidationResult.Option > options = new java.util.HashMap < java.lang.String , com.intellij.updater.ValidationResult.Option > ( ) ; for ( com.intellij.updater.PatchAction each : preparationResult.patch.getActions ( ) ) { options.put ( each.getPath ( ) , ValidationResult.Option.IGNORE ) ; } assertNothingHasChanged ( preparationResult , options ) ; }

Target:
public void testApplyWhenCommonFileChangesStrict ( ) throws java.lang.Exception { myPatchSpec.setStrict ( true ) ; com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; com.intellij.openapi.util.io.FileUtil.copy ( new java.io.File ( myOlderDir , "/lib/bootstrap.jar" ) , new java.io.File ( myOlderDir , "/lib/boot.jar" ) ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertEquals ( 1 , preparationResult.validationResults.size ( ) ) ; assertEquals ( new com.intellij.updater.ValidationResult ( ValidationResult.Kind.ERROR , "lib/boot.jar" , ValidationResult.Action.VALIDATE , ValidationResult.MODIFIED_MESSAGE , ValidationResult.Option.NONE ) , preparationResult.validationResults.get ( 0 ) ) ; }
Source:
private static com.android.sdklib.repository.FullRevision getNewerRevision ( @ com.android.annotations.NonNull com.android.ide.common.repository.GradleCoordinate dependency , int major , int minor , int micro ) { assert ( dependency.getGroupId ( ) ) != null ; assert ( dependency.getArtifactId ( ) ) != null ; if ( ( com.android.ide.common.repository.GradleCoordinate.COMPARE_PLUS_HIGHER.compare ( dependency , new com.android.ide.common.repository.GradleCoordinate ( dependency.getGroupId ( ) , dependency.getArtifactId ( ) , major , minor , micro ) ) ) < 0 ) { return new com.android.sdklib.repository.FullRevision ( major , minor , micro ) ; } else { return null ; } }

Target:
private static com.android.sdklib.repository.FullRevision getNewerRevision ( @ com.android.annotations.NonNull com.android.ide.common.repository.GradleCoordinate dependency , com.android.sdklib.repository.FullRevision revision ) { assert ( dependency.getGroupId ( ) ) != null ; assert ( dependency.getArtifactId ( ) ) != null ; if ( ( com.android.ide.common.repository.GradleCoordinate.COMPARE_PLUS_HIGHER.compare ( dependency , new com.android.ide.common.repository.GradleCoordinate ( dependency.getGroupId ( ) , dependency.getArtifactId ( ) , revision.getMajor ( ) , revision.getMinor ( ) , revision.getMicro ( ) ) ) ) < 0 ) { return revision ; } else { return null ; } }
Source:
private void processThisCallLocalArgs ( org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding binding , com.android.jack.ir.ast.JMethodCall call ) { if ( ( binding.syntheticOuterLocalVariables ( ) ) != null ) { for ( org.eclipse.jdt.internal.compiler.lookup.SyntheticArgumentBinding arg : binding.syntheticOuterLocalVariables ( ) ) { com.android.jack.ir.ast.JParameter param = ( ( com.android.jack.ir.ast.JParameter ) ( curMethod.locals.get ( arg ) ) ) ; assert param != null ; call.addArg ( new com.android.jack.ir.ast.JParameterRef ( call.getSourceInfo ( ) , param ) ) ; } } }

Target:
private void processThisCallLocalArgs ( org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding binding , com.android.jack.ir.ast.JMethodCall call ) { if ( ( binding.syntheticOuterLocalVariables ( ) ) != null ) { for ( org.eclipse.jdt.internal.compiler.lookup.SyntheticArgumentBinding arg : binding.syntheticOuterLocalVariables ( ) ) { com.android.jack.ir.ast.JParameter param = ( ( com.android.jack.ir.ast.JParameter ) ( curMethod.getJVariable ( arg ) ) ) ; assert param != null ; call.addArg ( new com.android.jack.ir.ast.JParameterRef ( call.getSourceInfo ( ) , param ) ) ; } } }
Source:
public boolean remove ( java.lang.Object o ) { java.lang.Object [ ] snapshot = getArray ( ) ; int index = java.util.concurrent.CopyOnWriteArrayList.indexOf ( o , snapshot , 0 , snapshot.length ) ; return index < 0 ? false : remove ( o , snapshot , index ) ; }

Target:
public int lastIndexOf ( java.lang.Object object ) { java.lang.Object [ ] snapshot = elements ; return java.util.concurrent.CopyOnWriteArrayList.lastIndexOf ( object , snapshot , 0 , snapshot.length ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { android.util.Log.i ( com.android.server.am.ActivityManagerService.TAG , "Shutting down activity manager..." ) ; shutdown ( 10000 ) ; android.util.Log.i ( com.android.server.am.ActivityManagerService.TAG , "Shutdown complete, restarting!" ) ; java.lang.Process.killProcess ( java.lang.Process.myPid ( ) ) ; java.lang.System.exit ( 10 ) ; }

Target:
public void binderDied ( ) { foregroundTokenDied ( this ) ; }
Source:
public com.android.internal.telephony.TimeZoneLookupHelper.OffsetResult lookupByNitzCountry ( com.android.internal.telephony.NitzData nitzData , java.lang.String isoCountryCode ) { libcore.util.CountryTimeZones countryTimeZones = libcore.util.TimeZoneFinder.getInstance ( ) . lookupCountryTimeZones ( isoCountryCode ) ; if ( countryTimeZones == null ) { return null ; } java.util.TimeZone bias = android.icu.util.TimeZone.getDefault ( ) ; libcore.util.CountryTimeZones.OffsetResult offsetResult = countryTimeZones.lookupByOffsetWithBias ( nitzData.getLocalOffsetMillis ( ) , nitzData.isDst ( ) , nitzData.getCurrentTimeInMillis ( ) , bias ) ; if ( offsetResult == null ) { return null ; } return new com.android.internal.telephony.TimeZoneLookupHelper.OffsetResult ( offsetResult.mTimeZone.getID ( ) , offsetResult.mOneMatch ) ; }

Target:
public com.android.internal.telephony.TimeZoneLookupHelper.OffsetResult lookupByNitzCountry ( com.android.internal.telephony.NitzData nitzData , java.lang.String isoCountryCode ) { libcore.util.CountryTimeZones countryTimeZones = getCountryTimeZones ( isoCountryCode ) ; if ( countryTimeZones == null ) { return null ; } java.util.TimeZone bias = android.icu.util.TimeZone.getDefault ( ) ; libcore.util.CountryTimeZones.OffsetResult offsetResult = countryTimeZones.lookupByOffsetWithBias ( nitzData.getLocalOffsetMillis ( ) , nitzData.isDst ( ) , nitzData.getCurrentTimeInMillis ( ) , bias ) ; if ( offsetResult == null ) { return null ; } return new com.android.internal.telephony.TimeZoneLookupHelper.OffsetResult ( offsetResult.mTimeZone.getID ( ) , offsetResult.mOneMatch ) ; }
Source:
public void loggedRun ( ) { synchronized ( mLock ) { if ( ( com.android.server.telecom.InCallTonePlayer.sTonesPlaying ) == 0 ) { com.android.server.telecom.Log.wtf ( this , "Over-releasing focus for tone player." ) ; } else if ( ( -- ( com.android.server.telecom.InCallTonePlayer.sTonesPlaying ) ) == 0 ) { mCallAudioManager.setIsTonePlaying ( false ) ; } } }

Target:
public void loggedRun ( ) { synchronized ( mLock ) { if ( ( com.android.server.telecom.InCallTonePlayer.sTonesPlaying ) == 0 ) { android.telecom.Log.wtf ( this , "Over-releasing focus for tone player." ) ; } else if ( ( -- ( com.android.server.telecom.InCallTonePlayer.sTonesPlaying ) ) == 0 ) { mCallAudioManager.setIsTonePlaying ( false ) ; } } }
Source:
public void createValidatedCountryTimeZones_filtersBadDefaultId ( ) throws java.lang.Exception { java.lang.String countryIso = "iso" ; java.lang.String unknownTimeZoneId = "Moon/Tranquility_Base" ; java.util.List < java.lang.String > countryZoneIds = java.util.Arrays.asList ( unknownTimeZoneId ) ; libcore.util.TimeZoneFinder.CountryTimeZones countryTimeZones = libcore.util.TimeZoneFinder.createValidatedCountryTimeZones ( countryIso , unknownTimeZoneId , countryZoneIds , "debugInfoIgnored" ) ; org.junit.Assert.assertEquals ( countryIso , countryTimeZones.getCountryIso ( ) ) ; org.junit.Assert.assertNull ( countryTimeZones.getDefaultTimeZoneId ( ) ) ; org.junit.Assert.assertEquals ( java.util.Collections.emptyList ( ) , countryTimeZones.getTimeZoneIds ( ) ) ; org.junit.Assert.assertEquals ( java.util.Collections.emptyList ( ) , countryTimeZones.getTimeZones ( ) ) ; }

Target:
public void createValidatedCountryTimeZones_filtersBadDefaultId ( ) throws java.lang.Exception { java.lang.String countryIso = "iso" ; java.lang.String unknownTimeZoneId = "Moon/Tranquility_Base" ; java.util.List < java.lang.String > countryZoneIds = libcore.util.TimeZoneFinderTest.list ( unknownTimeZoneId ) ; libcore.util.TimeZoneFinder.CountryTimeZones countryTimeZones = libcore.util.TimeZoneFinder.createValidatedCountryTimeZones ( countryIso , unknownTimeZoneId , countryZoneIds , "debugInfoIgnored" ) ; org.junit.Assert.assertEquals ( countryIso , countryTimeZones.getCountryIso ( ) ) ; org.junit.Assert.assertNull ( countryTimeZones.getDefaultTimeZoneId ( ) ) ; org.junit.Assert.assertEquals ( java.util.Collections.emptyList ( ) , countryTimeZones.getTimeZoneIds ( ) ) ; org.junit.Assert.assertEquals ( java.util.Collections.emptyList ( ) , countryTimeZones.getTimeZones ( ) ) ; }
Source:
public void run ( ) { com.android.rs.test.RenderScript pRS = com.android.rs.test.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_primitives s = new com.android.rs.test.ScriptC_primitives ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; if ( ! ( initializeGlobals ( s ) ) ) { failTest ( ) ; } else { s.invoke_primitives_test ( 0 , 0 ) ; pRS.finish ( ) ; waitForMessage ( ) ; } pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_primitives s = new com.android.rs.test.ScriptC_primitives ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; if ( ! ( initializeGlobals ( s ) ) ) { failTest ( ) ; } else { s.invoke_primitives_test ( 0 , 0 ) ; pRS.finish ( ) ; waitForMessage ( ) ; } pRS.destroy ( ) ; }
Source:
private void responseIccIo ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.IccIoResult result ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.uicc.IccIoResult ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = new com.android.internal.telephony.uicc.IccIoResult ( result.sw1 , result.sw2 , result.simResponse ) ; sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseIccIo ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.IccIoResult result ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.uicc.IccIoResult ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = new com.android.internal.telephony.uicc.IccIoResult ( result.sw1 , result.sw2 , result.simResponse ) ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
static com.android.builder.model.ProductFlavorContainer createPFC ( @ com.android.annotations.NonNull com.android.build.gradle.internal.ProductFlavorData productFlavorData , @ com.android.annotations.NonNull java.util.Collection < com.android.builder.model.SourceProviderContainer > sourceProviderContainers ) { java.util.List < com.android.builder.model.SourceProviderContainer > clonedContainer = com.android.build.gradle.internal.model.SourceProviderContainerImpl.cloneCollection ( sourceProviderContainers ) ; com.android.builder.model.SourceProviderContainer testASP = com.android.build.gradle.internal.model.SourceProviderContainerImpl.create ( com.android.builder.model.AndroidProject.ARTIFACT_ANDROID_TEST , productFlavorData.getTestSourceSet ( ) ) ; clonedContainer.add ( testASP ) ; return new com.android.build.gradle.internal.model.ProductFlavorContainerImpl ( com.android.build.gradle.internal.model.ProductFlavorImpl.cloneFlavor ( productFlavorData.getProductFlavor ( ) , null , null ) , com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider ( productFlavorData.getSourceSet ( ) ) , clonedContainer ) ; }

Target:
static com.android.builder.model.ProductFlavorContainer createProductFlavorContainer ( @ com.android.annotations.NonNull com.android.build.gradle.internal.ProductFlavorData productFlavorData , @ com.android.annotations.NonNull java.util.Collection < com.android.builder.model.SourceProviderContainer > sourceProviderContainers ) { java.util.List < com.android.builder.model.SourceProviderContainer > clonedContainer = com.android.build.gradle.internal.model.SourceProviderContainerImpl.cloneCollection ( sourceProviderContainers ) ; com.android.builder.model.SourceProviderContainer testASP = com.android.build.gradle.internal.model.SourceProviderContainerImpl.create ( com.android.builder.model.AndroidProject.ARTIFACT_ANDROID_TEST , productFlavorData.getTestSourceSet ( VariantConfiguration.Type.ANDROID_TEST ) ) ; clonedContainer.add ( testASP ) ; return new com.android.build.gradle.internal.model.ProductFlavorContainerImpl ( com.android.build.gradle.internal.model.ProductFlavorImpl.cloneFlavor ( productFlavorData.getProductFlavor ( ) , null , null ) , com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider ( productFlavorData.getSourceSet ( ) ) , clonedContainer ) ; }
Source:
public static void checkAndRun ( @ javax.annotation.Nonnull com.android.jack.Options options ) throws com.android.jack.IllegalOptionsException , com.android.jack.JackUserException , com.android.sched.scheduler.ProcessException , com.android.sched.util.config.ConfigurationException { com.android.sched.util.RunnableHooks hooks = new com.android.sched.util.RunnableHooks ( ) ; try { com.android.jack.Jack.check ( options , hooks ) ; com.android.jack.Jack.run ( options , hooks ) ; } finally { hooks.runHooks ( ) ; } }

Target:
public static void checkAndRun ( @ javax.annotation.Nonnull java.lang.Class < ? extends com.android.jack.api.impl.ApiFeature > api , @ javax.annotation.Nonnull com.android.jack.Options options ) throws com.android.jack.IllegalOptionsException , com.android.jack.JackUserException , com.android.sched.scheduler.ProcessException , com.android.sched.util.config.ConfigurationException { com.android.sched.util.RunnableHooks hooks = new com.android.sched.util.RunnableHooks ( ) ; try { com.android.jack.Jack.check ( api , options , hooks ) ; com.android.jack.Jack.run ( api , options , hooks ) ; } catch ( java.lang.Throwable e1 ) { try { hooks.runHooks ( ) ; } catch ( java.lang.Error | java.lang.RuntimeException e2 ) { } throw e1 ; } hooks.runHooks ( ) ; }
Source:
private void onEdit ( ) { com.android.sdklib.internal.avd.AvdInfo avdInfo = getTableSelection ( ) ; com.android.sdkuilib.internal.widgets.AvdCreationDialog dlg = new com.android.sdkuilib.internal.widgets.AvdCreationDialog ( mTable.getShell ( ) , mAvdManager , mImageFactory , mSdkLog , avdInfo ) ; if ( ( dlg.open ( ) ) == ( org.eclipse.jface.window.Window.OK ) ) { refresh ( false ) ; } }

Target:
private void onEdit ( ) { com.android.sdklib.internal.avd.AvdInfo avdInfo = getTableSelection ( ) ; com.android.sdkuilib.internal.widgets.LegacyAvdEditDialog dlg = new com.android.sdkuilib.internal.widgets.LegacyAvdEditDialog ( mTable.getShell ( ) , mAvdManager , mImageFactory , mSdkLog , avdInfo ) ; if ( ( dlg.open ( ) ) == ( org.eclipse.jface.window.Window.OK ) ) { refresh ( false ) ; } }
Source:
public void endBatch ( ) { if ( ( mCurrentTestId ) != null ) { if ( ( mPendingResults.get ( mCurrentTestId ) ) != null ) { mPendingResults.get ( mCurrentTestId ) . remainingConfigs.add ( mRunConfig ) ; } else { com.android.tradefed.log.LogUtil.CLog.w ( "Got unexpected internal state of %s" , mCurrentTestId ) ; } } mCurrentTestId = null ; }

Target:
public void endBatch ( ) { if ( ( mCurrentTestId ) != null ) { com.android.tradefed.log.LogUtil.CLog.i ( "Batch ended with test '%s' current" , mCurrentTestId ) ; if ( ( mPendingResults.get ( mCurrentTestId ) ) != null ) { mPendingResults.get ( mCurrentTestId ) . remainingConfigs.add ( mRunConfig ) ; } else { com.android.tradefed.log.LogUtil.CLog.w ( "Got unexpected internal state of %s" , mCurrentTestId ) ; } } mCurrentTestId = null ; }
Source:
public void test_joinAnySource_nullNetworkInterface ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = createReceiverChannel ( ) ; try { dc.join ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } dc.close ( ) ; }

Target:
public void test_joinAnySource_nullNetworkInterface ( ) throws java.lang.Exception { if ( ! ( supportsMulticast ) ) { return ; } java.nio.channels.DatagramChannel dc = createReceiverChannel ( ) ; try { dc.join ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } dc.close ( ) ; }
Source:
public void testDnsResolutionFailure ( ) throws java.lang.Exception { assertFalse ( mClient.requestTime ( "ntp.server.doesnotexist.example" , 5000 ) ) ; }

Target:
public void testBasicWorkingSntpClientQuery ( ) throws java.lang.Exception { mServer.setServerReply ( libcore.util.HexEncoding.decode ( android.net.SntpClientTest.WORKING_VERSION4.toCharArray ( ) , false ) ) ; assertTrue ( mClient.requestTime ( mServer.getAddress ( ) , mServer.getPort ( ) , 500 , mNetwork ) ) ; assertEquals ( 1 , mServer.numRequestsReceived ( ) ) ; assertEquals ( 1 , mServer.numRepliesSent ( ) ) ; }
Source:
public void setClientCertificate ( java.lang.String alias ) { setFieldValue ( android.net.wifi.WifiEnterpriseConfig.CLIENT_CERT_KEY , alias , android.net.wifi.WifiEnterpriseConfig.CLIENT_CERT_PREFIX ) ; setFieldValue ( android.net.wifi.WifiEnterpriseConfig.PRIVATE_KEY_ID_KEY , alias , Credentials.USER_PRIVATE_KEY ) ; if ( android.text.TextUtils.isEmpty ( alias ) ) { mFields.put ( android.net.wifi.WifiEnterpriseConfig.ENGINE_KEY , android.net.wifi.WifiEnterpriseConfig.ENGINE_DISABLE ) ; mFields.put ( android.net.wifi.WifiEnterpriseConfig.ENGINE_ID_KEY , android.net.wifi.WifiEnterpriseConfig.EMPTY_VALUE ) ; } else { mFields.put ( android.net.wifi.WifiEnterpriseConfig.ENGINE_KEY , android.net.wifi.WifiEnterpriseConfig.ENGINE_ENABLE ) ; mFields.put ( android.net.wifi.WifiEnterpriseConfig.ENGINE_ID_KEY , convertToQuotedString ( android.net.wifi.WifiEnterpriseConfig.ENGINE_ID_KEYSTORE ) ) ; } }

Target:
public void setClientCertificateAlias ( java.lang.String alias ) { setFieldValue ( android.net.wifi.WifiEnterpriseConfig.CLIENT_CERT_KEY , alias , android.net.wifi.WifiEnterpriseConfig.CLIENT_CERT_PREFIX ) ; setFieldValue ( android.net.wifi.WifiEnterpriseConfig.PRIVATE_KEY_ID_KEY , alias , Credentials.USER_PRIVATE_KEY ) ; if ( android.text.TextUtils.isEmpty ( alias ) ) { mFields.put ( android.net.wifi.WifiEnterpriseConfig.ENGINE_KEY , android.net.wifi.WifiEnterpriseConfig.ENGINE_DISABLE ) ; mFields.put ( android.net.wifi.WifiEnterpriseConfig.ENGINE_ID_KEY , android.net.wifi.WifiEnterpriseConfig.EMPTY_VALUE ) ; } else { mFields.put ( android.net.wifi.WifiEnterpriseConfig.ENGINE_KEY , android.net.wifi.WifiEnterpriseConfig.ENGINE_ENABLE ) ; mFields.put ( android.net.wifi.WifiEnterpriseConfig.ENGINE_ID_KEY , convertToQuotedString ( android.net.wifi.WifiEnterpriseConfig.ENGINE_ID_KEYSTORE ) ) ; } }
Source:
private java.io.File createHugeZipFile ( int count ) throws java.io.IOException { java.io.File result = java.io.File.createTempFile ( "ZipFileTest" , "zip" ) ; result.deleteOnExit ( ) ; java.util.zip.ZipOutputStream out = new java.util.zip.ZipOutputStream ( new java.io.FileOutputStream ( result ) ) ; for ( int i = 0 ; i < count ; ++ i ) { java.util.zip.ZipEntry entry = new java.util.zip.ZipEntry ( java.lang.Integer.toString ( i ) ) ; out.putNextEntry ( entry ) ; out.closeEntry ( ) ; } out.close ( ) ; return result ; }

Target:
private java.io.File createHugeZipFile ( int count ) throws java.io.IOException { java.io.File result = java.io.File.createTempFile ( "ZipFileTest" , "zip" ) ; result.deleteOnExit ( ) ; java.util.zip.ZipOutputStream out = new java.util.zip.ZipOutputStream ( new java.io.BufferedOutputStream ( new java.io.FileOutputStream ( result ) ) ) ; for ( int i = 0 ; i < count ; ++ i ) { java.util.zip.ZipEntry entry = new java.util.zip.ZipEntry ( java.lang.Integer.toHexString ( i ) ) ; out.putNextEntry ( entry ) ; out.closeEntry ( ) ; } out.close ( ) ; return result ; }
Source:
public void testExceptionContainsView ( ) { java.lang.String exceptionMessage = createException ( ) . getMessage ( ) ; org.hamcrest.MatcherAssert.assertThat ( "missing elements" , exceptionMessage , org.hamcrest.Matchers.allOf ( org.hamcrest.Matchers.containsString ( "{id=1," ) , org.hamcrest.Matchers.containsString ( "{id=2," ) , org.hamcrest.Matchers.containsString ( "{id=3," ) , org.hamcrest.Matchers.containsString ( "{id=4," ) , org.hamcrest.Matchers.containsString ( "{id=-1," ) ) ) ; }

Target:
public void exceptionContainsView ( ) { java.lang.String exceptionMessage = createException ( ) . getMessage ( ) ; org.hamcrest.MatcherAssert.assertThat ( "missing elements" , exceptionMessage , org.hamcrest.Matchers.allOf ( org.hamcrest.Matchers.containsString ( "{id=1," ) , org.hamcrest.Matchers.containsString ( "{id=2," ) , org.hamcrest.Matchers.containsString ( "{id=3," ) , org.hamcrest.Matchers.containsString ( "{id=4," ) , org.hamcrest.Matchers.containsString ( "{id=-1," ) ) ) ; }
Source:
private void updateMatchScoresForSuggestionsBasedOnDataMatches ( android.database.sqlite.SQLiteDatabase db , long rawContactId , com.android.providers.contacts.ContactAggregator.MatchCandidateList candidates , com.android.providers.contacts.ContactMatcher matcher ) { updateMatchScoresBasedOnNameMatches ( db , rawContactId , matcher ) ; updateMatchScoresBasedOnEmailMatches ( db , rawContactId , matcher ) ; updateMatchScoresBasedOnPhoneMatches ( db , rawContactId , matcher ) ; loadNameMatchCandidates ( db , rawContactId , candidates , false ) ; lookupApproximateNameMatches ( db , candidates , matcher ) ; }

Target:
private void updateMatchScoresForSuggestionsBasedOnDataMatches ( android.database.sqlite.SQLiteDatabase db , long rawContactId , com.android.providers.contacts.ContactAggregator.MatchCandidateList candidates , com.android.providers.contacts.ContactMatcher matcher ) { updateMatchScoresBasedOnIdentityMatch ( db , rawContactId , matcher ) ; updateMatchScoresBasedOnNameMatches ( db , rawContactId , matcher ) ; updateMatchScoresBasedOnEmailMatches ( db , rawContactId , matcher ) ; updateMatchScoresBasedOnPhoneMatches ( db , rawContactId , matcher ) ; loadNameMatchCandidates ( db , rawContactId , candidates , false ) ; lookupApproximateNameMatches ( db , candidates , matcher ) ; }
Source:
public void schedule ( java.util.TimerTask task , java.util.Date when ) { if ( ( when.getTime ( ) ) < 0 ) { throw new java.lang.IllegalArgumentException ( ( "when < 0: " + ( when.getTime ( ) ) ) ) ; } long delay = ( when.getTime ( ) ) - ( java.lang.System.currentTimeMillis ( ) ) ; scheduleImpl ( task , ( delay < 0 ? 0 : delay ) , ( - 1 ) , false ) ; }

Target:
private static java.lang.Long computeDelayUntilNextTask ( java.util.Timer.ScheduledTask scheduledTask ) { if ( scheduledTask == null ) { return null ; } long currentTimeMillis = java.lang.System.currentTimeMillis ( ) ; if ( ( scheduledTask.nextExecution ) < currentTimeMillis ) { return 0L ; } else { return ( scheduledTask.nextExecution ) - currentTimeMillis ; } }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( "[ImsCallSession objId:" ) ; sb.append ( java.lang.System.identityHashCode ( this ) ) ; sb.append ( " state:" ) ; sb.append ( com.android.ims.internal.ImsCallSession.State.toString ( getState ( ) ) ) ; sb.append ( " callId:" ) ; sb.append ( getCallId ( ) ) ; sb.append ( "]" ) ; return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( "[ImsCallSession objId:" ) ; sb.append ( java.lang.System.identityHashCode ( this ) ) ; sb.append ( " state:" ) ; sb.append ( android.telephony.ims.ImsCallSession.State.toString ( getState ( ) ) ) ; sb.append ( " callId:" ) ; sb.append ( getCallId ( ) ) ; sb.append ( "]" ) ; return sb.toString ( ) ; }
Source:
public void testKeyPairGenerator_Initialize_Params_Success ( ) throws java.lang.Exception { mGenerator.initialize ( new android.security.AndroidKeyPairGeneratorSpec ( getContext ( ) , android.security.AndroidKeyPairGeneratorTest.TEST_ALIAS_1 , android.security.AndroidKeyPairGeneratorTest.TEST_DN_1 , android.security.AndroidKeyPairGeneratorTest.TEST_SERIAL_1 , android.security.AndroidKeyPairGeneratorTest.NOW , android.security.AndroidKeyPairGeneratorTest.NOW_PLUS_10_YEARS ) ) ; }

Target:
public void testKeyPairGenerator_Initialize_Params_Encrypted_Success ( ) throws java.lang.Exception { setupPassword ( ) ; mGenerator.initialize ( new android.security.AndroidKeyPairGeneratorSpec.Builder ( getContext ( ) ) . setAlias ( android.security.AndroidKeyPairGeneratorTest.TEST_ALIAS_1 ) . setSubject ( android.security.AndroidKeyPairGeneratorTest.TEST_DN_1 ) . setSerialNumber ( android.security.AndroidKeyPairGeneratorTest.TEST_SERIAL_1 ) . setStartDate ( android.security.AndroidKeyPairGeneratorTest.NOW ) . setEndDate ( android.security.AndroidKeyPairGeneratorTest.NOW_PLUS_10_YEARS ) . setEncryptionRequired ( ) . build ( ) ) ; }
Source:
public static void getJavaBinaryFiles ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull java.util.List < java.io.File > binaryFiles ) { if ( file.isDirectory ( ) ) { java.io.File [ ] allFiles = file.listFiles ( ) ; for ( java.io.File aFile : allFiles ) { com.android.jill.utils.FileUtils.getJavaBinaryFiles ( aFile , binaryFiles ) ; } } else if ( com.android.jill.utils.FileUtils.isJavaBinaryFile ( file ) ) { binaryFiles.add ( file.getAbsoluteFile ( ) ) ; } }

Target:
public static void getJavaBinaryFiles ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull java.util.List < java.io.File > binaryFiles ) throws com.android.sched.vfs.ListDirException { if ( file.isDirectory ( ) ) { java.io.File [ ] allFiles = file.listFiles ( ) ; if ( allFiles == null ) { throw new com.android.sched.vfs.ListDirException ( file ) ; } for ( java.io.File aFile : allFiles ) { com.android.jill.utils.FileUtils.getJavaBinaryFiles ( aFile , binaryFiles ) ; } } else if ( com.android.jill.utils.FileUtils.isJavaBinaryFile ( file ) ) { binaryFiles.add ( file.getAbsoluteFile ( ) ) ; } }
Source:
private org.eclipse.core.resources.IProject getProject ( ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiNode = getUiParent ( ) ; com.android.ide.eclipse.adt.internal.editors.AndroidEditor editor = uiNode.getEditor ( ) ; org.eclipse.ui.IEditorInput input = editor.getEditorInput ( ) ; if ( input instanceof org.eclipse.ui.IFileEditorInput ) { org.eclipse.core.resources.IFile file = ( ( org.eclipse.ui.IFileEditorInput ) ( input ) ) . getFile ( ) ; return file.getProject ( ) ; } return null ; }

Target:
private org.eclipse.core.resources.IProject getProject ( ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiNode = getUiParent ( ) ; com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor editor = uiNode.getEditor ( ) ; org.eclipse.ui.IEditorInput input = editor.getEditorInput ( ) ; if ( input instanceof org.eclipse.ui.IFileEditorInput ) { org.eclipse.core.resources.IFile file = ( ( org.eclipse.ui.IFileEditorInput ) ( input ) ) . getFile ( ) ; return file.getProject ( ) ; } return null ; }
Source:
public void testGetInstalledDistroVersion ( ) throws java.lang.Exception { assertNull ( installer.getInstalledDistroVersion ( ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; libcore.tzdata.shared2.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; simulateInstalledDistro ( distro ) ; assertInstalledDistro ( distro ) ; assertEquals ( distro.getDistroVersion ( ) , installer.getInstalledDistroVersion ( ) ) ; assertNoDistroOperationStaged ( ) ; assertInstalledDistro ( distro ) ; }

Target:
public void testGetInstalledDistroVersion ( ) throws java.lang.Exception { assertNull ( installer.getInstalledDistroVersion ( ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; simulateInstalledDistro ( distro ) ; assertInstalledDistro ( distro ) ; assertEquals ( distro.getDistroVersion ( ) , installer.getInstalledDistroVersion ( ) ) ; assertNoDistroOperationStaged ( ) ; assertInstalledDistro ( distro ) ; }
Source:
public static java.lang.String evaluateString ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.Node node , boolean allowUnknown ) { com.android.tools.lint.detector.api.ConstantEvaluator evaluator = new com.android.tools.lint.detector.api.ConstantEvaluator ( context ) ; if ( allowUnknown ) { evaluator.allowUnknowns ( ) ; } java.lang.Object value = evaluator.evaluate ( node ) ; return value instanceof java.lang.String ? ( ( java.lang.String ) ( value ) ) : null ; }

Target:
public static java.lang.Object evaluate ( @ com.android.annotations.Nullable com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.intellij.psi.PsiElement node ) { return new com.android.tools.lint.detector.api.ConstantEvaluator ( context ) . evaluate ( node ) ; }
Source:
private void sortPackages ( boolean updateButtons ) { if ( ( ( ( mCheckSortApi ) != null ) && ( ! ( mCheckSortApi.isDisposed ( ) ) ) ) && ( mCheckSortApi.getSelection ( ) ) ) { sortByApiLevel ( ) ; } else { sortBySource ( ) ; } if ( updateButtons ) { updateButtonsState ( ) ; updateMenuCheckmarks ( ) ; } }

Target:
private boolean isSortByApi ( ) { return ( ( ( mCheckSortApi ) != null ) && ( ! ( mCheckSortApi.isDisposed ( ) ) ) ) && ( mCheckSortApi.getSelection ( ) ) ; }
Source:
public static com.android.build.gradle.internal.model.JavaArtifactImpl clone ( @ com.android.annotations.NonNull com.android.builder.model.JavaArtifact javaArtifact ) { return new com.android.build.gradle.internal.model.JavaArtifactImpl ( javaArtifact.getName ( ) , javaArtifact.getAssembleTaskName ( ) , javaArtifact.getJavaCompileTaskName ( ) , javaArtifact.getClassesFolder ( ) , javaArtifact.getDependencies ( ) , com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider ( javaArtifact.getVariantSourceProvider ( ) ) , com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider ( javaArtifact.getMultiFlavorSourceProvider ( ) ) ) ; }

Target:
public static com.android.build.gradle.internal.model.JavaArtifactImpl clone ( @ com.android.annotations.NonNull com.android.builder.model.JavaArtifact javaArtifact ) { com.android.builder.model.SourceProvider variantSP = javaArtifact.getVariantSourceProvider ( ) ; com.android.builder.model.SourceProvider flavorsSP = javaArtifact.getMultiFlavorSourceProvider ( ) ; return new com.android.build.gradle.internal.model.JavaArtifactImpl ( javaArtifact.getName ( ) , javaArtifact.getAssembleTaskName ( ) , javaArtifact.getJavaCompileTaskName ( ) , javaArtifact.getClassesFolder ( ) , com.android.build.gradle.internal.model.DependenciesImpl.cloneDependenciesForJavaArtifacts ( javaArtifact.getDependencies ( ) ) , ( variantSP != null ? com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider ( variantSP ) : null ) , ( flavorsSP != null ? com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider ( flavorsSP ) : null ) ) ; }
Source:
public void copyFromUnchecked ( byte [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFromUnchecked" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , java.lang.Object array ) { copy1DRangeFromUnchecked ( off , count , array , validateObjectIsPrimitiveArray ( array , false ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public void testInstall_withBadlyFormedBundleVersion ( ) throws java.lang.Exception { java.lang.String invalidBundleVersion = "A01.001" ; byte [ ] versionBytes = libcore.tzdata.update2.BundleVersion.getBytes ( invalidBundleVersion , libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , "001" ) ; libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTimeZoneBundleWithVersionBytes ( versionBytes ) ; assertFalse ( installer.install ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstall_withBadlyFormedBundleVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.BundleVersion validBundleVersion = new libcore.tzdata.update2.BundleVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidFormatVersionBytes = validBundleVersion.toBytes ( ) ; invalidFormatVersionBytes [ 0 ] = 'A' ; libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTimeZoneBundleWithVersionBytes ( invalidFormatVersionBytes ) ; assertEquals ( TimeZoneBundleInstaller.INSTALL_FAIL_BAD_BUNDLE_STRUCTURE , installer.installWithErrorCode ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , long [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 8 ) ) ; }

Target:
public void copy2DRangeTo ( int xoff , int yoff , int w , int h , int [ ] data ) { validateIsInt32 ( ) ; copy2DRangeToUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_32 , data.length ) ; }
Source:
private static android.net.NetworkState buildMobile4gState ( java.lang.String iface ) { final android.net.NetworkInfo info = new android.net.NetworkInfo ( android.net.ConnectivityManager.TYPE_WIMAX , 0 , null , null ) ; info.setDetailedState ( DetailedState.CONNECTED , null , null ) ; final android.net.LinkProperties prop = new android.net.LinkProperties ( ) ; prop.setInterfaceName ( iface ) ; final android.net.NetworkCapabilities capabilities = new android.net.NetworkCapabilities ( ) ; return new android.net.NetworkState ( info , prop , capabilities , null , null , null ) ; }

Target:
private static android.net.NetworkState buildMobile4gState ( java.lang.String iface ) { final android.net.NetworkInfo info = new android.net.NetworkInfo ( android.net.ConnectivityManager.TYPE_WIMAX , 0 , null , null ) ; info.setDetailedState ( DetailedState.CONNECTED , null , null ) ; final android.net.LinkProperties prop = new android.net.LinkProperties ( ) ; prop.setInterfaceName ( iface ) ; final android.net.NetworkCapabilities capabilities = new android.net.NetworkCapabilities ( ) ; capabilities.setCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_METERED , false ) ; capabilities.setCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING , true ) ; return new android.net.NetworkState ( info , prop , capabilities , null , null , null ) ; }
Source:
public java.util.TimeZone makeTimeZone ( java.lang.String id ) throws java.io.IOException { int index = java.util.Arrays.binarySearch ( ids , id ) ; if ( index < 0 ) { return null ; } libcore.io.BufferIterator it = mappedFile.bigEndianIterator ( ) ; it.skip ( byteOffsets [ index ] ) ; return libcore.util.ZoneInfo.makeTimeZone ( id , it ) ; }

Target:
protected libcore.util.ZoneInfo create ( java.lang.String id ) { int index = java.util.Arrays.binarySearch ( ids , id ) ; if ( index < 0 ) { return null ; } libcore.io.BufferIterator it = mappedFile.bigEndianIterator ( ) ; it.skip ( byteOffsets [ index ] ) ; return libcore.util.ZoneInfo.makeTimeZone ( id , it ) ; }