auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; m = new com.android.sdklib.internal.repository.packages.BrokenPackage ( null , "short description" , "long description" , 12 , 13 , "os/path" , com.android.sdklib.repository.descriptors.PkgDesc.newTool ( new com.android.sdklib.repository.FullRevision ( 1 , 2 , 3 , 4 ) , FullRevision.NOT_SPECIFIED ) ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; m = new com.android.sdklib.internal.repository.packages.BrokenPackage ( null , "short description" , "long description" , 12 , 13 , "os/path" , PkgDesc.Builder.newTool ( new com.android.sdklib.repository.FullRevision ( 1 , 2 , 3 , 4 ) , FullRevision.NOT_SPECIFIED ) . create ( ) ) ; }
Source:
static < V > V safeGet ( java.util.Map < ? , V > map , java.lang.Object key ) { try { return map.get ( key ) ; } catch ( java.lang.ClassCastException e ) { return null ; } }

Target:
static < V > V safeGet ( java.util.Map < ? , V > map , @ javax.annotation.Nullable java.lang.Object key ) { com.google.common.base.Preconditions.checkNotNull ( map ) ; try { return map.get ( key ) ; } catch ( java.lang.ClassCastException e ) { return null ; } catch ( java.lang.NullPointerException e ) { return null ; } }
Source:
public final void removeExtras ( java.lang.String connectionId , java.util.List < java.lang.String > keys ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = connectionId ; args.arg2 = keys ; mHandler.obtainMessage ( android.telecom.ConnectionServiceAdapterServant.MSG_REMOVE_EXTRAS , args ) . sendToTarget ( ) ; }

Target:
public final void removeExtras ( java.lang.String connectionId , java.util.List < java.lang.String > keys , android.telecom.Logging.Session.Info sessionInfo ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = connectionId ; args.arg2 = keys ; mHandler.obtainMessage ( android.telecom.ConnectionServiceAdapterServant.MSG_REMOVE_EXTRAS , args ) . sendToTarget ( ) ; }
Source:
public void writeRawLittleEndian32 ( final int value ) throws java.io.IOException { writeRawByte ( ( value & 255 ) ) ; writeRawByte ( ( ( value > > 8 ) & 255 ) ) ; writeRawByte ( ( ( value > > 16 ) & 255 ) ) ; writeRawByte ( ( ( value > > 24 ) & 255 ) ) ; }

Target:
public void writeRawLittleEndian32 ( final int value ) throws java.io.IOException { if ( ( buffer.remaining ( ) ) < 4 ) { throw new com.google.protobuf.nano.CodedOutputByteBufferNano.OutOfSpaceException ( buffer.position ( ) , buffer.limit ( ) ) ; } buffer.putInt ( value ) ; }
Source:
public void testCannotSetNegativeFixedLengthStreamingMode ( ) throws java.lang.Exception { server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; try { connection.setFixedLengthStreamingMode ( ( - 2 ) ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }

Target:
public void testCannotSetNegativeFixedLengthStreamingMode ( ) throws java.lang.Exception { server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; try { connection.setFixedLengthStreamingMode ( ( - 2 ) ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }
Source:
public void createAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , int appId , java.lang.String seInfo , int targetSdkVersion ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.createAppData ( uuid , packageName , userId , flags , appId , seInfo , targetSdkVersion ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void restoreconAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , int appId , java.lang.String seInfo ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.restoreconAppData ( uuid , packageName , userId , flags , appId , seInfo ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { updateBluetoothA2dpConfigurationValues ( ) ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { android.util.Log.d ( com.android.settings.DevelopmentSettings.TAG , ( "mBluetoothA2dpReceiver.onReceive intent=" + intent ) ) ; java.lang.String action = intent.getAction ( ) ; if ( BluetoothA2dp.ACTION_CODEC_CONFIG_CHANGED.equals ( action ) ) { android.bluetooth.BluetoothCodecStatus codecStatus = ( ( android.bluetooth.BluetoothCodecStatus ) ( intent.getParcelableExtra ( BluetoothCodecStatus.EXTRA_CODEC_STATUS ) ) ) ; android.util.Log.d ( com.android.settings.DevelopmentSettings.TAG , ( "Received BluetoothCodecStatus=" + codecStatus ) ) ; updateBluetoothA2dpConfigurationValues ( ) ; } }
Source:
public void download_downloadsChunkOfZip ( ) throws java.lang.Exception { java.io.File packageFile = java.nio.file.Paths.get ( mTargetContext.getCacheDir ( ) . getAbsolutePath ( ) , "ota.zip" ) . toFile ( ) ; java.nio.file.Files.deleteIfExists ( packageFile.toPath ( ) ) ; java.nio.file.Files.copy ( mTestContext.getResources ( ) . openRawResource ( R.raw.ota_002_package ) , packageFile.toPath ( ) ) ; java.lang.String url = "file://" + ( packageFile.getAbsolutePath ( ) ) ; java.io.File outFile = java.nio.file.Paths.get ( mTargetContext.getCacheDir ( ) . getAbsolutePath ( ) , "care_map.txt" ) . toFile ( ) ; java.nio.file.Files.deleteIfExists ( outFile.toPath ( ) ) ; com.example.android.systemupdatersample.util.FileDownloader downloader = new com.example.android.systemupdatersample.util.FileDownloader ( url , 1674 , 12 , outFile ) ; downloader.download ( ) ; java.lang.String downloadedContent = java.lang.String.join ( "\n" , java.nio.file.Files.readAllLines ( outFile.toPath ( ) ) ) ; junit.framework.Assert.assertEquals ( "CARE_MAP-TXT" , downloadedContent ) ; }

Target:
public void download_downloadsChunkOfZip ( ) throws java.lang.Exception { java.io.File packageFile = java.nio.file.Paths.get ( mTargetContext.getCacheDir ( ) . getAbsolutePath ( ) , "ota.zip" ) . toFile ( ) ; java.nio.file.Files.deleteIfExists ( packageFile.toPath ( ) ) ; java.nio.file.Files.copy ( mTestContext.getResources ( ) . openRawResource ( R.raw.ota_002_package ) , packageFile.toPath ( ) ) ; java.lang.String url = "file://" + ( packageFile.getAbsolutePath ( ) ) ; java.io.File outFile = java.nio.file.Paths.get ( mTargetContext.getCacheDir ( ) . getAbsolutePath ( ) , "care_map.txt" ) . toFile ( ) ; java.nio.file.Files.deleteIfExists ( outFile.toPath ( ) ) ; com.example.android.systemupdatersample.util.FileDownloader downloader = new com.example.android.systemupdatersample.util.FileDownloader ( url , 1674 , 12 , outFile ) ; downloader.download ( ) ; java.lang.String downloadedContent = java.lang.String.join ( "\n" , java.nio.file.Files.readAllLines ( outFile.toPath ( ) ) ) ; org.junit.Assert.assertEquals ( "CARE_MAP-TXT" , downloadedContent ) ; }
Source:
public void testAesCbcHmacSha256Tcp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , android.net.cts.IpSecManagerTest.getKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }

Target:
public void testAuthUdp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , auth , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , auth , true , 1 , true ) ; }
Source:
private boolean startIPv6 ( ) { mInterfaceParams = android.net.util.InterfaceParams.getByName ( mIfaceName ) ; if ( ( mInterfaceParams ) == null ) { mLog.e ( "Failed to find InterfaceParams" ) ; stopIPv6 ( ) ; return false ; } mRaDaemon = new android.net.ip.RouterAdvertisementDaemon ( mInterfaceParams ) ; if ( ! ( mRaDaemon.start ( ) ) ) { stopIPv6 ( ) ; return false ; } return true ; }

Target:
private boolean startIPv6 ( ) { mInterfaceParams = mDeps.getInterfaceParams ( mIfaceName ) ; if ( ( mInterfaceParams ) == null ) { mLog.e ( "Failed to find InterfaceParams" ) ; stopIPv6 ( ) ; return false ; } mRaDaemon = mDeps.getRouterAdvertisementDaemon ( mInterfaceParams ) ; if ( ! ( mRaDaemon.start ( ) ) ) { stopIPv6 ( ) ; return false ; } return true ; }
Source:
public void callSessionMergeFailed ( com.android.ims.internal.ImsCallSession session , com.android.ims.ImsReasonInfo reasonInfo ) { loge ( ( ( ( "callSessionMergeFailed :: session=" + session ) + "reasonInfo=" ) + reasonInfo ) ) ; synchronized ( this ) { if ( isMergeHost ( ) ) { processMergeFailed ( reasonInfo ) ; } else if ( ( mMergeHost ) != null ) { mMergeHost.processMergeFailed ( reasonInfo ) ; } else { loge ( "callSessionMergeFailed :: No merge host for this conference!" ) ; } } }

Target:
public void callSessionMergeFailed ( android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsReasonInfo reasonInfo ) { loge ( ( ( ( "callSessionMergeFailed :: session=" + session ) + "reasonInfo=" ) + reasonInfo ) ) ; synchronized ( this ) { if ( isMergeHost ( ) ) { processMergeFailed ( reasonInfo ) ; } else if ( ( mMergeHost ) != null ) { mMergeHost.processMergeFailed ( reasonInfo ) ; } else { loge ( "callSessionMergeFailed :: No merge host for this conference!" ) ; } } }
Source:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Object [ ] params ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setParameters ( params ) ; doLog ( lr , bundleName ) ; }

Target:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String msg , java.lang.Object [ ] params ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setParameters ( params ) ; doLog ( lr ) ; }
Source:
private void notifyInterfaceLinkStateChanged ( java.lang.String iface , boolean up ) { final int length = mObservers.beginBroadcast ( ) ; try { for ( int i = 0 ; i < length ; i ++ ) { try { mObservers.getBroadcastItem ( i ) . interfaceLinkStateChanged ( iface , up ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { } } } finally { mObservers.finishBroadcast ( ) ; } }

Target:
public void sendCallback ( android.net.INetworkManagementEventObserver o ) throws android.os.RemoteException ;
Source:
public java.lang.Number parse ( java.lang.String text , java.text.ParsePosition parsePosition ) { return ( ( java.lang.Number ) ( parse ( text , parsePosition , null ) ) ) ; }

Target:
public com.ibm.icu.util.CurrencyAmount parseCurrency ( java.lang.CharSequence text , java.text.ParsePosition parsePosition ) { try { com.ibm.icu.util.CurrencyAmount result = com.ibm.icu.impl.number.Parse.parseCurrency ( text , parsePosition , properties , symbols ) ; if ( result == null ) return null ; java.lang.Number number = result.getNumber ( ) ; if ( number instanceof java.math.BigDecimal ) { number = new com.ibm.icu.math.BigDecimal ( ( ( java.math.BigDecimal ) ( number ) ) ) ; result = new com.ibm.icu.util.CurrencyAmount ( number , result.getCurrency ( ) ) ; } return result ; } catch ( java.text.ParseException e ) { return null ; } }
Source:
private java.lang.String getCurrentAddrPlayer ( ) { com.android.bluetooth.avrcp.MediaPlayerInfo addrPlayer = getAddressedPlayerInfo ( ) ; if ( addrPlayer == null ) { android.util.Log.w ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "No current addressed player (" + ( mCurrAddrPlayerID ) ) + " not valid)" ) ) ; return "" ; } java.lang.String addrPlayerPackage = addrPlayer.getPackageName ( ) ; if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "Current addressed player's package: " + addrPlayerPackage ) ) ; return addrPlayerPackage ; }

Target:
private synchronized com.android.bluetooth.avrcp.MediaPlayerInfo removeMediaPlayerInfo ( java.lang.String packageName ) { int removeKey = - 1 ; for ( java.util.Map.Entry < java.lang.Integer , com.android.bluetooth.avrcp.MediaPlayerInfo > entry : mMediaPlayerInfoList.entrySet ( ) ) { if ( entry.getValue ( ) . getPackageName ( ) . equals ( packageName ) ) { removeKey = entry.getKey ( ) ; break ; } } if ( removeKey != ( - 1 ) ) { return mMediaPlayerInfoList.remove ( removeKey ) ; } return null ; }
Source:
public void focusChanged ( org.netbeans.api.visual.model.ObjectSceneEvent e , java.lang.Object oldFocus , java.lang.Object newFocus ) { displayNodeButton.setEnabled ( true ) ; invalidateButton.setEnabled ( true ) ; requestLayoutButton.setEnabled ( true ) ; java.util.Set < java.lang.Object > selection = new java.util.HashSet < java.lang.Object > ( ) ; selection.add ( newFocus ) ; scene.setSelectedObjects ( selection ) ; showProperties ( ( ( com.android.hierarchyviewer.scene.ViewNode ) ( newFocus ) ) ) ; layoutView.repaint ( ) ; }

Target:
public void focusChanged ( org.netbeans.api.visual.model.ObjectSceneEvent e , java.lang.Object oldFocus , java.lang.Object newFocus ) { displayNodeButton.setEnabled ( true ) ; invalidateButton.setEnabled ( true ) ; dumpDisplayListButton.setEnabled ( true ) ; requestLayoutButton.setEnabled ( true ) ; java.util.Set < java.lang.Object > selection = new java.util.HashSet < java.lang.Object > ( ) ; selection.add ( newFocus ) ; scene.setSelectedObjects ( selection ) ; showProperties ( ( ( com.android.hierarchyviewer.scene.ViewNode ) ( newFocus ) ) ) ; layoutView.repaint ( ) ; }
Source:
public void destroyAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , long ceDataInode ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.destroyAppData ( uuid , packageName , userId , flags , ceDataInode ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void destroyAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , long ceDataInode ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.destroyAppData ( uuid , packageName , userId , flags , ceDataInode ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
private void notifyAddressRemoved ( java.lang.String iface , android.net.LinkAddress address ) { final int length = mObservers.beginBroadcast ( ) ; try { for ( int i = 0 ; i < length ; i ++ ) { try { mObservers.getBroadcastItem ( i ) . addressRemoved ( iface , address ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { } } } finally { mObservers.finishBroadcast ( ) ; } }

Target:
private void notifyAddressUpdated ( java.lang.String iface , android.net.LinkAddress address ) { invokeForAllObservers ( ( o ) -> o.addressUpdated ( iface , address ) ) ; }
Source:
private void makeFakeSkinInternal ( java.io.File targetDir ) { com.android.sdklib.io.FileOp.append ( targetDir , "skins" , "HVGA" ) . mkdirs ( ) ; }

Target:
protected void makeFakeSkin ( java.io.File targetDir , java.lang.String skinName ) throws java.io.IOException { java.io.File skinFolder = com.android.sdklib.io.FileOp.append ( targetDir , "skins" , skinName ) ; skinFolder.mkdirs ( ) ; java.io.FileWriter out = new java.io.FileWriter ( new java.io.File ( skinFolder , "layout" ) ) ; out.write ( "parts {\n}\n" ) ; out.close ( ) ; }
Source:
public void ancestorMoved ( javax.swing.event.AncestorEvent event ) { viewer.setZoom ( com.android.draw9patch.ui.ImageEditorPanel.DEFAULT_ZOOM ) ; viewer.removeAncestorListener ( this ) ; }

Target:
private void convertTo9Patch ( ) { java.awt.image.BufferedImage buffer = com.android.draw9patch.graphics.GraphicsUtilities.createTranslucentCompatibleImage ( ( ( image.getWidth ( ) ) + 2 ) , ( ( image.getHeight ( ) ) + 2 ) ) ; java.awt.Graphics2D g2 = buffer.createGraphics ( ) ; g2.drawImage ( image , 1 , 1 , null ) ; g2.dispose ( ) ; image = buffer ; viewer.setImage ( image ) ; name = ( name.substring ( 0 , name.lastIndexOf ( '.' ) ) ) + ".9.png" ; }
Source:
private java.lang.String getRealCompilerFilter ( android.content.pm.PackageParser.Package pkg , java.lang.String targetCompilerFilter ) { int flags = pkg.applicationInfo.flags ; boolean vmSafeMode = ( flags & ( android.content.pm.ApplicationInfo.FLAG_VM_SAFE_MODE ) ) != 0 ; if ( vmSafeMode ) { return com.android.server.pm.PackageManagerServiceCompilerMapping.getNonProfileGuidedCompilerFilter ( targetCompilerFilter ) ; } if ( ( dalvik.system.DexFile.isProfileGuidedCompilerFilter ( targetCompilerFilter ) ) && ( com.android.server.pm.PackageDexOptimizer.isUsedByOtherApps ( pkg ) ) ) { return com.android.server.pm.PackageManagerServiceCompilerMapping.getNonProfileGuidedCompilerFilter ( targetCompilerFilter ) ; } return targetCompilerFilter ; }

Target:
private java.lang.String getRealCompilerFilter ( android.content.pm.ApplicationInfo info , java.lang.String targetCompilerFilter , boolean isUsedByOtherApps ) { int flags = info.flags ; boolean vmSafeMode = ( flags & ( android.content.pm.ApplicationInfo.FLAG_VM_SAFE_MODE ) ) != 0 ; if ( vmSafeMode ) { return com.android.server.pm.PackageManagerServiceCompilerMapping.getNonProfileGuidedCompilerFilter ( targetCompilerFilter ) ; } if ( ( dalvik.system.DexFile.isProfileGuidedCompilerFilter ( targetCompilerFilter ) ) && isUsedByOtherApps ) { return com.android.server.pm.PackageManagerServiceCompilerMapping.getNonProfileGuidedCompilerFilter ( targetCompilerFilter ) ; } return targetCompilerFilter ; }
Source:
void build ( ) { assert ( entry.getSuccessors ( ) . size ( ) ) == 1 ; com.android.jack.ir.ast.cfg.JBasicBlock block = buildBlock ( entry.getSuccessors ( ) . get ( 0 ) ) ; cfg.getEntryBlock ( ) . replaceAllSuccessors ( cfg.getExitBlock ( ) , block ) ; setUpCatchBlockReferences ( ) ; }

Target:
void build ( ) { assert ( entry.getSuccessors ( ) . size ( ) ) == 1 ; com.android.jack.cfg.BasicBlock firstBlock = entry.getSuccessors ( ) . get ( 0 ) ; getBlockOrEnqueue ( firstBlock ) ; while ( ! ( queue.isEmpty ( ) ) ) { buildBlock ( queue.pop ( ) ) ; } com.android.jack.ir.ast.cfg.JBasicBlock block = getBlockOrEnqueue ( firstBlock ) ; assert ! ( block instanceof com.android.jack.ir.ast.cfg.JPlaceholderBasicBlock ) ; cfg.getEntryBlock ( ) . replaceAllSuccessors ( cfg.getExitBlock ( ) , block ) ; setUpCatchBlockReferences ( ) ; }
Source:
public java.util.Collection < com.intellij.openapi.module.Module > getValidModules ( ) { com.intellij.openapi.module.Module [ ] modules = com.intellij.openapi.module.ModuleManager.getInstance ( getProject ( ) ) . getModules ( ) ; return java.util.Arrays.asList ( modules ) ; }

Target:
public java.util.Collection < com.intellij.openapi.module.Module > getValidModules ( ) { java.util.List < com.intellij.openapi.module.Module > validModules = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.intellij.openapi.module.Module module : com.intellij.openapi.module.ModuleManager.getInstance ( getProject ( ) ) . getModules ( ) ) { if ( ( com.google.gct.idea.appengine.gradle.facet.AppEngineGradleFacet.getAppEngineFacetByModule ( module ) ) != null ) { validModules.add ( module ) ; } } return validModules ; }
Source:
public void testShortDataDirDistroVersionFile ( ) throws java.lang.Exception { createSystemTzDataFileOnHost ( com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataCurrentDir , com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . build ( ) ) ; java.nio.file.Path distroVersionFile = dataCurrentDir.hostPath.resolve ( TimeZoneDistro.DISTRO_VERSION_FILE_NAME ) ; com.android.cts.tzdata.TzDataCheckTest.assertHostFileExists ( distroVersionFile ) ; java.nio.file.Files.write ( distroVersionFile , new byte [ 3 ] ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 3 , runTzDataCheckOnDevice ( ) ) ; assertDevicePathDoesNotExist ( dataCurrentDir ) ; }

Target:
public void testShortDataDirDistroVersionFile ( ) throws java.lang.Exception { createSystemTzDataFileOnHost ( com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataCurrentDir , com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . buildBytes ( ) ) ; java.nio.file.Path distroVersionFile = dataCurrentDir.hostPath.resolve ( TimeZoneDistro.DISTRO_VERSION_FILE_NAME ) ; com.android.cts.tzdata.TzDataCheckTest.assertHostFileExists ( distroVersionFile ) ; java.nio.file.Files.write ( distroVersionFile , new byte [ 3 ] ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 3 , runTzDataCheckOnDevice ( ) ) ; assertDevicePathDoesNotExist ( dataCurrentDir ) ; }
Source:
java.lang.Object [ ] [ ] provider_StandaloneNames ( ) { return new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { test.java.time.format.TestTextPrinter.RUSSIAN , java.time.temporal.ChronoField.MONTH_OF_YEAR , java.time.format.TextStyle.FULL_STANDALONE , "Январь" } , new java.lang.Object [ ] { test.java.time.format.TestTextPrinter.RUSSIAN , java.time.temporal.ChronoField.MONTH_OF_YEAR , java.time.format.TextStyle.SHORT_STANDALONE , "Янв." } , new java.lang.Object [ ] { test.java.time.format.TestTextPrinter.FINNISH , java.time.temporal.ChronoField.DAY_OF_WEEK , java.time.format.TextStyle.FULL_STANDALONE , "tiistai" } , new java.lang.Object [ ] { test.java.time.format.TestTextPrinter.FINNISH , java.time.temporal.ChronoField.DAY_OF_WEEK , java.time.format.TextStyle.SHORT_STANDALONE , "ti" } } ; }

Target:
java.lang.Object [ ] [ ] provider_StandaloneNames ( ) { return new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { test.java.time.format.TestTextPrinter.RUSSIAN , java.time.temporal.ChronoField.MONTH_OF_YEAR , java.time.format.TextStyle.FULL_STANDALONE , "январь" } , new java.lang.Object [ ] { test.java.time.format.TestTextPrinter.RUSSIAN , java.time.temporal.ChronoField.MONTH_OF_YEAR , java.time.format.TextStyle.SHORT_STANDALONE , "янв." } , new java.lang.Object [ ] { test.java.time.format.TestTextPrinter.FINNISH , java.time.temporal.ChronoField.DAY_OF_WEEK , java.time.format.TextStyle.FULL_STANDALONE , "tiistai" } , new java.lang.Object [ ] { test.java.time.format.TestTextPrinter.FINNISH , java.time.temporal.ChronoField.DAY_OF_WEEK , java.time.format.TextStyle.SHORT_STANDALONE , "ti" } } ; }
Source:
protected void copyFrom ( android.telephony.SignalStrength s ) { mGsmSignalStrength = s.mGsmSignalStrength ; mGsmBitErrorRate = s.mGsmBitErrorRate ; mCdmaDbm = s.mCdmaDbm ; mCdmaEcio = s.mCdmaEcio ; mEvdoDbm = s.mEvdoDbm ; mEvdoEcio = s.mEvdoEcio ; mEvdoSnr = s.mEvdoSnr ; mLteSignalStrength = s.mLteSignalStrength ; mLteRsrp = s.mLteRsrp ; mLteRsrq = s.mLteRsrq ; mLteRssnr = s.mLteRssnr ; mLteCqi = s.mLteCqi ; mLteRsrpBoost = s.mLteRsrpBoost ; mTdScdmaRscp = s.mTdScdmaRscp ; isGsm = s.isGsm ; mUseOnlyRsrpForLteLevel = s.mUseOnlyRsrpForLteLevel ; }

Target:
protected void copyFrom ( android.telephony.SignalStrength s ) { mGsmSignalStrength = s.mGsmSignalStrength ; mGsmBitErrorRate = s.mGsmBitErrorRate ; mCdmaDbm = s.mCdmaDbm ; mCdmaEcio = s.mCdmaEcio ; mEvdoDbm = s.mEvdoDbm ; mEvdoEcio = s.mEvdoEcio ; mEvdoSnr = s.mEvdoSnr ; mLteSignalStrength = s.mLteSignalStrength ; mLteRsrp = s.mLteRsrp ; mLteRsrq = s.mLteRsrq ; mLteRssnr = s.mLteRssnr ; mLteCqi = s.mLteCqi ; mLteRsrpBoost = s.mLteRsrpBoost ; mTdScdmaRscp = s.mTdScdmaRscp ; isGsm = s.isGsm ; mUseOnlyRsrpForLteLevel = s.mUseOnlyRsrpForLteLevel ; setLteRsrpThresholds ( s.mLteRsrpThresholds ) ; }
Source:
void closeServerSocket ( ) { try { if ( ( mServerSocket ) != null ) { java.io.FileDescriptor fd = mServerSocket.getFileDescriptor ( ) ; mServerSocket.close ( ) ; if ( fd != null ) { android.system.Os.close ( fd ) ; } } } catch ( java.io.IOException ex ) { android.util.Log.e ( com.android.internal.os.ZygoteServer.TAG , "Zygote: error closing sockets" , ex ) ; } catch ( android.system.ErrnoException ex ) { android.util.Log.e ( com.android.internal.os.ZygoteServer.TAG , "Zygote: error closing descriptor" , ex ) ; } mServerSocket = null ; }

Target:
void closeServerSocket ( ) { try { if ( ( mServerSocket ) != null ) { java.io.FileDescriptor fd = mServerSocket.getFileDescriptor ( ) ; mServerSocket.close ( ) ; if ( ( fd != null ) && ( mCloseSocketFd ) ) { android.system.Os.close ( fd ) ; } } } catch ( java.io.IOException ex ) { android.util.Log.e ( com.android.internal.os.ZygoteServer.TAG , "Zygote: error closing sockets" , ex ) ; } catch ( android.system.ErrnoException ex ) { android.util.Log.e ( com.android.internal.os.ZygoteServer.TAG , "Zygote: error closing descriptor" , ex ) ; } mServerSocket = null ; }
Source:
public static void computeMax ( android.renderscript.cts.TestMax.ArgumentsUintUintUint args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( int ) ( java.lang.StrictMath.max ( ( ( long ) ( ( args.inV1 ) & 4294967295L ) ) , ( ( long ) ( ( args.inV2 ) & 4294967295L ) ) ) ) ) ; }

Target:
public static void computeMax ( android.renderscript.cts.TestMax.ArgumentsUintUintUint args ) { args.out = android.renderscript.cts.CoreMathVerifier.maxU32 ( args.inV1 , args.inV2 ) ; }
Source:
public void writeOnImsCallTerminated ( int phoneId , com.android.ims.internal.ImsCallSession session , com.android.ims.ImsReasonInfo reasonInfo ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_CALL_TERMINATED ) . setCallIndex ( getCallId ( session ) ) . setImsReasonInfo ( toImsReasonInfoProto ( reasonInfo ) ) ) ; } }

Target:
public void writeOnImsCallTerminated ( int phoneId , android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsReasonInfo reasonInfo ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_CALL_TERMINATED ) . setCallIndex ( getCallId ( session ) ) . setImsReasonInfo ( toImsReasonInfoProto ( reasonInfo ) ) ) ; } }
Source:
public boolean equals ( com.google.doclava.ClassInfo that ) { if ( that != null ) { return this . qualifiedName ( ) . equals ( that.qualifiedName ( ) ) ; } else { return false ; } }

Target:
public java.util.Collection < com.google.doclava.MethodInfo > filteredMethods ( java.util.function.Predicate < com.google.doclava.MemberInfo > predicate ) { java.util.Set < com.google.doclava.MethodInfo > methods = new java.util.LinkedHashSet < > ( ) ; for ( com.google.doclava.MethodInfo method : getExhaustiveMethods ( ) ) { if ( ( predicate.test ( method ) ) || ( ( method.findPredicateOverriddenMethod ( predicate ) ) != null ) ) { methods.remove ( method ) ; methods.add ( method ) ; } } return methods ; }
Source:
public void shutdown ( ) { if ( ( mBluetoothAdapter.getState ( ) ) == ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) { for ( com.googlecode.android_scripting.facade.bluetooth.BluetoothLeAdvertiseFacade.MyAdvertiseCallback mAdvertise : mAdvertiseCallbackList.values ( ) ) { if ( mAdvertise != null ) { try { mBluetoothAdapter.getBluetoothLeAdvertiser ( ) . stopAdvertising ( mAdvertise ) ; } catch ( java.lang.NullPointerException e ) { com.googlecode.android_scripting.Log.e ( "Failed to stop ble advertising." , e ) ; } } } } mAdvertiseCallbackList.clear ( ) ; mAdvertiseSettingsList.clear ( ) ; mAdvertiseDataList.clear ( ) ; }

Target:
public void bleAdvertiseClearAll ( ) { com.googlecode.android_scripting.Log.d ( "bleAdvertiseClearAll: called" ) ; if ( ( mBluetoothAdapter.getState ( ) ) == ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) { for ( com.googlecode.android_scripting.facade.bluetooth.BluetoothLeAdvertiseFacade.MyAdvertiseCallback mAdvertise : mAdvertiseCallbackList.values ( ) ) { if ( mAdvertise != null ) { try { mBluetoothAdapter.getBluetoothLeAdvertiser ( ) . stopAdvertising ( mAdvertise ) ; } catch ( java.lang.NullPointerException e ) { com.googlecode.android_scripting.Log.e ( "Failed to stop ble advertising." , e ) ; } } } } mAdvertiseCallbackList.clear ( ) ; mAdvertiseSettingsList.clear ( ) ; mAdvertiseDataList.clear ( ) ; }
Source:
public void enable ( boolean notify ) { if ( mEnabled ) { com.android.incallui.Log.v ( this , "enable: Orientation listener is already enabled. Ignoring..." ) ; return ; } super . enable ( ) ; mEnabled = true ; if ( notify ) { com.android.incallui.InCallPresenter.getInstance ( ) . onDeviceOrientationChange ( com.android.incallui.InCallOrientationEventListener.sCurrentOrientation ) ; } }

Target:
public void enable ( boolean notifyDeviceOrientationChange ) { if ( mEnabled ) { com.android.incallui.Log.v ( this , "enable: Orientation listener is already enabled. Ignoring..." ) ; return ; } super . enable ( ) ; mEnabled = true ; if ( notifyDeviceOrientationChange ) { com.android.incallui.InCallPresenter.getInstance ( ) . onDeviceOrientationChange ( com.android.incallui.InCallOrientationEventListener.sCurrentOrientation ) ; } }
Source:
public void loadAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JParameter loading ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; com.android.jack.jayce.v0002.io.ExportSession exportSession = new com.android.jack.jayce.v0002.io.ExportSession ( session.getPhantomLookup ( ) , session , com.android.jack.jayce.NodeLevel.STRUCTURE ) ; for ( com.android.jack.jayce.v0002.nodes.NAnnotation annotation : annotations ) { com.android.jack.ir.ast.JAnnotation annote = annotation.exportAsJast ( exportSession ) ; loading.addAnnotation ( annote ) ; annote.updateParents ( loading ) ; } }

Target:
public void loadAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JParameter loading , @ javax.annotation.Nonnull com.android.jack.jayce.JayceParameterLoader loader ) { if ( ! ( annotations.isEmpty ( ) ) ) { com.android.jack.jayce.v0002.io.ExportSession exportSession = new com.android.jack.jayce.v0002.io.ExportSession ( loader.getSession ( ) , com.android.jack.jayce.NodeLevel.STRUCTURE ) ; for ( com.android.jack.jayce.v0002.nodes.NAnnotation annotation : annotations ) { com.android.jack.ir.ast.JAnnotation annote = annotation.exportAsJast ( exportSession ) ; loading.addAnnotation ( annote ) ; annote.updateParents ( loading ) ; } } }
Source:
public void testDismissKeyguardActivity_method_notTop ( ) throws java.lang.Exception { if ( ! ( supportsKeyguard ( ) ) ) { return ; } final java.lang.String logSeparator = clearLogcat ( ) ; gotoKeyguard ( ) ; mAmWmState.computeState ( mDevice , null ) ; assertTrue ( mAmWmState.getAmState ( ) . getKeyguardControllerState ( ) . keyguardShowing ) ; launchActivity ( "BroadcastReceiverActivity" ) ; launchActivity ( "TestActivity" ) ; executeShellCommand ( "am broadcast -a trigger_broadcast --ez dismissKeyguardMethod true" ) ; assertOnDismissErrorInLogcat ( logSeparator ) ; }

Target:
public void testDismissKeyguardActivity_method_notTop ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } final java.lang.String logSeparator = clearLogcat ( ) ; gotoKeyguard ( ) ; mAmWmState.computeState ( mDevice , null ) ; assertTrue ( mAmWmState.getAmState ( ) . getKeyguardControllerState ( ) . keyguardShowing ) ; launchActivity ( "BroadcastReceiverActivity" ) ; launchActivity ( "TestActivity" ) ; executeShellCommand ( "am broadcast -a trigger_broadcast --ez dismissKeyguardMethod true" ) ; assertOnDismissErrorInLogcat ( logSeparator ) ; }
Source:
public void onDamage ( final int startRow , final int endRow , int startCol , int endCol ) { post ( mDamageRunnable ) ; }

Target:
public android.view.View getView ( int position , android.view.View convertView , android.view.ViewGroup parent ) { final com.android.terminal.TerminalLineView view ; if ( convertView != null ) { view = ( ( com.android.terminal.TerminalLineView ) ( convertView ) ) ; } else { view = new com.android.terminal.TerminalLineView ( parent.getContext ( ) , mTerm , mMetrics ) ; } view.pos = position ; view.row = posToRow ( position ) ; view.cols = mCols ; return view ; }
Source:
public void dispose ( ) { if ( ( mHoverStrokeColor ) != null ) { mHoverStrokeColor.dispose ( ) ; mHoverStrokeColor = null ; } if ( ( mHoverFillColor ) != null ) { mHoverFillColor.dispose ( ) ; mHoverFillColor = null ; } }

Target:
public void dispose ( ) { if ( ( mHoverStrokeColor ) != null ) { mHoverStrokeColor.dispose ( ) ; mHoverStrokeColor = null ; } if ( ( mHoverFillColor ) != null ) { mHoverFillColor.dispose ( ) ; mHoverFillColor = null ; } if ( ( mHoverSelectStrokeColor ) != null ) { mHoverSelectStrokeColor.dispose ( ) ; mHoverSelectStrokeColor = null ; } if ( ( mHoverSelectFillColor ) != null ) { mHoverSelectFillColor.dispose ( ) ; mHoverSelectFillColor = null ; } }
Source:
public void enter ( ) { log ( ( "Enter Connected: " + ( getCurrentMessage ( ) . what ) ) ) ; broadcastAudioState ( mCurrentDevice , BluetoothA2dpSink.STATE_NOT_PLAYING , BluetoothA2dpSink.STATE_PLAYING ) ; synchronized ( this ) { if ( ( mStreaming ) == null ) { if ( com.android.bluetooth.a2dpsink.A2dpSinkStateMachine.DBG ) { log ( "Creating New A2dpSinkStreamingStateMachine" ) ; } mStreaming = com.android.bluetooth.a2dpsink.A2dpSinkStreamingStateMachine.make ( this , mContext ) ; } } }

Target:
public void enter ( ) { log ( ( "Enter Connected: " + ( getCurrentMessage ( ) . what ) ) ) ; broadcastAudioState ( mCurrentDevice , BluetoothA2dpSink.STATE_NOT_PLAYING , BluetoothA2dpSink.STATE_PLAYING ) ; synchronized ( this ) { if ( ( mStreaming ) == null ) { if ( com.android.bluetooth.a2dpsink.A2dpSinkStateMachine.DBG ) { log ( "Creating New A2dpSinkStreamHandler" ) ; } mStreaming = new com.android.bluetooth.a2dpsink.A2dpSinkStreamHandler ( this , mContext ) ; } } }
Source:
public void clearLocalPkg ( @ com.android.annotations.NonNull java.util.EnumSet < com.android.sdklib.repository.descriptors.PkgType > filters ) { mLegacyBuildTools = null ; for ( com.android.sdklib.repository.descriptors.PkgType filter : filters ) { mVisitedDirs.removeAll ( filter ) ; mLocalPackages.removeAll ( filter ) ; } if ( ( filters.contains ( PkgType.PKG_PLATFORMS ) ) || ( filters.contains ( PkgType.PKG_ADDONS ) ) ) { mCachedTargets = null ; } }

Target:
public void clearLocalPkg ( @ com.android.annotations.NonNull java.util.EnumSet < com.android.sdklib.repository.descriptors.PkgType > filters ) { mLegacyBuildTools = null ; synchronized ( mLocalPackages ) { for ( com.android.sdklib.repository.descriptors.PkgType filter : filters ) { mVisitedDirs.removeAll ( filter ) ; mLocalPackages.removeAll ( filter ) ; } } if ( ( filters.contains ( PkgType.PKG_PLATFORMS ) ) || ( filters.contains ( PkgType.PKG_ADDONS ) ) ) { mReloadTargets = true ; } }
Source:
public static java.lang.String floatToDoubleToIntPrint ( float value ) { double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }

Target:
public static java.lang.String $noinline$intToDoubleToIntPrint ( int value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }
Source:
public boolean isCarrierSpecific ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.util.List < java.lang.String > regionCodes = getRegionCodesForCountryCode ( number.getCountryCode ( ) ) ; java.lang.String regionCode = getRegionCodeForShortNumberFromRegionList ( number , regionCodes ) ; java.lang.String nationalNumber = com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) ; com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionCode ) ; return ( phoneMetadata != null ) && ( matchesPossibleNumberAndNationalNumber ( nationalNumber , phoneMetadata.getCarrierSpecific ( ) ) ) ; }

Target:
public boolean isCarrierSpecific ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.util.List < java.lang.String > regionCodes = getRegionCodesForCountryCode ( number.getCountryCode ( ) ) ; java.lang.String regionCode = getRegionCodeForShortNumberFromRegionList ( number , regionCodes ) ; java.lang.String nationalNumber = com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) ; com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionCode ) ; return ( phoneMetadata != null ) && ( matchesPossibleNumberAndNationalNumber ( nationalNumber , phoneMetadata.carrierSpecific ) ) ; }
Source:
public void onRttCallScreenUiReady ( ) { com.android.dialer.common.LogUtil.enterBlock ( "RttCallPresenter.onRttCallScreenUiReady" ) ; com.android.incallui.InCallPresenter.getInstance ( ) . addListener ( this ) ; startListenOnRemoteMessage ( ) ; com.android.incallui.call.DialerCall call = com.android.incallui.call.CallList.getInstance ( ) . getActiveCall ( ) ; if ( call != null ) { rttCallScreen.onRestoreRttChat ( call.getRttTranscript ( ) ) ; } }

Target:
public void onRttCallScreenUiReady ( ) { com.android.dialer.common.LogUtil.enterBlock ( "RttCallPresenter.onRttCallScreenUiReady" ) ; com.android.incallui.InCallPresenter.getInstance ( ) . addListener ( this ) ; startListenOnRemoteMessage ( ) ; com.android.incallui.call.DialerCall call = com.android.incallui.call.CallList.getInstance ( ) . getCallById ( rttCallScreen.getCallId ( ) ) ; if ( call != null ) { rttCallScreen.onRestoreRttChat ( call.getRttTranscript ( ) ) ; } }
Source:
public void processBasicBlockElements ( ) { instructions = new java.util.LinkedList < > ( ) ; extraInstructions = new java.util.LinkedList < > ( ) ; noMoreInstruction = false ; java.util.ArrayList < com.android.jack.ir.ast.cfg.JBasicBlockElement > elements = com.google.common.collect.Lists.newArrayList ( this . currentBasicBlock.getElements ( true ) ) ; super . accept ( elements ) ; }

Target:
public void processBasicBlockElements ( ) { java.util.List < com.android.jack.ir.ast.cfg.JBasicBlockElement > elements = this . currentBasicBlock.getElements ( true ) ; instructions = com.google.common.collect.Lists.newArrayListWithExpectedSize ( ( ( int ) ( ( elements.size ( ) ) * 1.5 ) ) ) ; extraInstructions = com.google.common.collect.Lists.newArrayListWithExpectedSize ( ( ( int ) ( ( elements.size ( ) ) * 0.5 ) ) ) ; noMoreInstruction = false ; super . accept ( elements ) ; }
Source:
protected final void notifyRecordedProgramsChanged ( com.android.tv.dvr.RecordedProgram ... recordedPrograms ) { for ( com.android.tv.dvr.RecordedProgramListener l : mRecordedProgramListeners ) { if ( com.android.tv.dvr.BaseDvrDataManager.DEBUG ) android.util.Log.d ( com.android.tv.dvr.BaseDvrDataManager.TAG , ( ( ( "notify " + l ) + " changed " ) + ( java.util.Arrays.asList ( recordedPrograms ) ) ) ) ; l.onRecordedProgramsChanged ( recordedPrograms ) ; } }

Target:
protected final void notifyRecordedProgramsChanged ( com.android.tv.dvr.data.RecordedProgram ... recordedPrograms ) { for ( com.android.tv.dvr.RecordedProgramListener l : mRecordedProgramListeners ) { if ( com.android.tv.dvr.BaseDvrDataManager.DEBUG ) android.util.Log.d ( com.android.tv.dvr.BaseDvrDataManager.TAG , ( ( ( "notify " + l ) + " changed " ) + ( java.util.Arrays.asList ( recordedPrograms ) ) ) ) ; l.onRecordedProgramsChanged ( recordedPrograms ) ; } }
Source:
private void transformToZip ( @ javax.annotation.Nonnull java.io.InputStream is , @ javax.annotation.Nonnull java.util.zip.ZipOutputStream zipOutputStream , @ javax.annotation.CheckForNull java.util.jar.JarFile jarFile ) throws java.io.IOException { org.objectweb.asm.tree.ClassNode cn = getClassNode ( is ) ; java.lang.String filePath = com.android.jill.frontend.java.JavaTransformer.getFilePath ( cn.name ) ; assert ( jarFile == null ) || ( ( jarFile.getEntry ( filePath ) ) == null ) ; try { java.util.zip.ZipEntry entry = new java.util.zip.ZipEntry ( filePath ) ; zipOutputStream.putNextEntry ( entry ) ; transform ( cn , zipOutputStream ) ; } catch ( java.io.IOException e ) { throw new com.android.jill.JillException ( "Error writing to output zip" , e ) ; } }

Target:
private void transformToZip ( @ javax.annotation.Nonnull java.io.InputStream is , @ javax.annotation.Nonnull java.util.zip.ZipOutputStream zipOutputStream , @ javax.annotation.CheckForNull java.util.jar.JarFile jarFile ) throws java.io.IOException { org.objectweb.asm.tree.ClassNode cn = getClassNode ( is ) ; java.lang.String filePath = com.android.jill.frontend.java.JavaTransformer.getZipFilePath ( cn.name ) ; assert ( jarFile == null ) || ( ( jarFile.getEntry ( filePath ) ) == null ) ; try { java.util.zip.ZipEntry entry = new java.util.zip.ZipEntry ( filePath ) ; zipOutputStream.putNextEntry ( entry ) ; transform ( cn , zipOutputStream ) ; } catch ( java.io.IOException e ) { throw new com.android.jill.JillException ( "Error writing to output zip" , e ) ; } }
Source:
private void createServerSession ( javax.obex.ObexTransport transport ) { mServerSession = new com.android.bluetooth.opp.BluetoothOppObexServerSession ( this , transport ) ; mServerSession.preStart ( ) ; if ( com.android.bluetooth.opp.BluetoothOppService.D ) android.util.Log.d ( com.android.bluetooth.opp.BluetoothOppService.TAG , ( ( ( "Get ServerSession " + ( mServerSession.toString ( ) ) ) + " for incoming connection" ) + ( transport.toString ( ) ) ) ) ; }

Target:
private void createServerSession ( javax.obex.ObexTransport transport ) { mServerSession = new com.android.bluetooth.opp.BluetoothOppObexServerSession ( this , transport , mServerSocket ) ; mServerSession.preStart ( ) ; if ( com.android.bluetooth.opp.BluetoothOppService.D ) android.util.Log.d ( com.android.bluetooth.opp.BluetoothOppService.TAG , ( ( ( "Get ServerSession " + ( mServerSession.toString ( ) ) ) + " for incoming connection" ) + ( transport.toString ( ) ) ) ) ; }
Source:
private static void checkSetAndGet ( java.lang.ProcessBuilder.Redirect in , java.lang.ProcessBuilder.Redirect out , java.lang.ProcessBuilder.Redirect err , java.lang.ProcessBuilder pb ) { java.util.List < java.lang.ProcessBuilder.Redirect > expected = java.util.Arrays.asList ( in , out , err ) ; java.util.List < java.lang.ProcessBuilder.Redirect > actual = java.util.Arrays.asList ( pb.redirectInput ( ) , pb.redirectOutput ( ) , pb.redirectError ( ) ) ; assertEquals ( expected , actual ) ; }

Target:
private static void assertRedirects ( java.lang.ProcessBuilder.Redirect in , java.lang.ProcessBuilder.Redirect out , java.lang.ProcessBuilder.Redirect err , java.lang.ProcessBuilder pb ) { java.util.List < java.lang.ProcessBuilder.Redirect > expected = java.util.Arrays.asList ( in , out , err ) ; java.util.List < java.lang.ProcessBuilder.Redirect > actual = java.util.Arrays.asList ( pb.redirectInput ( ) , pb.redirectOutput ( ) , pb.redirectError ( ) ) ; assertEquals ( expected , actual ) ; }
Source:
private void answerIncomingCall ( int videoState ) { com.android.incallui.call.CallList callList = com.android.incallui.InCallPresenter.getInstance ( ) . getCallList ( ) ; if ( callList == null ) { com.android.incallui.StatusBarNotifier.clearAllCallNotifications ( ) ; com.android.dialer.common.LogUtil.e ( "NotificationBroadcastReceiver.answerIncomingCall" , "call list is empty" ) ; } else { com.android.incallui.call.DialerCall call = callList.getIncomingCall ( ) ; if ( call != null ) { call.answer ( videoState ) ; com.android.incallui.InCallPresenter.getInstance ( ) . showInCall ( false , false ) ; } } }

Target:
private void answerIncomingCallCallback ( @ android.support.annotation.NonNull com.android.incallui.call.DialerCall call , int videoState ) { call.answer ( videoState ) ; com.android.incallui.InCallPresenter.getInstance ( ) . showInCall ( false , false ) ; }
Source:
private native boolean mediaPlayerListRspNative ( byte [ ] address , int rsStatus , int uidCounter , byte item_type , int numItems , int [ ] playerIds , byte [ ] playerTypes , int [ ] playerSubTypes , byte [ ] playStatusValues , short [ ] featureBitMaskValues , java.lang.String [ ] textArray ) ;

Target:
private native boolean mediaPlayerListRspNative ( byte [ ] address , int rsStatus , int uidCounter , byte itemType , int numItems , int [ ] playerIds , byte [ ] playerTypes , int [ ] playerSubTypes , byte [ ] playStatusValues , short [ ] featureBitMaskValues , java.lang.String [ ] textArray ) ;
Source:
public int compareTo ( @ com.android.annotations.NonNull com.android.tools.gradle.eclipse.ImportModule other ) { if ( dependsOn ( other ) ) { return 1 ; } else if ( other.dependsOn ( this ) ) { return - 1 ; } else { return getModuleName ( ) . compareTo ( other.getModuleName ( ) ) ; } }

Target:
public int compareTo ( @ com.android.annotations.NonNull com.android.tools.gradle.eclipse.ImportModule other ) { if ( dependsOn ( other ) ) { return 1 ; } else if ( other.dependsOn ( this ) ) { return - 1 ; } else { return getOriginalName ( ) . compareTo ( other.getOriginalName ( ) ) ; } }
Source:
protected void setUserUnlocked ( int userId ) { android.util.Log.i ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , "User unlocked, initializing the service" ) ; init ( ) ; }

Target:
protected void setUserUnlocked ( int userId ) { android.util.Log.i ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , "User unlocked, initializing the service" ) ; if ( ! ( android.os.SystemProperties.getBoolean ( com.android.bluetooth.avrcp.AvrcpTargetService.AVRCP_ENABLE_PROPERTY , false ) ) ) { android.util.Log.w ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , "Skipping initialization of the new AVRCP Target Service" ) ; com.android.bluetooth.avrcp.AvrcpTargetService.sInstance = null ; return ; } init ( ) ; com.android.bluetooth.avrcp.AvrcpTargetService.sInstance = this ; }