auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.Set < android.bluetooth.BluetoothDevice > getBondedDevices ( ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) { return toDeviceSet ( new android.bluetooth.BluetoothDevice [ 0 ] ) ; } try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) return toDeviceSet ( mService.getBondedDevices ( ) ) ; } return toDeviceSet ( new android.bluetooth.BluetoothDevice [ 0 ] ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return null ; }

Target:
public boolean isOffloadedScanBatchingSupported ( ) { if ( ! ( getLeAccess ( ) ) ) return false ; try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) return mService.isOffloadedScanBatchingSupported ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "failed to get isOffloadedScanBatchingSupported, error: " , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return false ; }
Source:
public com.android.jack.api.JackProvider getProvider ( @ javax.annotation.Nonnull com.android.jack.server.JackHttpServer.Program < com.android.jack.api.JackProvider > program ) throws com.android.jack.server.UnsupportedProgramException { synchronized ( program ) { com.android.jack.api.JackProvider jackProvider = program.getLoadedProgram ( ) ; if ( jackProvider == null ) { jackProvider = loadJack ( program.getJar ( ) ) ; program.setLoadedProgram ( jackProvider ) ; } return jackProvider ; } }

Target:
public com.android.jack.api.JackProvider getProvider ( @ javax.annotation.Nonnull com.android.jack.server.JackHttpServer.Program < com.android.jack.api.JackProvider > program , @ javax.annotation.Nonnull com.android.jack.server.JackHttpServer.Assertion status ) throws com.android.jack.server.UnsupportedProgramException { synchronized ( program ) { com.android.jack.api.JackProvider jackProvider = program.getLoadedProgram ( status ) ; if ( jackProvider == null ) { jackProvider = loadJack ( program.getUrlPath ( ) , status ) ; program.setLoadedProgram ( status , jackProvider ) ; } return jackProvider ; } }
Source:
public com.android.jack.shrob.obfuscation.nameprovider.NameProvider getFieldNameProvider ( ) throws com.android.jack.JackIOException { com.android.jack.shrob.obfuscation.nameprovider.NameProvider provider ; if ( ( globalFieldNameProvider ) != null ) { provider = globalFieldNameProvider ; } else { provider = getNameProvider ( obfuscationDictionary ) ; } return provider ; }

Target:
public com.android.jack.shrob.obfuscation.nameprovider.NameProvider getFieldNameProvider ( @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JFieldId > fieldIds ) throws com.android.jack.JackIOException { com.android.jack.shrob.obfuscation.nameprovider.NameProvider provider ; if ( ( globalFieldNameProvider ) != null ) { provider = globalFieldNameProvider ; } else { java.util.Set < java.lang.String > existingNames = new java.util.HashSet < java.lang.String > ( ) ; fillExistingName ( fieldIds , existingNames ) ; provider = new com.android.jack.shrob.obfuscation.nameprovider.UniqueNameProvider ( getNameProvider ( obfuscationDictionary ) , existingNames ) ; } return provider ; }
Source:
public void coreToJayceFromFolder ( ) throws java.lang.Exception { com.android.jill.Options options = new com.android.jill.Options ( ) ; options.setBinaryFile ( new java.io.File ( ( ( com.android.jack.test.TestsProperties.getAndroidRootDir ( ) . getPath ( ) ) + "/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes/" ) ) ) ; options.setVerbose ( true ) ; options.outputContainer = ContainerType.DIR ; options.output = com.android.jill.JillTestTools.createTempDir ( "core_" , "_dir" ) ; new com.android.jill.Jill ( options , "0.1" ) . process ( options.getBinaryFile ( ) ) ; }

Target:
public void coreToJayceFromFolder ( ) throws java.lang.Exception { com.android.jill.Options options = new com.android.jill.Options ( ) ; options.setBinaryFile ( new java.io.File ( ( ( com.android.jack.test.TestsProperties.getAndroidRootDir ( ) . getPath ( ) ) + "/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes/" ) ) ) ; options.setVerbose ( true ) ; options.output = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "jillTest" , ".zip" ) ; com.android.jill.Jill.process ( options ) ; }
Source:
public boolean contains ( java.lang.Object o ) { if ( o instanceof java.util.Map.Entry ) { java.util.Map.Entry < ? , ? > entry = ( ( java.util.Map.Entry < ? , ? > ) ( o ) ) ; return containsEntry ( entry.getKey ( ) , entry.getValue ( ) ) ; } return false ; }

Target:
java.util.Collection < V2 > createValues ( ) { return com.google.common.collect.Collections2.transform ( fromMultimap.entries ( ) , com.google.common.collect.Maps.< K , V1 , V2 > asEntryToValueFunction ( transformer ) ) ; }
Source:
public void testAll ( ) throws java.lang.Exception { for ( java.lang.String id : libcore.icu.Transliterator.getAvailableIDs ( ) ) { java.lang.System.err.println ( id ) ; libcore.icu.Transliterator t = new libcore.icu.Transliterator ( id ) ; t.transliterate ( "hello" ) ; } }

Target:
public void testAll ( ) throws java.lang.Exception { java.util.Enumeration < java.lang.String > ids = android.icu.text.Transliterator.getAvailableIDs ( ) ; while ( ids.hasMoreElements ( ) ) { java.lang.String id = ids.nextElement ( ) ; java.lang.System.err.println ( id ) ; android.icu.text.Transliterator t = android.icu.text.Transliterator.getInstance ( id ) ; t.transliterate ( "hello" ) ; } }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( ( ( ( ( ( " mPackageName: " + ( mPackageName ) ) + " mSmsReceiverClass: " ) + ( mSmsReceiverClass ) ) + " mMmsReceiverClass: " ) + ( mMmsReceiverClass ) ) + " mRespondViaMessageClass: " ) + ( mRespondViaMessageClass ) ) + " mSendToClass: " ) + ( mSendToClass ) ) + " mSmsAppChangedClass: " ) + ( mSmsAppChangedReceiverClass ) ) + " mProviderChangedReceiverClass: " ) + ( mProviderChangedReceiverClass ) ) + " mUid: " ) + ( mUid ) ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " mPackageName: " + ( mPackageName ) ) + " mSmsReceiverClass: " ) + ( mSmsReceiverClass ) ) + " mMmsReceiverClass: " ) + ( mMmsReceiverClass ) ) + " mRespondViaMessageClass: " ) + ( mRespondViaMessageClass ) ) + " mSendToClass: " ) + ( mSendToClass ) ) + " mSmsAppChangedClass: " ) + ( mSmsAppChangedReceiverClass ) ) + " mProviderChangedReceiverClass: " ) + ( mProviderChangedReceiverClass ) ) + " mSimFullReceiverClass: " ) + ( mSimFullReceiverClass ) ) + " mUid: " ) + ( mUid ) ; }
Source:
public void onSensorChanged ( int sensor , float [ ] values ) { if ( android.util.Config.LOGD ) android.util.Log.d ( com.example.android.apis.graphics.Compass.TAG , ( ( ( ( ( ( "sensorChanged (" + ( values [ 0 ] ) ) + ", " ) + ( values [ 1 ] ) ) + ", " ) + ( values [ 2 ] ) ) + ")" ) ) ; mValues = values ; if ( ( mView ) != null ) { mView.invalidate ( ) ; } }

Target:
public void onSensorChanged ( android.hardware.SensorEvent event ) { if ( android.util.Config.LOGD ) android.util.Log.d ( com.example.android.apis.graphics.Compass.TAG , ( ( ( ( ( ( "sensorChanged (" + ( event.values [ 0 ] ) ) + ", " ) + ( event.values [ 1 ] ) ) + ", " ) + ( event.values [ 2 ] ) ) + ")" ) ) ; mValues = event.values ; if ( ( mView ) != null ) { mView.invalidate ( ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) { ReturnsAndArgPassing.main ( null ) ; BasicTest.main ( null ) ; Clash.main ( null ) ; Clash2.main ( null ) ; Clash3.main ( null ) ; Clash4.main ( null ) ; WrappedThrow.main ( null ) ; NarrowingTest.main ( null ) ; FloatSelect.main ( null ) ; NativeProxy.main ( args ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { ReturnsAndArgPassing.main ( null ) ; BasicTest.main ( null ) ; Clash.main ( null ) ; Clash2.main ( null ) ; Clash3.main ( null ) ; Clash4.main ( null ) ; WrappedThrow.main ( null ) ; NarrowingTest.main ( null ) ; FloatSelect.main ( null ) ; NativeProxy.main ( args ) ; ConstructorProxy.main ( ) ; }
Source:
private void checkFailure ( java.util.Map < java.lang.String , java.lang.String > replacements , java.lang.String regex ) throws java.lang.Exception { java.io.InputStream xmlStream = com.android.dvlib.DeviceSchemaTest.getReplacedStream ( replacements ) ; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; assertFalse ( "Validation Assertion Failed, XML failed to validate when it was expected to pass\n" , com.android.dvlib.DeviceSchema.validate ( xmlStream , baos , null ) ) ; assertTrue ( java.lang.String.format ( "Regex Assertion Failed:\nExpected: %s\nActual: %s\n" , regex , baos.toString ( ) . trim ( ) ) , baos.toString ( ) . trim ( ) . matches ( regex ) ) ; }

Target:
private void checkFailure ( java.lang.String resource , java.lang.String regex ) throws java.lang.Exception { java.io.InputStream xml = com.android.dvlib.DeviceSchemaTest.class . getResourceAsStream ( resource ) ; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; assertFalse ( "Validation Assertion Failed, XML validated when it was expected to fail\n" , com.android.dvlib.DeviceSchema.validate ( xml , baos , null ) ) ; java.lang.String actual = baos.toString ( ) . trim ( ) ; actual = actual.replace ( "\r\n" , "\n" ) ; assertTrue ( java.lang.String.format ( "Regex Assertion Failed:\nExpected: %s\nActual: %s\n" , regex , actual ) , actual.matches ( regex ) ) ; }
Source:
public void setSurfaceTexture ( android.graphics.SurfaceTexture surfaceTexture ) { if ( surfaceTexture == null ) { throw new java.lang.NullPointerException ( "surfaceTexture must not be null" ) ; } if ( ( mSurface ) != null ) { mSurface.release ( ) ; } mSurface = surfaceTexture ; mUpdateSurface = true ; invalidateParentIfNeeded ( ) ; }

Target:
public void setSurfaceTexture ( android.graphics.SurfaceTexture surfaceTexture ) { if ( surfaceTexture == null ) { throw new java.lang.NullPointerException ( "surfaceTexture must not be null" ) ; } if ( ( mSurface ) != null ) { mSurface.release ( ) ; } mSurface = surfaceTexture ; if ( ( ( mViewFlags ) & ( VISIBILITY_MASK ) ) == ( VISIBLE ) ) { mSurface.setOnFrameAvailableListener ( mUpdateListener , mAttachInfo.mHandler ) ; } mUpdateSurface = true ; invalidateParentIfNeeded ( ) ; }
Source:
public void onError ( java.lang.Exception e ) { if ( com.android.tv.tuner.TunerPreferences.getStoreTsStream ( mContext ) ) { android.util.Log.e ( com.android.tv.tuner.tvinput.TunerSessionWorker.TAG , ( "Crash intentionally to capture the error causing TS file. " + ( e.getMessage ( ) ) ) ) ; com.android.tv.common.SoftPreconditions.checkState ( false ) ; } if ( ( mChannel ) != null ) { mHandler.obtainMessage ( com.android.tv.tuner.tvinput.TunerSessionWorker.MSG_RETRY_PLAYBACK , mPlayer ) . sendToTarget ( ) ; } }

Target:
public void onError ( java.lang.Exception e ) { if ( com.android.tv.tuner.TunerPreferences.getStoreTsStream ( mContext ) ) { android.util.Log.e ( com.android.tv.tuner.tvinput.TunerSessionWorker.TAG , ( "Crash intentionally to capture the error causing TS file. " + ( e.getMessage ( ) ) ) ) ; com.android.tv.common.SoftPreconditions.checkState ( false ) ; } if ( ( mChannel ) != null ) { mHandler.obtainMessage ( com.android.tv.tuner.tvinput.TunerSessionWorker.MSG_RETRY_PLAYBACK , java.lang.System.identityHashCode ( mPlayer ) ) . sendToTarget ( ) ; } }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; android.widget.TextView mTextView = ( ( android.widget.TextView ) ( findViewById ( R.id.text ) ) ) ; mTextView.setText ( getUtility ( ) . getValue ( ) ) ; }

Target:
private java.lang.String getString ( ) { return getUtility ( ) . getValue ( ) ; }
Source:
public void testEnablingAndDisablingSecurityLogging ( ) { mDevicePolicyManager.setSecurityLoggingEnabled ( getWho ( ) , true ) ; assertTrue ( mDevicePolicyManager.isSecurityLoggingEnabled ( getWho ( ) ) ) ; mDevicePolicyManager.setSecurityLoggingEnabled ( getWho ( ) , false ) ; assertFalse ( mDevicePolicyManager.isSecurityLoggingEnabled ( getWho ( ) ) ) ; }

Target:
public void testEnablingSecurityLogging ( ) { assertFalse ( mDevicePolicyManager.isSecurityLoggingEnabled ( getWho ( ) ) ) ; mDevicePolicyManager.setSecurityLoggingEnabled ( getWho ( ) , true ) ; assertTrue ( mDevicePolicyManager.isSecurityLoggingEnabled ( getWho ( ) ) ) ; }
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 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 void toggleOrientationSync ( final android.app.Activity activity , final android.app.Instrumentation instrumentation ) { final int originalOrientation = activity.getResources ( ) . getConfiguration ( ) . orientation ; final int newOrientation = ( originalOrientation == ( android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ) ) ? android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE : android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ; android.app.stubs.OrientationTestUtils.changeOrientation ( activity , instrumentation , newOrientation ) ; android.app.stubs.OrientationTestUtils.changeOrientation ( activity , instrumentation , originalOrientation ) ; }

Target:
private static int [ ] getOrientations ( final android.app.Activity activity ) { final int originalOrientation = activity.getResources ( ) . getConfiguration ( ) . orientation ; final int newOrientation = ( originalOrientation == ( android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ) ) ? android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE : android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ; return new int [ ] { originalOrientation , newOrientation } ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.aput_object.d.T_aput_object_1 t = new dot.junit.opcodes.aput_object.d.T_aput_object_1 ( ) ; java.lang.String [ ] arr = new java.lang.String [ 2 ] ; try { t.run ( arr , arr.length , "abc" ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aput_object.d.T_aput_object_1" , java.lang.ArrayIndexOutOfBoundsException.class , new java.lang.String [ 2 ] , 2 , "abc" ) ; }
Source:
public void testConflictsFail ( ) throws java.lang.Exception { java.io.ByteArrayOutputStream errOut = new java.io.ByteArrayOutputStream ( ) ; try { runTestConflict ( "fail" , errOut ) ; junit.framework.Assert.fail ( ) ; } catch ( com.android.jack.JackAbortException e ) { java.lang.String errString = errOut.toString ( ) ; junit.framework.Assert.assertTrue ( errString.contains ( "Library reading phase: Resource 'rsc1' from" ) ) ; junit.framework.Assert.assertTrue ( errString.contains ( "'/rsc/rsc1' has already been imported from" ) ) ; } }

Target:
public void testConflictsFail ( ) throws java.lang.Exception { java.io.ByteArrayOutputStream errOut = new java.io.ByteArrayOutputStream ( ) ; try { runTestConflict ( "fail" , errOut , com.android.jack.test.toolchain.JackApiToolchainBase.class ) ; junit.framework.Assert.fail ( ) ; } catch ( com.android.jack.JackAbortException e ) { java.lang.String errString = errOut.toString ( ) ; junit.framework.Assert.assertTrue ( errString.contains ( "Library reading phase: Resource 'rsc1' from" ) ) ; junit.framework.Assert.assertTrue ( errString.contains ( "'/rsc/rsc1' has already been imported from" ) ) ; } }
Source:
public void onCallListChange ( com.android.incallui.call.CallList callList ) { if ( ( ( ( ( bubble ) == null ) || ( ! ( bubble.isVisible ( ) ) ) ) && ( ( getCall ( ) ) != null ) ) && ( ! ( com.android.incallui.InCallPresenter.getInstance ( ) . isShowingInCallUi ( ) ) ) ) { com.android.dialer.common.LogUtil.i ( "ReturnToCallController.onCallListChange" , "going to show bubble" ) ; show ( ) ; } }

Target:
public void onCallListChange ( com.android.incallui.call.CallList callList ) { if ( ! ( com.android.incallui.ReturnToCallController.isEnabled ( context ) ) ) { hide ( ) ; return ; } if ( ( ( ( ( bubble ) == null ) || ( ! ( bubble.isVisible ( ) ) ) ) && ( ( getCall ( ) ) != null ) ) && ( ! ( com.android.incallui.InCallPresenter.getInstance ( ) . isShowingInCallUi ( ) ) ) ) { com.android.dialer.common.LogUtil.i ( "ReturnToCallController.onCallListChange" , "going to show bubble" ) ; show ( ) ; } }
Source:
public int compare ( com.android.traceview.ProfileData pd1 , com.android.traceview.ProfileData pd2 ) { if ( ( pd2.getElapsedInclusive ( ) ) > ( pd1.getElapsedInclusive ( ) ) ) return 1 ; if ( ( pd2.getElapsedInclusive ( ) ) < ( pd1.getElapsedInclusive ( ) ) ) return - 1 ; return 0 ; }

Target:
public int compare ( com.android.traceview.ProfileData pd1 , com.android.traceview.ProfileData pd2 ) { if ( ( timeBase.getElapsedInclusiveTime ( pd2 ) ) > ( timeBase.getElapsedInclusiveTime ( pd1 ) ) ) return 1 ; if ( ( timeBase.getElapsedInclusiveTime ( pd2 ) ) < ( timeBase.getElapsedInclusiveTime ( pd1 ) ) ) return - 1 ; return 0 ; }
Source:
public void testAddList ( ) { com.android.utils.HtmlBuilder builder = new com.android.utils.HtmlBuilder ( ) ; builder.add ( "Plain" ) . newline ( ) ; builder.beginList ( ) . listItem ( ) . add ( "item 1" ) . listItem ( ) . add ( "item 2" ) . endList ( ) ; assertEquals ( ( "Plain<BR/>\n" + ( ( ( "<DL>\n" + "<DD>-&NBSP;item 1\n" ) + "<DD>-&NBSP;item 2\n" ) + "</DL>" ) ) , builder.getHtml ( ) ) ; }

Target:
public void testAddList ( ) { com.android.utils.HtmlBuilder builder = new com.android.utils.HtmlBuilder ( ) ; builder.add ( "Plain" ) . newline ( ) ; builder.beginList ( ) . listItem ( ) . add ( "item 1" ) . listItem ( ) . add ( "item 2" ) . endList ( ) ; assertEquals ( ( "Plain<BR/>" + ( ( ( "<DL>" + "<DD>-&NBSP;item 1" ) + "<DD>-&NBSP;item 2" ) + "</DL>" ) ) , builder.getHtml ( ) ) ; }
Source:
private void saveState ( ) { if ( ( mDisableUpdates ) == 0 ) { com.android.ide.eclipse.adt.internal.sdk.LayoutDevice.DeviceConfig deviceConfig = getSelectedDeviceConfig ( ) ; java.lang.String configName = ( deviceConfig != null ) ? deviceConfig.getName ( ) : null ; mState.configName = configName ; mState.locale = getSelectedLocale ( ) ; mState.theme = getSelectedTheme ( ) ; mState.target = getRenderingTarget ( ) ; mState.activity = getSelectedActivity ( ) ; } }

Target:
private void saveState ( ) { if ( ( mDisableUpdates ) == 0 ) { com.android.sdklib.devices.State state = getSelectedDeviceState ( ) ; java.lang.String stateName = ( state != null ) ? state.getName ( ) : null ; mState.stateName = stateName ; mState.locale = getSelectedLocale ( ) ; mState.theme = getSelectedTheme ( ) ; mState.target = getRenderingTarget ( ) ; mState.activity = getSelectedActivity ( ) ; } }
Source:
public void dup2_x1 ( ) { super . dup2_x1 ( ) ; producerPop ( ) ; producerPop ( ) ; producerPop ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; }

Target:
public void dup2_x1 ( ) { super . dup2_x1 ( ) ; producerStack.pop ( ) ; producerStack.pop ( ) ; producerStack.pop ( ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; actualProducerStack.dup2_x1 ( ) ; }
Source:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent e ) { mDragSelection.clear ( ) ; mDragElements = null ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo.getInstance ( ) . stopDrag ( ) ; finishGesture ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , e ) , ( ( e.detail ) == ( org.eclipse.swt.dnd.DND.DROP_NONE ) ) ) ; mCanvas.redraw ( ) ; }

Target:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent e ) { mDragSelection.clear ( ) ; mDragElements = null ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo.getInstance ( ) . stopDrag ( ) ; finishGesture ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , e ) , ( ( e.detail ) == ( org.eclipse.swt.dnd.DND.DROP_NONE ) ) ) ; mCanvas.showInvisibleViews ( false ) ; mCanvas.redraw ( ) ; }
Source:
private void notifySessionTerminatedDuringMerge ( ) { com.android.ims.ImsCall.Listener listener ; boolean notifyFailure = false ; com.android.ims.ImsReasonInfo notifyFailureReasonInfo = null ; synchronized ( this ) { listener = mListener ; if ( mSessionEndDuringMerge ) { if ( com.android.ims.ImsCall.CONF_DBG ) { logi ( "notifySessionTerminatedDuringMerge ::reporting terminate during merge" ) ; } notifyFailure = true ; notifyFailureReasonInfo = mSessionEndDuringMergeReasonInfo ; } clearSessionTerminationFlags ( ) ; } if ( ( listener != null ) && notifyFailure ) { try { processCallTerminated ( notifyFailureReasonInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "notifySessionTerminatedDuringMerge :: " , t ) ; } } }

Target:
private void updateCallProfile ( ) { synchronized ( mLockObj ) { if ( ( mSession ) != null ) { setCallProfile ( mSession.getCallProfile ( ) ) ; } } }
Source:
public void testFailures ( ) { assertEquals ( false , lq.checkAndSet ( "" , config ) ) ; assertEquals ( false , lq.checkAndSet ( "EN" , config ) ) ; assertEquals ( false , lq.checkAndSet ( "abc" , config ) ) ; }

Target:
public void testCheckAndSetCaseInsensitive ( ) { assertEquals ( true , lq.checkAndSet ( "EN" , config ) ) ; assertTrue ( ( ( config.getLanguageQualifier ( ) ) != null ) ) ; assertEquals ( "en" , config.getLanguageQualifier ( ) . toString ( ) ) ; assertEquals ( "en" , com.android.ide.common.resources.configuration.LanguageQualifier.getFolderSegment ( "EN" ) ) ; }
Source:
private void cancelNotification ( ) { if ( ( mStatusBarCallListener ) != null ) { setStatusBarCallListener ( null ) ; } if ( ( mCurrentNotification ) != ( com.android.incallui.StatusBarNotifier.NOTIFICATION_NONE ) ) { com.android.dialer.common.LogUtil.i ( "StatusBarNotifier.cancelNotification" , "cancel" ) ; com.android.dialer.notification.DialerNotificationManager.cancel ( mContext , com.android.incallui.StatusBarNotifier.NOTIFICATION_TAG , com.android.incallui.StatusBarNotifier.NOTIFICATION_ID ) ; } mCurrentNotification = com.android.incallui.StatusBarNotifier.NOTIFICATION_NONE ; }

Target:
private void cancelNotification ( ) { if ( ( mStatusBarCallListener ) != null ) { setStatusBarCallListener ( null ) ; } if ( ( mCurrentNotification ) != ( com.android.incallui.StatusBarNotifier.NOTIFICATION_NONE ) ) { com.android.incallui.call.TelecomAdapter.getInstance ( ) . stopForegroundNotification ( ) ; mCurrentNotification = com.android.incallui.StatusBarNotifier.NOTIFICATION_NONE ; } }
Source:
public java.util.List < android.net.wifi.WifiConfiguration > syncGetConfiguredNetworks ( ) { return android.net.wifi.WifiConfigStore.getConfiguredNetworks ( ) ; }

Target:
public java.util.List < android.net.wifi.WifiConfiguration > syncGetConfiguredNetworks ( com.android.internal.util.AsyncChannel channel ) { android.os.Message resultMsg = channel.sendMessageSynchronously ( android.net.wifi.WifiStateMachine.CMD_GET_CONFIGURED_NETWORKS ) ; java.util.List < android.net.wifi.WifiConfiguration > result = ( ( java.util.List < android.net.wifi.WifiConfiguration > ) ( resultMsg.obj ) ) ; resultMsg.recycle ( ) ; return result ; }
Source:
public java.lang.String format ( double quantity , android.icu.text.NumberFormat numberFormat , android.icu.text.PluralRules pluralRules ) { java.lang.String formatStr = numberFormat.format ( quantity ) ; java.lang.String variant = computeVariant ( quantity , numberFormat , pluralRules ) ; return getByVariant ( variant ) . format ( formatStr ) ; }

Target:
public java.lang.String format ( double number , android.icu.text.NumberFormat numberFormat , android.icu.text.PluralRules pluralRules ) { java.lang.String formatStr = numberFormat.format ( number ) ; android.icu.impl.StandardPlural p = android.icu.text.QuantityFormatter.selectPlural ( number , numberFormat , pluralRules ) ; android.icu.impl.SimplePatternFormatter formatter = templates [ p.ordinal ( ) ] ; if ( formatter == null ) { formatter = templates [ android.icu.impl.StandardPlural.OTHER_INDEX ] ; assert formatter != null ; } return formatter.format ( formatStr ) ; }
Source:
public void migrateAppData ( java.lang.String uuid , java.lang.String pkgname , int userid , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { mInstaller.execute ( "migrate_app_data" , uuid , pkgname , userid , flags ) ; }

Target:
public void destroyAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , long ceDataInode ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.destroyAppData ( uuid , packageName , userId , flags , ceDataInode ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > clearAll ( ) { com.google.common.util.concurrent.ListenableFuture < java.lang.Void > markNewFuture = markNotNew ( com.google.common.collect.ImmutableSet.of ( ) ) ; com.google.common.util.concurrent.ListenableFuture < java.lang.Void > cancelNotificationsFuture = uiThreadExecutor.submit ( ( ) -> { com.android.dialer.notification.missedcalls.MissedCallNotificationCanceller.cancelAll ( appContext ) ; return null ; } ) ; return com.google.common.util.concurrent.Futures.whenAllComplete ( markNewFuture , cancelNotificationsFuture ) . call ( ( ) -> { markNewFuture.get ( ) ; cancelNotificationsFuture.get ( ) ; return null ; } , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > clearAll ( ) { com.google.common.util.concurrent.ListenableFuture < java.lang.Void > markReadFuture = markRead ( com.google.common.collect.ImmutableSet.of ( ) ) ; com.google.common.util.concurrent.ListenableFuture < java.lang.Void > cancelNotificationsFuture = uiThreadExecutor.submit ( ( ) -> { com.android.dialer.notification.missedcalls.MissedCallNotificationCanceller.cancelAll ( appContext ) ; return null ; } ) ; return com.google.common.util.concurrent.Futures.whenAllComplete ( markReadFuture , cancelNotificationsFuture ) . call ( ( ) -> { markReadFuture.get ( ) ; cancelNotificationsFuture.get ( ) ; return null ; } , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; }
Source:
public java.lang.String getImei ( int slotId ) { int [ ] subId = android.telephony.SubscriptionManager.getSubId ( slotId ) ; try { com.android.internal.telephony.IPhoneSubInfo info = getSubscriberInfo ( ) ; if ( info == null ) return null ; return info.getImeiForSubscriber ( subId [ 0 ] , mContext.getOpPackageName ( ) ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }

Target:
public java.lang.String getImei ( int slotIndex ) { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) return null ; try { return telephony.getImeiForSlot ( slotIndex , getOpPackageName ( ) ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }
Source:
private void createNewResButtons ( org.eclipse.swt.widgets.Composite top ) { org.eclipse.swt.widgets.Button newResButton = new org.eclipse.swt.widgets.Button ( top , org.eclipse.swt.SWT.NONE ) ; java.lang.String title = java.lang.String.format ( "New %1$s..." , mResourceType.getDisplayName ( ) ) ; newResButton.setText ( title ) ; newResButton.setEnabled ( ( ( mResourceType ) == ( com.android.ide.eclipse.adt.internal.resources.ResourceType.STRING ) ) ) ; newResButton.addSelectionListener ( new org.eclipse.swt.events.SelectionAdapter ( ) { @ java.lang.Override public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { super . widgetSelected ( e ) ; if ( ( mResourceType ) == ( com.android.ide.eclipse.adt.internal.resources.ResourceType.STRING ) ) { createNewString ( ) ; } } } ) ; }

Target:
private void createNewResButtons ( org.eclipse.swt.widgets.Composite top ) { org.eclipse.swt.widgets.Button newResButton = new org.eclipse.swt.widgets.Button ( top , org.eclipse.swt.SWT.NONE ) ; java.lang.String title = java.lang.String.format ( "New %1$s..." , mResourceType.getDisplayName ( ) ) ; newResButton.setText ( title ) ; newResButton.setEnabled ( ( ( mResourceType ) == ( com.android.resources.ResourceType.STRING ) ) ) ; newResButton.addSelectionListener ( new org.eclipse.swt.events.SelectionAdapter ( ) { @ java.lang.Override public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { super . widgetSelected ( e ) ; if ( ( mResourceType ) == ( com.android.resources.ResourceType.STRING ) ) { createNewString ( ) ; } } } ) ; }
Source:
public void TestHebrew ( ) throws java.io.IOException { if ( android.icu.dev.test.translit.RoundTripTest.FIX_ME ) { errln ( "TestHebrew needs to be updated to remove delete the [:Age=4.0:] filter " ) ; } else { logln ( "TestHebrew needs to be updated to remove delete the section marked [:Age=4.0:] filter" ) ; } long start = java.lang.System.currentTimeMillis ( ) ; new android.icu.dev.test.translit.RoundTripTest.Test ( "Latin-Hebrew" ) . test ( "[a-zA-Zʼʻ]" , "[[[:hebrew:]-[ֽﬀ-ﯿ]]& [:Age=4.0:]]" , "[װױײ]" , this , new android.icu.dev.test.translit.RoundTripTest.LegalHebrew ( ) ) ; showElapsed ( start , "TestHebrew" ) ; }

Target:
public void TestHebrew ( ) throws java.io.IOException { if ( android.icu.dev.test.translit.RoundTripTest.FIX_ME ) { errln ( "TestHebrew needs to be updated to remove delete the [:Age=4.0:] filter " ) ; } else { logln ( "TestHebrew needs to be updated to remove delete the section marked [:Age=4.0:] filter" ) ; } long start = java.lang.System.currentTimeMillis ( ) ; new android.icu.dev.test.translit.RoundTripTest.TransliterationTest ( "Latin-Hebrew" ) . test ( "[a-zA-Zʼʻ]" , "[[[:hebrew:]-[ֽﬀ-ﯿ]]& [:Age=4.0:]]" , "[װױײ]" , this , new android.icu.dev.test.translit.RoundTripTest.LegalHebrew ( ) ) ; showElapsed ( start , "TestHebrew" ) ; }
Source:
private void populateGroupsWithThreads ( java.lang.ThreadGroup group , int threadCount , java.util.List < libcore.java.lang.OldThreadGroupTest.MyThread > out ) { for ( int i = 0 ; i < threadCount ; i ++ ) { out.add ( new libcore.java.lang.OldThreadGroupTest.MyThread ( group , ( ( ( "MyThread " + i ) + " of " ) + threadCount ) ) ) ; } java.lang.ThreadGroup [ ] children = groups ( group ) ; for ( java.lang.ThreadGroup element : children ) { populateGroupsWithThreads ( element , threadCount , out ) ; } }

Target:
private void populateGroupsWithThreads ( java.lang.ThreadGroup group , int threadCount , java.util.List < libcore.java.lang.OldThreadGroupTest.MyThread > out ) { for ( int i = 0 ; i < threadCount ; i ++ ) { libcore.java.lang.OldThreadGroupTest.MyThread thread = new libcore.java.lang.OldThreadGroupTest.MyThread ( group , ( ( ( "MyThread " + i ) + " of " ) + threadCount ) ) ; myThreads.add ( thread ) ; out.add ( thread ) ; } java.lang.ThreadGroup [ ] children = groups ( group ) ; for ( java.lang.ThreadGroup element : children ) { populateGroupsWithThreads ( element , threadCount , out ) ; } }
Source:
public boolean isDataEnabled ( ) { return getDataEnabled ( getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) ) ; }

Target:
private boolean isUserMobileDataEnabled ( int subId ) { boolean retVal = false ; try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) retVal = telephony.isUserDataEnabled ( subId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isUserDataEnabled" , e ) ; } catch ( java.lang.NullPointerException e ) { } return retVal ; }
Source:
public void enter ( ) { if ( android.net.wifi.SupplicantStateTracker.DBG ) android.util.Log.d ( android.net.wifi.SupplicantStateTracker.TAG , ( ( getName ( ) ) + "\n" ) ) ; mAuthenticationFailuresCount = 0 ; if ( mNetworksDisabledDuringConnect ) { mWifiConfigStore.enableAllNetworks ( ) ; mNetworksDisabledDuringConnect = false ; } }

Target:
public void enter ( ) { if ( android.net.wifi.SupplicantStateTracker.DBG ) android.util.Log.d ( android.net.wifi.SupplicantStateTracker.TAG , ( ( getName ( ) ) + "\n" ) ) ; mAuthenticationFailuresCount = 0 ; mAssociationRejectCount = 0 ; if ( mNetworksDisabledDuringConnect ) { mWifiConfigStore.enableAllNetworks ( ) ; mNetworksDisabledDuringConnect = false ; } }
Source:
public void add ( com.android.sdklib.internal.repository.SdkSource source ) { mSources.add ( source ) ; }

Target:
public void add ( com.android.sdklib.internal.repository.SdkSourceCategory category , com.android.sdklib.internal.repository.SdkSource source ) { java.util.ArrayList < com.android.sdklib.internal.repository.SdkSource > list = mSources.get ( category ) ; if ( list == null ) { list = new java.util.ArrayList < com.android.sdklib.internal.repository.SdkSource > ( ) ; mSources.put ( category , list ) ; } list.add ( source ) ; }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.unittest.ScriptC_math_agree s = new com.android.rs.unittest.ScriptC_math_agree ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeValues ( s ) ; s.invoke_math_agree_test ( ) ; pRS.finish ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = createRenderScript ( true ) ; com.android.rs.unittest.ScriptC_math_agree s = new com.android.rs.unittest.ScriptC_math_agree ( pRS ) ; initializeValues ( s ) ; s.invoke_math_agree_test ( ) ; pRS.finish ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }
Source:
private void registerForNsdSetting ( ) { android.database.ContentObserver contentObserver = new android.database.ContentObserver ( this . getHandler ( ) ) { @ java.lang.Override public void onChange ( boolean selfChange ) { notifyEnabled ( isNsdEnabled ( ) ) ; } } ; mContext.getContentResolver ( ) . registerContentObserver ( Settings.Global.getUriFor ( Settings.Global.NSD_ON ) , false , contentObserver ) ; }

Target:
private void registerForNsdSetting ( ) { final android.database.ContentObserver contentObserver = new android.database.ContentObserver ( this . getHandler ( ) ) { @ java.lang.Override public void onChange ( boolean selfChange ) { notifyEnabled ( isNsdEnabled ( ) ) ; } } ; final android.net.Uri uri = Settings.Global.getUriFor ( Settings.Global.NSD_ON ) ; mNsdSettings.registerContentObserver ( uri , contentObserver ) ; }
Source:
protected java.util.concurrent.Executor executor ( final com.google.common.util.concurrent.Service.State state ) { return new java.util.concurrent.Executor ( ) { @ java.lang.Override public void execute ( java.lang.Runnable command ) { new java.lang.Thread ( command , ( ( ( getServiceName ( ) ) + " " ) + state ) ) . start ( ) ; } } ; }

Target:
protected java.util.concurrent.Executor executor ( ) { return new java.util.concurrent.Executor ( ) { @ java.lang.Override public void execute ( java.lang.Runnable command ) { com.google.common.util.concurrent.MoreExecutors.newThread ( threadNameSupplier.get ( ) , command ) . start ( ) ; } } ; }
Source:
public void onComplete ( ) { BlockReportSpamDialogs.BlockReportSpamDialogFragment.newInstance ( com.android.incallui.spam.SpamNotificationActivity.getFormattedNumber ( number ) , com.android.dialer.spam.SpamComponent.get ( this ) . spam ( ) . isDialogReportSpamCheckedByDefault ( ) , new com.android.dialer.blocking.BlockReportSpamDialogs.OnSpamDialogClickListener ( ) { @ java.lang.Override public void onClick ( boolean isSpamChecked ) { blockReportNumberAndFinish ( number , isSpamChecked , contactLookupResultType ) ; } } , dismissListener ) . show ( getFragmentManager ( ) , BlockReportSpamDialogs.BLOCK_REPORT_SPAM_DIALOG_TAG ) ; }

Target:
public void onComplete ( ) { BlockReportSpamDialogs.BlockReportSpamDialogFragment.newInstance ( displayNumber , com.android.dialer.spam.SpamComponent.get ( this ) . spam ( ) . isDialogReportSpamCheckedByDefault ( ) , new com.android.dialer.blocking.BlockReportSpamDialogs.OnSpamDialogClickListener ( ) { @ java.lang.Override public void onClick ( boolean isSpamChecked ) { blockReportNumberAndFinish ( number , isSpamChecked , contactLookupResultType ) ; } } , dismissListener ) . show ( getFragmentManager ( ) , BlockReportSpamDialogs.BLOCK_REPORT_SPAM_DIALOG_TAG ) ; }
Source:
public java.lang.Object [ ] getElements ( java.lang.Object inputElement ) { if ( inputElement instanceof com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository ) { if ( ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository ) ( inputElement ) ) == ( mResources ) ) { java.util.List < com.android.resources.ResourceType > types = mResources.getAvailableResourceTypes ( ) ; java.util.Collections.sort ( types ) ; return types.toArray ( ) ; } } return new java.lang.Object [ 0 ] ; }

Target:
public java.lang.Object [ ] getElements ( java.lang.Object inputElement ) { if ( inputElement instanceof com.android.ide.common.resources.ResourceRepository ) { if ( ( ( com.android.ide.common.resources.ResourceRepository ) ( inputElement ) ) == ( mResources ) ) { java.util.List < com.android.resources.ResourceType > types = mResources.getAvailableResourceTypes ( ) ; java.util.Collections.sort ( types ) ; return types.toArray ( ) ; } } return new java.lang.Object [ 0 ] ; }
Source:
static java.util.List < com.android.tv.dvr.ScheduledRecording > getConflictingSchedules ( java.util.List < com.android.tv.dvr.ScheduledRecording > schedules , int tunerCount , java.util.List < android.util.Range < java.lang.Long > > periods ) { java.util.List < com.android.tv.dvr.ScheduledRecording > result = new java.util.ArrayList ( com.android.tv.dvr.DvrScheduleManager.getConflictingSchedulesInfo ( schedules , tunerCount , periods ) . keySet ( ) ) ; java.util.Collections.sort ( result , com.android.tv.dvr.DvrScheduleManager.RESULT_COMPARATOR ) ; return result ; }

Target:
static java.util.List < com.android.tv.dvr.data.ScheduledRecording > getConflictingSchedules ( java.util.List < com.android.tv.dvr.data.ScheduledRecording > schedules , int tunerCount , java.util.List < android.util.Range < java.lang.Long > > periods ) { java.util.List < com.android.tv.dvr.data.ScheduledRecording > result = new java.util.ArrayList < > ( ) ; for ( com.android.tv.dvr.DvrScheduleManager.ConflictInfo conflictInfo : com.android.tv.dvr.DvrScheduleManager.getConflictingSchedulesInfo ( schedules , tunerCount , periods ) ) { result.add ( conflictInfo.schedule ) ; } return result ; }
Source:
public void start ( ) { if ( started ( ) ) return ; if ( ! ( mConfigInitialized ) ) { mConfigInitialized = mHwInterface.initOffloadConfig ( ) ; if ( ! ( mConfigInitialized ) ) { mLog.i ( "tethering offload config not supported" ) ; return ; } } mControlInitialized = mHwInterface.initOffloadControl ( ) ; }

Target:
public void onNatTimeoutUpdate ( int proto , java.lang.String srcAddr , int srcPort , java.lang.String dstAddr , int dstPort ) { mLog.log ( java.lang.String.format ( "NAT timeout update: %s (%s,%s) -> (%s,%s)" , proto , srcAddr , srcPort , dstAddr , dstPort ) ) ; }
Source:
public void wifiNanDisconnect ( ) throws android.os.RemoteException , org.json.JSONException { mMgr.disconnect ( ) ; mSessions.clear ( ) ; }

Target:
public void wifiNanDisconnect ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "clientId" , description = "The client ID returned when a connection was created" ) java.lang.Integer clientId ) throws android.os.RemoteException , org.json.JSONException { android.net.wifi.nan.WifiNanSession session ; synchronized ( mLock ) { session = mSessions.get ( clientId ) ; } if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanDisconnect before session (client ID " + clientId ) + ") is ready/or already disconnected" ) ) ; } session.disconnect ( ) ; }
Source:
protected java.lang.String constructCommand ( java.lang.String programName ) { java.lang.StringBuilder commandBuilder = new java.lang.StringBuilder ( ) ; commandBuilder.append ( "dalvikvm32 -Xcompiler-option --compiler-backend=Optimizing " ) ; if ( dexfuzz.Options.executeOnHost ) { commandBuilder.append ( device.getHostExecutionFlags ( ) ) . append ( " " ) ; } commandBuilder.append ( "-cp " ) . append ( testLocation ) . append ( "/" ) . append ( programName ) . append ( " " ) ; commandBuilder.append ( executeClass ) ; return commandBuilder.toString ( ) ; }

Target:
protected java.lang.String constructCommand ( java.lang.String programName ) { java.lang.StringBuilder commandBuilder = new java.lang.StringBuilder ( ) ; commandBuilder.append ( "dalvikvm32 -Xcompiler-option --compiler-backend=Optimizing " ) ; commandBuilder.append ( "-Xno-dex-file-fallback " ) ; if ( dexfuzz.Options.executeOnHost ) { commandBuilder.append ( device.getHostExecutionFlags ( ) ) . append ( " " ) ; } commandBuilder.append ( "-cp " ) . append ( testLocation ) . append ( "/" ) . append ( programName ) . append ( " " ) ; commandBuilder.append ( executeClass ) ; return commandBuilder.toString ( ) ; }
Source:
public void computeSizesFromOffsets ( ) { int end = ( dataOff ) + ( dataSize ) ; for ( int i = ( sections.length ) - 1 ; i >= 0 ; i -- ) { com.android.dx.dex.TableOfContents.Section section = sections [ i ] ; if ( ( section.off ) == ( - 1 ) ) { continue ; } if ( ( section.off ) > end ) { throw new com.android.dx.util.DexException ( ( "Map is unsorted at " + section ) ) ; } section.byteCount = end - ( section.off ) ; end = section.off ; } }

Target:
public void computeSizesFromOffsets ( ) { int end = ( dataOff ) + ( dataSize ) ; for ( int i = ( sections.length ) - 1 ; i >= 0 ; i -- ) { com.android.dex.TableOfContents.Section section = sections [ i ] ; if ( ( section.off ) == ( - 1 ) ) { continue ; } if ( ( section.off ) > end ) { throw new com.android.dex.DexException ( ( "Map is unsorted at " + section ) ) ; } section.byteCount = end - ( section.off ) ; end = section.off ; } }
Source:
public void setKeepSpecification ( proguard.gui.KeepClassSpecification keepClassSpecification ) { boolean markClasses = keepClassSpecification.markClasses ; boolean markConditionally = keepClassSpecification.markConditionally ; boolean allowShrinking = keepClassSpecification.allowShrinking ; boolean allowOptimization = keepClassSpecification.allowOptimization ; boolean allowObfuscation = keepClassSpecification.allowObfuscation ; javax.swing.JRadioButton keepOptionRadioButton = ( markConditionally ) ? keepClassesWithMembersRadioButton : markClasses ? keepClassesAndMembersRadioButton : keepClassMembersRadioButton ; keepOptionRadioButton.setSelected ( true ) ; allowShrinkingCheckBox.setSelected ( allowShrinking ) ; allowOptimizationCheckBox.setSelected ( allowOptimization ) ; allowObfuscationCheckBox.setSelected ( allowObfuscation ) ; setClassSpecification ( keepClassSpecification ) ; }

Target:
public void setKeepSpecification ( proguard.gui.KeepClassSpecification keepClassSpecification ) { boolean markClasses = keepClassSpecification.markClasses ; boolean markConditionally = keepClassSpecification.markConditionally ; boolean markDescriptorClasses = keepClassSpecification.markDescriptorClasses ; boolean allowShrinking = keepClassSpecification.allowShrinking ; boolean allowOptimization = keepClassSpecification.allowOptimization ; boolean allowObfuscation = keepClassSpecification.allowObfuscation ; javax.swing.JRadioButton keepOptionRadioButton = ( markConditionally ) ? keepClassesWithMembersRadioButton : markClasses ? keepClassesAndMembersRadioButton : keepClassMembersRadioButton ; keepOptionRadioButton.setSelected ( true ) ; keepDescriptorClassesCheckBox.setSelected ( markDescriptorClasses ) ; allowShrinkingCheckBox.setSelected ( allowShrinking ) ; allowOptimizationCheckBox.setSelected ( allowOptimization ) ; allowObfuscationCheckBox.setSelected ( allowObfuscation ) ; setClassSpecification ( keepClassSpecification ) ; }
Source:
public int hashCode ( ) { int result = type.hashCode ( ) ; result = ( 31 * result ) + ( name.hashCode ( ) ) ; result = ( 31 * result ) + ( value.hashCode ( ) ) ; return result ; }

Target:
public int hashCode ( ) { int result = type.hashCode ( ) ; result = ( 31 * result ) + ( name.hashCode ( ) ) ; result = ( 31 * result ) + ( value.hashCode ( ) ) ; result = ( 31 * result ) + ( annotations.hashCode ( ) ) ; result = ( 31 * result ) + ( documentation.hashCode ( ) ) ; return result ; }
Source:
private boolean isUserLimitReachedLocked ( ) { int aliveUserCount = 0 ; final int totalUserCount = mUsers.size ( ) ; for ( int i = 0 ; i < totalUserCount ; i ++ ) { android.content.pm.UserInfo user = mUsers.valueAt ( i ) ; if ( ( ( ! ( mRemovingUserIds.get ( user.id ) ) ) && ( ! ( user.isGuest ( ) ) ) ) && ( ! ( user.partial ) ) ) { aliveUserCount ++ ; } } return aliveUserCount >= ( android.os.UserManager.getMaxSupportedUsers ( ) ) ; }

Target:
private int getAliveUsersExcludingGuestsCountLocked ( ) { int aliveUserCount = 0 ; final int totalUserCount = mUsers.size ( ) ; for ( int i = 0 ; i < totalUserCount ; i ++ ) { android.content.pm.UserInfo user = mUsers.valueAt ( i ) ; if ( ( ( ! ( mRemovingUserIds.get ( user.id ) ) ) && ( ! ( user.isGuest ( ) ) ) ) && ( ! ( user.partial ) ) ) { aliveUserCount ++ ; } } return aliveUserCount ; }
Source:
public void testAssistantStackLaunchNewTaskWithDockedStack ( ) throws java.lang.Exception { launchActivity ( android.server.cts.ActivityManagerAssistantStackTests.TEST_ACTIVITY ) ; launchActivityInDockStack ( android.server.cts.ActivityManagerAssistantStackTests.DOCKED_ACTIVITY ) ; mAmWmState.assertContainsStack ( "Must contain fullscreen stack." , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; mAmWmState.assertContainsStack ( "Must contain docked stack." , android.server.cts.DOCKED_STACK_ID ) ; enableAssistant ( ) ; assertAssistantStackCanLaunchAndReturnFromNewTask ( ) ; disableAssistant ( ) ; }

Target:
public void testAssistantStackLaunchNewTaskWithDockedStack ( ) throws java.lang.Exception { if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) return ; launchActivity ( android.server.cts.ActivityManagerAssistantStackTests.TEST_ACTIVITY ) ; launchActivityInDockStack ( android.server.cts.ActivityManagerAssistantStackTests.DOCKED_ACTIVITY ) ; mAmWmState.assertContainsStack ( "Must contain fullscreen stack." , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; mAmWmState.assertContainsStack ( "Must contain docked stack." , android.server.cts.DOCKED_STACK_ID ) ; enableAssistant ( ) ; assertAssistantStackCanLaunchAndReturnFromNewTask ( ) ; disableAssistant ( ) ; }