auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public synchronized void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) { return ; } com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; com.android.jack.statistics.BlockCountMarker bcm = session.getMarker ( com.android.jack.statistics.BlockCountMarker.class ) ; if ( bcm == null ) { bcm = new com.android.jack.statistics.BlockCountMarker ( ) ; session.addMarker ( bcm ) ; } com.android.jack.statistics.BlockStatistics.BlockStatisticsVisitor statistics = new com.android.jack.statistics.BlockStatistics.BlockStatisticsVisitor ( bcm ) ; statistics.accept ( method ) ; }

Target:
public synchronized void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) { return ; } com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; com.android.jack.statistics.BlockCountMarker bcm = session.getMarker ( com.android.jack.statistics.BlockCountMarker.class ) ; if ( bcm == null ) { com.android.jack.statistics.BlockCountMarker newbcm = new com.android.jack.statistics.BlockCountMarker ( ) ; bcm = session.addMarker ( newbcm ) ; } com.android.jack.statistics.BlockStatistics.BlockStatisticsVisitor statistics = new com.android.jack.statistics.BlockStatistics.BlockStatisticsVisitor ( bcm ) ; statistics.accept ( method ) ; }
Source:
private boolean importKey ( byte [ ] keyName , byte [ ] key ) { execute ( 'm' , keyName , key ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; }

Target:
public boolean importKey ( java.lang.String keyName , byte [ ] key ) { try { return ( mBinder.import_key ( keyName , key ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
public void testFilterByLogLevel ( ) { com.android.ddmuilib.logcat.LogCatFilter filter = new com.android.ddmuilib.logcat.LogCatFilter ( "" , "" , "" , "" , "" , com.android.ddmlib.Log.LogLevel.DEBUG ) ; com.android.ddmuilib.logcat.LogCatMessage msg = new com.android.ddmuilib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.VERBOSE , "" , "" , "" , "" , "" , "" ) ; assertEquals ( false , filter.matches ( msg ) ) ; msg = new com.android.ddmuilib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.ERROR , "" , "" , "" , "" , "" , "" ) ; assertEquals ( true , filter.matches ( msg ) ) ; }

Target:
public void testFilterByLogLevel ( ) { com.android.ddmuilib.logcat.LogCatFilter filter = new com.android.ddmuilib.logcat.LogCatFilter ( "" , "" , "" , "" , "" , com.android.ddmlib.Log.LogLevel.DEBUG ) ; com.android.ddmlib.logcat.LogCatMessage msg = new com.android.ddmlib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.VERBOSE , "" , "" , "" , "" , "" , "" ) ; assertEquals ( false , filter.matches ( msg ) ) ; msg = new com.android.ddmlib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.ERROR , "" , "" , "" , "" , "" , "" ) ; assertEquals ( true , filter.matches ( msg ) ) ; }
Source:
private byte [ ] sign ( byte [ ] keyName , byte [ ] data ) { final java.util.ArrayList < byte [ ] > values = execute ( 'n' , keyName , data ) ; return ( values == null ) || ( values.isEmpty ( ) ) ? null : values.get ( 0 ) ; }

Target:
public boolean verify ( java.lang.String key , byte [ ] data , byte [ ] signature ) { try { return ( mBinder.verify ( key , data , signature ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
protected void onSaveInstanceState ( android.os.Bundle outState ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( "onSaveInstanceState: " + ( mSlotId ) ) ) ; outState.putBoolean ( "ACCEPT_USERS_INPUT" , mAcceptUsersInput ) ; }

Target:
protected void onSaveInstanceState ( android.os.Bundle outState ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( "onSaveInstanceState: " + ( mSlotId ) ) ) ; outState.putBoolean ( com.android.stk.StkInputActivity.ACCEPT_USERS_INPUT_KEY , mAcceptUsersInput ) ; outState.putBoolean ( com.android.stk.StkInputActivity.RESPONSE_SENT_KEY , mIsResponseSent ) ; outState.putString ( com.android.stk.StkInputActivity.INPUT_STRING_KEY , mTextIn.getText ( ) . toString ( ) ) ; }
Source:
public void updatePublish ( int clientId , int sessionId , android.net.wifi.nan.PublishConfig publishConfig ) { if ( android.net.wifi.nan.WifiNanManager.VDBG ) { android.util.Log.v ( android.net.wifi.nan.WifiNanManager.TAG , ( ( ( ( ( "updatePublish(): clientId=" + clientId ) + ",sessionId=" ) + sessionId ) + ", config=" ) + publishConfig ) ) ; } try { mService.updatePublish ( clientId , sessionId , publishConfig ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void updatePublish ( int clientId , int sessionId , android.net.wifi.aware.PublishConfig publishConfig ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) { android.util.Log.v ( android.net.wifi.aware.WifiAwareManager.TAG , ( ( ( ( ( "updatePublish(): clientId=" + clientId ) + ",sessionId=" ) + sessionId ) + ", config=" ) + publishConfig ) ) ; } try { mService.updatePublish ( clientId , sessionId , publishConfig ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void run ( ) { cancelTimer ( ) ; freeLoadedPrograms ( ) ; }

Target:
private void startTimer ( ) { synchronized ( lock ) { if ( ( timer ) != null ) { cancelTimer ( ) ; } if ( delayedModes.isEmpty ( ) ) { return ; } com.android.jack.server.JackHttpServer.logger.log ( java.util.logging.Level.INFO , "Start timer" ) ; timer = new java.util.Timer ( "jack-server-timeout" ) ; assert ( timer ) != null ; for ( com.android.jack.server.JackHttpServer.TimedServerMode mode : delayedModes ) { mode.registerTo ( timer ) ; } } }
Source:
public void test_setMaximumIntegerDigitsI ( ) { java.text.DecimalFormat df = new java.text.DecimalFormat ( "###0.##" ) ; df.setMaximumIntegerDigits ( 2 ) ; assertEquals ( "Not set" , 2 , df.getMaximumIntegerDigits ( ) ) ; assertEquals ( "Wrong maximum" , "34" , df.format ( 1234 ) ) ; df.setMinimumIntegerDigits ( 4 ) ; assertEquals ( "Not changed" , 4 , df.getMaximumIntegerDigits ( ) ) ; assertEquals ( "Incorrect integer" , "0026" , df.format ( 26 ) ) ; }

Target:
public void test_formatLong_maximumIntegerDigits ( ) { java.text.DecimalFormat df = new java.text.DecimalFormat ( "###0.##" ) ; df.setMaximumIntegerDigits ( 2 ) ; assertEquals ( 2 , df.getMaximumIntegerDigits ( ) ) ; assertEquals ( "34" , df.format ( 1234 ) ) ; df.setMinimumIntegerDigits ( 4 ) ; assertEquals ( 4 , df.getMaximumIntegerDigits ( ) ) ; assertEquals ( "0026" , df.format ( 26 ) ) ; }
Source:
public void testDecode ( ) throws java.io.IOException { com.android.dx.util.ByteInput in = new com.android.dx.util.ByteArrayByteInput ( new byte [ ] { 'A' , 'B' , 'C' , ( ( byte ) ( 192 ) ) , ( ( byte ) ( 128 ) ) , 0 , 'E' } ) ; assertEquals ( 'A' , in.readByte ( ) ) ; assertEquals ( "BC" , com.android.dx.util.Mutf8.decode ( in , new char [ 3 ] ) ) ; assertEquals ( 'E' , in.readByte ( ) ) ; }

Target:
public void testDecode ( ) throws java.io.IOException { com.android.dex.util.ByteInput in = new com.android.dex.util.ByteArrayByteInput ( new byte [ ] { 'A' , 'B' , 'C' , ( ( byte ) ( 192 ) ) , ( ( byte ) ( 128 ) ) , 0 , 'E' } ) ; assertEquals ( 'A' , in.readByte ( ) ) ; assertEquals ( "BC" , com.android.dex.Mutf8.decode ( in , new char [ 3 ] ) ) ; assertEquals ( 'E' , in.readByte ( ) ) ; }
Source:
private void getAdditionalWifiServiceInterfaces ( ) { android.os.IBinder s1 = mFacade.getService ( Context.WIFI_P2P_SERVICE ) ; com.android.server.wifi.p2p.WifiP2pServiceImpl wifiP2pServiceImpl = ( ( com.android.server.wifi.p2p.WifiP2pServiceImpl ) ( IWifiP2pManager.Stub.asInterface ( s1 ) ) ) ; if ( wifiP2pServiceImpl != null ) { mWifiP2pChannel = new com.android.internal.util.AsyncChannel ( ) ; mWifiP2pChannel.connect ( mContext , getHandler ( ) , wifiP2pServiceImpl.getP2pStateMachineMessenger ( ) ) ; } if ( mAwareSupported ) { mWifiAwareManager = mContext.getSystemService ( android.net.wifi.aware.WifiAwareManager.class ) ; } }

Target:
private void getAdditionalWifiServiceInterfaces ( ) { if ( mP2pSupported ) { android.os.IBinder s1 = mFacade.getService ( Context.WIFI_P2P_SERVICE ) ; com.android.server.wifi.p2p.WifiP2pServiceImpl wifiP2pServiceImpl = ( ( com.android.server.wifi.p2p.WifiP2pServiceImpl ) ( IWifiP2pManager.Stub.asInterface ( s1 ) ) ) ; if ( wifiP2pServiceImpl != null ) { mWifiP2pChannel = new com.android.internal.util.AsyncChannel ( ) ; mWifiP2pChannel.connect ( mContext , getHandler ( ) , wifiP2pServiceImpl.getP2pStateMachineMessenger ( ) ) ; } } }
Source:
public void testFormatUtc ( ) { java.text.DateFormat dateFormat = new java.text.SimpleDateFormat ( "z" , java.util.Locale.ENGLISH ) ; dateFormat.setTimeZone ( libcore.java.text.SimpleDateFormatTest.UTC ) ; assertEquals ( "UTC" , dateFormat.format ( new java.util.Date ( 0 ) ) ) ; }

Target:
public void testFormatUtcShort ( ) { java.lang.String timeZonePattern = "z" ; int timeZoneStyle = java.util.TimeZone.SHORT ; libcore.java.text.SimpleDateFormatTest.doTestFormat ( java.util.Locale.ENGLISH , timeZoneStyle , timeZonePattern , "UTC" ) ; libcore.java.text.SimpleDateFormatTest.doTestFormat ( java.util.Locale.FRANCE , timeZoneStyle , timeZonePattern , "UTC" ) ; libcore.java.text.SimpleDateFormatTest.doTestFormat ( java.util.Locale.SIMPLIFIED_CHINESE , timeZoneStyle , timeZonePattern , "UTC" ) ; }
Source:
public java.io.File getJarMergingOutputFile ( ) { return new java.io.File ( ( ( ( ( ( ( globalScope.getBuildDir ( ) ) + "/" ) + ( com.android.builder.model.AndroidProject.FD_INTERMEDIATES ) ) + "/multi-dex/" ) + ( getVariantConfiguration ( ) . getDirName ( ) ) ) + "/allclasses.jar" ) ) ; }

Target:
public java.io.File getProguardOutputFile ( ) { return ( variantData ) instanceof com.android.build.gradle.internal.variant.LibraryVariantData ? new java.io.File ( globalScope.getIntermediatesDir ( ) , ( ( ( ( com.android.build.gradle.internal.TaskManager.DIR_BUNDLES ) + "/" ) + ( getVariantConfiguration ( ) . getDirName ( ) ) ) + "/classes.jar" ) ) : new java.io.File ( globalScope.getIntermediatesDir ( ) , ( ( "/classes-proguard/" + ( getVariantConfiguration ( ) . getDirName ( ) ) ) + "/classes.jar" ) ) ; }
Source:
public com.android.ide.common.rendering.api.ResourceValue findItemInStyle ( com.android.ide.common.rendering.api.StyleResourceValue style , java.lang.String itemName , boolean isFrameworkAttr ) { com.android.ide.common.rendering.api.ResourceValue item = style.findValue ( itemName , isFrameworkAttr ) ; if ( ( item == null ) && ( ( mStyleInheritanceMap ) != null ) ) { com.android.ide.common.rendering.api.StyleResourceValue parentStyle = mStyleInheritanceMap.get ( style ) ; if ( parentStyle != null ) { return findItemInStyle ( parentStyle , itemName , isFrameworkAttr ) ; } } return item ; }

Target:
public com.android.ide.common.resources.ResourceResolver createRecorder ( java.util.List < com.android.ide.common.rendering.api.ResourceValue > lookupChain ) { com.android.ide.common.resources.ResourceResolver resolver = new com.android.ide.common.resources.ResourceResolver.RecordingResourceResolver ( lookupChain , mProjectResources , mFrameworkResources , mThemeName , mIsProjectTheme ) ; resolver.mFrameworkProvider = mFrameworkProvider ; resolver.mLogger = mLogger ; resolver.mTheme = mTheme ; resolver.mStyleInheritanceMap.putAll ( mStyleInheritanceMap ) ; return resolver ; }
Source:
public org.objectweb.asm.MethodVisitor visitMethod ( final int access , final java.lang.String name , final java.lang.String desc , final java.lang.String signature , final java.lang.String [ ] exceptions ) { return new org.objectweb.asm.MethodVisitor ( Opcodes.ASM4 , cv.visitMethod ( access , name , desc , signature , exceptions ) ) { @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitAnnotationDefault ( ) { return null ; } @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return null ; } @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation ( int parameter , java.lang.String desc , boolean visible ) { return null ; } } ; }

Target:
public org.objectweb.asm.AnnotationVisitor visitLocalVariableAnnotation ( int typeRef , org.objectweb.asm.TypePath typePath , org.objectweb.asm.Label [ ] start , org.objectweb.asm.Label [ ] end , int [ ] index , java.lang.String desc , boolean visible ) { return null ; }
Source:
public void testIsAudioOnly ( ) { assertFalse ( android.telecom.VideoProfile.isAudioOnly ( VideoProfile.STATE_RX_ENABLED ) ) ; assertFalse ( android.telecom.VideoProfile.isAudioOnly ( VideoProfile.STATE_TX_ENABLED ) ) ; assertFalse ( android.telecom.VideoProfile.isAudioOnly ( VideoProfile.STATE_BIDIRECTIONAL ) ) ; assertTrue ( android.telecom.VideoProfile.isAudioOnly ( VideoProfile.STATE_PAUSED ) ) ; assertTrue ( android.telecom.VideoProfile.isAudioOnly ( VideoProfile.STATE_AUDIO_ONLY ) ) ; }

Target:
public void testIsAudioOnly ( ) { org.junit.Assert.assertFalse ( android.telecom.VideoProfile.isAudioOnly ( VideoProfile.STATE_RX_ENABLED ) ) ; org.junit.Assert.assertFalse ( android.telecom.VideoProfile.isAudioOnly ( VideoProfile.STATE_TX_ENABLED ) ) ; org.junit.Assert.assertFalse ( android.telecom.VideoProfile.isAudioOnly ( VideoProfile.STATE_BIDIRECTIONAL ) ) ; org.junit.Assert.assertTrue ( android.telecom.VideoProfile.isAudioOnly ( VideoProfile.STATE_PAUSED ) ) ; org.junit.Assert.assertTrue ( android.telecom.VideoProfile.isAudioOnly ( VideoProfile.STATE_AUDIO_ONLY ) ) ; }
Source:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.ext.ExtCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.BOOTCLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar" ) } ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "ext" ) ; }

Target:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.ext.ExtCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.BOOTCLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.zip" ) } ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.REF_BOOTCLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" ) } ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "ext" ) ; }
Source:
private void sendImsFeatureRemovedCallback ( int slot , int feature ) { synchronized ( mLock ) { for ( java.util.Iterator < com.android.ims.internal.IImsServiceFeatureCallback > i = mImsStatusCallbacks.iterator ( ) ; i.hasNext ( ) ; ) { com.android.ims.internal.IImsServiceFeatureCallback callbacks = i.next ( ) ; try { callbacks.imsFeatureRemoved ( slot , feature ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( ( "sendImsFeatureRemovedCallback: Binder died, removing " + "callback. Exception:" ) + ( e.getMessage ( ) ) ) ) ; i.remove ( ) ; } } } }

Target:
public boolean isBound ( ) { synchronized ( mLock ) { return mIsBound ; } }
Source:
public java.lang.reflect.Field [ ] getDeclaredFields ( ) { int initial_size = ( ( sFields ) == null ) ? 0 : sFields.length ; initial_size += ( ( iFields ) == null ) ? 0 : iFields.length ; java.util.ArrayList < java.lang.reflect.Field > fields = new java.util.ArrayList ( initial_size ) ; getDeclaredFields ( false , fields ) ; java.lang.reflect.Field [ ] result = fields.toArray ( new java.lang.reflect.Field [ fields.size ( ) ] ) ; for ( java.lang.reflect.Field f : result ) { f.getType ( ) ; } return result ; }

Target:
public java.lang.reflect.Field [ ] getDeclaredFields ( ) { int initial_size = ( ( sFields ) == null ) ? 0 : sFields.length ; initial_size += ( ( iFields ) == null ) ? 0 : iFields.length ; java.util.ArrayList < java.lang.reflect.Field > fields = new java.util.ArrayList ( initial_size ) ; getDeclaredFieldsUnchecked ( false , fields ) ; java.lang.reflect.Field [ ] result = fields.toArray ( new java.lang.reflect.Field [ fields.size ( ) ] ) ; for ( java.lang.reflect.Field f : result ) { f.getType ( ) ; } return result ; }
Source:
public void setAudioTrack ( boolean enable ) { if ( ( mAudioRenderer ) instanceof com.android.tv.tuner.exoplayer.ac3.Ac3PassthroughTrackRenderer ) { mPlayer.sendMessage ( mAudioRenderer , Ac3PassthroughTrackRenderer.MSG_SET_AUDIO_TRACK , ( enable ? 1 : 0 ) ) ; } else { mPlayer.sendMessage ( mAudioRenderer , MediaCodecAudioTrackRenderer.MSG_SET_VOLUME , ( enable ? mVolume : 0.0F ) ) ; } }

Target:
public void setAudioTrack ( boolean enable ) { if ( ( mAudioRenderer ) instanceof com.android.tv.tuner.exoplayer.ac3.Ac3DefaultTrackRenderer ) { mPlayer.sendMessage ( mAudioRenderer , Ac3DefaultTrackRenderer.MSG_SET_AUDIO_TRACK , ( enable ? 1 : 0 ) ) ; } else { mPlayer.sendMessage ( mAudioRenderer , MediaCodecAudioTrackRenderer.MSG_SET_VOLUME , ( enable ? mVolume : 0.0F ) ) ; } }
Source:
private static boolean isShortCodeUSSD ( java.lang.String dialString , com.android.internal.telephony.gsm.GsmCdmaPhone phone ) { if ( ( dialString != null ) && ( ( dialString.length ( ) ) <= ( com.android.internal.telephony.gsm.GsmMmiCode.MAX_LENGTH_SHORT_CODE ) ) ) { if ( phone.isInCall ( ) ) { return true ; } if ( ( ( dialString.length ( ) ) != ( com.android.internal.telephony.gsm.GsmMmiCode.MAX_LENGTH_SHORT_CODE ) ) || ( ( dialString.charAt ( 0 ) ) != '1' ) ) { return true ; } } return false ; }

Target:
private static boolean isShortCodeUSSD ( java.lang.String dialString , com.android.internal.telephony.GsmCdmaPhone phone ) { if ( ( dialString != null ) && ( ( dialString.length ( ) ) <= ( com.android.internal.telephony.gsm.GsmMmiCode.MAX_LENGTH_SHORT_CODE ) ) ) { if ( phone.isInCall ( ) ) { return true ; } if ( ( ( dialString.length ( ) ) != ( com.android.internal.telephony.gsm.GsmMmiCode.MAX_LENGTH_SHORT_CODE ) ) || ( ( dialString.charAt ( 0 ) ) != '1' ) ) { return true ; } } return false ; }
Source:
public boolean sendReport ( int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "sendReport(): id=" + id ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.sendReport ( id , data ) ; }

Target:
public boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.replyReport ( device , type , id , data ) ; }
Source:
private void stopObexServerSession ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.VERBOSE ) android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Pbap Service stopObexServerSession" ) ; mSessionStatusHandler.removeMessages ( com.android.bluetooth.pbap.BluetoothPbapService.MSG_ACQUIRE_WAKE_LOCK ) ; mSessionStatusHandler.removeMessages ( com.android.bluetooth.pbap.BluetoothPbapService.MSG_RELEASE_WAKE_LOCK ) ; if ( ( mWakeLock ) != null ) { mWakeLock.release ( ) ; mWakeLock = null ; } if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } closeConnectionSocket ( ) ; if ( mAdapter.isEnabled ( ) ) { startSocketListeners ( ) ; } setState ( BluetoothPbap.STATE_DISCONNECTED ) ; }

Target:
void disconnect ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; synchronized ( this ) { if ( ( mState ) == ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) { if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } closeConnectionSocket ( ) ; setState ( BluetoothProfile.STATE_DISCONNECTED , BluetoothPbap.RESULT_CANCELED ) ; } } }
Source:
public com.android.jack.jayce.v0003.NNode createNNode ( @ javax.annotation.Nonnull java.lang.Object from ) { if ( from instanceof com.android.jack.ir.ast.JNode ) { com.android.jack.jayce.v0003.NodeFactory.Creator creator = new com.android.jack.jayce.v0003.NodeFactory.Creator ( ) ; ( ( com.android.jack.ir.ast.JNode ) ( from ) ) . traverse ( creator ) ; if ( ( creator.newNode ) != null ) { return creator.newNode ; } } else if ( from instanceof com.android.sched.marker.Marker ) { return createMarkerNode ( ( ( com.android.sched.marker.Marker ) ( from ) ) ) ; } throw new java.lang.AssertionError ( ( ( "Not yet implemented (" + ( from.getClass ( ) ) ) + ")" ) ) ; }

Target:
public com.android.jack.jayce.v0003.NNode createNNode ( @ javax.annotation.Nonnull java.lang.Object from ) { if ( from instanceof com.android.jack.ir.ast.JNode ) { com.android.jack.jayce.v0003.NodeFactory.Creator creator = new com.android.jack.jayce.v0003.NodeFactory.Creator ( ) ; ( ( com.android.jack.ir.ast.JNode ) ( from ) ) . traverse ( creator ) ; if ( ( creator.newNode ) != null ) { return creator.newNode ; } } else if ( from instanceof com.android.sched.marker.Marker ) { return createMarkerNode ( ( ( com.android.sched.marker.Marker ) ( from ) ) ) ; } throw new java.lang.AssertionError ( ( ( "Not yet implemented (" + ( from.getClass ( ) . getCanonicalName ( ) ) ) + ")" ) ) ; }
Source:
private static int getCarrierPrivilegeStatus ( int subId , int uid ) { com.android.internal.telephony.ITelephony telephony = ITelephony.Stub.asInterface ( android.os.ServiceManager.getService ( Context.TELEPHONY_SERVICE ) ) ; try { if ( telephony != null ) { return telephony.getCarrierPrivilegeStatusForUid ( subId , uid ) ; } } catch ( android.os.RemoteException e ) { } android.telephony.Rlog.e ( com.android.internal.telephony.TelephonyPermissions.LOG_TAG , "Phone process is down, cannot check carrier privileges" ) ; return android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS ; }

Target:
private static int getCarrierPrivilegeStatus ( java.util.function.Supplier < com.android.internal.telephony.ITelephony > telephonySupplier , int subId , int uid ) { com.android.internal.telephony.ITelephony telephony = telephonySupplier.get ( ) ; try { if ( telephony != null ) { return telephony.getCarrierPrivilegeStatusForUid ( subId , uid ) ; } } catch ( android.os.RemoteException e ) { } android.telephony.Rlog.e ( com.android.internal.telephony.TelephonyPermissions.LOG_TAG , "Phone process is down, cannot check carrier privileges" ) ; return android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS ; }
Source:
public void testBatchAndFlushWithHandler ( ) throws java.lang.Exception { try { mWakeLock.acquire ( ) ; android.os.HandlerThread handlerThread = new android.os.HandlerThread ( "sensorThread" ) ; handlerThread.start ( ) ; android.os.Handler handler = new android.os.Handler ( handlerThread.getLooper ( ) ) ; for ( android.hardware.Sensor sensor : mSensorList ) { if ( ( sensor.getReportingMode ( ) ) != ( android.hardware.Sensor.REPORTING_MODE_ONE_SHOT ) ) { registerListenerCallFlush ( sensor , handler ) ; } } } finally { mWakeLock.release ( ) ; } }

Target:
public void testSensorTimeStamps ( ) throws java.lang.Exception { java.util.ArrayList < java.lang.Throwable > errorsFound = new java.util.ArrayList < > ( ) ; for ( android.hardware.Sensor sensor : mSensorList ) { verifyLongActivation ( sensor , 0 , errorsFound ) ; verifyLongActivation ( sensor , ( ( int ) ( java.util.concurrent.TimeUnit.SECONDS.toMicros ( 10 ) ) ) , errorsFound ) ; } assertOnErrors ( errorsFound ) ; }
Source:
private static java.util.Set < java.lang.String > getDeletedFiles ( @ javax.annotation.Nonnull java.util.List < java.lang.String > javaFileNames ) throws com.android.jack.JackUserException { java.util.Set < java.lang.String > deletedFiles = new java.util.HashSet < java.lang.String > ( ) ; for ( java.lang.String javaFileName : com.android.jack.experimental.incremental.JackIncremental.getCompilerState ( ) . getJavaFilename ( ) ) { if ( ! ( javaFileNames.contains ( javaFileName ) ) ) { com.android.jack.experimental.incremental.JackIncremental.logger.log ( java.util.logging.Level.FINE , "{0} was deleted" , javaFileName ) ; deletedFiles.add ( javaFileName ) ; } } return deletedFiles ; }

Target:
private static java.util.Set < java.lang.String > getDeletedFiles ( @ javax.annotation.Nonnull java.util.List < java.lang.String > javaFileNames , @ javax.annotation.Nonnull com.android.jack.analysis.dependency.file.FileDependencies fileDependencies ) throws com.android.jack.JackUserException { java.util.Set < java.lang.String > deletedFiles = new java.util.HashSet < java.lang.String > ( ) ; for ( java.lang.String javaFileName : fileDependencies.getCompiledJavaFiles ( ) ) { if ( ! ( javaFileNames.contains ( javaFileName ) ) ) { com.android.jack.experimental.incremental.JackIncremental.logger.log ( java.util.logging.Level.FINE , "{0} was deleted" , javaFileName ) ; deletedFiles.add ( javaFileName ) ; } } return deletedFiles ; }
Source:
public void updateChildCount ( java.lang.Object element , int currentChildCount ) { int childCount = 0 ; if ( element instanceof com.android.ddmuilib.heap.NativeHeapSnapshot ) { com.android.ddmuilib.heap.NativeHeapSnapshot snapshot = ( ( com.android.ddmuilib.heap.NativeHeapSnapshot ) ( element ) ) ; childCount = getLibraryAllocations ( snapshot ) . size ( ) ; } mViewer.setChildCount ( element , childCount ) ; }

Target:
public void updateChildCount ( java.lang.Object element , int currentChildCount ) { int childCount = 0 ; if ( element instanceof com.android.ddmuilib.heap.NativeHeapSnapshot ) { com.android.ddmuilib.heap.NativeHeapSnapshot snapshot = ( ( com.android.ddmuilib.heap.NativeHeapSnapshot ) ( element ) ) ; childCount = getLibraryAllocations ( snapshot ) . size ( ) ; } else if ( element instanceof com.android.ddmuilib.heap.NativeLibraryAllocationInfo ) { com.android.ddmuilib.heap.NativeLibraryAllocationInfo info = ( ( com.android.ddmuilib.heap.NativeLibraryAllocationInfo ) ( element ) ) ; childCount = info.getAllocations ( ) . size ( ) ; } mViewer.setChildCount ( element , childCount ) ; }
Source:
public java.net.SocketAddress listen ( java.nio.channels.ServerSocketChannel channel ) throws java.io.IOException { org.simpleframework.transport.connect.SocketListener listener = new org.simpleframework.transport.connect.SocketListener ( channel , processor , analyzer , null ) ; if ( ( processor ) != null ) { listeners.add ( listener ) ; listener.process ( ) ; } return listener.getAddress ( ) ; }

Target:
public java.net.SocketAddress listen ( java.nio.channels.ServerSocketChannel channel , javax.net.ssl.SSLContext context ) throws java.io.IOException { org.simpleframework.transport.connect.SocketListener listener = new org.simpleframework.transport.connect.SocketListener ( channel , processor , analyzer , context ) ; if ( ( processor ) != null ) { listeners.add ( listener ) ; listener.process ( ) ; } return listener.getAddress ( ) ; }
Source:
public static void setUpClass ( ) throws com.android.jack.IllegalOptionsException , com.android.jack.NothingToDoException , com.android.sched.util.config.ConfigurationException { com.android.jack.Main.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.Options options = new com.android.jack.Options ( ) ; options.checkValidity ( new com.android.sched.util.RunnableHooks ( ) ) ; options.getConfigBuilder ( ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }

Target:
public static void setUpClass ( ) throws com.android.jack.IllegalOptionsException , com.android.jack.NothingToDoException , com.android.sched.util.config.ConfigurationException { com.android.jack.Main.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.Options options = new com.android.jack.Options ( ) ; com.android.sched.util.RunnableHooks hooks = new com.android.sched.util.RunnableHooks ( ) ; options.checkValidity ( hooks ) ; options.getConfigBuilder ( hooks ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }
Source:
protected byte [ ] makeSmsRecordData ( int status , byte [ ] pdu ) { byte [ ] data = new byte [ IccConstants.SMS_RECORD_LENGTH ] ; data [ 0 ] = ( ( byte ) ( status & 7 ) ) ; java.lang.System.arraycopy ( pdu , 0 , data , 1 , pdu.length ) ; for ( int j = ( pdu.length ) + 1 ; j < ( IccConstants.SMS_RECORD_LENGTH ) ; j ++ ) { data [ j ] = - 1 ; } return data ; }

Target:
protected byte [ ] makeSmsRecordData ( int status , byte [ ] pdu ) { byte [ ] data = new byte [ com.android.internal.telephony.uicc.IccConstants.SMS_RECORD_LENGTH ] ; data [ 0 ] = ( ( byte ) ( status & 7 ) ) ; java.lang.System.arraycopy ( pdu , 0 , data , 1 , pdu.length ) ; for ( int j = ( pdu.length ) + 1 ; j < ( com.android.internal.telephony.uicc.IccConstants.SMS_RECORD_LENGTH ) ; j ++ ) { data [ j ] = - 1 ; } return data ; }
Source:
public org.python.core.PyList getAccessibilityIds ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; int [ ] ids = impl.getAccessibilityIds ( ) ; org.python.core.PyList pyIds = new org.python.core.PyList ( ) ; for ( int i = 0 ; i < ( ids.length ) ; i ++ ) { pyIds.append ( new org.python.core.PyInteger ( ids [ i ] ) ) ; } return pyIds ; }

Target:
public org.python.core.PyList getAccessibilityIds ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; com.android.chimpchat.core.IChimpView.AccessibilityIds ids = impl.getAccessibilityIds ( ) ; org.python.core.PyList pyIds = new org.python.core.PyList ( ) ; pyIds.append ( new org.python.core.PyInteger ( ids.getWindowId ( ) ) ) ; pyIds.append ( new org.python.core.PyLong ( ids.getNodeId ( ) ) ) ; return pyIds ; }
Source:
java.util.Map.Entry < K , V2 > transform ( final java.util.Map.Entry < K , V1 > entry ) { return new com.google.common.collect.AbstractMapEntry < K , V2 > ( ) { @ java.lang.Override public K getKey ( ) { return entry.getKey ( ) ; } @ java.lang.Override public V2 getValue ( ) { return transformer.transformEntry ( entry.getKey ( ) , entry.getValue ( ) ) ; } } ; }

Target:
protected java.util.Set < java.util.Map.Entry < K , V2 > > createEntrySet ( ) { return new com.google.common.collect.Maps.EntrySet < K , V2 > ( ) { @ java.lang.Override java.util.Map < K , V2 > map ( ) { return com.google.common.collect.Maps.TransformedEntriesMap.this ; } @ java.lang.Override public java.util.Iterator < java.util.Map.Entry < K , V2 > > iterator ( ) { return com.google.common.collect.Iterators.transform ( fromMap.entrySet ( ) . iterator ( ) , com.google.common.collect.Maps.< K , V1 , V2 > asEntryToEntryFunction ( transformer ) ) ; } } ; }
Source:
private void notifyEmergencyContact ( ) { writeBlockSuppressionExpiryTimePref ( ( ( java.lang.System.currentTimeMillis ( ) ) + ( ( getBlockSuppressSecondsFromCarrierConfig ( ) ) * 1000 ) ) ) ; notifyBlockSuppressionStateChange ( ) ; }

Target:
private void notifyEmergencyContact ( ) { long sec = getBlockSuppressSecondsFromCarrierConfig ( ) ; long millisToWrite = ( sec < 0 ) ? com.android.providers.blockednumber.BlockedNumberProvider.BLOCKING_DISABLED_FOREVER : ( java.lang.System.currentTimeMillis ( ) ) + ( sec * 1000 ) ; writeBlockSuppressionExpiryTimePref ( millisToWrite ) ; writeEmergencyCallNotificationPref ( true ) ; notifyBlockSuppressionStateChange ( ) ; }
Source:
public void testAesGcm64Udp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.getKey ( 288 ) , 64 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , null , authCrypt , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , null , authCrypt , true , 1 , true ) ; }

Target:
public void testAesCbcHmacSha1Udp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA1 , getAuthKey ( 160 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , true , 1 , false ) ; }
Source:
void addBuildType ( com.android.build.gradle.internal.dsl.BuildTypeDsl buildType ) { buildType.init ( signingConfigs.get ( com.android.builder.BuilderConstants.DEBUG ) ) ; java.lang.String name = buildType.name ; com.android.build.gradle.internal.VariantManager.checkName ( name , "BuildType" ) ; if ( productFlavors.containsKey ( name ) ) { throw new java.lang.RuntimeException ( "BuildType names cannot collide with ProductFlavor names" ) ; } com.android.build.gradle.internal.def sourceSet = appExtension.sourceSetsContainer.maybeCreate ( name ) ; com.android.build.gradle.internal.BuildTypeData buildTypeData = new com.android.build.gradle.internal.BuildTypeData ( buildType , sourceSet , project ) ; project.tasks.assemble.dependsOn buildTypeData ; com.android.build.gradle.internal.assembleTask [ ] buildTypes = buildTypeData ; }

Target:
public void addSigningConfig ( @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.SigningConfigDsl signingConfigDsl ) { signingConfigs.put ( signingConfigDsl.getName ( ) , signingConfigDsl ) ; }
Source:
private java.security.Signature getSignatureInstance ( java.lang.String sigAlg , java.lang.String sigProvider ) throws java.security.NoSuchProviderException { try { if ( sigProvider == null ) { return java.security.Signature.getInstance ( sigAlg ) ; } else { return java.security.Signature.getInstance ( sigAlg , sigProvider ) ; } } catch ( java.security.NoSuchAlgorithmException ignored ) { return null ; } }

Target:
private void verifyInternal ( java.security.PublicKey key , java.lang.String sigProvider ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , java.security.SignatureException , java.security.cert.CertificateException { final java.security.Signature sig ; if ( sigProvider == null ) { sig = java.security.Signature.getInstance ( getSigAlgName ( ) ) ; } else { sig = java.security.Signature.getInstance ( getSigAlgName ( ) , sigProvider ) ; } sig.initVerify ( key ) ; sig.update ( getTBSCertificate ( ) ) ; if ( ! ( sig.verify ( getSignature ( ) ) ) ) { throw new java.security.SignatureException ( "signature did not verify" ) ; } }
Source:
public synchronized boolean containsKey ( java.lang.Object key ) { java.util.Hashtable.HashtableEntry [ ] tab = table ; int hash = hash ( key ) ; int index = ( hash & 2147483647 ) % ( tab.length ) ; for ( java.util.Hashtable.HashtableEntry < K , V > e = tab [ index ] ; e != null ; e = e.next ) { if ( ( ( e.hash ) == hash ) && ( e.key.equals ( key ) ) ) { return true ; } } return false ; }

Target:
public synchronized boolean containsKey ( java.lang.Object key ) { java.util.Hashtable.HashtableEntry [ ] tab = table ; int hash = java.util.Hashtable.hash ( key ) ; int index = ( hash & 2147483647 ) % ( tab.length ) ; for ( java.util.Hashtable.HashtableEntry < K , V > e = tab [ index ] ; e != null ; e = e.next ) { if ( ( ( e.hash ) == hash ) && ( e.key.equals ( key ) ) ) { return true ; } } return false ; }
Source:
final void get ( double [ ] dst , int dstOffset , int doubleCount ) { int byteCount = checkGetBounds ( SizeOf.DOUBLE , dst.length , dstOffset , doubleCount ) ; this . block.peekDoubleArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , doubleCount , order.needsSwap ) ; position += byteCount ; }

Target:
public final float getFloat ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.FLOAT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } float result = java.lang.Float.intBitsToFloat ( this . block.peekInt ( ( ( offset ) + ( position ) ) , order ) ) ; position = newPosition ; return result ; }
Source:
public void testStartAnimation ( ) throws java.lang.Throwable { final android.view.View view = mActivity.findViewById ( R.id.fit_windows ) ; try { view.startAnimation ( null ) ; fail ( "did not throw NullPointerException when start null animation" ) ; } catch ( java.lang.NullPointerException e ) { } runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { view.startAnimation ( mAnimation ) ; } } ) ; android.view.animation.cts.AnimationTestUtils.assertRunAnimation ( getInstrumentation ( ) , view , mAnimation , android.view.cts.View_AnimationTest.TIME_OUT ) ; }

Target:
public void testStartAnimation ( ) throws java.lang.Throwable { final android.view.View view = mActivity.findViewById ( R.id.mock_view ) ; try { view.startAnimation ( null ) ; fail ( "did not throw NullPointerException when start null animation" ) ; } catch ( java.lang.NullPointerException e ) { } runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { view.startAnimation ( mAnimation ) ; } } ) ; android.view.animation.cts.AnimationTestUtils.assertRunAnimation ( getInstrumentation ( ) , view , mAnimation , android.view.cts.View_AnimationTest.TIME_OUT ) ; }
Source:
public final void testLocalSdkTest_getPkgInfo_PlatformTools ( ) { assertNull ( mLS.getPkgInfo ( PkgType.PKG_PLATFORM_TOOLS ) ) ; mLS.clearLocalPkg ( PkgType.PKG_ALL ) ; mFOp.recordExistingFolder ( "/sdk/platform-tools" ) ; mFOp.recordExistingFile ( "/sdk/platform-tools/source.properties" , ( "Pkg.License=Terms and Conditions\n" + ( ( ( ( "Archive.Os=WINDOWS\n" + "Pkg.Revision=18.19.20\n" ) + "Pkg.LicenseRef=android-sdk-license\n" ) + "Archive.Arch=ANY\n" ) + "Pkg.SourceUrl=https\\://example.com/repository-8.xml" ) ) ) ; com.android.sdklib.repository.local.LocalPkgInfo pi = mLS.getPkgInfo ( PkgType.PKG_PLATFORM_TOOLS ) ; assertNotNull ( pi ) ; assertTrue ( ( pi instanceof com.android.sdklib.repository.local.LocalPlatformToolPkgInfo ) ) ; assertEquals ( new java.io.File ( "/sdk/platform-tools" ) , pi.getLocalDir ( ) ) ; assertSame ( mLS , pi.getLocalSdk ( ) ) ; assertEquals ( null , pi.getLoadError ( ) ) ; assertEquals ( new com.android.sdklib.repository.FullRevision ( 18 , 19 , 20 ) , pi.getDesc ( ) . getFullRevision ( ) ) ; assertEquals ( "<LocalPlatformToolPkgInfo <PkgDesc Type=platform_tools FullRev=18.19.20>>" , pi.toString ( ) ) ; java.lang.Package pkg = pi.getPackage ( ) ; assertNotNull ( pkg ) ; }

Target:
public final void testLocalSdkTest_getPkgInfo_PlatformTools ( ) { assertNull ( mLS.getPkgInfo ( PkgType.PKG_PLATFORM_TOOLS ) ) ; mLS.clearLocalPkg ( PkgType.PKG_ALL ) ; mFOp.recordExistingFolder ( "/sdk/platform-tools" ) ; mFOp.recordExistingFile ( "/sdk/platform-tools/source.properties" , ( "Pkg.License=Terms and Conditions\n" + ( ( ( ( "Archive.Os=WINDOWS\n" + "Pkg.Revision=18.19.20\n" ) + "Pkg.LicenseRef=android-sdk-license\n" ) + "Archive.Arch=ANY\n" ) + "Pkg.SourceUrl=https\\://example.com/repository-8.xml" ) ) ) ; com.android.sdklib.repository.local.LocalPkgInfo pi = mLS.getPkgInfo ( PkgType.PKG_PLATFORM_TOOLS ) ; assertNotNull ( pi ) ; assertTrue ( ( pi instanceof com.android.sdklib.repository.local.LocalPlatformToolPkgInfo ) ) ; assertEquals ( new java.io.File ( "/sdk/platform-tools" ) , pi.getLocalDir ( ) ) ; assertSame ( mLS , pi.getLocalSdk ( ) ) ; assertEquals ( null , pi.getLoadError ( ) ) ; assertEquals ( new com.android.sdklib.repository.FullRevision ( 18 , 19 , 20 ) , pi.getDesc ( ) . getFullRevision ( ) ) ; assertEquals ( "<LocalPlatformToolPkgInfo <PkgDesc Type=platform_tools FullRev=18.19.20>>" , pi.toString ( ) ) ; assertEquals ( "Android SDK Platform-Tools 18.19.20" , pi.getListDescription ( ) ) ; java.lang.Package pkg = pi.getPackage ( ) ; assertNotNull ( pkg ) ; }
Source:
public void copySelectionToClipboard ( java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection > selection ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.SelectionManager.sanitize ( selection ) ; if ( selection.isEmpty ( ) ) { return ; } java.lang.Object [ ] data = new java.lang.Object [ ] { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection.getAsElements ( selection ) , com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection.getAsText ( mCanvas , selection ) } ; org.eclipse.swt.dnd.Transfer [ ] types = new org.eclipse.swt.dnd.Transfer [ ] { com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleXmlTransfer.getInstance ( ) , org.eclipse.swt.dnd.TextTransfer.getInstance ( ) } ; mClipboard.setContents ( data , types ) ; }

Target:
public void copySelectionToClipboard ( java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.gle2.SelectionItem > selection ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.SelectionManager.sanitize ( selection ) ; if ( selection.isEmpty ( ) ) { return ; } java.lang.Object [ ] data = new java.lang.Object [ ] { com.android.ide.eclipse.adt.internal.editors.layout.gle2.SelectionItem.getAsElements ( selection ) , com.android.ide.eclipse.adt.internal.editors.layout.gle2.SelectionItem.getAsText ( mCanvas , selection ) } ; org.eclipse.swt.dnd.Transfer [ ] types = new org.eclipse.swt.dnd.Transfer [ ] { com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleXmlTransfer.getInstance ( ) , org.eclipse.swt.dnd.TextTransfer.getInstance ( ) } ; mClipboard.setContents ( data , types ) ; }
Source:
public android.telephony.ims.feature.MMTelFeature onCreateEmergencyMMTelImsFeature ( int slotId ) { return null ; }

Target:
private com.android.ims.internal.IImsMMTelFeature createMMTelFeatureInternal ( int slotId , com.android.ims.internal.IImsFeatureStatusCallback c ) { android.telephony.ims.feature.MMTelFeature f = onCreateMMTelImsFeature ( slotId ) ; if ( f != null ) { setupFeature ( f , slotId , ImsFeature.MMTEL , c ) ; return f.getBinder ( ) ; } else { return null ; } }
Source:
public static java.lang.String toUnicode ( java.lang.String input , int flags ) { com.ibm.icu.text.IDNA converter = com.ibm.icu.text.IDNA.getUTS46Instance ( flags ) ; java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; com.ibm.icu.text.IDNA.Info info = new com.ibm.icu.text.IDNA.Info ( ) ; converter.nameToUnicode ( input , result , info ) ; if ( info.hasErrors ( ) ) { return input ; } return result.toString ( ) ; }

Target:
public static java.lang.String toASCII ( java.lang.String input , int flags ) { return libcore.icu.NativeIDN.toASCII ( input , flags ) ; }
Source:
public static com.android.sdklib.internal.avd.AvdManager getInstance ( com.android.sdklib.SdkManager sdkManager , com.android.sdklib.ISdkLog log ) throws com.android.prefs.AndroidLocation.AndroidLocationException { synchronized ( com.android.sdklib.internal.avd.AvdManager.mManagers ) { com.android.sdklib.internal.avd.AvdManager manager ; if ( ( manager = com.android.sdklib.internal.avd.AvdManager.mManagers.get ( sdkManager.getLocation ( ) ) ) != null ) { return manager ; } manager = new com.android.sdklib.internal.avd.AvdManager ( sdkManager , log ) ; com.android.sdklib.internal.avd.AvdManager.mManagers.put ( sdkManager.getLocation ( ) , manager ) ; return manager ; } }

Target:
public static com.android.sdklib.internal.avd.AvdManager getInstance ( com.android.sdklib.SdkManager sdkManager , com.android.utils.ILogger log ) throws com.android.prefs.AndroidLocation.AndroidLocationException { synchronized ( com.android.sdklib.internal.avd.AvdManager.mManagers ) { com.android.sdklib.internal.avd.AvdManager manager ; if ( ( manager = com.android.sdklib.internal.avd.AvdManager.mManagers.get ( sdkManager.getLocation ( ) ) ) != null ) { return manager ; } manager = new com.android.sdklib.internal.avd.AvdManager ( sdkManager , log ) ; com.android.sdklib.internal.avd.AvdManager.mManagers.put ( sdkManager.getLocation ( ) , manager ) ; return manager ; } }
Source:
private boolean selectDropped ( java.util.Collection < com.android.ide.eclipse.adt.editors.layout.gscripts.INode > nodes ) { final java.util.Collection < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo > newChildren = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo > ( ) ; for ( com.android.ide.eclipse.adt.editors.layout.gscripts.INode node : nodes ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo viewInfo = mCanvas.findViewInfoFor ( node ) ; if ( viewInfo != null ) { newChildren.add ( viewInfo ) ; } } mCanvas.selectMultiple ( newChildren ) ; return ( nodes.size ( ) ) == ( newChildren.size ( ) ) ; }

Target:
private boolean selectDropped ( java.util.Collection < com.android.ide.common.api.INode > nodes ) { final java.util.Collection < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo > newChildren = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo > ( ) ; for ( com.android.ide.common.api.INode node : nodes ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo viewInfo = mCanvas.findViewInfoFor ( node ) ; if ( viewInfo != null ) { newChildren.add ( viewInfo ) ; } } mCanvas.selectMultiple ( newChildren ) ; return ( nodes.size ( ) ) == ( newChildren.size ( ) ) ; }
Source:
public void testE4 ( ) { dot.junit.opcodes.aput_object.d.T_aput_object_4 t = new dot.junit.opcodes.aput_object.d.T_aput_object_4 ( ) ; java.lang.String [ ] arr = new java.lang.String [ 2 ] ; try { t.run ( arr , 0 , t ) ; fail ( "expected ArrayStoreException" ) ; } catch ( java.lang.ArrayStoreException aie ) { } }

Target:
public void testE4 ( ) { loadAndRun ( "dot.junit.opcodes.aput_object.d.T_aput_object_4" , java.lang.ArrayStoreException.class , new java.lang.String [ 2 ] , 0 , new java.lang.Integer ( 1 ) ) ; }
Source:
public java.util.List < com.android.vts.servlet.Page > getBreadcrumbLinks ( javax.servlet.http.HttpServletRequest request ) { java.util.List < com.android.vts.servlet.Page > links = new java.util.ArrayList < > ( ) ; java.lang.String testName = request.getParameter ( "testName" ) ; links.add ( new com.android.vts.servlet.Page ( PageType.TABLE , testName , ( "?testName=" + testName ) ) ) ; links.add ( new com.android.vts.servlet.Page ( PageType.GRAPH , ( "?testName=" + testName ) ) ) ; return links ; }

Target:
public java.util.List < com.android.vts.servlet.Page > getBreadcrumbLinks ( javax.servlet.http.HttpServletRequest request ) { java.util.List < com.android.vts.servlet.Page > links = new java.util.ArrayList < > ( ) ; java.lang.String testName = request.getParameter ( "testName" ) ; links.add ( new com.android.vts.servlet.Page ( PageType.PROFILING_OVERVIEW , testName , ( "?testName=" + testName ) ) ) ; return links ; }
Source:
public void run ( ) { mTextView.setText ( "" , BufferType.EDITABLE ) ; mTextView.requestFocus ( ) ; android.text.Selection.setSelection ( ( ( android.text.Editable ) ( mTextView.getText ( ) ) ) , 0 , 0 ) ; mTextView.setKeyListener ( multiTapKeyListener ) ; }

Target:
public void run ( ) { mTextView.setText ( "" , BufferType.EDITABLE ) ; android.text.Selection.setSelection ( mTextView.getEditableText ( ) , 0 , 0 ) ; }