auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.android.sched.vfs.VFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { com.android.sched.util.RunnableHooks hooks = context.getRunnableHooks ( ) ; try { return new com.android.sched.vfs.ReadWriteZipFS ( new com.android.sched.util.file.OutputZipFile ( context.getWorkingDirectory ( ) , string , hooks , existence , change ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }

Target:
public com.android.sched.vfs.VFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { com.android.sched.util.RunnableHooks hooks = context.getRunnableHooks ( ) ; try { java.security.Provider.Service service = messageDigestCodec.checkString ( context , "SHA" ) ; return new com.android.sched.vfs.ReadWriteZipFS ( new com.android.sched.util.file.OutputZipFile ( context.getWorkingDirectory ( ) , string , hooks , existence , change ) , 1 , 2 , new com.android.sched.util.config.MessageDigestFactory ( service ) , false ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }
Source:
public void testAesCbcHmacMd5Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacMd5Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 ) ; }
Source:
private < U extends com.android.sched.item.Component > com.android.sched.util.log.Event logAndTrace ( @ javax.annotation.Nonnull com.android.sched.schedulable.Schedulable schedulable , @ javax.annotation.Nonnull U data ) { if ( com.android.sched.scheduler.ScheduleInstance.logger.isLoggable ( java.util.logging.Level.FINEST ) ) { com.android.sched.scheduler.ScheduleInstance.logger.log ( java.util.logging.Level.FINEST , "Run {0} ''{1}'' on ''{2}''" , new java.lang.Object [ ] { schedulable instanceof com.android.sched.schedulable.AdapterSchedulable ? "adapter" : "runner" , getSchedulableName ( schedulable.getClass ( ) ) , data } ) ; } if ( tracer.isTracing ( ) ) { return tracer.start ( getSchedulableName ( schedulable.getClass ( ) ) ) ; } else { return tracer.start ( "<no-name>" ) ; } }

Target:
private < U extends com.android.sched.item.Component > com.android.sched.util.log.Event logAndTrace ( @ javax.annotation.Nonnull com.android.sched.schedulable.Schedulable schedulable , @ javax.annotation.Nonnull U data ) { if ( com.android.sched.scheduler.ScheduleInstance.logger.isLoggable ( java.util.logging.Level.FINEST ) ) { com.android.sched.scheduler.ScheduleInstance.logger.log ( java.util.logging.Level.FINEST , "Run {0} ''{1}'' on ''{2}''" , new java.lang.Object [ ] { schedulable instanceof com.android.sched.schedulable.AdapterSchedulable ? "adapter" : "runner" , getSchedulableName ( schedulable.getClass ( ) ) , data } ) ; } if ( tracer.isTracing ( ) ) { return tracer.open ( getSchedulableName ( schedulable.getClass ( ) ) ) ; } else { return tracer.open ( "<no-name>" ) ; } }
Source:
public void reloadConfig ( ) throws com.android.jack.server.api.v01.ServerException , com.android.sched.util.file.CannotChangePermissionException , com.android.sched.util.file.CannotCreateFileException , com.android.sched.util.file.NotFileException , com.android.sched.util.file.WrongPermissionException , java.io.IOException { shutdownConnections ( ) ; try { checkAccess ( serverDir ) ; loadConfig ( ) ; } catch ( com.android.sched.util.file.CannotCreateFileException | java.io.IOException | com.android.sched.util.file.NotFileException | com.android.sched.util.file.WrongPermissionException | com.android.sched.util.file.CannotChangePermissionException e ) { shutdown ( ) ; throw e ; } start ( new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ) ; }

Target:
public void reloadConfig ( ) throws com.android.jack.server.api.v01.ServerException , com.android.sched.util.file.CannotCreateFileException , com.android.sched.util.file.NotFileException , com.android.sched.util.file.WrongPermissionException , java.io.IOException { shutdownConnections ( ) ; try { checkAccess ( serverDir , java.util.EnumSet.of ( java.nio.file.attribute.PosixFilePermission.OWNER_READ , java.nio.file.attribute.PosixFilePermission.OWNER_WRITE , java.nio.file.attribute.PosixFilePermission.OWNER_EXECUTE ) ) ; loadConfig ( ) ; } catch ( com.android.sched.util.file.CannotCreateFileException | java.io.IOException | com.android.sched.util.file.NotFileException | com.android.sched.util.file.WrongPermissionException e ) { shutdown ( ) ; throw e ; } start ( new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { mTargetContext = android.support.test.InstrumentationRegistry.getTargetContext ( ) ; if ( ! ( mTargetContext.getResources ( ) . getBoolean ( R.bool.profile_supported_hfpclient ) ) ) { return ; } startServices ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( ! ( mTargetContext.getResources ( ) . getBoolean ( R.bool.profile_supported_hfpclient ) ) ) { return ; } com.android.bluetooth.TestUtils.stopService ( mServiceRule , com.android.bluetooth.hfpclient.HeadsetClientService.class ) ; mService = com.android.bluetooth.hfpclient.HeadsetClientService.getHeadsetClientService ( ) ; org.junit.Assert.assertNull ( mService ) ; com.android.bluetooth.TestUtils.clearAdapterService ( mAdapterService ) ; }
Source:
public boolean reportError ( byte error ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "reportError(), error = " + error ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.reportError ( error ) ; }

Target:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "connect(): device=" + device ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.connect ( device ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( ! ( mAutoScrollLock ) ) { return ; } boolean isAtBottom = ( ( vbar.getThumb ( ) ) + ( vbar.getSelection ( ) ) ) == ( vbar.getMaximum ( ) ) ; setScrollToLatestLog ( isAtBottom ) ; mScrollLockCheckBox.setSelection ( isAtBottom ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( ! ( mAutoScrollLock ) ) { return ; } int diff = ( ( vbar.getThumb ( ) ) + ( vbar.getSelection ( ) ) ) - ( vbar.getMaximum ( ) ) ; boolean isAtBottom = ( java.lang.Math.abs ( diff ) ) < ( ( vbar.getThumb ( ) ) / 2 ) ; if ( isAtBottom != ( mShouldScrollToLatestLog ) ) { setScrollToLatestLog ( isAtBottom ) ; mScrollLockCheckBox.setSelection ( isAtBottom ) ; } }
Source:
public void baseTest ( int testid , long seed , int refStride , int outStride , int inStride , int skip , int ulp ) { baseTestHelper ( testid , null , null , seed , 1 , 0 , 1 , 0 , refStride , outStride , inStride , skip , ulp ) ; }

Target:
public void baseTest ( int testid , long seed , int refStride , int outStride , int inStride , int skip , int ulp ) { baseTestHelper ( testid , null , null , seed , 0.0F , 1.0F , 1 , 0 , refStride , outStride , inStride , skip , ulp ) ; }
Source:
private void handleUserUnlockOrSwitch ( int userId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Loading from store after user switch/unlock for " + userId ) ) ; } if ( ( mWifiConfigStoreLegacy.areStoresPresent ( ) ) && ( ! ( mWifiConfigStore.areStoresPresent ( ) ) ) ) { android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , ( "Legacy store files found. Ignore user switch/unlock until migration is " + "complete!" ) ) ; return ; } if ( loadFromUserStoreAfterUnlockOrSwitch ( userId ) ) { saveToStore ( true ) ; mPendingUnlockStoreRead = false ; } }

Target:
public void handleUserUnlock ( int userId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Handling user unlock for " + userId ) ) ; } if ( mPendingStoreRead ) { android.util.Log.w ( com.android.server.wifi.WifiConfigManager.TAG , "Ignore user unlock until store is read!" ) ; mDeferredUserUnlockRead = true ; return ; } if ( ( userId == ( mCurrentUserId ) ) && ( mPendingUnlockStoreRead ) ) { handleUserUnlockOrSwitch ( mCurrentUserId ) ; } }
Source:
public android.net.NetworkStats addValues ( java.lang.String iface , int uid , int set , int tag , int roaming , long rxBytes , long rxPackets , long txBytes , long txPackets , long operations ) { return addValues ( new android.net.NetworkStats.Entry ( iface , uid , set , tag , roaming , rxBytes , rxPackets , txBytes , txPackets , operations ) ) ; }

Target:
public android.net.NetworkStats addValues ( java.lang.String iface , int uid , int set , int tag , int metered , int roaming , long rxBytes , long rxPackets , long txBytes , long txPackets , long operations ) { return addValues ( new android.net.NetworkStats.Entry ( iface , uid , set , tag , metered , roaming , rxBytes , rxPackets , txBytes , txPackets , operations ) ) ; }
Source:
private void doStart ( android.content.Intent intent ) { if ( ( mAdapter ) == null ) { android.util.Log.e ( mName , "Error starting profile. BluetoothAdapter is null" ) ; } else { if ( com.android.bluetooth.btservice.ProfileService.DBG ) { log ( "start()" ) ; } mStartError = ! ( start ( ) ) ; if ( ! ( mStartError ) ) { notifyProfileServiceStateChanged ( BluetoothAdapter.STATE_ON ) ; } else { android.util.Log.e ( mName , "Error starting profile. BluetoothAdapter is null" ) ; } } }

Target:
private void doStart ( android.content.Intent intent ) { if ( ( mAdapter ) == null ) { android.util.Log.e ( mName , "Error starting profile. BluetoothAdapter is null" ) ; } else { if ( com.android.bluetooth.btservice.ProfileService.DBG ) { log ( "start()" ) ; } mStartError = ! ( start ( ) ) ; if ( ! ( mStartError ) ) { notifyProfileServiceStateChanged ( BluetoothAdapter.STATE_ON ) ; } else { android.util.Log.e ( mName , "Error starting profile. start() returned false." ) ; } } }
Source:
private void updateVoicemailNotifications ( ) { android.content.Intent serviceIntent = new android.content.Intent ( getActivity ( ) , com.android.dialer.calllog.CallLogNotificationsService.class ) ; serviceIntent.setAction ( CallLogNotificationsService.ACTION_UPDATE_NOTIFICATIONS ) ; getActivity ( ) . startService ( serviceIntent ) ; }

Target:
private void updateEmptyMessage ( int filterType ) { final java.lang.String message ; switch ( filterType ) { case android.provider.CallLog.Calls.MISSED_TYPE : message = getString ( R.string.recentMissed_empty ) ; break ; case CallLogQueryHandler.CALL_TYPE_ALL : message = getString ( R.string.recentCalls_empty ) ; break ; default : throw new java.lang.IllegalArgumentException ( ( "Unexpected filter type in CallLogFragment: " + filterType ) ) ; } ( ( android.widget.TextView ) ( getListView ( ) . getEmptyView ( ) ) ) . setText ( message ) ; }
Source:
public static long getMobileTcpRxPackets ( ) { long total = 0 ; for ( java.lang.String iface : android.net.TrafficStats.getMobileIfaces ( ) ) { long stat = android.net.TrafficStats.UNSUPPORTED ; try { stat = android.net.TrafficStats.getStatsService ( ) . getIfaceStats ( iface , android.net.TrafficStats.TYPE_TCP_RX_PACKETS ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } if ( stat != ( android.net.TrafficStats.UNSUPPORTED ) ) { total += stat ; } } return total ; }

Target:
private static long addIfSupported ( long stat ) { return stat == ( android.net.TrafficStats.UNSUPPORTED ) ? 0 : stat ; }
Source:
public java.lang.Object clone ( ) { sun.security.provider.certpath.AdaptableX509CertSelector copy = ( ( sun.security.provider.certpath.AdaptableX509CertSelector ) ( super . clone ( ) ) ) ; if ( ( startDate ) != null ) { copy.startDate = ( ( java.util.Date ) ( startDate.clone ( ) ) ) ; } if ( ( endDate ) != null ) { copy.endDate = ( ( java.util.Date ) ( endDate.clone ( ) ) ) ; } return copy ; }

Target:
public java.lang.Object clone ( ) { sun.security.provider.certpath.AdaptableX509CertSelector copy = ( ( sun.security.provider.certpath.AdaptableX509CertSelector ) ( super . clone ( ) ) ) ; if ( ( startDate ) != null ) { copy.startDate = ( ( java.util.Date ) ( startDate.clone ( ) ) ) ; } if ( ( endDate ) != null ) { copy.endDate = ( ( java.util.Date ) ( endDate.clone ( ) ) ) ; } if ( ( ski ) != null ) { copy.ski = ski.clone ( ) ; } return copy ; }
Source:
public final java.lang.String toString ( ) { com.android.jack.util.DefaultTextOutput out = new com.android.jack.util.DefaultTextOutput ( true ) ; com.android.jack.ir.impl.ToStringGenerationVisitor v = new com.android.jack.ir.impl.ToStringGenerationVisitor ( out ) ; v.accept ( this ) ; return out.toString ( ) ; }

Target:
public final java.lang.String toString ( ) { java.lang.String str ; com.android.jack.util.DefaultTextOutput out = new com.android.jack.util.DefaultTextOutput ( true ) ; com.android.jack.ir.impl.ToStringGenerationVisitor v = new com.android.jack.ir.impl.ToStringGenerationVisitor ( out ) ; v.accept ( this ) ; str = out.toString ( ) ; com.android.jack.ir.sourceinfo.SourceInfo sourceInfo = getSourceInfo ( ) ; if ( sourceInfo != ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { str += ( " (" + ( getSourceInfo ( ) . toString ( ) ) ) + ")" ; } return str ; }
Source:
protected void cleanup ( ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "cleanup()" ) ; } if ( mNativeAvailable ) { mHidDeviceNativeInterface.cleanup ( ) ; mNativeAvailable = false ; } com.android.bluetooth.hid.HidDeviceService.setHidDeviceService ( null ) ; }

Target:
protected boolean stop ( ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "stop()" ) ; } com.android.bluetooth.hid.HidDeviceService.setHidDeviceService ( null ) ; if ( mNativeAvailable ) { mHidDeviceNativeInterface.cleanup ( ) ; mNativeAvailable = false ; } mActivityManager.removeOnUidImportanceListener ( mUidImportanceListener ) ; return true ; }
Source:
void stopComposition ( ) { try { if ( ( mLooper ) != null ) { mLooper.quit ( ) ; mCompositionThread.join ( ) ; } } catch ( java.lang.InterruptedException e ) { } mCompositionThread = null ; mSurface = null ; mStartCompletionSemaphore = null ; }

Target:
void stopComposition ( ) { try { if ( ( mLooper ) != null ) { mLooper.quit ( ) ; mCompositionThread.join ( ) ; } } catch ( java.lang.InterruptedException e ) { } cleanupGl ( ) ; mCompositionThread = null ; mSurface = null ; mStartCompletionSemaphore = null ; }
Source:
private static byte [ ] readLengthPrefixedByteArray ( java.nio.ByteBuffer buf ) throws java.io.IOException { int len = buf.getInt ( ) ; if ( len < 0 ) { throw new java.io.IOException ( "Negative length" ) ; } else if ( len > ( buf.remaining ( ) ) ) { throw new java.io.IOException ( ( ( ( "Underflow while reading length-prefixed value. Length: " + len ) + ", available: " ) + ( buf.remaining ( ) ) ) ) ; } byte [ ] result = new byte [ len ] ; buf.get ( result ) ; return result ; }

Target:
private static byte [ ] readLengthPrefixedByteArray ( java.nio.ByteBuffer buf ) throws com.android.apksig.apk.ApkFormatException { int len = buf.getInt ( ) ; if ( len < 0 ) { throw new com.android.apksig.apk.ApkFormatException ( "Negative length" ) ; } else if ( len > ( buf.remaining ( ) ) ) { throw new com.android.apksig.apk.ApkFormatException ( ( ( ( "Underflow while reading length-prefixed value. Length: " + len ) + ", available: " ) + ( buf.remaining ( ) ) ) ) ; } byte [ ] result = new byte [ len ] ; buf.get ( result ) ; return result ; }
Source:
public void clientSetPreferredPhy ( int clientIf , java.lang.String address , int txPhy , int rxPhy , int phyOptions ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; }

Target:
void clientSetPreferredPhy ( int clientIf , java.lang.String address , int txPhy , int rxPhy , int phyOptions ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.lang.Integer connId = mClientMap.connIdByAddress ( clientIf , address ) ; if ( connId == null ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "clientSetPreferredPhy() - no connection to " + address ) ) ; return ; } if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( "clientSetPreferredPhy() - address=" + address ) + ", connId=" ) + connId ) ) ; gattClientSetPreferredPhyNative ( clientIf , connId , txPhy , rxPhy , phyOptions ) ; }
Source:
public void run ( ) { org.eclipse.swt.graphics.Image screenshotImage = getScreenshotImage ( device ) ; if ( screenshotImage != null ) { com.android.hierarchyviewerlib.device.ViewNode viewNode = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindowData ( com.android.hierarchyviewerlib.device.Window.getFocusedWindow ( device ) ) ; if ( viewNode != null ) { com.android.hierarchyviewerlib.models.PixelPerfectModel.getModel ( ) . setData ( device , screenshotImage , viewNode ) ; } } }

Target:
public void run ( ) { com.android.hierarchyviewerlib.device.IHvDevice hvDevice = getHvDevice ( device ) ; com.android.hierarchyviewerlib.models.ViewNode viewNode = hvDevice.loadWindowData ( com.android.hierarchyviewerlib.models.Window.getFocusedWindow ( hvDevice ) ) ; if ( viewNode != null ) { com.android.hierarchyviewerlib.models.PixelPerfectModel.getModel ( ) . setTree ( viewNode ) ; } }
Source:
public long calculateInstalledSize ( java.lang.String packagePath , boolean isForwardLocked ) throws android.os.RemoteException { final java.io.File packageFile = new java.io.File ( packagePath ) ; try { return ( ( calculateContainerSize ( packageFile , isForwardLocked ) ) * 1024 ) * 1024 ; } catch ( java.io.IOException e ) { return ( packageFile.length ( ) ) * 2 ; } }

Target:
public long calculateInstalledSize ( java.lang.String packagePath , boolean isForwardLocked , java.lang.String abiOverride ) throws android.os.RemoteException { final java.io.File packageFile = new java.io.File ( packagePath ) ; try { return ( ( calculateContainerSize ( packageFile , isForwardLocked , abiOverride ) ) * 1024 ) * 1024 ; } catch ( java.io.IOException e ) { return ( packageFile.length ( ) ) * 2 ; } }
Source:
public boolean contains ( java.lang.Object o ) { if ( ! ( o instanceof java.util.Map.Entry ) ) return false ; java.util.Map.Entry < ? , ? > e = ( ( java.util.Map.Entry < ? , ? > ) ( o ) ) ; V v = this . get ( e.getKey ( ) ) ; return ( v != null ) && ( v.equals ( e.getValue ( ) ) ) ; }

Target:
public void putAll ( java.util.Map < ? extends K , ? extends V > m ) { tryPresize ( m.size ( ) ) ; for ( java.util.Map.Entry < ? extends K , ? extends V > e : m.entrySet ( ) ) putVal ( e.getKey ( ) , e.getValue ( ) , false ) ; }
Source:
public void lceData ( int indicationType , android.hardware.radio.V1_0.LceDataInfo var2 ) { }

Target:
public void lceData ( int indicationType , android.hardware.radio.V1_0.LceDataInfo lce ) { mRil.processIndication ( indicationType ) ; java.util.ArrayList < java.lang.Integer > response = com.android.internal.telephony.RIL.convertHalLceData ( lce , mRil ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_LCEDATA_RECV , response ) ; if ( ( mRil.mLceInfoRegistrant ) != null ) { mRil.mLceInfoRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , response , null ) ) ; } }
Source:
void createReportTasks ( org.gradle.model.collection.CollectionBuilder < org.gradle.api.Task > tasks , com.android.build.gradle.model.AndroidComponentSpec spec ) { com.android.build.gradle.internal.VariantManager variantManager ; ( spec = DefaultAndroidComponentSpec ) . new tasks.create ( "androidDependencies" , DependencyReportTask ) { com.android.build.gradle.internal.tasks.DependencyReportTask dependencyReportTask = com.android.build.gradle.model.dependencyReportTask.setDescription ( "Displays the Android dependencies of the project" ) . setVariants ( variantManager.variantDataList ) . setGroup ( "Android" ) [ tasks.create ( "signingReport" , com.android.build.gradle.internal.tasks.SigningReportTask ) ] ; { com.android.build.gradle.internal.tasks.SigningReportTask signingReportTask ; signingReportTask.setDescription ( "Displays the signing info for each variant" ) ; signingReportTask.setVariants ( variantManager.variantDataList ) ; signingReportTask.setGroup ( "Android" ) ; } } ; }

Target:
public void execute ( com.android.build.gradle.internal.tasks.DependencyReportTask dependencyReportTask ) { dependencyReportTask.setDescription ( "Displays the Android dependencies of the project" ) ; dependencyReportTask.setVariants ( variantManager.getVariantDataList ( ) ) ; dependencyReportTask.setGroup ( "Android" ) ; }
Source:
public void close ( ) { if ( ! ( isClosed ( ) ) ) { synchronized ( mLock ) { try { mChannel.close ( ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( android.se.omapi.Channel.TAG , "Error closing channel" , e ) ; } } } }

Target:
public void close ( ) { if ( isOpen ( ) ) { synchronized ( mLock ) { try { mChannel.close ( ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( android.se.omapi.Channel.TAG , "Error closing channel" , e ) ; } } } }
Source:
public boolean handlePinMmi ( java.lang.String dialString ) { android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "method handlePinMmi is NOT supported in CDMA!" ) ; return false ; }

Target:
public boolean handlePinMmi ( java.lang.String dialString ) { com.android.internal.telephony.cdma.CdmaMmiCode mmi = com.android.internal.telephony.cdma.CdmaMmiCode.newFromDialString ( dialString , this ) ; if ( mmi == null ) { android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "Mmi is NULL!" ) ; return false ; } else if ( mmi.isPukCommand ( ) ) { mPendingMmis.add ( mmi ) ; mMmiRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , mmi , null ) ) ; mmi.processCode ( ) ; return true ; } android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "Unrecognized mmi!" ) ; return false ; }
Source:
private boolean shouldNotify ( ) { com.intellij.openapi.application.Application application = com.intellij.openapi.application.ApplicationManager.getApplication ( ) ; if ( ( application.isUnitTestMode ( ) ) || ( application.isHeadlessEnvironment ( ) ) ) { return false ; } return ( ( myEditor ) != null ) && ( ! ( myProcessSelectedText ) ) ; }

Target:
private boolean shouldNotify ( ) { com.intellij.openapi.application.Application application = com.intellij.openapi.application.ApplicationManager.getApplication ( ) ; if ( ( application.isUnitTestMode ( ) ) || ( application.isHeadlessEnvironment ( ) ) ) { return false ; } com.intellij.openapi.editor.ex.EditorSettingsExternalizable.OptionSet editorOptions = com.intellij.openapi.editor.ex.EditorSettingsExternalizable.getInstance ( ) . getOptions ( ) ; return ( ( editorOptions.SHOW_NOTIFICATION_AFTER_REFORMAT_CODE_ACTION ) && ( ( myEditor ) != null ) ) && ( ! ( myProcessSelectedText ) ) ; }
Source:
public android.net.wifi.WifiLinkLayerStats getWifiLinkLayerStats ( java.lang.String iface ) { if ( iface == null ) return null ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getWifiLinkLayerStatsNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } }

Target:
public android.net.wifi.WifiLinkLayerStats getWifiLinkLayerStats ( java.lang.String iface ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getWifiLinkLayerStats ( ) ; } else { if ( iface == null ) return null ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getWifiLinkLayerStatsNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } } }
Source:
public void close ( java.io.FileDescriptor fd ) throws android.system.ErrnoException { try { if ( S_ISSOCK ( Libcore.os.fstat ( fd ) . st_mode ) ) { if ( libcore.io.BlockGuardOs.isLingerSocket ( fd ) ) { dalvik.system.BlockGuard.getThreadPolicy ( ) . onNetwork ( ) ; } untagSocket ( fd ) ; } } catch ( android.system.ErrnoException ignored ) { } os.close ( fd ) ; }

Target:
public void close ( java.io.FileDescriptor fd ) throws android.system.ErrnoException { try { if ( ( ( dalvik.system.BlockGuard.getThreadPolicy ( ) . getPolicyMask ( ) ) & ( dalvik.system.BlockGuard.DISALLOW_NETWORK ) ) != 0 ) { if ( libcore.io.BlockGuardOs.isLingerSocket ( fd ) ) { dalvik.system.BlockGuard.getThreadPolicy ( ) . onNetwork ( ) ; } } untagSocket ( fd ) ; } catch ( android.system.ErrnoException ignored ) { } os.close ( fd ) ; }
Source:
public static long queryNumEntries ( android.database.sqlite.SQLiteDatabase db , java.lang.String table ) { android.database.Cursor cursor = db.query ( table , android.database.DatabaseUtils.countProjection , null , null , null , null , null ) ; try { cursor.moveToFirst ( ) ; return cursor.getLong ( 0 ) ; } finally { cursor.close ( ) ; } }

Target:
public static long queryNumEntries ( android.database.sqlite.SQLiteDatabase db , java.lang.String table , java.lang.String selection ) { return android.database.DatabaseUtils.queryNumEntries ( db , table , selection , null ) ; }
Source:
public void onRadioStateUnavailable ( ) { if ( ( mUiccCard ) != null ) { mUiccCard.dispose ( ) ; } mUiccCard = null ; if ( ( mPhoneId ) != ( com.android.internal.telephony.uicc.UiccSlot.INVALID_PHONE_ID ) ) { com.android.internal.telephony.uicc.UiccController.updateInternalIccState ( IccCardConstants.INTENT_VALUE_ICC_UNKNOWN , null , mPhoneId ) ; } mCardState = com.android.internal.telephony.uicc.IccCardStatus.CardState.CARDSTATE_ABSENT ; mLastRadioState = com.android.internal.telephony.CommandsInterface.RadioState.RADIO_UNAVAILABLE ; }

Target:
public void onRadioStateUnavailable ( ) { if ( ( mUiccCard ) != null ) { mUiccCard.dispose ( ) ; } nullifyUiccCard ( true ) ; if ( ( mPhoneId ) != ( com.android.internal.telephony.uicc.UiccSlot.INVALID_PHONE_ID ) ) { com.android.internal.telephony.uicc.UiccController.updateInternalIccState ( IccCardConstants.INTENT_VALUE_ICC_UNKNOWN , null , mPhoneId ) ; } mCardState = com.android.internal.telephony.uicc.IccCardStatus.CardState.CARDSTATE_ABSENT ; mLastRadioState = com.android.internal.telephony.CommandsInterface.RadioState.RADIO_UNAVAILABLE ; }
Source:
public void onResult ( java.lang.Void request , java.util.List < java.lang.String > ... result ) { if ( ( result.length ) > 0 ) { com.android.server.telecom.Log.d ( this , "maybeLoadCannedSmsResponses: got %s" , result [ 0 ] ) ; mCannedSmsResponses = result [ 0 ] ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onCannedSmsResponsesLoaded ( this ) ; } } }

Target:
public void onResult ( java.lang.Void request , java.util.List < java.lang.String > ... result ) { if ( ( result.length ) > 0 ) { android.telecom.Log.d ( this , "maybeLoadCannedSmsResponses: got %s" , result [ 0 ] ) ; mCannedSmsResponses = result [ 0 ] ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onCannedSmsResponsesLoaded ( this ) ; } } }
Source:
public final boolean forEach ( @ org.jetbrains.annotations.NotNull com.intellij.util.indexing.ValueContainer.ContainerAction < Value > action ) { for ( final java.util.Iterator < Value > valueIterator = getValueIterator ( ) ; valueIterator.hasNext ( ) ; ) { final Value value = valueIterator.next ( ) ; for ( final com.intellij.util.indexing.ValueContainer.IntIterator intIterator = getInputIdsIterator ( value ) ; intIterator.hasNext ( ) ; ) { if ( ! ( action.perform ( intIterator.next ( ) , value ) ) ) return false ; } } return true ; }

Target:
public final boolean forEach ( @ org.jetbrains.annotations.NotNull com.intellij.util.indexing.ValueContainer.ContainerAction < Value > action ) { for ( final com.intellij.util.indexing.ValueContainer.ValueIterator < Value > valueIterator = getValueIterator ( ) ; valueIterator.hasNext ( ) ; ) { final Value value = valueIterator.next ( ) ; for ( final com.intellij.util.indexing.ValueContainer.IntIterator intIterator = valueIterator.getInputIdsIterator ( ) ; intIterator.hasNext ( ) ; ) { if ( ! ( action.perform ( intIterator.next ( ) , value ) ) ) return false ; } } return true ; }
Source:
public java.lang.String getViewHeader ( android.content.Context context ) { return getNumber ( ) ; }

Target:
public java.lang.String getViewHeader ( android.content.Context context ) { java.lang.String number = mValues.getAsString ( Calls.NUMBER ) ; if ( number != null ) { number = com.android.contacts.common.compat.PhoneNumberUtilsCompat.formatNumber ( number , com.android.contacts.common.compat.PhoneNumberUtilsCompat.normalizeNumber ( number ) , com.android.contacts.common.GeoUtil.getCurrentCountryIso ( context ) ) ; return com.android.contacts.interactions.CallLogInteraction.sBidiFormatter.unicodeWrap ( number , TextDirectionHeuristics.LTR ) ; } return null ; }
Source:
public final void testSet ( ) { com.android.ide.eclipse.adt.editors.layout.gscripts.Point p = new com.android.ide.eclipse.adt.editors.layout.gscripts.Point ( 1 , 2 ) ; assertEquals ( 1 , p.x ) ; assertEquals ( 2 , p.y ) ; p.set ( ( - 3 ) , ( - 4 ) ) ; assertEquals ( ( - 3 ) , p.x ) ; assertEquals ( ( - 4 ) , p.y ) ; }

Target:
public final void testSet ( ) { com.android.ide.common.api.Point p = new com.android.ide.common.api.Point ( 1 , 2 ) ; assertEquals ( 1 , p.x ) ; assertEquals ( 2 , p.y ) ; p.set ( ( - 3 ) , ( - 4 ) ) ; assertEquals ( ( - 3 ) , p.x ) ; assertEquals ( ( - 4 ) , p.y ) ; }
Source:
public boolean countryUsesUtc ( java.lang.String isoCountryCode , long whenMillis ) { if ( android.text.TextUtils.isEmpty ( isoCountryCode ) ) { return false ; } libcore.util.CountryTimeZones countryTimeZones = libcore.util.TimeZoneFinder.getInstance ( ) . lookupCountryTimeZones ( isoCountryCode ) ; return ( countryTimeZones != null ) && ( countryTimeZones.hasUtcZone ( whenMillis ) ) ; }

Target:
public boolean countryUsesUtc ( java.lang.String isoCountryCode , long whenMillis ) { if ( android.text.TextUtils.isEmpty ( isoCountryCode ) ) { return false ; } libcore.util.CountryTimeZones countryTimeZones = getCountryTimeZones ( isoCountryCode ) ; return ( countryTimeZones != null ) && ( countryTimeZones.hasUtcZone ( whenMillis ) ) ; }
Source:
private static byte [ ] [ ] genConst ( ) { int n = 10 ; byte [ ] [ ] arr = new byte [ n ] [ ] ; for ( int i = 0 ; i < n ; i ++ ) { byte [ ] b = new byte [ i + 1 ] ; org.bouncycastle.util.Arrays.fill ( b , ( ( byte ) ( 'A' + i ) ) ) ; arr [ i ] = b ; } return arr ; }

Target:
private static byte [ ] [ ] genSSL3Const ( ) { int n = 10 ; byte [ ] [ ] arr = new byte [ n ] [ ] ; for ( int i = 0 ; i < n ; i ++ ) { byte [ ] b = new byte [ i + 1 ] ; org.bouncycastle.util.Arrays.fill ( b , ( ( byte ) ( 'A' + i ) ) ) ; arr [ i ] = b ; } return arr ; }
Source:
public void tearDown ( ) throws java.lang.Exception { getDevice ( ) . waitForDeviceOnline ( ( 60 * 1000 ) ) ; assertTrue ( "Phone has had a hard reset" , ( ( ( ( ( java.lang.System.currentTimeMillis ( ) ) / 1000 ) - ( java.lang.Integer.parseInt ( getDevice ( ) . executeShellCommand ( "cut -f1 -d. /proc/uptime" ) . trim ( ) ) ) ) - ( kernelStartTime ) ) < 2 ) ) ; getDevice ( ) . executeAdbCommand ( "unroot" ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { getDevice ( ) . waitForDeviceOnline ( ( 60 * 1000 ) ) ; java.lang.String uptime = getDevice ( ) . executeShellCommand ( "cat /proc/uptime" ) ; assertTrue ( "Phone has had a hard reset" , ( ( ( ( ( java.lang.System.currentTimeMillis ( ) ) / 1000 ) - ( java.lang.Integer.parseInt ( uptime.substring ( 0 , uptime.indexOf ( '.' ) ) ) ) ) - ( kernelStartTime ) ) < 2 ) ) ; getDevice ( ) . executeAdbCommand ( "unroot" ) ; }
Source:
public boolean matches ( @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JAnnotation > t ) { boolean annotationFound = false ; for ( com.android.jack.ir.ast.JAnnotation annotation : t ) { if ( annotationType.matches ( com.android.jack.shrob.proguard.GrammarActions.getBinaryNameFormatter ( ) . getName ( annotation.getType ( ) ) ) ) { annotationFound = true ; } } if ( ! annotationFound ) { return false ; } return true ; }

Target:
public boolean matches ( @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JAnnotation > t ) { boolean annotationFound = false ; for ( com.android.jack.ir.ast.JAnnotation annotation : t ) { if ( annotationType.matches ( com.android.jack.shrob.proguard.GrammarActions.getSourceFormatter ( ) . getName ( annotation.getType ( ) ) ) ) { annotationFound = true ; } } if ( ! annotationFound ) { return false ; } return true ; }
Source:
private static java.lang.String decodeUtf16 ( byte [ ] data , int offset , int numFields ) throws com.android.internal.telephony.cdma.sms.BearerData.CodingException { int byteCount = numFields * 2 ; if ( ( byteCount < 0 ) || ( ( byteCount + offset ) > ( data.length ) ) ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( "UTF-16 decode failed: offset or length out of range" ) ; } try { return new java.lang.String ( data , offset , byteCount , "utf-16be" ) ; } catch ( java.io.UnsupportedEncodingException ex ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( ( "UTF-16 decode failed: " + ex ) ) ; } }

Target:
private static java.lang.String decodeShiftJis ( byte [ ] data , int offset , int numFields ) throws com.android.internal.telephony.cdma.sms.BearerData.CodingException { try { return new java.lang.String ( data , offset , ( numFields - offset ) , "Shift_JIS" ) ; } catch ( java.io.UnsupportedEncodingException ex ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( ( "Shift_JIS decode failed: " + ex ) ) ; } }
Source:
public void onCreate ( ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog dialog = new com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog ( mConfigComposite.getShell ( ) , mEditedFile.getName ( ) , mConfigComposite.getCurrentConfig ( ) ) ; if ( ( dialog.open ( ) ) == ( org.eclipse.jface.dialogs.Dialog.OK ) ) { final com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config = new com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration ( ) ; dialog.getConfiguration ( config ) ; createAlternateLayout ( config ) ; } }

Target:
public void onCreate ( ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog dialog = new com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog ( mConfigComposite.getShell ( ) , mEditedFile.getName ( ) , mConfigComposite.getCurrentConfig ( ) ) ; if ( ( dialog.open ( ) ) == ( org.eclipse.jface.window.Window.OK ) ) { final com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config = new com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration ( ) ; dialog.getConfiguration ( config ) ; createAlternateLayout ( config ) ; } }
Source:
protected android.app.Dialog onCreateDialog ( int id ) { switch ( id ) { case com.example.android.apis.view.DateWidgets1.TIME_DIALOG_ID : return new android.app.TimePickerDialog ( this , mTimeSetListener , mHour , mMinute , false ) ; case com.example.android.apis.view.DateWidgets1.DATE_DIALOG_ID : return new android.app.DatePickerDialog ( this , mDateSetListener , mYear , mMonth , mDay ) ; } return null ; }

Target:
protected android.app.Dialog onCreateDialog ( int id ) { switch ( id ) { case com.example.android.apis.view.DateWidgets1.TIME_12_DIALOG_ID : case com.example.android.apis.view.DateWidgets1.TIME_24_DIALOG_ID : return new android.app.TimePickerDialog ( this , mTimeSetListener , mHour , mMinute , ( id == ( com.example.android.apis.view.DateWidgets1.TIME_24_DIALOG_ID ) ) ) ; case com.example.android.apis.view.DateWidgets1.DATE_DIALOG_ID : return new android.app.DatePickerDialog ( this , mDateSetListener , mYear , mMonth , mDay ) ; } return null ; }
Source:
private E extract ( ) { final java.lang.Object [ ] items = this . items ; E x = this . < E > cast ( items [ takeIndex ] ) ; items [ takeIndex ] = null ; takeIndex = inc ( takeIndex ) ; -- ( count ) ; notFull.signal ( ) ; return x ; }

Target:
private E dequeue ( ) { final java.lang.Object [ ] items = this . items ; @ java.lang.SuppressWarnings ( value = "unchecked" ) E x = ( ( E ) ( items [ takeIndex ] ) ) ; items [ takeIndex ] = null ; takeIndex = inc ( takeIndex ) ; ( count ) -- ; if ( ( itrs ) != null ) itrs.elementDequeued ( ) ; notFull.signal ( ) ; return x ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; for ( android.icu.text.PluralRules.StandardPluralCategories i : android.icu.text.PluralRules.StandardPluralCategories.values ( ) ) { for ( android.icu.text.PluralRules.StandardPluralCategories j : android.icu.text.PluralRules.StandardPluralCategories.values ( ) ) { android.icu.text.PluralRules.StandardPluralCategories x = get ( i , j ) ; if ( x != null ) { result.append ( ( ( ( ( ( i + " & " ) + j ) + " → " ) + x ) + ";\n" ) ) ; } } } return result.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; for ( android.icu.impl.StandardPlural i : android.icu.impl.StandardPlural.values ( ) ) { for ( android.icu.impl.StandardPlural j : android.icu.impl.StandardPlural.values ( ) ) { android.icu.impl.StandardPlural x = get ( i , j ) ; if ( x != null ) { result.append ( ( ( ( ( ( i + " & " ) + j ) + " → " ) + x ) + ";\n" ) ) ; } } } return result.toString ( ) ; }
Source:
public void testCallMethodOnCreatedFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; mTestImsServiceBinder.isConnected ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , 0 , 0 ) ; org.mockito.Mockito.verify ( mTestImsService.mMockMMTelFeature ) . isConnected ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) ) ; }

Target:
public void testCallMethodOnCreatedFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; mTestImsServiceBinder.isConnected ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , 0 , 0 ) ; org.mockito.Mockito.verify ( mTestImsService.mSpyMMTelFeature ) . isConnected ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) ) ; }
Source:
private java.util.Collection < com.android.jack.preprocessor.Rule > parseRules ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session , @ javax.annotation.Nonnull java.io.InputStream inputStream ) throws java.io.IOException , org.antlr.runtime.RecognitionException { org.antlr.runtime.ANTLRInputStream in = new org.antlr.runtime.ANTLRInputStream ( inputStream ) ; com.android.jack.preprocessor.PreProcessorLexer lexer = new com.android.jack.preprocessor.PreProcessorLexer ( in ) ; org.antlr.runtime.CommonTokenStream tokens = new org.antlr.runtime.CommonTokenStream ( lexer ) ; com.android.jack.preprocessor.PreProcessorParser parser = new com.android.jack.preprocessor.PreProcessorParser ( tokens ) ; return parser.rules ( session ) ; }

Target:
private java.util.Collection < com.android.jack.preprocessor.Rule > parseRules ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session , @ javax.annotation.Nonnull java.io.InputStream inputStream , @ javax.annotation.Nonnull com.android.sched.util.location.Location location ) throws java.io.IOException , org.antlr.runtime.RecognitionException { org.antlr.runtime.ANTLRInputStream in = new org.antlr.runtime.ANTLRInputStream ( inputStream ) ; com.android.jack.preprocessor.PreProcessorLexer lexer = new com.android.jack.preprocessor.PreProcessorLexer ( in ) ; org.antlr.runtime.CommonTokenStream tokens = new org.antlr.runtime.CommonTokenStream ( lexer ) ; com.android.jack.preprocessor.PreProcessorParser parser = new com.android.jack.preprocessor.PreProcessorParser ( tokens ) ; return parser.rules ( session , location ) ; }
Source:
public void testE3 ( ) { dot.junit.opcodes.aput_short.d.T_aput_short_1 t = new dot.junit.opcodes.aput_short.d.T_aput_short_1 ( ) ; short [ ] arr = new short [ 2 ] ; try { t.run ( arr , ( - 1 ) , ( ( short ) ( 10000 ) ) ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testVFE4 ( ) { load ( "dot.junit.opcodes.aput_short.d.T_aput_short_5" , java.lang.VerifyError.class ) ; }
Source:
public void creation ( java.lang.Thread t ) throws java.io.IOException { try { mLogger.verbose ( "Thread(%1$s): create aapt slave" , java.lang.Thread.currentThread ( ) . getName ( ) ) ; com.android.builder.png.AaptProcess aaptProcess = new com.android.builder.png.AaptProcess.Builder ( mAaptLocation , mLogger ) . start ( ) ; assert aaptProcess != null ; mAaptProcesses.put ( t.getName ( ) , aaptProcess ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } }

Target:
public void creation ( java.lang.Thread t ) throws java.io.IOException { try { mLogger.verbose ( "Thread(%1$s): create aapt slave" , java.lang.Thread.currentThread ( ) . getName ( ) ) ; com.android.builder.png.AaptProcess aaptProcess = new com.android.builder.png.AaptProcess.Builder ( mAaptLocation , mLogger ) . start ( ) ; assert aaptProcess != null ; aaptProcess.waitForReady ( ) ; mAaptProcesses.put ( t.getName ( ) , aaptProcess ) ; } catch ( java.lang.InterruptedException e ) { mLogger.error ( e , "Cannot start slave process" ) ; e.printStackTrace ( ) ; } }
Source:
public java.io.OutputStream getOutputStream ( ) throws com.android.sched.util.file.WrongPermissionException { synchronized ( this ) { digests.remove ( getPath ( ) ) ; digest = null ; } return new java.security.DigestOutputStream ( wrappedFile.getOutputStream ( ) , mdFactory.create ( ) ) { @ java.lang.Override public void close ( ) throws java.io.IOException { super . close ( ) ; synchronized ( com.android.sched.vfs.MessageDigestFS.this ) { digests.put ( getPath ( ) , getDigestString ( getMessageDigest ( ) . digest ( ) ) ) ; this . digest = null ; } } } ; }

Target:
public java.io.OutputStream getOutputStream ( ) throws com.android.sched.util.file.WrongPermissionException { return vfs.openWrite ( this ) ; }
Source:
private void addDelayListener ( org.junit.runner.JUnitCore testRunner ) { try { java.lang.Object delay = getArguments ( ) . get ( com.android.test.runner.AndroidJUnitRunner.ARGUMENT_DELAY_MSEC ) ; if ( delay != null ) { int delayMsec = java.lang.Integer.parseInt ( delay.toString ( ) ) ; testRunner.addListener ( new com.android.test.runner.listener.DelayInjector ( delayMsec ) ) ; } } catch ( java.lang.NumberFormatException e ) { android.util.Log.e ( com.android.test.runner.AndroidJUnitRunner.LOG_TAG , "Invalid delay_msec parameter" , e ) ; } }

Target:
private void addDelayListener ( java.util.List < org.junit.runner.notification.RunListener > list , org.junit.runner.JUnitCore testRunner ) { try { java.lang.Object delay = getArguments ( ) . get ( com.android.test.runner.AndroidJUnitRunner.ARGUMENT_DELAY_MSEC ) ; if ( delay != null ) { int delayMsec = java.lang.Integer.parseInt ( delay.toString ( ) ) ; addListener ( list , testRunner , new com.android.test.runner.listener.DelayInjector ( delayMsec ) ) ; } } catch ( java.lang.NumberFormatException e ) { android.util.Log.e ( com.android.test.runner.AndroidJUnitRunner.LOG_TAG , "Invalid delay_msec parameter" , e ) ; } }
Source:
public void copyFrom ( byte [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } }

Target:
public void copyFrom ( int [ ] d ) { validateIsInt32 ( ) ; copyFromUnchecked ( d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
private void setMoodView ( int moodId , int textId ) { android.app.Notification notif = new android.app.Notification ( ) ; notif.contentIntent = makeMoodIntent ( moodId ) ; java.lang.CharSequence text = getText ( textId ) ; notif.tickerText = text ; notif.icon = moodId ; android.widget.RemoteViews contentView = new android.widget.RemoteViews ( getPackageName ( ) , R.layout.status_bar_balloon ) ; contentView.setTextViewText ( R.id.text , text ) ; contentView.setImageViewResource ( R.id.icon , moodId ) ; notif.contentView = contentView ; mNotificationManager.notify ( R.layout.status_bar_notifications , notif ) ; }

Target:
private void setMoodView ( int moodId , int textId ) { android.app.Notification notif = new android.app.Notification ( ) ; notif.contentIntent = makeMoodIntent ( moodId ) ; java.lang.CharSequence text = getText ( textId ) ; notif.tickerText = text ; notif.icon = moodId ; android.widget.RemoteViews contentView = new android.widget.RemoteViews ( getPackageName ( ) , R.layout.status_bar_balloon ) ; contentView.setTextViewText ( R.id.text , text ) ; contentView.setImageViewResource ( R.id.icon , moodId ) ; notif.contentView = contentView ; mNotificationManager.notify ( com.example.android.apis.app.StatusBarNotifications.MOOD_NOTIFICATIONS , notif ) ; }
Source:
public void testOpenUdpEncapsulationSocketOnRandomPort ( ) throws java.lang.Exception { android.net.IpSecUdpEncapResponse udpEncapResp = mIpSecService.openUdpEncapsulationSocket ( 0 , new android.os.Binder ( ) ) ; org.junit.Assert.assertNotNull ( udpEncapResp ) ; org.junit.Assert.assertEquals ( IpSecManager.Status.OK , udpEncapResp.status ) ; mIpSecService.closeUdpEncapsulationSocket ( udpEncapResp.resourceId ) ; udpEncapResp.fileDescriptor.close ( ) ; }

Target:
public void testOpenUdpEncapsulationSocketOnRandomPort ( ) throws java.lang.Exception { android.net.IpSecUdpEncapResponse udpEncapResp = mIpSecService.openUdpEncapsulationSocket ( 0 , new android.os.Binder ( ) ) ; org.junit.Assert.assertNotNull ( udpEncapResp ) ; org.junit.Assert.assertEquals ( IpSecManager.Status.OK , udpEncapResp.status ) ; org.junit.Assert.assertNotEquals ( 0 , udpEncapResp.port ) ; mIpSecService.closeUdpEncapsulationSocket ( udpEncapResp.resourceId ) ; udpEncapResp.fileDescriptor.close ( ) ; }