auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void copy1DRangeFromUnchecked ( int off , int count , short [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 2 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize , Element.DataType.SIGNED_16 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , short [ ] d ) { copy1DRangeFromUnchecked ( off , count , ( ( java.lang.Object ) ( d ) ) , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
public void downloadSubscription ( android.telephony.euicc.DownloadableSubscription subscription , boolean switchAfterDownload , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . downloadSubscription ( subscription , switchAfterDownload , mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void downloadSubscription ( android.telephony.euicc.DownloadableSubscription subscription , boolean switchAfterDownload , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . downloadSubscription ( subscription , switchAfterDownload , mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
private void resetMatcher ( ) { if ( ( matcher ) == null ) { matcher = delimiter.matcher ( buffer ) ; } else { matcher.reset ( buffer ) ; } matcher.useTransparentBounds ( true ) ; matcher.useAnchoringBounds ( false ) ; matcher.region ( findStartIndex , bufferLength ) ; }

Target:
private void resetMatcher ( ) { matcher.reset ( buffer ) ; matcher.region ( findStartIndex , bufferLength ) ; }
Source:
public void onFailed ( java.lang.String reason ) { com.android.voicemail.impl.VvmLog.d ( com.android.voicemail.impl.sync.VvmNetworkRequestCallback.TAG , ( "onFailed: " + reason ) ) ; if ( carrierConfigHelper.isCellularDataRequired ( ) ) { carrierConfigHelper.handleEvent ( status , OmtpEvents.DATA_NO_CONNECTION_CELLULAR_REQUIRED ) ; } else { carrierConfigHelper.handleEvent ( status , OmtpEvents.DATA_NO_CONNECTION ) ; } releaseNetwork ( ) ; }

Target:
public void onFailed ( java.lang.String reason ) { com.android.voicemail.impl.VvmLog.i ( com.android.voicemail.impl.sync.VvmNetworkRequestCallback.TAG , ( "onFailed: " + reason ) ) ; if ( carrierConfigHelper.isCellularDataRequired ( ) ) { carrierConfigHelper.handleEvent ( status , OmtpEvents.DATA_NO_CONNECTION_CELLULAR_REQUIRED ) ; } else { carrierConfigHelper.handleEvent ( status , OmtpEvents.DATA_NO_CONNECTION ) ; } releaseNetwork ( ) ; }
Source:
private boolean loopQueryCalls ( ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "loopQueryCalls, starting call query loop" ) ; } if ( ( mCalls.size ( ) ) > 0 ) { return true ; } android.bluetooth.BluetoothHeadsetClientCall c = getCall ( BluetoothHeadsetClientCall.CALL_STATE_INCOMING ) ; if ( ( c != null ) && ( ( mIndicatorCallSetup ) == ( HeadsetClientHalConstants.CALLSETUP_NONE ) ) ) return true ; return false ; }

Target:
private boolean loopQueryCalls ( ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "loopQueryCalls, starting call query loop" ) ; } return ( mCalls.size ( ) ) > 0 ; }
Source:
public boolean handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.server.net.NetworkStatsService.MSG_PERFORM_POLL : { final int flags = msg.arg1 ; mService.performPoll ( flags ) ; return true ; } case com.android.server.net.NetworkStatsService.MSG_UPDATE_IFACES : { mService.updateIfaces ( null ) ; return true ; } case com.android.server.net.NetworkStatsService.MSG_REGISTER_GLOBAL_ALERT : { mService.registerGlobalAlert ( ) ; return true ; } default : { return false ; } } }

Target:
public boolean handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.server.net.NetworkStatsService.MSG_PERFORM_POLL : { final int flags = msg.arg1 ; mService.performPoll ( flags ) ; return true ; } case com.android.server.net.NetworkStatsService.MSG_REGISTER_GLOBAL_ALERT : { mService.registerGlobalAlert ( ) ; return true ; } default : { return false ; } } }
Source:
public boolean handleSmsSendIntent ( android.content.Context context , android.content.Intent intent ) { com.android.bluetooth.map.BluetoothMapUtils.TYPE type = com.android.bluetooth.map.BluetoothMapUtils.TYPE.fromOrdinal ( intent.getIntExtra ( com.android.bluetooth.map.BluetoothMapContentObserver.EXTRA_MESSAGE_SENT_MSG_TYPE , TYPE.NONE.ordinal ( ) ) ) ; if ( type == ( com.android.bluetooth.map.BluetoothMapUtils.TYPE.MMS ) ) { return handleMmsSendIntent ( context , intent ) ; } else { if ( mInitialized ) { mSmsBroadcastReceiver.onReceive ( context , intent ) ; return true ; } } return false ; }

Target:
public boolean handleSmsSendIntent ( android.content.Context context , android.content.Intent intent ) { if ( mInitialized ) { mSmsBroadcastReceiver.onReceive ( context , intent ) ; return true ; } return false ; }
Source:
private java.util.Collection < com.intellij.openapi.util.Pair < org.jetbrains.jps.builders.java.dependencyView.MethodRepr , org.jetbrains.jps.builders.java.dependencyView.ClassRepr > > findAllMethodsBySpecificity ( final org.jetbrains.jps.builders.java.dependencyView.MethodRepr m , final org.jetbrains.jps.builders.java.dependencyView.ClassRepr c ) { final org.jetbrains.jps.builders.java.dependencyView.MethodRepr.Predicate predicate = lessSpecific ( m ) ; final java.util.Collection < com.intellij.openapi.util.Pair < org.jetbrains.jps.builders.java.dependencyView.MethodRepr , org.jetbrains.jps.builders.java.dependencyView.ClassRepr > > result = new java.util.HashSet < com.intellij.openapi.util.Pair < org.jetbrains.jps.builders.java.dependencyView.MethodRepr , org.jetbrains.jps.builders.java.dependencyView.ClassRepr > > ( ) ; addOverridenMethods ( c , predicate , result , null ) ; addOverridingMethods ( m , c , predicate , result ) ; return result ; }

Target:
private java.util.Collection < com.intellij.openapi.util.Pair < org.jetbrains.jps.builders.java.dependencyView.MethodRepr , org.jetbrains.jps.builders.java.dependencyView.ClassRepr > > findAllMethodsBySpecificity ( final org.jetbrains.jps.builders.java.dependencyView.MethodRepr m , final org.jetbrains.jps.builders.java.dependencyView.ClassRepr c ) { final org.jetbrains.jps.builders.java.dependencyView.MethodRepr.Predicate predicate = lessSpecific ( m ) ; final java.util.Collection < com.intellij.openapi.util.Pair < org.jetbrains.jps.builders.java.dependencyView.MethodRepr , org.jetbrains.jps.builders.java.dependencyView.ClassRepr > > result = new java.util.HashSet < com.intellij.openapi.util.Pair < org.jetbrains.jps.builders.java.dependencyView.MethodRepr , org.jetbrains.jps.builders.java.dependencyView.ClassRepr > > ( ) ; addOverridenMethods ( c , predicate , result , null ) ; addOverridingMethods ( m , c , predicate , result , null ) ; return result ; }
Source:
public static android.support.v8.renderscript.ScriptIntrinsicColorMatrix create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { if ( rs.isNative ) { android.support.v8.renderscript.RenderScriptThunker rst = ( ( android.support.v8.renderscript.RenderScriptThunker ) ( rs ) ) ; return android.support.v8.renderscript.ScriptIntrinsicColorMatrixThunker.create ( rs , e ) ; } if ( ! ( e.isCompatible ( android.support.v8.renderscript.Element.U8_4 ( rs ) ) ) ) { throw new android.support.v8.renderscript.RSIllegalArgumentException ( "Unsuported element type." ) ; } int id = rs.nScriptIntrinsicCreate ( 2 , e.getID ( rs ) ) ; return new android.support.v8.renderscript.ScriptIntrinsicColorMatrix ( id , rs ) ; }

Target:
public static android.support.v8.renderscript.ScriptIntrinsicColorMatrix create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { if ( ! ( e.isCompatible ( android.support.v8.renderscript.Element.U8_4 ( rs ) ) ) ) { throw new android.support.v8.renderscript.RSIllegalArgumentException ( "Unsuported element type." ) ; } int id = rs.nScriptIntrinsicCreate ( 2 , e.getID ( rs ) ) ; return new android.support.v8.renderscript.ScriptIntrinsicColorMatrix ( id , rs ) ; }
Source:
private static void addNonStaticPublicMethods ( java.util.Set < java.lang.reflect.Method > methodSet , java.lang.Class < ? > clazz ) { for ( java.lang.reflect.Method interfaceMethod : clazz.getDeclaredMethods ( ) ) { int modifiers = interfaceMethod.getModifiers ( ) ; if ( ( ! ( java.lang.reflect.Modifier.isStatic ( modifiers ) ) ) && ( java.lang.reflect.Modifier.isPublic ( modifiers ) ) ) { methodSet.add ( interfaceMethod ) ; } } }

Target:
private static void addNonStaticPublicMethods ( java.lang.Class < ? > clazz , java.util.Set < java.lang.reflect.Method > methodSet ) { for ( java.lang.reflect.Method interfaceMethod : clazz.getDeclaredMethods ( ) ) { int modifiers = interfaceMethod.getModifiers ( ) ; if ( ( ! ( java.lang.reflect.Modifier.isStatic ( modifiers ) ) ) && ( java.lang.reflect.Modifier.isPublic ( modifiers ) ) ) { methodSet.add ( interfaceMethod ) ; } } }
Source:
public android.telephony.ServiceState getServiceStateForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getServiceStateForSubscriber" ) ) ) { return null ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone == null ) { return null ; } return phone.getServiceState ( ) ; }

Target:
public android.telephony.ServiceState getServiceStateForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , subId , callingPackage , "getServiceStateForSubscriber" ) ) ) { return null ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone == null ) { return null ; } return phone.getServiceState ( ) ; }
Source:
void appSwitchComing ( ) { synchronized ( this ) { long now = ( android.os.SystemClock.uptimeMillis ( ) ) + 500 ; if ( com.android.server.WindowManagerService.DEBUG_INPUT ) android.util.Log.v ( com.android.server.WindowManagerService.TAG , ( "appSwitchComing: " + now ) ) ; if ( ( ( mTimeToSwitch ) == 0 ) || ( now < ( mTimeToSwitch ) ) ) { mTimeToSwitch = now ; } notifyAll ( ) ; } }

Target:
void appSwitchComing ( ) { synchronized ( this ) { long now = ( android.os.SystemClock.uptimeMillis ( ) ) + 500 ; if ( com.android.server.WindowManagerService.DEBUG_INPUT ) android.util.Slog.v ( com.android.server.WindowManagerService.TAG , ( "appSwitchComing: " + now ) ) ; if ( ( ( mTimeToSwitch ) == 0 ) || ( now < ( mTimeToSwitch ) ) ) { mTimeToSwitch = now ; } notifyAll ( ) ; } }
Source:
public void run ( ) { com.android.ide.common.api.InsertType insertType = com.android.ide.eclipse.adt.internal.editors.layout.gle2.MoveGesture.getInsertType ( event , mTargetNode ) ; mCanvas.getRulesEngine ( ) . callOnDropped ( mTargetNode , elementsFinal , mFeedback , new com.android.ide.common.api.Point ( canvasPoint.x , canvasPoint.y ) , insertType ) ; mTargetNode.applyPendingChanges ( ) ; if ( ( event.detail ) == ( org.eclipse.swt.dnd.DND.DROP_MOVE ) ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo.getInstance ( ) . removeSource ( ) ; } }

Target:
public void run ( ) { com.android.ide.common.api.InsertType insertType = com.android.ide.eclipse.adt.internal.editors.layout.gle2.MoveGesture.getInsertType ( event , mTargetNode ) ; mCanvas.getRulesEngine ( ) . callOnDropped ( mTargetNode , elementsFinal , mFeedback , new com.android.ide.common.api.Point ( canvasPoint.x , canvasPoint.y ) , insertType ) ; mTargetNode.applyPendingChanges ( ) ; if ( ( event.detail ) == ( org.eclipse.swt.dnd.DND.DROP_MOVE ) ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo.getInstance ( ) . removeSource ( ) ; } mTargetNode.applyPendingChanges ( ) ; }
Source:
private void disconnectAll ( ) { for ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection connection : mConnections.values ( ) ) { connection.onHfpDisconnected ( ) ; } mConnections.clear ( ) ; if ( ( mConference ) != null ) { mConference.destroy ( ) ; mConference = null ; } }

Target:
private synchronized void disconnectAll ( ) { for ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection connection : mConnections.values ( ) ) { connection.onHfpDisconnected ( ) ; } mConnections.clear ( ) ; if ( ( mConference ) != null ) { mConference.destroy ( ) ; mConference = null ; } }
Source:
public void testRegistrationCallbackSendCurrentState ( ) throws android.os.RemoteException { android.telephony.ims.internal.stub.ImsRegistrationImplBase.Callback mCallback2 = org.mockito.Mockito.spy ( new android.telephony.ims.internal.stub.ImsRegistrationImplBase.Callback ( ) ) ; mRegistration.onRegistered ( ImsRegistrationImplBase.REGISTRATION_TECH_LTE ) ; mRegBinder.addRegistrationCallback ( mCallback2 ) ; org.mockito.Mockito.verify ( mCallback2 ) . onRegistered ( org.mockito.ArgumentMatchers.eq ( ImsRegistrationImplBase.REGISTRATION_TECH_LTE ) ) ; }

Target:
public void testRegistrationCallbackSendCurrentState ( ) throws android.os.RemoteException { mRegistration.onRegistered ( ImsRegistrationImplBase.REGISTRATION_TECH_LTE ) ; mRegBinder.addRegistrationCallback ( mCallback2 ) ; org.mockito.Mockito.verify ( mCallback2 ) . onRegistered ( org.mockito.ArgumentMatchers.eq ( ImsRegistrationImplBase.REGISTRATION_TECH_LTE ) ) ; }
Source:
public boolean equals ( java.lang.Object other ) { if ( ! ( other instanceof com.ibm.icu.text.DateTimePatternGenerator.DateTimeMatcher ) ) { return false ; } com.ibm.icu.text.DateTimePatternGenerator.DateTimeMatcher that = ( ( com.ibm.icu.text.DateTimePatternGenerator.DateTimeMatcher ) ( other ) ) ; for ( int i = 0 ; i < ( original.length ) ; ++ i ) { if ( ! ( original [ i ] . equals ( that.original [ i ] ) ) ) return false ; } return true ; }

Target:
public boolean equals ( java.lang.Object other ) { return ( ( this ) == other ) || ( ( ( other != null ) && ( other instanceof com.ibm.icu.text.DateTimePatternGenerator.DateTimeMatcher ) ) && ( original.equals ( ( ( com.ibm.icu.text.DateTimePatternGenerator.DateTimeMatcher ) ( other ) ) . original ) ) ) ; }
Source:
public final com.android.tools.perflib.heap.ClassObj findClass ( java.lang.String name ) { for ( com.android.tools.perflib.heap.Heap mHeap : mHeaps ) { com.android.tools.perflib.heap.ClassObj theClass = mHeap.getClass ( name ) ; if ( theClass != null ) { return theClass ; } } return null ; }

Target:
public final com.android.tools.perflib.heap.ClassObj findClass ( java.lang.String name ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.ClassObj theClass = mHeaps.get ( i ) . getClass ( name ) ; if ( theClass != null ) { return theClass ; } } return null ; }
Source:
private static void printArrayElements ( com.android.ahat.Doc doc , com.android.tools.perflib.heap.ArrayInstance array ) { doc.section ( "Array Elements" ) ; doc.table ( new com.android.ahat.Column ( "Index" , Column.Align.RIGHT ) , new com.android.ahat.Column ( "Value" ) ) ; java.lang.Object [ ] elements = array.getValues ( ) ; for ( int i = 0 ; i < ( elements.length ) ; i ++ ) { doc.row ( com.android.ahat.DocString.text ( "%d" , i ) , com.android.ahat.Value.render ( elements [ i ] ) ) ; } doc.end ( ) ; }

Target:
private static void printArrayElements ( com.android.ahat.Doc doc , com.android.tools.perflib.heap.ArrayInstance array ) { doc.section ( "Array Elements" ) ; doc.table ( new com.android.ahat.Column ( "Index" , Column.Align.RIGHT ) , new com.android.ahat.Column ( "Value" ) ) ; java.lang.Object [ ] elements = array.getValues ( ) ; for ( int i = 0 ; i < ( elements.length ) ; i ++ ) { doc.row ( com.android.ahat.DocString.format ( "%d" , i ) , com.android.ahat.Value.render ( elements [ i ] ) ) ; } doc.end ( ) ; }
Source:
public void testHeadsetSendDTMF ( ) throws java.lang.Exception { com.android.server.telecom.Call mockCall = createForegroundCall ( ) ; boolean sentDtmf = mBluetoothPhoneService.mBinder.sendDtmf ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.TEST_DTMF_TONE ) ; org.mockito.Mockito.verify ( mMockCallsManager ) . playDtmfTone ( org.mockito.Matchers.eq ( mockCall ) , org.mockito.Matchers.eq ( ( ( char ) ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.TEST_DTMF_TONE ) ) ) ) ; org.mockito.Mockito.verify ( mMockCallsManager ) . stopDtmfTone ( org.mockito.Matchers.eq ( mockCall ) ) ; assertEquals ( sentDtmf , true ) ; }

Target:
public void testHeadsetSendDTMF ( ) throws java.lang.Exception { com.android.server.telecom.Call mockCall = createForegroundCall ( ) ; boolean sentDtmf = mBluetoothPhoneService.mBinder.sendDtmf ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.TEST_DTMF_TONE ) ; org.mockito.Mockito.verify ( mMockCallsManager ) . playDtmfTone ( org.mockito.Matchers.eq ( mockCall ) , org.mockito.Matchers.eq ( ( ( char ) ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.TEST_DTMF_TONE ) ) ) ) ; org.mockito.Mockito.verify ( mMockCallsManager ) . stopDtmfTone ( org.mockito.Matchers.eq ( mockCall ) ) ; org.junit.Assert.assertEquals ( sentDtmf , true ) ; }
Source:
public void testInstall_SkipLocalArchive ( ) throws java.lang.Exception { com.android.sdklib.internal.repository.MockEmptyPackage p = new com.android.sdklib.internal.repository.MockEmptyPackage ( "testPkg" ) ; com.android.sdklib.internal.repository.ArchiveReplacement ar = new com.android.sdklib.internal.repository.ArchiveReplacement ( p.getArchives ( ) [ 0 ] , null ) ; assertFalse ( mArchInst.install ( ar , mSdkRoot , false , mSdkMan , mMon ) ) ; assertTrue ( ( ( mMon.getCapturedLog ( ) . indexOf ( "Skipping already installed archive" ) ) != ( - 1 ) ) ) ; }

Target:
public void testInstall_SkipLocalArchive ( ) throws java.lang.Exception { com.android.sdklib.internal.repository.MockEmptyPackage p = new com.android.sdklib.internal.repository.MockEmptyPackage ( "testPkg" ) ; com.android.sdklib.internal.repository.ArchiveReplacement ar = new com.android.sdklib.internal.repository.ArchiveReplacement ( p.getArchives ( ) [ 0 ] , null ) ; assertFalse ( mArchInst.install ( ar , mSdkRoot , false , mSdkMan , null , mMon ) ) ; assertTrue ( ( ( mMon.getCapturedLog ( ) . indexOf ( "Skipping already installed archive" ) ) != ( - 1 ) ) ) ; }
Source:
public java.lang.String getName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( '(' ) ; for ( com.android.jack.ir.ast.JParameter p : method.getParams ( ) ) { if ( ( p.getMarker ( com.android.jack.transformations.lambda.CapturedVariable.class ) ) != null ) { continue ; } sb.append ( getName ( p.getType ( ) ) ) ; } sb.append ( ')' ) ; sb.append ( getName ( method.getType ( ) ) ) ; return sb.toString ( ) ; }

Target:
public java.lang.String getName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( '(' ) ; for ( com.android.jack.ir.ast.JParameter p : method.getParams ( ) ) { sb.append ( getName ( p.getType ( ) ) ) ; } sb.append ( ')' ) ; sb.append ( getName ( method.getType ( ) ) ) ; return sb.toString ( ) ; }
Source:
static < OutputT > com.android.dialer.common.concurrent.UiListener < OutputT > create ( java.util.concurrent.Executor uiThreadExecutor , android.app.FragmentManager fragmentManager , java.lang.String taskId ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) com.android.dialer.common.concurrent.UiListener < OutputT > uiListener = ( ( com.android.dialer.common.concurrent.UiListener < OutputT > ) ( fragmentManager.findFragmentByTag ( taskId ) ) ) ; if ( uiListener == null ) { com.android.dialer.common.LogUtil.i ( "UiListener.create" , ( "creating new UiListener for " + taskId ) ) ; uiListener = new com.android.dialer.common.concurrent.UiListener < > ( ) ; uiListener.uiThreadExecutor = uiThreadExecutor ; fragmentManager.beginTransaction ( ) . add ( uiListener , taskId ) . commit ( ) ; } return uiListener ; }

Target:
static < OutputT > com.android.dialer.common.concurrent.UiListener < OutputT > create ( android.app.FragmentManager fragmentManager , java.lang.String taskId ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) com.android.dialer.common.concurrent.UiListener < OutputT > uiListener = ( ( com.android.dialer.common.concurrent.UiListener < OutputT > ) ( fragmentManager.findFragmentByTag ( taskId ) ) ) ; if ( uiListener == null ) { com.android.dialer.common.LogUtil.i ( "UiListener.create" , ( "creating new UiListener for " + taskId ) ) ; uiListener = new com.android.dialer.common.concurrent.UiListener < > ( ) ; fragmentManager.beginTransaction ( ) . add ( uiListener , taskId ) . commit ( ) ; } return uiListener ; }
Source:
public static com.android.tools.lint.checks.PermissionFinder.Result findRequiredPermissions ( @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionFinder.Operation operation , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.MethodInvocation call , int parameterIndex ) { lombok.ast.Node arg = com.android.tools.lint.detector.api.JavaContext.getParameter ( call , parameterIndex ) ; if ( arg == null ) { return null ; } return new com.android.tools.lint.checks.PermissionFinder ( context , operation ) . search ( arg ) ; }

Target:
public static com.android.tools.lint.checks.PermissionFinder.Result findRequiredPermissions ( @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionFinder.Operation operation , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.Node call , int parameterIndex ) { lombok.ast.Node arg = com.android.tools.lint.detector.api.JavaContext.getParameter ( call , parameterIndex ) ; if ( arg == null ) { return null ; } return new com.android.tools.lint.checks.PermissionFinder ( context , operation ) . search ( arg ) ; }
Source:
public java.lang.String toString ( ) { if ( ! ( isBound ( ) ) ) return "ServerSocket[unbound]" ; java.net.InetAddress in ; if ( ( ! ( java.net.NetUtil.doRevealLocalAddress ( ) ) ) && ( ( java.lang.System.getSecurityManager ( ) ) != null ) ) { in = java.net.InetAddress.getLoopbackAddress ( ) ; } else { in = impl.getInetAddress ( ) ; } return ( ( ( "ServerSocket[addr=" + in ) + ",localport=" ) + ( impl.getLocalPort ( ) ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { if ( ! ( isBound ( ) ) ) return "ServerSocket[unbound]" ; java.net.InetAddress in ; if ( ( java.lang.System.getSecurityManager ( ) ) != null ) in = java.net.InetAddress.getLoopbackAddress ( ) ; else in = impl.getInetAddress ( ) ; return ( ( ( "ServerSocket[addr=" + in ) + ",localport=" ) + ( impl.getLocalPort ( ) ) ) + "]" ; }
Source:
private boolean nonSyncContentEquals ( java.lang.AbstractStringBuilder sb ) { char [ ] v2 = sb.getValue ( ) ; int n = count ; if ( n != ( sb.length ( ) ) ) { return false ; } for ( int i = 0 ; i < n ; i ++ ) { if ( ( charAt ( i ) ) != ( v2 [ i ] ) ) { return false ; } } return true ; }

Target:
private boolean nonSyncContentEquals ( java.lang.AbstractStringBuilder sb ) { char [ ] v2 = sb.getValue ( ) ; int n = length ( ) ; if ( n != ( sb.length ( ) ) ) { return false ; } for ( int i = 0 ; i < n ; i ++ ) { if ( ( charAt ( i ) ) != ( v2 [ i ] ) ) { return false ; } } return true ; }
Source:
private static void checkOnTouchListener ( com.android.tools.lint.detector.api.ClassContext context , org.objectweb.asm.tree.ClassNode classNode ) { org.objectweb.asm.tree.MethodNode onTouchNode = com.android.tools.lint.checks.ClickableViewAccessibilityDetector.findMethod ( classNode.methods , com.android.tools.lint.checks.ClickableViewAccessibilityDetector.ON_TOUCH , com.android.tools.lint.checks.ClickableViewAccessibilityDetector.ON_TOUCH_SIG ) ; if ( onTouchNode != null ) { org.objectweb.asm.tree.AbstractInsnNode performClickInsnNode = com.android.tools.lint.checks.ClickableViewAccessibilityDetector.findMethodCallInstruction ( onTouchNode.instructions , com.android.SdkConstants.ANDROID_VIEW_VIEW , com.android.tools.lint.checks.ClickableViewAccessibilityDetector.PERFORM_CLICK , com.android.tools.lint.checks.ClickableViewAccessibilityDetector.PERFORM_CLICK_SIG ) ; if ( performClickInsnNode == null ) { java.lang.String message = java.lang.String.format ( "%1$s#onTouch should call View#performClick when a click is detected" , classNode.name ) ; context.report ( com.android.tools.lint.checks.ClickableViewAccessibilityDetector.ISSUE , context.getLocation ( onTouchNode , classNode ) , message , null ) ; } } }

Target:
private static void checkOnTouchListener ( com.android.tools.lint.detector.api.ClassContext context , org.objectweb.asm.tree.ClassNode classNode ) { org.objectweb.asm.tree.MethodNode onTouchNode = com.android.tools.lint.checks.ClickableViewAccessibilityDetector.findMethod ( classNode.methods , com.android.tools.lint.checks.ClickableViewAccessibilityDetector.ON_TOUCH , com.android.tools.lint.checks.ClickableViewAccessibilityDetector.ON_TOUCH_SIG ) ; if ( onTouchNode != null ) { org.objectweb.asm.tree.AbstractInsnNode performClickInsnNode = com.android.tools.lint.checks.ClickableViewAccessibilityDetector.findMethodCallInstruction ( onTouchNode.instructions , com.android.SdkConstants.ANDROID_VIEW_VIEW , com.android.tools.lint.checks.ClickableViewAccessibilityDetector.PERFORM_CLICK , com.android.tools.lint.checks.ClickableViewAccessibilityDetector.PERFORM_CLICK_SIG ) ; if ( performClickInsnNode == null ) { java.lang.String message = java.lang.String.format ( "%1$s#onTouch should call View#performClick when a click is detected" , classNode.name ) ; context.report ( com.android.tools.lint.checks.ClickableViewAccessibilityDetector.ISSUE , onTouchNode , null , context.getLocation ( onTouchNode , classNode ) , message , null ) ; } } }
Source:
private void notifyNoData ( com.android.internal.telephony.dataconnection.DcFailCause lastFailCauseCode , com.android.internal.telephony.dataconnection.ApnContext apnContext ) { if ( DBG ) log ( ( "notifyNoData: type=" + ( apnContext.getApnType ( ) ) ) ) ; if ( ( lastFailCauseCode.isPermanentFail ( ) ) && ( ! ( apnContext.getApnType ( ) . equals ( PhoneConstants.APN_TYPE_DEFAULT ) ) ) ) { mPhone.notifyDataConnectionFailed ( apnContext.getReason ( ) , apnContext.getApnType ( ) ) ; } }

Target:
private void notifyNoData ( com.android.internal.telephony.dataconnection.DcFailCause lastFailCauseCode , com.android.internal.telephony.dataconnection.ApnContext apnContext ) { if ( DBG ) log ( ( "notifyNoData: type=" + ( apnContext.getApnType ( ) ) ) ) ; if ( ( isPermanentFail ( lastFailCauseCode ) ) && ( ! ( apnContext.getApnType ( ) . equals ( PhoneConstants.APN_TYPE_DEFAULT ) ) ) ) { mPhone.notifyDataConnectionFailed ( apnContext.getReason ( ) , apnContext.getApnType ( ) ) ; } }
Source:
private void readObject ( java.io.ObjectInputStream stream ) throws java.io.IOException , java.lang.ClassNotFoundException { stream.defaultReadObject ( ) ; byte [ ] encoded = ( ( byte [ ] ) ( stream.readObject ( ) ) ) ; key = new org.apache.harmony.xnet.provider.jsse.OpenSSLKey ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.d2i_PKCS8_PRIV_KEY_INFO ( encoded ) ) ; final int origGroup = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_KEY_get0_group ( key.getPkeyContext ( ) ) ; group = new org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_dup ( origGroup ) ) ; }

Target:
private void readObject ( java.io.ObjectInputStream stream ) throws java.io.IOException , java.lang.ClassNotFoundException { stream.defaultReadObject ( ) ; byte [ ] encoded = ( ( byte [ ] ) ( stream.readObject ( ) ) ) ; key = new org.apache.harmony.xnet.provider.jsse.OpenSSLKey ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.d2i_PKCS8_PRIV_KEY_INFO ( encoded ) ) ; final long origGroup = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_KEY_get0_group ( key.getPkeyContext ( ) ) ; group = new org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_dup ( origGroup ) ) ; }
Source:
public void test_setTrafficClass ( ) throws java.lang.Exception { java.net.DatagramSocket s = new java.net.DatagramSocket ( ) ; for ( int i = 0 ; i <= 255 ; ++ i ) { s.setTrafficClass ( i ) ; assertEquals ( i , s.getTrafficClass ( ) ) ; } }

Target:
public void test_setTrafficClass ( ) throws java.lang.Exception { try ( java.net.DatagramSocket s = new java.net.DatagramSocket ( ) ) { for ( int i = 0 ; i <= 255 ; ++ i ) { s.setTrafficClass ( i ) ; assertEquals ( i , s.getTrafficClass ( ) ) ; } } }
Source:
private int [ ] readChunkLengths ( java.io.BufferedInputStream bundle ) throws java.io.IOException { int [ ] chunks = new int [ 6 ] ; chunks [ 0 ] = readInt ( bundle ) ; chunks [ 1 ] = readInt ( bundle ) ; chunks [ 2 ] = readInt ( bundle ) ; chunks [ 3 ] = readInt ( bundle ) ; chunks [ 4 ] = readInt ( bundle ) ; chunks [ 5 ] = readInt ( bundle ) ; return chunks ; }

Target:
private int [ ] readChunkLengths ( java.io.BufferedInputStream bundle ) throws java.io.IOException { int [ ] chunks = new int [ 7 ] ; chunks [ 0 ] = readInt ( bundle ) ; chunks [ 1 ] = readInt ( bundle ) ; chunks [ 2 ] = readInt ( bundle ) ; chunks [ 3 ] = readInt ( bundle ) ; chunks [ 4 ] = readInt ( bundle ) ; chunks [ 5 ] = readInt ( bundle ) ; chunks [ 6 ] = readInt ( bundle ) ; return chunks ; }
Source:
public static com.android.util.Pair < org.eclipse.core.resources.IFile , org.eclipse.jface.text.IRegion > createXmlFile ( org.eclipse.core.resources.IProject project , org.eclipse.core.resources.IFile file , com.android.resources.ResourceFolderType folderType ) { com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileCreationPage.TypeInfo type = com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileCreationPage.getTypeInfo ( folderType ) ; java.lang.String xmlns = type.getXmlns ( ) ; java.lang.String root = type.getDefaultRoot ( ) ; if ( root == null ) { root = type.getRootSeed ( ) . toString ( ) ; } java.lang.String attrs = type.getDefaultAttrs ( project ) ; return com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileWizard.createXmlFile ( file , xmlns , root , attrs ) ; }

Target:
public static com.android.util.Pair < org.eclipse.core.resources.IFile , org.eclipse.jface.text.IRegion > createXmlFile ( org.eclipse.core.resources.IProject project , org.eclipse.core.resources.IFile file , com.android.resources.ResourceFolderType folderType ) { com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileCreationPage.TypeInfo type = com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileCreationPage.getTypeInfo ( folderType ) ; java.lang.String xmlns = type.getXmlns ( ) ; java.lang.String root = type.getDefaultRoot ( ) ; if ( root == null ) { root = type.getRootSeed ( ) . toString ( ) ; } java.lang.String attrs = type.getDefaultAttrs ( project ) ; return com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileWizard.createXmlFile ( file , xmlns , root , attrs , null ) ; }
Source:
public void scanWithHiddenNetwork ( ) throws java.lang.Exception { addNetworkAndVerifySuccess ( true ) ; mWsm.setOperationalMode ( WifiStateMachine.CONNECT_MODE ) ; mWsm.startScan ( ( - 1 ) , 0 , null , null ) ; mLooper.dispatchAll ( ) ; verifyScan ( WifiScanner.WIFI_BAND_BOTH_WITH_DFS , ( ( android.net.wifi.WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN ) | ( android.net.wifi.WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT ) ) , mWifiConfigManager.getHiddenConfiguredNetworkIds ( ) ) ; }

Target:
public void scanWithHiddenNetwork ( ) throws java.lang.Exception { addNetworkAndVerifySuccess ( true ) ; mWsm.setOperationalMode ( WifiStateMachine.CONNECT_MODE ) ; mWsm.startScan ( ( - 1 ) , 0 , null , null ) ; mLooper.dispatchAll ( ) ; verifyScan ( WifiScanner.WIFI_BAND_BOTH_WITH_DFS , ( ( android.net.wifi.WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN ) | ( android.net.wifi.WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT ) ) , null ) ; }
Source:
public static java.lang.String get ( java.lang.String key , java.lang.String def ) { if ( ( key.length ( ) ) > ( android.os.SystemProperties.PROP_NAME_MAX ) ) { throw new java.lang.IllegalArgumentException ( ( "key.length > " + ( android.os.SystemProperties.PROP_NAME_MAX ) ) ) ; } if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; return android.os.SystemProperties.native_get ( key , def ) ; }

Target:
public static java.lang.String get ( java.lang.String key , java.lang.String def ) { if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; return android.os.SystemProperties.native_get ( key , def ) ; }
Source:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) { return true ; } if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) { return false ; } if ( ! ( super . equals ( o ) ) ) { return false ; } com.android.ide.common.res2.ResourceItem that = ( ( com.android.ide.common.res2.ResourceItem ) ( o ) ) ; if ( ( mType ) != ( that.mType ) ) { return false ; } return true ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) { return true ; } if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) { return false ; } if ( ! ( super . equals ( o ) ) ) { return false ; } com.android.ide.common.res2.ResourceItem that = ( ( com.android.ide.common.res2.ResourceItem ) ( o ) ) ; return ( mType ) == ( that.mType ) ; }
Source:
public void removeJavaReferenceFor ( int native_object ) { T delegate = getDelegate ( native_object ) ; if ( com.android.layoutlib.bridge.util.Debug.DEBUG ) { java.lang.System.out.println ( ( ( ( "Removing main Java ref on " + ( mClass.getSimpleName ( ) ) ) + " with int " ) + native_object ) ) ; } mJavaReferences.remove ( delegate ) ; }

Target:
public void removeJavaReferenceFor ( long native_object ) { T delegate = getDelegate ( native_object ) ; if ( com.android.layoutlib.bridge.util.Debug.DEBUG ) { java.lang.System.out.println ( ( ( ( "Removing main Java ref on " + ( mClass.getSimpleName ( ) ) ) + " with int " ) + native_object ) ) ; } mJavaReferences.remove ( delegate ) ; }
Source:
static com.android.bluetooth.hfp.HeadsetStateMachine make ( android.os.Looper looper , com.android.bluetooth.hfp.HeadsetService service , com.android.bluetooth.hfp.HeadsetNativeInterface nativeInterface , com.android.bluetooth.hfp.HeadsetSystemInterface systemInterface ) { android.util.Log.i ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "make" ) ; com.android.bluetooth.hfp.HeadsetStateMachine stateMachine = new com.android.bluetooth.hfp.HeadsetStateMachine ( looper , service , nativeInterface , systemInterface ) ; stateMachine.start ( ) ; return stateMachine ; }

Target:
static com.android.bluetooth.hfp.HeadsetStateMachine make ( android.bluetooth.BluetoothDevice device , android.os.Looper looper , com.android.bluetooth.hfp.HeadsetService service , com.android.bluetooth.hfp.HeadsetNativeInterface nativeInterface , com.android.bluetooth.hfp.HeadsetSystemInterface systemInterface ) { android.util.Log.i ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "make" ) ; com.android.bluetooth.hfp.HeadsetStateMachine stateMachine = new com.android.bluetooth.hfp.HeadsetStateMachine ( device , looper , service , nativeInterface , systemInterface ) ; stateMachine.start ( ) ; return stateMachine ; }
Source:
public java.util.Collection < com.android.tools.idea.wizard.WizardPath > createWizardPaths ( @ org.jetbrains.annotations.NotNull com.android.tools.idea.wizard.NewModuleWizardState wizardState , @ org.jetbrains.annotations.NotNull com.android.tools.idea.wizard.TemplateWizardStep.UpdateListener updateListener , @ org.jetbrains.annotations.Nullable com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.Nullable javax.swing.Icon sidePanelIcon , @ org.jetbrains.annotations.NotNull com.intellij.openapi.Disposable disposable ) { if ( ( project == null ) || ( ! ( com.intellij.openapi.application.ApplicationManager.getApplication ( ) . isInternal ( ) ) ) ) { return java.util.Collections.emptyList ( ) ; } return java.util.Collections.< com.android.tools.idea.wizard.WizardPath > singleton ( new com.google.gct.idea.appengine.wizard.BackendWizardPath ( project , wizardState , updateListener , sidePanelIcon ) ) ; }

Target:
public java.util.Collection < com.android.tools.idea.wizard.WizardPath > createWizardPaths ( @ org.jetbrains.annotations.NotNull com.android.tools.idea.wizard.NewModuleWizardState wizardState , @ org.jetbrains.annotations.NotNull com.android.tools.idea.wizard.TemplateWizardStep.UpdateListener updateListener , @ org.jetbrains.annotations.Nullable com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.Nullable javax.swing.Icon sidePanelIcon , @ org.jetbrains.annotations.NotNull com.intellij.openapi.Disposable disposable ) { if ( project == null ) { return java.util.Collections.emptyList ( ) ; } return java.util.Collections.< com.android.tools.idea.wizard.WizardPath > singleton ( new com.google.gct.idea.appengine.wizard.BackendWizardPath ( project , wizardState , updateListener , sidePanelIcon ) ) ; }
Source:
private static java.util.ArrayList < java.io.File > splitPaths ( java.lang.String path1 , java.lang.String path2 , boolean wantDirectories ) { java.util.ArrayList < java.io.File > result = new java.util.ArrayList < java.io.File > ( ) ; dalvik.system.DexPathList.splitAndAdd ( path1 , wantDirectories , result ) ; dalvik.system.DexPathList.splitAndAdd ( path2 , wantDirectories , result ) ; return result ; }

Target:
private static java.util.List < java.io.File > splitPaths ( java.lang.String path1 , java.lang.String path2 , boolean wantDirectories ) { java.util.List < java.io.File > result = new java.util.ArrayList < java.io.File > ( ) ; dalvik.system.DexPathList.splitAndAdd ( path1 , wantDirectories , result ) ; dalvik.system.DexPathList.splitAndAdd ( path2 , wantDirectories , result ) ; return result ; }
Source:
private void declineUpgradeRequest ( android.content.Context context ) { com.android.incallui.call.CallList callList = com.android.incallui.InCallPresenter.getInstance ( ) . getCallList ( ) ; if ( callList == null ) { com.android.incallui.StatusBarNotifier.clearAllCallNotifications ( context ) ; com.android.dialer.common.LogUtil.e ( "NotificationBroadcastReceiver.declineUpgradeRequest" , "call list is empty" ) ; } else { com.android.incallui.call.DialerCall call = callList.getVideoUpgradeRequestCall ( ) ; if ( call != null ) { call.getVideoTech ( ) . declineVideoRequest ( ) ; } } }

Target:
private void declineUpgradeRequest ( ) { com.android.incallui.call.CallList callList = com.android.incallui.InCallPresenter.getInstance ( ) . getCallList ( ) ; if ( callList == null ) { com.android.incallui.StatusBarNotifier.clearAllCallNotifications ( ) ; com.android.dialer.common.LogUtil.e ( "NotificationBroadcastReceiver.declineUpgradeRequest" , "call list is empty" ) ; } else { com.android.incallui.call.DialerCall call = callList.getVideoUpgradeRequestCall ( ) ; if ( call != null ) { call.getVideoTech ( ) . declineVideoRequest ( ) ; } } }
Source:
public void testConnectViaHttpProxyToHttpsUsingBadProxyAndHttpResponseCache ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLContext testSSLContext = createDefaultTestSSLContext ( ) ; initResponseCache ( ) ; server.useHttps ( testSSLContext.serverContext.getSocketFactory ( ) , true ) ; com.google.mockwebserver.MockResponse badProxyResponse = new com.google.mockwebserver.MockResponse ( ) . setSocketPolicy ( SocketPolicy.UPGRADE_TO_SSL_AT_END ) . clearHeaders ( ) . setBody ( "bogus proxy connect response content" ) ; server.enqueue ( badProxyResponse ) ; server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "response" ) ) ; server.play ( ) ; java.net.URL url = new java.net.URL ( "https://android.com/foo" ) ; libcore.java.net.URLConnectionTest.ProxyConfig proxyConfig = libcore.java.net.URLConnectionTest.ProxyConfig.PROXY_SYSTEM_PROPERTY ; javax.net.ssl.HttpsURLConnection connection = ( ( javax.net.ssl.HttpsURLConnection ) ( proxyConfig.connect ( server , url ) ) ) ; connection.setSSLSocketFactory ( testSSLContext.clientContext.getSocketFactory ( ) ) ; connection.setHostnameVerifier ( new libcore.java.net.URLConnectionTest.RecordingHostnameVerifier ( ) ) ; assertContent ( "response" , connection ) ; com.google.mockwebserver.RecordedRequest connect = server.takeRequest ( ) ; assertEquals ( "CONNECT android.com:443 HTTP/1.1" , connect.getRequestLine ( ) ) ; assertContains ( connect.getHeaders ( ) , "Host: android.com" ) ; }

Target:
public void testConnectViaHttpProxyToHttpsUsingBadProxyAndHttpResponseCache ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLContext testSSLContext = createDefaultTestSSLContext ( ) ; initResponseCache ( ) ; server.useHttps ( testSSLContext.serverContext.getSocketFactory ( ) , true ) ; com.google.mockwebserver.MockResponse badProxyResponse = new com.google.mockwebserver.MockResponse ( ) . setSocketPolicy ( SocketPolicy.UPGRADE_TO_SSL_AT_END ) . clearHeaders ( ) . setBody ( "bogus proxy connect response content" ) ; server.enqueue ( badProxyResponse ) ; server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "response" ) ) ; server.play ( ) ; java.net.URL url = new java.net.URL ( "https://android.com/foo" ) ; libcore.java.net.URLConnectionTest.ProxyConfig proxyConfig = libcore.java.net.URLConnectionTest.ProxyConfig.PROXY_SYSTEM_PROPERTY ; javax.net.ssl.HttpsURLConnection connection = ( ( javax.net.ssl.HttpsURLConnection ) ( proxyConfig.connect ( server , url ) ) ) ; connection.setSSLSocketFactory ( testSSLContext.clientContext.getSocketFactory ( ) ) ; connection.setHostnameVerifier ( new libcore.java.net.URLConnectionTest.RecordingHostnameVerifier ( ) ) ; assertContent ( "response" , connection ) ; com.google.mockwebserver.RecordedRequest connect = server.takeRequest ( ) ; assertEquals ( "CONNECT android.com:443 HTTP/1.1" , connect.getRequestLine ( ) ) ; assertContains ( connect.getHeaders ( ) , "Host: android.com:443" ) ; }
Source:
public void testInstallEmptyDeletedSystemExists ( ) throws java.lang.Exception { org.conscrypt.TrustedCertificateStoreTest.install ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; store.deleteCertificateEntry ( org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertEmpty ( ) ; assertDeleted ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; store.installCertificate ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) ) ; assertRootCa ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertAliases ( org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; }

Target:
public void testInstallEmptyDeletedSystemExists ( ) throws java.lang.Exception { install ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; store.deleteCertificateEntry ( org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertEmpty ( ) ; assertDeleted ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; store.installCertificate ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) ) ; assertRootCa ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertAliases ( org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; }
Source:
public static java.security.MessageDigest getMessageDigestInstance ( com.android.apksigner.core.internal.apk.v1.DigestAlgorithm digestAlgorithm ) { java.lang.String jcaAlgorithm = digestAlgorithm.getJcaMessageDigestAlgorithm ( ) ; try { return java.security.MessageDigest.getInstance ( jcaAlgorithm ) ; } catch ( java.security.NoSuchAlgorithmException e ) { throw new java.lang.RuntimeException ( ( ( "Failed to obtain " + jcaAlgorithm ) + " MessageDigest" ) , e ) ; } }

Target:
private static java.security.MessageDigest getMessageDigestInstance ( com.android.apksigner.core.internal.apk.v1.DigestAlgorithm digestAlgorithm ) throws java.security.NoSuchAlgorithmException { java.lang.String jcaAlgorithm = digestAlgorithm.getJcaMessageDigestAlgorithm ( ) ; return java.security.MessageDigest.getInstance ( jcaAlgorithm ) ; }
Source:
public void test_getDisplayCountry ( ) { assertTrue ( ( "Returned incorrect country: " + ( testLocale.getDisplayCountry ( ) ) ) , testLocale.getDisplayCountry ( ) . equals ( "Canada" ) ) ; java.util.Locale l_countryCD = new java.util.Locale ( "" , "CD" ) ; assertEquals ( "Congo (DRC)" , l_countryCD.getDisplayCountry ( ) ) ; }

Target:
public void test_getDisplayCountry ( ) { assertTrue ( ( "Returned incorrect country: " + ( testLocale.getDisplayCountry ( ) ) ) , testLocale.getDisplayCountry ( ) . equals ( "Canada" ) ) ; }
Source:
void onTargetPackageAdded ( @ android.annotation.NonNull final java.lang.String packageName , final int userId ) { if ( com.android.server.om.OverlayManagerService.DEBUG ) { android.util.Slog.d ( com.android.server.om.OverlayManagerService.TAG , ( ( ( "onTargetPackageAdded packageName=" + packageName ) + " userId=" ) + userId ) ) ; } final android.content.pm.PackageInfo targetPackage = mPackageManager.getPackageInfo ( packageName , userId ) ; if ( updateAllOverlaysForTarget ( packageName , userId , targetPackage ) ) { mListener.onOverlaysChanged ( packageName , userId ) ; } }

Target:
void onTargetPackageAdded ( @ android.annotation.NonNull final java.lang.String packageName , final int userId ) { if ( com.android.server.om.OverlayManagerService.DEBUG ) { android.util.Slog.d ( com.android.server.om.OverlayManagerService.TAG , ( ( ( "onTargetPackageAdded packageName=" + packageName ) + " userId=" ) + userId ) ) ; } final android.content.pm.PackageInfo targetPackage = mPackageManager.getPackageInfo ( packageName , userId ) ; updateAllOverlaysForTarget ( packageName , userId , targetPackage ) ; mListener.onOverlaysChanged ( packageName , userId ) ; }
Source:
public boolean isMoreStableThan ( @ javax.annotation.Nonnull com.android.sched.util.SubReleaseKind other ) throws com.android.sched.util.UncomparableSubReleaseKind { if ( ( ( ( this ) == ( com.android.sched.util.SubReleaseKind.ENGINEERING ) ) && ( other != ( com.android.sched.util.SubReleaseKind.ENGINEERING ) ) ) || ( ( ( this ) != ( com.android.sched.util.SubReleaseKind.ENGINEERING ) ) && ( other == ( com.android.sched.util.SubReleaseKind.ENGINEERING ) ) ) ) { throw new com.android.sched.util.UncomparableSubReleaseKind ( ( ( ( this ) + " is not comparable with " ) + other ) ) ; } return ( ordinal ( ) ) > ( other.ordinal ( ) ) ; }

Target:
public boolean isMoreStableThan ( @ javax.annotation.Nonnull com.android.sched.util.SubReleaseKind other ) throws com.android.sched.util.UncomparableSubReleaseKind { if ( ( ( ( this ) == ( com.android.sched.util.SubReleaseKind.ENGINEERING ) ) && ( other != ( com.android.sched.util.SubReleaseKind.ENGINEERING ) ) ) || ( ( ( this ) != ( com.android.sched.util.SubReleaseKind.ENGINEERING ) ) && ( other == ( com.android.sched.util.SubReleaseKind.ENGINEERING ) ) ) ) { throw new com.android.sched.util.UncomparableSubReleaseKind ( ( ( ( this . toString ( ) ) + " is not comparable with " ) + ( other.toString ( ) ) ) ) ; } return ( ordinal ( ) ) > ( other.ordinal ( ) ) ; }