auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean setNetworkSelectionModeManual ( int subId , com.android.internal.telephony.OperatorInfo operator , boolean persistSelection ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.setNetworkSelectionModeManual ( subId , operator , persistSelection ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeManual RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeManual NPE" , ex ) ; } return false ; }

Target:
public void enableIms ( int slotId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.enableIms ( slotId ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "enableIms, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
public boolean perform ( ) { synchronized ( lock ) { try { lock.wait ( 100 , 0 ) ; } catch ( java.lang.InterruptedException ignored ) { } } return true ; }

Target:
public boolean perform ( ) { try { java.util.List < byte [ ] > l = new java.util.ArrayList < byte [ ] > ( ) ; for ( int i = 0 ; i < ( Main.LargeAlloc.ALLOC_COUNT ) ; i ++ ) { l.add ( new byte [ ( Main.LargeAlloc.PAGE_SIZE_MODIFIER ) * ( Main.LargeAlloc.PAGE_SIZE ) ] ) ; } } catch ( java.lang.OutOfMemoryError e ) { } return true ; }
Source:
protected void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; Settings.Global.putInt ( getContentResolver ( ) , Settings.Global.DEVICE_PROVISIONED , 1 ) ; android.content.pm.PackageManager pm = getPackageManager ( ) ; android.content.ComponentName name = new android.content.ComponentName ( this , com.android.provision.DefaultActivity.class ) ; pm.setComponentEnabledSetting ( name , PackageManager.COMPONENT_ENABLED_STATE_DISABLED , PackageManager.DONT_KILL_APP ) ; finish ( ) ; }

Target:
protected void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; Settings.Global.putInt ( getContentResolver ( ) , Settings.Global.DEVICE_PROVISIONED , 1 ) ; Settings.Secure.putInt ( getContentResolver ( ) , Settings.Secure.USER_SETUP_COMPLETE , 1 ) ; android.content.pm.PackageManager pm = getPackageManager ( ) ; android.content.ComponentName name = new android.content.ComponentName ( this , com.android.provision.DefaultActivity.class ) ; pm.setComponentEnabledSetting ( name , PackageManager.COMPONENT_ENABLED_STATE_DISABLED , PackageManager.DONT_KILL_APP ) ; finish ( ) ; }
Source:
public void testSwipeOutwardFromEdge ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.small_pager ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Position #0" ) ) ) ) . perform ( android.support.test.espresso.action.SwipeActionIntegrationTest.swipeLeftFromLeftEdge ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Position #1" ) ) ) ) . perform ( android.support.test.espresso.action.SwipeActionIntegrationTest.swipeLeftFromLeftEdge ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Position #2" ) ) ) ) ; }

Target:
public void swipeOutwardFromEdge ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.small_pager ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Position #0" ) ) ) ) . perform ( android.support.test.espresso.action.SwipeActionIntegrationTest.swipeLeftFromLeftEdge ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Position #1" ) ) ) ) . perform ( android.support.test.espresso.action.SwipeActionIntegrationTest.swipeLeftFromLeftEdge ( ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.hasDescendant ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Position #2" ) ) ) ) ; }
Source:
private java.io.File getSettingsFile ( ) { return new java.io.File ( getWorkspaceLocation ( ) , ( ( ( ( ( ( ".plugins" + ( java.io.File.separator ) ) + "org.eclipse.core.runtime" ) + ( java.io.File.separator ) ) + ".settings" ) + ( java.io.File.separator ) ) + "org.eclipse.jdt.core.prefs" ) ) ; }

Target:
private java.io.File getSettingsFile ( ) { return new java.io.File ( getWorkspaceLocation ( ) , ( ( ( ( ( ( ( ( ".metadata" + ( java.io.File.separator ) ) + ".plugins" ) + ( java.io.File.separator ) ) + "org.eclipse.core.runtime" ) + ( java.io.File.separator ) ) + ".settings" ) + ( java.io.File.separator ) ) + "org.eclipse.jdt.core.prefs" ) ) ; }
Source:
public void testGetSetEntityResolver ( ) { org.xml.sax.EntityResolver resolver = new tests.api.org.xml.sax.support.MockResolver ( ) ; parent.setEntityResolver ( resolver ) ; assertEquals ( resolver , parent.getEntityResolver ( ) ) ; parent.setEntityResolver ( null ) ; assertEquals ( null , parent.getEntityResolver ( ) ) ; }

Target:
public void testGetSetEntityResolver ( ) { org.xml.sax.EntityResolver resolver = new org.apache.harmony.tests.org.xml.sax.support.MockResolver ( ) ; parent.setEntityResolver ( resolver ) ; assertEquals ( resolver , parent.getEntityResolver ( ) ) ; parent.setEntityResolver ( null ) ; assertEquals ( null , parent.getEntityResolver ( ) ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( "UiccSlotInfo (mIsActive=" + ( mIsActive ) ) + ", mIsEuicc=" ) + ( mIsEuicc ) ) + ", mCardId=" ) + ( mCardId ) ) + ", cardState=" ) + ( mCardStateInfo ) ) + ", phoneId=" ) + ( mLogicalSlotIdx ) ) + ")" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( ( ( "UiccSlotInfo (mIsActive=" + ( mIsActive ) ) + ", mIsEuicc=" ) + ( mIsEuicc ) ) + ", mCardId=" ) + ( mCardId ) ) + ", cardState=" ) + ( mCardStateInfo ) ) + ", phoneId=" ) + ( mLogicalSlotIdx ) ) + ", mIsExtendedApduSupported=" ) + ( mIsExtendedApduSupported ) ) + ")" ; }
Source:
public void setUp ( ) throws java.lang.Exception { setupMocks ( ) ; mWifiConfigStore = new com.android.server.wifi.WifiConfigStore ( mContext , mLooper.getLooper ( ) , mClock , mSharedStore , mUserStore ) ; mWifiConfigStore.enableVerboseLogging ( true ) ; }

Target:
public void testForceWrite ( ) throws java.lang.Exception { mWifiConfigStore.switchUserStoreAndRead ( mUserStore ) ; mWifiConfigStore.write ( true , getEmptyStoreData ( ) ) ; assertFalse ( mAlarmManager.isPending ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ) ; assertTrue ( mSharedStore.isStoreWritten ( ) ) ; assertTrue ( mUserStore.isStoreWritten ( ) ) ; }
Source:
protected static final android.os.Parcel obtain ( int obj ) { final android.os.Parcel [ ] pool = android.os.Parcel.sHolderPool ; synchronized ( pool ) { android.os.Parcel p ; for ( int i = 0 ; i < ( android.os.Parcel.POOL_SIZE ) ; i ++ ) { p = pool [ i ] ; if ( p != null ) { pool [ i ] = null ; if ( android.os.Parcel.DEBUG_RECYCLE ) { p.mStack = new java.lang.RuntimeException ( ) ; } p.init ( obj ) ; return p ; } } } return new android.os.Parcel ( obj ) ; }

Target:
protected static final android.os.Parcel obtain ( int obj ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public java.lang.Object [ ] getTestObjects ( ) { java.util.Locale [ ] locales = com.ibm.icu.dev.test.serializable.SerializableTest.getLocales ( ) ; com.ibm.icu.util.TimeZone ast = com.ibm.icu.util.TimeZone.getTimeZone ( "Europe/Athens" ) ; com.ibm.icu.util.CopticCalendar [ ] calendars = new com.ibm.icu.util.CopticCalendar [ locales.length ] ; for ( int i = 0 ; i < ( locales.length ) ; i += 1 ) { calendars [ i ] = new com.ibm.icu.util.CopticCalendar ( ast , locales [ i ] ) ; } return calendars ; }

Target:
public java.lang.Object [ ] getTestObjects ( ) { java.util.Locale [ ] locales = com.ibm.icu.dev.test.serializable.SerializableTestUtility.getLocales ( ) ; com.ibm.icu.util.TimeZone ast = com.ibm.icu.util.TimeZone.getTimeZone ( "Europe/Athens" ) ; com.ibm.icu.util.CopticCalendar [ ] calendars = new com.ibm.icu.util.CopticCalendar [ locales.length ] ; for ( int i = 0 ; i < ( locales.length ) ; i += 1 ) { calendars [ i ] = new com.ibm.icu.util.CopticCalendar ( ast , locales [ i ] ) ; } return calendars ; }
Source:
public void write ( byte [ ] buffer , int byteOffset , int byteCount ) throws java.io.IOException { java.util.Arrays.checkOffsetAndCount ( buffer.length , byteOffset , byteCount ) ; libcore.io.Memory.pokeInt ( mTemp , 0 , android.os.FileBridge.CMD_WRITE , java.nio.ByteOrder.BIG_ENDIAN ) ; libcore.io.Memory.pokeInt ( mTemp , 4 , byteCount , java.nio.ByteOrder.BIG_ENDIAN ) ; libcore.io.IoBridge.write ( mClient , mTemp , 0 , android.os.FileBridge.MSG_LENGTH ) ; libcore.io.IoBridge.write ( mClient , buffer , byteOffset , byteCount ) ; }

Target:
public void write ( byte [ ] buffer , int byteOffset , int byteCount ) throws java.io.IOException { libcore.util.ArrayUtils.throwsIfOutOfBounds ( buffer.length , byteOffset , byteCount ) ; libcore.io.Memory.pokeInt ( mTemp , 0 , android.os.FileBridge.CMD_WRITE , java.nio.ByteOrder.BIG_ENDIAN ) ; libcore.io.Memory.pokeInt ( mTemp , 4 , byteCount , java.nio.ByteOrder.BIG_ENDIAN ) ; libcore.io.IoBridge.write ( mClient , mTemp , 0 , android.os.FileBridge.MSG_LENGTH ) ; libcore.io.IoBridge.write ( mClient , buffer , byteOffset , byteCount ) ; }
Source:
public int getDataNetworkType ( ) { return rilRadioTechnologyToNetworkType ( mRilDataRadioTechnology ) ; }

Target:
public java.util.List < android.telephony.NetworkRegistrationState > getNetworkRegistrationStates ( int transportType ) { java.util.List < android.telephony.NetworkRegistrationState > list = new java.util.ArrayList < > ( ) ; for ( android.telephony.NetworkRegistrationState networkRegistrationState : mNetworkRegistrationStates ) { if ( ( networkRegistrationState.getTransportType ( ) ) == transportType ) { list.add ( networkRegistrationState ) ; } } return list ; }
Source:
public android.security.KeyStore.State state ( ) { execute ( 't' ) ; switch ( mError ) { case android.security.KeyStore.NO_ERROR : return android.security.KeyStore.State.UNLOCKED ; case android.security.KeyStore.LOCKED : return android.security.KeyStore.State.LOCKED ; case android.security.KeyStore.UNINITIALIZED : return android.security.KeyStore.State.UNINITIALIZED ; default : throw new java.lang.AssertionError ( mError ) ; } }

Target:
public android.security.KeyStore.State state ( ) { final int ret ; try { ret = mBinder.test ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; throw new java.lang.AssertionError ( e ) ; } switch ( ret ) { case android.security.KeyStore.NO_ERROR : return android.security.KeyStore.State.UNLOCKED ; case android.security.KeyStore.LOCKED : return android.security.KeyStore.State.LOCKED ; case android.security.KeyStore.UNINITIALIZED : return android.security.KeyStore.State.UNINITIALIZED ; default : throw new java.lang.AssertionError ( mError ) ; } }
Source:
public void test1_2SetStrengthAfterRelease ( ) throws java.lang.Exception { if ( ! ( isVirtualizerAvailable ( ) ) ) { return ; } getVirtualizer ( 0 ) ; mVirtualizer.release ( ) ; try { mVirtualizer.setStrength ( android.media.cts.VirtualizerTest.TEST_STRENGTH ) ; } catch ( java.lang.IllegalStateException e ) { } finally { releaseVirtualizer ( ) ; } }

Target:
public void test1_2SetStrengthAfterRelease ( ) throws java.lang.Exception { if ( ! ( isVirtualizerAvailable ( ) ) ) { return ; } getVirtualizer ( getSessionId ( ) ) ; mVirtualizer.release ( ) ; try { mVirtualizer.setStrength ( android.media.cts.VirtualizerTest.TEST_STRENGTH ) ; } catch ( java.lang.IllegalStateException e ) { } finally { releaseVirtualizer ( ) ; } }
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "WrongColor.java:11: Error: Should pass resolved color instead of resource id here: getResources().getColor(R.color.red)\n" + ( "WrongColor.java:12: Error: Should pass resolved color instead of resource id here: getResources().getColor(android.R.color.red)\n" + "WrongColor.java:9: Error: Should pass resolved color instead of resource id here: getResources().getColor(R.color.blue)" ) ) , lintProject ( "src/test/pkg/WrongColor.java.txt=>src/test/pkg/WrongColor.java" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/WrongColor.java:9: Error: Should pass resolved color instead of resource id here: getResources().getColor(R.color.blue) [ResourceAsColor]\n" + ( ( ( ( ( ( ( ( ( " paint2.setColor(R.color.blue);\n" + " ~~~~~~~~~~~~\n" ) + "src/test/pkg/WrongColor.java:11: Error: Should pass resolved color instead of resource id here: getResources().getColor(R.color.red) [ResourceAsColor]\n" ) + " textView.setTextColor(R.color.red);\n" ) + " ~~~~~~~~~~~\n" ) + "src/test/pkg/WrongColor.java:12: Error: Should pass resolved color instead of resource id here: getResources().getColor(android.R.color.red) [ResourceAsColor]\n" ) + " textView.setTextColor(android.R.color.red);\n" ) + " ~~~~~~~~~~~~~~~~~~~\n" ) + "3 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "src/test/pkg/WrongColor.java.txt=>src/test/pkg/WrongColor.java" ) ) ; }
Source:
private static boolean contains ( java.io.File buildDir , java.io.File file ) { java.io.File parent = file.getParentFile ( ) ; if ( parent == null ) { return false ; } if ( parent.equals ( buildDir ) ) { return true ; } return com.android.build.gradle.internal.model.DependenciesImpl.contains ( buildDir , parent ) ; }

Target:
private static boolean doContains ( @ com.android.annotations.NonNull java.io.File dir , @ com.android.annotations.NonNull java.io.File file ) { java.io.File parent = file.getParentFile ( ) ; return ( parent != null ) && ( ( parent.equals ( dir ) ) || ( com.android.build.gradle.internal.model.DependenciesImpl.doContains ( dir , parent ) ) ) ; }
Source:
synchronized void nScriptForEach ( long id , int slot , long ain , long aout , byte [ ] params ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , id , slot , ain , aout ) ; } else { rsnScriptForEach ( mContext , id , slot , ain , aout , params ) ; } }

Target:
synchronized void nScriptSetVarVE ( long id , int slot , byte [ ] val , long e , int [ ] dims , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarVE ( curCon , id , slot , val , e , dims , mUseInc ) ; }
Source:
private static java.lang.ref.WeakReference < java.lang.ClassLoader > setUpUnloadLoader ( java.lang.reflect.Constructor constructor ) throws java.lang.Exception { java.lang.ClassLoader loader = ( ( java.lang.ClassLoader ) ( constructor.newInstance ( Main.DEX_FILE , java.lang.ClassLoader.getSystemClassLoader ( ) ) ) ) ; java.lang.Class intHolder = loader.loadClass ( "IntHolder" ) ; java.lang.reflect.Method setValue = intHolder.getDeclaredMethod ( "setValue" , java.lang.Integer.TYPE ) ; setValue.invoke ( intHolder , 2 ) ; return new java.lang.ref.WeakReference ( loader ) ; }

Target:
private static java.lang.ref.WeakReference < java.lang.ClassLoader > setUpUnloadLoader ( java.lang.reflect.Constructor constructor , boolean waitForCompilation ) throws java.lang.Exception { java.lang.ClassLoader loader = ( ( java.lang.ClassLoader ) ( constructor.newInstance ( Main.DEX_FILE , java.lang.ClassLoader.getSystemClassLoader ( ) ) ) ) ; java.lang.Class intHolder = loader.loadClass ( "IntHolder" ) ; java.lang.reflect.Method setValue = intHolder.getDeclaredMethod ( "setValue" , java.lang.Integer.TYPE ) ; setValue.invoke ( intHolder , 2 ) ; if ( waitForCompilation ) { Main.waitForCompilation ( intHolder ) ; } return new java.lang.ref.WeakReference ( loader ) ; }
Source:
public static void startStreaming ( com.android.phone.testapps.embmsmw.FrontendAppIdentifier appIdentifier , java.lang.String serviceId , android.telephony.mbms.IStreamingServiceCallback callback ) { com.android.phone.testapps.embmsmw.AppActiveStreams appStreams = com.android.phone.testapps.embmsmw.StreamStateTracker.sPerAppStreamStates.get ( appIdentifier ) ; if ( appStreams == null ) { appStreams = new com.android.phone.testapps.embmsmw.AppActiveStreams ( appIdentifier ) ; com.android.phone.testapps.embmsmw.StreamStateTracker.sPerAppStreamStates.put ( appIdentifier , appStreams ) ; } appStreams.startStreaming ( serviceId , callback ) ; }

Target:
public static void startStreaming ( com.android.phone.testapps.embmsmw.FrontendAppIdentifier appIdentifier , java.lang.String serviceId , android.telephony.mbms.IStreamingServiceCallback callback , int reason ) { com.android.phone.testapps.embmsmw.AppActiveStreams appStreams = com.android.phone.testapps.embmsmw.StreamStateTracker.sPerAppStreamStates.get ( appIdentifier ) ; if ( appStreams == null ) { appStreams = new com.android.phone.testapps.embmsmw.AppActiveStreams ( appIdentifier ) ; com.android.phone.testapps.embmsmw.StreamStateTracker.sPerAppStreamStates.put ( appIdentifier , appStreams ) ; } appStreams.startStreaming ( serviceId , callback , reason ) ; }
Source:
private com.android.jack.ir.ast.JDefinedClass initializeSyntheticClass ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull java.lang.String syntheticClassShortName ) { com.android.jack.ir.ast.JDefinedClass syntheticSwitchmapClass = new com.android.jack.ir.ast.JDefinedClass ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , syntheticClassShortName , ( ( ( com.android.jack.ir.ast.JModifier.PUBLIC ) | ( com.android.jack.ir.ast.JModifier.FINAL ) ) | ( com.android.jack.ir.ast.JModifier.SYNTHETIC ) ) , enclosingPackage , com.android.jack.load.NopClassOrInterfaceLoader.INSTANCE ) ; syntheticSwitchmapClass.setSuperClass ( supportUtil.getObjectType ( ) ) ; syntheticSwitchmapClass.setExternal ( false ) ; session.addTypeToEmit ( syntheticSwitchmapClass ) ; return syntheticSwitchmapClass ; }

Target:
private com.android.jack.ir.ast.JDefinedClass initializeSyntheticClass ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull java.lang.String syntheticClassShortName ) { com.android.jack.ir.ast.JDefinedClass syntheticSwitchmapClass = new com.android.jack.ir.ast.JDefinedClass ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , syntheticClassShortName , ( ( ( com.android.jack.ir.ast.JModifier.PUBLIC ) | ( com.android.jack.ir.ast.JModifier.FINAL ) ) | ( com.android.jack.ir.ast.JModifier.SYNTHETIC ) ) , enclosingPackage , com.android.jack.load.NopClassOrInterfaceLoader.INSTANCE ) ; syntheticSwitchmapClass.setSuperClass ( session.getLookup ( ) . getClass ( "Ljava/lang/Object;" ) ) ; syntheticSwitchmapClass.setExternal ( false ) ; session.addTypeToEmit ( syntheticSwitchmapClass ) ; return syntheticSwitchmapClass ; }
Source:
public org.junit.runner.Runner runnerForClass ( java.lang.Class < ? > testClass ) throws java.lang.Throwable { if ( TestFmwk.TestGroup.class . isAssignableFrom ( testClass ) ) { return new android.icu.junit.IcuTestGroupRunner ( testClass.asSubclass ( TestFmwk.TestGroup.class ) , this ) ; } if ( android.icu.dev.test.TestFmwk.class . isAssignableFrom ( testClass ) ) { return new android.icu.junit.IcuTestFmwkRunner ( testClass.asSubclass ( android.icu.dev.test.TestFmwk.class ) , runnerParams ) ; } return null ; }

Target:
public org.junit.runner.Runner runnerForClass ( java.lang.Class < ? > testClass ) throws java.lang.Throwable { if ( TestFmwk.TestGroup.class . isAssignableFrom ( testClass ) ) { return new android.icu.junit.IcuTestGroupRunner ( testClass.asSubclass ( TestFmwk.TestGroup.class ) , this ) ; } if ( android.icu.dev.test.TestFmwk.class . isAssignableFrom ( testClass ) ) { return new android.icu.junit.IcuTestFmwkRunner ( testClass.asSubclass ( android.icu.dev.test.TestFmwk.class ) , runnerParams ) ; } return annotatedBuilder.safeRunnerForClass ( testClass ) ; }
Source:
public com.android.jack.api.JackProvider getJackProvider ( @ javax.annotation.Nonnull com.android.jack.server.VersionFinder finder , @ javax.annotation.Nonnull com.android.jack.server.JackHttpServer.Assertion status ) throws com.android.jack.server.NoSuchVersionException , com.android.jack.server.UnsupportedProgramException { synchronized ( installedJack ) { com.android.jack.server.JackHttpServer.Program < com.android.jack.api.JackProvider > program = selectJack ( finder ) ; com.android.jack.api.JackProvider jackProvider ; jackProvider = program.getLoadedProgram ( status ) ; if ( jackProvider == null ) { jackProvider = program.getLastLoadedProgram ( status ) ; if ( jackProvider == null ) { jackProvider = loadJack ( program.getUrlPath ( ) , status ) ; } program.setLoadedProgram ( status , jackProvider ) ; } return jackProvider ; } }

Target:
public void resetMaxServiceStat ( ) { synchronized ( lock ) { serviceInfo.maxForward = serviceInfo.currentForward ; serviceInfo.maxLocal = serviceInfo.currentLocal ; } }
Source:
private void stopTest ( com.google.gct.testing.results.GoogleCloudTestProxy test , com.google.gct.testing.GoogleCloudTestingUtils.ConfigurationStopReason stopReason ) { switch ( stopReason ) { case FINISHED : test.setFinished ( ) ; break ; case INFRASTRUCTURE_FAILURE : test.setTerminated ( ) ; break ; case TIMED_OUT : test.setTimeout ( ) ; break ; } fireOnTestFinished ( test ) ; }

Target:
private void stopTest ( com.google.gct.testing.results.GoogleCloudTestProxy test , com.google.gct.testing.GoogleCloudTestingUtils.ConfigurationStopReason stopReason ) { switch ( stopReason ) { case FINISHED : test.setFinished ( ) ; break ; case INFRASTRUCTURE_FAILURE : test.setInfrastructureFailed ( ) ; break ; case TIMED_OUT : test.setTimeout ( ) ; break ; } fireOnTestFinished ( test ) ; }
Source:
private long getScreenshotChordLongPressDelay ( ) { if ( mKeyguardDelegate.isShowing ( ) ) { return ( ( long ) ( ( com.android.internal.policy.impl.PhoneWindowManager.KEYGUARD_SCREENSHOT_CHORD_DELAY_MULTIPLIER ) * ( android.view.ViewConfiguration.getGlobalActionKeyTimeout ( ) ) ) ) ; } return android.view.ViewConfiguration.getGlobalActionKeyTimeout ( ) ; }

Target:
private long getScreenshotChordLongPressDelay ( ) { if ( mKeyguardDelegate.isShowing ( ) ) { return ( ( long ) ( ( com.android.internal.policy.impl.PhoneWindowManager.KEYGUARD_SCREENSHOT_CHORD_DELAY_MULTIPLIER ) * ( android.view.ViewConfiguration.get ( mContext ) . getDeviceGlobalActionKeyTimeout ( ) ) ) ) ; } return android.view.ViewConfiguration.get ( mContext ) . getDeviceGlobalActionKeyTimeout ( ) ; }
Source:
protected void transform ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode existingNode , @ javax.annotation.CheckForNull com.android.jack.ir.ast.JNode newNode , @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode.Transformation transformation ) throws java.lang.UnsupportedOperationException { throw new java.lang.UnsupportedOperationException ( ( ( getClass ( ) . getName ( ) ) + " does not support transform" ) ) ; }

Target:
protected void transform ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode existingNode , @ javax.annotation.CheckForNull com.android.jack.ir.ast.JNode newNode , @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode.Transformation transformation ) throws java.lang.UnsupportedOperationException { throw new java.lang.UnsupportedOperationException ( ( ( ( ( ( ( ( getClass ( ) . getName ( ) ) + " does not support transformation '" ) + ( transformation.name ( ) ) ) + "', existing: " ) + ( existingNode.getClass ( ) . getName ( ) ) ) + ", new: " ) + ( newNode == null ? "<null>" : newNode.getClass ( ) . getName ( ) ) ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder strBuilder = new java.lang.StringBuilder ( ) ; strBuilder.append ( "{super=" ) . append ( super . toString ( ) ) . append ( ", mSpi=" ) . append ( mSpi ) . append ( ", mDirection=" ) . append ( mDirection ) . append ( ", mLocalAddress=" ) . append ( mLocalAddress ) . append ( ", mRemoteAddress=" ) . append ( mRemoteAddress ) . append ( ", mOwnedByTransform=" ) . append ( mOwnedByTransform ) . append ( "}" ) ; return strBuilder.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder strBuilder = new java.lang.StringBuilder ( ) ; strBuilder.append ( "{super=" ) . append ( super . toString ( ) ) . append ( ", mSocket=" ) . append ( mSocket ) . append ( ", mSpis[OUT].mResourceId=" ) . append ( mSpis [ android.net.IpSecTransform.DIRECTION_OUT ] . mResourceId ) . append ( ", mSpis[IN].mResourceId=" ) . append ( mSpis [ android.net.IpSecTransform.DIRECTION_IN ] . mResourceId ) . append ( ", mConfig=" ) . append ( mConfig ) . append ( "}" ) ; return strBuilder.toString ( ) ; }
Source:
boolean recordUidIfAuthorized ( android.net.wifi.WifiConfiguration config , int uid , boolean onlyAnnotate ) { if ( ! ( mWifiConfigManager.isNetworkConfigured ( config ) ) ) { config.creatorUid = uid ; config.creatorName = mContext.getPackageManager ( ) . getNameForUid ( uid ) ; } else if ( ! ( mWifiConfigManager.canModifyNetwork ( uid , config , onlyAnnotate ) ) ) { return false ; } config.lastUpdateUid = uid ; config.lastUpdateName = mContext.getPackageManager ( ) . getNameForUid ( uid ) ; return true ; }

Target:
private boolean setUserSelectNetwork ( int netId , int uid ) { if ( ! ( mWifiConfigManager.enableNetwork ( netId , true , uid ) ) ) { loge ( ( ( ( "connectToUserSelectNetwork uid " + uid ) + " did not have the permissions to enable=" ) + netId ) ) ; return false ; } if ( ( mWifiConnectivityManager ) != null ) { mWifiConnectivityManager.connectToUserSelectNetwork ( netId , true ) ; } return true ; }
Source:
public org.eclipse.swt.graphics.Font getFont ( java.lang.Object element ) { if ( element instanceof com.android.hierarchyviewerlib.device.Window ) { int focusedWindow = mModel.getFocusedWindow ( ( ( com.android.hierarchyviewerlib.device.Window ) ( element ) ) . getDevice ( ) ) ; if ( focusedWindow == ( ( ( com.android.hierarchyviewerlib.device.Window ) ( element ) ) . getHashCode ( ) ) ) { return mBoldFont ; } } return null ; }

Target:
public java.lang.String getText ( java.lang.Object element ) { if ( element instanceof com.android.hierarchyviewerlib.device.IHvDevice ) { return ( ( com.android.hierarchyviewerlib.device.IHvDevice ) ( element ) ) . getDevice ( ) . getName ( ) ; } else if ( element instanceof com.android.hierarchyviewerlib.models.Window ) { return ( ( com.android.hierarchyviewerlib.models.Window ) ( element ) ) . getTitle ( ) ; } return null ; }
Source:
private void testUrlToUriMapping ( java.lang.String string , java.lang.String asAuthority , java.lang.String asFile , java.lang.String asQuery , java.lang.String asFragment ) throws java.lang.Exception { if ( asAuthority != null ) { assertEquals ( ( ( "http://host" + asAuthority ) + ".tld/" ) , backdoorUrlToUri ( new java.net.URL ( ( ( "http://host" + string ) + ".tld/" ) ) ) . toString ( ) ) ; } if ( asFile != null ) { assertEquals ( ( ( "http://host.tld/file" + asFile ) + "/" ) , backdoorUrlToUri ( new java.net.URL ( ( ( "http://host.tld/file" + string ) + "/" ) ) ) . toString ( ) ) ; } if ( asQuery != null ) { assertEquals ( ( ( "http://host.tld/file?q" + asQuery ) + "=x" ) , backdoorUrlToUri ( new java.net.URL ( ( ( "http://host.tld/file?q" + string ) + "=x" ) ) ) . toString ( ) ) ; } assertEquals ( ( ( "http://host.tld/file#" + asFragment ) + "-x" ) , backdoorUrlToUri ( new java.net.URL ( ( ( "http://host.tld/file#" + asFragment ) + "-x" ) ) ) . toString ( ) ) ; }

Target:
private void testUrlToUriMapping ( java.lang.String string , java.lang.String asAuthority , java.lang.String asFile , java.lang.String asQuery , java.lang.String asFragment ) throws java.lang.Exception { if ( asAuthority != null ) { java.net.URI authorityUri = backdoorUrlToUri ( new java.net.URL ( ( ( "http://host" + string ) + ".tld/" ) ) ) ; assertEquals ( ( ( "http://host" + asAuthority ) + ".tld/" ) , authorityUri.toString ( ) ) ; } if ( asFile != null ) { java.net.URI fileUri = backdoorUrlToUri ( new java.net.URL ( ( ( "http://host.tld/file" + string ) + "/" ) ) ) ; assertEquals ( ( ( "http://host.tld/file" + asFile ) + "/" ) , fileUri.toString ( ) ) ; } if ( asQuery != null ) { java.net.URI queryUri = backdoorUrlToUri ( new java.net.URL ( ( ( "http://host.tld/file?q" + string ) + "=x" ) ) ) ; assertEquals ( ( ( "http://host.tld/file?q" + asQuery ) + "=x" ) , queryUri.toString ( ) ) ; } assertEquals ( ( ( "http://host.tld/file#" + asFragment ) + "-x" ) , backdoorUrlToUri ( new java.net.URL ( ( ( "http://host.tld/file#" + asFragment ) + "-x" ) ) ) . toString ( ) ) ; }
Source:
void hangupAllConnections ( com.android.internal.telephony.gsm.GsmCall call ) throws com.android.internal.telephony.CallStateException { try { int count = call.connections.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { com.android.internal.telephony.gsm.GsmConnection cn = ( ( com.android.internal.telephony.gsm.GsmConnection ) ( call.connections.get ( i ) ) ) ; cm.hangupConnection ( cn.getGSMIndex ( ) , obtainCompleteMessage ( ) ) ; } } catch ( com.android.internal.telephony.CallStateException ex ) { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.GsmCallTracker.LOG_TAG , ( "hangupConnectionByIndex caught " + ex ) ) ; } }

Target:
void hangupAllConnections ( com.android.internal.telephony.gsm.GsmCall call ) { try { int count = call.mConnections.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { com.android.internal.telephony.gsm.GsmConnection cn = ( ( com.android.internal.telephony.gsm.GsmConnection ) ( call.mConnections.get ( i ) ) ) ; mCi.hangupConnection ( cn.getGSMIndex ( ) , obtainCompleteMessage ( ) ) ; } } catch ( com.android.internal.telephony.CallStateException ex ) { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.GsmCallTracker.LOG_TAG , ( "hangupConnectionByIndex caught " + ex ) ) ; } }
Source:
public void onRecordLoaded ( android.os.AsyncResult ar ) { byte [ ] data = ( ( byte [ ] ) ( ar.result ) ) ; if ( com.android.internal.telephony.uicc.RuimRecords.DBG ) log ( ( "CSIM_MDN=" + ( com.android.internal.telephony.uicc.IccUtils.bytesToHexString ( data ) ) ) ) ; int mdnDigitsNum = 15 & ( data [ 0 ] ) ; mMdn = com.android.internal.telephony.uicc.IccUtils.cdmaBcdToString ( data , 1 , mdnDigitsNum ) ; if ( com.android.internal.telephony.uicc.RuimRecords.DBG ) log ( ( "CSIM MDN=" + ( mMdn ) ) ) ; }

Target:
public void onRecordLoaded ( android.os.AsyncResult ar ) { byte [ ] data = ( ( byte [ ] ) ( ar.result ) ) ; if ( DBG ) log ( ( "CSIM_MDN=" + ( com.android.internal.telephony.uicc.IccUtils.bytesToHexString ( data ) ) ) ) ; int mdnDigitsNum = 15 & ( data [ 0 ] ) ; mMdn = com.android.internal.telephony.uicc.IccUtils.cdmaBcdToString ( data , 1 , mdnDigitsNum ) ; if ( DBG ) log ( ( "CSIM MDN=" + ( mMdn ) ) ) ; }
Source:
public void visitEnd ( ) { stubMissingDefaultMethods ( this . interfaces ) ; }

Target:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { com.google.common.base.Preconditions.checkArgument ( com.google.devtools.build.android.desugar.BitFlags.isSet ( access , Opcodes.ACC_INTERFACE ) ) ; com.google.common.base.Preconditions.checkState ( ( ( interfaceName ) == null ) ) ; interfaceName = name ; }
Source:
private void showErrorAndFinish ( java.lang.String url ) { new android.app.AlertDialog.Builder ( this ) . setMessage ( getResources ( ) . getString ( R.string.settings_safetylegal_activity_unreachable , url ) ) . setTitle ( R.string.settings_safetylegal_activity_title ) . setPositiveButton ( android.R.string.ok , this ) . setOnCancelListener ( this ) . setCancelable ( true ) . show ( ) ; }

Target:
private void showErrorAndFinish ( java.lang.String url ) { if ( ( mErrorDialog ) == null ) { mErrorDialog = new android.app.AlertDialog.Builder ( this ) . setTitle ( R.string.settings_safetylegal_activity_title ) . setPositiveButton ( android.R.string.ok , this ) . setOnCancelListener ( this ) . setCancelable ( true ) . create ( ) ; } else { if ( mErrorDialog.isShowing ( ) ) { mErrorDialog.dismiss ( ) ; } } mErrorDialog.setMessage ( getResources ( ) . getString ( R.string.settings_safetylegal_activity_unreachable , url ) ) ; mErrorDialog.show ( ) ; }
Source:
protected void loadSubPackages ( ) { java.util.HashSet < java.lang.String > subNames = new java.util.HashSet < java.lang.String > ( ) ; for ( com.android.jack.load.PackageLoader loader : loaders ) { subNames.addAll ( loader.getSubPackageNames ( this ) ) ; } for ( java.lang.String name : subNames ) { try { getSubPackage ( name ) ; } catch ( com.android.jack.ir.ast.JPackageLookupException e ) { throw new java.lang.AssertionError ( e ) ; } } }

Target:
protected void loadSubPackages ( ) { java.util.HashSet < java.lang.String > subNames = new java.util.HashSet < java.lang.String > ( ) ; for ( com.android.jack.load.PackageLoader loader : loaders ) { subNames.addAll ( loader.getSubPackageNames ( this ) ) ; } for ( java.lang.String name : subNames ) { if ( ! ( deletedItems.contains ( name ) ) ) { try { getSubPackage ( name ) ; } catch ( com.android.jack.ir.ast.JPackageLookupException e ) { throw new java.lang.AssertionError ( e ) ; } } } }
Source:
public boolean requestTime ( java.lang.String host , int timeout ) { java.net.InetAddress address = null ; try { address = java.net.InetAddress.getByName ( host ) ; } catch ( java.lang.Exception e ) { android.net.EventLogTags.writeNtpFailure ( host , e.toString ( ) ) ; if ( android.net.SntpClient.DBG ) android.util.Log.d ( android.net.SntpClient.TAG , ( "request time failed: " + e ) ) ; return false ; } return requestTime ( address , android.net.SntpClient.NTP_PORT , timeout ) ; }

Target:
public boolean requestTime ( java.lang.String host , int timeout , android.net.Network network ) { java.net.InetAddress address = null ; try { address = network.getByName ( host ) ; } catch ( java.lang.Exception e ) { android.net.EventLogTags.writeNtpFailure ( host , e.toString ( ) ) ; if ( android.net.SntpClient.DBG ) android.util.Log.d ( android.net.SntpClient.TAG , ( "request time failed: " + e ) ) ; return false ; } return requestTime ( address , android.net.SntpClient.NTP_PORT , timeout , network ) ; }
Source:
public void testNewInstance ( ) throws java.lang.Exception { org.xmlpull.v1.XmlPullParserFactory factory = org.xmlpull.v1.XmlPullParserFactory.newInstance ( null , null ) ; org.xmlpull.v1.XmlPullParser parser = factory.newPullParser ( ) ; org.xmlpull.v1.XmlSerializer serializer = factory.newSerializer ( ) ; assertNotNull ( parser ) ; assertNotNull ( serializer ) ; }

Target:
public void testDefaultNewInstance ( ) throws java.lang.Exception { org.xmlpull.v1.XmlPullParserFactory factory = org.xmlpull.v1.XmlPullParserFactory.newInstance ( null , null ) ; org.xmlpull.v1.XmlPullParser parser = factory.newPullParser ( ) ; org.xmlpull.v1.XmlSerializer serializer = factory.newSerializer ( ) ; assertNotNull ( parser ) ; assertNotNull ( serializer ) ; assertTrue ( ( parser instanceof org.kxml2.io.KXmlParser ) ) ; assertTrue ( ( serializer instanceof org.kxml2.io.KXmlSerializer ) ) ; }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , short [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 2 ) ) ; }

Target:
public void copy2DRangeTo ( int xoff , int yoff , int w , int h , float [ ] data ) { validateIsFloat32 ( ) ; copy2DRangeToUnchecked ( xoff , yoff , w , h , data , Element.DataType.FLOAT_32 , data.length ) ; }
Source:
public static < T extends com.google.protobuf.nano.MessageNano > java.lang.String print ( T message ) { if ( message == null ) { return "" ; } java.lang.StringBuffer buf = new java.lang.StringBuffer ( ) ; try { com.google.protobuf.nano.MessageNanoPrinter.print ( null , message , new java.lang.StringBuffer ( ) , buf ) ; } catch ( java.lang.IllegalAccessException e ) { return "Error printing proto: " + ( e.getMessage ( ) ) ; } return buf.toString ( ) ; }

Target:
public static < T extends com.google.protobuf.nano.MessageNano > java.lang.String print ( T message ) { if ( message == null ) { return "" ; } java.lang.StringBuffer buf = new java.lang.StringBuffer ( ) ; try { com.google.protobuf.nano.MessageNanoPrinter.print ( null , message , new java.lang.StringBuffer ( ) , buf ) ; } catch ( java.lang.IllegalAccessException e ) { return "Error printing proto: " + ( e.getMessage ( ) ) ; } catch ( java.lang.reflect.InvocationTargetException e ) { return "Error printing proto: " + ( e.getMessage ( ) ) ; } return buf.toString ( ) ; }
Source:
public void testInterfaceCountersUdp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1000 , false ) ; }

Target:
public void testInterfaceCountersUdp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , true , 1000 , false ) ; }
Source:
private void delayedExecute ( java.util.concurrent.RunnableScheduledFuture < ? > task ) { if ( isShutdown ( ) ) reject ( task ) ; else { super . getQueue ( ) . add ( task ) ; if ( ( ( isShutdown ( ) ) && ( ! ( canRunInCurrentRunState ( task.isPeriodic ( ) ) ) ) ) && ( remove ( task ) ) ) task.cancel ( false ) ; else prestartCoreThread ( ) ; } }

Target:
private void delayedExecute ( java.util.concurrent.RunnableScheduledFuture < ? > task ) { if ( isShutdown ( ) ) reject ( task ) ; else { super . getQueue ( ) . add ( task ) ; if ( ( ( isShutdown ( ) ) && ( ! ( canRunInCurrentRunState ( task.isPeriodic ( ) ) ) ) ) && ( remove ( task ) ) ) task.cancel ( false ) ; else ensurePrestart ( ) ; } }
Source:
public void testGetCurrentNetworkWpsNfcConfigurationToken ( ) throws java.lang.Exception { java.lang.String token = "45adbc1" ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.getWpsNfcConfigurationToken ( ) ) . thenReturn ( token ) ; executeAndValidateInitializationSequence ( ) ; assertTrue ( ( ( mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) == null ) ) ; executeAndValidateConnectSequence ( 4 , false , false ) ; assertEquals ( token , mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) ; }

Target:
public void testGetCurrentNetworkWpsNfcConfigurationToken ( ) throws java.lang.Exception { java.lang.String token = "45adbc1" ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.getWpsNfcConfigurationToken ( ) ) . thenReturn ( token ) ; executeAndValidateInitializationSequence ( ) ; assertTrue ( ( ( mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) == null ) ) ; org.mockito.Mockito.verify ( mSupplicantStaNetworkMock , org.mockito.Mockito.never ( ) ) . getWpsNfcConfigurationToken ( ) ; executeAndValidateConnectSequence ( 4 , false , false ) ; assertEquals ( token , mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) ; org.mockito.Mockito.verify ( mSupplicantStaNetworkMock ) . getWpsNfcConfigurationToken ( ) ; }
Source:
public final int getInt ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.INT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } int result = this . block.peekInt ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }

Target:
public final float getFloat ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.FLOAT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } float result = java.lang.Float.intBitsToFloat ( this . block.peekInt ( ( ( offset ) + ( position ) ) , order ) ) ; position = newPosition ; return result ; }
Source:
public void onConnected ( ) { android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "BrowsablePlayerListBuilder: " + ( mCurrentPlayer.packageName ) ) + " OK" ) ) ; mBrowsePlayerInfoList.add ( mCurrentPlayer ) ; mCurrentBrowser.disconnect ( ) ; connectNextPlayer ( ) ; }

Target:
public void onConnected ( ) { android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "BrowsablePlayerListBuilder: " + ( mCurrentPlayer.packageName ) ) + " OK" ) ) ; mBrowsePlayerInfoList.add ( mCurrentPlayer ) ; com.android.bluetooth.avrcp.MediaPlayerInfo info = getMediaPlayerInfo ( mCurrentPlayer.packageName ) ; if ( info != null ) { com.android.bluetooth.avrcp.MediaController controller = info.getMediaController ( ) . getWrappedInstance ( ) ; addMediaPlayerController ( controller ) ; } else { addMediaPlayerBrowsable ( mCurrentPlayer.packageName ) ; } mPlayersChanged = true ; mCurrentBrowser.disconnect ( ) ; connectNextPlayer ( ) ; }
Source:
public void test_init_and_run_for_SimpleTest2_limitting_to_1method_with_both_init_and_run_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; java.lang.String actionName = "actionName" ; runner.init ( monitor , actionName , "testSimple3" , target , skipPastReference , testEnvironment , 0 , false ) ; runner.run ( "" , null , new java.lang.String [ ] { "testSimple2" } ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( runner , ( ( target.getName ( ) ) + "#testSimple2" ) , actionName ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_limiting_to_1method_and_run_for_SuiteTest_should_throw_exception ( ) { java.lang.Class < ? > target = vogar.target.junit3.SuiteTest.class ; try { vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , "" , "testSimple" , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , null ) ; fail ( "should throw ClassCastException." ) ; } catch ( java.lang.ClassCastException e ) { } }
Source:
public final byte [ ] doFinal ( ) throws java.lang.IllegalStateException { if ( ! ( isInitMac ) ) { throw new java.lang.IllegalStateException ( ) ; } return spiImpl.engineDoFinal ( ) ; }

Target:
public final void update ( byte [ ] input ) throws java.lang.IllegalStateException { if ( ! ( isInitMac ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input != null ) { getSpi ( ) . engineUpdate ( input , 0 , input.length ) ; } }
Source:
private void transformToZip ( @ javax.annotation.Nonnull java.io.InputStream is , @ javax.annotation.Nonnull java.util.zip.ZipOutputStream zipOutputStream , @ javax.annotation.CheckForNull java.util.jar.JarFile jarFile ) throws java.io.IOException { org.objectweb.asm.tree.ClassNode cn = getClassNode ( is ) ; java.lang.String filePath = com.android.jill.frontend.java.JavaTransformer.getZipFilePath ( cn.name ) ; assert ( jarFile == null ) || ( ( jarFile.getEntry ( filePath ) ) == null ) ; try { java.util.zip.ZipEntry entry = new java.util.zip.ZipEntry ( filePath ) ; zipOutputStream.putNextEntry ( entry ) ; transform ( cn , zipOutputStream ) ; } catch ( java.io.IOException e ) { throw new com.android.jill.JillException ( "Error writing to output zip" , e ) ; } }

Target:
public void transform ( @ javax.annotation.Nonnull java.util.List < java.io.File > javaBinaryFiles ) { try ( com.android.sched.vfs.VFS baseVFS = getBaseOutputVFS ( ) ) { try ( com.android.sched.vfs.OutputVFS outputVFS = wrapOutputVFS ( baseVFS ) ) { for ( java.io.File fileToTransform : javaBinaryFiles ) { try ( java.io.FileInputStream fis = new java.io.FileInputStream ( fileToTransform ) ) { transformToVFS ( fis , outputVFS ) ; } } dumpJackLibraryProperties ( baseVFS ) ; } } catch ( java.io.IOException | com.android.sched.util.file.CannotCloseException e ) { throw new com.android.jill.JillException ( e ) ; } }
Source:
public void visitFieldInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { if ( ( ( ( interfaceFieldToAccessInCompanionMethodToTriggerInterfaceClinit ) == null ) && ( opcode == ( org.objectweb.asm.Opcodes.PUTSTATIC ) ) ) && ( owner.equals ( internalName ) ) ) { interfaceFieldToAccessInCompanionMethodToTriggerInterfaceClinit = com.google.devtools.build.android.desugar.FieldInfo.create ( owner , name , desc ) ; } super . visitFieldInsn ( opcode , owner , name , desc ) ; }

Target:
public void visitFieldInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { if ( ( ( ( interfaceFieldToAccessInCompanionMethodToTriggerInterfaceClinit ) == null ) && ( opcode == ( org.objectweb.asm.Opcodes.PUTSTATIC ) ) ) && ( owner.equals ( internalName ) ) ) { interfaceFieldToAccessInCompanionMethodToTriggerInterfaceClinit = com.google.devtools.build.android.desugar.io.FieldInfo.create ( owner , name , desc ) ; } super . visitFieldInsn ( opcode , owner , name , desc ) ; }
Source:
public void end ( ) throws com.android.ide.common.res2.ConsumerException { super . end ( ) ; mValuesResMap = null ; mQualifierWithDeletedValues = null ; mFactory = null ; }

Target:
public void end ( ) throws com.android.ide.common.res2.ConsumerException { super . end ( ) ; try { if ( ( mCruncher ) != null ) { mCruncher.end ( ) ; } } catch ( java.lang.InterruptedException e ) { throw new com.android.ide.common.res2.ConsumerException ( e ) ; } mValuesResMap = null ; mQualifierWithDeletedValues = null ; mFactory = null ; }
Source:
public void iccCloseLogicalChannel ( int channel , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SIM_CLOSE_CHANNEL , response ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( channel ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
void processRequestAck ( int serial ) { com.android.internal.telephony.RILRequest rr ; synchronized ( mRequestList ) { rr = mRequestList.get ( serial ) ; } if ( rr == null ) { android.telephony.Rlog.w ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , ( ( "processRequestAck: Unexpected solicited ack response! " + "serial: " ) + serial ) ) ; } else { decrementWakeLock ( rr ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + " Ack < " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } } }
Source:
void setTlsChannelId ( long sslNativePointer , org.conscrypt.OpenSSLKey channelIdPrivateKey ) throws javax.net.ssl.SSLException , javax.net.ssl.SSLHandshakeException { if ( channelIdEnabled ) { if ( client_mode ) { if ( channelIdPrivateKey == null ) { throw new javax.net.ssl.SSLHandshakeException ( "Invalid TLS channel ID key specified" ) ; } org.conscrypt.NativeCrypto.SSL_set1_tls_channel_id ( sslNativePointer , channelIdPrivateKey.getPkeyContext ( ) ) ; } else { org.conscrypt.NativeCrypto.SSL_enable_tls_channel_id ( sslNativePointer ) ; } } }

Target:
void setTlsChannelId ( long sslNativePointer , org.conscrypt.OpenSSLKey channelIdPrivateKey ) throws javax.net.ssl.SSLException , javax.net.ssl.SSLHandshakeException { if ( channelIdEnabled ) { if ( client_mode ) { if ( channelIdPrivateKey == null ) { throw new javax.net.ssl.SSLHandshakeException ( "Invalid TLS channel ID key specified" ) ; } org.conscrypt.NativeCrypto.SSL_set1_tls_channel_id ( sslNativePointer , channelIdPrivateKey.getNativeRef ( ) ) ; } else { org.conscrypt.NativeCrypto.SSL_enable_tls_channel_id ( sslNativePointer ) ; } } }