auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void handleRequestFocus ( com.android.server.telecom.ConnectionServiceFocusManager.FocusRequest focusRequest ) { if ( ( ( mCurrentFocus ) == null ) || ( mCurrentFocus.equals ( focusRequest.call.getConnectionServiceWrapper ( ) ) ) ) { updateConnectionServiceFocus ( focusRequest.call.getConnectionServiceWrapper ( ) ) ; updateCurrentFocusCall ( ) ; onRequestFocusDone ( focusRequest ) ; } else { mCurrentFocus.connectionServiceFocusLost ( ) ; mCurrentFocusRequest = focusRequest ; android.os.Message msg = mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_RELEASE_FOCUS_TIMEOUT ) ; msg.obj = focusRequest ; mEventHandler.sendMessageDelayed ( msg , com.android.server.telecom.ConnectionServiceFocusManager.RELEASE_FOCUS_TIMEOUT_MS ) ; } }

Target:
private void handleRequestFocus ( com.android.server.telecom.ConnectionServiceFocusManager.FocusRequest focusRequest ) { android.telecom.Log.d ( this , "handleRequestFocus req = %s" , focusRequest ) ; if ( ( ( mCurrentFocus ) == null ) || ( mCurrentFocus.equals ( focusRequest.call.getConnectionServiceWrapper ( ) ) ) ) { updateConnectionServiceFocus ( focusRequest.call.getConnectionServiceWrapper ( ) ) ; updateCurrentFocusCall ( ) ; onRequestFocusDone ( focusRequest ) ; } else { mCurrentFocus.connectionServiceFocusLost ( ) ; mCurrentFocusRequest = focusRequest ; android.os.Message msg = mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_RELEASE_FOCUS_TIMEOUT ) ; msg.obj = focusRequest ; mEventHandler.sendMessageDelayed ( msg , com.android.server.telecom.ConnectionServiceFocusManager.RELEASE_FOCUS_TIMEOUT_MS ) ; } }
Source:
public void listNotifications ( @ android.telephony.euicc.EuiccNotification.Event int events , android.telephony.euicc.EuiccCardManager.ResultCallback < android.telephony.euicc.EuiccNotification [ ] > callback ) { try { getIEuiccCardController ( ) . listNotifications ( mContext.getOpPackageName ( ) , events , new com.android.internal.telephony.euicc.IListNotificationsCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , android.telephony.euicc.EuiccNotification [ ] notifications ) { callback.onComplete ( resultCode , notifications ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling listNotifications" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void listNotifications ( java.lang.String cardId , @ android.telephony.euicc.EuiccNotification.Event int events , android.telephony.euicc.EuiccCardManager.ResultCallback < android.telephony.euicc.EuiccNotification [ ] > callback ) { try { getIEuiccCardController ( ) . listNotifications ( mContext.getOpPackageName ( ) , cardId , events , new com.android.internal.telephony.euicc.IListNotificationsCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , android.telephony.euicc.EuiccNotification [ ] notifications ) { callback.onComplete ( resultCode , notifications ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling listNotifications" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
public boolean processChld ( int chld ) throws android.os.RemoteException { synchronized ( mLock ) { enforceModifyPermission ( ) ; com.android.server.telecom.Log.startSession ( "BPSI.pC" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { com.android.server.telecom.Log.i ( com.android.server.telecom.BluetoothPhoneServiceImpl.TAG , "processChld %d" , chld ) ; return this . processChld ( chld ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; com.android.server.telecom.Log.endSession ( ) ; } } }

Target:
public boolean processChld ( int chld ) throws android.os.RemoteException { synchronized ( mLock ) { enforceModifyPermission ( ) ; android.telecom.Log.startSession ( "BPSI.pC" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { android.telecom.Log.i ( com.android.server.telecom.BluetoothPhoneServiceImpl.TAG , "processChld %d" , chld ) ; return this . processChld ( chld ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } } }
Source:
android.content.Intent createAppErrorIntentLocked ( com.android.server.am.ProcessRecord r ) { android.app.ApplicationErrorReport report = createAppErrorReportLocked ( r ) ; if ( report == null ) { return null ; } android.content.Intent result = new android.content.Intent ( android.content.Intent.ACTION_APP_ERROR ) ; result.setComponent ( r.errorReportReceiver ) ; result.putExtra ( Intent.EXTRA_BUG_REPORT , report ) ; result.addFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; return result ; }

Target:
android.content.Intent createAppErrorIntentLocked ( com.android.server.am.ProcessRecord r , long timeMillis , android.app.ApplicationErrorReport.CrashInfo crashInfo ) { android.app.ApplicationErrorReport report = createAppErrorReportLocked ( r , timeMillis , crashInfo ) ; if ( report == null ) { return null ; } android.content.Intent result = new android.content.Intent ( android.content.Intent.ACTION_APP_ERROR ) ; result.setComponent ( r.errorReportReceiver ) ; result.putExtra ( Intent.EXTRA_BUG_REPORT , report ) ; result.addFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; return result ; }
Source:
private com.android.mms.data.Contact getContactInfo ( com.android.mms.data.Contact c ) { if ( c.mIsMe ) { return getContactInfoForSelf ( ) ; } else if ( ( android.provider.Telephony.Mms.isEmailAddress ( c.mNumber ) ) || ( isAlphaNumber ( c.mNumber ) ) ) { return getContactInfoForEmailAddress ( c.mNumber ) ; } else { return getContactInfoForPhoneNumber ( c.mNumber ) ; } }

Target:
private com.android.mms.data.Contact getContactInfo ( com.android.mms.data.Contact c ) { if ( c.mIsMe ) { return getContactInfoForSelf ( ) ; } else if ( android.provider.Telephony.Mms.isEmailAddress ( c.mNumber ) ) { return getContactInfoForEmailAddress ( c.mNumber ) ; } else if ( isAlphaNumber ( c.mNumber ) ) { com.android.mms.data.Contact contact = getContactInfoForEmailAddress ( c.mNumber ) ; if ( contact.existsInDatabase ( ) ) { return contact ; } return getContactInfoForPhoneNumber ( c.mNumber ) ; } else { final java.lang.String strippedNumber = android.telephony.PhoneNumberUtils.stripSeparators ( c.mNumber ) ; return getContactInfoForPhoneNumber ( strippedNumber ) ; } }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , short [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 2 ) ) ; }

Target:
private void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , java.lang.Object array , android.support.v8.renderscript.Element.DataType dt , int arrayLen ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , array , ( arrayLen * ( dt.mSize ) ) , dt ) ; }
Source:
public void getVoiceRadioTechnology ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_VOICE_RADIO_TECH , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
private com.android.internal.telephony.RILRequest obtainRequest ( int request , android.os.Message result , android.os.WorkSource workSource ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( request , result , workSource ) ; addRequest ( rr ) ; return rr ; }
Source:
private void operationComplete ( ) { ( pendingOperations ) -- ; if ( com.android.internal.telephony.gsm.GsmCallTracker.DBG_POLL ) log ( ( ( ( "operationComplete: pendingOperations=" + ( pendingOperations ) ) + ", needsPoll=" ) + ( needsPoll ) ) ) ; if ( ( ( pendingOperations ) == 0 ) && ( needsPoll ) ) { lastRelevantPoll = obtainMessage ( com.android.internal.telephony.gsm.EVENT_POLL_CALLS_RESULT ) ; cm.getCurrentCalls ( lastRelevantPoll ) ; } else if ( ( pendingOperations ) < 0 ) { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.GsmCallTracker.LOG_TAG , "GsmCallTracker.pendingOperations < 0" ) ; pendingOperations = 0 ; } }

Target:
private android.os.Message obtainCompleteMessage ( int what ) { ( mPendingOperations ) ++ ; mLastRelevantPoll = null ; mNeedsPoll = true ; if ( com.android.internal.telephony.gsm.GsmCallTracker.DBG_POLL ) log ( ( ( ( "obtainCompleteMessage: pendingOperations=" + ( mPendingOperations ) ) + ", needsPoll=" ) + ( mNeedsPoll ) ) ) ; return obtainMessage ( what ) ; }
Source:
public java.util.List < java.lang.String > getEcjArguments ( ) { if ( ( inputSources ) == null ) { return ecjExtraArguments ; } java.util.ArrayList < java.lang.String > list = new java.util.ArrayList < java.lang.String > ( ecjExtraArguments ) ; for ( java.io.File input : inputSources ) { list.add ( input.getPath ( ) ) ; } return list ; }

Target:
public void setReporterStream ( @ javax.annotation.Nonnull java.io.OutputStream reporterStream ) { this . reporterStream = reporterStream ; }
Source:
public void removeNetwork ( int netId ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.CONNECTIVITY_INTERNAL , com.android.server.NetworkManagementService.TAG ) ; try { mConnector.execute ( "network" , "destroy" , netId ) ; } catch ( com.android.server.NativeDaemonConnectorException e ) { throw e.rethrowAsParcelableException ( ) ; } }

Target:
public void removeNetwork ( int netId ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.NETWORK_STACK , com.android.server.NetworkManagementService.TAG ) ; try { mNetdService.networkDestroy ( netId ) ; } catch ( android.os.ServiceSpecificException e ) { android.util.Log.w ( com.android.server.NetworkManagementService.TAG , ( ( "removeNetwork(" + netId ) + "): " ) , e ) ; throw e ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.server.NetworkManagementService.TAG , ( ( "removeNetwork(" + netId ) + "): " ) , e ) ; throw e.rethrowAsRuntimeException ( ) ; } }
Source:
public void installAppAndLaunch ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; com.android.devtools.systemimage.uitest.utils.AppManager.installApp ( instrumentation , "HelloCompute.apk" ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "RsHelloCompute" ) ; assertTrue ( testFramework.getDevice ( ) . findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( com.android.devtools.systemimage.uitest.smoke.AppTest.APP_IMAGE_VIEW_ID ) ) . exists ( ) ) ; com.android.devtools.systemimage.uitest.utils.AppManager.uninstallApp ( instrumentation , "RsHelloCompute" , null ) ; }

Target:
public void installAppAndLaunch ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; com.android.devtools.systemimage.uitest.utils.AppManager.installApp ( instrumentation , "HelloCompute.apk" ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "RsHelloCompute" ) ; assertTrue ( testFramework.getDevice ( ) . findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.APP_IMAGE_VIEW_ID ) ) . exists ( ) ) ; com.android.devtools.systemimage.uitest.utils.AppManager.uninstallApp ( instrumentation , "RsHelloCompute" , null ) ; }
Source:
static com.android.server.NsdService.NsdSettings makeDefault ( android.content.Context context ) { android.content.ContentResolver resolver = context.getContentResolver ( ) ; return new com.android.server.NsdService.NsdSettings ( ) { @ java.lang.Override public boolean isEnabled ( ) { return ( Settings.Global.getInt ( resolver , Settings.Global.NSD_ON , 1 ) ) == 1 ; } @ java.lang.Override public void putEnabledStatus ( boolean isEnabled ) { Settings.Global.putInt ( resolver , Settings.Global.NSD_ON , ( isEnabled ? 1 : 0 ) ) ; } } ; }

Target:
public void registerContentObserver ( android.net.Uri uri , android.database.ContentObserver observer ) { resolver.registerContentObserver ( uri , false , observer ) ; }
Source:
public int getState ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getState = " + ( mService.getState ( ) ) ) ) ; com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) return android.bluetooth.BluetoothPbap.STATE_DISCONNECTED ; return service.getState ( ) ; }

Target:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getConnectionState: " + device ) ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( ) ; if ( service == null ) { return android.bluetooth.BluetoothAdapter.STATE_DISCONNECTED ; } return service.getConnectionState ( device ) ; }
Source:
public java.util.List < com.android.ide.common.api.MenuAction > callGetContextMenu ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy selectedNode ) { com.android.ide.common.api.IViewRule rule = loadRule ( selectedNode.getNode ( ) ) ; if ( rule != null ) { try { mInsertType = com.android.ide.common.api.InsertType.CREATE ; return rule.getContextMenu ( selectedNode ) ; } catch ( java.lang.Exception e ) { logError ( "%s.getContextMenu() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }

Target:
public java.util.List < com.android.ide.common.api.MenuAction > callGetContextMenu ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy selectedNode ) { com.android.ide.common.api.IViewRule rule = loadRule ( selectedNode.getNode ( ) ) ; if ( rule != null ) { try { mInsertType = com.android.ide.common.api.InsertType.CREATE ; return rule.getContextMenu ( selectedNode ) ; } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "%s.getContextMenu() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }
Source:
public boolean isImsRegistered ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) return false ; return telephony.isImsRegistered ( ) ; } catch ( android.os.RemoteException ex ) { return false ; } catch ( java.lang.NullPointerException ex ) { return false ; } }

Target:
private boolean isImsiEncryptionRequired ( int subId , int keyType ) { android.telephony.CarrierConfigManager configManager = ( ( android.telephony.CarrierConfigManager ) ( mContext.getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; if ( configManager == null ) { return false ; } android.os.PersistableBundle pb = configManager.getConfigForSubId ( subId ) ; if ( pb == null ) { return false ; } int keyAvailability = pb.getInt ( CarrierConfigManager.IMSI_KEY_AVAILABILITY_INT ) ; return android.telephony.TelephonyManager.isKeyEnabled ( keyAvailability , keyType ) ; }
Source:
protected boolean check ( ) { return listener.isTriggered ( ) ; }

Target:
public void testSetOnErrorListener ( ) throws java.lang.Throwable { final android.widget.cts.VideoViewTest.MockOnErrorListener listener = new android.widget.cts.VideoViewTest.MockOnErrorListener ( ) ; mVideoView.setOnErrorListener ( listener ) ; runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { java.lang.String path = "unknown path" ; mVideoView.setVideoPath ( path ) ; mVideoView.start ( ) ; } } ) ; mInstrumentation.waitForIdleSync ( ) ; new android.view.animation.cts.DelayedCheck ( android.widget.cts.VideoViewTest.TIME_OUT ) { @ java.lang.Override protected boolean check ( ) { return listener.isTriggered ( ) ; } } . run ( ) ; }
Source:
private boolean selectDevice ( com.android.ide.eclipse.adt.internal.sdk.LayoutDevice device ) { final int count = mDeviceList.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { if ( device == ( mDeviceList.get ( i ) ) ) { mDeviceCombo.select ( i ) ; return true ; } } return false ; }

Target:
private boolean selectDevice ( @ com.android.annotations.Nullable com.android.ide.eclipse.adt.internal.sdk.LayoutDevice device ) { mDeviceCombo.setData ( device ) ; if ( device != null ) { mDeviceCombo.setText ( getDeviceLabel ( device , true ) ) ; } else { mDeviceCombo.setText ( "Device" ) ; } resizeToolBar ( ) ; return false ; }
Source:
public void test_withDayOfYear_normal ( ) { java.time.OffsetDateTime t = TEST_2008_6_30_11_30_59_000000500.withDayOfYear ( 33 ) ; org.testng.Assert.assertEquals ( t , java.time.OffsetDateTime.of ( java.time.LocalDate.of ( 2008 , 2 , 2 ) , java.time.LocalTime.of ( 11 , 30 , 59 , 500 ) , tck.java.time.TCKOffsetDateTime.OFFSET_PONE ) ) ; }

Target:
public void test_withDayOfYear_normal ( ) { java.time.OffsetDateTime t = tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500.withDayOfYear ( 33 ) ; org.testng.Assert.assertEquals ( t , java.time.OffsetDateTime.of ( java.time.LocalDate.of ( 2008 , 2 , 2 ) , java.time.LocalTime.of ( 11 , 30 , 59 , 500 ) , tck.java.time.TCKOffsetDateTime.OFFSET_PONE ) ) ; }
Source:
public void testRegisterOverlapping001 ( ) throws java.lang.Exception { java.io.File out = com.android.jack.TestTools.createTempFile ( "registerOverlapping" , ".dex" ) ; com.android.jack.TestTools.compileSourceToDex ( new com.android.jack.Options ( ) , com.android.jack.TestTools.getJackTestsWithJackFolder ( "dx/overlapping" ) , com.android.jack.TestTools.getClasspathAsString ( com.android.jack.DxTest.BOOTCLASSPATH ) , out , false ) ; org.jf.dexlib.DexFile dexFile = new org.jf.dexlib.DexFile ( out ) ; org.jf.dexlib.ClassDataItem.EncodedMethod em = com.android.jack.TestTools.getEncodedMethod ( dexFile , "Lcom/android/jack/dx/overlapping/jack/Data;" , "test001" , "(IJJ)J" ) ; checkThatRegistersDoesNotOverlap ( em ) ; }

Target:
public void testRegisterOverlapping001 ( ) throws java.lang.Exception { java.io.File outFolder = com.android.jack.TestTools.createTempDir ( "registerOverlapping" , "dex" ) ; java.io.File out = new java.io.File ( outFolder , com.android.jack.backend.dex.DexFileWriter.DEX_FILENAME ) ; com.android.jack.TestTools.compileSourceToDex ( new com.android.jack.Options ( ) , com.android.jack.TestTools.getJackTestsWithJackFolder ( "dx/overlapping" ) , com.android.jack.TestTools.getClasspathAsString ( com.android.jack.DxTest.BOOTCLASSPATH ) , outFolder , false ) ; org.jf.dexlib.DexFile dexFile = new org.jf.dexlib.DexFile ( out ) ; org.jf.dexlib.ClassDataItem.EncodedMethod em = com.android.jack.TestTools.getEncodedMethod ( dexFile , "Lcom/android/jack/dx/overlapping/jack/Data;" , "test001" , "(IJJ)J" ) ; checkThatRegistersDoesNotOverlap ( em ) ; }
Source:
public static boolean isDrmType ( java.lang.String mimeType ) { boolean result = false ; com.android.mms.drm.DrmManagerClient drmManagerClient = com.android.mms.MmsApp.getApplication ( ) . getDrmManagerClient ( ) ; if ( drmManagerClient != null ) { try { if ( drmManagerClient.canHandle ( "" , mimeType ) ) { result = true ; } } catch ( java.lang.IllegalArgumentException ex ) { android.util.Log.w ( com.android.mms.drm.DrmUtils.TAG , "canHandle called with wrong parameters" ) ; } catch ( java.lang.IllegalStateException ex ) { android.util.Log.w ( com.android.mms.drm.DrmUtils.TAG , "DrmManagerClient didn't initialize properly" ) ; } } return result ; }

Target:
public static boolean isDrmType ( java.lang.String mimeType ) { boolean result = false ; android.drm.DrmManagerClient drmManagerClient = com.android.mms.MmsApp.getApplication ( ) . getDrmManagerClient ( ) ; if ( drmManagerClient != null ) { try { if ( drmManagerClient.canHandle ( "" , mimeType ) ) { result = true ; } } catch ( java.lang.IllegalArgumentException ex ) { android.util.Log.w ( com.android.mms.drm.DrmUtils.TAG , "canHandle called with wrong parameters" ) ; } catch ( java.lang.IllegalStateException ex ) { android.util.Log.w ( com.android.mms.drm.DrmUtils.TAG , "DrmManagerClient didn't initialize properly" ) ; } } return result ; }
Source:
private void responseLceData ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.LceDataInfo lceInfo ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.util.ArrayList < java.lang.Integer > ret = com.android.internal.telephony.RIL.convertHalLceData ( lceInfo , mRil ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseLceData ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.LceDataInfo lceInfo ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.LinkCapacityEstimate ret = com.android.internal.telephony.RIL.convertHalLceData ( lceInfo , mRil ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
public void waitForReady ( ) throws java.lang.InterruptedException { mReadyLatch.await ( java.util.concurrent.TimeUnit.NANOSECONDS.convert ( 5 , java.util.concurrent.TimeUnit.SECONDS ) ) ; mLogger.info ( "Slave %1$s is ready" , hashCode ( ) ) ; }

Target:
public void waitForReady ( ) throws java.lang.InterruptedException { if ( ! ( mReadyLatch.await ( java.util.concurrent.TimeUnit.NANOSECONDS.convert ( com.android.builder.png.AaptProcess.SLAVE_AAPT_TIMEOUT_IN_SECONDS , java.util.concurrent.TimeUnit.SECONDS ) ) ) ) { throw new java.lang.RuntimeException ( ( ( ( "Timed out while waiting for slave aapt process, " + "try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than " ) + ( com.android.builder.png.AaptProcess.SLAVE_AAPT_TIMEOUT_IN_SECONDS ) ) + " seconds" ) ) ; } mLogger.info ( "Slave %1$s is ready" , hashCode ( ) ) ; }
Source:
public java.util.Collection < java.util.List < ? > > getPairsList ( ) { java.util.Collection < java.util.List < ? > > result = new java.util.ArrayList < java.util.List < ? > > ( ) ; if ( ( generalNames ) == null ) { return result ; } for ( org.apache.harmony.security.x509.GeneralName generalName : generalNames ) { result.add ( generalName.getAsList ( ) ) ; } return result ; }

Target:
public java.util.Collection < java.util.List < ? > > getPairsList ( ) { java.util.Collection < java.util.List < ? > > result = new java.util.ArrayList < java.util.List < ? > > ( ) ; if ( ( generalNames ) == null ) { return result ; } for ( org.apache.harmony.security.x509.GeneralName generalName : generalNames ) { final java.util.List < java.lang.Object > genNameList ; try { genNameList = generalName.getAsList ( ) ; } catch ( java.lang.IllegalArgumentException ignored ) { continue ; } result.add ( genNameList ) ; } return result ; }
Source:
public static java.lang.String toLanguageTag ( java.util.Locale locale ) { java.lang.String language = org.chromium.base.LocaleUtils.getUpdatedLanguageForChromium ( locale.getLanguage ( ) ) ; java.lang.String country = locale.getCountry ( ) ; if ( ( ( language.equals ( "no" ) ) && ( country.equals ( "NO" ) ) ) && ( locale.getVariant ( ) . equals ( "NY" ) ) ) { return "nn-NO" ; } return country.isEmpty ( ) ? language : ( language + "-" ) + country ; }

Target:
public static java.lang.String getLocale ( java.util.Locale locale ) { java.lang.String language = locale.getLanguage ( ) ; java.lang.String country = locale.getCountry ( ) ; if ( "iw" . equals ( language ) ) { language = "he" ; } else if ( "in" . equals ( language ) ) { language = "id" ; } else if ( "tl" . equals ( language ) ) { language = "fil" ; } return country.isEmpty ( ) ? language : ( language + "-" ) + country ; }
Source:
public void test_isBefore ( ) { org.testng.Assert.assertTrue ( TEST_2007_07_15.isBefore ( java.time.LocalDate.of ( 2007 , 7 , 16 ) ) ) ; org.testng.Assert.assertFalse ( TEST_2007_07_15.isBefore ( java.time.LocalDate.of ( 2007 , 7 , 14 ) ) ) ; org.testng.Assert.assertFalse ( TEST_2007_07_15.isBefore ( TEST_2007_07_15 ) ) ; }

Target:
public void test_isAfter ( ) { org.testng.Assert.assertTrue ( tck.java.time.TCKLocalDate.TEST_2007_07_15.isAfter ( java.time.LocalDate.of ( 2007 , 7 , 14 ) ) ) ; org.testng.Assert.assertFalse ( tck.java.time.TCKLocalDate.TEST_2007_07_15.isAfter ( java.time.LocalDate.of ( 2007 , 7 , 16 ) ) ) ; org.testng.Assert.assertFalse ( tck.java.time.TCKLocalDate.TEST_2007_07_15.isAfter ( tck.java.time.TCKLocalDate.TEST_2007_07_15 ) ) ; }
Source:
final void runWorker ( java.util.concurrent.ForkJoinPool.WorkQueue w ) { w.growArray ( ) ; do { w.runTask ( scan ( w ) ) ; } while ( ( w.qlock ) >= 0 ) ; }

Target:
final void runWorker ( java.util.concurrent.ForkJoinPool.WorkQueue w ) { w.growArray ( ) ; for ( int r = w.hint ; ( scan ( w , r ) ) == 0 ; ) { r ^= r << 13 ; r ^= r > > > 17 ; r ^= r << 5 ; } }
Source:
public void testConvertMarkup5 ( ) throws java.lang.Exception { java.lang.String explanation = "The `<uses-sdk>` element should appear just once; the tools will *not* merge the " + ( ( "contents of all the elements so if you split up the atttributes across multiple " + "elements, only one of them will take effect. To fix this, just merge all the " ) + "attributes from the various elements into a single <uses-sdk> element." ) ; assertEquals ( ( "The <code>&lt;uses-sdk></code> element should appear just once; the tools " + ( ( ( "will <b>not</b> merge the " + "contents of all the elements so if you split up the atttributes across multiple " ) + "elements, only one of them will take effect. To fix this, just merge all the " ) + "attributes from the various elements into a single &lt;uses-sdk> element." ) ) , com.android.tools.lint.detector.api.Issue.convertMarkup ( explanation , true ) ) ; }

Target:
public void testIssueUrls ( ) { com.android.tools.lint.detector.api.Implementation implementation = new com.android.tools.lint.detector.api.Implementation ( com.android.tools.lint.checks.AccessibilityDetector.class , Scope.RESOURCE_FILE_SCOPE ) ; com.android.tools.lint.detector.api.Issue issue = com.android.tools.lint.detector.api.Issue.create ( "MyId" , "ShortDesc" , "Desc" , "Explanation" , Category.CORRECTNESS , 10 , Severity.ERROR , implementation ) ; assertTrue ( issue.getMoreInfo ( ) . isEmpty ( ) ) ; java.lang.String url1 = "http://tools.android.com" ; java.lang.String url2 = "http://tools.android.com/recent" ; issue.addMoreInfo ( url1 ) ; assertEquals ( java.util.Collections.singletonList ( url1 ) , issue.getMoreInfo ( ) ) ; issue.addMoreInfo ( url2 ) ; assertEquals ( java.util.Arrays.asList ( url1 , url2 ) , issue.getMoreInfo ( ) ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { super . widgetSelected ( e ) ; if ( ( mResourceType ) == ( com.android.resources.ResourceType.STRING ) ) { createNewString ( ) ; } else { assert com.android.ide.eclipse.adt.internal.resources.ResourceNameValidator.isValueBasedResourceType ( mResourceType ) ; java.lang.String newName = createNewValue ( mResourceType ) ; if ( newName != null ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem [ ] items = setupResourceList ( ) ; selectItemName ( newName , items ) ; } } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { super . widgetSelected ( e ) ; if ( ( mResourceType ) == ( com.android.resources.ResourceType.STRING ) ) { createNewString ( ) ; } else { assert com.android.ide.eclipse.adt.internal.resources.ResourceHelper.isValueBasedResourceType ( mResourceType ) ; java.lang.String newName = createNewValue ( mResourceType ) ; if ( newName != null ) { com.android.ide.common.resources.ResourceItem [ ] items = setupResourceList ( ) ; selectItemName ( newName , items ) ; } } }
Source:
public final void testGetDevice ( ) { com.android.sdklib.devices.Device d1 = dm.getDevice ( "7in WSVGA (Tablet)" , "Generic" ) ; assertEquals ( "7\" WSVGA (Tablet)" , d1.toString ( ) ) ; assertEquals ( "" , log.toString ( ) ) ; com.android.sdklib.devices.Device d2 = dm.getDevice ( "Nexus One" , "Google" ) ; assertEquals ( "Nexus One" , d2.toString ( ) ) ; assertEquals ( "" , log.toString ( ) ) ; }

Target:
public final void testGetDevice ( ) { com.android.sdklib.devices.Device d1 = dm.getDevice ( "7in WSVGA (Tablet)" , "Generic" ) ; assertEquals ( "7\" WSVGA (Tablet)" , d1.getDisplayName ( ) ) ; assertEquals ( "" , log.toString ( ) ) ; com.android.sdklib.devices.Device d2 = dm.getDevice ( "Nexus One" , "Google" ) ; assertEquals ( "Nexus One" , d2.getDisplayName ( ) ) ; assertEquals ( "" , log.toString ( ) ) ; }
Source:
public void setModel ( @ org.jetbrains.annotations.NotNull javax.swing.table.TableModel model ) { super . setModel ( model ) ; if ( ( ! ( myColumnsSizeInitialized ) ) && ( ( model.getRowCount ( ) ) > 0 ) ) { myColumnsSizeInitialized = true ; setColumnPreferredSize ( ) ; setAutoCreateColumnsFromModel ( false ) ; getColumnModel ( ) . getColumn ( GraphTableModel.ROOT_COLUMN ) . setHeaderRenderer ( new com.intellij.vcs.log.ui.frame.VcsLogGraphTable.RootHeaderRenderer ( ) ) ; } }

Target:
public void setModel ( @ org.jetbrains.annotations.NotNull javax.swing.table.TableModel model ) { super . setModel ( model ) ; if ( ( getModel ( ) . getRowCount ( ) ) > 0 ) { initColumnSize ( ) ; } else { model.addTableModelListener ( myColumnSizeInitializer ) ; } }
Source:
public void selectSameType ( ) { if ( ( mSelections.size ( ) ) == 1 ) { mSelections.clear ( ) ; mAltSelection = null ; addSameType ( mCanvas.getViewHierarchy ( ) . getRoot ( ) , mSelections.get ( 0 ) . getViewInfo ( ) . getUiViewNode ( ) . getDescriptor ( ) ) ; fireSelectionChanged ( ) ; redraw ( ) ; } }

Target:
public void selectSameType ( ) { if ( ( mSelections.size ( ) ) == 1 ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo viewInfo = mSelections.get ( 0 ) . getViewInfo ( ) ; com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor descriptor = viewInfo.getUiViewNode ( ) . getDescriptor ( ) ; mSelections.clear ( ) ; mAltSelection = null ; addSameType ( mCanvas.getViewHierarchy ( ) . getRoot ( ) , descriptor ) ; fireSelectionChanged ( ) ; redraw ( ) ; } }
Source:
public void logCall ( com.android.internal.telephony.Connection c ) { final com.android.internal.telephony.Connection.DisconnectCause cause = c.getDisconnectCause ( ) ; final int callLogType ; if ( c.isIncoming ( ) ) { callLogType = ( cause == ( Connection.DisconnectCause.INCOMING_MISSED ) ) ? android.provider.CallLog.Calls.MISSED_TYPE : android.provider.CallLog.Calls.INCOMING_TYPE ; } else { callLogType = android.provider.CallLog.Calls.OUTGOING_TYPE ; } if ( com.android.phone.CallLogger.VDBG ) log ( ( ( ( "- callLogType: " + callLogType ) + ", UserData: " ) + ( c.getUserData ( ) ) ) ) ; logCall ( c , callLogType ) ; }

Target:
public void logCall ( com.android.internal.telephony.Connection c ) { final int cause = c.getDisconnectCause ( ) ; final int callLogType ; if ( c.isIncoming ( ) ) { callLogType = ( cause == ( android.telephony.DisconnectCause.INCOMING_MISSED ) ) ? android.provider.CallLog.Calls.MISSED_TYPE : android.provider.CallLog.Calls.INCOMING_TYPE ; } else { callLogType = android.provider.CallLog.Calls.OUTGOING_TYPE ; } if ( com.android.phone.CallLogger.VDBG ) log ( ( ( ( "- callLogType: " + callLogType ) + ", UserData: " ) + ( c.getUserData ( ) ) ) ) ; logCall ( c , callLogType ) ; }
Source:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgType filter , @ com.android.annotations.NonNull java.lang.String path ) { assert ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_ADDONS ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_PLATFORMS ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { com.android.sdklib.repository.descriptors.IPkgDesc d = pkg.getDesc ( ) ; if ( ( d.hasPath ( ) ) && ( path.equals ( d.getPath ( ) ) ) ) { return pkg ; } } return null ; }

Target:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgType filter , @ com.android.annotations.NonNull java.lang.String path ) { assert ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_ADDON ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_PLATFORM ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { com.android.sdklib.repository.descriptors.IPkgDesc d = pkg.getDesc ( ) ; if ( ( d.hasPath ( ) ) && ( path.equals ( d.getPath ( ) ) ) ) { return pkg ; } } return null ; }
Source:
public void testAesCbcHmacSha512Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , true ) ; }

Target:
public void testAesGcm64Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.AEAD_KEY , 64 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV6_LOOPBACK , null , null , authCrypt , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV6_LOOPBACK , null , null , authCrypt , false , 1 , true ) ; }
Source:
protected void onRoamingOn ( ) { if ( ( mUserDataEnabled ) == false ) return ; if ( getDataOnRoamingEnabled ( ) ) { if ( DBG ) log ( "onRoamingOn: setup data on roaming" ) ; setupDataOnConnectableApns ( Phone.REASON_ROAMING_ON ) ; notifyDataConnection ( Phone.REASON_ROAMING_ON ) ; } else { if ( DBG ) log ( "onRoamingOn: Tear down data connection on roaming." ) ; cleanUpAllConnections ( true , Phone.REASON_ROAMING_ON ) ; notifyOffApnsOfAvailability ( Phone.REASON_ROAMING_ON ) ; } }

Target:
protected void onRoamingOn ( ) { if ( DBG ) log ( "onRoamingOn" ) ; if ( ! ( mUserDataEnabled ) ) return ; if ( getDataOnRoamingEnabled ( ) ) { if ( DBG ) log ( "onRoamingOn: setup data on roaming" ) ; setupDataOnConnectableApns ( Phone.REASON_ROAMING_ON ) ; notifyDataConnection ( Phone.REASON_ROAMING_ON ) ; } else { if ( DBG ) log ( "onRoamingOn: Tear down data connection on roaming." ) ; cleanUpAllConnections ( true , Phone.REASON_ROAMING_ON ) ; notifyOffApnsOfAvailability ( Phone.REASON_ROAMING_ON ) ; } }
Source:
private void handleGroupCreationFailure ( ) { resetWifiP2pInfo ( ) ; mNetworkInfo.setDetailedState ( NetworkInfo.DetailedState.FAILED , null , null ) ; sendP2pConnectionChangedBroadcast ( ) ; boolean peersChanged = mPeers.remove ( mPeersLostDuringConnection ) ; if ( ( ( mSavedPeerConfig.deviceAddress ) != null ) && ( ( mPeers.remove ( mSavedPeerConfig.deviceAddress ) ) != null ) ) { peersChanged = true ; } if ( peersChanged ) { sendPeersChangedBroadcast ( ) ; } mPeersLostDuringConnection.clear ( ) ; mServiceDiscReqId = null ; sendMessage ( WifiP2pManager.DISCOVER_PEERS ) ; }

Target:
private void handleGroupCreationFailure ( ) { resetWifiP2pInfo ( ) ; mNetworkInfo.setDetailedState ( NetworkInfo.DetailedState.FAILED , null , null ) ; sendP2pConnectionChangedBroadcast ( ) ; boolean peersChanged = mPeers.remove ( mPeersLostDuringConnection ) ; if ( ( ( android.text.TextUtils.isEmpty ( mSavedPeerConfig.deviceAddress ) ) == false ) && ( ( mPeers.remove ( mSavedPeerConfig.deviceAddress ) ) != null ) ) { peersChanged = true ; } if ( peersChanged ) { sendPeersChangedBroadcast ( ) ; } mPeersLostDuringConnection.clear ( ) ; mServiceDiscReqId = null ; sendMessage ( WifiP2pManager.DISCOVER_PEERS ) ; }
Source:
public final short getRegisterCountUnit ( ) { int registerCount = getRegisterCount ( ) ; if ( ( registerCount & ( ~ 65535 ) ) != 0 ) { throw new com.android.jack.dx.util.DexException ( ( "Register count out of range: " + ( com.android.jack.dx.util.Hex.u8 ( registerCount ) ) ) ) ; } return ( ( short ) ( registerCount ) ) ; }

Target:
public final com.android.jack.dx.io.IndexType getSecondIndexType ( ) { return secondIndexType ; }
Source:
private void clearIPv4Address ( ) { try { final android.net.InterfaceConfiguration ifcg = new android.net.InterfaceConfiguration ( ) ; ifcg.setLinkAddress ( new android.net.LinkAddress ( "0.0.0.0/0" ) ) ; mNwService.setInterfaceConfig ( mInterfaceName , ifcg ) ; } catch ( java.lang.IllegalStateException | android.os.RemoteException e ) { android.util.Log.e ( mTag , ( "ALERT: Failed to clear IPv4 address on interface " + ( mInterfaceName ) ) , e ) ; } }

Target:
private void clearIPv4Address ( ) { try { final android.net.InterfaceConfiguration ifcg = new android.net.InterfaceConfiguration ( ) ; ifcg.setLinkAddress ( new android.net.LinkAddress ( "0.0.0.0/0" ) ) ; mNwService.setInterfaceConfig ( mInterfaceName , ifcg ) ; } catch ( java.lang.IllegalStateException | android.os.RemoteException e ) { logError ( "Failed to clear IPv4 address on interface %s: %s" , mInterfaceName , e ) ; } }
Source:
public void test_parse ( ) throws java.text.ParseException { java.text.MessageFormat mf = new java.text.MessageFormat ( "{0,number,#,####}" , java.util.Locale.US ) ; java.lang.Object [ ] res = mf.parse ( "1,00,00" ) ; assertEquals ( "Assert 0: incorrect size of parsed data " , 1 , res.length ) ; assertEquals ( "Assert 1: parsed value incorrectly" , new java.lang.Long ( 10000 ) , ( ( java.lang.Long ) ( res [ 0 ] ) ) ) ; }

Target:
public void test_parse ( ) throws java.text.ParseException { java.text.MessageFormat mf = new java.text.MessageFormat ( "{0,number,#,##}" , java.util.Locale.US ) ; java.lang.Object [ ] res = mf.parse ( "1,00,00" ) ; assertEquals ( "Assert 0: incorrect size of parsed data " , 1 , res.length ) ; assertEquals ( "Assert 1: parsed value incorrectly" , new java.lang.Long ( 10000 ) , ( ( java.lang.Long ) ( res [ 0 ] ) ) ) ; }
Source:
public void testSelectItemWithSibling ( ) { android.support.test.espresso.Espresso.onView ( org.hamcrest.Matchers.allOf ( android.support.test.espresso.matcher.ViewMatchers.withText ( "7" ) , android.support.test.espresso.matcher.ViewMatchers.hasSibling ( android.support.test.espresso.matcher.ViewMatchers.withText ( "item: 0" ) ) ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.selection_row_value ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.withText ( "0" ) ) ) ; }

Target:
public void selectItemWithSibling ( ) { android.support.test.espresso.Espresso.onView ( org.hamcrest.Matchers.allOf ( android.support.test.espresso.matcher.ViewMatchers.withText ( "7" ) , android.support.test.espresso.matcher.ViewMatchers.hasSibling ( android.support.test.espresso.matcher.ViewMatchers.withText ( "item: 0" ) ) ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.selection_row_value ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.withText ( "0" ) ) ) ; }
Source:
public void testPublishBadServiceName ( ) { android.net.wifi.nan.PublishConfig publishConfig = new android.net.wifi.nan.PublishConfig.Builder ( ) . setServiceName ( "Including invalid characters - spaces" ) . build ( ) ; int clientId = doConnect ( ) ; android.net.wifi.nan.IWifiNanDiscoverySessionCallback mockCallback = org.mockito.Mockito.mock ( android.net.wifi.nan.IWifiNanDiscoverySessionCallback.class ) ; mDut.publish ( clientId , publishConfig , mockCallback ) ; org.mockito.Mockito.verify ( mNanStateManagerMock ) . publish ( clientId , publishConfig , mockCallback ) ; }

Target:
public void testPublishInvalidServiceName ( ) { doBadPublishConfiguration ( "Including invalid characters - spaces" , null , null ) ; }
Source:
protected void handleIntent ( android.content.Intent intent ) { com.android.dialer.common.Assert.checkArgument ( intent.hasExtra ( com.android.dialer.calldetails.OldCallDetailsActivity.EXTRA_CONTACT ) ) ; com.android.dialer.common.Assert.checkArgument ( intent.hasExtra ( com.android.dialer.calldetails.OldCallDetailsActivity.EXTRA_CALL_DETAILS_ENTRIES ) ) ; com.android.dialer.common.Assert.checkArgument ( intent.hasExtra ( com.android.dialer.calldetails.EXTRA_CAN_REPORT_CALLER_ID ) ) ; com.android.dialer.common.Assert.checkArgument ( intent.hasExtra ( com.android.dialer.calldetails.EXTRA_CAN_SUPPORT_ASSISTED_DIALING ) ) ; contact = com.android.dialer.protos.ProtoParsers.getTrusted ( intent , com.android.dialer.calldetails.OldCallDetailsActivity.EXTRA_CONTACT , com.android.dialer.dialercontact.DialerContact.getDefaultInstance ( ) ) ; setCallDetailsEntries ( com.android.dialer.protos.ProtoParsers.getTrusted ( intent , com.android.dialer.calldetails.OldCallDetailsActivity.EXTRA_CALL_DETAILS_ENTRIES , com.android.dialer.calldetails.CallDetailsEntries.getDefaultInstance ( ) ) ) ; }

Target:
protected void handleIntent ( android.content.Intent intent ) { com.android.dialer.common.Assert.checkArgument ( intent.hasExtra ( com.android.dialer.calldetails.OldCallDetailsActivity.EXTRA_CONTACT ) ) ; com.android.dialer.common.Assert.checkArgument ( intent.hasExtra ( com.android.dialer.calldetails.OldCallDetailsActivity.EXTRA_CALL_DETAILS_ENTRIES ) ) ; com.android.dialer.common.Assert.checkArgument ( intent.hasExtra ( com.android.dialer.calldetails.EXTRA_CAN_REPORT_CALLER_ID ) ) ; com.android.dialer.common.Assert.checkArgument ( intent.hasExtra ( com.android.dialer.calldetails.EXTRA_CAN_SUPPORT_ASSISTED_DIALING ) ) ; contact = com.android.dialer.protos.ProtoParsers.getTrusted ( intent , com.android.dialer.calldetails.OldCallDetailsActivity.EXTRA_CONTACT , com.android.dialer.dialercontact.DialerContact.getDefaultInstance ( ) ) ; setCallDetailsEntries ( com.android.dialer.protos.ProtoParsers.getTrusted ( intent , com.android.dialer.calldetails.OldCallDetailsActivity.EXTRA_CALL_DETAILS_ENTRIES , com.android.dialer.calldetails.CallDetailsEntries.getDefaultInstance ( ) ) ) ; loadRttTranscriptAvailability ( ) ; }
Source:
private void onCmdResult ( int type , int cme ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_CMD_RESULT ) ; event.valueInt = type ; event.valueInt2 = cme ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }

Target:
private void onCmdResult ( int type , int cme ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_CMD_RESULT ) ; event.valueInt = type ; event.valueInt2 = cme ; if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; } sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }
Source:
public java.net.HttpURLConnection connect ( com.google.mockwebserver.MockWebServer server , java.net.URL url ) throws java.io.IOException { }

Target:
public java.net.HttpURLConnection connect ( com.google.mockwebserver.MockWebServer server , java.net.URL url ) throws java.io.IOException { java.lang.System.setProperty ( "http.proxyHost" , "localhost" ) ; java.lang.System.setProperty ( "http.proxyPort" , java.lang.Integer.toString ( server.getPort ( ) ) ) ; return ( ( java.net.HttpURLConnection ) ( url.openConnection ( ) ) ) ; }
Source:
public void compileCore ( ) throws java.lang.Exception { java.io.File outDexFolder = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.addProperty ( Options.JAVA_SOURCE_VERSION.getName ( ) , JavaVersion.JAVA_7.toString ( ) ) ; toolchain.srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( toolchain.getDefaultBootClasspath ( ) ) , outDexFolder , false , com.android.jack.compile.androidtree.core.CoreCompilationTest.SOURCELIST ) ; }

Target:
public void compileCore ( ) throws java.lang.Exception { java.io.File outDexFolder = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.addProperty ( Options.JAVA_SOURCE_VERSION.getName ( ) , JavaVersion.JAVA_7.toString ( ) ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToExe ( outDexFolder , false , com.android.jack.compile.androidtree.core.CoreCompilationTest.SOURCELIST ) ; }
Source:
synchronized void nScriptInvokeV ( long id , int slot , byte [ ] params ) { validate ( ) ; rsnScriptInvokeV ( mContext , id , slot , params ) ; }

Target:
synchronized void nScriptForEach ( long id , int slot , long ain , long aout , byte [ ] params , boolean mUseInc ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , mIncCon , id , slot , ain , aout , mUseInc ) ; } else { rsnScriptForEach ( mContext , mIncCon , id , slot , ain , aout , params , mUseInc ) ; } }
Source:
public static com.google.api.services.storage.model.Bucket createBucket ( java.lang.String projectId , java.lang.String bucketName ) { try { com.google.api.services.storage.Storage.Buckets.Insert insertBucket = com.google.gct.testing.launcher.CloudAuthenticator.getStorage ( ) . buckets ( ) . insert ( projectId , new com.google.api.services.storage.model.Bucket ( ) . setName ( bucketName ) . setLocation ( "US" ) ) ; return insertBucket.execute ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public static com.google.api.services.storage.model.Bucket createBucket ( java.lang.String projectId , java.lang.String bucketName ) { try { com.google.api.services.storage.model.Bucket bucket = new com.google.api.services.storage.model.Bucket ( ) . setName ( bucketName ) . setLocation ( "US" ) ; com.google.api.services.storage.Storage.Buckets.Insert insertBucket = com.google.gct.testing.launcher.CloudAuthenticator.getStorage ( ) . buckets ( ) . insert ( projectId , bucket ) ; return insertBucket.execute ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void onSomePackagesChanged ( ) { doPackagesChanged ( true ) ; }

Target:
public void onSomePackagesChanged ( ) { synchronized ( mLock ) { for ( int i = 0 ; i < ( mWallpaperMap.size ( ) ) ; i ++ ) { com.android.server.WallpaperManagerService.WallpaperData wallpaper = mWallpaperMap.valueAt ( i ) ; doPackagesChangedLocked ( true , wallpaper ) ; } } }