auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static com.android.ninepatch.NinePatch load ( java.net.URL fileUrl , boolean convert ) throws java.io.IOException { java.awt.image.BufferedImage image = null ; try { image = com.android.ninepatch.GraphicsUtilities.loadCompatibleImage ( fileUrl ) ; } catch ( java.net.MalformedURLException e ) { return null ; } boolean is9Patch = fileUrl.getPath ( ) . toLowerCase ( ) . endsWith ( com.android.ninepatch.NinePatch.EXTENSION_9PATCH ) ; return com.android.ninepatch.NinePatch.load ( image , is9Patch , convert ) ; }

Target:
public static com.android.ninepatch.NinePatch load ( java.net.URL fileUrl , boolean convert ) throws java.io.IOException { java.awt.image.BufferedImage image = null ; try { image = com.android.ninepatch.GraphicsUtilities.loadCompatibleImage ( fileUrl ) ; } catch ( java.net.MalformedURLException e ) { return null ; } boolean is9Patch = fileUrl.getPath ( ) . toLowerCase ( java.util.Locale.US ) . endsWith ( com.android.ninepatch.NinePatch.EXTENSION_9PATCH ) ; return com.android.ninepatch.NinePatch.load ( image , is9Patch , convert ) ; }
Source:
public void test_getResourceAsStream_withSharpChar ( ) throws java.lang.Exception { java.io.InputStream in = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( ClassTest.FILENAME ) ; assertNotNull ( in ) ; in.close ( ) ; }

Target:
private static void assertGetResourceAsStreamNotNull ( java.lang.ClassLoader classLoader , java.lang.String resourceName ) throws java.io.IOException { java.io.InputStream is = null ; try { is = classLoader.getResourceAsStream ( resourceName ) ; assertNotNull ( is ) ; } finally { if ( is != null ) { is.close ( ) ; } } }
Source:
public com.android.jack.ir.ast.JThisRef exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ExportSession exportSession ) { assert ( sourceInfo ) != null ; assert ( type ) != null ; com.android.jack.ir.sourceinfo.SourceInfo jSourceInfo = sourceInfo.exportAsJast ( exportSession ) ; com.android.jack.ir.ast.JThis jThis = exportSession.getCurrentMethod ( ) . getThis ( ) ; assert jThis != null ; com.android.jack.ir.ast.JThisRef jThisRef = new com.android.jack.ir.ast.JThisRef ( jSourceInfo , jThis ) ; return jThisRef ; }

Target:
public com.android.jack.ir.ast.JThisRef exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ExportSession exportSession ) { assert ( sourceInfo ) != null ; assert ( type ) != null ; com.android.jack.ir.sourceinfo.SourceInfo jSourceInfo = sourceInfo.exportAsJast ( exportSession ) ; com.android.jack.ir.ast.JThis jThis = exportSession.getCurrentMethod ( ) . getThis ( ) ; assert jThis != null ; com.android.jack.ir.ast.JThisRef jThisRef = jThis.makeRef ( jSourceInfo ) ; return jThisRef ; }
Source:
public static boolean isProjectDir ( @ com.android.annotations.NonNull java.io.File dir ) { boolean hasManifest = new java.io.File ( dir , com.android.SdkConstants.ANDROID_MANIFEST_XML ) . exists ( ) ; if ( hasManifest ) { if ( dir.getName ( ) . equals ( com.android.SdkConstants.BIN_FOLDER ) ) { dir = dir.getParentFile ( ) ; if ( ( dir != null ) && ( com.android.tools.lint.detector.api.LintUtils.isProjectDir ( dir ) ) ) { return false ; } } } else if ( com.android.tools.lint.detector.api.Project.isAospFrameworksProject ( dir ) ) { return true ; } return hasManifest ; }

Target:
public static boolean isManifestFolder ( java.io.File dir ) { boolean hasManifest = new java.io.File ( dir , com.android.SdkConstants.ANDROID_MANIFEST_XML ) . exists ( ) ; if ( hasManifest ) { if ( dir.getName ( ) . equals ( com.android.SdkConstants.BIN_FOLDER ) ) { dir = dir.getParentFile ( ) ; if ( ( dir != null ) && ( com.android.tools.lint.detector.api.LintUtils.isManifestFolder ( dir ) ) ) { return false ; } } } return hasManifest ; }
Source:
protected void internalSetUp ( ) throws java.lang.Exception { super . internalSetUp ( ) ; debuggeeWrapper.resume ( ) ; logWriter.println ( "Resumed debuggee VM" ) ; synchronizer.startServer ( ) ; logWriter.println ( "Established sync connection" ) ; }

Target:
protected void internalSetUp ( ) throws java.lang.Exception { super . internalSetUp ( ) ; debuggeeWrapper.resume ( ) ; logWriter.println ( "Resumed debuggee VM" ) ; synchronizer.startServer ( ) ; logWriter.println ( "Established sync connection" ) ; java.lang.String remotePid = synchronizer.receiveMessage ( ) ; this . debuggeeWrapper.setRealPid ( java.lang.Integer.valueOf ( remotePid ) ) ; }
Source:
public void writeToParcel ( android.os.Parcel out , int flags ) { networkKey.writeToParcel ( out , flags ) ; if ( ( rssiCurve ) != null ) { out.writeByte ( ( ( byte ) ( 1 ) ) ) ; rssiCurve.writeToParcel ( out , flags ) ; } else { out.writeByte ( ( ( byte ) ( 0 ) ) ) ; } out.writeByte ( ( ( byte ) ( meteredHint ? 1 : 0 ) ) ) ; }

Target:
public void writeToParcel ( android.os.Parcel out , int flags ) { networkKey.writeToParcel ( out , flags ) ; if ( ( rssiCurve ) != null ) { out.writeByte ( ( ( byte ) ( 1 ) ) ) ; rssiCurve.writeToParcel ( out , flags ) ; } else { out.writeByte ( ( ( byte ) ( 0 ) ) ) ; } out.writeByte ( ( ( byte ) ( meteredHint ? 1 : 0 ) ) ) ; out.writeBundle ( attributes ) ; }
Source:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( "getDevicesMatchingConnectionStates(): states=" + ( java.util.Arrays.toString ( states ) ) ) ) ; if ( ( mService ) != null ) { try { return mService.getDevicesMatchingConnectionStates ( states ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.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 ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( "getDevicesMatchingConnectionStates(): states=" + ( java.util.Arrays.toString ( states ) ) ) ) ; final android.bluetooth.IBluetoothInputHost service = mService ; if ( service != null ) { try { return service.getDevicesMatchingConnectionStates ( states ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; }
Source:
public boolean onCreate ( ) { android.util.Log.d ( com.android.providers.telephony.CarrierIdProvider.TAG , "onCreate" ) ; mDbHelper = new com.android.providers.telephony.CarrierIdProvider.CarrierIdDatabaseHelper ( getContext ( ) ) ; mDbHelper.getReadableDatabase ( ) ; com.android.providers.telephony.CarrierIdProvider.s_urlMatcher.addURI ( com.android.providers.telephony.CarrierIdProvider.AUTHORITY , "update_db" , com.android.providers.telephony.CarrierIdProvider.URL_UPDATE_FROM_PB ) ; com.android.providers.telephony.CarrierIdProvider.s_urlMatcher.addURI ( com.android.providers.telephony.CarrierIdProvider.AUTHORITY , "get_version" , com.android.providers.telephony.CarrierIdProvider.URL_GET_VERSION ) ; updateDatabaseFromPb ( mDbHelper.getWritableDatabase ( ) ) ; return true ; }

Target:
public boolean onCreate ( ) { android.util.Log.d ( com.android.providers.telephony.CarrierIdProvider.TAG , "onCreate" ) ; mDbHelper = new com.android.providers.telephony.CarrierIdProvider.CarrierIdDatabaseHelper ( getContext ( ) ) ; mDbHelper.getReadableDatabase ( ) ; com.android.providers.telephony.CarrierIdProvider.s_urlMatcher.addURI ( com.android.providers.telephony.CarrierIdProvider.AUTHORITY , "all" , com.android.providers.telephony.CarrierIdProvider.URL_ALL ) ; com.android.providers.telephony.CarrierIdProvider.s_urlMatcher.addURI ( com.android.providers.telephony.CarrierIdProvider.AUTHORITY , "all/update_db" , com.android.providers.telephony.CarrierIdProvider.URL_ALL_UPDATE_FROM_PB ) ; com.android.providers.telephony.CarrierIdProvider.s_urlMatcher.addURI ( com.android.providers.telephony.CarrierIdProvider.AUTHORITY , "all/get_version" , com.android.providers.telephony.CarrierIdProvider.URL_ALL_GET_VERSION ) ; updateDatabaseFromPb ( mDbHelper.getWritableDatabase ( ) ) ; return true ; }
Source:
public java.lang.String getAdapterItemValue ( com.android.ide.common.rendering.api.ResourceReference adapterView , com.android.ide.common.rendering.api.ResourceReference itemRef , int fullPosition , int typePosition , com.android.ide.common.rendering.api.ResourceReference viewRef , java.lang.String viewClass ) { if ( viewClass.contains ( "TextView" ) ) { return ( ( viewRef.getName ( ) ) + " " ) + typePosition ; } return null ; }

Target:
public java.lang.Object getAdapterItemValue ( com.android.ide.common.rendering.api.ResourceReference adapterView , java.lang.Object adapterCookie , com.android.ide.common.rendering.api.ResourceReference itemRef , int fullPosition , int typePosition , com.android.ide.common.rendering.api.ResourceReference viewRef , com.android.ide.eclipse.adt.internal.editors.layout.ViewAttribute viewAttribute , java.lang.Object defaultValue ) { if ( ( viewAttribute == ( ViewAttribute.TEXT ) ) && ( ( ( ( java.lang.String ) ( defaultValue ) ) . length ( ) ) == 0 ) ) { return ( ( viewRef.getName ( ) ) + " " ) + typePosition ; } return null ; }
Source:
public void onSessionTerminatedNotification ( int pubSubId , int reason , boolean isPublish ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_NOTIFICATION ) ; msg.arg1 = com.android.server.wifi.nan.WifiNanStateManager.NOTIFICATION_TYPE_SESSION_TERMINATED ; msg.arg2 = pubSubId ; msg.obj = reason ; msg.getData ( ) . putBoolean ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_BUNDLE_KEY_SESSION_TYPE , isPublish ) ; mSm.sendMessage ( msg ) ; }

Target:
public void onSessionTerminatedNotification ( int pubSubId , int reason , boolean isPublish ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_NOTIFICATION ) ; msg.arg1 = com.android.server.wifi.aware.WifiAwareStateManager.NOTIFICATION_TYPE_SESSION_TERMINATED ; msg.arg2 = pubSubId ; msg.obj = reason ; msg.getData ( ) . putBoolean ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_BUNDLE_KEY_SESSION_TYPE , isPublish ) ; mSm.sendMessage ( msg ) ; }
Source:
public void testGetSetEntityResolver ( ) { org.xml.sax.EntityResolver resolver = new tests.api.org.xml.sax.support.MockResolver ( ) ; adapter.setEntityResolver ( resolver ) ; assertEquals ( resolver , adapter.getEntityResolver ( ) ) ; adapter.setEntityResolver ( null ) ; assertEquals ( null , adapter.getEntityResolver ( ) ) ; }

Target:
public void testGetSetEntityResolver ( ) { org.xml.sax.EntityResolver resolver = new org.apache.harmony.tests.org.xml.sax.support.MockResolver ( ) ; adapter.setEntityResolver ( resolver ) ; assertEquals ( resolver , adapter.getEntityResolver ( ) ) ; adapter.setEntityResolver ( null ) ; assertEquals ( null , adapter.getEntityResolver ( ) ) ; }
Source:
private static com.android.libcore.timezone.tzlookup.zonetree.CountryZoneUsage calculateCountryZoneUsage ( com.android.libcore.timezone.tzlookup.proto.CountryZonesFile.Country countryIn , com.android.libcore.timezone.tzlookup.Errors processingErrors ) { processingErrors.pushScope ( "Building zone tree" ) ; try { com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree countryZoneTree = com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree.create ( countryIn , com.android.libcore.timezone.tzlookup.TzLookupGenerator.ZONE_USAGE_CALCS_START , com.android.libcore.timezone.tzlookup.TzLookupGenerator.ZONE_USAGE_CALCS_END ) ; java.util.List < java.lang.String > countryIssues = countryZoneTree.validateNoPriorityClashes ( ) ; if ( ! ( countryIssues.isEmpty ( ) ) ) { processingErrors.addError ( "Issues validating country zone trees. Adjust priorities:" ) ; countryIssues.forEach ( processingErrors :: addError ) ; return null ; } return countryZoneTree.calculateCountryZoneUsage ( ) ; } finally { processingErrors.popScope ( ) ; } }

Target:
private static com.android.libcore.timezone.tzlookup.zonetree.CountryZoneUsage calculateCountryZoneUsage ( com.android.libcore.timezone.tzlookup.proto.CountryZonesFile.Country countryIn , com.android.libcore.timezone.tzlookup.Errors processingErrors ) { processingErrors.pushScope ( "Building zone tree" ) ; try { com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree countryZoneTree = com.android.libcore.timezone.tzlookup.zonetree.CountryZoneTree.create ( countryIn , com.android.libcore.timezone.tzlookup.TzLookupGenerator.ZONE_USAGE_CALCS_START , com.android.libcore.timezone.tzlookup.TzLookupGenerator.ZONE_USAGE_CALCS_END ) ; java.util.List < java.lang.String > countryIssues = countryZoneTree.validateNoPriorityClashes ( ) ; if ( ! ( countryIssues.isEmpty ( ) ) ) { processingErrors.addError ( "Issues validating country zone trees. Adjust priorities:" ) ; countryIssues.forEach ( processingErrors :: addError ) ; return null ; } return countryZoneTree.calculateCountryZoneUsage ( com.android.libcore.timezone.tzlookup.TzLookupGenerator.ZONE_USAGE_NOT_AFTER_CUT_OFF ) ; } finally { processingErrors.popScope ( ) ; } }
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/bytecode/MyParcelable1.java:6: Warning: This class implements Parcelable but does not provide a CREATOR field [ParcelCreator]\n" + "public class MyParcelable1 implements Parcelable {\n" ) + " ~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/MyParcelable1.java.txt=>src/test/bytecode/MyParcelable1.java" , "bytecode/MyParcelable2.java.txt=>src/test/bytecode/MyParcelable2.java" , "bytecode/MyParcelable3.java.txt=>src/test/bytecode/MyParcelable3.java" , "bytecode/MyParcelable4.java.txt=>src/test/bytecode/MyParcelable4.java" , "bytecode/MyParcelable5.java.txt=>src/test/bytecode/MyParcelable5.java" , "bytecode/MyParcelable1.class.data=>bin/classes/test/bytecode/MyParcelable1.class" , "bytecode/MyParcelable2.class.data=>bin/classes/test/bytecode/MyParcelable2.class" , "bytecode/MyParcelable2$1.class.data=>bin/classes/test/bytecode/MyParcelable2$1.class" , "bytecode/MyParcelable3.class.data=>bin/classes/test/bytecode/MyParcelable3.class" , "bytecode/MyParcelable4.class.data=>bin/classes/test/bytecode/MyParcelable4.class" , "bytecode/MyParcelable5.class.data=>bin/classes/test/bytecode/MyParcelable5.class" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/bytecode/MyParcelable1.java:6: Error: This class implements Parcelable but does not provide a CREATOR field [ParcelCreator]\n" + "public class MyParcelable1 implements Parcelable {\n" ) + " ~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/MyParcelable1.java.txt=>src/test/bytecode/MyParcelable1.java" , "bytecode/MyParcelable2.java.txt=>src/test/bytecode/MyParcelable2.java" , "bytecode/MyParcelable3.java.txt=>src/test/bytecode/MyParcelable3.java" , "bytecode/MyParcelable4.java.txt=>src/test/bytecode/MyParcelable4.java" , "bytecode/MyParcelable5.java.txt=>src/test/bytecode/MyParcelable5.java" , "bytecode/MyParcelable1.class.data=>bin/classes/test/bytecode/MyParcelable1.class" , "bytecode/MyParcelable2.class.data=>bin/classes/test/bytecode/MyParcelable2.class" , "bytecode/MyParcelable2$1.class.data=>bin/classes/test/bytecode/MyParcelable2$1.class" , "bytecode/MyParcelable3.class.data=>bin/classes/test/bytecode/MyParcelable3.class" , "bytecode/MyParcelable4.class.data=>bin/classes/test/bytecode/MyParcelable4.class" , "bytecode/MyParcelable5.class.data=>bin/classes/test/bytecode/MyParcelable5.class" ) ) ; }
Source:
public void onActivityPause ( ) { com.android.dialer.common.LogUtil.enterBlock ( "MainSearchController.onActivityPause" ) ; closeKeyboard ( ) ; if ( closeSearchOnPause ) { closeSearchOnPause = false ; if ( isInSearch ( ) ) { closeSearch ( false ) ; } } }

Target:
public void onActivityPause ( ) { com.android.dialer.common.LogUtil.enterBlock ( "MainSearchController.onActivityPause" ) ; closeKeyboard ( ) ; if ( closeSearchOnPause ) { if ( ( isInSearch ( ) ) && ( ( callPlacedFromSearch ) || ( ! ( isDialpadVisible ( ) ) ) ) ) { closeSearch ( false ) ; } closeSearchOnPause = false ; callPlacedFromSearch = false ; } }
Source:
public void reset ( ) { myServiceDirectoryPathField.getTextField ( ) . setForeground ( LocationSettingType.EXPLICIT_CORRECT.getColor ( ) ) ; myServiceDirectoryPathField.setText ( "" ) ; java.lang.String path = myInitialSettings.getServiceDirectoryPath ( ) ; if ( com.intellij.openapi.util.text.StringUtil.isEmpty ( path ) ) { deduceServiceDirectoryIfPossible ( ) ; } else { myServiceDirectoryPathField.setText ( path ) ; } }

Target:
public void reset ( ) { myServiceDirectoryPathField.getTextField ( ) . setForeground ( LocationSettingType.EXPLICIT_CORRECT.getColor ( ) ) ; myServiceDirectoryPathField.setText ( "" ) ; java.lang.String path = myInitialSettings.getServiceDirectoryPath ( ) ; if ( com.intellij.openapi.util.text.StringUtil.isEmpty ( path ) ) { deduceServiceDirectoryIfPossible ( ) ; } else { assert path != null ; myServiceDirectoryPathField.setText ( path ) ; } myGradleVmOptionsField.setText ( org.jetbrains.plugins.gradle.service.settings.GradleSystemSettingsControl.trimIfPossible ( myInitialSettings.getGradleVmOptions ( ) ) ) ; }
Source:
public void sendBroadcast ( android.content.Intent intent ) { synchronized ( mInterceptors ) { final java.util.Iterator < com.android.server.BroadcastInterceptingContext.BroadcastInterceptor > i = mInterceptors.iterator ( ) ; while ( i.hasNext ( ) ) { final com.android.server.BroadcastInterceptingContext.BroadcastInterceptor interceptor = i.next ( ) ; if ( interceptor.dispatchBroadcast ( intent ) ) { i.remove ( ) ; } } } }

Target:
public void sendBroadcast ( android.content.Intent intent ) { synchronized ( mInterceptors ) { final java.util.Iterator < com.android.internal.util.test.BroadcastInterceptingContext.BroadcastInterceptor > i = mInterceptors.iterator ( ) ; while ( i.hasNext ( ) ) { final com.android.internal.util.test.BroadcastInterceptingContext.BroadcastInterceptor interceptor = i.next ( ) ; if ( interceptor.dispatchBroadcast ( intent ) ) { i.remove ( ) ; } } } }
Source:
private static java.lang.String getMapKey ( java.lang.String folderName , java.lang.String name ) { int baseEnd = ( ( name.length ( ) ) - ( com.android.ide.eclipse.adt.AdtConstants.EXT_XML.length ( ) ) ) - 1 ; if ( baseEnd > 0 ) { name = name.substring ( 0 , baseEnd ) ; } if ( com.android.sdklib.SdkConstants.FD_LAYOUT.equals ( folderName ) ) { return name ; } else { return ( folderName + ( com.android.ide.eclipse.adt.AdtConstants.WS_SEP ) ) + name ; } }

Target:
private static java.lang.String getMapKey ( java.lang.String folderName , java.lang.String name ) { int baseEnd = ( ( name.length ( ) ) - ( com.android.ide.eclipse.adt.AdtConstants.EXT_XML.length ( ) ) ) - 1 ; if ( baseEnd > 0 ) { name = name.substring ( 0 , baseEnd ) ; } if ( com.android.AndroidConstants.FD_RES_LAYOUT.equals ( folderName ) ) { return name ; } else { return ( folderName + ( com.android.ide.eclipse.adt.AdtConstants.WS_SEP ) ) + name ; } }
Source:
private boolean start ( ) { java.net.InetSocketAddress socketAddr ; try { java.net.InetAddress hostAddr = java.net.InetAddress.getByName ( com.android.ddmlib.EmulatorConsole.HOST ) ; socketAddr = new java.net.InetSocketAddress ( hostAddr , mPort ) ; } catch ( java.net.UnknownHostException e ) { return false ; } try { mSocketChannel = java.nio.channels.SocketChannel.open ( socketAddr ) ; } catch ( java.io.IOException e1 ) { return false ; } readLines ( ) ; return true ; }

Target:
private synchronized boolean checkConnection ( ) { if ( ( mSocketChannel ) == null ) { java.net.InetSocketAddress socketAddr ; try { java.net.InetAddress hostAddr = java.net.InetAddress.getByName ( com.android.ddmlib.EmulatorConsole.HOST ) ; socketAddr = new java.net.InetSocketAddress ( hostAddr , mPort ) ; mSocketChannel = java.nio.channels.SocketChannel.open ( socketAddr ) ; mSocketChannel.configureBlocking ( false ) ; readLines ( ) ; } catch ( java.io.IOException e ) { com.android.ddmlib.Log.w ( com.android.ddmlib.EmulatorConsole.LOG_TAG , ( "Failed to start Emulator console for " + ( java.lang.Integer.toString ( mPort ) ) ) ) ; return false ; } } return ping ( ) ; }
Source:
public synchronized android.database.sqlite.SQLiteDatabase getReadableDatabase ( ) { try { return super . getReadableDatabase ( ) ; } catch ( com.android.service.ims.presence.InvalidDBException e ) { com.android.service.ims.presence.DatabaseContentProvider.logger.error ( "getReadableDatabase - caught InvalidDBException " ) ; } if ( null != ( mDatabaseFile ) ) { com.android.service.ims.presence.DatabaseContentProvider.logger.error ( "deleting mDatabaseFile." ) ; mDatabaseFile.delete ( ) ; } return super . getReadableDatabase ( ) ; }

Target:
public synchronized android.database.sqlite.SQLiteDatabase getReadableDatabase ( ) { try { return super . getReadableDatabase ( ) ; } catch ( java.lang.Exception e ) { com.android.service.ims.presence.DatabaseContentProvider.logger.error ( ( "getReadableDatabase exception " + e ) ) ; } if ( null != ( mDatabaseFile ) ) { com.android.service.ims.presence.DatabaseContentProvider.logger.error ( "deleting mDatabaseFile." ) ; mDatabaseFile.delete ( ) ; } return super . getReadableDatabase ( ) ; }
Source:
public void testConstructor_IllegalCanonicalName_Middle ( ) { try { new tests.api.java.nio.charset.CharsetTest.MockCharset ( "1%%23" , new java.lang.String [ ] { "mock" } ) ; fail ( "Should throw IllegalCharsetNameException!" ) ; } catch ( java.nio.charset.IllegalCharsetNameException e ) { } try { new tests.api.java.nio.charset.CharsetTest.MockCharset ( "1//23" , new java.lang.String [ ] { "mock" } ) ; fail ( "Should throw IllegalCharsetNameException!" ) ; } catch ( java.nio.charset.IllegalCharsetNameException e ) { } }

Target:
public void test_UTF_16LE ( ) throws java.lang.Exception { java.nio.charset.Charset cs = java.nio.charset.Charset.forName ( "UTF-16LE" ) ; assertEncodes ( cs , "a٦" , 'a' , 0 , 102 , 6 ) ; assertDecodes ( cs , "﻿a٦" , 255 , 254 , 'a' , 0 , 102 , 6 ) ; assertDecodes ( cs , "�a٦" , 254 , 255 , 'a' , 0 , 102 , 6 ) ; assertDecodes ( cs , "a٦" , 'a' , 0 , 102 , 6 ) ; }
Source:
public void run ( ) { try { eventQueue.add ( shutDownSentinel ) ; shutDownLatch.await ( ) ; } catch ( java.lang.InterruptedException e ) { } }

Target:
private java.util.concurrent.BlockingQueue < com.android.sched.util.log.tracer.AbstractTracer.TracerEvent > openQueue ( ) { final java.util.concurrent.BlockingQueue < com.android.sched.util.log.tracer.AbstractTracer.TracerEvent > eventQueue = new java.util.concurrent.LinkedBlockingQueue < com.android.sched.util.log.tracer.AbstractTracer.TracerEvent > ( ) ; java.lang.Thread logWriterWorker = new com.android.sched.util.log.tracer.AbstractTracer.LogWriterThread ( eventQueue ) ; logWriterWorker.setPriority ( ( ( ( java.lang.Thread.MIN_PRIORITY ) + ( java.lang.Thread.NORM_PRIORITY ) ) / 2 ) ) ; logWriterWorker.setDaemon ( true ) ; logWriterWorker.setName ( "StatsLogger writer" ) ; logWriterWorker.start ( ) ; return eventQueue ; }
Source:
public com.android.sdklib.devices.DeviceManager.DeviceStatus getDeviceStatus ( @ com.android.annotations.Nullable java.lang.String sdkLocation , java.lang.String name , java.lang.String manufacturer , int hashCode ) { com.android.sdklib.devices.Device d = getDevice ( sdkLocation , name , manufacturer ) ; if ( d == null ) { return com.android.sdklib.devices.DeviceManager.DeviceStatus.MISSING ; } else { return ( d.hashCode ( ) ) == hashCode ? com.android.sdklib.devices.DeviceManager.DeviceStatus.EXISTS : com.android.sdklib.devices.DeviceManager.DeviceStatus.CHANGED ; } }

Target:
public void registerListener ( com.android.sdklib.devices.DeviceManager.DevicesChangedListener listener ) { if ( listener != null ) { synchronized ( sListeners ) { if ( ! ( sListeners.contains ( listener ) ) ) { sListeners.add ( listener ) ; } } } }
Source:
protected boolean mustTag ( org.eclipse.jdt.core.dom.AbstractTypeDeclaration node ) { boolean mustTag = false ; if ( ( ( node.getModifiers ( ) ) & ( org.eclipse.jdt.core.dom.Modifier.PUBLIC ) ) > 0 ) { mustTag = true ; for ( com.google.currysrc.api.transform.ast.TypeLocater whitelistedType : whitelist ) { if ( whitelistedType.matches ( node ) ) { mustTag = false ; break ; } } } return mustTag ; }

Target:
protected boolean mustTag ( org.eclipse.jdt.core.dom.AbstractTypeDeclaration node ) { boolean mustTag = false ; if ( ( ( node.getModifiers ( ) ) & ( org.eclipse.jdt.core.dom.Modifier.PUBLIC ) ) > 0 ) { mustTag = true ; for ( com.google.currysrc.api.process.ast.TypeLocator whitelistedType : whitelist ) { if ( whitelistedType.matches ( node ) ) { mustTag = false ; break ; } } } return mustTag ; }
Source:
public int getSupportedLoggerFeatureSet ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getSupportedLoggerFeatureSetNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return 0 ; } } }

Target:
public int getSupportedLoggerFeatureSet ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getSupportedLoggerFeatureSet ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getSupportedLoggerFeatureSetNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return 0 ; } } } }
Source:
public void testEnumValueOf ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { java.lang.reflect.Method method = com.android.jack.java8.parameter.test002.Tests.Number.class . getDeclaredMethod ( "valueOf" , java.lang.String.class ) ; junit.framework.Assert.assertEquals ( 1 , method.getParameters ( ) . length ) ; check ( method.getParameters ( ) [ 0 ] , "name" , true , true , false , com.android.jack.java8.parameter.test002.Tests.MODIFIER_IMPLICIT ) ; }

Target:
public void testEnumValueOf ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { java.lang.reflect.Method method = com.android.jack.java8.parameter.test002.Tests.Number.class . getDeclaredMethod ( "valueOf" , java.lang.String.class ) ; junit.framework.Assert.assertEquals ( 1 , method.getParameters ( ) . length ) ; check ( method.getParameters ( ) [ 0 ] , "name" , true , true , false , ParameterTestModifier.MODIFIER_IMPLICIT ) ; }
Source:
public void run ( ) { mHandler.removeCallbacks ( this ) ; final int returnCode = deletePackageX ( packageName , userId , flags ) ; if ( observer != null ) { try { observer.onPackageDeleted ( packageName , returnCode , null ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }

Target:
public void finishPackageInstall ( int token , boolean didLaunch ) { com.android.server.pm.PackageManagerService.enforceSystemOrRoot ( "Only the system is allowed to finish installs" ) ; if ( com.android.server.pm.PackageManagerService.DEBUG_INSTALL ) { android.util.Slog.v ( com.android.server.pm.PackageManagerService.TAG , ( "BM finishing package install for " + token ) ) ; } android.os.Trace.asyncTraceEnd ( android.os.Trace.TRACE_TAG_PACKAGE_MANAGER , "restore" , token ) ; final android.os.Message msg = mHandler.obtainMessage ( com.android.server.pm.PackageManagerService.POST_INSTALL , token , ( didLaunch ? 1 : 0 ) ) ; mHandler.sendMessage ( msg ) ; }
Source:
public void callOnDropped ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.common.api.IDragElement [ ] elements , com.android.ide.common.api.DropFeedback feedback , com.android.ide.common.api.Point where ) { com.android.ide.common.api.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onDropped ( targetNode , elements , feedback , where ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropped() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }

Target:
public void callOnDropped ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.common.api.IDragElement [ ] elements , com.android.ide.common.api.DropFeedback feedback , com.android.ide.common.api.Point where , com.android.ide.common.api.InsertType insertType ) { com.android.ide.common.api.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { mInsertType = insertType ; rule.onDropped ( targetNode , elements , feedback , where ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropped() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }
Source:
public void scheduleAtFixedRate ( java.util.TimerTask task , long delay , long period ) { if ( ( delay < 0 ) || ( period <= 0 ) ) { throw new java.lang.IllegalArgumentException ( ) ; } scheduleImpl ( task , delay , period , true ) ; }

Target:
private static java.lang.Long computeDelayUntilNextTask ( java.util.Timer.ScheduledTask scheduledTask ) { if ( scheduledTask == null ) { return null ; } long currentTimeMillis = java.lang.System.currentTimeMillis ( ) ; if ( ( scheduledTask.nextExecution ) < currentTimeMillis ) { return 0L ; } else { return ( scheduledTask.nextExecution ) - currentTimeMillis ; } }
Source:
public void run ( ) { try { try { java.lang.System.err.println ( "read..." ) ; int i = s.getInputStream ( ) . read ( ) ; fail ( ( "read returned " + i ) ) ; } catch ( java.net.SocketException expected ) { assertEquals ( "Socket closed" , expected.getMessage ( ) ) ; } } catch ( java.lang.Throwable ex ) { thrownExceptions.add ( ex ) ; } }

Target:
public void run ( ) { try { try { java.lang.System.err.println ( "read..." ) ; int i = s.getInputStream ( ) . read ( ) ; fail ( ( "read returned: " + i ) ) ; } catch ( java.net.SocketException expected ) { assertEquals ( "Socket closed" , expected.getMessage ( ) ) ; } } catch ( java.lang.Throwable ex ) { thrownExceptions.add ( ex ) ; } }
Source:
private void doTestDragAndDrop ( java.lang.String sourceMode , java.lang.String targetMode , java.lang.String expectedDropResult ) throws java.lang.Exception { launchDockedActivity ( mSourcePackageName , android.wm.cts.CrossAppDragAndDropTests.SOURCE_ACTIVITY_NAME , sourceMode ) ; launchFullscreenActivity ( mTargetPackageName , android.wm.cts.CrossAppDragAndDropTests.TARGET_ACTIVITY_NAME , targetMode ) ; clearLogs ( ) ; injectInput ( getWindowCenter ( getComponentName ( mSourcePackageName , android.wm.cts.CrossAppDragAndDropTests.SOURCE_ACTIVITY_NAME ) ) , getWindowCenter ( getComponentName ( mTargetPackageName , android.wm.cts.CrossAppDragAndDropTests.TARGET_ACTIVITY_NAME ) ) , android.wm.cts.CrossAppDragAndDropTests.SWIPE_DURATION_MS ) ; mResults = getLogResults ( android.wm.cts.CrossAppDragAndDropTests.TARGET_LOG_TAG ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_DROP_RESULT , expectedDropResult ) ; }

Target:
private void doTestDragAndDrop ( java.lang.String sourceMode , java.lang.String targetMode , java.lang.String expectedDropResult ) throws java.lang.Exception { if ( ! ( supportsDragAndDrop ( ) ) ) { return ; } launchDockedActivity ( mSourcePackageName , android.wm.cts.CrossAppDragAndDropTests.SOURCE_ACTIVITY_NAME , sourceMode ) ; launchFullscreenActivity ( mTargetPackageName , android.wm.cts.CrossAppDragAndDropTests.TARGET_ACTIVITY_NAME , targetMode ) ; clearLogs ( ) ; injectInput ( getWindowCenter ( getComponentName ( mSourcePackageName , android.wm.cts.CrossAppDragAndDropTests.SOURCE_ACTIVITY_NAME ) ) , getWindowCenter ( getComponentName ( mTargetPackageName , android.wm.cts.CrossAppDragAndDropTests.TARGET_ACTIVITY_NAME ) ) , android.wm.cts.CrossAppDragAndDropTests.SWIPE_DURATION_MS ) ; mResults = getLogResults ( android.wm.cts.CrossAppDragAndDropTests.TARGET_LOG_TAG ) ; assertResult ( android.wm.cts.CrossAppDragAndDropTests.RESULT_KEY_DROP_RESULT , expectedDropResult ) ; }
Source:
public void setup ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; com.android.server.wifi.nan.WifiNanHalTest.resetWifiNanNative ( ) ; com.android.server.wifi.HalMockUtils.initHalMockLibrary ( ) ; com.android.server.wifi.nan.WifiNanHalMock.initNanHalMockLibrary ( mDut ) ; com.android.server.wifi.nan.WifiNanNative.initNanHandlersNative ( com.android.server.wifi.WifiNative.class , WifiNative.sWlan0Index ) ; com.android.server.wifi.HalMockUtils.setHalMockObject ( mNanHalMock ) ; com.android.server.wifi.nan.WifiNanHalTest.installMockNanStateManager ( mNanStateManager ) ; }

Target:
public void setup ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; com.android.server.wifi.aware.WifiAwareHalTest.resetWifiAwareNative ( ) ; com.android.server.wifi.HalMockUtils.initHalMockLibrary ( ) ; com.android.server.wifi.aware.WifiAwareHalMock.initAwareHalMockLibrary ( mDut ) ; com.android.server.wifi.aware.WifiAwareNative.initAwareHandlersNative ( com.android.server.wifi.WifiNative.class , WifiNative.sWlan0Index ) ; com.android.server.wifi.HalMockUtils.setHalMockObject ( mAwareHalMock ) ; com.android.server.wifi.aware.WifiAwareHalTest.installMockAwareStateManager ( mAwareStateManager ) ; }
Source:
public void testHeader_BoundaryCheck ( ) throws java.io.IOException { java.lang.String resourceName = "resources/test.rtf" ; java.net.URL url = java.lang.ClassLoader.getSystemClassLoader ( ) . getResource ( resourceName ) ; java.net.URLConnection urlConnection = url.openConnection ( ) ; assertNull ( urlConnection.getHeaderField ( java.lang.Integer.MIN_VALUE ) ) ; assertNull ( urlConnection.getHeaderField ( java.lang.Integer.MAX_VALUE ) ) ; assertNull ( urlConnection.getHeaderFieldKey ( java.lang.Integer.MIN_VALUE ) ) ; assertNull ( urlConnection.getHeaderFieldKey ( java.lang.Integer.MAX_VALUE ) ) ; assertNull ( urlConnection.getHeaderField ( null ) ) ; }

Target:
public void testHeader_BoundaryCheck ( ) throws java.io.IOException { java.net.URL url = createTempFileWithContent ( org.apache.harmony.tests.internal.net.www.protocol.file.FileURLConnectionTest.RESOURCE_NAME ) ; java.net.URLConnection urlConnection = url.openConnection ( ) ; assertNull ( urlConnection.getHeaderField ( java.lang.Integer.MIN_VALUE ) ) ; assertNull ( urlConnection.getHeaderField ( java.lang.Integer.MAX_VALUE ) ) ; assertNull ( urlConnection.getHeaderFieldKey ( java.lang.Integer.MIN_VALUE ) ) ; assertNull ( urlConnection.getHeaderFieldKey ( java.lang.Integer.MAX_VALUE ) ) ; assertNull ( urlConnection.getHeaderField ( null ) ) ; }
Source:
private void sendConnectMessage ( int masId ) { if ( ( mSessionStatusHandler ) != null ) { android.os.Message msg = mSessionStatusHandler.obtainMessage ( com.android.bluetooth.map.BluetoothMapService.MSG_MAS_CONNECT , masId , 0 ) ; mSessionStatusHandler.sendMessageDelayed ( msg , 20 ) ; } }

Target:
public void sendStartListenerMessage ( int masId ) { if ( ( ( mSessionStatusHandler ) != null ) && ( ! ( mSessionStatusHandler.hasMessages ( com.android.bluetooth.map.BluetoothMapService.START_LISTENER ) ) ) ) { android.os.Message msg = mSessionStatusHandler.obtainMessage ( com.android.bluetooth.map.BluetoothMapService.START_LISTENER , masId , 0 ) ; mSessionStatusHandler.sendMessageDelayed ( msg , 20 ) ; } else if ( ( mSessionStatusHandler ) != null ) { if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) android.util.Log.w ( com.android.bluetooth.map.BluetoothMapService.TAG , "mSessionStatusHandler START_LISTENER message already in Queue" ) ; } }
Source:
public static com.android.jack.library.OutputJackLibrary getOutputLibrary ( @ javax.annotation.Nonnull com.android.sched.vfs.InputOutputVFS vdir , @ javax.annotation.Nonnull java.lang.String emitterId , @ javax.annotation.Nonnull java.lang.String emitterVersion ) { return new com.android.jack.library.v0001.OutputJackLibraryImpl ( vdir , emitterId , emitterVersion ) ; }

Target:
public static com.android.jack.library.OutputJackLibrary getOutputLibrary ( @ javax.annotation.Nonnull com.android.sched.vfs.InputOutputVFS vfs , @ javax.annotation.Nonnull java.lang.String emitterId , @ javax.annotation.Nonnull java.lang.String emitterVersion ) { if ( com.android.sched.util.config.ThreadConfig.get ( com.android.jack.library.JackLibraryFactory.GENERATE_JACKLIB_DIGEST ) . booleanValue ( ) ) { vfs = new com.android.sched.vfs.MessageDigestInputOutputVFS ( vfs , com.android.sched.util.config.ThreadConfig.get ( com.android.jack.library.JackLibraryFactory.MESSAGE_DIGEST_ALGO ) ) ; } return new com.android.jack.library.v0001.OutputJackLibraryImpl ( vfs , emitterId , emitterVersion ) ; }
Source:
public void onProgressUpdated ( android.telephony.mbms.DownloadRequest request , android.telephony.mbms.FileInfo fileInfo , int currentDownloadSize , int fullDownloadSize , int currentDecodedSize , int fullDecodedSize ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = request ; args.arg2 = fileInfo ; args.arg3 = currentDownloadSize ; args.arg4 = fullDownloadSize ; args.arg5 = currentDecodedSize ; args.arg6 = fullDecodedSize ; mProgressUpdatedCalls.add ( args ) ; }

Target:
public void onProgressUpdated ( android.telephony.mbms.DownloadRequest request , android.telephony.mbms.FileInfo fileInfo , int currentDownloadSize , int fullDownloadSize , int currentDecodedSize , int fullDecodedSize ) { android.telephony.embms.cts.SomeArgs args = android.telephony.embms.cts.SomeArgs.obtain ( ) ; args.arg1 = request ; args.arg2 = fileInfo ; args.arg3 = currentDownloadSize ; args.arg4 = fullDownloadSize ; args.arg5 = currentDecodedSize ; args.arg6 = fullDecodedSize ; mProgressUpdatedCalls.add ( args ) ; }
Source:
public void testEncode ( ) throws java.io.IOException { assertEquals ( java.util.Arrays.toString ( new byte [ ] { 'B' , 'C' , ( ( byte ) ( 192 ) ) , ( ( byte ) ( 128 ) ) } ) , java.util.Arrays.toString ( com.android.dx.util.Mutf8.encode ( "BC" ) ) ) ; }

Target:
public void testEncode ( ) throws java.io.IOException { assertEquals ( java.util.Arrays.toString ( new byte [ ] { 'B' , 'C' , ( ( byte ) ( 192 ) ) , ( ( byte ) ( 128 ) ) } ) , java.util.Arrays.toString ( com.android.dex.Mutf8.encode ( "BC" ) ) ) ; }
Source:
public java.util.List < java.io.File > getPackagedJars ( @ com.android.annotations.NonNull com.android.builder.VariantConfiguration variantConfiguration ) { java.util.List < java.io.File > packagedJars = variantConfiguration.getPackagedJars ( ) ; com.android.builder.model.ProductFlavor mergedFlavor = variantConfiguration.getMergedFlavor ( ) ; if ( mergedFlavor.getRenderscriptSupportMode ( ) ) { java.io.File renderScriptSupportJar = getRenderScriptSupportJar ( ) ; java.util.List < java.io.File > fullJars = com.google.common.collect.Lists.newArrayListWithCapacity ( ( ( packagedJars.size ( ) ) + 1 ) ) ; fullJars.addAll ( packagedJars ) ; fullJars.add ( renderScriptSupportJar ) ; packagedJars = fullJars ; } return packagedJars ; }

Target:
public java.util.Set < java.io.File > getPackagedJars ( @ com.android.annotations.NonNull com.android.builder.VariantConfiguration variantConfiguration ) { java.util.Set < java.io.File > packagedJars = variantConfiguration.getPackagedJars ( ) ; com.android.builder.model.ProductFlavor mergedFlavor = variantConfiguration.getMergedFlavor ( ) ; if ( mergedFlavor.getRenderscriptSupportMode ( ) ) { java.io.File renderScriptSupportJar = getRenderScriptSupportJar ( ) ; java.util.Set < java.io.File > fullJars = com.google.common.collect.Sets.newHashSetWithExpectedSize ( ( ( packagedJars.size ( ) ) + 1 ) ) ; fullJars.addAll ( packagedJars ) ; fullJars.add ( renderScriptSupportJar ) ; packagedJars = fullJars ; } return packagedJars ; }
Source:
public static final javax.crypto.Mac getInstance ( java.lang.String algorithm ) throws java.security.NoSuchAlgorithmException { if ( algorithm == null ) { throw new java.lang.NullPointerException ( "algorithm == null" ) ; } org.apache.harmony.security.fortress.Engine.SpiAndProvider sap = javax.crypto.Mac.ENGINE.getInstance ( algorithm , null ) ; return new javax.crypto.Mac ( ( ( javax.crypto.MacSpi ) ( sap.spi ) ) , sap.provider , algorithm ) ; }

Target:
public static final javax.crypto.Mac getInstance ( java.lang.String algorithm , java.security.Provider provider ) throws java.security.NoSuchAlgorithmException { if ( provider == null ) { throw new java.lang.IllegalArgumentException ( "provider == null" ) ; } return javax.crypto.Mac.getMac ( algorithm , provider ) ; }
Source:
private static void tryToReadFromAllIn ( java.io.File dir ) throws java.io.IOException { assertTrue ( dir.isDirectory ( ) ) ; if ( android.permission.cts.FileSystemPermissionTest.isSymbolicLink ( dir ) ) { return ; } java.io.File [ ] files = dir.listFiles ( ) ; if ( files != null ) { for ( java.io.File f : files ) { if ( f.isDirectory ( ) ) { android.permission.cts.FileSystemPermissionTest.tryToReadFromAllIn ( f ) ; } else { android.permission.cts.FileSystemPermissionTest.tryFileRead ( f ) ; } } } }

Target:
private static void tryToReadFromAllIn ( java.io.File dir , java.util.concurrent.ExecutorService executor ) throws java.io.IOException { assertTrue ( dir.isDirectory ( ) ) ; if ( android.permission.cts.FileSystemPermissionTest.isSymbolicLink ( dir ) ) { return ; } java.io.File [ ] files = dir.listFiles ( ) ; if ( files != null ) { for ( java.io.File f : files ) { if ( f.isDirectory ( ) ) { android.permission.cts.FileSystemPermissionTest.tryToReadFromAllIn ( f , executor ) ; } else { android.permission.cts.FileSystemPermissionTest.tryFileOpenRead ( f , executor ) ; } } } }
Source:
public void setCLIR ( int clirMode , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SET_CLIR , result ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( clirMode ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + clirMode ) ) ; send ( rr ) ; }

Target:
public void setCLIR ( int clirMode , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SET_CLIR , result , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( clirMode ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + clirMode ) ) ; send ( rr ) ; }
Source:
public org.objectweb.asm.FieldVisitor visitField ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.Object value ) { return new org.objectweb.asm.FieldVisitor ( Opcodes.ASM4 , super . visitField ( access , name , desc , signature , value ) ) { @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return new org.objectweb.asm.ClassAdapterTest.AnnotationAdapter ( super . visitAnnotation ( desc , visible ) ) ; } } ; }

Target:
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation ( int typeRef , org.objectweb.asm.TypePath typePath , java.lang.String desc , boolean visible ) { return new org.objectweb.asm.ClassAdapterTest.AnnotationAdapter ( super . visitTypeAnnotation ( typeRef , typePath , desc , visible ) ) ; }
Source:
public boolean hasOverlappingRendering ( ) { return ( ( ( ( getBackground ( ) ) != null ) && ( ( getBackground ( ) . getCurrent ( ) ) != null ) ) || ( ( mText ) instanceof android.text.Spannable ) ) || ( hasSelection ( ) ) ; }

Target:
public boolean hasOverlappingRendering ( ) { return ( ( ( ( ( getBackground ( ) ) != null ) && ( ( getBackground ( ) . getCurrent ( ) ) != null ) ) || ( ( mText ) instanceof android.text.Spannable ) ) || ( hasSelection ( ) ) ) || ( isHorizontalFadingEdgeEnabled ( ) ) ; }
Source:
protected static void collectExistingIds ( com.android.ide.common.api.INode root , java.util.Set < java.lang.String > existingIdSet ) { if ( root == null ) { return ; } java.lang.String id = root.getStringAttr ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID ) ; if ( id != null ) { id = com.android.ide.common.layout.BaseLayoutRule.normalizeId ( id ) ; if ( ! ( existingIdSet.contains ( id ) ) ) { existingIdSet.add ( id ) ; } } for ( com.android.ide.common.api.INode child : root.getChildren ( ) ) { com.android.ide.common.layout.BaseLayoutRule.collectExistingIds ( child , existingIdSet ) ; } }

Target:
protected static void collectExistingIds ( com.android.ide.common.api.INode root , java.util.Set < java.lang.String > existingIdSet ) { if ( root == null ) { return ; } java.lang.String id = root.getStringAttr ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID ) ; if ( id != null ) { id = com.android.ide.common.layout.BaseLayoutRule.normalizeId ( id ) ; if ( ! ( existingIdSet.contains ( id ) ) ) { existingIdSet.add ( id ) ; } } for ( com.android.ide.common.api.INode child : root.getChildren ( ) ) { com.android.ide.common.layout.BaseLayoutRule.collectExistingIds ( child , existingIdSet ) ; } }
Source:
private com.android.jack.Options addCommonOptionsForMultiDex ( @ javax.annotation.Nonnull java.io.File configFile ) { com.android.jack.Options app1Options = new com.android.jack.Options ( ) ; app1Options.addProperty ( MultiDexLegacy.MULTIDEX_LEGACY.getName ( ) , "true" ) ; app1Options.addProperty ( PreProcessor.ENABLE.getName ( ) , "true" ) ; app1Options.addProperty ( PreProcessor.FILE.getName ( ) , configFile.getAbsolutePath ( ) ) ; return app1Options ; }

Target:
private java.lang.String getListingOfDex ( @ javax.annotation.Nonnull java.io.File dex ) throws java.io.IOException { assert dex.isFile ( ) ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( com.android.jack.dx.io.ClassDef def : new com.android.jack.dx.io.DexBuffer ( dex ) . classDefs ( ) ) { sb.append ( def.getTypeName ( ) ) ; sb.append ( ":" ) ; sb.append ( TextUtils.LINE_SEPARATOR ) ; } return sb.toString ( ) ; }
Source:
java.lang.String getTimestamp ( ) { java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ss" ) ; java.util.TimeZone gmt = java.util.TimeZone.getTimeZone ( "UTC" ) ; dateFormat.setTimeZone ( gmt ) ; dateFormat.setLenient ( true ) ; java.lang.String timestamp = dateFormat.format ( new java.util.Date ( ) ) ; return timestamp ; }

Target:
java.lang.String getTimestamp ( ) { java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ss" , java.util.Locale.getDefault ( ) ) ; java.util.TimeZone gmt = java.util.TimeZone.getTimeZone ( "UTC" ) ; dateFormat.setTimeZone ( gmt ) ; dateFormat.setLenient ( true ) ; java.lang.String timestamp = dateFormat.format ( new java.util.Date ( ) ) ; return timestamp ; }
Source:
public void setBackgroundColor ( final int color ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { org.chromium.base.ThreadUtils.postOnUiThread ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setBackgroundColor ( color ) ; } } ) ; return ; } mAwContents.setBackgroundColor ( color ) ; }

Target:
public boolean requestChildRectangleOnScreen ( final android.view.View child , final android.graphics.Rect rect , final boolean immediate ) { 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 requestChildRectangleOnScreen ( child , rect , immediate ) ; } } ) ; return ret ; } return mAwContents.requestChildRectangleOnScreen ( child , rect , immediate ) ; }