auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetValues005_Int2 ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointInt2" , StackTrace002Debuggee.INT_METHOD2_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointInt2" ) ; methodInfo.addVariable ( "param" , new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.INT_PARAM_VALUE ) ) ; methodInfo.addVariable ( "local" , new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.INT_PARAM_VALUE ) ) ; runStackFrameTest ( tester ) ; }

Target:
public void testGetValues005_Int ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.INT_SIGNAL ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.INT_PARAM_VALUE ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointInt" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointInt" ) ; methodInfo.addVariable ( "param" , oldValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
static final < K , V > java.util.concurrent.ConcurrentHashMap.Segment < K , V > [ ] newArray ( int i ) { return new java.util.concurrent.ConcurrentHashMap.Segment [ i ] ; }

Target:
static final < K , V > java.util.concurrent.ConcurrentHashMap.Segment < K , V > segmentAt ( java.util.concurrent.ConcurrentHashMap.Segment < K , V > [ ] ss , int j ) { long u = ( j << ( java.util.concurrent.ConcurrentHashMap.SSHIFT ) ) + ( java.util.concurrent.ConcurrentHashMap.SBASE ) ; return ss == null ? null : ( ( java.util.concurrent.ConcurrentHashMap.Segment < K , V > ) ( java.util.concurrent.ConcurrentHashMap.UNSAFE.getObjectVolatile ( ss , u ) ) ) ; }
Source:
public int hashCode ( ) { int result = native_instance ; result = ( 31 * result ) + ( mStyle ) ; return result ; }

Target:
public int hashCode ( ) { int result = 17 ; result = ( 31 * result ) + ( ( int ) ( ( native_instance ) ^ ( ( native_instance ) > > > 32 ) ) ) ; result = ( 31 * result ) + ( mStyle ) ; return result ; }
Source:
void silence ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "silence" ) ) ) { try { logOutgoing ( "silence %s" , callId ) ; mServiceInterface.silence ( callId ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
void abort ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "abort" ) ) ) { try { logOutgoing ( "abort %s" , callId ) ; mServiceInterface.abort ( callId , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } removeCall ( call , new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.LOCAL ) ) ; }
Source:
public void run ( ) { try { java.lang.Thread.sleep ( ( ( org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.TIME_UNIT ) * 5 ) ) ; channel1.configureBlocking ( false ) ; assertFalse ( channel1.isBlocking ( ) ) ; datagramSocket1.close ( ) ; } catch ( java.lang.Exception e ) { } }

Target:
public void testReadWrite_Block_Normal ( ) throws java.lang.Exception { byte [ ] sourceArray = new byte [ org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.CAPACITY_NORMAL ] ; byte [ ] targetArray = new byte [ org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.CAPACITY_NORMAL ] ; for ( int i = 0 ; i < ( sourceArray.length ) ; i ++ ) { sourceArray [ i ] = ( ( byte ) ( i ) ) ; } channel1.connect ( channel2Address ) ; channel2.connect ( channel1Address ) ; readWriteReadData ( this . channel1 , sourceArray , this . channel2 , targetArray , org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.CAPACITY_NORMAL , "testReadWrite_Block_Normal" ) ; }
Source:
public com.android.jack.ir.ast.cfg.JSimpleBasicBlock split ( int at ) { assert at == 0 ; com.android.jack.ir.ast.cfg.JSimpleBasicBlock block = new com.android.jack.ir.ast.cfg.JSimpleBasicBlock ( getCfg ( ) , this ) ; block.appendElement ( new com.android.jack.ir.ast.cfg.JGotoBlockElement ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) ; for ( com.android.jack.ir.ast.cfg.JBasicBlock pre : this . getPredecessorsSnapshot ( ) ) { if ( pre != block ) { pre.replaceAllSuccessors ( this , block ) ; } } return block ; }

Target:
public com.android.jack.ir.ast.cfg.JSimpleBasicBlock split ( int at ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void loadState ( org.jdom.Element state ) { myState.clear ( ) ; for ( org.jdom.Element action : state.getChildren ( "action" ) ) { final java.lang.String id = action.getAttributeValue ( "actionId" ) ; final java.lang.String clicks = action.getAttributeValue ( "clicks" ) ; try { final com.intellij.promoter.PromoterState info = new com.intellij.promoter.PromoterState ( ) ; info.setClicks ( java.lang.Integer.parseInt ( clicks ) ) ; myState.put ( id , info ) ; } catch ( java.lang.Exception ignore ) { } } }

Target:
public org.jdom.Element getState ( ) { final org.jdom.Element actions = new org.jdom.Element ( "actions" ) ; for ( java.lang.String id : myState.keySet ( ) ) { final org.jdom.Element action = new org.jdom.Element ( "action" ) ; action.setAttribute ( "actionId" , id ) ; action.setAttribute ( "clicks" , java.lang.String.valueOf ( myState.get ( id ) . getClicks ( ) ) ) ; actions.addContent ( action ) ; } return actions ; }
Source:
public void onScheduledRecordingStatusChanged ( com.android.tv.dvr.ScheduledRecording ... schedules ) { for ( com.android.tv.dvr.ScheduledRecording schedule : schedules ) { if ( ( ( schedule.getId ( ) ) == ( mSchedule.getId ( ) ) ) && ( ( schedule.getState ( ) ) != ( com.android.tv.dvr.ScheduledRecording.STATE_RECORDING_IN_PROGRESS ) ) ) { dismissDialog ( ) ; return ; } } }

Target:
public void onScheduledRecordingStatusChanged ( com.android.tv.dvr.data.ScheduledRecording ... schedules ) { for ( com.android.tv.dvr.data.ScheduledRecording schedule : schedules ) { if ( ( ( schedule.getId ( ) ) == ( mSchedule.getId ( ) ) ) && ( ( schedule.getState ( ) ) != ( com.android.tv.dvr.data.ScheduledRecording.STATE_RECORDING_IN_PROGRESS ) ) ) { dismissDialog ( ) ; return ; } } }
Source:
public void copyFrom ( short [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFrom" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFromUnchecked ( short [ ] d ) { copyFromUnchecked ( d , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
private void refreshStopIcon ( ) { org.eclipse.core.runtime.jobs.Job [ ] currentJobs = com.android.ide.eclipse.adt.internal.lint.EclipseLintRunner.getCurrentJobs ( ) ; if ( ( currentJobs.length ) > 0 ) { org.eclipse.ui.ISharedImages sharedImages = org.eclipse.ui.PlatformUI.getWorkbench ( ) . getSharedImages ( ) ; mRefreshAction.setImageDescriptor ( sharedImages.getImageDescriptor ( ISharedImages.IMG_ELCL_STOP ) ) ; for ( org.eclipse.core.runtime.jobs.Job job : currentJobs ) { job.addJobChangeListener ( this ) ; } } else { mRefreshAction.setImageDescriptor ( com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . getImageDescriptor ( com.android.ide.eclipse.adt.internal.lint.LintViewPart.REFRESH_ICON ) ) ; } }

Target:
private void refreshStopIcon ( ) { org.eclipse.core.runtime.jobs.Job [ ] currentJobs = com.android.ide.eclipse.adt.internal.lint.LintJob.getCurrentJobs ( ) ; if ( ( currentJobs.length ) > 0 ) { org.eclipse.ui.ISharedImages sharedImages = org.eclipse.ui.PlatformUI.getWorkbench ( ) . getSharedImages ( ) ; mRefreshAction.setImageDescriptor ( sharedImages.getImageDescriptor ( ISharedImages.IMG_ELCL_STOP ) ) ; for ( org.eclipse.core.runtime.jobs.Job job : currentJobs ) { job.addJobChangeListener ( this ) ; } } else { mRefreshAction.setImageDescriptor ( com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . getImageDescriptor ( com.android.ide.eclipse.adt.internal.lint.LintViewPart.REFRESH_ICON ) ) ; } }
Source:
public void setAbsoluteVolume ( int volume ) { if ( volume == ( mLocalVolume ) ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "setAbsoluteVolume is setting same index, ignore " + volume ) ) ; return ; } mHandler.removeMessages ( com.android.bluetooth.avrcp.Avrcp.MSG_ADJUST_VOLUME ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_SET_ABSOLUTE_VOLUME , volume , 0 ) ; mHandler.sendMessage ( msg ) ; }

Target:
public void setAbsoluteVolume ( int volume ) { if ( volume == ( mLocalVolume ) ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "setAbsoluteVolume is setting same index, ignore " + volume ) ) ; } return ; } final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "setAbsoluteVolume: mHandler is already null" ) ; return ; } handler.removeMessages ( com.android.bluetooth.avrcp.Avrcp.MSG_ADJUST_VOLUME ) ; android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_SET_ABSOLUTE_VOLUME , volume , 0 ) ; handler.sendMessage ( msg ) ; }
Source:
public static java.lang.String formatDateRange ( java.util.Locale locale , java.util.TimeZone tz , long startMs , long endMs , int flags ) { java.lang.String skeleton = libcore.icu.DateIntervalFormat.toSkeleton ( tz , startMs , endMs , flags ) ; return libcore.icu.DateIntervalFormat.formatDateInterval ( skeleton , locale.toString ( ) , startMs , endMs ) ; }

Target:
public static java.lang.String formatDateRange ( java.util.Locale locale , java.util.TimeZone tz , long startMs , long endMs , int flags ) { java.lang.String skeleton = libcore.icu.DateIntervalFormat.toSkeleton ( tz , startMs , endMs , flags ) ; return libcore.icu.DateIntervalFormat.formatDateInterval ( skeleton , locale.toString ( ) , tz.getID ( ) , startMs , endMs ) ; }
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 ; } @ java.lang.Override public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { return isGenericUpdateFor ( existingDesc ) ; } } ; }

Target:
public com.android.sdklib.repository.descriptors.IdDisplay getTag ( ) { return tag ; }
Source:
public void validateHomeSpWithInvalidHomeNetworkIds ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.HomeSP homeSp = new android.net.wifi.hotspot2.pps.HomeSP ( ) ; homeSp.fqdn = "fqdn" ; homeSp.friendlyName = "friendly name" ; homeSp.homeNetworkIds = new java.util.HashMap < > ( ) ; byte [ ] rawSsidBytes = new byte [ 33 ] ; java.util.Arrays.fill ( rawSsidBytes , ( ( byte ) ( 'a' ) ) ) ; homeSp.homeNetworkIds.put ( android.net.wifi.hotspot2.pps.StringFactory.newStringFromBytes ( rawSsidBytes , java.nio.charset.StandardCharsets.UTF_8 ) , 4660L ) ; org.junit.Assert.assertFalse ( homeSp.validate ( ) ) ; }

Target:
public void validateHomeSpWithInvalidHomeNetworkIds ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.HomeSP homeSp = android.net.wifi.hotspot2.pps.HomeSPTest.createHomeSpWithoutHomeNetworkIds ( ) ; java.util.Map < java.lang.String , java.lang.Long > homeNetworkIds = new java.util.HashMap < > ( ) ; byte [ ] rawSsidBytes = new byte [ 33 ] ; java.util.Arrays.fill ( rawSsidBytes , ( ( byte ) ( 'a' ) ) ) ; homeNetworkIds.put ( android.net.wifi.hotspot2.pps.StringFactory.newStringFromBytes ( rawSsidBytes , java.nio.charset.StandardCharsets.UTF_8 ) , 4660L ) ; homeSp.setHomeNetworkIds ( homeNetworkIds ) ; org.junit.Assert.assertFalse ( homeSp.validate ( ) ) ; }
Source:
public void testInCallShortPress_togglesMute ( ) throws java.lang.Exception { if ( ! ( mShouldTestTelecom ) ) { return ; } placeAndVerifyCall ( ) ; final android.telecom.cts.MockConnection connection = verifyConnectionForOutgoingCall ( ) ; final android.telecom.cts.MockInCallService incallService = mInCallCallbacks.getService ( ) ; assertMuteState ( incallService , false ) ; sendMediaButtonShortPress ( ) ; assertMuteState ( connection , true ) ; assertMuteState ( incallService , true ) ; sendMediaButtonShortPress ( ) ; assertMuteState ( connection , false ) ; assertMuteState ( incallService , false ) ; }

Target:
public void testInCallShortPress_hangupCall ( ) throws java.lang.Exception { if ( ! ( mShouldTestTelecom ) ) { return ; } placeAndVerifyCall ( ) ; final android.telecom.cts.MockConnection connection = verifyConnectionForOutgoingCall ( ) ; final android.telecom.Call call = mInCallCallbacks.getService ( ) . getLastCall ( ) ; assertCallState ( call , Call.STATE_DIALING ) ; connection.setActive ( ) ; assertCallState ( call , Call.STATE_ACTIVE ) ; sendMediaButtonShortPress ( ) ; assertCallState ( call , Call.STATE_DISCONNECTED ) ; assertConnectionState ( connection , Connection.STATE_DISCONNECTED ) ; }
Source:
public void testConfigurationUpdatesWhenResizedFromFullscreen ( ) throws java.lang.Exception { if ( ! ( supportsMultiWindowMode ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }

Target:
public void testConfigurationUpdatesWhenResizedFromFullscreen ( ) throws java.lang.Exception { if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }
Source:
public void forEach ( android.support.v8.renderscript.Allocation ain , android.support.v8.renderscript.Allocation aout ) { forEach ( 0 , ain , aout , null ) ; }

Target:
public void setAdd ( float r , float g , float b , float a ) { mAdd.x = r ; mAdd.y = g ; mAdd.z = b ; mAdd.w = a ; android.support.v8.renderscript.FieldPacker fp = new android.support.v8.renderscript.FieldPacker ( ( 4 * 4 ) ) ; fp.addF32 ( mAdd.x ) ; fp.addF32 ( mAdd.y ) ; fp.addF32 ( mAdd.z ) ; fp.addF32 ( mAdd.w ) ; setVar ( 1 , fp ) ; }
Source:
byte [ ] protectedArray ( ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } byte [ ] array = this . block.array ( ) ; if ( array == null ) { throw new java.lang.UnsupportedOperationException ( ) ; } return array ; }

Target:
byte [ ] protectedArray ( ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } byte [ ] array = this . block.array ( ) ; if ( array == null ) { throw new java.lang.UnsupportedOperationException ( ) ; } return array ; }
Source:
com.android.sched.vfs.WriteZipFS.ZipVFile createVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.WriteZipFS.ZipVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { assert ! ( isClosed ( ) ) ; return new com.android.sched.vfs.WriteZipFS.ZipVFile ( this , new java.util.zip.ZipEntry ( ( ( parent.getZipEntry ( ) . getName ( ) ) + name ) ) , name ) ; }

Target:
com.android.sched.vfs.WriteZipFS.ZipVFile createVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.WriteZipFS.ZipVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { assert ! ( isClosed ( ) ) ; com.android.sched.vfs.WriteZipFS.ZipVFile vFile = new com.android.sched.vfs.WriteZipFS.ZipVFile ( this , new java.util.zip.ZipEntry ( ( ( parent.getZipEntry ( ) . getName ( ) ) + name ) ) , name ) ; VFSStatCategory.ZIP_CREATED_ENTRIES.getCounterStat ( getTracer ( ) , infoString ) . incValue ( ) ; return vFile ; }
Source:
public void onOverScrolled ( final int scrollX , final int scrollY , final boolean clampedX , final boolean clampedY ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onOverScrolled ( scrollX , scrollY , clampedX , clampedY ) ; } } ) ; return ; } mAwContents.onContainerViewOverScrolled ( scrollX , scrollY , clampedX , clampedY ) ; }

Target:
public void setScrollBarStyle ( final int style ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setScrollBarStyle ( style ) ; } } ) ; return ; } mAwContents.setScrollBarStyle ( style ) ; }
Source:
public void onMessageSendFail ( int messageId , int reason ) { if ( android.net.wifi.nan.WifiNanManager.VDBG ) android.util.Log.v ( android.net.wifi.nan.WifiNanManager.TAG , ( "onMessageSendFail: reason=" + reason ) ) ; android.os.Message msg = mHandler.obtainMessage ( android.net.wifi.nan.WifiNanManager.WifiNanDiscoverySessionCallbackProxy.CALLBACK_MESSAGE_SEND_FAIL ) ; msg.arg1 = messageId ; msg.arg2 = reason ; mHandler.sendMessage ( msg ) ; }

Target:
public void onMessageSendFail ( int messageId , int reason ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) android.util.Log.v ( android.net.wifi.aware.WifiAwareManager.TAG , ( "onMessageSendFail: reason=" + reason ) ) ; android.os.Message msg = mHandler.obtainMessage ( android.net.wifi.aware.WifiAwareManager.WifiAwareDiscoverySessionCallbackProxy.CALLBACK_MESSAGE_SEND_FAIL ) ; msg.arg1 = messageId ; msg.arg2 = reason ; mHandler.sendMessage ( msg ) ; }
Source:
private com.android.jill.frontend.java.Variable getVariableWithLocalIndex ( @ javax.annotation.Nonnegative int localIdx , @ javax.annotation.Nonnull java.lang.String id , @ javax.annotation.Nonnull java.lang.String name , @ javax.annotation.Nonnull org.objectweb.asm.Type type , @ javax.annotation.CheckForNull java.lang.String signature ) { com.android.jill.frontend.java.Variable var = nameToVar.get ( id ) ; if ( var == null ) { var = new com.android.jill.frontend.java.Variable ( id , name , type , signature , localIdx , ( ( getLocalVariableNode ( localIdx ) ) == null ) ) ; nameToVar.put ( id , var ) ; } return var ; }

Target:
private com.android.jill.frontend.java.Variable getVariableWithLocalIndex ( @ javax.annotation.Nonnegative int localIdx , @ javax.annotation.Nonnull java.lang.String id , @ javax.annotation.Nonnull java.lang.String name , @ javax.annotation.Nonnull org.objectweb.asm.Type type , @ javax.annotation.CheckForNull java.lang.String signature , int modifier ) { com.android.jill.frontend.java.Variable var = nameToVar.get ( id ) ; if ( var == null ) { var = new com.android.jill.frontend.java.Variable ( id , name , type , signature , localIdx , modifier ) ; nameToVar.put ( id , var ) ; } return var ; }
Source:
public boolean containsAll ( java.util.Collection < ? > c ) { return standardContainsAll ( c ) ; }

Target:
java.util.Collection < V2 > transform ( K key , java.util.Collection < V1 > values ) { com.google.common.base.Function < ? super V1 , V2 > function = com.google.common.collect.Maps.asValueToValueFunction ( transformer , key ) ; if ( values instanceof java.util.List ) { return com.google.common.collect.Lists.transform ( ( ( java.util.List < V1 > ) ( values ) ) , function ) ; } else { return com.google.common.collect.Collections2.transform ( values , function ) ; } }
Source:
public void testAPInterfaceFailedWhenSwitchingToApMode ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( mWificond ) ; when ( mWificond.createApInterface ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; }

Target:
public void testSoftApDisabledWhenActive ( ) throws java.lang.Exception { enterSoftApActiveMode ( ) ; mSoftApListener.onStateChanged ( WifiManager.WIFI_AP_STATE_FAILED , 0 ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachinePrimeTest.SOFT_AP_MODE_STATE_STRING , mWifiStateMachinePrime.getCurrentMode ( ) ) ; verify ( mSoftApManager ) . stop ( ) ; }
Source:
private boolean startIPv6 ( ) { try { mNwService.setInterfaceIpv6PrivacyExtensions ( mInterfaceName , true ) ; mNwService.enableIpv6 ( mInterfaceName ) ; } catch ( android.os.RemoteException re ) { logError ( "Unable to change interface settings: %s" , re ) ; return false ; } catch ( java.lang.IllegalStateException ie ) { logError ( "Unable to change interface settings: %s" , ie ) ; return false ; } return true ; }

Target:
private boolean startIPv6 ( ) { try { mNwService.setInterfaceIpv6PrivacyExtensions ( mInterfaceName , true ) ; setIPv6AddrGenModeIfSupported ( ) ; mNwService.enableIpv6 ( mInterfaceName ) ; } catch ( java.lang.IllegalStateException | android.os.RemoteException | android.os.ServiceSpecificException e ) { logError ( "Unable to change interface settings: %s" , e ) ; return false ; } return true ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariableRef x ) { com.android.jack.debug.DebugVariableInfoMarker debugInfo = x.getMarker ( com.android.jack.debug.DebugVariableInfoMarker.class ) ; if ( ( debugInfo != null ) && ( ( debugInfo.getType ( ) ) != null ) ) { trace ( debugInfo.getType ( ) ) ; } }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariableRef x ) { com.android.jack.debug.DebugVariableInfoMarker debugInfo = x.getMarker ( com.android.jack.debug.DebugVariableInfoMarker.class ) ; if ( debugInfo != null ) { com.android.jack.ir.ast.JType debugInfoType = debugInfo.getType ( ) ; if ( debugInfoType != null ) { trace ( debugInfoType ) ; } } }
Source:
public int read ( byte [ ] buffer , int off , int nbytes ) throws java.io.IOException { int i = super . read ( buffer , off , nbytes ) ; if ( i != ( - 1 ) ) { bytesRead += i ; } return i ; }

Target:
public int read ( byte [ ] buffer , int byteOffset , int byteCount ) throws java.io.IOException { int i = super . read ( buffer , byteOffset , byteCount ) ; if ( i != ( - 1 ) ) { bytesRead += i ; } return i ; }
Source:
private void setBadge ( com.android.dialer.glidephotomanager.PhotoInfo photoInfo ) { if ( photoInfo.getIsSpam ( ) ) { hideBadge ( ) ; return ; } if ( photoInfo.getIsVideo ( ) ) { contactBadgeContainer.setVisibility ( View.VISIBLE ) ; videoCallBadge.setVisibility ( View.VISIBLE ) ; rttCallBadge.setVisibility ( com.android.dialer.widget.INVISIBLE ) ; } else if ( photoInfo.getIsRtt ( ) ) { contactBadgeContainer.setVisibility ( View.VISIBLE ) ; videoCallBadge.setVisibility ( com.android.dialer.widget.INVISIBLE ) ; rttCallBadge.setVisibility ( View.VISIBLE ) ; } else { hideBadge ( ) ; } }

Target:
private void setBadge ( com.android.dialer.glidephotomanager.PhotoInfo photoInfo ) { if ( photoInfo.getIsSpam ( ) ) { hideBadge ( ) ; return ; } if ( photoInfo.getIsVideo ( ) ) { contactBadgeContainer.setVisibility ( View.VISIBLE ) ; videoCallBadge.setVisibility ( View.VISIBLE ) ; rttCallBadge.setVisibility ( View.GONE ) ; } else if ( photoInfo.getIsRtt ( ) ) { contactBadgeContainer.setVisibility ( View.VISIBLE ) ; videoCallBadge.setVisibility ( View.GONE ) ; rttCallBadge.setVisibility ( View.VISIBLE ) ; } else { hideBadge ( ) ; } }
Source:
synchronized boolean replyReport ( byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( ( ( "replyReport(): type=" + type ) + " id=" ) + id ) ) ; return replyReportNative ( type , id , data ) ; }

Target:
synchronized boolean connect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( "connect(): device=" + device ) ) ; return connectNative ( ) ; }
Source:
private void unregisterUiccCardEvents ( ) { if ( ( mUiccCard ) != null ) mUiccCard.unregisterForCarrierPrivilegeRulesLoaded ( this ) ; if ( ( mUiccApplication ) != null ) mUiccApplication.unregisterForReady ( this ) ; if ( ( mUiccApplication ) != null ) mUiccApplication.unregisterForLocked ( this ) ; if ( ( mUiccApplication ) != null ) mUiccApplication.unregisterForNetworkLocked ( this ) ; if ( ( mIccRecords ) != null ) mIccRecords.unregisterForRecordsLoaded ( this ) ; if ( ( mIccRecords ) != null ) mIccRecords.unregisterForRecordsEvents ( this ) ; }

Target:
private boolean areAllRecordsLoaded ( ) { for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( ( app != null ) && ( isSupportedApplication ( app ) ) ) { com.android.internal.telephony.uicc.IccRecords ir = app.getIccRecords ( ) ; if ( ( ir == null ) || ( ! ( ir.isLoaded ( ) ) ) ) { return false ; } } } return ( mUiccApplications [ 0 ] ) != null ; }
Source:
public boolean checkForCondition ( ) { android.support.test.uiautomator.UiObject skipButton = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceIdMatches ( Res.GOOGLE_NOW_WELCOME_SKIP_RES ) ) ; try { if ( skipButton.exists ( ) ) { skipButton.clickAndWaitForNewWindow ( ) ; return true ; } else { return false ; } } catch ( java.lang.Exception e ) { org.junit.Assert.fail ( e.getStackTrace ( ) . toString ( ) ) ; return false ; } }

Target:
public boolean checkForCondition ( ) { android.support.test.uiautomator.UiObject skipButton = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceIdMatches ( Res.NOW_SIGNIN_DECLINE_BUTTON_RES ) ) ; try { if ( skipButton.exists ( ) ) { skipButton.clickAndWaitForNewWindow ( ) ; return true ; } else { return false ; } } catch ( java.lang.Exception e ) { org.junit.Assert.fail ( e.getStackTrace ( ) . toString ( ) ) ; return false ; } }
Source:
synchronized void nAllocationData1D ( long id , int off , int mip , int count , float [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData1D ( mContext , id , off , mip , count , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes , dt.mID ) ; }
Source:
public void testDialogShowWhenLockedActivity ( ) throws java.lang.Exception { if ( ! ( supportsKeyguard ( ) ) ) { return ; } launchActivity ( "ShowWhenLockedDialogActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "ShowWhenLockedDialogActivity" } ) ; mAmWmState.assertVisibility ( "ShowWhenLockedDialogActivity" , true ) ; gotoKeyguard ( ) ; mAmWmState.computeState ( mDevice , null ) ; mAmWmState.assertVisibility ( "ShowWhenLockedDialogActivity" , true ) ; assertWallpaperShowing ( ) ; assertShowingAndOccluded ( ) ; pressHomeButton ( ) ; unlockDevice ( ) ; }

Target:
public void testDialogShowWhenLockedActivity ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } launchActivity ( "ShowWhenLockedDialogActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "ShowWhenLockedDialogActivity" } ) ; mAmWmState.assertVisibility ( "ShowWhenLockedDialogActivity" , true ) ; gotoKeyguard ( ) ; mAmWmState.computeState ( mDevice , null ) ; mAmWmState.assertVisibility ( "ShowWhenLockedDialogActivity" , true ) ; assertWallpaperShowing ( ) ; assertShowingAndOccluded ( ) ; pressHomeButton ( ) ; unlockDevice ( ) ; }
Source:
public void TestAreConfusable1 ( ) { android.icu.text.SpoofChecker sc = new android.icu.text.SpoofChecker.Builder ( ) . build ( ) ; int checkResults ; checkResults = sc.areConfusable ( scLatin , scMixed ) ; assertEquals ( "" , SpoofChecker.MIXED_SCRIPT_CONFUSABLE , checkResults ) ; checkResults = sc.areConfusable ( goodGreek , scLatin ) ; assertEquals ( "" , 0 , checkResults ) ; checkResults = sc.areConfusable ( lll_Latin_a , lll_Latin_b ) ; assertEquals ( "" , SpoofChecker.SINGLE_SCRIPT_CONFUSABLE , checkResults ) ; }

Target:
public void TestAreConfusable1 ( ) { android.icu.text.SpoofChecker sc = new android.icu.text.SpoofChecker.Builder ( ) . build ( ) ; int checkResults ; checkResults = sc.areConfusable ( scLatin , scMixed ) ; assertEquals ( "Latin/Mixed is not MIXED_SCRIPT_CONFUSABLE" , SpoofChecker.MIXED_SCRIPT_CONFUSABLE , checkResults ) ; checkResults = sc.areConfusable ( goodGreek , scLatin ) ; assertEquals ( "Greek/Latin is not unconfusable" , 0 , checkResults ) ; checkResults = sc.areConfusable ( lll_Latin_a , lll_Latin_b ) ; assertEquals ( "Latin/Latin is not SINGLE_SCRIPT_CONFUSABLE" , SpoofChecker.SINGLE_SCRIPT_CONFUSABLE , checkResults ) ; }
Source:
public void run ( ) { com.android.monkeyrunner.core.IMonkeyBackend adb = new com.android.monkeyrunner.adb.AdbBackend ( ) ; final com.android.monkeyrunner.core.IMonkeyDevice device = adb.waitForConnection ( ) ; com.android.monkeyrunner.controller.MonkeyControllerFrame mf = new com.android.monkeyrunner.controller.MonkeyControllerFrame ( device ) ; mf.setVisible ( true ) ; mf.addWindowListener ( new java.awt.event.WindowAdapter ( ) { @ java.lang.Override public void windowClosed ( java.awt.event.WindowEvent e ) { device.dispose ( ) ; } } ) ; }

Target:
public void run ( ) { java.util.Map < java.lang.String , java.lang.String > options = new java.util.TreeMap < java.lang.String , java.lang.String > ( ) ; options.put ( "backend" , "adb" ) ; com.android.chimpchat.ChimpChat chimpchat = com.android.chimpchat.ChimpChat.getInstance ( options ) ; final com.android.chimpchat.core.IChimpDevice device = chimpchat.waitForConnection ( ) ; com.android.monkeyrunner.controller.MonkeyControllerFrame mf = new com.android.monkeyrunner.controller.MonkeyControllerFrame ( device ) ; mf.setVisible ( true ) ; mf.addWindowListener ( new java.awt.event.WindowAdapter ( ) { @ java.lang.Override public void windowClosed ( java.awt.event.WindowEvent e ) { device.dispose ( ) ; } } ) ; }
Source:
private static void testNoUnloadInstance ( java.lang.reflect.Constructor < ? > constructor ) throws java.lang.Exception { Main.Pair p = Main.testNoUnloadInstanceHelper ( constructor ) ; java.lang.Runtime.getRuntime ( ) . gc ( ) ; boolean isNull = ( p.classLoader.get ( ) ) == null ; java.lang.System.out.println ( ( "loader null " + isNull ) ) ; }

Target:
private static void testNoUnloadInstance ( java.lang.reflect.Constructor < ? > constructor ) throws java.lang.Exception { Main.Pair p = Main.testNoUnloadInstanceHelper ( constructor ) ; Main.doUnloading ( ) ; boolean isNull = ( p.classLoader.get ( ) ) == null ; java.lang.System.out.println ( ( "loader null " + isNull ) ) ; }
Source:
synchronized boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return mHidDeviceNativeInterface.reportError ( error ) ; }

Target:
synchronized boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.reportError ( error ) ) ; }
Source:
public synchronized void onDisconnect ( ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( "onDisconnect " + ( mCurrentCall ) ) ) ; if ( ( mHeadsetProfile ) != null ) { mHeadsetProfile.terminateCall ( mDevice , mCurrentCall ) ; mLocalDisconnect = true ; } else if ( ( mCurrentCall ) == null ) { android.util.Log.w ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , "Call disconnected but call handle not received." ) ; } }

Target:
public synchronized void onDisconnect ( ) { if ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( ( ( "onDisconnect call: " + ( mCurrentCall ) ) + " state: " ) + ( mClosed ) ) ) ; } if ( ! ( mClosed ) ) { mHeadsetProfile.terminateCall ( mDevice , mCurrentCall ) ; mLocalDisconnect = true ; } }
Source:
public void process ( com.android.gallery3d.photoeditor.Photo src , com.android.gallery3d.photoeditor.Photo dst ) { android.media.effect.Effect effect = getEffect ( "com.google.android.media.effect.effects.FaceTanningEffect" ) ; effect.setParameter ( "blend" , scale ) ; effect.apply ( src.texture ( ) , src.width ( ) , src.height ( ) , dst.texture ( ) ) ; }

Target:
public void process ( com.android.gallery3d.photoeditor.Photo src , com.android.gallery3d.photoeditor.Photo dst ) { android.media.effect.Effect effect = getEffect ( com.android.gallery3d.photoeditor.filters.FaceTanFilter.EFFECT_FACE_TANNING ) ; effect.setParameter ( "blend" , scale ) ; effect.apply ( src.texture ( ) , src.width ( ) , src.height ( ) , dst.texture ( ) ) ; }
Source:
public void testFailed ( com.android.builder.internal.testing.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { if ( ( mLogger ) != null ) { mLogger.warning ( java.lang.String.format ( "\n%1$s > %2$s[%3$s] [31mFAILED [0m" , test.getClassName ( ) , test.getTestName ( ) , mDeviceName ) ) ; mLogger.warning ( getModifiedTrace ( trace ) ) ; } mFailedTests.add ( test ) ; super . testFailed ( status , test , trace ) ; }

Target:
public void testFailed ( com.android.builder.internal.testing.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { if ( ( mLogger ) != null ) { mLogger.warning ( java.lang.String.format ( "\n%1$s > %2$s[%3$s] [31mFAILED [0m" , test.getClassName ( ) , test.getTestName ( ) , mDeviceName ) ) ; mLogger.warning ( getModifiedTrace ( trace ) ) ; } mFailedTests.add ( test ) ; super . testFailed ( TestFailure.FAILURE , test , trace ) ; }
Source:
public void testSetUserSelectedOutgoingPhoneAccountFailure ( ) throws android.os.RemoteException { org.mockito.Mockito.doThrow ( new java.lang.SecurityException ( ) ) . when ( mContext ) . enforceCallingOrSelfPermission ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) ) ; try { mTSIBinder.setUserSelectedOutgoingPhoneAccount ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 ) ; } catch ( java.lang.SecurityException e ) { } org.mockito.Mockito.verify ( mFakePhoneAccountRegistrar , org.mockito.Mockito.never ( ) ) . setUserSelectedOutgoingPhoneAccount ( org.mockito.Matchers.any ( android.telecom.PhoneAccountHandle.class ) , org.mockito.Matchers.any ( android.os.UserHandle.class ) ) ; }

Target:
public void testSetUserSelectedOutgoingPhoneAccountFailure ( ) throws android.os.RemoteException { org.mockito.Mockito.doThrow ( new java.lang.SecurityException ( ) ) . when ( mContext ) . enforceCallingOrSelfPermission ( org.mockito.Matchers.anyString ( ) , org.mockito.ArgumentMatchers.nullable ( java.lang.String.class ) ) ; try { mTSIBinder.setUserSelectedOutgoingPhoneAccount ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 ) ; } catch ( java.lang.SecurityException e ) { } org.mockito.Mockito.verify ( mFakePhoneAccountRegistrar , org.mockito.Mockito.never ( ) ) . setUserSelectedOutgoingPhoneAccount ( org.mockito.Matchers.any ( android.telecom.PhoneAccountHandle.class ) , org.mockito.Matchers.any ( android.os.UserHandle.class ) ) ; }
Source:
public int getDataActivationState ( int subId , java.lang.String callingPackage ) { if ( ! ( canReadPhoneState ( callingPackage , "getDataActivationStateForSubscriber" ) ) ) { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getDataActivationState ( ) ; } else { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } }

Target:
public int getDataActivationState ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getDataActivationStateForSubscriber" ) ) ) { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getDataActivationState ( ) ; } else { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } }
Source:
private int getExceptionSetupLabel ( int label ) { return ( maxLabel ) + label ; }

Target:
com.android.dx.cf.code.Ropper.ExceptionHandlerSetup getSetup ( com.android.dx.rop.type.Type caughtType ) { com.android.dx.cf.code.Ropper.ExceptionHandlerSetup handler = setups.get ( caughtType ) ; if ( handler == null ) { int handlerSetupLabel = exceptionSetupLabelAllocator.getNextLabel ( ) ; handler = new com.android.dx.cf.code.Ropper.ExceptionHandlerSetup ( caughtType , handlerSetupLabel ) ; setups.put ( caughtType , handler ) ; } return handler ; }
Source:
private void trackChangeRspForBrowseUnsupported ( ) { byte [ ] track = AvrcpConstants.TRACK_IS_SELECTED ; if ( ( ( mTrackChangedNT ) == ( AvrcpConstants.NOTIFICATION_TYPE_INTERIM ) ) && ( ! ( mMediaAttributes.exists ) ) ) { track = AvrcpConstants.NO_TRACK_SELECTED ; } registerNotificationRspTrackChangeNative ( mTrackChangedNT , track ) ; }

Target:
private void trackChangeRspForBrowseUnsupported ( boolean requested ) { byte [ ] track = AvrcpConstants.TRACK_IS_SELECTED ; if ( requested && ( ! ( mMediaAttributes.exists ) ) ) { track = AvrcpConstants.NO_TRACK_SELECTED ; } else if ( ! requested ) { mTrackChangedNT = AvrcpConstants.NOTIFICATION_TYPE_CHANGED ; } registerNotificationRspTrackChangeNative ( mTrackChangedNT , track ) ; }
Source:
public static void bindView ( com.android.settingslib.net.UidDetailProvider provider , com.android.settingslib.AppItem item , com.android.settings.datausage.AppDataUsagePreference target ) { final com.android.settingslib.net.UidDetail cachedDetail = provider.getUidDetail ( item.key , false ) ; if ( cachedDetail != null ) { com.android.settings.datausage.AppDataUsagePreference.UidDetailTask.bindView ( cachedDetail , target ) ; } else { new com.android.settings.datausage.AppDataUsagePreference.UidDetailTask ( provider , item , target ) . executeOnExecutor ( AsyncTask.THREAD_POOL_EXECUTOR ) ; } }

Target:
public static void bindView ( com.android.settingslib.net.UidDetailProvider provider , com.android.settingslib.AppItem item , com.android.settings.datausage.AppDataUsagePreference target ) { final com.android.settingslib.net.UidDetail cachedDetail = provider.getUidDetail ( item.key , false ) ; if ( cachedDetail != null ) { com.android.settings.datausage.AppDataUsagePreference.UidDetailTask.bindView ( cachedDetail , target ) ; } else { new com.android.settings.datausage.AppDataUsagePreference.UidDetailTask ( provider , item , target ) . execute ( ) ; } }
Source:
public void writeContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.io.JayceInternalWriterImpl out ) throws java.io.IOException { assert ( methodKind ) != null ; out.writeId ( name ) ; out.writeId ( returnType ) ; out.writeNodes ( parameters ) ; out.writeMethodKindEnum ( methodKind ) ; out.writeInt ( modifier ) ; out.writeNodes ( annotations ) ; out.writeNode ( body ) ; out.writeNodes ( markers ) ; }

Target:
public void writeContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.io.JayceInternalWriterImpl out ) throws java.io.IOException { assert ( methodKind ) != null ; out.writeId ( name ) ; out.writeId ( returnType ) ; out.writeNodes ( getParameters ( ) ) ; out.writeMethodKindEnum ( methodKind ) ; out.writeInt ( modifier ) ; out.writeNodes ( annotations ) ; out.writeNode ( body ) ; out.writeNodes ( markers ) ; }
Source:
public synchronized java.nio.channels.DatagramChannel connect ( java.net.SocketAddress address ) throws java.io.IOException { checkOpen ( ) ; if ( connected ) { throw new java.lang.IllegalStateException ( ) ; } java.net.InetSocketAddress inetSocketAddress = java.nio.SocketChannelImpl.validateAddress ( address ) ; try { begin ( ) ; libcore.io.IoBridge.connect ( fd , inetSocketAddress.getAddress ( ) , inetSocketAddress.getPort ( ) ) ; } catch ( java.net.ConnectException e ) { } finally { end ( true ) ; } connectAddress = inetSocketAddress ; connected = true ; isBound = true ; return this ; }

Target:
void onBind ( boolean updateSocketState ) { java.net.SocketAddress sa ; try { sa = Libcore.os.getsockname ( fd ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw new java.lang.AssertionError ( errnoException ) ; } isBound = true ; java.net.InetSocketAddress localSocketAddress = ( ( java.net.InetSocketAddress ) ( sa ) ) ; localAddress = localSocketAddress.getAddress ( ) ; localPort = localSocketAddress.getPort ( ) ; if ( updateSocketState && ( ( socket ) != null ) ) { socket.onBind ( localAddress , localPort ) ; } }
Source:
private android.hardware.radio.V1_0.IRadio getRadioProxy ( ) { android.hardware.radio.V1_0.IRadio radioProxy = null ; try { radioProxy = android.hardware.radio.V1_0.IRadio.getService ( com.android.internal.telephony.RIL.SOCKET_NAME_RIL [ ( ( mInstanceId ) == null ? 0 : mInstanceId ) ] ) ; if ( radioProxy != null ) { radioProxy.setResponseFunctions ( mRadioResponse , mRadioIndication ) ; } else { riljLoge ( "getRadioProxy: radioProxy == null" ) ; } } catch ( java.lang.Exception e ) { riljLoge ( "getRadioProxy: exception" , e ) ; } return radioProxy ; }

Target:
public void handleMessage ( android.os.Message msg ) { riljLog ( ( ( ( ( ( "handleMessage: msg.what = " + ( msg.what ) ) + " cookie = " ) + ( msg.obj ) ) + " mRadioProxyCookie = " ) + ( mRadioProxyCookie.get ( ) ) ) ) ; if ( ( ( msg.what ) == ( com.android.internal.telephony.RIL.EVENT_RADIO_PROXY_DEAD ) ) && ( ( ( long ) ( msg.obj ) ) == ( mRadioProxyCookie.get ( ) ) ) ) { resetProxyAndRequestList ( ) ; getRadioProxy ( ) ; } }
Source:
public java.io.OutputStream openWrite ( ) throws com.android.sched.util.file.WrongPermissionException { return new java.security.DigestOutputStream ( wrappedFile.openWrite ( ) , mdFactory.create ( ) ) { @ java.lang.Override public void close ( ) throws java.io.IOException { super . close ( ) ; digests.put ( getPath ( ) , getDigestString ( getMessageDigest ( ) . digest ( ) ) ) ; } } ; }

Target:
public java.io.OutputStream openWrite ( ) throws com.android.sched.util.file.WrongPermissionException { synchronized ( this ) { digests.remove ( getPath ( ) ) ; digest = null ; } return new java.security.DigestOutputStream ( wrappedFile.openWrite ( ) , mdFactory.create ( ) ) { @ java.lang.Override public void close ( ) throws java.io.IOException { super . close ( ) ; synchronized ( com.android.sched.vfs.MessageDigestFS.this ) { digests.put ( getPath ( ) , getDigestString ( getMessageDigest ( ) . digest ( ) ) ) ; digest = null ; } } } ; }
Source:
private void startSearch ( java.lang.String initialQuery , boolean selectInitialQuery , android.os.Bundle appSearchData , boolean globalSearch ) { if ( appSearchData == null ) { appSearchData = createGoogleSearchSourceBundle ( com.android.browser.Controller.GOOGLE_SEARCH_SOURCE_TYPE ) ; } com.android.browser.search.SearchEngine searchEngine = mSettings.getSearchEngine ( ) ; if ( ( searchEngine != null ) && ( ! ( searchEngine.supportsVoiceSearch ( ) ) ) ) { appSearchData.putBoolean ( SearchManager.DISABLE_VOICE_SEARCH , true ) ; } mActivity.startSearch ( initialQuery , selectInitialQuery , appSearchData , globalSearch ) ; }

Target:
private com.android.browser.Tab getPrevTab ( ) { int pos = ( mTabControl.getCurrentPosition ( ) ) - 1 ; if ( pos < 0 ) { pos = ( mTabControl.getTabCount ( ) ) - 1 ; } return mTabControl.getTab ( pos ) ; }
Source:
public void loadViewAttributes ( com.android.ide.eclipse.adt.internal.resources.ViewClassInfo info ) { if ( ( getDocument ( ) ) != null ) { java.lang.String xmlName = info.getShortClassName ( ) ; com.android.ide.eclipse.adt.internal.resources.DeclareStyleableInfo style = mStyleMap.get ( xmlName ) ; if ( style != null ) { info.setAttributes ( style.getAttributes ( ) ) ; info.setJavaDoc ( style.getJavaDoc ( ) ) ; } } }

Target:
public void loadViewAttributes ( com.android.ide.common.resources.platform.ViewClassInfo info ) { if ( ( getDocument ( ) ) != null ) { java.lang.String xmlName = info.getShortClassName ( ) ; com.android.ide.common.resources.platform.DeclareStyleableInfo style = mStyleMap.get ( xmlName ) ; if ( style != null ) { info.setAttributes ( style.getAttributes ( ) ) ; info.setJavaDoc ( style.getJavaDoc ( ) ) ; } } }
Source:
public java.nio.ByteBuffer putDouble ( double value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.DOUBLE ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeLong ( ( ( offset ) + ( position ) ) , java.lang.Double.doubleToRawLongBits ( value ) , order ) ; position = newPosition ; return this ; }

Target:
public java.nio.ByteBuffer putDouble ( double value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.DOUBLE ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeLong ( ( ( offset ) + ( position ) ) , java.lang.Double.doubleToRawLongBits ( value ) , order ) ; position = newPosition ; return this ; }