auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.util.concurrent.ScheduledExecutorService executor ( ) { return java.util.concurrent.Executors.newSingleThreadScheduledExecutor ( ) ; }

Target:
protected java.util.concurrent.ScheduledExecutorService executor ( ) { final java.util.concurrent.ScheduledExecutorService executor = java.util.concurrent.Executors.newSingleThreadScheduledExecutor ( new java.util.concurrent.ThreadFactory ( ) { @ java.lang.Override public java.lang.Thread newThread ( java.lang.Runnable runnable ) { return com.google.common.util.concurrent.MoreExecutors.newThread ( serviceName ( ) , runnable ) ; } } ) ; addListener ( new com.google.common.util.concurrent.Service.Listener ( ) { @ java.lang.Override public void terminated ( com.google.common.util.concurrent.Service.State from ) { executor.shutdown ( ) ; } @ java.lang.Override public void failed ( com.google.common.util.concurrent.Service.State from , java.lang.Throwable failure ) { executor.shutdown ( ) ; } } , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; return executor ; }
Source:
public java.io.OutputStream openWrite ( ) throws java.io.FileNotFoundException { if ( ( vfsRoot ) instanceof com.android.sched.vfs.SequentialOutputVDir ) { if ( ( ( com.android.sched.vfs.SequentialOutputVDir ) ( vfsRoot ) ) . notifyVFileOpenAndReturnPreviousState ( ) ) { throw new java.lang.AssertionError ( ( ( getLocation ( ) . getDescription ( ) ) + " cannot be written to because a previous stream has not been closed." ) ) ; } } return new com.android.sched.vfs.direct.DirectFile.VFileOutputStream ( new java.io.FileOutputStream ( file ) , vfsRoot ) ; }

Target:
public java.io.OutputStream openWrite ( ) throws java.io.FileNotFoundException { if ( ( vfsRoot ) instanceof com.android.sched.vfs.SequentialOutputVDir ) { if ( ( ( com.android.sched.vfs.SequentialOutputVDir ) ( vfsRoot ) ) . notifyVFileOpenAndReturnPreviousState ( ) ) { throw new java.lang.AssertionError ( ( ( getLocation ( ) . getDescription ( ) ) + " cannot be written to because a previous stream has not been closed." ) ) ; } } return new com.android.sched.vfs.DirectFile.VFileOutputStream ( new java.io.FileOutputStream ( file ) , vfsRoot ) ; }
Source:
public < V > java.util.concurrent.ScheduledFuture < V > schedule ( java.util.concurrent.Callable < V > callable , long delay , java.util.concurrent.TimeUnit unit ) { return delegate.schedule ( callable , delay , unit ) ; }

Target:
public com.google.common.util.concurrent.ListenableScheduledFuture < ? > scheduleWithFixedDelay ( java.lang.Runnable command , long initialDelay , long delay , java.util.concurrent.TimeUnit unit ) { com.google.common.util.concurrent.MoreExecutors.ScheduledListeningDecorator.NeverSuccessfulListenableFutureTask task = new com.google.common.util.concurrent.MoreExecutors.ScheduledListeningDecorator.NeverSuccessfulListenableFutureTask ( command ) ; java.util.concurrent.ScheduledFuture < ? > scheduled = delegate.scheduleWithFixedDelay ( task , initialDelay , delay , unit ) ; return new com.google.common.util.concurrent.MoreExecutors.ScheduledListeningDecorator.ListenableScheduledTask < java.lang.Void > ( task , scheduled ) ; }
Source:
void updateCpuStats ( ) { synchronized ( mProcessStatsThread ) { final long now = android.os.SystemClock.uptimeMillis ( ) ; if ( ( mLastCpuTime ) < ( now - ( com.android.server.am.ActivityManagerService.MONITOR_CPU_MIN_TIME ) ) ) { mProcessStatsThread.notify ( ) ; } } }

Target:
void updateCpuStats ( ) { final long now = android.os.SystemClock.uptimeMillis ( ) ; if ( ( mLastCpuTime.get ( ) ) >= ( now - ( com.android.server.am.ActivityManagerService.MONITOR_CPU_MIN_TIME ) ) ) { return ; } if ( mProcessStatsMutexFree.compareAndSet ( true , false ) ) { synchronized ( mProcessStatsThread ) { mProcessStatsThread.notify ( ) ; } } }
Source:
protected android.icu.impl.OlsonTimeZone createInstance ( java.lang.String key , java.lang.String data ) { android.icu.impl.OlsonTimeZone tz = null ; try { android.icu.util.UResourceBundle top = android.icu.util.UResourceBundle.getBundleInstance ( ICUResourceBundle.ICU_BASE_NAME , android.icu.impl.ZoneMeta.ZONEINFORESNAME , ICUResourceBundle.ICU_DATA_CLASS_LOADER ) ; android.icu.util.UResourceBundle res = android.icu.impl.ZoneMeta.openOlsonResource ( top , data ) ; if ( res != null ) { tz = new android.icu.impl.OlsonTimeZone ( top , res , data ) ; tz.freeze ( ) ; } } catch ( java.util.MissingResourceException e ) { } return tz ; }

Target:
protected android.icu.impl.OlsonTimeZone createInstance ( java.lang.String key , java.lang.String data ) { android.icu.impl.OlsonTimeZone tz = null ; try { android.icu.util.UResourceBundle top = android.icu.util.UResourceBundle.getBundleInstance ( ICUData.ICU_BASE_NAME , android.icu.impl.ZoneMeta.ZONEINFORESNAME , ICUResourceBundle.ICU_DATA_CLASS_LOADER ) ; android.icu.util.UResourceBundle res = android.icu.impl.ZoneMeta.openOlsonResource ( top , data ) ; if ( res != null ) { tz = new android.icu.impl.OlsonTimeZone ( top , res , data ) ; tz.freeze ( ) ; } } catch ( java.util.MissingResourceException e ) { } return tz ; }
Source:
private void init ( ) { final android.os.Messenger messenger = getMessenger ( ) ; if ( messenger == null ) { android.net.nsd.NsdManager.fatal ( "Failed to obtain service Messenger" ) ; } android.os.HandlerThread t = new android.os.HandlerThread ( "NsdManager" ) ; t.start ( ) ; mHandler = new android.net.nsd.NsdManager.ServiceHandler ( t.getLooper ( ) ) ; mAsyncChannel.connect ( mContext , mHandler , messenger ) ; try { mConnected.await ( ) ; } catch ( java.lang.InterruptedException e ) { android.net.nsd.NsdManager.fatal ( "Interrupted wait at init" ) ; } }

Target:
private void init ( ) { final android.os.Messenger messenger = getMessenger ( ) ; if ( messenger == null ) throw new java.lang.RuntimeException ( "Failed to initialize" ) ; android.os.HandlerThread t = new android.os.HandlerThread ( "NsdManager" ) ; t.start ( ) ; mHandler = new android.net.nsd.NsdManager.ServiceHandler ( t.getLooper ( ) ) ; mAsyncChannel.connect ( mContext , mHandler , messenger ) ; try { mConnected.await ( ) ; } catch ( java.lang.InterruptedException e ) { android.util.Log.e ( android.net.nsd.NsdManager.TAG , "interrupted wait at init" ) ; } }
Source:
private int append ( android.net.ConnectivityMetricsEvent event ) { if ( com.android.server.connectivity.IpConnectivityMetrics.DBG ) android.util.Log.d ( com.android.server.connectivity.IpConnectivityMetrics.TAG , ( "logEvent: " + event ) ) ; synchronized ( mLock ) { final int left = ( mCapacity ) - ( mBuffer.size ( ) ) ; if ( event == null ) { return left ; } if ( left == 0 ) { ( mDropped ) ++ ; return 0 ; } mBuffer.add ( event ) ; return left - 1 ; } }

Target:
private int append ( android.net.ConnectivityMetricsEvent event ) { if ( com.android.server.connectivity.IpConnectivityMetrics.DBG ) android.util.Log.d ( com.android.server.connectivity.IpConnectivityMetrics.TAG , ( "logEvent: " + event ) ) ; synchronized ( mLock ) { final int left = ( mCapacity ) - ( mBuffer.size ( ) ) ; if ( event == null ) { return left ; } if ( isRateLimited ( event ) ) { return com.android.server.connectivity.IpConnectivityMetrics.ERROR_RATE_LIMITED ; } if ( left == 0 ) { ( mDropped ) ++ ; return 0 ; } mBuffer.add ( event ) ; return left - 1 ; } }
Source:
public void iccCloseLogicalChannel ( int channel , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SIM_CLOSE_CHANNEL , response ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( channel ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void iccCloseLogicalChannel ( int channel , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SIM_CLOSE_CHANNEL , response , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( channel ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
public void testPerformanceSummaryAddedProfilingPoint ( ) throws java.io.FileNotFoundException , java.io.IOException { setUp ( false ) ; com.android.vts.util.PerformanceSummary today = dailySummaries.get ( 0 ) ; com.android.vts.util.ProfilingPointSummary summary = new com.android.vts.util.ProfilingPointSummary ( ) ; com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode mode = com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode.VTS_REGRESSION_MODE_INCREASING ; com.android.vts.entity.ProfilingPointRunEntity pt = com.android.vts.servlet.VtsPerformanceJobServletTest.createProfilingReport ( com.android.vts.servlet.VtsPerformanceJobServletTest.LABELS , com.android.vts.servlet.VtsPerformanceJobServletTest.HIGH_VALS , mode ) ; summary.update ( pt ) ; summary.update ( pt ) ; today.insertProfilingPointSummary ( "p3" , summary ) ; java.lang.String output = com.android.vts.servlet.VtsPerformanceJobServlet.getPerformanceSummary ( "test" , dailySummaries , legendLabels ) ; com.android.vts.servlet.VtsPerformanceJobServletTest.compareToBaseline ( output , "performanceSummary3.html" ) ; }

Target:
public void testPerformanceSummaryAddedProfilingPoint ( ) throws java.io.FileNotFoundException , java.io.IOException { setUp ( false ) ; com.android.vts.util.PerformanceSummary today = dailySummaries.get ( 0 ) ; com.android.vts.util.ProfilingPointSummary summary = new com.android.vts.util.ProfilingPointSummary ( ) ; com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode mode = com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode.VTS_REGRESSION_MODE_INCREASING ; com.android.vts.entity.ProfilingPointRunEntity pt = com.android.vts.job.VtsPerformanceJobServletTest.createProfilingReport ( com.android.vts.job.VtsPerformanceJobServletTest.LABELS , com.android.vts.job.VtsPerformanceJobServletTest.HIGH_VALS , mode ) ; summary.update ( pt ) ; summary.update ( pt ) ; today.insertProfilingPointSummary ( "p3" , summary ) ; java.lang.String output = com.android.vts.job.VtsPerformanceJobServlet.getPerformanceSummary ( "test" , dailySummaries , legendLabels ) ; com.android.vts.job.VtsPerformanceJobServletTest.compareToBaseline ( output , "performanceSummary3.html" ) ; }
Source:
private static java.lang.Object openDexFile ( java.lang.String sourceName , java.lang.String outputName , int flags , java.lang.ClassLoader loader ) throws java.io.IOException { return dalvik.system.DexFile.openDexFileNative ( new java.io.File ( sourceName ) . getAbsolutePath ( ) , ( outputName == null ? null : new java.io.File ( outputName ) . getAbsolutePath ( ) ) , flags , loader ) ; }

Target:
private static java.lang.Object openDexFile ( java.lang.String sourceName , java.lang.String outputName , int flags , java.lang.ClassLoader loader , dalvik.system.DexPathList [ ] elements ) throws java.io.IOException { return dalvik.system.DexFile.openDexFileNative ( new java.io.File ( sourceName ) . getAbsolutePath ( ) , ( outputName == null ? null : new java.io.File ( outputName ) . getAbsolutePath ( ) ) , flags , loader , elements ) ; }
Source:
public void testUnocclude ( ) throws java.lang.Exception { if ( ! ( isHandheld ( ) ) ) { return ; } gotoKeyguard ( ) ; launchActivity ( "ShowWhenLockedActivity" ) ; launchActivity ( "TestActivity" ) ; mAmWmState.waitForKeyguardShowingAndNotOccluded ( mDevice ) ; mAmWmState.computeState ( mDevice , null ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_KEYGUARD_UNOCCLUDE , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }

Target:
public void testUnocclude ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } gotoKeyguard ( ) ; launchActivity ( "ShowWhenLockedActivity" ) ; launchActivity ( "TestActivity" ) ; mAmWmState.waitForKeyguardShowingAndNotOccluded ( mDevice ) ; mAmWmState.computeState ( mDevice , null ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_KEYGUARD_UNOCCLUDE , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }
Source:
private boolean validEfCfis ( byte [ ] data ) { return ( ( data != null ) && ( ( data [ 0 ] ) >= 1 ) ) && ( ( data [ 0 ] ) <= 4 ) ; }

Target:
private boolean validEfCfis ( byte [ ] data ) { if ( data != null ) { if ( ( ( data [ 0 ] ) < 1 ) || ( ( data [ 0 ] ) > 4 ) ) { logw ( ( ( "MSP byte: " + ( data [ 0 ] ) ) + " is not between 1 and 4" ) , null ) ; } return true ; } return false ; }
Source:
public boolean removeAll ( java.util.Collection < ? > c ) { boolean modified = false ; for ( java.util.Iterator < java.util.Map.Entry < K , V > > i = iterator ( ) ; i.hasNext ( ) ; ) { if ( c.contains ( i.next ( ) ) ) { i.remove ( ) ; modified = true ; } } return modified ; }

Target:
public boolean removeAll ( java.util.Collection < ? > c ) { java.util.Objects.requireNonNull ( c ) ; boolean modified = false ; for ( java.util.Iterator < java.util.Map.Entry < K , V > > i = iterator ( ) ; i.hasNext ( ) ; ) { if ( c.contains ( i.next ( ) ) ) { i.remove ( ) ; modified = true ; } } return modified ; }
Source:
public void setAlwaysFinish ( boolean enabled ) { enforceCallingPermission ( android.Manifest.permission.SET_ALWAYS_FINISH , "setAlwaysFinish()" ) ; Settings.Global.putInt ( mContext.getContentResolver ( ) , Settings.Global.ALWAYS_FINISH_ACTIVITIES , ( enabled ? 1 : 0 ) ) ; synchronized ( this ) { mAlwaysFinishActivities = enabled ; } }

Target:
public void setAlwaysFinish ( boolean enabled ) { enforceCallingPermission ( android.Manifest.permission.SET_ALWAYS_FINISH , "setAlwaysFinish()" ) ; long ident = android.os.Binder.clearCallingIdentity ( ) ; try { Settings.Global.putInt ( mContext.getContentResolver ( ) , Settings.Global.ALWAYS_FINISH_ACTIVITIES , ( enabled ? 1 : 0 ) ) ; synchronized ( this ) { mAlwaysFinishActivities = enabled ; } } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }
Source:
public void keepScreenOnStoppedLw ( ) { if ( ( ( mKeyguardDelegate ) != null ) && ( ! ( mKeyguardDelegate.isShowingAndNotHidden ( ) ) ) ) { long curTime = android.os.SystemClock.uptimeMillis ( ) ; mPowerManager.userActivity ( android.os.SystemClock.uptimeMillis ( ) , false ) ; } }

Target:
public void keepScreenOnStoppedLw ( ) { if ( ( ( mKeyguardDelegate ) != null ) && ( ! ( mKeyguardDelegate.isShowingAndNotOccluded ( ) ) ) ) { mPowerManager.userActivity ( android.os.SystemClock.uptimeMillis ( ) , false ) ; } }
Source:
private void stopAvrcpUpdates ( ) { com.android.bluetooth.avrcp.AvrcpControllerService avrcpService = com.android.bluetooth.avrcp.AvrcpControllerService.getAvrcpControllerService ( ) ; if ( com.android.bluetooth.a2dpsink.A2dpSinkStreamingStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.A2dpSinkStreamingStateMachine.TAG , "stopAvrcpUpdates" ) ; } if ( ( avrcpService != null ) && ( ( avrcpService.getConnectedDevices ( ) . size ( ) ) == 1 ) ) { avrcpService.stopAvrcpUpdates ( ) ; } else { android.util.Log.e ( com.android.bluetooth.a2dpsink.A2dpSinkStreamingStateMachine.TAG , "stopAvrcpUpdates failed because of connection." ) ; } }

Target:
private void stopAvrcpUpdates ( ) { com.android.bluetooth.avrcpcontroller.AvrcpControllerService avrcpService = com.android.bluetooth.avrcpcontroller.AvrcpControllerService.getAvrcpControllerService ( ) ; if ( com.android.bluetooth.a2dpsink.A2dpSinkStreamingStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.A2dpSinkStreamingStateMachine.TAG , "stopAvrcpUpdates" ) ; } if ( ( avrcpService != null ) && ( ( avrcpService.getConnectedDevices ( ) . size ( ) ) == 1 ) ) { avrcpService.stopAvrcpUpdates ( ) ; } else { android.util.Log.e ( com.android.bluetooth.a2dpsink.A2dpSinkStreamingStateMachine.TAG , "stopAvrcpUpdates failed because of connection." ) ; } }
Source:
private void verifyNorm ( ) throws java.lang.Throwable { float expectedMagneticFieldEarth = ( ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MAX ) + ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MIN ) ) / 2 ; float magneticFieldEarthThreshold = expectedMagneticFieldEarth - ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MIN ) ; android.hardware.cts.helpers.sensoroperations.VerifySensorOperation verifyNorm = new android.hardware.cts.helpers.sensoroperations.VerifySensorOperation ( this . getApplicationContext ( ) , android.hardware.Sensor.TYPE_MAGNETIC_FIELD , android.hardware.SensorManager.SENSOR_DELAY_FASTEST , 0 , 100 ) ; verifyNorm.verifyMagnitude ( expectedMagneticFieldEarth , magneticFieldEarthThreshold ) ; verifyNorm.execute ( ) ; logSuccess ( ) ; }

Target:
private void verifyNorm ( ) throws java.lang.Throwable { float expectedMagneticFieldEarth = ( ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MAX ) + ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MIN ) ) / 2 ; float magneticFieldEarthThreshold = expectedMagneticFieldEarth - ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MIN ) ; android.hardware.cts.helpers.sensoroperations.TestSensorOperation verifyNorm = new android.hardware.cts.helpers.sensoroperations.TestSensorOperation ( this . getApplicationContext ( ) , android.hardware.Sensor.TYPE_MAGNETIC_FIELD , android.hardware.SensorManager.SENSOR_DELAY_FASTEST , 0 , 100 ) ; verifyNorm.addVerification ( new android.hardware.cts.helpers.sensorverification.MagnitudeVerification ( expectedMagneticFieldEarth , magneticFieldEarthThreshold ) ) ; verifyNorm.execute ( ) ; logSuccess ( ) ; }
Source:
private void onDataConnectionAttached ( ) { if ( DBG ) log ( "onDataConnectionAttached" ) ; if ( ( getOverallState ( ) ) == ( DctConstants.State.CONNECTED ) ) { if ( DBG ) log ( "onDataConnectionAttached: start polling notify attached" ) ; startNetStatPoll ( ) ; startDataStallAlarm ( com.android.internal.telephony.dataconnection.DATA_STALL_NOT_SUSPECTED ) ; notifyDataConnection ( Phone.REASON_DATA_ATTACHED ) ; } else { notifyOffApnsOfAvailability ( Phone.REASON_DATA_ATTACHED ) ; } mAutoAttachOnCreation = true ; setupDataOnConnectableApns ( Phone.REASON_DATA_ATTACHED ) ; }

Target:
private void onDataConnectionAttached ( ) { if ( DBG ) log ( "onDataConnectionAttached" ) ; mAttached.set ( true ) ; if ( ( getOverallState ( ) ) == ( DctConstants.State.CONNECTED ) ) { if ( DBG ) log ( "onDataConnectionAttached: start polling notify attached" ) ; startNetStatPoll ( ) ; startDataStallAlarm ( com.android.internal.telephony.dataconnection.DATA_STALL_NOT_SUSPECTED ) ; notifyDataConnection ( Phone.REASON_DATA_ATTACHED ) ; } else { notifyOffApnsOfAvailability ( Phone.REASON_DATA_ATTACHED ) ; } mAutoAttachOnCreation = true ; setupDataOnConnectableApns ( Phone.REASON_DATA_ATTACHED ) ; }
Source:
private void testWithMargins ( ) { doLayoutParamTest ( ( android.view.WindowManager.LayoutParams params ) -> { params.gravity = ( android.view.Gravity.LEFT ) | ( android.view.Gravity.TOP ) ; params.horizontalMargin = 0.25F ; params.verticalMargin = 0.35F ; params.width = 200 ; params.height = 200 ; params.x = 0 ; params.y = 0 ; } ) ; }

Target:
private void testExplicitSizeBottomRightGravity ( ) { doLayoutParamTest ( ( android.view.WindowManager.LayoutParams params ) -> { params.width = ( 200 - ( mOutsets.left ) ) - ( mOutsets.right ) ; params.height = ( 200 - ( mOutsets.bottom ) ) - ( mOutsets.top ) ; params.gravity = ( android.view.Gravity.BOTTOM ) | ( android.view.Gravity.RIGHT ) ; } ) ; }
Source:
public void startTdls ( java.lang.String macAddr , boolean enable ) { if ( enable ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { doBooleanCommand ( ( "TDLS_DISCOVER " + macAddr ) ) ; doBooleanCommand ( ( "TDLS_SETUP " + macAddr ) ) ; } } else { doBooleanCommand ( ( "TDLS_TEARDOWN " + macAddr ) ) ; } }

Target:
public void startTdls ( java.lang.String macAddr , boolean enable ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { if ( enable ) { mSupplicantStaIfaceHal.initiateTdlsDiscover ( macAddr ) ; mSupplicantStaIfaceHal.initiateTdlsSetup ( macAddr ) ; } else { mSupplicantStaIfaceHal.initiateTdlsTeardown ( macAddr ) ; } } else { if ( enable ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { doBooleanCommand ( ( "TDLS_DISCOVER " + macAddr ) ) ; doBooleanCommand ( ( "TDLS_SETUP " + macAddr ) ) ; } } else { doBooleanCommand ( ( "TDLS_TEARDOWN " + macAddr ) ) ; } } }
Source:
public void testIsRootView ( ) { android.view.ViewGroup rootView = new android.view.ViewGroup ( context ) { @ java.lang.Override protected void onLayout ( boolean changed , int l , int t , int r , int b ) { } } ; android.view.View view = new android.view.View ( context ) ; rootView.addView ( view ) ; assertTrue ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) . matches ( rootView ) ) ; assertFalse ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) . matches ( view ) ) ; }

Target:
public void isRootViewTest ( ) { android.view.ViewGroup rootView = new android.view.ViewGroup ( context ) { @ java.lang.Override protected void onLayout ( boolean changed , int l , int t , int r , int b ) { } } ; android.view.View view = new android.view.View ( context ) ; rootView.addView ( view ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) . matches ( rootView ) ) ; org.junit.Assert.assertFalse ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) . matches ( view ) ) ; }
Source:
public void testValidateLocalRepositoryFile2 ( ) throws java.lang.Exception { java.io.InputStream xmlStream = this . getClass ( ) . getResourceAsStream ( "/com/android/sdklib/testdata/repository_sample_2.xml" ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( xmlStream ) ; com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler handler = new com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler ( ) ; javax.xml.validation.Validator validator = getValidator ( 2 , handler ) ; validator.validate ( source ) ; handler.verify ( ) ; }

Target:
public void testValidateLocalRepositoryFile2 ( ) throws java.lang.Exception { java.io.InputStream xmlStream = this . getClass ( ) . getResourceAsStream ( "/com/android/sdklib/testdata/repository_sample_2.xml" ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( xmlStream ) ; com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler handler = new com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler ( ) ; javax.xml.validation.Validator validator = getRepoValidator ( 2 , handler ) ; validator.validate ( source ) ; handler.verify ( ) ; }
Source:
public void onStart ( ) { super . onStart ( ) ; getDialog ( ) . setOnKeyListener ( new android.content.DialogInterface.OnKeyListener ( ) { public boolean onKey ( android.content.DialogInterface dialog , int keyCode , android.view.KeyEvent keyEvent ) { mHandler.removeCallbacks ( mAutoDismisser ) ; mHandler.postDelayed ( mAutoDismisser , com.android.tv.dvr.ui.HalfSizedDialogFragment.AUTO_DISMISS_TIME_THRESHOLD_MS ) ; return false ; } } ) ; mHandler.postDelayed ( mAutoDismisser , com.android.tv.dvr.ui.HalfSizedDialogFragment.AUTO_DISMISS_TIME_THRESHOLD_MS ) ; }

Target:
public void onStart ( ) { super . onStart ( ) ; mHandler.postDelayed ( mAutoDismisser , com.android.tv.dialog.HalfSizedDialogFragment.AUTO_DISMISS_TIME_THRESHOLD_MS ) ; }
Source:
public void setupDataCall ( int accessNetworkType , android.telephony.data.DataProfile dataProfile , boolean isRoaming , boolean allowRoaming , boolean isHandover , android.net.LinkProperties linkProperties , android.telephony.data.IDataServiceCallback callback ) { mHandler.obtainMessage ( android.telephony.data.DataService.DATA_SERVICE_REQUEST_SETUP_DATA_CALL , mSlotId , 0 , new android.telephony.data.DataService.SetupDataCallRequest ( accessNetworkType , dataProfile , isRoaming , allowRoaming , isHandover , linkProperties , callback ) ) . sendToTarget ( ) ; }

Target:
public void setupDataCall ( int accessNetworkType , android.telephony.data.DataProfile dataProfile , boolean isRoaming , boolean allowRoaming , int reason , android.net.LinkProperties linkProperties , android.telephony.data.IDataServiceCallback callback ) { mHandler.obtainMessage ( android.telephony.data.DataService.DATA_SERVICE_REQUEST_SETUP_DATA_CALL , mSlotId , 0 , new android.telephony.data.DataService.SetupDataCallRequest ( accessNetworkType , dataProfile , isRoaming , allowRoaming , reason , linkProperties , callback ) ) . sendToTarget ( ) ; }
Source:
public void run ( long sslSession ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_shutdown ( sslSession , org.conscrypt.NativeCryptoTest.INVALID_FD , org.conscrypt.NativeCryptoTest.DUMMY_CB ) ; fail ( ) ; } catch ( java.net.SocketException expected ) { } }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { long time = org.conscrypt.NativeCrypto.SSL_SESSION_get_time ( session ) ; assertTrue ( ( time != 0 ) ) ; assertTrue ( ( time < ( java.lang.System.currentTimeMillis ( ) ) ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public static < T > T get ( java.util.Iterator < ? extends T > iterator , int position , @ javax.annotation.Nullable T defaultValue ) { com.google.common.collect.Iterators.checkNonnegative ( position ) ; try { return com.google.common.collect.Iterators.get ( iterator , position ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { return defaultValue ; } }

Target:
public static < T > T get ( java.util.Iterator < ? extends T > iterator , int position , @ javax.annotation.Nullable T defaultValue ) { com.google.common.collect.Iterators.checkNonnegative ( position ) ; com.google.common.collect.Iterators.advance ( iterator , position ) ; return com.google.common.collect.Iterators.getNext ( iterator , defaultValue ) ; }
Source:
public void testCreateForPhoneAccountHandle ( ) { android.telecom.TelecomManager telecomManager = getContext ( ) . getSystemService ( android.telecom.TelecomManager.class ) ; android.telecom.PhoneAccountHandle handle = telecomManager.getDefaultOutgoingPhoneAccount ( PhoneAccount.SCHEME_TEL ) ; android.telephony.TelephonyManager telephonyManager = mTelephonyManager.createForPhoneAccountHandle ( handle ) ; assertEquals ( mTelephonyManager.getSubscriberId ( ) , telephonyManager.getSubscriberId ( ) ) ; }

Target:
public void testCreateForPhoneAccountHandle ( ) { android.telecom.TelecomManager telecomManager = android.telephony.cts.TelephonyManagerTest.getContext ( ) . getSystemService ( android.telecom.TelecomManager.class ) ; android.telecom.PhoneAccountHandle handle = telecomManager.getDefaultOutgoingPhoneAccount ( PhoneAccount.SCHEME_TEL ) ; android.telephony.TelephonyManager telephonyManager = mTelephonyManager.createForPhoneAccountHandle ( handle ) ; org.junit.Assert.assertEquals ( mTelephonyManager.getSubscriberId ( ) , telephonyManager.getSubscriberId ( ) ) ; }
Source:
private void doAdd ( ) { com.google.gct.testing.CloudTestConfigurationImpl newConfiguration = ( ( selectedConfiguration ) != null ) ? selectedConfiguration.copy ( "Copy of " ) : new com.google.gct.testing.CloudTestConfigurationImpl ( facet ) ; newConfiguration.setIcon ( CloudTestConfigurationProviderImpl.DEFAULT_ICON ) ; int addIndex = ( ( selectedConfiguration ) == null ) ? editableConfigurations.size ( ) : ( editableConfigurations.indexOf ( selectedConfiguration ) ) + 1 ; editableConfigurations.add ( addIndex , newConfiguration ) ; addConfigurationToTree ( addIndex , newConfiguration , true ) ; selectedConfiguration = newConfiguration ; updateConfigurationTree ( ) ; }

Target:
private void doAdd ( ) { addNewConfiguration ( new com.google.gct.testing.CloudTestConfigurationImpl ( facet ) ) ; }
Source:
public java.lang.String get ( int index ) { com.android.jack.dx.io.DexBuffer.checkBounds ( index , tableOfContents.typeIds.size ) ; return strings.get ( typeIds.get ( index ) . intValue ( ) ) ; }

Target:
private java.util.List < java.lang.Integer > readTypeIds ( ) { com.android.jack.dx.io.DexBuffer.Section typeIds = open ( tableOfContents.typeIds.off ) ; java.lang.Integer [ ] result = new java.lang.Integer [ tableOfContents.typeIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.typeIds.size ) ; ++ i ) { result [ i ] = java.lang.Integer.valueOf ( typeIds.readInt ( ) ) ; } return java.util.Arrays.asList ( result ) ; }
Source:
void assertPhoneAccountEnabled ( final android.telecom.PhoneAccountHandle handle ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return true ; } @ java.lang.Override public java.lang.Object actual ( ) { android.telecom.PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount ( handle ) ; return ( phoneAccount != null ) && ( phoneAccount.isEnabled ( ) ) ; } } , android.telecom.cts.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Phone account enable failed for " + handle ) ) ; }

Target:
void assertPhoneAccountEnabled ( final android.telecom.PhoneAccountHandle handle ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return true ; } @ java.lang.Override public java.lang.Object actual ( ) { android.telecom.PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount ( handle ) ; return ( phoneAccount != null ) && ( phoneAccount.isEnabled ( ) ) ; } } , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Phone account enable failed for " + handle ) ) ; }
Source:
public void showVoiceSearchResults ( java.lang.String result ) { android.content.ContentProviderClient client = mActivity.getContentResolver ( ) . acquireContentProviderClient ( Browser.BOOKMARKS_URI ) ; android.content.ContentProvider prov = client.getLocalContentProvider ( ) ; com.android.browser.provider.BrowserProvider bp = ( ( com.android.browser.provider.BrowserProvider ) ( prov ) ) ; bp.setQueryResults ( mTabControl.getCurrentTab ( ) . getVoiceSearchResults ( ) ) ; client.release ( ) ; android.os.Bundle bundle = createGoogleSearchSourceBundle ( com.android.browser.Controller.GOOGLE_SEARCH_SOURCE_SEARCHKEY ) ; bundle.putBoolean ( SearchManager.CONTEXT_IS_VOICE , true ) ; startSearch ( result , false , bundle , false ) ; }

Target:
public void onCancel ( android.content.DialogInterface dialog ) { cancel ( true ) ; }
Source:
public void onCallerInfoChanged ( com.android.server.telecom.Call call ) { call.removeListener ( this ) ; showMissedCallNotification ( call , userHandle ) ; }

Target:
public void onContactPhotoQueryComplete ( android.net.Uri queryHandle , com.android.internal.telephony.CallerInfo info ) { if ( ! ( java.util.Objects.equals ( queryHandle , handle ) ) ) { com.android.server.telecom.Log.w ( this , ( "CallerInfo query for photo returned " + "with different handle." ) ) ; return ; } com.android.server.telecom.ui.CallInfo callInfo = callInfoFactory.makeCallInfo ( info , null , handle , date ) ; showMissedCallNotification ( callInfo , userHandle ) ; }
Source:
public com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile [ ] getSourceFileArray ( ) { java.util.ArrayList < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile > list = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile > ( ) ; list.addAll ( mFiles ) ; java.util.Collections.sort ( list , com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem.sComparator ) ; return list.toArray ( new com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile [ list.size ( ) ] ) ; }

Target:
public com.android.ide.common.resources.ResourceFile [ ] getSourceFileArray ( ) { java.util.ArrayList < com.android.ide.common.resources.ResourceFile > list = new java.util.ArrayList < com.android.ide.common.resources.ResourceFile > ( ) ; list.addAll ( mFiles ) ; java.util.Collections.sort ( list , com.android.ide.common.resources.ResourceItem.sComparator ) ; return list.toArray ( new com.android.ide.common.resources.ResourceFile [ list.size ( ) ] ) ; }
Source:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( "getDevicesMatchingConnectionStates(): states=" + ( java.util.Arrays.toString ( states ) ) ) ) ; return null ; }

Target:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( "connect(): device=" + device ) ) ; boolean result = false ; if ( ( mService ) != null ) { try { result = mService.connect ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return result ; }
Source:
public boolean equalImmutableCapabilities ( android.net.NetworkCapabilities nc ) { if ( nc == null ) return false ; return ( ( equalsNetCapabilitiesImmutable ( nc ) ) && ( equalsTransportTypes ( nc ) ) ) && ( equalsSpecifier ( nc ) ) ; }

Target:
public static java.lang.String capabilityNamesOf ( int [ ] capabilities ) { java.util.StringJoiner joiner = new java.util.StringJoiner ( "|" ) ; if ( capabilities != null ) { for ( int c : capabilities ) { joiner.add ( android.net.NetworkCapabilities.capabilityNameOf ( c ) ) ; } } return joiner.toString ( ) ; }
Source:
public void test_getPeerHost ( ) throws java.lang.Exception { javax.net.ssl.SSLSession s = clientSession ; assertEquals ( java.net.InetAddress.getLocalHost ( ) . getHostName ( ) , s.getPeerHost ( ) ) ; assertEquals ( serverSocket.getLocalPort ( ) , s.getPeerPort ( ) ) ; }

Target:
public void test_getPeerHost ( ) throws java.lang.Exception { javax.net.ssl.SSLSession s = clientSession ; assertEquals ( ( ( java.net.InetSocketAddress ) ( serverSocket.getLocalSocketAddress ( ) ) ) . getHostString ( ) , s.getPeerHost ( ) ) ; assertEquals ( serverSocket.getLocalPort ( ) , s.getPeerPort ( ) ) ; }
Source:
public void xmlParsing_unknownTimeZoneIdIgnored ( ) throws java.lang.Exception { libcore.util.TimeZoneFinder finder = libcore.util.TimeZoneFinderTest.validate ( ( "<timezones>\n" + ( ( ( ( ( ( " <countryzones>\n" + " <country code=\"gb\">\n" ) + " <id>Unknown_Id</id>\n" ) + " <id>Europe/London</id>\n" ) + " </country>\n" ) + " </countryzones>\n" ) + "</timezones>\n" ) ) ) ; libcore.util.TimeZoneFinderTest.assertZonesEqual ( libcore.util.TimeZoneFinderTest.zones ( "Europe/London" ) , finder.lookupTimeZonesByCountry ( "gb" ) ) ; }

Target:
public void xmlParsing_unknownTimeZoneIdIgnored ( ) throws java.lang.Exception { libcore.util.TimeZoneFinder finder = libcore.util.TimeZoneFinderTest.validate ( ( "<timezones ianaversion=\"2017b\">\n" + ( ( ( ( ( ( " <countryzones>\n" + " <country code=\"gb\">\n" ) + " <id>Unknown_Id</id>\n" ) + " <id>Europe/London</id>\n" ) + " </country>\n" ) + " </countryzones>\n" ) + "</timezones>\n" ) ) ) ; libcore.util.TimeZoneFinderTest.assertZonesEqual ( libcore.util.TimeZoneFinderTest.zones ( "Europe/London" ) , finder.lookupTimeZonesByCountry ( "gb" ) ) ; }
Source:
public java.lang.Boolean wifiConnect ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "config" ) org.json.JSONObject config ) throws java.net.ConnectException , org.json.JSONException { android.net.wifi.WifiConfiguration wifiConfig = genWifiConfig ( config ) ; int nId = mWifi.addNetwork ( wifiConfig ) ; if ( nId < 0 ) { com.googlecode.android_scripting.Log.e ( "Got negative network Id." ) ; return false ; } mWifi.enableNetwork ( nId , true ) ; return mWifi.reconnect ( ) ; }

Target:
public java.lang.Boolean wifiConnect ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "config" ) org.json.JSONObject config ) throws java.net.ConnectException , org.json.JSONException { android.net.wifi.WifiConfiguration wifiConfig = genWifiConfig ( config ) ; int nId = mWifi.addNetwork ( wifiConfig ) ; if ( nId < 0 ) { com.googlecode.android_scripting.Log.e ( "Got negative network Id." ) ; return false ; } if ( ! ( mWifi.enableNetwork ( nId , true ) ) ) { com.googlecode.android_scripting.Log.e ( "Failed to enable wifi network." ) ; return false ; } return mWifi.reconnect ( ) ; }
Source:
public void testEncodeDoesNotWrap ( ) { int [ ] data = new int [ 61 ] ; java.util.Arrays.fill ( data , 255 ) ; java.lang.String expected = "///////////////////////////////////////////////////////////////////////" + "//////////w==" ; assertEncoded ( expected , data ) ; }

Target:
public void testDecode_truncated ( ) throws java.lang.Exception { assertEquals ( "hello, world" , libcore.io.Base64Test.decodeToString ( "aGVsbG8sIHdvcmxk" ) ) ; assertEquals ( "hello, wo" , libcore.io.Base64Test.decodeToString ( "aGVsbG8sIHdvcmx" ) ) ; assertEquals ( "hello, wo" , libcore.io.Base64Test.decodeToString ( "aGVsbG8sIHdvcm" ) ) ; assertEquals ( "hello, wo" , libcore.io.Base64Test.decodeToString ( "aGVsbG8sIHdvc" ) ) ; assertEquals ( "hello, wo" , libcore.io.Base64Test.decodeToString ( "aGVsbG8sIHdv" ) ) ; }
Source:
public void TestFirst ( ) { com.ibm.icu.text.RuleBasedBreakIterator rbbi = new com.ibm.icu.text.RuleBasedBreakIterator ( "" ) ; rbbi.setText ( ( ( java.text.CharacterIterator ) ( null ) ) ) ; if ( ( rbbi.first ( ) ) != ( com.ibm.icu.text.BreakIterator.DONE ) ) { errln ( ( "RuleBasedBreakIterator.first() was suppose to return " + "BreakIterator.DONE when the object has a null fText." ) ) ; } }

Target:
public void TestBug12797 ( ) { java.lang.String rules = "!!chain; !!forward; $v=b c; a b; $v; !!reverse; .*;" ; com.ibm.icu.text.RuleBasedBreakIterator bi = new com.ibm.icu.text.RuleBasedBreakIterator ( rules ) ; bi.setText ( "abc" ) ; bi.first ( ) ; assertEquals ( "Rule chaining test" , 3 , bi.next ( ) ) ; }
Source:
public void test_EVP_SignInit ( ) throws java.lang.Exception { final org.conscrypt.OpenSSLDigestContext ctx = new org.conscrypt.OpenSSLDigestContext ( org.conscrypt.NativeCrypto.EVP_MD_CTX_create ( ) ) ; assertEquals ( 1 , org.conscrypt.NativeCrypto.EVP_SignInit ( ctx , org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "sha256" ) ) ) ; try { org.conscrypt.NativeCrypto.EVP_SignInit ( ctx , 0 ) ; fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }

Target:
public void test_EVP_SignInit ( ) throws java.lang.Exception { final org.conscrypt.NativeRef.EVP_MD_CTX ctx = new org.conscrypt.NativeRef.EVP_MD_CTX ( org.conscrypt.NativeCrypto.EVP_MD_CTX_create ( ) ) ; assertEquals ( 1 , org.conscrypt.NativeCrypto.EVP_SignInit ( ctx , org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "sha256" ) ) ) ; try { org.conscrypt.NativeCrypto.EVP_SignInit ( ctx , 0 ) ; fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }
Source:
com.android.manifmerger.MergingReport.Builder addError ( java.lang.String error ) { mHasErrors = true ; mRecordBuilder.add ( new com.android.manifmerger.MergingReport.Record ( com.android.manifmerger.MergingReport.Record.Severity.ERROR , error ) ) ; return this ; }

Target:
com.android.manifmerger.MergingReport.Builder addMessage ( @ com.android.annotations.NonNull com.android.manifmerger.XmlLoader.SourceLocation errorLocation , int line , int column , @ com.android.annotations.NonNull com.android.manifmerger.MergingReport.Record.Severity severity , @ com.android.annotations.NonNull java.lang.String message ) { switch ( severity ) { case ERROR : mHasErrors = true ; break ; case WARNING : mHasWarnings = true ; break ; } mRecordBuilder.add ( new com.android.manifmerger.MergingReport.Record ( errorLocation , line , column , severity , message ) ) ; return this ; }
Source:
public com.android.sched.vfs.InputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { java.util.zip.ZipEntry entry = zip.getEntry ( path.getPathAsString ( com.android.sched.vfs.InputZipRootVDir.IN_ZIP_SEPARATOR ) ) ; return new com.android.sched.vfs.InputZipVFile ( path.getLastPathElement ( ) , zip , entry ) ; }

Target:
public com.android.sched.vfs.InputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException { java.lang.String pathAsString = path.getPathAsString ( com.android.sched.vfs.InputZipRootVDir.IN_ZIP_SEPARATOR ) ; java.util.zip.ZipEntry entry = zip.getEntry ( pathAsString ) ; if ( entry == null ) { throw new com.android.sched.util.file.NoSuchFileException ( new com.android.sched.util.location.FileLocation ( pathAsString ) ) ; } return new com.android.sched.vfs.InputZipVFile ( path.getLastPathElement ( ) , zip , entry ) ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int bc = in.read ( ) ; int b = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( bc ) ; int c = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( bc ) ; return new com.android.jack.dx.io.instructions.ThreeRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , 0L , a , b , c ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int bc = in.read ( ) ; int b = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( bc ) ; int c = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( bc ) ; return new com.android.jack.dx.io.instructions.ThreeRegisterDecodedInstruction ( this , opcode , 0 , com.android.jack.dx.io.IndexType.NONE , 0 , 0L , a , b , c ) ; }
Source:
public void setMustTraceOverridingMethods ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { if ( ( ! ( method.getEnclosingType ( ) . isExternal ( ) ) ) && ( ! ( isForcedMark ( method ) ) ) ) { synchronized ( method ) { com.android.jack.tracer.MultiTracerMarker marker = method.getMarker ( com.android.jack.tracer.MultiTracerMarker.class ) ; assert ( marker != null ) && ( marker.isSet ( id ) ) ; marker.setMustTraceOverridingMethods ( id , true ) ; } } }

Target:
public void setMustTraceOverridingMethods ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { if ( ( method.getEnclosingType ( ) . isToEmit ( ) ) && ( ! ( isForcedMark ( method ) ) ) ) { synchronized ( method ) { com.android.jack.tracer.MultiTracerMarker marker = method.getMarker ( com.android.jack.tracer.MultiTracerMarker.class ) ; assert ( marker != null ) && ( marker.isSet ( id ) ) ; marker.setMustTraceOverridingMethods ( id , true ) ; } } }
Source:
public static com.android.internal.telephony.gsm.SmsMessage newFromCDS ( java.lang.String line ) { try { com.android.internal.telephony.gsm.SmsMessage msg = new com.android.internal.telephony.gsm.SmsMessage ( ) ; msg.parsePdu ( com.android.internal.telephony.IccUtils.hexStringToBytes ( line ) ) ; return msg ; } catch ( java.lang.RuntimeException ex ) { android.util.Log.e ( com.android.internal.telephony.gsm.SmsMessage.LOG_TAG , "CDS SMS PDU parsing failed: " , ex ) ; return null ; } }

Target:
public static com.android.internal.telephony.gsm.SmsMessage newFromCDS ( java.lang.String line ) { try { com.android.internal.telephony.gsm.SmsMessage msg = new com.android.internal.telephony.gsm.SmsMessage ( ) ; msg.parsePdu ( com.android.internal.telephony.uicc.IccUtils.hexStringToBytes ( line ) ) ; return msg ; } catch ( java.lang.RuntimeException ex ) { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.SmsMessage.LOG_TAG , "CDS SMS PDU parsing failed: " , ex ) ; return null ; } }
Source:
private void handlePackageModified ( java.lang.String packageName , boolean removed ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "packageName: " + packageName ) + " removed: " ) + removed ) ) ; if ( removed ) { if ( isBrowseSupported ( packageName ) ) { removePackageFromBrowseList ( packageName ) ; } } else { if ( isBrowsableListUpdated ( packageName ) ) { new com.android.bluetooth.avrcp.Avrcp.BrowsablePlayerListBuilder ( ) . start ( ) ; } } }

Target:
private void handlePackageModified ( java.lang.String packageName , boolean removed ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "packageName: " + packageName ) + " removed: " ) + removed ) ) ; if ( removed ) { removeMediaPlayerInfo ( packageName ) ; if ( isBrowseSupported ( packageName ) ) { removePackageFromBrowseList ( packageName ) ; } } else { if ( isBrowsableListUpdated ( packageName ) ) { new com.android.bluetooth.avrcp.Avrcp.BrowsablePlayerListBuilder ( ) . start ( ) ; } } }
Source:
protected void onBindView ( android.view.View view ) { super . onBindView ( view ) ; android.widget.LinearLayout containerView = ( ( android.widget.LinearLayout ) ( view.findViewById ( R.id.message_container ) ) ) ; containerView.setGravity ( Gravity.CENTER ) ; android.widget.TextView summaryView = ( ( android.widget.TextView ) ( view.findViewById ( R.id.summary ) ) ) ; java.lang.String title = getString ( R.string.accessibility_no_services_installed ) ; summaryView.setText ( title ) ; }

Target:
public void onChange ( ) { updateLockScreenRotationCheckbox ( ) ; }
Source:
public boolean remove ( java.lang.Object key , java.lang.Object value ) { int hash = java.util.concurrent.ConcurrentHashMap.hash ( key.hashCode ( ) ) ; java.util.concurrent.ConcurrentHashMap.Segment < K , V > s ; return ( ( value != null ) && ( ( s = segmentForHash ( hash ) ) != null ) ) && ( ( s.remove ( key , hash , value ) ) != null ) ; }

Target:
public boolean remove ( java.lang.Object key , java.lang.Object value ) { if ( key == null ) throw new java.lang.NullPointerException ( ) ; return ( value != null ) && ( ( replaceNode ( key , null , value ) ) != null ) ; }
Source:
public boolean canThrow ( ) { return ( ( ( ( getType ( ) . equals ( JPrimitiveTypeEnum.BYTE.getType ( ) ) ) || ( getType ( ) . equals ( JPrimitiveTypeEnum.CHAR.getType ( ) ) ) ) || ( getType ( ) . equals ( JPrimitiveTypeEnum.SHORT.getType ( ) ) ) ) || ( getType ( ) . equals ( JPrimitiveTypeEnum.INT.getType ( ) ) ) ) || ( getType ( ) . equals ( JPrimitiveTypeEnum.LONG.getType ( ) ) ) ; }

Target:
public boolean canThrow ( ) { return ( ( ( ( getType ( ) . isSameType ( JPrimitiveTypeEnum.BYTE.getType ( ) ) ) || ( getType ( ) . isSameType ( JPrimitiveTypeEnum.CHAR.getType ( ) ) ) ) || ( getType ( ) . isSameType ( JPrimitiveTypeEnum.SHORT.getType ( ) ) ) ) || ( getType ( ) . isSameType ( JPrimitiveTypeEnum.INT.getType ( ) ) ) ) || ( getType ( ) . isSameType ( JPrimitiveTypeEnum.LONG.getType ( ) ) ) ; }
Source:
public void test_setMaximumIntegerDigits ( ) { java.text.NumberFormat format = java.text.NumberFormat.getInstance ( ) ; format.setMaximumIntegerDigits ( 2 ) ; assertEquals ( "Wrong result: case 1" , "23" , format.format ( 123 ) ) ; format.setMaximumIntegerDigits ( java.lang.Integer.MIN_VALUE ) ; assertEquals ( "Wrong result: case 2" , "0" , format.format ( 123 ) ) ; }

Target:
public void test_setMaximumIntegerDigits ( ) { java.text.NumberFormat format = java.text.NumberFormat.getInstance ( ) ; format.setMaximumIntegerDigits ( 2 ) ; assertEquals ( "Wrong result: case 1" , "23" , format.format ( 123 ) ) ; format.setMaximumIntegerDigits ( java.lang.Integer.MIN_VALUE ) ; assertEquals ( "Wrong result: case 2" , ".0" , format.format ( 123 ) ) ; }