auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean onPreferenceClick ( android.preference.Preference preference ) { com.android.dialer.logging.Logger.get ( getContext ( ) ) . logImpression ( DialerImpression.Type.VVM_CHANGE_RINGTONE_CLICKED ) ; return false ; }

Target:
public boolean onPreferenceClick ( android.preference.Preference preference ) { com.android.dialer.logging.Logger.get ( getContext ( ) ) . logImpression ( DialerImpression.Type.VVM_CHANGE_PIN_CLICKED ) ; return false ; }
Source:
public com.android.ims.internal.IImsMMTelFeature createEmergencyMMTelFeature ( int slotId , com.android.ims.internal.IImsFeatureStatusCallback c ) throws android.os.RemoteException { mStatusCallback = c ; return this . createEmergencyMMTelFeature ( slotId ) ; }

Target:
public void removeImsFeature ( int slotId , int featureType , com.android.ims.internal.IImsFeatureStatusCallback c ) throws android.os.RemoteException { this . removeImsFeature ( slotId , featureType ) ; }
Source:
public java.util.List < android.telephony.CellInfo > getAllCellInfo ( ) { return getServiceStateTracker ( ) . getAllCellInfo ( ) ; }

Target:
public java.util.List < android.telephony.CellInfo > getAllCellInfo ( ) { java.util.List < android.telephony.CellInfo > cellInfoList = getServiceStateTracker ( ) . getAllCellInfo ( ) ; return privatizeCellInfoList ( cellInfoList ) ; }
Source:
public java.util.Collection < com.android.tools.perflib.heap.RootObj > getGCRoots ( ) { return mSnapshot.getGCRoots ( ) ; }

Target:
public java.util.List < com.android.tools.perflib.heap.Instance > getRooted ( ) { return mRooted ; }
Source:
public void error ( int errorCode , java.lang.String message ) throws android.os.RemoteException { mHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { mAppCallback.onError ( errorCode , message ) ; } } ) ; }

Target:
public void onError ( int errorCode , java.lang.String message ) throws android.os.RemoteException { if ( mIsStopped ) { return ; } mHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { mAppCallback.onError ( errorCode , message ) ; } } ) ; }
Source:
public static void computeAbs ( android.renderscript.cts.TestAbs.ArgumentsShortUshort args ) { args.out = ( ( short ) ( java.lang.Math.abs ( args.inValue ) ) ) ; }

Target:
public static void computeAbs ( android.renderscript.cts.TestAbs.ArgumentsShortUshort args ) { args.out = ( ( short ) ( java.lang.Math.abs ( args.inN ) ) ) ; }
Source:
boolean acceptIncomingConnect ( android.bluetooth.BluetoothDevice device ) { return false ; }

Target:
int getAudioState ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; synchronized ( mStateMachines ) { final com.android.bluetooth.hfp.HeadsetStateMachine stateMachine = mStateMachines.get ( device ) ; if ( stateMachine == null ) { return android.bluetooth.BluetoothHeadset.STATE_AUDIO_DISCONNECTED ; } return stateMachine.getAudioState ( ) ; } }
Source:
public void test_getOutputStream ( ) throws java.io.IOException { java.lang.String posted = "this is a test" ; java.net.URLConnection uc3 = new java.net.URL ( "http://www.google.com/ie" ) . openConnection ( ) ; uc3.setDoOutput ( true ) ; uc3.connect ( ) ; java.io.BufferedWriter w = new java.io.BufferedWriter ( new java.io.OutputStreamWriter ( uc3.getOutputStream ( ) ) , posted.getBytes ( ) . length ) ; w.write ( posted ) ; w.flush ( ) ; w.close ( ) ; int code = ( ( java.net.HttpURLConnection ) ( uc3 ) ) . getResponseCode ( ) ; assertEquals ( "Got different responseCode " , 405 , code ) ; try { fileURLCon.setDoOutput ( true ) ; fileURLCon.connect ( ) ; fileURLCon.getInputStream ( ) . close ( ) ; fileURLCon.getOutputStream ( ) ; } catch ( java.net.UnknownServiceException expected ) { } ( ( java.net.HttpURLConnection ) ( uc2 ) ) . disconnect ( ) ; try { uc2.getOutputStream ( ) ; fail ( "Exception expected" ) ; } catch ( java.io.IOException e ) { } }

Target:
public void test_getOutputStream_failAfterDisconnect ( ) throws java.io.IOException { ( ( java.net.HttpURLConnection ) ( uc2 ) ) . disconnect ( ) ; try { uc2.getOutputStream ( ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } }
Source:
public void hangupIfAlive ( ) { if ( getState ( ) . isAlive ( ) ) { try { hangup ( ) ; } catch ( com.android.internal.telephony.CallStateException ex ) { android.util.Log.w ( LOG_TAG , ( " hangupIfActive: caught " + ex ) ) ; } } }

Target:
public void hangupIfAlive ( ) { if ( getState ( ) . isAlive ( ) ) { try { hangup ( ) ; } catch ( com.android.internal.telephony.CallStateException ex ) { android.telephony.Rlog.w ( LOG_TAG , ( " hangupIfActive: caught " + ex ) ) ; } } }
Source:
public void setCompileSdkVersion ( java.lang.String compileSdkVersion ) { this . compileSdkVersion = compileSdkVersion ; }

Target:
public void setCompileSdkVersion ( @ com.android.annotations.NonNull java.lang.String compileSdkVersion ) { com.android.sdklib.AndroidVersion androidVersion = com.android.sdklib.AndroidTargetHash.getVersionFromHash ( compileSdkVersion ) ; com.google.common.base.Preconditions.checkState ( ( androidVersion != null ) ) ; this . compileSdkVersion = com.android.sdklib.AndroidTargetHash.getPlatformHashString ( androidVersion ) ; }
Source:
final void incrementAssociatedCallCount ( ) { ( mAssociatedCallCount ) ++ ; com.android.server.telecom.Log.v ( this , "Call count increment %d, %s" , mAssociatedCallCount , mComponentName.flattenToShortString ( ) ) ; }

Target:
final void incrementAssociatedCallCount ( ) { ( mAssociatedCallCount ) ++ ; android.telecom.Log.v ( this , "Call count increment %d, %s" , mAssociatedCallCount , mComponentName.flattenToShortString ( ) ) ; }
Source:
public java.lang.String GetVendorConfigFilePath ( ) { if ( ( mVendorConfigFilePath ) == null ) { if ( mDefaultType.toLowerCase ( ) . equals ( com.android.tradefed.util.VtsVendorConfigFileUtil.VENDOR_TEST_CONFIG_DEFAULT_TYPE ) ) { mVendorConfigFilePath = com.android.tradefed.util.VtsVendorConfigFileUtil.VENDOR_TEST_CONFIG_FILE_PATH_PROD ; } else { mVendorConfigFilePath = com.android.tradefed.util.VtsVendorConfigFileUtil.VENDOR_TEST_CONFIG_FILE_PATH_STAGING ; } } return mVendorConfigFilePath ; }

Target:
public java.lang.String GetVendorConfigFilePath ( ) { if ( ( mVendorConfigFilePath ) == null ) { if ( mDefaultType.toLowerCase ( ) . equals ( com.android.tradefed.util.VtsVendorConfigFileUtil.VENDOR_TEST_CONFIG_DEFAULT_TYPE ) ) { mVendorConfigFilePath = com.android.tradefed.util.VtsVendorConfigFileUtil.VENDOR_TEST_CONFIG_FILE_PATH_PROD ; } else { mVendorConfigFilePath = com.android.tradefed.util.VtsVendorConfigFileUtil.VENDOR_TEST_CONFIG_FILE_PATH_TEST ; } } return mVendorConfigFilePath ; }
Source:
public void run ( ) { mAppCallback.onStateUpdated ( request , fileInfo , state ) ; }

Target:
public void run ( ) { long token = android.os.Binder.clearCallingIdentity ( ) ; try { mAppCallback.onStateUpdated ( request , fileInfo , state ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }
Source:
private static libcore.tzdata.update2.TimeZoneBundle createValidTimeZoneBundle ( java.lang.String rulesVersion , int revision ) throws java.lang.Exception { return libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundleBuilder ( rulesVersion , revision ) . build ( ) ; }

Target:
private static libcore.tzdata.update2.TimeZoneDistro createValidTimeZoneDistro ( java.lang.String rulesVersion , int revision ) throws java.lang.Exception { return libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneDistroBuilder ( rulesVersion , revision ) . build ( ) ; }
Source:
private void printTypeOfOperandStack ( ) { printer.print ( ( ( " |__STACK: " + ( inference.getOperandStackAsString ( ) ) ) + "\n" ) ) ; printer.print ( ( ( " |__LOCAL: " + ( inference.getLocalsAsString ( ) ) ) + "\n" ) ) ; }

Target:
public void visitIntInsn ( int opcode , int operand ) { printer.visitIntInsn ( opcode , operand ) ; printTypeOfOperandStackTop ( ) ; super . visitIntInsn ( opcode , operand ) ; }
Source:
protected native java.lang.Object socketGetOption ( int opt ) throws java.net.SocketException ;

Target:
protected java.lang.Object socketGetOption ( int opt ) throws java.net.SocketException { if ( isClosed ( ) ) { throw new java.net.SocketException ( "Socket closed" ) ; } return libcore.io.IoBridge.getSocketOption ( fd , opt ) ; }
Source:
public void onDisconnect ( ) { com.android.services.telephony.Log.v ( this , "onDisconnect" ) ; hangup ( android.telephony.DisconnectCause.LOCAL ) ; }

Target:
public boolean isCarrierVideoConferencingSupported ( ) { return mIsCarrierVideoConferencingSupported ; }
Source:
public com.android.ahat.DocString append ( java.lang.String format , java.lang.Object ... args ) { java.lang.String text = java.lang.String.format ( format , args ) ; mStringBuilder.append ( com.google.common.html.HtmlEscapers.htmlEscaper ( ) . escape ( text ) ) ; return this ; }

Target:
public com.android.ahat.DocString appendFormat ( java.lang.String format , java.lang.Object ... args ) { append ( java.lang.String.format ( format , args ) ) ; return this ; }
Source:
private static synchronized void setHeadsetService ( com.android.bluetooth.hfp.HeadsetService instance ) { com.android.bluetooth.hfp.HeadsetService.logD ( ( "setHeadsetService(): set to: " + instance ) ) ; com.android.bluetooth.hfp.HeadsetService.sHeadsetService = instance ; }

Target:
private static synchronized void setHeadsetService ( com.android.bluetooth.hfp.HeadsetService instance ) { if ( com.android.bluetooth.hfp.HeadsetService.DBG ) { android.util.Log.d ( com.android.bluetooth.hfp.HeadsetService.TAG , ( "setHeadsetService(): set to: " + instance ) ) ; } com.android.bluetooth.hfp.HeadsetService.sHeadsetService = instance ; }
Source:
private int getDexFlags ( android.content.pm.PackageParser.Package pkg , java.lang.String compilerFilter ) { return getDexFlags ( pkg.applicationInfo , compilerFilter ) ; }

Target:
private int getDexFlags ( android.content.pm.PackageParser.Package pkg , java.lang.String compilerFilter , boolean bootComplete ) { return getDexFlags ( pkg.applicationInfo , compilerFilter , bootComplete ) ; }
Source:
public int getDefaultSim ( ) { return android.telephony.SubscriptionManager.getSlotId ( android.telephony.SubscriptionManager.getDefaultSubscriptionId ( ) ) ; }

Target:
public int getDefaultSim ( ) { return android.telephony.SubscriptionManager.getSlotIndex ( android.telephony.SubscriptionManager.getDefaultSubscriptionId ( ) ) ; }
Source:
public final void autoFocus ( android.hardware.Camera.AutoFocusCallback cb ) { mAutoFocusCallback = cb ; native_autoFocus ( ) ; }

Target:
public final void autoFocus ( android.hardware.Camera.AutoFocusCallback cb ) { synchronized ( mAutoFocusCallbackLock ) { mAutoFocusCallback = cb ; } native_autoFocus ( ) ; }
Source:
protected com.android.sched.vfs.InputRootVDir getTypeDexDir ( ) { return ( ( com.android.sched.vfs.InputRootVDir ) ( com.android.sched.util.config.ThreadConfig.get ( Options.TYPEDEX_DIR ) ) ) ; }

Target:
protected com.android.sched.vfs.InputRootVDir getTypeDexDir ( ) { return ( ( com.android.sched.vfs.InputRootVDir ) ( com.android.sched.util.config.ThreadConfig.get ( Options.INTERMEDIATE_DEX_DIR ) ) ) ; }
Source:
public static java.net.InetAddress [ ] getAllByName ( java.lang.String host ) throws java.net.UnknownHostException { return java.net.InetAddress.impl.lookupAllHostAddr ( host , java.net.InetAddress.NETID_UNSET ) ; }

Target:
public static java.net.InetAddress [ ] getAllByName ( java.lang.String host ) throws java.net.UnknownHostException { return java.net.InetAddress.impl.lookupAllHostAddr ( host , java.net.InetAddress.NETID_UNSET ) . clone ( ) ; }
Source:
public void enter ( ) { android.telecom.Log.i ( com.android.server.telecom.CallAudioModeStateMachine.LOG_TAG , "Audio focus entering TONE/HOLDING state" ) ; mAudioManager.requestAudioFocusForCall ( AudioManager.STREAM_VOICE_CALL , AudioManager.AUDIOFOCUS_GAIN_TRANSIENT ) ; mAudioManager.setMode ( mMostRecentMode ) ; mCallAudioManager.setCallAudioRouteFocusState ( CallAudioRouteStateMachine.HAS_FOCUS ) ; }

Target:
public void enter ( ) { android.telecom.Log.i ( com.android.server.telecom.CallAudioModeStateMachine.LOG_TAG , "Audio focus entering TONE/HOLDING state" ) ; mAudioManager.requestAudioFocusForCall ( AudioManager.STREAM_VOICE_CALL , AudioManager.AUDIOFOCUS_GAIN_TRANSIENT ) ; mAudioManager.setMode ( mMostRecentMode ) ; mCallAudioManager.setCallAudioRouteFocusState ( CallAudioRouteStateMachine.ACTIVE_FOCUS ) ; }
Source:
public void test_plusYears_long_negative ( ) { java.time.LocalDate t = TEST_2007_07_15.plusYears ( ( - 1 ) ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2006 , 7 , 15 ) ) ; }

Target:
public void test_plusYears_long_negative ( ) { java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.plusYears ( ( - 1 ) ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2006 , 7 , 15 ) ) ; }
Source:
public void begin ( long size ) { downstream.begin ( ( - 1 ) ) ; }

Target:
public void accept ( P_OUT u ) { action.accept ( u ) ; downstream.accept ( u ) ; }
Source:
static int [ ] asInts ( byte [ ] x ) { int [ ] z = new int [ 4 ] ; org.bouncycastle.crypto.util.Pack.bigEndianToInt ( x , 0 , z ) ; return z ; }

Target:
public static int [ ] asInts ( byte [ ] x ) { int [ ] z = new int [ 4 ] ; org.bouncycastle.util.Pack.bigEndianToInt ( x , 0 , z ) ; return z ; }
Source:
public com.android.tools.lint.TypeDescriptor getContainingClass ( ) { com.android.tools.lint.TypeDescriptor typeDescriptor = com.android.tools.lint.EcjParser.getTypeDescriptor ( mBinding.declaringClass ) ; assert typeDescriptor != null ; return typeDescriptor ; }

Target:
public int getModifiers ( ) { return mBinding.getAccessFlags ( ) ; }
Source:
private void startBufferedWriteAlarm ( ) { if ( ! ( mBufferedWritePending ) ) { mAlarmManager.set ( AlarmManager.ELAPSED_REALTIME_WAKEUP , ( ( mClock.getElapsedSinceBootMillis ( ) ) + ( com.android.server.wifi.WifiConfigStoreNew.BUFFERED_WRITE_ALARM_INTERVAL_MS ) ) , com.android.server.wifi.WifiConfigStoreNew.BUFFERED_WRITE_ALARM_TAG , mBufferedWriteListener , mEventHandler ) ; mBufferedWritePending = true ; } }

Target:
private void startBufferedWriteAlarm ( ) { if ( ! ( mBufferedWritePending ) ) { mAlarmManager.set ( AlarmManager.ELAPSED_REALTIME_WAKEUP , ( ( mClock.getElapsedSinceBootMillis ( ) ) + ( com.android.server.wifi.WifiConfigStore.BUFFERED_WRITE_ALARM_INTERVAL_MS ) ) , com.android.server.wifi.WifiConfigStore.BUFFERED_WRITE_ALARM_TAG , mBufferedWriteListener , mEventHandler ) ; mBufferedWritePending = true ; } }
Source:
public void setUp ( ) throws java.lang.Exception { mSnapshot = new com.android.tools.perflib.heap.Snapshot ( new com.android.tools.perflib.heap.io.InMemoryBuffer ( 10 ) ) ; mSnapshot.setHeapTo ( 13 , "testHeap" ) ; mDummyClass.setFields ( new com.android.tools.perflib.heap.Field [ 0 ] ) ; mSnapshot.addClass ( 42 , mDummyClass ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mSnapshot = new com.android.tools.perflib.heap.analysis.Snapshot ( new com.android.tools.perflib.heap.io.InMemoryBuffer ( 10 ) ) ; mSnapshot.setHeapTo ( 13 , "testHeap" ) ; mDummyClass.setFields ( new com.android.tools.perflib.heap.analysis.Field [ 0 ] ) ; mSnapshot.addClass ( 42 , mDummyClass ) ; }
Source:
native void rsnScriptBindAllocation ( long con , long script , long alloc , int slot ) ;

Target:
native void rsnScriptSetVarV ( long con , long id , int slot , byte [ ] val , boolean mUseInc ) ;
Source:
public boolean enqueue ( ) { java.lang.Runtime.getRuntime ( ) . gc ( ) ; return super . enqueue ( ) ; }

Target:
public void test_gcInteraction_Runtime ( ) { check_gcInteraction ( ( ) -> { java.lang.Runtime.getRuntime ( ) . gc ( ) ; } ) ; }
Source:
public static java.lang.String getOldCall ( @ com.android.annotations.NonNull java.lang.String errorMessage ) { return com.android.tools.lint.checks.AppCompatCallDetector.getMessagePart ( errorMessage , 2 ) ; }

Target:
public static java.lang.String getOldCall ( @ com.android.annotations.NonNull java.lang.String errorMessage , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.TextFormat format ) { return com.android.tools.lint.checks.AppCompatCallDetector.getMessagePart ( errorMessage , 2 , format ) ; }
Source:
public void test_dropAnySource_twice_IPv4 ( ) throws java.lang.Exception { test_dropAnySource_twice ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 ) ; }

Target:
public void test_dropSourceSpecific_twice_IPv4 ( ) throws java.lang.Exception { test_dropSourceSpecific_twice ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv4_1 , ipv4NetworkInterface ) ; }
Source:
protected E standardPollLast ( ) { return poll ( delegate ( ) . descendingIterator ( ) ) ; }

Target:
protected E standardPollLast ( ) { return com.google.common.collect.Iterators.pollNext ( descendingIterator ( ) ) ; }
Source:
public static org.junit.runner.Description createTestDescription ( java.lang.Class < ? > clazz , java.lang.String name ) { return org.junit.runner.Description.createTestDescription ( clazz , name , new java.lang.annotation.Annotation [ 0 ] ) ; }

Target:
public static org.junit.runner.Description createTestDescription ( java.lang.String className , java.lang.String name , java.lang.annotation.Annotation ... annotations ) { return new org.junit.runner.Description ( null , org.junit.runner.Description.formatDisplayName ( name , className ) , annotations ) ; }
Source:
public com.android.ims.internal.IImsMultiEndpoint getMultiEndpointInterface ( int sessionId ) throws android.os.RemoteException { checkBinderConnection ( ) ; return getServiceInterface ( mBinder ) . getMultiEndpointInterface ( sessionId ) ; }

Target:
public com.android.ims.internal.IImsEcbm getEcbmInterface ( ) throws android.os.RemoteException { checkBinderConnection ( ) ; return getServiceInterface ( mBinder ) . getEcbmInterface ( android.telephony.ims.ImsServiceProxyCompat.SERVICE_ID ) ; }
Source:
public void testV1SignedAttrsNotInDerOrder ( ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerified ( verify ( "v1-only-with-signed-attrs-wrong-order.apk" ) ) ; }

Target:
public void testV1SignedAttrsNotInDerOrder ( ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerified ( verify ( "v1-only-with-signed-attrs-wrong-order.apk" ) ) ; com.android.apksig.ApkVerifierTest.assertVerified ( verify ( "v1-only-with-signed-attrs-signerInfo1-wrong-order-signerInfo2-good.apk" ) ) ; }
Source:
private android.content.Intent getEditContactIntent ( ) { return com.android.contacts.editor.EditorIntents.createCompactEditContactIntent ( mContactData.getLookupUri ( ) , ( mHasComputedThemeColor ? new com.android.contacts.common.util.MaterialColorMapUtils.MaterialPalette ( mColorFilterColor , mStatusBarColor ) : null ) , mContactData.getPhotoId ( ) ) ; }

Target:
private android.content.Intent getEditContactIntent ( ) { return com.android.contacts.editor.EditorIntents.createEditContactIntent ( this , mContactData.getLookupUri ( ) , ( mHasComputedThemeColor ? new com.android.contacts.util.MaterialColorMapUtils.MaterialPalette ( mColorFilterColor , mStatusBarColor ) : null ) , mContactData.getPhotoId ( ) ) ; }
Source:
public int getFrameworkNetworkId ( int supplicantNetworkId ) { return mWifiSupplicantControl.getFrameworkNetworkId ( supplicantNetworkId ) ; }

Target:
public int getFrameworkNetworkId ( int supplicantNetworkId ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return supplicantNetworkId ; } else { return mWifiSupplicantControl.getFrameworkNetworkId ( supplicantNetworkId ) ; } }
Source:
public void setCallback ( com.android.ims.internal.IImsVideoCallCallback callback ) { mProviderHandler.obtainMessage ( com.android.ims.internal.ImsVideoCallProvider.MSG_SET_CALLBACK , callback ) . sendToTarget ( ) ; }

Target:
public void setCallback ( com.android.ims.internal.IImsVideoCallCallback callback ) { mProviderHandler.obtainMessage ( android.telephony.ims.ImsVideoCallProvider.MSG_SET_CALLBACK , callback ) . sendToTarget ( ) ; }
Source:
public void setCallerDisplayName ( java.lang.String callId , java.lang.String callerDisplayName , int presentation ) { findConnectionForAction ( callId , "setCallerDisplayName" ) . setCallerDisplayName ( callerDisplayName , presentation ) ; }

Target:
public void setCallerDisplayName ( java.lang.String callId , java.lang.String callerDisplayName , int presentation , android.telecom.Logging.Session.Info sessionInfo ) { findConnectionForAction ( callId , "setCallerDisplayName" ) . setCallerDisplayName ( callerDisplayName , presentation ) ; }
Source:
public void testMinSdkVersion ( ) { assertEquals ( "7" , mManifestTestApp.getApiLevelRequirement ( ) ) ; }

Target:
public void testMinSdkVersion ( ) { assertEquals ( 7 , mManifestTestApp.getMinSdkVersion ( ) ) ; }
Source:
native void rsnScriptForEach ( long con , long id , int slot , long ain , long aout ) ;

Target:
native long rsnScriptKernelIDCreate ( long con , long sid , int slot , int sig , boolean mUseInc ) ;
Source:
public void deleteAllInterfaces ( ) { if ( com.android.server.wifi.nan.WifiNanDataPathStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.nan.WifiNanDataPathStateManager.TAG , "deleteAllInterfaces" ) ; for ( java.lang.String name : mInterfaces ) { mMgr.deleteDataPathInterface ( name ) ; } }

Target:
public void deleteAllInterfaces ( ) { if ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.TAG , "deleteAllInterfaces" ) ; for ( java.lang.String name : mInterfaces ) { mMgr.deleteDataPathInterface ( name ) ; } }
Source:
public void run ( ) { requestImageRef ( msg ) ; }

Target:
public java.lang.String call ( ) { return getUrl ( ) ; }
Source:
public void test4 ( ) throws java.lang.Exception { assertEquals ( ( "wrongparams5.xml:15: Warning: Invalid layout param \'layout_alignParentLeft\' (included from within a LinearLayout in layout/wrongparams6.xml)\n" + "wrongparams5.xml:8: Warning: Invalid layout param 'layout_alignParentTop' (included from within a LinearLayout in layout/wrongparams6.xml)" ) , 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" ) + "0 errors, 2 warnings\n" ) + "" ) ) , lintProject ( "res/layout/wrongparams5.xml" , "res/layout/wrongparams6.xml" ) ) ; }
Source:
public void testForName_DuplicateWithBuiltInCharset ( ) throws java.lang.Exception { assertFalse ( ( ( java.nio.charset.Charset.forName ( "us-ascii" ) ) instanceof tests.api.java.nio.charset.CharsetTest.MockCharset ) ) ; assertFalse ( ( ( java.nio.charset.Charset.availableCharsets ( ) . get ( "us-ascii" ) ) instanceof tests.api.java.nio.charset.CharsetTest.MockCharset ) ) ; }

Target:
public void testForName_DuplicateWithBuiltInCharset ( ) throws java.lang.Exception { assertFalse ( ( ( java.nio.charset.Charset.forName ( "us-ascii" ) ) instanceof org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset ) ) ; assertFalse ( ( ( java.nio.charset.Charset.availableCharsets ( ) . get ( "us-ascii" ) ) instanceof org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset ) ) ; }
Source:
private void displayAvdList ( ) { try { com.android.sdklib.internal.avd.AvdManager avdManager = new com.android.sdklib.internal.avd.AvdManager ( mSdkManager , mSdkLog ) ; displayAvdList ( avdManager ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } }

Target:
private void displayAvdList ( ) { try { com.android.sdklib.internal.avd.AvdManager avdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager , mSdkLog ) ; displayAvdList ( avdManager ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } }
Source:
public static int skip ( java.util.Iterator < ? > iterator , int numberToSkip ) { return com.google.common.collect.Iterators.advance ( iterator , numberToSkip ) ; }

Target:
static < T > T pollNext ( java.util.Iterator < T > iterator ) { if ( iterator.hasNext ( ) ) { T result = iterator.next ( ) ; iterator.remove ( ) ; return result ; } else { return null ; } }
Source:
public void recomputeLayout ( ) { mGraphicalEditor.recomputeLayout ( ) ; }

Target:
protected void xmlModelChanged ( org.w3c.dom.Document xml_doc ) { initUiRootNode ( false ) ; mUiRootNode.loadFromXmlNode ( xml_doc ) ; super . xmlModelChanged ( xml_doc ) ; if ( ( mGraphicalEditor ) != null ) { mGraphicalEditor.onXmlModelChanged ( ) ; } }
Source:
public void testNoWarningBeforeBuild ( ) throws java.lang.Exception { mScopes = null ; assertEquals ( "No warnings." , lintProject ( "bytecode/AndroidManifestWrongRegs.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" ) ) ; }

Target:
public void testNoWarningBeforeBuild ( ) throws java.lang.Exception { mScopes = null ; mEnabled = com.google.common.collect.Sets.newHashSet ( com.android.tools.lint.checks.MissingClassDetector.MISSING , com.android.tools.lint.checks.MissingClassDetector.INSTANTIATABLE , com.android.tools.lint.checks.MissingClassDetector.INNERCLASS ) ; assertEquals ( "No warnings." , lintProject ( "bytecode/AndroidManifestWrongRegs.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" ) ) ; }
Source:
protected void onPause ( ) { if ( ( isDestroyed ( ) ) && ( ! ( mClicked ) ) ) { setResult ( com.android.settings.RESULT_CANCELED ) ; } super . onDestroy ( ) ; }

Target:
protected void onPause ( ) { if ( ! ( mClicked ) ) { finish ( ) ; } super . onPause ( ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { mLibraryDependencies.setEnabled ( ( ! ( mIsLibrary.getSelection ( ) ) ) ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { updateValidity ( ) ; }
Source:
public com.android.apksig.ApkVerifier.Builder setCheckedPlatformVersions ( int minSdkVersion , int maxSdkVersion ) { mMinSdkVersion = minSdkVersion ; mMaxSdkVersion = maxSdkVersion ; return this ; }

Target:
public com.android.apksig.ApkVerifier.Builder setMinCheckedPlatformVersion ( int minSdkVersion ) { mMinSdkVersion = minSdkVersion ; return this ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.aget_short.d.T_aget_short_1 t = new dot.junit.opcodes.aget_short.d.T_aget_short_1 ( ) ; short [ ] arr = new short [ 2 ] ; try { t.run ( arr , 2 ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aget_short.d.T_aget_short_1" , java.lang.ArrayIndexOutOfBoundsException.class , new short [ 2 ] , 2 ) ; }
Source:
public ScriptGroup2.Closure asyncLaunch ( android.renderscript.ScriptGroup2.Builder builder , java.lang.Object in , android.renderscript.Type outputType ) { return builder.addKernel ( getKernelID ( ) , outputType , new android.renderscript.ScriptGroup2.Binding ( s.getFieldID_in_alloc ( ) , in ) ) ; }

Target:
public ScriptGroup.Closure asyncLaunch ( android.renderscript.ScriptGroup.Builder2 builder , java.lang.Object in , android.renderscript.Type outputType ) { return builder.addKernel ( getKernelID ( ) , outputType , new android.renderscript.ScriptGroup.Binding ( s.getFieldID_in_alloc ( ) , in ) ) ; }
Source:
public static native void SSL_use_PrivateKey ( int ssl , byte [ ] pkcs8EncodedPrivateKey ) ;

Target:
public static native void SSL_use_PKCS8_PrivateKey_for_tls_channel_id ( long ssl , byte [ ] pkcs8EncodedPrivateKey ) throws javax.net.ssl.SSLException ;
Source:
public void setInitialAttachApn ( java.lang.String apn , java.lang.String protocol , int authType , java.lang.String username , java.lang.String password , android.os.Message result ) { }

Target:
public void setUnsolResponseFilter ( int filter , android.os.Message result ) { }
Source:
java.lang.Class < ? > [ ] argumentTypes ( ) default { } ;

Target:
java.lang.Class < ? > [ ] parameterTypes ( ) default { java.lang.invoke.MethodHandles.Lookup.class , java.lang.String.class , java.lang.invoke.MethodType.class } ;
Source:
public void enter ( ) { log ( ( "Enter Disconnected: " + ( getCurrentMessage ( ) . what ) ) ) ; }

Target:
public void enter ( ) { log ( ( "Enter Disconnected: " + ( getCurrentMessage ( ) . what ) ) ) ; removeMessages ( com.android.bluetooth.a2dp.A2dpSinkStateMachine.EVENT_TYPE_REQUEST_AUDIO_FOCUS ) ; com.android.bluetooth.a2dp.A2dpSinkStateMachine.mAvrcpPlaySent = false ; }
Source:
public static java.io.File getJackTestsWithJackFolder ( @ javax.annotation.Nonnull java.lang.String testName ) { return com.android.jack.TestTools.getFromAndroidTree ( ( ( ( ( com.android.jack.TestTools.JACK_TESTS_PATH ) + ( com.android.jack.TestTools.JACK_PACKAGE ) ) + testName ) + "/jack" ) ) ; }

Target:
public static java.io.File getJackTestFolder ( @ javax.annotation.Nonnull java.lang.String testName ) { return new java.io.File ( com.android.jack.test.TestsProperties.getJackRootDir ( ) , ( ( ( com.android.jack.TestTools.JACK_TESTS_PATH ) + ( com.android.jack.TestTools.JACK_PACKAGE ) ) + testName ) ) ; }
Source:
public void cdmaOtaProvisionStatus ( int indicationType , int var2 ) { }

Target:
public void enterEmergencyCallbackMode ( int indicationType ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_ENTER_EMERGENCY_CALLBACK_MODE ) ; if ( ( mRil.mEmergencyCallbackModeRegistrant ) != null ) { mRil.mEmergencyCallbackModeRegistrant.notifyRegistrant ( ) ; } }
Source:
public java.util.List < com.android.sched.util.codec.ValueDescription > getValueDescriptions ( ) { return java.util.Collections.< com.android.sched.util.codec.ValueDescription > emptyList ( ) ; }

Target:
public com.android.sched.util.codec.StringCodec < ? extends T > [ ] getCodecs ( ) { return codecList.toArray ( new com.android.sched.util.codec.StringCodec [ codecList.size ( ) ] ) ; }
Source:
public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { return isGenericUpdateFor ( existingDesc ) ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newPlatformTool ( @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_PLATFORM_TOOLS ) ; p.mFullRevision = revision ; return p ; }
Source:
void reset ( ) { if ( ( com.android.bluetooth.btservice.RemoteDevices.mSdpTracker ) != null ) com.android.bluetooth.btservice.RemoteDevices.mSdpTracker.clear ( ) ; if ( ( mDevices ) != null ) mDevices.clear ( ) ; if ( ( mDeviceQueue ) != null ) mDeviceQueue.clear ( ) ; }

Target:
void reset ( ) { if ( ( com.android.bluetooth.btservice.RemoteDevices.sSdpTracker ) != null ) com.android.bluetooth.btservice.RemoteDevices.sSdpTracker.clear ( ) ; if ( ( mDevices ) != null ) mDevices.clear ( ) ; if ( ( mDeviceQueue ) != null ) mDeviceQueue.clear ( ) ; }
Source:
private void getNetworkInterface ( ) { try { mNetworkInterface = java.net.NetworkInterface.getByName ( mInterfaceName ) ; } catch ( java.net.SocketException | java.lang.NullPointerException e ) { android.util.Log.e ( mTag , "ALERT: Failed to get interface object: " , e ) ; } }

Target:
private void logError ( java.lang.String fmt , java.lang.Object ... args ) { final java.lang.String msg = "ERROR " + ( java.lang.String.format ( fmt , args ) ) ; android.util.Log.e ( mTag , msg ) ; mLocalLog.log ( msg ) ; }
Source:
public void onCallPlacedFromSearch ( ) { closeSearch ( false ) ; }

Target:
public void onCallPlacedFromSearch ( ) { closeSearchOnPause = true ; }
Source:
void enqueueEvent ( java.lang.Object event , com.google.common.eventbus.EventHandler handler ) { eventsToDispatch.offer ( new com.google.common.eventbus.EventWithHandler ( event , handler ) ) ; }

Target:
void enqueueEvent ( java.lang.Object event , com.google.common.eventbus.EventSubscriber subscriber ) { eventsToDispatch.offer ( new com.google.common.eventbus.EventBus.EventWithSubscriber ( event , subscriber ) ) ; }
Source:
static java.lang.Object getFileKey ( java.nio.file.Path file ) throws java.io.IOException { return java.nio.file.Files.readAttributes ( file , java.nio.file.attribute.BasicFileAttributes.class , java.nio.file.LinkOption.NOFOLLOW_LINKS ) . fileKey ( ) ; }

Target:
java.nio.file.Path getPathInTestDir ( java.lang.String path ) { return java.nio.file.Paths.get ( getTestDir ( ) , path ) ; }
Source:
public synchronized void merge ( @ javax.annotation.Nonnull com.android.sched.util.log.stats.Statistic statistic ) { com.android.sched.util.log.stats.PercentImpl percent = ( ( com.android.sched.util.log.stats.PercentImpl ) ( statistic ) ) ; synchronized ( percent ) { this . numTrue += percent.numTrue ; this . total += percent.total ; } }

Target:
public synchronized void merge ( @ javax.annotation.Nonnull com.android.sched.util.log.stats.Statistic statistic ) { com.android.sched.util.log.stats.PercentImpl percent = ( ( com.android.sched.util.log.stats.PercentImpl ) ( statistic ) ) ; synchronized ( percent ) { this . trueCount += percent.trueCount ; this . total += percent.total ; } }
Source:
public void setVideoState ( java.lang.String connectionId , int videoState ) { mHandler.obtainMessage ( android.telecom.ConnectionServiceAdapterServant.MSG_SET_VIDEO_STATE , videoState , 0 , connectionId ) . sendToTarget ( ) ; }

Target:
public void setVideoState ( java.lang.String connectionId , int videoState , android.telecom.Logging.Session.Info sessionInfo ) { mHandler.obtainMessage ( android.telecom.ConnectionServiceAdapterServant.MSG_SET_VIDEO_STATE , videoState , 0 , connectionId ) . sendToTarget ( ) ; }
Source:
public java.lang.String getEsn ( ) { android.util.Log.e ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "[GSMPhone] getEsn() is a CDMA method" ) ; return "0" ; }

Target:
public java.lang.String getMeid ( ) { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "[GSMPhone] getMeid() is a CDMA method" ) ; return "0" ; }
Source:
public void closeSupplicantConnection ( ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { localLog ( ( ( mInterfacePrefix ) + "closeSupplicantConnection" ) ) ; com.android.server.wifi.WifiNative.closeSupplicantConnectionNative ( ) ; } } }

Target:
public void closeSupplicantConnection ( ) { if ( ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) && ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) ) { } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { localLog ( ( ( mInterfacePrefix ) + "closeSupplicantConnection" ) ) ; com.android.server.wifi.WifiNative.closeSupplicantConnectionNative ( ) ; } } }
Source:
public static int getExponent ( float f ) { return ( ( ( java.lang.Float.floatToRawIntBits ( f ) ) & ( sun.misc.FloatConsts.EXP_BIT_MASK ) ) > > ( ( sun.misc.FloatConsts.SIGNIFICAND_WIDTH ) - 1 ) ) - ( sun.misc.FloatConsts.EXP_BIAS ) ; }

Target:
public static int getExponent ( float f ) { return java.lang.Math.getExponent ( f ) ; }
Source:
public void setMinSdkVersionString ( java.lang.String minSdkVersion ) { mMinSdkVersionString = minSdkVersion ; if ( ( mMinSdkVersionString ) != null ) { try { mMinSdkVersion = java.lang.Integer.parseInt ( mMinSdkVersionString ) ; } catch ( java.lang.NumberFormatException e ) { mMinSdkVersion = 0 ; } } }

Target:
public void setMinSdkVersionString ( java.lang.String minSdkVersion ) { mMinSdkVersionString = minSdkVersion ; if ( ( mMinSdkVersionString ) != null ) { try { mMinSdkVersion = java.lang.Integer.parseInt ( mMinSdkVersionString ) ; } catch ( java.lang.NumberFormatException e ) { mMinSdkVersion = com.android.sdklib.xml.ManifestData.MIN_SDK_CODENAME ; } } }
Source:
public void deactivated ( ) { }

Target:
public void deactivated ( ) { mActive = false ; }
Source:
public java.lang.String getName ( ) { return java.lang.String.format ( java.util.Locale.US , "%s.%s: %s" , className , methodName , signature ) ; }

Target:
public java.lang.String getFullName ( ) { if ( ( mFullName ) == null ) { mFullName = java.lang.String.format ( java.util.Locale.US , "%s.%s: %s" , className , methodName , signature ) ; } return mFullName ; }
Source:
public void focusGained ( org.eclipse.swt.events.FocusEvent event ) { openIfNecessary ( ) ; }

Target:
public void run ( ) { if ( ! ( isProposalPopupOpen ( ) ) ) { openProposalPopup ( ) ; } }
Source:
synchronized void nAllocationRead ( int id , byte [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }

Target:
synchronized void nAllocationRead ( int id , java.lang.Object d , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationRead ( mContext , id , d , dt.mID ) ; }
Source:
public boolean isBoundary ( int offset ) { return libcore.icu.NativeBreakIterator.isBoundaryImpl ( this . address , offset ) ; }

Target:
public int preceding ( int offset ) { return libcore.icu.NativeBreakIterator.precedingImpl ( this . address , this . string , offset ) ; }
Source:
public static com.android.jack.Options buildCommandLineArgs ( @ javax.annotation.Nonnull java.io.File fileOrSourcelist ) throws java.io.IOException { return com.android.jack.TestTools.buildCommandLineArgs ( fileOrSourcelist , null ) ; }

Target:
public static com.android.jack.Options buildCommandLineArgs ( @ javax.annotation.Nonnull java.io.File fileOrSourcelist ) throws java.io.IOException { return com.android.jack.TestTools.buildCommandLineArgs ( fileOrSourcelist , java.util.Collections.< java.io.File > emptyList ( ) ) ; }
Source:
public static int getExponent ( float f ) { return sun.misc.FpUtils.getExponent ( f ) ; }

Target:
public static int getExponent ( float f ) { return java.lang.Math.getExponent ( f ) ; }
Source:
public static long parseDateAsEpoch ( java.lang.String dateStr ) { try { return org.apache.http.impl.cookie.DateUtils.parseDate ( dateStr ) . getTime ( ) ; } catch ( org.apache.http.impl.cookie.DateParseException e ) { return 0 ; } }

Target:
public static long parseDateAsEpoch ( java.lang.String dateStr ) { try { return com.android.volley.toolbox.HttpHeaderParser.newRfc1123Formatter ( ) . parse ( dateStr ) . getTime ( ) ; } catch ( java.text.ParseException e ) { com.android.volley.VolleyLog.e ( e , "Unable to parse dateStr: %s, falling back to 0" , dateStr ) ; return 0 ; } }
Source:
public void onComplete ( int resultCode , byte [ ] info ) { callback.onComplete ( resultCode , info ) ; }

Target:
public void onComplete ( int resultCode ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , null ) ) ; }
Source:
public int size ( ) { return set.size ( ) ; }

Target:
public void clear ( ) { backingSet ( ) . clear ( ) ; }
Source:
public static void $opt$setIntField ( Main m ) { m.intField = 0 ; }

Target:
public static void $opt$noinline$setIntField ( Main m ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } m.intField = 0 ; }
Source:
public void onHostCardEmulationDeactivated ( ) ;

Target:
public void onHostCardEmulationDeactivated ( int technology ) ;
Source:
protected void writeStyleSheet ( ) throws java.io.IOException { if ( com.android.tools.lint.HtmlReporter.USE_HOLO_STYLE ) { mWriter.write ( ( "<link rel=\"stylesheet\" type=\"text/css\" " + "href=\"http://fonts.googleapis.com/css?family=Roboto\">" ) ) ; } java.net.URL cssUrl = com.android.tools.lint.HtmlReporter.class . getResource ( com.android.tools.lint.HtmlReporter.CSS ) ; if ( mSimpleFormat ) { mWriter.write ( "<style>\n" ) ; java.io.InputStream input = cssUrl.openStream ( ) ; byte [ ] bytes = com.google.common.io.ByteStreams.toByteArray ( input ) ; com.google.common.io.Closeables.closeQuietly ( input ) ; java.lang.String css = new java.lang.String ( bytes , com.google.common.base.Charsets.UTF_8 ) ; mWriter.write ( css ) ; mWriter.write ( "</style>\n" ) ; } else { java.lang.String ref = addLocalResources ( cssUrl ) ; if ( ref != null ) { mWriter.write ( ( ( "<link rel=\"stylesheet\" type=\"text/css\" href=\"" + ref ) + "\">\n" ) ) ; } } }

Target:
protected void writeStyleSheet ( ) throws java.io.IOException { if ( com.android.tools.lint.HtmlReporter.USE_HOLO_STYLE ) { mWriter.write ( ( "<link rel=\"stylesheet\" type=\"text/css\" " + "href=\"http://fonts.googleapis.com/css?family=Roboto\">" ) ) ; } java.net.URL cssUrl = com.android.tools.lint.HtmlReporter.class . getResource ( com.android.tools.lint.HtmlReporter.CSS ) ; if ( mSimpleFormat ) { mWriter.write ( "<style>\n" ) ; @ java.lang.SuppressWarnings ( value = "resource" ) java.io.InputStream input = cssUrl.openStream ( ) ; byte [ ] bytes = com.google.common.io.ByteStreams.toByteArray ( input ) ; com.google.common.io.Closeables.closeQuietly ( input ) ; java.lang.String css = new java.lang.String ( bytes , com.google.common.base.Charsets.UTF_8 ) ; mWriter.write ( css ) ; mWriter.write ( "</style>\n" ) ; } else { java.lang.String ref = addLocalResources ( cssUrl ) ; if ( ref != null ) { mWriter.write ( ( ( "<link rel=\"stylesheet\" type=\"text/css\" href=\"" + ref ) + "\">\n" ) ) ; } } }
Source:
public android.view.inputmethod.InputMethodSubtype getCurrentInputMethodSubtype ( ) { synchronized ( mH ) { try { return mService.getCurrentInputMethodSubtype ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.view.inputmethod.InputMethodManager.TAG , ( "IME died: " + ( mCurId ) ) , e ) ; return null ; } } }

Target:
public boolean setCurrentInputMethodSubtype ( android.view.inputmethod.InputMethodSubtype subtype ) { synchronized ( mH ) { try { return mService.setCurrentInputMethodSubtype ( subtype ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }
Source:
private void setProjectInfo ( java.lang.String projectName , java.lang.String gradleVersion ) { this . projectName = projectName ; this . gradleVersion = gradleVersion ; }

Target:
private void setProjectInfo ( java.lang.String projectName , java.lang.String gradleVersion , com.android.build.gradle.DeviceTest.TestType testType ) { this . projectName = projectName ; this . gradleVersion = gradleVersion ; this . testType = testType ; }
Source:
public void registerScanner ( android.bluetooth.le.IScannerCallback callback ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.registerScanner ( callback ) ; }

Target:
public void registerScanner ( android.bluetooth.le.IScannerCallback callback , android.os.WorkSource workSource ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.registerScanner ( callback , workSource ) ; }
Source:
private native void startAdvertisingSetNative ( android.bluetooth.le.AdvertisingSetParameters parameters , byte [ ] advertiseData , byte [ ] scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , byte [ ] periodicData , int duration , int maxExtAdvEvents , int reg_id ) ;

Target:
private native void startAdvertisingSetNative ( android.bluetooth.le.AdvertisingSetParameters parameters , byte [ ] advertiseData , byte [ ] scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , byte [ ] periodicData , int duration , int maxExtAdvEvents , int regId ) ;
Source:
public java.lang.String [ ] getLocalSupportedSignatureAlgorithms ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public java.lang.String [ ] getLocalSupportedSignatureAlgorithms ( ) { return new java.lang.String [ ] { "SHA512withRSA" , "SHA512withECDSA" , "SHA384withRSA" , "SHA384withECDSA" , "SHA256withRSA" , "SHA256withECDSA" , "SHA224withRSA" , "SHA224withECDSA" , "SHA1withRSA" , "SHA1withECDSA" } ; }
Source:
public void test_multicastLoopOption_IPv6 ( ) throws java.lang.Exception { test_joinAnySource_multicastLoopOption ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 ) ; }

Target:
public void test_joinAnySource_multicastLoopOption_IPv6 ( ) throws java.lang.Exception { test_joinAnySource_multicastLoopOption ( ipv6networkInterfaces , libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 ) ; }
Source:
public void onFinished ( int status ) { android.util.Log.i ( libcore.tzdata.prototype_updater.RulesCheckReceiver.TAG , ( "onFinished: Finished uninstall: " + status ) ) ; }

Target:
public void onFinished ( int status ) { android.util.Log.i ( libcore.tzdata.prototype_updater.RulesCheckReceiver.TAG , ( "Finished install: " + status ) ) ; }
Source:
public void onConnectFail ( int reason ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "reason" , reason ) ; mEventFacade.postEvent ( "WifiNanOnConnectFail" , mResults ) ; }

Target:
public void onConnectFail ( int reason ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "sessionId" , mSessionId ) ; mResults.putInt ( "reason" , reason ) ; mEventFacade.postEvent ( "WifiNanOnConnectFail" , mResults ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { Main.negInt ( ) ; Main.$opt$InplaceNegOneInt ( 1 ) ; Main.negLong ( ) ; Main.$opt$InplaceNegOneLong ( 1L ) ; Main.negFloat ( ) ; Main.negDouble ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main.negInt ( ) ; Main.$opt$noinline$InplaceNegOneInt ( 1 ) ; Main.negLong ( ) ; Main.$opt$noinline$InplaceNegOneLong ( 1L ) ; Main.negFloat ( ) ; Main.negDouble ( ) ; }
Source:
public com.google.common.collect.ImmutableCollection < V > values ( ) { return com.google.common.collect.ImmutableSet.of ( singleValue ) ; }

Target:
com.google.common.collect.ImmutableCollection < V > createValues ( ) { return com.google.common.collect.ImmutableSet.of ( singleValue ) ; }
Source:
public abstract void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Severity severity , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.Nullable java.lang.Object data ) ;

Target:
public abstract void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Severity severity , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.TextFormat format , @ com.android.annotations.Nullable java.lang.Object data ) ;
Source:
public void onConfigChanged ( int item , int value ) { sendConfigChangedIntent ( item , java.lang.Integer.toString ( value ) ) ; }

Target:
public void connectionUnavailable ( ) { stopListeningForCalls ( ) ; }
Source:
public void run ( ) { try { com.android.jack.util.FileUtils.deleteDir ( dir.getFile ( ) ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.JackIOException ( ( "Failed to delete temporary directory " + ( dir ) ) , e ) ; } }

Target:
public void run ( ) { try { com.android.sched.util.file.FileUtils.deleteDir ( dir.getFile ( ) ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.JackIOException ( ( "Failed to delete temporary directory " + ( dir ) ) , e ) ; } }