auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void startVoiceSearch ( ) { android.content.Intent intent = new android.content.Intent ( android.speech.RecognizerIntent.ACTION_WEB_SEARCH ) ; intent.putExtra ( RecognizerIntent.EXTRA_LANGUAGE_MODEL , RecognizerIntent.LANGUAGE_MODEL_WEB_SEARCH ) ; intent.putExtra ( RecognizerIntent.EXTRA_CALLING_PACKAGE , mActivity.getComponentName ( ) . flattenToString ( ) ) ; intent.putExtra ( com.android.browser.Controller.SEND_APP_ID_EXTRA , false ) ; intent.putExtra ( RecognizerIntent.EXTRA_WEB_SEARCH_ONLY , true ) ; mActivity.startActivity ( intent ) ; }

Target:
public void onConfgurationChanged ( android.content.res.Configuration config ) { mConfigChanged = true ; mActivity.invalidateOptionsMenu ( ) ; if ( ( mPageDialogsHandler ) != null ) { mPageDialogsHandler.onConfigurationChanged ( config ) ; } mUi.onConfigurationChanged ( config ) ; }
Source:
public void testGlobalNetworkNumbers ( ) throws java.lang.Exception { for ( java.lang.Integer callingCode : phoneNumberUtil.getSupportedGlobalNetworkCallingCodes ( ) ) { com.google.i18n.phonenumbers.Phonenumber.PhoneNumber exampleNumber = phoneNumberUtil.getExampleNumberForNonGeoEntity ( callingCode ) ; assertNotNull ( ( "No example phone number for calling code " + callingCode ) , exampleNumber ) ; if ( ! ( phoneNumberUtil.isValidNumber ( exampleNumber ) ) ) { invalidCases.add ( exampleNumber ) ; com.google.i18n.phonenumbers.ExampleNumbersTest.LOGGER.log ( java.util.logging.Level.SEVERE , ( "Failed validation for " + ( exampleNumber.toString ( ) ) ) ) ; } } assertEquals ( 0 , invalidCases.size ( ) ) ; }

Target:
public void testGlobalNetworkNumbers ( ) throws java.lang.Exception { for ( java.lang.Integer callingCode : phoneNumberUtil.getSupportedGlobalNetworkCallingCodes ( ) ) { com.google.i18n.phonenumbers.Phonenumber.PhoneNumber exampleNumber = phoneNumberUtil.getExampleNumberForNonGeoEntity ( callingCode ) ; assertNotNull ( ( "No example phone number for calling code " + callingCode ) , exampleNumber ) ; if ( ! ( phoneNumberUtil.isValidNumber ( exampleNumber ) ) ) { invalidCases.add ( exampleNumber ) ; com.google.i18n.phonenumbers.ExampleNumbersTest.logger.log ( java.util.logging.Level.SEVERE , ( "Failed validation for " + ( exampleNumber.toString ( ) ) ) ) ; } } assertEquals ( 0 , invalidCases.size ( ) ) ; }
Source:
public boolean isTetheringOn ( ) { if ( android.bluetooth.BluetoothPan.VDBG ) android.bluetooth.BluetoothPan.log ( "isTetheringOn()" ) ; if ( ( ( mPanService ) != null ) && ( isEnabled ( ) ) ) { try { return mPanService.isTetheringOn ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothPan.TAG , ( "Stack:" + ( android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ) ) ; } } return false ; }

Target:
public boolean isTetheringOn ( ) { if ( android.bluetooth.BluetoothPan.VDBG ) android.bluetooth.BluetoothPan.log ( "isTetheringOn()" ) ; final android.bluetooth.IBluetoothPan service = mPanService ; if ( ( service != null ) && ( isEnabled ( ) ) ) { try { return service.isTetheringOn ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothPan.TAG , ( "Stack:" + ( android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ) ) ; } } return false ; }
Source:
public android.net.IpSecAlgorithm createFromParcel ( android.os.Parcel in ) { return new android.net.IpSecAlgorithm ( in ) ; }

Target:
public android.net.IpSecAlgorithm createFromParcel ( android.os.Parcel in ) { final java.lang.String name = in.readString ( ) ; final byte [ ] key = in.createByteArray ( ) ; final int truncLenBits = in.readInt ( ) ; return new android.net.IpSecAlgorithm ( name , key , truncLenBits ) ; }
Source:
public static float $noinline$returnFloat ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 200000 ; ++ i ) { } while ( ! ( Main.ensureInOsrCode ( ) ) ) { } java.lang.System.out.println ( i ) ; return 42.2F ; }

Target:
public static float $noinline$returnFloat ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 200000 ; ++ i ) { } while ( ! ( Main.isInOsrCode ( "$noinline$returnFloat" ) ) ) { } java.lang.System.out.println ( i ) ; return 42.2F ; }
Source:
final void get ( short [ ] dst , int dstOffset , int shortCount ) { int byteCount = checkGetBounds ( SizeOf.SHORT , dst.length , dstOffset , shortCount ) ; this . block.peekShortArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , shortCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void put ( long [ ] src , int srcOffset , int longCount ) { int byteCount = checkPutBounds ( SizeOf.LONG , src.length , srcOffset , longCount ) ; this . block.pokeLongArray ( ( ( offset ) + ( position ) ) , src , srcOffset , longCount , order.needsSwap ) ; position += byteCount ; }
Source:
private static void edgeSplitSuccessors ( com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { for ( com.android.jack.ir.ast.cfg.JBasicBlock block : cfg.getInternalBlocksUnordered ( ) ) { for ( com.android.jack.ir.ast.cfg.JBasicBlock succ : block.getSuccessors ( ) ) { if ( com.android.jack.transformations.ssa.SsaBasicBlockSplitter.needsNewSuccessor ( block , succ ) ) { succ.split ( 0 ) ; } } } }

Target:
private static void edgeSplitSuccessors ( com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { for ( com.android.jack.ir.ast.cfg.JBasicBlock block : cfg.getInternalBlocksUnordered ( ) ) { for ( com.android.jack.ir.ast.cfg.JBasicBlock succ : block.getSuccessors ( ) ) { if ( com.android.jack.transformations.ssa.SsaBasicBlockSplitter.needsNewSuccessor ( block , succ ) ) { if ( ( succ instanceof com.android.jack.ir.ast.cfg.JCatchBasicBlock ) || ( succ instanceof com.android.jack.ir.ast.cfg.JCaseBasicBlock ) ) { block.split ( ( - 1 ) ) ; } else { succ.split ( 0 ) ; } } } } }
Source:
private boolean contentEquals ( byte [ ] otherBytes , int otherOffset , int n ) { for ( int i = 0 ; i < n ; ++ i ) { if ( ( bytes [ ( ( offset ) + i ) ] ) != ( otherBytes [ ( otherOffset + i ) ] ) ) { return false ; } } return true ; }

Target:
private boolean regionMatches ( byte [ ] otherBytes , int otherOffset , int n ) { for ( int i = 0 ; i < n ; ++ i ) { if ( ( bytes [ ( ( offset ) + i ) ] ) != ( otherBytes [ ( otherOffset + i ) ] ) ) { return false ; } } return true ; }
Source:
public android.content.pm.ResolveInfo resolveIntent ( android.content.Intent intent , java.lang.String resolvedType , int flags ) { java.util.List < android.content.pm.ResolveInfo > query = queryIntentActivities ( intent , resolvedType , flags ) ; return chooseBestActivity ( intent , resolvedType , flags , query ) ; }

Target:
public java.util.List < android.content.pm.ResolveInfo > queryIntent ( android.content.Intent intent , java.lang.String resolvedType , int flags , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return null ; mFlags = flags ; return super . queryIntent ( intent , resolvedType , ( ( flags & ( android.content.pm.PackageManager.MATCH_DEFAULT_ONLY ) ) != 0 ) , userId ) ; }
Source:
public void clearStorage ( ) { if ( mIsRecording ) { java.io.File [ ] files = mBufferDir.listFiles ( ) ; if ( ( files != null ) && ( ( files.length ) > 0 ) ) { for ( java.io.File file : files ) { file.delete ( ) ; } } } }

Target:
private void readFormatStringOptional ( java.io.DataInputStream in , android.media.MediaFormat format , java.lang.String key ) { try { java.lang.String str = readString ( in ) ; if ( str != null ) { format.setString ( key , str ) ; } } catch ( java.io.IOException e ) { } }
Source:
public void test_getByAddress_loopbackIpv4 ( ) throws java.lang.Exception { java.net.InetAddress inetAddress = java.net.InetAddress.getByAddress ( libcore.java.net.InetAddressTest.LOOPBACK4_BYTES ) ; libcore.java.net.InetAddressTest.assertEquals ( libcore.java.net.InetAddressTest.LOOPBACK4_BYTES , "localhost" , inetAddress ) ; assertTrue ( inetAddress.isLoopbackAddress ( ) ) ; }

Target:
public void test_getAllByName_localhost ( ) throws java.lang.Exception { java.net.InetAddress [ ] inetAddresses = java.net.InetAddress.getAllByName ( "localhost" ) ; org.junit.Assert.assertEquals ( 1 , inetAddresses.length ) ; java.net.InetAddress inetAddress = inetAddresses [ 0 ] ; libcore.java.net.InetAddressTest.checkInetAddress ( libcore.java.net.InetAddressTest.LOOPBACK4_BYTES , "localhost" , inetAddress ) ; org.junit.Assert.assertTrue ( inetAddress.isLoopbackAddress ( ) ) ; }
Source:
public static java.nio.MappedByteBuffer map ( java.io.File file , java.nio.channels.FileChannel.MapMode mode ) throws java.io.IOException { if ( ! ( file.exists ( ) ) ) { throw new java.io.FileNotFoundException ( file.toString ( ) ) ; } return com.google.common.io.Files.map ( file , mode , file.length ( ) ) ; }

Target:
public static java.nio.MappedByteBuffer map ( java.io.File file , java.nio.channels.FileChannel.MapMode mode ) throws java.io.IOException { com.google.common.base.Preconditions.checkNotNull ( file ) ; com.google.common.base.Preconditions.checkNotNull ( mode ) ; if ( ! ( file.exists ( ) ) ) { throw new java.io.FileNotFoundException ( file.toString ( ) ) ; } return com.google.common.io.Files.map ( file , mode , file.length ( ) ) ; }
Source:
private boolean haveAnyIdenticalMethods ( proguard.optimize.peephole.Clazz clazz , proguard.optimize.peephole.Clazz targetClass ) { proguard.optimize.peephole.MemberCounter counter = new proguard.optimize.peephole.MemberCounter ( ) ; clazz.methodsAccept ( new proguard.optimize.peephole.MemberAccessFilter ( 0 , ClassConstants.INTERNAL_ACC_ABSTRACT , new proguard.optimize.peephole.SimilarMemberVisitor ( targetClass , true , false , false , false , new proguard.optimize.peephole.MemberAccessFilter ( 0 , ClassConstants.INTERNAL_ACC_ABSTRACT , counter ) ) ) ) ; return ( counter.getCount ( ) ) > 0 ; }

Target:
private boolean haveAnyIdenticalMethods ( proguard.optimize.peephole.Clazz clazz , proguard.optimize.peephole.Clazz targetClass ) { proguard.optimize.peephole.MemberCounter counter = new proguard.optimize.peephole.MemberCounter ( ) ; clazz.methodsAccept ( new proguard.optimize.peephole.MemberAccessFilter ( 0 , ClassConstants.ACC_ABSTRACT , new proguard.optimize.peephole.SimilarMemberVisitor ( targetClass , true , false , false , false , new proguard.optimize.peephole.MemberAccessFilter ( 0 , ClassConstants.ACC_ABSTRACT , counter ) ) ) ) ; return ( counter.getCount ( ) ) > 0 ; }
Source:
static com.android.jack.shrob.spec.ClassSpecification classSpec ( java.lang.String name , boolean hasNameNegator , @ javax.annotation.Nonnull com.android.jack.shrob.spec.ClassTypeSpecification classType , com.android.jack.shrob.spec.AnnotationSpecification annotation , @ javax.annotation.Nonnull com.android.jack.shrob.spec.ModifierSpecification modifier ) { com.android.jack.shrob.spec.NameSpecification nameSpec ; if ( name.equals ( "*" ) ) { nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( "**" ) ; } else { nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( name ) ; } nameSpec.setNegator ( hasNameNegator ) ; com.android.jack.shrob.spec.ClassSpecification classSpec = new com.android.jack.shrob.spec.ClassSpecification ( nameSpec , classType , annotation ) ; classSpec.setModifier ( modifier ) ; return classSpec ; }

Target:
static com.android.jack.shrob.spec.ClassSpecification classSpec ( java.lang.String name , boolean hasNameNegator , @ javax.annotation.Nonnull com.android.jack.shrob.spec.ClassTypeSpecification classType , com.android.jack.shrob.spec.AnnotationSpecification annotation , @ javax.annotation.Nonnull com.android.jack.shrob.spec.ModifierSpecification modifier ) { com.android.jack.shrob.spec.NameSpecification nameSpec ; if ( name.equals ( "*" ) ) { nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( "**" , com.android.jack.shrob.proguard.GrammarActions.FilterSeparator.CLASS ) ; } else { nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( name , com.android.jack.shrob.proguard.GrammarActions.FilterSeparator.CLASS ) ; } nameSpec.setNegator ( hasNameNegator ) ; com.android.jack.shrob.spec.ClassSpecification classSpec = new com.android.jack.shrob.spec.ClassSpecification ( nameSpec , classType , annotation ) ; classSpec.setModifier ( modifier ) ; return classSpec ; }
Source:
public void testAesCbcHmacSha512Udp4UdpEncap ( ) 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.IPV4_LOOPBACK , crypt , auth , true , 1 , false ) ; }

Target:
public void testAesGcm96Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.AEAD_KEY , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , null , authCrypt , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , null , authCrypt , false , 1 , true ) ; }
Source:
private void dumpCallTimes ( ) { java.lang.String action ; java.lang.System.out.format ( "id thread global start,end method\n" ) ; for ( com.android.traceview.Call call : mCallList ) { if ( ( call.getMethodAction ( ) ) == 0 ) { action = "+" ; } else { action = " " ; } long callTime = call.mThreadStartTime ; java.lang.System.out.format ( "%2d %6d %8d %8d %s %s\n" , call.getThreadId ( ) , callTime , call.mGlobalStartTime , call.mGlobalEndTime , action , call.getMethodData ( ) . getName ( ) ) ; } }

Target:
private void dumpCallTimes ( ) { java.lang.System.out.print ( "\nCall Times\n" ) ; java.lang.System.out.print ( "id t-start t-end g-start g-end excl. incl. method\n" ) ; for ( com.android.traceview.Call call : mCallList ) { java.lang.System.out.format ( "%2d %8d %8d %8d %8d %8d %8d %s\n" , call.getThreadId ( ) , call.mThreadStartTime , call.mThreadEndTime , call.mGlobalStartTime , call.mGlobalEndTime , call.mExclusiveCpuTime , call.mInclusiveCpuTime , call.getMethodData ( ) . getName ( ) ) ; } }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { if ( android.telephony.CellIdentityTdscdma.DBG ) log ( ( "writeToParcel(Parcel, int): " + ( toString ( ) ) ) ) ; super . writeToParcel ( dest , android.telephony.TYPE_TDSCDMA ) ; dest.writeInt ( mLac ) ; dest.writeInt ( mCid ) ; dest.writeInt ( mCpid ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { if ( android.telephony.CellIdentityTdscdma.DBG ) log ( ( "writeToParcel(Parcel, int): " + ( toString ( ) ) ) ) ; super . writeToParcel ( dest , android.telephony.TYPE_TDSCDMA ) ; dest.writeInt ( mLac ) ; dest.writeInt ( mCid ) ; dest.writeInt ( mCpid ) ; dest.writeString ( mAlphaLong ) ; dest.writeString ( mAlphaShort ) ; }
Source:
void hangupAllConnections ( com.android.internal.telephony.cdma.CdmaCall call ) throws com.android.internal.telephony.CallStateException { try { int count = call.connections.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { com.android.internal.telephony.cdma.CdmaConnection cn = ( ( com.android.internal.telephony.cdma.CdmaConnection ) ( call.connections.get ( i ) ) ) ; cm.hangupConnection ( cn.getCDMAIndex ( ) , obtainCompleteMessage ( ) ) ; } } catch ( com.android.internal.telephony.CallStateException ex ) { android.util.Log.e ( com.android.internal.telephony.cdma.CdmaCallTracker.LOG_TAG , ( "hangupConnectionByIndex caught " + ex ) ) ; } }

Target:
void hangupAllConnections ( com.android.internal.telephony.cdma.CdmaCall call ) throws com.android.internal.telephony.CallStateException { try { int count = call.connections.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { com.android.internal.telephony.cdma.CdmaConnection cn = ( ( com.android.internal.telephony.cdma.CdmaConnection ) ( call.connections.get ( i ) ) ) ; cm.hangupConnection ( cn.getCDMAIndex ( ) , obtainCompleteMessage ( ) ) ; } } catch ( com.android.internal.telephony.CallStateException ex ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CdmaCallTracker.LOG_TAG , ( "hangupConnectionByIndex caught " + ex ) ) ; } }
Source:
public java.lang.String getDisplayVariant ( java.util.Locale locale ) { if ( ( variantCode.length ( ) ) == 0 ) { return variantCode ; } java.lang.String result = libcore.icu.ICU.getDisplayVariantNative ( toString ( ) , locale.toString ( ) ) ; if ( result == null ) { result = libcore.icu.ICU.getDisplayVariantNative ( toString ( ) , java.util.Locale.getDefault ( ) . toString ( ) ) ; } return result ; }

Target:
public java.lang.String getDisplayVariant ( java.util.Locale locale ) { if ( ( variantCode.length ( ) ) == 0 ) { return variantCode ; } java.lang.String result = libcore.icu.ICU.getDisplayVariantNative ( getIcuLocaleId ( ) , locale.getIcuLocaleId ( ) ) ; if ( result == null ) { result = libcore.icu.ICU.getDisplayVariantNative ( getIcuLocaleId ( ) , java.util.Locale.getDefault ( ) . getIcuLocaleId ( ) ) ; } return result ; }
Source:
public boolean sdpSearch ( android.os.ParcelUuid uuid ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot query remote device sdp records" ) ; return false ; } try { return android.bluetooth.BluetoothDevice.sService.sdpSearch ( this , uuid ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }

Target:
public boolean sdpSearch ( android.os.ParcelUuid uuid ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot query remote device sdp records" ) ; return false ; } try { return service.sdpSearch ( this , uuid ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }
Source:
private static void updateSource ( android.content.Context context , android.telecom.PhoneAccountHandle phone , com.android.voicemail.impl.sms.StatusMessage message ) { if ( OmtpConstants.SUCCESS.equals ( message.getReturnCode ( ) ) ) { com.android.voicemail.impl.sync.VvmAccountManager.addAccount ( context , phone , message ) ; com.android.voicemail.impl.ActivationTask.onSuccess ( context , phone ) ; } else { com.android.voicemail.impl.VvmLog.e ( com.android.voicemail.impl.ActivationTask.TAG , "Visual voicemail not available for subscriber." ) ; } }

Target:
private static void updateSource ( android.content.Context context , android.telecom.PhoneAccountHandle phone , com.android.voicemail.impl.sms.StatusMessage message , com.android.voicemail.impl.OmtpVvmCarrierConfigHelper config ) { if ( OmtpConstants.SUCCESS.equals ( message.getReturnCode ( ) ) ) { com.android.voicemail.impl.sync.VvmAccountManager.addAccount ( context , phone , message ) ; com.android.voicemail.impl.ActivationTask.onSuccess ( context , phone , config ) ; } else { com.android.voicemail.impl.VvmLog.e ( com.android.voicemail.impl.ActivationTask.TAG , "Visual voicemail not available for subscriber." ) ; } }
Source:
public void start ( ) { mBrowsePlayerInfoList.clear ( ) ; mPlayersChanged = false ; android.content.Intent intent = new android.content.Intent ( android.service.media.MediaBrowserService.SERVICE_INTERFACE ) ; mWaiting = mPackageManager.queryIntentServices ( intent , PackageManager.MATCH_ALL ) ; connectNextPlayer ( ) ; }

Target:
private java.lang.String getBrowseServiceName ( java.lang.String packageName ) { java.lang.String browseServiceName = "" ; synchronized ( mBrowsePlayerInfoList ) { int browseInfoID = getBrowseId ( packageName ) ; if ( browseInfoID != ( - 1 ) ) { browseServiceName = mBrowsePlayerInfoList.get ( browseInfoID ) . serviceClass ; } } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "getBrowseServiceName for packageName: " + packageName ) + ", browseServiceName = " ) + browseServiceName ) ) ; return browseServiceName ; }
Source:
public void testGetName_EncodingWithWrongOidButGoodName_MultAVA_RFC1779 ( ) throws java.lang.Exception { java.lang.String dn = "OID.2.16.4.3=B + CN=A" ; javax.security.auth.x500.X500Principal principal = new javax.security.auth.x500.X500Principal ( dn ) ; byte [ ] enc = principal.getEncoded ( ) ; javax.security.auth.x500.X500Principal principal2 = new javax.security.auth.x500.X500Principal ( enc ) ; java.lang.String s = principal2.getName ( javax.security.auth.x500.X500Principal.RFC1779 ) ; assertEquals ( "OID.2.16.4.3=B + CN=A" , s ) ; }

Target:
public void testGetName_EncodingWithWrongOidButGoodName_MultAVA_RFC1779 ( ) throws java.lang.Exception { java.lang.String dn = "OID.2.16.4.3=B + CN=A" ; javax.security.auth.x500.X500Principal principal = new javax.security.auth.x500.X500Principal ( dn ) ; byte [ ] enc = principal.getEncoded ( ) ; javax.security.auth.x500.X500Principal principal2 = new javax.security.auth.x500.X500Principal ( enc ) ; java.lang.String s = principal2.getName ( javax.security.auth.x500.X500Principal.RFC1779 ) ; assertTrue ( ( ( "OID.2.16.4.3=B + CN=A" . equals ( s ) ) || ( "CN=A + OID.2.16.4.3=B" . equals ( s ) ) ) ) ; }
Source:
private void handleTriggeringError ( java.util.Map < java.lang.String , com.google.gct.testing.ConfigurationResult > results , java.lang.String encodedConfigurationInstance , java.lang.String diffProgress ) { java.lang.String previousProgress = getPreviousProgress ( encodedConfigurationInstance ) ; reportNewProgress ( encodedConfigurationInstance , previousProgress , ( previousProgress + diffProgress ) ) ; com.google.gct.testing.ConfigurationResult result = getOrCreateConfigurationResult ( encodedConfigurationInstance , results ) ; result.setTriggeringError ( true ) ; finishedConfigurationInstances.add ( encodedConfigurationInstance ) ; }

Target:
private void handleTriggeringError ( java.util.Map < java.lang.String , com.google.gct.testing.ConfigurationResult > results , java.lang.String encodedConfigurationInstance , java.lang.String newProgress ) { reportNewProgress ( encodedConfigurationInstance , newProgress ) ; com.google.gct.testing.ConfigurationResult result = getOrCreateConfigurationResult ( encodedConfigurationInstance , results ) ; result.setTriggeringError ( true ) ; finishedConfigurationInstances.add ( encodedConfigurationInstance ) ; }
Source:
public long getAppDataInode ( java.lang.String uuid , java.lang.String packageName , int userId , int flags ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return - 1 ; try { return mInstalld.getAppDataInode ( uuid , packageName , userId , flags ) ; } catch ( java.lang.Exception e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }

Target:
public long createAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , int appId , java.lang.String seInfo , int targetSdkVersion ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return - 1 ; try { return mInstalld.createAppData ( uuid , packageName , userId , flags , appId , seInfo , targetSdkVersion ) ; } catch ( java.lang.Exception e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void addSpeedStepTimes ( long [ ] values ) { for ( int i = 0 ; ( i < ( mSpeedBins.length ) ) && ( i < ( values.length ) ) ; i ++ ) { mSpeedBins [ i ] . addCountLocked ( values [ i ] ) ; } }

Target:
public void addSpeedStepTimes ( long [ ] values ) { for ( int i = 0 ; ( i < ( mSpeedBins.length ) ) && ( i < ( values.length ) ) ; i ++ ) { mSpeedBins [ i ] . addCountAtomic ( values [ i ] ) ; } }
Source:
private static void asssertContextMenuContainsItemWithEnabledState ( java.lang.String itemLabel , boolean enabled ) { android.widget.espresso.ContextMenuUtils.onContextMenu ( ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( org.hamcrest.Matchers.allOf ( android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( com.android.internal.view.menu.ListMenuItemView.class ) , ( enabled ? android.support.test.espresso.matcher.ViewMatchers.isEnabled ( ) : org.hamcrest.Matchers.not ( android.support.test.espresso.matcher.ViewMatchers.isEnabled ( ) ) ) , android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( itemLabel ) ) ) ) ) ) ; }

Target:
private static void asssertContextMenuContainsItemWithEnabledState ( java.lang.String itemLabel , boolean enabled ) { android.widget.espresso.ContextMenuUtils.onContextMenu ( ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.widget.espresso.ContextMenuUtils.getVisibleMenuItemMatcher ( itemLabel , enabled ) ) ) ) ; }
Source:
public java.util.List < com.android.resources.ResourceType > getResourceTypes ( ) { update ( ) ; if ( ( mResourceTypeList ) == null ) { java.util.Set < com.android.resources.ResourceType > keys = mResourceItems.keySet ( ) ; mResourceTypeList = new java.util.ArrayList < com.android.resources.ResourceType > ( ) ; mResourceTypeList.addAll ( keys ) ; mResourceTypeList = java.util.Collections.unmodifiableList ( mResourceTypeList ) ; } return mResourceTypeList ; }

Target:
protected void dispose ( ) { getFolder ( ) . getRepository ( ) . removeFile ( mResourceTypeList , this ) ; }
Source:
public void answer ( java.lang.String callId ) { mHandler.obtainMessage ( android.telecom.ConnectionService.MSG_ANSWER , callId ) . sendToTarget ( ) ; }

Target:
public void splitFromConference ( java.lang.String callId , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , android.telecom.ConnectionService.SESSION_SPLIT_CONFERENCE ) ; try { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = callId ; args.arg2 = android.telecom.Log.createSubsession ( ) ; mHandler.obtainMessage ( android.telecom.ConnectionService.MSG_SPLIT_FROM_CONFERENCE , args ) . sendToTarget ( ) ; } finally { android.telecom.Log.endSession ( ) ; } }
Source:
public boolean processMessage ( android.os.Message message ) { logStateAndMessage ( message , this ) ; switch ( message.what ) { case com.android.server.wifi.WifiStateMachine.CMD_AUTO_CONNECT : case com.android.server.wifi.WifiStateMachine.CMD_AUTO_ROAM : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DISCARD ; break ; case android.net.wifi.WifiManager.SAVE_NETWORK : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; case WifiMonitor.NETWORK_DISCONNECTION_EVENT : reportConnectionAttemptEnd ( WifiMetrics.ConnectionEvent.FAILURE_NETWORK_DISCONNECTION , WifiMetricsProto.ConnectionEvent.HLF_NONE ) ; return NOT_HANDLED ; case com.android.server.wifi.WifiStateMachine.CMD_SET_HIGH_PERF_MODE : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; case com.android.server.wifi.WifiStateMachine.CMD_START_SCAN : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; default : return NOT_HANDLED ; } return HANDLED ; }

Target:
public boolean processMessage ( android.os.Message message ) { logStateAndMessage ( message , this ) ; switch ( message.what ) { case com.android.server.wifi.WifiStateMachine.CMD_START_CONNECT : case com.android.server.wifi.WifiStateMachine.CMD_START_ROAM : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DISCARD ; break ; case android.net.wifi.WifiManager.SAVE_NETWORK : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; case WifiMonitor.NETWORK_DISCONNECTION_EVENT : reportConnectionAttemptEnd ( WifiMetrics.ConnectionEvent.FAILURE_NETWORK_DISCONNECTION , WifiMetricsProto.ConnectionEvent.HLF_NONE ) ; return NOT_HANDLED ; case com.android.server.wifi.WifiStateMachine.CMD_SET_HIGH_PERF_MODE : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; case com.android.server.wifi.WifiStateMachine.CMD_START_SCAN : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; default : return NOT_HANDLED ; } return HANDLED ; }
Source:
private void maybeLogMessage ( com.android.internal.util.State state , int what ) { if ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.DBG ) { android.util.Log.d ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , ( ( ( state.getName ( ) ) + " got " ) + ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.sMagicDecoderRing.get ( what , java.lang.Integer.toString ( what ) ) ) ) ) ; } }

Target:
private void maybeLogMessage ( com.android.internal.util.State state , int what ) { if ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.DBG ) { android.util.Log.d ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , ( ( ( ( ( state.getName ( ) ) + " got " ) + ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.sMagicDecoderRing.get ( what , java.lang.Integer.toString ( what ) ) ) ) + ", Iface = " ) + ( mIfaceName ) ) ) ; } }
Source:
public void testDisableWifiFromSoftApModeState ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; mWifiStateMachinePrime.disableWifi ( ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "WifiDisabled" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; }

Target:
public void testDisableWifiFromSoftApModeState ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( null ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachinePrimeTest.SOFT_AP_MODE_STATE_STRING , mWifiStateMachinePrime.getCurrentMode ( ) ) ; mWifiStateMachinePrime.disableWifi ( ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachinePrimeTest.WIFI_DISABLED_STATE_STRING , mWifiStateMachinePrime.getCurrentMode ( ) ) ; }
Source:
public long connectivityGetRxBytesForDevice ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "subscriberId" ) java.lang.String subscriberId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "startTime" ) java.lang.Long startTime , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "endTime" ) java.lang.Long endTime , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "connType" ) java.lang.Integer connType ) throws android.os.RemoteException , java.lang.SecurityException { if ( connType == null ) connType = android.net.ConnectivityManager.TYPE_MOBILE ; android.app.usage.NetworkStats.Bucket bucket = mNetStatsManager.querySummaryForDevice ( connType , subscriberId , startTime , endTime ) ; return bucket.getRxBytes ( ) ; }

Target:
public long connectivityQuerySummaryForDeviceRxBytes ( java.lang.Integer connType , java.lang.String subscriberId , java.lang.Long startTime , java.lang.Long endTime ) throws android.os.RemoteException , java.lang.SecurityException { android.app.usage.NetworkStats.Bucket bucket = mNetStatsManager.querySummaryForDevice ( connType , subscriberId , startTime , endTime ) ; return bucket.getRxBytes ( ) ; }
Source:
public java.lang.String getName ( ) { java.lang.String name = zipEntry.getName ( ) . replace ( java.io.File.separatorChar , ClassConstants.INTERNAL_PACKAGE_SEPARATOR ) ; int length = name.length ( ) ; return ( length > 0 ) && ( ( name.charAt ( ( length - 1 ) ) ) == ( proguard.classfile.ClassConstants.INTERNAL_PACKAGE_SEPARATOR ) ) ? name.substring ( 0 , ( length - 1 ) ) : name ; }

Target:
public java.lang.String getName ( ) { java.lang.String name = zipEntry.getName ( ) . replace ( java.io.File.separatorChar , ClassConstants.PACKAGE_SEPARATOR ) ; int length = name.length ( ) ; return ( length > 0 ) && ( ( name.charAt ( ( length - 1 ) ) ) == ( proguard.classfile.ClassConstants.PACKAGE_SEPARATOR ) ) ? name.substring ( 0 , ( length - 1 ) ) : name ; }
Source:
void windowAttached ( ) { mContext.registerReceiver ( mMediaButtonReceiver , mReceiverFilter ) ; mPendingIntent = android.app.PendingIntent.getBroadcast ( mContext , 0 , mIntent , PendingIntent.FLAG_CANCEL_CURRENT ) ; mRemoteControl = new android.media.RemoteControlClient ( mPendingIntent ) ; mRemoteControl.setOnGetPlaybackPositionListener ( this ) ; mRemoteControl.setPlaybackPositionUpdateListener ( this ) ; }

Target:
void windowAttached ( ) { mContext.registerReceiver ( mMediaButtonReceiver , mReceiverFilter ) ; mPendingIntent = android.app.PendingIntent.getBroadcast ( mContext , 0 , mIntent , PendingIntent.FLAG_CANCEL_CURRENT ) ; mRemoteControl = new android.media.RemoteControlClient ( mPendingIntent ) ; mRemoteControl.setOnGetPlaybackPositionListener ( mGetPlaybackPositionListener ) ; mRemoteControl.setPlaybackPositionUpdateListener ( mPlaybackPositionUpdateListener ) ; }
Source:
public void test_getAlgorithm ( ) throws java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException { if ( ! ( tests.api.javax.net.ssl.KeyManagerFactory1Test.DEFSupported ) ) fail ( tests.api.javax.net.ssl.KeyManagerFactory1Test.NotSupportedMsg ) ; assertEquals ( "Incorrect algorithm" , tests.api.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm , javax.net.ssl.KeyManagerFactory.getInstance ( tests.api.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm ) . getAlgorithm ( ) ) ; assertEquals ( "Incorrect algorithm" , tests.api.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm , javax.net.ssl.KeyManagerFactory.getInstance ( tests.api.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm , tests.api.javax.net.ssl.KeyManagerFactory1Test.defaultProviderName ) . getAlgorithm ( ) ) ; assertEquals ( "Incorrect algorithm" , tests.api.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm , javax.net.ssl.KeyManagerFactory.getInstance ( tests.api.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm , tests.api.javax.net.ssl.KeyManagerFactory1Test.defaultProvider ) . getAlgorithm ( ) ) ; }

Target:
public void test_getAlgorithm ( ) throws java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException { if ( ! ( org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.DEFSupported ) ) fail ( org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.NotSupportedMsg ) ; assertEquals ( "Incorrect algorithm" , org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm , javax.net.ssl.KeyManagerFactory.getInstance ( org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm ) . getAlgorithm ( ) ) ; assertEquals ( "Incorrect algorithm" , org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm , javax.net.ssl.KeyManagerFactory.getInstance ( org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm , org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.defaultProviderName ) . getAlgorithm ( ) ) ; assertEquals ( "Incorrect algorithm" , org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm , javax.net.ssl.KeyManagerFactory.getInstance ( org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm , org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.defaultProvider ) . getAlgorithm ( ) ) ; }
Source:
public void testGetExtensionFromMimeType ( ) { assertEquals ( "png" , mMimeTypeMap.getExtensionFromMimeType ( "image/png" ) ) ; assertEquals ( "zip" , mMimeTypeMap.getExtensionFromMimeType ( "application/zip" ) ) ; assertNull ( mMimeTypeMap.getExtensionFromMimeType ( "some_random_string" ) ) ; assertNull ( mMimeTypeMap.getExtensionFromMimeType ( null ) ) ; assertNull ( mMimeTypeMap.getExtensionFromMimeType ( "" ) ) ; }

Target:
public void testGetExtensionFromMimeType ( ) { assertEquals ( "mp3" , mMimeTypeMap.getExtensionFromMimeType ( "audio/mpeg" ) ) ; assertEquals ( "png" , mMimeTypeMap.getExtensionFromMimeType ( "image/png" ) ) ; assertEquals ( "zip" , mMimeTypeMap.getExtensionFromMimeType ( "application/zip" ) ) ; assertNull ( mMimeTypeMap.getExtensionFromMimeType ( "some_random_string" ) ) ; assertNull ( mMimeTypeMap.getExtensionFromMimeType ( null ) ) ; assertNull ( mMimeTypeMap.getExtensionFromMimeType ( "" ) ) ; }
Source:
private static java.util.Map < java.lang.String , java.lang.String > getAttributeInjectionMap ( int versionCode , @ com.android.annotations.Nullable java.lang.String versionName , @ com.android.annotations.Nullable java.lang.String minSdkVersion , int targetSdkVersion ) { java.util.Map < java.lang.String , java.lang.String > attributeInjection = com.google.common.collect.Maps.newHashMap ( ) ; if ( versionCode != ( - 1 ) ) { attributeInjection.put ( "/manifest|http://schemas.android.com/apk/res/android versionCode" , java.lang.Integer.toString ( versionCode ) ) ; } if ( versionName != null ) { attributeInjection.put ( "/manifest|http://schemas.android.com/apk/res/android versionName" , versionName ) ; } if ( minSdkVersion != null ) { attributeInjection.put ( "/manifest/uses-sdk|http://schemas.android.com/apk/res/android minSdkVersion" , minSdkVersion ) ; } if ( targetSdkVersion != ( - 1 ) ) { attributeInjection.put ( "/manifest/uses-sdk|http://schemas.android.com/apk/res/android targetSdkVersion" , java.lang.Integer.toString ( targetSdkVersion ) ) ; } return attributeInjection ; }

Target:
private static java.util.Map < java.lang.String , java.lang.String > getAttributeInjectionMap ( int versionCode , @ com.android.annotations.Nullable java.lang.String versionName , @ com.android.annotations.Nullable java.lang.String minSdkVersion , @ com.android.annotations.Nullable java.lang.String targetSdkVersion ) { java.util.Map < java.lang.String , java.lang.String > attributeInjection = com.google.common.collect.Maps.newHashMap ( ) ; if ( versionCode != ( - 1 ) ) { attributeInjection.put ( "/manifest|http://schemas.android.com/apk/res/android versionCode" , java.lang.Integer.toString ( versionCode ) ) ; } if ( versionName != null ) { attributeInjection.put ( "/manifest|http://schemas.android.com/apk/res/android versionName" , versionName ) ; } if ( minSdkVersion != null ) { attributeInjection.put ( "/manifest/uses-sdk|http://schemas.android.com/apk/res/android minSdkVersion" , minSdkVersion ) ; } if ( targetSdkVersion != null ) { attributeInjection.put ( "/manifest/uses-sdk|http://schemas.android.com/apk/res/android targetSdkVersion" , targetSdkVersion ) ; } return attributeInjection ; }
Source:
public boolean setNetworkRSSIStats ( int networkId , int numUserTriggeredWifiDisableLowRSSI , int numUserTriggeredWifiDisableBadRSSI , int numUserTriggeredWifiDisableNotHighRSSI , int numTicksAtLowRSSI , int numTicksAtBadRSSI , int numTicksAtNotHighRSSI ) { android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.numUserTriggeredWifiDisableLowRSSI = numUserTriggeredWifiDisableLowRSSI ; config.numUserTriggeredWifiDisableBadRSSI = numUserTriggeredWifiDisableBadRSSI ; config.numUserTriggeredWifiDisableNotHighRSSI = numUserTriggeredWifiDisableNotHighRSSI ; config.numTicksAtLowRSSI = numTicksAtLowRSSI ; config.numTicksAtBadRSSI = numTicksAtBadRSSI ; config.numTicksAtNotHighRSSI = numTicksAtNotHighRSSI ; return true ; }

Target:
public boolean loadFromUserStoreAfterUnlockOrSwitch ( int userId ) { com.android.server.wifi.WifiConfigStoreData storeData ; try { storeData = mWifiConfigStore.switchUserStoreAndRead ( mWifiConfigStore.createUserFile ( userId ) ) ; } catch ( java.io.IOException e ) { android.util.Log.wtf ( com.android.server.wifi.WifiConfigManager.TAG , "Reading from new store failed. All saved private networks are lost!" , e ) ; return false ; } catch ( org.xmlpull.v1.XmlPullParserException e ) { android.util.Log.wtf ( com.android.server.wifi.WifiConfigManager.TAG , ( "XML deserialization of store failed. All saved private networks are" + "lost!" ) , e ) ; return false ; } loadInternalDataFromUserStore ( storeData.getUserConfigurations ( ) , storeData.getDeletedEphemeralSSIDs ( ) ) ; return true ; }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.conscrypt.NativeCrypto.SSL_read ( s , fd , callback , new byte [ 1 ] , 0 , 1 , 0 ) ; org.junit.Assert.fail ( ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_renegotiate ( s ) ; org.junit.Assert.fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_write ( s , fd , callback , new byte [ ] { 42 } , 0 , 1 , 0 ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public void test_with_adjustment ( ) { final java.time.OffsetTime sample = java.time.OffsetTime.of ( 23 , 5 , 0 , 0 , tck.java.time.TCKOffsetTime.OFFSET_PONE ) ; java.time.temporal.TemporalAdjuster adjuster = new java.time.temporal.TemporalAdjuster ( ) { @ java.lang.Override public java.time.temporal.Temporal adjustInto ( java.time.temporal.Temporal dateTime ) { return sample ; } } ; org.testng.Assert.assertEquals ( TEST_11_30_59_500_PONE.with ( adjuster ) , sample ) ; }

Target:
public void test_with_adjustment ( ) { final java.time.OffsetTime sample = java.time.OffsetTime.of ( 23 , 5 , 0 , 0 , tck.java.time.TCKOffsetTime.OFFSET_PONE ) ; java.time.temporal.TemporalAdjuster adjuster = new java.time.temporal.TemporalAdjuster ( ) { @ java.lang.Override public java.time.temporal.Temporal adjustInto ( java.time.temporal.Temporal dateTime ) { return sample ; } } ; org.testng.Assert.assertEquals ( tck.java.time.TCKOffsetTime.TEST_11_30_59_500_PONE.with ( adjuster ) , sample ) ; }
Source:
private void displayRemoteSdkListNoUI ( ) { boolean force = mSdkCommandLine.getFlagForce ( ) ; boolean useHttp = mSdkCommandLine.getFlagNoHttps ( ) ; boolean obsolete = mSdkCommandLine.getFlagObsolete ( ) ; java.lang.String proxyHost = mSdkCommandLine.getParamProxyHost ( ) ; java.lang.String proxyPort = mSdkCommandLine.getParamProxyPort ( ) ; com.android.sdkuilib.internal.repository.UpdateNoWindow upd = new com.android.sdkuilib.internal.repository.UpdateNoWindow ( mOsSdkFolder , mSdkManager , mSdkLog , force , useHttp , proxyHost , proxyPort ) ; upd.listRemotePackages ( obsolete ) ; }

Target:
private void displayRemoteSdkListNoUI ( ) { boolean force = mSdkCommandLine.getFlagForce ( ) ; boolean useHttp = mSdkCommandLine.getFlagNoHttps ( ) ; boolean obsolete = mSdkCommandLine.getFlagObsolete ( ) ; java.lang.String proxyHost = mSdkCommandLine.getParamProxyHost ( ) ; java.lang.String proxyPort = mSdkCommandLine.getParamProxyPort ( ) ; com.android.sdkuilib.internal.repository.SdkUpdaterNoWindow upd = new com.android.sdkuilib.internal.repository.SdkUpdaterNoWindow ( mOsSdkFolder , mSdkManager , mSdkLog , force , useHttp , proxyHost , proxyPort ) ; upd.listRemotePackages ( obsolete ) ; }
Source:
public void onVisibilityChanged ( final android.view.View changedView , final int visibility ) { if ( ( mAwContents ) == null ) return ; if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onVisibilityChanged ( changedView , visibility ) ; } } ) ; return ; } mAwContents.onVisibilityChanged ( changedView , visibility ) ; }

Target:
public void onDetachedFromWindow ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onDetachedFromWindow ( ) ; } } ) ; return ; } mAwContents.onDetachedFromWindow ( ) ; }
Source:
public void enter ( ) { android.telecom.Log.i ( com.android.server.telecom.CallAudioModeStateMachine.LOG_TAG , "Audio focus entering RINGING state" ) ; mAudioManager.requestAudioFocusForCall ( AudioManager.STREAM_RING , AudioManager.AUDIOFOCUS_GAIN_TRANSIENT ) ; if ( ( mMostRecentMode ) == ( android.media.AudioManager.MODE_IN_CALL ) ) { android.telecom.Log.i ( com.android.server.telecom.CallAudioModeStateMachine.LOG_TAG , ( "Transition from IN_CALL -> RINGTONE." + " Resetting to NORMAL first." ) ) ; mAudioManager.setMode ( AudioManager.MODE_NORMAL ) ; } mAudioManager.setMode ( AudioManager.MODE_RINGTONE ) ; mCallAudioManager.stopCallWaiting ( ) ; mCallAudioManager.startRinging ( ) ; mCallAudioManager.setCallAudioRouteFocusState ( CallAudioRouteStateMachine.HAS_FOCUS ) ; }

Target:
public void enter ( ) { android.telecom.Log.i ( com.android.server.telecom.CallAudioModeStateMachine.LOG_TAG , "Audio focus entering RINGING state" ) ; mAudioManager.requestAudioFocusForCall ( AudioManager.STREAM_RING , AudioManager.AUDIOFOCUS_GAIN_TRANSIENT ) ; if ( ( mMostRecentMode ) == ( android.media.AudioManager.MODE_IN_CALL ) ) { android.telecom.Log.i ( com.android.server.telecom.CallAudioModeStateMachine.LOG_TAG , ( "Transition from IN_CALL -> RINGTONE." + " Resetting to NORMAL first." ) ) ; mAudioManager.setMode ( AudioManager.MODE_NORMAL ) ; } mAudioManager.setMode ( AudioManager.MODE_RINGTONE ) ; mCallAudioManager.stopCallWaiting ( ) ; mCallAudioManager.startRinging ( ) ; mCallAudioManager.setCallAudioRouteFocusState ( CallAudioRouteStateMachine.RINGING_FOCUS ) ; }
Source:
public void testAesCbcHmacSha1Tcp4 ( ) 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_SHA1 , getAuthKey ( 160 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }

Target:
public void testAesCbcHmacMd5Udp4 ( ) 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_MD5 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }