auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String getBuildGradleContent ( ) { return ( ( ( ( ( ( ( "apply plugin: \'com.android.model.library\'\n" + ( ( ( "\n" + "model {\n" ) + " android.config {\n" ) + " compileSdkVersion " ) ) + ( com.android.build.gradle.integration.common.fixture.GradleTestProject.DEFAULT_COMPILE_SDK_VERSION ) ) + "\n" ) + " buildToolsVersion '" ) + ( com.android.build.gradle.integration.common.fixture.GradleTestProject.DEFAULT_BUILD_TOOL_VERSION ) ) + "\'\n" ) + " }\n" ) + "}\n" ; }

Target:
public java.lang.String getBuildGradleContent ( ) { return ( ( ( ( ( ( ( ( ( ( ( ( "apply plugin: \'com.android.model.library\'\n" + ( ( ( "\n" + "model {\n" ) + " android {\n" ) + " compileSdkVersion " ) ) + ( com.android.build.gradle.integration.common.fixture.GradleTestProject.DEFAULT_COMPILE_SDK_VERSION ) ) + "\n" ) + " buildToolsVersion '" ) + ( com.android.build.gradle.integration.common.fixture.GradleTestProject.DEFAULT_BUILD_TOOL_VERSION ) ) + "\'\n" ) + " defaultConfig {\n" ) + " useJack " ) + ( com.android.build.gradle.integration.common.fixture.GradleTestProject.CUSTOM_JACK ) ) + "\n" ) + " }\n" ) + " }\n" ) + "}\n" ; }
Source:
public void test2_anyInRange ( ) { int [ ] bits = new int [ 100 ] ; for ( int i = 0 ; i < 100 ; i += 11 ) { assertFalse ( com.android.dx.util._tests.BitsTest.label ( i ) , com.android.dx.util.Bits.anyInRange ( bits , i , 100 ) ) ; } }

Target:
public void test2_anyInRange ( ) { int [ ] bits = new int [ 100 ] ; for ( int i = 0 ; i < 100 ; i += 11 ) { assertFalse ( com.android.dx.util.BitsTest.label ( i ) , com.android.dx.util.Bits.anyInRange ( bits , i , 100 ) ) ; } }
Source:
public java.lang.String getInstrumentationRunner ( ) { return testVariantConfig.getInstrumentationRunner ( ) ; }

Target:
public java.util.List < java.io.File > getTestDirectories ( ) { com.android.build.gradle.internal.core.GradleVariantConfiguration variantConfiguration = testVariantData.getVariantConfiguration ( ) ; com.google.common.collect.ImmutableList.Builder < java.io.File > javaDirectories = com.google.common.collect.ImmutableList.builder ( ) ; for ( com.android.builder.model.SourceProvider sourceProvider : variantConfiguration.getSortedSourceProviders ( ) ) { javaDirectories.addAll ( sourceProvider.getJavaDirectories ( ) ) ; } return javaDirectories.build ( ) ; }
Source:
private void closeInputProfileProxy ( ) { if ( ( mInputProxy ) != null ) { try { android.bluetooth.BluetoothAdapter adapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; adapter.closeProfileProxy ( BluetoothProfile.INPUT_DEVICE , mInputProxy ) ; mInputProxy = null ; } catch ( java.lang.Throwable t ) { android.util.Log.w ( com.android.tv.settings.accessories.BluetoothInputDeviceConnector.TAG , "Error cleaning up input profile proxy" , t ) ; } } }

Target:
private void closeInputProfileProxy ( ) { if ( ( mInputProxy ) != null ) { try { android.bluetooth.BluetoothAdapter adapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; adapter.closeProfileProxy ( BluetoothProfile.HID_HOST , mInputProxy ) ; mInputProxy = null ; } catch ( java.lang.Throwable t ) { android.util.Log.w ( com.android.tv.settings.accessories.BluetoothInputDeviceConnector.TAG , "Error cleaning up input profile proxy" , t ) ; } } }
Source:
protected void onSetInternalDataEnabled ( boolean enabled , android.os.Message onCompleteMsg ) { boolean sendOnComplete = true ; synchronized ( mDataEnabledLock ) { mInternalDataEnabled = enabled ; if ( enabled ) { log ( "onSetInternalDataEnabled: changed to enabled, try to setup data call" ) ; onTrySetupData ( Phone.REASON_DATA_ENABLED ) ; } else { sendOnComplete = false ; log ( "onSetInternalDataEnabled: changed to disabled, cleanUpAllConnections" ) ; cleanUpAllConnections ( null , onCompleteMsg ) ; } } if ( sendOnComplete ) { if ( onCompleteMsg != null ) { onCompleteMsg.sendToTarget ( ) ; } } }

Target:
protected void onSetInternalDataEnabled ( boolean enabled , android.os.Message onCompleteMsg ) { if ( DBG ) log ( ( "onSetInternalDataEnabled: enabled=" + enabled ) ) ; boolean sendOnComplete = true ; synchronized ( mDataEnabledLock ) { mInternalDataEnabled = enabled ; if ( enabled ) { log ( "onSetInternalDataEnabled: changed to enabled, try to setup data call" ) ; onTrySetupData ( Phone.REASON_DATA_ENABLED ) ; } else { sendOnComplete = false ; log ( "onSetInternalDataEnabled: changed to disabled, cleanUpAllConnections" ) ; cleanUpAllConnections ( null , onCompleteMsg ) ; } } if ( sendOnComplete ) { if ( onCompleteMsg != null ) { onCompleteMsg.sendToTarget ( ) ; } } }
Source:
public void onStart ( ) { super . onStart ( ) ; falsingManager.onScreenOn ( ) ; if ( ( getView ( ) ) != null ) { if ( ( ( animationState ) == ( com.android.incallui.answer.impl.answermethod.FlingUpDownMethod.AnimationState.SWIPE ) ) || ( ( animationState ) == ( com.android.incallui.answer.impl.answermethod.FlingUpDownMethod.AnimationState.HINT ) ) ) { swipeProgress = 0 ; updateContactPuck ( ) ; onMoveReset ( false ) ; } else if ( ( animationState ) == ( com.android.incallui.answer.impl.answermethod.FlingUpDownMethod.AnimationState.ENTRY ) ) { startSwipeToAnswerEntryAnimation ( ) ; } } }

Target:
public void onStart ( ) { android.os.Trace.beginSection ( "FlingUpDownMethod.onStart" ) ; super . onStart ( ) ; falsingManager.onScreenOn ( ) ; if ( ( getView ( ) ) != null ) { if ( ( ( animationState ) == ( com.android.incallui.answer.impl.answermethod.FlingUpDownMethod.AnimationState.SWIPE ) ) || ( ( animationState ) == ( com.android.incallui.answer.impl.answermethod.FlingUpDownMethod.AnimationState.HINT ) ) ) { swipeProgress = 0 ; updateContactPuck ( ) ; onMoveReset ( false ) ; } else if ( ( animationState ) == ( com.android.incallui.answer.impl.answermethod.FlingUpDownMethod.AnimationState.ENTRY ) ) { startSwipeToAnswerEntryAnimation ( ) ; } } android.os.Trace.endSection ( ) ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , float [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 4 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , byte [ ] d ) { validateIsInt8 ( ) ; copy1DRangeFromUnchecked ( off , count , d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
public void testIncompleteContentXml ( ) throws java.lang.Exception { java.lang.String document = ( ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.SdkRepositoryTest.OPEN_TAG ) ) + "<r:platform> <r:api-level>1</r:api-level> <r:libs /> </r:platform>" ) + ( com.android.sdklib.repository.SdkRepositoryTest.CLOSE_TAG ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; javax.xml.validation.Validator validator = getValidator ( SdkRepoConstants.NS_LATEST_VERSION , null ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "cvc-complex-type.2.4.a: Invalid content was found.*" , e.getMessage ( ) ) ; return ; } fail ( ) ; }

Target:
public void testEmptyXml ( ) throws java.lang.Exception { java.lang.String document = "<?xml version=\"1.0\"?>" ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler handler = new com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler ( ) ; javax.xml.validation.Validator validator = getRepoValidator ( SdkRepoConstants.NS_LATEST_VERSION , handler ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "Premature end of file.*" , e.getMessage ( ) ) ; return ; } handler.verify ( ) ; fail ( ) ; }
Source:
public int getMessageAccessPermission ( ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { return android.bluetooth.BluetoothDevice.ACCESS_UNKNOWN ; } try { return android.bluetooth.BluetoothDevice.sService.getMessageAccessPermission ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return android.bluetooth.BluetoothDevice.ACCESS_UNKNOWN ; }

Target:
public int getPhonebookAccessPermission ( ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { return android.bluetooth.BluetoothDevice.ACCESS_UNKNOWN ; } try { return service.getPhonebookAccessPermission ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return android.bluetooth.BluetoothDevice.ACCESS_UNKNOWN ; }
Source:
public void eventDataPathConfirm ( android.hardware.wifi.V1_0.NanDataPathConfirmInd event ) { if ( com.android.server.wifi.aware.WifiAwareNativeCallback.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNativeCallback.TAG , ( ( ( ( ( ( ( "onDataPathConfirm: ndpInstanceId=" + ( event.ndpInstanceId ) ) + ", peerNdiMacAddr=" ) + ( java.lang.String.valueOf ( libcore.util.HexEncoding.encode ( event.peerNdiMacAddr ) ) ) ) + ", dataPathSetupSuccess=" ) + ( event.dataPathSetupSuccess ) ) + ", reason=" ) + ( event.status.status ) ) ) ; } mWifiAwareStateManager.onDataPathConfirmNotification ( event.ndpInstanceId , event.peerNdiMacAddr , event.dataPathSetupSuccess , event.status.status , convertUcByteToLcByteArray ( event.appInfo ) ) ; }

Target:
public void eventDataPathConfirm ( android.hardware.wifi.V1_0.NanDataPathConfirmInd event ) { if ( com.android.server.wifi.aware.WifiAwareNativeCallback.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNativeCallback.TAG , ( ( ( ( ( ( ( "onDataPathConfirm: ndpInstanceId=" + ( event.ndpInstanceId ) ) + ", peerNdiMacAddr=" ) + ( java.lang.String.valueOf ( libcore.util.HexEncoding.encode ( event.peerNdiMacAddr ) ) ) ) + ", dataPathSetupSuccess=" ) + ( event.dataPathSetupSuccess ) ) + ", reason=" ) + ( event.status.status ) ) ) ; } mWifiAwareStateManager.onDataPathConfirmNotification ( event.ndpInstanceId , event.peerNdiMacAddr , event.dataPathSetupSuccess , event.status.status , convertArrayListToNativeByteArray ( event.appInfo ) ) ; }
Source:
public java.lang.String toString ( ) { return new java.lang.StringBuilder ( ) . append ( "{mName=" ) . append ( mName ) . append ( ", mKey=" ) . append ( ( android.os.Build.IS_DEBUGGABLE ? com.android.internal.util.HexDump.toHexString ( mKey ) : "<hidden>" ) ) . append ( ", mTruncLenBits=" ) . append ( mTruncLenBits ) . append ( "}" ) . toString ( ) ; }

Target:
private static boolean isUnsafeBuild ( ) { return ( android.os.Build.IS_DEBUGGABLE ) && ( android.os.Build.IS_ENG ) ; }
Source:
public void onRadioStateUnavailable ( ) { if ( ( mUiccCard ) != null ) { mUiccCard.dispose ( ) ; } mUiccCard = null ; if ( ( mPhoneId ) != null ) { com.android.internal.telephony.uicc.UiccProfile.broadcastInternalIccStateChangedIntent ( IccCardConstants.INTENT_VALUE_ICC_UNKNOWN , null , mPhoneId ) ; } mCardState = com.android.internal.telephony.uicc.IccCardStatus.CardState.CARDSTATE_ABSENT ; mLastRadioState = com.android.internal.telephony.CommandsInterface.RadioState.RADIO_UNAVAILABLE ; }

Target:
public void onRadioStateUnavailable ( ) { if ( ( mUiccCard ) != null ) { mUiccCard.dispose ( ) ; } mUiccCard = null ; if ( ( mPhoneId ) != ( com.android.internal.telephony.uicc.UiccSlot.INVALID_PHONE_ID ) ) { com.android.internal.telephony.uicc.UiccController.updateInternalIccState ( IccCardConstants.INTENT_VALUE_ICC_UNKNOWN , null , mPhoneId ) ; } mCardState = com.android.internal.telephony.uicc.IccCardStatus.CardState.CARDSTATE_ABSENT ; mLastRadioState = com.android.internal.telephony.CommandsInterface.RadioState.RADIO_UNAVAILABLE ; }
Source:
public void testHasValueWithMultipleEntries ( ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putDouble ( "key" , 10000000 ) ; bundle.putDouble ( "key1" , 10000001 ) ; bundle.putBundle ( "key2" , new android.os.Bundle ( ) ) ; double dbl = 10000000 ; assertTrue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasValue ( dbl ) . matches ( bundle ) ) ; assertTrue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasValue ( org.hamcrest.Matchers.instanceOf ( java.lang.Double.class ) ) . matches ( bundle ) ) ; }

Target:
public void hasValueWithMultipleEntries ( ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putDouble ( "key" , 10000000 ) ; bundle.putDouble ( "key1" , 10000001 ) ; bundle.putBundle ( "key2" , new android.os.Bundle ( ) ) ; double dbl = 10000000 ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasValue ( dbl ) . matches ( bundle ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.BundleMatchers.hasValue ( org.hamcrest.Matchers.instanceOf ( java.lang.Double.class ) ) . matches ( bundle ) ) ; }
Source:
public final void activityPaused ( android.os.IBinder token , android.os.Bundle icicle ) { if ( ( icicle != null ) && ( icicle.hasFileDescriptors ( ) ) ) { throw new java.lang.IllegalArgumentException ( "File descriptors passed in Bundle" ) ; } final long origId = android.os.Binder.clearCallingIdentity ( ) ; activityPaused ( token , icicle , false ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; }

Target:
public final void activityPaused ( android.os.IBinder token , android.os.Bundle icicle ) { if ( ( icicle != null ) && ( icicle.hasFileDescriptors ( ) ) ) { throw new java.lang.IllegalArgumentException ( "File descriptors passed in Bundle" ) ; } final long origId = android.os.Binder.clearCallingIdentity ( ) ; mMainStack.activityPaused ( token , icicle , false ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; }
Source:
public static boolean $noinline$runSmaliTestBoolean ( java.lang.String name , boolean input ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } try { java.lang.Class < ? > c = java.lang.Class.forName ( "SmaliTests" ) ; java.lang.reflect.Method m = c.getMethod ( name , boolean . class ) ; return ( ( java.lang.Boolean ) ( m.invoke ( null , input ) ) ) ; } catch ( java.lang.Exception ex ) { throw new java.lang.Error ( ex ) ; } }

Target:
public static int $noinline$runSmaliTest ( java.lang.String name , boolean input ) { try { java.lang.Class < ? > c = java.lang.Class.forName ( "SmaliTests" ) ; java.lang.reflect.Method m = c.getMethod ( name , boolean . class ) ; return ( ( java.lang.Integer ) ( m.invoke ( null , input ) ) ) ; } catch ( java.lang.Exception ex ) { throw new java.lang.Error ( ex ) ; } }
Source:
public com.android.sdklib.devices.Storage.Unit getApproriateUnits ( ) { com.android.sdklib.devices.Storage.Unit optimalUnit = com.android.sdklib.devices.Storage.Unit.B ; for ( com.android.sdklib.devices.Storage.Unit unit : com.android.sdklib.devices.Storage.Unit.values ( ) ) { if ( ( ( mNoBytes ) % ( unit.getNumberOfBytes ( ) ) ) == 0 ) { optimalUnit = unit ; } else { break ; } } return optimalUnit ; }

Target:
public com.android.sdklib.devices.Storage.Unit getAppropriateUnits ( ) { com.android.sdklib.devices.Storage.Unit optimalUnit = com.android.sdklib.devices.Storage.Unit.B ; for ( com.android.sdklib.devices.Storage.Unit unit : com.android.sdklib.devices.Storage.Unit.values ( ) ) { if ( ( ( mNoBytes ) % ( unit.getNumberOfBytes ( ) ) ) == 0 ) { optimalUnit = unit ; } else { break ; } } return optimalUnit ; }
Source:
private android.content.Intent waitForNoIntent ( int timeoutMs , java.util.concurrent.BlockingQueue < android.content.Intent > queue ) { try { android.content.Intent intent = queue.poll ( timeoutMs , java.util.concurrent.TimeUnit.MILLISECONDS ) ; org.junit.Assert.assertNull ( intent ) ; return intent ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( ( "Cannot obtain an Intent from the queue: " + ( e.getMessage ( ) ) ) ) ; } return null ; }

Target:
private void verifyNoConnectionStateIntent ( int timeoutMs , android.bluetooth.BluetoothDevice device ) { android.content.Intent intent = com.android.bluetooth.TestUtils.waitForNoIntent ( timeoutMs , mDeviceQueueMap.get ( device ) ) ; org.junit.Assert.assertNull ( intent ) ; }
Source:
public android.content.Loader < android.database.Cursor > onCreateLoader ( int id , android.os.Bundle args ) { boolean sortOrderPrimary = ( contactsPrefs.getSortOrder ( ) ) == ( com.android.contacts.common.preference.ContactsPreferences.SORT_ORDER_PRIMARY ) ; boolean displayOrderPrimary = ( contactsPrefs.getDisplayOrder ( ) ) == ( com.android.contacts.common.preference.ContactsPreferences.DISPLAY_ORDER_PRIMARY ) ; java.lang.String sortKey = ( sortOrderPrimary ) ? android.provider.ContactsContract.Contacts.SORT_KEY_PRIMARY : android.provider.ContactsContract.Contacts.SORT_KEY_ALTERNATIVE ; return displayOrderPrimary ? com.android.dialer.contactsfragment.ContactsCursorLoader.createInstanceDisplayNamePrimary ( getContext ( ) , sortKey ) : com.android.dialer.contactsfragment.ContactsCursorLoader.createInstanceDisplayNameAlternative ( getContext ( ) , sortKey ) ; }

Target:
public static com.android.dialer.contactsfragment.ContactsFragment newAddFavoritesInstance ( ) { com.android.dialer.contactsfragment.ContactsFragment fragment = new com.android.dialer.contactsfragment.ContactsFragment ( ) ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( com.android.dialer.contactsfragment.ContactsFragment.EXTRA_HEADER , com.android.dialer.contactsfragment.ContactsFragment.Header.NONE ) ; args.putBoolean ( com.android.dialer.contactsfragment.ContactsFragment.EXTRA_HAS_PHONE_NUMBERS , true ) ; fragment.setArguments ( args ) ; return fragment ; }
Source:
public void test_zh_TW ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex zh_TW = libcore.icu.AlphabeticIndexTest.createIndex ( new java.util.Locale ( "zh" , "TW" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_TW , "沈" , "串" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_TW , "瀋" , "叢" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_TW , "贾" , "乘" ) ; }

Target:
public void test_zh_TW ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex zh_TW = libcore.icu.AlphabeticIndexTest.createIndex ( new java.util.Locale ( "zh" , "TW" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_TW , "沈" , "7劃" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_TW , "瀋" , "18劃" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_TW , "贾" , "10劃" ) ; }
Source:
synchronized boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "sendReport(): device=" + device ) + " id=" ) + id ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.sendReport ( id , data ) ) ; }

Target:
synchronized boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "sendReport(): device=" + device ) + " id=" ) + id ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.sendReport ( id , data ) ) ; }
Source:
public void testAddSingleOpenNetwork ( ) { android.net.wifi.WifiConfiguration openNetwork = com.android.server.wifi.WifiConfigurationTestUtil.createOpenNetwork ( ) ; java.util.List < android.net.wifi.WifiConfiguration > networks = new java.util.ArrayList < > ( ) ; networks.add ( openNetwork ) ; verifyAddNetworkToWifiConfigManager ( openNetwork ) ; java.util.List < android.net.wifi.WifiConfiguration > retrievedNetworks = mWifiConfigManager.getConfiguredNetworksWithPasswords ( ) ; com.android.server.wifi.WifiConfigurationTestUtil.assertConfigurationsEqualForConfigManagerAddOrUpdate ( networks , retrievedNetworks ) ; }

Target:
public void testAddSingleOpenNetwork ( ) { android.net.wifi.WifiConfiguration openNetwork = com.android.server.wifi.WifiConfigurationTestUtil.createOpenNetwork ( ) ; java.util.List < android.net.wifi.WifiConfiguration > networks = new java.util.ArrayList < > ( ) ; networks.add ( openNetwork ) ; verifyAddNetworkToWifiConfigManager ( openNetwork ) ; java.util.List < android.net.wifi.WifiConfiguration > retrievedNetworks = mWifiConfigManager.getConfiguredNetworksWithPasswords ( ) ; com.android.server.wifi.WifiConfigurationTestUtil.assertConfigurationsEqualForConfigManagerAddOrUpdate ( networks , retrievedNetworks ) ; assertEquals ( WifiConfiguration.Status.DISABLED , retrievedNetworks.get ( 0 ) . status ) ; }
Source:
protected void okPressed ( ) { mAppPackageToTrace = mAppPackageToTraceText.getText ( ) . trim ( ) ; mActivityToTrace = mActivityToTraceText.getText ( ) . trim ( ) ; if ( mActivityToTrace.startsWith ( "." ) ) { mActivityToTrace = mActivityToTrace.substring ( 1 ) ; } mTraceFilePath = mTraceFilePathText.getText ( ) . trim ( ) ; mSelectedDevice = mDeviceCombo.getText ( ) ; savePreferences ( ) ; super . okPressed ( ) ; }

Target:
protected void okPressed ( ) { mAppPackageToTrace = mAppPackageToTraceText.getText ( ) . trim ( ) ; mActivityToTrace = mActivityToTraceText.getText ( ) . trim ( ) ; if ( mActivityToTrace.startsWith ( "." ) ) { mActivityToTrace = mActivityToTrace.substring ( 1 ) ; } com.android.ide.eclipse.gltrace.GLTraceOptionsDialog.sIsActivityFullyQualified = mIsActivityFullyQualifiedButton.getSelection ( ) ; mTraceFilePath = mTraceFilePathText.getText ( ) . trim ( ) ; mSelectedDevice = mDeviceCombo.getText ( ) ; savePreferences ( ) ; super . okPressed ( ) ; }
Source:
private void add ( com.android.sdklib.BuildToolInfo.PathId id , java.lang.String leaf ) { java.io.File f = new java.io.File ( mPath , leaf ) ; java.lang.String str = f.getAbsolutePath ( ) ; if ( ( f.isDirectory ( ) ) && ( ( str.charAt ( ( ( str.length ( ) ) - 1 ) ) ) != ( java.io.File.separatorChar ) ) ) { str += java.io.File.separatorChar ; } mPaths.put ( id , str ) ; }

Target:
public boolean isValid ( @ com.android.annotations.Nullable com.android.utils.ILogger log ) { for ( java.util.Map.Entry < com.android.sdklib.BuildToolInfo.PathId , java.lang.String > entry : mPaths.entrySet ( ) ) { java.io.File f = new java.io.File ( entry.getValue ( ) ) ; if ( ! ( f.exists ( ) ) ) { if ( log != null ) { log.warning ( "Build-tool %1$s is missing %2$s at %3$s" , mRevision.toString ( ) , entry.getKey ( ) , f.getAbsolutePath ( ) ) ; } return false ; } } return true ; }
Source:
public static boolean isCountryNanp ( java.lang.String country ) { if ( android.text.TextUtils.isEmpty ( country ) ) { return false ; } if ( ( com.android.dialer.smartdial.util.SmartDialPrefix.sNanpCountries ) == null ) { com.android.dialer.smartdial.util.SmartDialPrefix.sNanpCountries = com.android.dialer.smartdial.util.SmartDialPrefix.initNanpCountries ( ) ; } return com.android.dialer.smartdial.util.SmartDialPrefix.sNanpCountries.contains ( country.toUpperCase ( ) ) ; }

Target:
public static boolean isCountryNanp ( java.lang.String country ) { if ( android.text.TextUtils.isEmpty ( country ) ) { return false ; } if ( ( com.android.dialer.smartdial.util.SmartDialPrefix.nanpCountries ) == null ) { com.android.dialer.smartdial.util.SmartDialPrefix.nanpCountries = com.android.dialer.smartdial.util.SmartDialPrefix.initNanpCountries ( ) ; } return com.android.dialer.smartdial.util.SmartDialPrefix.nanpCountries.contains ( country.toUpperCase ( ) ) ; }
Source:
public void testAesCbcHmacMd5Udp4 ( ) 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 ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacMd5Tcp4 ( ) 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_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 ) ; }
Source:
public java.util.Set < java.lang.String > getCarrierVvmPackageNames ( ) { com.android.dialer.common.Assert.checkArgument ( isValid ( ) ) ; java.util.Set < java.lang.String > names = com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getCarrierVvmPackageNames ( mOverrideConfig ) ; if ( names != null ) { return names ; } names = com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getCarrierVvmPackageNames ( mCarrierConfig ) ; if ( names != null ) { return names ; } return com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getCarrierVvmPackageNames ( mTelephonyConfig ) ; }

Target:
public java.util.Set < java.lang.String > getCarrierVvmPackageNames ( ) { com.android.dialer.common.Assert.checkArgument ( isValid ( ) ) ; return getCarrierVvmPackageNamesWithoutValidation ( ) ; }
Source:
public void headersAndPostParams ( ) throws java.lang.Exception { com.android.volley.mock.MockHttpStack mockHttpStack = new com.android.volley.mock.MockHttpStack ( ) ; org.apache.http.message.BasicHttpResponse fakeResponse = new org.apache.http.message.BasicHttpResponse ( new org.apache.http.ProtocolVersion ( "HTTP" , 1 , 1 ) , 200 , "OK" ) ; fakeResponse.setEntity ( new org.apache.http.entity.StringEntity ( "foobar" ) ) ; mockHttpStack.setResponseToReturn ( fakeResponse ) ; com.android.volley.toolbox.BasicNetwork httpNetwork = new com.android.volley.toolbox.BasicNetwork ( mockHttpStack ) ; com.android.volley.Request < java.lang.String > request = new com.android.volley.Request < java.lang.String > ( Request.Method.GET , "http://foo" , null ) { @ java.lang.Override protected com.android.volley.Response < java.lang.String > parseNetworkResponse ( com.android.volley.NetworkResponse response ) { return null ; } @ java.lang.Override protected void deliverResponse ( java.lang.String response ) { } @ java.lang.Override public java.util.Map < java.lang.String , java.lang.String > getHeaders ( ) { java.util.Map < java.lang.String , java.lang.String > result = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; result.put ( "requestheader" , "foo" ) ; return result ; } @ java.lang.Override public java.util.Map < java.lang.String , java.lang.String > getParams ( ) { java.util.Map < java.lang.String , java.lang.String > result = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; result.put ( "requestpost" , "foo" ) ; return result ; } } ; httpNetwork.performRequest ( request ) ; assertEquals ( "foo" , mockHttpStack.getLastHeaders ( ) . get ( "requestheader" ) ) ; assertEquals ( "requestpost=foo&" , new java.lang.String ( mockHttpStack.getLastPostBody ( ) ) ) ; }

Target:
private static com.android.volley.Request < java.lang.String > buildRequest ( ) { return new com.android.volley.Request < java.lang.String > ( Request.Method.GET , "http://foo" , null ) { @ java.lang.Override protected com.android.volley.Response < java.lang.String > parseNetworkResponse ( com.android.volley.NetworkResponse response ) { return null ; } @ java.lang.Override protected void deliverResponse ( java.lang.String response ) { } @ java.lang.Override public java.util.Map < java.lang.String , java.lang.String > getHeaders ( ) { java.util.Map < java.lang.String , java.lang.String > result = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; result.put ( "requestheader" , "foo" ) ; return result ; } @ java.lang.Override public java.util.Map < java.lang.String , java.lang.String > getParams ( ) { java.util.Map < java.lang.String , java.lang.String > result = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; result.put ( "requestpost" , "foo" ) ; return result ; } } ; }
Source:
public void callOnDropLeave ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.common.api.IDragElement [ ] elements , com.android.ide.common.api.DropFeedback feedback ) { com.android.ide.common.api.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onDropLeave ( targetNode , elements , feedback ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropLeave() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }

Target:
public void callOnDropLeave ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.common.api.IDragElement [ ] elements , com.android.ide.common.api.DropFeedback feedback ) { com.android.ide.common.api.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onDropLeave ( targetNode , elements , feedback ) ; } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "%s.onDropLeave() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }
Source:
private void verifyWcdmaInfo ( android.telephony.CellInfoWcdma wcdma ) { verifyRssiDbm ( wcdma.getCellSignalStrength ( ) . getDbm ( ) ) ; int psc = wcdma.getCellIdentity ( ) . getPsc ( ) ; assertTrue ( "getPsc() out of range [0, 511]" , ( ( psc >= 0 ) && ( psc <= 511 ) ) ) ; int uarfcn = wcdma.getCellIdentity ( ) . getUarfcn ( ) ; assertTrue ( "getUarfcn() out of range [400,11000]" , ( ( uarfcn >= 400 ) && ( uarfcn <= 11000 ) ) ) ; }

Target:
private void verifyWcdmaInfo ( android.telephony.CellInfoWcdma wcdma ) { verifyRssiDbm ( wcdma.getCellSignalStrength ( ) . getDbm ( ) ) ; int psc = wcdma.getCellIdentity ( ) . getPsc ( ) ; assertTrue ( ( "getPsc() out of range [0, 511], psc=" + psc ) , ( ( psc >= 0 ) && ( psc <= 511 ) ) ) ; int uarfcn = wcdma.getCellIdentity ( ) . getUarfcn ( ) ; assertTrue ( ( "getUarfcn() out of range [400,11000], uarfcn=" + uarfcn ) , ( ( uarfcn >= 400 ) && ( uarfcn <= 11000 ) ) ) ; }
Source:
public void testEnumSerialization ( ) { java.lang.String s = "aced00057e7200236c6962636f72652e6a6176612e6c616e672e456e756d5465" + ( "737424526f7368616d626f00000000000000001200007872000e6a6176612e6c6" + "16e672e456e756d000000000000000012000078707400055041504552" ) ; libcore.java.lang.EnumTest.Roshambo value = libcore.java.lang.EnumTest.Roshambo.PAPER ; assertTrue ( ( ( value.getClass ( ) ) == ( libcore.java.lang.EnumTest.Roshambo.class ) ) ) ; new libcore.util.SerializationTester < libcore.java.lang.EnumTest.Roshambo > ( value , s ) . test ( ) ; }

Target:
public void testEnumSerialization ( ) { java.lang.String s = "aced00057e7200236c6962636f72652e6a6176612e6c616e672e456e756d5465" + ( "737424526f7368616d626f00000000000000001200007872000e6a6176612e6c6" + "16e672e456e756d000000000000000012000078707400055041504552" ) ; libcore.java.lang.EnumTest.Roshambo value = libcore.java.lang.EnumTest.Roshambo.PAPER ; assertTrue ( ( ( value.getClass ( ) ) == ( libcore.java.lang.EnumTest.Roshambo.class ) ) ) ; new libcore.libcore.util.SerializationTester < libcore.java.lang.EnumTest.Roshambo > ( value , s ) . test ( ) ; }
Source:
protected java.security.AlgorithmParameters engineGenerateParameters ( ) { byte [ ] iv = new byte [ 8 ] ; if ( ( random ) == null ) { random = new java.security.SecureRandom ( ) ; } random.nextBytes ( iv ) ; java.security.AlgorithmParameters params ; try { params = java.security.AlgorithmParameters.getInstance ( "DES" , BouncyCastleProvider.PROVIDER_NAME ) ; params.init ( new javax.crypto.spec.IvParameterSpec ( iv ) ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e.getMessage ( ) ) ; } return params ; }

Target:
protected java.security.AlgorithmParameters engineGenerateParameters ( ) { byte [ ] iv = new byte [ 8 ] ; if ( ( random ) == null ) { random = new java.security.SecureRandom ( ) ; } random.nextBytes ( iv ) ; java.security.AlgorithmParameters params ; try { params = createParametersInstance ( "DES" ) ; params.init ( new javax.crypto.spec.IvParameterSpec ( iv ) ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e.getMessage ( ) ) ; } return params ; }
Source:
public java.lang.String getFolderSegment ( com.android.sdklib.IAndroidTarget target ) { if ( ( mValue ) != null ) { if ( target != null ) { com.android.sdklib.AndroidVersion version = target.getVersion ( ) ; if ( ( ( version.getApiLevel ( ) ) <= 3 ) && ( ( version.getCodename ( ) ) == null ) ) { return mValue.getLegacyValue ( ) ; } } return mValue.getValue ( ) ; } return "" ; }

Target:
public int hashCode ( ) { if ( ( mValue ) != null ) { return mValue.hashCode ( ) ; } return 0 ; }
Source:
public void testPutNullRemoves ( ) throws org.json.JSONException { org.json.JSONObject object = new org.json.JSONObject ( ) ; object.put ( "foo" , "bar" ) ; object.put ( "foo" , null ) ; assertEquals ( 0 , object.length ( ) ) ; assertFalse ( object.has ( "foo" ) ) ; try { object.get ( "foo" ) ; fail ( ) ; } catch ( org.json.JSONException e ) { } }

Target:
public void testPutNullRemoves ( ) throws org.json.JSONException { org.json.JSONObject object = new org.json.JSONObject ( ) ; object.put ( "foo" , "bar" ) ; object.put ( "foo" , ( ( java.util.Collection ) ( null ) ) ) ; assertEquals ( 0 , object.length ( ) ) ; assertFalse ( object.has ( "foo" ) ) ; try { object.get ( "foo" ) ; fail ( ) ; } catch ( org.json.JSONException e ) { } }
Source:
public void buildConfigField ( @ com.android.annotations.NonNull java.lang.String type , @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull java.lang.String value ) { com.android.builder.model.ClassField alreadyPresent = getBuildConfigFields ( ) . get ( name ) ; if ( alreadyPresent != null ) { logger.info ( "BuildType(${getName()}): buildConfigField '$name' value is being replaced: ${alreadyPresent.value} -> $value" ) ; } addBuildConfigField ( com.android.builder.core.AndroidBuilder.createClassField ( type , name , value ) ) ; }

Target:
public void resValue ( @ com.android.annotations.NonNull java.lang.String type , @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull java.lang.String value ) { com.android.builder.model.ClassField alreadyPresent = getResValues ( ) . get ( name ) ; if ( alreadyPresent != null ) { logger.info ( "BuildType({}): resValue '{}' value is being replaced: -> {}" , getName ( ) , name , alreadyPresent.getValue ( ) , value ) ; } addResValue ( com.android.builder.core.AndroidBuilder.createClassField ( type , name , value ) ) ; }
Source:
private void stepTestNotification ( ) throws java.lang.InterruptedException { junit.framework.Assert.assertEquals ( R.id.pass_item_button , waitForButtonClick ( ) ) ; }

Target:
private void stepTestFileBrowse ( ) throws java.lang.InterruptedException { while ( true ) { final int id = waitForButtonClick ( ) ; if ( id == ( R.id.settings_button ) ) { startActivity ( new android.content.Intent ( android.provider.Settings.ACTION_APPLICATION_SETTINGS ) ) ; continue ; } junit.framework.Assert.assertEquals ( R.id.pass_item_button , waitForButtonClick ( ) ) ; break ; } }
Source:
static com.android.bluetooth.hfp.HeadsetStateMachine make ( com.android.bluetooth.hfp.HeadsetService service , android.os.Looper looper , com.android.bluetooth.hfp.HeadsetNativeInterface nativeInterface ) { android.util.Log.i ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "make" ) ; com.android.bluetooth.hfp.HeadsetStateMachine stateMachine = new com.android.bluetooth.hfp.HeadsetStateMachine ( service , looper , nativeInterface ) ; stateMachine.start ( ) ; return stateMachine ; }

Target:
static com.android.bluetooth.hfp.HeadsetStateMachine make ( android.os.Looper looper , com.android.bluetooth.hfp.HeadsetService service , com.android.bluetooth.hfp.HeadsetNativeInterface nativeInterface , com.android.bluetooth.hfp.HeadsetSystemInterface systemInterface ) { android.util.Log.i ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "make" ) ; com.android.bluetooth.hfp.HeadsetStateMachine stateMachine = new com.android.bluetooth.hfp.HeadsetStateMachine ( looper , service , nativeInterface , systemInterface ) ; stateMachine.start ( ) ; return stateMachine ; }
Source:
private com.android.tools.lint.detector.api.Location getMainApplicationTagLocation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( mApplicationTagHandle ) != null ) { return mApplicationTagHandle.resolve ( ) ; } java.util.List < java.io.File > manifestFiles = context.getMainProject ( ) . getManifestFiles ( ) ; if ( ! ( manifestFiles.isEmpty ( ) ) ) { return com.android.tools.lint.detector.api.Location.create ( manifestFiles.get ( 0 ) ) ; } return null ; }

Target:
private com.android.tools.lint.detector.api.Location getMainApplicationTagLocation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( mApplicationTagHandle ) != null ) { return mApplicationTagHandle.resolve ( ) ; } java.util.List < java.io.File > manifestFiles = context.getMainProject ( ) . getManifestFiles ( ) ; if ( ! ( manifestFiles.isEmpty ( ) ) ) { return com.android.tools.lint.detector.api.Location.create ( manifestFiles.get ( 0 ) ) ; } return com.android.tools.lint.detector.api.Location.NONE ; }
Source:
public final void testCreateDup ( ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ved = new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( "xml" , "com.example.MyJavaClass" ) ; com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode uiv = new com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ( ved ) ; com.android.ide.common.rendering.api.ViewInfo lvi = new com.android.ide.common.rendering.api.ViewInfo ( "name" , uiv , 10 , 12 , 110 , 120 ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo cvi = com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo.create ( lvi ) ; com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy proxy1 = m.create ( cvi ) ; com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy proxy2 = m.create ( cvi ) ; assertSame ( proxy2 , proxy1 ) ; }

Target:
public final void testCreateDup ( ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ved = new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( "xml" , "com.example.MyJavaClass" ) ; com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode uiv = new com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ( ved ) ; com.android.ide.common.rendering.api.ViewInfo lvi = new com.android.ide.common.rendering.api.ViewInfo ( "name" , uiv , 10 , 12 , 110 , 120 ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo cvi = com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo.create ( lvi ) . getFirst ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy proxy1 = m.create ( cvi ) ; com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy proxy2 = m.create ( cvi ) ; assertSame ( proxy2 , proxy1 ) ; }
Source:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.utils.PositionXmlParser.Position attributePosition , @ com.android.annotations.NonNull com.android.manifmerger.Actions.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { com.android.manifmerger.XmlElement originElement = attribute.getOwnerElement ( ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( actionType , new com.android.manifmerger.Actions.ActionLocation ( originElement.getDocument ( ) . getSourceLocation ( ) , attributePosition ) , attribute.getId ( ) , null , attributeOperationType ) ; recordAttributeAction ( attribute , attributeRecord ) ; }

Target:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.utils.PositionXmlParser.Position attributePosition , @ com.android.annotations.NonNull com.android.manifmerger.Actions.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { com.android.manifmerger.XmlElement originElement = attribute.getOwnerElement ( ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( actionType , new com.android.manifmerger.Actions.ActionLocation ( originElement.getDocument ( ) . getSourceLocation ( ) , attributePosition ) , attribute.getOriginalId ( ) , null , attributeOperationType ) ; recordAttributeAction ( attribute , attributeRecord ) ; }
Source:
public static void doTest ( Transform t ) { t.sayHi ( ( ) -> { System.out.println ( "Not doing anything here" ) ; } ) ; try { t.sayHi ( new Main.DoRedefinitionClass ( ) ) ; } catch ( java.lang.Throwable e ) { java.lang.System.out.println ( ( "Received error : " + e ) ) ; e.printStackTrace ( ) ; } t.sayHi ( ( ) -> { System.out.println ( "Not doing anything here" ) ; } ) ; }

Target:
public static void doTest ( Transform t ) { t.sayHi ( ( ) -> { System.out.println ( "Not doing anything here" ) ; } ) ; try { t.sayHi ( new Main.DoRedefinitionClass ( ) ) ; } catch ( java.lang.Throwable e ) { java.lang.System.out.println ( ( "Received error : " + e ) ) ; e.printStackTrace ( java.lang.System.out ) ; } t.sayHi ( ( ) -> { System.out.println ( "Not doing anything here" ) ; } ) ; }
Source:
public void startBluetoothSco ( ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { service.startBluetoothSco ( mICallBack , getContext ( ) . getApplicationInfo ( ) . targetSdkVersion ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in startBluetoothSco" , e ) ; } }

Target:
public void startBluetoothSco ( ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { service.startBluetoothSco ( mICallBack , mApplicationContext.getApplicationInfo ( ) . targetSdkVersion ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in startBluetoothSco" , e ) ; } }
Source:
public final void init ( int opmode , java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { checkMode ( opmode ) ; getSpi ( key ) . engineInit ( opmode , key , random ) ; mode = opmode ; }

Target:
public final void init ( int opmode , java.security.Key key , java.security.AlgorithmParameters params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { checkMode ( opmode ) ; getSpi ( new javax.crypto.Cipher.InitParams ( javax.crypto.Cipher.InitType.ALGORITHM_PARAMS , opmode , key , random , null , params ) ) ; mode = opmode ; }
Source:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.phone.NetworkQueryService.EVENT_NETWORK_SCAN_COMPLETED : if ( com.android.phone.NetworkQueryService.DBG ) com.android.phone.NetworkQueryService.log ( "scan completed, broadcasting results" ) ; broadcastQueryResults ( ( ( android.os.AsyncResult ) ( msg.obj ) ) ) ; break ; } }

Target:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.phone.NetworkQueryService.EVENT_NETWORK_SCAN_VIA_PHONE_COMPLETED : if ( com.android.phone.NetworkQueryService.DBG ) com.android.phone.NetworkQueryService.log ( "scan via Phone completed, broadcasting results" ) ; broadcastQueryResults ( msg ) ; break ; case com.android.phone.NetworkQueryService.EVENT_NETWORK_SCAN_RESULTS : if ( com.android.phone.NetworkQueryService.DBG ) com.android.phone.NetworkQueryService.log ( "get scan results, broadcasting results" ) ; broadcastQueryResults ( msg ) ; break ; case com.android.phone.NetworkQueryService.EVENT_NETWORK_SCAN_ERROR : if ( com.android.phone.NetworkQueryService.DBG ) com.android.phone.NetworkQueryService.log ( "get scan error, broadcasting error code" ) ; broadcastQueryResults ( msg ) ; break ; case com.android.phone.NetworkQueryService.EVENT_NETWORK_SCAN_COMPLETED : if ( com.android.phone.NetworkQueryService.DBG ) com.android.phone.NetworkQueryService.log ( "network scan or stop network query completed" ) ; broadcastQueryResults ( msg ) ; break ; } }
Source:
protected java.lang.String getCommonIccEFPath ( int efid ) { switch ( efid ) { case EF_ADN : case EF_FDN : case EF_MSISDN : case EF_SDN : case EF_EXT1 : case EF_EXT2 : case EF_EXT3 : return ( MF_SIM ) + ( DF_TELECOM ) ; case EF_ICCID : case EF_PL : return MF_SIM ; case EF_IMG : return ( ( MF_SIM ) + ( DF_TELECOM ) ) + ( DF_GRAPHICS ) ; } return null ; }

Target:
protected java.lang.String getCommonIccEFPath ( int efid ) { switch ( efid ) { case EF_ADN : case EF_FDN : case EF_MSISDN : case EF_SDN : case EF_EXT1 : case EF_EXT2 : case EF_EXT3 : return ( MF_SIM ) + ( DF_TELECOM ) ; case EF_ICCID : case EF_PL : return MF_SIM ; case EF_PBR : return ( ( MF_SIM ) + ( DF_TELECOM ) ) + ( DF_PHONEBOOK ) ; case EF_IMG : return ( ( MF_SIM ) + ( DF_TELECOM ) ) + ( DF_GRAPHICS ) ; } return null ; }
Source:
public void onDisconnect ( ) { android.telecom.Log.v ( this , "onDisconnect: hanging up conference host." ) ; if ( ( mConferenceHost ) == null ) { return ; } com.android.internal.telephony.Call call = mConferenceHost.getCall ( ) ; if ( call != null ) { try { call.hangup ( ) ; } catch ( com.android.internal.telephony.CallStateException e ) { android.telecom.Log.e ( this , e , "Exception thrown trying to hangup conference" ) ; } } }

Target:
public void onDisconnect ( ) { android.telecom.Log.v ( this , "onDisconnect: hanging up conference host." ) ; if ( ( mConferenceHost ) == null ) { return ; } disconnectConferenceParticipants ( ) ; com.android.internal.telephony.Call call = mConferenceHost.getCall ( ) ; if ( call != null ) { try { call.hangup ( ) ; } catch ( com.android.internal.telephony.CallStateException e ) { android.telecom.Log.e ( this , e , "Exception thrown trying to hangup conference" ) ; } } }
Source:
public boolean getMessage ( java.lang.String handle , android.bluetooth.client.map.BluetoothMasClient.CharsetType charset , boolean attachment ) { if ( ( mObexSession ) == null ) { return false ; } try { new java.math.BigInteger ( handle , 16 ) ; } catch ( java.lang.NumberFormatException e ) { return false ; } android.bluetooth.client.map.BluetoothMasRequest request = new android.bluetooth.client.map.BluetoothMasRequestGetMessage ( handle , charset , attachment ) ; return mObexSession.makeRequest ( request ) ; }

Target:
public boolean getMessage ( java.lang.String handle , boolean attachment ) { if ( ( mObexSession ) == null ) { return false ; } try { new java.math.BigInteger ( handle , 16 ) ; } catch ( java.lang.NumberFormatException e ) { return false ; } android.bluetooth.client.map.BluetoothMasRequest request = new android.bluetooth.client.map.BluetoothMasRequestGetMessage ( handle , android.bluetooth.client.map.BluetoothMasClient.CharsetType.UTF_8 , attachment ) ; return mObexSession.makeRequest ( request ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { Main.printIsDefault ( Main.DefaultInterface.class ) ; Main.printIsDefault ( Main.RegularInterface.class ) ; Main.printIsDefault ( Main.ImplementsWithDefault.class ) ; Main.printIsDefault ( Main.ImplementsWithRegular.class ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { IsDefaultTest.test ( ) ; AnnotationTest.testAnnotationsByType ( ) ; AnnotationTest.testDeclaredAnnotation ( ) ; AnnotationTest.testDeclaredAnnotationsByType ( ) ; AnnotationTest.testMethodAnnotationsByType ( ) ; AnnotationTest.testMethodDeclaredAnnotations ( ) ; AnnotationTest.testMethodDeclaredAnnotationsByType ( ) ; }