auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void registerForVoiceNetworkStateChanged ( android.os.Handler h , int what , java.lang.Object obj ) { }

Target:
public void registerForNetworkStateChanged ( android.os.Handler h , int what , java.lang.Object obj ) { }
Source:
public void close ( ) throws java.io.IOException { super . close ( ) ; digests.put ( getPath ( ) , getDigestString ( getMessageDigest ( ) . digest ( ) ) ) ; }

Target:
public void close ( ) throws java.io.IOException { super . close ( ) ; synchronized ( this ) { digests.put ( getPath ( ) , getDigestString ( getMessageDigest ( ) . digest ( ) ) ) ; digest = null ; } }
Source:
private native void gattClientWriteCharacteristicNative ( int conn_id , int service_type , int service_id_inst_id , long service_id_uuid_lsb , long service_id_uuid_msb , int char_id_inst_id , long char_id_uuid_lsb , long char_id_uuid_msb , int write_type , int auth_req , byte [ ] value ) ;

Target:
private native void gattClientWriteDescriptorNative ( int conn_id , int handle , int write_type , int auth_req , byte [ ] value ) ;
Source:
synchronized void nScriptSetTimeZone ( int script , byte [ ] timeZone ) { validate ( ) ; rsnScriptSetTimeZone ( mContext , script , timeZone ) ; }

Target:
synchronized void nAllocationRead ( long id , short [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }
Source:
public void validateValidConfig ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = android.net.wifi.hotspot2.PasspointConfigurationTest.createHomeSp ( ) ; config.credential = android.net.wifi.hotspot2.PasspointConfigurationTest.createCredential ( ) ; org.junit.Assert.assertTrue ( config.validate ( ) ) ; }

Target:
private static android.net.wifi.hotspot2.PasspointConfiguration createConfig ( ) { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = android.net.wifi.hotspot2.PasspointConfigurationTest.createHomeSp ( ) ; config.credential = android.net.wifi.hotspot2.PasspointConfigurationTest.createCredential ( ) ; config.policy = android.net.wifi.hotspot2.PasspointConfigurationTest.createPolicy ( ) ; return config ; }
Source:
private static synchronized java.lang.invoke.MethodHandle setCachedMethodHandle ( java.lang.invoke.MethodHandle [ ] cache , int pos , java.lang.invoke.MethodHandle value ) { java.lang.invoke.MethodHandle prev = cache [ pos ] ; if ( prev != null ) return prev ; return cache [ pos ] = value ; }

Target:
public static long identity ( long val ) { return val ; }
Source:
public void test_with_adjustment_null ( ) { TEST_11_30_59_500_PONE.with ( ( ( java.time.temporal.TemporalAdjuster ) ( null ) ) ) ; }

Target:
public void test_with_adjustment_null ( ) { tck.java.time.TCKOffsetTime.TEST_11_30_59_500_PONE.with ( ( ( java.time.temporal.TemporalAdjuster ) ( null ) ) ) ; }
Source:
protected void engineUpdate ( byte b ) throws java.security.SignatureException { }

Target:
public void engineUpdate ( byte b ) throws java.security.SignatureException { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
static void resetSerial ( ) { com.android.internal.telephony.RILRequest.sNextSerial.set ( com.android.internal.telephony.RILRequest.sRandom.nextInt ( ) ) ; }

Target:
static void resetSerial ( ) { com.android.internal.telephony.RILRequest.sNextSerial.set ( com.android.internal.telephony.RILRequest.sRandom.nextInt ( java.lang.Integer.MAX_VALUE ) ) ; }
Source:
public static long ShrLongInt ( ) { long lhs = Main.$inline$long ( 9 ) ; int rhs = Main.$inline$int ( 2 ) ; return lhs > > rhs ; }

Target:
public static int ShrIntLong ( ) { int lhs = 7 ; long rhs = 2 ; return lhs > > rhs ; }
Source:
public java.lang.reflect.Type getGenericSuperclass ( ) { org.apache.harmony.luni.lang.reflect.GenericSignatureParser parser = new org.apache.harmony.luni.lang.reflect.GenericSignatureParser ( getClassLoader ( ) ) ; parser.parseForClass ( this , getSignatureAttribute ( ) ) ; return org.apache.harmony.luni.lang.reflect.Types.getType ( parser.superclassType ) ; }

Target:
public java.lang.reflect.Type [ ] getGenericInterfaces ( ) { libcore.reflect.GenericSignatureParser parser = new libcore.reflect.GenericSignatureParser ( getClassLoader ( ) ) ; parser.parseForClass ( this , getSignatureAttribute ( ) ) ; return libcore.reflect.Types.getClonedTypeArray ( parser.interfaceTypes ) ; }
Source:
public void visitRuntimeInvisibleAnnotationsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.RuntimeInvisibleAnnotationsAttribute runtimeInvisibleAnnotationsAttribute ) { if ( accepted ( clazz , runtimeInvisibleAnnotationsAttribute ) ) { runtimeInvisibleAnnotationsAttribute.accept ( clazz , attributeVisitor ) ; } }

Target:
public void visitRuntimeInvisibleTypeAnnotationsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Method method , proguard.classfile.attribute.visitor.CodeAttribute codeAttribute , proguard.classfile.attribute.visitor.RuntimeInvisibleTypeAnnotationsAttribute runtimeInvisibleTypeAnnotationsAttribute ) { if ( accepted ( clazz , runtimeInvisibleTypeAnnotationsAttribute ) ) { attributeVisitor.visitRuntimeInvisibleTypeAnnotationsAttribute ( clazz , method , codeAttribute , runtimeInvisibleTypeAnnotationsAttribute ) ; } }
Source:
public java.io.File getToolsApiJarFile ( ) { final java.io.File sdkDir = new java.io.File ( mySdkPath ) ; java.io.File toolsJar = new java.io.File ( sdkDir , com.google.gct.idea.appengine.sdk.AppEngineSdk.TOOLS_API_JAR_PATH ) ; if ( toolsJar.exists ( ) ) { return toolsJar ; } return null ; }

Target:
public java.io.File getToolsApiJarFile ( ) { return getSdkJar ( com.google.gct.idea.appengine.sdk.AppEngineSdk.TOOLS_API_JAR_PATH ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDoubleLiteral x ) { printDoubleLiteral ( x.getValue ( ) ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField x ) { print ( com.android.jack.ir.ast.JModifier.getStringFieldModifier ( x.getModifier ( ) ) ) ; printType ( x ) ; space ( ) ; printName ( x ) ; return false ; }
Source:
public static void computeLgamma ( android.renderscript.cts.TestLgamma.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.lgamma ( args.in ) ) ; }

Target:
public static void computeLgamma ( android.renderscript.cts.TestLgamma.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.lgamma ( args.in ) , 16 , 128 ) ; }
Source:
public com.android.build.gradle.internal.dsl.BuildType setConsumerProguardFiles ( java.lang.Iterable < ? > proguardFileIterable ) { consumerProguardFiles.clear ( ) ; for ( java.lang.Object proguardFile : proguardFileIterable ) { consumerProguardFiles.add ( project.file ( proguardFile ) ) ; } return this ; }

Target:
public com.android.build.gradle.internal.dsl.BuildType setProguardFiles ( @ com.android.annotations.NonNull java.lang.Iterable < ? > proguardFileIterable ) { getProguardFiles ( ) . clear ( ) ; for ( java.lang.Object proguardFile : proguardFileIterable ) { getProguardFiles ( ) . add ( project.file ( proguardFile ) ) ; } return this ; }
Source:
public void ipSecReleaseSecurityParameterIndex ( java.lang.String id ) { android.net.IpSecManager.SecurityParameterIndex spi = com.googlecode.android_scripting.facade.IpSecManagerFacade.mSpiHashMap.get ( id ) ; if ( spi == null ) { com.googlecode.android_scripting.Log.d ( "IpSec: SPI does not exist for the requested id" ) ; return ; } spi.close ( ) ; com.googlecode.android_scripting.facade.IpSecManagerFacade.mSpiHashMap.remove ( id ) ; }

Target:
public void ipSecReleaseSecurityParameterIndex ( java.lang.String id ) { android.net.IpSecManager.SecurityParameterIndex spi = com.googlecode.android_scripting.facade.IpSecManagerFacade.sSpiHashMap.get ( id ) ; if ( spi == null ) { com.googlecode.android_scripting.Log.d ( "IpSec: SPI does not exist for the requested id" ) ; return ; } spi.close ( ) ; com.googlecode.android_scripting.facade.IpSecManagerFacade.sSpiHashMap.remove ( id ) ; }
Source:
public void screenTurnedOff ( int why ) { android.util.EventLog.writeEvent ( 70000 , 0 ) ; mKeyguardMediator.onScreenTurnedOff ( why ) ; synchronized ( mLock ) { mScreenOn = false ; updateOrientationListenerLp ( ) ; } }

Target:
public void screenTurnedOff ( int why ) { android.util.EventLog.writeEvent ( 70000 , 0 ) ; mKeyguardMediator.onScreenTurnedOff ( why ) ; synchronized ( mLock ) { mScreenOn = false ; updateOrientationListenerLp ( ) ; updateLockScreenTimeout ( ) ; } }
Source:
public com.android.build.gradle.internal.core.NdkConfig getNdkConfig ( ) { return new com.android.build.gradle.managed.adaptor.NdkConfigAdaptor ( productFlavor.getNdkConfig ( ) ) ; }

Target:
public com.android.build.gradle.internal.dsl.CoreNdkOptions getNdkConfig ( ) { return new com.android.build.gradle.managed.adaptor.NdkOptionsAdaptor ( productFlavor.getNdk ( ) ) ; }
Source:
public static int AndAllOnes ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg & ( - 1 ) ; }

Target:
public static int $noinline$AndAllOnes ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg & ( - 1 ) ; }
Source:
public boolean matchesSafely ( android.support.v4.widget.DrawerLayout drawer ) { return drawer.isDrawerOpen ( GravityCompat.START ) ; }

Target:
public boolean matchesSafely ( android.support.v4.widget.DrawerLayout drawer ) { return drawer.isDrawerOpen ( gravity ) ; }
Source:
private static java.util.Properties createProps ( com.android.sdklib.internal.repository.packages.FullRevision revision , int minPlatformToolsRev ) { java.util.Properties props = com.android.sdklib.internal.repository.packages.FullRevisionPackageTest.createProps ( revision ) ; props.setProperty ( PkgProps.MIN_PLATFORM_TOOLS_REV , java.lang.Integer.toString ( minPlatformToolsRev ) ) ; return props ; }

Target:
private static java.util.Properties createProps ( com.android.sdklib.repository.FullRevision revision , int minPlatformToolsRev ) { java.util.Properties props = com.android.sdklib.internal.repository.packages.FullRevisionPackageTest.createProps ( revision ) ; props.setProperty ( PkgProps.MIN_PLATFORM_TOOLS_REV , java.lang.Integer.toString ( minPlatformToolsRev ) ) ; return props ; }
Source:
public static int min ( int a , int b ) { return a <= b ? a : b ; }

Target:
public static int max ( int a , int b ) { return java.lang.Math.max ( a , b ) ; }
Source:
public com.google.common.primitives.UnsignedInteger remainder ( com.google.common.primitives.UnsignedInteger val ) { com.google.common.base.Preconditions.checkNotNull ( val ) ; return com.google.common.primitives.UnsignedInteger.asUnsigned ( com.google.common.primitives.UnsignedInts.remainder ( value , val.value ) ) ; }

Target:
public com.google.common.primitives.UnsignedInteger mod ( com.google.common.primitives.UnsignedInteger val ) { return com.google.common.primitives.UnsignedInteger.fromIntBits ( com.google.common.primitives.UnsignedInts.remainder ( value , com.google.common.base.Preconditions.checkNotNull ( val ) . value ) ) ; }
Source:
public void setUp ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { startVirtualenv ( buildInfo ) ; installDeps ( buildInfo ) ; }

Target:
public void setUp ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { startVirtualenv ( buildInfo ) ; setLocalPypiPath ( ) ; installDeps ( buildInfo ) ; }
Source:
public static native void EC_POINT_clear_free ( int pointRef ) ;

Target:
public static native java.lang.String EC_GROUP_get_curve_name ( long groupRef ) ;
Source:
public void testNewRefocus ( ) { refocus ( RenderScriptTask.script.d1new ) ; }

Target:
public void testNewRefocus ( ) { refocus ( RenderScriptTask.script.d1new , 50 ) ; }
Source:
public void unscheduleSelf ( java.lang.Runnable what ) { synchronized ( mLock ) { mNextFrameToDecode = - 1 ; } super . unscheduleSelf ( what ) ; }

Target:
public void unscheduleSelf ( java.lang.Runnable what ) { synchronized ( mLock ) { mNextFrameToDecode = - 1 ; mState = 0 ; } super . unscheduleSelf ( what ) ; }
Source:
public final boolean equals ( java.lang.Object obj ) { return ( obj instanceof com.android.jack.library.OutputLibraryLocation ) && ( ( ( com.android.jack.library.OutputLibraryLocation ) ( obj ) ) . getOutputLibrary ( ) . equals ( getOutputLibrary ( ) ) ) ; }

Target:
protected com.android.sched.util.location.Location getVFSLocation ( ) { return baseVFS.getLocation ( ) ; }
Source:
static native byte getDirectionalityImpl ( int codePoint ) ;

Target:
static native boolean isMirroredImpl ( int codePoint ) ;
Source:
public static java.lang.String toLowerCase ( java.util.Locale locale , java.lang.String str ) { return android.icu.lang.UCharacter.toLowerCase ( android.icu.util.ULocale.forLocale ( locale ) , str ) ; }

Target:
public static java.lang.String toUpperCase ( java.util.Locale locale , java.lang.String str ) { return android.icu.lang.UCharacter.toUpperCase ( android.icu.lang.UCharacter.getCaseLocale ( locale ) , str ) ; }
Source:
synchronized void nScriptSetVarF ( long id , int slot , float val ) { validate ( ) ; rsnScriptSetVarF ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptSetVarJ ( long id , int slot , long val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarJ ( curCon , id , slot , val , mUseInc ) ; }
Source:
public E floor ( E e ) { return com.google.common.collect.Iterables.getFirst ( headSet ( e , true ) . descendingSet ( ) , null ) ; }

Target:
public E floor ( E e ) { return com.google.common.collect.Iterators.getNext ( headSet ( e , true ) . descendingIterator ( ) , null ) ; }
Source:
public com.android.sched.util.log.tracer.AbstractTracer.TracerEvent start ( @ javax.annotation.Nonnull java.lang.String name ) { return start ( getOrCreateDynamicEventType ( name ) ) ; }

Target:
public com.android.sched.util.log.tracer.AbstractTracer.TracerEvent open ( @ javax.annotation.Nonnull java.lang.String name ) { return open ( getOrCreateDynamicEventType ( name ) ) ; }
Source:
public static float FloatMultiplication ( ) { float a ; float b ; float c ; a = 7.0F ; b = 3.0F ; c = a * b ; return c ; }

Target:
public static float FloatSubtraction ( ) { float a ; float b ; float c ; a = Main.$inline$float ( 6.0F ) ; b = Main.$inline$float ( 2.0F ) ; c = a - b ; return c ; }
Source:
public static java.util.List < java.lang.String > readLines ( java.net.URL url , java.nio.charset.Charset charset ) throws java.io.IOException { return com.google.common.io.CharStreams.readLines ( com.google.common.io.Resources.newReaderSupplier ( url , charset ) ) ; }

Target:
public boolean processLine ( java.lang.String line ) { result.add ( line ) ; return true ; }
Source:
private static void cancelTimer ( ) { synchronized ( com.android.jack.server.Server.lockTimer ) { if ( ( com.android.jack.server.Server.timer ) != null ) { com.android.jack.server.Server.logger.log ( java.util.logging.Level.INFO , "Cancel timer" ) ; com.android.jack.server.Server.timer.cancel ( ) ; com.android.jack.server.Server.timer.purge ( ) ; com.android.jack.server.Server.timer = null ; } } }

Target:
private static void cancelTimer ( ) { synchronized ( com.android.jack.server.Server.lockTimer ) { if ( ( com.android.jack.server.Server.timer ) != null ) { com.android.jack.server.Server.logger.log ( java.util.logging.Level.FINE , "Cancel timer" ) ; com.android.jack.server.Server.timer.cancel ( ) ; com.android.jack.server.Server.timer.purge ( ) ; com.android.jack.server.Server.timer = null ; } } }
Source:
public void test_writeBoolean ( ) throws java.lang.Exception { os.writeBoolean ( true ) ; os.writeBoolean ( false ) ; assertEquals ( "[01, 00]" , libcore.java.io.DataOutputStreamTest.toHexString ( bytes.toByteArray ( ) ) ) ; }

Target:
public void test_writeBoolean ( ) throws java.lang.Exception { os.writeBoolean ( true ) ; os.writeBoolean ( false ) ; assertEquals ( "0100" , libcore.util.HexEncoding.encodeToString ( bytes.toByteArray ( ) ) ) ; }
Source:
public static native void DH_generate_key ( org.conscrypt.NativeRef.EVP_PKEY pkeyRef ) ;

Target:
public static native void EVP_PKEY_CTX_set_rsa_mgf1_md ( long ctx , long evpMdRef ) ;
Source:
private void freeBitmap ( ) { if ( ( mBitmap ) == null ) { throw new java.lang.AssertionError ( ) ; } onFreeBitmap ( mBitmap ) ; mBitmap = null ; }

Target:
private void freeBitmap ( ) { com.android.gallery3d.common.Utils.assertTrue ( ( ( mBitmap ) != null ) ) ; onFreeBitmap ( mBitmap ) ; mBitmap = null ; }
Source:
public com.android.tools.rpclib.rpc.BinaryObject create ( ) { return new com.android.tools.rpclib.rpc.ClassIdInfo ( ) ; }

Target:
public com.android.tools.rpclib.rpc.BinaryObject create ( ) { return new com.android.tools.rpclib.rpc.AtomTimer ( ) ; }
Source:
public static int fromKeymaster ( int userAuthenticator ) { switch ( userAuthenticator ) { case android.security.KeyStoreKeyConstraints.UserAuthenticator.LOCK_SCREEN : return android.security.KeyStoreKeyConstraints.UserAuthenticator.LOCK_SCREEN ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown user authenticator: " + userAuthenticator ) ) ; } }

Target:
public static int fromKeymaster ( int userAuthenticator ) { switch ( userAuthenticator ) { case android.security.keymaster.KeymasterDefs.HW_AUTH_PASSWORD : return android.security.KeyStoreKeyConstraints.UserAuthenticator.LOCK_SCREEN ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown user authenticator: " + userAuthenticator ) ) ; } }
Source:
public boolean isVoicemailVibrationEnabled ( android.telecom.PhoneAccountHandle accountHandle ) { final com.android.internal.telephony.Phone phone = com.android.phone.PhoneUtils.getPhoneForPhoneAccountHandle ( accountHandle ) ; if ( phone == null ) { return false ; } return com.android.phone.settings.VoicemailNotificationSettingsUtil.isVibrationEnabled ( phone ) ; }

Target:
public boolean isVoicemailVibrationEnabled ( android.telecom.PhoneAccountHandle accountHandle ) { com.android.internal.telephony.Phone phone = com.android.phone.PhoneUtils.getPhoneForPhoneAccountHandle ( accountHandle ) ; if ( phone == null ) { phone = mPhone ; } return com.android.phone.settings.VoicemailNotificationSettingsUtil.isVibrationEnabled ( phone ) ; }
Source:
public void onChange ( boolean selfChange ) { android.telephony.Rlog.i ( com.android.internal.telephony.ServiceStateTracker.LOG_TAG , "Auto time state changed" ) ; revertToNitzTime ( ) ; }

Target:
public void onImsServiceStateChanged ( ) { sendMessage ( obtainMessage ( com.android.internal.telephony.ServiceStateTracker.EVENT_IMS_SERVICE_STATE_CHANGED ) ) ; }
Source:
public java.io.File getJarJarRuleFile ( ) { return null ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getTestInstrumentationRunnerArguments ( ) { return null ; }
Source:
public boolean contains ( @ javax.annotation.Nullable java.lang.Object o ) { return ( indexOf ( o ) ) >= 0 ; }

Target:
static < B > java.util.List < java.util.List < B > > cartesianProduct ( java.util.List < ? extends java.util.List < ? extends B > > lists ) { return com.google.common.collect.CartesianList.create ( lists ) ; }
Source:
static boolean isspace ( char c ) { return ( ( ( c == ' ' ) || ( c == '\t' ) ) || ( c == '\n' ) ) || ( c == '\r' ) ; }

Target:
static boolean isSpace ( char c ) { return ( ( ( c == ' ' ) || ( c == '\t' ) ) || ( c == '\n' ) ) || ( c == '\r' ) ; }
Source:
private static java.lang.String getBooleanVal ( boolean bool ) { if ( bool ) { return com.android.sdklib.internal.avd.HardwareProperties.BOOLEAN_VALUES [ 0 ] ; } return com.android.sdklib.internal.avd.HardwareProperties.BOOLEAN_VALUES [ 1 ] ; }

Target:
private static java.lang.String getBooleanVal ( boolean bool ) { if ( bool ) { return com.android.sdklib.internal.avd.HardwareProperties.BOOLEAN_YES ; } return com.android.sdklib.internal.avd.HardwareProperties.BOOLEAN_NO ; }
Source:
public static int getIndex ( com.android.resources.ScreenSize orientation ) { int i = 0 ; for ( com.android.resources.ScreenSize orient : com.android.resources.ScreenSize.values ( ) ) { if ( orient == orientation ) { return i ; } i ++ ; } return - 1 ; }

Target:
public static int getIndex ( com.android.resources.ScreenLayoutSize orientation ) { int i = 0 ; for ( com.android.resources.ScreenLayoutSize orient : com.android.resources.ScreenLayoutSize.values ( ) ) { if ( orient == orientation ) { return i ; } i ++ ; } return - 1 ; }
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 computeLog1p ( android.renderscript.cts.TestLog1p.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.log1p ( args.in ) , 2 , 16 ) ; }
Source:
public void testPackageOverridePackageFromFlavorWithSuffix ( ) { mFlavorConfig.setPackageName ( "foo.bar" ) ; mBuildType.setPackageNameSuffix ( ".fortytwo" ) ; com.android.builder.core.VariantConfiguration variant = getVariant ( ) ; assertEquals ( "foo.bar.fortytwo" , variant.getPackageOverride ( ) ) ; }

Target:
public void testPackageOverridePackageFromFlavorWithSuffix2 ( ) { mFlavorConfig.setApplicationId ( "foo.bar" ) ; mBuildType.setApplicationIdSuffix ( "fortytwo" ) ; com.android.builder.core.VariantConfiguration variant = getVariant ( ) ; assertEquals ( "foo.bar.fortytwo" , variant.getIdOverride ( ) ) ; }
Source:
public com.intellij.util.indexing.CollectingContentIterator createContentIterator ( @ org.jetbrains.annotations.Nullable com.intellij.util.indexing.ProgressIndicator indicator ) { return new com.intellij.util.indexing.FileBasedIndexImpl.UnindexedFilesFinder ( indicator ) ; }

Target:
public com.intellij.util.indexing.CollectingContentIterator createContentIterator ( @ org.jetbrains.annotations.Nullable com.intellij.openapi.progress.ProgressIndicator indicator ) { return new com.intellij.util.indexing.FileBasedIndexImpl.UnindexedFilesFinder ( indicator ) ; }
Source:
public java.util.Collection < java.lang.String > getNewNames ( ) { return newFieldNames ; }

Target:
public java.util.Collection < com.android.jack.shrob.obfuscation.key.FieldKey > getNewKeys ( ) { return newFieldKeys ; }
Source:
public int compareTo ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem other ) { return mName.compareTo ( other.mName ) ; }

Target:
public int compareTo ( com.android.ide.common.resources.ResourceItem other ) { return mName.compareTo ( other.mName ) ; }
Source:
protected com.android.tools.lint.detector.api.Project createProject ( @ com.android.annotations.NonNull java.io.File dir , @ com.android.annotations.NonNull java.io.File referenceDir ) { return new com.android.tools.lint.checks.ManifestDetectorTest.MyProject ( this , dir , referenceDir ) ; }

Target:
com.android.builder.model.SourceProvider createSourceProvider ( java.io.File manifest ) { com.android.builder.model.SourceProvider provider = org.easymock.EasyMock.createNiceMock ( com.android.builder.model.SourceProvider.class ) ; org.easymock.EasyMock.expect ( provider.getManifestFile ( ) ) . andReturn ( manifest ) . anyTimes ( ) ; org.easymock.EasyMock.replay ( provider ) ; return provider ; }
Source:
public void registrationProgressing ( ) { if ( com.android.ims.ImsManager.DBG ) { com.android.ims.ImsManager.log ( "registrationProgressing ::" ) ; } if ( ( mListener ) != null ) { mListener.onImsProgressing ( ) ; } }

Target:
public void registrationProgressing ( ) { if ( com.android.ims.ImsManager.DBG ) { com.android.ims.ImsManager.log ( "registrationProgressing ::" ) ; } if ( ( mListener ) != null ) { mListener.onImsProgressing ( ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN ) ; } }
Source:
public void onAnimationEnd ( android.animation.Animator animation ) { deselect ( ) ; show ( false ) ; mOverlay.setAlpha ( 1 ) ; super . onAnimationEnd ( animation ) ; }

Target:
public void onAnimationEnd ( android.animation.Animator animation ) { deselect ( ) ; show ( false ) ; overlay.setAlpha ( 1 ) ; super . onAnimationEnd ( animation ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { super . widgetSelected ( e ) ; if ( mProjectButton.getSelection ( ) ) { setupResourceList ( ) ; mNewButton.setEnabled ( true ) ; } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { super . widgetSelected ( e ) ; if ( mProjectButton.getSelection ( ) ) { setupResourceList ( ) ; mNewButton.setEnabled ( true ) ; updatePreview ( ) ; } }
Source:
void cleanup ( ) { if ( ( com.android.bluetooth.btservice.RemoteDevices.mSdpTracker ) != null ) com.android.bluetooth.btservice.RemoteDevices.mSdpTracker.clear ( ) ; if ( ( mDevices ) != null ) mDevices.clear ( ) ; }

Target:
void cleanup ( ) { if ( ( com.android.bluetooth.btservice.RemoteDevices.mSdpTracker ) != null ) com.android.bluetooth.btservice.RemoteDevices.mSdpTracker.clear ( ) ; if ( ( mDevices ) != null ) mDevices.clear ( ) ; if ( ( mDeviceQueue ) != null ) mDeviceQueue.clear ( ) ; }
Source:
public void enableWifiConnectivityManager ( boolean enabled ) { enforceConnectivityInternalPermission ( ) ; mWifiStateMachine.enableWifiConnectivityManager ( enabled ) ; }

Target:
public void enableWifiConnectivityManager ( boolean enabled ) { enforceConnectivityInternalPermission ( ) ; mLog.trace ( "enableWifiConnectivityManager uid=% enabled=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . c ( enabled ) . flush ( ) ; mWifiStateMachine.enableWifiConnectivityManager ( enabled ) ; }
Source:
public final void errln ( java.lang.String message ) { msg ( message , android.icu.dev.test.ERR , true , true ) ; }

Target:
public static final void warn ( java.lang.String message ) { org.junit.Assert.fail ( message ) ; }
Source:
public boolean getDataOnRoamingEnabled ( ) { try { final android.content.ContentResolver resolver = mPhone.getContext ( ) . getContentResolver ( ) ; return ( Settings.Secure.getInt ( resolver , Settings.Secure.DATA_ROAMING ) ) != 0 ; } catch ( android.provider.Settings.SettingNotFoundException snfe ) { return false ; } }

Target:
public boolean getDataOnRoamingEnabled ( ) { try { final android.content.ContentResolver resolver = mPhone.getContext ( ) . getContentResolver ( ) ; return ( Settings.Global.getInt ( resolver , Settings.Global.DATA_ROAMING ) ) != 0 ; } catch ( android.provider.Settings.SettingNotFoundException snfe ) { return false ; } }
Source:
public void test_Any_Upper ( ) throws java.lang.Exception { libcore.icu.Transliterator t = new libcore.icu.Transliterator ( "Any-Upper" ) ; assertEquals ( "HELLO WORLD!" , t.transliterate ( "HeLlO WoRlD!" ) ) ; assertEquals ( "STRASSE" , t.transliterate ( "Straße" ) ) ; }

Target:
public void test_Any_Upper ( ) throws java.lang.Exception { android.icu.text.Transliterator t = android.icu.text.Transliterator.getInstance ( "Any-Upper" ) ; assertEquals ( "HELLO WORLD!" , t.transliterate ( "HeLlO WoRlD!" ) ) ; assertEquals ( "STRASSE" , t.transliterate ( "Straße" ) ) ; }
Source:
private static java.io.File getWrittenSet ( ) throws com.android.builder.resources.DuplicateResourceException , java.io.IOException { com.android.builder.resources.ResourceSet mergedSet = com.android.builder.resources.ResourceMergerTest.getMergedSet ( ) ; java.io.File folder = com.google.common.io.Files.createTempDir ( ) ; mergedSet.writeTo ( folder ) ; return folder ; }

Target:
private static java.io.File getWrittenResources ( ) throws com.android.builder.resources.DuplicateResourceException , java.io.IOException { com.android.builder.resources.ResourceMerger resourceMerger = com.android.builder.resources.ResourceMergerTest.getResourceMerger ( ) ; java.io.File folder = com.google.common.io.Files.createTempDir ( ) ; resourceMerger.writeResourceFolder ( folder ) ; return folder ; }
Source:
public void testSpecificDefaultValue ( ) { assertEquals ( 1.0 , org.apache.harmony.tests.java.nio.charset.ASCIICharsetEncoderTest.encoder.averageBytesPerChar ( ) , 0.0 ) ; assertEquals ( 1.0 , org.apache.harmony.tests.java.nio.charset.ASCIICharsetEncoderTest.encoder.maxBytesPerChar ( ) , 0.0 ) ; }

Target:
public void testCanEncodechar ( ) throws java.nio.charset.CharacterCodingException { assertTrue ( encoder.canEncode ( 'w' ) ) ; assertFalse ( encoder.canEncode ( '슣' ) ) ; }
Source:
public static java.io.File [ ] getDefaultBootclasspath ( ) { return new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "toolchain/jack/jack/libs/core-stubs-mini.jar" ) } ; }

Target:
public static java.io.File [ ] getDefaultBootclasspath ( ) { return new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "toolchain/jack/jack/libs/core-stubs-mini.jack" ) } ; }
Source:
public static < T extends java.lang.Comparable < T > > org.hamcrest.org.hamcrest.Matcher < T > greaterThanOrEqualTo ( T value ) { return org.hamcrest.number.OrderingComparisons.greaterThanOrEqualTo ( value ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > instanceOf ( java.lang.Class < ? > type ) { return org.hamcrest.core.IsInstanceOf.< T > instanceOf ( type ) ; }
Source:
public void run ( ) { android.bluetooth.le.AdvertisingSet advertisingSet = mAdvertisingSets.get ( advertiserId ) ; callback.onPeriodicAdvertisingEnable ( advertisingSet , enable , status ) ; }

Target:
public void run ( ) { android.bluetooth.le.AdvertisingSet advertisingSet = mAdvertisingSets.get ( advertiserId ) ; callback.onPeriodicAdvertisingEnabled ( advertisingSet , enable , status ) ; }
Source:
final void putLongUnchecked ( int i , long x ) { putLong ( ix ( i ) , x ) ; }

Target:
final void putLongUnchecked ( int i , long x ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putLong ( ix ( i ) , x ) ; }
Source:
private static void logInApplySetValueOperation ( java.lang.String formattingString , java.lang.Object ... objects ) { com.google.devtools.common.options.InvocationPolicyEnforcer.logger.logp ( java.util.logging.Level.INFO , "InvocationPolicyEnforcer" , "applySetValueOperation" , java.lang.String.format ( formattingString , objects ) ) ; }

Target:
private static void logInApplySetValueOperation ( java.util.logging.Level loglevel , java.lang.String formattingString , java.lang.Object ... objects ) { com.google.devtools.common.options.InvocationPolicyEnforcer.logger.logp ( loglevel , "InvocationPolicyEnforcer" , "applySetValueOperation" , java.lang.String.format ( formattingString , objects ) ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { super . widgetSelected ( e ) ; if ( mProjectButton.getSelection ( ) ) { setListElements ( mProjectResources.getResources ( mResourceType ) ) ; } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { super . widgetSelected ( e ) ; if ( mProjectButton.getSelection ( ) ) { setupResourceList ( ) ; mNewButton.setEnabled ( true ) ; } }
Source:
public com.android.jack.ir.ast.JDefinedEnum getEnum ( @ javax.annotation.Nonnull java.lang.String typeName ) throws com.android.jack.ir.ast.JTypeLookupException { return ( ( com.android.jack.ir.ast.JDefinedEnum ) ( getType ( typeName ) ) ) ; }

Target:
public com.android.jack.ir.ast.JDefinedAnnotation getAnnotation ( @ javax.annotation.Nonnull java.lang.String typeName ) throws com.android.jack.ir.ast.JTypeLookupException { com.android.jack.ir.ast.JType type = getType ( typeName ) ; if ( type instanceof com.android.jack.ir.ast.JDefinedAnnotation ) { return ( ( com.android.jack.ir.ast.JDefinedAnnotation ) ( type ) ) ; } else { throw new com.android.jack.ir.ast.IncompatibleJTypeLookupException ( type , com.android.jack.ir.ast.JDefinedAnnotation.class ) ; } }
Source:
public void visitProgramClass ( proguard.optimize.peephole.ProgramClass programClass ) { programClass.superClassConstantAccept ( new proguard.optimize.peephole.ReferencedClassVisitor ( new proguard.optimize.peephole.SubclassTraveler ( new proguard.optimize.peephole.ProgramClassFilter ( new proguard.optimize.peephole.ClassMerger ( programClass , allowAccessModification , mergeInterfacesAggressively , extraClassVisitor ) ) ) ) ) ; }

Target:
public void visitProgramClass ( proguard.classfile.ProgramClass programClass ) { programClass.superClassConstantAccept ( new proguard.optimize.peephole.ReferencedClassVisitor ( new proguard.optimize.peephole.SubclassTraveler ( new proguard.optimize.peephole.ProgramClassFilter ( new proguard.optimize.peephole.ClassMerger ( programClass , allowAccessModification , mergeInterfacesAggressively , extraClassVisitor ) ) ) ) ) ; }
Source:
public void forceConnectivityScan ( ) { android.util.Log.i ( com.android.server.wifi.WifiConnectivityManager.TAG , "forceConnectivityScan" ) ; startConnectivityScan ( com.android.server.wifi.WifiConnectivityManager.SCAN_IMMEDIATELY ) ; }

Target:
public void forceConnectivityScan ( ) { localLog ( "forceConnectivityScan" ) ; startConnectivityScan ( com.android.server.wifi.WifiConnectivityManager.SCAN_IMMEDIATELY ) ; }
Source:
public void visitProgramMethod ( proguard.classfile.editor.ProgramClass programClass , proguard.classfile.editor.ProgramMethod programMethod ) { if ( ( ( programMethod.getAccessFlags ( ) ) & ( ClassConstants.INTERNAL_ACC_BRIDGE ) ) != 0 ) { programMethod.attributesAccept ( programClass , this ) ; } }

Target:
public void visitProgramMethod ( proguard.classfile.editor.ProgramClass programClass , proguard.classfile.editor.ProgramMethod programMethod ) { if ( ( ( programMethod.getAccessFlags ( ) ) & ( ClassConstants.ACC_BRIDGE ) ) != 0 ) { programMethod.attributesAccept ( programClass , this ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testThrowException ( ) ; Main.testDelegation ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testThrowException ( ) ; Main.testDropArguments ( ) ; Main.testCatchException ( ) ; Main.testGuardWithTest ( ) ; }
Source:
public void test_with_longTemporalField_microOfDay ( ) { for ( long i : testPoints ( 86400000000L ) ) { java.time.LocalTime test = TEST_12_30_40_987654321.with ( java.time.temporal.ChronoField.MICRO_OF_DAY , i ) ; org.testng.Assert.assertEquals ( test , java.time.LocalTime.ofNanoOfDay ( ( i * 1000 ) ) ) ; } }

Target:
public void test_with_longTemporalField_microOfDay ( ) { for ( long i : testPoints ( 86400000000L ) ) { java.time.LocalTime test = tck.java.time.TCKLocalTime.TEST_12_30_40_987654321.with ( java.time.temporal.ChronoField.MICRO_OF_DAY , i ) ; org.testng.Assert.assertEquals ( test , java.time.LocalTime.ofNanoOfDay ( ( i * 1000 ) ) ) ; } }
Source:
public com.android.sched.vfs.VPath getPathFromRoot ( ) { return file.getPathFromRoot ( ) ; }

Target:
public com.android.sched.vfs.VPath getPath ( ) { return file.getPath ( ) ; }
Source:
public void callSessionHandoverFailed ( int srcAccessTech , int targetAccessTech , com.android.ims.ImsReasonInfo reasonInfo ) throws android.os.RemoteException { mListener.callSessionHandoverFailed ( srcAccessTech , targetAccessTech , reasonInfo ) ; }

Target:
public void callSessionHandoverFailed ( int srcAccessTech , int targetAccessTech , android.telephony.ims.ImsReasonInfo reasonInfo ) { try { mListener.callSessionHandoverFailed ( srcAccessTech , targetAccessTech , reasonInfo ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void testConstructor_JUnit3Test ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( ) ; runner.run ( ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.JUnit3Test.class . getName ( ) ) ) + "#testMethodName\"," ) + "\"runner\":\"" ) + ( vogar.target.junit.JUnitRunner.class . getName ( ) ) ) + "\"}\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.JUnit3Test.class . getName ( ) ) ) + "#testOtherName\"," ) + "\"runner\":\"" ) + ( vogar.target.junit.JUnitRunner.class . getName ( ) ) ) + "\"}\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , ios.contents ( Stream.OUT ) ) ; }

Target:
public void testConstructor_JUnit3Test_RunnerType_JUNIT ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( ) ; runner.run ( ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.JUnit3Test.class . getName ( ) ) ) + "#testMethodName\"}\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.JUnit3Test.class . getName ( ) ) ) + "#testOtherName\"}\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , ios.contents ( Stream.OUT ) ) ; }
Source:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { com.android.bluetooth.hid.HidService service = getService ( ) ; if ( service == null ) { return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( 0 ) ; } return service.getDevicesMatchingConnectionStates ( states ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { com.android.bluetooth.hid.HidHostService service = getService ( ) ; if ( service == null ) { return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( 0 ) ; } return service.getDevicesMatchingConnectionStates ( states ) ; }
Source:
public void onServiceDisconnected ( android.content.ComponentName className ) { android.util.Log.d ( android.bluetooth.BluetoothInputHost.TAG , "onServiceDisconnected()" ) ; mService = null ; if ( ( mServiceListener ) != null ) { mServiceListener.onServiceDisconnected ( BluetoothProfile.INPUT_HOST ) ; } }

Target:
public void onServiceDisconnected ( android.content.ComponentName className ) { android.util.Log.d ( android.bluetooth.BluetoothHidDevice.TAG , "onServiceDisconnected()" ) ; mService = null ; if ( ( mServiceListener ) != null ) { mServiceListener.onServiceDisconnected ( BluetoothProfile.HID_DEVICE ) ; } }
Source:
boolean expectAux ( java.lang.String tag , java.lang.String summary , boolean pass , java.lang.String expectedResult ) { return super . expectAux ( tag , android.icu.dev.test.translit.JamoTest.jamoToName ( summary ) , pass , android.icu.dev.test.translit.JamoTest.jamoToName ( expectedResult ) ) ; }

Target:
boolean expectAux ( java.lang.String tag , java.lang.String summary , boolean pass , java.lang.String expectedResult ) { return android.icu.dev.test.translit.TransliteratorTest.expectAux ( tag , android.icu.dev.test.translit.JamoTest.jamoToName ( summary ) , pass , android.icu.dev.test.translit.JamoTest.jamoToName ( expectedResult ) ) ; }
Source:
public void validatePolicyWithoutPolicyUpdate ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; policy.policyUpdate = null ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }

Target:
public void validatePolicyWithInvalidPolicyUpdate ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; policy.setPolicyUpdate ( new android.net.wifi.hotspot2.pps.UpdateParameter ( ) ) ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }
Source:
private void addAuthAndCryptToIpSecConfig ( android.net.IpSecConfig config ) throws java.lang.Exception { for ( int direction : com.android.server.IpSecServiceParameterizedTest.DIRECTIONS ) { config.setEncryption ( direction , com.android.server.IpSecServiceParameterizedTest.CRYPT_ALGO ) ; config.setAuthentication ( direction , com.android.server.IpSecServiceParameterizedTest.AUTH_ALGO ) ; } }

Target:
private void addDefaultSpisAndRemoteAddrToIpSecConfig ( android.net.IpSecConfig config ) throws java.lang.Exception { config.setSpiResourceId ( getNewSpiResourceId ( mDestinationAddr , com.android.server.IpSecServiceParameterizedTest.TEST_SPI ) ) ; config.setDestinationAddress ( mDestinationAddr ) ; }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > notNullValue ( ) { return org.hamcrest.core.IsNull.notNullValue ( ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > any ( java.lang.Class < T > type ) { return org.hamcrest.core.IsInstanceOf.any ( type ) ; }
Source:
public void setNetworkCountryIsoAvailable ( boolean gotCountryCode ) { mGotCountryCode = gotCountryCode ; }

Target:
public void handleNetworkUnavailable ( ) { if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , "handleNetworkUnavailable" ) ; } mGotCountryCode = false ; mNitzTimeZoneDetectionSuccessful = false ; }
Source:
public static native void EVP_VerifyUpdate ( org.conscrypt.NativeRef.EVP_MD_CTX ctx , byte [ ] buffer , int offset , int length ) ;

Target:
public static native boolean EVP_DigestVerifyFinal ( org.conscrypt.NativeRef.EVP_MD_CTX ctx , byte [ ] signature , int offset , int length ) ;
Source:
public final void testCollectIds2 ( ) { com.android.ide.common.api.IDragElement [ ] elements = com.android.ide.common.layout.TestDragElement.create ( com.android.ide.common.layout.TestDragElement.create ( "android.widget.Button" , new com.android.ide.common.api.Rect ( 0 , 0 , 100 , 80 ) ) . set ( "myuri" , BaseView.ATTR_ID , "@+id/Button01" ) ) ; java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > idMap = new java.util.HashMap < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > ( ) ; java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > ids = new com.android.ide.common.layout.BaseLayout ( ) . collectIds ( idMap , elements ) ; assertEquals ( 0 , ids.size ( ) ) ; }

Target:
public final void testCollectIds2 ( ) { com.android.ide.common.api.IDragElement [ ] elements = com.android.ide.common.layout.TestDragElement.create ( com.android.ide.common.layout.TestDragElement.create ( "android.widget.Button" , new com.android.ide.common.api.Rect ( 0 , 0 , 100 , 80 ) ) . set ( "myuri" , com.android.ide.common.layout.LayoutConstants.ATTR_ID , "@+id/Button01" ) ) ; java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > idMap = new java.util.HashMap < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > ( ) ; java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > ids = new com.android.ide.common.layout.BaseLayout ( ) . collectIds ( idMap , elements ) ; assertEquals ( 0 , ids.size ( ) ) ; }
Source:
public com.android.test.common.fixture.GradleTestProject.Builder fromSample ( @ com.android.annotations.NonNull java.lang.String project ) { projectDir = new java.io.File ( com.android.test.common.fixture.GradleTestProject.Builder.SAMPLE_PROJECT_DIR , project ) ; return this ; }

Target:
public com.android.build.gradle.integration.common.fixture.GradleTestProject.Builder fromSample ( @ com.android.annotations.NonNull java.lang.String project ) { projectDir = new java.io.File ( com.android.build.gradle.integration.common.fixture.GradleTestProject.Builder.SAMPLE_PROJECT_DIR , project ) ; return this ; }
Source:
public boolean getIccLockEnabled ( ) ;

Target:
public boolean getIccPin2Blocked ( ) { return false ; }
Source:
protected java.lang.Void doInBackground ( java.lang.Void ... params ) { getSharedPreferences ( com.android.bluetooth.btservice.AdapterService.PHONEBOOK_ACCESS_PERMISSION_PREFERENCE_FILE , Context.MODE_PRIVATE ) ; getSharedPreferences ( com.android.bluetooth.btservice.AdapterService.MESSAGE_ACCESS_PERMISSION_PREFERENCE_FILE , Context.MODE_PRIVATE ) ; getSharedPreferences ( com.android.bluetooth.btservice.AdapterService.SIM_ACCESS_PERMISSION_PREFERENCE_FILE , Context.MODE_PRIVATE ) ; return null ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { synchronized ( this ) { mPendingAlarm = null ; alarmFiredNative ( ) ; } }
Source:
public void mouseDown ( org.eclipse.swt.events.MouseEvent e ) { }

Target:
public void mouseUp ( org.eclipse.swt.events.MouseEvent e ) { }
Source:
public static void computeAbs ( android.renderscript.cts.TestAbs.ArgumentsCharUchar args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( byte ) ( java.lang.StrictMath.abs ( args.inValue ) ) ) ; }

Target:
public static void computeAbs ( android.renderscript.cts.TestAbs.ArgumentsCharUchar args ) { args.out = ( ( byte ) ( java.lang.Math.abs ( args.inValue ) ) ) ; }
Source:
private java.security.spec.ECPoint getPublicKey ( ) { final org.conscrypt.OpenSSLECPointContext pubKey = new org.conscrypt.OpenSSLECPointContext ( group , org.conscrypt.NativeCrypto.EC_KEY_get_public_key ( key.getNativeRef ( ) ) ) ; return pubKey.getECPoint ( ) ; }

Target:
private java.security.spec.ECPoint getPublicKey ( ) { final org.conscrypt.OpenSSLECPointContext pubKey = new org.conscrypt.OpenSSLECPointContext ( group , new org.conscrypt.NativeRef.EC_POINT ( org.conscrypt.NativeCrypto.EC_KEY_get_public_key ( key.getNativeRef ( ) ) ) ) ; return pubKey.getECPoint ( ) ; }
Source:
public android.content.Intent getIntent ( android.content.Context context ) { return new com.android.dialer.callintent.CallIntentBuilder ( number , CallInitiationType.Type.CALL_LOG ) . setPhoneAccountHandle ( accountHandle ) . build ( ) ; }

Target:
public android.content.Intent getIntent ( android.content.Context context ) { return com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , CallInitiationType.Type.CALL_LOG ) . setPhoneAccountHandle ( accountHandle ) ) ; }
Source:
public boolean isActiveDevice ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.hearingaid.HearingAidService service = getService ( ) ; if ( service == null ) { return false ; } return service.isActiveDevice ( device ) ; }

Target:
public boolean setActiveDevice ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.hearingaid.HearingAidService service = getService ( ) ; if ( service == null ) { return false ; } return service.setActiveDevice ( device ) ; }
Source:
private org.eclipse.core.resources.IFile getDependencyFileFor ( org.eclipse.core.resources.IFile sourceFile ) { org.eclipse.core.resources.IFolder depFolder = getDependencyFolder ( sourceFile ) ; return depFolder.getFile ( sourceFile.getName ( ) . replaceAll ( AndroidConstants.RE_RS_EXT , AndroidConstants.DOT_DEP ) ) ; }

Target:
private org.eclipse.core.resources.IFile getDependencyFileFor ( org.eclipse.core.resources.IFile sourceFile ) { org.eclipse.core.resources.IFolder depFolder = getDependencyFolder ( sourceFile ) ; return depFolder.getFile ( sourceFile.getName ( ) . replaceAll ( AdtConstants.RE_RS_EXT , AdtConstants.DOT_DEP ) ) ; }
Source:
public void copy1DRangeFrom ( int off , int count , float [ ] d ) { validateIsFloat32 ( ) ; copy1DRangeFromUnchecked ( off , count , d ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , java.lang.Object array ) { copy1DRangeFromUnchecked ( off , count , array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public void imageLoaded ( ) { synchronized ( this ) { loadImage ( ) ; crosshairLocation = model.getCrosshairLocation ( ) ; selectedNode = model.getSelected ( ) ; } redraw ( ) ; }

Target:
public void imageLoaded ( ) { synchronized ( this ) { loadImage ( ) ; crosshairLocation = model.getCrosshairLocation ( ) ; selectedNode = model.getSelected ( ) ; } doRedraw ( ) ; }