auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.objectweb.asm.FieldVisitor visitField ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.Object value ) { handleCodeConstant ( value , "field" ) ; return new org.objectweb.asm.FieldVisitor ( org.objectweb.asm.Opcodes.ASM4 ) { @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return new com.android.build.gradle.tasks.ResourceUsageAnalyzer.UsageVisitor.AnnotationUsageVisitor ( ) ; } } ; }

Target:
public org.objectweb.asm.FieldVisitor visitField ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.Object value ) { handleCodeConstant ( value , "field" ) ; return new org.objectweb.asm.FieldVisitor ( org.objectweb.asm.Opcodes.ASM5 ) { @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return new com.android.build.gradle.tasks.ResourceUsageAnalyzer.UsageVisitor.AnnotationUsageVisitor ( ) ; } } ; }
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 { long time = org.conscrypt.NativeCrypto.SSL_SESSION_get_time ( session ) ; assertTrue ( ( time != 0 ) ) ; assertTrue ( ( time < ( java.lang.System.currentTimeMillis ( ) ) ) ) ; 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 { java.lang.String a = org.conscrypt.NativeCrypto.SSL_SESSION_cipher ( session ) ; assertTrue ( NativeCrypto.OPENSSL_TO_STANDARD_CIPHER_SUITES.containsKey ( a ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public java.io.ObjectInputStream.GetField readFields ( ) throws java.io.IOException , java.lang.ClassNotFoundException { if ( ( curContext ) == null ) { throw new java.io.NotActiveException ( "not in call to readObject" ) ; } java.lang.Object curObj = curContext.getObj ( ) ; java.io.ObjectStreamClass curDesc = curContext.getDesc ( ) ; bin.setBlockDataMode ( false ) ; java.io.ObjectInputStream.GetFieldImpl getField = new java.io.ObjectInputStream.GetFieldImpl ( curDesc ) ; getField.readFields ( ) ; bin.setBlockDataMode ( true ) ; if ( ! ( curDesc.hasWriteObjectData ( ) ) ) { defaultDataEnd = true ; } return getField ; }

Target:
public java.io.ObjectInputStream.GetField readFields ( ) throws java.io.IOException , java.lang.ClassNotFoundException { java.io.SerialCallbackContext ctx = curContext ; if ( ctx == null ) { throw new java.io.NotActiveException ( "not in call to readObject" ) ; } java.lang.Object curObj = ctx.getObj ( ) ; java.io.ObjectStreamClass curDesc = ctx.getDesc ( ) ; bin.setBlockDataMode ( false ) ; java.io.ObjectInputStream.GetFieldImpl getField = new java.io.ObjectInputStream.GetFieldImpl ( curDesc ) ; getField.readFields ( ) ; bin.setBlockDataMode ( true ) ; if ( ! ( curDesc.hasWriteObjectData ( ) ) ) { defaultDataEnd = true ; } return getField ; }
Source:
public static void main ( java.lang.String [ ] arg ) { com.ibm.icu.dev.test.util.VersionInfoTest test = new com.ibm.icu.dev.test.util.VersionInfoTest ( ) ; try { test.run ( arg ) ; } catch ( java.lang.Exception e ) { test.errln ( "Error testing VersionInfo" ) ; } }

Target:
public void TestEqualsAndHashCode ( ) { com.ibm.icu.util.VersionInfo v1234a = com.ibm.icu.util.VersionInfo.getInstance ( 1 , 2 , 3 , 4 ) ; com.ibm.icu.util.VersionInfo v1234b = com.ibm.icu.util.VersionInfo.getInstance ( 1 , 2 , 3 , 4 ) ; com.ibm.icu.util.VersionInfo v1235 = com.ibm.icu.util.VersionInfo.getInstance ( 1 , 2 , 3 , 5 ) ; assertEquals ( "v1234a and v1234b" , v1234a , v1234b ) ; assertEquals ( "v1234a.hashCode() and v1234b.hashCode()" , v1234a.hashCode ( ) , v1234b.hashCode ( ) ) ; assertNotEquals ( "v1234a and v1235" , v1234a , v1235 ) ; }
Source:
public void testReceive_UnconnectedBufZero ( ) throws java.lang.Exception { assertFalse ( this . channel1.isConnected ( ) ) ; java.nio.ByteBuffer dst = java.nio.ByteBuffer.allocateDirect ( org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.CAPACITY_ZERO ) ; assertNull ( this . channel1.receive ( dst ) ) ; }

Target:
public void testReceive_UnboundBufFull ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; assertFalse ( dc.isConnected ( ) ) ; assertFalse ( dc.socket ( ) . isBound ( ) ) ; java.nio.ByteBuffer dst = java.nio.ByteBuffer.allocateDirect ( org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.CAPACITY_ONE ) ; dst.put ( ( ( byte ) ( 88 ) ) ) ; assertEquals ( dst.position ( ) , dst.limit ( ) ) ; assertNull ( dc.receive ( dst ) ) ; }
Source:
void reject ( com.android.server.telecom.Call call , boolean rejectWithMessage , java.lang.String message ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "reject" ) ) ) { try { logOutgoing ( "reject %s" , callId ) ; if ( rejectWithMessage && ( call.can ( Connection.CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION ) ) ) { mServiceInterface.rejectWithMessage ( callId , message ) ; } else { mServiceInterface.reject ( callId ) ; } } catch ( android.os.RemoteException e ) { } } }

Target:
void answer ( com.android.server.telecom.Call call , int videoState ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "answer" ) ) ) { try { logOutgoing ( "answer %s %d" , callId , videoState ) ; if ( android.telecom.VideoProfile.isAudioOnly ( videoState ) ) { mServiceInterface.answer ( callId , android.telecom.Log.getExternalSession ( ) ) ; } else { mServiceInterface.answerVideo ( callId , videoState , android.telecom.Log.getExternalSession ( ) ) ; } } catch ( android.os.RemoteException e ) { } } }
Source:
public void validatePolicyWithRoamingPartnerWithoutFQDN ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; android.net.wifi.hotspot2.pps.Policy.RoamingPartner partner = new android.net.wifi.hotspot2.pps.Policy.RoamingPartner ( ) ; partner.fqdnExactMatch = true ; partner.priority = 12 ; partner.countries = "us,jp" ; policy.preferredRoamingPartnerList.add ( partner ) ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }

Target:
public void validatePolicyWithRoamingPartnerWithoutFQDN ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; android.net.wifi.hotspot2.pps.Policy.RoamingPartner partner = new android.net.wifi.hotspot2.pps.Policy.RoamingPartner ( ) ; partner.setFqdnExactMatch ( true ) ; partner.setPriority ( 12 ) ; partner.setCountries ( "us,jp" ) ; policy.getPreferredRoamingPartnerList ( ) . add ( partner ) ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }
Source:
public void testSerialization ( ) throws java.lang.Exception { java.util.Currency usd = java.util.Currency.getInstance ( "USD" ) ; java.lang.String actual = libcore.util.SerializationTester.serializeHex ( usd ) ; java.lang.String expected = "ACED0005737200126A6176612E7574696C2E43757272656E6379FDCD934A5911A91F02" + ( "00014C000C63757272656E6379436F64657400124C6A6176612F6C616E672F537472696E673B7870" + "740003555344" ) ; assertEquals ( expected , actual ) ; java.util.Currency deserializedUsd = ( ( java.util.Currency ) ( libcore.util.SerializationTester.deserializeHex ( expected ) ) ) ; assertSame ( "Currency objects should be singletons" , usd , deserializedUsd ) ; }

Target:
public void testSerialization ( ) throws java.lang.Exception { java.util.Currency usd = java.util.Currency.getInstance ( "USD" ) ; java.lang.String actual = libcore.libcore.util.SerializationTester.serializeHex ( usd ) ; java.lang.String expected = "ACED0005737200126A6176612E7574696C2E43757272656E6379FDCD934A5911A91F02" + ( "00014C000C63757272656E6379436F64657400124C6A6176612F6C616E672F537472696E673B7870" + "740003555344" ) ; assertEquals ( expected , actual ) ; java.util.Currency deserializedUsd = ( ( java.util.Currency ) ( libcore.libcore.util.SerializationTester.deserializeHex ( expected ) ) ) ; assertSame ( "Currency objects should be singletons" , usd , deserializedUsd ) ; }
Source:
private com.android.jill.frontend.java.Variable getVariableWithLocalIndex ( @ javax.annotation.Nonnegative int localIdx , @ javax.annotation.Nonnull java.lang.String id , @ javax.annotation.Nonnull java.lang.String name , @ javax.annotation.Nonnull org.objectweb.asm.Type type , @ javax.annotation.CheckForNull java.lang.String signature , int modifier ) { com.android.jill.frontend.java.Variable var = nameToVar.get ( id ) ; if ( var == null ) { var = new com.android.jill.frontend.java.Variable ( id , name , type , signature , localIdx , modifier ) ; nameToVar.put ( id , var ) ; } return var ; }

Target:
private com.android.jill.frontend.java.Variable getVariableWithLocalIndex ( @ javax.annotation.Nonnegative int localIdx , @ javax.annotation.Nonnull java.lang.String id , @ javax.annotation.Nonnull java.lang.String name , @ javax.annotation.Nonnull org.objectweb.asm.Type type , @ javax.annotation.CheckForNull java.lang.String signature ) { com.android.jill.frontend.java.Variable var = nameToVar.get ( id ) ; if ( var == null ) { var = new com.android.jill.frontend.java.Variable ( id , name , type , signature , localIdx , ( ( getLocalVariableNode ( localIdx ) ) == null ) ) ; nameToVar.put ( id , var ) ; } return var ; }
Source:
public void setVoiceMailNumber ( java.lang.String alphaTag , java.lang.String voiceMailNumber , android.os.Message onComplete ) { android.os.Message resp ; mVmNumber = voiceMailNumber ; resp = obtainMessage ( com.android.internal.telephony.cdma.EVENT_SET_VM_NUMBER_DONE , 0 , 0 , onComplete ) ; mIccRecords.setVoiceMailNumber ( alphaTag , mVmNumber , resp ) ; }

Target:
public void setVoiceMailNumber ( java.lang.String alphaTag , java.lang.String voiceMailNumber , android.os.Message onComplete ) { android.os.Message resp ; mVmNumber = voiceMailNumber ; resp = obtainMessage ( com.android.internal.telephony.cdma.EVENT_SET_VM_NUMBER_DONE , 0 , 0 , onComplete ) ; com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; if ( r != null ) { r.setVoiceMailNumber ( alphaTag , mVmNumber , resp ) ; } }
Source:
public void visitMultiANewArrayInsn ( final java.lang.String desc , final int dims ) { org.objectweb.asm.Item i = cw.newClassItem ( desc ) ; if ( ( currentBlock ) != null ) { if ( ( compute ) == ( org.objectweb.asm.MethodWriter.FRAMES ) ) { currentBlock.frame.execute ( Opcodes.MULTIANEWARRAY , dims , cw , i ) ; } else { stackSize += 1 - dims ; } } code.put12 ( Opcodes.MULTIANEWARRAY , i.index ) . putByte ( dims ) ; }

Target:
public void visitMultiANewArrayInsn ( final java.lang.String desc , final int dims ) { lastCodeOffset = code.length ; org.objectweb.asm.Item i = cw.newClassItem ( desc ) ; if ( ( currentBlock ) != null ) { if ( ( compute ) == ( org.objectweb.asm.MethodWriter.FRAMES ) ) { currentBlock.frame.execute ( Opcodes.MULTIANEWARRAY , dims , cw , i ) ; } else { stackSize += 1 - dims ; } } code.put12 ( Opcodes.MULTIANEWARRAY , i.index ) . putByte ( dims ) ; }
Source:
private int getPhoneTypeFromProperty ( ) { return getPhoneTypeFromProperty ( android.telephony.TelephonyManager.getDefaultPhone ( ) ) ; }

Target:
public int getCurrentPhoneTypeForSlot ( int slotIndex ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getActivePhoneTypeForSlot ( slotIndex ) ; } else { return getPhoneTypeFromProperty ( slotIndex ) ; } } catch ( android.os.RemoteException ex ) { return getPhoneTypeFromProperty ( slotIndex ) ; } catch ( java.lang.NullPointerException ex ) { return getPhoneTypeFromProperty ( slotIndex ) ; } }
Source:
public void getNetworkSelectionMode ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getNeighboringCids ( android.os.Message response , android.os.WorkSource workSource ) { workSource = getDeafultWorkSourceIfInvalid ( workSource ) ; com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( RILConstants.RIL_REQUEST_GET_NEIGHBORING_CELL_IDS , response , workSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
public void testSetValues015_ThreadGroup ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value actualValue = getStaticFieldValue ( classID , "THREAD_GROUP_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value expectedValue = getStaticFieldValue ( classID , "THREAD_GROUP_PARAM_VALUE_TO_SET" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointThreadGroup" , StackTrace002Debuggee.THREAD_GROUP_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointThreadGroup" ) ; methodInfo.addVariable ( "param" , actualValue , expectedValue ) ; runStackFrameTest ( tester ) ; }

Target:
public void testSetValues009_ObjectWithException ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = getStaticFieldValue ( classID , "OBJECT_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value newValue = getStaticFieldValue ( classID , "OBJECT_PARAM_VALUE_TO_SET" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.OBJECT_WITH_EXCEPTION_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointObjectWithException" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue , newValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointObjectWithException" ) ; methodInfo.addVariable ( "local" , oldValue , newValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
private static < K , V > com.google.common.collect.SortedMapDifference < K , V > sortedMapDifference ( boolean areEqual , java.util.SortedMap < K , V > onlyOnLeft , java.util.SortedMap < K , V > onlyOnRight , java.util.SortedMap < K , V > onBoth , java.util.SortedMap < K , com.google.common.collect.MapDifference.ValueDifference < V > > differences ) { return new com.google.common.collect.Maps.SortedMapDifferenceImpl < K , V > ( areEqual , java.util.Collections.unmodifiableSortedMap ( onlyOnLeft ) , java.util.Collections.unmodifiableSortedMap ( onlyOnRight ) , java.util.Collections.unmodifiableSortedMap ( onBoth ) , java.util.Collections.unmodifiableSortedMap ( differences ) ) ; }

Target:
private static < K , V > java.util.Map < K , V > unmodifiableMap ( java.util.Map < K , V > map ) { if ( map instanceof java.util.SortedMap ) { return java.util.Collections.unmodifiableSortedMap ( ( ( java.util.SortedMap < K , ? extends V > ) ( map ) ) ) ; } else { return java.util.Collections.unmodifiableMap ( map ) ; } }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.used1 ) ; com.android.tests.shrink.ResourceReferences.referenceResources ( this ) ; java.lang.System.out.println ( R.layout.used7 ) ; com.android.tests.shrink.AnnotationInflation.createView ( this , com.android.tests.shrink.RootActivity.ScreenType1.class , null ) ; com.android.tests.shrink.AnnotationInflation.createView ( this , com.android.tests.shrink.RootActivity.ScreenType2.class , null ) ; for ( int id : com.android.tests.shrink.RootActivity.layout_ids ) { java.lang.System.out.println ( id ) ; } }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.used1 ) ; com.android.tests.shrink.ResourceReferences.referenceResources ( this ) ; java.lang.System.out.println ( R.layout.used7 ) ; com.android.tests.shrink.AnnotationInflation.createView ( this , com.android.tests.shrink.RootActivity.ScreenType1.class , null ) ; com.android.tests.shrink.AnnotationInflation.createView ( this , com.android.tests.shrink.RootActivity.ScreenType2.class , null ) ; for ( int id : com.android.tests.shrink.RootActivity.layout_ids ) { java.lang.System.out.println ( id ) ; } dynamicResourceNames ( 1 ) ; }
Source:
private static java.lang.String alias ( boolean user , java.security.cert.X509Certificate x , int index ) { java.lang.String prefix = ( user ) ? "user:" : "system:" ; javax.security.auth.x500.X500Principal subject = x.getSubjectX500Principal ( ) ; int intHash = org.conscrypt.NativeCrypto.X509_NAME_hash_old ( subject ) ; java.lang.String strHash = org.conscrypt.IntegralToString.intToHexString ( intHash , false , 8 ) ; return ( ( prefix + strHash ) + '.' ) + index ; }

Target:
private static java.lang.String alias ( boolean user , java.security.cert.X509Certificate x , int index ) { java.lang.String prefix = ( user ) ? "user:" : "system:" ; javax.security.auth.x500.X500Principal subject = x.getSubjectX500Principal ( ) ; int intHash = org.conscrypt.NativeCrypto.X509_NAME_hash_old ( subject ) ; java.lang.String strHash = org.conscrypt.Hex.intToHexString ( intHash , 8 ) ; return ( ( prefix + strHash ) + '.' ) + index ; }
Source:
public static java.util.List < org.jetbrains.plugins.github.api.GithubCommit > getPullRequestCommits ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.api.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user , @ org.jetbrains.annotations.NotNull java.lang.String repo , long id ) throws java.io.IOException { java.lang.String path = ( ( ( ( ( ( "/repos/" + user ) + "/" ) + repo ) + "/pulls/" ) + id ) + "/commits?" ) + ( org.jetbrains.plugins.github.api.GithubApiUtil.PER_PAGE ) ; org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubCommit > request = new org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubCommit > ( path , org.jetbrains.plugins.github.api.GithubCommit.class , org.jetbrains.plugins.github.api.GithubCommitRaw [ ] . class ) ; return request.getAll ( auth ) ; }

Target:
public static java.util.List < org.jetbrains.plugins.github.api.GithubCommit > getPullRequestCommits ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.util.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user , @ org.jetbrains.annotations.NotNull java.lang.String repo , long id ) throws java.io.IOException { java.lang.String path = ( ( ( ( ( ( "/repos/" + user ) + "/" ) + repo ) + "/pulls/" ) + id ) + "/commits?" ) + ( org.jetbrains.plugins.github.api.GithubApiUtil.PER_PAGE ) ; org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubCommit > request = new org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubCommit > ( path , org.jetbrains.plugins.github.api.GithubCommit.class , org.jetbrains.plugins.github.api.GithubCommitRaw [ ] . class ) ; return request.getAll ( auth ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String [ ] pkgs = intent.getStringArrayExtra ( Intent.EXTRA_PACKAGES ) ; if ( pkgs != null ) { for ( java.lang.String pkg : pkgs ) { synchronized ( this ) { if ( forceStopPackageLocked ( pkg , ( - 1 ) , false , false , false , false , false , 0 , "query restart" ) ) { setResultCode ( Activity.RESULT_OK ) ; return ; } } } } }

Target:
public synchronized void onEvent ( int event , java.lang.String path ) { notify ( ) ; }
Source:
public void accept ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitable node ) { node.traverse ( this ) ; }

Target:
public void accept ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitable node ) { try { node.traverse ( this ) ; } catch ( java.lang.RuntimeException e ) { throw com.android.jack.ir.ast.JVisitor.wrapException ( node , e ) ; } catch ( java.lang.Error e ) { throw com.android.jack.ir.ast.JVisitor.wrapException ( node , e ) ; } }
Source:
public void setVideoProvider ( com.android.internal.telecom.IVideoProvider videoProvider ) { com.android.server.telecom.Log.v ( this , "setVideoProvider" ) ; if ( videoProvider != null ) { try { mVideoProviderProxy = new com.android.server.telecom.VideoProviderProxy ( mLock , videoProvider , this ) ; } catch ( android.os.RemoteException ignored ) { } } else { mVideoProviderProxy = null ; } mVideoProvider = videoProvider ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onVideoCallProviderChanged ( this ) ; } }

Target:
public void onError ( java.lang.Void request , int code , java.lang.String msg ) { android.telecom.Log.w ( this , "Error obtaining canned SMS responses: %d %s" , code , msg ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( java.lang.reflect.Modifier.toString ( getModifiers ( ) ) ) ; if ( ( result.length ( ) ) != 0 ) { result.append ( ' ' ) ; } libcore.reflect.Types.appendTypeName ( result , getType ( ) ) ; result.append ( ' ' ) ; result.append ( getDeclaringClass ( ) . getName ( ) ) ; result.append ( '.' ) ; result.append ( getName ( ) ) ; return result.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( java.lang.reflect.Modifier.getDeclarationFieldModifiers ( getModifiers ( ) ) ) ; if ( ( result.length ( ) ) != 0 ) { result.append ( ' ' ) ; } libcore.reflect.Types.appendTypeName ( result , getType ( ) ) ; result.append ( ' ' ) ; result.append ( getDeclaringClass ( ) . getName ( ) ) ; result.append ( '.' ) ; result.append ( getName ( ) ) ; return result.toString ( ) ; }
Source:
private void getAdditionalWifiServiceInterfaces ( ) { android.os.IBinder s1 = mFacade.getService ( Context.WIFI_P2P_SERVICE ) ; com.android.server.wifi.p2p.WifiP2pServiceImpl wifiP2pServiceImpl = ( ( com.android.server.wifi.p2p.WifiP2pServiceImpl ) ( IWifiP2pManager.Stub.asInterface ( s1 ) ) ) ; if ( wifiP2pServiceImpl != null ) { mWifiP2pChannel = new com.android.internal.util.AsyncChannel ( ) ; mWifiP2pChannel.connect ( mContext , getHandler ( ) , wifiP2pServiceImpl.getP2pStateMachineMessenger ( ) ) ; } if ( mAwareSupported ) { mWifiAwareManager = mContext.getSystemService ( android.net.wifi.aware.WifiAwareManager.class ) ; } }

Target:
private void getAdditionalWifiServiceInterfaces ( ) { if ( mP2pSupported ) { android.os.IBinder s1 = mFacade.getService ( Context.WIFI_P2P_SERVICE ) ; com.android.server.wifi.p2p.WifiP2pServiceImpl wifiP2pServiceImpl = ( ( com.android.server.wifi.p2p.WifiP2pServiceImpl ) ( IWifiP2pManager.Stub.asInterface ( s1 ) ) ) ; if ( wifiP2pServiceImpl != null ) { mWifiP2pChannel = new com.android.internal.util.AsyncChannel ( ) ; mWifiP2pChannel.connect ( mContext , getHandler ( ) , wifiP2pServiceImpl.getP2pStateMachineMessenger ( ) ) ; } } if ( mAwareSupported ) { mWifiAwareManager = mContext.getSystemService ( android.net.wifi.aware.WifiAwareManager.class ) ; } }
Source:
public void testBroadcastUndeliveredMultiPart ( ) throws java.lang.Exception { replaceInstance ( com.android.internal.telephony.SmsBroadcastUndelivered.class , "instance" , null , null ) ; prepareMultiPartSms ( ) ; mContentProvider.insert ( com.android.internal.telephony.gsm.GsmInboundSmsHandlerTest.sRawUri , mInboundSmsTrackerCVPart1 ) ; mContentProvider.insert ( com.android.internal.telephony.gsm.GsmInboundSmsHandlerTest.sRawUri , mInboundSmsTrackerCVPart2 ) ; doReturn ( mInboundSmsTrackerPart1 ) . doReturn ( mInboundSmsTrackerPart2 ) . when ( mTelephonyComponentFactory ) . makeInboundSmsTracker ( any ( android.database.Cursor.class ) , anyBoolean ( ) ) ; com.android.internal.telephony.SmsBroadcastUndelivered.initialize ( mContext , mGsmInboundSmsHandler , mCdmaInboundSmsHandler ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; verifySmsIntentBroadcasts ( 0 ) ; }

Target:
public void testBroadcastUndeliveredMultiPart ( ) throws java.lang.Exception { replaceInstance ( com.android.internal.telephony.SmsBroadcastUndelivered.class , "instance" , null , null ) ; prepareMultiPartSms ( ) ; mContentProvider.insert ( com.android.internal.telephony.gsm.GsmInboundSmsHandlerTest.sRawUri , mInboundSmsTrackerCVPart1 ) ; mContentProvider.insert ( com.android.internal.telephony.gsm.GsmInboundSmsHandlerTest.sRawUri , mInboundSmsTrackerCVPart2 ) ; org.mockito.Mockito.doReturn ( mInboundSmsTrackerPart1 ) . doReturn ( mInboundSmsTrackerPart2 ) . when ( mTelephonyComponentFactory ) . makeInboundSmsTracker ( org.mockito.Matchers.any ( android.database.Cursor.class ) , org.mockito.Matchers.anyBoolean ( ) ) ; com.android.internal.telephony.SmsBroadcastUndelivered.initialize ( mContext , mGsmInboundSmsHandler , mCdmaInboundSmsHandler ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; verifySmsIntentBroadcasts ( 0 ) ; }
Source:
public void copyFromUnchecked ( short [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } }

Target:
public void copyFrom ( short [ ] d ) { validateIsInt16 ( ) ; copyFromUnchecked ( d , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
public void onScheduledRecordingStatusChanged ( com.android.tv.dvr.ScheduledRecording ... scheduledRecordings ) { com.android.tv.data.Channel currentChannel = mMainActivity.getCurrentChannel ( ) ; if ( ( currentChannel != null ) && ( isShown ( ) ) ) { for ( com.android.tv.dvr.ScheduledRecording schedule : scheduledRecordings ) { if ( ( schedule.getChannelId ( ) ) == ( currentChannel.getId ( ) ) ) { updateRecordButton ( ) ; break ; } } } }

Target:
public void onScheduledRecordingStatusChanged ( com.android.tv.dvr.data.ScheduledRecording ... scheduledRecordings ) { com.android.tv.data.Channel currentChannel = mMainActivity.getCurrentChannel ( ) ; if ( ( currentChannel != null ) && ( isShown ( ) ) ) { for ( com.android.tv.dvr.data.ScheduledRecording schedule : scheduledRecordings ) { if ( ( schedule.getChannelId ( ) ) == ( currentChannel.getId ( ) ) ) { updateRecordButton ( ) ; break ; } } } }
Source:
public void test_init_and_run_for_SimpleTest2_limitting_to_1method_with_both_init_and_run_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; java.lang.String actionName = "actionName" ; runner.init ( monitor , actionName , "testSimple3" , target , skipPastReference , testEnvironment , 0 , false ) ; runner.run ( "" , null , new java.lang.String [ ] { "testSimple2" } ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( runner , ( ( target.getName ( ) ) + "#testSimple2" ) , actionName ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_run_for_SimpleTest2_limiting_to_1method_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; java.lang.String actionName = "actionName" ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , actionName , null , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , new java.lang.String [ ] { "testSimple2" } ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( runner , ( ( target.getName ( ) ) + "#testSimple2" ) , actionName ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }
Source:
public void startElement ( java.lang.String uri , java.lang.String localName , java.lang.String qName , org.xml.sax.Attributes atts ) { tests.api.javax.xml.parsers.SAXParserFactoryTest.el.add ( qName ) ; if ( ! ( uri.equals ( "" ) ) ) tests.api.javax.xml.parsers.SAXParserFactoryTest.ns.put ( qName , uri ) ; for ( int i = 0 ; i < ( atts.getLength ( ) ) ; i ++ ) { tests.api.javax.xml.parsers.SAXParserFactoryTest.attr.put ( atts.getQName ( i ) , atts.getValue ( i ) ) ; } }

Target:
public void startElement ( java.lang.String uri , java.lang.String localName , java.lang.String qName , org.xml.sax.Attributes atts ) { org.apache.harmony.tests.javax.xml.parsers.SAXParserFactoryTest.el.add ( qName ) ; if ( ! ( uri.equals ( "" ) ) ) org.apache.harmony.tests.javax.xml.parsers.SAXParserFactoryTest.ns.put ( qName , uri ) ; for ( int i = 0 ; i < ( atts.getLength ( ) ) ; i ++ ) { org.apache.harmony.tests.javax.xml.parsers.SAXParserFactoryTest.attr.put ( atts.getQName ( i ) , atts.getValue ( i ) ) ; } }
Source:
public V remove ( java.lang.Object key ) { if ( ! ( isValidKeyType ( key ) ) ) { return null ; } int keyOrdinal = ( ( java.lang.Enum ) ( key ) ) . ordinal ( ) ; if ( hasMapping [ keyOrdinal ] ) { hasMapping [ keyOrdinal ] = false ; ( mappingsCount ) -- ; } V oldValue = ( ( V ) ( values [ keyOrdinal ] ) ) ; values [ keyOrdinal ] = null ; return oldValue ; }

Target:
private void initialization ( java.lang.Class < K > type ) { keyType = type ; keys = java.lang.Enum.getSharedConstants ( java.lang.Enum , keyType ) ; enumSize = keys.length ; @ java.lang.SuppressWarnings ( value = "unchecked" ) V [ ] valueArray = ( ( V [ ] ) ( new java.lang.Object [ enumSize ] ) ) ; values = valueArray ; hasMapping = new boolean [ enumSize ] ; }
Source:
public void onConnectionCapabilitiesChanged ( android.telecom.Connection c , int connectionCapabilities ) { android.telecom.Log.d ( this , "onCallCapabilitiesChanged: Connection: %s, callCapabilities: %s" , c , connectionCapabilities ) ; int capabilites = this . getConnectionCapabilities ( ) ; setConnectionCapabilities ( applyHostCapabilities ( capabilites , connectionCapabilities ) ) ; }

Target:
public void onConnectionCapabilitiesChanged ( android.telecom.Connection c , int connectionCapabilities ) { android.telecom.Log.d ( this , ( "onConnectionCapabilitiesChanged: Connection: %s," + " connectionCapabilities: %s" ) , c , connectionCapabilities ) ; int capabilites = this . getConnectionCapabilities ( ) ; boolean isVideoConferencingSupported = ( ( mConferenceHost ) == null ) ? false : mConferenceHost.isCarrierVideoConferencingSupported ( ) ; setConnectionCapabilities ( applyHostCapabilities ( capabilites , connectionCapabilities , isVideoConferencingSupported ) ) ; }
Source:
public static java.util.List < org.eclipse.core.runtime.IPath > getSourceClasspaths ( org.eclipse.jdt.core.IJavaProject javaProject ) { java.util.ArrayList < org.eclipse.core.runtime.IPath > sourceList = new java.util.ArrayList < org.eclipse.core.runtime.IPath > ( ) ; org.eclipse.jdt.core.IClasspathEntry [ ] classpaths = javaProject.readRawClasspath ( ) ; if ( classpaths != null ) { for ( org.eclipse.jdt.core.IClasspathEntry e : classpaths ) { if ( ( e.getEntryKind ( ) ) == ( org.eclipse.jdt.core.IClasspathEntry.CPE_SOURCE ) ) { sourceList.add ( e.getPath ( ) ) ; } } } return sourceList ; }

Target:
public static java.util.List < org.eclipse.core.runtime.IPath > getSourceClasspaths ( org.eclipse.jdt.core.IJavaProject javaProject ) { java.util.List < org.eclipse.core.runtime.IPath > sourceList = com.google.common.collect.Lists.newArrayList ( ) ; org.eclipse.jdt.core.IClasspathEntry [ ] classpaths = javaProject.readRawClasspath ( ) ; if ( classpaths != null ) { for ( org.eclipse.jdt.core.IClasspathEntry e : classpaths ) { if ( ( e.getEntryKind ( ) ) == ( org.eclipse.jdt.core.IClasspathEntry.CPE_SOURCE ) ) { sourceList.add ( e.getPath ( ) ) ; } } } return sourceList ; }
Source:
public void onQueueChanged ( java.util.List < android.media.session.MediaSession.QueueItem > queue ) { if ( queue == null ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , "onQueueChanged: received null queue" ) ; return ; } android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "onQueueChanged: NowPlaying list changed, Queue Size = " + ( queue.size ( ) ) ) ) ; mHandler.sendEmptyMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NOW_PLAYING_CHANGED_RSP ) ; }

Target:
public void onQueueChanged ( java.util.List < android.media.session.MediaSession.QueueItem > queue ) { if ( queue == null ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , "onQueueChanged: received null queue" ) ; return ; } final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "onQueueChanged: mHandler is already null" ) ; return ; } android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "onQueueChanged: NowPlaying list changed, Queue Size = " + ( queue.size ( ) ) ) ) ; handler.sendEmptyMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NOW_PLAYING_CHANGED_RSP ) ; }
Source:
private android.net.wifi.WifiConfiguration getNetworkForSsid ( java.lang.String ssid ) { if ( ! ( ssid.startsWith ( "\"" ) ) ) { ssid = ( '"' + ssid ) + '"' ; } for ( android.net.wifi.WifiConfiguration config : mWifiManager.getConfiguredNetworks ( ) ) { if ( ssid.equals ( config.SSID ) ) { return config ; } } return null ; }

Target:
private android.net.wifi.WifiConfiguration getNetworkForSsid ( java.lang.String ssid ) { if ( ! ( ssid.startsWith ( "\"" ) ) ) { ssid = ( '"' + ssid ) + '"' ; } final java.util.List < android.net.wifi.WifiConfiguration > configs = mWifiManager.getConfiguredNetworks ( ) ; if ( configs != null ) { for ( android.net.wifi.WifiConfiguration config : configs ) { if ( ssid.equals ( config.SSID ) ) { return config ; } } } return null ; }
Source:
public void onPublishStarted ( android.net.wifi.aware.WifiAwarePublishDiscoverySession discoverySession ) { synchronized ( mLock ) { mDiscoverySessions.put ( mDiscoverySessionId , discoverySession ) ; } android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putLong ( "latencyMs" , ( ( java.lang.System.currentTimeMillis ( ) ) - ( mCreateTimestampMs ) ) ) ; mResults.putLong ( "timestampMs" , java.lang.System.currentTimeMillis ( ) ) ; mEventFacade.postEvent ( "WifiAwareSessionOnPublishStarted" , mResults ) ; }

Target:
public void onPublishStarted ( android.net.wifi.aware.PublishDiscoverySession discoverySession ) { synchronized ( mLock ) { mDiscoverySessions.put ( mDiscoverySessionId , discoverySession ) ; } android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putLong ( "latencyMs" , ( ( java.lang.System.currentTimeMillis ( ) ) - ( mCreateTimestampMs ) ) ) ; mResults.putLong ( "timestampMs" , java.lang.System.currentTimeMillis ( ) ) ; mEventFacade.postEvent ( "WifiAwareSessionOnPublishStarted" , mResults ) ; }
Source:
private int convertPlayStateToPlayStatus ( int playState ) { int playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_ERROR ; switch ( playState ) { case android.media.RemoteControlClient.PLAYSTATE_PLAYING : case android.media.RemoteControlClient.PLAYSTATE_BUFFERING : playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_PLAYING ; break ; case android.media.RemoteControlClient.PLAYSTATE_STOPPED : case android.media.RemoteControlClient.PLAYSTATE_NONE : playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_STOPPED ; break ; case android.media.RemoteControlClient.PLAYSTATE_PAUSED : playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_PAUSED ; break ; case android.media.RemoteControlClient.PLAYSTATE_FAST_FORWARDING : case android.media.RemoteControlClient.PLAYSTATE_SKIPPING_FORWARDS : playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_FWD_SEEK ; break ; case android.media.RemoteControlClient.PLAYSTATE_REWINDING : case android.media.RemoteControlClient.PLAYSTATE_SKIPPING_BACKWARDS : playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_REV_SEEK ; break ; case android.media.RemoteControlClient.PLAYSTATE_ERROR : playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_ERROR ; break ; } return playStatus ; }

Target:
private int convertPlayStateToPlayStatus ( android.media.session.PlaybackState state ) { int playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_ERROR ; switch ( state.getState ( ) ) { case android.media.session.PlaybackState.STATE_PLAYING : case android.media.session.PlaybackState.STATE_BUFFERING : playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_PLAYING ; break ; case android.media.session.PlaybackState.STATE_STOPPED : case android.media.session.PlaybackState.STATE_NONE : playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_STOPPED ; break ; case android.media.session.PlaybackState.STATE_PAUSED : playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_PAUSED ; break ; case android.media.session.PlaybackState.STATE_FAST_FORWARDING : case android.media.session.PlaybackState.STATE_SKIPPING_TO_NEXT : case android.media.session.PlaybackState.STATE_SKIPPING_TO_QUEUE_ITEM : playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_FWD_SEEK ; break ; case android.media.session.PlaybackState.STATE_REWINDING : case android.media.session.PlaybackState.STATE_SKIPPING_TO_PREVIOUS : playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_REV_SEEK ; break ; case android.media.session.PlaybackState.STATE_ERROR : playStatus = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_ERROR ; break ; } return playStatus ; }
Source:
public void dispose ( ) { mCi.unSetOnSignalStrengthUpdate ( this ) ; mUiccController.unregisterForIccChanged ( this ) ; mCi.unregisterForCellInfoList ( this ) ; mSubscriptionManager.removeOnSubscriptionsChangedListener ( mOnSubscriptionsChangedListener ) ; mCi.unregisterForImsNetworkStateChanged ( this ) ; mPhone.getCarrierActionAgent ( ) . unregisterForCarrierAction ( this , com.android.internal.telephony.CarrierActionAgent.CARRIER_ACTION_SET_RADIO_ENABLED ) ; }

Target:
public void dispose ( ) { mCi.unSetOnSignalStrengthUpdate ( this ) ; mUiccController.unregisterForIccChanged ( this ) ; mCi.unregisterForCellInfoList ( this ) ; mCi.unregisterForPhysicalChannelConfiguration ( this ) ; mSubscriptionManager.removeOnSubscriptionsChangedListener ( mOnSubscriptionsChangedListener ) ; mCi.unregisterForImsNetworkStateChanged ( this ) ; mPhone.getCarrierActionAgent ( ) . unregisterForCarrierAction ( this , com.android.internal.telephony.CarrierActionAgent.CARRIER_ACTION_SET_RADIO_ENABLED ) ; }
Source:
public static void updateServiceInfo ( ) { org.apache.harmony.security.fortress.Services.services.clear ( ) ; org.apache.harmony.security.fortress.Services.secureRandom = null ; for ( java.security.Provider p : org.apache.harmony.security.fortress.Services.providers ) { org.apache.harmony.security.fortress.Services.initServiceInfo ( p ) ; } org.apache.harmony.security.fortress.Services.needRefresh = false ; }

Target:
public static int getCacheVersion ( ) { synchronized ( org.apache.harmony.security.fortress.Services.providers ) { if ( org.apache.harmony.security.fortress.Services.needRefresh ) { ( org.apache.harmony.security.fortress.Services.cacheVersion ) ++ ; synchronized ( org.apache.harmony.security.fortress.Services.services ) { org.apache.harmony.security.fortress.Services.services.clear ( ) ; } org.apache.harmony.security.fortress.Services.cachedSecureRandomService = null ; for ( java.security.Provider p : org.apache.harmony.security.fortress.Services.providers ) { org.apache.harmony.security.fortress.Services.initServiceInfo ( p ) ; } org.apache.harmony.security.fortress.Services.needRefresh = false ; } return org.apache.harmony.security.fortress.Services.cacheVersion ; } }
Source:
public void test_EVP_get_digestbyname ( ) throws java.lang.Exception { assertTrue ( ( ( org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "sha256" ) ) != ( org.conscrypt.NativeCryptoTest.NULL ) ) ) ; try { org.conscrypt.NativeCrypto.EVP_get_digestbyname ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "" ) ; org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "foobar" ) ; fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }

Target:
public void test_EVP_get_digestbyname ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( ( ( org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "sha256" ) ) != ( org.conscrypt.NativeCryptoTest.NULL ) ) ) ; try { org.conscrypt.NativeCrypto.EVP_get_digestbyname ( null ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "" ) ; org.conscrypt.NativeCrypto.EVP_get_digestbyname ( "foobar" ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }
Source:
public static < T > T get ( java.lang.Iterable < ? extends T > iterable , int position , @ javax.annotation.Nullable T defaultValue ) { com.google.common.base.Preconditions.checkNotNull ( iterable ) ; com.google.common.collect.Iterables.checkNonnegativeIndex ( position ) ; try { return com.google.common.collect.Iterables.get ( iterable , position ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { return defaultValue ; } }

Target:
public static < T > java.lang.Iterable < T > concat ( java.lang.Iterable < ? extends T > a , java.lang.Iterable < ? extends T > b , java.lang.Iterable < ? extends T > c ) { return com.google.common.collect.Iterables.concat ( com.google.common.collect.ImmutableList.of ( a , b , c ) ) ; }
Source:
public void test_b65290323 ( ) throws java.lang.Exception { java.io.InputStream exploitImage = new java.io.BufferedInputStream ( mContext.getResources ( ) . openRawResource ( R.raw.b65290323 ) ) ; BRANCH ( ec6bbe ) ; android.security.cts.DO NOT ; android.security.cts.CTS test ; fix ( ( ( b ) / 65717533 ) ) ; android.graphics.BitmapFactory.decodeStream ( exploitImage ) ; }

Target:
public void testPocCVE_2017_0691 ( ) throws java.lang.Exception { java.io.InputStream exploitImage = new java.io.BufferedInputStream ( mContext.getResources ( ) . openRawResource ( R.raw.cve_2017_0691 ) ) ; android.graphics.BitmapFactory.decodeStream ( exploitImage ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { if ( ( Main.operations ( ) ) != 32 ) { java.lang.System.out.println ( "failed" ) ; } else { java.lang.System.out.println ( "passed" ) ; } }

Target:
public static void main ( java.lang.String [ ] args ) { if ( ( Main.operations ( ) ) != 32 ) { java.lang.System.out.println ( "failed" ) ; } else { java.lang.System.out.println ( "passed" ) ; } if ( ( Main.$noinline$runSmaliTest ( "operations" ) ) != 32 ) { java.lang.System.out.println ( "failed" ) ; } else { java.lang.System.out.println ( "passed" ) ; } }
Source:
protected void onResume ( ) { super . onResume ( ) ; runNext ( ) ; }

Target:
protected void onResume ( ) { super . onResume ( ) ; final com.android.cts.verifier.vr.VrListenerVerifierActivity.InteractiveTestCase current = mTests [ mCurrentIdx ] ; final com.android.cts.verifier.vr.VrListenerVerifierActivity.Status currentTestStatus = current.getStatus ( ) ; if ( currentTestStatus == ( com.android.cts.verifier.vr.VrListenerVerifierActivity.Status.RUNNING ) ) { waitForPreviousRunningTest ( ) ; } else if ( currentTestStatus == ( com.android.cts.verifier.vr.VrListenerVerifierActivity.Status.PASS ) ) { selectNext ( ) ; } else { runNext ( ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; java.lang.System.setProperty ( "dexmaker.dexcache" , getContext ( ) . getCacheDir ( ) . toString ( ) ) ; com.android.internal.util.test.BroadcastInterceptingContext context = new com.android.internal.util.test.BroadcastInterceptingContext ( getContext ( ) ) ; mServerSocket = new android.net.LocalServerSocket ( com.android.server.NetworkManagementServiceTest.SOCKET_NAME ) ; mNMService = com.android.server.NetworkManagementService.create ( context , com.android.server.NetworkManagementServiceTest.SOCKET_NAME ) ; mSocket = mServerSocket.accept ( ) ; mOutputStream = mSocket.getOutputStream ( ) ; }

Target:
public android.net.INetd getNetd ( ) { return mNetdService ; }
Source:
private boolean addOrReplaceBlock ( com.android.dx.cf.code.BasicBlock block , com.android.dx.util.IntList subroutines ) { if ( block == null ) { throw new java.lang.NullPointerException ( "block == null" ) ; } int idx = labelToResultIndex ( block.getLabel ( ) ) ; boolean ret ; if ( idx < 0 ) { ret = false ; } else { removeBlockAndSpecialSuccessors ( idx ) ; ret = true ; } result.add ( block ) ; subroutines.throwIfMutable ( ) ; resultSubroutines.add ( subroutines ) ; return ret ; }

Target:
private boolean addOrReplaceBlock ( com.android.dx.rop.code.BasicBlock block , com.android.dx.util.IntList subroutines ) { if ( block == null ) { throw new java.lang.NullPointerException ( "block == null" ) ; } int idx = labelToResultIndex ( block.getLabel ( ) ) ; boolean ret ; if ( idx < 0 ) { ret = false ; } else { removeBlockAndSpecialSuccessors ( idx ) ; ret = true ; } result.add ( block ) ; subroutines.throwIfMutable ( ) ; resultSubroutines.add ( subroutines ) ; return ret ; }
Source:
protected void drawableStateChanged ( ) { super . drawableStateChanged ( ) ; android.graphics.drawable.Drawable progressDrawable = getProgressDrawable ( ) ; if ( progressDrawable != null ) { progressDrawable.setAlpha ( ( isEnabled ( ) ? android.widget.AbsSeekBar.NO_ALPHA : ( ( int ) ( ( android.widget.AbsSeekBar.NO_ALPHA ) * ( mDisabledAlpha ) ) ) ) ) ; } if ( ( ( mThumb ) != null ) && ( mThumb.isStateful ( ) ) ) { int [ ] state = getDrawableState ( ) ; mThumb.setState ( state ) ; } }

Target:
protected void drawableStateChanged ( ) { super . drawableStateChanged ( ) ; final android.graphics.drawable.Drawable progressDrawable = getProgressDrawable ( ) ; if ( progressDrawable != null ) { progressDrawable.setAlpha ( ( isEnabled ( ) ? android.widget.AbsSeekBar.NO_ALPHA : ( ( int ) ( ( android.widget.AbsSeekBar.NO_ALPHA ) * ( mDisabledAlpha ) ) ) ) ) ; } final android.graphics.drawable.Drawable thumb = mThumb ; if ( ( thumb != null ) && ( thumb.isStateful ( ) ) ) { thumb.setState ( getDrawableState ( ) ) ; } }