auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void moveTaskToBack ( int task ) { enforceCallingPermission ( android.Manifest.permission.REORDER_TASKS , "moveTaskToBack()" ) ; synchronized ( this ) { final long origId = android.os.Binder.clearCallingIdentity ( ) ; moveTaskToBackLocked ( task ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; } }

Target:
public void moveTaskToBack ( int task ) { enforceCallingPermission ( android.Manifest.permission.REORDER_TASKS , "moveTaskToBack()" ) ; synchronized ( this ) { if ( ( ( mResumedActivity ) != null ) && ( ( mResumedActivity.task.taskId ) == task ) ) { if ( ! ( checkAppSwitchAllowedLocked ( android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , "Task to back" ) ) ) { return ; } } final long origId = android.os.Binder.clearCallingIdentity ( ) ; moveTaskToBackLocked ( task ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; } }
Source:
protected java.awt.Color getArrowButtonFillColor ( java.awt.Color defaultColor ) { final java.awt.Color color = ( myComboBox.hasFocus ( ) ) ? javax.swing.UIManager.getColor ( "ComboBox.darcula.arrowFocusedFillColor" ) : javax.swing.UIManager.getColor ( "ComboBox.darcula.arrowFillColor" ) ; return color == null ? defaultColor : ( ( comboBox ) != null ) && ( ! ( comboBox.isEnabled ( ) ) ) ? com.intellij.util.ui.UIUtil.getControlColor ( ) : color ; }

Target:
protected java.awt.Color getArrowButtonFillColor ( java.awt.Color defaultColor ) { final java.awt.Color color = ( myComboBox.hasFocus ( ) ) ? javax.swing.UIManager.getColor ( "ComboBox.darcula.arrowFocusedFillColor" ) : javax.swing.UIManager.getColor ( "ComboBox.darcula.arrowFillColor" ) ; return color == null ? defaultColor : ( ( comboBox ) != null ) && ( ! ( comboBox.isEnabled ( ) ) ) ? new com.intellij.ui.JBColor ( getBorderColor ( ) , com.intellij.util.ui.UIUtil.getControlColor ( ) ) : color ; }
Source:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object obj ) { if ( obj == ( this ) ) { return true ; } else if ( obj instanceof com.google.common.collect.Table ) { com.google.common.collect.Table < ? , ? , ? > that = ( ( com.google.common.collect.Table < ? , ? , ? > ) ( obj ) ) ; return this . cellSet ( ) . equals ( that.cellSet ( ) ) ; } else { return false ; } }

Target:
final java.util.Iterator < V > valuesIterator ( ) { throw new java.lang.AssertionError ( "should never be called" ) ; }
Source:
private static void doFollowReferencesTestNonRoot ( java.util.ArrayList < java.lang.Object > tmpStorage ) { Main.A a = Main.createTree ( ) ; tmpStorage.add ( a ) ; Main.doFollowReferencesTestImpl ( null , java.lang.Integer.MAX_VALUE , ( - 1 ) , null ) ; Main.doFollowReferencesTestImpl ( a , java.lang.Integer.MAX_VALUE , ( - 1 ) , null ) ; tmpStorage.clear ( ) ; }

Target:
private static void doFollowReferencesTestNonRoot ( java.util.ArrayList < java.lang.Object > tmpStorage ) { Main.Verifier v = new Main.Verifier ( ) ; Main.tagClasses ( v ) ; Main.A a = Main.createTree ( v ) ; tmpStorage.add ( a ) ; v.add ( "0@0" , "1@1000" ) ; Main.doFollowReferencesTestImpl ( null , java.lang.Integer.MAX_VALUE , ( - 1 ) , null , v , null ) ; Main.doFollowReferencesTestImpl ( a.foo , java.lang.Integer.MAX_VALUE , ( - 1 ) , null , v , "2@1000" ) ; tmpStorage.clear ( ) ; }
Source:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile , java.lang.String [ ] args ) { if ( com.google.caliper.SimpleBenchmark.class . isAssignableFrom ( klass ) ) { return new vogar.target.CaliperRunner ( monitor , profile , klass , args ) ; } else { return null ; } }

Target:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile , java.lang.String [ ] args ) { if ( benchmarkClassChecker.isBenchmark ( klass ) ) { return new vogar.target.CaliperRunner ( monitor , profile , klass , args ) ; } else { return null ; } }
Source:
public void onMultipartyStateChanged ( com.android.ims.ImsCall imsCall , boolean isMultiParty ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onMultipartyStateChanged to " + ( isMultiParty ? "Y" : "N" ) ) ) ; com.android.internal.telephony.imsphone.ImsPhoneConnection conn = findConnection ( imsCall ) ; if ( conn != null ) { conn.updateMultipartyState ( isMultiParty ) ; } }

Target:
public void onCallStartFailed ( com.android.ims.ImsCall imsCall , android.telephony.ims.ImsReasonInfo reasonInfo ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "mImsUssdListener onCallStartFailed reasonCode=" + ( reasonInfo.getCode ( ) ) ) ) ; onCallTerminated ( imsCall , reasonInfo ) ; }
Source:
public void reloadConfig ( ) throws com.android.jack.server.api.v01.ServerException , com.android.sched.util.file.NotFileException , com.android.sched.util.file.WrongPermissionException , java.io.IOException { shutdownConnections ( ) ; loadConfig ( ) ; buildInstalledJackCache ( ) ; start ( new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ) ; }

Target:
public void reloadConfig ( ) throws com.android.jack.server.api.v01.ServerException , com.android.sched.util.file.NotFileException , com.android.sched.util.file.WrongPermissionException , java.io.IOException { shutdownConnections ( ) ; try { checkAccess ( serverDir , java.util.EnumSet.of ( java.nio.file.attribute.PosixFilePermission.OWNER_READ , java.nio.file.attribute.PosixFilePermission.OWNER_WRITE , java.nio.file.attribute.PosixFilePermission.OWNER_EXECUTE ) ) ; loadConfig ( ) ; start ( new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ) ; } catch ( java.io.IOException e ) { shutdown ( ) ; throw e ; } }
Source:
public void test_skipJ ( ) throws java.io.IOException { byte [ ] buf1 = new byte [ 10 ] ; is.skip ( 10 ) ; is.read ( buf1 , 0 , buf1.length ) ; assertTrue ( "Test 1: Failed to skip to the correct position." , new java.lang.String ( buf1 , 0 , buf1.length ) . equals ( libcore.java.io.OldFilterInputStreamTest.testString.substring ( 10 , 20 ) ) ) ; is.close ( ) ; try { is.read ( ) ; fail ( "Test 2: IOException expected." ) ; } catch ( java.io.IOException e ) { } }

Target:
public void test_skipJ ( ) throws java.io.IOException { byte [ ] buf1 = new byte [ 10 ] ; is.skip ( 10 ) ; is.read ( buf1 , 0 , buf1.length ) ; assertTrue ( "Test 1: Failed to skip to the correct position." , new java.lang.String ( buf1 , 0 , buf1.length ) . equals ( libcore.java.io.OldFilterInputStreamTest.INPUT.substring ( 10 , 20 ) ) ) ; is.close ( ) ; try { is.read ( ) ; fail ( "Test 2: IOException expected." ) ; } catch ( java.io.IOException e ) { } }
Source:
public void afterHandshake ( long session , long ssl , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; assertEquals ( "ALPN should not enable cutthrough on the server" , 0 , ( ( org.conscrypt.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.conscrypt.NativeConstants.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ; super . afterHandshake ( session , ssl , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; if ( ! ( NativeCrypto.isBoringSSL ) ) { assertEquals ( "ALPN should not enable cutthrough on the server" , 0 , ( ( org.conscrypt.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.conscrypt.NativeConstants.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ; } super . afterHandshake ( session , ssl , c , sock , fd , callback ) ; }
Source:
public boolean updateNetworkAfterConnect ( int networkId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManagerNew.TAG , ( "Update network after connect for " + networkId ) ) ; } android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.lastConnected = mClock.getWallClockMillis ( ) ; ( config.numAssociation ) ++ ; config.getNetworkSelectionStatus ( ) . clearDisableReasonCounter ( ) ; config.getNetworkSelectionStatus ( ) . setHasEverConnected ( true ) ; setNetworkStatus ( config , WifiConfiguration.Status.CURRENT ) ; return true ; }

Target:
public boolean updateNetworkAfterConnect ( int networkId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Update network after connect for " + networkId ) ) ; } android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.lastConnected = mClock.getWallClockMillis ( ) ; ( config.numAssociation ) ++ ; config.getNetworkSelectionStatus ( ) . clearDisableReasonCounter ( ) ; config.getNetworkSelectionStatus ( ) . setHasEverConnected ( true ) ; setNetworkStatus ( config , WifiConfiguration.Status.CURRENT ) ; return true ; }
Source:
public com.android.ims.ImsEcbm getEcbmInterface ( ) throws com.android.ims.ImsException { if ( ( ( mEcbm ) != null ) && ( mEcbm.isBinderAlive ( ) ) ) { return mEcbm ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { com.android.ims.internal.IImsEcbm iEcbm = mMmTelFeatureConnection.getEcbmInterface ( ) ; if ( iEcbm == null ) { throw new com.android.ims.ImsException ( "getEcbmInterface()" , ImsReasonInfo.CODE_ECBM_NOT_SUPPORTED ) ; } mEcbm = new com.android.ims.ImsEcbm ( iEcbm ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getEcbmInterface()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } return mEcbm ; }

Target:
public com.android.ims.ImsMultiEndpoint getMultiEndpointInterface ( ) throws com.android.ims.ImsException { if ( ( ( mMultiEndpoint ) != null ) && ( mMultiEndpoint.isBinderAlive ( ) ) ) { return mMultiEndpoint ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { com.android.ims.internal.IImsMultiEndpoint iImsMultiEndpoint = mMmTelFeatureConnection.getMultiEndpointInterface ( ) ; if ( iImsMultiEndpoint == null ) { throw new com.android.ims.ImsException ( "getMultiEndpointInterface()" , android.telephony.ims.ImsReasonInfo.CODE_MULTIENDPOINT_NOT_SUPPORTED ) ; } mMultiEndpoint = new com.android.ims.ImsMultiEndpoint ( iImsMultiEndpoint ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getMultiEndpointInterface()" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } return mMultiEndpoint ; }
Source:
public void cacheMiss ( ) throws java.lang.Exception { mCacheQueue.add ( mRequest ) ; mCacheQueue.waitUntilEmpty ( com.android.volley.CacheDispatcherTest.TIMEOUT_MILLIS ) ; assertFalse ( mDelivery.wasEitherResponseCalled ( ) ) ; assertTrue ( ( ( mNetworkQueue.size ( ) ) > 0 ) ) ; com.android.volley.Request request = mNetworkQueue.take ( ) ; assertNull ( request.getCacheEntry ( ) ) ; }

Target:
public void cancelledRequest ( ) throws java.lang.Exception { mRequest.cancel ( ) ; mDispatcher.processRequest ( mRequest ) ; org.mockito.Mockito.verify ( mCache , org.mockito.Mockito.never ( ) ) . get ( org.mockito.Matchers.anyString ( ) ) ; com.android.volley.CacheDispatcherTest.verifyNoResponse ( mDelivery ) ; }
Source:
public int getVoiceActivationState ( int subId , java.lang.String callingPackage ) { if ( ! ( canReadPhoneState ( callingPackage , "getVoiceActivationStateForSubscriber" ) ) ) { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getVoiceActivationState ( ) ; } else { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } }

Target:
public int getDataActivationState ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getDataActivationStateForSubscriber" ) ) ) { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getDataActivationState ( ) ; } else { return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; } }
Source:
public void clearPassword ( ) throws android.os.RemoteException { if ( ! ( isReady ( ) ) ) { return ; } final com.android.server.NativeDaemonEvent event ; try { event = mCryptConnector.execute ( "cryptfs" , "clearpw" ) ; } catch ( com.android.server.NativeDaemonConnectorException e ) { throw e.rethrowAsParcelableException ( ) ; } }

Target:
public void clearPassword ( ) throws android.os.RemoteException { mContext.enforceCallingOrSelfPermission ( Manifest.permission.STORAGE_INTERNAL , "only keyguard can clear password" ) ; if ( ! ( isReady ( ) ) ) { return ; } final com.android.server.NativeDaemonEvent event ; try { event = mCryptConnector.execute ( "cryptfs" , "clearpw" ) ; } catch ( com.android.server.NativeDaemonConnectorException e ) { throw e.rethrowAsParcelableException ( ) ; } }
Source:
public void onReceivedLoginRequest ( java.lang.String realm , java.lang.String account , java.lang.String args ) { org.chromium.content.common.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "onReceivedLoginRequest=" + realm ) ) ; mWebViewClient.onReceivedLoginRequest ( mWebView , realm , account , args ) ; org.chromium.content.common.TraceEvent.end ( ) ; }

Target:
public void onReceivedLoginRequest ( java.lang.String realm , java.lang.String account , java.lang.String args ) { org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "onReceivedLoginRequest=" + realm ) ) ; mWebViewClient.onReceivedLoginRequest ( mWebView , realm , account , args ) ; org.chromium.base.TraceEvent.end ( ) ; }
Source:
public static void assertEquals ( java.lang.String message , double expected , double actual , double delta ) { if ( ( java.lang.Double.compare ( expected , actual ) ) == 0 ) return ; if ( ! ( ( java.lang.Math.abs ( ( expected - actual ) ) ) <= delta ) ) org.junit.Assert.failNotEquals ( message , new java.lang.Double ( expected ) , new java.lang.Double ( actual ) ) ; }

Target:
public static void assertNotEquals ( java.lang.String message , double unexpected , double actual , double delta ) { if ( ! ( org.junit.Assert.doubleIsDifferent ( unexpected , actual , delta ) ) ) { org.junit.Assert.failEquals ( message , java.lang.Double.valueOf ( actual ) ) ; } }
Source:
public int compare ( com.android.sdkuilib.internal.repository.sdkman2.PkgCategory cat1 , com.android.sdkuilib.internal.repository.sdkman2.PkgCategory cat2 ) { assert cat1 instanceof com.android.sdkuilib.internal.repository.sdkman2.PkgCategoryApi ; assert cat2 instanceof com.android.sdkuilib.internal.repository.sdkman2.PkgCategoryApi ; assert ( cat1.getKey ( ) ) instanceof com.android.sdklib.AndroidVersion ; assert ( cat2.getKey ( ) ) instanceof com.android.sdklib.AndroidVersion ; com.android.sdklib.AndroidVersion v1 = ( ( com.android.sdklib.AndroidVersion ) ( cat1.getKey ( ) ) ) ; com.android.sdklib.AndroidVersion v2 = ( ( com.android.sdklib.AndroidVersion ) ( cat2.getKey ( ) ) ) ; return v2.compareTo ( v1 ) ; }

Target:
public int compare ( com.android.sdkuilib.internal.repository.core.PkgCategory cat1 , com.android.sdkuilib.internal.repository.core.PkgCategory cat2 ) { assert cat1 instanceof com.android.sdkuilib.internal.repository.core.PkgCategoryApi ; assert cat2 instanceof com.android.sdkuilib.internal.repository.core.PkgCategoryApi ; assert ( cat1.getKey ( ) ) instanceof com.android.sdklib.AndroidVersion ; assert ( cat2.getKey ( ) ) instanceof com.android.sdklib.AndroidVersion ; com.android.sdklib.AndroidVersion v1 = ( ( com.android.sdklib.AndroidVersion ) ( cat1.getKey ( ) ) ) ; com.android.sdklib.AndroidVersion v2 = ( ( com.android.sdklib.AndroidVersion ) ( cat2.getKey ( ) ) ) ; return v2.compareTo ( v1 ) ; }
Source:
private boolean needAction ( int arrayPos ) { com.android.bluetooth.opp.BluetoothOppShareInfo info = mShares.get ( arrayPos ) ; if ( com.android.bluetooth.opp.BluetoothShare.isStatusCompleted ( info.mStatus ) ) { return false ; } return true ; }

Target:
public void dump ( java.lang.StringBuilder sb ) { super . dump ( sb ) ; if ( ( mShares.size ( ) ) > 0 ) { println ( sb , "Shares:" ) ; for ( com.android.bluetooth.opp.BluetoothOppShareInfo info : mShares ) { java.lang.String dir = ( ( info.mDirection ) == ( BluetoothShare.DIRECTION_OUTBOUND ) ) ? "->" : "<-" ; java.text.SimpleDateFormat format = new java.text.SimpleDateFormat ( "MM'.'dd'@'HH':'mm':'ss" , java.util.Locale.US ) ; java.util.Date date = new java.util.Date ( info.mTimestamp ) ; println ( sb , ( ( ( ( ( ( ( ( " " + ( format.format ( date ) ) ) + ": " ) + dir ) + " " ) + ( info.mCurrentBytes ) ) + "/" ) + ( info.mTotalBytes ) ) + "B " ) ) ; } } }
Source:
private static java.math.BigInteger generatePrivateKey ( java.math.BigInteger q , java.security.SecureRandom random ) { return org.bouncycastle.util.BigIntegers.createRandomInRange ( org.bouncycastle.crypto.generators.DSAKeyPairGenerator.ONE , q.subtract ( org.bouncycastle.crypto.generators.DSAKeyPairGenerator.ONE ) , random ) ; }

Target:
private static java.math.BigInteger generatePrivateKey ( java.math.BigInteger q , java.security.SecureRandom random ) { int minWeight = ( q.bitLength ( ) ) > > > 2 ; for ( ; ; ) { java.math.BigInteger x = org.bouncycastle.util.BigIntegers.createRandomInRange ( org.bouncycastle.crypto.generators.DSAKeyPairGenerator.ONE , q.subtract ( org.bouncycastle.crypto.generators.DSAKeyPairGenerator.ONE ) , random ) ; if ( ( org.bouncycastle.math.ec.WNafUtil.getNafWeight ( x ) ) >= minWeight ) { return x ; } } }
Source:
public void updateConfiguration ( android.content.res.Configuration values ) { enforceCallingPermission ( android.Manifest.permission.CHANGE_CONFIGURATION , "updateConfiguration()" ) ; synchronized ( this ) { if ( ( values == null ) && ( ( mWindowManager ) != null ) ) { values = mWindowManager.computeNewConfiguration ( ) ; } final long origId = android.os.Binder.clearCallingIdentity ( ) ; updateConfigurationLocked ( values , null ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; } }

Target:
private final com.android.server.am.ActivityRecord resumedAppLocked ( ) { com.android.server.am.ActivityRecord resumedActivity = mMainStack.mResumedActivity ; if ( ( resumedActivity == null ) || ( ( resumedActivity.app ) == null ) ) { resumedActivity = mMainStack.mPausingActivity ; if ( ( resumedActivity == null ) || ( ( resumedActivity.app ) == null ) ) { resumedActivity = mMainStack.topRunningActivityLocked ( null ) ; } } return resumedActivity ; }
Source:
public void setVoiceRadioTech ( int radioTech ) { synchronized ( mLock ) { if ( com.android.internal.telephony.uicc.UiccProfile.DBG ) { log ( ( "Setting radio tech " + ( android.telephony.ServiceState.rilRadioTechnologyToString ( radioTech ) ) ) ) ; } setCurrentAppType ( android.telephony.ServiceState.isGsm ( radioTech ) ) ; updateIccAvailability ( false ) ; } }

Target:
public void setVoiceRadioTech ( int radioTech ) { synchronized ( mLock ) { if ( com.android.internal.telephony.uicc.UiccProfile.DBG ) { com.android.internal.telephony.uicc.UiccProfile.log ( ( "Setting radio tech " + ( android.telephony.ServiceState.rilRadioTechnologyToString ( radioTech ) ) ) ) ; } setCurrentAppType ( android.telephony.ServiceState.isGsm ( radioTech ) ) ; updateIccAvailability ( false ) ; } }
Source:
public void TestDevanagariLatin ( ) throws java.io.IOException { long start = java.lang.System.currentTimeMillis ( ) ; if ( android.icu.dev.test.translit.RoundTripTest.FIX_ME ) { errln ( "FAIL: TestDevanagariLatin needs to be updated to remove delete the [:Age=4.1:] filter " ) ; return ; } logln ( "Warning: TestDevanagariLatin needs to be updated to remove delete the section marked [:Age=4.1:] filter" ) ; java.lang.String minusDevAbb = ( logKnownIssue ( "cldrbug:4375" , null ) ) ? "-[॰]" : "" ; new android.icu.dev.test.translit.RoundTripTest.Test ( "Latin-DEVANAGARI" , 50 ) . test ( android.icu.dev.test.translit.RoundTripTest.latinForIndic , ( ( "[[[:Devanagari:][्][।॥]" + minusDevAbb ) + "]&[:Age=4.1:]]" ) , "[॥ऄ]" , this , new android.icu.dev.test.translit.RoundTripTest.LegalIndic ( ) ) ; showElapsed ( start , "TestDevanagariLatin" ) ; }

Target:
public void TestDevanagariLatin ( ) throws java.io.IOException { long start = java.lang.System.currentTimeMillis ( ) ; if ( android.icu.dev.test.translit.RoundTripTest.FIX_ME ) { errln ( "FAIL: TestDevanagariLatin needs to be updated to remove delete the [:Age=4.1:] filter " ) ; return ; } logln ( "Warning: TestDevanagariLatin needs to be updated to remove delete the section marked [:Age=4.1:] filter" ) ; java.lang.String minusDevAbb = ( logKnownIssue ( "cldrbug:4375" , null ) ) ? "-[॰]" : "" ; new android.icu.dev.test.translit.RoundTripTest.TransliterationTest ( "Latin-DEVANAGARI" , 50 ) . test ( android.icu.dev.test.translit.RoundTripTest.latinForIndic , ( ( "[[[:Devanagari:][्][।॥]" + minusDevAbb ) + "]&[:Age=4.1:]]" ) , "[॥ऄ]" , this , new android.icu.dev.test.translit.RoundTripTest.LegalIndic ( ) ) ; showElapsed ( start , "TestDevanagariLatin" ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { mAndroidKeyStore = android.security.android.security.KeyStore.getInstance ( ) ; assertTrue ( mAndroidKeyStore.reset ( ) ) ; assertEquals ( android.security.KeyStore.State.UNINITIALIZED , mAndroidKeyStore.state ( ) ) ; assertTrue ( mAndroidKeyStore.password ( "1111" ) ) ; assertEquals ( android.security.KeyStore.State.UNLOCKED , mAndroidKeyStore.state ( ) ) ; assertEquals ( 0 , mAndroidKeyStore.saw ( "" ) . length ) ; mKeyStore = java.security.KeyStore.getInstance ( AndroidKeyStore.NAME ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { mAndroidKeyStore = android.security.android.security.KeyStore.getInstance ( ) ; assertTrue ( mAndroidKeyStore.reset ( ) ) ; assertFalse ( mAndroidKeyStore.isUnlocked ( ) ) ; assertTrue ( mAndroidKeyStore.password ( "1111" ) ) ; assertTrue ( mAndroidKeyStore.isUnlocked ( ) ) ; assertEquals ( 0 , mAndroidKeyStore.saw ( "" ) . length ) ; mKeyStore = java.security.KeyStore.getInstance ( AndroidKeyStore.NAME ) ; }
Source:
public int getState ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getState = " + ( mService.getState ( ) ) ) ) ; com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) return android.bluetooth.BluetoothPbap.STATE_DISCONNECTED ; return service.getState ( ) ; }

Target:
java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.util.List < android.bluetooth.BluetoothDevice > devices = new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; if ( ( mRemoteDevice ) != null ) { for ( int state : states ) { if ( state == ( mState ) ) { devices.add ( mRemoteDevice ) ; break ; } } } return devices ; }
Source:
public org.jetbrains.asm4.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { if ( ( access & ( org.jetbrains.asm4.Opcodes.ACC_PUBLIC ) ) > 0 ) { myMethods.add ( new com.intellij.compiler.instrumentation.InstrumentationClassFinder.PseudoMethod ( access , name , desc ) ) ; } return super . visitMethod ( access , name , desc , signature , exceptions ) ; }

Target:
public org.jetbrains.org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { if ( ( access & ( org.jetbrains.org.objectweb.asm.Opcodes.ACC_PUBLIC ) ) > 0 ) { myMethods.add ( new com.intellij.compiler.instrumentation.InstrumentationClassFinder.PseudoMethod ( access , name , desc ) ) ; } return super . visitMethod ( access , name , desc , signature , exceptions ) ; }
Source:
public void dispose ( ) { try { android.telephony.mbms.vendor.IMbmsDownloadService downloadService = mService.get ( ) ; if ( downloadService == null ) { android.util.Log.i ( android.telephony.MbmsDownloadManager.LOG_TAG , "Service already dead" ) ; return ; } downloadService.dispose ( mSubscriptionId ) ; mService.set ( null ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( android.telephony.MbmsDownloadManager.LOG_TAG , "Remote exception while disposing of service" ) ; } }

Target:
public void onServiceDisconnected ( android.content.ComponentName name ) { android.telephony.MbmsDownloadManager.sIsInitialized.set ( false ) ; mService.set ( null ) ; }
Source:
private void assertShortsEqual ( short [ ] expectedValues , int ptr , boolean swap ) { for ( int i = 0 ; i < ( expectedValues.length ) ; ++ i ) { assertEquals ( expectedValues [ i ] , libcore.io.Memory.peekShort ( ( ptr + ( 2 * i ) ) , swap ) ) ; } }

Target:
private void assertLongsEqual ( long [ ] expectedValues , int ptr , boolean swap ) { for ( int i = 0 ; i < ( expectedValues.length ) ; ++ i ) { assertEquals ( expectedValues [ i ] , libcore.io.Memory.peekLong ( ( ptr + ( ( SizeOf.LONG ) * i ) ) , swap ) ) ; } }
Source:
public java.lang.String getDisplayLanguage ( java.util.Locale locale ) { if ( languageCode.isEmpty ( ) ) { return "" ; } java.lang.String localeString = toString ( ) ; if ( languageCode.equals ( "tl" ) ) { localeString = java.util.Locale.toNewString ( "fil" , countryCode , variantCode ) ; } java.lang.String result = libcore.icu.ICU.getDisplayLanguageNative ( localeString , locale.toString ( ) ) ; if ( result == null ) { result = libcore.icu.ICU.getDisplayLanguageNative ( localeString , java.util.Locale.getDefault ( ) . toString ( ) ) ; } return result ; }

Target:
public final java.lang.String toString ( ) { java.lang.String result = cachedToStringResult ; if ( result == null ) { result = cachedToStringResult = java.util.Locale.toNewString ( languageCode , countryCode , variantCode , scriptCode , extensions ) ; } return result ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.aput_byte.d.T_aput_byte_1 t = new dot.junit.opcodes.aput_byte.d.T_aput_byte_1 ( ) ; byte [ ] arr = new byte [ 2 ] ; try { t.run ( arr , 2 , ( ( byte ) ( 100 ) ) ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aput_byte.d.T_aput_byte_1" , java.lang.ArrayIndexOutOfBoundsException.class , new byte [ 2 ] , 2 , ( ( byte ) ( 100 ) ) ) ; }
Source:
private void setPhoto ( com.android.dialer.voicemail.model.VoicemailEntry voicemailEntry ) { com.android.dialer.glidephotomanager.PhotoInfo.Builder photoInfoBuilder = com.android.dialer.calllogutils.NumberAttributesConverter.toPhotoInfoBuilder ( voicemailEntry.numberAttributes ( ) ) ; if ( ! ( android.text.TextUtils.isEmpty ( voicemailEntry.formattedNumber ( ) ) ) ) { photoInfoBuilder.setFormattedNumber ( voicemailEntry.formattedNumber ( ) ) ; } glidePhotoManager.loadQuickContactBadge ( quickContactBadge , photoInfoBuilder.build ( ) ) ; }

Target:
private void setPhoto ( com.android.dialer.voicemail.model.VoicemailEntry voicemailEntry ) { glidePhotoManager.loadQuickContactBadge ( quickContactBadge , com.android.dialer.calllogutils.NumberAttributesConverter.toPhotoInfoBuilder ( voicemailEntry.getNumberAttributes ( ) ) . setFormattedNumber ( voicemailEntry.getFormattedNumber ( ) ) . build ( ) ) ; }
Source:
private static com.android.jack.dx.rop.cst.CstType createSuperClass ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws com.android.jack.ir.ast.JTypeLookupException { com.android.jack.ir.ast.JClass superClass = type.getSuperClass ( ) ; if ( superClass == null ) { if ( type instanceof com.android.jack.ir.ast.JDefinedInterface ) { return com.android.jack.backend.dex.rop.RopHelper.getCstType ( com.android.jack.Jack.getSession ( ) . getPhantomLookup ( ) . getClass ( CommonTypes.JAVA_LANG_OBJECT ) ) ; } else { assert type.isSameType ( com.android.jack.Jack.getSession ( ) . getPhantomLookup ( ) . getClass ( CommonTypes.JAVA_LANG_OBJECT ) ) ; return null ; } } com.android.jack.dx.rop.cst.CstType superclassType = com.android.jack.backend.dex.rop.RopHelper.getCstType ( superClass ) ; return superclassType ; }

Target:
private static com.android.jack.dx.rop.type.Type createSuperClass ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws com.android.jack.ir.ast.JTypeLookupException { com.android.jack.ir.ast.JClass superClass = type.getSuperClass ( ) ; if ( superClass == null ) { if ( type instanceof com.android.jack.ir.ast.JDefinedInterface ) { superClass = com.android.jack.Jack.getSession ( ) . getPhantomLookup ( ) . getClass ( CommonTypes.JAVA_LANG_OBJECT ) ; } else { assert type.isSameType ( com.android.jack.Jack.getSession ( ) . getPhantomLookup ( ) . getClass ( CommonTypes.JAVA_LANG_OBJECT ) ) ; return null ; } } return com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( superClass ) ; }
Source:
static void preload ( ) { com.android.internal.os.ZygoteInit.preloadClasses ( ) ; com.android.internal.os.ZygoteInit.preloadResources ( ) ; }

Target:
static void preload ( ) { android.util.Log.d ( com.android.internal.os.ZygoteInit.TAG , "begin preload" ) ; com.android.internal.os.ZygoteInit.preloadClasses ( ) ; com.android.internal.os.ZygoteInit.preloadResources ( ) ; com.android.internal.os.ZygoteInit.preloadOpenGL ( ) ; com.android.internal.os.ZygoteInit.preloadSharedLibraries ( ) ; com.android.internal.os.ZygoteInit.preloadTextResources ( ) ; android.webkit.WebViewFactory.prepareWebViewInZygote ( ) ; android.util.Log.d ( com.android.internal.os.ZygoteInit.TAG , "end preload" ) ; }
Source:
public com.intellij.execution.actions.ConfigurationFromContext createConfigurationFromContext ( com.intellij.execution.actions.ConfigurationContext context ) { final com.intellij.execution.RunnerAndConfigurationSettings settings = cloneTemplateConfiguration ( context ) ; final com.intellij.openapi.util.Ref < com.intellij.psi.PsiElement > locationRef = new com.intellij.openapi.util.Ref < com.intellij.psi.PsiElement > ( context.getPsiLocation ( ) ) ; if ( ! ( setupConfigurationFromContext ( ( ( T ) ( settings.getConfiguration ( ) ) ) , context , locationRef ) ) ) { return null ; } return new com.intellij.execution.actions.ConfigurationFromContextImpl ( this , settings , locationRef.get ( ) ) ; }

Target:
public com.intellij.execution.actions.ConfigurationFromContext createConfigurationFromContext ( com.intellij.execution.actions.ConfigurationContext context ) { final com.intellij.execution.actions.RunnerAndConfigurationSettings settings = cloneTemplateConfiguration ( context ) ; final com.intellij.openapi.util.Ref < com.intellij.psi.PsiElement > locationRef = new com.intellij.openapi.util.Ref < com.intellij.psi.PsiElement > ( context.getPsiLocation ( ) ) ; if ( ! ( setupConfigurationFromContext ( ( ( T ) ( settings.getConfiguration ( ) ) ) , context , locationRef ) ) ) { return null ; } return new com.intellij.execution.actions.ConfigurationFromContextImpl ( this , settings , locationRef.get ( ) ) ; }
Source:
public synchronized void merge ( @ javax.annotation.Nonnull com.android.sched.util.log.stats.Statistic statistic ) { com.android.sched.util.log.stats.SampleImpl samples = ( ( com.android.sched.util.log.stats.SampleImpl ) ( statistic ) ) ; this . count += samples.count ; this . total += samples.total ; if ( ( samples.min ) < ( this . min ) ) { this . min = samples.min ; this . minObject = samples.minObject ; } if ( ( samples.max ) > ( this . max ) ) { this . max = samples.max ; this . maxObject = samples.maxObject ; } }

Target:
public synchronized void merge ( @ javax.annotation.Nonnull com.android.sched.util.log.stats.Statistic statistic ) { com.android.sched.util.log.stats.SampleImpl samples = ( ( com.android.sched.util.log.stats.SampleImpl ) ( statistic ) ) ; synchronized ( samples ) { this . validCount += samples.validCount ; this . nanCount += samples.nanCount ; this . total += samples.total ; if ( ( samples.min ) < ( this . min ) ) { this . min = samples.min ; this . minObject = samples.minObject ; } if ( ( samples.max ) > ( this . max ) ) { this . max = samples.max ; this . maxObject = samples.maxObject ; } } }
Source:
private void loadStackFrame ( ) throws java.io.IOException { long id = readId ( ) ; java.lang.String methodName = mStrings.get ( readId ( ) ) ; java.lang.String methodSignature = mStrings.get ( readId ( ) ) ; java.lang.String sourceFile = mStrings.get ( readId ( ) ) ; int serial = mInput.readInt ( ) ; int lineNumber = mInput.readInt ( ) ; com.android.tools.perflib.heap.StackFrame frame = new com.android.tools.perflib.heap.StackFrame ( id , methodName , methodSignature , sourceFile , serial , lineNumber ) ; mSnapshot.addStackFrame ( frame ) ; }

Target:
private void loadClass ( ) throws java.io.IOException { mInput.readInt ( ) ; long id = readId ( ) ; mInput.readInt ( ) ; java.lang.String name = mStrings.get ( readId ( ) ) ; mClassNames.put ( id , name ) ; }
Source:
public static void rename ( java.io.File from , java.io.File to ) throws java.io.IOException { libcore.tzdata.update2.FileUtils.ensureFileDoesNotExist ( to ) ; if ( ! ( from.renameTo ( to ) ) ) { throw new java.io.IOException ( ( ( ( "Unable to rename " + from ) + " to " ) + to ) ) ; } }

Target:
public static void rename ( java.io.File from , java.io.File to ) throws java.io.IOException { libcore.tzdata.shared2.FileUtils.ensureFileDoesNotExist ( to ) ; if ( ! ( from.renameTo ( to ) ) ) { throw new java.io.IOException ( ( ( ( "Unable to rename " + from ) + " to " ) + to ) ) ; } }
Source:
public static android.os.ParcelFileDescriptor [ ] createReliablePipe ( ) throws java.io.IOException { try { final java.io.FileDescriptor [ ] comm = android.os.ParcelFileDescriptor.createCommSocketPair ( ) ; final java.io.FileDescriptor [ ] fds = Libcore.os.pipe ( ) ; return new android.os.ParcelFileDescriptor [ ] { new android.os.ParcelFileDescriptor ( fds [ 0 ] , comm [ 0 ] ) , new android.os.ParcelFileDescriptor ( fds [ 1 ] , comm [ 1 ] ) } ; } catch ( libcore.io.ErrnoException e ) { throw e.rethrowAsIOException ( ) ; } }

Target:
public static android.os.ParcelFileDescriptor [ ] createReliablePipe ( ) throws java.io.IOException { try { final java.io.FileDescriptor [ ] comm = android.os.ParcelFileDescriptor.createCommSocketPair ( ) ; final java.io.FileDescriptor [ ] fds = android.system.Os.pipe ( ) ; return new android.os.ParcelFileDescriptor [ ] { new android.os.ParcelFileDescriptor ( fds [ 0 ] , comm [ 0 ] ) , new android.os.ParcelFileDescriptor ( fds [ 1 ] , comm [ 1 ] ) } ; } catch ( android.system.ErrnoException e ) { throw e.rethrowAsIOException ( ) ; } }
Source:
public void testInstall_withBadlyFormedBundleVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.BundleVersion validBundleVersion = new libcore.tzdata.update2.BundleVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidFormatVersionBytes = validBundleVersion.toBytes ( ) ; invalidFormatVersionBytes [ 0 ] = 'A' ; libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTimeZoneBundleWithVersionBytes ( invalidFormatVersionBytes ) ; assertEquals ( TimeZoneBundleInstaller.INSTALL_FAIL_BAD_BUNDLE_STRUCTURE , installer.installWithErrorCode ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstall_withBadlyFormedDistroVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.DistroVersion validDistroVersion = new libcore.tzdata.update2.DistroVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidFormatVersionBytes = validDistroVersion.toBytes ( ) ; invalidFormatVersionBytes [ 0 ] = 'A' ; libcore.tzdata.update2.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTimeZoneDistroWithVersionBytes ( invalidFormatVersionBytes ) ; assertEquals ( TimeZoneBundleInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.installWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { android.os.AsyncResult ar ; if ( ( msg.what ) == ( com.android.internal.telephony.cdma.CdmaMmiCode.EVENT_SET_COMPLETE ) ) { ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; onSetComplete ( ar ) ; } else { android.util.Log.e ( com.android.internal.telephony.cdma.CdmaMmiCode.LOG_TAG , "Unexpected reply" ) ; } }

Target:
public void handleMessage ( android.os.Message msg ) { android.os.AsyncResult ar ; if ( ( msg.what ) == ( com.android.internal.telephony.cdma.CdmaMmiCode.EVENT_SET_COMPLETE ) ) { ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; onSetComplete ( ar ) ; } else { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CdmaMmiCode.LOG_TAG , "Unexpected reply" ) ; } }
Source:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.phoneButtonListener" , "speaker request for voicemailUri: %s" , voicemailUri.toString ( ) ) ; }

Target:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.phoneButtonListener" , "speaker request for voicemailUri: %s" , voicemailUri.toString ( ) ) ; android.content.ContentValues contentValues = new android.content.ContentValues ( ) ; contentValues.put ( "has_content" , 0 ) ; try { getContext ( ) . getContentResolver ( ) . update ( voicemailUri , contentValues , "type = 4" , null ) ; } catch ( java.lang.Exception e ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.deleteButtonListener" , "update has content of voicemailUri %s caused an error: %s" , voicemailUri.toString ( ) , e.toString ( ) ) ; } }
Source:
private void copyThrowableExtensionClass ( com.google.devtools.build.android.desugar.OutputFileProvider outputFileProvider ) { if ( ( allowTryWithResources ) || ( options.desugarTryWithResourcesOmitRuntimeClasses ) ) { return ; } if ( ( this . numOfTryWithResourcesInvoked.get ( ) ) <= 0 ) { return ; } for ( java.lang.String className : TryWithResourcesRewriter.THROWABLE_EXT_CLASS_INTERNAL_NAMES_WITH_CLASS_EXT ) { try ( java.io.InputStream stream = com.google.devtools.build.android.desugar.Desugar.class . getClassLoader ( ) . getResourceAsStream ( className ) ) { outputFileProvider.write ( className , com.google.common.io.ByteStreams.toByteArray ( stream ) ) ; } catch ( java.io.IOException e ) { throw new java.io.IOError ( e ) ; } } }

Target:
private void copyThrowableExtensionClass ( com.google.devtools.build.android.desugar.io.OutputFileProvider outputFileProvider ) { if ( ( allowTryWithResources ) || ( options.desugarTryWithResourcesOmitRuntimeClasses ) ) { return ; } if ( ( this . numOfTryWithResourcesInvoked.get ( ) ) <= 0 ) { return ; } for ( java.lang.String className : TryWithResourcesRewriter.THROWABLE_EXT_CLASS_INTERNAL_NAMES_WITH_CLASS_EXT ) { try ( java.io.InputStream stream = com.google.devtools.build.android.desugar.Desugar.class . getClassLoader ( ) . getResourceAsStream ( className ) ) { outputFileProvider.write ( className , com.google.common.io.ByteStreams.toByteArray ( stream ) ) ; } catch ( java.io.IOException e ) { throw new java.io.IOError ( e ) ; } } }
Source:
public void testHasSchemeSpecificPartDoesNotMatch ( ) { android.net.Uri schemeUri = android.net.Uri.parse ( "tel:123456789" ) ; org.hamcrest.Matcher < android.net.Uri > hasSchemeMatcher = android.support.test.espresso.intent.matcher.UriMatchers.hasSchemeSpecificPart ( org.hamcrest.CoreMatchers.equalTo ( "tel" ) , org.hamcrest.CoreMatchers.equalTo ( "987654321" ) ) ; assertFalse ( "HasScheme Matched, But it shouldn't have" , android.support.test.espresso.intent.matcher.UriMatchers.hasSchemeSpecificPart ( "tel" , "987654321" ) . matches ( schemeUri ) ) ; assertFalse ( "HasScheme Matched, But it shouldn't have" , hasSchemeMatcher.matches ( schemeUri ) ) ; }

Target:
public void hasSchemeSpecificPartDoesNotMatch ( ) { android.net.Uri schemeUri = android.net.Uri.parse ( "tel:123456789" ) ; org.hamcrest.Matcher < android.net.Uri > hasSchemeMatcher = android.support.test.espresso.intent.matcher.UriMatchers.hasSchemeSpecificPart ( org.hamcrest.CoreMatchers.equalTo ( "tel" ) , org.hamcrest.CoreMatchers.equalTo ( "987654321" ) ) ; org.junit.Assert.assertFalse ( "HasScheme Matched, But it shouldn't have" , android.support.test.espresso.intent.matcher.UriMatchers.hasSchemeSpecificPart ( "tel" , "987654321" ) . matches ( schemeUri ) ) ; org.junit.Assert.assertFalse ( "HasScheme Matched, But it shouldn't have" , hasSchemeMatcher.matches ( schemeUri ) ) ; }
Source:
private double computeWeight ( double start , double end , int pixel ) { double pixelStartFraction = mScaleInfo.valueToPixelFraction ( start ) ; double pixelEndFraction = mScaleInfo.valueToPixelFraction ( end ) ; double leftEndPoint = java.lang.Math.max ( pixelStartFraction , ( pixel - 0.5 ) ) ; double rightEndPoint = java.lang.Math.min ( pixelEndFraction , ( pixel + 0.5 ) ) ; double weight = rightEndPoint - leftEndPoint ; return weight ; }

Target:
private double computeWeight ( double start , double end , boolean isContextSwitch , int pixel ) { if ( isContextSwitch ) { return 0 ; } double pixelStartFraction = mScaleInfo.valueToPixelFraction ( start ) ; double pixelEndFraction = mScaleInfo.valueToPixelFraction ( end ) ; double leftEndPoint = java.lang.Math.max ( pixelStartFraction , ( pixel - 0.5 ) ) ; double rightEndPoint = java.lang.Math.min ( pixelEndFraction , ( pixel + 0.5 ) ) ; double weight = rightEndPoint - leftEndPoint ; return weight ; }
Source:
private com.android.ims.internal.IImsMMTelFeature createMMTelFeatureInternal ( int slotId , com.android.ims.internal.IImsFeatureStatusCallback c ) { android.telephony.ims.feature.MMTelFeature f = onCreateMMTelImsFeature ( slotId ) ; if ( f != null ) { setupFeature ( f , slotId , ImsFeature.MMTEL , c ) ; return f.getBinder ( ) ; } else { return null ; } }

Target:
private android.telephony.ims.aidl.IImsMmTelFeature createMmTelFeatureInternal ( int slotId , com.android.ims.internal.IImsFeatureStatusCallback c ) { android.telephony.ims.feature.MmTelFeature f = createMmTelFeature ( slotId ) ; if ( f != null ) { setupFeature ( f , slotId , ImsFeature.FEATURE_MMTEL , c ) ; return f.getBinder ( ) ; } else { android.util.Log.e ( android.telephony.ims.ImsService.LOG_TAG , "createMmTelFeatureInternal: null feature returned." ) ; return null ; } }
Source:
public java.nio.channels.FileChannel truncate ( long size ) throws java.io.IOException { checkOpen ( ) ; if ( size < 0 ) { throw new java.lang.IllegalArgumentException ( ( "size < 0: " + size ) ) ; } checkWritable ( ) ; if ( size < ( size ( ) ) ) { try { Libcore.os.ftruncate ( fd , size ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } } if ( ( position ( ) ) > size ) { position ( size ) ; } return this ; }

Target:
public java.nio.channels.FileChannel truncate ( long size ) throws java.io.IOException { checkOpen ( ) ; if ( size < 0 ) { throw new java.lang.IllegalArgumentException ( ( "size < 0: " + size ) ) ; } checkWritable ( ) ; if ( size < ( size ( ) ) ) { try { Libcore.os.ftruncate ( fd , size ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } } if ( ( position ( ) ) > size ) { position ( size ) ; } return this ; }
Source:
protected void updateSharpImageUsingFuzzyImage ( ) { long startnow ; long endnow ; startnow = java.lang.System.nanoTime ( ) ; scriptC.forEach_UpdateSharpUsingFuzzyPassInput ( buffers.sharpDilatedDepthAllocation , buffers.sharpDilatedDepthAllocation ) ; endnow = java.lang.System.nanoTime ( ) ; android.util.Log.d ( com.android.rs.test.d1new.RefocusFilterd1new.myTAG , ( ( "updateSharpImageUsingFuzzyImage: " + ( endnow - startnow ) ) + " ns" ) ) ; }

Target:
protected void updateSharpImageUsingFuzzyImage ( ) { long startnow ; long endnow ; startnow = java.lang.System.nanoTime ( ) ; scriptC.forEach_UpdateSharpUsingFuzzyPassInput ( buffers.sharpDilatedDepthAllocation , buffers.sharpDilatedDepthAllocation ) ; endnow = java.lang.System.nanoTime ( ) ; android.util.Log.d ( com.android.rs.refocus.d1new.RefocusFilterd1new.myTAG , ( ( "updateSharpImageUsingFuzzyImage: " + ( endnow - startnow ) ) + " ns" ) ) ; }
Source:
protected static java.io.File getJackFile ( @ javax.annotation.Nonnull java.lang.String typeName ) { return new java.io.File ( com.android.jack.experimental.incremental.JackIncremental.jackFilesFolder , ( ( ( FileType.JAYCE.getPrefix ( ) ) + ( java.io.File.separatorChar ) ) + ( new com.android.sched.vfs.VPath ( ( typeName + ( com.android.jack.backend.jayce.JayceFileImporter.JAYCE_FILE_EXTENSION ) ) , com.android.jack.experimental.incremental.JackIncremental.fileSeparator ) . getPathAsString ( java.io.File.separatorChar ) ) ) ) ; }

Target:
protected static com.android.sched.vfs.InputVFile getJackFile ( @ javax.annotation.Nonnull java.lang.String typeName ) { try { assert ( com.android.jack.experimental.incremental.JackIncremental.incrementalInputLibrary ) != null ; return com.android.jack.experimental.incremental.JackIncremental.incrementalInputLibrary.getFile ( FileType.JAYCE , new com.android.sched.vfs.VPath ( typeName , com.android.jack.experimental.incremental.JackIncremental.fileSeparator ) ) ; } catch ( com.android.jack.library.FileTypeDoesNotExistException e ) { throw new java.lang.AssertionError ( e ) ; } }
Source:
public java.util.Map < com.android.tools.perflib.heap.Field , java.lang.Object > getStaticFieldValues ( ) { java.util.Map < com.android.tools.perflib.heap.Field , java.lang.Object > result = com.google.common.collect.Maps.newHashMap ( ) ; result.put ( new com.android.tools.perflib.heap.Field ( com.android.tools.perflib.heap.Type.OBJECT , "foo" ) , object1 ) ; result.put ( new com.android.tools.perflib.heap.Field ( com.android.tools.perflib.heap.Type.OBJECT , "bar" ) , object2 ) ; return result ; }

Target:
public java.util.Map < com.android.tools.perflib.heap.analysis.Field , java.lang.Object > getStaticFieldValues ( ) { java.util.Map < com.android.tools.perflib.heap.analysis.Field , java.lang.Object > result = com.google.common.collect.Maps.newHashMap ( ) ; result.put ( new com.android.tools.perflib.heap.analysis.Field ( Type.OBJECT , "foo" ) , object1 ) ; result.put ( new com.android.tools.perflib.heap.analysis.Field ( Type.OBJECT , "bar" ) , object2 ) ; return result ; }