auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void onLockedAllRecordsLoaded ( ) { mLockedRecordsLoadedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , null , null ) ) ; }

Target:
private void onLockedAllRecordsLoaded ( ) { if ( ( mLockedRecordsReqReason ) == ( LOCKED_RECORDS_REQ_REASON_LOCKED ) ) { mLockedRecordsLoadedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , null , null ) ) ; } else if ( ( mLockedRecordsReqReason ) == ( LOCKED_RECORDS_REQ_REASON_NETWORK_LOCKED ) ) { mNetworkLockedRecordsLoadedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , null , null ) ) ; } else { loge ( ( "onLockedAllRecordsLoaded: unexpected mLockedRecordsReqReason " + ( mLockedRecordsReqReason ) ) ) ; } }
Source:
private void handleTriggeringError ( java.util.Map < java.lang.String , com.google.gct.testing.ConfigurationResult > results , java.lang.String encodedConfigurationInstance , java.lang.String newProgress ) { reportNewProgress ( encodedConfigurationInstance , newProgress ) ; com.google.gct.testing.ConfigurationResult result = getOrCreateConfigurationResult ( encodedConfigurationInstance , results ) ; result.setTriggeringError ( true ) ; finishedConfigurationInstances.add ( encodedConfigurationInstance ) ; }

Target:
private void handleTriggeringError ( java.util.Map < java.lang.String , com.google.gct.testing.ConfigurationResult > results , java.lang.String encodedConfigurationInstance , java.lang.String errorMessage ) { reportNewProgress ( encodedConfigurationInstance , ( "Skipped triggering the test execution: " + errorMessage ) ) ; com.google.gct.testing.ConfigurationResult result = getOrCreateConfigurationResult ( encodedConfigurationInstance , results ) ; result.setTriggeringError ( true ) ; finishedConfigurationInstances.add ( encodedConfigurationInstance ) ; }
Source:
void setUp ( ) { status = READY ; delay ( ) ; }

Target:
void test ( ) { if ( ( status ) == ( READY ) ) { com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . requestListenerHints ( MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ; status = RETEST ; } else { int result = com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . getCurrentListenerHints ( ) ; if ( ( result & ( com.android.cts.verifier.notifications.MockListener.MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ) != 0 ) { status = PASS ; next ( ) ; } else { logFail ( ) ; status = FAIL ; } } }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( intent.getAction ( ) . equals ( Intent.ACTION_TIME_TICK ) ) { scheduleTimeTickEvent ( ) ; } else if ( intent.getAction ( ) . equals ( Intent.ACTION_DATE_CHANGED ) ) { java.util.TimeZone zone = java.util.TimeZone.getTimeZone ( android.os.SystemProperties.get ( com.android.server.AlarmManagerService.TIMEZONE_PROPERTY ) ) ; int gmtOffset = ( ( zone.getRawOffset ( ) ) + ( zone.getDSTSavings ( ) ) ) / 60000 ; setKernelTimezone ( mDescriptor , ( - gmtOffset ) ) ; scheduleDateChangedEvent ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( intent.getAction ( ) . equals ( Intent.ACTION_TIME_TICK ) ) { scheduleTimeTickEvent ( ) ; } else if ( intent.getAction ( ) . equals ( Intent.ACTION_DATE_CHANGED ) ) { java.util.TimeZone zone = java.util.TimeZone.getTimeZone ( android.os.SystemProperties.get ( com.android.server.AlarmManagerService.TIMEZONE_PROPERTY ) ) ; int gmtOffset = zone.getOffset ( java.lang.System.currentTimeMillis ( ) ) ; setKernelTimezone ( mDescriptor , ( - ( gmtOffset / 60000 ) ) ) ; scheduleDateChangedEvent ( ) ; } }
Source:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nAllocationRead1D ( long id , int off , int mip , int count , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationRead1D ( mContext , id , off , mip , count , d , sizeBytes , dt.mID ) ; }
Source:
public void tesUiccCartdInfoSanity ( ) { org.junit.Assert.assertEquals ( 0 , mUicccard.getNumApplications ( ) ) ; org.junit.Assert.assertNull ( mUicccard.getCardState ( ) ) ; org.junit.Assert.assertNull ( mUicccard.getUniversalPinState ( ) ) ; org.junit.Assert.assertNull ( mUicccard.getOperatorBrandOverride ( ) ) ; org.junit.Assert.assertTrue ( mUicccard.areCarrierPriviligeRulesLoaded ( ) ) ; for ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType mAppType : IccCardApplicationStatus.AppType.values ( ) ) { org.junit.Assert.assertFalse ( mUicccard.isApplicationOnIcc ( mAppType ) ) ; } }

Target:
public void tesUiccCartdInfoSanity ( ) { org.junit.Assert.assertEquals ( 0 , mUicccard.getNumApplications ( ) ) ; org.junit.Assert.assertEquals ( IccCardStatus.CardState.CARDSTATE_PRESENT , mUicccard.getCardState ( ) ) ; org.junit.Assert.assertNull ( mUicccard.getUniversalPinState ( ) ) ; org.junit.Assert.assertNull ( mUicccard.getOperatorBrandOverride ( ) ) ; org.junit.Assert.assertFalse ( mUicccard.areCarrierPriviligeRulesLoaded ( ) ) ; for ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType mAppType : IccCardApplicationStatus.AppType.values ( ) ) { org.junit.Assert.assertFalse ( mUicccard.isApplicationOnIcc ( mAppType ) ) ; } }
Source:
public void run ( ) { java.io.InputStreamReader is = new java.io.InputStreamReader ( process.getErrorStream ( ) ) ; java.io.BufferedReader errReader = new java.io.BufferedReader ( is ) ; try { while ( true ) { java.lang.String line = errReader.readLine ( ) ; if ( line != null ) { display ( "ADB Error: %1$s" , line ) ; errorOutput.add ( line ) ; } else { break ; } } } catch ( java.io.IOException e ) { } }

Target:
public void run ( ) { java.io.InputStreamReader is = new java.io.InputStreamReader ( process.getErrorStream ( ) ) ; java.io.BufferedReader errReader = new java.io.BufferedReader ( is ) ; try { while ( true ) { java.lang.String line = errReader.readLine ( ) ; if ( line != null ) { displayError ( "ADB Error: %1$s" , line ) ; errorOutput.add ( line ) ; } else { break ; } } } catch ( java.io.IOException e ) { } }
Source:
public java.util.Collection < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method , int parameterIndex ) { com.android.tools.lint.ExternalAnnotationRepository.MethodInfo m = findMethod ( method ) ; if ( m == null ) { return null ; } if ( ( m.parameterAnnotations ) != null ) { return m.parameterAnnotations.get ( parameterIndex ) ; } return null ; }

Target:
public java.util.Collection < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method , int parameterIndex ) { com.android.tools.lint.ExternalAnnotationRepository.MethodInfo m = findMethod ( method ) ; if ( m == null ) { return null ; } if ( ( m.getParameterAnnotations ( ) ) != null ) { return m.getParameterAnnotations ( ) . get ( parameterIndex ) ; } return null ; }
Source:
public < K , V > java.util.concurrent.ConcurrentMap < K , V > makeComputingMap ( com.google.common.base.Function < ? super K , ? extends V > computingFunction ) { return ( nullRemovalCause ) == null ? new com.google.common.collect.ComputingConcurrentHashMap.ComputingMapAdapter < K , V > ( this , computingFunction ) : new com.google.common.collect.MapMaker.NullComputingConcurrentMap < K , V > ( this , computingFunction ) ; }

Target:
< K , V > java.util.concurrent.ConcurrentMap < K , V > makeComputingMap ( com.google.common.base.Function < ? super K , ? extends V > computingFunction ) { return ( nullRemovalCause ) == null ? new com.google.common.collect.MapMaker.ComputingMapAdapter < K , V > ( this , computingFunction ) : new com.google.common.collect.MapMaker.NullComputingConcurrentMap < K , V > ( this , computingFunction ) ; }
Source:
protected synchronized void create ( ) throws java.net.SocketException { sun.net.ResourceManager.beforeUdpCreate ( ) ; fd = new java.io.FileDescriptor ( ) ; try { datagramSocketCreate ( ) ; } catch ( java.net.SocketException ioe ) { sun.net.ResourceManager.afterUdpClose ( ) ; fd = null ; throw ioe ; } }

Target:
protected synchronized void create ( ) throws java.net.SocketException { sun.net.ResourceManager.beforeUdpCreate ( ) ; fd = new java.io.FileDescriptor ( ) ; try { datagramSocketCreate ( ) ; } catch ( java.net.SocketException ioe ) { sun.net.ResourceManager.afterUdpClose ( ) ; fd = null ; throw ioe ; } if ( ( ( fd ) != null ) && ( fd.valid ( ) ) ) { guard.open ( "close" ) ; } }
Source:
public static void handleTrustStorageUpdate ( ) { try { javax.net.ssl.X509TrustManager x509TrustManager = com.android.org.conscrypt.SSLParametersImpl.getDefaultTrustManager ( ) ; if ( x509TrustManager instanceof com.android.org.conscrypt.TrustManagerImpl ) { com.android.org.conscrypt.TrustManagerImpl trustManager = ( ( com.android.org.conscrypt.TrustManagerImpl ) ( x509TrustManager ) ) ; trustManager.handleTrustStorageUpdate ( ) ; } } catch ( java.security.KeyManagementException ignored ) { } }

Target:
public static void handleTrustStorageUpdate ( ) { try { javax.net.ssl.X509TrustManager x509TrustManager = com.android.org.conscrypt.SSLParametersImpl.getDefaultX509TrustManager ( ) ; if ( x509TrustManager instanceof com.android.org.conscrypt.TrustManagerImpl ) { com.android.org.conscrypt.TrustManagerImpl trustManager = ( ( com.android.org.conscrypt.TrustManagerImpl ) ( x509TrustManager ) ) ; trustManager.handleTrustStorageUpdate ( ) ; } } catch ( java.security.KeyManagementException ignored ) { } }
Source:
public void setUp ( ) throws java.lang.Exception { com.android.server.wifi.ScanTestUtil.setupMockChannels ( mWifiNative , new int [ ] { 2400 , 2450 } , new int [ ] { 5150 , 5175 } , new int [ ] { 5600 , 5650 } ) ; mScanner = new com.android.server.wifi.scanner.HalWifiScannerImpl ( mContext , mWifiNative , mLooper.getLooper ( ) , mClock ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { com.android.server.wifi.ScanTestUtil.setupMockChannels ( mWifiNative , new int [ ] { 2400 , 2450 } , new int [ ] { 5150 , 5175 } , new int [ ] { 5600 , 5650 } ) ; mScanner = new com.android.server.wifi.scanner.HalWifiScannerImpl ( mContext , mWifiNative , mWifiMonitor , mLooper.getLooper ( ) , mClock ) ; }
Source:
public com.android.server.wifi.nan.WifiNanSessionState getNanSessionStateForPubSubId ( int pubSubId ) { for ( int i = 0 ; i < ( mSessions.size ( ) ) ; ++ i ) { com.android.server.wifi.nan.WifiNanSessionState session = mSessions.valueAt ( i ) ; if ( session.isPubSubIdSession ( pubSubId ) ) { return session ; } } return null ; }

Target:
public com.android.server.wifi.nan.WifiNanDiscoverySessionState getNanSessionStateForPubSubId ( int pubSubId ) { for ( int i = 0 ; i < ( mSessions.size ( ) ) ; ++ i ) { com.android.server.wifi.nan.WifiNanDiscoverySessionState session = mSessions.valueAt ( i ) ; if ( session.isPubSubIdSession ( pubSubId ) ) { return session ; } } return null ; }
Source:
public java.net.Socket createSocket ( ) throws java.io.IOException { org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl s = ( ( org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; return s ; }

Target:
public java.net.Socket createSocket ( ) throws java.io.IOException { org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl s = ( ( org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; return s ; }
Source:
void load ( java.lang.String pathName , java.lang.ClassLoader loader ) { if ( pathName == null ) { throw new java.lang.NullPointerException ( "pathName == null" ) ; } java.lang.String error = doLoad ( pathName , loader ) ; if ( error != null ) { throw new java.lang.UnsatisfiedLinkError ( error ) ; } }

Target:
void load ( java.lang.String absolutePath , java.lang.ClassLoader loader ) { if ( absolutePath == null ) { throw new java.lang.NullPointerException ( "absolutePath == null" ) ; } java.lang.String error = doLoad ( absolutePath , loader ) ; if ( error != null ) { throw new java.lang.UnsatisfiedLinkError ( error ) ; } }
Source:
public void executeInBackground ( final java.lang.Runnable task ) { executor.execute ( new java.lang.Runnable ( ) { public void run ( ) { java.lang.System.out.println ( "STARTING TASK" ) ; task.run ( ) ; java.lang.System.out.println ( "ENDING TASK" ) ; } } ) ; }

Target:
public void executeInBackground ( final java.lang.String taskName , final java.lang.Runnable task ) { executor.execute ( new java.lang.Runnable ( ) { public void run ( ) { com.android.hierarchyviewer.HierarchyViewerApplication.getApp ( ) . startTask ( taskName ) ; task.run ( ) ; com.android.hierarchyviewer.HierarchyViewerApplication.getApp ( ) . endTask ( ) ; } } ) ; }
Source:
public java.util.List < android.net.wifi.WifiConfiguration > getPrivilegedConfiguredNetworks ( ) { enforceReadCredentialPermission ( ) ; enforceAccessPermission ( ) ; mLog.trace ( "getPrivilegedConfiguredNetworks uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ( mWifiStateMachineChannel ) != null ) { return mWifiStateMachine.syncGetPrivilegedConfiguredNetwork ( mWifiStateMachineChannel ) ; } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; return null ; } }

Target:
public android.content.pm.ParceledListSlice < android.net.wifi.WifiConfiguration > getConfiguredNetworks ( ) { enforceAccessPermission ( ) ; mLog.trace ( "getConfiguredNetworks uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ( mWifiStateMachineChannel ) != null ) { java.util.List < android.net.wifi.WifiConfiguration > configs = mWifiStateMachine.syncGetConfiguredNetworks ( android.os.Binder.getCallingUid ( ) , mWifiStateMachineChannel ) ; if ( configs != null ) { return new android.content.pm.ParceledListSlice < android.net.wifi.WifiConfiguration > ( configs ) ; } } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; } return null ; }
Source:
public void testAesCbcHmacSha256Tcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha256Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 ) ; }
Source:
public static void close ( java.io.FileDescriptor fd ) throws java.io.IOException { try { if ( ( fd != null ) && ( fd.valid ( ) ) ) { Libcore.os.close ( fd ) ; } } catch ( libcore.io.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }

Target:
public static void close ( java.io.FileDescriptor fd ) throws java.io.IOException { try { if ( ( fd != null ) && ( fd.valid ( ) ) ) { Libcore.os.close ( fd ) ; } } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }
Source:
public static int fromKeymaster ( int algorithm ) { switch ( algorithm ) { case android.security.keymaster.KeymasterDefs.KM_ALGORITHM_AES : return android.security.KeyStoreKeyConstraints.Algorithm.AES ; case android.security.keymaster.KeymasterDefs.KM_ALGORITHM_HMAC : return android.security.KeyStoreKeyConstraints.Algorithm.HMAC ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown algorithm: " + algorithm ) ) ; } }

Target:
public static int fromKeymaster ( int algorithm ) { switch ( algorithm ) { case android.security.keymaster.KeymasterDefs.KM_ALGORITHM_AES : return android.security.KeyStoreKeyConstraints.Algorithm.AES ; case android.security.keymaster.KeymasterDefs.KM_ALGORITHM_HMAC : return android.security.KeyStoreKeyConstraints.Algorithm.HMAC ; case android.security.keymaster.KeymasterDefs.KM_ALGORITHM_RSA : return android.security.KeyStoreKeyConstraints.Algorithm.RSA ; case android.security.keymaster.KeymasterDefs.KM_ALGORITHM_ECDSA : return android.security.KeyStoreKeyConstraints.Algorithm.EC ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown algorithm: " + algorithm ) ) ; } }
Source:
public com.google.i18n.phonenumbers.Phonenumber.PhoneNumber getExampleNumberForType ( java.lang.String regionCode , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType type ) { if ( ! ( isValidRegionCode ( regionCode ) ) ) { com.google.i18n.phonenumbers.PhoneNumberUtil.logger.log ( java.util.logging.Level.WARNING , ( "Invalid or unknown region code provided: " + regionCode ) ) ; return null ; } com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc desc = getNumberDescByType ( getMetadataForRegion ( regionCode ) , type ) ; try { if ( desc.hasExampleNumber ( ) ) { return parse ( desc.getExampleNumber ( ) , regionCode ) ; } } catch ( com.google.i18n.phonenumbers.NumberParseException e ) { com.google.i18n.phonenumbers.PhoneNumberUtil.logger.log ( java.util.logging.Level.SEVERE , e.toString ( ) ) ; } return null ; }

Target:
public com.google.i18n.phonenumbers.Phonenumber.PhoneNumber getExampleNumberForType ( java.lang.String regionCode , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType type ) { if ( ! ( isValidRegionCode ( regionCode ) ) ) { com.google.i18n.phonenumbers.PhoneNumberUtil.logger.log ( java.util.logging.Level.WARNING , ( "Invalid or unknown region code provided: " + regionCode ) ) ; return null ; } com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneNumberDesc desc = getNumberDescByType ( getMetadataForRegion ( regionCode ) , type ) ; try { if ( ! ( desc.exampleNumber.equals ( "" ) ) ) { return parse ( desc.exampleNumber , regionCode ) ; } } catch ( com.google.i18n.phonenumbers.NumberParseException e ) { com.google.i18n.phonenumbers.PhoneNumberUtil.logger.log ( java.util.logging.Level.SEVERE , e.toString ( ) ) ; } return null ; }
Source:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { switch ( item.getItemId ( ) ) { case com.android.settings.vpn.VpnEditor.MENU_SAVE : if ( validateAndSetResult ( ) ) finish ( ) ; return true ; case com.android.settings.vpn.VpnEditor.MENU_CANCEL : if ( profileChanged ( ) ) { showCancellationConfirmDialog ( ) ; } else { finish ( ) ; } return true ; } return super . onOptionsItemSelected ( item ) ; }

Target:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { switch ( item.getItemId ( ) ) { case com.android.settings.vpn.VpnEditor.MENU_SAVE : if ( validateAndSetResult ( ) ) finish ( ) ; return true ; case com.android.settings.vpn.VpnEditor.MENU_CANCEL : if ( profileChanged ( ) ) { showDialog ( com.android.settings.vpn.VpnEditor.CONFIRM_DIALOG_ID ) ; } else { finish ( ) ; } return true ; } return super . onOptionsItemSelected ( item ) ; }
Source:
com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMapStorageStrategy getSmallerMapStorage ( java.util.SortedMap < java.lang.Integer , java.lang.String > phonePrefixMap ) { try { com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMapStorageStrategy flyweightMapStorage = createFlyweightMapStorage ( ) ; int sizeOfFlyweightMapStorage = com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMap.getSizeOfPhonePrefixMapStorage ( flyweightMapStorage , phonePrefixMap ) ; com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMapStorageStrategy defaultMapStorage = createDefaultMapStorage ( ) ; int sizeOfDefaultMapStorage = com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMap.getSizeOfPhonePrefixMapStorage ( defaultMapStorage , phonePrefixMap ) ; return sizeOfFlyweightMapStorage < sizeOfDefaultMapStorage ? flyweightMapStorage : defaultMapStorage ; } catch ( java.io.IOException e ) { com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMap.LOGGER.severe ( e.getMessage ( ) ) ; return createFlyweightMapStorage ( ) ; } }

Target:
com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMapStorageStrategy getSmallerMapStorage ( java.util.SortedMap < java.lang.Integer , java.lang.String > phonePrefixMap ) { try { com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMapStorageStrategy flyweightMapStorage = createFlyweightMapStorage ( ) ; int sizeOfFlyweightMapStorage = com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMap.getSizeOfPhonePrefixMapStorage ( flyweightMapStorage , phonePrefixMap ) ; com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMapStorageStrategy defaultMapStorage = createDefaultMapStorage ( ) ; int sizeOfDefaultMapStorage = com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMap.getSizeOfPhonePrefixMapStorage ( defaultMapStorage , phonePrefixMap ) ; return sizeOfFlyweightMapStorage < sizeOfDefaultMapStorage ? flyweightMapStorage : defaultMapStorage ; } catch ( java.io.IOException e ) { com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMap.logger.severe ( e.getMessage ( ) ) ; return createFlyweightMapStorage ( ) ; } }
Source:
public void testSocket_BasicStatusBeforeConnect ( ) throws java.net.SocketException { assertFalse ( this . channel1.isConnected ( ) ) ; java.net.DatagramSocket s1 = this . channel1.socket ( ) ; assertSocketBeforeConnect ( s1 ) ; java.net.DatagramSocket s2 = this . channel1.socket ( ) ; assertSame ( s1 , s2 ) ; }

Target:
public void testSocket_BasicStatusBeforeConnect ( ) throws java.lang.Exception { final java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; assertFalse ( dc.isConnected ( ) ) ; java.net.DatagramSocket s1 = dc.socket ( ) ; assertSocketBeforeConnect ( s1 ) ; java.net.DatagramSocket s2 = dc.socket ( ) ; assertSame ( s1 , s2 ) ; }
Source:
private boolean requireKeyStore ( android.net.wifi.WifiConfiguration config ) { if ( ( com.android.settings.wifi.WifiConfigController.requireKeyStore ( config ) ) && ( ( android.security.KeyStore.getInstance ( ) . state ( ) ) != ( KeyStore.State.UNLOCKED ) ) ) { mKeyStoreNetworkId = config.networkId ; android.security.Credentials.getInstance ( ) . unlock ( getActivity ( ) ) ; return true ; } return false ; }

Target:
private boolean requireKeyStore ( android.net.wifi.WifiConfiguration config ) { if ( ( com.android.settings.wifi.WifiConfigController.requireKeyStore ( config ) ) && ( ! ( android.security.KeyStore.getInstance ( ) . isUnlocked ( ) ) ) ) { mKeyStoreNetworkId = config.networkId ; android.security.Credentials.getInstance ( ) . unlock ( getActivity ( ) ) ; return true ; } return false ; }
Source:
private static org.apache.harmony.security.x509.SubjectKeyIdentifier getSubjectKeyIdentifier ( java.security.cert.X509Certificate cert ) { final byte [ ] skidBytes = cert.getExtensionValue ( "2.5.29.14" ) ; if ( skidBytes == null ) { return null ; } try { return org.apache.harmony.security.x509.SubjectKeyIdentifier.decode ( skidBytes ) ; } catch ( java.io.IOException e ) { return null ; } }

Target:
private static org.conscrypt.OpenSSLX509Certificate convertToOpenSSLIfNeeded ( java.security.cert.X509Certificate cert ) throws java.security.cert.CertificateException { if ( cert == null ) { return null ; } if ( cert instanceof org.conscrypt.OpenSSLX509Certificate ) { return ( ( org.conscrypt.OpenSSLX509Certificate ) ( cert ) ) ; } try { return org.conscrypt.OpenSSLX509Certificate.fromX509Der ( cert.getEncoded ( ) ) ; } catch ( java.lang.Exception e ) { throw new java.security.cert.CertificateException ( e ) ; } }
Source:
public void setActivePasswordState ( int quality , int length , int letters , int uppercase , int lowercase , int numbers , int symbols , int nonletter , int userHandle ) { if ( ( mService ) != null ) { try { mService.setActivePasswordState ( quality , length , letters , uppercase , lowercase , numbers , symbols , nonletter , userHandle ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }

Target:
public java.util.List < java.lang.String > getDelegatePackages ( @ android.annotation.NonNull android.content.ComponentName admin , @ android.annotation.NonNull java.lang.String delegationScope ) { throwIfParentInstance ( "getDelegatePackages" ) ; if ( ( mService ) != null ) { try { return mService.getDelegatePackages ( admin , delegationScope ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return null ; }
Source:
public java.lang.String getVoiceMailNumber ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; java.lang.String number = ( r != null ) ? r.getVoiceMailNumber ( ) : "" ; if ( android.text.TextUtils.isEmpty ( number ) ) { android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( getContext ( ) ) ; number = sp.getString ( com.android.internal.telephony.gsm.GSMPhone.VM_NUMBER , null ) ; } return number ; }

Target:
public java.lang.String getVoiceMailNumber ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; java.lang.String number = ( r != null ) ? r.getVoiceMailNumber ( ) : "" ; if ( android.text.TextUtils.isEmpty ( number ) ) { android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( getContext ( ) ) ; number = sp.getString ( com.android.internal.telephony.gsm.GSMPhone.VM_NUMBER , null ) ; } return number ; }
Source:
public static double getJitterMean ( android.hardware.cts.helpers.TestSensorEvent [ ] events , java.util.Collection < java.lang.Double > jitterValues ) { java.util.ArrayList < java.lang.Long > timestampDelayValues = new java.util.ArrayList < java.lang.Long > ( ) ; double averageTimestampDelay = android.hardware.cts.helpers.SensorCtsHelper.getAverageTimestampDelayWithValues ( events , timestampDelayValues ) ; for ( long frequency : timestampDelayValues ) { jitterValues.add ( java.lang.Math.abs ( ( averageTimestampDelay - frequency ) ) ) ; } double jitterMean = android.hardware.cts.helpers.SensorCtsHelper.getMean ( timestampDelayValues ) ; return jitterMean ; }

Target:
public static java.util.List < android.hardware.Sensor > getSensors ( android.content.Context context , int sensorType ) { android.hardware.SensorManager sensorManager = android.hardware.cts.helpers.SensorCtsHelper.getSensorManager ( context ) ; java.util.List < android.hardware.Sensor > sensors = sensorManager.getSensorList ( sensorType ) ; if ( ( sensors.size ( ) ) == 0 ) { throw new android.hardware.cts.helpers.SensorNotSupportedException ( sensorType ) ; } return sensors ; }
Source:
private static float calculateMaxDistance ( android.view.View sceneRoot , int focalX , int focalY ) { int maxX = java.lang.Math.max ( focalX , ( ( sceneRoot.getWidth ( ) ) - focalX ) ) ; int maxY = java.lang.Math.max ( focalY , ( ( sceneRoot.getHeight ( ) ) - focalY ) ) ; return android.transition.Explode.calculateDistance ( maxX , maxY ) ; }

Target:
private static double calculateMaxDistance ( android.view.View sceneRoot , int focalX , int focalY ) { int maxX = java.lang.Math.max ( focalX , ( ( sceneRoot.getWidth ( ) ) - focalX ) ) ; int maxY = java.lang.Math.max ( focalY , ( ( sceneRoot.getHeight ( ) ) - focalY ) ) ; return java.lang.Math.hypot ( maxX , maxY ) ; }
Source:
final void get ( short [ ] dst , int dstOffset , int shortCount ) { int byteCount = checkGetBounds ( SizeOf.SHORT , dst.length , dstOffset , shortCount ) ; this . block.peekShortArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , shortCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void get ( short [ ] dst , int dstOffset , int shortCount ) { checkNotFreed ( ) ; int byteCount = checkGetBounds ( SizeOf.SHORT , dst.length , dstOffset , shortCount ) ; this . block.peekShortArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , shortCount , order.needsSwap ) ; position += byteCount ; }
Source:
private void reportConnectionAttemptStart ( android.net.wifi.WifiConfiguration config , java.lang.String targetBSSID , int roamType ) { mWifiMetrics.startConnectionEvent ( config , targetBSSID , roamType ) ; mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_STARTED ) ; }

Target:
private void reportConnectionAttemptStart ( android.net.wifi.WifiConfiguration config , java.lang.String targetBSSID , int roamType ) { mWifiMetrics.startConnectionEvent ( config , targetBSSID , roamType ) ; mDiagsConnectionStartMillis = mClock.getElapsedSinceBootMillis ( ) ; mWifiDiagnostics.reportConnectionEvent ( mDiagsConnectionStartMillis , WifiDiagnostics.CONNECTION_EVENT_STARTED ) ; sendMessageDelayed ( com.android.server.wifi.WifiStateMachine.CMD_DIAGS_CONNECT_TIMEOUT , mDiagsConnectionStartMillis , com.android.server.wifi.WifiStateMachine.DIAGS_CONNECT_TIMEOUT_MILLIS ) ; }
Source:
private void buildEnterpriseConfigForSimCredential ( android.net.wifi.WifiEnterpriseConfig config , android.net.wifi.hotspot2.pps.Credential.SimCredential credential ) { int eapMethod = WifiEnterpriseConfig.Eap.NONE ; switch ( credential.eapType ) { case android.net.wifi.EAPConstants.EAP_SIM : eapMethod = WifiEnterpriseConfig.Eap.SIM ; break ; case android.net.wifi.EAPConstants.EAP_AKA : eapMethod = WifiEnterpriseConfig.Eap.AKA ; break ; case android.net.wifi.EAPConstants.EAP_AKA_PRIME : eapMethod = WifiEnterpriseConfig.Eap.AKA_PRIME ; break ; default : android.util.Log.wtf ( com.android.server.wifi.hotspot2.PasspointProvider.TAG , ( "Unsupported EAP Method: " + ( credential.eapType ) ) ) ; break ; } config.setEapMethod ( eapMethod ) ; config.setPlmn ( credential.imsi ) ; }

Target:
private void buildEnterpriseConfigForSimCredential ( android.net.wifi.WifiEnterpriseConfig config , android.net.wifi.hotspot2.pps.Credential.SimCredential credential ) { int eapMethod = WifiEnterpriseConfig.Eap.NONE ; switch ( credential.getEapType ( ) ) { case android.net.wifi.EAPConstants.EAP_SIM : eapMethod = WifiEnterpriseConfig.Eap.SIM ; break ; case android.net.wifi.EAPConstants.EAP_AKA : eapMethod = WifiEnterpriseConfig.Eap.AKA ; break ; case android.net.wifi.EAPConstants.EAP_AKA_PRIME : eapMethod = WifiEnterpriseConfig.Eap.AKA_PRIME ; break ; default : android.util.Log.wtf ( com.android.server.wifi.hotspot2.PasspointProvider.TAG , ( "Unsupported EAP Method: " + ( credential.getEapType ( ) ) ) ) ; break ; } config.setEapMethod ( eapMethod ) ; config.setPlmn ( credential.getImsi ( ) ) ; }
Source:
public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_BUILD_TOOLS ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newBuildTool ( @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_BUILD_TOOLS ) ; p.mFullRevision = revision ; p.mCustomIsUpdateFor = new com.android.sdklib.repository.descriptors.PkgDesc.IIsUpdateFor ( ) { @ java.lang.Override public boolean isUpdateFor ( com.android.sdklib.repository.descriptors.PkgDesc thisPkgDesc , com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { return ( thisPkgDesc.isGenericUpdateFor ( existingDesc ) ) && ( ( thisPkgDesc.getFullRevision ( ) . compareTo ( existingDesc.getFullRevision ( ) , PreviewComparison.COMPARE_TYPE ) ) == 0 ) ; } } ; return p ; }
Source:
public void tearDown ( ) throws java.lang.Exception { int i = 0 ; while ( ( mGsmInboundSmsHandler.getWakeLock ( ) . isHeld ( ) ) && ( i < 100 ) ) { com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; i ++ ; } org.junit.Assert.assertFalse ( mGsmInboundSmsHandler.getWakeLock ( ) . isHeld ( ) ) ; mGsmInboundSmsHandler = null ; mContentProvider.shutdown ( ) ; mGsmInboundSmsHandlerTestHandler.quitSafely ( ) ; super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { int i = 0 ; while ( ( mGsmInboundSmsHandler.getWakeLock ( ) . isHeld ( ) ) && ( i < 100 ) ) { com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; i ++ ; } org.junit.Assert.assertFalse ( mGsmInboundSmsHandler.getWakeLock ( ) . isHeld ( ) ) ; mGsmInboundSmsHandler = null ; mContentProvider.shutdown ( ) ; mGsmInboundSmsHandlerTestHandler.quit ( ) ; super . tearDown ( ) ; }
Source:
public void testSoftApDisabledWhenActive ( ) throws java.lang.Exception { enterSoftApActiveMode ( ) ; mSoftApListener.onStateChanged ( WifiManager.WIFI_AP_STATE_FAILED , 0 ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; verify ( mSoftApManager ) . stop ( ) ; }

Target:
public void testEnterSoftApModeActiveWhenAlreadyInSoftApMode ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( mWificond ) ; when ( mWificond.createApInterface ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( null ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachinePrimeTest.SOFT_AP_MODE_STATE_STRING , mWifiStateMachinePrime.getCurrentMode ( ) ) ; enterSoftApActiveMode ( ) ; }
Source:
private void adjustOtherSinkPriorities ( com.android.bluetooth.a2dp.A2dpService a2dpService , android.bluetooth.BluetoothDevice connectedDevice ) { for ( android.bluetooth.BluetoothDevice device : mAdapterService.getBondedDevices ( ) ) { if ( ( ( a2dpService.getPriority ( device ) ) >= ( android.bluetooth.BluetoothProfile.PRIORITY_AUTO_CONNECT ) ) && ( ! ( device.equals ( connectedDevice ) ) ) ) { a2dpService.setPriority ( device , BluetoothProfile.PRIORITY_ON ) ; } } }

Target:
private void adjustOtherSinkPriorities ( com.android.bluetooth.a2dp.A2dpService a2dpService , java.util.List < android.bluetooth.BluetoothDevice > connectedDeviceList ) { for ( android.bluetooth.BluetoothDevice device : mAdapterService.getBondedDevices ( ) ) { if ( ( ( a2dpService.getPriority ( device ) ) >= ( android.bluetooth.BluetoothProfile.PRIORITY_AUTO_CONNECT ) ) && ( ! ( connectedDeviceList.contains ( device ) ) ) ) { com.android.bluetooth.btservice.PhonePolicy.debugLog ( ( ( "adjustOtherSinkPriorities, device " + device ) + " PRIORITY_ON" ) ) ; a2dpService.setPriority ( device , BluetoothProfile.PRIORITY_ON ) ; } } }
Source:
private int regCodeToServiceState ( int code ) { switch ( code ) { case 0 : case 2 : case 3 : case 4 : case 10 : case 12 : case 13 : case 14 : return android.telephony.ServiceState.STATE_OUT_OF_SERVICE ; case 1 : case 5 : return android.telephony.ServiceState.STATE_IN_SERVICE ; default : loge ( ( "regCodeToServiceState: unexpected service state " + code ) ) ; return android.telephony.ServiceState.STATE_OUT_OF_SERVICE ; } }

Target:
private int getRegStateFromHalRegState ( int regState ) { switch ( regState ) { case android.hardware.radio.V1_0.RegState.NOT_REG_MT_NOT_SEARCHING_OP : return android.telephony.ServiceState.RIL_REG_STATE_NOT_REG ; case android.hardware.radio.V1_0.RegState.REG_HOME : return android.telephony.ServiceState.RIL_REG_STATE_HOME ; case android.hardware.radio.V1_0.RegState.NOT_REG_MT_SEARCHING_OP : return android.telephony.ServiceState.RIL_REG_STATE_SEARCHING ; case android.hardware.radio.V1_0.RegState.REG_DENIED : return android.telephony.ServiceState.RIL_REG_STATE_DENIED ; case android.hardware.radio.V1_0.RegState.UNKNOWN : return android.telephony.ServiceState.RIL_REG_STATE_UNKNOWN ; case android.hardware.radio.V1_0.RegState.REG_ROAMING : return android.telephony.ServiceState.RIL_REG_STATE_ROAMING ; case android.hardware.radio.V1_0.RegState.NOT_REG_MT_NOT_SEARCHING_OP_EM : return android.telephony.ServiceState.RIL_REG_STATE_NOT_REG_EMERGENCY_CALL_ENABLED ; case android.hardware.radio.V1_0.RegState.NOT_REG_MT_SEARCHING_OP_EM : return android.telephony.ServiceState.RIL_REG_STATE_SEARCHING_EMERGENCY_CALL_ENABLED ; case android.hardware.radio.V1_0.RegState.REG_DENIED_EM : return android.telephony.ServiceState.RIL_REG_STATE_DENIED_EMERGENCY_CALL_ENABLED ; case android.hardware.radio.V1_0.RegState.UNKNOWN_EM : return android.telephony.ServiceState.RIL_REG_STATE_UNKNOWN_EMERGENCY_CALL_ENABLED ; default : return android.telephony.ServiceState.REGISTRATION_STATE_NOT_REGISTERED_AND_NOT_SEARCHING ; } }
Source:
public void test_SSLSocketFactory_getSupportedCipherSuites ( ) { javax.net.ssl.SSLSocketFactory sf = ( ( javax.net.ssl.SSLSocketFactory ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) ) ) ; java.lang.String [ ] cipherSuites = sf.getSupportedCipherSuites ( ) ; libcore.java.security.StandardNames.assertSupportedCipherSuites ( cipherSuites ) ; assertNotSame ( cipherSuites , sf.getSupportedCipherSuites ( ) ) ; }

Target:
public void test_SSLSocketFactory_getSupportedCipherSuitesReturnsCopies ( ) { javax.net.ssl.SSLSocketFactory sf = ( ( javax.net.ssl.SSLSocketFactory ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) ) ) ; assertNotSame ( sf.getSupportedCipherSuites ( ) , sf.getSupportedCipherSuites ( ) ) ; }
Source:
protected void sendSubmitPdu ( com.android.internal.telephony.cdma.SmsTracker tracker ) { if ( android.os.SystemProperties.getBoolean ( TelephonyProperties.PROPERTY_INECM_MODE , false ) ) { if ( com.android.internal.telephony.cdma.CdmaSMSDispatcher.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CdmaSMSDispatcher.TAG , "Block SMS in Emergency Callback mode" ) ; } tracker.onFailed ( mContext , SmsManager.RESULT_ERROR_NO_SERVICE , 0 ) ; return ; } sendRawPdu ( tracker ) ; }

Target:
protected void sendSubmitPdu ( com.android.internal.telephony.cdma.SmsTracker tracker ) { if ( mPhone.isInEcm ( ) ) { if ( com.android.internal.telephony.cdma.CdmaSMSDispatcher.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CdmaSMSDispatcher.TAG , "Block SMS in Emergency Callback mode" ) ; } tracker.onFailed ( mContext , SmsManager.RESULT_ERROR_NO_SERVICE , 0 ) ; return ; } sendRawPdu ( tracker ) ; }
Source:
public void test_enableDisable ( ) { android.bluetooth.BluetoothAdapter adapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; for ( int i = 0 ; i < 5 ; i ++ ) { disable ( adapter ) ; enable ( adapter ) ; } }

Target:
public void test_enableDisable ( ) { if ( ! ( mHasBluetooth ) ) { return ; } android.bluetooth.BluetoothAdapter adapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; for ( int i = 0 ; i < 5 ; i ++ ) { disable ( adapter ) ; enable ( adapter ) ; } }
Source:
public void testConstructor ( ) { android.telephony.CellIdentityCdma ci = new android.telephony.CellIdentityCdma ( com.android.internal.telephony.CellIdentityCdmaTest.NETWORK_ID , com.android.internal.telephony.CellIdentityCdmaTest.SYSTEM_ID , com.android.internal.telephony.CellIdentityCdmaTest.BASESTATION_ID , com.android.internal.telephony.CellIdentityCdmaTest.LONGITUDE , com.android.internal.telephony.CellIdentityCdmaTest.LATITUDE , com.android.internal.telephony.CellIdentityCdmaTest.ALPHA_LONG , com.android.internal.telephony.CellIdentityCdmaTest.ALPHA_SHORT ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.CellIdentityCdmaTest.NETWORK_ID , ci.getNetworkId ( ) ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.CellIdentityCdmaTest.LATITUDE , ci.getLatitude ( ) ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.CellIdentityCdmaTest.ALPHA_LONG , ci.getOperatorAlphaLong ( ) ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.CellIdentityCdmaTest.ALPHA_SHORT , ci.getOperatorAlphaShort ( ) ) ; }

Target:
public void testConstructor ( ) { android.telephony.CellIdentityCdma ci = new android.telephony.CellIdentityCdma ( com.android.internal.telephony.CellIdentityCdmaTest.NETWORK_ID , com.android.internal.telephony.CellIdentityCdmaTest.SYSTEM_ID , com.android.internal.telephony.CellIdentityCdmaTest.BASESTATION_ID , com.android.internal.telephony.CellIdentityCdmaTest.LONGITUDE , com.android.internal.telephony.CellIdentityCdmaTest.LATITUDE , com.android.internal.telephony.CellIdentityCdmaTest.ALPHA_LONG , com.android.internal.telephony.CellIdentityCdmaTest.ALPHA_SHORT ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.CellIdentityCdmaTest.NETWORK_ID , ci.getNetworkId ( ) ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.CellIdentityCdmaTest.LATITUDE , ci.getLatitude ( ) ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.CellIdentityCdmaTest.LONGITUDE , ci.getLongitude ( ) ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.CellIdentityCdmaTest.ALPHA_LONG , ci.getOperatorAlphaLong ( ) ) ; org.junit.Assert.assertEquals ( com.android.internal.telephony.CellIdentityCdmaTest.ALPHA_SHORT , ci.getOperatorAlphaShort ( ) ) ; }
Source:
protected void engineInit ( int opmode , java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { try { engineInitInternal ( opmode , key , null , random ) ; } catch ( java.security.InvalidAlgorithmParameterException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
protected void engineInit ( int opmode , java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { checkAndSetEncodedKey ( opmode , key ) ; try { engineInitInternal ( this . encodedKey , null , random ) ; } catch ( java.security.InvalidAlgorithmParameterException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
private void openSession ( com.intellij.openapi.wm.ToolWindow terminal , org.jetbrains.plugins.terminal.AbstractTerminalRunner terminalRunner ) { if ( ( myTerminalWidget ) == null ) { myTerminalWidget = terminalRunner.createTerminalWidget ( ) ; terminal.getContentManager ( ) . removeAllContents ( true ) ; final com.intellij.ui.content.Content content = createToolWindowContentPanel ( null , myTerminalWidget ) ; terminal.getContentManager ( ) . addContent ( content ) ; } else { terminalRunner.openSession ( myTerminalWidget ) ; } terminal.activate ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { } } , true ) ; }

Target:
private void openSession ( com.intellij.openapi.wm.ToolWindow toolWindow , org.jetbrains.plugins.terminal.AbstractTerminalRunner terminalRunner ) { if ( ( myTerminalWidget ) == null ) { myTerminalWidget = terminalRunner.createTerminalWidget ( ) ; toolWindow.getContentManager ( ) . removeAllContents ( true ) ; final com.intellij.ui.content.Content content = createToolWindowContentPanel ( null , myTerminalWidget , toolWindow ) ; toolWindow.getContentManager ( ) . addContent ( content ) ; } else { terminalRunner.openSession ( myTerminalWidget ) ; } toolWindow.activate ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { } } , true ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { mTelephonyManager = ( ( android.telephony.TelephonyManager ) ( android.telephony.cts.TelephonyManagerTest.getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; android.telephony.cts.TelephonyManagerTest.mCm = ( ( android.net.ConnectivityManager ) ( android.telephony.cts.TelephonyManagerTest.getContext ( ) . getSystemService ( Context.CONNECTIVITY_SERVICE ) ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mTelephonyManager = ( ( android.telephony.TelephonyManager ) ( android.telephony.cts.TelephonyManagerTest.getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; android.telephony.cts.TelephonyManagerTest.mCm = ( ( android.net.ConnectivityManager ) ( android.telephony.cts.TelephonyManagerTest.getContext ( ) . getSystemService ( Context.CONNECTIVITY_SERVICE ) ) ) ; mPackageManager = android.telephony.cts.TelephonyManagerTest.getContext ( ) . getPackageManager ( ) ; }
Source:
private static final int accumulateNotificationInfo ( java.util.SortedSet set , com.android.mms.transaction.MessagingNotification.MmsSmsNotificationInfo info ) { if ( info != null ) { set.add ( info ) ; return info.mCount ; } return 0 ; }

Target:
private static void playInConversationNotificationSound ( android.content.Context context ) { android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( context ) ; java.lang.String ringtoneStr = sp.getString ( MessagingPreferenceActivity.NOTIFICATION_RINGTONE , null ) ; if ( android.text.TextUtils.isEmpty ( ringtoneStr ) ) { return ; } android.net.Uri ringtoneUri = android.net.Uri.parse ( ringtoneStr ) ; com.android.mms.transaction.NotificationPlayer player = new com.android.mms.transaction.NotificationPlayer ( com.android.mms.LogTag.APP ) ; player.play ( context , ringtoneUri , false , AudioManager.STREAM_NOTIFICATION , com.android.mms.transaction.MessagingNotification.IN_CONVERSATION_NOTIFICATION_VOLUME ) ; }
Source:
public void moveTaskToFront ( int taskId , int flags , android.os.Bundle options ) { enforceCallingPermission ( android.Manifest.permission.REORDER_TASKS , "moveTaskToFront()" ) ; if ( DEBUG_STACK ) android.util.Slog.d ( com.android.server.am.ActivityManagerService.TAG_STACK , ( "moveTaskToFront: moving taskId=" + taskId ) ) ; synchronized ( this ) { moveTaskToFrontLocked ( taskId , flags , options ) ; } }

Target:
public void moveTaskToFront ( int taskId , int flags , android.os.Bundle bOptions ) { enforceCallingPermission ( android.Manifest.permission.REORDER_TASKS , "moveTaskToFront()" ) ; if ( com.android.server.am.ActivityManagerDebugConfig.DEBUG_STACK ) android.util.Slog.d ( com.android.server.am.ActivityManagerService.TAG_STACK , ( "moveTaskToFront: moving taskId=" + taskId ) ) ; synchronized ( this ) { moveTaskToFrontLocked ( taskId , flags , bOptions ) ; } }
Source:
private void setIpAddressStatus ( ) { android.preference.Preference ipAddressPref = findPreference ( com.android.settings.deviceinfo.Status.KEY_IP_ADDRESS ) ; java.lang.String ipAddress = com.android.settings.Utils.getDefaultIpAddresses ( this ) ; if ( ipAddress != null ) { ipAddressPref.setSummary ( ipAddress ) ; } else { ipAddressPref.setSummary ( getString ( R.string.status_unavailable ) ) ; } }

Target:
private void setIpAddressStatus ( ) { java.lang.String ipAddress = com.android.settings.Utils.getDefaultIpAddresses ( this . mCM ) ; if ( ipAddress != null ) { mIpAddress.setSummary ( ipAddress ) ; } else { mIpAddress.setSummary ( mUnavailable ) ; } }
Source:
public boolean pageUp ( final boolean top ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return pageUp ( top ) ; } } ) ; return ret ; } return mAwContents.pageUp ( top ) ; }

Target:
public void goBackOrForward ( final int steps ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { goBackOrForward ( steps ) ; } } ) ; return ; } mAwContents.goBackOrForward ( steps ) ; }
Source:
private void seekToInternal ( long positionUs ) { mMonitor.reset ( com.android.tv.tuner.exoplayer.ac3.Ac3PassthroughTrackRenderer.MONITOR_DURATION_MS ) ; mSourceStateReady = false ; mInputStreamEnded = false ; mOutputStreamEnded = false ; mPresentationTimeUs = positionUs ; mPresentationCount = 0 ; mPreviousPositionUs = 0 ; mCurrentPositionUs = java.lang.Long.MIN_VALUE ; mInterpolatedTimeUs = java.lang.Long.MIN_VALUE ; mAudioClock.setPositionUs ( positionUs ) ; }

Target:
private void seekToInternal ( long positionUs ) { mMonitor.reset ( com.android.tv.tuner.exoplayer.ac3.Ac3DefaultTrackRenderer.MONITOR_DURATION_MS ) ; mSourceStateReady = false ; mInputStreamEnded = false ; mOutputStreamEnded = false ; mPresentationTimeUs = positionUs ; mPresentationCount = 0 ; mPreviousPositionUs = 0 ; mCurrentPositionUs = java.lang.Long.MIN_VALUE ; mInterpolatedTimeUs = java.lang.Long.MIN_VALUE ; mAudioClock.setPositionUs ( positionUs ) ; }