auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "TLS_RSA_WITH_AES_128_GCM_SHA256" , "TLS_RSA_WITH_AES_256_GCM_SHA384" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_MD5" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }

Target:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "TLS_RSA_WITH_AES_128_GCM_SHA256" , "TLS_RSA_WITH_AES_256_GCM_SHA384" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "SSL_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_MD5" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }
Source:
private static com.google.gson.Gson createGson ( com.android.ide.common.blame.output.GradleMessageRewriter.ErrorFormatMode errorFormatMode ) { com.google.gson.GsonBuilder gsonBuilder = new com.google.gson.GsonBuilder ( ) ; gsonBuilder.registerTypeAdapter ( com.android.ide.common.blame.SourceFragmentPositionRange.class , new com.android.ide.common.blame.SourceFragmentPositionRange.Serializer ( ) ) ; if ( errorFormatMode == ( com.android.ide.common.blame.output.GradleMessageRewriter.ErrorFormatMode.HUMAN_READABLE ) ) { gsonBuilder.setPrettyPrinting ( ) ; } return gsonBuilder.create ( ) ; }

Target:
private static com.google.gson.Gson createGson ( ) { com.google.gson.GsonBuilder gsonBuilder = new com.google.gson.GsonBuilder ( ) ; gsonBuilder.registerTypeAdapter ( com.android.ide.common.blame.SourceFragmentPositionRange.class , new com.android.ide.common.blame.SourceFragmentPositionRange.Serializer ( ) ) ; return gsonBuilder.create ( ) ; }
Source:
public void run ( ) { java.io.InputStreamReader is = new java.io.InputStreamReader ( process.getInputStream ( ) ) ; java.io.BufferedReader outReader = new java.io.BufferedReader ( is ) ; try { while ( true ) { java.lang.String line = outReader.readLine ( ) ; if ( line != null ) { monitor.setResult ( "%1$s" , line ) ; } else { break ; } } } catch ( java.io.IOException e ) { } }

Target:
public void run ( ) { java.io.InputStreamReader is = new java.io.InputStreamReader ( process.getInputStream ( ) ) ; java.io.BufferedReader outReader = new java.io.BufferedReader ( is ) ; try { while ( true ) { java.lang.String line = outReader.readLine ( ) ; if ( line != null ) { monitor.log ( "%1$s" , line ) ; } else { break ; } } } catch ( java.io.IOException e ) { } }
Source:
public void onSaveInstanceState ( android.os.Bundle outState ) { super . onSaveInstanceState ( outState ) ; outState.putInt ( com.android.dialer.app.calllog.CallLogFragment.KEY_FILTER_TYPE , mCallTypeFilter ) ; outState.putInt ( com.android.dialer.app.calllog.CallLogFragment.KEY_LOG_LIMIT , mLogLimit ) ; outState.putLong ( com.android.dialer.app.calllog.CallLogFragment.KEY_DATE_LIMIT , mDateLimit ) ; outState.putBoolean ( com.android.dialer.app.calllog.CallLogFragment.KEY_IS_CALL_LOG_ACTIVITY , mIsCallLogActivity ) ; outState.putBoolean ( com.android.dialer.app.calllog.CallLogFragment.KEY_HAS_READ_CALL_LOG_PERMISSION , mHasReadCallLogPermission ) ; outState.putBoolean ( com.android.dialer.app.calllog.CallLogFragment.KEY_REFRESH_DATA_REQUIRED , mRefreshDataRequired ) ; outState.putBoolean ( com.android.dialer.app.calllog.CallLogFragment.KEY_SELECT_ALL_MODE , selectAllMode ) ; mAdapter.onSaveInstanceState ( outState ) ; }

Target:
public void onSaveInstanceState ( android.os.Bundle outState ) { super . onSaveInstanceState ( outState ) ; outState.putInt ( com.android.dialer.app.calllog.CallLogFragment.KEY_FILTER_TYPE , mCallTypeFilter ) ; outState.putInt ( com.android.dialer.app.calllog.CallLogFragment.KEY_LOG_LIMIT , mLogLimit ) ; outState.putLong ( com.android.dialer.app.calllog.CallLogFragment.KEY_DATE_LIMIT , mDateLimit ) ; outState.putBoolean ( com.android.dialer.app.calllog.CallLogFragment.KEY_IS_CALL_LOG_ACTIVITY , mIsCallLogActivity ) ; outState.putBoolean ( com.android.dialer.app.calllog.CallLogFragment.KEY_HAS_READ_CALL_LOG_PERMISSION , mHasReadCallLogPermission ) ; outState.putBoolean ( com.android.dialer.app.calllog.CallLogFragment.KEY_REFRESH_DATA_REQUIRED , mRefreshDataRequired ) ; outState.putBoolean ( com.android.dialer.app.calllog.CallLogFragment.KEY_SELECT_ALL_MODE , selectAllMode ) ; if ( ( mAdapter ) != null ) { mAdapter.onSaveInstanceState ( outState ) ; } }
Source:
public void testJavaStrings ( ) { assertEquals ( mAppTextView2.getText ( ) , "SUCCESS-APP" ) ; assertEquals ( mLib1TextView2.getText ( ) , "SUCCESS-LIB1" ) ; assertEquals ( mLib2TextView2.getText ( ) , "SUCCESS-LIB2" ) ; assertEquals ( mLib2bTextView2.getText ( ) , "SUCCESS-LIB2b" ) ; assertEquals ( mLibappTextView2.getText ( ) , "SUCCESS-LIBAPP" ) ; }

Target:
public void testJavaStrings ( ) { assertEquals ( "SUCCESS-APP" , mAppTextView2.getText ( ) . toString ( ) ) ; assertEquals ( "SUCCESS-LIB1" , mLib1TextView2.getText ( ) . toString ( ) ) ; assertEquals ( "SUCCESS-LIB2" , mLib2TextView2.getText ( ) . toString ( ) ) ; assertEquals ( "SUCCESS-LIB2b" , mLib2bTextView2.getText ( ) . toString ( ) ) ; assertEquals ( "SUCCESS-LIBAPP" , mLibappTextView2.getText ( ) . toString ( ) ) ; }
Source:
public static void initCommandLine ( android.content.Context context , java.lang.String fileName ) { if ( ! ( org.chromium.base.CommandLine.isInitialized ( ) ) ) { java.io.File commandLineFile = org.chromium.base.CommandLineInitUtil.getAlternativeCommandLinePath ( context , fileName ) ; if ( commandLineFile != null ) { org.chromium.base.Log.i ( org.chromium.base.CommandLineInitUtil.TAG , ( "Using alternative command line file in " + ( commandLineFile.getPath ( ) ) ) ) ; } else { commandLineFile = new java.io.File ( org.chromium.base.CommandLineInitUtil.COMMAND_LINE_FILE_PATH , fileName ) ; } org.chromium.base.CommandLine.initFromFile ( commandLineFile.getPath ( ) ) ; } }

Target:
public static void initCommandLine ( android.content.Context context , java.lang.String fileName ) { if ( ! ( org.chromium.base.CommandLine.isInitialized ( ) ) ) { java.io.File commandLineFile = org.chromium.base.CommandLineInitUtil.getAlternativeCommandLinePath ( context , fileName ) ; if ( commandLineFile == null ) { commandLineFile = new java.io.File ( org.chromium.base.CommandLineInitUtil.COMMAND_LINE_FILE_PATH , fileName ) ; } org.chromium.base.CommandLine.initFromFile ( commandLineFile.getPath ( ) ) ; } }
Source:
protected void datagramSocketCreate ( ) throws java.net.SocketException { fd = libcore.io.IoBridge.socket ( android.system.OsConstants.AF_INET6 , android.system.OsConstants.SOCK_DGRAM , 0 ) ; libcore.io.IoBridge.setSocketOption ( fd , java.net.SocketOptions.SO_BROADCAST , true ) ; try { Libcore.os.setsockoptInt ( fd , android.system.OsConstants.IPPROTO_IP , android.system.OsConstants.IP_MULTICAST_ALL , 0 ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }

Target:
protected native void datagramSocketCreate ( ) throws java.net.SocketException ;
Source:
java.lang.String getName ( android.icu.impl.NameType type ) { if ( ( _names ) == null ) { return null ; } java.lang.String name = null ; switch ( type ) { case SHORT_STANDARD : name = _names [ 0 ] ; break ; case SHORT_DAYLIGHT : name = _names [ 1 ] ; break ; } return name ; }

Target:
java.lang.String getName ( android.icu.impl.NameType type ) { if ( ( _names ) == null ) { return null ; } java.lang.String name = null ; switch ( type ) { case SHORT_STANDARD : name = _names [ 0 ] ; break ; case SHORT_DAYLIGHT : name = _names [ 1 ] ; break ; default : break ; } return name ; }
Source:
private java.lang.StringBuffer subformat ( int number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr , int maxIntDig ) { if ( ( currencySignCount ) == ( com.ibm.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } }

Target:
private java.lang.StringBuffer subformat ( int number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr ) { if ( ( currencySignCount ) == ( com.ibm.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr ) ; } }
Source:
public java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { android.util.Log.v ( android.bluetooth.BluetoothHidDevice.TAG , "getConnectedDevices()" ) ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { return service.getConnectedDevices ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { return service.getConnectedDevices ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return new java.util.ArrayList < > ( ) ; }
Source:
public void testBufferedWrite ( ) throws java.lang.Exception { mWifiConfigStore.switchUserStoreAndRead ( mUserStore ) ; mWifiConfigStore.write ( false , getEmptyStoreData ( ) ) ; assertTrue ( mAlarmManager.isPending ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ) ; assertFalse ( mSharedStore.isStoreWritten ( ) ) ; assertFalse ( mUserStore.isStoreWritten ( ) ) ; mAlarmManager.dispatch ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ; mLooper.dispatchAll ( ) ; assertTrue ( mSharedStore.isStoreWritten ( ) ) ; assertTrue ( mUserStore.isStoreWritten ( ) ) ; }

Target:
public void testBufferedWrite ( ) throws java.lang.Exception { mWifiConfigStore.switchUserStoreAndRead ( mUserStore ) ; mWifiConfigStore.write ( false ) ; assertTrue ( mAlarmManager.isPending ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ) ; assertFalse ( mSharedStore.isStoreWritten ( ) ) ; assertFalse ( mUserStore.isStoreWritten ( ) ) ; mAlarmManager.dispatch ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ; mLooper.dispatchAll ( ) ; assertTrue ( mSharedStore.isStoreWritten ( ) ) ; assertTrue ( mUserStore.isStoreWritten ( ) ) ; }
Source:
protected static void loadLinkerJniLibrary ( ) { java.lang.String libName = ( "lib" + ( org.chromium.base.library_loader.Linker.LINKER_JNI_LIBRARY ) ) + ".so" ; if ( org.chromium.base.library_loader.Linker.DEBUG ) { org.chromium.base.Log.i ( org.chromium.base.library_loader.Linker.TAG , ( "Loading " + libName ) ) ; } try { java.lang.System.loadLibrary ( org.chromium.base.library_loader.Linker.LINKER_JNI_LIBRARY ) ; } catch ( java.lang.UnsatisfiedLinkError e ) { org.chromium.base.Log.w ( org.chromium.base.library_loader.Linker.TAG , ( ( ( ( "Couldn't load " + libName ) + ", trying " ) + libName ) + ".cr" ) ) ; java.lang.System.loadLibrary ( ( ( org.chromium.base.library_loader.Linker.LINKER_JNI_LIBRARY ) + ".cr" ) ) ; } }

Target:
protected static void loadLinkerJniLibrary ( ) { java.lang.String libName = ( "lib" + ( org.chromium.base.library_loader.Linker.LINKER_JNI_LIBRARY ) ) + ".so" ; if ( org.chromium.base.library_loader.Linker.DEBUG ) { org.chromium.base.Log.i ( org.chromium.base.library_loader.Linker.TAG , ( "Loading " + libName ) ) ; } java.lang.System.loadLibrary ( org.chromium.base.library_loader.Linker.LINKER_JNI_LIBRARY ) ; }
Source:
private static PhotoInfo.Builder fromNumberAttributes ( com.android.dialer.NumberAttributes numberAttributes ) { return com.android.dialer.glidephotomanager.PhotoInfo.newBuilder ( ) . setName ( numberAttributes.getName ( ) ) . setPhotoUri ( numberAttributes.getPhotoUri ( ) ) . setPhotoId ( numberAttributes.getPhotoId ( ) ) . setLookupUri ( numberAttributes.getLookupUri ( ) ) . setIsBusiness ( numberAttributes.getIsBusiness ( ) ) . setIsBlocked ( numberAttributes.getIsBlocked ( ) ) . setIsSpam ( numberAttributes.getIsSpam ( ) ) ; }

Target:
private static PhotoInfo.Builder fromNumberAttributes ( com.android.dialer.NumberAttributes numberAttributes ) { return com.android.dialer.glidephotomanager.PhotoInfo.newBuilder ( ) . setName ( numberAttributes.getName ( ) ) . setPhotoUri ( numberAttributes.getPhotoUri ( ) ) . setPhotoId ( numberAttributes.getPhotoId ( ) ) . setLookupUri ( numberAttributes.getLookupUri ( ) ) . setIsBusiness ( numberAttributes.getIsBusiness ( ) ) . setIsBlocked ( numberAttributes.getIsBlocked ( ) ) ; }
Source:
private static com.android.mms.model.MediaModel createEmptyTextModel ( android.content.Context context , com.android.mms.drm.DrmWrapper wrapper , com.android.mms.model.RegionModel regionModel ) throws java.io.IOException { return wrapper != null ? new com.android.mms.model.TextModel ( context , com.google.android.mms.ContentType.TEXT_PLAIN , null , com.google.android.mms.pdu.CharacterSets.ANY_CHARSET , wrapper , regionModel ) : new com.android.mms.model.TextModel ( context , com.google.android.mms.ContentType.TEXT_PLAIN , null , regionModel ) ; }

Target:
private static com.android.mms.model.MediaModel createEmptyTextModel ( android.content.Context context , com.android.mms.model.RegionModel regionModel ) throws java.io.IOException { return new com.android.mms.model.TextModel ( context , com.google.android.mms.ContentType.TEXT_PLAIN , null , regionModel ) ; }
Source:
public static int insertProviderAt ( java.security.Provider provider , int position ) { int size = org.apache.harmony.security.fortress.Services.providers.size ( ) ; if ( ( position < 1 ) || ( position > size ) ) { position = size + 1 ; } org.apache.harmony.security.fortress.Services.providers.add ( ( position - 1 ) , provider ) ; org.apache.harmony.security.fortress.Services.providersNames.put ( provider.getName ( ) , provider ) ; org.apache.harmony.security.fortress.Services.setNeedRefresh ( ) ; return position ; }

Target:
public static int insertProviderAt ( java.security.Provider provider , int position ) { synchronized ( org.apache.harmony.security.fortress.Services.providers ) { int size = org.apache.harmony.security.fortress.Services.providers.size ( ) ; if ( ( position < 1 ) || ( position > size ) ) { position = size + 1 ; } org.apache.harmony.security.fortress.Services.providers.add ( ( position - 1 ) , provider ) ; org.apache.harmony.security.fortress.Services.providersNames.put ( provider.getName ( ) , provider ) ; org.apache.harmony.security.fortress.Services.setNeedRefresh ( ) ; return position ; } }
Source:
private void addDependencies ( @ javax.annotation.Nonnull java.util.Set < java.lang.String > filesToRecompile , @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.util.Set < java.lang.String > > typeRecompileDependencies , @ javax.annotation.Nonnull java.util.Set < java.lang.String > fileNames ) { for ( java.lang.String fileName : fileNames ) { if ( filesToRecompile.add ( fileName ) ) { for ( java.lang.String dependencyFileName : getDependencyFileNamesToRecompile ( typeRecompileDependencies , fileName ) ) { filesToRecompile.add ( dependencyFileName ) ; } } } }

Target:
private void addDependencies ( @ javax.annotation.Nonnull java.util.Set < java.lang.String > filesToRecompile , @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.util.Set < java.lang.String > > typeRecompileDependencies , @ javax.annotation.Nonnull java.util.Set < java.lang.String > fileNames ) { for ( java.lang.String fileName : fileNames ) { for ( java.lang.String dependencyFileName : getDependencyFileNamesToRecompile ( typeRecompileDependencies , fileName ) ) { filesToRecompile.add ( dependencyFileName ) ; } } }
Source:
protected int handleComputeMonthStart ( int year , int month , boolean useMonth ) { int imonth ; if ( ( month < 0 ) || ( month > 11 ) ) { year += month / 12 ; month %= 12 ; } if ( month == 12 ) { imonth = 1 ; } else { imonth = month + 1 ; } double jd = com.ibm.icu.util.IndianCalendar.IndianToJD ( year , imonth , 1 ) ; return ( ( int ) ( jd ) ) ; }

Target:
protected int handleComputeMonthStart ( int year , int month , boolean useMonth ) { int imonth ; if ( ( month < 0 ) || ( month > 11 ) ) { year += month / 12 ; month %= 12 ; } imonth = month + 1 ; double jd = com.ibm.icu.util.IndianCalendar.IndianToJD ( year , imonth , 1 ) ; return ( ( int ) ( jd ) ) ; }
Source:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { if ( insertType == ( com.android.ide.common.api.InsertType.CREATE ) ) { java.lang.String include = mRulesEngine.displayIncludeSourceInput ( ) ; if ( include != null ) { node.editXml ( "Include Layout" , new com.android.ide.common.layout.PropertySettingNodeHandler ( null , com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.ATTR_LAYOUT , include ) ) ; } else { parent.removeChild ( node ) ; } } }

Target:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { if ( insertType == ( com.android.ide.common.api.InsertType.CREATE ) ) { java.lang.String include = mRulesEngine.displayIncludeSourceInput ( ) ; if ( include != null ) { node.editXml ( "Include Layout" , new com.android.ide.common.layout.PropertySettingNodeHandler ( null , com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.ATTR_LAYOUT , ( ( include.length ( ) ) > 0 ? include : null ) ) ) ; } else { parent.removeChild ( node ) ; } } }
Source:
public com.android.sdklib.devices.DeviceManager.DeviceStatus getDeviceStatus ( @ com.android.annotations.Nullable java.lang.String sdkLocation , java.lang.String name , java.lang.String manufacturer , int hashCode ) { com.android.sdklib.devices.Device d = getDevice ( sdkLocation , name , manufacturer ) ; if ( d == null ) { return com.android.sdklib.devices.DeviceManager.DeviceStatus.MISSING ; } else { return ( d.hashCode ( ) ) == hashCode ? com.android.sdklib.devices.DeviceManager.DeviceStatus.EXISTS : com.android.sdklib.devices.DeviceManager.DeviceStatus.CHANGED ; } }

Target:
public com.android.sdklib.devices.DeviceManager.DeviceStatus getDeviceStatus ( java.lang.String name , java.lang.String manufacturer , int hashCode ) { com.android.sdklib.devices.Device d = getDevice ( name , manufacturer ) ; if ( d == null ) { return com.android.sdklib.devices.DeviceManager.DeviceStatus.MISSING ; } else { return ( d.hashCode ( ) ) == hashCode ? com.android.sdklib.devices.DeviceManager.DeviceStatus.EXISTS : com.android.sdklib.devices.DeviceManager.DeviceStatus.CHANGED ; } }
Source:
public void setUp ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : com.android.tradefed.targetprep.VtsDeviceInfoCollector.BUILD_KEYS.entrySet ( ) ) { buildInfo.addBuildAttribute ( entry.getKey ( ) , com.android.tradefed.util.ArrayUtil.join ( "," , device.getProperty ( entry.getValue ( ) ) ) ) ; } device.executeShellCommand ( "stop" ) ; device.executeShellCommand ( "setprop sys.boot_completed 0" ) ; }

Target:
public void setUp ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : com.android.tradefed.targetprep.VtsDeviceInfoCollector.BUILD_KEYS.entrySet ( ) ) { buildInfo.addBuildAttribute ( entry.getKey ( ) , com.android.tradefed.util.ArrayUtil.join ( "," , device.getProperty ( entry.getValue ( ) ) ) ) ; } }
Source:
private com.android.ide.common.blame.SourcePosition parseLineNumber ( java.lang.String lineNumberAsText ) throws com.android.ide.common.blame.parser.ParsingFailedException { int lineNumber = - 1 ; if ( lineNumberAsText != null ) { try { lineNumber = java.lang.Integer.parseInt ( lineNumberAsText ) ; } catch ( java.lang.NumberFormatException e ) { throw new com.android.ide.common.blame.parser.ParsingFailedException ( ) ; } } return new com.android.ide.common.blame.SourcePosition ( lineNumber , ( - 1 ) , ( - 1 ) ) ; }

Target:
private com.android.ide.common.blame.SourcePosition parseLineNumber ( java.lang.String lineNumberAsText ) throws com.android.ide.common.blame.parser.ParsingFailedException { int lineNumber = - 1 ; if ( lineNumberAsText != null ) { try { lineNumber = java.lang.Integer.parseInt ( lineNumberAsText ) ; } catch ( java.lang.NumberFormatException e ) { throw new com.android.ide.common.blame.parser.ParsingFailedException ( ) ; } } return new com.android.ide.common.blame.SourcePosition ( ( lineNumber - 1 ) , ( - 1 ) , ( - 1 ) ) ; }
Source:
private byte [ ] stringToByte ( java.lang.String mediaId ) { if ( ! ( mHmap.containsValue ( mediaId ) ) ) { int key = mHmap.size ( ) ; mHmap.put ( key , mediaId ) ; return intToByteArray ( key ) ; } else { for ( int key : mHmap.keySet ( ) ) { if ( mHmap.get ( key ) . equals ( mediaId ) ) { return intToByteArray ( key ) ; } } } return null ; }

Target:
private byte [ ] stringToByte ( java.lang.String mediaId ) { if ( ! ( mHmap.containsValue ( mediaId ) ) ) { int uid = ( mHmap.size ( ) ) + 1 ; mHmap.put ( uid , mediaId ) ; return intToByteArray ( uid ) ; } else { for ( int uid : mHmap.keySet ( ) ) { if ( mHmap.get ( uid ) . equals ( mediaId ) ) { return intToByteArray ( uid ) ; } } } return null ; }
Source:
public void testPush ( ) { try { java.util.concurrent.LinkedBlockingDeque q = new java.util.concurrent.LinkedBlockingDeque ( SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { java.lang.Integer I = new java.lang.Integer ( i ) ; q.push ( I ) ; assertEquals ( I , q.peek ( ) ) ; } assertEquals ( 0 , q.remainingCapacity ( ) ) ; q.push ( new java.lang.Integer ( SIZE ) ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalStateException success ) { } }

Target:
public void testPush ( ) { try { java.util.concurrent.LinkedBlockingDeque q = new java.util.concurrent.LinkedBlockingDeque ( SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { java.lang.Integer x = new java.lang.Integer ( i ) ; q.push ( x ) ; assertEquals ( x , q.peek ( ) ) ; } assertEquals ( 0 , q.remainingCapacity ( ) ) ; q.push ( new java.lang.Integer ( SIZE ) ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalStateException success ) { } }
Source:
public void ensureAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod loaded ) { synchronized ( this ) { if ( isAnnotationsLoaded ) { return ; } com.android.jack.jayce.MethodNode node ; try { node = getNNode ( NodeLevel.STRUCTURE ) ; node.loadAnnotations ( loaded ) ; } catch ( com.android.jack.LibraryException e ) { throw new com.android.jack.load.JackLoadingException ( getLocation ( loaded ) , e ) ; } isAnnotationsLoaded = true ; if ( isBodyLoaded ) { loaded.removeLoader ( ) ; } } }

Target:
public void ensureAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod loaded ) { synchronized ( this ) { if ( isAnnotationsLoaded ) { return ; } com.android.jack.jayce.MethodNode node ; try { node = getNNode ( NodeLevel.STRUCTURE ) ; node.loadAnnotations ( loaded , this ) ; } catch ( com.android.jack.LibraryException e ) { throw new com.android.jack.load.JackLoadingException ( getLocation ( loaded ) , e ) ; } isAnnotationsLoaded = true ; if ( isBodyLoaded ) { loaded.removeLoader ( ) ; } } }
Source:
public java.nio.channels.FileChannel getChannel ( ) { synchronized ( this ) { if ( ( channel ) == null ) { channel = sun.nio.ch.FileChannelImpl.open ( fd , path , false , true , append , this ) ; fd.incrementAndGetUseCount ( ) ; } return channel ; } }

Target:
public java.nio.channels.FileChannel getChannel ( ) { synchronized ( this ) { if ( ( channel ) == null ) { channel = sun.nio.ch.FileChannelImpl.open ( fd , path , false , true , append , this ) ; } return channel ; } }
Source:
protected void replaceUpdated ( java.io.File from , java.io.File dest ) throws java.io.IOException { if ( ! ( dest.delete ( ) ) ) { if ( com.intellij.updater.Utils.isWindows ( ) ) { throw new com.intellij.updater.RetryException ( ( "Cannot delete file " + dest ) ) ; } else { throw new java.io.IOException ( ( "Cannot delete file " + dest ) ) ; } } com.intellij.updater.Utils.copy ( from , dest ) ; }

Target:
protected void replaceUpdated ( java.io.File from , java.io.File dest ) throws java.io.IOException { if ( ! ( dest.delete ( ) ) ) throw new java.io.IOException ( ( "Cannot delete file " + dest ) ) ; com.intellij.updater.Utils.copy ( from , dest ) ; }
Source:
protected void failWithError ( short alertLevel , short alertDescription , java.lang.String message , java.lang.Exception cause ) throws java.io.IOException { if ( ! ( closed ) ) { this . closed = true ; if ( alertLevel == ( AlertLevel.fatal ) ) { invalidateSession ( ) ; this . failedWithError = true ; } raiseAlert ( alertLevel , alertDescription , message , cause ) ; recordStream.safeClose ( ) ; if ( alertLevel != ( AlertLevel.fatal ) ) { return ; } } throw new java.io.IOException ( org.bouncycastle.crypto.tls.TlsProtocol.TLS_ERROR_MESSAGE ) ; }

Target:
protected void failWithError ( short alertLevel , short alertDescription , java.lang.String message , java.lang.Throwable cause ) throws java.io.IOException { if ( ! ( closed ) ) { this . closed = true ; if ( alertLevel == ( AlertLevel.fatal ) ) { invalidateSession ( ) ; this . failedWithError = true ; } raiseAlert ( alertLevel , alertDescription , message , cause ) ; recordStream.safeClose ( ) ; if ( alertLevel != ( AlertLevel.fatal ) ) { return ; } } throw new java.io.IOException ( org.bouncycastle.crypto.tls.TlsProtocol.TLS_ERROR_MESSAGE ) ; }
Source:
public void testFieldModification ( ) { logWriter.println ( "testFieldModification started" ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; if ( ! ( checkCanUseInstanceFilterCapability ( ) ) ) { synchronizer.sendMessage ( JPDADebuggeeSynchronizer.SGNL_CONTINUE ) ; return ; } if ( ! ( canWatchFieldModificationCapability ( ) ) ) { synchronizer.sendMessage ( JPDADebuggeeSynchronizer.SGNL_CONTINUE ) ; return ; } org.apache.harmony.jpda.tests.framework.jdwp.EventBuilder builder = createFieldModificationEventBuilder ( JDWPConstants.TypeTag.CLASS , org.apache.harmony.jpda.tests.jdwp.EventModifiers.InstanceOnlyModifierTest.TEST_CLASS_SIGNATURE , org.apache.harmony.jpda.tests.jdwp.EventModifiers.InstanceOnlyModifierTest.WATCHED_FIELD_NAME ) ; testEventWithInstanceOnlyModifier ( builder ) ; logWriter.println ( "testFieldModification done" ) ; }

Target:
public void testFieldModification ( ) { logWriter.println ( "testFieldModification started" ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; org.apache.harmony.jpda.tests.framework.jdwp.EventBuilder builder = createFieldModificationEventBuilder ( JDWPConstants.TypeTag.CLASS , org.apache.harmony.jpda.tests.jdwp.EventModifiers.InstanceOnlyModifierTest.TEST_CLASS_SIGNATURE , org.apache.harmony.jpda.tests.jdwp.EventModifiers.InstanceOnlyModifierTest.WATCHED_FIELD_NAME ) ; testEventWithInstanceOnlyModifier ( builder ) ; logWriter.println ( "testFieldModification done" ) ; }
Source:
public void test_lockJJZ_Shared ( ) throws java.lang.Exception { final long POSITION = 100 ; final long SIZE = 200 ; fileLock = readOnlyFileChannel.lock ( POSITION , SIZE , true ) ; assertTrue ( fileLock.isValid ( ) ) ; assertTrue ( fileLock.isShared ( ) ) ; assertSame ( readOnlyFileChannel , fileLock.channel ( ) ) ; assertSame ( readOnlyFileChannel , fileLock.acquiredBy ( ) ) ; assertEquals ( POSITION , fileLock.position ( ) ) ; assertEquals ( SIZE , fileLock.size ( ) ) ; }

Target:
public void test_lockJJZ_Shared ( ) throws java.lang.Exception { final long POSITION = 100 ; final long SIZE = 200 ; fileLock = readOnlyFileChannel.lock ( POSITION , SIZE , true ) ; assertTrue ( fileLock.isValid ( ) ) ; assertTrue ( fileLock.isShared ( ) ) ; assertSame ( readOnlyFileChannel , fileLock.channel ( ) ) ; assertEquals ( POSITION , fileLock.position ( ) ) ; assertEquals ( SIZE , fileLock.size ( ) ) ; }
Source:
public void testCheckAccessLevel_deniedAppOpsBit ( ) throws java.lang.Exception { setHasCarrierPrivileges ( false ) ; setIsDeviceOwner ( false ) ; setIsProfileOwner ( false ) ; setHasAppOpsPermission ( AppOpsManager.MODE_ERRORED , true ) ; setHasReadHistoryPermission ( false ) ; assertEquals ( NetworkStatsAccess.Level.DEFAULT , com.android.server.net.NetworkStatsAccess.checkAccessLevel ( mContext , com.android.server.net.NetworkStatsAccessTest.TEST_UID , com.android.server.net.NetworkStatsAccessTest.TEST_PKG ) ) ; }

Target:
public void testCheckAccessLevel_deniedAppOpsBit ( ) throws java.lang.Exception { setHasCarrierPrivileges ( false ) ; setIsDeviceOwner ( false ) ; setIsProfileOwner ( false ) ; setHasAppOpsPermission ( AppOpsManager.MODE_ERRORED , true ) ; setHasReadHistoryPermission ( false ) ; org.junit.Assert.assertEquals ( NetworkStatsAccess.Level.DEFAULT , com.android.server.net.NetworkStatsAccess.checkAccessLevel ( mContext , com.android.server.net.NetworkStatsAccessTest.TEST_UID , com.android.server.net.NetworkStatsAccessTest.TEST_PKG ) ) ; }
Source:
static boolean native_equals ( int native_a , int native_b ) { android.graphics.Matrix_Delegate a = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_a ) ; if ( a == null ) { return false ; } android.graphics.Matrix_Delegate b = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_b ) ; if ( b == null ) { return false ; } for ( int i = 0 ; i < ( android.graphics.Matrix_Delegate.MATRIX_SIZE ) ; i ++ ) { if ( ( a.mValues [ i ] ) != ( b.mValues [ i ] ) ) { return false ; } } return true ; }

Target:
static boolean native_equals ( long native_a , long native_b ) { android.graphics.Matrix_Delegate a = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_a ) ; if ( a == null ) { return false ; } android.graphics.Matrix_Delegate b = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_b ) ; if ( b == null ) { return false ; } for ( int i = 0 ; i < ( android.graphics.Matrix_Delegate.MATRIX_SIZE ) ; i ++ ) { if ( ( a.mValues [ i ] ) != ( b.mValues [ i ] ) ) { return false ; } } return true ; }
Source:
public static int IntAddition2 ( ) { int a ; int b ; int c ; a = Main.$inline$int ( 1 ) ; b = Main.$inline$int ( 2 ) ; a += b ; b = Main.$inline$int ( 5 ) ; c = Main.$inline$int ( 6 ) ; b += c ; c = a + b ; return c ; }

Target:
public static int IntAddition2 ( ) { int a ; int b ; int c ; a = 1 ; b = 2 ; a += b ; b = 5 ; c = 6 ; b += c ; c = a + b ; return c ; }
Source:
private void addListValue ( java.lang.reflect.Field field , java.lang.String name , java.lang.Object value , com.google.devtools.common.options.OptionPriority priority , java.lang.String source , java.lang.String implicitDependant , java.lang.String expandedFrom ) { com.google.devtools.common.options.OptionsParserImpl.ParsedOptionEntry entry = parsedValues.get ( field ) ; if ( entry == null ) { entry = new com.google.devtools.common.options.OptionsParserImpl.ParsedOptionEntry ( com.google.common.collect.ArrayListMultimap.create ( ) , priority , source , implicitDependant , expandedFrom , true ) ; parsedValues.put ( field , entry ) ; maybeAddDeprecationWarning ( field ) ; } entry.addValue ( priority , value ) ; }

Target:
private void addListValue ( java.lang.reflect.Field field , java.lang.Object value , com.google.devtools.common.options.OptionPriority priority , java.lang.String source , java.lang.String implicitDependant , java.lang.String expandedFrom ) { com.google.devtools.common.options.OptionsParserImpl.ParsedOptionEntry entry = parsedValues.get ( field ) ; if ( entry == null ) { entry = new com.google.devtools.common.options.OptionsParserImpl.ParsedOptionEntry ( com.google.common.collect.ArrayListMultimap.create ( ) , priority , source , implicitDependant , expandedFrom , true ) ; parsedValues.put ( field , entry ) ; maybeAddDeprecationWarning ( field ) ; } entry.addValue ( priority , value ) ; }
Source:
public void setInternationalCurrencySymbol ( java.lang.String currencyCode ) { intlCurrencySymbol = currencyCode ; currency = null ; if ( currencyCode != null ) { try { currency = java.util.Currency.getInstance ( currencyCode ) ; currencySymbol = currency.getSymbol ( ) ; } catch ( java.lang.IllegalArgumentException e ) { } } cachedIcuDFS = null ; }

Target:
public void setInternationalCurrencySymbol ( java.lang.String currencyCode ) { intlCurrencySymbol = currencyCode ; currency = null ; if ( currencyCode != null ) { try { currency = java.util.Currency.getInstance ( currencyCode ) ; currencySymbol = currency.getSymbol ( locale ) ; } catch ( java.lang.IllegalArgumentException e ) { } } cachedIcuDFS = null ; }
Source:
protected boolean isFilterStopped ( android.content.pm.PackageParser.ActivityIntentInfo filter , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return true ; android.content.pm.PackageParser.Package p = filter.activity.owner ; if ( p != null ) { com.android.server.pm.PackageSetting ps = ( ( com.android.server.pm.PackageSetting ) ( p.mExtras ) ) ; if ( ps != null ) { return ( ps.getStopped ( userId ) ) && ( ( ( ps.pkgFlags ) & ( android.content.pm.ApplicationInfo.FLAG_SYSTEM ) ) == 0 ) ; } } return false ; }

Target:
protected boolean isFilterStopped ( android.content.pm.PackageParser.ActivityIntentInfo filter , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return true ; android.content.pm.PackageParser.Package p = filter.activity.owner ; if ( p != null ) { com.android.server.pm.PackageSetting ps = ( ( com.android.server.pm.PackageSetting ) ( p.mExtras ) ) ; if ( ps != null ) { return ( ( ( ps.pkgFlags ) & ( android.content.pm.ApplicationInfo.FLAG_SYSTEM ) ) == 0 ) && ( ps.getStopped ( userId ) ) ; } } return false ; }
Source:
private boolean allIgnorable ( java.lang.String str ) { if ( ( str.length ( ) ) == 0 ) { return true ; } android.icu.text.RbnfLenientScanner scanner = formatter.getLenientScanner ( ) ; return ( scanner != null ) && ( scanner.allIgnorable ( str ) ) ; }

Target:
private boolean allIgnorable ( java.lang.String str ) { if ( ( str == null ) || ( ( str.length ( ) ) == 0 ) ) { return true ; } android.icu.text.RbnfLenientScanner scanner = formatter.getLenientScanner ( ) ; return ( scanner != null ) && ( scanner.allIgnorable ( str ) ) ; }
Source:
public void connectWithCaptivePortal ( java.lang.String redirectUrl ) { mWrappedNetworkMonitor.gen204ProbeResult = 200 ; mWrappedNetworkMonitor.gen204ProbeRedirectUrl = redirectUrl ; connect ( false ) ; com.android.server.ConnectivityServiceTest.waitFor ( new com.android.server.ConnectivityServiceTest.Criteria ( ) { public boolean get ( ) { android.net.NetworkCapabilities.NetworkCapabilities caps = mCm.getNetworkCapabilities ( getNetwork ( ) ) ; return ( caps != null ) && ( caps.hasCapability ( com.android.server.NET_CAPABILITY_CAPTIVE_PORTAL ) ) ; } } ) ; mWrappedNetworkMonitor.gen204ProbeResult = 500 ; mWrappedNetworkMonitor.gen204ProbeRedirectUrl = null ; }

Target:
public void connectWithCaptivePortal ( java.lang.String redirectUrl ) { mWrappedNetworkMonitor.gen204ProbeResult = 200 ; mWrappedNetworkMonitor.gen204ProbeRedirectUrl = redirectUrl ; connect ( false ) ; }
Source:
com.android.jack.dx.rop.code.RegisterSpec getRegisterSpec ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariableRef varRef ) { if ( varRef instanceof com.android.jack.ir.ast.JThisRef ) { assert ( thisReg ) != null : "This register was not created." ; return thisReg ; } com.android.jack.ir.ast.JVariable var = varRef.getTarget ( ) ; assert variableToRegister.containsKey ( var ) ; com.android.jack.dx.rop.code.RegisterSpec register = variableToRegister.get ( var ) ; assert com.android.jack.backend.dex.rop.RopHelper.areTypeCompatible ( com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( varRef.getType ( ) , ( ( var.getMarker ( com.android.jack.transformations.lambda.ForceClosureMarker.class ) ) != null ) ) , register.getType ( ) ) ; return register ; }

Target:
com.android.jack.dx.rop.code.RegisterSpec getRegisterSpec ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariableRef varRef ) { if ( varRef instanceof com.android.jack.ir.ast.JThisRef ) { assert ( thisReg ) != null : "This register was not created." ; return thisReg ; } com.android.jack.ir.ast.JVariable var = varRef.getTarget ( ) ; assert variableToRegister.containsKey ( var ) ; com.android.jack.dx.rop.code.RegisterSpec register = variableToRegister.get ( var ) ; assert com.android.jack.backend.dex.rop.RopHelper.areTypeCompatible ( com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( varRef.getType ( ) ) , register.getType ( ) ) ; return register ; }
Source:
public java.util.Date generateDate ( ) { double a = ran.nextDouble ( ) ; a *= 8000 ; a -= 4000 ; a *= ( ( ( 365.25 * 24 ) * 60 ) * 60 ) * 1000 ; return new java.util.Date ( ( ( long ) ( a ) ) ) ; }

Target:
private java.util.Date generateDate ( ) { double a = ran.nextDouble ( ) ; a *= 8000 ; a -= 4000 ; a *= ( ( ( 365.25 * 24 ) * 60 ) * 60 ) * 1000 ; return new java.util.Date ( ( ( long ) ( a ) ) ) ; }
Source:
public < T extends com.android.jack.ir.ast.JNode > void accept ( @ javax.annotation.Nonnull java.util.Collection < T > collection ) { for ( T element : collection ) { try { element.traverse ( this ) ; } catch ( java.lang.Throwable e ) { throw com.android.jack.ir.ast.JVisitor.translateException ( element , e ) ; } } }

Target:
public < T extends com.android.jack.ir.ast.JNode > void accept ( @ javax.annotation.Nonnull java.util.Collection < T > collection ) { for ( T element : collection ) { element.traverse ( this ) ; } }
Source:
public android.content.ContentValues getConstraints ( java.lang.String path , int action ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) || ( ! ( DrmStore.Action.isValid ( action ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Given usage or path is invalid/null" ) ; } else if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getConstraints ( mUniqueId , path , action ) ; }

Target:
public android.content.ContentValues getConstraints ( java.lang.String path , int action ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) || ( ! ( DrmStore.Action.isValid ( action ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Given usage or path is invalid/null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getConstraints ( mUniqueId , path , action ) ; }
Source:
public void test_SSLEngine_getSupportedCipherSuites_connect ( ) throws java.lang.Exception { libcore.java.security.TestKeyStore testKeyStore = new libcore.java.security.TestKeyStore.Builder ( ) . keyAlgorithms ( "RSA" , "DSA" , "EC" , "EC_RSA" ) . aliasPrefix ( "rsa-dsa-ec" ) . ca ( true ) . build ( ) ; test_SSLEngine_getSupportedCipherSuites_connect ( testKeyStore , false ) ; if ( libcore.java.security.StandardNames.IS_RI ) { test_SSLEngine_getSupportedCipherSuites_connect ( testKeyStore , true ) ; } }

Target:
public void test_SSLEngine_getSupportedCipherSuites_connect ( ) throws java.lang.Exception { libcore.java.security.TestKeyStore testKeyStore = new libcore.java.security.TestKeyStore.Builder ( ) . keyAlgorithms ( "RSA" , "DSA" , "EC" , "EC_RSA" ) . aliasPrefix ( "rsa-dsa-ec" ) . ca ( true ) . build ( ) ; test_SSLEngine_getSupportedCipherSuites_connect ( testKeyStore , false ) ; test_SSLEngine_getSupportedCipherSuites_connect ( testKeyStore , true ) ; }
Source:
protected void makeSystemImageFolder ( @ com.android.annotations.NonNull java.lang.String targetDir , @ com.android.annotations.Nullable java.lang.String tagId , @ com.android.annotations.NonNull java.lang.String abiType ) throws java.io.IOException { java.io.File sysImgDir = new java.io.File ( mFakeSdk , com.android.SdkConstants.FD_SYSTEM_IMAGES ) ; sysImgDir = new java.io.File ( sysImgDir , targetDir ) ; if ( tagId != null ) { sysImgDir = new java.io.File ( sysImgDir , tagId ) ; } sysImgDir = new java.io.File ( sysImgDir , abiType ) ; makeFakeSysImgInternal ( sysImgDir , tagId , abiType ) ; }

Target:
protected java.io.File makeSystemImageFolder ( @ com.android.annotations.NonNull java.lang.String targetDir , @ com.android.annotations.Nullable java.lang.String tagId , @ com.android.annotations.NonNull java.lang.String abiType ) throws java.io.IOException { java.io.File sysImgDir = new java.io.File ( mFakeSdk , com.android.SdkConstants.FD_SYSTEM_IMAGES ) ; sysImgDir = new java.io.File ( sysImgDir , targetDir ) ; if ( tagId != null ) { sysImgDir = new java.io.File ( sysImgDir , tagId ) ; } sysImgDir = new java.io.File ( sysImgDir , abiType ) ; makeFakeSysImgInternal ( sysImgDir , tagId , abiType ) ; return sysImgDir ; }
Source:
public android.net.wifi.WifiLinkLayerStats getWifiLinkLayerStats ( java.lang.String iface ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getWifiLinkLayerStats ( ) ; } else { if ( iface == null ) return null ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getWifiLinkLayerStatsNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } } }

Target:
public android.net.wifi.WifiLinkLayerStats getWifiLinkLayerStats ( java.lang.String iface ) { return mWifiVendorHal.getWifiLinkLayerStats ( ) ; }
Source:
public void dump ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { super . dump ( fd , pw , args ) ; pw.println ( ( " mPhone=" + ( mPhone ) ) ) ; pw.println ( ( " mDcListAll=" + ( mDcListAll ) ) ) ; pw.println ( ( " mDcListActiveByCid=" + ( mDcListActiveByCid ) ) ) ; }

Target:
public void dump ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { super . dump ( fd , pw , args ) ; pw.println ( ( " mPhone=" + ( mPhone ) ) ) ; synchronized ( mDcListAll ) { pw.println ( ( " mDcListAll=" + ( mDcListAll ) ) ) ; pw.println ( ( " mDcListActiveByCid=" + ( mDcListActiveByCid ) ) ) ; } }
Source:
public void showXml ( org.eclipse.swt.events.MouseEvent e ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutPoint p = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( this , e ) . toLayout ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi = mViewHierarchy.findViewInfoAt ( p ) ; if ( ( vi == null ) || ( vi.isRoot ( ) ) ) { return ; } org.w3c.dom.Node xmlNode = vi.getXmlNode ( ) ; if ( xmlNode != null ) { boolean found = mLayoutEditor.show ( xmlNode ) ; if ( ! found ) { getDisplay ( ) . beep ( ) ; } } }

Target:
private void showXml ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi ) { if ( vi.isRoot ( ) ) { return ; } org.w3c.dom.Node xmlNode = vi.getXmlNode ( ) ; if ( xmlNode != null ) { boolean found = mLayoutEditor.show ( xmlNode ) ; if ( ! found ) { getDisplay ( ) . beep ( ) ; } } }
Source:
public void run ( org.eclipse.core.runtime.IProgressMonitor monitor ) throws java.lang.InterruptedException , java.lang.reflect.InvocationTargetException { com.android.ddmlib.SyncService.SyncResult result = sync.pull ( entryArray , localDirectory , new com.android.ddmuilib.SyncProgressMonitor ( monitor , "Pulling file(s) from the device" ) ) ; if ( ( result.getCode ( ) ) != ( com.android.ddmlib.SyncService.RESULT_OK ) ) { com.android.ddmuilib.console.DdmConsole.printErrorToConsole ( java.lang.String.format ( "Failed to pull selection: %1$s" , result.getMessage ( ) ) ) ; } sync.close ( ) ; }

Target:
public void close ( ) { sync.close ( ) ; }
Source:
public static java.util.Locale getLocale ( android.content.Context context ) { if ( ( android.os.Build.VERSION.SDK_INT ) >= ( android.os.Build.VERSION_CODES.N ) ) { android.os.LocaleList localList = context.getResources ( ) . getConfiguration ( ) . getLocales ( ) ; if ( ! ( localList.isEmpty ( ) ) ) { return localList.get ( 0 ) ; } return java.util.Locale.getDefault ( ) ; } else { return context.getResources ( ) . getConfiguration ( ) . locale ; } }

Target:
public static java.util.Locale getLocale ( android.content.Context context ) { android.os.LocaleList localList = context.getResources ( ) . getConfiguration ( ) . getLocales ( ) ; if ( ! ( localList.isEmpty ( ) ) ) { return localList.get ( 0 ) ; } return java.util.Locale.getDefault ( ) ; }
Source:
public void testSendImsGmsTest ( ) throws java.lang.Exception { switchImsSmsFormat ( PhoneConstants.PHONE_TYPE_GSM ) ; mImsSmsDispatcher.sendText ( "111" , "222" , com.android.internal.telephony.TAG , null , null , null , null , false , ( - 1 ) , false , ( - 1 ) ) ; org.mockito.Mockito.verify ( mSimulatedCommandsVerifier ) . sendImsGsmSms ( org.mockito.Mockito.eq ( "038122f2" ) , org.mockito.Mockito.eq ( "0100038111f1000014c9f67cda9c12d37378983e4697e5d4f29c0e" ) , org.mockito.Mockito.eq ( 0 ) , org.mockito.Mockito.eq ( 0 ) , org.mockito.Matchers.any ( android.os.Message.class ) ) ; }

Target:
public void testSendImsGmsTest ( ) throws java.lang.Exception { switchImsSmsFormat ( PhoneConstants.PHONE_TYPE_GSM ) ; mImsSmsDispatcher.sendText ( "111" , "222" , com.android.internal.telephony.TAG , null , null , null , null , false ) ; org.mockito.Mockito.verify ( mSimulatedCommandsVerifier ) . sendImsGsmSms ( org.mockito.Mockito.eq ( "038122f2" ) , org.mockito.Mockito.eq ( "0100038111f1000014c9f67cda9c12d37378983e4697e5d4f29c0e" ) , org.mockito.Mockito.eq ( 0 ) , org.mockito.Mockito.eq ( 0 ) , org.mockito.Matchers.any ( android.os.Message.class ) ) ; }
Source:
public void testRunner_SuiteTest ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( ) ; runner.run ( ) ; expectedResults ( ) . forTestClass ( vogar.target.junit4.SimpleTest2.class ) . success ( "Simple3" ) . success ( "simple1" ) . success ( "simple2" ) . forTestClass ( vogar.target.junit4.SimpleTest3.class ) . success ( "simple" ) . completedNormally ( ) ; }

Target:
public void testRunner_SuiteTest ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( ) ; runner.run ( ) ; expectedResults ( ) . forTestClass ( vogar.target.junit4.SimpleTest3.class ) . success ( "simple" ) . forTestClass ( vogar.target.junit4.SimpleTest2.class ) . success ( "Simple3" ) . success ( "simple1" ) . success ( "simple2" ) . completedNormally ( ) ; }