auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void setProperty ( java.lang.String key , java.lang.String value ) { java.security.Security.secprops.put ( key , value ) ; }

Target:
public static void setProperty ( java.lang.String key , java.lang.String value ) { org.apache.harmony.security.fortress.Services.setNeedRefresh ( ) ; java.security.Security.secprops.put ( key , value ) ; }
Source:
public boolean isAnonymousLocal2 ( ) { class I { } I i = new I ( ) { } ; return i.getClass ( ) . isAnonymousClass ( ) ; }

Target:
public java.lang.String getSimpleNameLocal2 ( ) { class I { } I i = new I ( ) { } ; return i.getClass ( ) . getSimpleName ( ) ; }
Source:
public void update ( com.intellij.openapi.actionSystem.AnActionEvent e ) { if ( com.intellij.openapi.actionSystem.ActionPlaces.isPopupPlace ( e.getPlace ( ) ) ) { e.getPresentation ( ) . setVisible ( com.google.gct.idea.appengine.action.NewEndpointFromClassAction.shouldDisplayAction ( e ) ) ; } }

Target:
public void update ( com.google.gct.idea.appengine.action.AnActionEvent e ) { if ( com.google.gct.idea.appengine.action.ActionPlaces.isPopupPlace ( e.getPlace ( ) ) ) { e.getPresentation ( ) . setVisible ( com.google.gct.idea.appengine.action.NewEndpointFromClassAction.shouldDisplayAction ( e ) ) ; } }
Source:
protected com.android.internal.telephony.IccCardApplicationStatus.AppState getCurrentUiccStateP ( ) { com.android.internal.telephony.UiccCardApplication uiccCardApplication = mUiccApplication.get ( ) ; if ( uiccCardApplication == null ) return com.android.internal.telephony.IccCardApplicationStatus.AppState.APPSTATE_UNKNOWN ; return uiccCardApplication.getState ( ) ; }

Target:
public com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType getCurrentUiccAppType ( ) { com.android.internal.telephony.uicc.UiccCardApplication currentApp = mUiccApplication.get ( ) ; if ( currentApp != null ) { return currentApp.getType ( ) ; } return com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType.APPTYPE_UNKNOWN ; }
Source:
public void postResponseSuppressesCanceled ( ) { mRequest.cancel ( ) ; mDelivery.postResponse ( mRequest , mSuccessResponse ) ; assertFalse ( mRequest.deliverResponse_called ) ; assertFalse ( mRequest.deliverError_called ) ; }

Target:
public void postResponseSuppressesCanceled ( ) { mRequest.cancel ( ) ; mDelivery.postResponse ( mRequest , mSuccessResponse ) ; org.junit.Assert.assertFalse ( mRequest.deliverResponse_called ) ; org.junit.Assert.assertFalse ( mRequest.deliverError_called ) ; }
Source:
public java.util.Iterator < com.google.common.collect.Table.Cell < R , C , V > > iterator ( ) { return new CellIterator ( ) ; }

Target:
java.util.Iterator < com.google.common.collect.Table.Cell < R , C , V > > cellIterator ( ) { return new CellIterator ( ) ; }
Source:
public void testVFE2 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.invoke_interface.d.T_invoke_interface_4" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testVFE5 ( ) { try { new dot.junit.opcodes.invoke_interface.d.T_invoke_interface_5 ( new dot.junit.opcodes.invoke_interface.ITestImpl ( ) ) ; fail ( "expected VerifyError" ) ; } catch ( java.lang.VerifyError t ) { } }
Source:
public boolean setVoiceMailNumber ( java.lang.String alphaTag , java.lang.String number ) { return setVoiceMailNumber ( android.telephony.TelephonyManager.getDefaultSubscription ( ) , alphaTag , number ) ; }

Target:
public boolean setVoiceMailNumber ( java.lang.String alphaTag , java.lang.String number ) { return setVoiceMailNumber ( getSubId ( ) , alphaTag , number ) ; }
Source:
public void testReadModel1 ( ) { com.android.ide.common.layout.TestNode targetNode = com.android.ide.common.layout.TestNode.create ( "android.widget.GridLayout" ) . id ( "@+id/GridLayout1" ) . bounds ( new com.android.ide.common.api.Rect ( 0 , 0 , 240 , 480 ) ) . set ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_COLUMN_COUNT , "3" ) ; com.android.ide.common.layout.grid.GridModel model = new com.android.ide.common.layout.grid.GridModel ( null , targetNode , null ) ; assertEquals ( 3 , model.declaredColumnCount ) ; assertEquals ( 1 , model.actualColumnCount ) ; assertEquals ( 1 , model.actualRowCount ) ; targetNode.add ( com.android.ide.common.layout.TestNode.create ( com.android.ide.common.layout.LayoutConstants.FQCN_BUTTON ) . id ( "@+id/Button1" ) ) ; targetNode.add ( com.android.ide.common.layout.TestNode.create ( com.android.ide.common.layout.LayoutConstants.FQCN_BUTTON ) . id ( "@+id/Button2" ) ) ; targetNode.add ( com.android.ide.common.layout.TestNode.create ( com.android.ide.common.layout.LayoutConstants.FQCN_BUTTON ) . id ( "@+id/Button3" ) ) ; targetNode.add ( com.android.ide.common.layout.TestNode.create ( com.android.ide.common.layout.LayoutConstants.FQCN_BUTTON ) . id ( "@+id/Button4" ) ) ; model = new com.android.ide.common.layout.grid.GridModel ( null , targetNode , null ) ; assertEquals ( 3 , model.declaredColumnCount ) ; assertEquals ( 3 , model.actualColumnCount ) ; assertEquals ( 2 , model.actualRowCount ) ; }

Target:
public void testReadModel1 ( ) { com.android.ide.common.layout.TestNode targetNode = com.android.ide.common.layout.TestNode.create ( "android.widget.GridLayout" ) . id ( "@+id/GridLayout1" ) . bounds ( new com.android.ide.common.api.Rect ( 0 , 0 , 240 , 480 ) ) . set ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_COLUMN_COUNT , "3" ) ; com.android.ide.common.layout.grid.GridModel model = com.android.ide.common.layout.grid.GridModel.get ( null , targetNode , null ) ; assertEquals ( 3 , model.declaredColumnCount ) ; assertEquals ( 1 , model.actualColumnCount ) ; assertEquals ( 1 , model.actualRowCount ) ; targetNode.add ( com.android.ide.common.layout.TestNode.create ( com.android.ide.common.layout.LayoutConstants.FQCN_BUTTON ) . id ( "@+id/Button1" ) ) ; targetNode.add ( com.android.ide.common.layout.TestNode.create ( com.android.ide.common.layout.LayoutConstants.FQCN_BUTTON ) . id ( "@+id/Button2" ) ) ; targetNode.add ( com.android.ide.common.layout.TestNode.create ( com.android.ide.common.layout.LayoutConstants.FQCN_BUTTON ) . id ( "@+id/Button3" ) ) ; targetNode.add ( com.android.ide.common.layout.TestNode.create ( com.android.ide.common.layout.LayoutConstants.FQCN_BUTTON ) . id ( "@+id/Button4" ) ) ; model = com.android.ide.common.layout.grid.GridModel.get ( null , targetNode , null ) ; assertEquals ( 3 , model.declaredColumnCount ) ; assertEquals ( 3 , model.actualColumnCount ) ; assertEquals ( 2 , model.actualRowCount ) ; }
Source:
public void test_F32_3_SCALE05_05_inRectangle ( ) { testReszie ( inX , inY , Element.DataType.FLOAT_32 , 3 , 0.5F , 0.5F ) ; }

Target:
public void test_F32_3_SCALE05_05_inRectangle ( ) { testResize ( inX , inY , Element.DataType.FLOAT_32 , 3 , 0.5F , 0.5F ) ; }
Source:
public void onError ( java.lang.String id ) { android.util.Log.e ( com.android.bluetooth.avrcp.BrowsedPlayerWrapper.TAG , "BrowserSubscriptionCallback: Could not get folder items" ) ; mCallback.run ( com.android.bluetooth.avrcp.BrowsedPlayerWrapper.STATUS_LOOKUP_ERROR , id , new java.util.ArrayList < com.android.bluetooth.avrcp.ListItem > ( ) ) ; }

Target:
public void onError ( java.lang.String id ) { android.util.Log.e ( com.android.bluetooth.avrcp.BrowsedPlayerWrapper.TAG , "BrowserSubscriptionCallback: Could not get folder items" ) ; mCallback.run ( com.android.bluetooth.avrcp.BrowsedPlayerWrapper.STATUS_LOOKUP_ERROR , id , new java.util.ArrayList < com.android.bluetooth.avrcp.ListItem > ( ) ) ; disconnect ( ) ; }
Source:
public java.lang.String getCallingPackage ( android.os.IBinder token ) { synchronized ( this ) { com.android.server.am.HistoryRecord r = getCallingRecordLocked ( token ) ; return ( r != null ) && ( ( r.app ) != null ) ? r.info.packageName : null ; } }

Target:
public android.content.ComponentName getCallingActivity ( android.os.IBinder token ) { synchronized ( this ) { com.android.server.am.ActivityRecord r = getCallingRecordLocked ( token ) ; return r != null ? r.intent.getComponent ( ) : null ; } }
Source:
public void onLost ( android.net.Network network ) { mTetherMasterSM.sendMessage ( com.android.server.connectivity.Tethering.TetherMasterSM.EVENT_UPSTREAM_CALLBACK , com.android.server.connectivity.Tethering.UpstreamNetworkMonitor.EVENT_ON_LOST , 0 , network ) ; }

Target:
public void onLost ( android.net.Network network ) { mTarget.sendMessage ( mWhat , com.android.server.connectivity.Tethering.UpstreamNetworkMonitor.EVENT_ON_LOST , 0 , network ) ; }
Source:
public void testVFE8 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.aput_wide.d.T_aput_wide_6" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aput_wide.d.T_aput_wide_1" , java.lang.ArrayIndexOutOfBoundsException.class , new long [ 2 ] , 2 , 100000000000L ) ; }
Source:
private java.lang.String getExpectedResultFile ( java.lang.String test ) { int pos = test.lastIndexOf ( '.' ) ; if ( pos == ( - 1 ) ) return null ; java.lang.String shortName = test.substring ( 0 , pos ) ; return shortName + "-expected.txt" ; }

Target:
private void ignoreResultCase ( java.lang.String file ) { android.util.Log.v ( "Layout test:" , ( file + " ignore result" ) ) ; mResultRecorder.ignoreResult ( file ) ; }
Source:
public void start ( java.lang.String callee , com.android.ims.ImsCallProfile profile ) throws android.os.RemoteException { }

Target:
public void start ( java.lang.String callee , android.telephony.ims.ImsCallProfile profile ) { this . start ( callee , profile ) ; }
Source:
public java.lang.String getDeprecatedDoc ( ) { com.android.ide.common.layout.BaseLayoutTest.fail ( "Not supported yet in tests" ) ; return null ; }

Target:
public java.lang.String getDeprecatedDoc ( ) { junit.framework.Assert.fail ( "Not supported yet in tests" ) ; return null ; }
Source:
public boolean isPermissionEnforced ( java.lang.String permission ) { synchronized ( mPackages ) { return isPermissionEnforcedLocked ( permission ) ; } }

Target:
public boolean isPermissionEnforced ( java.lang.String permission ) { final boolean enforcedDefault = isPermissionEnforcedDefault ( permission ) ; synchronized ( mPackages ) { return isPermissionEnforcedLocked ( permission , enforcedDefault ) ; } }
Source:
public static void setUpClass ( ) { com.android.jack.statistics.BlockStatisticsOnCore.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; }

Target:
public static void setUpClass ( ) { com.android.jack.statistics.BlockStatisticsOnCore.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.statistics.BlockStatisticsOnCore.BOOTCLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar" ) } ; }
Source:
public int read ( ) throws java.io.IOException { ensureOpen ( ) ; return ( read ( singleByteBuf , 0 , 1 ) ) == ( - 1 ) ? - 1 : ( singleByteBuf [ 0 ] ) & 255 ; }

Target:
public int read ( ) throws java.io.IOException { ensureOpen ( ) ; return ( read ( singleByteBuf , 0 , 1 ) ) == ( - 1 ) ? - 1 : java.lang.Byte.toUnsignedInt ( singleByteBuf [ 0 ] ) ; }
Source:
public com.android.layoutlib.api.SceneResult render ( long timeout ) { return SceneStatus.NOT_IMPLEMENTED.createResult ( ) ; }

Target:
public com.android.ide.common.rendering.api.Result render ( long timeout ) { return Status.NOT_IMPLEMENTED.createResult ( ) ; }
Source:
private static void check ( boolean b ) { try { if ( b ) { Main.throwsTestException ( ) ; } throw new java.lang.RuntimeException ( ) ; } catch ( TestException e ) { } catch ( java.lang.Exception e ) { java.lang.System.out.println ( "Should not get here!" ) ; } }

Target:
private static void check ( boolean b ) { try { if ( b ) { Main.throwsTestException ( ) ; } throw new java.lang.RuntimeException ( ) ; } catch ( TestException e ) { } catch ( java.lang.Exception e ) { java.lang.System.out.println ( "Got expected exception." ) ; } }
Source:
public void earlyStartup ( ) { if ( isFirstTime ( ) ) { showWelcomeWizard ( ) ; } else if ( mStore.isPingOptIn ( ) ) { sendUsageStats ( ) ; } initializeWindowCoordinator ( ) ; }

Target:
public void earlyStartup ( ) { if ( isFirstTime ( ) ) { showWelcomeWizard ( ) ; } else if ( mStore.isPingOptIn ( ) ) { sendUsageStats ( ) ; } initializeWindowCoordinator ( ) ; com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . workbenchStarted ( ) ; }
Source:
public com.google.common.base.Objects.ToStringHelper addValue ( boolean value ) { addHolder ( ) . builder.append ( value ) ; return this ; }

Target:
public com.google.common.base.Objects.ToStringHelper addValue ( long value ) { return addHolder ( java.lang.String.valueOf ( value ) ) ; }
Source:
public static long longToIntToLong ( long value ) { return ( ( long ) ( ( int ) ( value ) ) ) ; }

Target:
public static long $noinline$longToIntToLong ( long value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( long ) ( ( int ) ( value ) ) ) ; }
Source:
native void rsnScriptSetVarVE ( int con , int id , int slot , byte [ ] val , int e , int [ ] dims ) ;

Target:
native void rsnScriptSetVarV ( long con , long id , int slot , byte [ ] val ) ;
Source:
private void doSelectionChanged ( com.android.ddmlib.IDevice selectedDevice ) { mCaptureAction.setEnabled ( ( selectedDevice != null ) ) ; }

Target:
private void doSelectionChanged ( com.android.ddmlib.IDevice selectedDevice ) { mCaptureAction.setEnabled ( ( selectedDevice != null ) ) ; mViewUiAutomatorHierarchyAction.setEnabled ( ( selectedDevice != null ) ) ; }
Source:
private static void delay ( int millis ) { try { java.lang.Thread.sleep ( millis ) ; } catch ( java.lang.InterruptedException ignored ) { } }

Target:
private static void delay ( int millis ) { assertFalse ( java.lang.Thread.currentThread ( ) . isInterrupted ( ) ) ; try { java.lang.Thread.sleep ( millis ) ; } catch ( java.lang.InterruptedException ignored ) { } }
Source:
public com.android.layoutlib.api.SceneResult getResult ( ) { return new com.android.layoutlib.api.SceneResult ( com.android.layoutlib.api.SceneResult.LayoutStatus.NOT_IMPLEMENTED ) ; }

Target:
public com.android.layoutlib.api.SceneResult getResult ( ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }
Source:
public byte [ ] getEncoded ( ) { return org.conscrypt.NativeCrypto.i2d_PKCS8_PRIV_KEY_INFO ( key.getPkeyContext ( ) ) ; }

Target:
public byte [ ] getEncoded ( ) { if ( key.isEngineBased ( ) ) { return null ; } return org.conscrypt.NativeCrypto.i2d_PKCS8_PRIV_KEY_INFO ( key.getPkeyContext ( ) ) ; }
Source:
public void validateConfigWithoutHomeSp ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = android.net.wifi.hotspot2.PasspointConfigurationTest.createConfig ( ) ; config.homeSp = null ; org.junit.Assert.assertFalse ( config.validate ( ) ) ; }

Target:
public void validateConfigWithoutCredential ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = android.net.wifi.hotspot2.PasspointConfigurationTest.createConfig ( ) ; config.setCredential ( null ) ; org.junit.Assert.assertFalse ( config.validate ( ) ) ; }
Source:
public void enter ( ) { mLastError = android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ; mTetherController.notifyInterfaceStateChange ( mIfaceName , this , IControlsTethering.STATE_UNAVAILABLE , mLastError ) ; }

Target:
public boolean processMessage ( android.os.Message message ) { maybeLogMessage ( this , message.what ) ; switch ( message.what ) { case com.android.server.connectivity.tethering.TetherInterfaceStateMachine.CMD_TETHER_REQUESTED : android.util.Log.e ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , "CMD_TETHER_REQUESTED while in local hotspot mode." ) ; break ; case com.android.server.connectivity.tethering.TetherInterfaceStateMachine.CMD_TETHER_CONNECTION_CHANGED : break ; default : return false ; } return true ; }
Source:
public void sendCdmaSms ( byte [ ] pdu , android.os.Message response ) { android.util.Log.w ( com.android.internal.telephony.test.SimulatedCommands.LOG_TAG , "CDMA not implemented in SimulatedCommands" ) ; }

Target:
public void sendCdmaSms ( byte [ ] pdu , android.os.Message response ) { android.telephony.Rlog.w ( com.android.internal.telephony.test.SimulatedCommands.LOG_TAG , "CDMA not implemented in SimulatedCommands" ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { processor.processFile ( file ) ; return null ; }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { processor.processFile ( rootFolder , file ) ; return null ; }
Source:
public android.net.Uri getPlaybackUri ( java.lang.String appName , int subId , java.lang.String serviceId ) throws android.os.RemoteException { return null ; }

Target:
public android.net.Uri getPlaybackUri ( java.lang.String appName , int subscriptionId , java.lang.String serviceId ) throws android.os.RemoteException { return null ; }
Source:
public static final java.util.Locale [ ] getAvailableLocales ( ) { return com.ibm.icu.impl.ICUResourceBundle.getAvailEntry ( com.ibm.icu.impl.ICUResourceBundle.ICU_BASE_NAME , com.ibm.icu.impl.ICUResourceBundle.ICU_DATA_CLASS_LOADER ) . getLocaleList ( ) ; }

Target:
public static java.util.Set < java.lang.String > getFullLocaleNameSet ( ) { return com.ibm.icu.impl.ICUResourceBundle.getFullLocaleNameSet ( ICUData.ICU_BASE_NAME , com.ibm.icu.impl.ICUResourceBundle.ICU_DATA_CLASS_LOADER ) ; }
Source:
com.android.sched.vfs.MessageDigestFS.MessageDigestVFile createVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { return new com.android.sched.vfs.MessageDigestFS.MessageDigestVFile ( this , vfs.createVFile ( parent , name ) ) ; }

Target:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { return vfs.getVDirLocation ( parent , name ) ; }
Source:
private java.lang.String getActionStringFromReqType ( int requestType ) { switch ( requestType ) { case com.android.ims.ImsSsData.SS_ACTIVATION : return com.android.internal.telephony.imsphone.ImsPhoneMmiCode.ACTION_ACTIVATE ; case com.android.ims.ImsSsData.SS_DEACTIVATION : return com.android.internal.telephony.imsphone.ImsPhoneMmiCode.ACTION_DEACTIVATE ; case com.android.ims.ImsSsData.SS_INTERROGATION : return com.android.internal.telephony.imsphone.ImsPhoneMmiCode.ACTION_INTERROGATE ; case com.android.ims.ImsSsData.SS_REGISTRATION : return com.android.internal.telephony.imsphone.ImsPhoneMmiCode.ACTION_REGISTER ; case com.android.ims.ImsSsData.SS_ERASURE : return com.android.internal.telephony.imsphone.ImsPhoneMmiCode.ACTION_ERASURE ; default : return null ; } }

Target:
private java.lang.String getActionStringFromReqType ( int requestType ) { switch ( requestType ) { case android.telephony.ims.ImsSsData.SS_ACTIVATION : return com.android.internal.telephony.imsphone.ImsPhoneMmiCode.ACTION_ACTIVATE ; case android.telephony.ims.ImsSsData.SS_DEACTIVATION : return com.android.internal.telephony.imsphone.ImsPhoneMmiCode.ACTION_DEACTIVATE ; case android.telephony.ims.ImsSsData.SS_INTERROGATION : return com.android.internal.telephony.imsphone.ImsPhoneMmiCode.ACTION_INTERROGATE ; case android.telephony.ims.ImsSsData.SS_REGISTRATION : return com.android.internal.telephony.imsphone.ImsPhoneMmiCode.ACTION_REGISTER ; case android.telephony.ims.ImsSsData.SS_ERASURE : return com.android.internal.telephony.imsphone.ImsPhoneMmiCode.ACTION_ERASURE ; default : return null ; } }
Source:
public boolean isVisibleWith ( @ javax.annotation.Nonnull com.android.jack.Options.VerbosityLevel verbosityLevel ) { return ( verbosityLevel.ordinal ( ) ) >= ( verbosityLevelThreshold.ordinal ( ) ) ; }

Target:
public boolean isVisibleWith ( @ javax.annotation.Nonnull com.android.jack.VerbosityLevel verbosityLevel ) { return ( verbosityLevel.ordinal ( ) ) >= ( verbosityLevelThreshold.ordinal ( ) ) ; }
Source:
public static double scalb ( double d , int scaleFactor ) { return sun.misc.FpUtils.scalb ( d , scaleFactor ) ; }

Target:
public static float scalb ( float f , int scaleFactor ) { return java.lang.Math.scalb ( f , scaleFactor ) ; }
Source:
public void close ( ) { if ( android.bluetooth.BluetoothGatt.DBG ) android.util.Log.d ( android.bluetooth.BluetoothGatt.TAG , "close()" ) ; unregisterApp ( ) ; mConnState = android.bluetooth.BluetoothGatt.CONN_STATE_CLOSED ; }

Target:
public void close ( ) { if ( android.bluetooth.BluetoothGatt.DBG ) android.util.Log.d ( android.bluetooth.BluetoothGatt.TAG , "close()" ) ; unregisterApp ( ) ; mConnState = android.bluetooth.BluetoothGatt.CONN_STATE_CLOSED ; mAuthRetryState = android.bluetooth.BluetoothGatt.AUTH_RETRY_STATE_IDLE ; }
Source:
public com.android.sched.util.log.DummyTracer.DummyTracerEvent start ( @ javax.annotation.Nonnull java.lang.String name ) { return dummyEvent ; }

Target:
public com.android.sched.util.log.DummyTracer.DummyTracerEvent start ( @ javax.annotation.Nonnull java.lang.String name ) { assert ( config ) == ( com.android.sched.util.config.ThreadConfig.getConfig ( ) ) ; return dummyEvent ; }
Source:
protected final void log ( java.lang.String s ) { android.telephony.Rlog.d ( com.android.internal.telephony.ServiceStateTracker.LOG_TAG , s ) ; }

Target:
protected final void log ( java.lang.String s ) { android.telephony.Rlog.d ( com.android.internal.telephony.ServiceStateTracker.LOG_TAG , ( ( ( "[" + ( mPhone.getPhoneId ( ) ) ) + "] " ) + s ) ) ; }
Source:
public void onECBMEntered ( ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , "onECBMEntered" ) ; handleEnterEmergencyCallbackMode ( ) ; }

Target:
public void onECBMEntered ( ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) logd ( "onECBMEntered" ) ; handleEnterEmergencyCallbackMode ( ) ; }
Source:
public static java.lang.String wrOptionsToString ( int option ) { return android.icu.dev.test.bidi.BidiTest.optionToString ( option , android.icu.dev.test.bidi.BidiTest.REORDER_MASK , android.icu.dev.test.bidi.BidiTest.writeReorderedDescriptions ) ; }

Target:
public static java.lang.String wrOptionsToString ( int option ) { return android.icu.dev.test.bidi.BidiFmwk.optionToString ( option , android.icu.dev.test.bidi.BidiFmwk.REORDER_MASK , android.icu.dev.test.bidi.BidiFmwk.writeReorderedDescriptions ) ; }
Source:
private void emitEndSequence ( ) { output.writeByte ( com.android.dx.dex.file.DBG_END_SEQUENCE ) ; if ( ( ( annotateTo ) != null ) || ( ( debugPrint ) != null ) ) { annotate ( 1 , "end sequence" ) ; } }

Target:
private void emitEndSequence ( ) { output.writeByte ( com.android.dx.dex.file.DebugInfoConstants.DBG_END_SEQUENCE ) ; if ( ( ( annotateTo ) != null ) || ( ( debugPrint ) != null ) ) { annotate ( 1 , "end sequence" ) ; } }
Source:
public void run ( ) { synchronized ( this ) { loadImage ( ) ; crosshairLocation = model.getCrosshairLocation ( ) ; zoom = model.getZoom ( ) ; overlayImage = model.getOverlayImage ( ) ; } }

Target:
public void run ( ) { synchronized ( this ) { loadImage ( ) ; crosshairLocation = model.getCrosshairLocation ( ) ; zoom = model.getZoom ( ) ; overlayImage = model.getOverlayImage ( ) ; overlayTransparency = model.getOverlayTransparency ( ) ; } }
Source:
public boolean requestDrawGL ( android.graphics.Canvas canvas ) { return requestDrawGL ( canvas , false , mWebView ) ; }

Target:
public void onStartTemporaryDetach ( ) { mAwContents.onStartTemporaryDetach ( ) ; }
Source:
public boolean isMandatory ( ) { return mMandatory ; }

Target:
public com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor.Mandatory getMandatory ( ) { return mMandatory ; }
Source:
com.google.common.collect.ImmutableMap < K , V > map ( ) { return this ; }

Target:
com.google.common.collect.ImmutableMapEntry < K , V > getNextInKeyBucket ( ) { return nextInKeyBucket ; }
Source:
public void testE2 ( ) { dot.junit.opcodes.aput_short.d.T_aput_short_1 t = new dot.junit.opcodes.aput_short.d.T_aput_short_1 ( ) ; try { t.run ( null , 2 , ( ( short ) ( 10000 ) ) ) ; fail ( "expected NullPointerException" ) ; } catch ( java.lang.NullPointerException aie ) { } }

Target:
public void testE2 ( ) { loadAndRun ( "dot.junit.opcodes.aput_short.d.T_aput_short_1" , java.lang.NullPointerException.class , null , 2 , ( ( short ) ( 10000 ) ) ) ; }
Source:
protected boolean validateMethod ( java.lang.String name ) { return true ; }

Target:
protected static boolean getBooleanProperty ( java.lang.String key ) { return android.icu.dev.test.TestFmwk.getParams ( ) . getBooleanProperty ( key ) ; }
Source:
public void setIs24HourView ( java.lang.Boolean is24HourView ) { if ( ( mIs24HourView ) == is24HourView ) { return ; } mIs24HourView = is24HourView ; int currentHour = getCurrentHour ( ) ; updateHourControl ( ) ; setCurrentHour ( currentHour ) ; updateAmPmControl ( ) ; }

Target:
public void setIs24HourView ( java.lang.Boolean is24HourView ) { if ( ( mIs24HourView ) == is24HourView ) { return ; } mIs24HourView = is24HourView ; int currentHour = getCurrentHour ( ) ; updateHourControl ( ) ; setCurrentHour ( currentHour ) ; updateMinuteControl ( ) ; updateAmPmControl ( ) ; }
Source:
public void testNameCR_RFC1779 ( ) throws java.lang.Exception { java.lang.String dn = "CN=A\nB" ; javax.security.auth.x500.X500Principal principal = new javax.security.auth.x500.X500Principal ( dn ) ; java.lang.String s = principal.getName ( javax.security.auth.x500.X500Principal.RFC1779 ) ; assertEquals ( "CN=A\nB" , s ) ; }

Target:
public void testNameCR_RFC1779 ( ) throws java.lang.Exception { java.lang.String dn = "CN=A\nB" ; javax.security.auth.x500.X500Principal principal = new javax.security.auth.x500.X500Principal ( dn ) ; java.lang.String s = principal.getName ( javax.security.auth.x500.X500Principal.RFC1779 ) ; assertEquals ( "CN=\"A\nB\"" , s ) ; }
Source:
void expectAvailableAndSuspendedCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { expectAvailableCallbacks ( agent , true , com.android.server.ConnectivityServiceTest.TestNetworkCallback.TIMEOUT_MS ) ; }

Target:
void expectAvailableAndSuspendedCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent , boolean expectValidated ) { expectAvailableCallbacks ( agent , true , expectValidated , com.android.server.ConnectivityServiceTest.TestNetworkCallback.TIMEOUT_MS ) ; }
Source:
public void testNanoMultipleImportingNonMultiple ( ) throws java.lang.Exception { com.google.protobuf.nano.UnittestImportNano.ImportMessageNano importMsg = new com.google.protobuf.nano.UnittestImportNano.ImportMessageNano ( ) ; com.google.protobuf.nano.MultipleImportingNonMultipleNano1 nano1 = new com.google.protobuf.nano.MultipleImportingNonMultipleNano1 ( ) ; nano1.field = importMsg ; com.google.protobuf.nano.MultipleImportingNonMultipleNano2 nano2 = new com.google.protobuf.nano.MultipleImportingNonMultipleNano2 ( ) ; nano2.nano1 = nano1 ; }

Target:
public void testNanoMultipleImportingNonMultiple ( ) throws java.lang.Exception { com.google.protobuf.nano.testimport.UnittestImportNano.ImportMessageNano importMsg = new com.google.protobuf.nano.testimport.UnittestImportNano.ImportMessageNano ( ) ; com.google.protobuf.nano.MultipleImportingNonMultipleNano1 nano1 = new com.google.protobuf.nano.MultipleImportingNonMultipleNano1 ( ) ; nano1.field = importMsg ; com.google.protobuf.nano.MultipleImportingNonMultipleNano2 nano2 = new com.google.protobuf.nano.MultipleImportingNonMultipleNano2 ( ) ; nano2.nano1 = nano1 ; }
Source:
public void test_withMonth_int_normal ( ) { java.time.LocalDate t = TEST_2007_07_15.withMonth ( 1 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2007 , 1 , 15 ) ) ; }

Target:
public void test_withMonth_int_normal ( ) { java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.withMonth ( 1 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2007 , 1 , 15 ) ) ; }
Source:
public void manageFeaturesAndProductions ( @ javax.annotation.Nonnull com.android.sched.util.config.Config config , @ javax.annotation.Nonnull com.android.sched.scheduler.FeatureSet features , @ javax.annotation.Nonnull com.android.sched.scheduler.ProductionSet productions ) { if ( config.get ( CodeCoverage.CODE_COVERVAGE ) . booleanValue ( ) ) { features.add ( com.android.jack.coverage.CodeCoverage.class ) ; productions.add ( com.android.jack.coverage.CodeCoverageMetadataFile.class ) ; } }

Target:
public com.android.sched.scheduler.ProductionSet getProductions ( @ javax.annotation.Nonnull com.android.sched.util.config.Config config , @ javax.annotation.Nonnull com.android.sched.scheduler.Scheduler scheduler ) { com.android.sched.scheduler.ProductionSet set = scheduler.createProductionSet ( ) ; if ( config.get ( CodeCoverage.CODE_COVERVAGE ) . booleanValue ( ) ) { set.add ( com.android.jack.coverage.CodeCoverageMetadataFile.class ) ; } return set ; }
Source:
public void run ( ) { while ( isRunning ( ) ) { try { synchronized ( this ) { wait ( ) ; } dalvik.system.VMRuntime.getRuntime ( ) . trimHeap ( ) ; } catch ( java.lang.InterruptedException ignored ) { } } }

Target:
public static void requestGC ( ) { dalvik.system.VMRuntime.getRuntime ( ) . requestConcurrentGC ( ) ; }
Source:
public void dispose ( ) { try { manager.quit ( ) ; } catch ( java.io.IOException e ) { com.android.chimpchat.adb.AdbChimpDevice.LOG.log ( java.util.logging.Level.SEVERE , "Error getting the manager to quit" , e ) ; } manager = null ; }

Target:
public void dispose ( ) { try { manager.quit ( ) ; } catch ( java.io.IOException e ) { com.android.chimpchat.adb.AdbChimpDevice.LOG.log ( java.util.logging.Level.SEVERE , "Error getting the manager to quit" , e ) ; } manager.close ( ) ; executor.shutdown ( ) ; manager = null ; }
Source:
public void onSurfaceCreated ( javax.microedition.khronos.opengles.GL10 gl , javax.microedition.khronos.egl.EGLConfig config ) { mNativeRenderer = android.graphics.cts.CameraGpuCtsActivity.nCreateRenderer ( ) ; }

Target:
public void onSurfaceCreated ( javax.microedition.khronos.opengles.GL10 gl , javax.microedition.khronos.egl.EGLConfig config ) { mNativeRenderer = android.graphics.cts.CameraGpuCtsActivity.nCreateRenderer ( ) ; mNativeRendererInitialized.release ( ) ; }
Source:
public void testBuildFrom ( ) { com.android.tv.dvr.ScheduledRecording expected = com.android.tv.testing.dvr.RecordingTestUtils.createTestRecordingWithIdAndPeriod ( 1 , com.android.tv.dvr.ScheduledRecordingTest.INPUT_ID , com.android.tv.dvr.ScheduledRecordingTest.CHANNEL_ID , 10L , 20L ) ; com.android.tv.dvr.ScheduledRecording actual = com.android.tv.dvr.ScheduledRecording.buildFrom ( expected ) . build ( ) ; com.android.tv.testing.dvr.RecordingTestUtils.assertRecordingEquals ( expected , actual ) ; }

Target:
public void testBuildFrom ( ) { com.android.tv.dvr.data.ScheduledRecording expected = com.android.tv.testing.dvr.RecordingTestUtils.createTestRecordingWithIdAndPeriod ( 1 , com.android.tv.dvr.ScheduledRecordingTest.INPUT_ID , com.android.tv.dvr.ScheduledRecordingTest.CHANNEL_ID , 10L , 20L ) ; com.android.tv.dvr.data.ScheduledRecording actual = com.android.tv.dvr.data.ScheduledRecording.buildFrom ( expected ) . build ( ) ; com.android.tv.testing.dvr.RecordingTestUtils.assertRecordingEquals ( expected , actual ) ; }
Source:
com.google.common.cache.LocalCache.ReferenceEntry < K , V > newEntry ( K key , int hash , @ javax.annotation.Nullable com.google.common.cache.LocalCache.ReferenceEntry < K , V > next ) { return map.entryFactory.newEntry ( this , key , hash , next ) ; }

Target:
com.google.common.cache.LocalCache.ReferenceEntry < K , V > newEntry ( K key , int hash , @ javax.annotation.Nullable com.google.common.cache.LocalCache.ReferenceEntry < K , V > next ) { return map.entryFactory.newEntry ( this , com.google.common.base.Preconditions.checkNotNull ( key ) , hash , next ) ; }
Source:
public boolean registerNetdEventCallback ( android.net.INetdEventCallback callback ) { enforceNetdEventListeningPermission ( ) ; if ( ( mNetdListener ) == null ) { return false ; } return mNetdListener.registerNetdEventCallback ( callback ) ; }

Target:
public boolean addNetdEventCallback ( int callerType , android.net.INetdEventCallback callback ) { enforceNetdEventListeningPermission ( ) ; if ( ( mNetdListener ) == null ) { return false ; } return mNetdListener.addNetdEventCallback ( callerType , callback ) ; }
Source:
public static void closeQuietly ( @ javax.annotation.Nullable java.io.Closeable closeable ) { try { com.google.common.io.Closeables.close ( closeable , true ) ; } catch ( java.io.IOException e ) { com.google.common.io.Closeables.logger.log ( java.util.logging.Level.SEVERE , "IOException should not have been thrown." , e ) ; } }

Target:
public static void closeQuietly ( @ javax.annotation.Nullable java.io.Reader reader ) { try { com.google.common.io.Closeables.close ( reader , true ) ; } catch ( java.io.IOException impossible ) { throw new java.lang.AssertionError ( impossible ) ; } }
Source:
public void removeScheduledRecording ( com.android.tv.dvr.ScheduledRecording ... scheduledRecordings ) { for ( com.android.tv.dvr.ScheduledRecording r : scheduledRecordings ) { mScheduledRecordings.remove ( r.getId ( ) ) ; } notifyScheduledRecordingRemoved ( scheduledRecordings ) ; }

Target:
public void removeScheduledRecording ( com.android.tv.dvr.data.ScheduledRecording ... scheduledRecordings ) { for ( com.android.tv.dvr.data.ScheduledRecording r : scheduledRecordings ) { mScheduledRecordings.remove ( r.getId ( ) ) ; } notifyScheduledRecordingRemoved ( scheduledRecordings ) ; }
Source:
public void addSeriesRecording ( com.android.tv.dvr.SeriesRecording ... seriesRecordings ) { for ( com.android.tv.dvr.SeriesRecording r : seriesRecordings ) { mSeriesRecordings.put ( r.getId ( ) , r ) ; } notifySeriesRecordingAdded ( seriesRecordings ) ; }

Target:
public void addSeriesRecording ( com.android.tv.dvr.data.SeriesRecording ... seriesRecordings ) { for ( com.android.tv.dvr.data.SeriesRecording r : seriesRecordings ) { mSeriesRecordings.put ( r.getId ( ) , r ) ; } notifySeriesRecordingAdded ( seriesRecordings ) ; }
Source:
public native void putIntVolatile ( java.lang.Object obj , long offset , int newValue ) ;

Target:
public native int getIntVolatile ( java.lang.Object obj , long offset ) ;
Source:
private void updateIfaces ( ) { synchronized ( mStatsLock ) { mWakeLock.acquire ( ) ; try { updateIfacesLocked ( ) ; } finally { mWakeLock.release ( ) ; } } }

Target:
public long getTotalStats ( int type ) { return com.android.server.net.NetworkStatsService.nativeGetTotalStat ( type , checkBpfStatsEnable ( ) ) ; }
Source:
public void removeAddress ( android.net.LinkAddress address ) throws java.io.IOException { }

Target:
public void removeAddress ( @ android.annotation.NonNull android.net.LinkAddress address ) throws java.io.IOException { try { mService.removeAddressFromTunnelInterface ( mResourceId , address ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void onOriginalConnectionRetry ( com.android.services.telephony.TelephonyConnection c ) { }

Target:
public void onOriginalConnectionRetry ( com.android.services.telephony.TelephonyConnection c , boolean isPermanentFailure ) { }
Source:
android.net.ip.IpReachabilityMonitor makeMonitor ( ) { return new android.net.ip.IpReachabilityMonitor ( "fake0" , 1 , mLog , mCallback , null , mDependencies ) ; }

Target:
android.net.ip.IpReachabilityMonitor makeMonitor ( ) { return new android.net.ip.IpReachabilityMonitor ( "fake0" , 1 , mHandler , mLog , mCallback , null , mDependencies ) ; }
Source:
public void testBackFromTheDead ( ) throws java.lang.Exception { try { new libcore.java.lang.ref.FinalizeTest.ConstructionFails ( ) ; } catch ( java.lang.AssertionError expected ) { } libcore.java.lang.ref.FinalizationTester.induceFinalization ( ) ; assertTrue ( "object whose constructor threw was not finalized" , libcore.java.lang.ref.FinalizeTest.ConstructionFails.finalized ) ; }

Target:
private void exceptionInConstructor ( ) { try { new libcore.java.lang.ref.FinalizeTest.ConstructionFails ( ) ; } catch ( java.lang.AssertionError expected ) { } }
Source:
private static native boolean installTestFilter ( ) ;

Target:
private static native java.lang.String getPolicyAbiString ( ) ;
Source:
void stopBatchScan ( com.android.bluetooth.gatt.ScanClient client ) { mBatchClients.remove ( client ) ; removeScanFilters ( client.clientIf ) ; if ( ! ( isOpportunisticScanClient ( client ) ) ) { resetBatchScan ( client ) ; } }

Target:
void stopBatchScan ( com.android.bluetooth.gatt.ScanClient client ) { mBatchClients.remove ( client ) ; removeScanFilters ( client.scannerId ) ; if ( ! ( isOpportunisticScanClient ( client ) ) ) { resetBatchScan ( client ) ; } }
Source:
protected java.awt.Color getFocusedBottomFillColor ( ) { return com.intellij.util.ui.UIUtil.isUnderDarcula ( ) ? new java.awt.Color ( 1975603 ) : new java.awt.Color ( 12766171 ) ; }

Target:
protected com.intellij.ui.tabs.impl.singleRow.SingleRowLayout createSingleRowLayout ( ) { return new com.intellij.ui.tabs.impl.singleRow.CompressibleSingleRowLayout ( this ) ; }
Source:
public void projectOpened ( org.eclipse.core.resources.IProject project ) { onProjectOpened ( project , true ) ; }

Target:
public void projectOpenedWithWorkspace ( org.eclipse.core.resources.IProject project ) { onProjectOpened ( project ) ; }
Source:
private com.google.common.collect.ContiguousSet < C > intersectionInCurrentDomain ( com.google.common.collect.Range < C > other ) { return range.isConnected ( other ) ? range.intersection ( other ) . asSet ( domain ) : new com.google.common.collect.EmptyContiguousSet < C > ( domain ) ; }

Target:
private com.google.common.collect.ContiguousSet < C > intersectionInCurrentDomain ( com.google.common.collect.Range < C > other ) { return range.isConnected ( other ) ? com.google.common.collect.ContiguousSet.create ( range.intersection ( other ) , domain ) : new com.google.common.collect.EmptyContiguousSet < C > ( domain ) ; }
Source:
public static int $noinline$shortToLongToInt ( short value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( int ) ( ( long ) ( value ) ) ) ; }

Target:
public static int $noinline$byteToDoubleToInt ( byte value ) { return ( ( int ) ( ( double ) ( value ) ) ) ; }
Source:
public void onReject ( ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( "onReject " + ( mCurrentCall ) ) ) ; if ( ! ( mClosed ) ) { mHeadsetProfile.rejectCall ( mDevice ) ; } }

Target:
public void onReject ( ) { if ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( "onReject " + ( mCurrentCall ) ) ) ; } if ( ! ( mClosed ) ) { mHeadsetProfile.rejectCall ( mDevice ) ; } }
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 ) ; node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH , com.android.ide.common.layout.LayoutConstants.VALUE_FILL_PARENT ) ; }

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 ) ; node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH , getFillParentValueName ( ) ) ; }
Source:
public abstract com.android.tools.lint.detector.api.Location getLocation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.Node node ) ;

Target:
public abstract Location.Handle createLocationHandle ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.Node node ) ;
Source:
public void run ( ) { connectNativeNetdService ( ) ; prepareNativeDaemon ( ) ; }

Target:
public void run ( ) { synchronized ( mLock ) { android.net.util.NetdService.get ( com.android.server.IpSecService.NETD_FETCH_TIMEOUT ) ; } }
Source:
public boolean isTrue ( ) throws android.support.test.uiautomator.UiObjectNotFoundException { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( "Parental controls are on" ) ) . exists ( ) ; }

Target:
public boolean isTrue ( ) throws android.support.test.uiautomator.UiObjectNotFoundException { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . textStartsWith ( appCategory ) ) . exists ( ) ; }
Source:
public void onLost ( android.net.Network network ) { handleLost ( mCallbackType , network ) ; recomputeOffloadExemptPrefixes ( ) ; }

Target:
public void onLinkPropertiesChanged ( android.net.Network network , android.net.LinkProperties newLp ) { handleLinkProp ( network , newLp ) ; recomputeLocalPrefixes ( ) ; }
Source:
public void anqpRequestCompletedWithError ( ) { mHandler.notifyANQPDone ( com.android.server.wifi.hotspot2.PasspointEventHandlerTest.BSSID , false ) ; org.mockito.Mockito.verify ( mWifiNative , org.mockito.Mockito.never ( ) ) . scanResult ( org.mockito.Mockito.anyString ( ) ) ; org.mockito.Mockito.verify ( mCallbacks ) . onANQPResponse ( com.android.server.wifi.hotspot2.PasspointEventHandlerTest.BSSID , null ) ; }

Target:
public void anqpRequestCompletedWithError ( ) { mHandler.notifyANQPDone ( new com.android.server.wifi.hotspot2.AnqpEvent ( com.android.server.wifi.hotspot2.PasspointEventHandlerTest.BSSID , null ) ) ; org.mockito.Mockito.verify ( mCallbacks ) . onANQPResponse ( com.android.server.wifi.hotspot2.PasspointEventHandlerTest.BSSID , null ) ; }
Source:
public static boolean generate ( @ com.android.annotations.NonNull java.io.File [ ] apiLevels , @ com.android.annotations.NonNull java.io.File outputFile ) throws java.io.IOException { com.android.tools.metalava.apilevels.AndroidJarReader reader = new com.android.tools.metalava.apilevels.AndroidJarReader ( apiLevels ) ; com.android.tools.metalava.apilevels.Api api = reader.getApi ( ) ; return com.android.tools.metalava.apilevels.ApiGenerator.createApiFile ( outputFile , api ) ; }

Target:
public static boolean generate ( @ com.android.annotations.NonNull java.io.File [ ] apiLevels , @ com.android.annotations.NonNull java.io.File outputFile , @ com.android.annotations.Nullable com.android.tools.metalava.model.Codebase codebase ) throws java.io.IOException { com.android.tools.metalava.apilevels.AndroidJarReader reader = new com.android.tools.metalava.apilevels.AndroidJarReader ( apiLevels , codebase ) ; com.android.tools.metalava.apilevels.Api api = reader.getApi ( ) ; return com.android.tools.metalava.apilevels.ApiGenerator.createApiFile ( outputFile , api ) ; }
Source:
private int translateNetworkTypeToApiFlag ( int networkType ) { switch ( networkType ) { case android.net.ConnectivityManager.TYPE_MOBILE : return DownloadManager.Request.NETWORK_MOBILE ; case android.net.ConnectivityManager.TYPE_WIFI : return DownloadManager.Request.NETWORK_WIFI ; default : return 0 ; } }

Target:
private int translateNetworkTypeToApiFlag ( int networkType ) { switch ( networkType ) { case android.net.ConnectivityManager.TYPE_MOBILE : return DownloadManager.Request.NETWORK_MOBILE ; case android.net.ConnectivityManager.TYPE_WIFI : return DownloadManager.Request.NETWORK_WIFI ; case android.net.ConnectivityManager.TYPE_BLUETOOTH : return DownloadManager.Request.NETWORK_BLUETOOTH ; default : return 0 ; } }
Source:
protected boolean shouldApplyOn ( java.io.File toFile ) { return true ; }

Target:
protected boolean doShouldApply ( java.io.File toDir ) { return true ; }
Source:
public javax.net.ssl.SSLSocketFactory engineGetSocketFactory ( ) { if ( ( sslParameters ) == null ) { throw new java.lang.IllegalStateException ( "SSLContext is not initialized." ) ; } return new org.conscrypt.OpenSSLSocketFactoryImpl ( sslParameters ) ; }

Target:
public javax.net.ssl.SSLSocketFactory engineGetSocketFactory ( ) { if ( ( sslParameters ) == null ) { throw new java.lang.IllegalStateException ( "SSLContext is not initialized." ) ; } return org.conscrypt.Platform.wrapSocketFactoryIfNeeded ( new org.conscrypt.OpenSSLSocketFactoryImpl ( sslParameters ) ) ; }
Source:
public void testMergedResourcesByName ( ) throws java.lang.Exception { com.android.builder.resources.AssetMerger merger = com.android.builder.resources.AssetMergerTest.getAssetMerger ( ) ; verifyResourceExists ( merger , "icon.png" , "icon2.png" , "main.xml" , "values.xml" , "foo.dat" ) ; }

Target:
public void testMergedAssetsByName ( ) throws java.lang.Exception { com.android.builder.resources.AssetMerger merger = com.android.builder.resources.AssetMergerTest.getAssetMerger ( ) ; verifyResourceExists ( merger , "foo/icon.png" , "icon2.png" , "main.xml" , "values.xml" , "foo/foo.dat" ) ; }
Source:
native void rsnAllocationData3D ( int con , int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , byte [ ] d , int sizeBytes ) ;

Target:
native void rsnAllocationData2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , float [ ] d , int sizeBytes ) ;
Source:
public void onSessionTerminated ( int reason ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "reason" , reason ) ; mEventFacade.postEvent ( "WifiNanSessionOnSessionTerminated" , mResults ) ; }

Target:
public void onSessionTerminated ( int reason ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "reason" , reason ) ; mEventFacade.postEvent ( "WifiAwareSessionOnSessionTerminated" , mResults ) ; }
Source:
void androidModelSources ( com.android.build.gradle.managed.AndroidConfig androidModel , @ org.gradle.model.Path ( value = "androidSources" ) com.android.build.gradle.model.AndroidComponentModelSourceSet sources ) { androidModel.sources = sources ; }

Target:
public void androidModelSources ( com.android.build.gradle.managed.AndroidConfig androidModel , @ org.gradle.model.Path ( value = "androidSources" ) com.android.build.gradle.model.AndroidComponentModelSourceSet sources ) { androidModel.setSources ( sources ) ; }
Source:
private static java.util.Calendar icuCalendar ( java.util.Calendar cal ) { java.util.TimeZone timeZone = libcore.icu.DateIntervalFormat.icuTimeZone ( cal.getTimeZone ( ) ) ; java.util.Calendar result = java.util.com.ibm.icu.util.Calendar.getInstance ( timeZone ) ; result.setTime ( cal.getTime ( ) ) ; return result ; }

Target:
static com.ibm.icu.util.Calendar createIcuCalendar ( java.util.TimeZone icuTimeZone , com.ibm.icu.util.ULocale icuLocale , long timeInMillis ) { com.ibm.icu.util.Calendar calendar = new com.ibm.icu.util.GregorianCalendar ( icuTimeZone , icuLocale ) ; calendar.setTimeInMillis ( timeInMillis ) ; return calendar ; }
Source:
public boolean startStreaming ( android.telephony.MbmsStreamingSession streamingManager ) { mStreamingService = streamingManager.startStreaming ( mStreamingServiceInfo , new com.android.phone.testapps.embmsfrontend.StreamingServiceTracker.Callback ( ) , null ) ; return true ; }

Target:
public boolean startStreaming ( android.telephony.MbmsStreamingSession streamingManager ) { mStreamingService = streamingManager.startStreaming ( mStreamingServiceInfo , mActivity.getMainThreadHandler ( ) :: post , new com.android.phone.testapps.embmsfrontend.StreamingServiceTracker.Callback ( ) ) ; return true ; }