auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void bluetoothSocketConnBeginAcceptThreadPsm ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "psmValue" ) java.lang.Integer psmValue , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "timeout" , description = "How long to wait for a new connection, 0 is wait for ever" ) java.lang.Integer timeout , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "isBle" , description = "Is transport BLE?" ) java.lang.Boolean isBle , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "securedConn" , description = "Using secured connection?" ) java.lang.Boolean securedConn ) throws java.io.IOException { com.googlecode.android_scripting.Log.d ( ( "bluetoothSocketConnBeginAcceptThreadPsm: PSM value=" + psmValue ) ) ; com.googlecode.android_scripting.facade.bluetooth.BluetoothSocketConnFacade.AcceptThread acceptThread = new com.googlecode.android_scripting.facade.bluetooth.BluetoothSocketConnFacade.AcceptThread ( psmValue.intValue ( ) , timeout.intValue ( ) , isBle , securedConn ) ; acceptThread.start ( ) ; mAcceptThread = acceptThread ; }

Target:
public void bluetoothSocketConnBeginAcceptThreadPsm ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "timeout" , description = "How long to wait for a new connection, 0 is wait for ever" ) java.lang.Integer timeout , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "isBle" , description = "Is transport BLE?" ) java.lang.Boolean isBle , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "securedConn" , description = "Using secured connection?" ) java.lang.Boolean securedConn , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "psmValue" ) java.lang.Integer psmValue ) throws java.io.IOException { com.googlecode.android_scripting.Log.d ( ( "bluetoothSocketConnBeginAcceptThreadPsm: PSM value=" + psmValue ) ) ; com.googlecode.android_scripting.facade.bluetooth.BluetoothSocketConnFacade.AcceptThread acceptThread = new com.googlecode.android_scripting.facade.bluetooth.BluetoothSocketConnFacade.AcceptThread ( psmValue.intValue ( ) , timeout.intValue ( ) , isBle , securedConn ) ; acceptThread.start ( ) ; mAcceptThread = acceptThread ; }
Source:
public com.android.sched.util.config.id.PropertyId.IValue < T > check ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context ) throws com.android.sched.util.codec.ParsingException { T val = this . codec.checkString ( context , value ) ; if ( val != null ) { return new IValueObject < T > ( val ) ; } else { return new IValueCheckedString ( value ) ; } }

Target:
public com.android.sched.util.config.id.PropertyId.IValue < T > check ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context ) throws com.android.sched.util.codec.ParsingException { T val = this . codec.checkString ( context , value ) ; if ( val != null ) { return new IValueObject < T > ( context , val ) ; } else { return new IValueCheckedString ( value ) ; } }
Source:
public void afterHandshake ( int session , int ssl , int c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_npn_negotiated_protocol ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; assertEquals ( "NPN should not enable cutthrough on the server" , 0 , ( ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ; super . afterHandshake ( session , ssl , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_npn_negotiated_protocol ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; assertEquals ( "NPN should not enable cutthrough on the server" , 0 , ( ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ; super . afterHandshake ( session , ssl , c , sock , fd , callback ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.SingleNameReference x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.ast.JExpression result = resolveNameReference ( x , scope ) ; if ( result == null ) { push ( null ) ; return ; } if ( ( x.genericCast ) != null ) { com.android.jack.ir.ast.JType castType = getTypeMap ( ) . get ( x.genericCast ) ; result = maybeCast ( castType , result ) ; } push ( result ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.SingleNameReference x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.ast.JExpression result = resolveNameReference ( x , scope ) ; if ( result == null ) { push ( null ) ; return ; } if ( ( x.genericCast ) != null ) { com.android.jack.ir.ast.JType castType = getTypeMap ( ) . get ( x.genericCast ) ; result = maybeCast ( castType , result ) ; } push ( result ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public void setZeroDigit ( char zeroDigit ) { if ( ( digits ) != null ) { this . digits [ 0 ] = zeroDigit ; if ( ( java.lang.Character.digit ( zeroDigit , 10 ) ) == 0 ) { for ( int i = 1 ; i < 10 ; i ++ ) { this . digits [ i ] = ( ( char ) ( zeroDigit + i ) ) ; } } } else { this . zeroDigit = zeroDigit ; } }

Target:
public void setZeroDigit ( char zeroDigit ) { if ( ( digits ) != null ) { this . digits [ 0 ] = zeroDigit ; for ( int i = 1 ; i < 10 ; i ++ ) { this . digits [ i ] = ( ( char ) ( zeroDigit + i ) ) ; } } else { this . zeroDigit = zeroDigit ; } }
Source:
public void test_shutdownInputOutput_twice ( ) throws java.lang.Exception { java.net.Socket s = new java.net.Socket ( "0.0.0.0" , 0 , false ) ; s.shutdownInput ( ) ; try { s.shutdownInput ( ) ; fail ( "should throw SocketException" ) ; } catch ( java.net.SocketException se ) { } s.shutdownOutput ( ) ; try { s.shutdownOutput ( ) ; fail ( "should throw SocketException" ) ; } catch ( java.net.SocketException se ) { } }

Target:
public void test_shutdownInputOutput_twice ( ) throws java.lang.Exception { try ( java.net.Socket s = new java.net.Socket ( "0.0.0.0" , 0 , false ) ) { s.shutdownInput ( ) ; try { s.shutdownInput ( ) ; fail ( "should throw SocketException" ) ; } catch ( java.net.SocketException se ) { } s.shutdownOutput ( ) ; try { s.shutdownOutput ( ) ; fail ( "should throw SocketException" ) ; } catch ( java.net.SocketException se ) { } } }
Source:
public void onDestroy ( ) { if ( ( mAdapterService ) != null ) { mAdapterService.removeProfile ( this ) ; } cleanup ( ) ; if ( ( mBinder ) != null ) { mBinder.cleanup ( ) ; mBinder = null ; } super . onDestroy ( ) ; mAdapter = null ; }

Target:
public void onDestroy ( ) { cleanup ( ) ; if ( ( mBinder ) != null ) { mBinder.cleanup ( ) ; mBinder = null ; } mAdapter = null ; super . onDestroy ( ) ; }
Source:
public com.android.jack.coverage.CoverageFilterSet checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { java.util.List < com.android.jack.coverage.CoveragePattern > patterns = parser.checkString ( context , string ) ; return com.android.jack.coverage.CoverageFilterSetCodec.createFromPatterns ( patterns ) ; }

Target:
public com.android.jack.coverage.CoverageFilterSet checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { java.util.List < com.android.jack.coverage.CoveragePattern > patterns = parser.checkString ( context , string ) ; if ( patterns == null ) { return null ; } else { return com.android.jack.coverage.CoverageFilterSetCodec.createFromPatterns ( patterns ) ; } }
Source:
public com.intellij.lang.annotation.Annotation createAnnotation ( @ org.jetbrains.annotations.NotNull com.intellij.lang.annotation.HighlightSeverity severity , @ org.jetbrains.annotations.NotNull com.intellij.openapi.util.TextRange range , @ org.jetbrains.annotations.Nullable java.lang.String message ) { @ org.jetbrains.annotations.NonNls java.lang.String tooltip = ( message == null ) ? null : com.intellij.xml.util.XmlStringUtil.wrapInHtml ( com.intellij.xml.util.XmlStringUtil.escapeString ( message ) ) ; com.intellij.lang.annotation.Annotation annotation = new com.intellij.lang.annotation.Annotation ( range.getStartOffset ( ) , range.getEndOffset ( ) , severity , message , tooltip ) ; add ( annotation ) ; return annotation ; }

Target:
public com.intellij.lang.annotation.Annotation createAnnotation ( @ org.jetbrains.annotations.NotNull com.intellij.lang.annotation.HighlightSeverity severity , @ org.jetbrains.annotations.NotNull com.intellij.openapi.util.TextRange range , @ org.jetbrains.annotations.Nullable java.lang.String message , @ org.jetbrains.annotations.Nullable java.lang.String tooltip ) { com.intellij.lang.annotation.Annotation annotation = new com.intellij.lang.annotation.Annotation ( range.getStartOffset ( ) , range.getEndOffset ( ) , severity , message , tooltip ) ; add ( annotation ) ; return annotation ; }
Source:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( TEST001 ) ; rtTestInfos.add ( TEST002 ) ; rtTestInfos.add ( TEST003 ) ; rtTestInfos.add ( TEST004 ) ; rtTestInfos.add ( TEST005 ) ; rtTestInfos.add ( TEST006 ) ; rtTestInfos.add ( TEST007 ) ; }

Target:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( TEST001 ) ; rtTestInfos.add ( TEST002 ) ; rtTestInfos.add ( TEST003 ) ; rtTestInfos.add ( TEST004 ) ; rtTestInfos.add ( TEST006 ) ; rtTestInfos.add ( TEST007 ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { com.android.sched.scheduler.Scheduler.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; scheduler = com.android.sched.scheduler.Scheduler.getScheduler ( ) ; com.android.sched.scheduler.SchedulableManager sm = com.android.sched.scheduler.SchedulableManager.getSchedulableManager ( ) ; scs = sm.getAllSchedulable ( ) ; scs.remove ( com.android.sched.scheduler.Runner8.class ) ; scs.remove ( com.android.sched.scheduler.Runner9.class ) ; scs.remove ( com.android.sched.scheduler.Runner10.class ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { scheduler = com.android.sched.scheduler.Scheduler.getScheduler ( ) ; com.android.sched.scheduler.SchedulableManager sm = com.android.sched.scheduler.SchedulableManager.getSchedulableManager ( ) ; scs = sm.getAllSchedulable ( ) ; scs.remove ( com.android.sched.scheduler.Runner8.class ) ; scs.remove ( com.android.sched.scheduler.Runner9.class ) ; scs.remove ( com.android.sched.scheduler.Runner10.class ) ; }
Source:
protected void checkSupportedMode ( org.conscrypt.OpenSSLCipher.Mode mode ) throws java.security.NoSuchAlgorithmException { switch ( mode ) { case CBC : case CFB : case CFB1 : case CFB8 : case CFB128 : case CTR : case ECB : case OFB : return ; default : throw new java.security.NoSuchAlgorithmException ( ( "Unsupported mode " + ( mode.toString ( ) ) ) ) ; } }

Target:
protected void checkSupportedMode ( org.conscrypt.OpenSSLCipher.Mode mode ) throws java.security.NoSuchAlgorithmException { switch ( mode ) { case CBC : case CTR : case ECB : return ; default : throw new java.security.NoSuchAlgorithmException ( ( "Unsupported mode " + ( mode.toString ( ) ) ) ) ; } }
Source:
public static void testSendMessageUcs2MultipageUmts ( android.app.Activity activity , int serialNumber , int category ) { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , com.android.cellbroadcastreceiver.tests.SendTestMessages.createFromPdu ( com.android.cellbroadcastreceiver.tests.SendTestMessages.gsmUcs2TestMultipageUmts , serialNumber , category ) ) ; activity.sendOrderedBroadcastAsUser ( intent , UserHandle.ALL , Manifest.permission.RECEIVE_SMS , AppOpsManager.OP_RECEIVE_SMS , null , null , Activity.RESULT_OK , null , null ) ; }

Target:
public static void testSendMessageUcs2MultipageUmts ( android.app.Activity activity , int serialNumber , int category ) { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , com.android.cellbroadcastreceiver.tests.SendTestMessages.createFromPdu ( activity , com.android.cellbroadcastreceiver.tests.SendTestMessages.gsmUcs2TestMultipageUmts , serialNumber , category ) ) ; activity.sendOrderedBroadcastAsUser ( intent , UserHandle.ALL , Manifest.permission.RECEIVE_SMS , AppOpsManager.OP_RECEIVE_SMS , null , null , Activity.RESULT_OK , null , null ) ; }
Source:
public final void testDefaultSettings ( ) { m.loadSettings ( ) ; com.android.sdklib.internal.repository.updater.SettingsController.Settings s = m.getSettings ( ) ; assertFalse ( s.getAskBeforeAdbRestart ( ) ) ; assertFalse ( s.getEnablePreviews ( ) ) ; assertFalse ( s.getForceHttp ( ) ) ; assertTrue ( s.getShowUpdateOnly ( ) ) ; assertTrue ( s.getUseDownloadCache ( ) ) ; assertEquals ( ( - 1 ) , s.getMonitorDensity ( ) ) ; }

Target:
public final void testDefaultSettings ( ) { m.loadSettings ( ) ; com.android.sdklib.internal.repository.updater.SettingsController.Settings s = m.getSettings ( ) ; assertFalse ( s.getAskBeforeAdbRestart ( ) ) ; assertTrue ( s.getEnablePreviews ( ) ) ; assertFalse ( s.getForceHttp ( ) ) ; assertTrue ( s.getShowUpdateOnly ( ) ) ; assertTrue ( s.getUseDownloadCache ( ) ) ; assertEquals ( ( - 1 ) , s.getMonitorDensity ( ) ) ; }
Source:
public com.android.sched.util.file.InputStreamFile checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { super . checkString ( context , string ) ; if ( string.equals ( com.android.sched.util.codec.STANDARD_IO_NAME ) ) { return new com.android.sched.util.file.InputStreamFile ( ) ; } else { try { return new com.android.sched.util.file.InputStreamFile ( string , change ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } } }

Target:
public com.android.sched.util.file.InputStreamFile checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { super . checkString ( context , string ) ; if ( string.equals ( com.android.sched.util.codec.STANDARD_IO_NAME ) ) { return new com.android.sched.util.file.InputStreamFile ( ) ; } else { try { return new com.android.sched.util.file.InputStreamFile ( string ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } } }
Source:
private org.apache.http.HttpResponse createResponse ( int status ) { org.apache.http.HttpResponse response = new org.apache.http.message.BasicHttpResponse ( org.apache.http.HttpVersion.HTTP_1_0 , status , null ) ; java.lang.String reason = android.webkit.cts.CtsTestServer.getReasonString ( status ) ; if ( reason != null ) { java.lang.StringBuffer buf = new java.lang.StringBuffer ( "<html><head><title>" ) ; buf.append ( reason ) ; buf.append ( "</title></head><body>" ) ; buf.append ( reason ) ; buf.append ( "</body></html>" ) ; response.setEntity ( createEntity ( buf.toString ( ) ) ) ; } return response ; }

Target:
private static org.apache.http.HttpResponse createResponse ( int status ) { org.apache.http.HttpResponse response = new org.apache.http.message.BasicHttpResponse ( org.apache.http.HttpVersion.HTTP_1_0 , status , null ) ; java.lang.String reason = android.webkit.cts.CtsTestServer.getReasonString ( status ) ; if ( reason != null ) { java.lang.StringBuffer buf = new java.lang.StringBuffer ( "<html><head><title>" ) ; buf.append ( reason ) ; buf.append ( "</title></head><body>" ) ; buf.append ( reason ) ; buf.append ( "</body></html>" ) ; response.setEntity ( android.webkit.cts.CtsTestServer.createEntity ( buf.toString ( ) ) ) ; } return response ; }
Source:
public android.bluetooth.AtCommandResult handleActionCommand ( ) { sendURC ( "OK" ) ; if ( ! ( mRingingCall.isIdle ( ) ) ) { com.android.phone.PhoneUtils.hangupRingingCall ( mPhone ) ; } else if ( ! ( mForegroundCall.isIdle ( ) ) ) { com.android.phone.PhoneUtils.hangupActiveCall ( mPhone ) ; } else if ( ! ( mBackgroundCall.isIdle ( ) ) ) { com.android.phone.PhoneUtils.hangupHoldingCall ( mPhone ) ; } return new android.bluetooth.AtCommandResult ( android.bluetooth.AtCommandResult.UNSOLICITED ) ; }

Target:
public android.bluetooth.AtCommandResult handleActionCommand ( ) { sendURC ( "OK" ) ; if ( ! ( mForegroundCall.isIdle ( ) ) ) { com.android.phone.PhoneUtils.hangupActiveCall ( mPhone ) ; } else if ( ! ( mRingingCall.isIdle ( ) ) ) { com.android.phone.PhoneUtils.hangupRingingCall ( mPhone ) ; } else if ( ! ( mBackgroundCall.isIdle ( ) ) ) { com.android.phone.PhoneUtils.hangupHoldingCall ( mPhone ) ; } return new android.bluetooth.AtCommandResult ( android.bluetooth.AtCommandResult.UNSOLICITED ) ; }
Source:
public com.android.utils.Pair < java.io.InputStream , org.apache.http.HttpResponse > openDirectUrl ( @ com.android.annotations.NonNull java.lang.String urlString , @ com.android.annotations.Nullable org.apache.http.Header [ ] headers , @ com.android.annotations.NonNull com.android.sdklib.internal.repository.ITaskMonitor monitor ) throws com.android.sdklib.internal.repository.CanceledByUserException , java.io.IOException { if ( com.android.sdklib.internal.repository.DownloadCache.DEBUG ) { java.lang.System.out.println ( java.lang.String.format ( "%s : Direct download" , urlString ) ) ; } return com.android.sdklib.internal.repository.UrlOpener.openUrl ( urlString , false , monitor , headers ) ; }

Target:
public com.android.utils.Pair < java.io.InputStream , org.apache.http.HttpResponse > openDirectUrl ( @ com.android.annotations.NonNull java.lang.String urlString , @ com.android.annotations.Nullable org.apache.http.Header [ ] headers , @ com.android.annotations.NonNull com.android.sdklib.internal.repository.ITaskMonitor monitor ) throws com.android.sdklib.internal.repository.CanceledByUserException , java.io.IOException { if ( com.android.sdklib.internal.repository.DownloadCache.DEBUG ) { java.lang.System.out.println ( java.lang.String.format ( "%s : Direct download" , urlString ) ) ; } return openUrl ( urlString , false , monitor , headers ) ; }
Source:
private static void startFifo ( ) { com.android.jack.server.Server.logger.log ( java.util.logging.Level.FINE , "Start FIFO" ) ; try { com.android.sched.util.file.FileOrDirectory.setPermissions ( com.android.jack.server.Server.fifo , new com.android.sched.util.location.FileLocation ( com.android.jack.server.Server.fifo ) , ( ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) | ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ) , ChangePermission.OWNER ) ; } catch ( com.android.sched.util.file.CannotSetPermissionException e ) { com.android.jack.server.Server.logger.log ( java.util.logging.Level.SEVERE , e.getMessage ( ) , e ) ; com.android.jack.server.Server.abort ( ) ; } }

Target:
private static void startFifo ( ) { com.android.jack.server.Server.logger.log ( java.util.logging.Level.FINE , "Start FIFO" ) ; try { assert ( com.android.jack.server.Server.fifo ) != null ; com.android.sched.util.file.FileOrDirectory.setPermissions ( com.android.jack.server.Server.fifo , new com.android.sched.util.location.FileLocation ( com.android.jack.server.Server.fifo ) , ( ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) | ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ) , ChangePermission.OWNER ) ; } catch ( com.android.sched.util.file.CannotSetPermissionException e ) { com.android.jack.server.Server.logger.log ( java.util.logging.Level.SEVERE , e.getMessage ( ) , e ) ; com.android.jack.server.Server.abort ( ) ; } }
Source:
public void unhold ( ) { if ( ( mState ) == ( CallState.ON_HOLD ) ) { if ( ( mConnectionService ) != null ) { mConnectionService.unhold ( this ) ; } else { android.telecom.Log.e ( this , new java.lang.NullPointerException ( ) , "unhold call failed due to null CS callId=%s" , getId ( ) ) ; } android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_UNHOLD ) ; } }

Target:
void unhold ( ) { if ( ( mState ) == ( CallState.ON_HOLD ) ) { if ( ( mConnectionService ) != null ) { mConnectionService.unhold ( this ) ; } else { android.telecom.Log.e ( this , new java.lang.NullPointerException ( ) , "unhold call failed due to null CS callId=%s" , getId ( ) ) ; } android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_UNHOLD ) ; } }
Source:
public boolean isTrue ( ) { boolean hasApplication = ( device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . textContains ( appTitle ) . resourceId ( Res.GOOGLE_PLAY_LIST_TITLE_RES ) ) . exists ( ) ) || ( device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . descriptionContains ( appTitle ) . resourceId ( Res.GOOGLE_PLAY_LIST_TITLE_RES ) ) . exists ( ) ) ; return hasApplication ; }

Target:
public boolean isTrue ( ) { boolean hasApplication = device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( appTitle ) . resourceId ( Res.GOOGLE_PLAY_LIST_TITLE_RES ) ) . exists ( ) ; return hasApplication ; }
Source:
private static javax.crypto.Cipher createAesCipher ( int opmode ) { try { javax.crypto.SecretKey key = new javax.crypto.spec.SecretKeySpec ( libcore.javax.crypto.CipherTest.AES_128_KEY , "AES" ) ; final javax.crypto.Cipher c = javax.crypto.Cipher.getInstance ( "AES/ECB/NoPadding" ) ; c.init ( opmode , key ) ; return c ; } catch ( java.lang.Exception e ) { fail ( ( "Unexpected Exception: " + ( e.getMessage ( ) ) ) ) ; return null ; } }

Target:
private static javax.crypto.Cipher createAesCipher ( int opmode ) { try { final javax.crypto.Cipher c = javax.crypto.Cipher.getInstance ( "AES/ECB/NoPadding" ) ; c.init ( opmode , libcore.javax.crypto.CipherTest.AES_128_KEY ) ; return c ; } catch ( java.lang.Exception e ) { fail ( ( "Unexpected Exception: " + ( e.getMessage ( ) ) ) ) ; return null ; } }
Source:
public void sendSms ( int token , int messageRef , java.lang.String format , java.lang.String smsc , boolean isRetry , byte [ ] pdu ) { try { onSendSmsResult ( token , messageRef , android.telephony.ims.internal.stub.SmsImplBase.SEND_STATUS_ERROR , SmsManager.RESULT_ERROR_GENERIC_FAILURE ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.stub.SmsImplBase.LOG_TAG , ( "Can not send sms: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
public void sendSms ( int token , int messageRef , java.lang.String format , java.lang.String smsc , boolean isRetry , byte [ ] pdu ) { try { onSendSmsResult ( token , messageRef , android.telephony.ims.internal.stub.SmsImplBase.SEND_STATUS_ERROR , SmsManager.RESULT_ERROR_GENERIC_FAILURE ) ; } catch ( java.lang.RuntimeException e ) { android.util.Log.e ( android.telephony.ims.internal.stub.SmsImplBase.LOG_TAG , ( "Can not send sms: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
private void reportDataErrors ( int numErrors ) { if ( numErrors > 0 ) { if ( ( isModularBuild ( ) ) || ( noData ( ) ) ) { warnln ( "Could not find locale data" ) ; } else { errln ( ( ( "encountered " + numErrors ) + " errors." ) ) ; } } }

Target:
private void reportDataErrors ( int numErrors ) { if ( numErrors > 0 ) { errln ( ( ( "encountered " + numErrors ) + " errors." ) ) ; } }
Source:
public static boolean setServicesEnabledSync ( android.content.Context context ) { android.database.Cursor c = null ; try { c = context.getContentResolver ( ) . query ( Account.CONTENT_URI , Account.ID_PROJECTION , null , null , null ) ; boolean enable = ( c.getCount ( ) ) > 0 ; com.android.email.Email.setServicesEnabled ( context , enable ) ; return enable ; } finally { if ( c != null ) { c.close ( ) ; } } }

Target:
public static boolean setServicesEnabledSync ( android.content.Context context ) { android.database.Cursor c = null ; try { c = context.getContentResolver ( ) . query ( Account.CONTENT_URI , Account.ID_PROJECTION , null , null , null ) ; boolean enable = ( c != null ) && ( ( c.getCount ( ) ) > 0 ) ; com.android.email.Email.setServicesEnabled ( context , enable ) ; return enable ; } finally { if ( c != null ) { c.close ( ) ; } } }
Source:
private android.telephony.SubscriptionInfo addSignalController ( int id , int simSlotIndex ) { android.telephony.SubscriptionInfo info = new android.telephony.SubscriptionInfo ( id , "" , simSlotIndex , "" , "" , 0 , 0 , "" , 0 , null , 0 , 0 , "" , android.telephony.SubscriptionManager.SIM_PROVISIONED ) ; mMobileSignalControllers.put ( id , new com.android.systemui.statusbar.policy.MobileSignalController ( mContext , mConfig , mHasMobileDataFeature , mPhone , mCallbackHandler , this , info , mSubDefaults , mReceiverHandler.getLooper ( ) ) ) ; return info ; }

Target:
private android.telephony.SubscriptionInfo addSignalController ( int id , int simSlotIndex ) { android.telephony.SubscriptionInfo info = new android.telephony.SubscriptionInfo ( id , "" , simSlotIndex , "" , "" , 0 , 0 , "" , 0 , null , 0 , 0 , "" ) ; mMobileSignalControllers.put ( id , new com.android.systemui.statusbar.policy.MobileSignalController ( mContext , mConfig , mHasMobileDataFeature , mPhone , mCallbackHandler , this , info , mSubDefaults , mReceiverHandler.getLooper ( ) ) ) ; return info ; }
Source:
public static final com.ibm.icu.util.LocaleData.MeasurementSystem getMeasurementSystem ( com.ibm.icu.util.ULocale locale ) { com.ibm.icu.util.UResourceBundle sysBundle = com.ibm.icu.util.LocaleData.measurementTypeBundleForLocale ( locale , com.ibm.icu.util.LocaleData.MEASUREMENT_SYSTEM ) ; int system = sysBundle.getInt ( ) ; if ( com.ibm.icu.util.LocaleData.MeasurementSystem.US.equals ( system ) ) { return com.ibm.icu.util.LocaleData.MeasurementSystem.US ; } if ( com.ibm.icu.util.LocaleData.MeasurementSystem.UK.equals ( system ) ) { return com.ibm.icu.util.LocaleData.MeasurementSystem.UK ; } if ( com.ibm.icu.util.LocaleData.MeasurementSystem.SI.equals ( system ) ) { return com.ibm.icu.util.LocaleData.MeasurementSystem.SI ; } return null ; }

Target:
public static final com.ibm.icu.util.LocaleData.MeasurementSystem getMeasurementSystem ( com.ibm.icu.util.ULocale locale ) { com.ibm.icu.util.UResourceBundle sysBundle = com.ibm.icu.util.LocaleData.measurementTypeBundleForLocale ( locale , com.ibm.icu.util.LocaleData.MEASUREMENT_SYSTEM ) ; switch ( sysBundle.getInt ( ) ) { case 0 : return com.ibm.icu.util.LocaleData.MeasurementSystem.SI ; case 1 : return com.ibm.icu.util.LocaleData.MeasurementSystem.US ; case 2 : return com.ibm.icu.util.LocaleData.MeasurementSystem.UK ; default : return null ; } }
Source:
protected void shutdownInput ( ) throws java.io.IOException { if ( ( fd ) != null ) { socketShutdown ( java.net.AbstractPlainSocketImpl.SHUT_RD ) ; if ( ( socketInputStream ) != null ) { socketInputStream.setEOF ( true ) ; } shut_rd = true ; } }

Target:
protected void shutdownInput ( ) throws java.io.IOException { if ( ( ( fd ) != null ) && ( fd.valid ( ) ) ) { socketShutdown ( java.net.AbstractPlainSocketImpl.SHUT_RD ) ; if ( ( socketInputStream ) != null ) { socketInputStream.setEOF ( true ) ; } shut_rd = true ; } }
Source:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String actionName , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile ) { for ( vogar.target.RunnerFactory runnerFactory : runnerFactories ) { vogar.target.Runner runner = runnerFactory.newRunner ( monitor , actionName , qualification , klass , skipPastReference , testEnvironment , timeoutSeconds , profile ) ; if ( runner != null ) { return runner ; } } return null ; }

Target:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile ) { for ( vogar.target.RunnerFactory runnerFactory : runnerFactories ) { vogar.target.Runner runner = runnerFactory.newRunner ( monitor , qualification , klass , skipPastReference , testEnvironment , timeoutSeconds , profile ) ; if ( runner != null ) { return runner ; } } return null ; }
Source:
private void processAtChld ( int chld , android.bluetooth.BluetoothDevice device ) { if ( device == null ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "processAtChld device is null" ) ; return ; } if ( mSystemInterface.processChld ( chld ) ) { mNativeInterface.atResponseCode ( device , HeadsetHalConstants.AT_RESPONSE_OK , 0 ) ; } else { mNativeInterface.atResponseCode ( device , HeadsetHalConstants.AT_RESPONSE_ERROR , 0 ) ; } }

Target:
private void processAtChld ( int chld , android.bluetooth.BluetoothDevice device ) { if ( mSystemInterface.processChld ( chld ) ) { mNativeInterface.atResponseCode ( device , HeadsetHalConstants.AT_RESPONSE_OK , 0 ) ; } else { mNativeInterface.atResponseCode ( device , HeadsetHalConstants.AT_RESPONSE_ERROR , 0 ) ; } }
Source:
com.android.bluetooth.gatt.ContextMap < T > . App getById ( int id ) { java.util.Iterator < com.android.bluetooth.gatt.ContextMap < T > . App > i = mApps.iterator ( ) ; while ( i.hasNext ( ) ) { com.android.bluetooth.gatt.ContextMap < T > . App entry = i.next ( ) ; if ( ( entry.id ) == id ) return entry ; } android.util.Log.e ( com.android.bluetooth.gatt.ContextMap.TAG , ( "Context not found for ID " + id ) ) ; return null ; }

Target:
com.android.bluetooth.gatt.ContextMap < T > . App getById ( int id ) { synchronized ( mApps ) { java.util.Iterator < com.android.bluetooth.gatt.ContextMap < T > . App > i = mApps.iterator ( ) ; while ( i.hasNext ( ) ) { com.android.bluetooth.gatt.ContextMap < T > . App entry = i.next ( ) ; if ( ( entry.id ) == id ) return entry ; } } android.util.Log.e ( com.android.bluetooth.gatt.ContextMap.TAG , ( "Context not found for ID " + id ) ) ; return null ; }
Source:
public void testCopyAndClear ( ) { android.net.StaticIpConfiguration empty = new android.net.StaticIpConfiguration ( ( ( android.net.StaticIpConfiguration ) ( null ) ) ) ; checkEmpty ( empty ) ; android.net.StaticIpConfiguration s1 = makeTestObject ( ) ; android.net.StaticIpConfiguration s2 = new android.net.StaticIpConfiguration ( s1 ) ; assertEquals ( s1 , s2 ) ; s2.clear ( ) ; assertEquals ( empty , s2 ) ; }

Target:
public void testCopyAndClear ( ) { android.net.StaticIpConfiguration empty = new android.net.StaticIpConfiguration ( ( ( android.net.StaticIpConfiguration ) ( null ) ) ) ; checkEmpty ( empty ) ; android.net.StaticIpConfiguration s1 = makeTestObject ( ) ; android.net.StaticIpConfiguration s2 = new android.net.StaticIpConfiguration ( s1 ) ; org.junit.Assert.assertEquals ( s1 , s2 ) ; s2.clear ( ) ; org.junit.Assert.assertEquals ( empty , s2 ) ; }
Source:
protected com.android.jack.ir.ast.JDefinedClassOrInterface loadClassOrInterface ( @ javax.annotation.Nonnull java.lang.String simpleName ) throws com.android.jack.ir.ast.JTypeLookupException { assert ! ( deletedItems.contains ( simpleName ) ) ; for ( com.android.jack.load.PackageLoader loader : loaders ) { try { return loader.loadClassOrInterface ( this , simpleName ) ; } catch ( com.android.jack.lookup.JLookupException e ) { } } throw new com.android.jack.ir.ast.MissingJTypeLookupException ( this , simpleName ) ; }

Target:
protected com.android.jack.ir.ast.JDefinedClassOrInterface loadClassOrInterface ( @ javax.annotation.Nonnull java.lang.String simpleName ) throws com.android.jack.ir.ast.JTypeLookupException { if ( ! ( deletedItems.contains ( simpleName ) ) ) { for ( com.android.jack.load.PackageLoader loader : loaders ) { try { return loader.loadClassOrInterface ( this , simpleName ) ; } catch ( com.android.jack.lookup.JLookupException e ) { } } } throw new com.android.jack.ir.ast.MissingJTypeLookupException ( this , simpleName ) ; }
Source:
public void setFrom ( com.android.voicemail.impl.mail.Address from ) throws com.android.voicemail.impl.mail.MessagingException { final int fromLength = 6 ; if ( from != null ) { setHeader ( "From" , com.android.voicemail.impl.mail.internet.MimeUtility.fold ( from.toHeader ( ) , fromLength ) ) ; this . mFrom = new com.android.voicemail.impl.mail.Address [ ] { from } ; } else { this . mFrom = null ; } }

Target:
public void setFrom ( com.android.voicemail.impl.mail.Address from ) throws com.android.voicemail.impl.mail.MessagingException { final int fromLength = 6 ; if ( from != null ) { setHeader ( "From" , com.android.voicemail.impl.mail.internet.MimeUtility.fold ( from.toHeader ( ) , fromLength ) ) ; this . from = new com.android.voicemail.impl.mail.Address [ ] { from } ; } else { this . from = null ; } }
Source:
private void checkInputFile ( java.io.File file ) throws com.android.sdklib.build.ApkCreationException , java.io.FileNotFoundException { if ( file.isDirectory ( ) ) { throw new com.android.sdklib.build.ApkCreationException ( "%s is a directory!" , file ) ; } if ( file.exists ( ) ) { if ( ( file.canRead ( ) ) == false ) { throw new com.android.sdklib.build.ApkCreationException ( "Cannot read %s" , file ) ; } } else { throw new java.io.FileNotFoundException ( java.lang.String.format ( "%s does not exist" , file ) ) ; } }

Target:
private static void checkInputFile ( java.io.File file ) throws com.android.sdklib.build.ApkCreationException , java.io.FileNotFoundException { if ( file.isDirectory ( ) ) { throw new com.android.sdklib.build.ApkCreationException ( "%s is a directory!" , file ) ; } if ( file.exists ( ) ) { if ( ( file.canRead ( ) ) == false ) { throw new com.android.sdklib.build.ApkCreationException ( "Cannot read %s" , file ) ; } } else { throw new java.io.FileNotFoundException ( java.lang.String.format ( "%s does not exist" , file ) ) ; } }
Source:
public boolean skip ( ) { if ( ( mBucket ) == ( com.android.tools.lint.checks.RelativeOverlapDetector.LayoutNode.Bucket.SKIP ) ) { return true ; } if ( ( mNode.getTagName ( ) . equals ( com.android.SdkConstants.VIEW_INCLUDE ) ) || ( mNode.getTagName ( ) . equals ( com.android.SdkConstants.VIEW ) ) ) { return true ; } return false ; }

Target:
public boolean skip ( ) { if ( ( mBucket ) == ( com.android.tools.lint.checks.RelativeOverlapDetector.LayoutNode.Bucket.SKIP ) ) { return true ; } return ( mNode.getTagName ( ) . equals ( com.android.SdkConstants.VIEW_INCLUDE ) ) || ( mNode.getTagName ( ) . equals ( com.android.SdkConstants.VIEW ) ) ; }
Source:
public boolean isDevice ( ) { return ( ( ( ( this ) == ( vogar.ModeId.DEVICE ) ) || ( ( this ) == ( vogar.ModeId.DEVICE_ART_KITKAT ) ) ) || ( ( this ) == ( vogar.ModeId.DEVICE_DALVIK ) ) ) || ( ( this ) == ( vogar.ModeId.APP_PROCESS ) ) ; }

Target:
public boolean isDevice ( ) { return ( ( this ) == ( vogar.ModeId.DEVICE ) ) || ( ( this ) == ( vogar.ModeId.APP_PROCESS ) ) ; }
Source:
public static void printHelpProperties ( @ javax.annotation.Nonnull java.io.PrintStream printStream , @ javax.annotation.Nonnull com.android.jack.Options options ) throws java.io.IOException { com.android.sched.util.config.GatherConfigBuilder builder = options.getDefaultConfigBuilder ( ) ; com.android.jack.CommandLine.printProperties ( printStream , builder , com.android.jack.config.id.Brest.class ) ; printStream.println ( ) ; printStream.println ( "Provisional properties (subject to change):" ) ; printStream.println ( ) ; com.android.jack.CommandLine.printProperties ( printStream , builder , com.android.sched.util.config.category.DefaultCategory.class ) ; }

Target:
public static void printHelpProperties ( @ javax.annotation.Nonnull java.io.PrintStream printStream , @ javax.annotation.Nonnull com.android.jack.Options options ) throws java.io.IOException { com.android.sched.util.config.GatherConfigBuilder builder = options.getDefaultConfigBuilder ( ) ; com.android.jack.CommandLine.printProperties ( printStream , builder , com.android.jack.config.id.Brest.class ) ; printStream.println ( ) ; printStream.println ( "Provisional properties (subject to change):" ) ; printStream.println ( ) ; com.android.jack.CommandLine.printProperties ( printStream , builder , null ) ; }
Source:
private static void reportRepeatedWord ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Node node , java.lang.String text , int lastWordBegin , int begin , int end ) { java.lang.String message = java.lang.String.format ( "Repeated word \"%1$s\" in message: possible typo" , text.substring ( begin , end ) ) ; com.android.tools.lint.detector.api.Location location = context.getLocation ( node , lastWordBegin , end ) ; context.report ( com.android.tools.lint.checks.TypoDetector.ISSUE , node , location , message , null ) ; }

Target:
private static void reportRepeatedWord ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Node node , java.lang.String text , int lastWordBegin , int begin , int end ) { java.lang.String message = java.lang.String.format ( "Repeated word \"%1$s\" in message: possible typo" , text.substring ( begin , end ) ) ; com.android.tools.lint.detector.api.Location location = context.getLocation ( node , lastWordBegin , end ) ; context.report ( com.android.tools.lint.checks.TypoDetector.ISSUE , node , location , message ) ; }
Source:
private void sendImsFeatureStatusChanged ( int slot , int feature , int status ) { synchronized ( mLock ) { for ( java.util.Iterator < com.android.ims.internal.IImsServiceFeatureCallback > i = mImsStatusCallbacks.iterator ( ) ; i.hasNext ( ) ; ) { com.android.ims.internal.IImsServiceFeatureCallback callbacks = i.next ( ) ; try { callbacks.imsStatusChanged ( slot , feature , status ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( ( "sendImsFeatureStatusChanged: Binder died, removing " + "callback. Exception:" ) + ( e.getMessage ( ) ) ) ) ; i.remove ( ) ; } } } }

Target:
private void sendImsFeatureStatusChanged ( int slot , int feature , int status ) { for ( java.util.Iterator < com.android.ims.internal.IImsServiceFeatureCallback > i = mImsStatusCallbacks.iterator ( ) ; i.hasNext ( ) ; ) { com.android.ims.internal.IImsServiceFeatureCallback callbacks = i.next ( ) ; try { callbacks.imsStatusChanged ( slot , feature , status ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( ( "sendImsFeatureStatusChanged: Binder died, removing " + "callback. Exception:" ) + ( e.getMessage ( ) ) ) ) ; i.remove ( ) ; } } }
Source:
protected org.bouncycastle.crypto.tls.TlsStreamCipher createSalsa20Cipher ( org.bouncycastle.crypto.tls.TlsContext context , int rounds , int cipherKeySize , int macAlgorithm ) throws java.io.IOException { return new org.bouncycastle.crypto.tls.TlsStreamCipher ( context , createSalsa20StreamCipher ( rounds ) , createSalsa20StreamCipher ( rounds ) , createHMACDigest ( macAlgorithm ) , createHMACDigest ( macAlgorithm ) , cipherKeySize ) ; }

Target:
protected org.bouncycastle.crypto.tls.TlsStreamCipher createSalsa20Cipher ( org.bouncycastle.crypto.tls.TlsContext context , int rounds , int cipherKeySize , int macAlgorithm ) throws java.io.IOException { return new org.bouncycastle.crypto.tls.TlsStreamCipher ( context , createSalsa20StreamCipher ( rounds ) , createSalsa20StreamCipher ( rounds ) , createHMACDigest ( macAlgorithm ) , createHMACDigest ( macAlgorithm ) , cipherKeySize , true ) ; }
Source:
com.android.sched.vfs.VPath getPathFromDir ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.ParentVFile file ) { java.lang.StringBuffer path = com.android.sched.vfs.DirectFS.getPathFromDirInternal ( parent , ( ( com.android.sched.vfs.ParentVDir ) ( file.getParent ( ) ) ) ) . append ( file.getName ( ) ) ; return new com.android.sched.vfs.VPath ( path.toString ( ) , '/' ) ; }

Target:
com.android.sched.vfs.VPath getPathFromDir ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.ParentVFile file ) { java.lang.StringBuilder path = com.android.sched.vfs.DirectFS.getPathFromDirInternal ( parent , ( ( com.android.sched.vfs.ParentVDir ) ( file.getParent ( ) ) ) ) . append ( file.getName ( ) ) ; return new com.android.sched.vfs.VPath ( path.toString ( ) , '/' ) ; }
Source:
private static void failNotSame ( java.lang.String message , java.lang.Object expected , java.lang.Object actual ) { java.lang.String formatted = "" ; if ( message != null ) formatted = message + " " ; junit.framework.Assert.fail ( ( ( ( ( ( formatted + "expected same:<" ) + expected ) + "> was not:<" ) + actual ) + ">" ) ) ; }

Target:
public static void failNotSame ( java.lang.String message , java.lang.Object expected , java.lang.Object actual ) { java.lang.String formatted = "" ; if ( message != null ) formatted = message + " " ; junit.framework.Assert.fail ( ( ( ( ( ( formatted + "expected same:<" ) + expected ) + "> was not:<" ) + actual ) + ">" ) ) ; }
Source:
public boolean equals ( @ com.android.annotations.Nullable java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( obj == null ) return false ; if ( ( getClass ( ) ) != ( obj.getClass ( ) ) ) return false ; com.android.tools.lint.detector.api.Project other = ( ( com.android.tools.lint.detector.api.Project ) ( obj ) ) ; if ( ( mDir ) == null ) { if ( ( other.mDir ) != null ) return false ; } else if ( ! ( mDir.equals ( other.mDir ) ) ) return false ; return true ; }

Target:
public boolean equals ( @ com.android.annotations.Nullable java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( obj == null ) return false ; if ( ( getClass ( ) ) != ( obj.getClass ( ) ) ) return false ; com.android.tools.lint.detector.api.Project other = ( ( com.android.tools.lint.detector.api.Project ) ( obj ) ) ; return mDir.equals ( other.mDir ) ; }
Source:
public java.lang.Class findClass ( java.lang.String name , java.util.List < java.lang.Throwable > suppressed ) { for ( dalvik.system.DexPathList.Element element : dexElements ) { dalvik.system.DexFile dex = element.dexFile ; if ( dex != null ) { java.lang.Class clazz = dex.loadClassBinaryName ( name , definingContext , suppressed ) ; if ( clazz != null ) { return clazz ; } } } if ( ( dexElementsSuppressedExceptions ) != null ) { suppressed.addAll ( java.util.Arrays.asList ( dexElementsSuppressedExceptions ) ) ; } return null ; }

Target:
public java.lang.Class < ? > findClass ( java.lang.String name , java.util.List < java.lang.Throwable > suppressed ) { for ( dalvik.system.DexPathList.Element element : dexElements ) { java.lang.Class < ? > clazz = element.findClass ( name , definingContext , suppressed ) ; if ( clazz != null ) { return clazz ; } } if ( ( dexElementsSuppressedExceptions ) != null ) { suppressed.addAll ( java.util.Arrays.asList ( dexElementsSuppressedExceptions ) ) ; } return null ; }
Source:
public void useTelephonyCountryCode ( ) throws java.lang.Exception { mWifiCountryCode.setCountryCode ( mTelephonyCountryCode , false ) ; org.junit.Assert.assertEquals ( null , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; mWifiCountryCode.setReadyForChange ( true ) ; mWifiCountryCode.setReadyForChange ( false ) ; org.mockito.Mockito.verify ( mWifiNative ) . setCountryCode ( org.mockito.Mockito.anyString ( ) ) ; org.junit.Assert.assertEquals ( mTelephonyCountryCode , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; }

Target:
public void useTelephonyCountryCode ( ) throws java.lang.Exception { mWifiCountryCode.setCountryCode ( mTelephonyCountryCode ) ; org.junit.Assert.assertEquals ( null , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; mWifiCountryCode.setReadyForChange ( true ) ; mWifiCountryCode.setReadyForChange ( false ) ; org.mockito.Mockito.verify ( mWifiNative ) . setCountryCode ( org.mockito.Mockito.anyString ( ) ) ; org.junit.Assert.assertEquals ( mTelephonyCountryCode , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; }
Source:
public int getSupportedFeatureSet ( ) { try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.getSupportedFeatureSet ( ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getSupportedFeatureSetNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "Failing getSupportedFeatureset because HAL isn't started" ) ; return 0 ; } } }

Target:
public int getSupportedFeatureSet ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getSupportedFeatureSetNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "Failing getSupportedFeatureset because HAL isn't started" ) ; return 0 ; } } }
Source:
public void run ( final com.android.cts.TestDevice device , final java.lang.String javaPkgName , com.android.cts.TestSessionLog sessionLog ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException , com.android.cts.InvalidApkPathException , com.android.cts.InvalidNameSpaceException , java.io.IOException { if ( isAllTestsRun ( ) ) { return ; } setup ( device , javaPkgName ) ; runImpl ( javaPkgName , sessionLog.getProfile ( ) ) ; }

Target:
public void run ( final com.android.cts.TestDevice device , final java.lang.String javaPkgName , com.android.cts.TestSessionLog sessionLog ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException , com.android.cts.InvalidApkPathException , com.android.cts.InvalidNameSpaceException , java.io.IOException { if ( isAllTestsRun ( ) ) { return ; } setup ( device , javaPkgName ) ; runImpl ( javaPkgName ) ; }
Source:
public java.net.SocketAddress listen ( java.net.SocketAddress address , javax.net.ssl.SSLContext context ) throws java.io.IOException { org.simpleframework.transport.connect.SocketListener listener = new org.simpleframework.transport.connect.SocketListener ( address , processor , analyzer , context ) ; if ( ( processor ) != null ) { listener.process ( ) ; listeners.add ( listener ) ; } return listener.getAddress ( ) ; }

Target:
public java.net.SocketAddress listen ( java.net.SocketAddress address , javax.net.ssl.SSLContext context ) throws java.io.IOException { org.simpleframework.transport.connect.SocketListener listener = new org.simpleframework.transport.connect.SocketListener ( address , processor , analyzer , context ) ; if ( ( processor ) != null ) { listeners.add ( listener ) ; listener.process ( ) ; } return listener.getAddress ( ) ; }