auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test_setTrafficClass ( ) throws java.lang.Exception { java.net.Socket s = new java.net.Socket ( ) ; for ( int i = 0 ; i <= 255 ; ++ i ) { s.setTrafficClass ( i ) ; assertEquals ( ( i & ( ~ ( libcore.java.net.SocketTest.INET_ECN_MASK ) ) ) , s.getTrafficClass ( ) ) ; } }

Target:
public void test_setTrafficClass ( ) throws java.lang.Exception { try ( java.net.Socket s = new java.net.Socket ( ) ) { for ( int i = 0 ; i <= 255 ; ++ i ) { s.setTrafficClass ( i ) ; assertEquals ( ( i & ( ~ ( libcore.java.net.SocketTest.INET_ECN_MASK ) ) ) , s.getTrafficClass ( ) ) ; } } }
Source:
private com.android.builder.VariantConfiguration getVariantWithManifestPackage ( final java.lang.String packageName ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT , "test" ) { @ java.lang.Override public java.lang.String getPackageFromManifest ( ) { return packageName ; } @ java.lang.Override protected void validate ( ) { } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) ) ; return variant ; }

Target:
private com.android.builder.VariantConfiguration getVariantWithManifestPackage ( final java.lang.String packageName ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override public java.lang.String getPackageFromManifest ( ) { return packageName ; } @ java.lang.Override protected void validate ( ) { } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) ) ; return variant ; }
Source:
public boolean equals ( java.lang.Object obj ) { com.ibm.icu.text.LocaleDisplayNames.UiListItem other = ( ( com.ibm.icu.text.LocaleDisplayNames.UiListItem ) ( obj ) ) ; return ( ( ( nameInDisplayLocale.equals ( other.nameInDisplayLocale ) ) && ( nameInSelf.equals ( other.nameInSelf ) ) ) && ( minimized.equals ( other.minimized ) ) ) && ( modified.equals ( other.modified ) ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) { return true ; } if ( ( obj == null ) || ( ! ( obj instanceof com.ibm.icu.text.LocaleDisplayNames.UiListItem ) ) ) { return false ; } com.ibm.icu.text.LocaleDisplayNames.UiListItem other = ( ( com.ibm.icu.text.LocaleDisplayNames.UiListItem ) ( obj ) ) ; return ( ( ( nameInDisplayLocale.equals ( other.nameInDisplayLocale ) ) && ( nameInSelf.equals ( other.nameInSelf ) ) ) && ( minimized.equals ( other.minimized ) ) ) && ( modified.equals ( other.modified ) ) ; }
Source:
private static java.lang.String classToTag ( java.lang.String className ) { for ( int i = 0 , n = com.android.tools.lint.checks.RegistrationDetector.sClasses.length ; i < n ; i ++ ) { if ( com.android.tools.lint.checks.RegistrationDetector.sClasses [ i ] . equals ( className ) ) { return com.android.tools.lint.checks.RegistrationDetector.sTags [ i ] ; } } return null ; }

Target:
protected static java.lang.String classToTag ( java.lang.String className ) { for ( int i = 0 , n = com.android.tools.lint.checks.RegistrationDetector.sClasses.length ; i < n ; i ++ ) { if ( com.android.tools.lint.checks.RegistrationDetector.sClasses [ i ] . equals ( className ) ) { return com.android.tools.lint.checks.RegistrationDetector.sTags [ i ] ; } } return null ; }
Source:
public void test_closeOutbound ( ) throws java.security.NoSuchAlgorithmException { javax.net.ssl.SSLEngine sse = getEngine ( ) ; try { assertFalse ( sse.isOutboundDone ( ) ) ; sse.closeOutbound ( ) ; assertTrue ( sse.isOutboundDone ( ) ) ; } catch ( java.lang.Exception ex ) { fail ( ( "Unexpected exception: " + ex ) ) ; } }

Target:
public void test_closeOutbound ( ) throws java.lang.Exception { javax.net.ssl.SSLEngine sse = getEngine ( ) ; assertFalse ( sse.isOutboundDone ( ) ) ; sse.closeOutbound ( ) ; assertTrue ( sse.isOutboundDone ( ) ) ; }
Source:
public boolean importKey ( java.lang.String keyName , byte [ ] key ) { try { return ( mBinder.import_key ( keyName , key , ( - 1 ) ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public boolean importKey ( java.lang.String keyName , byte [ ] key ) { return importKey ( keyName , key , ( - 1 ) ) ; }
Source:
public com.android.build.gradle.internal.tasks.File call ( ) throws java.lang.Exception { final com.android.builder.sdk.TargetInfo info = scope.getGlobalScope ( ) . getAndroidBuilder ( ) . getTargetInfo ( ) ; java.lang.String path = ( info == null ) ? null : info.getBuildTools ( ) . getPath ( com.android.sdklib.BuildToolInfo.PathId.SPLIT_SELECT ) ; if ( path != null ) { com.android.build.gradle.internal.tasks.File splitSelectExe = new com.android.build.gradle.internal.tasks.File ( path ) ; return splitSelectExe.exists ( ) ? splitSelectExe : null ; } else { return null ; } }

Target:
public java.io.File call ( ) throws java.lang.Exception { final com.android.builder.sdk.TargetInfo info = scope.getGlobalScope ( ) . getAndroidBuilder ( ) . getTargetInfo ( ) ; java.lang.String path = ( info == null ) ? null : info.getBuildTools ( ) . getPath ( com.android.sdklib.BuildToolInfo.PathId.SPLIT_SELECT ) ; if ( path != null ) { java.io.File splitSelectExe = new java.io.File ( path ) ; return splitSelectExe.exists ( ) ? splitSelectExe : null ; } else { return null ; } }
Source:
public void testIllegalMethodInsnNullName ( ) { org.objectweb.asm.MethodVisitor mv = new org.objectweb.asm.util.CheckMethodAdapter ( null ) ; mv.visitCode ( ) ; try { mv.visitMethodInsn ( org.objectweb.asm.util.INVOKEVIRTUAL , "C" , null , "()V" ) ; fail ( ) ; } catch ( java.lang.Exception e ) { } }

Target:
public void testIllegalMethodInsnNullName ( ) { org.objectweb.asm.MethodVisitor mv = new org.objectweb.asm.util.CheckMethodAdapter ( null ) ; mv.visitCode ( ) ; try { mv.visitMethodInsn ( org.objectweb.asm.util.INVOKEVIRTUAL , "C" , null , "()V" , false ) ; fail ( ) ; } catch ( java.lang.Exception e ) { } }
Source:
private synchronized void removePackageFromBrowseList ( java.lang.String packageName ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "removePackageFromBrowseList: " + packageName ) ) ; int browseInfoID = getBrowseId ( packageName ) ; if ( browseInfoID != ( - 1 ) ) { mBrowsePlayerInfoList.remove ( browseInfoID ) ; } }

Target:
private void removePackageFromBrowseList ( java.lang.String packageName ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "removePackageFromBrowseList: " + packageName ) ) ; synchronized ( mBrowsePlayerInfoList ) { int browseInfoID = getBrowseId ( packageName ) ; if ( browseInfoID != ( - 1 ) ) { mBrowsePlayerInfoList.remove ( browseInfoID ) ; } } }
Source:
private static java.lang.String getDownloadsDirectory ( android.content.Context appContext ) { android.os.StrictMode.ThreadPolicy oldPolicy = android.os.StrictMode.allowThreadDiskReads ( ) ; java.lang.String downloadsPath ; try { long time = android.os.SystemClock.elapsedRealtime ( ) ; downloadsPath = android.os.Environment.getExternalStoragePublicDirectory ( Environment.DIRECTORY_DOWNLOADS ) . getPath ( ) ; org.chromium.base.metrics.RecordHistogram.recordTimesHistogram ( "Android.StrictMode.DownloadsDir" , ( ( android.os.SystemClock.elapsedRealtime ( ) ) - time ) , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } finally { android.os.StrictMode.setThreadPolicy ( oldPolicy ) ; } return downloadsPath ; }

Target:
private static java.lang.String getDownloadsDirectory ( ) { android.os.StrictMode.ThreadPolicy oldPolicy = android.os.StrictMode.allowThreadDiskReads ( ) ; java.lang.String downloadsPath ; try { long time = android.os.SystemClock.elapsedRealtime ( ) ; downloadsPath = android.os.Environment.getExternalStoragePublicDirectory ( Environment.DIRECTORY_DOWNLOADS ) . getPath ( ) ; org.chromium.base.metrics.RecordHistogram.recordTimesHistogram ( "Android.StrictMode.DownloadsDir" , ( ( android.os.SystemClock.elapsedRealtime ( ) ) - time ) , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } finally { android.os.StrictMode.setThreadPolicy ( oldPolicy ) ; } return downloadsPath ; }
Source:
private static void applyInvokeWithSecurityPolicy ( com.android.internal.os.ZygoteConnection.Arguments args , android.net.Credentials peer , java.lang.String peerSecurityContext ) throws com.android.internal.os.ZygoteSecurityException { int peerUid = peer.getUid ( ) ; if ( ( ( args.invokeWith ) != null ) && ( peerUid != 0 ) ) { throw new com.android.internal.os.ZygoteSecurityException ( ( "Peer is not permitted to specify " + "an explicit invoke-with wrapper command" ) ) ; } if ( ( args.invokeWith ) != null ) { boolean allowed = android.os.SELinux.checkSELinuxAccess ( peerSecurityContext , peerSecurityContext , "zygote" , "specifyinvokewith" ) ; if ( ! allowed ) { throw new com.android.internal.os.ZygoteSecurityException ( ( "Peer is not permitted to specify " + "an explicit invoke-with wrapper command" ) ) ; } } }

Target:
private static void applyInvokeWithSecurityPolicy ( com.android.internal.os.ZygoteConnection.Arguments args , android.net.Credentials peer ) throws com.android.internal.os.ZygoteSecurityException { int peerUid = peer.getUid ( ) ; if ( ( ( args.invokeWith ) != null ) && ( peerUid != 0 ) ) { throw new com.android.internal.os.ZygoteSecurityException ( ( "Peer is not permitted to specify " + "an explicit invoke-with wrapper command" ) ) ; } }
Source:
private void onRadioButtonClicked ( android.widget.CompoundButton buttonView , boolean isChecked ) { if ( mPreventRadioButtonCallbacks ) { return ; } if ( isChecked ) { if ( ( mSharedState.getCurrentChecked ( ) ) != null ) { mSharedState.getCurrentChecked ( ) . setChecked ( false ) ; } mSharedState.setCurrentChecked ( buttonView ) ; mSharedState.setCurrentKey ( getKey ( ) ) ; callChangeListener ( mSharedState.getCurrentKey ( ) ) ; } mSettingsIcon.setEnabled ( isChecked ) ; }

Target:
private void onRadioButtonClicked ( android.widget.CompoundButton buttonView , boolean isChecked ) { if ( ( mPreventRadioButtonCallbacks ) || ( ( mSharedState.getCurrentChecked ( ) ) == buttonView ) ) { return ; } if ( isChecked ) { if ( ( mSharedState.getCurrentChecked ( ) ) != null ) { mSharedState.getCurrentChecked ( ) . setChecked ( false ) ; } mSharedState.setCurrentChecked ( buttonView ) ; mSharedState.setCurrentKey ( getKey ( ) ) ; callChangeListener ( mSharedState.getCurrentKey ( ) ) ; } mSettingsIcon.setEnabled ( isChecked ) ; }
Source:
private static java.lang.String stripIdPrefix ( java.lang.String id ) { if ( id.startsWith ( com.android.ide.common.layout.LayoutConstants.NEW_ID_PREFIX ) ) { id = id.substring ( com.android.ide.common.layout.LayoutConstants.NEW_ID_PREFIX.length ( ) ) ; } else if ( id.startsWith ( com.android.ide.common.layout.LayoutConstants.ID_PREFIX ) ) { id = id.substring ( com.android.ide.common.layout.LayoutConstants.ID_PREFIX.length ( ) ) ; } return id ; }

Target:
public static java.lang.String stripIdPrefix ( java.lang.String id ) { if ( id.startsWith ( com.android.ide.common.layout.LayoutConstants.NEW_ID_PREFIX ) ) { id = id.substring ( com.android.ide.common.layout.LayoutConstants.NEW_ID_PREFIX.length ( ) ) ; } else if ( id.startsWith ( com.android.ide.common.layout.LayoutConstants.ID_PREFIX ) ) { id = id.substring ( com.android.ide.common.layout.LayoutConstants.ID_PREFIX.length ( ) ) ; } return id ; }
Source:
public void testOutgoingCallSelectPhoneAccountVideo ( ) throws java.lang.Exception { startOutgoingPhoneCallPendingCreateConnection ( "650-555-1212" , null , mConnectionServiceFixtureA , java.lang.Process.myUserHandle ( ) , VideoProfile.STATE_BIDIRECTIONAL ) ; android.telecom.com.android.server.telecom.Call call = mTelecomSystem.getCallsManager ( ) . getCalls ( ) . iterator ( ) . next ( ) ; assert call.isVideoCallingSupported ( ) ; assertEquals ( VideoProfile.STATE_BIDIRECTIONAL , call.getVideoState ( ) ) ; call.setTargetPhoneAccount ( mPhoneAccountA1.getAccountHandle ( ) ) ; assert call.isVideoCallingSupported ( ) ; assertEquals ( VideoProfile.STATE_BIDIRECTIONAL , call.getVideoState ( ) ) ; }

Target:
public void testOutgoingCallSelectPhoneAccountVideo ( ) throws java.lang.Exception { startOutgoingPhoneCallPendingCreateConnection ( "650-555-1212" , null , mConnectionServiceFixtureA , java.lang.Process.myUserHandle ( ) , VideoProfile.STATE_BIDIRECTIONAL ) ; android.telecom.com.android.server.telecom.Call call = mTelecomSystem.getCallsManager ( ) . getCalls ( ) . iterator ( ) . next ( ) ; assert call.isVideoCallingSupported ( ) ; org.junit.Assert.assertEquals ( VideoProfile.STATE_BIDIRECTIONAL , call.getVideoState ( ) ) ; call.setTargetPhoneAccount ( mPhoneAccountA1.getAccountHandle ( ) ) ; assert call.isVideoCallingSupported ( ) ; org.junit.Assert.assertEquals ( VideoProfile.STATE_BIDIRECTIONAL , call.getVideoState ( ) ) ; }
Source:
public static boolean hasCellularNetworkConnection ( android.app.Instrumentation instrumentation ) { android.telephony.TelephonyManager tm = ( ( android.telephony.TelephonyManager ) ( instrumentation.getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; if ( ( tm.getDataState ( ) ) != ( android.telephony.TelephonyManager.DATA_DISCONNECTED ) ) { return true ; } else { return false ; } }

Target:
public static boolean hasCellularNetworkConnection ( android.app.Instrumentation instrumentation ) { android.telephony.TelephonyManager tm = ( ( android.telephony.TelephonyManager ) ( instrumentation.getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; return ( tm.getDataState ( ) ) != ( android.telephony.TelephonyManager.DATA_DISCONNECTED ) ; }
Source:
private com.android.jill.backend.jayce.JayceWriter createWriter ( @ javax.annotation.Nonnull java.io.OutputStream os ) throws java.io.IOException { com.android.jill.backend.jayce.JayceWriter writer = new com.android.jill.backend.jayce.JayceWriter ( os ) ; writer.writeHeader ( ( ( ( ( ( ( "jayce(" + ( com.android.jill.frontend.java.JavaTransformer.JAYCE_MAJOR_VERSION ) ) + "." ) + ( com.android.jill.frontend.java.JavaTransformer.JAYCE_MINOR_VERSION ) ) + " \"jill " ) + ( version ) ) + "\")" ) ) ; return writer ; }

Target:
private com.android.jill.backend.jayce.JayceWriter createWriter ( @ javax.annotation.Nonnull java.io.OutputStream os ) { com.android.jill.backend.jayce.JayceWriter writer = new com.android.jill.backend.jayce.JayceWriter ( os ) ; return writer ; }
Source:
public void testNotifyResponsePublishCancel ( ) throws org.json.JSONException { final short transactionId = 23 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "status" , WifiAwareNative.AWARE_STATUS_SUCCESS ) ; args.putInt ( "value" , 0 ) ; args.putInt ( "response_type" , WifiAwareNative.AWARE_RESPONSE_PUBLISH_CANCEL ) ; com.android.server.wifi.aware.WifiAwareHalMock.callNotifyResponse ( transactionId , com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }

Target:
public void testNotifyResponsePublishCancel ( ) throws org.json.JSONException { final short transactionId = 23 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "status" , WifiAwareNative.AWARE_STATUS_SUCCESS ) ; args.putInt ( "response_type" , WifiAwareNative.AWARE_RESPONSE_PUBLISH_CANCEL ) ; com.android.server.wifi.aware.WifiAwareHalMock.callNotifyResponse ( transactionId , com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( action.equals ( BluetoothA2dp.ACTION_ACTIVE_DEVICE_CHANGED ) ) { mNativeInterface.sendMediaUpdate ( false , true , false ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( action.equals ( BluetoothA2dp.ACTION_ACTIVE_DEVICE_CHANGED ) ) { if ( ( mNativeInterface ) == null ) return ; mNativeInterface.sendMediaUpdate ( false , true , false ) ; } }
Source:
void handleTimerInEmergencyCallbackMode ( int action ) { switch ( action ) { case com.android.internal.telephony.imsphone.ImsPhone.CANCEL_ECM_TIMER : removeCallbacks ( mExitEcmRunnable ) ; ( ( com.android.internal.telephony.GsmCdmaPhone ) ( mDefaultPhone ) ) . notifyEcbmTimerReset ( java.lang.Boolean.TRUE ) ; break ; case com.android.internal.telephony.imsphone.ImsPhone.RESTART_ECM_TIMER : long delayInMillis = android.os.SystemProperties.getLong ( TelephonyProperties.PROPERTY_ECM_EXIT_TIMER , com.android.internal.telephony.imsphone.ImsPhone.DEFAULT_ECM_EXIT_TIMER_VALUE ) ; postDelayed ( mExitEcmRunnable , delayInMillis ) ; ( ( com.android.internal.telephony.GsmCdmaPhone ) ( mDefaultPhone ) ) . notifyEcbmTimerReset ( java.lang.Boolean.FALSE ) ; break ; default : android.telephony.Rlog.e ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "handleTimerInEmergencyCallbackMode, unsupported action " + action ) ) ; } }

Target:
void handleTimerInEmergencyCallbackMode ( int action ) { switch ( action ) { case com.android.internal.telephony.imsphone.ImsPhone.CANCEL_ECM_TIMER : removeCallbacks ( mExitEcmRunnable ) ; ( ( com.android.internal.telephony.GsmCdmaPhone ) ( mDefaultPhone ) ) . notifyEcbmTimerReset ( java.lang.Boolean.TRUE ) ; break ; case com.android.internal.telephony.imsphone.ImsPhone.RESTART_ECM_TIMER : long delayInMillis = android.os.SystemProperties.getLong ( TelephonyProperties.PROPERTY_ECM_EXIT_TIMER , com.android.internal.telephony.imsphone.ImsPhone.DEFAULT_ECM_EXIT_TIMER_VALUE ) ; postDelayed ( mExitEcmRunnable , delayInMillis ) ; ( ( com.android.internal.telephony.GsmCdmaPhone ) ( mDefaultPhone ) ) . notifyEcbmTimerReset ( java.lang.Boolean.FALSE ) ; break ; default : loge ( ( "handleTimerInEmergencyCallbackMode, unsupported action " + action ) ) ; } }
Source:
public void testDensityOnlyWithUniversalMatch ( ) { com.android.build.SplitOutput match ; java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( ) ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 320 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 480 ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( match , result ) ; }

Target:
public void testDensityOnlyWithUniversalMatch ( ) { com.android.build.SplitOutput match ; java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( 3 ) ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 320 , 2 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 480 , 1 ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( match , result ) ; }
Source:
public void testFailed ( com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { if ( ( mLogger ) != null ) { mLogger.warning ( java.lang.String.format ( "\n%1$s > %2$s[%3$s] [31mFAILED [0m" , test.getClassName ( ) , test.getTestName ( ) , mDeviceName ) ) ; mLogger.warning ( getModifiedTrace ( trace ) ) ; } mFailedTests.add ( test ) ; super . testFailed ( test , trace ) ; }

Target:
public void testFailed ( com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { if ( ( mLogger ) != null ) { mLogger.warning ( "\n%1$s > %2$s[%3$s] [31mFAILED [0m" , test.getClassName ( ) , test.getTestName ( ) , mDeviceName ) ; mLogger.warning ( getModifiedTrace ( trace ) ) ; } mFailedTests.add ( test ) ; super . testFailed ( test , trace ) ; }
Source:
public static < E > com.google.common.collect.ImmutableSet < E > copyOf ( java.lang.Iterable < ? extends E > elements ) { return elements instanceof java.util.Collection ? com.google.common.collect.ImmutableSet.copyOf ( com.google.common.collect.Collections2.cast ( elements ) ) : com.google.common.collect.ImmutableSet.copyOf ( elements.iterator ( ) ) ; }

Target:
public static < E > com.google.common.collect.ImmutableSet < E > copyOf ( java.lang.Iterable < ? extends E > elements ) { return elements instanceof java.util.Collection ? com.google.common.collect.ImmutableSet.copyOf ( ( ( java.util.Collection < ? extends E > ) ( elements ) ) ) : com.google.common.collect.ImmutableSet.copyOf ( elements.iterator ( ) ) ; }
Source:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] bootclasspath , @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo , boolean compareInstructionNumber , float instructionNumberTolerance , @ javax.annotation.CheckForNull com.android.jack.JarJarRules jarjarRules , @ javax.annotation.CheckForNull com.android.jack.ProguardFlags [ ] proguardFlagFiles ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( new com.android.jack.Options ( ) , bootclasspath , classpath , null , null , fileOrSourceList , withDebugInfo , compareInstructionNumber , instructionNumberTolerance , jarjarRules , proguardFlagFiles ) ; }

Target:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo , boolean compareInstructionNumber , float instructionNumberTolerance , @ javax.annotation.CheckForNull com.android.jack.JarJarRules jarjarRules , @ javax.annotation.CheckForNull com.android.jack.ProguardFlags [ ] proguardFlagFiles ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( new com.android.jack.Options ( ) , classpath , null , fileOrSourceList , withDebugInfo , compareInstructionNumber , instructionNumberTolerance , jarjarRules , proguardFlagFiles ) ; }
Source:
public void testTake ( ) throws java.lang.InterruptedException { java.util.concurrent.DelayQueue q = populatedQueue ( jsr166.SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { assertEquals ( new jsr166.DelayQueueTest.PDelay ( i ) , ( ( jsr166.DelayQueueTest.PDelay ) ( q.take ( ) ) ) ) ; } }

Target:
public void testTake ( ) throws java.lang.InterruptedException { java.util.concurrent.DelayQueue q = populatedQueue ( jsr166.SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { assertEquals ( new jsr166.DelayQueueTest.PDelay ( i ) , q.take ( ) ) ; } }
Source:
public android.net.wifi.aware.WifiAwareNetworkSpecifier createFromParcel ( android.os.Parcel in ) { android.net.wifi.aware.WifiAwareNetworkSpecifier ns = new android.net.wifi.aware.WifiAwareNetworkSpecifier ( ) ; ns.type = in.readInt ( ) ; ns.role = in.readInt ( ) ; ns.clientId = in.readInt ( ) ; ns.sessionId = in.readInt ( ) ; ns.peerId = in.readInt ( ) ; ns.peerMac = in.createByteArray ( ) ; ns.pmk = in.createByteArray ( ) ; ns.passphrase = in.readString ( ) ; return ns ; }

Target:
public android.net.wifi.aware.WifiAwareNetworkSpecifier createFromParcel ( android.os.Parcel in ) { return new android.net.wifi.aware.WifiAwareNetworkSpecifier ( in.readInt ( ) , in.readInt ( ) , in.readInt ( ) , in.readInt ( ) , in.readInt ( ) , in.createByteArray ( ) , in.createByteArray ( ) , in.readString ( ) , in.readInt ( ) ) ; }
Source:
public boolean terminateCall ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothHeadsetClientCall call ) { com.android.bluetooth.hfpclient.HeadsetClientService service = getService ( ) ; if ( service == null ) { android.util.Log.w ( com.android.bluetooth.hfpclient.HeadsetClientService.TAG , "service is null" ) ; return false ; } return service.terminateCall ( device , call.getUUID ( ) ) ; }

Target:
public boolean terminateCall ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothHeadsetClientCall call ) { com.android.bluetooth.hfpclient.HeadsetClientService service = getService ( ) ; if ( service == null ) { android.util.Log.w ( com.android.bluetooth.hfpclient.HeadsetClientService.TAG , "service is null" ) ; return false ; } return service.terminateCall ( device , ( call != null ? call.getUUID ( ) : null ) ) ; }
Source:
public java.lang.String getFullVersion ( ) { final java.lang.String majorVersion = getMajorVersion ( ) ; if ( ( majorVersion != null ) && ( ( majorVersion.trim ( ) . length ( ) ) > 0 ) ) { final java.lang.String minorVersion = getMinorVersion ( ) ; if ( ( minorVersion != null ) && ( ( minorVersion.trim ( ) . length ( ) ) > 0 ) ) { return ( majorVersion + "." ) + minorVersion ; } else { return majorVersion + ".0" ; } } else { return getVersionName ( ) ; } }

Target:
public abstract java.lang.String getFullVersion ( ) ;
Source:
private void addScriptChars ( android.icu.util.ULocale locale , android.icu.text.UnicodeSet allowedChars ) { int [ ] scripts = android.icu.lang.UScript.getCode ( locale ) ; android.icu.text.UnicodeSet tmpSet = new android.icu.text.UnicodeSet ( ) ; int i ; for ( i = 0 ; i < ( scripts.length ) ; i ++ ) { tmpSet.applyIntPropertyValue ( UProperty.SCRIPT , scripts [ i ] ) ; allowedChars.addAll ( tmpSet ) ; } }

Target:
private void addScriptChars ( android.icu.util.ULocale locale , android.icu.text.UnicodeSet allowedChars ) { int [ ] scripts = android.icu.lang.UScript.getCode ( locale ) ; if ( scripts != null ) { android.icu.text.UnicodeSet tmpSet = new android.icu.text.UnicodeSet ( ) ; for ( int i = 0 ; i < ( scripts.length ) ; i ++ ) { tmpSet.applyIntPropertyValue ( UProperty.SCRIPT , scripts [ i ] ) ; allowedChars.addAll ( tmpSet ) ; } } }
Source:
public void configure ( org.bouncycastle.jcajce.provider.config.ConfigurableProvider provider ) { provider.addAlgorithm ( "MessageDigest.SHA-384" , ( ( org.bouncycastle.jcajce.provider.digest.SHA384.Mappings.PREFIX ) + "$Digest" ) ) ; provider.addAlgorithm ( "Alg.Alias.MessageDigest.SHA384" , "SHA-384" ) ; provider.addAlgorithm ( ( "Alg.Alias.MessageDigest." + ( org.bouncycastle.asn1.nist.NISTObjectIdentifiers.id_sha384 ) ) , "SHA-384" ) ; provider.addAlgorithm ( "Mac.OLDHMACSHA384" , ( ( org.bouncycastle.jcajce.provider.digest.SHA384.Mappings.PREFIX ) + "$OldSHA384" ) ) ; addHMACAlgorithm ( provider , "SHA384" , ( ( org.bouncycastle.jcajce.provider.digest.SHA384.Mappings.PREFIX ) + "$HashMac" ) , ( ( org.bouncycastle.jcajce.provider.digest.SHA384.Mappings.PREFIX ) + "$KeyGenerator" ) ) ; addHMACAlias ( provider , "SHA384" , PKCSObjectIdentifiers.id_hmacWithSHA384 ) ; }

Target:
public void configure ( org.bouncycastle.jcajce.provider.config.ConfigurableProvider provider ) { provider.addAlgorithm ( "MessageDigest.SHA-384" , ( ( org.bouncycastle.jcajce.provider.digest.SHA384.Mappings.PREFIX ) + "$Digest" ) ) ; provider.addAlgorithm ( "Alg.Alias.MessageDigest.SHA384" , "SHA-384" ) ; provider.addAlgorithm ( ( "Alg.Alias.MessageDigest." + ( org.bouncycastle.asn1.nist.NISTObjectIdentifiers.id_sha384 ) ) , "SHA-384" ) ; addHMACAlgorithm ( provider , "SHA384" , ( ( org.bouncycastle.jcajce.provider.digest.SHA384.Mappings.PREFIX ) + "$HashMac" ) , ( ( org.bouncycastle.jcajce.provider.digest.SHA384.Mappings.PREFIX ) + "$KeyGenerator" ) ) ; addHMACAlias ( provider , "SHA384" , PKCSObjectIdentifiers.id_hmacWithSHA384 ) ; }
Source:
private java.lang.StringBuffer subformat ( int number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr , int maxIntDig ) { if ( ( currencySignCount ) == ( com.ibm.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } }

Target:
private java.lang.StringBuffer subformat ( double number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr ) { if ( ( currencySignCount ) == ( com.ibm.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr ) ; } }
Source:
public void testDensityOnlyWithMatch ( ) { com.android.build.SplitOutput match ; java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( ) ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 160 ) ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 320 ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( match , result ) ; }

Target:
public void testDensityOnlyWithMatch ( ) { com.android.build.SplitOutput match ; java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( 1 ) ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 160 , 2 ) ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 320 , 3 ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( match , result ) ; }
Source:
public static android.widget.ProgressBar.RefreshData obtain ( int id , int progress , boolean fromUser ) { android.widget.ProgressBar.RefreshData rd = android.widget.ProgressBar.RefreshData.sPool.acquire ( ) ; rd.id = id ; rd.progress = progress ; rd.fromUser = fromUser ; return rd ; }

Target:
public static android.widget.ProgressBar.RefreshData obtain ( int id , int progress , boolean fromUser ) { android.widget.ProgressBar.RefreshData rd = android.widget.ProgressBar.RefreshData.sPool.acquire ( ) ; if ( rd == null ) { rd = new android.widget.ProgressBar.RefreshData ( ) ; } rd.id = id ; rd.progress = progress ; rd.fromUser = fromUser ; return rd ; }
Source:
private static void setNetworkEvent ( com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityEvent out , android.net.metrics.NetworkEvent in ) { com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.NetworkEvent networkEvent = new com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.NetworkEvent ( ) ; networkEvent.networkId = com.android.server.connectivity.IpConnectivityEventBuilder.netIdOf ( in.netId ) ; networkEvent.eventType = in.eventType ; networkEvent.latencyMs = ( ( int ) ( in.durationMs ) ) ; out.setNetworkEvent ( networkEvent ) ; }

Target:
private static void setNetworkEvent ( com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityEvent out , android.net.metrics.NetworkEvent in ) { com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.NetworkEvent networkEvent = new com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.NetworkEvent ( ) ; networkEvent.eventType = in.eventType ; networkEvent.latencyMs = ( ( int ) ( in.durationMs ) ) ; out.setNetworkEvent ( networkEvent ) ; }
Source:
protected void onDetachedFromWindow ( ) { super . onDetachedFromWindow ( ) ; if ( ( mItemAnimator ) != null ) { mItemAnimator.endAnimations ( ) ; } stopScroll ( ) ; mIsAttached = false ; if ( ( mLayout ) != null ) { mLayout.dispatchDetachedFromWindow ( this , mRecycler ) ; } mPendingAccessibilityImportanceChange.clear ( ) ; removeCallbacks ( mItemAnimatorRunner ) ; mViewInfoStore.onDetach ( ) ; if ( android.support.v7.widget.RecyclerView.ALLOW_THREAD_GAP_WORK ) { mGapWorker.remove ( this ) ; mGapWorker = null ; } }

Target:
protected void onDetachedFromWindow ( ) { super . onDetachedFromWindow ( ) ; if ( ( mItemAnimator ) != null ) { mItemAnimator.endAnimations ( ) ; } stopScroll ( ) ; mIsAttached = false ; if ( ( mLayout ) != null ) { mLayout.dispatchDetachedFromWindow ( this , mRecycler ) ; } mPendingAccessibilityImportanceChange.clear ( ) ; removeCallbacks ( mItemAnimatorRunner ) ; mViewInfoStore.onDetach ( ) ; if ( ( android.support.v7.widget.RecyclerView.ALLOW_THREAD_GAP_WORK ) && ( ( mGapWorker ) != null ) ) { mGapWorker.remove ( this ) ; mGapWorker = null ; } }
Source:
public static javax.net.ssl.TrustManager wrap ( javax.net.ssl.TrustManager trustManager ) { if ( trustManager instanceof javax.net.ssl.X509ExtendedTrustManager ) { return new libcore.javax.net.ssl.TestTrustManager ( ( ( javax.net.ssl.X509ExtendedTrustManager ) ( trustManager ) ) ) ; } else if ( trustManager instanceof javax.net.ssl.X509TrustManager ) { return new libcore.javax.net.ssl.TestTrustManager ( ( ( javax.net.ssl.X509TrustManager ) ( trustManager ) ) ) ; } return trustManager ; }

Target:
public static javax.net.ssl.TrustManager wrap ( javax.net.ssl.TrustManager trustManager ) { if ( trustManager instanceof javax.net.ssl.X509TrustManager ) { return new libcore.javax.net.ssl.TestTrustManager ( ( ( javax.net.ssl.X509TrustManager ) ( trustManager ) ) ) ; } return trustManager ; }
Source:
public boolean enableNoAutoConnect ( ) { if ( isEnabled ( ) ) { if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enableNoAutoConnect(): BT already enabled!" ) ; return true ; } try { return mManagerService.enableNoAutoConnect ( android.app.ActivityThread.currentPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean enableNoAutoConnect ( ) { if ( isEnabled ( ) ) { if ( android.bluetooth.BluetoothAdapter.DBG ) { android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enableNoAutoConnect(): BT already enabled!" ) ; } return true ; } try { return mManagerService.enableNoAutoConnect ( android.app.ActivityThread.currentPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }
Source:
public int getDrmObjectType ( java.lang.String path , java.lang.String mimeType ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) && ( ( null == mimeType ) || ( mimeType.equals ( "" ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Path or the mimetype should be non null" ) ; } else if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getDrmObjectType ( mUniqueId , path , mimeType ) ; }

Target:
public int getDrmObjectType ( java.lang.String path , java.lang.String mimeType ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) && ( ( null == mimeType ) || ( mimeType.equals ( "" ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Path or the mimetype should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getDrmObjectType ( mUniqueId , path , mimeType ) ; }
Source:
public synchronized boolean setCountryCode ( java.lang.String countryCode , boolean persist ) { if ( DBG ) android.util.Log.d ( com.android.server.wifi.WifiCountryCode.TAG , ( "Receive set country code request: " + countryCode ) ) ; if ( android.text.TextUtils.isEmpty ( countryCode ) ) { if ( DBG ) android.util.Log.d ( com.android.server.wifi.WifiCountryCode.TAG , "Ignore empty country code" ) ; return false ; } if ( persist ) { mDefaultCountryCode = countryCode ; } mTelephonyCountryCode = countryCode.toUpperCase ( ) ; if ( mReady ) { updateCountryCode ( ) ; } return true ; }

Target:
public synchronized boolean setCountryCode ( java.lang.String countryCode ) { if ( DBG ) android.util.Log.d ( com.android.server.wifi.WifiCountryCode.TAG , ( "Receive set country code request: " + countryCode ) ) ; if ( android.text.TextUtils.isEmpty ( countryCode ) ) { if ( DBG ) android.util.Log.d ( com.android.server.wifi.WifiCountryCode.TAG , "Ignore empty country code" ) ; return false ; } mTelephonyCountryCode = countryCode.toUpperCase ( ) ; if ( mReady ) { updateCountryCode ( ) ; } return true ; }
Source:
public void radioStateChanged ( int indicationType , int radioState ) { mRil.processIndication ( indicationType ) ; com.android.internal.telephony.CommandsInterface.RadioState newState = getRadioStateFromInt ( radioState ) ; mRil.unsljLogMore ( com.android.internal.telephony.RILConstants.RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED , ( "radioStateChanged: " + ( newState.toString ( ) ) ) ) ; mRil.setRadioState ( newState ) ; }

Target:
public void radioStateChanged ( int indicationType , int radioState ) { mRil.processIndication ( indicationType ) ; com.android.internal.telephony.CommandsInterface.RadioState newState = getRadioStateFromInt ( radioState ) ; if ( RIL.RILJ_LOGD ) { mRil.unsljLogMore ( com.android.internal.telephony.RILConstants.RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED , ( "radioStateChanged: " + newState ) ) ; } mRil.setRadioState ( newState ) ; }
Source:
private static com.android.build.gradle.internal.variant.Set < org.gradle.api.artifacts.Configuration > flattenConfigurations ( @ com.android.annotations.NonNull org.gradle.api.artifacts.Configuration configuration ) { com.android.build.gradle.internal.variant.Set < org.gradle.api.artifacts.Configuration > configs = com.google.common.collect.Sets.newHashSet ( ) ; configs.add ( configuration ) ; for ( org.gradle.api.artifacts.Configuration extend : configuration.getExtendsFrom ( ) ) { configs.addAll ( com.android.build.gradle.internal.variant.VariantHelper.flattenConfigurations ( extend ) ) ; } return configs ; }

Target:
private static java.util.Set < org.gradle.api.artifacts.Configuration > flattenConfigurations ( @ com.android.annotations.NonNull org.gradle.api.artifacts.Configuration configuration ) { java.util.Set < org.gradle.api.artifacts.Configuration > configs = com.google.common.collect.Sets.newHashSet ( ) ; configs.add ( configuration ) ; for ( org.gradle.api.artifacts.Configuration extend : configuration.getExtendsFrom ( ) ) { configs.addAll ( com.android.build.gradle.internal.variant.VariantHelper.flattenConfigurations ( extend ) ) ; } return configs ; }
Source:
public void testNotifyResponseConfigSuccess ( ) throws org.json.JSONException { final short transactionId = 23 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "status" , WifiAwareNative.AWARE_STATUS_SUCCESS ) ; args.putInt ( "value" , 0 ) ; args.putInt ( "response_type" , WifiAwareNative.AWARE_RESPONSE_ENABLED ) ; com.android.server.wifi.aware.WifiAwareHalMock.callNotifyResponse ( transactionId , com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onConfigSuccessResponse ( transactionId ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }

Target:
public void testNotifyResponseConfigSuccess ( ) throws org.json.JSONException { final short transactionId = 23 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "status" , WifiAwareNative.AWARE_STATUS_SUCCESS ) ; args.putInt ( "response_type" , WifiAwareNative.AWARE_RESPONSE_ENABLED ) ; com.android.server.wifi.aware.WifiAwareHalMock.callNotifyResponse ( transactionId , com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onConfigSuccessResponse ( transactionId ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }
Source:
public int compare ( java.util.HashMap < ? , ? > map1 , java.util.HashMap < ? , ? > map2 ) { java.lang.Object value1 = map1.get ( mSortingKey ) ; java.lang.Object value2 = map2.get ( mSortingKey ) ; if ( ! ( isComparable ( value1 ) ) ) { return isComparable ( value2 ) ? 1 : 0 ; } else if ( ! ( isComparable ( value2 ) ) ) { return - 1 ; } return ( ( java.lang.Comparable ) ( value1 ) ) . compareTo ( value2 ) ; }

Target:
public int compare ( java.util.Map < ? , ? > map1 , java.util.Map < ? , ? > map2 ) { java.lang.Object value1 = map1.get ( mSortingKey ) ; java.lang.Object value2 = map2.get ( mSortingKey ) ; if ( ! ( isComparable ( value1 ) ) ) { return isComparable ( value2 ) ? 1 : 0 ; } else if ( ! ( isComparable ( value2 ) ) ) { return - 1 ; } return ( ( java.lang.Comparable ) ( value1 ) ) . compareTo ( value2 ) ; }
Source:
public void testSendImsGmsTest ( ) throws java.lang.Exception { switchImsSmsFormat ( PhoneConstants.PHONE_TYPE_GSM ) ; mImsSmsDispatcher.sendText ( "111" , "222" , com.android.internal.telephony.TAG , null , null , null , null , false ) ; org.mockito.Mockito.verify ( mSimulatedCommandsVerifier ) . sendImsGsmSms ( org.mockito.Mockito.eq ( "038122f2" ) , org.mockito.Mockito.eq ( "0100038111f1000014c9f67cda9c12d37378983e4697e5d4f29c0e" ) , org.mockito.Mockito.eq ( 0 ) , org.mockito.Mockito.eq ( 0 ) , org.mockito.Matchers.any ( android.os.Message.class ) ) ; }

Target:
public void testSendImsGmsTest ( ) throws java.lang.Exception { switchImsSmsFormat ( PhoneConstants.PHONE_TYPE_GSM ) ; mImsSmsDispatcher.sendText ( "111" , "222" , com.android.internal.telephony.TAG , null , null , null , null , false , ( - 1 ) , false , ( - 1 ) ) ; org.mockito.Mockito.verify ( mSimulatedCommandsVerifier ) . sendImsGsmSms ( org.mockito.Mockito.eq ( "038122f2" ) , org.mockito.Mockito.eq ( "0100038111f1000014c9f67cda9c12d37378983e4697e5d4f29c0e" ) , org.mockito.Mockito.eq ( 0 ) , org.mockito.Mockito.eq ( 0 ) , org.mockito.Matchers.any ( android.os.Message.class ) ) ; }
Source:
public static void setUp ( ) throws java.lang.Exception { com.android.jack.ir.ast.MarkerCollectorTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.Options options = new com.android.jack.Options ( ) ; com.android.sched.util.RunnableHooks hooks = new com.android.sched.util.RunnableHooks ( ) ; options.checkValidity ( hooks ) ; options.getConfigBuilder ( hooks ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }

Target:
public static void setUp ( ) throws java.lang.Exception { com.android.jack.Options options = new com.android.jack.Options ( ) ; com.android.sched.util.RunnableHooks hooks = new com.android.sched.util.RunnableHooks ( ) ; options.checkValidity ( hooks ) ; options.getConfigBuilder ( hooks ) . setDebug ( ) ; com.android.sched.util.config.ThreadConfig.setConfig ( options.getConfig ( ) ) ; }
Source:
private void sendUuidIntent ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.btservice.RemoteDevices.DeviceProperties prop = getDeviceProperties ( device ) ; android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_UUID ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothDevice.EXTRA_UUID , ( prop == null ? null : prop.mUuids ) ) ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.initProfilePriorities ( device , prop.mUuids ) ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.sendBroadcast ( intent , AdapterService.BLUETOOTH_ADMIN_PERM ) ; com.android.bluetooth.btservice.RemoteDevices.mSdpTracker.remove ( device ) ; }

Target:
private void sendUuidIntent ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.btservice.RemoteDevices.DeviceProperties prop = getDeviceProperties ( device ) ; android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_UUID ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothDevice.EXTRA_UUID , ( prop == null ? null : prop.mUuids ) ) ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.initProfilePriorities ( device , ( prop == null ? null : prop.mUuids ) ) ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.sendBroadcast ( intent , AdapterService.BLUETOOTH_ADMIN_PERM ) ; com.android.bluetooth.btservice.RemoteDevices.mSdpTracker.remove ( device ) ; }
Source:
static void getLong ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , long value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final long got = ( v == null ) ? ( ( long ) ( m.invokeExact ( ) ) ) : ( ( long ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }

Target:
static void getLong ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , long value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final long got = ( v == null ) ? ( ( long ) ( m.invokeExact ( ) ) ) : ( ( long ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( expectFailure , exceptionThrown ) ; }
Source:
private static java.lang.Class defineClass ( java.lang.String name , java.lang.ClassLoader loader , long cookie , java.util.List < java.lang.Throwable > suppressed ) { java.lang.Class result = null ; try { result = dalvik.system.DexFile.defineClassNative ( name , loader , cookie ) ; } catch ( java.lang.NoClassDefFoundError e ) { if ( suppressed != null ) { suppressed.add ( e ) ; } } catch ( java.lang.ClassNotFoundException e ) { if ( suppressed != null ) { suppressed.add ( e ) ; } } return result ; }

Target:
private static java.lang.Class defineClass ( java.lang.String name , java.lang.ClassLoader loader , java.lang.Object cookie , java.util.List < java.lang.Throwable > suppressed ) { java.lang.Class result = null ; try { result = dalvik.system.DexFile.defineClassNative ( name , loader , cookie ) ; } catch ( java.lang.NoClassDefFoundError e ) { if ( suppressed != null ) { suppressed.add ( e ) ; } } catch ( java.lang.ClassNotFoundException e ) { if ( suppressed != null ) { suppressed.add ( e ) ; } } return result ; }
Source:
int lineNumber ( int offset ) { for ( int i = 0 ; i < ( myOffsets.size ( ) ) ; i ++ ) { int savedOffset = myOffsets.get ( i ) ; if ( offset <= savedOffset ) { return i ; } } return - 1 ; }

Target:
int lineNumber ( int offset ) { for ( int i = 0 ; i < ( myOffsets.size ( ) ) ; i ++ ) { if ( offset < ( myOffsets.get ( i ) ) ) { return i ; } } return - 1 ; }
Source:
public WifiScanner.ScanData [ ] getScanResults ( boolean flush ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getScanResults ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { android.net.wifi.WifiScanner [ ] sd = null ; if ( isHalStarted ( ) ) { sd = com.android.server.wifi.WifiNative.getScanResultsNative ( com.android.server.wifi.WifiNative.sWlan0Index , flush ) ; } if ( sd != null ) { return sd ; } else { return new android.net.wifi.WifiScanner.ScanData [ 0 ] ; } } } }

Target:
public WifiScanner.ScanData [ ] getScanResults ( boolean flush ) { return mWifiVendorHal.getScanResults ( ) ; }
Source:
public boolean implies ( java.security.Permission p ) { int i ; int j ; if ( ! ( p instanceof java.net.SocketPermission ) ) return false ; if ( p == ( this ) ) return true ; java.net.SocketPermission that = ( ( java.net.SocketPermission ) ( p ) ) ; return ( ( ( this . mask ) & ( that.mask ) ) == ( that.mask ) ) && ( impliesIgnoreMask ( that ) ) ; }

Target:
public boolean implies ( java.security.Permission p ) { return true ; }