auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private java.lang.String getPackageName ( int id ) { com.android.bluetooth.avrcp.MediaPlayerInfo player = mMediaPlayerInfoList.getOrDefault ( id , null ) ; if ( player == null ) { android.util.Log.w ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "No package name for player (" + id ) + " not valid)" ) ) ; return "" ; } java.lang.String packageName = player.getPackageName ( ) ; if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "Player " + id ) + " package: " ) + packageName ) ) ; return packageName ; }

Target:
private java.lang.String getPackageName ( int id ) { com.android.bluetooth.avrcp.MediaPlayerInfo player = null ; synchronized ( mMediaPlayerInfoList ) { player = mMediaPlayerInfoList.getOrDefault ( id , null ) ; } if ( player == null ) { android.util.Log.w ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "No package name for player (" + id ) + " not valid)" ) ) ; return "" ; } java.lang.String packageName = player.getPackageName ( ) ; if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "Player " + id ) + " package: " ) + packageName ) ) ; return packageName ; }
Source:
public void onSSLStateChange ( long sslSessionNativePtr , int type , int val ) { synchronized ( stateLock ) { switch ( type ) { case org.conscrypt.NativeConstants.SSL_CB_HANDSHAKE_DONE : if ( ( ( engineState ) != ( org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_STARTED ) ) && ( ( engineState ) != ( org.conscrypt.OpenSSLEngineImpl.EngineState.READY_HANDSHAKE_CUT_THROUGH ) ) ) { throw new java.lang.IllegalStateException ( ( "Completed handshake while in mode " + ( engineState ) ) ) ; } engineState = org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_COMPLETED ; break ; case org.conscrypt.NativeConstants.SSL_CB_HANDSHAKE_START : engineState = org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_STARTED ; break ; } } }

Target:
public void onSSLStateChange ( int type , int val ) { synchronized ( stateLock ) { switch ( type ) { case org.conscrypt.NativeConstants.SSL_CB_HANDSHAKE_DONE : if ( ( ( engineState ) != ( org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_STARTED ) ) && ( ( engineState ) != ( org.conscrypt.OpenSSLEngineImpl.EngineState.READY_HANDSHAKE_CUT_THROUGH ) ) ) { throw new java.lang.IllegalStateException ( ( "Completed handshake while in mode " + ( engineState ) ) ) ; } engineState = org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_COMPLETED ; break ; case org.conscrypt.NativeConstants.SSL_CB_HANDSHAKE_START : engineState = org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_STARTED ; break ; } } }
Source:
protected com.android.ide.common.res2.ResourceFile createFileAndItems ( java.io.File sourceFolder , java.io.File file , com.android.utils.ILogger logger ) throws com.android.ide.common.res2.MergingException { com.android.ide.common.res2.ResourceSet.FolderData folderData = com.android.ide.common.res2.ResourceSet.getFolderData ( file.getParentFile ( ) ) ; if ( ( folderData.folderType ) == null ) { return null ; } return com.android.ide.common.res2.ResourceSet.createResourceFile ( file , folderData , logger ) ; }

Target:
protected com.android.ide.common.res2.ResourceFile createFileAndItems ( java.io.File sourceFolder , java.io.File file , com.android.utils.ILogger logger ) throws com.android.ide.common.res2.MergingException { com.android.ide.common.res2.ResourceSet.FolderData folderData = com.android.ide.common.res2.ResourceSet.getFolderData ( file.getParentFile ( ) ) ; if ( folderData == null ) { return null ; } return com.android.ide.common.res2.ResourceSet.createResourceFile ( file , folderData , logger ) ; }
Source:
static int nativeCreate ( int native_bitmap , int shaderTileModeX , int shaderTileModeY ) { android.graphics.Bitmap_Delegate bitmap = android.graphics.Bitmap_Delegate.getDelegate ( native_bitmap ) ; if ( bitmap == null ) { return 0 ; } android.graphics.BitmapShader_Delegate newDelegate = new android.graphics.BitmapShader_Delegate ( bitmap.getImage ( ) , android.graphics.Shader_Delegate.getTileMode ( shaderTileModeX ) , android.graphics.Shader_Delegate.getTileMode ( shaderTileModeY ) ) ; return sManager.addNewDelegate ( newDelegate ) ; }

Target:
static long nativeCreate ( long native_bitmap , int shaderTileModeX , int shaderTileModeY ) { android.graphics.Bitmap_Delegate bitmap = android.graphics.Bitmap_Delegate.getDelegate ( native_bitmap ) ; if ( bitmap == null ) { return 0 ; } android.graphics.BitmapShader_Delegate newDelegate = new android.graphics.BitmapShader_Delegate ( bitmap.getImage ( ) , android.graphics.Shader_Delegate.getTileMode ( shaderTileModeX ) , android.graphics.Shader_Delegate.getTileMode ( shaderTileModeY ) ) ; return sManager.addNewDelegate ( newDelegate ) ; }
Source:
public void testCropBlank ( ) throws java.lang.Exception { java.awt.image.BufferedImage image = new java.awt.image.BufferedImage ( 100 , 100 , java.awt.image.BufferedImage.TYPE_INT_ARGB_PRE ) ; java.awt.Graphics g = image.getGraphics ( ) ; g.setColor ( new java.awt.Color ( 0 , true ) ) ; g.fillRect ( 0 , 0 , image.getWidth ( ) , image.getHeight ( ) ) ; g.dispose ( ) ; java.awt.image.BufferedImage crop = com.android.ide.eclipse.adt.internal.editors.layout.gle2.SwtUtils.cropBlank ( image ) ; assertNull ( crop ) ; }

Target:
public void testCropBlank ( ) throws java.lang.Exception { java.awt.image.BufferedImage image = new java.awt.image.BufferedImage ( 100 , 100 , java.awt.image.BufferedImage.TYPE_INT_ARGB_PRE ) ; java.awt.Graphics g = image.getGraphics ( ) ; g.setColor ( new java.awt.Color ( 0 , true ) ) ; g.fillRect ( 0 , 0 , image.getWidth ( ) , image.getHeight ( ) ) ; g.dispose ( ) ; java.awt.image.BufferedImage crop = com.android.ide.eclipse.adt.internal.editors.layout.gle2.SwtUtils.cropBlank ( image , null ) ; assertNull ( crop ) ; }
Source:
public void avrcpSupportsAbsoluteVolume ( java.lang.String address , boolean support ) { synchronized ( mA2dpAvrcpLock ) { mAvrcpAbsVolSupported = support ; com.android.server.audio.AudioService.sendMsg ( mAudioHandler , com.android.server.audio.AudioService.MSG_SET_DEVICE_VOLUME , com.android.server.audio.AudioService.SENDMSG_QUEUE , AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP , 0 , mStreamStates [ android.media.AudioSystem.STREAM_MUSIC ] , 0 ) ; com.android.server.audio.AudioService.sendMsg ( mAudioHandler , com.android.server.audio.AudioService.MSG_SET_DEVICE_VOLUME , com.android.server.audio.AudioService.SENDMSG_QUEUE , AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP , 0 , mStreamStates [ android.media.AudioSystem.STREAM_RING ] , 0 ) ; } }

Target:
public void avrcpSupportsAbsoluteVolume ( java.lang.String address , boolean support ) { synchronized ( mA2dpAvrcpLock ) { mAvrcpAbsVolSupported = support ; } }
Source:
public int stopSendingOffloadedPacket ( int slot ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "stopSendingOffloadedPacket " + slot ) ) ; if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.stopSendingOffloadedPacket ( slot ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.stopSendingOffloadedPacketNative ( com.android.server.wifi.WifiNative.sWlan0Index , slot ) ; } else { return - 1 ; } } } }

Target:
public int stopSendingOffloadedPacket ( int slot ) { return mWifiVendorHal.stopSendingOffloadedPacket ( slot ) ; }
Source:
private static int getNotificationDefaultFlags ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle handle ) { if ( ( android.os.Build.VERSION.SDK_INT ) < ( android.os.Build.VERSION_CODES.N ) ) { return android.app.Notification.DEFAULT_ALL ; } if ( handle == null ) { com.android.dialer.common.LogUtil.i ( "VisualVoicemailNotifier.getNotificationDefaultFlags" , "null handle, getting fallback" ) ; handle = com.android.dialer.app.calllog.VisualVoicemailNotifier.getFallbackAccount ( context ) ; if ( handle == null ) { com.android.dialer.common.LogUtil.i ( "VisualVoicemailNotifier.getNotificationDefaultFlags" , "no fallback handle, using default vibration" ) ; return android.app.Notification.DEFAULT_ALL ; } } if ( context.getSystemService ( android.telephony.TelephonyManager.class ) . isVoicemailVibrationEnabled ( handle ) ) { return android.app.Notification.DEFAULT_VIBRATE ; } return 0 ; }

Target:
private static int getNotificationDefaultFlags ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle handle ) { if ( handle == null ) { com.android.dialer.common.LogUtil.i ( "VisualVoicemailNotifier.getNotificationDefaultFlags" , "null handle, getting fallback" ) ; handle = com.android.dialer.app.calllog.VisualVoicemailNotifier.getFallbackAccount ( context ) ; if ( handle == null ) { com.android.dialer.common.LogUtil.i ( "VisualVoicemailNotifier.getNotificationDefaultFlags" , "no fallback handle, using default vibration" ) ; return android.app.Notification.DEFAULT_ALL ; } } if ( context.getSystemService ( android.telephony.TelephonyManager.class ) . isVoicemailVibrationEnabled ( handle ) ) { return android.app.Notification.DEFAULT_VIBRATE ; } return 0 ; }
Source:
public final synchronized boolean enqueueInternal ( ) { if ( ( this ) instanceof sun.misc.Cleaner ) { sun.misc.Cleaner cl = ( ( sun.misc.Cleaner ) ( this ) ) ; cl.clean ( ) ; return true ; } if ( ( ( queue ) != null ) && ( ( queueNext ) == null ) ) { queue.enqueue ( this ) ; queue = null ; return true ; } return false ; }

Target:
public boolean enqueue ( ) { return ( ( queue ) != null ) && ( queue.enqueue ( this ) ) ; }
Source:
protected boolean _addTestObject ( java.util.List list ) { if ( ( list.size ( ) ) > 31 ) return false ; java.lang.StringBuffer result = new java.lang.StringBuffer ( ) ; for ( int i = 0 ; i < 10 ; ++ i ) { result.append ( ( ( char ) ( com.ibm.icu.dev.test.util.TestUtilities.random.nextInt ( 255 ) ) ) ) ; } list.add ( result.toString ( ) ) ; return true ; }

Target:
protected boolean _addTestObject ( java.util.List list ) { if ( ( list.size ( ) ) > 31 ) return false ; java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; for ( int i = 0 ; i < 10 ; ++ i ) { result.append ( ( ( char ) ( com.ibm.icu.dev.test.util.TestUtilities.random.nextInt ( 255 ) ) ) ) ; } list.add ( result.toString ( ) ) ; return true ; }
Source:
public java.lang.String trim ( ) { int len = count ; int st = 0 ; while ( ( st < len ) && ( ( charAt ( st ) ) <= ' ' ) ) { st ++ ; } while ( ( st < len ) && ( ( charAt ( ( len - 1 ) ) ) <= ' ' ) ) { len -- ; } return ( st > 0 ) || ( len < ( count ) ) ? substring ( st , len ) : this ; }

Target:
public java.lang.String trim ( ) { int len = length ( ) ; int st = 0 ; while ( ( st < len ) && ( ( charAt ( st ) ) <= ' ' ) ) { st ++ ; } while ( ( st < len ) && ( ( charAt ( ( len - 1 ) ) ) <= ' ' ) ) { len -- ; } return ( st > 0 ) || ( len < ( length ( ) ) ) ? substring ( st , len ) : this ; }
Source:
private static com.android.tools.lint.client.api.JavaParser.ResolvedField createField ( java.lang.String containingClass , java.lang.String name ) { com.android.tools.lint.client.api.JavaParser.ResolvedField mock = org.mockito.Mockito.mock ( com.android.tools.lint.client.api.JavaParser.ResolvedField.class ) ; org.mockito.Mockito.when ( mock.getName ( ) ) . thenReturn ( name ) ; com.android.tools.lint.client.api.JavaParser.ResolvedClass cls = com.android.tools.lint.ExternalAnnotationRepositoryTest.createClass ( containingClass ) ; org.mockito.Mockito.when ( mock.getContainingClass ( ) ) . thenReturn ( cls ) ; return mock ; }

Target:
public static com.android.tools.lint.client.api.JavaParser.ResolvedField createField ( java.lang.String containingClass , java.lang.String name ) { com.android.tools.lint.client.api.JavaParser.ResolvedField mock = org.mockito.Mockito.mock ( com.android.tools.lint.client.api.JavaParser.ResolvedField.class ) ; org.mockito.Mockito.when ( mock.getName ( ) ) . thenReturn ( name ) ; com.android.tools.lint.client.api.JavaParser.ResolvedClass cls = com.android.tools.lint.ExternalAnnotationRepositoryTest.createClass ( containingClass ) ; org.mockito.Mockito.when ( mock.getContainingClass ( ) ) . thenReturn ( cls ) ; return mock ; }
Source:
public void testToXml3b ( ) throws java.lang.Exception { java.lang.String xml = "" + ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<resources>\n" ) + " <!-- ============== -->\n" ) + " <!-- Generic styles -->\n" ) + " <!-- ============== -->\n" ) + " <string name=\"test\">test</string>\n" ) + "</resources>" ) ; org.w3c.dom.Document doc = com.android.utils.XmlUtilsTest.parse ( xml ) ; java.lang.String formatted = com.android.utils.XmlUtils.toXml ( doc , true ) ; assertEquals ( ( "" + ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<resources>\n" ) + " <!-- ============== -->\n" ) + " <!-- Generic styles -->\n" ) + " <!-- ============== -->\n" ) + " <string name=\"test\">test</string>\n" ) + "</resources>" ) ) , formatted ) ; }

Target:
public void testToXml3b ( ) throws java.lang.Exception { java.lang.String xml = "" + ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<resources>\n" ) + " <!-- ============== -->\n" ) + " <!-- Generic styles -->\n" ) + " <!-- ============== -->\n" ) + " <string name=\"test\">test</string>\n" ) + "</resources>" ) ; org.w3c.dom.Document doc = com.android.utils.XmlUtilsTest.parse ( xml ) ; java.lang.String formatted = com.android.utils.XmlUtils.toXml ( doc ) ; assertEquals ( ( "" + ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<resources>\n" ) + " <!-- ============== -->\n" ) + " <!-- Generic styles -->\n" ) + " <!-- ============== -->\n" ) + " <string name=\"test\">test</string>\n" ) + "</resources>" ) ) , formatted ) ; }
Source:
public static < K , V , M extends java.util.Map < K , V > > com.google.common.truth.MapSubject < ? extends com.google.common.truth.MapSubject < ? , K , V , M > , K , V , M > assertThat ( java.util.Map < K , V > target ) { return com.google.common.truth.Truth.assert_ ( ) . that ( target ) ; }

Target:
public static com.google.common.truth.MapSubject assertThat ( @ com.android.annotations.Nullable java.util.Map < ? , ? > target ) { return com.google.common.truth.Truth.assert_ ( ) . that ( target ) ; }
Source:
private org.w3c.dom.Document getProjectDocument ( ) throws java.io.IOException { if ( ( mProjectDoc ) == null ) { java.io.File file = new java.io.File ( mDir , com.android.tools.gradle.eclipse.GradleImport.ECLIPSE_DOT_PROJECT ) ; if ( file.exists ( ) ) { mProjectDoc = mImporter.getXmlDocument ( file , false ) ; } else { mImporter.reportError ( this , mDir , ( "No Eclipse .project file found in " + ( mDir.getPath ( ) ) ) ) ; return null ; } } return mProjectDoc ; }

Target:
private org.w3c.dom.Document getProjectDocument ( ) throws java.io.IOException { if ( ( mProjectDoc ) == null ) { java.io.File file = new java.io.File ( mDir , com.android.tools.gradle.eclipse.GradleImport.ECLIPSE_DOT_PROJECT ) ; if ( file.exists ( ) ) { mProjectDoc = mImporter.getXmlDocument ( file , false ) ; } } return mProjectDoc ; }
Source:
public static java.util.Map < java.lang.String , java.lang.Integer > retrieveFieldValueNames ( java.lang.String id , int field , int style , java.util.Locale locale ) { sun.util.locale.provider.LocaleServiceProviderPool pool = sun.util.locale.provider.LocaleServiceProviderPool.getPool ( java.util.spi.CalendarNameProvider.class ) ; return pool.getLocalizedObject ( sun.util.locale.provider.CalendarDataUtility.CalendarFieldValueNamesMapGetter.INSTANCE , locale , sun.util.locale.provider.CalendarDataUtility.normalizeCalendarType ( id ) , field , style , false ) ; }

Target:
public static java.util.Map < java.lang.String , java.lang.Integer > retrieveFieldValueNames ( java.lang.String id , int field , int style , java.util.Locale locale ) { return null ; }
Source:
public void testGet ( ) { java.util.concurrent.ConcurrentHashMap map = jsr166.ConcurrentHashMapTest.map5 ( ) ; assertEquals ( "A" , ( ( java.lang.String ) ( map.get ( one ) ) ) ) ; java.util.concurrent.ConcurrentHashMap empty = new java.util.concurrent.ConcurrentHashMap ( ) ; assertNull ( map.get ( "anything" ) ) ; }

Target:
public void testGet ( ) { java.util.concurrent.ConcurrentHashMap map = jsr166.ConcurrentHashMapTest.map5 ( ) ; assertEquals ( "A" , ( ( java.lang.String ) ( map.get ( one ) ) ) ) ; java.util.concurrent.ConcurrentHashMap empty = new java.util.concurrent.ConcurrentHashMap ( ) ; assertNull ( map.get ( "anything" ) ) ; assertNull ( empty.get ( "anything" ) ) ; }
Source:
public void addAllMarker ( @ javax.annotation.Nonnull java.util.Collection < com.android.sched.marker.Marker > collection ) { ensureMap ( ) ; for ( com.android.sched.marker.Marker marker : collection ) { assert isValidMarker ( marker.getClass ( ) ) : ( ( ( "Marker '" + ( com.android.sched.item.Items.getName ( marker.getClass ( ) ) ) ) + "' is not supported for class '" ) + ( this . getClass ( ) . getName ( ) ) ) + "'" ; assert ( markers ) != null ; markers.put ( marker.getClass ( ) , marker ) ; } }

Target:
public void addAllMarker ( @ javax.annotation.Nonnull java.util.Collection < com.android.sched.marker.Marker > collection ) { ensureMap ( ) ; for ( com.android.sched.marker.Marker marker : collection ) { assert isValidMarker ( marker ) : ( ( ( "Marker '" + ( com.android.sched.item.Items.getName ( marker.getClass ( ) ) ) ) + "' is not supported for class '" ) + ( this . getClass ( ) . getName ( ) ) ) + "'" ; assert ( markers ) != null ; markers.put ( marker.getClass ( ) , marker ) ; } }
Source:
public boolean requestFocus ( final int direction , final android.graphics.Rect previouslyFocusedRect ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return requestFocus ( direction , previouslyFocusedRect ) ; } } ) ; return ret ; } mAwContents.getAwContentsProxy ( ) . requestFocus ( ) ; return mWebViewPrivate.super_requestFocus ( direction , previouslyFocusedRect ) ; }

Target:
public boolean requestFocus ( final int direction , final android.graphics.Rect previouslyFocusedRect ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return requestFocus ( direction , previouslyFocusedRect ) ; } } ) ; return ret ; } mAwContents.requestFocus ( ) ; return mWebViewPrivate.super_requestFocus ( direction , previouslyFocusedRect ) ; }
Source:
static void setShort ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , short value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertActualAndExpectedMatch ( exceptionThrown , expectFailure ) ; }

Target:
static void setShort ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , short value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }
Source:
private final boolean checkUriPermissionLocked ( android.net.Uri uri , int uid , int modeFlags ) { if ( ( uid == 0 ) || ( ! ( java.lang.Process.supportsProcesses ( ) ) ) ) { return true ; } java.util.HashMap < android.net.Uri , com.android.server.am.UriPermission > perms = mGrantedUriPermissions.get ( uid ) ; if ( perms == null ) return false ; com.android.server.am.UriPermission perm = perms.get ( uri ) ; if ( perm == null ) return false ; return ( modeFlags & ( perm.modeFlags ) ) == modeFlags ; }

Target:
private final boolean checkUriPermissionLocked ( android.net.Uri uri , int uid , int modeFlags ) { if ( uid == 0 ) { return true ; } java.util.HashMap < android.net.Uri , com.android.server.am.UriPermission > perms = mGrantedUriPermissions.get ( uid ) ; if ( perms == null ) return false ; com.android.server.am.UriPermission perm = perms.get ( uri ) ; if ( perm == null ) return false ; return ( modeFlags & ( perm.modeFlags ) ) == modeFlags ; }
Source:
protected boolean postCreateContent ( ) { setWindowImage ( mShell ) ; createPages ( ) ; setupSources ( ) ; initializeSettings ( ) ; selectInitialPage ( ) ; if ( mUpdaterData.checkIfInitFailed ( ) ) { return false ; } mUpdaterData.broadcastOnSdkLoaded ( ) ; if ( mRequestAutoUpdate ) { mUpdaterData.updateOrInstallAll_WithGUI ( null , false ) ; } return true ; }

Target:
private boolean postCreateContent ( ) { setWindowImage ( mShell ) ; createPages ( ) ; setupSources ( ) ; initializeSettings ( ) ; selectInitialPage ( ) ; if ( mUpdaterData.checkIfInitFailed ( ) ) { return false ; } mUpdaterData.broadcastOnSdkLoaded ( ) ; if ( mRequestAutoUpdate ) { mUpdaterData.updateOrInstallAll_WithGUI ( null , false ) ; } return true ; }
Source:
public void testAsyncChannelHalfConnected ( ) { com.android.server.wifi.WifiServiceImplTest.WifiAsyncChannelTester channelTester = new com.android.server.wifi.WifiServiceImplTest.WifiAsyncChannelTester ( mWifiInjector ) ; android.os.Handler handler = org.mockito.Mockito.mock ( android.os.Handler.class ) ; android.os.test.TestLooper looper = new android.os.test.TestLooper ( ) ; channelTester.connect ( looper.getLooper ( ) , mWifiServiceImpl.getWifiServiceMessenger ( ) , handler ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( "AsyncChannel must be half connected" , com.android.server.wifi.WifiServiceImplTest.WifiAsyncChannelTester.CHANNEL_STATE_HALF_CONNECTED , channelTester.getChannelState ( ) ) ; }

Target:
public void testAsyncChannelHalfConnected ( ) { com.android.server.wifi.WifiServiceImplTest.WifiAsyncChannelTester channelTester = new com.android.server.wifi.WifiServiceImplTest.WifiAsyncChannelTester ( mWifiInjector ) ; android.os.Handler handler = mock ( android.os.Handler.class ) ; android.os.test.TestLooper looper = new android.os.test.TestLooper ( ) ; channelTester.connect ( looper.getLooper ( ) , mWifiServiceImpl.getWifiServiceMessenger ( ) , handler ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( "AsyncChannel must be half connected" , com.android.server.wifi.WifiServiceImplTest.WifiAsyncChannelTester.CHANNEL_STATE_HALF_CONNECTED , channelTester.getChannelState ( ) ) ; }
Source:
private com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ ] getSelectionAsElements ( ) { java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement > elements = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement > ( ) ; for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection cs : mDragSelection ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi = cs.getViewInfo ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement e = transformToSimpleElement ( vi ) ; elements.add ( e ) ; } return elements.toArray ( new com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ elements.size ( ) ] ) ; }

Target:
private com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ ] getSelectionAsElements ( java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection > mDragSelection ) { java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement > elements = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement > ( ) ; for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection cs : mDragSelection ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi = cs.getViewInfo ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement e = transformToSimpleElement ( vi ) ; elements.add ( e ) ; } return elements.toArray ( new com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ elements.size ( ) ] ) ; }
Source:
public static com.android.cts.TestSession createSession ( final java.lang.String testPlanName , android.annotation.cts.Profile profile ) throws com.android.cts.TestNotFoundException , com.android.cts.TestPlanNotFoundException , java.io.IOException , java.security.NoSuchAlgorithmException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String testPlanPath = com.android.cts.TestHost.sConfig.getPlanRepository ( ) . getPlanPath ( testPlanName ) ; com.android.cts.TestSession ts = com.android.cts.TestSessionBuilder.getInstance ( ) . build ( testPlanPath , profile ) ; com.android.cts.TestHost.sSessions.add ( ts ) ; return ts ; }

Target:
public static com.android.cts.TestSession createSession ( final java.lang.String testPlanName ) throws com.android.cts.TestNotFoundException , com.android.cts.TestPlanNotFoundException , java.io.IOException , java.security.NoSuchAlgorithmException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String testPlanPath = com.android.cts.TestHost.sConfig.getPlanRepository ( ) . getPlanPath ( testPlanName ) ; com.android.cts.TestSession ts = com.android.cts.TestSessionBuilder.getInstance ( ) . build ( testPlanPath ) ; com.android.cts.TestHost.sSessions.add ( ts ) ; return ts ; }
Source:
public android.os.Bundle onCommand ( java.lang.String action , int x , int y , int z , android.os.Bundle extras , boolean resultRequested ) { return mRenderer.onCommand ( action , x , y , z , extras , resultRequested ) ; }

Target:
public android.os.Bundle onCommand ( java.lang.String action , int x , int y , int z , android.os.Bundle extras , boolean resultRequested ) { if ( ( mRenderer ) != null ) { return mRenderer.onCommand ( action , x , y , z , extras , resultRequested ) ; } else { return null ; } }
Source:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { android.util.Log.v ( android.bluetooth.BluetoothHidDevice.TAG , ( "getDevicesMatchingConnectionStates(): states=" + ( java.util.Arrays.toString ( states ) ) ) ) ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { return service.getDevicesMatchingConnectionStates ( states ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { return service.getDevicesMatchingConnectionStates ( states ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return new java.util.ArrayList < > ( ) ; }
Source:
void setHostname ( java.lang.String hostname ) { if ( ( hostname != null ) && ( ! ( org.conscrypt.AddressUtils.isValidSniHostname ( hostname ) ) ) ) { throw new java.lang.IllegalArgumentException ( ( "Invalid SNI hostname: " + hostname ) ) ; } sslParameters.setUseSni ( ( hostname != null ) ) ; this . peerHostname = hostname ; }

Target:
void setHostname ( java.lang.String hostname ) { sslParameters.setUseSni ( ( hostname != null ) ) ; this . peerHostname = hostname ; }
Source:
public static boolean install ( final org.eclipse.core.resources.IProject project ) { java.io.File jarPath = com.android.ide.eclipse.adt.internal.actions.AddCompatibilityJarAction.installSupport ( ) ; if ( jarPath != null ) { try { return ( com.android.ide.eclipse.adt.internal.actions.AddCompatibilityJarAction.copyJarIntoProject ( project , jarPath ) ) != null ; } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , null ) ; } } return false ; }

Target:
public static boolean install ( final org.eclipse.core.resources.IProject project ) { java.io.File jarPath = com.android.ide.eclipse.adt.internal.actions.AddCompatibilityJarAction.installSupport ( ( - 1 ) ) ; if ( jarPath != null ) { try { return ( com.android.ide.eclipse.adt.internal.actions.AddCompatibilityJarAction.copyJarIntoProject ( project , jarPath ) ) != null ; } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , null ) ; } } return false ; }
Source:
public java.lang.String getDescription ( ) { java.lang.String prefix ; switch ( getVariantConfiguration ( ) . getType ( ) ) { case ANDROID_TEST : prefix = "Android (on device) tests" ; break ; case UNIT_TEST : prefix = "Unit tests" ; break ; default : throw new java.lang.IllegalStateException ( "Unknown test variant type." ) ; } if ( getVariantConfiguration ( ) . hasFlavors ( ) ) { return java.lang.String.format ( "%s for the %s%s build" , prefix , getCapitalizedFlavorName ( ) , getCapitalizedBuildTypeName ( ) ) ; } else { return java.lang.String.format ( "%s for the %s build" , prefix , getCapitalizedBuildTypeName ( ) ) ; } }

Target:
public java.lang.String getDescription ( ) { java.lang.String prefix ; switch ( getType ( ) ) { case ANDROID_TEST : prefix = "Android (on device) tests" ; break ; case UNIT_TEST : prefix = "Unit tests" ; break ; default : throw new java.lang.IllegalStateException ( "Unknown test variant type." ) ; } if ( getVariantConfiguration ( ) . hasFlavors ( ) ) { return java.lang.String.format ( "%s for the %s%s build" , prefix , getCapitalizedFlavorName ( ) , getCapitalizedBuildTypeName ( ) ) ; } else { return java.lang.String.format ( "%s for the %s build" , prefix , getCapitalizedBuildTypeName ( ) ) ; } }
Source:
public void onConfigurationChanged ( final android.content.res.Configuration newConfig ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onConfigurationChanged ( newConfig ) ; } } ) ; return ; } mAwContents.getAwContentsProxy ( ) . onConfigurationChanged ( newConfig ) ; }

Target:
public void onConfigurationChanged ( final android.content.res.Configuration newConfig ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onConfigurationChanged ( newConfig ) ; } } ) ; return ; } mAwContents.onConfigurationChanged ( newConfig ) ; }
Source:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { if ( ! ( mAcceptUsersInput ) ) { return true ; } switch ( item.getItemId ( ) ) { case StkApp.MENU_ID_END_SESSION : cancelTimeOut ( ) ; mAcceptUsersInput = false ; sendResponse ( StkAppService.RES_ID_END_SESSION ) ; cancelTimeOut ( ) ; finish ( ) ; return true ; default : break ; } return super . onOptionsItemSelected ( item ) ; }

Target:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { if ( ! ( mAcceptUsersInput ) ) { return true ; } switch ( item.getItemId ( ) ) { case StkApp.MENU_ID_END_SESSION : cancelTimeOut ( ) ; sendResponse ( StkAppService.RES_ID_END_SESSION ) ; cancelTimeOut ( ) ; finish ( ) ; return true ; default : break ; } return super . onOptionsItemSelected ( item ) ; }
Source:
public void test_constructor$String ( ) { java.nio.file.LinkPermission linkPermission = new java.nio.file.LinkPermission ( "hard" ) ; assertNull ( linkPermission.getName ( ) ) ; linkPermission = new java.nio.file.LinkPermission ( "symbolic" ) ; assertNull ( linkPermission.getName ( ) ) ; try { new java.nio.file.LinkPermission ( "test" ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }

Target:
public void test_constructor$String ( ) { java.nio.file.LinkPermission linkPermission = new java.nio.file.LinkPermission ( "hard" ) ; linkPermission.getName ( ) ; linkPermission = new java.nio.file.LinkPermission ( "symbolic" ) ; linkPermission.getName ( ) ; try { new java.nio.file.LinkPermission ( "test" ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }
Source:
public void testConfigurationUpdatesWhenRotatingWhileFullscreen ( ) throws java.lang.Exception { setDeviceRotation ( 0 ) ; launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes orientationASizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; setDeviceRotation ( 1 ) ; final android.server.cts.ReportedSizes orientationBSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesRotate ( orientationASizes , orientationBSizes ) ; }

Target:
public void testConfigurationUpdatesWhenRotatingWhileFullscreen ( ) throws java.lang.Exception { setDeviceRotation ( 0 ) ; launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes orientationASizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; setDeviceRotation ( 1 ) ; final android.server.cts.ReportedSizes orientationBSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; assertSizesRotate ( orientationASizes , orientationBSizes ) ; }
Source:
public com.android.ide.common.rendering.api.ResourceValue findItemInStyle ( com.android.ide.common.rendering.api.StyleResourceValue style , java.lang.String itemName , boolean isFrameworkAttr ) { com.android.ide.common.rendering.api.ResourceValue item = style.findValue ( itemName , isFrameworkAttr ) ; if ( ( item == null ) && ( ( mStyleInheritanceMap ) != null ) ) { com.android.ide.common.rendering.api.StyleResourceValue parentStyle = mStyleInheritanceMap.get ( style ) ; if ( parentStyle != null ) { return findItemInStyle ( parentStyle , itemName , isFrameworkAttr ) ; } } return item ; }

Target:
public com.android.ide.common.rendering.api.ResourceValue findItemInStyle ( com.android.ide.common.rendering.api.StyleResourceValue style , java.lang.String itemName , boolean isFrameworkAttr ) { com.android.ide.common.rendering.api.ResourceValue item = style.findValue ( itemName , isFrameworkAttr ) ; if ( item == null ) { com.android.ide.common.rendering.api.StyleResourceValue parentStyle = mStyleInheritanceMap.get ( style ) ; if ( parentStyle != null ) { return findItemInStyle ( parentStyle , itemName , isFrameworkAttr ) ; } } return item ; }
Source:
public boolean visit ( org.eclipse.jdt.core.dom.ImportDeclaration id ) { org.eclipse.jdt.core.dom.Name import_name = id.getName ( ) ; if ( import_name.isQualifiedName ( ) ) { org.eclipse.jdt.core.dom.QualifiedName qualified_import_name = ( ( org.eclipse.jdt.core.dom.QualifiedName ) ( import_name ) ) ; if ( qualified_import_name.getName ( ) . getIdentifier ( ) . equals ( AndroidConstants.FN_RESOURCE_BASE ) ) { this . mRewriter.replace ( qualified_import_name.getQualifier ( ) , mNewPackageName , null ) ; } } return true ; }

Target:
public boolean visit ( org.eclipse.jdt.core.dom.ImportDeclaration id ) { org.eclipse.jdt.core.dom.Name import_name = id.getName ( ) ; if ( import_name.isQualifiedName ( ) ) { org.eclipse.jdt.core.dom.QualifiedName qualified_import_name = ( ( org.eclipse.jdt.core.dom.QualifiedName ) ( import_name ) ) ; if ( qualified_import_name.getName ( ) . getIdentifier ( ) . equals ( AndroidConstants.FN_RESOURCE_BASE ) ) { mRewriter.replace ( qualified_import_name.getQualifier ( ) , mNewPackageName , null ) ; } } return true ; }
Source:
private com.android.jack.ir.ast.JMethodId getPhantomMethod ( @ javax.annotation.Nonnull java.lang.String name , @ javax.annotation.Nonnull java.util.List < ? extends com.android.jack.ir.ast.JType > argsType , @ javax.annotation.Nonnull com.android.jack.ir.ast.MethodKind kind ) { synchronized ( phantomMethods ) { for ( com.android.jack.ir.ast.JMethodId id : phantomMethods ) { if ( id.equals ( name , argsType ) ) { assert ( id.getKind ( ) ) == kind ; return id ; } } } return null ; }

Target:
private com.android.jack.ir.ast.JMethodId getPhantomMethod ( @ javax.annotation.Nonnull java.lang.String name , @ javax.annotation.Nonnull java.util.List < ? extends com.android.jack.ir.ast.JType > argsType , @ javax.annotation.Nonnull com.android.jack.ir.ast.MethodKind kind ) { synchronized ( phantomMethods ) { for ( com.android.jack.ir.ast.JMethodId id : phantomMethods ) { if ( id.equals ( name , argsType , kind ) ) { return id ; } } } return null ; }
Source:
public com.android.utils.Pair < java.io.InputStream , java.lang.Integer > openDirectUrl ( @ com.android.annotations.NonNull java.lang.String urlString , @ com.android.annotations.NonNull com.android.sdklib.internal.repository.ITaskMonitor monitor ) throws com.android.sdklib.internal.repository.CanceledByUserException , java.io.IOException { if ( com.android.sdklib.internal.repository.DownloadCache.DEBUG ) { java.lang.System.out.println ( java.lang.String.format ( "%s : Direct download" , urlString ) ) ; } com.android.utils.Pair < java.io.InputStream , org.apache.http.HttpResponse > result = com.android.sdklib.internal.repository.UrlOpener.openUrl ( urlString , false , monitor , null ) ; return com.android.utils.Pair.of ( result.getFirst ( ) , result.getSecond ( ) . getStatusLine ( ) . getStatusCode ( ) ) ; }

Target:
public com.android.utils.Pair < java.io.InputStream , java.lang.Integer > openDirectUrl ( @ com.android.annotations.NonNull java.lang.String urlString , @ com.android.annotations.NonNull com.android.sdklib.internal.repository.ITaskMonitor monitor ) throws com.android.sdklib.internal.repository.CanceledByUserException , java.io.IOException { if ( com.android.sdklib.internal.repository.DownloadCache.DEBUG ) { java.lang.System.out.println ( java.lang.String.format ( "%s : Direct download" , urlString ) ) ; } com.android.utils.Pair < java.io.InputStream , org.apache.http.HttpResponse > result = openUrl ( urlString , false , monitor , null ) ; return com.android.utils.Pair.of ( result.getFirst ( ) , result.getSecond ( ) . getStatusLine ( ) . getStatusCode ( ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( 100 ) ; sb.append ( getClass ( ) . getName ( ) ) ; sb.append ( '{' ) ; sb.append ( com.android.dx.util.Hex.u2 ( getAccessFlags ( ) ) ) ; sb.append ( ' ' ) ; sb.append ( field ) ; sb.append ( '}' ) ; return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 100 ) ; sb.append ( getClass ( ) . getName ( ) ) ; sb.append ( '{' ) ; sb.append ( com.android.dx.util.Hex.u2 ( getAccessFlags ( ) ) ) ; sb.append ( ' ' ) ; sb.append ( field ) ; sb.append ( '}' ) ; return sb.toString ( ) ; }
Source:
private boolean endsWithOK ( int currentPosition ) { if ( ( ( ( ( mBuffer [ ( currentPosition - 1 ) ] ) == '\n' ) && ( ( mBuffer [ ( currentPosition - 2 ) ] ) == '\r' ) ) && ( ( mBuffer [ ( currentPosition - 3 ) ] ) == 'K' ) ) && ( ( mBuffer [ ( currentPosition - 4 ) ] ) == 'O' ) ) { return true ; } return false ; }

Target:
private boolean endsWithOK ( int currentPosition ) { return ( ( ( ( mBuffer [ ( currentPosition - 1 ) ] ) == '\n' ) && ( ( mBuffer [ ( currentPosition - 2 ) ] ) == '\r' ) ) && ( ( mBuffer [ ( currentPosition - 3 ) ] ) == 'K' ) ) && ( ( mBuffer [ ( currentPosition - 4 ) ] ) == 'O' ) ; }
Source:
public java.util.List < android.content.pm.PackageInfo > getPreferredPackages ( int flags ) { synchronized ( mPackages ) { final java.util.ArrayList < android.content.pm.PackageInfo > res = new java.util.ArrayList < android.content.pm.PackageInfo > ( ) ; final java.util.ArrayList < com.android.server.PackageManagerService.PackageSetting > pref = mSettings.mPreferredPackages ; final int N = pref.size ( ) ; for ( int i = 0 ; i < N ; i ++ ) { res.add ( generatePackageInfo ( pref.get ( i ) . pkg , flags ) ) ; } return res ; } }

Target:
public java.util.List < android.content.pm.PackageInfo > getPreferredPackages ( int flags ) { return new java.util.ArrayList < android.content.pm.PackageInfo > ( ) ; }
Source:
public static < T , U > T [ ] copyOf ( U [ ] original , int newLength , java.lang.Class < ? extends T [ ] > newType ) { if ( newLength < 0 ) { throw new java.lang.NegativeArraySizeException ( ) ; } return java.util.Arrays.copyOfRange ( original , 0 , newLength , newType ) ; }

Target:
public static < T , U > T [ ] copyOf ( U [ ] original , int newLength , java.lang.Class < ? extends T [ ] > newType ) { if ( newLength < 0 ) { throw new java.lang.NegativeArraySizeException ( java.lang.Integer.toString ( newLength ) ) ; } return java.util.Arrays.copyOfRange ( original , 0 , newLength , newType ) ; }
Source:
public boolean isMatchFor ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration referenceConfig ) { for ( int i = 0 ; i < ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier testQualifier = mQualifiers [ i ] ; com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier referenceQualifier = referenceConfig.mQualifiers [ i ] ; if ( ( ( testQualifier != null ) && ( referenceQualifier != null ) ) && ( ( testQualifier.isMatchFor ( referenceQualifier ) ) == false ) ) { return false ; } } return true ; }

Target:
public boolean isMatchFor ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration referenceConfig ) { if ( referenceConfig == null ) { return false ; } for ( int i = 0 ; i < ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier testQualifier = mQualifiers [ i ] ; com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier referenceQualifier = referenceConfig.mQualifiers [ i ] ; if ( ( ( testQualifier != null ) && ( referenceQualifier != null ) ) && ( ( testQualifier.isMatchFor ( referenceQualifier ) ) == false ) ) { return false ; } } return true ; }
Source:
protected com.android.jack.test.toolchain.JackBasedToolchain getReferenceToolchain ( ) { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; java.io.File internalJackOutputLib ; try { internalJackOutputLib = com.android.jack.TestTools.createTempDir ( "oneDexPerType" , "dex" ) ; toolchain.addProperty ( Options.EMIT_LINE_NUMBER_DEBUG_INFO.getName ( ) , java.lang.Boolean.toString ( withDebugInfos ) ) ; toolchain.addProperty ( ScheduleInstance.DEFAULT_RUNNER.getName ( ) , "single-threaded" ) ; toolchain.addProperty ( Options.INTERNAL_LIBRARY_OUTPUT_DIR.getName ( ) , internalJackOutputLib.getAbsolutePath ( ) ) ; } catch ( java.io.IOException e ) { throw new java.lang.AssertionError ( e ) ; } return toolchain ; }

Target:
protected com.android.jack.test.toolchain.JackBasedToolchain getReferenceToolchain ( ) { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; java.io.File internalJackOutputLib ; try { internalJackOutputLib = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; toolchain.addProperty ( Options.EMIT_LINE_NUMBER_DEBUG_INFO.getName ( ) , java.lang.Boolean.toString ( withDebugInfos ) ) ; toolchain.addProperty ( ScheduleInstance.DEFAULT_RUNNER.getName ( ) , "single-threaded" ) ; toolchain.addProperty ( Options.INTERNAL_LIBRARY_OUTPUT_DIR.getName ( ) , internalJackOutputLib.getAbsolutePath ( ) ) ; } catch ( java.io.IOException e ) { throw new java.lang.AssertionError ( e ) ; } return toolchain ; }
Source:
protected final void finalize ( ) throws java.lang.Throwable { try { if ( ( guard ) != null ) { org.conscrypt.Platform.closeGuardWarnIfOpen ( guard ) ; } synchronized ( ssl ) { transitionTo ( EngineStates.STATE_CLOSED ) ; } } finally { super . finalize ( ) ; } }

Target:
protected final void finalize ( ) throws java.lang.Throwable { try { if ( ( guard ) != null ) { org.conscrypt.Platform.closeGuardWarnIfOpen ( guard ) ; } if ( ( ssl ) != null ) { synchronized ( ssl ) { transitionTo ( EngineStates.STATE_CLOSED ) ; } } } finally { super . finalize ( ) ; } }
Source:
public java.text.AttributedCharacterIterator formatToCharacterIterator ( java.lang.Object obj ) { if ( ! ( obj instanceof java.lang.Number ) ) { throw new java.lang.IllegalArgumentException ( ) ; } java.lang.Number number = ( ( java.lang.Number ) ( obj ) ) ; android.icu.text.CompactDecimalFormat.Amount amount = toAmount ( number.doubleValue ( ) , null ) ; return super . formatToCharacterIterator ( amount.getQty ( ) , amount.getUnit ( ) ) ; }

Target:
public java.text.AttributedCharacterIterator formatToCharacterIterator ( java.lang.Object obj ) { if ( ! ( obj instanceof java.lang.Number ) ) { throw new java.lang.IllegalArgumentException ( ) ; } java.lang.Number number = ( ( java.lang.Number ) ( obj ) ) ; android.icu.text.CompactDecimalFormat.Amount amount = toAmount ( number.doubleValue ( ) , null , null ) ; return super . formatToCharacterIterator ( amount.getQty ( ) , amount.getUnit ( ) ) ; }
Source:
private void fillExistingName ( @ javax.annotation.Nonnull java.util.Collection < ? extends com.android.jack.ir.ast.HasName > namedElements , @ javax.annotation.Nonnull java.util.Collection < java.lang.String > existingNames ) { for ( com.android.jack.ir.ast.HasName namedElement : namedElements ) { if ( ! ( com.android.jack.shrob.obfuscation.Renamer.mustBeRenamed ( ( ( com.android.sched.marker.MarkerManager ) ( namedElement ) ) ) ) ) { existingNames.add ( com.android.jack.shrob.obfuscation.Renamer.getKey ( namedElement ) ) ; } } }

Target:
private void fillExistingName ( @ javax.annotation.Nonnull java.util.Collection < ? extends com.android.jack.ir.ast.HasName > namedElements , @ javax.annotation.Nonnull java.util.Collection < java.lang.String > existingNames ) { for ( com.android.jack.ir.ast.HasName namedElement : namedElements ) { if ( ! ( com.android.jack.shrob.obfuscation.Renamer.mustBeRenamed ( ( ( com.android.sched.marker.MarkerManager ) ( namedElement ) ) ) ) ) { existingNames.add ( namedElement.getName ( ) ) ; } } }
Source:
public void test_forEach_CME_onLastElement ( ) throws java.lang.Exception { java.util.ArrayList < java.lang.Integer > list = new java.util.ArrayList < > ( ) ; list.add ( 1 ) ; list.add ( 2 ) ; list.add ( 3 ) ; try { list.forEach ( new java.util.function.Consumer < java.lang.Integer > ( ) { @ java.lang.Override public void accept ( java.lang.Integer t ) { if ( t == 3 ) { list.add ( t ) ; } } } ) ; fail ( ) ; } catch ( java.util.ConcurrentModificationException expected ) { } }

Target:
public void test_forEach_CME_onLastElement ( ) throws java.lang.Exception { java.util.ArrayList < java.lang.Integer > list = new java.util.ArrayList < > ( ) ; list.add ( 1 ) ; list.add ( 2 ) ; list.add ( 3 ) ; try { list.forEach ( ( t ) -> { if ( t == 3 ) list.add ( t ) ; } ) ; fail ( ) ; } catch ( java.util.ConcurrentModificationException expected ) { } }