auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static com.android.sdklib.resources.ScreenOrientation getByIndex ( int index ) { int i = 0 ; for ( com.android.sdklib.resources.ScreenOrientation orient : com.android.sdklib.resources.ScreenOrientation.values ( ) ) { if ( i == index ) { return orient ; } i ++ ; } return null ; }

Target:
public static com.android.resources.ScreenOrientation getByIndex ( int index ) { int i = 0 ; for ( com.android.resources.ScreenOrientation orient : com.android.resources.ScreenOrientation.values ( ) ) { if ( i == index ) { return orient ; } i ++ ; } return null ; }
Source:
native void rsnScriptSetVarVE ( int con , int id , int slot , byte [ ] val , int e , int [ ] dims ) ;

Target:
native void rsnScriptSetVarI ( long con , long id , int slot , int val ) ;
Source:
public boolean dispatchTrackballEvent ( android.view.MotionEvent event ) { return onTrackballEvent ( event ) ; }

Target:
public boolean dispatchTrackballEvent ( android.view.MotionEvent event ) { if ( ( mInputEventConsistencyVerifier ) != null ) { mInputEventConsistencyVerifier.onTrackballEvent ( event , 0 ) ; } return onTrackballEvent ( event ) ; }
Source:
public boolean isHidden ( ) { return ( ( optionUsageRestrictions ( ) ) == ( com.google.devtools.common.options.OptionsParser.OptionUsageRestrictions.HIDDEN ) ) || ( ( optionUsageRestrictions ( ) ) == ( com.google.devtools.common.options.OptionsParser.OptionUsageRestrictions.INTERNAL ) ) ; }

Target:
public boolean isDocumented ( ) { return ( ( documentationCategory ( ) ) != ( OptionDocumentationCategory.UNDOCUMENTED ) ) && ( ! ( isHidden ( ) ) ) ; }
Source:
public static final android.icu.util.ULocale [ ] getAvailableULocales ( ) { if ( ( android.icu.text.Collator.shim ) == null ) { return android.icu.impl.ICUResourceBundle.getAvailableULocales ( ICUResourceBundle.ICU_COLLATION_BASE_NAME , ICUResourceBundle.ICU_DATA_CLASS_LOADER ) ; } return android.icu.text.Collator.shim.getAvailableULocales ( ) ; }

Target:
public static final android.icu.util.ULocale [ ] getAvailableULocales ( ) { if ( ( android.icu.text.Collator.shim ) == null ) { return android.icu.impl.ICUResourceBundle.getAvailableULocales ( ICUData.ICU_COLLATION_BASE_NAME , ICUResourceBundle.ICU_DATA_CLASS_LOADER ) ; } return android.icu.text.Collator.shim.getAvailableULocales ( ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mDevice = getDevice ( ) ; mSourcePackageName = android.wm.cts.CrossAppDragAndDropTests.SOURCE_PACKAGE_NAME ; mTargetPackageName = android.wm.cts.CrossAppDragAndDropTests.TARGET_PACKAGE_NAME ; cleanupState ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; if ( ! ( supportsDragAndDrop ( ) ) ) { return ; } mDevice = getDevice ( ) ; mSourcePackageName = android.wm.cts.CrossAppDragAndDropTests.SOURCE_PACKAGE_NAME ; mTargetPackageName = android.wm.cts.CrossAppDragAndDropTests.TARGET_PACKAGE_NAME ; }
Source:
public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return new com.android.build.gradle.tasks.ResourceUsageAnalyzer.AnnotationUsageVisitor ( ) ; }

Target:
public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return new com.android.build.gradle.tasks.ResourceUsageAnalyzer.UsageVisitor.AnnotationUsageVisitor ( ) ; }
Source:
public static synchronized void setDefault ( java.util.TimeZone timeZone ) { if ( java.util.TimeZone.hasPermission ( ) ) { java.util.TimeZone.defaultTimeZone = ( timeZone != null ) ? ( ( java.util.TimeZone ) ( timeZone.clone ( ) ) ) : null ; } }

Target:
public static synchronized void setDefault ( java.util.TimeZone timeZone ) { if ( java.util.TimeZone.hasPermission ( ) ) { java.util.TimeZone.defaultTimeZone = ( timeZone != null ) ? ( ( java.util.TimeZone ) ( timeZone.clone ( ) ) ) : null ; android.icu.util.TimeZone.clearCachedDefault ( ) ; } }
Source:
public boolean isShowingPermissionRequest ( ) { return ( ( mEmptyView ) != null ) && ( mEmptyView.isShowingContent ( ) ) ; }

Target:
public boolean isShowingPermissionRequest ( ) { return ( ( emptyView ) != null ) && ( emptyView.isShowingContent ( ) ) ; }
Source:
public void printFilteredProblemTest_sdkReporter ( ) throws java.io.IOException { java.io.File refFile = new java.io.File ( com.android.jack.test.TestsProperties.getJackRootDir ( ) , "jack/tests/com/android/jack/reporting/sdkreporter-ref.txt" ) ; com.android.jack.reporting.SdkReporter reporter = new com.android.jack.reporting.SdkReporter ( ) ; checkPrintFilteredProblem ( reporter , refFile ) ; }

Target:
public void printFilteredProblemTest_defaultReporter ( ) throws java.io.IOException { java.io.File refFile = new java.io.File ( com.android.jack.test.TestsProperties.getJackRootDir ( ) , "jack/tests/com/android/jack/reporting/defaultreporter-ref.txt" ) ; com.android.jack.reporting.DefaultReporter reporter = new com.android.jack.reporting.DefaultReporter ( ) ; checkPrintFilteredProblem ( reporter , refFile , com.android.jack.reporting.ReporterFormatTest.FILE_PATH , com.android.jack.reporting.ReporterFormatTest.FILE_PATH ) ; }
Source:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType == ( com.android.ide.common.api.InsertType.CREATE ) ) { node.appendChild ( com.android.ide.common.layout.LayoutConstants.FQCN_LINEAR_LAYOUT ) ; } }

Target:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType.isCreate ( ) ) { node.appendChild ( com.android.ide.common.layout.LayoutConstants.FQCN_LINEAR_LAYOUT ) ; } }
Source:
public static com.android.sdkuilib.internal.repository.SettingsController createSettingsController ( com.android.utils.ILogger sdkLog ) { java.util.Properties props = new java.util.Properties ( ) ; com.android.sdkuilib.internal.repository.SettingsController.Settings settings = new com.android.sdkuilib.internal.repository.SettingsController.Settings ( props ) { } ; com.android.sdkuilib.internal.repository.MockSwtUpdaterData.MockSettingsController controller = new com.android.sdkuilib.internal.repository.MockSwtUpdaterData.MockSettingsController ( sdkLog , settings ) ; controller.setProperties ( props ) ; return controller ; }

Target:
public static com.android.sdklib.internal.repository.updater.SettingsController createSettingsController ( com.android.utils.ILogger sdkLog ) { java.util.Properties props = new java.util.Properties ( ) ; com.android.sdklib.internal.repository.updater.SettingsController.Settings settings = new com.android.sdklib.internal.repository.updater.SettingsController.Settings ( props ) { } ; com.android.sdkuilib.internal.repository.MockSwtUpdaterData.MockSettingsController controller = new com.android.sdkuilib.internal.repository.MockSwtUpdaterData.MockSettingsController ( sdkLog , settings ) ; controller.setProperties ( props ) ; return controller ; }
Source:
private boolean markIfNecessary ( @ javax.annotation.Nonnull com.android.sched.marker.MarkerManager node ) { synchronized ( node ) { if ( ! ( isMarked ( node ) ) ) { node.addMarker ( new com.android.jack.shrob.obfuscation.KeepNameMarker ( ) ) ; return true ; } return false ; } }

Target:
private boolean markIfNecessary ( @ javax.annotation.Nonnull com.android.sched.marker.MarkerManager node ) { if ( ! ( node.containsMarker ( com.android.jack.shrob.obfuscation.KeepNameMarker.class ) ) ) { return ( node.addMarkerIfAbsent ( new com.android.jack.shrob.obfuscation.KeepNameMarker ( ) ) ) == null ; } else { return false ; } }
Source:
public void onExtrasChanged ( android.os.Bundle extras ) { com.android.server.telecom.Log.w ( this , "FakeConference onExtrasChanged" ) ; mExtrasLock.countDown ( ) ; }

Target:
public void onExtrasChanged ( android.os.Bundle extras ) { android.telecom.Log.w ( this , "FakeConference onExtrasChanged" ) ; mExtrasLock.countDown ( ) ; }
Source:
public boolean telephonySetPuk ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "puk" ) java.lang.String puk , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "pin" ) java.lang.String pin ) { return mTelephonyManager.supplyPuk ( puk , pin ) ; }

Target:
public boolean telephonySupplyPuk ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "puk" ) java.lang.String puk , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "pin" ) java.lang.String pin ) { return mTelephonyManager.supplyPuk ( puk , pin ) ; }
Source:
public void enter ( ) { mLastError = android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ; mTetherController.notifyInterfaceStateChange ( mIfaceName , this , IControlsTethering.STATE_UNAVAILABLE , mLastError ) ; }

Target:
public void enter ( ) { mLastError = android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ; sendInterfaceState ( IControlsTethering.STATE_UNAVAILABLE ) ; }
Source:
public com.android.tv.dvr.ScheduledRecording.Builder createNewScheduleBuilder ( ) { return com.android.tv.dvr.ScheduledRecording.builder ( mInputId , mProgram ) ; }

Target:
public com.android.tv.dvr.data.ScheduledRecording.Builder createNewScheduleBuilder ( ) { return com.android.tv.dvr.data.ScheduledRecording.builder ( mInputId , mProgram ) ; }
Source:
public static java.lang.String toJavaCharset ( java.lang.String charsetName ) { org.apache.james.mime4j.util.CharsetUtil.Charset c = org.apache.james.mime4j.util.CharsetUtil.charsetMap.get ( charsetName.toLowerCase ( ) ) ; if ( c != null ) { return c.canonical ; } return null ; }

Target:
public static java.lang.String toMimeCharset ( java.lang.String charsetName ) { org.apache.james.mime4j.util.CharsetUtil.Charset c = org.apache.james.mime4j.util.CharsetUtil.charsetMap.get ( charsetName.toLowerCase ( java.util.Locale.US ) ) ; if ( c != null ) { return c.mime ; } return null ; }
Source:
static char $opt$IntToChar ( int a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( char ) ( a ) ) ; }

Target:
static char $opt$noinline$IntToChar ( int a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( char ) ( a ) ) ; }
Source:
public void testLogbF32 ( ) { script_f32 = new android.renderscript.cts.ScriptC_logb_f32 ( mRS , mRes , R.raw.logb_f32 ) ; doF32 ( 14 , 0 ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; script_f32 = new android.renderscript.cts.ScriptC_logb_f32 ( mRS ) ; }
Source:
native void rsnScriptInvoke ( long con , long id , int slot ) ;

Target:
native void rsnAllocationRead2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , int dt , int mSize , boolean usePadding ) ;
Source:
public void onRequestFocus ( ) { org.chromium.content.common.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onRequestFocus" ) ; mWebChromeClient.onRequestFocus ( mWebView ) ; } org.chromium.content.common.TraceEvent.end ( ) ; }

Target:
public void onRequestFocus ( ) { org.chromium.base.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onRequestFocus" ) ; mWebChromeClient.onRequestFocus ( mWebView ) ; } org.chromium.base.TraceEvent.end ( ) ; }
Source:
public java.lang.String getInlineString ( ) { return ( ( ( ( getInvokeMethod ( ) . toString ( ) ) + " " ) + ( getCallSiteProto ( ) . toString ( ) ) ) + " " ) + ( com.android.dx.rop.code.ThrowingInsn.toCatchString ( catches ) ) ; }

Target:
public java.lang.String getInlineString ( ) { return ( ( ( ( getPolymorphicMethod ( ) . toString ( ) ) + " " ) + ( getCallSiteProto ( ) . toString ( ) ) ) + " " ) + ( com.android.dx.rop.code.ThrowingInsn.toCatchString ( catches ) ) ; }
Source:
public void test_empty_NaN ( ) throws java.lang.Exception { java.text.DecimalFormatSymbols dfs = new java.text.DecimalFormatSymbols ( ) ; dfs.setNaN ( "" ) ; java.text.DecimalFormat df = new java.text.DecimalFormat ( ) ; df.setDecimalFormatSymbols ( dfs ) ; df.format ( java.lang.Double.NaN ) ; }

Target:
public void test_setNan_emptyString ( ) throws java.lang.Exception { java.text.DecimalFormatSymbols dfs = new java.text.DecimalFormatSymbols ( ) ; dfs.setNaN ( "" ) ; java.text.DecimalFormat df = new java.text.DecimalFormat ( ) ; df.setDecimalFormatSymbols ( dfs ) ; df.format ( java.lang.Double.NaN ) ; }
Source:
public static < K , V > com.google.common.collect.ImmutableMap < K , V > of ( K k1 , V v1 ) { return new com.google.common.collect.SingletonImmutableMap < K , V > ( com.google.common.base.Preconditions.checkNotNull ( k1 ) , com.google.common.base.Preconditions.checkNotNull ( v1 ) ) ; }

Target:
public static < K , V > com.google.common.collect.ImmutableMap < K , V > of ( K k1 , V v1 ) { return com.google.common.collect.ImmutableBiMap.of ( k1 , v1 ) ; }
Source:
public static java.lang.String normalizeNumber ( java.lang.String number , com.android.dialer.smartdial.SmartDialMap map ) { return com.android.dialer.smartdial.SmartDialNameMatcher.normalizeNumber ( number , 0 , map ) ; }

Target:
public static java.lang.String normalizeNumber ( android.content.Context context , java.lang.String number ) { return com.android.dialer.smartdial.SmartDialNameMatcher.normalizeNumber ( context , number , 0 ) ; }
Source:
protected void launchActivityOnDisplay ( java.lang.String targetActivityName , int displayId , java.lang.String ... keyValuePairs ) throws java.lang.Exception { executeShellCommand ( android.server.cts.ActivityManagerTestBase.getAmStartCmd ( targetActivityName , displayId , keyValuePairs ) ) ; mAmWmState.waitForValidState ( mDevice , targetActivityName ) ; }

Target:
protected void launchActivityOnDisplayNoWait ( java.lang.String targetActivityName , int displayId , java.lang.String ... keyValuePairs ) throws java.lang.Exception { executeShellCommand ( android.server.cts.ActivityManagerTestBase.getAmStartCmd ( targetActivityName , displayId , keyValuePairs ) ) ; }
Source:
private boolean isScoAcceptable ( ) { return ( mAudioRouteAllowed ) && ( ( ( mVoiceRecognitionStarted ) || ( isInCall ( ) ) ) || ( ( android.bluetooth.BluetoothHeadset.isInbandRingingSupported ( mService ) ) && ( isRinging ( ) ) ) ) ; }

Target:
private boolean isScoAcceptable ( ) { if ( mForceScoAudio ) return true ; return ( mAudioRouteAllowed ) && ( ( ( mVoiceRecognitionStarted ) || ( isInCall ( ) ) ) || ( ( android.bluetooth.BluetoothHeadset.isInbandRingingSupported ( mService ) ) && ( isRinging ( ) ) ) ) ; }
Source:
public void setNpnProtocols ( byte [ ] [ ] npnProtocols ) { this . mNpnProtocols = android.net.SSLCertificateSocketFactory.toNpnProtocolsList ( npnProtocols ) ; }

Target:
public void setNpnProtocols ( byte [ ] [ ] npnProtocols ) { this . mNpnProtocols = android.net.SSLCertificateSocketFactory.toLengthPrefixedList ( npnProtocols ) ; }
Source:
public void deadcoderemover ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( DEADCODEREMOVER ) . compileAndRunTest ( ) ; }

Target:
public void deadcoderemover ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( DEADCODEREMOVER ) . addProperty ( CodeItemBuilder.DEX_OPTIMIZE.getName ( ) , "true" ) . compileAndRunTest ( ) ; }
Source:
public void testCheck ( ) { org.mockito.Mockito.when ( mockViewFinder.getView ( ) ) . thenReturn ( targetView ) ; initInteraction ( ) ; testInteraction.check ( mockAssertion ) ; org.mockito.Mockito.verify ( mockAssertion ) . check ( targetView , null ) ; }

Target:
public void checkTest ( ) { org.mockito.Mockito.when ( mockViewFinder.getView ( ) ) . thenReturn ( targetView ) ; initInteraction ( ) ; testInteraction.check ( mockAssertion ) ; org.mockito.Mockito.verify ( mockAssertion ) . check ( targetView , null ) ; }
Source:
public void visitExceptionsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Method method , proguard.classfile.attribute.visitor.ExceptionsAttribute exceptionsAttribute ) { if ( ( optionalAttributeVisitor ) != null ) { exceptionsAttribute.accept ( clazz , method , optionalAttributeVisitor ) ; } }

Target:
public void visitMethodParametersAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Method method , proguard.classfile.attribute.visitor.MethodParametersAttribute exceptionsAttribute ) { if ( ( optionalAttributeVisitor ) != null ) { optionalAttributeVisitor.visitMethodParametersAttribute ( clazz , method , exceptionsAttribute ) ; } }
Source:
public void callSessionMergeStarted ( com.android.ims.internal.IImsCallSession newSession , com.android.ims.ImsCallProfile profile ) throws android.os.RemoteException { mListener.callSessionMergeStarted ( newSession , profile ) ; }

Target:
public void callSessionConferenceStateUpdated ( android.telephony.ims.ImsConferenceState state ) { try { mListener.callSessionConferenceStateUpdated ( state ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public boolean isOpened ( ) throws android.os.RemoteException { synchronized ( mLock ) { checkBinderConnection ( ) ; return getServiceInterface ( mBinder ) . isOpened ( mSlotId , mSupportedFeature ) ; } }

Target:
public boolean isOpened ( ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . isOpened ( mSlotId , mSupportedFeature ) ; } }
Source:
public void beginAnimationLw ( int displayWidth , int displayHeight ) { }

Target:
public void beginAnimationLw ( int displayWidth , int displayHeight ) { mTopFullscreenOpaqueWindowState = null ; mForceStatusBar = false ; mHideLockScreen = false ; mAllowLockscreenWhenOn = false ; mDismissKeyguard = false ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent arg0 ) { if ( ( mReceiver ) != null ) { mReceiver.clearMessages ( ) ; refreshLogCatTable ( ) ; updateAppliedFilters ( ) ; } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent arg0 ) { if ( ( mReceiver ) != null ) { mReceiver.clearMessages ( ) ; refreshLogCatTable ( ) ; resetUnreadCountForAllFilters ( ) ; updateAppliedFilters ( ) ; } }
Source:
public boolean stopSupplicant ( ) { return doBooleanCommand ( "TERMINATE" ) ; }

Target:
public boolean tearDown ( ) { if ( ! ( mWificondControl.tearDownInterfaces ( ) ) ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "Failed to teardown interfaces from Wificond" ) ; return false ; } stopHal ( ) ; return true ; }
Source:
public libcore.tzdata.update2.tools.TzDataBundleBuilder setIcuData ( byte [ ] icuData ) { this . icuData = icuData ; return this ; }

Target:
public libcore.tzdata.update2.tools.TimeZoneBundleBuilder setIcuData ( byte [ ] icuData ) { this . icuData = icuData ; return this ; }
Source:
public static void computeCopysign ( android.renderscript.cts.TestCopysign.ArgumentsFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 0 , 0 , false ) ; args.out = t.new32 ( java.lang.Math.copySign ( args.inX , args.inY ) ) ; }

Target:
public static void computeCopysign ( android.renderscript.cts.TestCopysign.ArgumentsFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 0 , 0 , false ) ; args.out = t.new32 ( java.lang.Math.copySign ( args.inMagnitudeValue , args.inSignValue ) ) ; }
Source:
public void testStringsToNpnBytesEmptyArray ( ) { try { android.net.SSLCertificateSocketFactory.toNpnProtocolsList ( ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }

Target:
public void testStringsToLengthPrefixedBytesEmptyArray ( ) { try { android.net.SSLCertificateSocketFactory.toLengthPrefixedList ( ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }
Source:
public void clear ( ) { com.google.common.base.Predicate < java.util.Map.Entry < R , V > > predicate = com.google.common.base.Predicates.alwaysTrue ( ) ; removePredicate ( predicate ) ; }

Target:
public boolean retainAll ( java.util.Collection < ? > c ) { return removeFromColumnIf ( com.google.common.base.Predicates.not ( com.google.common.base.Predicates.in ( c ) ) ) ; }
Source:
public void onClick ( android.view.View v ) { startActivity ( new android.content.Intent ( android.provider.Settings.ACTION_WIFI_SETTINGS ) ) ; }

Target:
public void onClick ( android.view.View v ) { startActivity ( android.security.KeyChain.createInstallIntent ( ) ) ; }
Source:
private static java.lang.String compilePattern ( java.lang.String pattern , java.lang.StringBuilder sb ) { return android.icu.impl.SimplePatternFormatter.compileToStringMinMaxPlaceholders ( pattern , sb , 2 , 2 ) ; }

Target:
private static java.lang.String compilePattern ( java.lang.String pattern , java.lang.StringBuilder sb ) { return android.icu.impl.SimpleFormatterImpl.compileToStringMinMaxArguments ( pattern , sb , 2 , 2 ) ; }
Source:
protected boolean check ( ) { android.webkit.WebBackForwardList list = mWebView.copyBackForwardList ( ) ; return checkWebBackForwardList ( list , currUrl , currIndex , size ) ; }

Target:
protected boolean check ( ) { if ( ( scrollY ) == ( mWebView.getScrollY ( ) ) ) { return true ; } else { scrollY = mWebView.getScrollY ( ) ; return false ; } }
Source:
public void clearWallpaper ( ) { clearWallpaper ( android.app.WallpaperManager.FLAG_SYSTEM , mContext.getUserId ( ) ) ; }

Target:
public void clearWallpaper ( ) { clearWallpaper ( ( ( android.app.WallpaperManager.FLAG_SYSTEM ) | ( android.app.WallpaperManager.FLAG_LOCK ) ) , mContext.getUserId ( ) ) ; }
Source:
public void testSerializationCompatibility_SimpleEntry ( ) throws java.lang.Exception { java.util.AbstractMap.SimpleEntry e = new java.util.AbstractMap.SimpleEntry < java.lang.Integer , java.lang.String > ( 1 , "test" ) ; tests.util.SerializationTester.assertCompabilityEquals ( e , "serialization/java/util/AbstractMapTest_SimpleEntry.golden.ser" ) ; }

Target:
public void testSerializationCompatibility_SimpleEntry ( ) throws java.lang.Exception { java.util.AbstractMap.SimpleEntry e = new java.util.AbstractMap.SimpleEntry < java.lang.Integer , java.lang.String > ( 1 , "test" ) ; tests.util.SerializationTester.assertCompabilityEquals ( e , "serialization/tests/api/java/util/AbstractMapTest_SimpleEntry.golden.ser" ) ; }
Source:
public void requestR1R2ANQPElementsWithoutRC ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mHandler.requestANQP ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.R1R2_ANQP_WITHOUT_RC ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mManager.requestANQPElements ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_SCAN_DETAIL , false , true ) ) ; }

Target:
public void requestR1R2ANQPElementsWithoutRC ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mHandler.requestANQP ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.R1R2_ANQP_WITHOUT_RC ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mManager.requestANQPElements ( com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_BSSID , com.android.server.wifi.hotspot2.ANQPRequestManagerTest.TEST_ANQP_KEY , false , true ) ) ; }
Source:
public void setSlotId ( int slotId ) { mSlotId = slotId ; }

Target:
public final int getFeatureState ( ) { synchronized ( mLock ) { return mState ; } }
Source:
synchronized void nScriptInvokeV ( long id , int slot , byte [ ] params ) { validate ( ) ; rsnScriptInvokeV ( mContext , id , slot , params ) ; }

Target:
synchronized void nScriptSetVarD ( long id , int slot , double val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarD ( curCon , id , slot , val , mUseInc ) ; }
Source:
com.android.sdklib.IAndroidTarget resolveTarget ( @ com.android.annotations.NonNull java.lang.String target , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) ;

Target:
public void initParser ( @ com.android.annotations.NonNull java.lang.String target , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision buildToolRevision , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) ;
Source:
private static void assertNoErrors ( ) { assertEquals ( 0 , org.apache.harmony.xnet.provider.jsse.NativeCrypto.ERR_peek_last_error ( ) ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { assertEquals ( 0 , org.apache.harmony.xnet.provider.jsse.NativeCrypto.ERR_peek_last_error ( ) ) ; }
Source:
private void riljLogv ( java.lang.String msg ) { android.util.Log.v ( com.android.internal.telephony.RIL.LOG_TAG , msg ) ; }

Target:
private void riljLogv ( java.lang.String msg ) { android.telephony.Rlog.v ( com.android.internal.telephony.RIL.LOG_TAG , msg ) ; }
Source:
private void notifyDefaultData ( java.lang.String reason ) { setState ( DctConstants.State.CONNECTED ) ; notifyDataConnection ( reason ) ; startNetStatPoll ( ) ; mDataConnections.get ( 0 ) . resetRetryCount ( ) ; }

Target:
private void notifyDefaultData ( java.lang.String reason ) { setState ( DctConstants.State.CONNECTED ) ; notifyDataConnection ( reason ) ; startNetStatPoll ( ) ; startDataStallAlarm ( com.android.internal.telephony.cdma.DATA_STALL_NOT_SUSPECTED ) ; mDataConnections.get ( 0 ) . resetRetryCount ( ) ; }
Source:
public java.io.FileDescriptor accept ( java.io.FileDescriptor fd , java.net.InetSocketAddress peerAddress ) throws android.system.ErrnoException , java.net.SocketException { return os.accept ( fd , peerAddress ) ; }

Target:
public java.io.FileDescriptor accept ( java.io.FileDescriptor fd , java.net.SocketAddress peerAddress ) throws android.system.ErrnoException , java.net.SocketException { return os.accept ( fd , peerAddress ) ; }
Source:
public void test5 ( ) { com.android.utils.HtmlBuilder builder = new com.android.utils.HtmlBuilder ( ) ; builder.addLink ( "This is the " , "linked text" , "!" , "foo://bar" ) ; assertEquals ( "This is the <A HREF=\"foo://bar\">linked text</A>!" , builder.getHtml ( ) ) ; }

Target:
public void testAddLinkWithBeforeAndAfterText ( ) { com.android.utils.HtmlBuilder builder = new com.android.utils.HtmlBuilder ( ) ; builder.addLink ( "This is the " , "linked text" , "!" , "foo://bar" ) ; assertEquals ( "This is the <A HREF=\"foo://bar\">linked text</A>!" , builder.getHtml ( ) ) ; }
Source:
public void setActivityController ( android.app.IActivityController controller ) { enforceCallingPermission ( android.Manifest.permission.SET_ACTIVITY_WATCHER , "setActivityController()" ) ; synchronized ( this ) { mController = controller ; com.android.server.Watchdog.getInstance ( ) . setActivityController ( controller ) ; } }

Target:
public void setActivityController ( android.app.IActivityController controller , boolean imAMonkey ) { enforceCallingPermission ( android.Manifest.permission.SET_ACTIVITY_WATCHER , "setActivityController()" ) ; synchronized ( this ) { mController = controller ; mControllerIsAMonkey = imAMonkey ; com.android.server.Watchdog.getInstance ( ) . setActivityController ( controller ) ; } }
Source:
public static void d ( java.lang.String prefix , java.lang.String format , java.lang.Object ... args ) { if ( com.android.services.telephony.Log.DEBUG ) { android.util.Log.d ( com.android.services.telephony.Log.TAG , com.android.services.telephony.Log.buildMessage ( prefix , format , args ) ) ; } }

Target:
public static void initLogging ( android.content.Context context ) { android.telecom.Log.setTag ( com.android.services.telephony.Log.TAG ) ; android.telecom.Log.setSessionContext ( context ) ; android.telecom.Log.initMd5Sum ( ) ; }
Source:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , float [ ] data ) { validateIsFloat32 ( ) ; copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , data ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , float [ ] data ) { validateIsFloat32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.FLOAT_32 , data.length ) ; }
Source:
public com.android.internal.telephony.Phone getPhone ( ) { return hasSubId ( ) ? com.android.internal.telephony.PhoneFactory.getPhone ( android.telephony.SubscriptionManager.getPhoneId ( com.android.phone.SubscriptionInfoHelper.mSubId ) ) : com.android.phone.PhoneGlobals.getPhone ( ) ; }

Target:
public com.android.internal.telephony.Phone getPhone ( ) { return hasSubId ( ) ? com.android.internal.telephony.PhoneFactory.getPhone ( android.telephony.SubscriptionManager.getPhoneId ( mSubId ) ) : com.android.phone.PhoneGlobals.getPhone ( ) ; }
Source:
private static int getStackTraceSerialNumber ( com.android.tools.perflib.heap.StackTrace stack ) { return 0 ; }

Target:
private static int getStackTraceSerialNumber ( com.android.tools.perflib.heap.StackTrace stack ) { return stack.getSerialNumber ( ) ; }
Source:
private void edgeSplit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { edgeSplitPredecessors ( cfg ) ; com.android.jack.transformations.ssa.SsaBasicBlockSplitter.edgeSplitMoveExceptionsAndResults ( cfg ) ; com.android.jack.transformations.ssa.SsaBasicBlockSplitter.edgeSplitSuccessors ( cfg ) ; }

Target:
private void edgeSplit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { if ( com.android.jack.transformations.ssa.SsaBasicBlockSplitter.NEED_EDGE_SPLIT_PREDECESSOR ) { edgeSplitPredecessors ( cfg ) ; } com.android.jack.transformations.ssa.SsaBasicBlockSplitter.edgeSplitMoveExceptionsAndResults ( cfg ) ; com.android.jack.transformations.ssa.SsaBasicBlockSplitter.edgeSplitSuccessors ( cfg ) ; }
Source:
private boolean checkAppOppAllowed ( int op , java.lang.String callingPackage , int uid ) { return ( mAppOps.noteOp ( op , uid , callingPackage ) ) == ( android.app.AppOpsManager.MODE_ALLOWED ) ; }

Target:
public boolean addPasspointConfiguration ( android.net.wifi.hotspot2.PasspointConfiguration config ) { return true ; }
Source:
public void testAllOtherDirectoriesNotWritable ( ) throws java.lang.Exception { java.io.File start = new java.io.File ( "/" ) ; java.util.Set < java.io.File > writableDirs = getWritableDirectoryiesAndSubdirectoriesOf ( start ) ; assertTrue ( ( "Found writable directories: " + ( writableDirs.toString ( ) ) ) , writableDirs.isEmpty ( ) ) ; }

Target:
public void testAllOtherDirectoriesNotWritable ( ) throws java.lang.Exception { java.io.File start = new java.io.File ( "/" ) ; java.util.Set < java.io.File > writableDirs = getWritableDirectoriesAndSubdirectoriesOf ( start ) ; assertTrue ( ( "Found writable directories: " + ( writableDirs.toString ( ) ) ) , writableDirs.isEmpty ( ) ) ; }
Source:
public static int IntMultiplication ( ) { int a ; int b ; int c ; a = 7 ; b = 3 ; c = a * b ; return c ; }

Target:
public static long LongSubtraction ( ) { long a ; long b ; long c ; a = Main.$inline$long ( 6L ) ; b = Main.$inline$long ( 2L ) ; c = a - b ; return c ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotationLiteral ) { endVisit ( ( ( com.android.jack.ir.ast.JExpression ) ( annotationLiteral ) ) ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotation ) { endVisit ( ( ( com.android.jack.ir.ast.JExpression ) ( annotation ) ) ) ; }
Source:
public com.android.ide.common.rendering.api.ResourceValue findValue ( java.lang.String name ) { return mItems.get ( com.android.util.Pair.of ( name , isFramework ( ) ) ) ; }

Target:
public com.android.ide.common.rendering.api.ResourceValue findValue ( java.lang.String name ) { return getItem ( name , isFramework ( ) ) ; }
Source:
public void removeRegistrationListener ( com.android.ims.internal.IImsRegistrationListener listener ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; getServiceInterface ( mBinder ) . removeRegistrationListener ( mSlotId , mSupportedFeature , 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 ( sessionId , callServiceType , callType ) ; } }
Source:
public void a_attachWithNullOptions ( ) throws java.lang.Exception { android.os.Debug.attachJvmtiAgent ( android.jvmti.attaching.cts.AttachingTest.sAgentFile , null ) ; }

Target:
public void a_attachWithNullOptions ( ) throws java.lang.Exception { android.os.Debug.attachJvmtiAgent ( agentString , null , classLoader ) ; }
Source:
public java.lang.String getPackageFromManifest ( ) { assert ( mType ) != ( com.android.builder.core.VariantConfiguration.Type.TEST ) ; java.io.File manifestLocation = mDefaultSourceProvider.getManifestFile ( ) ; return com.android.builder.core.VariantConfiguration.sManifestParser.getPackage ( manifestLocation ) ; }

Target:
public java.lang.String getPackageFromManifest ( ) { assert ( mType ) != ( com.android.builder.core.VariantConfiguration.Type.TEST ) ; java.io.File manifestLocation = mDefaultSourceProvider.getManifestFile ( ) ; return sManifestParser.getPackage ( manifestLocation ) ; }
Source:
public java.lang.String toString ( ) { return getSignature ( ) ; }

Target:
public boolean matchesSignature ( @ com.android.annotations.NonNull java.lang.String signature ) { return com.android.tools.lint.EcjParser.sameChars ( signature , mBinding.readableName ( ) ) ; }
Source:
public final void init ( java.security.Key key , java.security.spec.AlgorithmParameterSpec params ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { if ( key == null ) { throw new java.security.InvalidKeyException ( "key == null" ) ; } spiImpl.engineInit ( key , params ) ; isInitMac = true ; }

Target:
public final void init ( java.security.Key key , java.security.spec.AlgorithmParameterSpec params ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { if ( key == null ) { throw new java.security.InvalidKeyException ( "key == null" ) ; } getSpi ( key ) . engineInit ( key , params ) ; isInitMac = true ; }
Source:
private static java.lang.String getTuxLink ( java.lang.String cloudProjectId , com.google.api.services.testing.model.ResultStorage resultStorage ) { return ( ( ( ( "https://console.developers.google.com/project/" + cloudProjectId ) + "/testlab/mobile/histories/" ) + ( resultStorage.getToolResultsHistoryId ( ) ) ) + "/executions/" ) + ( resultStorage.getToolResultsExecutionId ( ) ) ; }

Target:
private java.lang.String getWebResultsLink ( @ org.jetbrains.annotations.NotNull com.google.api.services.testing.model.TestMatrix testMatrix ) { com.google.api.services.testing.model.ToolResultsExecution toolResultsExecution = testMatrix.getResultStorage ( ) . getToolResultsExecution ( ) ; if ( toolResultsExecution == null ) { return "" ; } return ( ( ( ( "https://console.developers.google.com/project/" + ( cloudProjectId ) ) + "/testlab/mobile/histories/" ) + ( toolResultsExecution.getHistoryId ( ) ) ) + "/executions/" ) + ( toolResultsExecution.getExecutionId ( ) ) ; }
Source:
public final void setLong ( java.lang.String name , long value ) { mMap.put ( name , new java.lang.Long ( value ) ) ; }

Target:
public final void setLong ( java.lang.String name , long value ) { mMap.put ( name , java.lang.Long.valueOf ( value ) ) ; }
Source:
private static void addLoginListenersFromExtensionPoints ( com.google.gdt.eclipse.login.common.GoogleLoginState state ) { com.google.gct.login.GoogleLoginListener [ ] loginListeners = com.intellij.openapi.extensions.Extensions.getExtensions ( GoogleLoginListener.EP_NAME ) ; for ( com.google.gct.login.GoogleLoginListener listener : loginListeners ) { state.addLoginListener ( listener ) ; } }

Target:
private void addLoginListenersFromExtensionPoints ( ) { com.google.gct.login.GoogleLoginListener [ ] loginListeners = com.intellij.openapi.extensions.Extensions.getExtensions ( GoogleLoginListener.EP_NAME ) ; for ( com.google.gct.login.GoogleLoginListener listener : loginListeners ) { users.addLoginListener ( listener ) ; } }
Source:
public static void computeSqrt ( android.renderscript.cts.TestSqrt.ArgumentsFloatFloat args ) { args.ulf = 3 ; args.ulfRelaxed = 3 ; args.out = ( ( float ) ( java.lang.StrictMath.sqrt ( args.in ) ) ) ; }

Target:
public static void computeConvert ( android.renderscript.cts.TestConvert.ArgumentsIntChar args ) { args.out = android.renderscript.cts.CoreMathVerifier.convertIntToChar ( args.inV ) ; }
Source:
private static java.lang.String getRelativeAndroidOut ( @ com.android.annotations.NonNull org.eclipse.core.resources.IProject project ) { org.eclipse.core.resources.IFolder folder = com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getAndroidOutputFolder ( project ) ; return folder.getFullPath ( ) . makeRelativeTo ( project.getFullPath ( ) ) . toString ( ) ; }

Target:
private static java.lang.String getRelativePath ( @ com.android.annotations.NonNull org.eclipse.core.resources.IProject project , @ com.android.annotations.NonNull org.eclipse.core.resources.IResource resource ) { return resource.getFullPath ( ) . makeRelativeTo ( project.getFullPath ( ) ) . toString ( ) ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearSuiteBuildNumber ( ) { bitField0_ = ( bitField0_ ) & ( ~ 128 ) ; suiteBuildNumber_ = com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.getDefaultInstance ( ) . getSuiteBuildNumber ( ) ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearSuiteVersion ( ) { bitField0_ = ( bitField0_ ) & ( ~ 128 ) ; suiteVersion_ = com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.getDefaultInstance ( ) . getSuiteVersion ( ) ; onChanged ( ) ; return this ; }
Source:
public android.os.Bundle updateCredentials ( android.accounts.AccountAuthenticatorResponse r , android.accounts.Account account , java.lang.String s , android.os.Bundle bundle ) throws android.accounts.NetworkErrorException { android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; return null ; }

Target:
public android.os.Bundle getAuthToken ( android.accounts.AccountAuthenticatorResponse r , android.accounts.Account account , java.lang.String s , android.os.Bundle bundle ) throws android.accounts.NetworkErrorException { if ( com.android.bluetooth.pbapclient.Authenticator.DBG ) android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public int getDeviceSide ( android.bluetooth.BluetoothDevice device ) { return 0 ; }

Target:
public int getDeviceSide ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.hearingaid.HearingAidService service = getService ( ) ; if ( service == null ) { return android.bluetooth.BluetoothHearingAid.SIDE_RIGHT ; } return ( service.getCapabilities ( device ) ) & 1 ; }
Source:
public static int copyNativeBinariesIfNeededLI ( java.io.File apkFile , java.io.File sharedLibraryDir ) { final java.lang.String cpuAbi = android.os.Build.CPU_ABI ; final java.lang.String cpuAbi2 = android.os.Build.CPU_ABI2 ; return com.android.internal.content.NativeLibraryHelper.nativeCopyNativeBinaries ( apkFile.getPath ( ) , sharedLibraryDir.getPath ( ) , cpuAbi , cpuAbi2 ) ; }

Target:
public static int findSupportedAbi ( com.android.internal.content.NativeLibraryHelper.ApkHandle handle , java.lang.String [ ] supportedAbis ) { return com.android.internal.content.NativeLibraryHelper.nativeFindSupportedAbi ( handle.apkHandle , supportedAbis ) ; }
Source:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType == ( com.android.ide.common.api.InsertType.CREATE ) ) { node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , "android:apiKey" , ( "Your API key: see " + "http://code.google.com/android/add-ons/google-apis/mapkey.html" ) ) ; } }

Target:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType.isCreate ( ) ) { node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , "android:apiKey" , ( "Your API key: see " + "http://code.google.com/android/add-ons/google-apis/mapkey.html" ) ) ; } }
Source:
public boolean isMatchFor ( com.android.ide.common.resources.configuration.ResourceQualifier qualifier ) { if ( qualifier instanceof com.android.ide.common.resources.configuration.PixelDensityQualifier ) { return true ; } return false ; }

Target:
public boolean isMatchFor ( com.android.ide.common.resources.configuration.ResourceQualifier qualifier ) { if ( qualifier instanceof com.android.ide.common.resources.configuration.DensityQualifier ) { return true ; } return false ; }
Source:
public boolean password ( java.lang.String password ) { try { return ( mBinder.password ( password ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public boolean unlock ( java.lang.String password ) { return unlock ( android.os.UserHandle.getUserId ( java.lang.Process.myUid ( ) ) , password ) ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; android.app.ActionBar bar = getActionBar ( ) ; if ( bar != null ) { bar.setNavigationMode ( ActionBar.NAVIGATION_MODE_TABS ) ; } }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; android.app.ActionBar bar = getActionBar ( ) ; if ( bar != null ) { bar.setNavigationMode ( ActionBar.NAVIGATION_MODE_TABS ) ; } windowFocusSignal = new java.util.concurrent.CountDownLatch ( 1 ) ; }
Source:
public java.lang.String getStringValue ( ) { if ( ( ( mValue1 ) != ( - 1 ) ) && ( ( mValue2 ) != ( - 1 ) ) ) { return java.lang.String.format ( "%1$dx%2$d" , mValue1 , mValue2 ) ; } return "" ; }

Target:
public java.lang.String getShortDisplayValue ( ) { if ( ( ( mValue1 ) != ( - 1 ) ) && ( ( mValue2 ) != ( - 1 ) ) ) { return java.lang.String.format ( "%1$dx%2$d" , mValue1 , mValue2 ) ; } return "" ; }
Source:
boolean setBluetoothClass ( byte [ ] bytes ) { synchronized ( mObject ) { return mService.setAdapterPropertyNative ( AbstractionLayer.BT_PROPERTY_CLASS_OF_DEVICE , bytes ) ; } }

Target:
boolean setBluetoothClass ( android.bluetooth.BluetoothClass bluetoothClass ) { synchronized ( mObject ) { boolean result = mService.setAdapterPropertyNative ( AbstractionLayer.BT_PROPERTY_CLASS_OF_DEVICE , bluetoothClass.getClassOfDeviceBytes ( ) ) ; if ( result ) { mBluetoothClass = bluetoothClass ; } return result ; } }
Source:
public void testReadAfterWrite ( ) throws java.lang.Exception { com.android.server.wifi.WifiConfigStoreData writeData = createSingleOpenNetworkStoreData ( ) ; mWifiConfigStore.write ( true , writeData ) ; com.android.server.wifi.WifiConfigStoreData readData = mWifiConfigStore.read ( ) ; com.android.server.wifi.WifiConfigStoreDataTest.assertConfigStoreDataEqual ( writeData , readData ) ; }

Target:
public void testReadAfterWriteWithNoUserStore ( ) throws java.lang.Exception { com.android.server.wifi.WifiConfigStoreData writeData = createSingleOpenNetworkStoreData ( ) ; mWifiConfigStore.write ( true , writeData ) ; com.android.server.wifi.WifiConfigStoreData readData = mWifiConfigStore.read ( ) ; com.android.server.wifi.WifiConfigStoreDataTest.assertConfigStoreDataEqual ( writeData , readData ) ; }
Source:
public void onHold ( ) { setOnHold ( ) ; }

Target:
public void onHold ( ) { if ( ( mMediaPlayer ) != null ) { mMediaPlayer.pause ( ) ; } setOnHold ( ) ; }
Source:
public synchronized java.util.Iterator < java.lang.Object > iterator ( ) { return com.google.common.collect.Iterators.< java.lang.Object > forArray ( java.lang.Long.valueOf ( number ) , java.lang.Long.valueOf ( size ) ) ; }

Target:
public long getNumber ( ) { return number ; }
Source:
public java.util.Set < java.lang.String > stringKeys ( ) { return stringMap.keySet ( ) ; }

Target:
public final java.util.Set < java.lang.String > stringKeys ( ) { return getNonRangeStrings ( ) ; }
Source:
synchronized void nScriptSetVarObj ( long id , int slot , long val ) { validate ( ) ; rsnScriptSetVarObj ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptSetVarF ( long id , int slot , float val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarF ( curCon , id , slot , val , mUseInc ) ; }
Source:
public void testEscapeStringShouldEscapeQuotes ( ) throws java.lang.Exception { assertEquals ( "\\\'" , com.android.ide.common.resources.ValueResourceParser.escapeResourceString ( "'" ) ) ; assertEquals ( "\\\"" , com.android.ide.common.resources.ValueResourceParser.escapeResourceString ( "\"" ) ) ; assertEquals ( "\" \' \"" , com.android.ide.common.resources.ValueResourceParser.escapeResourceString ( " ' " ) ) ; }

Target:
public void testEscapeStringShouldEscapeQuotes ( ) throws java.lang.Exception { assertEquals ( "\\\'" , com.android.ide.common.res2.ValueXmlHelper.escapeResourceString ( "'" ) ) ; assertEquals ( "\\\"" , com.android.ide.common.res2.ValueXmlHelper.escapeResourceString ( "\"" ) ) ; assertEquals ( "\" \' \"" , com.android.ide.common.res2.ValueXmlHelper.escapeResourceString ( " ' " ) ) ; }
Source:
public static native int EVP_SignFinal ( int ctx , byte [ ] signature , int offset , int key ) ;

Target:
public static native int EVP_VerifyFinal ( long ctx , byte [ ] signature , int offset , int length , long key ) ;
Source:
public static synchronized com.android.internal.telephony.uicc.UiccController getInstance ( com.android.internal.telephony.PhoneBase phone ) { if ( ( com.android.internal.telephony.uicc.UiccController.mInstance ) == null ) { com.android.internal.telephony.uicc.UiccController.mInstance = new com.android.internal.telephony.uicc.UiccController ( phone ) ; } else if ( phone != null ) { com.android.internal.telephony.uicc.UiccController.mInstance.setNewPhone ( phone ) ; } return com.android.internal.telephony.uicc.UiccController.mInstance ; }

Target:
public static com.android.internal.telephony.uicc.UiccController getInstance ( ) { synchronized ( com.android.internal.telephony.uicc.UiccController.mLock ) { if ( ( com.android.internal.telephony.uicc.UiccController.mInstance ) == null ) { throw new java.lang.RuntimeException ( "UiccController.getInstance can't be called before make()" ) ; } return com.android.internal.telephony.uicc.UiccController.mInstance ; } }
Source:
protected java.lang.String computeName ( ) { return getVariantConfiguration ( ) . hasFlavors ( ) ? java.lang.String.format ( "%s%s" , getFlavoredName ( true ) , getCapitalizedBuildTypeName ( ) ) : getCapitalizedBuildTypeName ( ) ; }

Target:
public java.lang.String getDescription ( ) { if ( getVariantConfiguration ( ) . hasFlavors ( ) ) { return java.lang.String.format ( "%s build for flavor %s" , getCapitalizedBuildTypeName ( ) , getCapitalizedFlavorName ( ) ) ; } else { return java.lang.String.format ( "%s build" , getCapitalizedBuildTypeName ( ) ) ; } }
Source:
public static float $noinline$floatAddSubSimplifyArg2 ( float x , float y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } float sum = x + y ; return sum - y ; }

Target:
public static int $noinline$intAddSubSimplifyArg2 ( int x , int y ) { int sum = x + y ; return sum - y ; }
Source:
public void addCase ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JBasicBlock handler ) { cases.add ( handler ) ; handler.addPredecessor ( this ) ; }

Target:
public void addCase ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JBasicBlock block ) { cases.add ( block ) ; block.addPredecessor ( this ) ; }