auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.android.ims.internal.IImsCallSession createCallSession ( int sessionId , com.android.ims.ImsCallProfile profile , com.android.ims.internal.IImsCallSessionListener listener ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . createCallSession ( mSlotId , mSupportedFeature , sessionId , profile , listener ) ; } }

Target:
public com.android.ims.ImsCallProfile createCallProfile ( int sessionId , int callServiceType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . createCallProfile ( mSlotId , mSupportedFeature , sessionId , callServiceType , callType ) ; } }
Source:
private boolean record ( com.android.server.pm.dex.PackageDexUsageTests.TestData testData ) { return mPackageDexUsage.record ( testData.mPackageName , testData.mDexFile , testData.mOwnerUserId , testData.mLoaderIsa , testData.mUsedByOtherApps , testData.mPrimaryOrSplit ) ; }

Target:
private boolean record ( com.android.server.pm.dex.PackageDexUsageTests.TestData testData ) { return mPackageDexUsage.record ( testData.mPackageName , testData.mDexFile , testData.mOwnerUserId , testData.mLoaderIsa , testData.mUsedByOtherApps , testData.mPrimaryOrSplit , testData.mUsedBy ) ; }
Source:
public void run ( ) { toastConvertInfo ( mms ) ; showSmsOrMmsSendButton ( mms ) ; if ( mms ) { mTextCounter.setVisibility ( View.GONE ) ; } }

Target:
public void onFocusChange ( android.view.View v , boolean hasFocus ) { if ( ! hasFocus ) { com.android.mms.ui.RecipientsEditor editor = ( ( com.android.mms.ui.RecipientsEditor ) ( v ) ) ; com.android.mms.data.ContactList contacts = editor.constructContactsFromInput ( false ) ; updateTitle ( contacts ) ; } }
Source:
public org.bouncycastle.math.ec.PreCompInfo getPreCompInfo ( org.bouncycastle.math.ec.ECPoint p ) { checkPoint ( p ) ; return p.preCompInfo ; }

Target:
public org.bouncycastle.math.ec.PreCompInfo getPreCompInfo ( org.bouncycastle.math.ec.ECPoint point , java.lang.String name ) { checkPoint ( point ) ; synchronized ( point ) { java.util.Hashtable table = point.preCompTable ; return table == null ? null : ( ( org.bouncycastle.math.ec.PreCompInfo ) ( table.get ( name ) ) ) ; } }
Source:
private native void initNative ( ) ;

Target:
private native void initNative ( android.bluetooth.BluetoothCodecConfig [ ] codecConfigPriorites ) ;
Source:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsCharCharCharChar args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( byte ) ( java.lang.StrictMath.min ( args.inMaxValue , java.lang.StrictMath.max ( args.inValue , args.inMinValue ) ) ) ) ; }

Target:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsCharCharCharChar args ) { args.out = android.renderscript.cts.CoreMathVerifier.minI8 ( args.inMaxValue , android.renderscript.cts.CoreMathVerifier.maxI8 ( args.inValue , args.inMinValue ) ) ; }
Source:
public static native java.lang.String getISO3LanguageNative ( java.lang.String locale ) ;

Target:
private static native java.lang.String getISO3LanguageNative ( java.lang.String languageTag ) ;
Source:
public void run ( ) { mAllocationViewer.refresh ( ) ; updateAllocationStackCall ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent arg0 ) { setSortColumn ( threadCol , SortMode.THREAD ) ; }
Source:
public void addMatrix ( android.support.v8.renderscript.Matrix4f v ) { mN.addMatrix ( new android.support.v8.renderscript.Matrix4f ( v.getArray ( ) ) ) ; }

Target:
public void addMatrix ( android.support.v8.renderscript.Matrix4f v ) { mN.addMatrix ( new android.support.v8.renderscript.Matrix4f ( v.getArray ( ) ) ) ; mPos += ( 4 * 4 ) * 4 ; }
Source:
public synchronized double getMin ( ) { ensureSorted ( ) ; return samples [ 0 ] ; }

Target:
public synchronized double getMin ( ) { return min ; }
Source:
public void testForName_IllegalName ( ) { try { java.nio.charset.Charset.forName ( " ///#$$" ) ; fail ( "Should throw IllegalCharsetNameException!" ) ; } catch ( java.nio.charset.IllegalCharsetNameException e ) { } }

Target:
public void test_Shift_JIS_replacement_character ( ) throws java.lang.Exception { assertDecodes ( java.nio.charset.Charset.forName ( "Shift_JIS" ) , "�" , 252 ) ; assertEncodes ( java.nio.charset.Charset.forName ( "Shift_JIS" ) , "�" , 252 ) ; }
Source:
public void setParseNoExponent ( java.lang.String value ) { parseNoExponent = java.lang.Integer.valueOf ( value ) ; }

Target:
public void setDecimalPatternMatchRequired ( java.lang.String value ) { decimalPatternMatchRequired = java.lang.Integer.valueOf ( value ) ; }
Source:
boolean setAttribute ( java.lang.String attributeName , java.lang.String value ) ;

Target:
boolean setAttribute ( java.lang.String uri , java.lang.String localName , java.lang.String value ) ;
Source:
public boolean canBePolymorphic ( ) { return ( ! ( isStatic ( ) ) ) && ( ! ( isPrivate ( ) ) ) ; }

Target:
public boolean canBeVirtual ( ) { return ( ! ( isStatic ( ) ) ) && ( ! ( isPrivate ( ) ) ) ; }
Source:
public void scheduleActivityConfigurationChanged ( android.os.IBinder token ) { queueOrSendMessage ( android.app.ActivityThread.H.ACTIVITY_CONFIGURATION_CHANGED , token ) ; }

Target:
public void scheduleActivityConfigurationChanged ( android.os.IBinder token ) { sendMessage ( android.app.ActivityThread.H.ACTIVITY_CONFIGURATION_CHANGED , token ) ; }
Source:
static int nativeGetPixel ( long nativeBitmap , int x , int y ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return 0 ; } return delegate.mImage.getRGB ( x , y ) ; }

Target:
static int nativeGetPixel ( long nativeBitmap , int x , int y , boolean isPremultiplied ) { android.graphics.Bitmap_Delegate delegate = android.graphics.Bitmap_Delegate.sManager.getDelegate ( nativeBitmap ) ; if ( delegate == null ) { return 0 ; } return delegate.mImage.getRGB ( x , y ) ; }
Source:
public void test_getStreamVolumeLeak ( ) throws java.lang.Exception { int volume = android.security.cts.AudioPolicyBinderTest.native_test_getStreamVolumeLeak ( ) ; assertTrue ( java.lang.String.format ( "Leaked volume 0x%08X" , volume ) , ( volume == 0 ) ) ; }

Target:
public void test_startAudioSource ( ) throws java.lang.Exception { assertTrue ( android.security.cts.AudioPolicyBinderTest.native_test_startAudioSource ( ) ) ; }
Source:
public void setTimeAndTimeZoneFromNitz ( com.android.internal.telephony.NitzData newNitzData , long nitzReceiveTime ) { setTimeZoneFromNitz ( newNitzData , nitzReceiveTime ) ; com.android.internal.telephony.util.TimeStampedValue < com.android.internal.telephony.NitzData > nitzSignal = new com.android.internal.telephony.util.TimeStampedValue ( newNitzData , nitzReceiveTime ) ; setTimeFromNitz ( nitzSignal ) ; }

Target:
public void handleNitzReceived ( com.android.internal.telephony.util.TimeStampedValue < com.android.internal.telephony.NitzData > nitzSignal ) { handleTimeZoneFromNitz ( nitzSignal ) ; handleTimeFromNitz ( nitzSignal ) ; }
Source:
public void testConstructor_EndBeforeStart_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , android.security.KeyPairGeneratorSpecTest.TEST_DN_1 , android.security.KeyPairGeneratorSpecTest.SERIAL_1 , android.security.KeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , android.security.KeyPairGeneratorSpecTest.NOW , 0 ) ; fail ( "Should throw IllegalArgumentException when end is before start" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testConstructor_NullEndDate_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , "RSA" , 1024 , null , android.security.KeyPairGeneratorSpecTest.TEST_DN_1 , android.security.KeyPairGeneratorSpecTest.SERIAL_1 , android.security.KeyPairGeneratorSpecTest.NOW , null , 0 ) ; fail ( "Should throw IllegalArgumentException when keystoreAlias is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }
Source:
public java.lang.String telephonyGetVoiceNetworkType ( ) { return telephonyGetVoiceNetworkTypeForSubscription ( android.telephony.SubscriptionManager.getDefaultVoiceSubId ( ) ) ; }

Target:
public java.lang.String telephonyGetNetworkType ( ) { com.googlecode.android_scripting.Log.d ( ( "sl4a:getNetworkType() is deprecated!" + ( "Please use getVoiceNetworkType()" + " or getDataNetworkTpe()" ) ) ) ; return telephonyGetNetworkTypeForSubscription ( android.telephony.SubscriptionManager.getDefaultSubscriptionId ( ) ) ; }
Source:
protected java.util.Map.Entry < K , V > get ( int index ) { return com.google.common.collect.Maps.immutableEntry ( getKey ( index ) , getValue ( index ) ) ; }

Target:
public com.google.common.collect.Table.Cell < R , C , V > get ( int index ) { return getCell ( index ) ; }
Source:
public abstract java.lang.Iterable < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( ) ;

Target:
public abstract java.lang.Iterable < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getParameterAnnotations ( int index ) ;
Source:
public com.android.sdklib.internal.avd.AvdManager.AvdInfo [ ] getAllAvds ( ) { synchronized ( mAllAvdList ) { return mAllAvdList.toArray ( new com.android.sdklib.internal.avd.AvdManager.AvdInfo [ mAllAvdList.size ( ) ] ) ; } }

Target:
public com.android.sdklib.internal.avd.AvdInfo [ ] getAllAvds ( ) { synchronized ( mAllAvdList ) { return mAllAvdList.toArray ( new com.android.sdklib.internal.avd.AvdInfo [ mAllAvdList.size ( ) ] ) ; } }
Source:
public void test_EC_KEY_get_public_key_null_key_Failure ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.EC_KEY_get_public_key ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void get_RSA_public_params_NullArgument ( ) throws java.lang.Exception { org.conscrypt.NativeCrypto.get_RSA_public_params ( null ) ; }
Source:
public < A extends java.lang.annotation.Annotation > A getAnnotation ( java.lang.Class < A > annotationType ) { if ( annotationType == null ) { throw new java.lang.NullPointerException ( "annotationType == null" ) ; } return getAnnotationNative ( annotationType ) ; }

Target:
public java.lang.Class < ? > [ ] getExceptionTypes ( ) { if ( getDeclaringClass ( ) . isProxy ( ) ) { return getExceptionTypesNative ( ) ; } else { return libcore.reflect.AnnotationAccess.getExceptions ( this ) ; } }
Source:
public java.util.Map.Entry < K , V > higherEntry ( K key ) { return getNearEntry ( key , m.GT ) ; }

Target:
public java.util.Map.Entry < K , V > higherEntry ( K key ) { return getNearEntry ( key , java.util.concurrent.ConcurrentSkipListMap.GT ) ; }
Source:
public native byte getByte ( java.lang.Object obj , long offset ) ;

Target:
public native boolean getBoolean ( java.lang.Object obj , long offset ) ;
Source:
private void riljLogv ( java.lang.String msg ) { android.telephony.Rlog.v ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , msg ) ; }

Target:
private void riljLog ( java.lang.String msg ) { android.telephony.Rlog.d ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , ( msg + ( ( mInstanceId ) != null ? ( " [SUB" + ( mInstanceId ) ) + "]" : "" ) ) ) ; }
Source:
public void loadLibrary ( java.lang.String libName ) { loadLibrary ( libName , dalvik.system.VMStack.getCallingClassLoader ( ) ) ; }

Target:
public void loadLibrary ( java.lang.String nickname ) { loadLibrary ( nickname , dalvik.system.VMStack.getCallingClassLoader ( ) ) ; }
Source:
void transform ( org.eclipse.jdt.core.dom.CompilationUnit cu , org.eclipse.jdt.core.dom.rewrite.ASTRewrite rewrite ) ;

Target:
void process ( com.google.currysrc.api.process.Context context , org.eclipse.jdt.core.dom.CompilationUnit cu ) ;
Source:
public void test_SingletonMap_computeIfAbsent ( ) { try { java.util.Collections.singletonMap ( 1 , 11.0 ) . computeIfAbsent ( 1 , ( k ) -> 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }

Target:
public void test_EmptyMap_merge ( ) { try { java.util.Collections.emptyMap ( ) . merge ( 1 , 5.0 , ( k , v ) -> 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }
Source:
public void setAllVisitors ( com.android.jack.dx.io.CodeReader.Visitor visitor ) { fallbackVisitor = visitor ; stringVisitor = visitor ; typeVisitor = visitor ; fieldVisitor = visitor ; methodVisitor = visitor ; }

Target:
public void setAllVisitors ( com.android.jack.dx.io.CodeReader.Visitor visitor ) { fallbackVisitor = visitor ; stringVisitor = visitor ; typeVisitor = visitor ; fieldVisitor = visitor ; methodVisitor = visitor ; dualConstantVisitor = visitor ; }
Source:
public static byte $noinline$shortToCharToByte ( short value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( byte ) ( ( char ) ( value ) ) ) ; }

Target:
public static int $noinline$intToDoubleToInt ( int value ) { return ( ( int ) ( ( double ) ( value ) ) ) ; }
Source:
private void stopScan ( ) { mConditionStopped.open ( ) ; }

Target:
private void stopScan ( ) { if ( ( mLatch ) != null ) { mLatch.countDown ( ) ; } mConditionStopped.open ( ) ; }
Source:
public static native int nativeForkAndSpecialize ( int uid , int gid , int [ ] gids , int debugFlags , int [ ] [ ] rlimits ) ;

Target:
public static native int nativeForkAndSpecialize ( int uid , int gid , int [ ] gids , int debugFlags , int [ ] [ ] rlimits , java.lang.String seInfo , java.lang.String niceName ) ;
Source:
public com.intellij.openapi.vfs.VirtualFile getRootDir ( ) { return myRootDir ; }

Target:
public java.io.File getRootDirPath ( ) { if ( ( myRootDir ) == null ) { com.intellij.openapi.vfs.VirtualFile found = com.intellij.openapi.vfs.VfsUtil.findFileByIoFile ( myRootDirPath , true ) ; assert found != null ; myRootDir = found ; } return myRootDirPath ; }
Source:
public org.objectweb.asm.AnnotationVisitor visitArray ( java.lang.String name ) { return new com.android.build.gradle.tasks.ResourceUsageAnalyzer.AnnotationUsageVisitor ( ) ; }

Target:
public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String name , java.lang.String desc ) { return new com.android.build.gradle.tasks.ResourceUsageAnalyzer.UsageVisitor.AnnotationUsageVisitor ( ) ; }
Source:
protected com.android.builder.resources.ResourceFile createFileAndItems ( java.io.File file ) { com.android.builder.resources.ResourceSet.FolderData folderData = com.android.builder.resources.ResourceSet.getFolderData ( file.getParentFile ( ) ) ; return createResourceFile ( file , folderData ) ; }

Target:
protected com.android.builder.resources.ResourceFile createFileAndItems ( java.io.File file , com.android.utils.ILogger logger ) throws java.io.IOException { com.android.builder.resources.ResourceSet.FolderData folderData = com.android.builder.resources.ResourceSet.getFolderData ( file.getParentFile ( ) ) ; return createResourceFile ( file , folderData , logger ) ; }
Source:
public void onDescriptorRead ( java.lang.String address , int status , int srvcType , int srvcInstId , android.os.ParcelUuid srvcUuid , int charInstId , android.os.ParcelUuid charUuid , int descrInstId , android.os.ParcelUuid descrUuid , byte [ ] value ) throws android.os.RemoteException { }

Target:
public void onNotify ( java.lang.String address , int handle , byte [ ] value ) throws android.os.RemoteException { }
Source:
public boolean enableNetworkWithoutConnect ( int netId ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( ( "enableNetworkWithoutConnect nid=" + ( java.lang.Integer.toString ( netId ) ) ) ) ; return doBooleanCommand ( ( ( ( "ENABLE_NETWORK " + netId ) + " " ) + "no-connect" ) ) ; }

Target:
public boolean p2pStopFind ( ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.stopFind ( ) ; } else { return doBooleanCommand ( "P2P_STOP_FIND" ) ; } }
Source:
public void createNativeBuildTypes ( org.gradle.nativeplatform.BuildTypeContainer nativeBuildTypes , @ org.gradle.model.Path ( value = "android.buildTypes" ) org.gradle.model.ModelMap < com.android.builder.model.BuildType > androidBuildTypes ) { for ( com.android.builder.model.BuildType buildType : androidBuildTypes.values ( ) ) { nativeBuildTypes.maybeCreate ( buildType.getName ( ) ) ; } }

Target:
public void createNativeBuildTypes ( org.gradle.nativeplatform.BuildTypeContainer nativeBuildTypes , @ org.gradle.model.Path ( value = "android.buildTypes" ) org.gradle.model.ModelMap < com.android.build.gradle.managed.BuildType > androidBuildTypes ) { for ( com.android.build.gradle.managed.BuildType buildType : androidBuildTypes.values ( ) ) { nativeBuildTypes.maybeCreate ( buildType.getName ( ) ) ; } }
Source:
public void exit ( ) { turnOffUpstreamMobileConnection ( ) ; mUpstreamNetworkMonitor.stop ( ) ; stopListeningForSimChanges ( ) ; notifyTetheredOfNewUpstreamIface ( null ) ; handleNewUpstreamNetworkState ( null ) ; }

Target:
public void enter ( ) { turnOnMasterTetherSettings ( ) ; simChange.startListening ( ) ; mUpstreamNetworkMonitor.start ( ) ; mTryCell = true ; chooseUpstreamType ( mTryCell ) ; mTryCell = ! ( mTryCell ) ; }
Source:
private void inlinedForNull ( java.lang.Iterable it ) { if ( it != null ) { it.iterator ( ) ; } }

Target:
private void inlinedForNull ( java.lang.Iterable it ) { if ( it != null ) { if ( Main.doThrow ) { throw new java.lang.Error ( "" ) ; } } }
Source:
public void onAttachmentError ( final int error ) { runOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { handleAddAttachmentError ( error , R.string.type_picture ) ; onMessageSent ( ) ; } } ) ; }

Target:
public void onAttachmentChanged ( ) { runOnUiThread ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { drawBottomPanel ( ) ; updateSendButtonState ( ) ; drawTopPanel ( isSubjectEditorVisible ( ) ) ; } } ) ; }
Source:
public native short getShort ( long address ) ;

Target:
public native void freeMemory ( long address ) ;
Source:
, name = "_add" , returnType = int . class , argumentTypes = { int . class , int . class } ) private static int add ( int a , int b ) { throw new java.lang.UnsupportedOperationException ( "Should be invoking _add(a, b)" ) ; }

Target:
, name = "_add" , returnType = int . class , argumentTypes = { int . class , int . class } ) private static int add ( int a , int b ) { assertNotReached ( ) ; return - 1 ; }
Source:
public static double copySign ( double magnitude , double sign ) { return sun.misc.FpUtils.copySign ( magnitude , sign ) ; }

Target:
public static double copySign ( double magnitude , double sign ) { return java.lang.Math.copySign ( magnitude , ( java.lang.Double.isNaN ( sign ) ? 1.0 : sign ) ) ; }
Source:
public void testGetAvailableLocales ( ) { }

Target:
public void testGetAvailableLocales ( ) { assertTrue ( ( ( java.text.Collator.getAvailableLocales ( ) . length ) > 0 ) ) ; }
Source:
public final android.os.IBinder readStrongBinder ( ) { return android.os.Parcel.nativeReadStrongBinder ( mNativePtr ) ; }

Target:
public final java.lang.String readString ( ) { return android.os.Parcel.nativeReadString ( mNativePtr ) ; }
Source:
public java.lang.reflect.Type [ ] getGenericParameterTypes ( ) { initGenericTypes ( ) ; return org.apache.harmony.luni.lang.reflect.Types.getClonedTypeArray ( genericParameterTypes ) ; }

Target:
public java.lang.reflect.Type [ ] getGenericExceptionTypes ( ) { initGenericTypes ( ) ; return libcore.reflect.Types.getClonedTypeArray ( genericExceptionTypes ) ; }
Source:
public void run ( ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiNew = uiDoc.appendNewUiChild ( viewDesc ) ; uiNew.setAttributeValue ( "android" , XmlnsAttributeDescriptor.XMLNS_URI , SdkConstants.NS_RESOURCES , true ) ; com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.setDefaultLayoutAttributes ( uiNew , false ) ; uiNew.createXmlNode ( ) ; }

Target:
public void run ( ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiNew = uiDoc.appendNewUiChild ( viewDesc ) ; uiNew.setAttributeValue ( LayoutConstants.ANDROID_NS_PREFIX , XmlnsAttributeDescriptor.XMLNS_URI , SdkConstants.NS_RESOURCES , true ) ; com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.setDefaultLayoutAttributes ( uiNew , false ) ; uiNew.createXmlNode ( ) ; }
Source:
public com.android.sdklib.io.IAbstractFolder getParentFolder ( ) { java.lang.String p = this . getParent ( ) ; if ( p == null ) { return null ; } return new com.android.sdklib.io.FolderWrapper ( p ) ; }

Target:
public com.android.io.IAbstractFolder getParentFolder ( ) { java.lang.String p = this . getParent ( ) ; if ( p == null ) { return null ; } return new com.android.io.FolderWrapper ( p ) ; }
Source:
public static void computeAtan2 ( android.renderscript.cts.TestAtan2.ArgumentsFloatFloatFloat args ) { args.ulf = 6 ; args.ulfRelaxed = 128 ; args.out = ( ( float ) ( java.lang.StrictMath.atan2 ( args.inY , args.inX ) ) ) ; }

Target:
public static void computeAtan2 ( android.renderscript.cts.TestAtan2.ArgumentsFloatFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.atan2 ( args.inY , args.inX ) , 6 , 128 ) ; }
Source:
private int getTimeComponent ( org.bouncycastle.asn1.DERInteger time ) { if ( time != null ) { return time.getValue ( ) . intValue ( ) ; } return 0 ; }

Target:
private int getTimeComponent ( org.bouncycastle.asn1.ASN1Integer time ) { if ( time != null ) { return time.getValue ( ) . intValue ( ) ; } return 0 ; }
Source:
public void onStartRtt ( @ android.annotation.NonNull android.telecom.Connection.RttTextStream rttTextStream ) { }

Target:
public void onStopRtt ( ) { }
Source:
private android.net.IpSecManager.SecurityParameterIndex ipSecAllocateSpi ( java.net.InetAddress inetAddr ) { try { return mIpSecManager.allocateSecurityParameterIndex ( inetAddr ) ; } catch ( android.net.IpSecManager.ResourceUnavailableException e ) { com.googlecode.android_scripting.Log.e ( ( "IpSec: Reserve SPI failure " + ( e.toString ( ) ) ) ) ; } return null ; }

Target:
private android.net.IpSecManager.SecurityParameterIndex allocateSpi ( java.net.InetAddress inetAddr ) { try { return mIpSecManager.allocateSecurityParameterIndex ( inetAddr ) ; } catch ( android.net.IpSecManager.ResourceUnavailableException e ) { com.googlecode.android_scripting.Log.e ( ( "IpSec: Reserve SPI failure " + ( e.toString ( ) ) ) ) ; } return null ; }
Source:
public com.android.layoutlib.api.SceneResult removeChild ( java.lang.Object childView , com.android.layoutlib.api.LayoutScene.IAnimationListener listener ) { return SceneStatus.NOT_IMPLEMENTED.createResult ( ) ; }

Target:
public com.android.ide.common.rendering.api.Result removeChild ( java.lang.Object childView , com.android.ide.common.rendering.api.IAnimationListener listener ) { return Status.NOT_IMPLEMENTED.createResult ( ) ; }
Source:
public static java.lang.String getPackageName ( ) { return android.webkit.WebViewZygote.sPackage.packageName ; }

Target:
public static java.lang.String getPackageName ( ) { synchronized ( android.webkit.WebViewZygote.sLock ) { return android.webkit.WebViewZygote.sPackage.packageName ; } }
Source:
public void callSessionMayHandover ( com.android.ims.internal.IImsCallSession i , int srcAccessTech , int targetAccessTech ) throws android.os.RemoteException { mNewListener.callSessionMayHandover ( srcAccessTech , targetAccessTech ) ; }

Target:
public void callSessionHandover ( com.android.ims.internal.IImsCallSession i , int srcAccessTech , int targetAccessTech , android.telephony.ims.ImsReasonInfo reasonInfo ) throws android.os.RemoteException { mNewListener.callSessionHandover ( srcAccessTech , targetAccessTech , reasonInfo ) ; }
Source:
public void test_SingletonList_replaceAll ( ) { try { java.util.Collections.singletonList ( 1 ) . replaceAll ( ( k ) -> 2 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }

Target:
public void test_SingletonMap_computeIfAbsent ( ) { try { java.util.Collections.singletonMap ( 1 , 11.0 ) . computeIfAbsent ( 1 , ( k ) -> 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }
Source:
public static boolean callsSuper ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.MethodDeclaration methodDeclaration , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method ) { com.android.tools.lint.checks.CallSuperDetector.SuperCallVisitor visitor = new com.android.tools.lint.checks.CallSuperDetector.SuperCallVisitor ( context , method ) ; methodDeclaration.accept ( visitor ) ; return visitor.mCallsSuper ; }

Target:
public static boolean callsSuper ( @ com.android.annotations.NonNull com.intellij.psi.PsiMethod method , @ com.android.annotations.NonNull com.intellij.psi.PsiMethod superMethod ) { com.android.tools.lint.checks.CallSuperDetector.SuperCallVisitor visitor = new com.android.tools.lint.checks.CallSuperDetector.SuperCallVisitor ( superMethod ) ; method.accept ( visitor ) ; return visitor.mCallsSuper ; }
Source:
public final com.android.tools.perflib.heap.ClassObj getClass ( long id ) { return mClassesById.get ( id ) ; }

Target:
public final com.android.tools.perflib.heap.Instance getInstance ( long id ) { return mInstances.get ( id ) ; }
Source:
public static double scalb ( double d , int scaleFactor ) { return sun.misc.FpUtils.scalb ( d , scaleFactor ) ; }

Target:
public static double ulp ( double d ) { return java.lang.Math.ulp ( d ) ; }
Source:
public boolean disableWBS ( ) { com.android.bluetooth.hfp.HeadsetService service = getService ( ) ; if ( service == null ) { return false ; } return service.disableWBS ( ) ; }

Target:
public android.bluetooth.BluetoothDevice getActiveDevice ( ) { com.android.bluetooth.hfp.HeadsetService service = getService ( ) ; if ( service == null ) { return null ; } return service.getActiveDevice ( ) ; }
Source:
native void rsnAllocationData3D ( int con , int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , byte [ ] d , int sizeBytes ) ;

Target:
native void rsnAllocationData3D ( long con , long dstAlloc , int dstXoff , int dstYoff , int dstZoff , int dstMip , int width , int height , int depth , long srcAlloc , int srcXoff , int srcYoff , int srcZoff , int srcMip ) ;
Source:
public boolean isFair ( ) { return lock.isFair ( ) ; }

Target:
public boolean isFair ( ) { return fair ; }
Source:
private void configureStageUninstallExpectation ( boolean success ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( success ) . when ( mMockTimeZoneDistroInstaller ) . stageUninstall ( ) ; }

Target:
private void configureStageUninstallExpectation ( int resultCode ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( resultCode ) . when ( mMockTimeZoneDistroInstaller ) . stageUninstall ( ) ; }
Source:
public static void startMethodTracing ( java.lang.String traceFileName , int bufferSize , int flags ) { dalvik.system.VMDebug.startMethodTracingFilename ( traceFileName , dalvik.system.VMDebug.checkBufferSize ( bufferSize ) , flags ) ; }

Target:
public static void startMethodTracing ( java.lang.String traceFileName , int bufferSize , int flags , boolean samplingEnabled , int intervalUs ) { dalvik.system.VMDebug.startMethodTracingFilename ( traceFileName , dalvik.system.VMDebug.checkBufferSize ( bufferSize ) , flags , samplingEnabled , intervalUs ) ; }
Source:
public void generateBuildConfig ( @ com.android.annotations.NonNull java.lang.String packageName , boolean debuggable , @ com.android.annotations.NonNull java.util.List < java.lang.String > javaLines , @ com.android.annotations.NonNull java.lang.String sourceOutputDir ) throws java.io.IOException { com.android.builder.internal.BuildConfigGenerator generator = new com.android.builder.internal.BuildConfigGenerator ( sourceOutputDir , packageName , debuggable ) ; generator.generate ( javaLines ) ; }

Target:
public com.android.builder.AndroidBuilder setBuildingLibrary ( boolean library ) { mLibrary = library ; return this ; }
Source:
void merge ( android.net.metrics.NetworkMetrics.Summary that ) { dnsLatencies.merge ( that.dnsLatencies ) ; dnsErrorRate.merge ( that.dnsErrorRate ) ; connectLatencies.merge ( that.connectLatencies ) ; connectErrorRate.merge ( that.connectErrorRate ) ; }

Target:
void merge ( android.net.metrics.NetworkMetrics.Summary that ) { dnsLatencies.merge ( that.dnsLatencies ) ; dnsErrorRate.merge ( that.dnsErrorRate ) ; connectLatencies.merge ( that.connectLatencies ) ; connectErrorRate.merge ( that.connectErrorRate ) ; tcpLossRate.merge ( that.tcpLossRate ) ; }
Source:
private java.io.File getDexFile ( @ javax.annotation.Nonnull java.lang.String typeName ) { return new java.io.File ( incrementalFolder , FileType.DEX.buildFileVPath ( new com.android.sched.vfs.VPath ( typeName , '/' ) ) . getPathAsString ( java.io.File.separatorChar ) ) ; }

Target:
public com.android.jack.library.OutputJackLibrary getOutputJackLibrary ( ) { return outputJackLibrary ; }
Source:
private void reportConnectionAttemptEnd ( int level2FailureCode , int connectivityFailureCode ) { mWifiMetrics.endConnectionEvent ( level2FailureCode , connectivityFailureCode ) ; switch ( level2FailureCode ) { case WifiMetrics.ConnectionEvent.FAILURE_NONE : case WifiMetrics.ConnectionEvent.FAILURE_REDUNDANT_CONNECTION_ATTEMPT : case WifiMetrics.ConnectionEvent.FAILURE_CONNECT_NETWORK_FAILED : break ; default : mWifiDiagnostics.reportConnectionFailure ( ) ; } }

Target:
private void reportConnectionAttemptEnd ( int level2FailureCode , int connectivityFailureCode ) { mWifiMetrics.endConnectionEvent ( level2FailureCode , connectivityFailureCode ) ; switch ( level2FailureCode ) { case WifiMetrics.ConnectionEvent.FAILURE_NONE : case WifiMetrics.ConnectionEvent.FAILURE_REDUNDANT_CONNECTION_ATTEMPT : case WifiMetrics.ConnectionEvent.FAILURE_CONNECT_NETWORK_FAILED : break ; default : mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; } }
Source:
public void execute ( org.gradle.api.Task task ) { proguardOut.mkdirs ( ) ; }

Target:
public void execute ( org.gradle.api.Task task ) { if ( ! ( proguardOut.mkdirs ( ) ) ) { throw new java.lang.RuntimeException ( ( "Cannot create proguard output folder " + proguardOut ) ) ; } }
Source:
public void testWarningOnViewSubclass ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/ClickableViewAccessibilityTest.java:82: Warning: test/pkg/ClickableViewAccessibilityTest$ViewSubclass#performClick should call super#performClick [ClickableViewAccessibility]\n" + ( ( " public boolean performClick() {\n" + " ~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/ClickableViewAccessibilityTest.java.txt=>src/test/pkg/ClickableViewAccessibilityTest.java" , "bytecode/ClickableViewAccessibilityTest.class.data=>bin/classes/test/pkg/ClickableViewAccessibilityTest.class" , ( "bytecode/ClickableViewAccessibilityTest$ValidView.class.data=>" + "bin/classes/test/pkg/ClickableViewAccessibilityTest$ValidView.class" ) , ( "bytecode/ClickableViewAccessibilityTest$ViewSubclass.class.data=>" + "bin/classes/test/pkg/ClickableViewAccessibilityTest$ViewSubclass.class" ) ) ) ; }

Target:
public void testWarningOnViewSubclass ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/ClickableViewAccessibilityTest.java:84: Warning: test/pkg/ClickableViewAccessibilityTest$ViewSubclass#performClick should call super#performClick [ClickableViewAccessibility]\n" + ( ( " public boolean performClick() {\n" + " ~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/ClickableViewAccessibilityTest.java.txt=>src/test/pkg/ClickableViewAccessibilityTest.java" , "bytecode/ClickableViewAccessibilityTest.class.data=>bin/classes/test/pkg/ClickableViewAccessibilityTest.class" , ( "bytecode/ClickableViewAccessibilityTest$ValidView.class.data=>" + "bin/classes/test/pkg/ClickableViewAccessibilityTest$ValidView.class" ) , ( "bytecode/ClickableViewAccessibilityTest$ViewSubclass.class.data=>" + "bin/classes/test/pkg/ClickableViewAccessibilityTest$ViewSubclass.class" ) ) ) ; }
Source:
public void dispose ( ) { mUpdaterData.removeListener ( this ) ; super . dispose ( ) ; }

Target:
public void dispose ( ) { mUpdaterData.removeListener ( this ) ; mDeviceManager.unregisterListener ( this ) ; super . dispose ( ) ; }
Source:
public android.net.wifi.aware.ConfigRequest build ( ) { if ( ( mClusterLow ) > ( mClusterHigh ) ) { throw new java.lang.IllegalArgumentException ( "Invalid argument combination - must have Cluster Low <= Cluster High" ) ; } return new android.net.wifi.aware.ConfigRequest ( mSupport5gBand , mMasterPreference , mClusterLow , mClusterHigh ) ; }

Target:
public android.net.wifi.aware.ConfigRequest build ( ) { if ( ( mClusterLow ) > ( mClusterHigh ) ) { throw new java.lang.IllegalArgumentException ( "Invalid argument combination - must have Cluster Low <= Cluster High" ) ; } return new android.net.wifi.aware.ConfigRequest ( mSupport5gBand , mMasterPreference , mClusterLow , mClusterHigh , mDiscoveryWindowInterval ) ; }
Source:
public void run ( ) { com.android.ide.eclipse.hierarchyviewer.HierarchyViewerPlugin.initDirector ( director ) ; }

Target:
public void bridgeChanged ( com.android.ddmlib.AndroidDebugBridge bridge ) { director.acquireBridge ( bridge ) ; }
Source:
public boolean getDataEnabled ( ) { return getDataEnabled ( getSubId ( ) ) ; }

Target:
public java.util.List < java.lang.String > getCarrierPackageNamesForIntent ( android.content.Intent intent ) { return getCarrierPackageNamesForIntentAndPhone ( intent , getPhoneId ( ) ) ; }
Source:
public void run ( ) { onSizeChanged ( w , h , ow , oh ) ; }

Target:
public java.lang.Boolean call ( ) { return dispatchKeyEvent ( event ) ; }
Source:
public void setIsConferenced ( java.lang.String callId , java.lang.String conferenceCallId ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = callId ; args.arg2 = conferenceCallId ; mHandler.obtainMessage ( android.telecom.ConnectionServiceAdapterServant.MSG_SET_IS_CONFERENCED , args ) . sendToTarget ( ) ; }

Target:
public void setIsConferenced ( java.lang.String callId , java.lang.String conferenceCallId , android.telecom.Logging.Session.Info sessionInfo ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = callId ; args.arg2 = conferenceCallId ; mHandler.obtainMessage ( android.telecom.ConnectionServiceAdapterServant.MSG_SET_IS_CONFERENCED , args ) . sendToTarget ( ) ; }
Source:
public com.google.common.collect.ImmutableList < java.lang.reflect.Field > getFieldsForClass ( java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > optionsClass ) { return allOptionsFields.get ( optionsClass ) ; }

Target:
public com.google.common.collect.ImmutableList < com.google.devtools.common.options.OptionDefinition > getOptionDefinitionsFromClass ( java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > optionsClass ) { return allOptionsFields.get ( optionsClass ) ; }
Source:
public static org.hamcrest.Matcher < java.lang.Object > instanceOf ( java.lang.Class < ? > type ) { return new org.hamcrest.core.IsInstanceOf ( type ) ; }

Target:
public static < T > org.hamcrest.Matcher < T > instanceOf ( java.lang.Class < ? > type ) { return ( ( org.hamcrest.Matcher < T > ) ( new org.hamcrest.core.IsInstanceOf ( type ) ) ) ; }
Source:
private void testInterruptReadableChannel ( final java.nio.channels.ReadableByteChannel channel ) throws java.lang.Exception { interruptMeLater ( ) ; try { channel.read ( java.nio.ByteBuffer.allocate ( libcore.java.io.InterruptedStreamTest.BUFFER_SIZE ) ) ; fail ( ) ; } catch ( java.nio.channels.ClosedByInterruptException expected ) { } }

Target:
private void testInterruptReader ( final java.io.PipedReader reader ) throws java.lang.Exception { java.lang.Thread thread = interruptMeLater ( ) ; try { reader.read ( ) ; fail ( ) ; } catch ( java.io.InterruptedIOException expected ) { } finally { libcore.java.io.InterruptedStreamTest.confirmInterrupted ( thread ) ; } }
Source:
public T next ( ) { return function.apply ( delegate.next ( ) ) ; }

Target:
T transform ( F from ) { return function.apply ( from ) ; }
Source:
public void onCreate ( ) { mAuthenticator = new com.google.android.car.pbapsink.Authenticator ( this ) ; }

Target:
public void onCreate ( ) { mAuthenticator = new com.android.bluetooth.pbapclient.Authenticator ( this ) ; }
Source:
public int size ( ) { return size ; }

Target:
public int getWordCount ( ) { return size ; }
Source:
public byte [ ] onAuthenticationResponse ( byte [ ] userName ) { return null ; }

Target:
public byte [ ] onAuthenticationResponse ( byte [ ] userName ) { android.util.Log.v ( com.android.bluetooth.pbapclient.BluetoothPbapObexAuthenticator.TAG , ( "onAuthenticationResponse: " + userName ) ) ; return null ; }
Source:
private static final java.lang.String whatToString ( int what ) { return android.net.ConnectivityManager.NoPreloadHolder.sMagicDecoderRing.get ( what , java.lang.Integer.toString ( what ) ) ; }

Target:
public int getMultipathPreference ( android.net.Network network ) { try { return mService.getMultipathPreference ( network ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
protected boolean hasPublicConstructor ( java.lang.Class < ? > testClass ) { try { junit.framework.TestSuite.getTestConstructor ( testClass ) ; } catch ( java.lang.NoSuchMethodException e ) { return false ; } return true ; }

Target:
protected boolean hasPublicConstructor ( java.lang.Class < ? > testClass ) { try { junit.framework.TestSuite.getTestConstructor ( ( ( java.lang.Class < ? extends junit.framework.TestCase > ) ( testClass ) ) ) ; } catch ( java.lang.NoSuchMethodException e ) { return false ; } return true ; }
Source:
public static native long EC_KEY_generate_key ( long groupRef ) ;

Target:
public static native long EC_KEY_generate_key ( org.conscrypt.NativeRef.EC_GROUP groupRef ) ;
Source:
public java.util.Collection < com.android.test.common.fixture.app.TestSourceFile > getAllSourceFiles ( ) { return sourceFiles.values ( ) ; }

Target:
public java.util.Collection < com.android.build.gradle.integration.common.fixture.app.TestSourceFile > getAllSourceFiles ( ) { return sourceFiles.values ( ) ; }
Source:
public static java.net.InetAddress [ ] getAllByNameOnNet ( java.lang.String host , int netId ) throws java.net.UnknownHostException { return java.net.InetAddress.getAllByNameImpl ( host , netId ) . clone ( ) ; }

Target:
public static java.net.InetAddress getByNameOnNet ( java.lang.String host , int netId ) throws java.net.UnknownHostException { return java.net.InetAddress.impl.lookupAllHostAddr ( host , netId ) [ 0 ] ; }
Source:
public com.android.sdklib.SdkManager getNewSdkManager ( @ com.android.annotations.NonNull com.android.utils.ILogger log ) { return com.android.sdklib.SdkManager.createManager ( getSdkLocation ( ) , log ) ; }

Target:
public com.android.sdklib.SdkManager getNewSdkManager ( @ com.android.annotations.NonNull com.android.utils.ILogger log ) { return com.android.sdklib.SdkManager.createManager ( getSdkOsLocation ( ) , log ) ; }
Source:
public final java.lang.String getDescription ( int columnIdx ) { return getHeader ( ) [ columnIdx ] ; }

Target:
public final java.lang.String getDescription ( int columnIdx ) { return getDataView ( ) . getDataNames ( ) [ columnIdx ] ; }
Source:
public void setChildren ( java.util.List < com.android.layoutlib.api.ViewInfo > children ) { mChildren = new java.util.ArrayList < com.android.layoutlib.api.ViewInfo > ( ) ; mChildren.addAll ( children ) ; mChildren = java.util.Collections.unmodifiableList ( mChildren ) ; }

Target:
public java.lang.String getClassName ( ) { return mName ; }
Source:
public void testTestStarted ( ) { java.lang.StringBuilder output = buildCommonResult ( ) ; addStartCode ( output ) ; injectTestString ( output.toString ( ) ) ; assertCommonAttributes ( ) ; }

Target:
public void testParse_empty ( ) { mMockListener.testRunStarted ( com.android.ddmlib.testrunner.InstrumentationResultParserTest.RUN_NAME , 0 ) ; mMockListener.testRunFailed ( InstrumentationResultParser.NO_TEST_RESULTS_MSG ) ; mMockListener.testRunEnded ( 0 , java.util.Collections.EMPTY_MAP ) ; injectAndVerifyTestString ( "" ) ; }
Source:
public void testToFromBytesRoundTrip ( ) throws java.lang.Exception { libcore.tzdata.update2.DistroVersion distroVersion = new libcore.tzdata.update2.DistroVersion ( 1 , 2 , libcore.tzdata.update2.DistroVersionTest.VALID_RULES_VERSION , 3 ) ; assertEquals ( distroVersion , libcore.tzdata.update2.DistroVersion.fromBytes ( distroVersion.toBytes ( ) ) ) ; }

Target:
public void testToFromBytesRoundTrip ( ) throws java.lang.Exception { libcore.tzdata.shared2.DistroVersion distroVersion = new libcore.tzdata.shared2.DistroVersion ( 1 , 2 , libcore.tzdata.shared2.DistroVersionTest.VALID_RULES_VERSION , 3 ) ; assertEquals ( distroVersion , libcore.tzdata.shared2.DistroVersion.fromBytes ( distroVersion.toBytes ( ) ) ) ; }
Source:
void expect ( java.lang.String rules , java.lang.String source , java.lang.String expectedResult , android.icu.text.Transliterator.Position pos ) { android.icu.text.Transliterator t = android.icu.text.Transliterator.createFromRules ( "<ID>" , rules , Transliterator.FORWARD ) ; expect ( t , source , expectedResult , pos ) ; }

Target:
static void expect ( java.lang.String rules , java.lang.String source , java.lang.String expectedResult , android.icu.text.Transliterator.Position pos ) { android.icu.text.Transliterator t = android.icu.text.Transliterator.createFromRules ( "<ID>" , rules , Transliterator.FORWARD ) ; android.icu.dev.test.translit.TransliteratorTest.expect ( t , source , expectedResult , pos ) ; }
Source:
private com.android.jack.test.dex.DexMethodDalvikCodeValidator dalvik ( @ javax.annotation.Nonnull java.lang.String test , @ javax.annotation.Nonnull java.lang.String expected ) { return new com.android.jack.test.dex.DexMethodDalvikCodeValidator ( resource ( test , expected ) ) ; }

Target:
private com.android.jack.test.dex.DexValidator < com.android.jack.test.dex.DexMethod > dalvik ( @ javax.annotation.Nonnull java.lang.String test , @ javax.annotation.Nonnull java.lang.String expected ) { return usingLegacyCompiler ( ) ? new com.android.jack.test.dex.DexNoOpValidator < com.android.jack.test.dex.DexMethod > ( ) : new com.android.jack.test.dex.DexMethodDalvikCodeValidator ( resource ( test , expected ) ) ; }
Source:
public java.lang.String getLegacyValue ( ) { if ( ( this ) != ( com.android.sdklib.resources.Density.NODPI ) ) { return java.lang.String.format ( "%1$ddpi" , getDpiValue ( ) ) ; } return "" ; }

Target:
public java.lang.String getLegacyValue ( ) { if ( ( this ) != ( com.android.resources.Density.NODPI ) ) { return java.lang.String.format ( "%1$ddpi" , getDpiValue ( ) ) ; } return "" ; }
Source:
public void setup ( ) { put ( "Cipher.FOO" , MockCipherSpi.MustInitWithAlgorithmParameterSpec_RejectsAll.class . getName ( ) ) ; put ( "Cipher.FOO SupportedKeyClasses" , libcore.javax.crypto.MockKey.class . getName ( ) ) ; }

Target:
public void setup ( ) { put ( "Cipher.FOO/FOO/FOO" , MockCipherSpi.AllKeyTypes.class . getName ( ) ) ; }
Source:
public void test4 ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/wrongparams5.xml:8: Warning: Invalid layout param \'layout_alignParentTop\' (included from within a LinearLayout in layout/wrongparams6.xml) [ObsoleteLayoutParam]\n" + ( ( ( ( ( ( " android:layout_alignParentTop=\"true\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/wrongparams5.xml:15: Warning: Invalid layout param \'layout_alignParentLeft\' (included from within a LinearLayout in layout/wrongparams6.xml) [ObsoleteLayoutParam]\n" ) + " android:layout_alignParentLeft=\"true\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 2 warnings\n" ) + "" ) ) , lintProject ( "res/layout/wrongparams5.xml" , "res/layout/wrongparams6.xml" ) ) ; }

Target:
public void test4 ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/wrongparams5.xml:8: Warning: Invalid layout param \'layout_alignParentTop\' (included from within a LinearLayout in layout/wrongparams6.xml) [ObsoleteLayoutParam]\n" + ( ( ( ( ( ( ( ( ( ( ( " android:layout_alignParentTop=\"true\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/wrongparams5.xml:15: Warning: Invalid layout param \'layout_alignParentLeft\' (included from within a LinearLayout in layout/wrongparams6.xml) [ObsoleteLayoutParam]\n" ) + " android:layout_alignParentLeft=\"true\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/wrongparams6.xml:16: Warning: Invalid layout param in a LinearLayout: layout_alignStart [ObsoleteLayoutParam]\n" ) + " android:layout_alignStart=\"@+id/include1\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/wrongparams6.xml:17: Warning: Invalid layout param in a LinearLayout: layout_toEndOf [ObsoleteLayoutParam]\n" ) + " android:layout_toEndOf=\"@+id/include1\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 4 warnings\n" ) ) , lintProject ( "res/layout/wrongparams5.xml" , "res/layout/wrongparams6.xml" ) ) ; }
Source:
public static < K , V > com.google.common.collect.ImmutableMap < K , V > of ( ) { return ( ( com.google.common.collect.ImmutableMap < K , V > ) ( EmptyImmutableMap.INSTANCE ) ) ; }

Target:
private static < K , V > com.google.common.collect.ImmutableMap < K , V > copyOfEnumMapUnsafe ( java.util.Map < ? extends K , ? extends V > map ) { return com.google.common.collect.ImmutableMap.copyOfEnumMap ( ( ( java.util.EnumMap ) ( map ) ) ) ; }
Source:
public synchronized void onPlaybackStateChanged ( android.media.session.PlaybackState state ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "onPlaybackStateChanged: state " + ( state.toString ( ) ) ) ) ; scheduleMediaUpdate ( ) ; }

Target:
public synchronized void onPlaybackStateChanged ( android.media.session.PlaybackState state ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "onPlaybackStateChanged: state " + ( state.toString ( ) ) ) ) ; } updateCurrentMediaState ( ) ; }
Source:
public static int IntMultiplication ( ) { int a ; int b ; int c ; a = 7 ; b = 3 ; c = a * b ; return c ; }

Target:
public static int IntSubtraction ( ) { int a ; int b ; int c ; a = Main.$inline$int ( 6 ) ; b = Main.$inline$int ( 2 ) ; c = a - b ; return c ; }
Source:
public static java.lang.String getFolderSegment ( int version ) { if ( version != ( com.android.ide.eclipse.adt.internal.resources.configurations.VersionQualifier.DEFAULT_VERSION ) ) { return java.lang.String.format ( "v%1$d" , version ) ; } return "" ; }

Target:
public static java.lang.String getFolderSegment ( int version ) { if ( version != ( com.android.ide.common.resources.configuration.VersionQualifier.DEFAULT_VERSION ) ) { return java.lang.String.format ( "v%1$d" , version ) ; } return "" ; }
Source:
public void registerForDataCallListChanged ( int slotId , android.telephony.data.IDataServiceCallback callback ) { if ( callback == null ) { loge ( "Callback is null" ) ; return ; } mHandler.obtainMessage ( android.telephony.data.DataService.DATA_SERVICE_REQUEST_REGISTER_DATA_CALL_LIST_CHANGED , slotId , 0 , callback ) . sendToTarget ( ) ; }

Target:
public void getDataCallList ( int slotId , android.telephony.data.IDataServiceCallback callback ) { if ( callback == null ) { loge ( "getDataCallList: callback is null" ) ; return ; } mHandler.obtainMessage ( android.telephony.data.DataService.DATA_SERVICE_REQUEST_GET_DATA_CALL_LIST , slotId , 0 , callback ) . sendToTarget ( ) ; }
Source:
public boolean isUsageEnabled ( ) { try { return mService.isUsageEnabled ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public boolean isAvailable ( ) { try { return mService.isUsageEnabled ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public static java.lang.String getZoneTab ( ) { return libcore.util.ZoneInfoDB.zoneTab ; }

Target:
public static java.lang.String getVersion ( ) { return libcore.util.ZoneInfoDB.DATA.getVersion ( ) ; }