auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onConnectionEvent ( java.lang.String callId , java.lang.String event , android.os.Bundle extras ) { android.telecom.Log.startSession ( "CSW.oCE" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { android.os.Bundle.setDefusable ( extras , true ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.onConnectionEvent ( event , extras ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }

Target:
public void onConnectionEvent ( java.lang.String callId , java.lang.String event , android.os.Bundle extras , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , "CSW.oCE" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { android.os.Bundle.setDefusable ( extras , true ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.onConnectionEvent ( event , extras ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall methodCall ) { com.android.jack.ir.ast.JMethodIdWide id = methodCall.getMethodId ( ) ; if ( id.containsMarker ( com.android.jack.transformations.ast.inner.NeedsDispatchAdjustment.class ) ) { com.android.jack.ir.ast.JExpression instance = methodCall.getInstance ( ) ; if ( instance != null ) { tr.append ( new com.android.jack.transformations.request.Remove ( instance ) ) ; tr.append ( new com.android.jack.transformations.request.AppendArgument ( methodCall , instance ) ) ; } } return super . visit ( methodCall ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall methodCall ) { com.android.jack.ir.ast.JMethodIdWide id = methodCall.getMethodIdWide ( ) ; if ( id.containsMarker ( com.android.jack.transformations.ast.inner.NeedsDispatchAdjustment.class ) ) { com.android.jack.ir.ast.JExpression instance = methodCall.getInstance ( ) ; if ( instance != null ) { tr.append ( new com.android.jack.transformations.request.Remove ( instance ) ) ; tr.append ( new com.android.jack.transformations.request.AppendArgument ( methodCall , instance ) ) ; } } return super . visit ( methodCall ) ; }
Source:
public void allowLowRssiIfDataIsMoving ( ) throws java.lang.Exception { mWifiInfo.setRssi ( ( - 80 ) ) ; mWifiInfo.setLinkSpeed ( 6 ) ; mWifiInfo.txSuccessRate = 5.1 ; mWifiInfo.rxSuccessRate = 5.1 ; for ( int i = 0 ; i < 10 ; i ++ ) { mWifiScoreReport.calculateAndReportScore ( mWifiInfo , mNetworkAgent , 0 , mWifiMetrics ) ; } int score = mWifiInfo.score ; org.junit.Assert.assertTrue ( ( score > ( com.android.server.wifi.WifiScoreReportTest.CELLULAR_THRESHOLD_SCORE ) ) ) ; }

Target:
public void allowLowRssiIfDataIsMoving ( ) throws java.lang.Exception { mWifiInfo.setRssi ( ( - 80 ) ) ; mWifiInfo.setLinkSpeed ( 6 ) ; mWifiInfo.txSuccessRate = 5.1 ; mWifiInfo.rxSuccessRate = 5.1 ; for ( int i = 0 ; i < 10 ; i ++ ) { mWifiScoreReport.calculateAndReportScore ( mWifiInfo , mNetworkAgent , mAggr , mWifiMetrics ) ; } int score = mWifiInfo.score ; org.junit.Assert.assertTrue ( ( score > ( com.android.server.wifi.WifiScoreReportTest.CELLULAR_THRESHOLD_SCORE ) ) ) ; }
Source:
public static void assertEquals ( java.lang.Object expected , java.lang.Object actual ) { if ( ( expected == null ) && ( actual == null ) ) return ; if ( ( expected != null ) && ( expected.equals ( actual ) ) ) return ; throw new java.lang.RuntimeException ( "AssertionFailedError: not the same" ) ; }

Target:
public static void assertEquals ( java.lang.Object expected , java.lang.Object actual ) { if ( ( expected == null ) && ( actual == null ) ) return ; if ( ( expected != null ) && ( expected.equals ( actual ) ) ) return ; throw new dot.junit.AssertionFailedException ( ( ( ( "not the same: " + expected ) + " vs " ) + actual ) ) ; }
Source:
public void testEnded ( com.android.ddmlib.testrunner.TestIdentifier test , java.util.Map < java.lang.String , java.lang.String > testMetrics ) { if ( ! ( mFailedTests.remove ( test ) ) ) { if ( ( mLogger ) != null ) { mLogger.info ( java.lang.String.format ( "\n%1$s: %2$s > %3$s [32mSUCCESS [0m" , mDeviceName , test.getClassName ( ) , test.getTestName ( ) ) ) ; } } super . testEnded ( test , testMetrics ) ; }

Target:
public void testEnded ( com.android.ddmlib.testrunner.TestIdentifier test , java.util.Map < java.lang.String , java.lang.String > testMetrics ) { if ( ! ( mFailedTests.remove ( test ) ) ) { if ( ( mLogger ) != null ) { mLogger.info ( java.lang.String.format ( "\n%1$s > %2$s[%3$s] [32mSUCCESS [0m" , test.getClassName ( ) , test.getTestName ( ) , mDeviceName ) ) ; } } super . testEnded ( test , testMetrics ) ; }
Source:
private void terminateCall ( ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "terminateCall" ) ; } int action = HeadsetClientHalConstants.CALL_ACTION_CHUP ; android.bluetooth.BluetoothHeadsetClientCall c = getCall ( BluetoothHeadsetClientCall.CALL_STATE_DIALING , BluetoothHeadsetClientCall.CALL_STATE_ALERTING , BluetoothHeadsetClientCall.CALL_STATE_ACTIVE ) ; if ( c != null ) { if ( handleCallActionNative ( getByteAddress ( mCurrentDevice ) , action , 0 ) ) { addQueuedAction ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TERMINATE_CALL , action ) ; } else { android.util.Log.e ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "ERROR: Couldn't terminate outgoing call" ) ; } } }

Target:
private void terminateCall ( ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "terminateCall" ) ; } int action = HeadsetClientHalConstants.CALL_ACTION_CHUP ; android.bluetooth.BluetoothHeadsetClientCall c = getCall ( BluetoothHeadsetClientCall.CALL_STATE_DIALING , BluetoothHeadsetClientCall.CALL_STATE_ALERTING , BluetoothHeadsetClientCall.CALL_STATE_ACTIVE ) ; if ( c != null ) { if ( com.android.bluetooth.hfpclient.NativeInterface.handleCallActionNative ( getByteAddress ( mCurrentDevice ) , action , 0 ) ) { addQueuedAction ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TERMINATE_CALL , action ) ; } else { android.util.Log.e ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "ERROR: Couldn't terminate outgoing call" ) ; } } }
Source:
private static int log10Floor ( int x ) { int y = com.google.common.math.IntMath.MAX_LOG10_FOR_LEADING_ZEROS [ java.lang.Integer.numberOfLeadingZeros ( x ) ] ; int sgn = ( x - ( com.google.common.math.IntMath.POWERS_OF_10 [ y ] ) ) > > > ( ( java.lang.Integer.SIZE ) - 1 ) ; return y - sgn ; }

Target:
private static int log10Floor ( int x ) { int y = com.google.common.math.IntMath.maxLog10ForLeadingZeros [ java.lang.Integer.numberOfLeadingZeros ( x ) ] ; return y - ( com.google.common.math.IntMath.lessThanBranchFree ( x , com.google.common.math.IntMath.powersOf10 [ y ] ) ) ; }
Source:
public void testDismissKeyguardActivity ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } gotoKeyguard ( ) ; mAmWmState.computeState ( mDevice , null ) ; assertTrue ( mAmWmState.getAmState ( ) . getKeyguardControllerState ( ) . keyguardShowing ) ; launchActivity ( "DismissKeyguardActivity" ) ; mAmWmState.waitForKeyguardShowingAndOccluded ( mDevice ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "DismissKeyguardActivity" } ) ; mAmWmState.assertVisibility ( "DismissKeyguardActivity" , true ) ; assertShowingAndOccluded ( ) ; }

Target:
public void testDismissKeyguardActivity ( ) throws java.lang.Exception { if ( ! ( supportsKeyguard ( ) ) ) { return ; } gotoKeyguard ( ) ; mAmWmState.computeState ( mDevice , null ) ; assertTrue ( mAmWmState.getAmState ( ) . getKeyguardControllerState ( ) . keyguardShowing ) ; launchActivity ( "DismissKeyguardActivity" ) ; mAmWmState.waitForKeyguardShowingAndOccluded ( mDevice ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "DismissKeyguardActivity" } ) ; mAmWmState.assertVisibility ( "DismissKeyguardActivity" , true ) ; assertShowingAndOccluded ( ) ; }
Source:
public static org.jetbrains.plugins.github.api.GithubIssue getIssue ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.api.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user , @ org.jetbrains.annotations.NotNull java.lang.String repo , @ org.jetbrains.annotations.NotNull java.lang.String id ) throws java.io.IOException { java.lang.String path = ( ( ( ( "/repos/" + user ) + "/" ) + repo ) + "/issues/" ) + id ; com.google.gson.JsonElement result = org.jetbrains.plugins.github.api.GithubApiUtil.getRequest ( auth , path ) ; return org.jetbrains.plugins.github.api.GithubApiUtil.createDataFromRaw ( org.jetbrains.plugins.github.api.GithubApiUtil.fromJson ( result , org.jetbrains.plugins.github.api.GithubIssueRaw.class ) , org.jetbrains.plugins.github.api.GithubIssue.class ) ; }

Target:
public static org.jetbrains.plugins.github.api.GithubIssue getIssue ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.util.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user , @ org.jetbrains.annotations.NotNull java.lang.String repo , @ org.jetbrains.annotations.NotNull java.lang.String id ) throws java.io.IOException { java.lang.String path = ( ( ( ( "/repos/" + user ) + "/" ) + repo ) + "/issues/" ) + id ; com.google.gson.JsonElement result = org.jetbrains.plugins.github.api.GithubApiUtil.getRequest ( auth , path ) ; return org.jetbrains.plugins.github.api.GithubApiUtil.createDataFromRaw ( org.jetbrains.plugins.github.api.GithubApiUtil.fromJson ( result , org.jetbrains.plugins.github.api.GithubIssueRaw.class ) , org.jetbrains.plugins.github.api.GithubIssue.class ) ; }
Source:
public void test_getContentLength ( ) { assertEquals ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.testString.getBytes ( ) . length , fileURLCon.getContentLength ( ) ) ; assertEquals ( Support_TestWebData.test1.length , uc.getContentLength ( ) ) ; assertEquals ( Support_TestWebData.test2.length , uc2.getContentLength ( ) ) ; assertNotNull ( jarURLCon.getContentLength ( ) ) ; assertNotNull ( gifURLCon.getContentLength ( ) ) ; }

Target:
public void test_getContentLength ( ) throws java.lang.Exception { assertEquals ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.testString.getBytes ( ) . length , fileURLCon.getContentLength ( ) ) ; assertEquals ( Support_TestWebData.test1.length , uc.getContentLength ( ) ) ; assertEquals ( Support_TestWebData.test2.length , uc2.getContentLength ( ) ) ; assertNotNull ( jarURLCon.getContentLength ( ) ) ; assertNotNull ( gifURLCon.getContentLength ( ) ) ; fileURLCon.getInputStream ( ) . close ( ) ; }
Source:
public final void testPrettyName ( ) { assertEquals ( null , com.android.ide.common.layout.BaseView.prettyName ( null ) ) ; assertEquals ( "" , com.android.ide.common.layout.BaseView.prettyName ( "" ) ) ; assertEquals ( "Foo" , com.android.ide.common.layout.BaseView.prettyName ( "foo" ) ) ; assertEquals ( "Foo bar" , com.android.ide.common.layout.BaseView.prettyName ( "foo_bar" ) ) ; }

Target:
public final void testPrettyName ( ) { assertEquals ( null , com.android.ide.common.layout.BaseViewRule.prettyName ( null ) ) ; assertEquals ( "" , com.android.ide.common.layout.BaseViewRule.prettyName ( "" ) ) ; assertEquals ( "Foo" , com.android.ide.common.layout.BaseViewRule.prettyName ( "foo" ) ) ; assertEquals ( "Foo bar" , com.android.ide.common.layout.BaseViewRule.prettyName ( "foo_bar" ) ) ; }
Source:
public void onPlayDtmfTone ( char c ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( ( ( "onPlayDtmfTone " + c ) + " " ) + ( mCurrentCall ) ) ) ; if ( ( ! ( mClosed ) ) && ( ( mHeadsetProfile ) != null ) ) { mHeadsetProfile.sendDTMF ( mDevice , ( ( byte ) ( c ) ) ) ; } }

Target:
public void onPlayDtmfTone ( char c ) { if ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( ( ( "onPlayDtmfTone " + c ) + " " ) + ( mCurrentCall ) ) ) ; } if ( ! ( mClosed ) ) { mHeadsetProfile.sendDTMF ( mDevice , ( ( byte ) ( c ) ) ) ; } }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( ( "LibraryBundle{" + "mBundle=" ) + ( mBundle ) ) + ", mBundleFolder=" ) + ( mBundleFolder ) ) + ", mName='" ) + ( mName ) ) + '\'' ) + ", mProjectPath='" ) + ( mProjectPath ) ) + '\'' ) + '}' ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "mBundle" , mBundle ) . add ( "mBundleFolder" , mBundleFolder ) . add ( "mName" , mName ) . add ( "mProjectPath" , mProjectPath ) . toString ( ) ; }
Source:
public boolean isPossibleShortNumberForRegion ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number , java.lang.String regionDialingFrom ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionDialingFrom ) ; if ( phoneMetadata == null ) { return false ; } return matcherApi.matchesPossibleNumber ( com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) , phoneMetadata.getGeneralDesc ( ) ) ; }

Target:
public boolean isPossibleShortNumberForRegion ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number , java.lang.String regionDialingFrom ) { if ( ! ( regionDialingFromMatchesNumber ( number , regionDialingFrom ) ) ) { return false ; } com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionDialingFrom ) ; if ( phoneMetadata == null ) { return false ; } return matcherApi.matchesPossibleNumber ( com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) , phoneMetadata.getGeneralDesc ( ) ) ; }
Source:
public void eventSubscribeTerminated ( short sessionId , android.hardware.wifi.V1_0.WifiNanStatus status ) { if ( com.android.server.wifi.aware.WifiAwareNativeCallback.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNativeCallback.TAG , ( ( ( "eventSubscribeTerminated: sessionId=" + sessionId ) + ", status=" ) + ( com.android.server.wifi.aware.WifiAwareNativeCallback.statusString ( status ) ) ) ) ; } mWifiAwareStateManager.onSessionTerminatedNotification ( sessionId , status.status , false ) ; }

Target:
public void eventPublishTerminated ( byte sessionId , android.hardware.wifi.V1_0.WifiNanStatus status ) { if ( com.android.server.wifi.aware.WifiAwareNativeCallback.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNativeCallback.TAG , ( ( ( "eventPublishTerminated: sessionId=" + sessionId ) + ", status=" ) + ( com.android.server.wifi.aware.WifiAwareNativeCallback.statusString ( status ) ) ) ) ; } mWifiAwareStateManager.onSessionTerminatedNotification ( sessionId , status.status , true ) ; }
Source:
public void handleMessage ( android.os.Message msg , @ android.support.annotation.NonNull com.android.tv.data.epg.EpgFetcher epgFetcher ) { switch ( msg.what ) { case com.android.tv.data.epg.EpgFetcher.MSG_FETCH_EPG : epgFetcher.onFetchEpg ( ) ; break ; default : super . handleMessage ( msg ) ; break ; } }

Target:
public void handleMessage ( android.os.Message msg , @ android.support.annotation.NonNull com.android.tv.data.epg.EpgFetcher epgFetcher ) { switch ( msg.what ) { case com.android.tv.data.epg.EpgFetcher.MSG_FETCH_EPG : epgFetcher.onFetchEpg ( ) ; break ; case com.android.tv.data.epg.EpgFetcher.MSG_FAST_FETCH_EPG : epgFetcher.onFetchEpg ( true ) ; break ; default : super . handleMessage ( msg ) ; break ; } }
Source:
private void reset ( ) { final org.conscrypt.OpenSSLKey macKey = this . macKey ; if ( macKey == null ) { return ; } org.conscrypt.NativeCrypto.EVP_DigestSignInit ( ctx.getContext ( ) , evp_md , macKey.getPkeyContext ( ) ) ; }

Target:
private final void resetContext ( ) { org.conscrypt.OpenSSLDigestContext ctxLocal = new org.conscrypt.OpenSSLDigestContext ( org.conscrypt.NativeCrypto.EVP_MD_CTX_create ( ) ) ; org.conscrypt.NativeCrypto.EVP_MD_CTX_init ( ctxLocal ) ; final org.conscrypt.OpenSSLKey macKey = this . macKey ; if ( macKey != null ) { org.conscrypt.NativeCrypto.EVP_DigestSignInit ( ctxLocal , evp_md , macKey.getPkeyContext ( ) ) ; } this . ctx = ctxLocal ; }
Source:
public void testHasPackageNoPackage ( ) { android.content.Intent intent = new android.content.Intent ( ) ; assertFalse ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( "com.foo.bar" ) . matches ( intent ) ) ; assertFalse ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( org.hamcrest.Matchers.equalTo ( "com.foo.bar" ) ) . matches ( intent ) ) ; }

Target:
public void hasPackageMatches ( ) { android.content.Intent intent = new android.content.Intent ( ) . setPackage ( "com.foo.bar" ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( "com.foo.bar" ) . matches ( intent ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( org.hamcrest.Matchers.equalTo ( "com.foo.bar" ) ) . matches ( intent ) ) ; }
Source:
private static char bcdToChar ( byte b ) { if ( b < 10 ) { return ( ( char ) ( '0' + b ) ) ; } else switch ( b ) { case 10 : return '*' ; case 11 : return '#' ; case 12 : return android.telephony.PhoneNumberUtils.PAUSE ; case 13 : return android.telephony.PhoneNumberUtils.WILD ; default : return 0 ; } }

Target:
public static java.lang.String calledPartyBCDToString ( byte [ ] bytes , int offset , int length ) { return android.telephony.PhoneNumberUtils.calledPartyBCDToString ( bytes , offset , length , android.telephony.PhoneNumberUtils.BCD_EXTENDED_TYPE_EF_ADN ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mDevice = getDevice ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mDevice = getDevice ( ) ; sepolicyAnalyze = copyResourceToTempFile ( "/sepolicy-analyze" ) ; sepolicyAnalyze.setExecutable ( true ) ; devicePolicyFile = java.io.File.createTempFile ( "sepolicy" , ".tmp" ) ; devicePolicyFile.deleteOnExit ( ) ; mDevice.executeAdbCommand ( "pull" , "/sys/fs/selinux/policy" , devicePolicyFile.getAbsolutePath ( ) ) ; }
Source:
public char [ ] formatLong ( long value , java.text.FieldPosition field ) { libcore.icu.NativeDecimalFormat.FieldPositionIterator fpi = libcore.icu.NativeDecimalFormat.FieldPositionIterator.forFieldPosition ( field ) ; char [ ] result = libcore.icu.NativeDecimalFormat.formatLong ( this . address , value , fpi ) ; if ( fpi != null ) { libcore.icu.NativeDecimalFormat.FieldPositionIterator.setFieldPosition ( fpi , field ) ; } return result ; }

Target:
public char [ ] formatBigInteger ( java.math.BigInteger value , java.text.FieldPosition field ) { libcore.icu.NativeDecimalFormat.FieldPositionIterator fpi = libcore.icu.NativeDecimalFormat.FieldPositionIterator.forFieldPosition ( field ) ; char [ ] result = libcore.icu.NativeDecimalFormat.formatDigitList ( this . address , value.toString ( 10 ) , fpi ) ; if ( ( fpi != null ) && ( field != null ) ) { libcore.icu.NativeDecimalFormat.updateFieldPosition ( field , fpi ) ; } return result ; }
Source:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { com.android.tools.lint.detector.api.Project mainProject = context.getMainProject ( ) ; if ( mainProject.isGradleProject ( ) ) { java.lang.Boolean appCompat = mainProject.dependsOn ( "com.android.support:appcompat-v7" ) ; if ( com.android.SdkConstants.ANDROID_URI.equals ( attribute.getNamespaceURI ( ) ) ) { if ( ( context.getFolderVersion ( ) ) >= 14 ) { return ; } if ( appCompat == ( java.lang.Boolean.TRUE ) ) { context.report ( com.android.tools.lint.checks.AppCompatResourceDetector.ISSUE , attribute , context.getLocation ( attribute ) , ( "Should use app:showAsAction with the appcompat library with " + "xmlns:app=\"http://schemas.android.com/apk/res-auto\"" ) , null ) ; } } else { if ( appCompat == ( java.lang.Boolean.FALSE ) ) { context.report ( com.android.tools.lint.checks.AppCompatResourceDetector.ISSUE , attribute , context.getLocation ( attribute ) , "Should use android:showAsAction when not using the appcompat library" , null ) ; } } } }

Target:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { com.android.tools.lint.detector.api.Project mainProject = context.getMainProject ( ) ; if ( mainProject.isGradleProject ( ) ) { java.lang.Boolean appCompat = mainProject.dependsOn ( "com.android.support:appcompat-v7" ) ; if ( com.android.SdkConstants.ANDROID_URI.equals ( attribute.getNamespaceURI ( ) ) ) { if ( ( context.getFolderVersion ( ) ) >= 14 ) { return ; } if ( appCompat == ( java.lang.Boolean.TRUE ) ) { context.report ( com.android.tools.lint.checks.AppCompatResourceDetector.ISSUE , attribute , context.getLocation ( attribute ) , ( "Should use `app:showAsAction` with the appcompat library with " + "`xmlns:app=\"http://schemas.android.com/apk/res-auto\"`" ) , null ) ; } } else { if ( appCompat == ( java.lang.Boolean.FALSE ) ) { context.report ( com.android.tools.lint.checks.AppCompatResourceDetector.ISSUE , attribute , context.getLocation ( attribute ) , "Should use `android:showAsAction` when not using the appcompat library" , null ) ; } } } }
Source:
public void copyFrom ( short [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFrom" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFromUnchecked ( int [ ] d ) { copyFromUnchecked ( d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
private static void assertMultipleInstanceCharacteristics ( java.lang.Object r1 , java.lang.Object r2 ) throws java.lang.Exception { org.junit.Assert.assertNotSame ( r1 , r2 ) ; org.junit.Assert.assertTrue ( ( ! ( r1.equals ( r2 ) ) ) ) ; java.lang.Class < ? > lambda1Class = r1.getClass ( ) ; java.lang.Class < ? > lambda2Class = r2.getClass ( ) ; org.junit.Assert.assertNotSame ( lambda1Class , lambda2Class ) ; }

Target:
private static void assertSerializableLambdaCharacteristics ( java.lang.Object r1 ) throws java.lang.Exception { org.junit.Assert.assertTrue ( ( r1 instanceof java.io.Serializable ) ) ; java.lang.Object deserializedR1 = com.android.jack.java8.lambda.test035.jack.Tests.roundtripSerialization ( r1 ) ; org.junit.Assert.assertFalse ( deserializedR1.equals ( r1 ) ) ; org.junit.Assert.assertNotSame ( deserializedR1 , r1 ) ; }
Source:
public com.android.util.Pair < java.lang.Boolean , java.io.File > installPlatformPackage ( int apiLevel ) { mPackageFilter = com.android.sdkuilib.internal.repository.sdkman2.AdtUpdateDialog.createPlatformFilter ( apiLevel ) ; open ( ) ; java.io.File installPath = null ; if ( ( mResultPaths ) != null ) { for ( java.util.Map.Entry < java.lang.Package , java.io.File > entry : mResultPaths.entrySet ( ) ) { if ( ( entry.getKey ( ) ) instanceof com.android.sdklib.internal.repository.PlatformPackage ) { installPath = entry.getValue ( ) ; break ; } } } return com.android.util.Pair.of ( mResultCode , installPath ) ; }

Target:
public com.android.util.Pair < java.lang.Boolean , java.io.File > installPlatformPackage ( int apiLevel ) { mPackageFilter = com.android.sdkuilib.internal.repository.sdkman2.AdtUpdateDialog.createPlatformFilter ( apiLevel ) ; open ( ) ; java.io.File installPath = null ; if ( ( mResultPaths ) != null ) { for ( java.util.Map.Entry < java.lang.Package , java.io.File > entry : mResultPaths.entrySet ( ) ) { if ( ( entry.getKey ( ) ) instanceof com.android.sdklib.internal.repository.packages.PlatformPackage ) { installPath = entry.getValue ( ) ; break ; } } } return com.android.util.Pair.of ( mResultCode , installPath ) ; }
Source:
private static long createTime ( android.icu.util.TimeZone timeZone , int year , int monthOfYear , int dayOfMonth , int hourOfDay , int minuteOfHour , int secondOfMinute ) { android.icu.util.Calendar cal = new android.icu.util.GregorianCalendar ( timeZone ) ; cal.clear ( ) ; cal.set ( year , ( monthOfYear - 1 ) , dayOfMonth , hourOfDay , minuteOfHour , secondOfMinute ) ; return cal.getTimeInMillis ( ) ; }

Target:
private static long createTime ( java.util.TimeZone timeZone , int year , int monthOfYear , int dayOfMonth , int hourOfDay , int minuteOfHour , int secondOfMinute ) { java.util.Calendar cal = new java.util.GregorianCalendar ( timeZone ) ; cal.clear ( ) ; cal.set ( year , ( monthOfYear - 1 ) , dayOfMonth , hourOfDay , minuteOfHour , secondOfMinute ) ; return cal.getTimeInMillis ( ) ; }
Source:
private void configureFilterParamter ( int clientIf , com.android.bluetooth.gatt.ScanClient client , int featureSelection , int filterIndex ) { int deliveryMode = getDeliveryMode ( client ) ; int rssiThreshold = java.lang.Byte.MIN_VALUE ; int timeout = getOnfoundLostTimeout ( client ) ; gattClientScanFilterParamAddNative ( clientIf , filterIndex , featureSelection , com.android.bluetooth.gatt.ScanManager.ScanNative.LIST_LOGIC_TYPE , com.android.bluetooth.gatt.ScanManager.ScanNative.FILTER_LOGIC_TYPE , rssiThreshold , rssiThreshold , deliveryMode , timeout , timeout , com.android.bluetooth.gatt.ScanManager.ScanNative.ONFOUND_SIGHTINGS ) ; }

Target:
private void configureFilterParamter ( int clientIf , com.android.bluetooth.gatt.ScanClient client , int featureSelection , int filterIndex , int num_of_tracking_entries ) { int deliveryMode = getDeliveryMode ( client ) ; int rssiThreshold = java.lang.Byte.MIN_VALUE ; int timeout = getOnfoundLostTimeout ( client ) ; com.android.bluetooth.gatt.FilterParams FiltValue = new com.android.bluetooth.gatt.FilterParams ( clientIf , filterIndex , featureSelection , com.android.bluetooth.gatt.ScanManager.ScanNative.LIST_LOGIC_TYPE , com.android.bluetooth.gatt.ScanManager.ScanNative.FILTER_LOGIC_TYPE , rssiThreshold , rssiThreshold , deliveryMode , timeout , timeout , com.android.bluetooth.gatt.ScanManager.ScanNative.ONFOUND_SIGHTINGS , num_of_tracking_entries ) ; gattClientScanFilterParamAddNative ( FiltValue ) ; }
Source:
public void methodAbstract ( ) throws java.lang.Exception { com.android.jack.ir.ast.JDefinedClassOrInterface type = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( session.getLookup ( ) . getType ( classSignature ) ) ) ; junit.framework.Assert.assertNotNull ( type ) ; com.android.jack.ir.ast.JMethod method = com.android.jack.TestTools.getMethod ( type , "methodAbstract()V" ) ; junit.framework.Assert.assertNotNull ( method ) ; junit.framework.Assert.assertTrue ( method.isAbstract ( ) ) ; }

Target:
public void methodAbstract ( ) throws java.lang.Exception { com.android.jack.ir.ast.JDefinedClassOrInterface type = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( session.getLookup ( ) . getType ( com.android.jack.frontend.MethodModifierTest.classSignature ) ) ) ; junit.framework.Assert.assertNotNull ( type ) ; com.android.jack.ir.ast.JMethod method = com.android.jack.TestTools.getMethod ( type , "methodAbstract()V" ) ; junit.framework.Assert.assertNotNull ( method ) ; junit.framework.Assert.assertTrue ( method.isAbstract ( ) ) ; }
Source:
private void showAvdManagerWindow ( ) { try { com.android.sdkuilib.internal.widgets.MessageBoxLog errorLogger = new com.android.sdkuilib.internal.widgets.MessageBoxLog ( "AVD Manager" , org.eclipse.swt.widgets.Display.getCurrent ( ) , true ) ; com.android.sdkuilib.internal.repository.AvdManagerWindowImpl1 window = new com.android.sdkuilib.internal.repository.AvdManagerWindowImpl1 ( null , errorLogger , mOsSdkFolder , com.android.sdkuilib.repository.UpdaterWindow.InvocationContext.STANDALONE ) ; window.registerPage ( com.android.sdkmanager.internal.repository.SettingsPage.class , UpdaterPage.Purpose.SETTINGS ) ; window.registerPage ( com.android.sdkmanager.internal.repository.AboutPage.class , UpdaterPage.Purpose.ABOUT_BOX ) ; window.open ( ) ; errorLogger.displayResult ( true ) ; } catch ( java.lang.Exception e ) { e.printStackTrace ( ) ; } }

Target:
private void showAvdManagerWindow ( ) { try { com.android.sdkuilib.internal.widgets.MessageBoxLog errorLogger = new com.android.sdkuilib.internal.widgets.MessageBoxLog ( "AVD Manager" , org.eclipse.swt.widgets.Display.getCurrent ( ) , true ) ; com.android.sdkuilib.internal.repository.AvdManagerWindowImpl1 window = new com.android.sdkuilib.internal.repository.AvdManagerWindowImpl1 ( null , errorLogger , mOsSdkFolder , AvdManagerWindowImpl1.AvdInvocationContext.STANDALONE ) ; window.registerPage ( com.android.sdkmanager.internal.repository.SettingsPage.class , UpdaterPage.Purpose.SETTINGS ) ; window.registerPage ( com.android.sdkmanager.internal.repository.AboutPage.class , UpdaterPage.Purpose.ABOUT_BOX ) ; window.open ( ) ; errorLogger.displayResult ( true ) ; } catch ( java.lang.Exception e ) { e.printStackTrace ( ) ; } }
Source:
private static void setWifiCountryCodeFromMcc ( android.content.Context context , int mcc ) { java.lang.String country = com.android.internal.telephony.MccTable.countryCodeForMcc ( mcc ) ; if ( ! ( country.isEmpty ( ) ) ) { android.util.Log.d ( com.android.internal.telephony.MccTable.LOG_TAG , ( "WIFI_COUNTRY_CODE set to " + country ) ) ; android.net.wifi.WifiManager wM = ( ( android.net.wifi.WifiManager ) ( context.getSystemService ( Context.WIFI_SERVICE ) ) ) ; wM.setCountryCode ( country , true ) ; } }

Target:
private static void setWifiCountryCodeFromMcc ( android.content.Context context , int mcc ) { java.lang.String country = com.android.internal.telephony.MccTable.countryCodeForMcc ( mcc ) ; if ( ! ( country.isEmpty ( ) ) ) { android.telephony.Rlog.d ( com.android.internal.telephony.MccTable.LOG_TAG , ( "WIFI_COUNTRY_CODE set to " + country ) ) ; android.net.wifi.WifiManager wM = ( ( android.net.wifi.WifiManager ) ( context.getSystemService ( Context.WIFI_SERVICE ) ) ) ; wM.setCountryCode ( country , true ) ; } }
Source:
public void onLinkPropertiesChanged ( android.net.Network network , android.net.LinkProperties linkProperties ) { com.googlecode.android_scripting.Log.d ( "NetworkCallback onLinkPropertiesChanged" ) ; if ( ( ( mEvents ) & ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_LINK_PROPERTIES_CHANGED ) ) == ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_LINK_PROPERTIES_CHANGED ) ) { mEventFacade.postEvent ( ConnectivityConstants.EventNetworkCallback , new com.googlecode.android_scripting.facade.ConnectivityEvents.NetworkCallbackEventOnLinkPropertiesChanged ( mId , com.googlecode.android_scripting.facade.ConnectivityManagerFacade.getNetworkCallbackEventString ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_LINK_PROPERTIES_CHANGED ) , linkProperties.getInterfaceName ( ) ) ) ; } }

Target:
public void onLinkPropertiesChanged ( android.net.Network network , android.net.LinkProperties linkProperties ) { com.googlecode.android_scripting.Log.d ( "NetworkCallback onLinkPropertiesChanged" ) ; if ( ( ( mEvents ) & ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_LINK_PROPERTIES_CHANGED ) ) == ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_LINK_PROPERTIES_CHANGED ) ) { mEventFacade.postEvent ( TelephonyConstants.EventNetworkCallback , new com.googlecode.android_scripting.facade.telephony.TelephonyEvents.NetworkCallbackEvent ( mId , com.googlecode.android_scripting.facade.ConnectivityManagerFacade.getNetworkCallbackEventString ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_LINK_PROPERTIES_CHANGED ) , TelephonyEvents.NetworkCallbackEvent.INVALID_VALUE , TelephonyEvents.NetworkCallbackEvent.INVALID_VALUE ) ) ; } }
Source:
public void test18566 ( ) throws java.lang.Exception { java.security.spec.X509EncodedKeySpec keySpec = new java.security.spec.X509EncodedKeySpec ( libcore.java.security.SignatureTest.PK_BYTES ) ; java.security.KeyFactory keyFactory = java.security.KeyFactory.getInstance ( "RSA" ) ; java.security.PublicKey pk = keyFactory.generatePublic ( keySpec ) ; java.security.Signature sig = java.security.Signature.getInstance ( "SHA256withRSA" ) ; sig.initVerify ( pk ) ; sig.update ( libcore.java.security.SignatureTest.CONTENT ) ; assertTrue ( sig.verify ( libcore.java.security.SignatureTest.SIGNATURE ) ) ; }

Target:
public void test18566_AlgorithmOid_MissingNull_Failure ( ) throws java.lang.Exception { java.security.spec.X509EncodedKeySpec keySpec = new java.security.spec.X509EncodedKeySpec ( libcore.java.security.SignatureTest.PK_BYTES ) ; java.security.KeyFactory keyFactory = java.security.KeyFactory.getInstance ( "RSA" ) ; java.security.PublicKey pk = keyFactory.generatePublic ( keySpec ) ; java.security.Signature sig = java.security.Signature.getInstance ( "SHA256withRSA" ) ; sig.initVerify ( pk ) ; sig.update ( libcore.java.security.SignatureTest.CONTENT ) ; assertFalse ( sig.verify ( libcore.java.security.SignatureTest.SIGNATURE ) ) ; }
Source:
public static com.android.server.wifi.aware.WifiAwareNative getInstance ( ) { com.android.server.wifi.WifiNative dummy = com.android.server.wifi.WifiNative.getWlanNativeInterface ( ) ; if ( dummy == null ) { android.util.Log.w ( com.android.server.wifi.aware.WifiAwareNative.TAG , "can't get access to WifiNative" ) ; return null ; } if ( ( com.android.server.wifi.aware.WifiAwareNative.sWifiAwareNativeSingleton ) == null ) { com.android.server.wifi.aware.WifiAwareNative.sWifiAwareNativeSingleton = new com.android.server.wifi.aware.WifiAwareNative ( ) ; com.android.server.wifi.aware.WifiAwareNative.registerAwareNatives ( ) ; } return com.android.server.wifi.aware.WifiAwareNative.sWifiAwareNativeSingleton ; }

Target:
public void setStateManager ( com.android.server.wifi.aware.WifiAwareStateManager awareStateManager ) { com.android.server.wifi.aware.WifiAwareNative.sWifiAwareStateManager = awareStateManager ; }
Source:
com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir getVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException { com.android.sched.vfs.BaseVElement element = parent.getFromCache ( name ) ; if ( element != null ) { if ( element.isVDir ( ) ) { return ( ( com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir ) ( element ) ) ; } else { throw new com.android.sched.util.file.NotDirectoryException ( getVDirLocation ( parent , name ) ) ; } } else { throw new com.android.sched.util.file.NoSuchFileException ( getVDirLocation ( parent , name ) ) ; } }

Target:
com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir getVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException { com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir vDir = getVDirFromCache ( parent , name ) ; if ( vDir != null ) { return vDir ; } else { throw new com.android.sched.util.file.NoSuchFileException ( getVDirLocation ( parent , name ) ) ; } }
Source:
public void setBluetoothTethering ( boolean value ) { if ( android.bluetooth.BluetoothPan.DBG ) android.bluetooth.BluetoothPan.log ( ( ( "setBluetoothTethering(" + value ) + ")" ) ) ; if ( ( ( mPanService ) != null ) && ( isEnabled ( ) ) ) { try { mPanService.setBluetoothTethering ( value ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothPan.TAG , ( "Stack:" + ( android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ) ) ; } } }

Target:
public void setBluetoothTethering ( boolean value ) { if ( android.bluetooth.BluetoothPan.DBG ) android.bluetooth.BluetoothPan.log ( ( ( "setBluetoothTethering(" + value ) + ")" ) ) ; final android.bluetooth.IBluetoothPan service = mPanService ; if ( ( service != null ) && ( isEnabled ( ) ) ) { try { service.setBluetoothTethering ( value ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothPan.TAG , ( "Stack:" + ( android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ) ) ; } } }
Source:
public static java.security.KeyFactory getInstance ( java.lang.String algorithm , java.security.Provider provider ) throws java.security.NoSuchAlgorithmException { sun.security.jca.GetInstance.Instance instance = sun.security.jca.GetInstance.getInstance ( "KeyFactory" , java.security.KeyFactorySpi.class , algorithm , provider ) ; return new java.security.KeyFactory ( ( ( java.security.KeyFactorySpi ) ( instance.impl ) ) , instance.provider , algorithm ) ; }

Target:
public static java.security.KeyFactory getInstance ( java.lang.String algorithm , java.security.Provider provider ) throws java.security.NoSuchAlgorithmException { sun.security.jca.Providers.checkBouncyCastleDeprecation ( provider , "KeyFactory" , algorithm ) ; sun.security.jca.GetInstance.Instance instance = sun.security.jca.GetInstance.getInstance ( "KeyFactory" , java.security.KeyFactorySpi.class , algorithm , provider ) ; return new java.security.KeyFactory ( ( ( java.security.KeyFactorySpi ) ( instance.impl ) ) , instance.provider , algorithm ) ; }
Source:
public void testGetValues013_String ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value expectedValue = getStaticFieldValue ( classID , "STRING_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointString" , StackTrace002Debuggee.STRING_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointString" ) ; methodInfo.addVariable ( "param" , expectedValue ) ; runStackFrameTest ( tester ) ; }

Target:
public void testGetValues011_Class ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = getStaticFieldValue ( classID , "CLASS_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.CLASS_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointClass" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointClass" ) ; methodInfo.addVariable ( "param" , oldValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
public static java.lang.String intToDoubleToIntPrint ( int value ) { double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }

Target:
public static java.lang.String $noinline$intToDoubleToIntPrint ( int value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }
Source:
private void initializeGlobals ( com.android.rs.test.RenderScript RS , com.android.rs.test.ScriptC_single_source_script s ) { com.android.rs.test.Type.Builder i32TypeBuilder = new com.android.rs.test.Type.Builder ( RS , com.android.rs.test.Element.I32 ( RS ) ) ; int X = 1024 ; int Y = 768 ; s.set_dimX ( X ) ; s.set_dimY ( Y ) ; i32TypeBuilder.setX ( X ) . setY ( Y ) ; testAllocation1 = com.android.rs.test.Allocation.createTyped ( RS , i32TypeBuilder.create ( ) ) ; testAllocation2 = com.android.rs.test.Allocation.createTyped ( RS , i32TypeBuilder.create ( ) ) ; }

Target:
private void initializeGlobals ( android.renderscript.RenderScript RS , com.android.rs.test.ScriptC_single_source_script s ) { android.renderscript.Type.Builder i32TypeBuilder = new android.renderscript.Type.Builder ( RS , android.renderscript.Element.I32 ( RS ) ) ; int X = 1024 ; int Y = 768 ; s.set_dimX ( X ) ; s.set_dimY ( Y ) ; i32TypeBuilder.setX ( X ) . setY ( Y ) ; testAllocation1 = android.renderscript.Allocation.createTyped ( RS , i32TypeBuilder.create ( ) ) ; testAllocation2 = android.renderscript.Allocation.createTyped ( RS , i32TypeBuilder.create ( ) ) ; }
Source:
private com.android.builder.VariantConfiguration getVariantWithManifestVersion ( final java.lang.String versionName ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override public java.lang.String getVersionNameFromManifest ( ) { return versionName ; } @ java.lang.Override protected void validate ( ) { } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) ) ; return variant ; }

Target:
private com.android.builder.VariantConfiguration getVariantWithManifestVersion ( final java.lang.String versionName ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override public java.lang.String getVersionNameFromManifest ( ) { return versionName ; } @ java.lang.Override protected void validate ( ) { } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }
Source:
public void partActivated ( org.eclipse.ui.IWorkbenchPart part ) { if ( part == ( getEditor ( ) ) ) { if ( ( mGraphicalEditor ) != null ) { if ( ( getEditor ( ) . getActivePage ( ) ) == ( mGraphicalEditorIndex ) ) { mGraphicalEditor.activated ( ) ; } else { mGraphicalEditor.deactivated ( ) ; } } } }

Target:
public void delegateActivated ( ) { if ( ( mGraphicalEditor ) != null ) { if ( ( getEditor ( ) . getActivePage ( ) ) == ( mGraphicalEditorIndex ) ) { mGraphicalEditor.activated ( ) ; } else { mGraphicalEditor.deactivated ( ) ; } } }
Source:
public static void recordEnumeratedHistogram ( java.lang.String name , int sample , int boundary ) { if ( org.chromium.base.metrics.RecordHistogram.sIsDisabledForTests ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordEnumeratedHistogram ( name , key , sample , boundary ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }

Target:
public static void recordEnumeratedHistogram ( java.lang.String name , int sample , int boundary ) { if ( ( org.chromium.base.metrics.RecordHistogram.sDisabledBy ) != null ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordEnumeratedHistogram ( name , key , sample , boundary ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }
Source:
public void run ( ) { mAwContents.loadUrl ( loadUrlParams ) ; }

Target:
private void loadUrlOnUiThread ( final org.chromium.content_public.browser.LoadUrlParams loadUrlParams ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { assert ( mAppTargetSdkVersion ) < ( Build.VERSION_CODES.JELLY_BEAN_MR2 ) ; mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { mAwContents.loadUrl ( loadUrlParams ) ; } } ) ; return ; } mAwContents.loadUrl ( loadUrlParams ) ; }
Source:
private long computeSerialVersionUID ( final java.lang.String className ) throws java.io.IOException { final long [ ] svuid = new long [ 1 ] ; org.objectweb.asm.ClassVisitor cv = new org.objectweb.asm.commons.SerialVersionUIDAdder ( null ) { @ java.lang.Override protected long computeSVUID ( ) throws java.io.IOException { svuid [ 0 ] = super . computeSVUID ( ) ; return svuid [ 0 ] ; } } ; new org.objectweb.asm.ClassReader ( className ) . accept ( cv , 0 ) ; return svuid [ 0 ] ; }

Target:
private long computeSerialVersionUID ( final java.lang.String className ) throws java.io.IOException { final long [ ] svuid = new long [ 1 ] ; org.objectweb.asm.ClassVisitor cv = new org.objectweb.asm.commons.SerialVersionUIDAdder ( org.objectweb.asm.Opcodes.ASM5 , null ) { @ java.lang.Override protected long computeSVUID ( ) throws java.io.IOException { svuid [ 0 ] = super . computeSVUID ( ) ; return svuid [ 0 ] ; } } ; new org.objectweb.asm.ClassReader ( className ) . accept ( cv , 0 ) ; return svuid [ 0 ] ; }
Source:
public void testOnSetUpSancovEnabled ( ) throws java.lang.Exception { doReturn ( "walleye_asan_coverage-userdebug" ) . when ( mDevice ) . getBuildFlavor ( ) ; createTestFile ( SYMBOLS_FILE_NAME ) ; createTestFile ( BUILD_INFO_ARTIFACT ) ; mPreparer.setUp ( mDevice , mBuildInfo ) ; verify ( mBuildInfo , times ( 1 ) ) . setFile ( eq ( com.android.tradefed.targetprep.VtsCoveragePreparer.getSancovResourceDirKey ( mDevice ) ) , eq ( mDeviceInfoPath ) , eq ( "build_id" ) ) ; }

Target:
public void testOnSetUpSancovEnabled ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( "walleye_asan_coverage-userdebug" ) . when ( mDevice ) . getBuildFlavor ( ) ; createTestFile ( SYMBOLS_FILE_NAME ) ; createTestFile ( BUILD_INFO_ARTIFACT ) ; mPreparer.setUp ( mDevice , mBuildInfo ) ; org.mockito.Mockito.verify ( mBuildInfo , org.mockito.Mockito.times ( 1 ) ) . setFile ( org.mockito.ArgumentMatchers.eq ( com.android.tradefed.targetprep.VtsCoveragePreparer.getSancovResourceDirKey ( mDevice ) ) , org.mockito.ArgumentMatchers.eq ( mDeviceInfoPath ) , org.mockito.ArgumentMatchers.eq ( "build_id" ) ) ; }
Source:
com.android.server.pm.PackageSetting getPackageLPw ( android.content.pm.PackageParser.Package pkg , com.android.server.pm.PackageSetting origPackage , java.lang.String realName , com.android.server.pm.SharedUserSetting sharedUser , java.io.File codePath , java.io.File resourcePath , java.lang.String legacyNativeLibraryPathString , java.lang.String primaryCpuAbi , java.lang.String secondaryCpuAbi , int pkgFlags , android.os.UserHandle user , boolean add ) { final java.lang.String name = pkg.packageName ; com.android.server.pm.PackageSetting p = getPackageLPw ( name , origPackage , realName , sharedUser , codePath , resourcePath , legacyNativeLibraryPathString , primaryCpuAbi , secondaryCpuAbi , pkg.mVersionCode , pkgFlags , user , add , true ) ; return p ; }

Target:
com.android.server.pm.PackageSetting getPackageLPw ( android.content.pm.PackageParser.Package pkg , com.android.server.pm.PackageSetting origPackage , java.lang.String realName , com.android.server.pm.SharedUserSetting sharedUser , java.io.File codePath , java.io.File resourcePath , java.lang.String legacyNativeLibraryPathString , java.lang.String primaryCpuAbi , java.lang.String secondaryCpuAbi , int pkgFlags , int pkgPrivateFlags , android.os.UserHandle user , boolean add ) { final java.lang.String name = pkg.packageName ; com.android.server.pm.PackageSetting p = getPackageLPw ( name , origPackage , realName , sharedUser , codePath , resourcePath , legacyNativeLibraryPathString , primaryCpuAbi , secondaryCpuAbi , pkg.mVersionCode , pkgFlags , pkgPrivateFlags , user , add , true ) ; return p ; }