auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static com.ibm.icu.text.DateIntervalFormat getFormatter ( java.lang.String skeleton , java.util.Locale locale , java.util.TimeZone tz ) { java.lang.String key = ( ( ( skeleton + "\t" ) + locale ) + "\t" ) + tz ; libcore.icu.DateIntervalFormat formatter = libcore.icu.DateIntervalFormat.CACHED_FORMATTERS.get ( key ) ; if ( formatter != null ) { return formatter ; } formatter = libcore.icu.com.ibm.icu.text.DateIntervalFormat.getInstance ( skeleton , locale ) ; formatter.setTimeZone ( libcore.icu.DateIntervalFormat.icuTimeZone ( tz ) ) ; libcore.icu.DateIntervalFormat.CACHED_FORMATTERS.put ( key , formatter ) ; return formatter ; }

Target:
private static com.ibm.icu.text.DateIntervalFormat getFormatter ( java.lang.String skeleton , com.ibm.icu.util.ULocale locale , java.util.TimeZone icuTimeZone ) { java.lang.String key = ( ( ( skeleton + "\t" ) + locale ) + "\t" ) + icuTimeZone ; libcore.icu.DateIntervalFormat formatter = libcore.icu.DateIntervalFormat.CACHED_FORMATTERS.get ( key ) ; if ( formatter != null ) { return formatter ; } formatter = libcore.icu.com.ibm.icu.text.DateIntervalFormat.getInstance ( skeleton , locale ) ; formatter.setTimeZone ( icuTimeZone ) ; libcore.icu.DateIntervalFormat.CACHED_FORMATTERS.put ( key , formatter ) ; return formatter ; }
Source:
public void mousePressed ( java.awt.event.MouseEvent event ) { currentButton = ( event.isShiftDown ( ) ) ? java.awt.event.MouseEvent.BUTTON3 : event.getButton ( ) ; currentButton = ( event.isControlDown ( ) ) ? java.awt.event.MouseEvent.BUTTON2 : currentButton ; paint ( event.getX ( ) , event.getY ( ) , currentButton ) ; }

Target:
public void mousePressed ( java.awt.event.MouseEvent event ) { currentButton = ( event.isShiftDown ( ) ) ? java.awt.event.MouseEvent.BUTTON3 : event.getButton ( ) ; currentButton = ( event.isControlDown ( ) ) ? java.awt.event.MouseEvent.BUTTON2 : currentButton ; startDrawingLine ( event.getX ( ) , event.getY ( ) , currentButton ) ; }
Source:
public void onRequestScores ( android.net.NetworkKey [ ] networks ) { synchronized ( this ) { ( mScoreCounter ) ++ ; } java.util.List < android.net.ScoredNetwork > scoredNetworks = new java.util.ArrayList ( ) ; for ( int i = 0 ; i < ( networks.length ) ; i ++ ) { android.net.NetworkKey key = networks [ i ] ; if ( ( key.type ) != ( android.net.NetworkKey.TYPE_WIFI ) ) { continue ; } } mScoreManager.updateScores ( scoredNetworks.toArray ( new android.net.ScoredNetwork [ scoredNetworks.size ( ) ] ) ) ; }

Target:
public void onRequestScores ( android.net.NetworkKey [ ] networks ) { synchronized ( mStatsLock ) { ( mScoreCounter ) ++ ; } java.util.List < android.net.ScoredNetwork > scoredNetworks = new java.util.ArrayList ( ) ; for ( int i = 0 ; i < ( networks.length ) ; i ++ ) { android.net.NetworkKey key = networks [ i ] ; if ( ( key.type ) != ( android.net.NetworkKey.TYPE_WIFI ) ) { continue ; } } }
Source:
public int count ( @ javax.annotation.Nullable java.lang.Object element ) { try { if ( multimap ( ) . containsKey ( element ) ) { java.util.Collection < V > values = multimap ( ) . asMap ( ) . get ( element ) ; return values == null ? 0 : values.size ( ) ; } return 0 ; } catch ( java.lang.ClassCastException e ) { return 0 ; } catch ( java.lang.NullPointerException e ) { return 0 ; } }

Target:
public java.util.Iterator < K > iterator ( ) { return com.google.common.collect.Maps.keyIterator ( multimap.entries ( ) . iterator ( ) ) ; }
Source:
public void wrapUndoRecording ( java.lang.String label , java.lang.Runnable undoableAction ) { boolean recording = false ; try { recording = beginUndoRecording ( label ) ; undoableAction.run ( ) ; } finally { if ( recording ) { endUndoRecording ( ) ; } } }

Target:
public void wrapUndoEditXmlModel ( java.lang.String label , java.lang.Runnable undoableAction ) { boolean recording = false ; try { recording = beginUndoRecording ( label ) ; if ( ! recording ) { com.android.ide.eclipse.adt.AdtPlugin.logAndPrintError ( null , ( ( getProject ( ) ) != null ? getProject ( ) . getName ( ) : "XML Editor" ) , "Action '%s' failed: could not start an undo session, document might be corrupt." , label ) ; return ; } wrapEditXmlModel ( undoableAction ) ; } finally { if ( recording ) { endUndoRecording ( ) ; } } }
Source:
public static int onWebViewProviderChanged ( android.content.pm.PackageInfo packageInfo ) { java.lang.String [ ] nativeLibs = null ; java.lang.String originalSourceDir = packageInfo.applicationInfo.sourceDir ; try { android.webkit.WebViewFactory.fixupStubApplicationInfo ( packageInfo.applicationInfo , android.app.AppGlobals.getInitialApplication ( ) . getPackageManager ( ) ) ; nativeLibs = android.webkit.WebViewLibraryLoader.updateWebViewZygoteVmSize ( packageInfo ) ; } catch ( java.lang.Throwable t ) { android.util.Log.e ( android.webkit.WebViewFactory.LOGTAG , "error preparing webview native library" , t ) ; } android.webkit.WebViewZygote.onWebViewProviderChanged ( packageInfo , originalSourceDir ) ; return android.webkit.WebViewFactory.prepareWebViewInSystemServer ( nativeLibs ) ; }

Target:
public static int onWebViewProviderChanged ( android.content.pm.PackageInfo packageInfo ) { java.lang.String [ ] nativeLibs = null ; android.content.pm.ApplicationInfo originalAppInfo = new android.content.pm.ApplicationInfo ( packageInfo.applicationInfo ) ; try { android.webkit.WebViewFactory.fixupStubApplicationInfo ( packageInfo.applicationInfo , android.app.AppGlobals.getInitialApplication ( ) . getPackageManager ( ) ) ; nativeLibs = android.webkit.WebViewLibraryLoader.updateWebViewZygoteVmSize ( packageInfo ) ; } catch ( java.lang.Throwable t ) { android.util.Log.e ( android.webkit.WebViewFactory.LOGTAG , "error preparing webview native library" , t ) ; } android.webkit.WebViewZygote.onWebViewProviderChanged ( packageInfo , originalAppInfo ) ; return android.webkit.WebViewFactory.prepareWebViewInSystemServer ( nativeLibs ) ; }
Source:
public static void $noinline$deopt ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 100000 ; ++ i ) { } while ( ! ( Main.ensureInOsrCode ( ) ) ) { } DeoptimizationController.startDeoptimization ( ) ; }

Target:
public static void $noinline$deopt ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 100000 ; ++ i ) { } while ( ! ( Main.isInOsrCode ( "$noinline$deopt" ) ) ) { } DeoptimizationController.startDeoptimization ( ) ; }
Source:
public void test_getInstanceLjava_lang_StringLjava_lang_String04 ( ) throws java.lang.Exception { for ( java.lang.String validValue : tests.api.javax.net.ssl.TrustManagerFactory1Test.getValidValues ( ) ) { javax.net.ssl.TrustManagerFactory trustMF = javax.net.ssl.TrustManagerFactory.getInstance ( validValue , tests.api.javax.net.ssl.TrustManagerFactory1Test.getDefaultProviderName ( ) ) ; assertTrue ( "Not TrustManagerFactory object" , ( trustMF instanceof javax.net.ssl.TrustManagerFactory ) ) ; assertEquals ( "Invalid algorithm" , trustMF.getAlgorithm ( ) , validValue ) ; assertEquals ( "Invalid provider" , trustMF.getProvider ( ) , tests.api.javax.net.ssl.TrustManagerFactory1Test.getDefaultProvider ( ) ) ; } }

Target:
public void test_getInstanceLjava_lang_StringLjava_lang_String04 ( ) throws java.lang.Exception { for ( java.lang.String validValue : org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.getValidValues ( ) ) { javax.net.ssl.TrustManagerFactory trustMF = javax.net.ssl.TrustManagerFactory.getInstance ( validValue , org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.getDefaultProviderName ( ) ) ; assertTrue ( "Not TrustManagerFactory object" , ( trustMF instanceof javax.net.ssl.TrustManagerFactory ) ) ; assertEquals ( "Invalid algorithm" , trustMF.getAlgorithm ( ) , validValue ) ; assertEquals ( "Invalid provider" , trustMF.getProvider ( ) , org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.getDefaultProvider ( ) ) ; } }
Source:
private int getFileTypeFromDrm ( java.lang.String path ) { if ( ! ( isDrmEnabled ( ) ) ) { return 0 ; } int resultFileType = 0 ; if ( ( mDrmManagerClient ) == null ) { mDrmManagerClient = new android.drm.DrmManagerClient ( mContext ) ; } if ( mDrmManagerClient.canHandle ( path , null ) ) { java.lang.String drmMimetype = mDrmManagerClient.getOriginalMimeType ( path ) ; if ( drmMimetype != null ) { mMimeType = drmMimetype ; resultFileType = android.media.MediaFile.getFileTypeForMimeType ( drmMimetype ) ; } } return resultFileType ; }

Target:
private int getFileTypeFromDrm ( java.lang.String path ) { if ( ! ( isDrmEnabled ( ) ) ) { return 0 ; } int resultFileType = 0 ; if ( ( mDrmManagerClient ) == null ) { mDrmManagerClient = new android.drm.DrmManagerClient ( mContext ) ; } if ( mDrmManagerClient.canHandle ( path , null ) ) { mIsDrm = true ; java.lang.String drmMimetype = mDrmManagerClient.getOriginalMimeType ( path ) ; if ( drmMimetype != null ) { mMimeType = drmMimetype ; resultFileType = android.media.MediaFile.getFileTypeForMimeType ( drmMimetype ) ; } } return resultFileType ; }
Source:
public boolean isConnected ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "isConnected " + device ) ) ; com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) return false ; return ( ( service.getState ( ) ) == ( android.bluetooth.BluetoothPbap.STATE_CONNECTED ) ) && ( service.getRemoteDevice ( ) . equals ( device ) ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "getDevicesMatchingConnectionStates" ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( ) ; if ( service == null ) { return new java.util.ArrayList < > ( 0 ) ; } return service.getDevicesMatchingConnectionStates ( states ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { com.android.hierarchyviewerlib.HierarchyViewerDirector director = new com.android.hierarchyviewer.HierarchyViewerApplicationDirector ( ) ; com.android.hierarchyviewerlib.ComponentRegistry.setDirector ( director ) ; director.initDebugBridge ( ) ; com.android.hierarchyviewerlib.ComponentRegistry.setDeviceSelectionModel ( new com.android.hierarchyviewerlib.models.DeviceSelectionModel ( ) ) ; director.startListenForDevices ( ) ; director.populateDeviceSelectionModel ( ) ; com.android.hierarchyviewer.UIThread.runUI ( ) ; director.stopListenForDevices ( ) ; director.stopDebugBridge ( ) ; director.terminate ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { com.android.hierarchyviewerlib.HierarchyViewerDirector director = new com.android.hierarchyviewer.HierarchyViewerApplicationDirector ( ) ; com.android.hierarchyviewerlib.ComponentRegistry.setDirector ( director ) ; com.android.hierarchyviewerlib.ComponentRegistry.setDeviceSelectionModel ( new com.android.hierarchyviewerlib.models.DeviceSelectionModel ( ) ) ; com.android.hierarchyviewerlib.ComponentRegistry.setPixelPerfectModel ( new com.android.hierarchyviewerlib.models.PixelPerfectModel ( ) ) ; director.initDebugBridge ( ) ; director.startListenForDevices ( ) ; director.populateDeviceSelectionModel ( ) ; com.android.hierarchyviewer.UIThread.runUI ( ) ; director.stopListenForDevices ( ) ; director.stopDebugBridge ( ) ; director.terminate ( ) ; java.lang.System.exit ( 0 ) ; }
Source:
public void testUnlock ( ) throws java.lang.Exception { if ( ! ( supportsKeyguard ( ) ) ) { return ; } launchActivity ( "TestActivity" ) ; gotoKeyguard ( ) ; unlockDevice ( ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "TestActivity" } ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_KEYGUARD_GOING_AWAY , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }

Target:
public void testUnlock ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } launchActivity ( "TestActivity" ) ; gotoKeyguard ( ) ; unlockDevice ( ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "TestActivity" } ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_KEYGUARD_GOING_AWAY , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }
Source:
private boolean implementsInterface ( com.google.doclava.ClassInfo cl , java.lang.String iface ) { if ( cl.qualifiedName ( ) . equals ( iface ) ) { return true ; } for ( com.google.doclava.ClassInfo clImplements : cl.interfaces ( ) ) { if ( implementsInterface ( clImplements , iface ) ) { return true ; } } if ( ( ( cl.mSuperclass ) != null ) && ( implementsInterface ( cl.mSuperclass , iface ) ) ) { return true ; } return false ; }

Target:
public boolean implementsInterface ( java.lang.String iface ) { if ( qualifiedName ( ) . equals ( iface ) ) { return true ; } for ( com.google.doclava.ClassInfo clImplements : interfaces ( ) ) { if ( clImplements.implementsInterface ( iface ) ) { return true ; } } if ( ( ( mSuperclass ) != null ) && ( mSuperclass.implementsInterface ( iface ) ) ) { return true ; } return false ; }
Source:
public void onPause ( ) { super . onPause ( ) ; synchronized ( mToneGeneratorLock ) { if ( ( mToneGenerator ) != null ) { mToneGenerator.release ( ) ; mToneGenerator = null ; } } }

Target:
protected android.app.Dialog onCreateDialog ( int id ) { android.app.AlertDialog dialog = null ; if ( id == ( com.android.phone.EmergencyDialer.BAD_EMERGENCY_NUMBER_DIALOG ) ) { dialog = new android.app.AlertDialog.Builder ( this , R.style.EmergencyDialerAlertDialogTheme ) . setTitle ( getText ( R.string.emergency_enable_radio_dialog_title ) ) . setMessage ( createErrorMessage ( mLastNumber ) ) . setPositiveButton ( R.string.ok , null ) . setCancelable ( true ) . create ( ) ; dialog.getWindow ( ) . addFlags ( WindowManager.LayoutParams.FLAG_BLUR_BEHIND ) ; setShowWhenLocked ( true ) ; } return dialog ; }
Source:
private void stopPnoOffload ( ) { if ( ! ( com.android.server.wifi.WifiNative.setPnoList ( null , this ) ) ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , "Failed to stop pno" ) ; } }

Target:
private void cleanup ( ) { mWifiMonitor.stopAllMonitoring ( ) ; mDeathRecipient.unlinkToDeath ( ) ; if ( ( mWificond ) != null ) { try { mWificond.tearDownInterfaces ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , "Failed to tear down interfaces via wificond" ) ; } mWificond = null ; } mWifiNative.stopHal ( ) ; }
Source:
private void run ( ) { java.lang.System.out.println ( new A ( ) . i ) ; FancyLoader loader = new FancyLoader ( getClass ( ) . getClassLoader ( ) ) ; try { java.lang.Class testEx = loader.loadClass ( "TestEx" ) ; java.lang.reflect.Method test = testEx.getDeclaredMethod ( "test" ) ; test.invoke ( null ) ; } catch ( java.lang.Exception exc ) { exc.printStackTrace ( ) ; } }

Target:
private void run ( ) { java.lang.System.out.println ( new A ( ) . i ) ; FancyLoader loader = new FancyLoader ( getClass ( ) . getClassLoader ( ) ) ; try { java.lang.Class < ? > testEx = loader.loadClass ( "TestEx" ) ; java.lang.reflect.Method test = testEx.getDeclaredMethod ( "test" ) ; test.invoke ( null ) ; } catch ( java.lang.Exception exc ) { exc.printStackTrace ( java.lang.System.out ) ; } }
Source:
private com.android.draw9patch.ui.ImageViewer.Edge getClosestEdge ( int x , com.android.draw9patch.ui.Pair < java.lang.Integer > range ) { if ( ( x - ( range.first ) ) <= ( com.android.draw9patch.ui.ImageViewer.EDGE_DELTA ) ) { return com.android.draw9patch.ui.ImageViewer.Edge.START ; } else if ( ( ( range.second ) - x ) <= ( com.android.draw9patch.ui.ImageViewer.EDGE_DELTA ) ) { return com.android.draw9patch.ui.ImageViewer.Edge.END ; } else { return com.android.draw9patch.ui.ImageViewer.Edge.NONE ; } }

Target:
private com.android.draw9patch.ui.ImageViewer.Edge getClosestEdge ( int x , com.android.draw9patch.ui.Pair < java.lang.Integer > range ) { if ( ( java.lang.Math.abs ( ( x - ( range.first ) ) ) ) <= ( com.android.draw9patch.ui.ImageViewer.EDGE_DELTA ) ) { return com.android.draw9patch.ui.ImageViewer.Edge.START ; } else if ( ( java.lang.Math.abs ( ( ( range.second ) - x ) ) ) <= ( com.android.draw9patch.ui.ImageViewer.EDGE_DELTA ) ) { return com.android.draw9patch.ui.ImageViewer.Edge.END ; } else { return com.android.draw9patch.ui.ImageViewer.Edge.NONE ; } }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , int [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFromUnchecked" ) ; mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) , Element.DataType.SIGNED_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
private void copyTo ( java.lang.Object array , android.renderscript.Element.DataType dt , int arrayLen ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyTo" ) ; mRS.validate ( ) ; mRS.nAllocationRead ( getID ( mRS ) , array , dt ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
public static com.android.sdklib.repository.descriptors.IPkgDesc newSysImg ( @ com.android.annotations.NonNull final com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull final java.lang.String abi , @ com.android.annotations.NonNull final com.android.sdklib.repository.MajorRevision revision ) { return new com.android.sdklib.repository.descriptors.PkgDesc ( ) { @ java.lang.Override public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_SYS_IMAGES ; } @ java.lang.Override public com.android.sdklib.repository.MajorRevision getMajorRevision ( ) { return revision ; } @ java.lang.Override public com.android.sdklib.AndroidVersion getAndroidVersion ( ) { return version ; } @ java.lang.Override public java.lang.String getPath ( ) { return abi ; } } ; }

Target:
public static com.android.sdklib.repository.descriptors.IPkgDesc newSysImg ( @ com.android.annotations.NonNull final com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull final java.lang.String abi , @ com.android.annotations.NonNull final com.android.sdklib.repository.MajorRevision revision ) { return new com.android.sdklib.repository.descriptors.PkgDesc ( ) { @ java.lang.Override public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_SYS_IMAGES ; } @ java.lang.Override public com.android.sdklib.repository.MajorRevision getMajorRevision ( ) { return revision ; } @ java.lang.Override public com.android.sdklib.AndroidVersion getAndroidVersion ( ) { return version ; } @ java.lang.Override public java.lang.String getPath ( ) { return abi ; } @ java.lang.Override public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { return isGenericUpdateFor ( existingDesc ) ; } } ; }
Source:
public static java.lang.Character.UnicodeBlock forName ( java.lang.String blockName ) { if ( blockName == null ) { throw new java.lang.NullPointerException ( "blockName == null" ) ; } int block = java.lang.Character.forNameImpl ( blockName ) ; if ( block == ( - 1 ) ) { throw new java.lang.IllegalArgumentException ( ( "Unknown block: " + blockName ) ) ; } return java.lang.Character.UnicodeBlock.BLOCKS [ block ] ; }

Target:
public static java.lang.Character.UnicodeBlock forName ( java.lang.String blockName ) { if ( blockName == null ) { throw new java.lang.NullPointerException ( "blockName == null" ) ; } int block = java.lang.Character.unicodeBlockForName ( blockName ) ; if ( block == ( - 1 ) ) { throw new java.lang.IllegalArgumentException ( ( "Unknown block: " + blockName ) ) ; } return java.lang.Character.UnicodeBlock.BLOCKS [ block ] ; }
Source:
public void exit ( ) { if ( com.android.internal.telephony.InboundSmsHandler.DBG ) log ( "exiting Waiting state" ) ; setWakeLockTimeout ( com.android.internal.telephony.InboundSmsHandler.WAKELOCK_TIMEOUT ) ; }

Target:
public void exit ( ) { if ( com.android.internal.telephony.InboundSmsHandler.DBG ) log ( "exiting Waiting state" ) ; setWakeLockTimeout ( com.android.internal.telephony.InboundSmsHandler.WAKELOCK_TIMEOUT ) ; if ( com.android.internal.telephony.InboundSmsHandler.VDBG ) { if ( hasMessages ( com.android.internal.telephony.InboundSmsHandler.EVENT_STATE_TIMEOUT ) ) { log ( "exiting Waiting state: removing EVENT_STATE_TIMEOUT from message queue" ) ; } if ( hasMessages ( com.android.internal.telephony.InboundSmsHandler.EVENT_UPDATE_TRACKER ) ) { log ( "exiting Waiting state: removing EVENT_UPDATE_TRACKER from message queue" ) ; } } removeMessages ( com.android.internal.telephony.InboundSmsHandler.EVENT_STATE_TIMEOUT ) ; removeMessages ( com.android.internal.telephony.InboundSmsHandler.EVENT_UPDATE_TRACKER ) ; }
Source:
public void testGetValues012_ClassLoaderAsObject ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value expectedValue = getStaticFieldValue ( classID , "CLASS_LOADER_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointObject" , StackTrace002Debuggee.CLASS_LOADER_AS_OBJECT_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointObject" ) ; methodInfo.addVariable ( "param" , expectedValue ) ; runStackFrameTest ( tester ) ; }

Target:
public void testGetValues010_ArrayAsObject ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = getStaticFieldValue ( classID , "ARRAY_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.ARRAY_AS_OBJECT_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointObject" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointObject" ) ; methodInfo.addVariable ( "param" , oldValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
public void onImsDisconnected ( com.android.ims.ImsReasonInfo imsReasonInfo ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onImsDisconnected imsReasonInfo=" + imsReasonInfo ) ) ; resetImsCapabilities ( ) ; mPhone.setServiceState ( ServiceState.STATE_OUT_OF_SERVICE ) ; mPhone.setImsRegistered ( false ) ; mPhone.processDisconnectReason ( imsReasonInfo ) ; mMetrics.writeOnImsConnectionState ( mPhone.getPhoneId ( ) , ImsConnectionState.State.DISCONNECTED , imsReasonInfo ) ; }

Target:
public void onVoiceMessageCountUpdate ( int count ) { if ( ( ( mPhone ) != null ) && ( ( mPhone.mDefaultPhone ) != null ) ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onVoiceMessageCountChanged :: count=" + count ) ) ; mPhone.mDefaultPhone.setVoiceMessageCount ( count ) ; } else { loge ( "onVoiceMessageCountUpdate: null phone" ) ; } }
Source:
public java.nio.ByteBuffer putShort ( int index , short value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.SHORT ) ; this . block.pokeShort ( ( ( offset ) + index ) , value , order ) ; return this ; }

Target:
public java.nio.ByteBuffer putShort ( short value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.SHORT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeShort ( ( ( offset ) + ( position ) ) , value , order ) ; position = newPosition ; return this ; }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String instructionSet , int dexoptNeeded , boolean bootComplete ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , instructionSet , dexoptNeeded , bootComplete ) ; }

Target:
public int dexopt ( java.lang.String apkPath , int uid , java.lang.String pkgName , java.lang.String instructionSet , int dexoptNeeded , @ android.annotation.Nullable java.lang.String outputPath , int dexFlags ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , pkgName , instructionSet , dexoptNeeded , outputPath , dexFlags ) ; }
Source:
boolean runTests ( @ com.android.annotations.NonNull java.lang.String projectName , @ com.android.annotations.NonNull java.lang.String variantName , @ com.android.annotations.NonNull java.io.File testApk , @ com.android.annotations.NonNull com.android.builder.testing.TestData testData , @ com.android.annotations.NonNull java.util.List < ? extends com.android.builder.testing.api.DeviceConnector > deviceList , int maxThreads , int timeoutInMs , @ com.android.annotations.NonNull java.io.File resultsDir , @ com.android.annotations.NonNull java.io.File coverageDir , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) throws com.android.builder.testing.TestRunner.NoAuthorizedDeviceFoundException , com.android.builder.testing.api.TestException , java.lang.InterruptedException ;

Target:
boolean runTests ( @ com.android.annotations.NonNull java.lang.String projectName , @ com.android.annotations.NonNull java.lang.String variantName , @ com.android.annotations.NonNull java.io.File testApk , @ com.android.annotations.NonNull com.android.builder.testing.TestData testData , @ com.android.annotations.NonNull java.util.List < ? extends com.android.builder.testing.api.DeviceConnector > deviceList , int maxThreads , int timeoutInMs , @ com.android.annotations.NonNull java.util.Collection < java.lang.String > installOptions , @ com.android.annotations.NonNull java.io.File resultsDir , @ com.android.annotations.NonNull java.io.File coverageDir , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) throws com.android.builder.testing.TestRunner.NoAuthorizedDeviceFoundException , com.android.builder.testing.api.TestException , java.lang.InterruptedException ;
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; com.android.cts.verifier.TestListAdapter adapter = new com.android.cts.verifier.TestListAdapter ( this ) ; setListAdapter ( adapter ) ; com.android.cts.verifier.TestListActivity.TestResultContentObserver observer = new com.android.cts.verifier.TestListActivity.TestResultContentObserver ( adapter ) ; android.content.ContentResolver resolver = getContentResolver ( ) ; resolver.registerContentObserver ( TestResultsProvider.RESULTS_CONTENT_URI , true , observer ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mAdapter = new com.android.cts.verifier.TestListAdapter ( this , null ) ; setListAdapter ( mAdapter ) ; mAdapter.loadTestResults ( ) ; }
Source:
private void resetNetworkModeToDefault ( ) { mButtonPreferredNetworkMode.setValue ( java.lang.Integer.toString ( com.android.phone.MobileNetworkSettings.preferredNetworkMode ) ) ; android.provider.Settings.Secure.putInt ( mPhone.getContext ( ) . getContentResolver ( ) , android.provider.Settings.Secure.PREFERRED_NETWORK_MODE , com.android.phone.MobileNetworkSettings.preferredNetworkMode ) ; mPhone.setPreferredNetworkType ( com.android.phone.MobileNetworkSettings.preferredNetworkMode , this . obtainMessage ( com.android.phone.MobileNetworkSettings.MyHandler.MESSAGE_SET_PREFERRED_NETWORK_TYPE ) ) ; }

Target:
private void resetNetworkModeToDefault ( ) { mButtonPreferredNetworkMode.setValue ( java.lang.Integer.toString ( com.android.phone.MobileNetworkSettings.preferredNetworkMode ) ) ; android.provider.Settings.Global.putInt ( mPhone.getContext ( ) . getContentResolver ( ) , android.provider.Settings.Global.PREFERRED_NETWORK_MODE , com.android.phone.MobileNetworkSettings.preferredNetworkMode ) ; mPhone.setPreferredNetworkType ( com.android.phone.MobileNetworkSettings.preferredNetworkMode , this . obtainMessage ( com.android.phone.MobileNetworkSettings.MyHandler.MESSAGE_SET_PREFERRED_NETWORK_TYPE ) ) ; }
Source:
public void setUiTTYMode ( android.content.Context context , int uiTtyMode , android.os.Message onComplete ) throws com.android.ims.ImsException { checkAndThrowExceptionIfServiceUnavailable ( ) ; try { mImsServiceProxy.setUiTTYMode ( uiTtyMode , onComplete ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "setTTYMode()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } if ( ! ( getBooleanCarrierConfigForSlot ( CarrierConfigManager.KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL ) ) ) { setAdvanced4GMode ( ( ( uiTtyMode == ( android.telecom.TelecomManager.TTY_MODE_OFF ) ) && ( isEnhanced4gLteModeSettingEnabledByUserForSlot ( ) ) ) ) ; } }

Target:
public void setTtyMode ( int ttyMode ) throws com.android.ims.ImsException { if ( ! ( getBooleanCarrierConfigForSlot ( CarrierConfigManager.KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL ) ) ) { setAdvanced4GMode ( ( ( ttyMode == ( android.telecom.TelecomManager.TTY_MODE_OFF ) ) && ( isEnhanced4gLteModeSettingEnabledByUserForSlot ( ) ) ) ) ; } }
Source:
public static java.lang.String retrieveFieldValueName ( java.lang.String id , int field , int value , int style , java.util.Locale locale ) { sun.util.locale.provider.LocaleServiceProviderPool pool = sun.util.locale.provider.LocaleServiceProviderPool.getPool ( java.util.spi.CalendarNameProvider.class ) ; return pool.getLocalizedObject ( sun.util.locale.provider.CalendarDataUtility.CalendarFieldValueNameGetter.INSTANCE , locale , sun.util.locale.provider.CalendarDataUtility.normalizeCalendarType ( id ) , field , value , style , false ) ; }

Target:
public static java.lang.String retrieveJavaTimeFieldValueName ( java.lang.String id , int field , int value , int style , java.util.Locale locale ) { return null ; }
Source:
public void acceptCall ( ) throws com.android.internal.telephony.CallStateException { synchronized ( com.android.internal.telephony.sip.SipPhone.class ) { if ( ( ( ringingCall.getState ( ) ) == ( Call.State.INCOMING ) ) || ( ( ringingCall.getState ( ) ) == ( Call.State.WAITING ) ) ) { if ( com.android.internal.telephony.sip.SipPhone.DEBUG ) android.util.Log.d ( com.android.internal.telephony.sip.SipPhone.LOG_TAG , "acceptCall" ) ; ringingCall.setMute ( false ) ; ringingCall.acceptCall ( ) ; } else { throw new com.android.internal.telephony.CallStateException ( "phone not ringing" ) ; } } }

Target:
public void acceptCall ( ) throws com.android.internal.telephony.CallStateException { synchronized ( com.android.internal.telephony.sip.SipPhone.class ) { if ( ( ( ringingCall.getState ( ) ) == ( Call.State.INCOMING ) ) || ( ( ringingCall.getState ( ) ) == ( Call.State.WAITING ) ) ) { if ( com.android.internal.telephony.sip.SipPhone.DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.sip.SipPhone.LOG_TAG , "acceptCall" ) ; ringingCall.setMute ( false ) ; ringingCall.acceptCall ( ) ; } else { throw new com.android.internal.telephony.CallStateException ( "phone not ringing" ) ; } } }
Source:
public final com.google.common.reflect.TypeResolver where ( java.lang.reflect.Type formal , java.lang.reflect.Type actual ) { java.util.Map < java.lang.reflect.TypeVariable < ? > , java.lang.reflect.Type > mappings = com.google.common.collect.Maps.newHashMap ( ) ; com.google.common.reflect.TypeResolver.populateTypeMappings ( mappings , formal , actual ) ; return where ( mappings ) ; }

Target:
public com.google.common.reflect.TypeResolver where ( java.lang.reflect.Type formal , java.lang.reflect.Type actual ) { java.util.Map < com.google.common.reflect.TypeResolver.TypeVariableKey , java.lang.reflect.Type > mappings = com.google.common.collect.Maps.newHashMap ( ) ; com.google.common.reflect.TypeResolver.populateTypeMappings ( mappings , com.google.common.base.Preconditions.checkNotNull ( formal ) , com.google.common.base.Preconditions.checkNotNull ( actual ) ) ; return where ( mappings ) ; }
Source:
public int setUsbTethering ( boolean enable ) { try { return mService.setUsbTethering ( enable ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public int setUsbTethering ( boolean enable ) { try { java.lang.String pkgName = mContext.getOpPackageName ( ) ; android.util.Log.i ( android.net.ConnectivityManager.TAG , ( "setUsbTethering caller:" + pkgName ) ) ; return mService.setUsbTethering ( enable , pkgName ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
boolean startVoiceRecognition ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; int connectionState = mStateMachine.getConnectionState ( device ) ; if ( ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) && ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTING ) ) ) { return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.VOICE_RECOGNITION_START ) ; return true ; }

Target:
boolean stopVoiceRecognition ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; int connectionState = mStateMachine.getConnectionState ( device ) ; if ( ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) && ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTING ) ) ) { return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.VOICE_RECOGNITION_STOP , device ) ; return true ; }
Source:
private boolean hasRestrictedNetworkPermission ( android.content.pm.PackageInfo app ) { int flags = ( ( app.applicationInfo ) != null ) ? app.applicationInfo.flags : 0 ; if ( ( ( flags & ( android.content.pm.ApplicationInfo.FLAG_SYSTEM ) ) != 0 ) || ( ( flags & ( android.content.pm.ApplicationInfo.FLAG_UPDATED_SYSTEM_APP ) ) != 0 ) ) { return true ; } return ( hasPermission ( app , android.Manifest.permission.CONNECTIVITY_INTERNAL ) ) || ( hasPermission ( app , android.Manifest.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS ) ) ; }

Target:
public boolean hasUseBackgroundNetworksPermission ( int uid ) { final java.lang.String [ ] names = mPackageManager.getPackagesForUid ( uid ) ; if ( ( null == names ) || ( ( names.length ) == 0 ) ) return false ; try { final android.content.pm.PackageInfo app = mPackageManager.getPackageInfo ( names [ 0 ] , android.content.pm.PackageManager.GET_PERMISSIONS ) ; return hasUseBackgroundNetworksPermission ( app ) ; } catch ( android.content.pm.PackageManager.NameNotFoundException e ) { com.android.server.connectivity.PermissionMonitor.loge ( ( "NameNotFoundException " + ( names [ 0 ] ) ) , e ) ; return false ; } }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { android.util.Log.v ( com.android.bluetooth.pbapclient.PbapClientService.TAG , "onReceive" ) ; java.lang.String action = intent.getAction ( ) ; if ( action.equals ( BluetoothDevice.ACTION_ACL_DISCONNECTED ) ) { android.bluetooth.BluetoothDevice device = intent.getParcelableExtra ( BluetoothDevice.EXTRA_DEVICE ) ; if ( ( getConnectionState ( device ) ) != ( android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ) ) { disconnect ( device ) ; } } else if ( action.equals ( Intent.ACTION_USER_UNLOCKED ) ) { mPbapClientStateMachine.resumeDownload ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; android.util.Log.v ( com.android.bluetooth.pbapclient.PbapClientService.TAG , ( "onReceive" + action ) ) ; if ( action.equals ( BluetoothDevice.ACTION_ACL_DISCONNECTED ) ) { android.bluetooth.BluetoothDevice device = intent.getParcelableExtra ( BluetoothDevice.EXTRA_DEVICE ) ; if ( ( getConnectionState ( device ) ) == ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) { disconnect ( device ) ; } } else if ( action.equals ( Intent.ACTION_USER_UNLOCKED ) ) { mPbapClientStateMachine.resumeDownload ( ) ; } }
Source:
public static boolean verifySetsIdentical ( com.ibm.icu.dev.test.AbstractTestLog here , com.ibm.icu.text.UnicodeSet set1 , com.ibm.icu.text.UnicodeSet set2 ) { if ( set1.equals ( set2 ) ) return true ; here.errln ( "Sets differ:" ) ; here.errln ( "UnicodeMap - HashMap" ) ; here.errln ( new com.ibm.icu.text.UnicodeSet ( set1 ) . removeAll ( set2 ) . toPattern ( true ) ) ; here.errln ( "HashMap - UnicodeMap" ) ; here.errln ( new com.ibm.icu.text.UnicodeSet ( set2 ) . removeAll ( set1 ) . toPattern ( true ) ) ; return false ; }

Target:
public static boolean verifySetsIdentical ( com.ibm.icu.dev.test.AbstractTestLog here , com.ibm.icu.text.UnicodeSet set1 , com.ibm.icu.text.UnicodeSet set2 ) { if ( set1.equals ( set2 ) ) return true ; com.ibm.icu.dev.test.TestFmwk.errln ( "Sets differ:" ) ; com.ibm.icu.dev.test.TestFmwk.errln ( "UnicodeMap - HashMap" ) ; com.ibm.icu.dev.test.TestFmwk.errln ( new com.ibm.icu.text.UnicodeSet ( set1 ) . removeAll ( set2 ) . toPattern ( true ) ) ; com.ibm.icu.dev.test.TestFmwk.errln ( "HashMap - UnicodeMap" ) ; com.ibm.icu.dev.test.TestFmwk.errln ( new com.ibm.icu.text.UnicodeSet ( set2 ) . removeAll ( set1 ) . toPattern ( true ) ) ; return false ; }
Source:
public void remove ( ) { com.google.common.base.Preconditions.checkState ( ( ( current ) != null ) ) ; if ( ( current ) != ( next ) ) { previous = current.previousSibling ; ( nextIndex ) -- ; } else { next = current.nextSibling ; } removeNode ( current ) ; current = null ; }

Target:
public void remove ( ) { com.google.common.collect.CollectPreconditions.checkRemove ( ( ( current ) != null ) ) ; if ( ( current ) != ( next ) ) { previous = current.previousSibling ; ( nextIndex ) -- ; } else { next = current.nextSibling ; } removeNode ( current ) ; current = null ; }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; android.widget.TextView tv = ( ( android.widget.TextView ) ( findViewById ( R.id.dateText ) ) ) ; tv.setText ( getStringProvider ( ) . getString ( foo ) ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; android.widget.TextView tv = ( ( android.widget.TextView ) ( findViewById ( R.id.dateText ) ) ) ; tv.setText ( ( ( ( getStringProvider ( ) . getString ( foo ) ) + "," ) + ( useIndirectReference ( ) ) ) ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { com.android.sdkuilib.internal.widgets.DeviceCreationDialog dlg = new com.android.sdkuilib.internal.widgets.DeviceCreationDialog ( mShell , mDeviceManager , mUpdaterData.getImageFactory ( ) , d ) ; if ( ( dlg.open ( ) ) == ( org.eclipse.jface.window.Window.OK ) ) { setupDevices ( menuBarDevices ) ; } }

Target:
private void createDeviceTab ( org.eclipse.swt.widgets.TabFolder tabFolder , org.eclipse.swt.widgets.TabItem devTabItem ) { org.eclipse.swt.widgets.Composite root = new org.eclipse.swt.widgets.Composite ( tabFolder , org.eclipse.swt.SWT.NONE ) ; devTabItem.setControl ( root ) ; com.android.sdkuilib.ui.GridLayoutBuilder.create ( root ) . columns ( 1 ) ; com.android.sdkuilib.internal.repository.ui.DeviceManagerPage container = new com.android.sdkuilib.internal.repository.ui.DeviceManagerPage ( root , org.eclipse.swt.SWT.NONE , mUpdaterData , mDeviceManager ) ; com.android.sdkuilib.ui.GridDataBuilder.create ( container ) . fill ( ) . grab ( ) ; }
Source:
public void onActiveSessionsChanged ( java.util.List < android.media.session.MediaController > controllers ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "Active sessions changed, " + ( controllers.size ( ) ) ) + " sessions" ) ) ; if ( ( controllers.size ( ) ) > 0 ) { updateCurrentMediaController ( controllers.get ( 0 ) ) ; } }

Target:
public void onActiveSessionsChanged ( java.util.List < android.media.session.MediaController > controllers ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "Active sessions changed, " + ( controllers.size ( ) ) ) + " sessions" ) ) ; updateCurrentMediaControllers ( controllers ) ; }
Source:
public static long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , android.system.Int64Ref inOffset , long byteCount ) throws android.system.ErrnoException { if ( inOffset == null ) { return Libcore.os.sendfile ( outFd , inFd , null , byteCount ) ; } else { android.system.MutableLong internalInOffset = new android.system.MutableLong ( inOffset.value ) ; try { return Libcore.os.sendfile ( outFd , inFd , internalInOffset , byteCount ) ; } finally { inOffset.value = internalInOffset.value ; } } }

Target:
public static long splice ( java.io.FileDescriptor fdIn , android.system.Int64Ref offIn , java.io.FileDescriptor fdOut , android.system.Int64Ref offOut , long len , int flags ) throws android.system.ErrnoException { return Libcore.os.splice ( fdIn , offIn , fdOut , offOut , len , flags ) ; }
Source:
public java.util.Set < K > keySet ( ) { return new com.google.common.collect.ForwardingSet < K > ( ) { @ java.lang.Override protected java.util.Set < K > delegate ( ) { return set ; } @ java.lang.Override public boolean add ( K element ) { throw new java.lang.UnsupportedOperationException ( ) ; } @ java.lang.Override public boolean addAll ( java.util.Collection < ? extends K > collection ) { throw new java.lang.UnsupportedOperationException ( ) ; } } ; }

Target:
private static < E > java.util.Set < E > removeOnlySet ( final java.util.Set < E > set ) { return new com.google.common.collect.ForwardingSet < E > ( ) { @ java.lang.Override protected java.util.Set < E > delegate ( ) { return set ; } @ java.lang.Override public boolean add ( E element ) { throw new java.lang.UnsupportedOperationException ( ) ; } @ java.lang.Override public boolean addAll ( java.util.Collection < ? extends E > es ) { throw new java.lang.UnsupportedOperationException ( ) ; } } ; }
Source:
public void goBackOrForward ( final int steps ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { goBackOrForward ( steps ) ; } } ) ; return ; } mAwContents.goBackOrForward ( steps ) ; }

Target:
public void goBack ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { goBack ( ) ; } } ) ; return ; } mAwContents.goBack ( ) ; }
Source:
public synchronized void saveAlwaysOnPackage ( ) { final long token = android.os.Binder.clearCallingIdentity ( ) ; try { mSystemServices.settingsSecurePutStringForUser ( Settings.Secure.ALWAYS_ON_VPN_APP , getAlwaysOnPackage ( ) , mUserHandle ) ; mSystemServices.settingsSecurePutIntForUser ( Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN , ( mLockdown ? 1 : 0 ) , mUserHandle ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }

Target:
private void saveAlwaysOnPackage ( ) { final long token = android.os.Binder.clearCallingIdentity ( ) ; try { mSystemServices.settingsSecurePutStringForUser ( Settings.Secure.ALWAYS_ON_VPN_APP , getAlwaysOnPackage ( ) , mUserHandle ) ; mSystemServices.settingsSecurePutIntForUser ( Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN , ( ( mAlwaysOn ) && ( mLockdown ) ? 1 : 0 ) , mUserHandle ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }
Source:
public void test_get ( ) { java.lang.ref.WeakReference ref = newWeakReference ( null ) ; java.lang.System.gc ( ) ; java.lang.System.runFinalization ( ) ; assertNull ( "get() doesn't return null after gc for WeakReference" , ref.get ( ) ) ; obj = new java.lang.Object ( ) ; ref = new java.lang.ref.WeakReference < java.lang.Object > ( obj , new java.lang.ref.ReferenceQueue < java.lang.Object > ( ) ) ; ref.clear ( ) ; assertNull ( "get() doesn't return null after clear for WeakReference" , ref.get ( ) ) ; }

Target:
public void test_get ( ) { java.lang.ref.WeakReference ref = newWeakReference ( null ) ; libcore.java.lang.ref.FinalizationTester.induceFinalization ( ) ; assertNull ( "get() doesn't return null after gc for WeakReference" , ref.get ( ) ) ; obj = new java.lang.Object ( ) ; ref = new java.lang.ref.WeakReference < java.lang.Object > ( obj , new java.lang.ref.ReferenceQueue < java.lang.Object > ( ) ) ; ref.clear ( ) ; assertNull ( "get() doesn't return null after clear for WeakReference" , ref.get ( ) ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.CastExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JType type = getTypeMap ( ) . get ( x.resolvedType ) ; com.android.jack.ir.ast.JExpression expression = pop ( x.expression ) ; push ( new com.android.jack.ir.ast.JDynamicCastOperation ( info , type , expression ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.CastExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JType type = getTypeMap ( ) . get ( x.resolvedType ) ; com.android.jack.ir.ast.JExpression expression = pop ( x.expression ) ; push ( new com.android.jack.ir.ast.JDynamicCastOperation ( info , type , expression ) ) ; } catch ( com.android.jack.ir.ast.JTypeLookupException e ) { throw translateException ( x , e ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public void onPause ( ) { super . onPause ( ) ; com.android.dialer.common.LogUtil.enterBlock ( "NewCallLogFragment.onPause" ) ; com.android.dialer.common.concurrent.ThreadUtil.getUiThreadHandler ( ) . removeCallbacks ( setShouldMarkCallsReadTrue ) ; unregisterRefreshAnnotatedCallLogReceiver ( ) ; if ( shouldMarkCallsRead ) { com.google.common.util.concurrent.Futures.addCallback ( com.android.dialer.calllog.CallLogComponent.get ( getContext ( ) ) . getClearMissedCalls ( ) . clearAll ( ) , new com.android.dialer.common.concurrent.DefaultFutureCallback ( ) , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; } }

Target:
private void onFragmentHidden ( ) { com.android.dialer.common.concurrent.ThreadUtil.getUiThreadHandler ( ) . removeCallbacks ( setShouldMarkCallsReadTrue ) ; unregisterRefreshAnnotatedCallLogReceiver ( ) ; if ( shouldMarkCallsRead ) { com.google.common.util.concurrent.Futures.addCallback ( com.android.dialer.calllog.CallLogComponent.get ( getContext ( ) ) . getClearMissedCalls ( ) . clearAll ( ) , new com.android.dialer.common.concurrent.DefaultFutureCallback ( ) , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; } }