auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void loadAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod loading ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; com.android.jack.jayce.v0003.io.ExportSession exportSession = new com.android.jack.jayce.v0003.io.ExportSession ( session.getPhantomLookup ( ) , session , com.android.jack.jayce.NodeLevel.STRUCTURE ) ; for ( com.android.jack.jayce.v0003.nodes.NAnnotation annotation : annotations ) { com.android.jack.ir.ast.JAnnotation annote = annotation.exportAsJast ( exportSession ) ; loading.addAnnotation ( annote ) ; annote.updateParents ( loading ) ; } }

Target:
public void loadAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod loading ) { if ( ! ( annotations.isEmpty ( ) ) ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; com.android.jack.jayce.v0003.io.ExportSession exportSession = new com.android.jack.jayce.v0003.io.ExportSession ( session.getPhantomLookup ( ) , session , com.android.jack.jayce.NodeLevel.STRUCTURE ) ; for ( com.android.jack.jayce.v0003.nodes.NAnnotation annotation : annotations ) { com.android.jack.ir.ast.JAnnotation annote = annotation.exportAsJast ( exportSession ) ; loading.addAnnotation ( annote ) ; annote.updateParents ( loading ) ; } } }
Source:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , android.support.v8.renderscript.Allocation data , int dataXoff , int dataYoff ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data.getID ( mRS ) , dataXoff , dataYoff , data.mSelectedLOD , data.mSelectedFace.mID ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , int [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }
Source:
private junitparams.internal.TestMethod getTestMethodWithInvalidProvider ( ) { java.lang.reflect.Method testMethod = junitparams.ParametersReaderProvidersTest.TestClassWithProviderClassWithNoValidMethods.class . getMethods ( ) [ 0 ] ; return new junitparams.internal.TestMethod ( new org.junit.runners.model.FrameworkMethod ( testMethod ) , new org.junit.runners.model.TestClass ( junitparams.ParametersReaderProvidersTest.TestClassWithProviderClassWithNoValidMethods.class ) ) ; }

Target:
private junitparams.internal.TestMethod getTestMethodWithInvalidProvider ( ) { try { java.lang.reflect.Method testMethod = junitparams.ParametersReaderProvidersTest.TestClassWithProviderClassWithNoValidMethods.class . getDeclaredMethod ( "shouldDoNothingItsJustToConnectTestClassWithProvider" ) ; return new junitparams.internal.TestMethod ( new org.junit.runners.model.FrameworkMethod ( testMethod ) , new org.junit.runners.model.TestClass ( junitparams.ParametersReaderProvidersTest.TestClassWithProviderClassWithNoValidMethods.class ) ) ; } catch ( java.lang.NoSuchMethodException e ) { throw new java.lang.RuntimeException ( "Mismatch between method and test class" , e ) ; } }
Source:
public com.android.ide.common.process.ProcessResult execute ( @ com.android.annotations.NonNull com.android.ide.common.process.JavaProcessInfo javaProcessInfo , @ com.android.annotations.NonNull com.android.ide.common.process.ProcessOutputHandler processOutputHandler ) { com.android.ide.common.process.ProcessOutput output = processOutputHandler.createOutput ( ) ; org.gradle.process.ExecResult result = project.javaexec ( com.android.build.gradle.internal.process.GradleJavaProcessExecutor.getJavaExecClosure ( javaProcessInfo , output ) ) ; processOutputHandler.handleOutput ( output ) ; return new com.android.build.gradle.internal.process.GradleProcessResult ( result ) ; }

Target:
public com.android.ide.common.process.ProcessResult execute ( @ com.android.annotations.NonNull com.android.ide.common.process.JavaProcessInfo javaProcessInfo , @ com.android.annotations.NonNull com.android.ide.common.process.ProcessOutputHandler processOutputHandler ) { com.android.ide.common.process.ProcessOutput output = processOutputHandler.createOutput ( ) ; org.gradle.process.ExecResult result = project.javaexec ( new com.android.build.gradle.internal.process.GradleJavaProcessExecutor.ExecAction ( javaProcessInfo , output ) ) ; try { processOutputHandler.handleOutput ( output ) ; } catch ( com.android.ide.common.process.ProcessException e ) { return new com.android.build.gradle.internal.process.OutputHandlerFailedGradleProcessResult ( e ) ; } return new com.android.build.gradle.internal.process.GradleProcessResult ( result ) ; }
Source:
protected void engineInit ( int opmode , java.security.Key key , java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { if ( ( params != null ) && ( ( padding ) != ( NativeConstants.RSA_PKCS1_OAEP_PADDING ) ) ) { throw new java.security.InvalidAlgorithmParameterException ( ( "unknown param type: " + ( params.getClass ( ) . getName ( ) ) ) ) ; } engineInitInternal ( opmode , key ) ; }

Target:
protected void engineInit ( int opmode , java.security.Key key , java.security.AlgorithmParameters params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { javax.crypto.spec.OAEPParameterSpec spec = null ; if ( params != null ) { try { spec = params.getParameterSpec ( javax.crypto.spec.OAEPParameterSpec.class ) ; } catch ( java.security.spec.InvalidParameterSpecException e ) { throw new java.security.InvalidAlgorithmParameterException ( "Only OAEP parameters are supported" , e ) ; } } engineInitInternal ( opmode , key , spec ) ; }
Source:
public void setStatusHints ( java.lang.String callId , android.telecom.StatusHints statusHints ) { com.android.server.telecom.Log.startSession ( "CSW.sSH" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setStatusHints %s %s" , callId , statusHints ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.setStatusHints ( statusHints ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void setStatusHints ( java.lang.String callId , android.telecom.StatusHints statusHints ) { android.telecom.Log.startSession ( "CSW.sSH" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setStatusHints %s %s" , callId , statusHints ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.setStatusHints ( statusHints ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
android.server.cts.ActivityManagerState.ActivityTask getTaskByActivityName ( java.lang.String activityName , int stackId ) { java.lang.String fullName = android.server.cts.ActivityManagerTestBase.ActivityManagerTestBase.getActivityComponentName ( activityName ) ; for ( android.server.cts.ActivityManagerState.ActivityStack stack : mStacks ) { if ( ( stackId == ( - 1 ) ) || ( stackId == ( stack.mStackId ) ) ) { for ( android.server.cts.ActivityManagerState.ActivityTask task : stack.mTasks ) { for ( android.server.cts.ActivityManagerState.Activity activity : task.mActivities ) { if ( activity.name.equals ( fullName ) ) { return task ; } } } } } return null ; }

Target:
android.server.cts.ActivityManagerState.ActivityTask getTaskByActivityName ( java.lang.String activityName , int stackId ) { java.lang.String fullName = android.server.cts.ActivityManagerTestBase.getActivityComponentName ( activityName ) ; for ( android.server.cts.ActivityManagerState.ActivityStack stack : mStacks ) { if ( ( stackId == ( - 1 ) ) || ( stackId == ( stack.mStackId ) ) ) { for ( android.server.cts.ActivityManagerState.ActivityTask task : stack.mTasks ) { for ( android.server.cts.ActivityManagerState.Activity activity : task.mActivities ) { if ( activity.name.equals ( fullName ) ) { return task ; } } } } } return null ; }
Source:
public void lceData ( int indicationType , android.hardware.radio.V1_0.LceDataInfo lce ) { mRil.processIndication ( indicationType ) ; java.util.ArrayList < java.lang.Integer > response = com.android.internal.telephony.RIL.convertHalLceData ( lce , mRil ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_LCEDATA_RECV , response ) ; if ( ( mRil.mLceInfoRegistrant ) != null ) { mRil.mLceInfoRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , response , null ) ) ; } }

Target:
public void lceData ( int indicationType , android.hardware.radio.V1_0.LceDataInfo lce ) { mRil.processIndication ( indicationType ) ; com.android.internal.telephony.LinkCapacityEstimate response = com.android.internal.telephony.RIL.convertHalLceData ( lce , mRil ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_LCEDATA_RECV , response ) ; if ( ( mRil.mLceInfoRegistrants ) != null ) { mRil.mLceInfoRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; } }
Source:
public boolean configureRoaming ( com.android.server.wifi.WifiNative.RoamingConfig config ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "configureRoaming " ) ; try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.configureRoaming ( config ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } return false ; }

Target:
public boolean resetPnoList ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "resetPnoList not supported" ) ; return false ; } else { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , ( "resetPnoList cmd " + ( com.android.server.wifi.WifiNative.sPnoCmdId ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { com.android.server.wifi.WifiNative.sPnoCmdId = com.android.server.wifi.WifiNative.getNewCmdIdLocked ( ) ; com.android.server.wifi.WifiNative.sPnoEventHandler = null ; if ( com.android.server.wifi.WifiNative.resetPnoListNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sPnoCmdId ) ) { return true ; } } return false ; } } }
Source:
public void onPageStarted ( java.lang.String url ) { org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "onPageStarted=" + url ) ) ; mWebViewClient.onPageStarted ( mWebView , url , mWebView.getFavicon ( ) ) ; org.chromium.base.TraceEvent.end ( ) ; }

Target:
public void onPageStarted ( java.lang.String url ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.onPageStarted" ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "onPageStarted=" + url ) ) ; mWebViewClient.onPageStarted ( mWebView , url , mWebView.getFavicon ( ) ) ; } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.onPageStarted" ) ; } }
Source:
public boolean onKeyUp ( final int keyCode , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyUp ( keyCode , event ) ; } } ) ; return ret ; } return mAwContents.onKeyUp ( keyCode , event ) ; }

Target:
public void onDetachedFromWindow ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onDetachedFromWindow ( ) ; } } ) ; return ; } mAwContents.onDetachedFromWindow ( ) ; }
Source:
protected void handleButtonUp ( int button ) { if ( ( myState ) == ( STATE_DRAG ) ) { performSelection ( ) ; myState = STATE_NONE ; } }

Target:
protected void handleButtonUp ( int button ) { if ( ( myState ) == ( STATE_DRAG ) ) { if ( ( ( com.intellij.openapi.util.SystemInfo.isMac ) && ( ( myInputEvent ) != null ) ) && ( myInputEvent.isControlDown ( ) ) ) { return ; } performSelection ( ) ; myState = STATE_NONE ; } }
Source:
public void testSocket_Block_BasicStatusAfterConnect ( ) throws java.io.IOException { final java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; dc.connect ( datagramSocket1Address ) ; java.net.DatagramSocket s1 = dc.socket ( ) ; assertSocketAfterConnect ( s1 ) ; java.net.DatagramSocket s2 = dc.socket ( ) ; assertSame ( s1 , s2 ) ; }

Target:
public void testSocket_Block_BasicStatusAfterConnect ( ) throws java.io.IOException { final java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; dc.connect ( datagramSocket1Address ) ; java.net.DatagramSocket s1 = dc.socket ( ) ; assertSocketAfterConnect ( s1 ) ; java.net.DatagramSocket s2 = dc.socket ( ) ; assertSame ( s1 , s2 ) ; dc.close ( ) ; }
Source:
public boolean sdpSearch ( android.os.ParcelUuid uuid ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot query remote device sdp records" ) ; return false ; } try { return android.bluetooth.BluetoothDevice.sService.sdpSearch ( this , uuid ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }

Target:
public android.os.ParcelUuid [ ] getUuids ( ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( ( service == null ) || ( ! ( isBluetoothEnabled ( ) ) ) ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot get remote device Uuids" ) ; return null ; } try { return service.getRemoteUuids ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return null ; }
Source:
public com.android.sched.vfs.InputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NotFileOrDirectoryException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileOrDirectoryException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } return new com.android.sched.vfs.direct.DirectFile ( file , vfsRoot ) ; }

Target:
public com.android.sched.vfs.InputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NotFileOrDirectoryException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileOrDirectoryException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } return new com.android.sched.vfs.DirectFile ( file , vfsRoot ) ; }
Source:
public void runTest ( ) { mScript.set_histogramSource ( mInPixelsAllocation ) ; mScript.set_histogramWidth ( mInPixelsAllocation.getType ( ) . getX ( ) ) ; mScript.set_histogramHeight ( mInPixelsAllocation.getType ( ) . getY ( ) ) ; mScript.invoke_prepareWhiteBalance ( ) ; mScript.forEach_whiteBalanceKernel ( mInPixelsAllocation , mOutPixelsAllocation ) ; }

Target:
public void createTest ( com.android.rs.image2.Resources res ) { mScript = new com.android.rs.image2.ScriptC_wbalance ( mRS ) ; mHist = android.support.v8.renderscript.ScriptIntrinsicHistogram.create ( mRS , android.support.v8.renderscript.Element.U8_4 ( mRS ) ) ; mSums = android.support.v8.renderscript.Allocation.createSized ( mRS , android.support.v8.renderscript.Element.I32_4 ( mRS ) , 256 ) ; mHist.setOutput ( mSums ) ; mScript.set_histogramValues ( mSums ) ; }
Source:
private void onRequestPasskey ( java.lang.String objectPath , int nativeData ) { java.lang.String address = checkPairingRequestAndGetAddress ( objectPath , nativeData ) ; if ( address == null ) return ; android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_PAIRING_REQUEST ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , mAdapter.getRemoteDevice ( address ) ) ; intent.putExtra ( BluetoothDevice.EXTRA_PAIRING_VARIANT , BluetoothDevice.PAIRING_VARIANT_PASSKEY ) ; mContext.sendBroadcast ( intent , android.server.BluetoothEventLoop.BLUETOOTH_ADMIN_PERM ) ; return ; }

Target:
private void onRequestPasskey ( java.lang.String objectPath , int nativeData ) { java.lang.String address = checkPairingRequestAndGetAddress ( objectPath , nativeData ) ; if ( address == null ) return ; mWakeLock.acquire ( ) ; android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_PAIRING_REQUEST ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , mAdapter.getRemoteDevice ( address ) ) ; intent.putExtra ( BluetoothDevice.EXTRA_PAIRING_VARIANT , BluetoothDevice.PAIRING_VARIANT_PASSKEY ) ; mContext.sendBroadcast ( intent , android.server.BluetoothEventLoop.BLUETOOTH_ADMIN_PERM ) ; mWakeLock.release ( ) ; return ; }
Source:
public final void testSetRectangle ( ) { com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r = new com.android.ide.eclipse.adt.editors.layout.gscripts.Rect ( 1 , 2 , 3 , 4 ) ; org.eclipse.swt.graphics.Rectangle r2 = new org.eclipse.swt.graphics.Rectangle ( 3 , 4 , 20 , 30 ) ; com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r3 = r.set ( r2 ) ; assertSame ( r3 , r ) ; assertNotSame ( r3 , r2 ) ; assertEquals ( 3 , r.x ) ; assertEquals ( 4 , r.y ) ; assertEquals ( 20 , r.w ) ; assertEquals ( 30 , r.h ) ; }

Target:
public final void testSetRectangle ( ) { com.android.ide.common.api.Rect r = new com.android.ide.common.api.Rect ( 1 , 2 , 3 , 4 ) ; org.eclipse.swt.graphics.Rectangle r2 = new org.eclipse.swt.graphics.Rectangle ( 3 , 4 , 20 , 30 ) ; com.android.ide.common.api.Rect r3 = r.set ( r2 ) ; assertSame ( r3 , r ) ; assertNotSame ( r3 , r2 ) ; assertEquals ( 3 , r.x ) ; assertEquals ( 4 , r.y ) ; assertEquals ( 20 , r.w ) ; assertEquals ( 30 , r.h ) ; }
Source:
private void notifyError ( java.lang.String message ) { showMessage ( message ) ; android.util.Log.i ( com.android.cts.verifier.bluetooth.BleClientService.TAG , message ) ; android.content.Intent intent = new android.content.Intent ( com.android.cts.verifier.bluetooth.BleClientService.BLE_CLIENT_ERROR ) ; sendBroadcast ( intent ) ; }

Target:
public void onCharacteristicChanged ( android.bluetooth.BluetoothGatt gatt , android.bluetooth.BluetoothGattCharacteristic characteristic ) { if ( com.android.cts.verifier.bluetooth.BleClientService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleClientService.TAG , "onCharacteristicChanged" ) ; if ( ( ( characteristic.getUuid ( ) ) != null ) && ( characteristic.getUuid ( ) . equals ( com.android.cts.verifier.bluetooth.BleClientService.UPDATE_CHARACTERISTIC_UUID ) ) ) { notifyCharacteristicChanged ( characteristic.getStringValue ( 0 ) ) ; setNotification ( false ) ; sleep ( 1000 ) ; mBluetoothGatt.readRemoteRssi ( ) ; } }
Source:
private void configureLinkProperties ( ) { if ( android.net.wifi.WifiConfigStore.isUsingStaticIp ( mLastNetworkId ) ) { mLinkProperties = android.net.wifi.WifiConfigStore.getLinkProperties ( mLastNetworkId ) ; } else { synchronized ( mDhcpInfoInternal ) { mLinkProperties = mDhcpInfoInternal.makeLinkProperties ( ) ; } mLinkProperties.setHttpProxy ( android.net.wifi.WifiConfigStore.getProxyProperties ( mLastNetworkId ) ) ; } mLinkProperties.setInterfaceName ( mInterfaceName ) ; if ( android.net.wifi.WifiStateMachine.DBG ) { log ( ( ( ( "netId=" + ( mLastNetworkId ) ) + " Link configured: " ) + ( mLinkProperties.toString ( ) ) ) ) ; } }

Target:
private void configureLinkProperties ( ) { if ( mWifiConfigStore.isUsingStaticIp ( mLastNetworkId ) ) { mLinkProperties = mWifiConfigStore.getLinkProperties ( mLastNetworkId ) ; } else { synchronized ( mDhcpInfoInternal ) { mLinkProperties = mDhcpInfoInternal.makeLinkProperties ( ) ; } mLinkProperties.setHttpProxy ( mWifiConfigStore.getProxyProperties ( mLastNetworkId ) ) ; } mLinkProperties.setInterfaceName ( mInterfaceName ) ; if ( android.net.wifi.WifiStateMachine.DBG ) { log ( ( ( ( "netId=" + ( mLastNetworkId ) ) + " Link configured: " ) + ( mLinkProperties.toString ( ) ) ) ) ; } }
Source:
public void copyFrom ( float [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFrom" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFromUnchecked ( float [ ] d ) { copyFromUnchecked ( d , Element.DataType.FLOAT_32 , d.length ) ; }
Source:
private void verifyDefaultApConfig ( android.net.wifi.WifiConfiguration config ) { org.junit.Assert.assertEquals ( com.android.server.wifi.WifiApConfigStoreTest.TEST_DEFAULT_AP_SSID , config.SSID ) ; org.junit.Assert.assertTrue ( config.allowedKeyManagement.get ( KeyMgmt.WPA2_PSK ) ) ; }

Target:
private void verifyDefaultApConfig ( android.net.wifi.WifiConfiguration config ) { java.lang.String [ ] splitSsid = config.SSID.split ( "_" ) ; org.junit.Assert.assertEquals ( 2 , splitSsid.length ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiApConfigStoreTest.TEST_DEFAULT_AP_SSID , splitSsid [ 0 ] ) ; int randomPortion = java.lang.Integer.parseInt ( splitSsid [ 1 ] ) ; org.junit.Assert.assertTrue ( ( ( randomPortion >= ( com.android.server.wifi.WifiApConfigStoreTest.RAND_SSID_INT_MIN ) ) && ( randomPortion <= ( com.android.server.wifi.WifiApConfigStoreTest.RAND_SSID_INT_MAX ) ) ) ) ; org.junit.Assert.assertTrue ( config.allowedKeyManagement.get ( KeyMgmt.WPA2_PSK ) ) ; }
Source:
private void killApplication ( java.lang.String pkgName , int appId ) { android.app.IActivityManager am = android.app.ActivityManagerNative.getDefault ( ) ; if ( am != null ) { try { am.killApplicationWithAppId ( pkgName , appId ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
private void killApplication ( java.lang.String pkgName , int appId , java.lang.String reason ) { android.app.IActivityManager am = android.app.ActivityManagerNative.getDefault ( ) ; if ( am != null ) { try { am.killApplicationWithAppId ( pkgName , appId , reason ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
public static < E extends java.lang.Enum < E > > com.google.common.util.concurrent.CycleDetectingLockFactory.WithExplicitOrdering < E > newInstanceWithExplicitOrdering ( java.lang.Class < E > enumClass , com.google.common.util.concurrent.CycleDetectingLockFactory.Policy policy ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.Map < E , com.google.common.util.concurrent.CycleDetectingLockFactory.LockGraphNode > lockGraphNodes = ( ( java.util.Map < E , com.google.common.util.concurrent.CycleDetectingLockFactory.LockGraphNode > ) ( com.google.common.util.concurrent.CycleDetectingLockFactory.lockGraphNodesPerType.get ( enumClass ) ) ) ; return new com.google.common.util.concurrent.CycleDetectingLockFactory.WithExplicitOrdering < E > ( policy , lockGraphNodes ) ; }

Target:
private static java.util.Map < ? extends java.lang.Enum , com.google.common.util.concurrent.CycleDetectingLockFactory.LockGraphNode > getOrCreateNodes ( java.lang.Class < ? extends java.lang.Enum > clazz ) { java.util.Map < ? extends java.lang.Enum , com.google.common.util.concurrent.CycleDetectingLockFactory.LockGraphNode > existing = com.google.common.util.concurrent.CycleDetectingLockFactory.lockGraphNodesPerType.get ( clazz ) ; if ( existing != null ) { return existing ; } java.util.Map < ? extends java.lang.Enum , com.google.common.util.concurrent.CycleDetectingLockFactory.LockGraphNode > created = com.google.common.util.concurrent.CycleDetectingLockFactory.createNodes ( clazz ) ; existing = com.google.common.util.concurrent.CycleDetectingLockFactory.lockGraphNodesPerType.putIfAbsent ( clazz , created ) ; return com.google.common.base.MoreObjects.firstNonNull ( existing , created ) ; }
Source:
private void readFolder ( java.io.File rootFolder ) throws com.android.builder.resources.DuplicateResourceException { java.io.File [ ] folders = rootFolder.listFiles ( ) ; if ( folders != null ) { for ( java.io.File folder : folders ) { if ( folder.isDirectory ( ) ) { parseFolder ( folder ) ; } } } }

Target:
private void readSourceFolder ( java.io.File sourceFolder ) throws com.android.builder.resources.DuplicateResourceException , java.io.IOException { java.io.File [ ] folders = sourceFolder.listFiles ( ) ; if ( folders != null ) { for ( java.io.File folder : folders ) { if ( folder.isDirectory ( ) ) { parseFolder ( sourceFolder , folder ) ; } } } }
Source:
static java.util.List < com.android.jack.ir.ast.JInterface > normalizeInterfaces ( @ javax.annotation.Nonnull java.util.List < com.android.jack.ir.ast.JLambda > lambdas ) { java.util.ArrayList < com.android.jack.ir.ast.JInterface > interfaces = new java.util.ArrayList < > ( ) ; for ( com.android.jack.ir.ast.JLambda lambda : lambdas ) { interfaces.addAll ( lambda.getInterfaceBounds ( ) ) ; interfaces.add ( lambda.getType ( ) ) ; } return new java.util.ArrayList ( com.android.jack.transformations.lambda.LambdaInterfaceSignature.getNormalizedInterfacesMap ( interfaces ) . values ( ) ) ; }

Target:
static java.util.List < com.android.jack.ir.ast.JInterface > extractOrderedInterfaces ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JLambda lambda ) { java.util.ArrayList < com.android.jack.ir.ast.JInterface > interfaces = new java.util.ArrayList < > ( ) ; com.android.jack.ir.ast.JInterface mainInterface = lambda.getType ( ) ; interfaces.add ( mainInterface ) ; for ( com.android.jack.ir.ast.JInterface bound : lambda.getInterfaceBounds ( ) ) { if ( ! ( bound.isSameType ( mainInterface ) ) ) { interfaces.add ( bound ) ; } } return interfaces ; }
Source:
public void testI18NameParsing ( ) { for ( com.android.server.wifi.hotspot2.anqp.I18NameTest.I18NameTestMapping testMapping : com.android.server.wifi.hotspot2.anqp.I18NameTest.I18_NAME_MAPPINGS ) { try { com.android.server.wifi.hotspot2.anqp.I18Name i18Name = new com.android.server.wifi.hotspot2.anqp.I18Name ( java.nio.ByteBuffer.wrap ( testMapping.mBytes ) . order ( java.nio.ByteOrder.LITTLE_ENDIAN ) ) ; assertEquals ( testMapping.mExpectedLanguage , i18Name.getLanguage ( ) ) ; assertEquals ( testMapping.mExpectedLocale , i18Name.getLocale ( ) ) ; assertEquals ( testMapping.mExpectedText , i18Name.getText ( ) ) ; } catch ( java.net.ProtocolException e ) { fail ( ( "Exception encountered during parsing: " + e ) ) ; } } }

Target:
public void parseBufferWithEmptyText ( ) throws java.lang.Exception { byte [ ] data = getTestData ( com.android.server.wifi.hotspot2.anqp.I18NameTest.TEST_LANGUAGE , "" ) ; com.android.server.wifi.hotspot2.anqp.I18Name actualName = com.android.server.wifi.hotspot2.anqp.I18Name.parse ( getTestBuffer ( data , data.length ) ) ; com.android.server.wifi.hotspot2.anqp.I18Name expectedName = new com.android.server.wifi.hotspot2.anqp.I18Name ( com.android.server.wifi.hotspot2.anqp.I18NameTest.TEST_LANGUAGE , com.android.server.wifi.hotspot2.anqp.I18NameTest.TEST_LOCALE , "" ) ; org.junit.Assert.assertEquals ( expectedName , actualName ) ; }
Source:
private void setNotification ( android.bluetooth.BluetoothGattCharacteristic characteristic , boolean enable ) { if ( characteristic != null ) { mBluetoothGatt.setCharacteristicNotification ( characteristic , enable ) ; android.bluetooth.BluetoothGattDescriptor descriptor = characteristic.getDescriptor ( com.android.cts.verifier.bluetooth.BleClientService.UPDATE_DESCRIPTOR_UUID ) ; if ( enable ) { if ( characteristic.getUuid ( ) . equals ( com.android.cts.verifier.bluetooth.BleClientService.INDICATE_CHARACTERISTIC_UUID ) ) { descriptor.setValue ( BluetoothGattDescriptor.ENABLE_INDICATION_VALUE ) ; } else { descriptor.setValue ( BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE ) ; } } else { descriptor.setValue ( BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE ) ; } mBluetoothGatt.writeDescriptor ( descriptor ) ; } }

Target:
public void onCharacteristicChanged ( android.bluetooth.BluetoothGatt gatt , android.bluetooth.BluetoothGattCharacteristic characteristic ) { if ( com.android.cts.verifier.bluetooth.BleClientService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleClientService.TAG , "onCharacteristicChanged" ) ; if ( ( ( characteristic.getUuid ( ) ) != null ) && ( characteristic.getUuid ( ) . equals ( com.android.cts.verifier.bluetooth.BleClientService.UPDATE_CHARACTERISTIC_UUID ) ) ) { notifyCharacteristicChanged ( characteristic.getStringValue ( 0 ) ) ; setNotification ( false ) ; sleep ( 1000 ) ; mBluetoothGatt.readRemoteRssi ( ) ; } }
Source:
public static android.bluetooth.client.map.BluetoothMapBmessage createBmessage ( java.lang.String str ) { android.bluetooth.client.map.BluetoothMapBmessageParser p = new android.bluetooth.client.map.BluetoothMapBmessageParser ( ) ; if ( DBG ) { android.util.Log.d ( android.bluetooth.client.map.BluetoothMapBmessageParser.TAG , ( "actual wired contents: " + str ) ) ; } try { p.parse ( str ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( android.bluetooth.client.map.BluetoothMapBmessageParser.TAG , "I/O exception when parsing bMessage" , e ) ; return null ; } catch ( java.text.ParseException e ) { android.util.Log.e ( android.bluetooth.client.map.BluetoothMapBmessageParser.TAG , "Cannot parse bMessage" , e ) ; return null ; } return p.mBmsg ; }

Target:
public static android.bluetooth.client.map.BluetoothMapBmessage createBmessage ( java.lang.String str ) { android.bluetooth.client.map.BluetoothMapBmessageParser p = new android.bluetooth.client.map.BluetoothMapBmessageParser ( ) ; if ( android.bluetooth.client.map.BluetoothMapBmessageParser.DBG ) { android.util.Log.d ( android.bluetooth.client.map.BluetoothMapBmessageParser.TAG , ( "actual wired contents: " + str ) ) ; } try { p.parse ( str ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( android.bluetooth.client.map.BluetoothMapBmessageParser.TAG , "I/O exception when parsing bMessage" , e ) ; return null ; } catch ( java.text.ParseException e ) { android.util.Log.e ( android.bluetooth.client.map.BluetoothMapBmessageParser.TAG , "Cannot parse bMessage" , e ) ; return null ; } return p.mBmsg ; }
Source:
public void run ( ) { try { java.lang.Thread.sleep ( ( 1 * 1000 ) ) ; toClose.close ( ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { try { wrapping.startHandshake ( ) ; assertFalse ( StandardNames.IS_RI ) ; wrapping.setSoTimeout ( ( 5 * 1000 ) ) ; assertEquals ( ( - 1 ) , wrapping.getInputStream ( ) . read ( ) ) ; } catch ( java.lang.Exception e ) { assertTrue ( StandardNames.IS_RI ) ; } return null ; }
Source:
public void stop ( ) { if ( com.google.gct.login.GoogleLoginPrefs.getLogoutOnExitPref ( ) ) { logOut ( false ) ; } }

Target:
public boolean logOut ( boolean showPrompt ) { com.google.gct.login.CredentialedUser activeUser = users.getActiveUser ( ) ; if ( activeUser == null ) { return false ; } boolean loggedOut = activeUser.getGoogleLoginState ( ) . logOut ( showPrompt ) ; if ( loggedOut ) { logOutAllUsers ( ) ; } return loggedOut ; }
Source:
public void testSimpleResultParse ( ) throws java.io.IOException { java.lang.String result = com.android.monkeyrunner.adb.AdbMonkeyDeviceTest.getResource ( "instrument_result.txt" ) ; java.util.Map < java.lang.String , java.lang.Object > convertedResult = com.android.monkeyrunner.adb.AdbMonkeyDevice.convertInstrumentResult ( result ) ; assertEquals ( "one" , convertedResult.get ( "result1" ) ) ; assertEquals ( "two" , convertedResult.get ( "result2" ) ) ; }

Target:
public void testSimpleResultParse ( ) throws java.io.IOException { java.lang.String result = com.android.chimpchat.adb.AdbChimpDeviceTest.getResource ( "instrument_result.txt" ) ; java.util.Map < java.lang.String , java.lang.Object > convertedResult = com.android.chimpchat.adb.AdbChimpDevice.convertInstrumentResult ( result ) ; assertEquals ( "one" , convertedResult.get ( "result1" ) ) ; assertEquals ( "two" , convertedResult.get ( "result2" ) ) ; }
Source:
public void run ( ) { while ( isRunning ( ) ) { boolean waitSuccessful = waitForObject ( ) ; if ( waitSuccessful == false ) { continue ; } boolean finalized = waitForFinalization ( ) ; if ( ( ! finalized ) && ( ! ( dalvik.system.VMRuntime.getRuntime ( ) . isDebuggerActive ( ) ) ) ) { java.lang.Object finalizedObject = java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingObject ; if ( finalizedObject != null ) { java.lang.Daemons.FinalizerWatchdogDaemon.finalizerTimedOut ( finalizedObject ) ; break ; } } } }

Target:
public void run ( ) { while ( isRunning ( ) ) { if ( ! ( sleepUntilNeeded ( ) ) ) { continue ; } final java.lang.ref.FinalizerReference < ? > finalizing = waitForFinalization ( ) ; if ( ( finalizing != null ) && ( ! ( dalvik.system.VMRuntime.getRuntime ( ) . isDebuggerActive ( ) ) ) ) { java.lang.Daemons.FinalizerWatchdogDaemon.finalizerTimedOut ( finalizing ) ; break ; } } }
Source:
private static boolean isModified ( android.content.Context context , java.io.File archive , long currentCrc ) { android.content.SharedPreferences prefs = android.support.multidex.MultiDexExtractor.getMultiDexPreferences ( context ) ; return ( ( prefs.getLong ( android.support.multidex.MultiDexExtractor.KEY_TIME_STAMP , android.support.multidex.MultiDexExtractor.NO_VALUE ) ) != ( android.support.multidex.MultiDexExtractor.getTimeStamp ( archive ) ) ) || ( ( prefs.getLong ( android.support.multidex.MultiDexExtractor.KEY_CRC , android.support.multidex.MultiDexExtractor.NO_VALUE ) ) != currentCrc ) ; }

Target:
private static boolean isModified ( android.content.Context context , java.io.File archive , long currentCrc , java.lang.String prefsKeyPrefix ) { android.content.SharedPreferences prefs = android.support.multidex.MultiDexExtractor.getMultiDexPreferences ( context ) ; return ( ( prefs.getLong ( ( prefsKeyPrefix + ( android.support.multidex.MultiDexExtractor.KEY_TIME_STAMP ) ) , android.support.multidex.MultiDexExtractor.NO_VALUE ) ) != ( android.support.multidex.MultiDexExtractor.getTimeStamp ( archive ) ) ) || ( ( prefs.getLong ( ( prefsKeyPrefix + ( android.support.multidex.MultiDexExtractor.KEY_CRC ) ) , android.support.multidex.MultiDexExtractor.NO_VALUE ) ) != currentCrc ) ; }
Source:
private static android.os.ParcelFileDescriptor getDistroParcelFileDescriptor ( android.content.Context context ) { android.os.ParcelFileDescriptor inputFileDescriptor ; try { inputFileDescriptor = context.getContentResolver ( ) . openFileDescriptor ( TimeZoneRulesDataContract.Data.CONTENT_URI , "r" ) ; if ( inputFileDescriptor == null ) { throw new java.io.FileNotFoundException ( "ContentProvider returned null" ) ; } } catch ( java.io.FileNotFoundException e ) { android.util.Log.e ( com.android.timezone.updater.RulesCheckReceiver.TAG , ( "Unable to open file descriptor" + ( TimeZoneRulesDataContract.Data.CONTENT_URI ) ) , e ) ; return null ; } return inputFileDescriptor ; }

Target:
private static android.os.ParcelFileDescriptor getDistroParcelFileDescriptor ( android.content.Context context ) { android.os.ParcelFileDescriptor inputFileDescriptor ; try { inputFileDescriptor = context.getContentResolver ( ) . openFileDescriptor ( TimeZoneRulesDataContract.Operation.CONTENT_URI , "r" ) ; if ( inputFileDescriptor == null ) { throw new java.io.FileNotFoundException ( "ContentProvider returned null" ) ; } } catch ( java.io.FileNotFoundException e ) { android.util.Log.e ( com.android.timezone.updater.RulesCheckReceiver.TAG , ( "Unable to open file descriptor" + ( TimeZoneRulesDataContract.Operation.CONTENT_URI ) ) , e ) ; return null ; } return inputFileDescriptor ; }
Source:
private void makeFakeSysImgInternal ( java.io.File imagesDir , java.lang.String tag , java.lang.String abiType ) throws java.io.IOException { imagesDir.mkdirs ( ) ; new java.io.File ( imagesDir , "userdata.img" ) . createNewFile ( ) ; createSourceProps ( imagesDir , PkgProps.PKG_REVISION , "0" , PkgProps.VERSION_API_LEVEL , "0" , PkgProps.SYS_IMG_TAG_ID , tag , PkgProps.SYS_IMG_ABI , abiType ) ; }

Target:
protected void makeSystemImageFolder ( @ com.android.annotations.NonNull java.lang.String targetDir , @ com.android.annotations.Nullable java.lang.String tagId , @ com.android.annotations.NonNull java.lang.String abiType ) throws java.io.IOException { java.io.File sysImgDir = new java.io.File ( mFakeSdk , com.android.SdkConstants.FD_SYSTEM_IMAGES ) ; sysImgDir = new java.io.File ( sysImgDir , targetDir ) ; if ( tagId != null ) { sysImgDir = new java.io.File ( sysImgDir , tagId ) ; } sysImgDir = new java.io.File ( sysImgDir , abiType ) ; makeFakeSysImgInternal ( sysImgDir , tagId , abiType ) ; }
Source:
private android.widget.RemoteViews getViewMoreConversationsView ( ) { if ( android.util.Log.isLoggable ( LogTag.WIDGET , Log.VERBOSE ) ) { android.util.Log.v ( com.android.mms.widget.MmsWidgetService.TAG , "getViewMoreConversationsView" ) ; } android.widget.RemoteViews view = new android.widget.RemoteViews ( mContext.getPackageName ( ) , R.layout.widget_loading ) ; view.setTextViewText ( R.id.loading_text , mContext.getText ( R.string.view_more_conversations ) ) ; view.setOnClickFillInIntent ( R.id.widget_loading , new android.content.Intent ( mContext , com.android.mms.ui.ConversationList.class ) ) ; return view ; }

Target:
private android.widget.RemoteViews getViewMoreConversationsView ( ) { if ( android.util.Log.isLoggable ( LogTag.WIDGET , Log.VERBOSE ) ) { android.util.Log.v ( com.android.mms.widget.MmsWidgetService.TAG , "getViewMoreConversationsView" ) ; } android.widget.RemoteViews view = new android.widget.RemoteViews ( mContext.getPackageName ( ) , R.layout.widget_loading ) ; view.setTextViewText ( R.id.loading_text , mContext.getText ( R.string.view_more_conversations ) ) ; android.app.PendingIntent pendingIntent = android.app.PendingIntent.getActivity ( mContext , 0 , new android.content.Intent ( mContext , com.android.mms.ui.ConversationList.class ) , PendingIntent.FLAG_UPDATE_CURRENT ) ; view.setOnClickPendingIntent ( R.id.widget_loading , pendingIntent ) ; return view ; }
Source:
public static java.util.List < android.content.PeriodicSync > getPeriodicSyncs ( android.accounts.Account account , java.lang.String authority ) { try { return android.content.ContentResolver.getContentService ( ) . getPeriodicSyncs ( account , authority ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( "the ContentService should always be reachable" , e ) ; } }

Target:
public static int getIsSyncableAsUser ( android.accounts.Account account , java.lang.String authority , int userId ) { try { return android.content.ContentResolver.getContentService ( ) . getIsSyncableAsUser ( account , authority , userId ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( "the ContentService should always be reachable" , e ) ; } }
Source:
protected static void addProperties ( @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.lang.String > properties , @ javax.annotation.Nonnull java.util.List < java.lang.String > args ) { for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : properties.entrySet ( ) ) { args.add ( "-D" ) ; args.add ( ( ( ( entry.getKey ( ) ) + "=" ) + ( entry.getValue ( ) ) ) ) ; } }

Target:
private static void setUpEnvironment ( @ javax.annotation.Nonnull com.android.jack.test.util.ExecuteFile exec ) { java.lang.String path = java.lang.System.getenv ( "PATH" ) ; if ( path != null ) { exec.addEnvVar ( "PATH" , path ) ; } java.lang.String home = java.lang.System.getenv ( "HOME" ) ; if ( home != null ) { exec.addEnvVar ( "HOME" , home ) ; } java.lang.String user = java.lang.System.getenv ( "USER" ) ; if ( user != null ) { exec.addEnvVar ( "USER" , user ) ; } }
Source:
public void setCurrentFunctions ( java.lang.String functions ) { if ( com.android.server.usb.UsbDeviceManager.DEBUG ) android.util.Slog.d ( com.android.server.usb.UsbDeviceManager.TAG , ( ( "setCurrentFunctions(" + functions ) + ")" ) ) ; mHandler.sendMessage ( com.android.server.usb.UsbDeviceManager.MSG_SET_CURRENT_FUNCTIONS , functions ) ; }

Target:
public void setCurrentFunctions ( java.lang.String functions , boolean usbDataUnlocked ) { if ( com.android.server.usb.UsbDeviceManager.DEBUG ) android.util.Slog.d ( com.android.server.usb.UsbDeviceManager.TAG , ( ( ( ( "setCurrentFunctions(" + functions ) + ", " ) + usbDataUnlocked ) + ")" ) ) ; mHandler.sendMessage ( com.android.server.usb.UsbDeviceManager.MSG_SET_CURRENT_FUNCTIONS , functions , usbDataUnlocked ) ; }
Source:
private void setAndBroadcastNetworkSetTime ( long time ) { if ( com.android.internal.telephony.ServiceStateTracker.DBG ) log ( ( ( "setAndBroadcastNetworkSetTime: time=" + time ) + "ms" ) ) ; android.os.SystemClock.setCurrentTimeMillis ( time ) ; android.content.Intent intent = new android.content.Intent ( TelephonyIntents.ACTION_NETWORK_SET_TIME ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REPLACE_PENDING ) ; intent.putExtra ( "time" , time ) ; mPhone.getContext ( ) . sendStickyBroadcastAsUser ( intent , UserHandle.ALL ) ; com.android.internal.telephony.metrics.TelephonyMetrics.getInstance ( ) . writeNITZEvent ( mPhone.getPhoneId ( ) , time ) ; }

Target:
private int [ ] getLteRsrpThresholds ( ) { return getCarrierConfig ( ) . getIntArray ( CarrierConfigManager.KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY ) ; }
Source:
public java.lang.String getTestedApplicationId ( ) { if ( mType.isForTesting ( ) ) { com.google.common.base.Preconditions.checkState ( ( ( mTestedConfig ) != null ) ) ; if ( ( mTestedConfig.mType ) == ( com.android.builder.core.VariantConfiguration.Type.LIBRARY ) ) { return getApplicationId ( ) ; } else { return mTestedConfig.getApplicationId ( ) ; } } return null ; }

Target:
public java.lang.String getTestedApplicationId ( ) { if ( mType.isForTesting ( ) ) { com.google.common.base.Preconditions.checkState ( ( ( mTestedConfig ) != null ) ) ; if ( ( mTestedConfig.mType ) == ( VariantType.LIBRARY ) ) { return getApplicationId ( ) ; } else { return mTestedConfig.getApplicationId ( ) ; } } return null ; }
Source:
public final java.nio.ByteBuffer get ( byte [ ] dst , int dstOffset , int byteCount ) { checkGetBounds ( 1 , dst.length , dstOffset , byteCount ) ; this . block.peekByteArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , byteCount ) ; position += byteCount ; return this ; }

Target:
public final long getLong ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.LONG ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } long result = this . block.peekLong ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }
Source:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ! ( o instanceof android.telephony.ims.internal.feature.CapabilityChangeRequest ) ) return false ; android.telephony.ims.internal.feature.CapabilityChangeRequest that = ( ( android.telephony.ims.internal.feature.CapabilityChangeRequest ) ( o ) ) ; if ( ! ( mCapabilitiesToEnable.equals ( that.mCapabilitiesToEnable ) ) ) return false ; return mCapabilitiesToDisable.equals ( that.mCapabilitiesToDisable ) ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ! ( o instanceof android.telephony.ims.feature.CapabilityChangeRequest ) ) return false ; android.telephony.ims.feature.CapabilityChangeRequest that = ( ( android.telephony.ims.feature.CapabilityChangeRequest ) ( o ) ) ; if ( ! ( mCapabilitiesToEnable.equals ( that.mCapabilitiesToEnable ) ) ) return false ; return mCapabilitiesToDisable.equals ( that.mCapabilitiesToDisable ) ; }
Source:
public void stopAdvertisingSet ( android.bluetooth.le.IAdvertisingSetCallback callback ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; }

Target:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.IAdvertisingSetCallback callback ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , callback ) ; }
Source:
protected void setPropertiesAttributes ( org.kxml2.io.KXmlSerializer serializer , java.lang.String namespace ) throws java.io.IOException { super . setPropertiesAttributes ( serializer , namespace ) ; serializer.attribute ( null , "device" , mDeviceName ) ; serializer.attribute ( null , "flavor" , mFlavorName ) ; serializer.attribute ( null , "project" , mProjectName ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getPropertiesAttributes ( ) { java.util.Map < java.lang.String , java.lang.String > propertiesAttributes = com.google.common.collect.Maps.newLinkedHashMap ( super . getPropertiesAttributes ( ) ) ; propertiesAttributes.put ( "device" , mDeviceName ) ; propertiesAttributes.put ( "flavor" , mFlavorName ) ; propertiesAttributes.put ( "project" , mProjectName ) ; return com.google.common.collect.ImmutableMap.copyOf ( propertiesAttributes ) ; }
Source:
public static boolean hasEntities ( com.google.appengine.api.datastore.Query query ) { com.google.appengine.api.datastore.DatastoreService datastore = com.google.appengine.api.datastore.DatastoreServiceFactory.getDatastoreService ( ) ; com.google.appengine.api.datastore.FetchOptions limitOne = FetchOptions.Builder.withLimit ( 1 ) ; return ( datastore.prepare ( query ) . countEntities ( limitOne ) ) > 0 ; }

Target:
public static java.util.List < java.lang.String > getAllBranches ( ) { com.google.appengine.api.datastore.DatastoreService datastore = com.google.appengine.api.datastore.DatastoreServiceFactory.getDatastoreService ( ) ; com.google.appengine.api.datastore.Query query = new com.google.appengine.api.datastore.Query ( com.android.vts.entity.BranchEntity.KIND ) . setKeysOnly ( ) ; java.util.List < java.lang.String > branches = new java.util.ArrayList < > ( ) ; for ( com.google.appengine.api.datastore.Entity e : datastore.prepare ( query ) . asIterable ( com.android.vts.util.DatastoreHelper.getLargeBatchOptions ( ) ) ) { branches.add ( e.getKey ( ) . getName ( ) ) ; } return branches ; }
Source:
public void testImportEmptyLibrary ( ) throws java.lang.Exception { java.io.File lib = createEmptyLibrary ( ) ; com.android.jack.Options options = new com.android.jack.Options ( ) ; options.addJayceImport ( lib ) ; com.android.jack.TestTools.compileSourceToDex ( options , com.android.jack.TestTools.getJackTestsWithJackFolder ( "library/test001" ) , com.android.jack.TestTools.getDefaultBootclasspathString ( ) , com.android.jack.TestTools.createTempFile ( "library001" , ".zip" ) , true ) ; }

Target:
public void testImportEmptyLibrary ( ) throws java.lang.Exception { java.io.File lib = createEmptyLibrary ( ) ; com.android.jack.Options options = new com.android.jack.Options ( ) ; options.addJayceImport ( lib ) ; com.android.jack.TestTools.compileSourceToDex ( options , com.android.jack.TestTools.getJackTestsWithJackFolder ( "library/test001" ) , com.android.jack.TestTools.getDefaultClasspathString ( ) , com.android.jack.TestTools.createTempFile ( "library001" , ".zip" ) , true ) ; }