auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void responseSignalStrength ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.SignalStrength sigStrength ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { android.telephony.SignalStrength ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = com.android.internal.telephony.RIL.convertHalSignalStrength ( sigStrength ) ; sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseSetupDataCall ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.SetupDataCallResult setupDataCallResult ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.dataconnection.DataCallResponse ret = com.android.internal.telephony.RIL.convertDataCallResult ( setupDataCallResult ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
public void invokeOemRilRequestRaw ( byte [ ] data , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_OEM_HOOK_RAW , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + "[" ) + ( com.android.internal.telephony.IccUtils.bytesToHexString ( data ) ) ) + "]" ) ) ; rr.mp.writeByteArray ( data ) ; send ( rr ) ; }

Target:
public void invokeOemRilRequestRaw ( byte [ ] data , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_OEM_HOOK_RAW , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + "[" ) + ( com.android.internal.telephony.uicc.IccUtils.bytesToHexString ( data ) ) ) + "]" ) ) ; rr.mp.writeByteArray ( data ) ; send ( rr ) ; }
Source:
private static void reportTypeDef ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation , @ com.android.annotations.NonNull lombok.ast.Node argument , @ com.android.annotations.Nullable lombok.ast.Node errorNode ) { java.lang.Object allowed = annotation.getValue ( ) ; if ( allowed instanceof java.lang.Object [ ] ) { java.lang.Object [ ] allowedValues = ( ( java.lang.Object [ ] ) ( allowed ) ) ; com.android.tools.lint.checks.SupportAnnotationDetector.reportTypeDef ( context , argument , errorNode , false , allowedValues ) ; } }

Target:
private static void reportTypeDef ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation , @ com.android.annotations.NonNull lombok.ast.Node argument , @ com.android.annotations.Nullable lombok.ast.Node errorNode , @ com.android.annotations.NonNull java.lang.Iterable < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > allAnnotations ) { java.lang.Object allowed = annotation.getValue ( ) ; if ( allowed instanceof java.lang.Object [ ] ) { java.lang.Object [ ] allowedValues = ( ( java.lang.Object [ ] ) ( allowed ) ) ; com.android.tools.lint.checks.SupportAnnotationDetector.reportTypeDef ( context , argument , errorNode , false , allowedValues , allAnnotations ) ; } }
Source:
public void onWindowVisibilityChanged ( final int visibility ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onWindowVisibilityChanged ( visibility ) ; } } ) ; return ; } mAwContents.onWindowVisibilityChanged ( visibility ) ; }

Target:
public void onDraw ( final android.graphics.Canvas canvas ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onDraw ( canvas ) ; } } ) ; return ; } mAwContents.onDraw ( canvas ) ; }
Source:
public static void stopListenForWindowChanges ( com.android.hierarchyviewerlib.device.WindowUpdater.IWindowChangeListener listener , com.android.ddmlib.IDevice device ) { synchronized ( com.android.hierarchyviewerlib.device.WindowUpdater.windowChangeListeners ) { java.util.ArrayList < com.android.hierarchyviewerlib.device.WindowUpdater.IWindowChangeListener > listeners = com.android.hierarchyviewerlib.device.WindowUpdater.windowChangeListeners.get ( device ) ; listeners.remove ( listener ) ; if ( ( listeners.size ( ) ) != 0 ) { return ; } com.android.hierarchyviewerlib.device.WindowUpdater.windowChangeListeners.remove ( device ) ; } java.lang.Thread listeningThread ; synchronized ( com.android.hierarchyviewerlib.device.WindowUpdater.listeningThreads ) { listeningThread = com.android.hierarchyviewerlib.device.WindowUpdater.listeningThreads.get ( device ) ; com.android.hierarchyviewerlib.device.WindowUpdater.listeningThreads.remove ( device ) ; } listeningThread.interrupt ( ) ; }

Target:
public static void stopListenForWindowChanges ( com.android.hierarchyviewerlib.device.WindowUpdater.IWindowChangeListener listener , com.android.ddmlib.IDevice device ) { synchronized ( com.android.hierarchyviewerlib.device.WindowUpdater.sWindowChangeListeners ) { java.util.ArrayList < com.android.hierarchyviewerlib.device.WindowUpdater.IWindowChangeListener > listeners = com.android.hierarchyviewerlib.device.WindowUpdater.sWindowChangeListeners.get ( device ) ; listeners.remove ( listener ) ; if ( ( listeners.size ( ) ) != 0 ) { return ; } com.android.hierarchyviewerlib.device.WindowUpdater.sWindowChangeListeners.remove ( device ) ; } java.lang.Thread listeningThread ; synchronized ( com.android.hierarchyviewerlib.device.WindowUpdater.sListeningThreads ) { listeningThread = com.android.hierarchyviewerlib.device.WindowUpdater.sListeningThreads.get ( device ) ; com.android.hierarchyviewerlib.device.WindowUpdater.sListeningThreads.remove ( device ) ; } listeningThread.interrupt ( ) ; }
Source:
public static int IntMatCond_IntVarVar ( int a , int b , int x , int y ) { int result = ( a > b ) ? x : y ; return result + ( a > b ? 0 : 1 ) ; }

Target:
public static int IntMatCond_IntVarVar ( int a , int b , int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int result = ( a > b ) ? x : y ; return result + ( a > b ? 0 : 1 ) ; }
Source:
public void setNextValueAsArrayTypeID ( long val ) { this . setNextValueAsObjectID ( val ) ; }

Target:
public long getNextValueAsReferenceTypeID ( ) { final int referenceTypeIdSize = org.apache.harmony.jpda.tests.framework.jdwp.TypesLengths.getTypeLength ( TypesLengths.REFERENCE_TYPE_ID ) ; if ( ( referenceTypeIdSize < 0 ) || ( referenceTypeIdSize > 8 ) ) { throw new org.apache.harmony.jpda.tests.framework.TestErrorException ( ( ( "Improper ReferenceTypeID value length = " + referenceTypeIdSize ) + "!" ) ) ; } reading_data_index = ( reading_data_index ) + referenceTypeIdSize ; return org.apache.harmony.jpda.tests.framework.jdwp.Packet.readFromByteArray ( data , ( ( reading_data_index ) - referenceTypeIdSize ) , referenceTypeIdSize ) ; }
Source:
protected void onDestroy ( ) { super . onDestroy ( ) ; if ( ( mScreenManipulator ) != null ) { mScreenManipulator.releaseScreenOn ( ) ; mScreenManipulator.close ( ) ; } if ( mDeviceSuspendLock.isHeld ( ) ) { mDeviceSuspendLock.release ( ) ; } }

Target:
protected void activityCleanUp ( ) { mScreenManipulator.turnScreenOn ( ) ; try { playSound ( ) ; } catch ( java.lang.InterruptedException e ) { } android.support.v4.content.LocalBroadcastManager.getInstance ( this ) . unregisterReceiver ( myBroadCastReceiver ) ; if ( ( ( mDeviceSuspendLock ) != null ) && ( mDeviceSuspendLock.isHeld ( ) ) ) { mDeviceSuspendLock.release ( ) ; } }
Source:
public boolean addToBlacklist ( java.lang.String bssid ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) return false ; return doBooleanCommand ( ( "BLACKLIST " + bssid ) ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getNetworkExtra ( int netId , java.lang.String name ) { final java.lang.String extraString = getNetworkVariable ( netId , name ) ; if ( ( ( extraString == null ) || ( ! ( extraString.startsWith ( "\"" ) ) ) ) || ( ! ( extraString.endsWith ( "\"" ) ) ) ) { return null ; } return com.android.server.wifi.WifiNative.parseNetworkExtra ( com.android.server.wifi.util.NativeUtil.removeEnclosingQuotes ( extraString ) ) ; }
Source:
private static byte [ ] getActualPlainText ( java.lang.String algorithm ) { if ( ( ( ( algorithm.equals ( "AES" ) ) || ( algorithm.equals ( "AES/CBC/NOPADDING" ) ) ) || ( algorithm.equals ( "AES/CTS/NOPADDING" ) ) ) || ( algorithm.equals ( "AES/ECB/NOPADDING" ) ) ) { return libcore.javax.crypto.CipherTest.SIXTEEN_BYTE_BLOCK_PLAIN_TEXT ; } return libcore.javax.crypto.CipherTest.ORIGINAL_PLAIN_TEXT ; }

Target:
private static byte [ ] getActualPlainText ( java.lang.String algorithm ) { if ( ( ( ( algorithm.equals ( "AES" ) ) || ( algorithm.equals ( "AES/CBC/NOPADDING" ) ) ) || ( algorithm.equals ( "AES/CTS/NOPADDING" ) ) ) || ( algorithm.equals ( "AES/ECB/NOPADDING" ) ) ) { return libcore.javax.crypto.CipherTest.SIXTEEN_BYTE_BLOCK_PLAIN_TEXT ; } if ( ( ( algorithm.equals ( "DESEDE" ) ) || ( algorithm.equals ( "DESEDE/CBC/NOPADDING" ) ) ) || ( algorithm.equals ( "DESEDE/ECB/NOPADDING" ) ) ) { return libcore.javax.crypto.CipherTest.EIGHT_BYTE_BLOCK_PLAIN_TEXT ; } return libcore.javax.crypto.CipherTest.ORIGINAL_PLAIN_TEXT ; }
Source:
public boolean cleanup ( ) { if ( com.android.bluetooth.opp.BluetoothOppService.V ) { android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppService.TAG , "onDestroy" ) ; } getContentResolver ( ) . unregisterContentObserver ( mObserver ) ; unregisterReceiver ( mBluetoothReceiver ) ; stopListeners ( ) ; if ( ( mBatchs ) != null ) { mBatchs.clear ( ) ; } if ( ( mShares ) != null ) { mShares.clear ( ) ; } if ( ( mHandler ) != null ) { mHandler.removeCallbacksAndMessages ( null ) ; } return true ; }

Target:
private void unregisterReceivers ( ) { try { if ( ( mObserver ) != null ) { getContentResolver ( ) . unregisterContentObserver ( mObserver ) ; mObserver = null ; } unregisterReceiver ( mBluetoothReceiver ) ; } catch ( java.lang.IllegalArgumentException e ) { android.util.Log.w ( com.android.bluetooth.opp.BluetoothOppService.TAG , ( "unregisterReceivers " + ( e.toString ( ) ) ) ) ; } }
Source:
public void finish ( @ javax.annotation.Nonnull java.io.OutputStream out ) throws java.io.IOException { dexResult.prepare ( cstManager.getCstIndexMaps ( ) ) ; if ( ! ( cstManager.validate ( dexResult ) ) ) { throw new java.lang.AssertionError ( ) ; } dexResult.writeTo ( out , null , false ) ; finished = true ; }

Target:
public void finish ( @ javax.annotation.Nonnull java.io.OutputStream out ) throws java.io.IOException { dexResult.prepare ( cstManager.getCstStrings ( ) , cstManager.getCstFieldRefs ( ) , cstManager.getCstMethodRefs ( ) , cstManager.getCstTypes ( ) ) ; if ( ! ( cstManager.validate ( dexResult ) ) ) { throw new java.lang.AssertionError ( ) ; } dexResult.writeTo ( out , null , false ) ; finished = true ; }
Source:
public boolean isPossibleShortNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.util.List < java.lang.String > regionCodes = getRegionCodesForCountryCode ( number.getCountryCode ( ) ) ; java.lang.String shortNumber = com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) ; for ( java.lang.String region : regionCodes ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( region ) ; if ( phoneMetadata == null ) { continue ; } if ( matcherApi.matchesPossibleNumber ( shortNumber , phoneMetadata.getGeneralDesc ( ) ) ) { return true ; } } return false ; }

Target:
public boolean isPossibleShortNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.util.List < java.lang.String > regionCodes = getRegionCodesForCountryCode ( number.getCountryCode ( ) ) ; int shortNumberLength = com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) . length ( ) ; for ( java.lang.String region : regionCodes ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( region ) ; if ( phoneMetadata == null ) { continue ; } if ( phoneMetadata.getGeneralDesc ( ) . getPossibleLengthList ( ) . contains ( shortNumberLength ) ) { return true ; } } return false ; }
Source:
public void takeScreenshot ( ) { if ( ( mState ) >= ( com.android.nfc.beam.SendUi.STATE_W4_TOUCH ) ) { return ; } mState = com.android.nfc.beam.SendUi.STATE_W4_SCREENSHOT ; new com.android.nfc.beam.SendUi.ScreenshotTask ( ) . execute ( ) ; }

Target:
public void takeScreenshot ( ) { if ( ( mState ) >= ( com.android.nfc.beam.SendUi.STATE_W4_TOUCH ) ) { return ; } mState = com.android.nfc.beam.SendUi.STATE_W4_SCREENSHOT ; new com.android.nfc.beam.SendUi.ScreenshotTask ( ) . execute ( ) ; final android.content.IntentFilter filter = new android.content.IntentFilter ( android.content.Intent.ACTION_CLOSE_SYSTEM_DIALOGS ) ; mContext.registerReceiver ( mReceiver , filter ) ; }
Source:
private static int char32AtAndAdvance ( java.text.AttributedCharacterIterator iterator ) { char c1 = iterator.current ( ) ; iterator.next ( ) ; if ( com.ibm.icu.lang.UCharacter.isHighSurrogate ( c1 ) ) { char c2 = iterator.current ( ) ; if ( c2 != ( java.text.CharacterIterator.DONE ) ) { if ( com.ibm.icu.lang.UCharacter.isLowSurrogate ( c2 ) ) { iterator.next ( ) ; return com.ibm.icu.lang.UCharacter.toCodePoint ( c1 , c2 ) ; } } } return c1 ; }

Target:
private java.lang.String format ( java.text.AttributedCharacterIterator iterator , com.ibm.icu.text.ScientificNumberFormatter.Style option ) { return option.format ( iterator , preExponent ) ; }
Source:
public void testAesCbcHmacSha512Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , android.net.cts.IpSecManagerTest.getKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha512Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public void testExistsOnSystem ( ) { java.io.File sh = new java.io.File ( "/system/bin/uncrypt" ) ; assertTrue ( sh.exists ( ) ) ; try { android.system.Os.stat ( sh.getAbsolutePath ( ) ) ; fail ( ) ; } catch ( libcore.java.io.android expected ) { } }

Target:
public void testExistsOnSystem ( ) throws android.system.ErrnoException { assertEquals ( "SECCOMP filter is not installed." , 0 , libcore.java.io.FileTest.installSeccompFilter ( ) ) ; java.io.File sh = new java.io.File ( "/sdcard" ) ; assertTrue ( sh.exists ( ) ) ; }
Source:
public void setView ( int type , int i , float [ ] vertexColors ) { view = new android.opengl.cts.OpenGLES20ActivityTwo.OpenGLES20View ( this , type , i , vertexColors , mLatch ) ; setContentView ( view ) ; }

Target:
public void setView ( int type , int i , float [ ] vertexColors ) { android.view.Window window = getWindow ( ) ; window.addFlags ( ( ( ( ( ( WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD ) | ( WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON ) ) | ( WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON ) ) | ( WindowManager.LayoutParams.FLAG_FULLSCREEN ) ) | ( WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED ) ) ) ; view = new android.opengl.cts.OpenGLES20ActivityTwo.OpenGLES20View ( this , type , i , vertexColors , mLatch ) ; setContentView ( view ) ; }
Source:
public void testDeserializeProxyWasInterface ( ) throws java.lang.Exception { final java.lang.String s = "aced0005737d00000001002e6c6962636f72652e6a6176612e696f2e53657269616c697a6" + ( ( ( ( "174696f6e5465737424576173496e74657266616365787200176a6176612e6c616e672e7265666c6" + "563742e50726f7879e127da20cc1043cb0200014c0001687400254c6a6176612f6c616e672f72656" ) + "66c6563742f496e766f636174696f6e48616e646c65723b78707372003f6c6962636f72652e6a617" ) + "6612e696f2e53657269616c697a6174696f6e546573742453657269616c697a61626c65496e766f6" ) + "36174696f6e48616e646c6572e6ceffa2941ee3210200007870" ) ; try { libcore.util.SerializationTester.deserializeHex ( s ) ; fail ( ) ; } catch ( java.lang.ClassNotFoundException expected ) { } }

Target:
public void testDeserializeProxyWasInterface ( ) throws java.lang.Exception { final java.lang.String s = "aced0005737d00000001002e6c6962636f72652e6a6176612e696f2e53657269616c697a6" + ( ( ( ( "174696f6e5465737424576173496e74657266616365787200176a6176612e6c616e672e7265666c6" + "563742e50726f7879e127da20cc1043cb0200014c0001687400254c6a6176612f6c616e672f72656" ) + "66c6563742f496e766f636174696f6e48616e646c65723b78707372003f6c6962636f72652e6a617" ) + "6612e696f2e53657269616c697a6174696f6e546573742453657269616c697a61626c65496e766f6" ) + "36174696f6e48616e646c6572e6ceffa2941ee3210200007870" ) ; try { libcore.libcore.util.SerializationTester.deserializeHex ( s ) ; fail ( ) ; } catch ( java.lang.ClassNotFoundException expected ) { } }
Source:
public java.util.List < com.android.resources.ResourceType > getResourceTypes ( ) { update ( ) ; if ( ( mResourceTypeList ) == null ) { java.util.Set < com.android.resources.ResourceType > keys = mResourceItems.keySet ( ) ; mResourceTypeList = new java.util.ArrayList < com.android.resources.ResourceType > ( ) ; mResourceTypeList.addAll ( keys ) ; mResourceTypeList = java.util.Collections.unmodifiableList ( mResourceTypeList ) ; } return mResourceTypeList ; }

Target:
protected void load ( ) { parseFile ( ) ; mResourceTypeList = java.util.Collections.unmodifiableCollection ( mResourceItems.keySet ( ) ) ; updateResourceItems ( ) ; }
Source:
public void enter ( ) { log ( ( "Enter Pending: " + ( getCurrentMessage ( ) . what ) ) ) ; }

Target:
public void enter ( ) { log ( ( "Enter Pending: " + ( getCurrentMessage ( ) . what ) ) ) ; if ( ( ( mTargetDevice ) != null ) && ( ( mIncomingDevice ) != null ) ) { loge ( ( ( ( ( ( "ERROR: enter() inconsistent state in Pending: current = " + ( mCurrentDevice ) ) + " target = " ) + ( mTargetDevice ) ) + " incoming = " ) + ( mIncomingDevice ) ) ) ; } }
Source:
private void onApnChanged ( ) { com.android.internal.telephony.DctConstants.State overallState = getOverallState ( ) ; boolean isDisconnected = ( overallState == ( DctConstants.State.IDLE ) ) || ( overallState == ( DctConstants.State.FAILED ) ) ; if ( ( mPhone ) instanceof com.android.internal.telephony.gsm.GSMPhone ) { ( ( com.android.internal.telephony.gsm.GSMPhone ) ( mPhone ) ) . updateCurrentCarrierInProvider ( ) ; } if ( DBG ) log ( "onApnChanged: createAllApnList and cleanUpAllConnections" ) ; createAllApnList ( ) ; cleanUpAllConnections ( ( ! isDisconnected ) , Phone.REASON_APN_CHANGED ) ; if ( isDisconnected ) { setupDataOnConnectableApns ( Phone.REASON_APN_CHANGED ) ; } }

Target:
private void onApnChanged ( ) { com.android.internal.telephony.DctConstants.State overallState = getOverallState ( ) ; boolean isDisconnected = ( overallState == ( DctConstants.State.IDLE ) ) || ( overallState == ( DctConstants.State.FAILED ) ) ; if ( ( mPhone ) instanceof com.android.internal.telephony.gsm.GSMPhone ) { ( ( com.android.internal.telephony.gsm.GSMPhone ) ( mPhone ) ) . updateCurrentCarrierInProvider ( ) ; } if ( DBG ) log ( "onApnChanged: createAllApnList and cleanUpAllConnections" ) ; createAllApnList ( ) ; setInitialAttachApn ( ) ; cleanUpAllConnections ( ( ! isDisconnected ) , Phone.REASON_APN_CHANGED ) ; if ( isDisconnected ) { setupDataOnConnectableApns ( Phone.REASON_APN_CHANGED ) ; } }
Source:
public static com.android.jack.dx.rop.code.Rop opGetField ( com.android.jack.dx.rop.type.TypeBearer type ) { switch ( type.getBasicType ( ) ) { case com.android.jack.dx.rop.type.Type.BT_INT : return com.android.jack.dx.rop.code.Rops.GET_FIELD_INT ; case com.android.jack.dx.rop.type.Type.BT_LONG : return com.android.jack.dx.rop.code.Rops.GET_FIELD_LONG ; case com.android.jack.dx.rop.type.Type.BT_FLOAT : return com.android.jack.dx.rop.code.Rops.GET_FIELD_FLOAT ; case com.android.jack.dx.rop.type.Type.BT_DOUBLE : return com.android.jack.dx.rop.code.Rops.GET_FIELD_DOUBLE ; case com.android.jack.dx.rop.type.Type.BT_OBJECT : return com.android.jack.dx.rop.code.Rops.GET_FIELD_OBJECT ; case com.android.jack.dx.rop.type.Type.BT_BOOLEAN : return com.android.jack.dx.rop.code.Rops.GET_FIELD_BOOLEAN ; case com.android.jack.dx.rop.type.Type.BT_BYTE : return com.android.jack.dx.rop.code.Rops.GET_FIELD_BYTE ; case com.android.jack.dx.rop.type.Type.BT_CHAR : return com.android.jack.dx.rop.code.Rops.GET_FIELD_CHAR ; case com.android.jack.dx.rop.type.Type.BT_SHORT : return com.android.jack.dx.rop.code.Rops.GET_FIELD_SHORT ; } return com.android.jack.dx.rop.code.Rops.throwBadType ( type ) ; }

Target:
public static com.android.jack.dx.rop.code.Rop opGetField ( com.android.jack.dx.rop.type.TypeBearer type ) { switch ( type.getBasicType ( ) ) { case com.android.jack.dx.rop.type.Type.BT_INT : return com.android.jack.dx.rop.code.Rops.GET_FIELD_INT ; case com.android.jack.dx.rop.type.Type.BT_LONG : return com.android.jack.dx.rop.code.Rops.GET_FIELD_LONG ; case com.android.jack.dx.rop.type.Type.BT_FLOAT : return com.android.jack.dx.rop.code.Rops.GET_FIELD_FLOAT ; case com.android.jack.dx.rop.type.Type.BT_DOUBLE : return com.android.jack.dx.rop.code.Rops.GET_FIELD_DOUBLE ; case com.android.jack.dx.rop.type.Type.BT_CLOSURE : case com.android.jack.dx.rop.type.Type.BT_OBJECT : return com.android.jack.dx.rop.code.Rops.GET_FIELD_OBJECT ; case com.android.jack.dx.rop.type.Type.BT_BOOLEAN : return com.android.jack.dx.rop.code.Rops.GET_FIELD_BOOLEAN ; case com.android.jack.dx.rop.type.Type.BT_BYTE : return com.android.jack.dx.rop.code.Rops.GET_FIELD_BYTE ; case com.android.jack.dx.rop.type.Type.BT_CHAR : return com.android.jack.dx.rop.code.Rops.GET_FIELD_CHAR ; case com.android.jack.dx.rop.type.Type.BT_SHORT : return com.android.jack.dx.rop.code.Rops.GET_FIELD_SHORT ; } return com.android.jack.dx.rop.code.Rops.throwBadType ( type ) ; }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String instructionSet ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , instructionSet ) ; }

Target:
public int createOatDir ( java.lang.String oatDir , java.lang.String dexInstructionSet ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( "createoatdir" ) ; builder.append ( ' ' ) ; builder.append ( oatDir ) ; builder.append ( ' ' ) ; builder.append ( dexInstructionSet ) ; return mInstaller.execute ( builder.toString ( ) ) ; }
Source:
private void cleanUpUser ( int userId ) { synchronized ( mPackages ) { java.util.Set < java.util.Map.Entry < java.lang.String , com.android.server.pm.PackageSetting > > entries = mSettings.mPackages.entrySet ( ) ; for ( java.util.Map.Entry < java.lang.String , com.android.server.pm.PackageSetting > entry : entries ) { entry.getValue ( ) . removeUser ( userId ) ; } if ( mDirtyUsers.remove ( userId ) ) ; mSettings.removeUserLPr ( userId ) ; } }

Target:
void cleanUpUserLILPw ( int userHandle ) { if ( mDirtyUsers.remove ( userHandle ) ) ; mSettings.removeUserLPr ( userHandle ) ; if ( ( mInstaller ) != null ) { mInstaller.removeUserDataDirs ( userHandle ) ; } }
Source:
private static com.android.build.gradle.internal.model.List < java.lang.String > getProductFlavorNames ( @ com.android.annotations.NonNull com.android.build.gradle.internal.variant.BaseVariantData variantData ) { com.android.build.gradle.internal.model.List < java.lang.String > flavorNames = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.android.builder.core.DefaultProductFlavor flavor : variantData.variantConfiguration.productFlavors ) { flavorNames.add ( flavor.name ) ; } return flavorNames ; }

Target:
private static java.util.List < java.lang.String > getProductFlavorNames ( @ com.android.annotations.NonNull com.android.build.gradle.internal.variant.BaseVariantData < ? extends com.android.build.gradle.internal.variant.BaseVariantOutputData > variantData ) { java.util.List < com.android.build.gradle.internal.dsl.GroupableProductFlavor > productFlavors = variantData.getVariantConfiguration ( ) . getProductFlavors ( ) ; java.util.List < java.lang.String > flavorNames = com.google.common.collect.Lists.newArrayListWithCapacity ( productFlavors.size ( ) ) ; for ( com.android.builder.core.DefaultProductFlavor flavor : productFlavors ) { flavorNames.add ( flavor.getName ( ) ) ; } return flavorNames ; }
Source:
public void testAesCbcHmacSha1Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA1 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha256Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 ) ; }
Source:
public void start ( ) { if ( ! ( mStarted.compareAndSet ( false , true ) ) ) { return ; } android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( WifiManager.WIFI_STATE_CHANGED_ACTION ) ; filter.addAction ( WifiManager.SCAN_RESULTS_AVAILABLE_ACTION ) ; mContext.registerReceiver ( mBroadcastReceiver , filter , null , mHandler ) ; mContentResolver.registerContentObserver ( Settings.Global.getUriFor ( Settings.Global.WIFI_WAKEUP_ENABLED ) , true , mContentObserver ) ; mWifiWakeupEnabled = getWifiWakeupEnabledSetting ( ) ; }

Target:
public void onChange ( boolean selfChange ) { mWifiWakeupEnabled = ( Settings.Global.getInt ( mContentResolver , Settings.Global.WIFI_WAKEUP_ENABLED , 0 ) ) == 1 ; mAirplaneModeEnabled = ( Settings.Global.getInt ( mContentResolver , Settings.Global.AIRPLANE_MODE_ON , 0 ) ) == 1 ; }
Source:
private void checkMessages ( java.util.List < com.android.ddmuilib.logcat.LogCatMessage > receivedMessages , com.android.ddmlib.IDevice device ) { if ( ! ( mMonitorEnabled.get ( ) ) ) { return ; } for ( com.android.ddmuilib.logcat.LogCatMessage m : receivedMessages ) { if ( isImportantMessage ( m ) ) { focusLogCatView ( device , m.getAppName ( ) ) ; mMonitorEnabled.set ( false ) ; break ; } } }

Target:
private void checkMessages ( java.util.List < com.android.ddmlib.logcat.LogCatMessage > receivedMessages , com.android.ddmlib.IDevice device ) { if ( ! ( mMonitorEnabled.get ( ) ) ) { return ; } for ( com.android.ddmlib.logcat.LogCatMessage m : receivedMessages ) { if ( isImportantMessage ( m ) ) { focusLogCatView ( device , m.getAppName ( ) ) ; mMonitorEnabled.set ( false ) ; break ; } } }
Source:
public boolean cancelPairingUserInput ( ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot create pairing user input" ) ; return false ; } try { return android.bluetooth.BluetoothDevice.sService.cancelBondProcess ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }

Target:
public boolean setPairingConfirmation ( boolean confirm ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot set pairing confirmation" ) ; return false ; } try { return service.setPairingConfirmation ( this , confirm ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }
Source:
public void setUiTTYMode ( android.content.Context context , int uiTtyMode , android.os.Message onComplete ) throws com.android.ims.ImsException { checkAndThrowExceptionIfServiceUnavailable ( ) ; try { mMmTelFeatureConnection.setUiTTYMode ( uiTtyMode , onComplete ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "setTTYMode()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }

Target:
public com.android.ims.ImsConfig getConfigInterface ( ) throws com.android.ims.ImsException { if ( ( ( mConfig ) != null ) && ( mConfig.isBinderAlive ( ) ) ) { return mConfig ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { android.telephony.ims.aidl.IImsConfig config = mMmTelFeatureConnection.getConfigInterface ( ) ; if ( config == null ) { throw new com.android.ims.ImsException ( "getConfigInterface()" , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_SERVICE_UNAVAILABLE ) ; } mConfig = new com.android.ims.ImsConfig ( config , mContext ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getConfigInterface()" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } return mConfig ; }
Source:
public void testShowDescriptionWithUrl ( ) throws java.lang.Exception { checkDriver ( ( "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "SdCardPath\n" + "----------\n" ) + "Summary: Looks for hardcoded references to /sdcard\n" ) + "\n" ) + "Priority: 6 / 10\n" ) + "Severity: Warning\n" ) + "Category: Correctness\n" ) + "\n" ) + "Your code should not reference the /sdcard path directly; instead use\n" ) + "Environment.getExternalStorageDirectory().getPath().\n" ) + "\n" ) + "Similarly, do not reference the /data/data/ path directly; it can vary in\n" ) + "multi-user scenarios. Instead, use Context.getFilesDir().getPath().\n" ) + "\n" ) + "More information: \n" ) + "http://developer.android.com/guide/topics/data/data-storage.html#filesExternal\n" ) + "\n" ) ) , "" , com.android.tools.lint.LintCliFlags.ERRNO_SUCCESS , new java.lang.String [ ] { "--show" , "SdCardPath" } ) ; }

Target:
public void testShowDescriptionWithUrl ( ) throws java.lang.Exception { checkDriver ( ( "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "SdCardPath\n" + "----------\n" ) + "Summary: Hardcoded reference to /sdcard\n" ) + "\n" ) + "Priority: 6 / 10\n" ) + "Severity: Warning\n" ) + "Category: Correctness\n" ) + "\n" ) + "Your code should not reference the /sdcard path directly; instead use\n" ) + "Environment.getExternalStorageDirectory().getPath().\n" ) + "\n" ) + "Similarly, do not reference the /data/data/ path directly; it can vary in\n" ) + "multi-user scenarios. Instead, use Context.getFilesDir().getPath().\n" ) + "\n" ) + "More information: \n" ) + "http://developer.android.com/guide/topics/data/data-storage.html#filesExternal\n" ) + "\n" ) ) , "" , com.android.tools.lint.LintCliFlags.ERRNO_SUCCESS , new java.lang.String [ ] { "--show" , "SdCardPath" } ) ; }
Source:
void test ( ) { com.android.cts.verifier.notifications.MockListener.probeListenerStatus ( mContext , new com.android.cts.verifier.notifications.MockListener.StatusCatcher ( ) { @ java.lang.Override public void accept ( int result ) { if ( result == ( android.app.Activity.RESULT_OK ) ) { status = com.android.cts.verifier.notifications.InteractiveVerifierActivity.PASS ; next ( ) ; } else { logFail ( ) ; status = com.android.cts.verifier.notifications.InteractiveVerifierActivity.RETEST ; delay ( ) ; } } } ) ; delay ( ) ; }

Target:
void test ( ) { if ( ( com.android.cts.verifier.notifications.MockListener.getInstance ( ) ) != null ) { status = com.android.cts.verifier.notifications.InteractiveVerifierActivity.PASS ; next ( ) ; } else { logFail ( ) ; status = com.android.cts.verifier.notifications.InteractiveVerifierActivity.RETEST ; delay ( ) ; } }
Source:
public org.eclipse.swt.graphics.Font getFont ( java.lang.Object element , int columnIndex ) { if ( element instanceof com.android.sdkuilib.internal.repository.core.PkgItem ) { if ( ( ( ( com.android.sdkuilib.internal.repository.core.PkgItem ) ( element ) ) . getState ( ) ) == ( com.android.sdkuilib.internal.repository.core.PkgItem.PkgState.NEW ) ) { return getTreeFontItalic ( ) ; } } else if ( element instanceof java.lang.Package ) { return getTreeFontItalic ( ) ; } return super . getFont ( element ) ; }

Target:
public org.eclipse.swt.graphics.Font getFont ( java.lang.Object element , int columnIndex ) { if ( element instanceof com.android.sdklib.internal.repository.updater.PkgItem ) { if ( ( ( ( com.android.sdklib.internal.repository.updater.PkgItem ) ( element ) ) . getState ( ) ) == ( com.android.sdklib.internal.repository.updater.PkgItem.PkgState.NEW ) ) { return getTreeFontItalic ( ) ; } } else if ( element instanceof java.lang.Package ) { return getTreeFontItalic ( ) ; } return super . getFont ( element ) ; }
Source:
synchronized boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return replyReportNative ( type , id , data ) ; }

Target:
synchronized boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "sendReport(): device=" + device ) + " id=" ) + id ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.sendReport ( id , data ) ) ; }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; pRS.setMessageHandler ( mRsMessage ) ; com.android.rs.unittest.ScriptC_refcount s = new com.android.rs.unittest.ScriptC_refcount ( pRS ) ; initializeGlobals ( pRS , s ) ; s.invoke_refcount_test ( ) ; pRS.finish ( ) ; mA.destroy ( ) ; mT.destroy ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = createRenderScript ( true ) ; com.android.rs.unittest.ScriptC_refcount s = new com.android.rs.unittest.ScriptC_refcount ( pRS ) ; initializeGlobals ( pRS , s ) ; s.invoke_refcount_test ( ) ; pRS.finish ( ) ; mA.destroy ( ) ; mT.destroy ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }
Source:
public void setHs20 ( boolean hs20 ) { if ( hs20 ) { doBooleanCommand ( "SET HS20 1" ) ; } else { doBooleanCommand ( "SET HS20 0" ) ; } }

Target:
public boolean requestIcon ( java.lang.String bssid , java.lang.String fileName ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.initiateHs20IconQuery ( bssid , fileName ) ; } else { java.lang.String result = doStringCommand ( ( ( ( "REQ_HS20_ICON " + bssid ) + " " ) + fileName ) ) ; return ( result != null ) && ( result.startsWith ( "OK" ) ) ; } }
Source:
protected void setEnabledProtocols ( java.lang.String [ ] protocols ) { if ( protocols == null ) { throw new java.lang.IllegalArgumentException ( "protocols == null" ) ; } java.lang.String [ ] filteredProtocols = org.conscrypt.SSLParametersImpl.filterFomProtocols ( protocols , NativeCrypto.OBSOLETE_PROTOCOL_SSLV3 ) ; isEnabledProtocolsFiltered = ( protocols.length ) != ( filteredProtocols.length ) ; enabledProtocols = org.conscrypt.NativeCrypto.checkEnabledProtocols ( filteredProtocols ) . clone ( ) ; }

Target:
protected void setEnabledProtocols ( java.lang.String [ ] protocols ) { if ( protocols == null ) { throw new java.lang.IllegalArgumentException ( "protocols == null" ) ; } java.lang.String [ ] filteredProtocols = org.conscrypt.SSLParametersImpl.filterFromProtocols ( protocols , NativeCrypto.OBSOLETE_PROTOCOL_SSLV3 ) ; isEnabledProtocolsFiltered = ( protocols.length ) != ( filteredProtocols.length ) ; enabledProtocols = org.conscrypt.NativeCrypto.checkEnabledProtocols ( filteredProtocols ) . clone ( ) ; }
Source:
public void reportConnectionFailureFetchesFatesInVerboseMode ( ) { final boolean verbosityToggle = true ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; org.mockito.Mockito.verify ( mWifiNative ) . getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; }

Target:
public void reportConnectionFailureFetchesFatesInVerboseMode ( ) { final boolean verbosityToggle = true ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( com.android.server.wifi.WifiDiagnosticsTest.FAKE_CONNECTION_ID , WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; org.mockito.Mockito.verify ( mWifiNative ) . getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; }
Source:
public static java.lang.String map2OID ( java.lang.String algName ) { org.apache.harmony.security.utils.AlgNameMapper.checkCacheVersion ( ) ; java.lang.String result = org.apache.harmony.security.utils.AlgNameMapper.alg2OidMap.get ( algName.toUpperCase ( java.util.Locale.US ) ) ; if ( result != null ) { return result ; } org.apache.harmony.security.utils.AlgNameMapperSource s = org.apache.harmony.security.utils.AlgNameMapper.source ; if ( s != null ) { return s.mapNameToOid ( algName ) ; } return null ; }

Target:
public static void removeMapping ( java.lang.String oid , java.lang.String name ) { java.lang.String nameUC = name.toUpperCase ( java.util.Locale.ROOT ) ; org.apache.harmony.security.utils.AlgNameMapper.alg2OidMap.remove ( nameUC ) ; org.apache.harmony.security.utils.AlgNameMapper.oid2AlgMap.remove ( oid ) ; org.apache.harmony.security.utils.AlgNameMapper.algAliasesMap.remove ( nameUC ) ; }
Source:
private static java.security.cert.CertPath fromEncoding ( java.io.InputStream inStream , org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertPath.Encoding encoding ) throws java.security.cert.CertificateException { switch ( encoding ) { case PKCS7 : return org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertPath.fromPkcs7Encoding ( inStream ) ; default : throw new java.security.cert.CertificateEncodingException ( "Unknown encoding" ) ; } }

Target:
private static java.security.cert.CertPath fromEncoding ( java.io.InputStream inStream , org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertPath.Encoding encoding ) throws java.security.cert.CertificateException { switch ( encoding ) { case PKI_PATH : return org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertPath.fromPkiPathEncoding ( inStream ) ; case PKCS7 : return org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertPath.fromPkcs7Encoding ( inStream ) ; default : throw new java.security.cert.CertificateEncodingException ( "Unknown encoding" ) ; } }
Source:
public void test_SSLSocket_getEnabledCipherSuites ( ) throws java.lang.Exception { javax.net.ssl.SSLSocketFactory sf = ( ( javax.net.ssl.SSLSocketFactory ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) ) ) ; javax.net.ssl.SSLSocket ssl = ( ( javax.net.ssl.SSLSocket ) ( sf.createSocket ( ) ) ) ; java.lang.String [ ] cipherSuites = ssl.getEnabledCipherSuites ( ) ; libcore.java.security.StandardNames.assertDefaultCipherSuites ( cipherSuites ) ; assertNotSame ( cipherSuites , ssl.getEnabledCipherSuites ( ) ) ; }

Target:
public void test_SSLSocket_getEnabledCipherSuites_returnsCopies ( ) throws java.lang.Exception { javax.net.ssl.SSLSocketFactory sf = ( ( javax.net.ssl.SSLSocketFactory ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) ) ) ; javax.net.ssl.SSLSocket ssl = ( ( javax.net.ssl.SSLSocket ) ( sf.createSocket ( ) ) ) ; assertNotSame ( ssl.getEnabledCipherSuites ( ) , ssl.getEnabledCipherSuites ( ) ) ; }
Source:
public void testRunNormalInputCommandFailed ( ) { mTest.setDevice ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.createMockDevice ( ) ) ; mTest.setRunUtil ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.createMockRunUtil ( "which" , "python" , CommandStatus.FAILED ) ) ; try { mTest.run ( mMockInvocationListener ) ; fail ( ) ; } catch ( java.lang.RuntimeException e ) { if ( ! ( "Failed to run VTS test" . equals ( e.getMessage ( ) ) ) ) { fail ( ) ; } } catch ( com.android.tradefed.device.DeviceNotAvailableException e ) { fail ( ) ; e.printStackTrace ( ) ; } }

Target:
public void testRunNormalInput ( ) { mProcessHelper = com.android.tradefed.testtype.VtsMultiDeviceTestTest.createMockProcessHelper ( CommandStatus.SUCCESS ) ; mTest.setDevice ( com.android.tradefed.testtype.VtsMultiDeviceTestTest.createMockDevice ( ) ) ; mTest.setRunUtil ( createMockRunUtil ( "which" ) ) ; try { mTest.run ( mMockInvocationListener ) ; } catch ( java.lang.IllegalArgumentException e ) { fail ( ) ; e.printStackTrace ( ) ; } catch ( com.android.tradefed.device.DeviceNotAvailableException e ) { fail ( ) ; e.printStackTrace ( ) ; } }
Source:
public static void assertArrayEquals ( java.lang.String message , int [ ] expecteds , int [ ] actuals ) { java.lang.String expectedString = java.util.Arrays.toString ( expecteds ) ; java.lang.String actualString = java.util.Arrays.toString ( actuals ) ; if ( ! ( expectedString.equals ( actualString ) ) ) { fail ( message , ( ( ( "expected " + expectedString ) + " but was " ) + actualString ) ) ; } }

Target:
public static void assertArrayEquals ( java.lang.String message , long [ ] expecteds , long [ ] actuals ) { java.lang.String expectedString = java.util.Arrays.toString ( expecteds ) ; java.lang.String actualString = java.util.Arrays.toString ( actuals ) ; if ( ! ( expectedString.equals ( actualString ) ) ) { org.junit.Assert.fail ( message , ( ( ( "expected " + expectedString ) + " but was " ) + actualString ) ) ; } }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newIndex ) { return new com.android.jack.dx.io.instructions.RegisterRangeDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newIndex , getIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , registerCount ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newFirstIndex , int newSecondIndex ) { assert ( getSecondIndexType ( ) ) == ( com.android.jack.dx.io.IndexType.NONE ) ; return new com.android.jack.dx.io.instructions.RegisterRangeDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newFirstIndex , getFirstIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , registerCount ) ; }
Source:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { final com.intellij.openapi.module.Module selectedModule = LangDataKeys.MODULE.getData ( e.getDataContext ( ) ) ; com.google.gct.idea.appengine.deploy.AppEngineUpdateDialog.show ( e.getProject ( ) , selectedModule ) ; }

Target:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { final com.intellij.openapi.module.Module selectedModule = LangDataKeys.MODULE.getData ( e.getDataContext ( ) ) ; com.android.tools.idea.stats.UsageTracker.getInstance ( ) . trackEvent ( GctTracking.CATEGORY , GctTracking.DEPLOY , "show.dialog" , null ) ; com.google.gct.idea.appengine.deploy.AppEngineUpdateDialog.show ( e.getProject ( ) , selectedModule ) ; }
Source:
public java.io.File getResourceFolder ( ) { java.io.File folder = mClient.getResourceFolder ( this ) ; if ( ( folder != null ) && ( com.android.tools.lint.detector.api.Project.isAospFrameworksProject ( mDir ) ) ) { mMinSdk = mTargetSdk = com.android.SdkConstants.HIGHEST_KNOWN_API ; folder = new java.io.File ( folder , com.android.SdkConstants.RES_FOLDER ) ; if ( ! ( folder.exists ( ) ) ) { folder = null ; } } return folder ; }

Target:
public java.util.List < java.io.File > getResourceFolders ( ) { java.util.List < java.io.File > folders = mClient.getResourceFolders ( this ) ; if ( ( ( folders.size ( ) ) == 1 ) && ( com.android.tools.lint.detector.api.Project.isAospFrameworksProject ( mDir ) ) ) { mMinSdk = mTargetSdk = com.android.SdkConstants.HIGHEST_KNOWN_API ; java.io.File folder = new java.io.File ( folders.get ( 0 ) , com.android.SdkConstants.RES_FOLDER ) ; if ( ! ( folder.exists ( ) ) ) { folders = java.util.Collections.emptyList ( ) ; } } return folders ; }
Source:
public void testV1SignedAttrsWrongContentType ( ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verify ( "v1-only-with-signed-attrs-wrong-content-type.apk" ) , Issue.JAR_SIG_DID_NOT_VERIFY ) ; }

Target:
public void testV1SignedAttrs ( ) throws java.lang.Exception { java.lang.String apk = "v1-only-with-signed-attrs.apk" ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verifyForMinSdkVersion ( apk , AndroidSdkVersion.JELLY_BEAN_MR2 ) , Issue.JAR_SIG_VERIFY_EXCEPTION ) ; com.android.apksig.ApkVerifierTest.assertVerified ( verifyForMinSdkVersion ( apk , AndroidSdkVersion.KITKAT ) ) ; apk = "v1-only-with-signed-attrs-signerInfo1-good-signerInfo2-good.apk" ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verifyForMinSdkVersion ( apk , AndroidSdkVersion.JELLY_BEAN_MR2 ) , Issue.JAR_SIG_VERIFY_EXCEPTION ) ; com.android.apksig.ApkVerifierTest.assertVerified ( verifyForMinSdkVersion ( apk , AndroidSdkVersion.KITKAT ) ) ; }
Source:
public void onFindResultReceived ( int activeMatchOrdinal , int numberOfMatches , boolean isDoneCounting ) { if ( ( mFindListener ) == null ) return ; org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onFindResultReceived" ) ; mFindListener.onFindResultReceived ( activeMatchOrdinal , numberOfMatches , isDoneCounting ) ; org.chromium.base.TraceEvent.end ( ) ; }

Target:
public void onFindResultReceived ( int activeMatchOrdinal , int numberOfMatches , boolean isDoneCounting ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.onFindResultReceived" ) ; if ( ( mFindListener ) == null ) return ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onFindResultReceived" ) ; mFindListener.onFindResultReceived ( activeMatchOrdinal , numberOfMatches , isDoneCounting ) ; } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.onFindResultReceived" ) ; } }