auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void handleDaemonConnected ( ) { synchronized ( mLock ) { resetIfReadyAndConnectedLocked ( ) ; } mConnectedSignal.countDown ( ) ; if ( ( mConnectedSignal.getCount ( ) ) != 0 ) { return ; } if ( "" . equals ( android.os.SystemProperties.get ( "vold.encrypt_progress" ) ) ) { copyLocaleFromMountService ( ) ; } mPms.scanAvailableAsecs ( ) ; mAsecsScanned.countDown ( ) ; }

Target:
private void handleDaemonConnected ( ) { initIfReadyAndConnected ( ) ; resetIfReadyAndConnected ( ) ; mConnectedSignal.countDown ( ) ; if ( ( mConnectedSignal.getCount ( ) ) != 0 ) { return ; } if ( "" . equals ( android.os.SystemProperties.get ( "vold.encrypt_progress" ) ) ) { copyLocaleFromMountService ( ) ; } mPms.scanAvailableAsecs ( ) ; mAsecsScanned.countDown ( ) ; }
Source:
private android.net.NetworkStats getNetworkStatsUidDetail ( ) throws android.os.RemoteException { final android.net.NetworkStats uidSnapshot = mNetworkManager.getNetworkStatsUidDetail ( android.net.NetworkStats.UID_ALL ) ; final android.net.NetworkStats tetherSnapshot = getNetworkStatsTethering ( ) ; uidSnapshot.combineAllValues ( tetherSnapshot ) ; uidSnapshot.combineAllValues ( mUidOperations ) ; return uidSnapshot ; }

Target:
private android.net.NetworkStats getNetworkStatsUidDetail ( ) throws android.os.RemoteException { final android.net.NetworkStats uidSnapshot = mNetworkManager.getNetworkStatsUidDetail ( android.net.NetworkStats.UID_ALL ) ; final android.net.NetworkStats tetherSnapshot = getNetworkStatsTethering ( ) ; uidSnapshot.combineAllValues ( tetherSnapshot ) ; final android.telephony.TelephonyManager telephonyManager = ( ( android.telephony.TelephonyManager ) ( mContext.getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; final android.net.NetworkStats vtStats = telephonyManager.getVtDataUsage ( true ) ; if ( vtStats != null ) { uidSnapshot.combineAllValues ( vtStats ) ; } uidSnapshot.combineAllValues ( mUidOperations ) ; return uidSnapshot ; }
Source:
public final void dumpSubclasses ( ) { for ( com.android.tools.perflib.heap.ClassObj theClass : mClassesById.values ( ) ) { int count = theClass.mSubclasses.size ( ) ; if ( count > 0 ) { java.lang.System.out.println ( theClass ) ; theClass.dumpSubclasses ( ) ; } } }

Target:
public final void dumpSubclasses ( ) { for ( java.lang.Object value : mClassesById.getValues ( ) ) { com.android.tools.perflib.heap.ClassObj theClass = ( ( com.android.tools.perflib.heap.ClassObj ) ( value ) ) ; int count = theClass.mSubclasses.size ( ) ; if ( count > 0 ) { java.lang.System.out.println ( theClass ) ; theClass.dumpSubclasses ( ) ; } } }
Source:
public void test_socket_accept_Nonblocking_Bound ( ) throws java.io.IOException { serverChannel.configureBlocking ( false ) ; java.net.ServerSocket gotSocket = serverChannel.socket ( ) ; gotSocket.bind ( null ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException e ) { } serverChannel.close ( ) ; try { gotSocket.accept ( ) ; fail ( "Should throw a ClosedChannelException" ) ; } catch ( java.nio.channels.ClosedChannelException e ) { } }

Target:
public void test_bind_twice ( ) throws java.lang.Exception { java.nio.channels.ServerSocketChannel ssc = java.nio.channels.ServerSocketChannel.open ( ) ; ssc.bind ( null ) ; try { ssc.bind ( null ) ; fail ( ) ; } catch ( java.nio.channels.AlreadyBoundException expected ) { } finally { ssc.close ( ) ; } }
Source:
public void dropAccept ( org.eclipse.swt.dnd.DropTargetEvent event ) { com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( "DEBUG" , "drop accept" ) ; checkDataType ( event ) ; if ( ( event.detail ) != ( org.eclipse.swt.dnd.DND.DROP_NONE ) ) { processDropEvent ( event ) ; } }

Target:
public void dropAccept ( org.eclipse.swt.dnd.DropTargetEvent event ) { com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( "DEBUG" , "drop accept" ) ; if ( ( mLeaveTargetNode ) != null ) { mTargetNode = mLeaveTargetNode ; mFeedback = mLeaveFeedback ; mCurrentView = mLeaveView ; } mLeaveTargetNode = null ; mLeaveFeedback = null ; mLeaveView = null ; checkDataType ( event ) ; if ( ( event.detail ) != ( org.eclipse.swt.dnd.DND.DROP_NONE ) ) { processDropEvent ( event ) ; } else { clearDropInfo ( ) ; } }
Source:
private static java.lang.String networkTypeToString ( int type ) { java.lang.String ret = "unknown" ; switch ( type ) { case DATA_ACCESS_CDMA_IS95A : case DATA_ACCESS_CDMA_IS95B : ret = "CDMA" ; break ; case DATA_ACCESS_CDMA_1xRTT : ret = "CDMA - 1xRTT" ; break ; case DATA_ACCESS_CDMA_EvDo_0 : ret = "CDMA - EvDo rev. 0" ; break ; case DATA_ACCESS_CDMA_EvDo_A : ret = "CDMA - EvDo rev. A" ; break ; default : if ( DBG ) { android.util.Log.e ( com.android.internal.telephony.cdma.CdmaServiceStateTracker.LOG_TAG , "Wrong network. Can not return a string." ) ; } break ; } return ret ; }

Target:
private static java.lang.String networkTypeToString ( int type ) { java.lang.String ret = "unknown" ; switch ( type ) { case DATA_ACCESS_CDMA_IS95A : case DATA_ACCESS_CDMA_IS95B : ret = "CDMA" ; break ; case DATA_ACCESS_CDMA_1xRTT : ret = "CDMA - 1xRTT" ; break ; case DATA_ACCESS_CDMA_EvDo_0 : ret = "CDMA - EvDo rev. 0" ; break ; case DATA_ACCESS_CDMA_EvDo_A : ret = "CDMA - EvDo rev. A" ; break ; case DATA_ACCESS_CDMA_EvDo_B : ret = "CDMA - EvDo rev. B" ; break ; default : if ( DBG ) { android.util.Log.e ( com.android.internal.telephony.cdma.CdmaServiceStateTracker.LOG_TAG , "Wrong network. Can not return a string." ) ; } break ; } return ret ; }
Source:
public void testGetMergedDocument ( ) { com.android.manifmerger.XmlDocument xmlDocument = new com.android.manifmerger.XmlDocument ( new com.android.utils.PositionXmlParser ( ) , mSourceLocation , mElement ) ; com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . setMergedDocument ( xmlDocument ) . build ( ) ; assertTrue ( mergingReport.getMergedDocument ( ) . isPresent ( ) ) ; assertEquals ( xmlDocument , mergingReport.getMergedDocument ( ) . get ( ) ) ; }

Target:
public void testGetMergedDocument ( ) { com.android.manifmerger.XmlDocument xmlDocument = new com.android.manifmerger.XmlDocument ( new com.android.utils.PositionXmlParser ( ) , mSourceLocation , mKeyResolver , mElement ) ; com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . setMergedDocument ( xmlDocument ) . build ( ) ; assertTrue ( mergingReport.getMergedDocument ( ) . isPresent ( ) ) ; assertEquals ( xmlDocument , mergingReport.getMergedDocument ( ) . get ( ) ) ; }
Source:
void regularScanTimeout ( ) { for ( com.android.bluetooth.gatt.ScanClient client : mRegularScanClients ) { if ( ( ! ( isOpportunisticScanClient ( client ) ) ) && ( ! ( isFirstMatchScanClient ( client ) ) ) ) { logd ( ( "clientIf set to scan opportunisticly: " + ( client.clientIf ) ) ) ; setOpportunisticScanClient ( client ) ; client.stats.setScanTimeout ( ) ; } } configureRegularScanParams ( ) ; if ( ( numRegularScanClients ( ) ) == 0 ) { logd ( "stop scan" ) ; gattClientScanNative ( false ) ; } }

Target:
void regularScanTimeout ( ) { for ( com.android.bluetooth.gatt.ScanClient client : mRegularScanClients ) { if ( ! ( isExemptFromScanDowngrade ( client ) ) ) { android.util.Log.w ( com.android.bluetooth.gatt.ScanManager.TAG , ( ( "Moving scan client to opportunistic (clientIf " + ( client.clientIf ) ) + ")" ) ) ; setOpportunisticScanClient ( client ) ; client.stats.setScanTimeout ( ) ; } } configureRegularScanParams ( ) ; if ( ( numRegularScanClients ( ) ) == 0 ) { logd ( "stop scan" ) ; gattClientScanNative ( false ) ; } }
Source:
protected void onResume ( ) { super . onResume ( ) ; setupTest ( getIntent ( ) ) ; }

Target:
public android.view.WindowInsets onApplyWindowInsets ( android.view.View v , android.view.WindowInsets in ) { if ( in.isRound ( ) ) { mOutsets = new android.graphics.Rect ( in.getSystemWindowInsetLeft ( ) , in.getSystemWindowInsetTop ( ) , in.getSystemWindowInsetRight ( ) , in.getSystemWindowInsetBottom ( ) ) ; } setupTest ( getIntent ( ) ) ; return in ; }
Source:
public void adjustVolume ( int direction , int flags ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { if ( mUseMasterVolume ) { service.adjustMasterVolume ( direction , flags , mApplicationContext.getOpPackageName ( ) ) ; } else { android.media.session.MediaSessionLegacyHelper helper = android.media.session.MediaSessionLegacyHelper.getHelper ( mApplicationContext ) ; helper.sendAdjustVolumeBy ( android.media.AudioManager.USE_DEFAULT_STREAM_TYPE , direction , flags ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in adjustVolume" , e ) ; } }

Target:
public void adjustVolume ( int direction , int flags ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { if ( mUseMasterVolume ) { service.adjustMasterVolume ( direction , flags , getContext ( ) . getOpPackageName ( ) ) ; } else { android.media.session.MediaSessionLegacyHelper helper = android.media.session.MediaSessionLegacyHelper.getHelper ( getContext ( ) ) ; helper.sendAdjustVolumeBy ( android.media.AudioManager.USE_DEFAULT_STREAM_TYPE , direction , flags ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in adjustVolume" , e ) ; } }
Source:
public java.lang.invoke.MethodHandle asType ( java.lang.invoke.MethodType newType ) { if ( newType == ( type ) ) { return this ; } java.lang.invoke.MethodHandle atc = asTypeCached ( newType ) ; if ( atc != null ) { return atc ; } return asTypeUncached ( newType ) ; }

Target:
public java.lang.invoke.MethodHandle asType ( java.lang.invoke.MethodType newType ) { if ( newType == ( type ) ) { return this ; } if ( ! ( type.isConvertibleTo ( newType ) ) ) { throw new java.lang.invoke.WrongMethodTypeException ( ( ( ( "cannot convert " + ( this ) ) + " to " ) + newType ) ) ; } java.lang.invoke.MethodHandle mh = duplicate ( ) ; mh.nominalType = newType ; return mh ; }
Source:
public int compare ( float [ ] left , float [ ] right ) { int minLength = java.lang.Math.min ( left.length , right.length ) ; for ( int i = 0 ; i < minLength ; i ++ ) { int result = com.google.common.primitives.Floats.compare ( left [ i ] , right [ i ] ) ; if ( result != 0 ) { return result ; } } return ( left.length ) - ( right.length ) ; }

Target:
public int compare ( float [ ] left , float [ ] right ) { int minLength = java.lang.Math.min ( left.length , right.length ) ; for ( int i = 0 ; i < minLength ; i ++ ) { int result = java.lang.Float.compare ( left [ i ] , right [ i ] ) ; if ( result != 0 ) { return result ; } } return ( left.length ) - ( right.length ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( ( getClass ( ) ) != ( obj.getClass ( ) ) ) { return false ; } android.support.v8.renderscript.BaseObj b = ( ( android.support.v8.renderscript.BaseObj ) ( obj ) ) ; return ( mID ) == ( b.mID ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( ( getClass ( ) ) != ( obj.getClass ( ) ) ) { return false ; } if ( mRS.isNative ) { return ( ( android.support.v8.renderscript.RenderScriptThunker ) ( mRS ) ) . equals ( ( ( java.lang.Object ) ( this ) ) , obj ) ; } android.support.v8.renderscript.BaseObj b = ( ( android.support.v8.renderscript.BaseObj ) ( obj ) ) ; return ( mID ) == ( b.mID ) ; }
Source:
public void testDebug ( ) { com.android.builder.BuildType type = new com.android.builder.BuildType ( "debug" ) ; assertTrue ( type.isDebuggable ( ) ) ; assertTrue ( type.isDebugJniBuild ( ) ) ; assertNotNull ( type.getKeystore ( ) ) ; assertTrue ( type.getKeystore ( ) . isSigningReady ( ) ) ; }

Target:
public void testDebug ( ) { com.android.builder.BuildType type = new com.android.builder.BuildType ( "debug" ) ; assertTrue ( type.isDebuggable ( ) ) ; assertTrue ( type.isDebugJniBuild ( ) ) ; assertNotNull ( type.getSigningConfig ( ) ) ; assertTrue ( type.getSigningConfig ( ) . isSigningReady ( ) ) ; }
Source:
private void automateInstallClick ( ) { mDevice.wait ( android.support.test.uiautomator.Until.hasObject ( com.android.cts.packageinstaller.ManualPackageInstallTest.INSTALL_BUTTON_SELECTOR ) , com.android.cts.packageinstaller.ManualPackageInstallTest.AUTOMATOR_WAIT_TIMEOUT ) ; android.support.test.uiautomator.UiObject2 button = mDevice.findObject ( com.android.cts.packageinstaller.ManualPackageInstallTest.INSTALL_BUTTON_SELECTOR ) ; assertNotNull ( "Install button not found" , button ) ; button.click ( ) ; }

Target:
private void automateInstallClick ( ) { if ( null == ( com.android.cts.packageinstaller.ManualPackageInstallTest.INSTALL_BUTTON_SELECTOR ) ) com.android.cts.packageinstaller.ManualPackageInstallTest.INSTALL_BUTTON_SELECTOR = android.support.test.uiautomator.By.clazz ( android.widget.Button.class . getName ( ) ) . res ( "com.android.packageinstaller:id/ok_button" ) . pkg ( instllerPkgName ) ; mDevice.wait ( android.support.test.uiautomator.Until.hasObject ( com.android.cts.packageinstaller.ManualPackageInstallTest.INSTALL_BUTTON_SELECTOR ) , com.android.cts.packageinstaller.ManualPackageInstallTest.AUTOMATOR_WAIT_TIMEOUT ) ; android.support.test.uiautomator.UiObject2 button = mDevice.findObject ( com.android.cts.packageinstaller.ManualPackageInstallTest.INSTALL_BUTTON_SELECTOR ) ; assertNotNull ( "Install button not found" , button ) ; button.click ( ) ; }
Source:
public final int getInt ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.INT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } int result = this . block.peekInt ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }

Target:
public final int getInt ( ) { checkNotFreed ( ) ; int newPosition = ( position ) + ( libcore.io.SizeOf.INT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } int result = this . block.peekInt ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }
Source:
public void buildConfigField ( @ com.android.annotations.NonNull java.lang.String type , @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull java.lang.String value ) { com.android.builder.model.ClassField alreadyPresent = getBuildConfigFields ( ) . get ( name ) ; if ( alreadyPresent != null ) { logger.info ( "BuildType(${getName()}): buildConfigField '$name' value is being replaced: ${alreadyPresent.value} -> $value" ) ; } addBuildConfigField ( com.android.builder.core.AndroidBuilder.createClassField ( type , name , value ) ) ; }

Target:
public void buildConfigField ( @ com.android.annotations.NonNull java.lang.String type , @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull java.lang.String value ) { com.android.builder.model.ClassField alreadyPresent = getBuildConfigFields ( ) . get ( name ) ; if ( alreadyPresent != null ) { logger.info ( "BuildType({}): buildConfigField '{}' value is being replaced: -> {}" , getName ( ) , name , alreadyPresent.getValue ( ) , value ) ; } addBuildConfigField ( com.android.builder.core.AndroidBuilder.createClassField ( type , name , value ) ) ; }
Source:
public final float getFloat ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.FLOAT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } float result = java.lang.Float.intBitsToFloat ( this . block.peekInt ( ( ( offset ) + ( position ) ) , order ) ) ; position = newPosition ; return result ; }

Target:
public final float getFloat ( ) { checkNotFreed ( ) ; int newPosition = ( position ) + ( libcore.io.SizeOf.FLOAT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } float result = java.lang.Float.intBitsToFloat ( this . block.peekInt ( ( ( offset ) + ( position ) ) , order ) ) ; position = newPosition ; return result ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , long [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 8 ) ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , byte [ ] data ) { validateIsInt8 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_8 , data.length ) ; }
Source:
public void testAesCbcHmacSha1Tcp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA1 , android.net.cts.IpSecManagerTest.getKey ( 160 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }

Target:
public void testAuthTcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , auth , false , 1 , true ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; getActivity ( ) ; }

Target:
public void openLink_TargetViewNotSpanned ( ) { expectedException.expect ( android.support.test.espresso.PerformException.class ) ; expectedException.expectCause ( new org.hamcrest.CustomTypeSafeMatcher < java.lang.Throwable > ( "message contains has-links=false" ) { @ java.lang.Override protected boolean matchesSafely ( java.lang.Throwable throwable ) { return throwable.getMessage ( ) . contains ( "has-links=false" ) ; } } ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.send_title ) ) . perform ( android.support.test.espresso.action.ViewActions.scrollTo ( ) , android.support.test.espresso.action.ViewActions.openLinkWithText ( "altavista.com" ) ) ; }
Source:
private boolean setCellBroadcastRange ( android.telephony.SmsManager manager , boolean enable , int type , int start , int end ) { if ( enable ) { return manager.enableCellBroadcastRange ( start , end , type ) ; } else { return manager.disableCellBroadcastRange ( start , end , type ) ; } }

Target:
private void setCellBroadcastRange ( android.telephony.SmsManager manager , boolean enable , java.util.List < com.android.cellbroadcastreceiver.CellBroadcastChannelManager.CellBroadcastChannelRange > ranges ) { if ( ranges != null ) { for ( com.android.cellbroadcastreceiver.CellBroadcastChannelManager.CellBroadcastChannelRange range : ranges ) { if ( enable ) { manager.enableCellBroadcastRange ( range.mStartId , range.mEndId , range.mRat ) ; } else { manager.disableCellBroadcastRange ( range.mStartId , range.mEndId , range.mRat ) ; } } } }
Source:
public static android.graphics.Movie decodeStream ( java.io.InputStream is ) { if ( is == null ) { return null ; } if ( is instanceof android.content.res.AssetManager.AssetInputStream ) { final int asset = ( ( android.content.res.AssetManager.AssetInputStream ) ( is ) ) . getAssetInt ( ) ; return android.graphics.Movie.nativeDecodeAsset ( asset ) ; } return android.graphics.Movie.nativeDecodeStream ( is ) ; }

Target:
public static android.graphics.Movie decodeStream ( java.io.InputStream is ) { if ( is == null ) { return null ; } if ( is instanceof android.content.res.AssetManager.AssetInputStream ) { final long asset = ( ( android.content.res.AssetManager.AssetInputStream ) ( is ) ) . getNativeAsset ( ) ; return android.graphics.Movie.nativeDecodeAsset ( asset ) ; } return android.graphics.Movie.nativeDecodeStream ( is ) ; }
Source:
public synchronized java.lang.reflect.TypeVariable < java.lang.Class < T > > [ ] getTypeParameters ( ) { java.lang.String annotationSignature = libcore.reflect.AnnotationAccess.getSignature ( this ) ; if ( annotationSignature == null ) { return libcore.util.EmptyArray.TYPE_VARIABLE ; } libcore.reflect.GenericSignatureParser parser = new libcore.reflect.GenericSignatureParser ( getClassLoader ( ) ) ; parser.parseForClass ( this , annotationSignature ) ; return parser.formalTypeParameters ; }

Target:
public synchronized java.lang.reflect.TypeVariable < java.lang.Class < T > > [ ] getTypeParameters ( ) { java.lang.String annotationSignature = getSignatureAttribute ( ) ; if ( annotationSignature == null ) { return libcore.util.EmptyArray.TYPE_VARIABLE ; } libcore.reflect.GenericSignatureParser parser = new libcore.reflect.GenericSignatureParser ( getClassLoader ( ) ) ; parser.parseForClass ( this , annotationSignature ) ; return parser.formalTypeParameters ; }
Source:
public java.lang.Long run ( ) { long nmt ; if ( isUserNode ( ) ) { nmt = java.util.prefs.FileSystemPreferences.userRootModFile.lastModified ( ) ; java.util.prefs.FileSystemPreferences.isUserRootModified = ( java.util.prefs.FileSystemPreferences.userRootModTime ) == nmt ; } else { nmt = java.util.prefs.FileSystemPreferences.systemRootModFile.lastModified ( ) ; java.util.prefs.FileSystemPreferences.isSystemRootModified = ( java.util.prefs.FileSystemPreferences.systemRootModTime ) == nmt ; } return new java.lang.Long ( nmt ) ; }

Target:
public java.lang.Void run ( ) { if ( isUserNode ( ) ) { java.util.prefs.FileSystemPreferences.userRootModTime = ( newModTime.longValue ( ) ) + 1000 ; java.util.prefs.FileSystemPreferences.userRootModFile.setLastModified ( java.util.prefs.FileSystemPreferences.userRootModTime ) ; } else { java.util.prefs.FileSystemPreferences.systemRootModTime = ( newModTime.longValue ( ) ) + 1000 ; java.util.prefs.FileSystemPreferences.systemRootModFile.setLastModified ( java.util.prefs.FileSystemPreferences.systemRootModTime ) ; } return null ; }
Source:
public void removeReferences ( ) { this . mRuimPhoneBookInterfaceManager = null ; this . mRuimSmsInterfaceManager = null ; this . mSMS = null ; this . mSubInfo = null ; this . mRuimRecords = null ; this . mIccFileHandler = null ; this . mRuimCard = null ; this . mDataConnection = null ; this . mCT = null ; this . mSST = null ; this . mEriManager = null ; }

Target:
public void removeReferences ( ) { this . mRuimPhoneBookInterfaceManager = null ; this . mRuimSmsInterfaceManager = null ; this . mSMS = null ; this . mSubInfo = null ; this . mRuimRecords = null ; this . mIccFileHandler = null ; this . mRuimCard = null ; this . mDataConnection = null ; this . mCT = null ; this . mSST = null ; this . mEriManager = null ; this . mStkService = null ; }
Source:
public void cdmaPrlChanged ( int indicationType , int var2 ) { }

Target:
public void cdmaPrlChanged ( int indicationType , int version ) { mRil.processIndication ( indicationType ) ; int [ ] response = new int [ 1 ] ; response [ 0 ] = version ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOl_CDMA_PRL_CHANGED , response ) ; mRil.mCdmaPrlChangedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; }
Source:
static boolean containsKeyImpl ( java.util.Map < ? , ? > map , @ javax.annotation.Nullable java.lang.Object key ) { for ( java.util.Map.Entry < ? , ? > entry : map.entrySet ( ) ) { if ( com.google.common.base.Objects.equal ( entry.getKey ( ) , key ) ) { return true ; } } return false ; }

Target:
public boolean containsKey ( @ javax.annotation.Nullable java.lang.Object key ) { return filteredDelegate.containsKey ( key ) ; }
Source:
public void callSessionMergeComplete ( com.android.ims.internal.ImsCallSession newSession ) { logi ( ( "callSessionMergeComplete :: newSession =" + newSession ) ) ; if ( ! ( isMergeHost ( ) ) ) { mMergeHost.processMergeComplete ( ) ; } else { if ( newSession != null ) { mTransientConferenceSession = ( doesCallSessionExistsInMerge ( newSession ) ) ? null : newSession ; } processMergeComplete ( ) ; } }

Target:
public void callSessionResumeReceived ( android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsCallProfile profile ) { logi ( ( ( ( "callSessionResumeReceived :: session=" + session ) + "profile=" ) + profile ) ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( "callSessionResumeReceived :: not supported for transient conference session=" + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; setCallProfile ( profile ) ; } if ( listener != null ) { try { listener.onCallResumeReceived ( this ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionResumeReceived :: " , t ) ; } } }
Source:
native void socketCreate ( boolean isServer ) throws java.io.IOException ;

Target:
void socketCreate ( boolean isStream ) throws java.io.IOException { fd.setInt$ ( libcore.io.IoBridge.socket ( android.system.OsConstants.AF_INET6 , ( isStream ? android.system.OsConstants.SOCK_STREAM : android.system.OsConstants.SOCK_DGRAM ) , 0 ) . getInt$ ( ) ) ; if ( ( serverSocket ) != null ) { libcore.io.IoUtils.setBlocking ( fd , false ) ; libcore.io.IoBridge.setSocketOption ( fd , java.net.SocketOptions.SO_REUSEADDR , true ) ; } }
Source:
public void dispose ( ) { mCi.unSetOnSignalStrengthUpdate ( this ) ; mUiccController.unregisterForIccChanged ( this ) ; mCi.unregisterForCellInfoList ( this ) ; mCi.unregisterForPhysicalChannelConfiguration ( this ) ; mSubscriptionManager.removeOnSubscriptionsChangedListener ( mOnSubscriptionsChangedListener ) ; mCi.unregisterForImsNetworkStateChanged ( this ) ; mPhone.getCarrierActionAgent ( ) . unregisterForCarrierAction ( this , com.android.internal.telephony.CarrierActionAgent.CARRIER_ACTION_SET_RADIO_ENABLED ) ; }

Target:
public void dispose ( ) { mCi.unSetOnSignalStrengthUpdate ( this ) ; mUiccController.unregisterForIccChanged ( this ) ; mCi.unregisterForCellInfoList ( this ) ; mCi.unregisterForPhysicalChannelConfiguration ( this ) ; mSubscriptionManager.removeOnSubscriptionsChangedListener ( mOnSubscriptionsChangedListener ) ; mHandlerThread.quit ( ) ; mCi.unregisterForImsNetworkStateChanged ( this ) ; mPhone.getCarrierActionAgent ( ) . unregisterForCarrierAction ( this , com.android.internal.telephony.CarrierActionAgent.CARRIER_ACTION_SET_RADIO_ENABLED ) ; }
Source:
public void testAssertNoMultilineButtons ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.wrap ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) ; try { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) ) . check ( android.support.test.espresso.assertion.LayoutAssertions.noMultilineButtons ( ) ) ; } catch ( junit.framework.AssertionFailedError expected ) { return ; } fail ( "Multiline button is not detected" ) ; }

Target:
public void assertNoOverlaps ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.length ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) ; expectedException.expect ( junit.framework.AssertionFailedError.class ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) ) . check ( android.support.test.espresso.assertion.LayoutAssertions.noOverlaps ( ) ) ; }
Source:
public java.lang.String getUrl ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.String ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.String > ( ) { @ java.lang.Override public java.lang.String call ( ) { return getUrl ( ) ; } } ) ; return ret ; } java.lang.String url = mAwContents.getUrl ( ) ; if ( ( url == null ) || ( url.trim ( ) . isEmpty ( ) ) ) return null ; return url ; }

Target:
public WebView.HitTestResult getHitTestResult ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.webkit.WebView.HitTestResult ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.webkit.WebView.HitTestResult > ( ) { @ java.lang.Override public WebView.HitTestResult call ( ) { return getHitTestResult ( ) ; } } ) ; return ret ; } org.chromium.android_webview.AwContents.HitTestData data = mAwContents.getLastHitTestResult ( ) ; mHitTestResult.setType ( data.hitTestResultType ) ; mHitTestResult.setExtra ( data.hitTestResultExtraData ) ; return mHitTestResult ; }
Source:
private com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ ] findViewLayoutAttributes ( java.lang.String viewFqcn , java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor > knownViews ) { for ( com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor viewDesc : knownViews ) { if ( viewFqcn.equals ( viewDesc.getFullClassName ( ) ) ) { return viewDesc.getLayoutAttributes ( ) ; } } return null ; }

Target:
private com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ ] findViewLayoutAttributes ( java.lang.String viewFqcn ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor viewDesc = findDescriptorByClass ( viewFqcn ) ; if ( viewDesc != null ) { return viewDesc.getLayoutAttributes ( ) ; } return null ; }
Source:
public final int getCompositeSize ( ) { java.util.HashSet < com.android.tools.perflib.heap.Instance > set = new java.util.HashSet < com.android.tools.perflib.heap.Instance > ( ) ; visit ( set , null ) ; int size = 0 ; for ( com.android.tools.perflib.heap.Instance instance : set ) { size += instance.getSize ( ) ; } return size ; }

Target:
public final int getCompositeSize ( ) { com.android.tools.perflib.heap.Instance.CollectingVisitor visitor = new com.android.tools.perflib.heap.Instance.CollectingVisitor ( ) ; this . accept ( visitor ) ; int size = 0 ; for ( com.android.tools.perflib.heap.Instance instance : visitor.getVisited ( ) ) { size += instance.getSize ( ) ; } return size ; }
Source:
public void testSocket_NonBlock_BasicStatusAfterConnect ( ) throws java.io.IOException { final java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; dc.connect ( datagramSocket1Address ) ; dc.configureBlocking ( false ) ; 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 void validatePolicyWithInvalidPortStringInProtoPortMap ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; byte [ ] rawPortBytes = new byte [ ( android.net.wifi.hotspot2.pps.PolicyTest.MAX_PORT_STRING_BYTES ) + 1 ] ; policy.requiredProtoPortMap.put ( 324 , new java.lang.String ( rawPortBytes , java.nio.charset.StandardCharsets.UTF_8 ) ) ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }

Target:
public void validatePolicyWithInvalidPortStringInProtoPortMap ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; byte [ ] rawPortBytes = new byte [ ( android.net.wifi.hotspot2.pps.PolicyTest.MAX_PORT_STRING_BYTES ) + 1 ] ; policy.getRequiredProtoPortMap ( ) . put ( 324 , new java.lang.String ( rawPortBytes , java.nio.charset.StandardCharsets.UTF_8 ) ) ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }
Source:
public void testOnSetUpCoverageDisabled ( ) throws java.lang.Exception { doReturn ( "UnknowFlaver" ) . when ( mDevice ) . getBuildFlavor ( ) ; doReturn ( "None" ) . when ( mDevice ) . getProperty ( GCOV_PROPERTY ) ; mPreparer.setUp ( mDevice , mBuildInfo ) ; verify ( mBuildInfo , never ( ) ) . setFile ( anyObject ( ) , anyObject ( ) , anyObject ( ) ) ; }

Target:
public void testOnSetUpSancovEnabled ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( "walleye_asan_coverage-userdebug" ) . when ( mDevice ) . getBuildFlavor ( ) ; createTestFile ( SYMBOLS_FILE_NAME ) ; createTestFile ( BUILD_INFO_ARTIFACT ) ; mPreparer.setUp ( mDevice , mBuildInfo ) ; org.mockito.Mockito.verify ( mBuildInfo , org.mockito.Mockito.times ( 1 ) ) . setFile ( org.mockito.ArgumentMatchers.eq ( com.android.tradefed.targetprep.VtsCoveragePreparer.getSancovResourceDirKey ( mDevice ) ) , org.mockito.ArgumentMatchers.eq ( mDeviceInfoPath ) , org.mockito.ArgumentMatchers.eq ( "build_id" ) ) ; }
Source:
public void fine ( java.lang.String msg ) { if ( ( java.util.logging.Level.FINE.intValue ( ) ) < ( levelValue ) ) { return ; } log ( java.util.logging.Level.FINE , msg ) ; }

Target:
public void throwing ( java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.Throwable thrown ) { if ( ! ( isLoggable ( java.util.logging.Level.FINER ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( java.util.logging.Level.FINER , "THROW" ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr ) ; }
Source:
public final int getOutputSize ( int inputLen ) { if ( ( ! ( initialized ) ) && ( ! ( ( this ) instanceof javax.crypto.NullCipher ) ) ) { throw new java.lang.IllegalStateException ( "Cipher not initialized" ) ; } if ( inputLen < 0 ) { throw new java.lang.IllegalArgumentException ( ( "Input size must be equal " + "to or greater than zero" ) ) ; } chooseFirstProvider ( ) ; return spi.engineGetOutputSize ( inputLen ) ; }

Target:
public final int getOutputSize ( int inputLen ) { if ( ( ! ( initialized ) ) && ( ! ( ( this ) instanceof javax.crypto.NullCipher ) ) ) { throw new java.lang.IllegalStateException ( "Cipher not initialized" ) ; } if ( inputLen < 0 ) { throw new java.lang.IllegalArgumentException ( ( "Input size must be equal " + "to or greater than zero" ) ) ; } updateProviderIfNeeded ( ) ; return spi.engineGetOutputSize ( inputLen ) ; }
Source:
private boolean initInterface ( ) { try { mIface = java.net.NetworkInterface.getByName ( mIfaceName ) ; mHwAddr = mIface.getHardwareAddress ( ) ; mInterfaceBroadcastAddr = new android.system.PacketSocketAddress ( mIface.getIndex ( ) , android.net.dhcp.DhcpPacket.DhcpPacket.ETHER_BROADCAST ) ; return true ; } catch ( java.net.SocketException | java.lang.NullPointerException e ) { android.util.Log.e ( android.net.dhcp.DhcpClient.TAG , ( "Can't determine ifindex or MAC address for " + ( mIfaceName ) ) , e ) ; return false ; } }

Target:
private boolean initInterface ( ) { if ( ( mIface ) == null ) mIface = android.net.util.InterfaceParams.getByName ( mIfaceName ) ; if ( ( mIface ) == null ) { android.util.Log.e ( android.net.dhcp.DhcpClient.TAG , ( "Can't determine InterfaceParams for " + ( mIfaceName ) ) ) ; return false ; } mHwAddr = mIface.macAddr.toByteArray ( ) ; mInterfaceBroadcastAddr = new android.system.PacketSocketAddress ( mIface.index , android.net.dhcp.DhcpPacket.DhcpPacket.ETHER_BROADCAST ) ; return true ; }
Source:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , short [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFrom" ) ; validateIsInt16 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , float [ ] d ) { validateIsFloat32 ( ) ; copy1DRangeFromUnchecked ( off , count , d , Element.DataType.FLOAT_32 , d.length ) ; }
Source:
public java.lang.String getName ( ) { if ( ( dexFieldIndex ) == ( - 1 ) ) { if ( ! ( declaringClass.isProxy ( ) ) ) { throw new java.lang.AssertionError ( ) ; } return "throws" ; } com.android.dex.Dex dex = declaringClass.getDex ( ) ; int nameIndex = dex.nameIndexFromFieldIndex ( dexFieldIndex ) ; return declaringClass.getDexCacheString ( dex , nameIndex ) ; }

Target:
public java.lang.String getName ( ) { if ( ( dexFieldIndex ) == ( - 1 ) ) { if ( ! ( declaringClass.isProxy ( ) ) ) { throw new java.lang.AssertionError ( ) ; } return "throws" ; } return getNameInternal ( ) ; }
Source:
private void setupMocksForRoamSequence ( java.lang.String roamBssid ) throws java.lang.Exception { org.mockito.Mockito.doAnswer ( new android.app.test.MockAnswerUtil.AnswerWithArguments ( ) { public android.hardware.wifi.supplicant.V1_0.SupplicantStatus answer ( ) throws android.os.RemoteException { return mStatusSuccess ; } } ) . when ( mISupplicantStaIfaceMock ) . reassociate ( ) ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.setBssid ( org.mockito.Matchers.eq ( roamBssid ) ) ) . thenReturn ( true ) ; }

Target:
public void answer ( ISupplicantStaIface.listNetworksCallback cb ) { cb.onValues ( mStatusSuccess , new java.util.ArrayList < > ( com.android.server.wifi.SupplicantStaIfaceHalTest.NETWORK_ID_TO_SSID.keySet ( ) ) ) ; }
Source:
public void visitConstantElementValue ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Annotation annotation , proguard.classfile.visitor.ConstantElementValue constantElementValue ) { println ( ( ( ( ( ( ( visitorInfo ( constantElementValue ) ) + " Constant element value [" ) + ( ( constantElementValue.u2elementNameIndex ) == 0 ? "(default)" : clazz.getString ( constantElementValue.u2elementNameIndex ) ) ) + " '" ) + ( constantElementValue.u1tag ) ) + "']" ) ) ; indent ( ) ; clazz.constantPoolEntryAccept ( constantElementValue.u2constantValueIndex , this ) ; outdent ( ) ; }

Target:
public void visitConstantElementValue ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Annotation annotation , proguard.classfile.visitor.ConstantElementValue constantElementValue ) { println ( ( ( ( ( ( ( visitorInfo ( constantElementValue ) ) + " Constant element value [" ) + ( ( constantElementValue.u2elementNameIndex ) == 0 ? "(default)" : constantElementValue.getMethodName ( clazz ) ) ) + " '" ) + ( constantElementValue.u1tag ) ) + "']" ) ) ; indent ( ) ; clazz.constantPoolEntryAccept ( constantElementValue.u2constantValueIndex , this ) ; outdent ( ) ; }
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 testInterfaceCountersUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV4_LOOPBACK , crypt , auth , null , false , 1000 , false ) ; }
Source:
public void setDescription ( final java.lang.String description ) { syncExec ( mLabel , new java.lang.Runnable ( ) { public void run ( ) { mLabel.setText ( description ) ; } } ) ; synchronized ( mLogText ) { mLogText.append ( "** " ) . append ( description ) ; } }

Target:
public void logVerbose ( java.lang.String log ) { if ( acceptLog ( log ) ) { if ( ( mLog ) != null ) { mLog.printf ( " %1$s" , log ) ; } else { synchronized ( mLogText ) { mLogText.append ( " " ) . append ( log ) ; } } } }
Source:
public void onTabChanged ( java.lang.String tabId ) { final int slotId = java.lang.Integer.parseInt ( tabId ) ; mSir = mSelectableSubInfos.get ( slotId ) ; updatePhoneInfos ( ) ; mTelephonyManager.listen ( mPhoneStateListener , ( ( ( android.telephony.PhoneStateListener.LISTEN_DATA_CONNECTION_STATE ) | ( android.telephony.PhoneStateListener.LISTEN_SIGNAL_STRENGTHS ) ) | ( android.telephony.PhoneStateListener.LISTEN_SERVICE_STATE ) ) ) ; updateDataState ( ) ; updateNetworkType ( ) ; updatePreference ( ) ; }

Target:
public void onTabChanged ( java.lang.String tabId ) { doTabChanged ( tabId ) ; }
Source:
private java.lang.String parseLicense ( org.w3c.dom.Node packageNode , java.util.Map < java.lang.String , java.lang.String > licenses ) { org.w3c.dom.Node usesLicense = com.android.sdklib.internal.repository.packages.PackageParserUtils.getFirstChild ( packageNode , SdkRepoConstants.NODE_USES_LICENSE ) ; if ( usesLicense != null ) { org.w3c.dom.Node ref = usesLicense.getAttributes ( ) . getNamedItem ( SdkRepoConstants.ATTR_REF ) ; if ( ref != null ) { java.lang.String licenseRef = ref.getNodeValue ( ) ; return licenses.get ( licenseRef ) ; } } return null ; }

Target:
private java.lang.String parseLicense ( org.w3c.dom.Node packageNode , java.util.Map < java.lang.String , java.lang.String > licenses ) { org.w3c.dom.Node usesLicense = com.android.sdklib.internal.repository.packages.PackageParserUtils.findChildElement ( packageNode , SdkRepoConstants.NODE_USES_LICENSE ) ; if ( usesLicense != null ) { org.w3c.dom.Node ref = usesLicense.getAttributes ( ) . getNamedItem ( SdkRepoConstants.ATTR_REF ) ; if ( ref != null ) { java.lang.String licenseRef = ref.getNodeValue ( ) ; return licenses.get ( licenseRef ) ; } } return null ; }
Source:
public void run ( final com.android.cts.TestDevice device , final com.android.cts.Test test ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException { mTestStop = false ; mCurrentTestCase = null ; mCurrentSubSuite = null ; mCurrentTestCase = test.getTestCase ( ) ; mCurrentTestCase.run ( device , test ) ; }

Target:
public void run ( final com.android.cts.TestDevice device , final com.android.cts.Test test , android.annotation.cts.Profile profile ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException { mTestStop = false ; mCurrentTestCase = null ; mCurrentSubSuite = null ; mCurrentTestCase = test.getTestCase ( ) ; mCurrentTestCase.run ( device , test , profile ) ; }
Source:
public void visitClass ( com.intellij.psi.PsiClass psiClass ) { if ( ! ( isEndpointClass ( psiClass ) ) ) { return ; } com.intellij.psi.PsiMethod [ ] allConstructors = psiClass.getConstructors ( ) ; if ( ( allConstructors.length ) == 0 ) { return ; } for ( com.intellij.psi.PsiMethod aConstructor : allConstructors ) { if ( isPublicNullaryConstructor ( aConstructor ) ) { return ; } } holder.registerProblem ( psiClass , "Each class that is within an API must have a public nullary constructor." , new com.google.gct.idea.appengine.validation.ConstructorInspection.MyQuickFix ( psiClass ) ) ; }

Target:
public void visitClass ( com.intellij.psi.PsiClass psiClass ) { if ( ! ( com.google.gct.idea.appengine.util.EndpointUtilities.isEndpointClass ( psiClass ) ) ) { return ; } com.intellij.psi.PsiMethod [ ] allConstructors = psiClass.getConstructors ( ) ; if ( ( allConstructors.length ) == 0 ) { return ; } for ( com.intellij.psi.PsiMethod aConstructor : allConstructors ) { if ( com.google.gct.idea.appengine.util.EndpointUtilities.isPublicNullaryConstructor ( aConstructor ) ) { return ; } } holder.registerProblem ( psiClass , "Each class that is within an API must have a public nullary constructor." , new com.google.gct.idea.appengine.validation.ConstructorInspection.MyQuickFix ( psiClass ) ) ; }
Source:
public int findAll ( java.lang.String find ) { mFindIsUp = true ; int result = nativeFindAll ( find.toLowerCase ( ) , find.toUpperCase ( ) ) ; invalidate ( ) ; return result ; }

Target:
public int findAll ( java.lang.String find ) { if ( 0 == ( mNativeClass ) ) return 0 ; if ( ( mFindIsUp ) == false ) { recordNewContentSize ( mContentWidth , ( ( mContentHeight ) + ( mFindHeight ) ) , false ) ; mFindIsUp = true ; } int result = nativeFindAll ( find.toLowerCase ( ) , find.toUpperCase ( ) ) ; invalidate ( ) ; return result ; }
Source:
public void initialize ( java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException { if ( params instanceof javax.crypto.spec.DHParameterSpec ) { javax.crypto.spec.DHParameterSpec dhParams = ( ( javax.crypto.spec.DHParameterSpec ) ( params ) ) ; java.math.BigInteger pInt = dhParams.getP ( ) ; if ( pInt != null ) { primeBits = pInt.bitLength ( ) ; } } else if ( params != null ) { throw new java.security.InvalidAlgorithmParameterException ( "Params must be DHParameterSpec" ) ; } }

Target:
public void initialize ( java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException { prime = null ; primeBits = 1024 ; generator = org.conscrypt.OpenSSLDHKeyPairGenerator.DEFAULT_GENERATOR ; if ( params instanceof javax.crypto.spec.DHParameterSpec ) { javax.crypto.spec.DHParameterSpec dhParams = ( ( javax.crypto.spec.DHParameterSpec ) ( params ) ) ; prime = dhParams.getP ( ) ; java.math.BigInteger gen = dhParams.getG ( ) ; if ( gen != null ) { generator = gen ; } } else if ( params != null ) { throw new java.security.InvalidAlgorithmParameterException ( "Params must be DHParameterSpec" ) ; } }
Source:
android.icu.text.DecimalFormat getDecimalFormat ( ) { if ( ( decimalFormat ) == null ) { decimalFormat = ( ( android.icu.text.DecimalFormat ) ( android.icu.text.NumberFormat.getInstance ( locale ) ) ) ; if ( ( decimalFormatSymbols ) != null ) { decimalFormat.setDecimalFormatSymbols ( decimalFormatSymbols ) ; } } return decimalFormat ; }

Target:
public int getRoundingMode ( ) { return roundingMode ; }
Source:
public void testPownF32_3_relaxed ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_3 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 4 ] ; android.renderscript.cts.RSUtils.genRandom ( 10560497 , 32 , 1 , ( - 16 ) , n , 4 , 1 ) ; nAlloc.copyFrom ( n ) ; script_f32_relaxed.set_n3 ( nAlloc ) ; doF32_3_relaxed ( 11191281 , 128 ) ; }

Target:
public void testPownF32_3_relaxed ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_3 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 4 ] ; android.renderscript.cts.RSUtils.genRandomInts ( 10560497 , 32 , ( - 16 ) , n ) ; nAlloc.copyFrom ( n ) ; script_f32_relaxed.set_n3 ( nAlloc ) ; doF32_3_relaxed ( 11191281 , 128 ) ; }
Source:
public void sendRttMessage ( java.lang.String rttMessage ) { synchronized ( mLockObj ) { if ( ( mSession ) == null ) { loge ( "sendRttMessage::no session" ) ; } if ( ! ( mCallProfile.mMediaProfile.isRttCall ( ) ) ) { logi ( "sendRttMessage::Not an rtt call, ignoring" ) ; return ; } mSession.sendRttMessage ( rttMessage ) ; } }

Target:
public void stopDtmf ( ) { logi ( "stopDtmf :: " ) ; synchronized ( mLockObj ) { if ( ( mSession ) != null ) { mSession.stopDtmf ( ) ; } } }