auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private com.android.builder.model.AndroidProject execute ( @ com.android.annotations.NonNull java.util.List < java.lang.String > arguments , boolean returnModel , @ com.android.annotations.NonNull java.lang.String ... tasks ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { executeBuild ( arguments , connection , tasks ) ; if ( returnModel ) { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > modelMap = com.android.build.gradle.integration.common.fixture.GradleTestProject.buildModel ( connection ) ; org.junit.Assert.assertEquals ( "Quering GradleTestProject.getModel() with multi-project settings" , 1 , modelMap.size ( ) ) ; return modelMap.get ( ":" ) ; } } finally { connection.close ( ) ; } return null ; }

Target:
public com.android.builder.model.AndroidProject getSingleModel ( boolean emulateStudio_1_0 ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > modelMap = com.android.build.gradle.integration.common.fixture.GradleTestProject.buildModel ( connection , emulateStudio_1_0 ) ; org.junit.Assert.assertEquals ( "Quering GradleTestProject.getModel() with multi-project settings" , 1 , modelMap.size ( ) ) ; return modelMap.get ( ":" ) ; } finally { connection.close ( ) ; } }
Source:
public void execute ( org.gradle.language.base.LanguageSourceSet source ) { source.getSource ( ) . setSrcDirs ( jni.getSource ( ) . getSrcDirs ( ) ) ; source.getSource ( ) . include ( "**/*.cpp" ) ; source.getSource ( ) . include ( "**/*.cc" ) ; source.getSource ( ) . include ( "**/*.cp" ) ; source.getSource ( ) . include ( "**/*.cxx" ) ; }

Target:
public void execute ( org.gradle.language.base.LanguageSourceSet source ) { source.getSource ( ) . setSrcDirs ( jni.getSource ( ) . getSrcDirs ( ) ) ; source.getSource ( ) . include ( "**/*.C" ) ; source.getSource ( ) . include ( "**/*.CPP" ) ; source.getSource ( ) . include ( "**/*.c++" ) ; source.getSource ( ) . include ( "**/*.cc" ) ; source.getSource ( ) . include ( "**/*.cp" ) ; source.getSource ( ) . include ( "**/*.cpp" ) ; source.getSource ( ) . include ( "**/*.cxx" ) ; }
Source:
public void setDataEnabled ( int subId , boolean enable ) { try { android.util.Log.d ( android.telephony.TelephonyManager.TAG , ( "setDataEnabled: enabled=" + enable ) ) ; com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setDataEnabled ( subId , enable ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setDataEnabled" , e ) ; } }

Target:
public boolean setNetworkSelectionModeManual ( java.lang.String operatorNumeric , boolean persistSelection ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.setNetworkSelectionModeManual ( getSubId ( ) , operatorNumeric , 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 ; }
Source:
public void run ( ) { if ( ( ! ( getModule ( ) . isDisposed ( ) ) ) && ( ! ( getProject ( ) . isDisposed ( ) ) ) ) { refreshProperties ( ) ; } }

Target:
public void run ( ) { if ( ( ( ! ( getModule ( ) . isDisposed ( ) ) ) && ( ! ( getProject ( ) . isDisposed ( ) ) ) ) && ( ! ( com.intellij.openapi.project.DumbService.isDumb ( getProject ( ) ) ) ) ) { refreshProperties ( ) ; } }
Source:
public void setVisualVoicemailEnabled ( java.lang.String callingPackage , android.telecom.PhoneAccountHandle phoneAccountHandle , boolean enabled ) { mAppOps.checkPackage ( android.os.Binder.getCallingUid ( ) , callingPackage ) ; if ( ! ( android.text.TextUtils.equals ( callingPackage , android.telecom.TelecomManager.from ( mPhone.getContext ( ) ) . getDefaultDialerPackage ( ) ) ) ) { enforceModifyPermissionOrCarrierPrivilege ( com.android.phone.PhoneUtils.getSubIdForPhoneAccountHandle ( phoneAccountHandle ) ) ; } com.android.phone.settings.VisualVoicemailSettingsUtil.setEnabled ( mPhone.getContext ( ) , phoneAccountHandle , enabled ) ; }

Target:
public android.telephony.VisualVoicemailSmsFilterSettings getActiveVisualVoicemailSmsFilterSettings ( int subId ) { enforceReadPrivilegedPermission ( ) ; return com.android.phone.vvm.VisualVoicemailSmsFilterConfig.getActiveVisualVoicemailSmsFilterSettings ( mPhone.getContext ( ) , subId ) ; }
Source:
public void testCreatePnoNetworkWithOpenHiddenNetwork ( ) { android.net.wifi.WifiConfiguration network = com.android.server.wifi.WifiConfigurationTestUtil.createOpenHiddenNetwork ( ) ; network.networkId = 5 ; android.net.wifi.WifiScanner.PnoSettings.PnoNetwork pnoNetwork = com.android.server.wifi.WifiConfigurationUtil.createPnoNetwork ( network , 1 ) ; assertEquals ( network.networkId , pnoNetwork.networkId ) ; assertEquals ( ( ( ( WifiScanner.PnoSettings.PnoNetwork.FLAG_A_BAND ) | ( WifiScanner.PnoSettings.PnoNetwork.FLAG_G_BAND ) ) | ( WifiScanner.PnoSettings.PnoNetwork.FLAG_DIRECTED_SCAN ) ) , pnoNetwork.flags ) ; assertEquals ( WifiScanner.PnoSettings.PnoNetwork.AUTH_CODE_OPEN , pnoNetwork.authBitField ) ; }

Target:
public void testCreatePnoNetworkWithOpenHiddenNetwork ( ) { android.net.wifi.WifiConfiguration network = com.android.server.wifi.WifiConfigurationTestUtil.createOpenHiddenNetwork ( ) ; android.net.wifi.WifiScanner.PnoSettings.PnoNetwork pnoNetwork = com.android.server.wifi.WifiConfigurationUtil.createPnoNetwork ( network , 1 ) ; assertEquals ( network.SSID , pnoNetwork.ssid ) ; assertEquals ( ( ( ( WifiScanner.PnoSettings.PnoNetwork.FLAG_A_BAND ) | ( WifiScanner.PnoSettings.PnoNetwork.FLAG_G_BAND ) ) | ( WifiScanner.PnoSettings.PnoNetwork.FLAG_DIRECTED_SCAN ) ) , pnoNetwork.flags ) ; assertEquals ( WifiScanner.PnoSettings.PnoNetwork.AUTH_CODE_OPEN , pnoNetwork.authBitField ) ; }
Source:
public void testPownF32_relaxed ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ INPUTSIZE ] ; android.renderscript.cts.RSUtils.genRandom ( 305419896 , 32 , 1 , ( - 16 ) , n ) ; nAlloc.copyFrom ( n ) ; script_f32_relaxed.set_n1 ( nAlloc ) ; doF32_relaxed ( 7432909 , 128 ) ; }

Target:
public void testPownF32_relaxed ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ INPUTSIZE ] ; android.renderscript.cts.RSUtils.genRandomInts ( 305419896 , 32 , ( - 16 ) , n ) ; nAlloc.copyFrom ( n ) ; script_f32_relaxed.set_n1 ( nAlloc ) ; doF32_relaxed ( 7432909 , 128 ) ; }
Source:
public void validateHomeSpWithRoamingConsoritums ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.HomeSP homeSp = new android.net.wifi.hotspot2.pps.HomeSP ( ) ; homeSp.fqdn = "fqdn" ; homeSp.friendlyName = "friendly name" ; homeSp.roamingConsortiumOIs = new long [ ] { 85 , 102 } ; org.junit.Assert.assertTrue ( homeSp.validate ( ) ) ; }

Target:
public void validateHomeSpWithInvalidHomeNetworkIds ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.HomeSP homeSp = android.net.wifi.hotspot2.pps.HomeSPTest.createHomeSpWithoutHomeNetworkIds ( ) ; java.util.Map < java.lang.String , java.lang.Long > homeNetworkIds = new java.util.HashMap < > ( ) ; byte [ ] rawSsidBytes = new byte [ 33 ] ; java.util.Arrays.fill ( rawSsidBytes , ( ( byte ) ( 'a' ) ) ) ; homeNetworkIds.put ( android.net.wifi.hotspot2.pps.StringFactory.newStringFromBytes ( rawSsidBytes , java.nio.charset.StandardCharsets.UTF_8 ) , 4660L ) ; homeSp.setHomeNetworkIds ( homeNetworkIds ) ; org.junit.Assert.assertFalse ( homeSp.validate ( ) ) ; }
Source:
public void reloadConfig ( ) throws com.android.jack.server.api.v01.ServerException , com.android.sched.util.file.NotFileException , com.android.sched.util.file.WrongPermissionException , java.io.IOException { shutdownConnections ( ) ; try { loadConfig ( ) ; buildInstalledJackCache ( ) ; start ( new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ) ; } catch ( java.io.IOException e ) { shutdown ( ) ; throw e ; } }

Target:
public void reloadConfig ( ) throws com.android.jack.server.api.v01.ServerException , com.android.sched.util.file.NotFileException , com.android.sched.util.file.WrongPermissionException , java.io.IOException { shutdownConnections ( ) ; try { checkAccess ( serverDir , java.util.EnumSet.of ( java.nio.file.attribute.PosixFilePermission.OWNER_READ , java.nio.file.attribute.PosixFilePermission.OWNER_WRITE , java.nio.file.attribute.PosixFilePermission.OWNER_EXECUTE ) ) ; loadConfig ( ) ; buildInstalledJackCache ( ) ; start ( new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ) ; } catch ( java.io.IOException e ) { shutdown ( ) ; throw e ; } }
Source:
public void test_parkUntil_3 ( ) { tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( true , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.UNSAFE.unpark ( parkerThread ) ; parkerThread.start ( ) ; parker.assertDurationIsInRange ( 0 ) ; }

Target:
public void test_parkUntil_2 ( ) { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 300 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 300 ) ; }
Source:
public void testGetImeiForSlotId ( ) { java.lang.String imei = mTelephonyManager.getImei ( 0 ) ; verifyImei ( imei , mTelephonyManager.getDeviceId ( 0 ) ) ; for ( int i = - 1 ; i <= ( mTelephonyManager.getPhoneCount ( ) ) ; i ++ ) { mTelephonyManager.getImei ( i ) ; } }

Target:
public void testGetMeid ( ) { java.lang.String meid = mTelephonyManager.getMeid ( ) ; if ( mPackageManager.hasSystemFeature ( PackageManager.FEATURE_TELEPHONY ) ) { if ( ! ( android.text.TextUtils.isEmpty ( meid ) ) ) { android.telephony.cts.TelephonyManagerTest.assertImei ( meid ) ; } else { org.junit.Assert.assertFalse ( android.text.TextUtils.isEmpty ( mTelephonyManager.getImei ( ) ) ) ; } } }
Source:
private void assertInvalidRequestMethod ( java.lang.String requestMethod ) throws java.lang.Exception { java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; try { connection.setRequestMethod ( requestMethod ) ; fail ( ) ; } catch ( java.net.ProtocolException expected ) { } }

Target:
private void assertInvalidRequestMethod ( java.lang.String requestMethod ) throws java.lang.Exception { java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; try { connection.setRequestMethod ( requestMethod ) ; org.junit.Assert.fail ( ) ; } catch ( java.net.ProtocolException expected ) { } }
Source:
public void onItemSelected ( int position ) { android.util.Log.d ( com.example.android.wearable.wear.weardrawers.MainActivity.TAG , ( "WearableNavigationDrawerView triggered onItemSelected(): " + position ) ) ; mSelectedPlanet = position ; java.lang.String selectedPlanetImage = mSolarSystem.get ( mSelectedPlanet ) . getImage ( ) ; int drawableId = getResources ( ) . getIdentifier ( selectedPlanetImage , "drawable" , getPackageName ( ) ) ; mPlanetFragment.updatePlanet ( drawableId ) ; }

Target:
public void onItemSelected ( int position ) { android.util.Log.d ( com.example.android.wearable.wear.weardrawers.MainActivity.TAG , ( "WearableNavigationDrawerAdapter.onItemSelected(): " + position ) ) ; mSelectedPlanet = position ; java.lang.String selectedPlanetImage = mSolarSystem.get ( mSelectedPlanet ) . getImage ( ) ; int drawableId = getResources ( ) . getIdentifier ( selectedPlanetImage , "drawable" , getPackageName ( ) ) ; mPlanetFragment.updatePlanet ( drawableId ) ; }
Source:
public static void setWfcRoamingSetting ( android.content.Context context , boolean enabled ) { android.provider.Settings.Global.putInt ( context.getContentResolver ( ) , android.provider.Settings.Global.WFC_IMS_ROAMING_ENABLED , ( enabled ? ImsConfig.FeatureValueConstants.ON : ImsConfig.FeatureValueConstants.OFF ) ) ; com.android.ims.ImsManager.setWfcRoamingSettingInternal ( context , enabled ) ; }

Target:
public static void setWfcRoamingSetting ( android.content.Context context , boolean enabled ) { android.provider.Settings.Global.putInt ( context.getContentResolver ( ) , android.provider.Settings.Global.WFC_IMS_ROAMING_ENABLED , ( enabled ? ImsConfig.FeatureValueConstants.ON : ImsConfig.FeatureValueConstants.OFF ) ) ; final com.android.ims.ImsManager imsManager = com.android.ims.ImsManager.getInstance ( context , android.telephony.SubscriptionManager.getDefaultVoicePhoneId ( ) ) ; if ( imsManager != null ) { imsManager.setWfcRoamingSettingInternal ( enabled ) ; } }
Source:
private void setRemoteServices ( com.android.internal.telecom.RemoteServiceCallback callback , java.util.List < android.content.ComponentName > componentNames , java.util.List < android.os.IBinder > binders ) { try { callback.onResult ( componentNames , binders ) ; } catch ( android.os.RemoteException e ) { com.android.server.telecom.Log.e ( this , e , "Contacting ConnectionService %s" , this . getComponentName ( ) ) ; } }

Target:
private void setRemoteServices ( com.android.internal.telecom.RemoteServiceCallback callback , java.util.List < android.content.ComponentName > componentNames , java.util.List < android.os.IBinder > binders ) { try { callback.onResult ( componentNames , binders ) ; } catch ( android.os.RemoteException e ) { android.telecom.Log.e ( this , e , "Contacting ConnectionService %s" , this . getComponentName ( ) ) ; } }
Source:
public boolean matches ( @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JAnnotationLiteral > t ) { boolean annotationFound = false ; for ( com.android.jack.ir.ast.JAnnotationLiteral annotation : t ) { if ( annotationType.matches ( com.android.jack.shrob.proguard.GrammarActions.getBinaryNameFormatter ( ) . getName ( annotation.getType ( ) ) ) ) { annotationFound = true ; } } if ( ! annotationFound ) { return false ; } return true ; }

Target:
public boolean matches ( @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JAnnotation > t ) { boolean annotationFound = false ; for ( com.android.jack.ir.ast.JAnnotation annotation : t ) { if ( annotationType.matches ( com.android.jack.shrob.proguard.GrammarActions.getBinaryNameFormatter ( ) . getName ( annotation.getType ( ) ) ) ) { annotationFound = true ; } } if ( ! annotationFound ) { return false ; } return true ; }
Source:
private void startServerActivity ( boolean secure ) { android.content.Intent intent = new android.content.Intent ( this , com.android.cts.verifier.bluetooth.MessageTestActivity.class ) . putExtra ( MessageTestActivity.EXTRA_SECURE , secure ) ; startActivityForResult ( intent , ( secure ? com.android.cts.verifier.bluetooth.BluetoothTestActivity.START_SECURE_SERVER_REQUEST : com.android.cts.verifier.bluetooth.BluetoothTestActivity.START_INSECURE_SERVER_REQUEST ) ) ; }

Target:
protected void onListItemClick ( android.widget.ListView l , android.view.View v , int position , long id ) { super . onListItemClick ( l , v , position , id ) ; com.android.cts.verifier.TestListAdapter.TestListItem testItem = ( ( com.android.cts.verifier.TestListAdapter.TestListItem ) ( l.getItemAtPosition ( position ) ) ) ; android.content.Intent intent = testItem.getIntent ( ) ; startActivityForResult ( intent , com.android.cts.verifier.bluetooth.BluetoothTestActivity.LAUNCH_TEST_REQUEST_CODE ) ; }
Source:
public void sendRttModifyResponse ( boolean status ) { logi ( "sendRttModifyResponse" ) ; synchronized ( mLockObj ) { if ( ( mSession ) == null ) { loge ( "sendRttModifyResponse::no session" ) ; } if ( mCallProfile.mMediaProfile.isRttCall ( ) ) { logi ( "sendRttModifyResponse::Already RTT call, ignoring." ) ; return ; } mSession.sendRttModifyResponse ( status ) ; } }

Target:
public void sendRttModifyRequest ( ) { logi ( "sendRttModifyRequest" ) ; synchronized ( mLockObj ) { if ( ( mSession ) == null ) { loge ( "sendRttModifyRequest::no session" ) ; } if ( mCallProfile.mMediaProfile.isRttCall ( ) ) { logi ( "sendRttModifyRequest::Already RTT call, ignoring." ) ; return ; } android.os.Parcel p = android.os.Parcel.obtain ( ) ; mCallProfile.writeToParcel ( p , 0 ) ; android.telephony.ims.ImsCallProfile requestedProfile = new android.telephony.ims.ImsCallProfile ( p ) ; requestedProfile.mMediaProfile.setRttMode ( ImsStreamMediaProfile.RTT_MODE_FULL ) ; mSession.sendRttModifyRequest ( requestedProfile ) ; } }
Source:
public static boolean isNonTtyOrTtyOnVolteEnabled ( android.content.Context context ) { if ( com.android.ims.ImsManager.getBooleanCarrierConfig ( context , CarrierConfigManager.KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL ) ) { return true ; } return ( Settings.Secure.getInt ( context.getContentResolver ( ) , Settings.Secure.PREFERRED_TTY_MODE , TelecomManager.TTY_MODE_OFF ) ) == ( android.telecom.TelecomManager.TTY_MODE_OFF ) ; }

Target:
public static boolean isNonTtyOrTtyOnVolteEnabled ( android.content.Context context ) { if ( com.android.ims.ImsManager.getBooleanCarrierConfig ( context , CarrierConfigManager.KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL ) ) { return true ; } android.telecom.TelecomManager tm = ( ( android.telecom.TelecomManager ) ( context.getSystemService ( Context.TELECOM_SERVICE ) ) ) ; if ( tm == null ) { android.util.Log.w ( com.android.ims.ImsManager.TAG , "isNonTtyOrTtyOnVolteEnabled: telecom not available" ) ; return true ; } return ( tm.getCurrentTtyMode ( ) ) == ( android.telecom.TelecomManager.TTY_MODE_OFF ) ; }
Source:
private boolean isPackageInstalled ( java.lang.String pkgName ) { android.content.pm.PackageManager pm = mContext.getPackageManager ( ) ; try { pm.getPackageInfo ( pkgName , PackageManager.GET_ACTIVITIES ) ; if ( com.android.internal.telephony.uicc.UiccProfile.DBG ) log ( ( pkgName + " is installed." ) ) ; return true ; } catch ( android.content.pm.PackageManager e ) { if ( com.android.internal.telephony.uicc.UiccProfile.DBG ) log ( ( pkgName + " is not installed." ) ) ; return false ; } }

Target:
private boolean isPackageInstalled ( java.lang.String pkgName ) { android.content.pm.PackageManager pm = mContext.getPackageManager ( ) ; try { pm.getPackageInfo ( pkgName , PackageManager.GET_ACTIVITIES ) ; if ( com.android.internal.telephony.uicc.UiccProfile.DBG ) com.android.internal.telephony.uicc.UiccProfile.log ( ( pkgName + " is installed." ) ) ; return true ; } catch ( android.content.pm.PackageManager e ) { if ( com.android.internal.telephony.uicc.UiccProfile.DBG ) com.android.internal.telephony.uicc.UiccProfile.log ( ( pkgName + " is not installed." ) ) ; return false ; } }
Source:
public void testOpenDrawer_rotateScreen ( ) { android.support.test.espresso.contrib.DrawerActions.openDrawer ( R.id.drawer_layout ) ; setOrientation ( ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.drawer_layout ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.contrib.DrawerMatchers.isOpen ( ) ) ) ; setOrientation ( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.drawer_layout ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.contrib.DrawerMatchers.isOpen ( ) ) ) ; }

Target:
public void testOpenDrawer_rotateScreen ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.drawer_layout ) ) . perform ( android.support.test.espresso.contrib.DrawerActions.open ( ) ) ; setOrientation ( ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.drawer_layout ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.contrib.DrawerMatchers.isOpen ( ) ) ) ; setOrientation ( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.drawer_layout ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.contrib.DrawerMatchers.isOpen ( ) ) ) ; }
Source:
private static java.util.Properties createProps ( com.android.sdklib.internal.repository.packages.FullRevision revision , int minPlatformToolsRev ) { java.util.Properties props = new java.util.Properties ( ) ; props.setProperty ( PkgProps.MIN_PLATFORM_TOOLS_REV , java.lang.Integer.toString ( minPlatformToolsRev ) ) ; if ( revision != null ) { props.setProperty ( PkgProps.PKG_MINOR_REV , java.lang.Integer.toString ( revision.getMinor ( ) ) ) ; props.setProperty ( PkgProps.PKG_MICRO_REV , java.lang.Integer.toString ( revision.getMicro ( ) ) ) ; props.setProperty ( PkgProps.PKG_PREVIEW_REV , java.lang.Integer.toString ( revision.getPreview ( ) ) ) ; } return props ; }

Target:
private static java.util.Properties createProps ( com.android.sdklib.internal.repository.packages.FullRevision revision , int minPlatformToolsRev ) { java.util.Properties props = com.android.sdklib.internal.repository.packages.FullRevisionPackageTest.createProps ( revision ) ; props.setProperty ( PkgProps.MIN_PLATFORM_TOOLS_REV , java.lang.Integer.toString ( minPlatformToolsRev ) ) ; return props ; }
Source:
private com.android.dx.cf.code.RopMethod getRopMethod ( ) { int sz = result.size ( ) ; com.android.dx.cf.code.BasicBlockList bbl = new com.android.dx.cf.code.BasicBlockList ( sz ) ; for ( int i = 0 ; i < sz ; i ++ ) { bbl.set ( i , result.get ( i ) ) ; } bbl.setImmutable ( ) ; return new com.android.dx.cf.code.RopMethod ( bbl , getSpecialLabel ( com.android.dx.cf.code.Ropper.PARAM_ASSIGNMENT ) ) ; }

Target:
private com.android.dx.rop.code.RopMethod getRopMethod ( ) { int sz = result.size ( ) ; com.android.dx.rop.code.BasicBlockList bbl = new com.android.dx.rop.code.BasicBlockList ( sz ) ; for ( int i = 0 ; i < sz ; i ++ ) { bbl.set ( i , result.get ( i ) ) ; } bbl.setImmutable ( ) ; return new com.android.dx.rop.code.RopMethod ( bbl , getSpecialLabel ( com.android.dx.cf.code.Ropper.PARAM_ASSIGNMENT ) ) ; }
Source:
public static void initialize ( java.security.SecureRandom generator ) throws java.io.IOException { java.io.FileInputStream fis = null ; try { fis = new java.io.FileInputStream ( "/dev/urandom" ) ; if ( ( fis.read ( org.chromium.base.SecureRandomInitializer.sSeedBytes ) ) != ( org.chromium.base.SecureRandomInitializer.sSeedBytes.length ) ) { throw new java.io.IOException ( "Failed to get enough random data." ) ; } generator.setSeed ( org.chromium.base.SecureRandomInitializer.sSeedBytes ) ; } finally { try { if ( fis != null ) { fis.close ( ) ; } } catch ( java.io.IOException e ) { } } }

Target:
public static void initialize ( java.security.SecureRandom generator ) throws java.io.IOException { java.io.FileInputStream fis = null ; try { byte [ ] seedBytes = new byte [ org.chromium.base.SecureRandomInitializer.NUM_RANDOM_BYTES ] ; fis = new java.io.FileInputStream ( "/dev/urandom" ) ; if ( ( fis.read ( seedBytes ) ) != ( seedBytes.length ) ) { throw new java.io.IOException ( "Failed to get enough random data." ) ; } generator.setSeed ( seedBytes ) ; } finally { org.chromium.base.StreamUtil.closeQuietly ( fis ) ; } }
Source:
protected void onPostExecute ( java.lang.Boolean success ) { if ( success ) { android.widget.Toast.makeText ( this , R.string.credentials_erased , Toast.LENGTH_SHORT ) . show ( ) ; } else { android.widget.Toast.makeText ( this , R.string.credentials_not_erased , Toast.LENGTH_SHORT ) . show ( ) ; } finish ( ) ; }

Target:
protected void onPostExecute ( java.lang.Boolean success ) { if ( success ) { android.widget.Toast.makeText ( this , R.string.credentials_erased , Toast.LENGTH_SHORT ) . show ( ) ; clearLegacyVpnIfEstablished ( ) ; } else { android.widget.Toast.makeText ( this , R.string.credentials_not_erased , Toast.LENGTH_SHORT ) . show ( ) ; } finish ( ) ; }
Source:
public void startScan ( int callingUid , int scanCounter , com.android.server.wifi.ScanSettings settings , android.os.WorkSource workSource ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putParcelable ( com.android.server.wifi.WifiStateMachine.CUSTOMIZED_SCAN_SETTING , settings ) ; bundle.putParcelable ( com.android.server.wifi.WifiStateMachine.CUSTOMIZED_SCAN_WORKSOURCE , workSource ) ; bundle.putLong ( com.android.server.wifi.WifiStateMachine.SCAN_REQUEST_TIME , java.lang.System.currentTimeMillis ( ) ) ; sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_START_SCAN , callingUid , scanCounter , bundle ) ; }

Target:
public void startScan ( int callingUid , int scanCounter , android.net.wifi.ScanSettings settings , android.os.WorkSource workSource ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putParcelable ( com.android.server.wifi.WifiStateMachine.CUSTOMIZED_SCAN_SETTING , settings ) ; bundle.putParcelable ( com.android.server.wifi.WifiStateMachine.CUSTOMIZED_SCAN_WORKSOURCE , workSource ) ; bundle.putLong ( com.android.server.wifi.WifiStateMachine.SCAN_REQUEST_TIME , mClock.getWallClockMillis ( ) ) ; sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_START_SCAN , callingUid , scanCounter , bundle ) ; }
Source:
private boolean isDataAllowedForApn ( com.android.internal.telephony.dataconnection.ApnContext apnContext ) { if ( ( ( apnContext.getApnType ( ) . equals ( PhoneConstants.APN_TYPE_DEFAULT ) ) || ( apnContext.getApnType ( ) . equals ( PhoneConstants.APN_TYPE_IA ) ) ) && ( ( mPhone.getServiceState ( ) . getRilDataRadioTechnology ( ) ) == ( android.telephony.ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN ) ) ) { log ( "Default data call activation not allowed in iwlan." ) ; return false ; } return apnContext.isReady ( ) ; }

Target:
private boolean isPhoneStateIdle ( ) { for ( int i = 0 ; i < ( android.telephony.TelephonyManager.getDefault ( ) . getPhoneCount ( ) ) ; i ++ ) { com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( i ) ; if ( ( phone != null ) && ( ( phone.getState ( ) ) != ( PhoneConstants.State.IDLE ) ) ) { log ( ( "isPhoneStateIdle false: Voice call active on phone " + i ) ) ; return false ; } } return true ; }
Source:
public void testUnusedLocalVar002 ( ) throws java.lang.Exception { java.io.File outDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToLib ( outDir , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.frontend.test011.jack" ) ) ; }

Target:
public void testQualifedNew001 ( ) throws java.lang.Exception { java.io.File outDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToLib ( outDir , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.frontend.test011.jack" ) ) ; }
Source:
public org.eclipse.swt.graphics.Font getFont ( java.lang.Object element , int columnIndex ) { if ( element instanceof com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) { if ( ( ( ( com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) ( element ) ) . getState ( ) ) != ( com.android.sdkuilib.internal.repository.PackagesPage.PkgState.INSTALLED ) ) { return mTreeFontItalic ; } } else if ( element instanceof java.lang.Package ) { return mTreeFontItalic ; } return super . getFont ( element ) ; }

Target:
public org.eclipse.swt.graphics.Font getFont ( java.lang.Object element , int columnIndex ) { if ( element instanceof com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) { if ( ( ( ( com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) ( element ) ) . getState ( ) ) == ( com.android.sdkuilib.internal.repository.PackagesPage.PkgState.NEW ) ) { return mTreeFontItalic ; } } else if ( element instanceof java.lang.Package ) { return mTreeFontItalic ; } return super . getFont ( element ) ; }
Source:
public void compileFrameworks ( ) throws java.lang.Exception { java.io.File out = com.android.jack.TestTools.createTempFile ( "frameworks" , ".dex" ) ; java.lang.String classpathString = com.android.jack.TestTools.getClasspathsAsString ( com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.BOOTCLASSPATH , com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.CLASSPATH ) ; com.android.jack.TestTools.compileSourceToDex ( new com.android.jack.Options ( ) , com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.SOURCELIST , classpathString , out , false ) ; }

Target:
public void compileFrameworks ( ) throws java.lang.Exception { java.io.File outDexFolder = com.android.jack.TestTools.createTempDir ( "frameworks" , "dex" ) ; java.lang.String classpathString = com.android.jack.TestTools.getClasspathsAsString ( com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.BOOTCLASSPATH , com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.CLASSPATH ) ; com.android.jack.TestTools.compileSourceToDex ( new com.android.jack.Options ( ) , com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.SOURCELIST , classpathString , outDexFolder , false ) ; }
Source:
public int following ( int offset ) { throw new java.lang.UnsupportedOperationException ( "following(int) is not yet implemented" ) ; }

Target:
public boolean isBoundary ( int offset ) { if ( ! ( delegate.isBoundary ( offset ) ) ) { return false ; } if ( ( backwardsTrie ) == null ) { return true ; } resetState ( ) ; return ! ( breakExceptionAt ( offset ) ) ; }
Source:
void putExtras ( java.lang.String callId , android.os.Bundle extras ) { android.telecom.Log.v ( this , "putExtras: %s" , callId ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.putExtras ( callId , extras ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void putExtras ( java.lang.String callId , android.os.Bundle extras ) { android.telecom.Log.v ( this , "putExtras: %s" , callId ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.putExtras ( callId , extras , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public java.lang.String getString ( int attrId ) { if ( ! ( exists ) ) return new java.lang.String ( ) ; switch ( attrId ) { case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_TITLE : return title ; case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_ARTIST_NAME : return artistName ; case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_ALBUM_NAME : return albumName ; case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_MEDIA_NUMBER : return mediaNumber ; case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_MEDIA_TOTAL_NUMBER : return mediaTotalNumber ; case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_GENRE : return genre ; case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_PLAYING_TIME_MS : return playingTimeMs ; default : return new java.lang.String ( ) ; } }

Target:
public java.lang.String getString ( int attrId ) { if ( ! ( exists ) ) return new java.lang.String ( ) ; switch ( attrId ) { case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_TITLE : return title ; case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_ARTIST_NAME : return artistName ; case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_ALBUM_NAME : return albumName ; case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_MEDIA_NUMBER : return mediaNumber ; case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_MEDIA_TOTAL_NUMBER : return mediaTotalNumber ; case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_GENRE : return genre ; case com.android.bluetooth.avrcp.Avrcp.MediaAttributes.ATTR_PLAYING_TIME_MS : return java.lang.Long.toString ( playingTimeMs ) ; default : return new java.lang.String ( ) ; } }
Source:
public void spawnDescendant ( com.android.apksig.SigningCertificateLineage.SignerConfig parent , com.android.apksig.SigningCertificateLineage.SignerConfig child ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.SignatureException , java.security.cert.CertificateEncodingException { com.android.apksig.SigningCertificateLineage.SignerCapabilities signerCapabilities = new com.android.apksig.SigningCertificateLineage.SignerCapabilities.Builder ( ) . build ( ) ; spawnDescendant ( parent , signerCapabilities , child , signerCapabilities ) ; }

Target:
public com.android.apksig.SigningCertificateLineage spawnDescendant ( com.android.apksig.SigningCertificateLineage.SignerConfig parent , com.android.apksig.SigningCertificateLineage.SignerConfig child ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.SignatureException , java.security.cert.CertificateEncodingException { if ( ( parent == null ) || ( child == null ) ) { throw new java.lang.NullPointerException ( "can't add new descendant to lineage with null inputs" ) ; } com.android.apksig.SigningCertificateLineage.SignerCapabilities signerCapabilities = new com.android.apksig.SigningCertificateLineage.SignerCapabilities.Builder ( ) . build ( ) ; return spawnDescendant ( parent , child , signerCapabilities ) ; }
Source:
public void testKeyStore_IsCertificateEntry_PrivateKey_Failure ( ) throws java.lang.Exception { mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.importKey ( ( ( Credentials.USER_PRIVATE_KEY ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_KEY_1 ) ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.USER_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_USER_1 ) ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; assertFalse ( "Should return false for PrivateKeyEntry" , mKeyStore.isCertificateEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }

Target:
public void testKeyStore_IsCertificateEntry_PrivateKey_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.importKey ( ( ( Credentials.USER_PRIVATE_KEY ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_KEY_1 ) ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.USER_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_USER_1 ) ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; assertFalse ( "Should return false for PrivateKeyEntry" , mKeyStore.isCertificateEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }
Source:
private void autoConnect ( ) { if ( ( mAdapterService.getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) { errorLog ( "autoConnect() - BT is not ON. Exiting autoConnect" ) ; return ; } if ( ( mAdapterService.isQuietModeEnabled ( ) ) == false ) { debugLog ( "autoConnect() - Initiate auto connection on BT on..." ) ; autoConnectHeadset ( ) ; autoConnectA2dp ( ) ; } else { debugLog ( "autoConnect() - BT is in quiet mode. Not initiating auto connections" ) ; } }

Target:
private void autoConnect ( ) { if ( ( mAdapterService.getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) { com.android.bluetooth.btservice.PhonePolicy.errorLog ( "autoConnect() - BT is not ON. Exiting autoConnect" ) ; return ; } if ( ! ( mAdapterService.isQuietModeEnabled ( ) ) ) { com.android.bluetooth.btservice.PhonePolicy.debugLog ( "autoConnect() - Initiate auto connection on BT on..." ) ; autoConnectHeadset ( ) ; autoConnectA2dp ( ) ; } else { com.android.bluetooth.btservice.PhonePolicy.debugLog ( "autoConnect() - BT is in quiet mode. Not initiating auto connections" ) ; } }
Source:
public synchronized void close ( ) { synchronized ( mLock ) { if ( ( isBasicChannel ( ) ) && ( hasSelectedAid ( ) ) ) { android.util.Log.i ( mTag , "Close basic channel - Select without AID ..." ) ; mTerminal.selectDefaultApplication ( ) ; } mTerminal.closeChannel ( this ) ; mIsClosed = true ; if ( ( mBinder ) != null ) { mBinder.unlinkToDeath ( this , 0 ) ; } if ( ( mSession ) != null ) { mSession.removeChannel ( this ) ; } } }

Target:
public byte [ ] getSelectResponse ( ) { return hasSelectedAid ( ) ? mSelectResponse : null ; }
Source:
public static native void NotifyConstructed ( java.lang.Object o ) ;

Target:
public static void NotifyConstructed ( java.lang.Object o ) { if ( art.test.TestWatcher.criticalFailure ) { return ; } art.test.TestWatcher.MonitorEnter ( ) ; if ( ( art.test.TestWatcher.reportingEnabled ) && ( ! ( art.test.TestWatcher.doingReport ) ) ) { art.test.TestWatcher.doingReport = true ; java.lang.System.out.println ( ( ( "Object allocated of type '" + ( o.getClass ( ) . getName ( ) ) ) + "'" ) ) ; art.test.TestWatcher.doingReport = false ; } art.test.TestWatcher.MonitorExit ( ) ; }
Source:
public void testMinSdkVersion ( ) { assertEquals ( 7 , mManifestTestApp.getMinSdkVersion ( ) ) ; }

Target:
public void testMinSdkVersion ( ) { assertEquals ( 7 , mManifestTestApp.getMinSdkVersion ( ) ) ; assertEquals ( 8 , mManifestTestApp.getTargetSdkVersion ( ) ) ; assertEquals ( "foo" , mManifestInstrumentation.getMinSdkVersionString ( ) ) ; assertEquals ( 0 , mManifestInstrumentation.getMinSdkVersion ( ) ) ; }
Source:
public byte [ ] readBytes ( ) throws java.io.IOException { final int size = readRawVarint32 ( ) ; if ( ( size <= ( ( bufferSize ) - ( bufferPos ) ) ) && ( size > 0 ) ) { final byte [ ] result = new byte [ size ] ; java.lang.System.arraycopy ( buffer , bufferPos , result , 0 , size ) ; bufferPos += size ; return result ; } else { return readRawBytes ( size ) ; } }

Target:
public byte [ ] readBytes ( ) throws java.io.IOException { final int size = readRawVarint32 ( ) ; if ( ( size <= ( ( bufferSize ) - ( bufferPos ) ) ) && ( size > 0 ) ) { final byte [ ] result = new byte [ size ] ; java.lang.System.arraycopy ( buffer , bufferPos , result , 0 , size ) ; bufferPos += size ; return result ; } else if ( size == 0 ) { return WireFormatNano.EMPTY_BYTES ; } else { return readRawBytes ( size ) ; } }
Source:
private void initResponseCache ( ) throws java.io.IOException { java.lang.String tmp = java.lang.System.getProperty ( "java.io.tmpdir" ) ; java.io.File cacheDir = new java.io.File ( tmp , ( "HttpCache-" + ( java.util.UUID.randomUUID ( ) ) ) ) ; cache = new com.android.okhttp.HttpResponseCache ( cacheDir , java.lang.Integer.MAX_VALUE ) ; java.net.ResponseCache.setDefault ( cache ) ; }

Target:
private void initResponseCache ( ) throws java.io.IOException { java.lang.String tmp = java.lang.System.getProperty ( "java.io.tmpdir" ) ; java.io.File cacheDir = new java.io.File ( tmp , ( "HttpCache-" + ( java.util.UUID.randomUUID ( ) ) ) ) ; cache = com.android.okhttp.AndroidShimResponseCache.create ( cacheDir , java.lang.Integer.MAX_VALUE ) ; java.net.ResponseCache.setDefault ( cache ) ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newIndex ) { return new com.android.jack.dx.io.instructions.FiveRegisterDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newIndex , getIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , b , c , d , e ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newFirstIndex , int newSecondIndex ) { assert ( getSecondIndexType ( ) ) == ( com.android.jack.dx.io.IndexType.NONE ) ; return new com.android.jack.dx.io.instructions.FiveRegisterDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newFirstIndex , getFirstIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , b , c , d , e ) ; }
Source:
private static java.lang.String externalMethodReturnTypeAndName ( java.lang.String internalClassName , java.lang.String internalMethodName , java.lang.String internalMethodDescriptor ) { return internalMethodName.equals ( ClassConstants.INTERNAL_METHOD_NAME_INIT ) ? proguard.classfile.util.ClassUtil.externalShortClassName ( proguard.classfile.util.ClassUtil.externalClassName ( internalClassName ) ) : ( ( proguard.classfile.util.ClassUtil.externalMethodReturnType ( internalMethodDescriptor ) ) + ' ' ) + internalMethodName ; }

Target:
private static java.lang.String externalMethodReturnTypeAndName ( java.lang.String internalClassName , java.lang.String internalMethodName , java.lang.String internalMethodDescriptor ) { return internalMethodName.equals ( ClassConstants.METHOD_NAME_INIT ) ? proguard.classfile.util.ClassUtil.externalShortClassName ( proguard.classfile.util.ClassUtil.externalClassName ( internalClassName ) ) : ( ( proguard.classfile.util.ClassUtil.externalMethodReturnType ( internalMethodDescriptor ) ) + ' ' ) + internalMethodName ; }
Source:
public void run ( ) { mActivity.setContentView ( tv ) ; tv.setSingleLine ( true ) ; tv.setLines ( 2 ) ; }

Target:
public void run ( ) { final float pixelPerSp = mActivity.getResources ( ) . getDisplayMetrics ( ) . scaledDensity ; mActivity.setContentView ( tv , new android.view.ViewGroup.LayoutParams ( ( ( int ) ( 100 * pixelPerSp ) ) , ViewGroup.LayoutParams.MATCH_PARENT ) ) ; tv.setSingleLine ( true ) ; tv.setLines ( 2 ) ; }
Source:
public void testFlagEExistingE ( ) { int iFlags = PackageManager.INSTALL_EXTERNAL ; int rFlags = ( PackageManager.INSTALL_EXTERNAL ) | ( PackageManager.INSTALL_REPLACE_EXISTING ) ; installFromRawResource ( "install.apk" , R.raw.install , iFlags , false , false , ( - 1 ) , ( - 1 ) ) ; installFromRawResource ( "install.apk" , R.raw.install , rFlags , true , false , ( - 1 ) , ( - 1 ) ) ; }

Target:
public void testFlagIExistingI ( ) { int iFlags = android.content.pm.PackageManager.INSTALL_INTERNAL ; int rFlags = ( android.content.pm.PackageManager.INSTALL_INTERNAL ) | ( android.content.pm.PackageManager.INSTALL_REPLACE_EXISTING ) ; installFromRawResource ( "install.apk" , R.raw.install , iFlags , false , false , ( - 1 ) , ( - 1 ) ) ; installFromRawResource ( "install.apk" , R.raw.install , rFlags , true , false , ( - 1 ) , ( - 1 ) ) ; }
Source:
public void testStaticMethod ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { java.lang.reflect.Method [ ] methods = com.android.jack.java8.parameter.test008.Tests.class . getDeclaredMethods ( ) ; for ( java.lang.reflect.Method method : methods ) { if ( method.isSynthetic ( ) ) { java.lang.reflect.Parameter [ ] parameters = method.getParameters ( ) ; junit.framework.Assert.assertEquals ( 2 , parameters.length ) ; check ( parameters [ 0 ] , "arg0" , false , false , false , com.android.jack.java8.parameter.test008.Tests.MODIFIER_NONE ) ; check ( parameters [ 1 ] , "arg1" , false , false , false , com.android.jack.java8.parameter.test008.Tests.MODIFIER_NONE ) ; } } }

Target:
public void testStaticMethod ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { java.lang.reflect.Method [ ] methods = com.android.jack.java8.parameter.test008.Tests.class . getDeclaredMethods ( ) ; for ( java.lang.reflect.Method method : methods ) { if ( method.isSynthetic ( ) ) { java.lang.reflect.Parameter [ ] parameters = method.getParameters ( ) ; junit.framework.Assert.assertEquals ( 2 , parameters.length ) ; check ( parameters [ 0 ] , "arg0" , false , false , false , ParameterTestModifier.MODIFIER_NONE ) ; check ( parameters [ 1 ] , "arg1" , false , false , false , ParameterTestModifier.MODIFIER_NONE ) ; } } }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( "?" ) ; for ( java.lang.reflect.Type lowerBound : lowerBounds ) { builder.append ( " super " ) . append ( com.google.common.reflect.Types.toString ( lowerBound ) ) ; } for ( java.lang.reflect.Type upperBound : com.google.common.reflect.Types.filterUpperBounds ( upperBounds ) ) { builder.append ( " extends " ) . append ( com.google.common.reflect.Types.toString ( upperBound ) ) ; } return builder.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( "?" ) ; for ( java.lang.reflect.Type lowerBound : lowerBounds ) { builder.append ( " super " ) . append ( com.google.common.reflect.Types.JavaVersion.CURRENT.typeName ( lowerBound ) ) ; } for ( java.lang.reflect.Type upperBound : com.google.common.reflect.Types.filterUpperBounds ( upperBounds ) ) { builder.append ( " extends " ) . append ( com.google.common.reflect.Types.JavaVersion.CURRENT.typeName ( upperBound ) ) ; } return builder.toString ( ) ; }
Source:
public java.lang.Object validateValue ( ) throws java.lang.Throwable { if ( ( tag ) == ( org.apache.harmony.lang.annotation.AnnotationMember.ERROR ) ) { rethrowError ( ) ; } if ( ( value ) == ( org.apache.harmony.lang.annotation.AnnotationMember.NO_VALUE ) ) { return null ; } if ( ( ( elementType ) == ( value.getClass ( ) ) ) || ( elementType.isInstance ( value ) ) ) { return copyValue ( ) ; } else { throw new java.lang.annotation.AnnotationTypeMismatchException ( definingMethod , value.getClass ( ) . getName ( ) ) ; } }

Target:
public java.lang.Object validateValue ( ) throws java.lang.Throwable { if ( ( tag ) == ( libcore.reflect.AnnotationMember.ERROR ) ) { rethrowError ( ) ; } if ( ( value ) == ( libcore.reflect.AnnotationMember.NO_VALUE ) ) { return null ; } if ( ( ( elementType ) == ( value.getClass ( ) ) ) || ( elementType.isInstance ( value ) ) ) { return copyValue ( ) ; } else { throw new java.lang.annotation.AnnotationTypeMismatchException ( definingMethod , value.getClass ( ) . getName ( ) ) ; } }