auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; tempDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "tempDir" ) ; testInstallDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "testInstall" ) ; testSystemTzDataDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "testSystemTzData" ) ; java.io.File testSystemTzDataFile = new java.io.File ( testSystemTzDataDir , "tzdata" ) ; byte [ ] systemTzDataBytes = libcore.tzdata.update2.TzDataBundleInstallerTest.createTzData ( libcore.tzdata.update2.TzDataBundleInstallerTest.SYSTEM_RULES_VERSION ) ; libcore.tzdata.update2.TzDataBundleInstallerTest.createFile ( testSystemTzDataFile , systemTzDataBytes ) ; installer = new libcore.tzdata.update2.TimeZoneBundleInstaller ( "TzDataBundleInstallerTest" , testSystemTzDataFile , testInstallDir ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; tempDir = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createDirectory ( "tempDir" ) ; testInstallDir = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createDirectory ( "testInstall" ) ; testSystemTzDataDir = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createDirectory ( "testSystemTzData" ) ; java.io.File testSystemTzDataFile = new java.io.File ( testSystemTzDataDir , "tzdata" ) ; byte [ ] systemTzDataBytes = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTzData ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.SYSTEM_RULES_VERSION ) ; libcore.tzdata.update2.TimeZoneBundleInstallerTest.createFile ( testSystemTzDataFile , systemTzDataBytes ) ; installer = new libcore.tzdata.update2.TimeZoneBundleInstaller ( "TimeZoneBundleInstallerTest" , testSystemTzDataFile , testInstallDir ) ; }
Source:
private byte [ ] derEncode ( java.math.BigInteger r , java.math.BigInteger s ) throws java.io.IOException { org.bouncycastle.asn1.ASN1EncodableVector v = new org.bouncycastle.asn1.ASN1EncodableVector ( ) ; v.add ( new org.bouncycastle.asn1.DERInteger ( r ) ) ; v.add ( new org.bouncycastle.asn1.DERInteger ( s ) ) ; return new org.bouncycastle.asn1.DERSequence ( v ) . getEncoded ( ASN1Encoding.DER ) ; }

Target:
private byte [ ] derEncode ( java.math.BigInteger r , java.math.BigInteger s ) throws java.io.IOException { org.bouncycastle.asn1.ASN1EncodableVector v = new org.bouncycastle.asn1.ASN1EncodableVector ( ) ; v.add ( new org.bouncycastle.asn1.ASN1Integer ( r ) ) ; v.add ( new org.bouncycastle.asn1.ASN1Integer ( s ) ) ; return new org.bouncycastle.asn1.DERSequence ( v ) . getEncoded ( ASN1Encoding.DER ) ; }
Source:
java.lang.String onRestoreRttChat ( com.android.dialer.rtt.RttTranscript rttTranscript ) { com.android.dialer.common.LogUtil.enterBlock ( "RttChatAdapater.onRestoreRttChat" ) ; rttMessages = com.android.incallui.rtt.impl.RttChatMessage.fromTranscript ( rttTranscript ) ; lastIndexOfLocalMessage = com.android.incallui.rtt.impl.RttChatMessage.getLastIndexLocalMessage ( rttMessages ) ; notifyDataSetChanged ( ) ; if ( ( lastIndexOfLocalMessage ) < 0 ) { return null ; } com.android.incallui.rtt.impl.RttChatMessage message = rttMessages.get ( lastIndexOfLocalMessage ) ; if ( ! ( message.isFinished ( ) ) ) { return message.getContent ( ) ; } else { return null ; } }

Target:
java.lang.String onRestoreRttChat ( com.android.dialer.rtt.RttTranscript rttTranscript ) { com.android.dialer.common.LogUtil.enterBlock ( "RttChatAdapater.onRestoreRttChat" ) ; rttMessages = com.android.incallui.rtt.protocol.RttChatMessage.fromTranscript ( rttTranscript ) ; lastIndexOfLocalMessage = com.android.incallui.rtt.protocol.RttChatMessage.getLastIndexLocalMessage ( rttMessages ) ; notifyDataSetChanged ( ) ; if ( ( lastIndexOfLocalMessage ) < 0 ) { return null ; } com.android.incallui.rtt.protocol.RttChatMessage message = rttMessages.get ( lastIndexOfLocalMessage ) ; if ( ! ( message.isFinished ( ) ) ) { return message.getContent ( ) ; } else { return null ; } }
Source:
private void processSendClccResponse ( com.android.bluetooth.hfp.HeadsetClccResponse clcc ) { android.bluetooth.BluetoothDevice device = getDeviceForMessage ( com.android.bluetooth.hfp.HeadsetStateMachine.CLCC_RSP_TIMEOUT ) ; if ( device == null ) { return ; } if ( ( clcc.mIndex ) == 0 ) { removeMessages ( com.android.bluetooth.hfp.HeadsetStateMachine.CLCC_RSP_TIMEOUT ) ; } mNativeInterface.clccResponse ( device , clcc.mIndex , clcc.mDirection , clcc.mStatus , clcc.mMode , clcc.mMpty , clcc.mNumber , clcc.mType ) ; }

Target:
private void processSendClccResponse ( com.android.bluetooth.hfp.HeadsetClccResponse clcc ) { if ( ! ( hasMessages ( com.android.bluetooth.hfp.HeadsetStateMachine.CLCC_RSP_TIMEOUT ) ) ) { return ; } if ( ( clcc.mIndex ) == 0 ) { removeMessages ( com.android.bluetooth.hfp.HeadsetStateMachine.CLCC_RSP_TIMEOUT ) ; } mNativeInterface.clccResponse ( mDevice , clcc.mIndex , clcc.mDirection , clcc.mStatus , clcc.mMode , clcc.mMpty , clcc.mNumber , clcc.mType ) ; }
Source:
private static com.android.dialer.historyitemactions.HistoryItemActionModule createModuleForAccessingCallDetails ( android.content.Context context , com.android.dialer.calllog.model.CoalescedRow row ) { boolean canReportAsInvalidNumber = row.getNumberAttributes ( ) . getCanReportAsInvalidNumber ( ) ; boolean canSupportAssistedDialing = ! ( android.text.TextUtils.isEmpty ( row.getNumberAttributes ( ) . getLookupUri ( ) ) ) ; return new com.android.dialer.historyitemactions.IntentModule ( context , com.android.dialer.calldetails.CallDetailsActivity.newInstance ( context , row.getCoalescedIds ( ) , com.android.dialer.calllog.ui.menu.Modules.createCallDetailsHeaderInfoFromRow ( context , row ) , canReportAsInvalidNumber , canSupportAssistedDialing ) , R.string.call_details_menu_label , R.drawable.quantum_ic_info_outline_vd_theme_24 ) ; }

Target:
private static boolean canSupportAssistedDialing ( com.android.dialer.calllog.model.CoalescedRow row ) { return ! ( android.text.TextUtils.isEmpty ( row.getNumberAttributes ( ) . getLookupUri ( ) ) ) ; }
Source:
public void onConfigurationChanged ( final android.content.res.Configuration newConfig ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onConfigurationChanged ( newConfig ) ; } } ) ; return ; } mAwContents.onConfigurationChanged ( newConfig ) ; }

Target:
public boolean onKeyMultiple ( final int keyCode , final int repeatCount , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyMultiple ( keyCode , repeatCount , event ) ; } } ) ; return ret ; } com.android.webview.chromium.UnimplementedWebViewApi.invoke ( ) ; return false ; }
Source:
public java.util.List < java.lang.String > getBuildConfigLines ( ) { java.util.List < java.lang.String > fullList = com.google.common.collect.Lists.newArrayList ( ) ; java.util.List < java.lang.String > list = mDefaultConfig.getBuildConfig ( ) ; if ( ! ( list.isEmpty ( ) ) ) { fullList.add ( "// lines from default config." ) ; fullList.addAll ( list ) ; } list = mBuildType.getBuildConfig ( ) ; if ( ! ( list.isEmpty ( ) ) ) { fullList.add ( ( "// lines from build type: " + ( mBuildType.getName ( ) ) ) ) ; fullList.addAll ( list ) ; } for ( com.android.builder.ProductFlavor flavor : mFlavorConfigs ) { list = flavor.getBuildConfig ( ) ; if ( ! ( list.isEmpty ( ) ) ) { fullList.add ( ( "// lines from product flavor: " + ( flavor.getName ( ) ) ) ) ; fullList.addAll ( list ) ; } } return fullList ; }

Target:
public java.util.List < java.lang.String > getBuildConfigLines ( ) { java.util.List < java.lang.String > fullList = com.google.common.collect.Lists.newArrayList ( ) ; java.util.List < java.lang.String > list = mDefaultConfig.getBuildConfig ( ) ; if ( ! ( list.isEmpty ( ) ) ) { fullList.add ( "// lines from default config." ) ; fullList.addAll ( list ) ; } list = mBuildType.getBuildConfig ( ) ; if ( ! ( list.isEmpty ( ) ) ) { fullList.add ( ( "// lines from build type: " + ( mBuildType.getName ( ) ) ) ) ; fullList.addAll ( list ) ; } for ( com.android.builder.DefaultProductFlavor flavor : mFlavorConfigs ) { list = flavor.getBuildConfig ( ) ; if ( ! ( list.isEmpty ( ) ) ) { fullList.add ( ( "// lines from product flavor: " + ( flavor.getName ( ) ) ) ) ; fullList.addAll ( list ) ; } } return fullList ; }
Source:
public void test_SSL_check_private_key_cert_then_key ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getServerCertificates ( ) ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getServerPrivateKey ( ) . getNativeRef ( ) ) ; org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_check_private_key_no_key_no_cert ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.junit.Assert.fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
private java.lang.StringBuffer prepareDimensionRequest ( com.google.gct.testing.GoogleCloudTestingDimension dimension ) { java.lang.StringBuffer bf = new java.lang.StringBuffer ( ) ; boolean firstType = true ; for ( com.google.gct.testing.GoogleCloudTestingType type : dimension.getEnabledTypes ( ) ) { if ( ! firstType ) { bf.append ( " || " ) ; } firstType = false ; bf.append ( ( ( ( ( dimension.getId ( ) ) + "=='" ) + ( type.getId ( ) ) ) + "'" ) ) ; } return bf ; }

Target:
private java.lang.StringBuffer prepareDimensionRequest ( com.google.gct.testing.GoogleCloudTestingDimension dimension ) { java.lang.StringBuffer bf = new java.lang.StringBuffer ( ) ; boolean firstType = true ; for ( com.google.gct.testing.CloudTestingType type : dimension.getEnabledTypes ( ) ) { if ( ! firstType ) { bf.append ( " || " ) ; } firstType = false ; bf.append ( ( ( ( ( dimension.getId ( ) ) + "=='" ) + ( type.getId ( ) ) ) + "'" ) ) ; } return bf ; }
Source:
public void run ( ) { try { try { server.startHandshake ( ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } } catch ( java.lang.RuntimeException e ) { throw e ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { try { server.startHandshake ( ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } return null ; }
Source:
public void registerMediaButtonEventReceiver ( android.content.ComponentName eventReceiver ) { if ( eventReceiver == null ) { return ; } if ( ! ( eventReceiver.getPackageName ( ) . equals ( getContext ( ) . getPackageName ( ) ) ) ) { android.util.Log.e ( android.media.AudioManager.TAG , ( "registerMediaButtonEventReceiver() error: " + "receiver and context package names don't match" ) ) ; return ; } android.content.Intent mediaButtonIntent = new android.content.Intent ( android.content.Intent.ACTION_MEDIA_BUTTON ) ; mediaButtonIntent.setComponent ( eventReceiver ) ; android.app.PendingIntent pi = android.app.PendingIntent.getBroadcast ( getContext ( ) , 0 , mediaButtonIntent , 0 ) ; registerMediaButtonIntent ( pi , eventReceiver ) ; }

Target:
public void registerMediaButtonEventReceiver ( android.content.ComponentName eventReceiver ) { if ( eventReceiver == null ) { return ; } if ( ! ( eventReceiver.getPackageName ( ) . equals ( mApplicationContext.getPackageName ( ) ) ) ) { android.util.Log.e ( android.media.AudioManager.TAG , ( "registerMediaButtonEventReceiver() error: " + "receiver and context package names don't match" ) ) ; return ; } android.content.Intent mediaButtonIntent = new android.content.Intent ( android.content.Intent.ACTION_MEDIA_BUTTON ) ; mediaButtonIntent.setComponent ( eventReceiver ) ; android.app.PendingIntent pi = android.app.PendingIntent.getBroadcast ( mApplicationContext , 0 , mediaButtonIntent , 0 ) ; registerMediaButtonIntent ( pi , eventReceiver ) ; }
Source:
protected void onPause ( ) { super . onPause ( ) ; cleanup ( ) ; }

Target:
public void onBenchmarkFinish ( boolean ok ) { if ( ok ) { android.content.Intent intent = new android.content.Intent ( ) ; intent.putExtra ( "tests" , mTestList ) ; intent.putExtra ( "results" , mTestResults ) ; setResult ( com.android.rs.imagejb.RESULT_OK , intent ) ; } else { setResult ( com.android.rs.imagejb.RESULT_CANCELED ) ; } finish ( ) ; }
Source:
public boolean removeUser ( java.lang.String userEmail ) { synchronized ( this ) { if ( ! ( allUsers.containsKey ( userEmail ) ) ) { return false ; } if ( activeUser.getEmail ( ) . equals ( userEmail ) ) { activeUser = null ; com.google.gct.login.GoogleLoginPrefs.removeActiveUser ( ) ; } allUsers.remove ( userEmail ) ; return true ; } }

Target:
public boolean removeUser ( java.lang.String userEmail ) { synchronized ( this ) { if ( ! ( allUsers.containsKey ( userEmail ) ) ) { return false ; } if ( activeUser.getEmail ( ) . equals ( userEmail ) ) { activeUser = null ; com.google.gct.login.GoogleLoginPrefs.removeActiveUser ( ) ; } allUsers.remove ( userEmail ) ; notifyLoginStatusChange ( ) ; return true ; } }
Source:
public void write ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode jNode ) throws java.io.IOException { try ( com.android.sched.util.log.Event eventWriting = tracer.open ( JackEventType.NNODE_WRITING ) ) { com.android.jack.jayce.v0004.io.ImportHelper importHelper = new com.android.jack.jayce.v0004.io.ImportHelper ( new com.android.jack.jayce.v0004.NodeFactory ( ) ) ; com.android.jack.jayce.v0004.NNode nNode ; try ( com.android.sched.util.log.Event eventConvert = tracer.open ( JackEventType.JNODE_TO_NNODE_CONVERSION ) ) { nNode = importHelper.load ( jNode ) ; } writeNode ( nNode ) ; } }

Target:
public void write ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode jNode ) throws com.android.sched.util.file.CannotWriteException { try ( com.android.sched.util.log.Event eventWriting = tracer.open ( JackEventType.NNODE_WRITING ) ) { com.android.jack.jayce.v0004.io.ImportHelper importHelper = new com.android.jack.jayce.v0004.io.ImportHelper ( new com.android.jack.jayce.v0004.NodeFactory ( ) ) ; com.android.jack.jayce.v0004.NNode nNode ; try ( com.android.sched.util.log.Event eventConvert = tracer.open ( JackEventType.JNODE_TO_NNODE_CONVERSION ) ) { nNode = importHelper.load ( jNode ) ; } try { writeNode ( nNode ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotWriteException ( locationProvider , e ) ; } } }
Source:
private boolean endCallInternal ( ) { com.android.server.telecom.Call call = mCallsManager.getForegroundCall ( ) ; if ( call == null ) { call = mCallsManager.getFirstCallWithState ( CallState.ACTIVE , CallState.DIALING , CallState.PULLING , CallState.RINGING , CallState.ON_HOLD ) ; } if ( call != null ) { if ( ( call.getState ( ) ) == ( CallState.RINGING ) ) { call.reject ( false , null ) ; } else { call.disconnect ( ) ; } return true ; } return false ; }

Target:
private boolean endCallInternal ( java.lang.String callingPackage ) { com.android.server.telecom.Call call = mCallsManager.getForegroundCall ( ) ; if ( call == null ) { call = mCallsManager.getFirstCallWithState ( CallState.ACTIVE , CallState.DIALING , CallState.PULLING , CallState.RINGING , CallState.ON_HOLD ) ; } if ( call != null ) { if ( ( call.getState ( ) ) == ( CallState.RINGING ) ) { call.reject ( false , null , callingPackage ) ; } else { call.disconnect ( 0 , callingPackage ) ; } return true ; } return false ; }
Source:
private java.util.List < com.android.bluetooth.avrcp.MediaController > getMediaControllers ( ) { java.util.List < com.android.bluetooth.avrcp.MediaController > controllers = new java.util.ArrayList < com.android.bluetooth.avrcp.MediaController > ( ) ; synchronized ( mMediaPlayerInfoList ) { for ( com.android.bluetooth.avrcp.MediaPlayerInfo info : mMediaPlayerInfoList.values ( ) ) { if ( ( info.getMediaController ( ) ) != null ) { controllers.add ( info.getMediaController ( ) . getWrappedInstance ( ) ) ; } } } return controllers ; }

Target:
private java.util.List < com.android.bluetooth.avrcp.MediaController > getMediaControllers ( ) { java.util.List < com.android.bluetooth.avrcp.MediaController > controllers = new java.util.ArrayList < com.android.bluetooth.avrcp.MediaController > ( ) ; synchronized ( mMediaPlayerInfoList ) { for ( com.android.bluetooth.avrcp.MediaPlayerInfo info : mMediaPlayerInfoList.values ( ) ) { com.android.bluetooth.avrcp.MediaController controller = info.getMediaController ( ) ; if ( controller != null ) { controllers.add ( controller.getWrappedInstance ( ) ) ; } } } return controllers ; }
Source:
public void updateSubscriptionNickname ( int subscriptionId , java.lang.String nickname , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . updateSubscriptionNickname ( subscriptionId , nickname , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void retainSubscriptionsForFactoryReset ( android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . retainSubscriptionsForFactoryReset ( callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void keyguardWaitingForActivityDrawn ( ) { enforceNotIsolatedCaller ( "keyguardWaitingForActivityDrawn" ) ; final long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { if ( com.android.server.am.ActivityManagerService.DEBUG_LOCKSCREEN ) logLockScreen ( "" ) ; mWindowManager.keyguardWaitingForActivityDrawn ( ) ; if ( mLockScreenShown ) { mLockScreenShown = false ; comeOutOfSleepIfNeededLocked ( ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }

Target:
public void keyguardWaitingForActivityDrawn ( ) { enforceNotIsolatedCaller ( "keyguardWaitingForActivityDrawn" ) ; final long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { if ( com.android.server.am.ActivityManagerService.DEBUG_LOCKSCREEN ) logLockScreen ( "" ) ; mWindowManager.keyguardWaitingForActivityDrawn ( ) ; if ( ( mLockScreenShown ) == ( com.android.server.am.ActivityManagerService.LOCK_SCREEN_SHOWN ) ) { mLockScreenShown = com.android.server.am.ActivityManagerService.LOCK_SCREEN_LEAVING ; updateSleepIfNeededLocked ( ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }
Source:
public void testGetValues005_Int ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointInt" , StackTrace002Debuggee.INT_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointInt" ) ; methodInfo.addVariable ( "param" , new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.INT_PARAM_VALUE ) ) ; runStackFrameTest ( tester ) ; }

Target:
public void testGetValues005_Int ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.INT_SIGNAL ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.INT_PARAM_VALUE ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointInt" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointInt" ) ; methodInfo.addVariable ( "param" , oldValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
public void connectionForPostWithBodyRequest ( ) throws java.lang.Exception { com.android.volley.mock.TestRequest.PostWithBody request = new com.android.volley.mock.TestRequest.PostWithBody ( ) ; assertEquals ( request.getMethod ( ) , Method.POST ) ; com.android.volley.toolbox.HurlStack.setConnectionParametersForRequest ( mMockConnection , request ) ; assertEquals ( "POST" , mMockConnection.getRequestMethod ( ) ) ; assertTrue ( mMockConnection.getDoOutput ( ) ) ; }

Target:
public void connectionForPostWithBodyRequest ( ) throws java.lang.Exception { com.android.volley.mock.TestRequest.PostWithBody request = new com.android.volley.mock.TestRequest.PostWithBody ( ) ; org.junit.Assert.assertEquals ( request.getMethod ( ) , Method.POST ) ; com.android.volley.toolbox.HurlStack.setConnectionParametersForRequest ( mMockConnection , request ) ; org.mockito.Mockito.verify ( mMockConnection ) . setRequestMethod ( "POST" ) ; org.mockito.Mockito.verify ( mMockConnection ) . setDoOutput ( true ) ; }
Source:
private com.android.jack.library.InputJackLibrary getIncrementalInternalLibrary ( ) { com.android.sched.vfs.VFS incrementalVfs ; if ( ( com.android.sched.util.config.ThreadConfig.get ( Options.GENERATE_LIBRARY_FROM_INCREMENTAL_FOLDER ) . booleanValue ( ) ) || ( ( com.android.sched.util.config.ThreadConfig.get ( Options.LIBRARY_OUTPUT_CONTAINER_TYPE ) ) == ( com.android.sched.vfs.Container.ZIP ) ) ) { incrementalVfs = com.android.sched.util.config.ThreadConfig.get ( Options.LIBRARY_OUTPUT_ZIP ) ; } else { incrementalVfs = com.android.sched.util.config.ThreadConfig.get ( Options.LIBRARY_OUTPUT_DIR ) ; } try { return com.android.jack.library.JackLibraryFactory.getInputLibrary ( incrementalVfs ) ; } catch ( com.android.jack.library.NotJackLibraryException e ) { } catch ( com.android.jack.library.LibraryVersionException e ) { } catch ( com.android.jack.library.LibraryFormatException e ) { } return null ; }

Target:
private com.android.jack.library.InputJackLibrary getIncrementalInternalLibrary ( ) { try { return com.android.jack.library.JackLibraryFactory.getInputLibrary ( com.android.jack.Jack.getSession ( ) . getJackOutputLibrary ( ) ) ; } catch ( com.android.jack.library.NotJackLibraryException e ) { } catch ( com.android.jack.library.LibraryVersionException e ) { } catch ( com.android.jack.library.LibraryFormatException e ) { } return null ; }
Source:
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.assertMeidEsn ( meid ) ; } else { org.junit.Assert.assertFalse ( android.text.TextUtils.isEmpty ( mTelephonyManager.getImei ( ) ) ) ; } } }

Target:
public void testGetMeid ( ) { java.lang.String meid = mTelephonyManager.getMeid ( ) ; if ( mPackageManager.hasSystemFeature ( PackageManager.FEATURE_TELEPHONY ) ) { if ( ( mTelephonyManager.getPhoneType ( ) ) == ( android.telephony.TelephonyManager.PHONE_TYPE_CDMA ) ) { android.telephony.cts.TelephonyManagerTest.assertMeidEsn ( meid ) ; } } }
Source:
public com.android.sdklib.repository.FullRevision getMinToolsRev ( ) { return minToolsRev ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newPlatform ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision minToolsRev ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_PLATFORMS ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mMinToolsRev = minToolsRev ; p.mCustomPath = new com.android.sdklib.repository.descriptors.PkgDesc.IGetPath ( ) { @ java.lang.Override public java.lang.String getPath ( com.android.sdklib.repository.descriptors.PkgDesc thisPkgDesc ) { return com.android.sdklib.AndroidTargetHash.getPlatformHashString ( thisPkgDesc.getAndroidVersion ( ) ) ; } } ; return p ; }
Source:
public void writeOnImsCommand ( int phoneId , com.android.ims.internal.ImsCallSession session , int command ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_COMMAND ) . setCallIndex ( getCallId ( session ) ) . setImsCommand ( command ) ) ; } }

Target:
public void writeOnImsCallStart ( int phoneId , android.telephony.ims.ImsCallSession session ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = startNewCallSessionIfNeeded ( phoneId ) ; callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_COMMAND ) . setCallIndex ( getCallId ( session ) ) . setImsCommand ( TelephonyCallSession.Event.ImsCommand.IMS_CMD_START ) ) ; }
Source:
public void testMakeTimeZone_TooManyOffsets ( ) throws java.lang.Exception { int [ ] [ ] times = new int [ ] [ ] { new int [ ] { - 2000 , 255 } } ; int [ ] [ ] offsets = new int [ 257 ] [ ] ; java.util.Arrays.fill ( offsets , new int [ 2 ] ) ; offsets [ 255 ] = new int [ ] { 3600 , 0 } ; try { createZoneInfo ( times , offsets ) ; fail ( "Did not detect too many offsets" ) ; } catch ( java.lang.IllegalStateException expected ) { } }

Target:
public void testReadTimeZone_TooManyTypes ( ) throws java.lang.Exception { libcore.util.ZoneInfoTestHelper.ZoneInfoDataBuilder builder = new libcore.util.ZoneInfoTestHelper.ZoneInfoDataBuilder ( ) ; builder.initializeToValid ( ) ; builder.setTypeCountOverride ( 257 ) ; byte [ ] bytes = builder.build ( ) ; try { createZoneInfo ( getName ( ) , java.lang.System.currentTimeMillis ( ) , bytes ) ; fail ( "Did not detect too many types" ) ; } catch ( java.io.IOException expected ) { } }
Source:
private com.android.server.audio.AudioService.ScoClient getScoClient ( android.os.IBinder cb , boolean create ) { synchronized ( mScoClients ) { com.android.server.audio.AudioService.ScoClient client = null ; int size = mScoClients.size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { client = mScoClients.get ( i ) ; if ( ( client.getBinder ( ) ) == cb ) return client ; } if ( create ) { client = new com.android.server.audio.AudioService.ScoClient ( cb ) ; mScoClients.add ( client ) ; } return client ; } }

Target:
private void checkScoAudioState ( ) { synchronized ( mScoClients ) { if ( ( ( ( ( mBluetoothHeadset ) != null ) && ( ( mBluetoothHeadsetDevice ) != null ) ) && ( ( mScoAudioState ) == ( com.android.server.audio.AudioService.SCO_STATE_INACTIVE ) ) ) && ( ( mBluetoothHeadset.getAudioState ( mBluetoothHeadsetDevice ) ) != ( android.bluetooth.BluetoothHeadset.STATE_AUDIO_DISCONNECTED ) ) ) { mScoAudioState = com.android.server.audio.AudioService.SCO_STATE_ACTIVE_EXTERNAL ; } } }
Source:
private void writeCharacteristic ( java.lang.String writeValue ) { android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( com.android.cts.verifier.bluetooth.BleServerService.CHARACTERISTIC_UUID ) ; if ( characteristic != null ) return ; characteristic.setValue ( writeValue ) ; }

Target:
private android.bluetooth.BluetoothGattDescriptor getDescriptor ( ) { android.bluetooth.BluetoothGattDescriptor descriptor = null ; android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( com.android.cts.verifier.bluetooth.BleServerService.CHARACTERISTIC_UUID ) ; if ( characteristic != null ) { descriptor = characteristic.getDescriptor ( com.android.cts.verifier.bluetooth.BleServerService.DESCRIPTOR_UUID ) ; if ( descriptor == null ) { showMessage ( "Descriptor not found" ) ; } } return descriptor ; }
Source:
public static android.support.v8.renderscript.ScriptIntrinsicYuvToRGB create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { long id = rs.nScriptIntrinsicCreate ( 6 , e.getID ( rs ) ) ; android.support.v8.renderscript.ScriptIntrinsicYuvToRGB si = new android.support.v8.renderscript.ScriptIntrinsicYuvToRGB ( id , rs ) ; return si ; }

Target:
public static android.support.v8.renderscript.ScriptIntrinsicYuvToRGB create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { long id ; boolean mUseIncSupp = ( rs.isUseNative ( ) ) && ( ( android.os.Build.VERSION.SDK_INT ) < ( android.support.v8.renderscript.ScriptIntrinsicYuvToRGB.INTRINSIC_API_LEVEL ) ) ; id = rs.nScriptIntrinsicCreate ( 6 , e.getID ( rs ) , mUseIncSupp ) ; android.support.v8.renderscript.ScriptIntrinsicYuvToRGB si = new android.support.v8.renderscript.ScriptIntrinsicYuvToRGB ( id , rs ) ; si.setIncSupp ( mUseIncSupp ) ; return si ; }
Source:
public void openLibrary ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.roots.libraries.Library library ) { final com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable config = com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( myProject ) ; com.intellij.openapi.options.ShowSettingsUtil.getInstance ( ) . editConfigurable ( myProject , config , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { config.selectProjectOrGlobalLibrary ( library , true ) ; } } ) ; }

Target:
public void openLibrary ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.roots.libraries.Library library ) { warnIfGradleProject ( ) ; final com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable config = com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( myProject ) ; com.intellij.openapi.options.ShowSettingsUtil.getInstance ( ) . editConfigurable ( myProject , config , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { config.selectProjectOrGlobalLibrary ( library , true ) ; } } ) ; }
Source:
private static com.android.build.gradle.internal.process.Closure getExecClosure ( @ com.android.annotations.NonNull final com.android.ide.common.process.ProcessInfo processInfo , @ com.android.annotations.NonNull final com.android.ide.common.process.ProcessOutput processOutput ) { return ; { org.gradle.process.ExecSpec execSpec ; execSpec.setExecutable ( processInfo.executable ) ; execSpec.args ( processInfo.getArgs ( ) ) ; execSpec.environment ( processInfo.getEnvironment ( ) ) ; execSpec.setStandardOutput ( processOutput.getStandardOutput ( ) ) ; execSpec.setErrorOutput ( processOutput.getErrorOutput ( ) ) ; execSpec.setIgnoreExitValue ( true ) ; } }

Target:
public void execute ( org.gradle.process.ExecSpec execSpec ) { execSpec.setExecutable ( processInfo.getExecutable ( ) ) ; execSpec.args ( processInfo.getArgs ( ) ) ; execSpec.environment ( processInfo.getEnvironment ( ) ) ; execSpec.setStandardOutput ( processOutput.getStandardOutput ( ) ) ; execSpec.setErrorOutput ( processOutput.getErrorOutput ( ) ) ; execSpec.setIgnoreExitValue ( true ) ; }
Source:
public boolean isRuntimeProfilingEnabled ( ) { try { return mArtManager.isRuntimeProfilingEnabled ( ) ; } catch ( android.os.RemoteException e ) { e.rethrowAsRuntimeException ( ) ; } return false ; }

Target:
public void snapshotRuntimeProfile ( @ android.content.pm.dex.ArtManager.ProfileType int profileType , @ android.annotation.Nullable java.lang.String packageName , @ android.annotation.Nullable java.lang.String codePath , @ android.annotation.NonNull java.util.concurrent.Executor executor , @ android.annotation.NonNull android.content.pm.dex.ArtManager.SnapshotRuntimeProfileCallback callback ) { android.util.Slog.d ( android.content.pm.dex.ArtManager.TAG , ( ( ( "Requesting profile snapshot for " + packageName ) + ":" ) + codePath ) ) ; android.content.pm.dex.ArtManager.SnapshotRuntimeProfileCallbackDelegate delegate = new android.content.pm.dex.ArtManager.SnapshotRuntimeProfileCallbackDelegate ( callback , executor ) ; try { mArtManager.snapshotRuntimeProfile ( profileType , packageName , codePath , delegate ) ; } catch ( android.os.RemoteException e ) { e.rethrowAsRuntimeException ( ) ; } }
Source:
private static void assertContains ( java.lang.String actualValue , java.lang.String expectedSubstring ) { if ( actualValue == null ) { return ; } if ( actualValue.contains ( expectedSubstring ) ) { return ; } fail ( ( ( ( ( "\"" + actualValue ) + "\" does not contain \"" ) + expectedSubstring ) + "\"" ) ) ; }

Target:
private static void assertContains ( java.lang.String actualValue , java.lang.String expectedSubstring ) { if ( actualValue == null ) { return ; } if ( actualValue.contains ( expectedSubstring ) ) { return ; } org.junit.Assert.fail ( ( ( ( ( "\"" + actualValue ) + "\" does not contain \"" ) + expectedSubstring ) + "\"" ) ) ; }
Source:
protected void onPostExecute ( com.android.emailcommon.mail.MessagingException result ) { if ( isCancelled ( ) ) return ; if ( result == null ) { reportProgress ( com.android.email.activity.setup.AccountCheckSettingsFragment.STATE_CHECK_OK , null ) ; } else { int progressState = com.android.email.activity.setup.AccountCheckSettingsFragment.STATE_CHECK_ERROR ; int exceptionType = result.getExceptionType ( ) ; switch ( exceptionType ) { case com.android.emailcommon.mail.MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED : progressState = com.android.email.activity.setup.AccountCheckSettingsFragment.STATE_AUTODISCOVER_AUTH_DIALOG ; break ; case com.android.emailcommon.mail.MessagingException.AUTODISCOVER_AUTHENTICATION_RESULT : progressState = com.android.email.activity.setup.AccountCheckSettingsFragment.STATE_AUTODISCOVER_RESULT ; break ; case com.android.emailcommon.mail.MessagingException.SECURITY_POLICIES_REQUIRED : progressState = com.android.email.activity.setup.AccountCheckSettingsFragment.STATE_CHECK_SHOW_SECURITY ; break ; } reportProgress ( progressState , result ) ; } }

Target:
protected void onPostExecute ( com.android.emailcommon.mail.MessagingException result ) { if ( isCancelled ( ) ) return ; if ( result == null ) { com.android.email.activity.setup.SetupData.setAccount ( mAccount ) ; reportProgress ( com.android.email.activity.setup.AccountCheckSettingsFragment.STATE_CHECK_OK , null ) ; } else { int progressState = com.android.email.activity.setup.AccountCheckSettingsFragment.STATE_CHECK_ERROR ; int exceptionType = result.getExceptionType ( ) ; switch ( exceptionType ) { case com.android.emailcommon.mail.MessagingException.AUTODISCOVER_AUTHENTICATION_FAILED : progressState = com.android.email.activity.setup.AccountCheckSettingsFragment.STATE_AUTODISCOVER_AUTH_DIALOG ; break ; case com.android.emailcommon.mail.MessagingException.AUTODISCOVER_AUTHENTICATION_RESULT : progressState = com.android.email.activity.setup.AccountCheckSettingsFragment.STATE_AUTODISCOVER_RESULT ; break ; case com.android.emailcommon.mail.MessagingException.SECURITY_POLICIES_REQUIRED : progressState = com.android.email.activity.setup.AccountCheckSettingsFragment.STATE_CHECK_SHOW_SECURITY ; break ; } reportProgress ( progressState , result ) ; } }
Source:
protected com.android.sched.vfs.OutputVFile getOutputDex ( @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFS outputVfs , int dexCount ) throws com.android.jack.backend.dex.DexWritingException { assert dexCount >= 1 ; java.lang.String dexName ; if ( dexCount == 1 ) { dexName = DexFileWriter.DEX_FILENAME ; } else { dexName = ( ( DexFileWriter.DEX_PREFIX ) + dexCount ) + ( DexFileWriter.DEX_FILE_EXTENSION ) ; } try { return outputVfs.getRootOutputVDir ( ) . createOutputVFile ( new com.android.sched.vfs.VPath ( dexName , '/' ) ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }

Target:
protected com.android.sched.vfs.OutputVFile getOutputDex ( @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFS outputVfs , int dexCount ) throws com.android.jack.backend.dex.DexWritingException { assert dexCount >= 1 ; java.lang.String dexName ; if ( dexCount == 1 ) { dexName = DexFileWriter.DEX_FILENAME ; } else { dexName = ( ( DexFileWriter.DEX_PREFIX ) + dexCount ) + ( DexFileWriter.DEX_FILE_EXTENSION ) ; } try { return outputVfs.getRootDir ( ) . createOutputVFile ( new com.android.sched.vfs.VPath ( dexName , '/' ) ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }
Source:
public int hashCode ( ) { return asInt ( ) ; }

Target:
public final int hashCode ( ) { if ( ( bits ( ) ) >= 32 ) { return asInt ( ) ; } byte [ ] bytes = asBytes ( ) ; int val = ( bytes [ 0 ] ) & 255 ; for ( int i = 1 ; i < ( bytes.length ) ; i ++ ) { val |= ( ( bytes [ i ] ) & 255 ) << ( i * 8 ) ; } return val ; }
Source:
public boolean isEqual ( com.android.internal.telephony.AdnRecord adn ) { return ( ( alphaTag.equals ( adn.getAlphaTag ( ) ) ) && ( number.equals ( adn.getNumber ( ) ) ) ) && ( java.util.Arrays.equals ( emails , adn.getEmails ( ) ) ) ; }

Target:
public boolean isEqual ( com.android.internal.telephony.AdnRecord adn ) { return ( ( com.android.internal.telephony.AdnRecord.stringCompareNullEqualsEmpty ( alphaTag , adn.alphaTag ) ) && ( com.android.internal.telephony.AdnRecord.stringCompareNullEqualsEmpty ( number , adn.number ) ) ) && ( java.util.Arrays.equals ( emails , adn.emails ) ) ; }
Source:
public org.bouncycastle.crypto.tls.SessionParameters build ( ) { validate ( ( ( this . cipherSuite ) >= 0 ) , "cipherSuite" ) ; validate ( ( ( this . compressionAlgorithm ) >= 0 ) , "compressionAlgorithm" ) ; validate ( ( ( this . masterSecret ) != null ) , "masterSecret" ) ; return new org.bouncycastle.crypto.tls.SessionParameters ( cipherSuite , compressionAlgorithm , masterSecret , peerCertificate , encodedServerExtensions ) ; }

Target:
public org.bouncycastle.crypto.tls.SessionParameters build ( ) { validate ( ( ( this . cipherSuite ) >= 0 ) , "cipherSuite" ) ; validate ( ( ( this . compressionAlgorithm ) >= 0 ) , "compressionAlgorithm" ) ; validate ( ( ( this . masterSecret ) != null ) , "masterSecret" ) ; return new org.bouncycastle.crypto.tls.SessionParameters ( cipherSuite , compressionAlgorithm , masterSecret , peerCertificate , pskIdentity , srpIdentity , encodedServerExtensions ) ; }
Source:
public void testBaseResourceSetByName ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceSet resourceSet = com.android.ide.common.res2.ResourceSetTest.getBaseResourceSet ( ) ; verifyResourceExists ( resourceSet , "drawable/icon" , "drawable/patch" , "raw/foo" , "layout/main" , "layout/layout_ref" , "layout/alias_replaced_by_file" , "layout/file_replaced_by_alias" , "drawable/color_drawable" , "drawable/drawable_ref" , "color/color" , "string/basic_string" , "string/xliff_string" , "string/styled_string" , "style/style" , "array/string_array" , "attr/dimen_attr" , "attr/string_attr" , "attr/enum_attr" , "attr/flag_attr" , "attr/blah" , "attr/blah2" , "attr/flagAttr" , "declare-styleable/declare_styleable" , "dimen/dimen" , "id/item_id" , "integer/integer" , "plurals/plurals" ) ; }

Target:
public void testBaseResourceSetByName ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceSet resourceSet = com.android.ide.common.res2.ResourceSetTest.getBaseResourceSet ( ) ; verifyResourceExists ( resourceSet , "drawable/icon" , "drawable/patch" , "raw/foo" , "layout/main" , "layout/layout_ref" , "layout/alias_replaced_by_file" , "layout/file_replaced_by_alias" , "drawable/color_drawable" , "drawable/drawable_ref" , "color/color" , "string/basic_string" , "string/xliff_string" , "string/styled_string" , "style/style" , "array/string_array" , "attr/dimen_attr" , "attr/string_attr" , "attr/enum_attr" , "attr/flag_attr" , "attr/blah" , "attr/blah2" , "attr/flagAttr" , "declare-styleable/declare_styleable" , "dimen/dimen" , "dimen-sw600dp-v13/offset" , "id/item_id" , "integer/integer" , "plurals/plurals" ) ; }
Source:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nScriptSetVarD ( long id , int slot , double val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarD ( curCon , id , slot , val , mUseInc ) ; }
Source:
private static synchronized void setAdapterService ( com.android.bluetooth.btservice.AdapterService instance ) { if ( ( instance != null ) && ( ! ( instance.mCleaningUp ) ) ) { if ( com.android.bluetooth.btservice.AdapterService.DBG ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , ( "setAdapterService() - set to: " + instance ) ) ; } com.android.bluetooth.btservice.AdapterService.sAdapterService = instance ; } else { if ( com.android.bluetooth.btservice.AdapterService.DBG ) { if ( instance == null ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , "setAdapterService() - Service not available" ) ; } else if ( instance.mCleaningUp ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , "setAdapterService() - Service is cleaning up" ) ; } } } }

Target:
private static synchronized void setAdapterService ( com.android.bluetooth.btservice.AdapterService instance ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , ( "setAdapterService() - trying to set service to " + instance ) ) ; if ( instance == null ) { return ; } com.android.bluetooth.btservice.AdapterService.sAdapterService = instance ; }
Source:
public com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config getUidConfig ( ) { return new com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config ( getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_BUCKET_DURATION , ( 2 * ( android.text.format.DateUtils.HOUR_IN_MILLIS ) ) ) , getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_ROTATE_AGE , ( 15 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) , getSecureLong ( android.provider.Settings.Secure.NETSTATS_UID_DELETE_AGE , ( 90 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) ) ; }

Target:
public com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config getUidConfig ( ) { return new com.android.server.net.NetworkStatsService.NetworkStatsSettings.Config ( getGlobalLong ( android.provider.Settings.Global.NETSTATS_UID_BUCKET_DURATION , ( 2 * ( android.text.format.DateUtils.HOUR_IN_MILLIS ) ) ) , getGlobalLong ( android.provider.Settings.Global.NETSTATS_UID_ROTATE_AGE , ( 15 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) , getGlobalLong ( android.provider.Settings.Global.NETSTATS_UID_DELETE_AGE , ( 90 * ( android.text.format.DateUtils.DAY_IN_MILLIS ) ) ) ) ; }
Source:
private util.build.BuildStep generateDexBuildStep ( java.lang.String classFileFolder , java.lang.String classFileName ) { util.build.BuildStep.BuildFile classFile = new util.build.BuildStep.BuildFile ( classFileFolder , ( classFileName + ".class" ) ) ; util.build.BuildStep.BuildFile tmpJarFile = new util.build.BuildStep.BuildFile ( util.build.BuildDalvikSuite.OUTPUT_FOLDER , ( classFileName + "_tmp.jar" ) ) ; util.build.JarBuildStep jarBuildStep = new util.build.JarBuildStep ( classFile , ( classFileName + ".class" ) , tmpJarFile , false ) ; util.build.BuildStep.BuildFile outputFile = new util.build.BuildStep.BuildFile ( util.build.BuildDalvikSuite.OUTPUT_FOLDER , ( classFileName + ".jar" ) ) ; util.build.DxBuildStep dexBuildStep = new util.build.DxBuildStep ( tmpJarFile , outputFile , true ) ; dexBuildStep.addChild ( jarBuildStep ) ; return dexBuildStep ; }

Target:
private util.build.BuildStep generateDexBuildStep ( java.lang.String classFileFolder , java.lang.String classFileName ) { util.build.BuildStep.BuildFile classFile = new util.build.BuildStep.BuildFile ( classFileFolder , ( classFileName + ".class" ) ) ; util.build.BuildStep.BuildFile tmpJarFile = new util.build.BuildStep.BuildFile ( util.build.BuildDalvikSuite.OUTPUT_FOLDER , ( classFileName + "_tmp.jar" ) ) ; util.build.JarBuildStep jarBuildStep = new util.build.JarBuildStep ( classFile , ( classFileName + ".class" ) , tmpJarFile , false ) ; util.build.BuildStep.BuildFile outputFile = new util.build.BuildStep.BuildFile ( util.build.BuildDalvikSuite.OUTPUT_FOLDER , ( classFileName + ".jar" ) ) ; util.build.D8BuildStep dexBuildStep = new util.build.D8BuildStep ( tmpJarFile , outputFile , true ) ; dexBuildStep.addChild ( jarBuildStep ) ; return dexBuildStep ; }
Source:
public void startDeactivation ( ) { com.android.dialer.common.Assert.checkArgument ( isValid ( ) ) ; com.android.voicemail.impl.VvmLog.i ( com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.TAG , "startDeactivation" ) ; if ( ! ( isLegacyModeEnabled ( ) ) ) { com.android.voicemail.impl.TelephonyMangerCompat.setVisualVoicemailSmsFilterSettings ( context , getPhoneAccountHandle ( ) , null ) ; com.android.voicemail.impl.VvmLog.i ( com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.TAG , "filter disabled" ) ; } if ( ( protocol ) != null ) { protocol.startDeactivation ( this ) ; } com.android.voicemail.impl.sync.VvmAccountManager.removeAccount ( context , getPhoneAccountHandle ( ) ) ; }

Target:
public void startDeactivation ( ) { com.android.dialer.common.Assert.checkArgument ( isValid ( ) ) ; com.android.voicemail.impl.VvmLog.i ( com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.TAG , "startDeactivation" ) ; if ( ! ( isLegacyModeEnabled ( ) ) ) { context.getSystemService ( android.telephony.TelephonyManager.class ) . createForPhoneAccountHandle ( getPhoneAccountHandle ( ) ) . setVisualVoicemailSmsFilterSettings ( null ) ; com.android.voicemail.impl.VvmLog.i ( com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.TAG , "filter disabled" ) ; } if ( ( protocol ) != null ) { protocol.startDeactivation ( this ) ; } com.android.voicemail.impl.sync.VvmAccountManager.removeAccount ( context , getPhoneAccountHandle ( ) ) ; }
Source:
final android.os.Bundle performPauseActivity ( android.os.IBinder token , boolean finished , boolean saveState ) { android.app.ActivityThread.ActivityClientRecord r = mActivities.get ( token ) ; return r != null ? performPauseActivity ( r , finished , saveState ) : null ; }

Target:
public void handleRequestAssistContextExtras ( android.app.ActivityThread.RequestAssistContextExtras cmd ) { android.os.Bundle data = new android.os.Bundle ( ) ; android.app.ActivityThread.ActivityClientRecord r = mActivities.get ( cmd.activityToken ) ; if ( r != null ) { r.activity.getApplication ( ) . dispatchOnProvideAssistData ( r.activity , data ) ; r.activity.onProvideAssistData ( data ) ; } if ( data.isEmpty ( ) ) { data = null ; } android.app.IActivityManager mgr = android.app.ActivityManagerNative.getDefault ( ) ; try { mgr.reportAssistContextExtras ( cmd.requestToken , data ) ; } catch ( android.os.RemoteException e ) { } }
Source:
private CallAudioModeStateMachine.MessageArgs makeArgsForModeStateMachine ( ) { return new com.android.server.telecom.CallAudioModeStateMachine.MessageArgs ( ( ( mActiveDialingOrConnectingCalls.size ( ) ) > 0 ) , ( ( mRingingCalls.size ( ) ) > 0 ) , ( ( mHoldingCalls.size ( ) ) > 0 ) , mIsTonePlaying , ( ( ( mForegroundCall ) != null ) && ( mForegroundCall.getIsVoipAudioMode ( ) ) ) , com.android.server.telecom.Log.createSubsession ( ) ) ; }

Target:
private CallAudioModeStateMachine.MessageArgs makeArgsForModeStateMachine ( ) { return new com.android.server.telecom.CallAudioModeStateMachine.MessageArgs ( ( ( mActiveDialingOrConnectingCalls.size ( ) ) > 0 ) , ( ( mRingingCalls.size ( ) ) > 0 ) , ( ( mHoldingCalls.size ( ) ) > 0 ) , mIsTonePlaying , ( ( ( mForegroundCall ) != null ) && ( mForegroundCall.getIsVoipAudioMode ( ) ) ) , android.telecom.Log.createSubsession ( ) ) ; }