auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static void onPublishTerminated ( int publishId , int status ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( ( ( "onPublishTerminated: publishId=" + publishId ) + ", status=" ) + status ) ) ; com.android.server.wifi.aware.WifiAwareStateManager.getInstance ( ) . onSessionTerminatedNotification ( publishId , com.android.server.wifi.aware.WifiAwareNative.translateHalStatusToAwareSessionCallbackTerminate ( status ) , true ) ; }

Target:
private static void onSubscribeTerminated ( int subscribeId , int status ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( ( ( "onSubscribeTerminated: subscribeId=" + subscribeId ) + ", status=" ) + status ) ) ; } com.android.server.wifi.aware.WifiAwareStateManager.getInstance ( ) . onSessionTerminatedNotification ( subscribeId , ( status == ( com.android.server.wifi.aware.WifiAwareNative.AWARE_STATUS_SUCCESS ) ? android.net.wifi.aware.WifiAwareDiscoverySessionCallback.TERMINATE_REASON_DONE : android.net.wifi.aware.WifiAwareDiscoverySessionCallback.TERMINATE_REASON_FAIL ) , false ) ; }
Source:
public final void updateAAD ( byte [ ] input ) { if ( input == null ) { throw new java.lang.IllegalArgumentException ( "input == null" ) ; } if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( ( input.length ) == 0 ) { return ; } spiImpl.engineUpdateAAD ( input , 0 , input.length ) ; }

Target:
public final void updateAAD ( byte [ ] input ) { if ( input == null ) { throw new java.lang.IllegalArgumentException ( "input == null" ) ; } if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( ( input.length ) == 0 ) { return ; } getSpi ( ) . engineUpdateAAD ( input , 0 , input.length ) ; }
Source:
public void test_getAvailableIDs_I ( ) { java.util.TimeZone tz = java.util.TimeZone.getTimeZone ( "Asia/Shanghai" ) ; int rawoffset = tz.getRawOffset ( ) ; java.lang.String [ ] ids = java.util.TimeZone.getAvailableIDs ( rawoffset ) ; java.util.List < java.lang.String > idList = java.util.Arrays.asList ( ids ) ; assertTrue ( "Asia/shanghai and Hongkong should have the same rawoffset" , idList.contains ( "Hongkong" ) ) ; }

Target:
public void test_getAvailableIDs_I ( ) { java.util.TimeZone tz = java.util.TimeZone.getTimeZone ( "Asia/Shanghai" ) ; int rawoffset = tz.getRawOffset ( ) ; java.lang.String [ ] ids = java.util.TimeZone.getAvailableIDs ( rawoffset ) ; java.util.List < java.lang.String > idList = java.util.Arrays.asList ( ids ) ; assertTrue ( idList.toString ( ) , idList.contains ( "Asia/Hong_Kong" ) ) ; }
Source:
public void oemHookRaw ( int indicationType , java.util.ArrayList < java.lang.Byte > var2 ) { }

Target:
public void currentSignalStrength ( int indicationType , com.android.internal.telephony.V1_0.SignalStrength signalStrength ) { mRil.processIndication ( indicationType ) ; android.telephony.SignalStrength ss = new android.telephony.SignalStrength ( signalStrength.gw.signalStrength , signalStrength.gw.bitErrorRate , signalStrength.cdma.dbm , signalStrength.cdma.ecio , signalStrength.evdo.dbm , signalStrength.evdo.ecio , signalStrength.evdo.signalNoiseRatio , signalStrength.lte.signalStrength , signalStrength.lte.rsrp , signalStrength.lte.rsrq , signalStrength.lte.rssnr , signalStrength.lte.cqi , signalStrength.tdScdma.rscp , false ) ; if ( RIL.RILJ_LOGV ) mRil.unsljLogvRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_SIGNAL_STRENGTH , ss ) ; if ( ( mRil.mSignalStrengthRegistrant ) != null ) { mRil.mSignalStrengthRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , ss , null ) ) ; } }
Source:
private static boolean processClass ( java.lang.String name , byte [ ] bytes ) { if ( ! ( com.android.dx.command.dexer.Main.args.coreLibrary ) ) { com.android.dx.command.dexer.Main.checkClassName ( name ) ; } try { new com.android.dx.command.dexer.Main.DirectClassFileConsumer ( name , bytes , null ) . call ( new com.android.dx.command.dexer.Main.ClassParserTask ( name , bytes ) . call ( ) ) ; } catch ( java.lang.Exception ex ) { throw new java.lang.RuntimeException ( "Exception parsing classes" , ex ) ; } return true ; }

Target:
private static boolean processClass ( java.lang.String name , byte [ ] bytes ) { if ( ! ( com.android.dx.command.dexer.Main.args.coreLibrary ) ) { com.android.dx.command.dexer.Main.checkClassName ( name ) ; } try { new com.android.dx.command.dexer.Main.DirectClassFileConsumer ( name , bytes , null ) . call ( new com.android.dx.command.dexer.Main.ClassParserTask ( name , bytes ) . call ( ) ) ; } catch ( com.android.dx.cf.iface.ParseException ex ) { throw ex ; } catch ( java.lang.Exception ex ) { throw new java.lang.RuntimeException ( "Exception parsing classes" , ex ) ; } return true ; }
Source:
public com.android.sched.vfs.VPath prependPath ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { pathFragments.add ( 0 , new com.android.sched.vfs.VPath.VPathFragment ( java.lang.String.valueOf ( com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) , com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) ) ; pathFragments.addAll ( 0 , path.getPathFragments ( ) ) ; return this ; }

Target:
public com.android.sched.vfs.VPath prependPath ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { assert ! ( this . equals ( com.android.sched.vfs.VPath.ROOT ) ) ; pathFragments.add ( 0 , new com.android.sched.vfs.VPath.VPathFragment ( java.lang.String.valueOf ( com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) , com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) ) ; pathFragments.addAll ( 0 , path.getPathFragments ( ) ) ; return this ; }
Source:
public void onSSLStateChange ( long sslSessionNativePtr , int type , int val ) { synchronized ( stateLock ) { switch ( type ) { case NativeCrypto.SSL_CB_HANDSHAKE_DONE : if ( ( ( engineState ) != ( org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_STARTED ) ) && ( ( engineState ) != ( org.conscrypt.OpenSSLEngineImpl.EngineState.READY_HANDSHAKE_CUT_THROUGH ) ) ) { throw new java.lang.IllegalStateException ( ( "Completed handshake while in mode " + ( engineState ) ) ) ; } engineState = org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_COMPLETED ; break ; case NativeCrypto.SSL_CB_HANDSHAKE_START : engineState = org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_STARTED ; break ; } } }

Target:
public void onSSLStateChange ( long sslSessionNativePtr , int type , int val ) { synchronized ( stateLock ) { switch ( type ) { case NativeConstants.SSL_CB_HANDSHAKE_DONE : if ( ( ( engineState ) != ( org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_STARTED ) ) && ( ( engineState ) != ( org.conscrypt.OpenSSLEngineImpl.EngineState.READY_HANDSHAKE_CUT_THROUGH ) ) ) { throw new java.lang.IllegalStateException ( ( "Completed handshake while in mode " + ( engineState ) ) ) ; } engineState = org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_COMPLETED ; break ; case NativeConstants.SSL_CB_HANDSHAKE_START : engineState = org.conscrypt.OpenSSLEngineImpl.EngineState.HANDSHAKE_STARTED ; break ; } } }
Source:
public void testAesCbcHmacMd5Tcp4UdpEncap ( ) 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 , true , 1 , false ) ; }

Target:
public void testAesCbcHmacMd5Tcp4UdpEncap ( ) 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 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; 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 ) ; }
Source:
private static com.ibm.icu.util.Calendar.PatternData make ( com.ibm.icu.util.Calendar cal , com.ibm.icu.util.ULocale loc ) { return com.ibm.icu.util.Calendar.PatternData.make ( loc , cal.getType ( ) ) ; }

Target:
private static com.ibm.icu.util.Calendar.PatternData make ( com.ibm.icu.util.Calendar cal , com.ibm.icu.util.ULocale loc ) { java.lang.String calType = cal.getType ( ) ; java.lang.String key = ( ( loc.getBaseName ( ) ) + "+" ) + calType ; com.ibm.icu.util.Calendar.PatternData patternData = com.ibm.icu.util.Calendar.PATTERN_CACHE.get ( key ) ; if ( patternData == null ) { try { patternData = com.ibm.icu.util.Calendar.getPatternData ( loc , calType ) ; } catch ( java.util.MissingResourceException e ) { patternData = new com.ibm.icu.util.Calendar.PatternData ( com.ibm.icu.util.Calendar.DEFAULT_PATTERNS , null ) ; } com.ibm.icu.util.Calendar.PATTERN_CACHE.put ( key , patternData ) ; } return patternData ; }
Source:
public void removeConfigCallback ( android.telephony.ims.stub.ImsConfigImplBase.Callback callback ) throws com.android.ims.ImsException { if ( DBG ) android.telephony.Rlog.d ( com.android.ims.ImsConfig.TAG , ( "removeConfigCallback: " + callback ) ) ; try { miConfig.removeImsConfigCallback ( callback ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "removeConfigCallback()" , e , ImsReasonInfo.CODE_LOCAL_SERVICE_UNAVAILABLE ) ; } }

Target:
public void removeConfigCallback ( android.telephony.ims.stub.ImsConfigImplBase.Callback callback ) throws com.android.ims.ImsException { if ( DBG ) android.telephony.Rlog.d ( com.android.ims.ImsConfig.TAG , ( "removeConfigCallback: " + callback ) ) ; try { miConfig.removeImsConfigCallback ( callback ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "removeConfigCallback()" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_SERVICE_UNAVAILABLE ) ; } }
Source:
public void onWindowFocusChanged ( final boolean hasWindowFocus ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onWindowFocusChanged ( hasWindowFocus ) ; } } ) ; return ; } mAwContents.onWindowFocusChanged ( hasWindowFocus ) ; }

Target:
public boolean onKeyUp ( final int keyCode , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyUp ( keyCode , event ) ; } } ) ; return ret ; } return mAwContents.onKeyUp ( keyCode , event ) ; }
Source:
public void copyFrom ( short [ ] 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 copyFromUnchecked ( short [ ] d ) { copyFromUnchecked ( d , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
public android.net.IpSecTransform buildTunnelModeTransform ( java.net.InetAddress localAddress , java.net.InetAddress remoteAddress ) { if ( localAddress == null ) { throw new java.lang.IllegalArgumentException ( "Local address may not be null or empty!" ) ; } if ( remoteAddress == null ) { throw new java.lang.IllegalArgumentException ( "Remote address may not be null or empty!" ) ; } mConfig.setLocalAddress ( localAddress.getHostAddress ( ) ) ; mConfig.setRemoteAddress ( remoteAddress.getHostAddress ( ) ) ; mConfig.setMode ( android.net.IpSecTransform.MODE_TUNNEL ) ; return new android.net.IpSecTransform ( mContext , mConfig ) ; }

Target:
public android.net.IpSecTransform buildTransportModeTransform ( @ android.annotation.NonNull java.net.InetAddress sourceAddress , @ android.annotation.NonNull android.net.IpSecManager.SecurityParameterIndex spi ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { com.android.internal.util.Preconditions.checkNotNull ( sourceAddress ) ; com.android.internal.util.Preconditions.checkNotNull ( spi ) ; if ( ( spi.getResourceId ( ) ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { throw new java.lang.IllegalArgumentException ( "Invalid SecurityParameterIndex" ) ; } mConfig.setMode ( android.net.IpSecTransform.MODE_TRANSPORT ) ; mConfig.setSourceAddress ( sourceAddress.getHostAddress ( ) ) ; mConfig.setSpiResourceId ( spi.getResourceId ( ) ) ; return new android.net.IpSecTransform ( mContext , mConfig ) . activate ( ) ; }
Source:
private void notifyAddressRemoved ( java.lang.String address , java.lang.String iface , int flags , int scope ) { final int length = mObservers.beginBroadcast ( ) ; for ( int i = 0 ; i < length ; i ++ ) { try { mObservers.getBroadcastItem ( i ) . addressRemoved ( address , iface , flags , scope ) ; } catch ( android.os.RemoteException e ) { } catch ( java.lang.RuntimeException e ) { } } mObservers.finishBroadcast ( ) ; }

Target:
private void notifyAddressRemoved ( android.net.LinkAddress address , java.lang.String iface , int flags , int scope ) { final int length = mObservers.beginBroadcast ( ) ; for ( int i = 0 ; i < length ; i ++ ) { try { mObservers.getBroadcastItem ( i ) . addressRemoved ( address , iface , flags , scope ) ; } catch ( android.os.RemoteException e ) { } catch ( java.lang.RuntimeException e ) { } } mObservers.finishBroadcast ( ) ; }
Source:
public java.lang.String [ ] getLockTaskPackages ( @ android.annotation.NonNull android.content.ComponentName admin ) { throwIfParentInstance ( "getLockTaskPackages" ) ; if ( ( mService ) != null ) { try { return mService.getLockTaskPackages ( admin ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return null ; }

Target:
public java.util.List < java.lang.String > getPermittedCrossProfileNotificationListeners ( @ android.annotation.NonNull android.content.ComponentName admin ) { throwIfParentInstance ( "getPermittedCrossProfileNotificationListeners" ) ; if ( ( mService ) != null ) { try { return mService.getPermittedCrossProfileNotificationListeners ( admin ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return null ; }
Source:
private static boolean isOneNanp ( java.lang.String dialStr ) { boolean retVal = false ; if ( dialStr != null ) { java.lang.String newDialStr = dialStr.substring ( 1 ) ; if ( ( ( dialStr.charAt ( 0 ) ) == '1' ) && ( android.telephony.PhoneNumberUtils.isNanp ( newDialStr ) ) ) { retVal = true ; } } else { android.util.Log.e ( "isOneNanp: null dialStr passed in" , dialStr ) ; } return retVal ; }

Target:
private static boolean isOneNanp ( java.lang.String dialStr ) { boolean retVal = false ; if ( dialStr != null ) { java.lang.String newDialStr = dialStr.substring ( 1 ) ; if ( ( ( dialStr.charAt ( 0 ) ) == '1' ) && ( android.telephony.PhoneNumberUtils.isNanp ( newDialStr ) ) ) { retVal = true ; } } else { android.telephony.Rlog.e ( "isOneNanp: null dialStr passed in" , dialStr ) ; } return retVal ; }
Source:
public static void computeAtanh ( android.renderscript.cts.TestAtanh.ArgumentsFloatFloat args ) { args.ulf = 5 ; args.ulfRelaxed = 128 ; double x = ( ( double ) ( args.in ) ) ; args.out = ( ( float ) ( ( ( java.lang.StrictMath.log ( ( 1 + x ) ) ) - ( java.lang.StrictMath.log ( ( 1 - x ) ) ) ) / 2 ) ) ; }

Target:
public static void computeAcosh ( android.renderscript.cts.TestAcosh.ArgumentsFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 4 ; double x = ( ( double ) ( args.in ) ) ; args.out = ( ( float ) ( java.lang.StrictMath.log ( ( x + ( java.lang.StrictMath.sqrt ( ( ( x * x ) - 1.0 ) ) ) ) ) ) ) ; }
Source:
public void run ( ) { if ( status != ( AdvertisingSetCallback.ADVERTISE_SUCCESS ) ) { callback.onAdvertisingSetStarted ( null , status ) ; mCallbackWrappers.remove ( callback ) ; return ; } android.bluetooth.le.AdvertisingSet advertisingSet = new android.bluetooth.le.AdvertisingSet ( advertiserId , mBluetoothManager ) ; mAdvertisingSets.put ( advertiserId , advertisingSet ) ; callback.onAdvertisingSetStarted ( advertisingSet , status ) ; }

Target:
public void run ( ) { if ( status != ( AdvertisingSetCallback.ADVERTISE_SUCCESS ) ) { callback.onAdvertisingSetStarted ( null , 0 , status ) ; mCallbackWrappers.remove ( callback ) ; return ; } android.bluetooth.le.AdvertisingSet advertisingSet = new android.bluetooth.le.AdvertisingSet ( advertiserId , mBluetoothManager ) ; mAdvertisingSets.put ( advertiserId , advertisingSet ) ; callback.onAdvertisingSetStarted ( advertisingSet , txPower , status ) ; }
Source:
private void write ( java.lang.String s ) { try { synchronized ( this ) { ensureOpen ( ) ; textOut.write ( s ) ; textOut.flushBuffer ( ) ; charOut.flushBuffer ( ) ; if ( ( autoFlush ) && ( ( s.indexOf ( '\n' ) ) >= 0 ) ) out.flush ( ) ; } } catch ( java.io.InterruptedIOException x ) { java.lang.Thread.currentThread ( ) . interrupt ( ) ; } catch ( java.io.IOException x ) { trouble = true ; } }

Target:
private java.io.BufferedWriter getTextOut ( ) { if ( ( textOut ) == null ) { charOut = ( ( charset ) != null ) ? new java.io.OutputStreamWriter ( this , charset ) : new java.io.OutputStreamWriter ( this ) ; textOut = new java.io.BufferedWriter ( charOut ) ; } return textOut ; }
Source:
public void testReadAfterWrite ( ) throws java.lang.Exception { com.android.server.wifi.WifiConfigStoreData writeData = createSingleOpenNetworkStoreData ( ) ; mWifiConfigStore.switchUserStoreAndRead ( mUserStore ) ; mWifiConfigStore.write ( true , writeData ) ; com.android.server.wifi.WifiConfigStoreData readData = mWifiConfigStore.read ( ) ; com.android.server.wifi.WifiConfigStoreDataTest.assertConfigStoreDataEqual ( writeData , readData ) ; }

Target:
public void testReadAfterWrite ( ) throws java.lang.Exception { mWifiConfigStore.registerStoreData ( mStoreData ) ; mWifiConfigStore.switchUserStoreAndRead ( mUserStore ) ; assertNull ( mStoreData.getUserData ( ) ) ; assertNull ( mStoreData.getShareData ( ) ) ; mStoreData.setUserData ( com.android.server.wifi.WifiConfigStoreTest.TEST_USER_DATA ) ; mStoreData.setShareData ( com.android.server.wifi.WifiConfigStoreTest.TEST_SHARE_DATA ) ; mWifiConfigStore.write ( true ) ; mWifiConfigStore.read ( ) ; assertEquals ( com.android.server.wifi.WifiConfigStoreTest.TEST_USER_DATA , mStoreData.getUserData ( ) ) ; assertEquals ( com.android.server.wifi.WifiConfigStoreTest.TEST_SHARE_DATA , mStoreData.getShareData ( ) ) ; }
Source:
public void test_bind_noReuseAddress ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc1 = java.nio.channels.DatagramChannel.open ( ) ; dc1.setOption ( java.net.StandardSocketOptions.SO_REUSEADDR , false ) ; java.nio.channels.DatagramChannel dc2 = java.nio.channels.DatagramChannel.open ( ) ; dc1.setOption ( java.net.StandardSocketOptions.SO_REUSEADDR , false ) ; dc1.bind ( null ) ; try { dc2.bind ( dc1.getLocalAddress ( ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } dc1.close ( ) ; dc2.close ( ) ; }

Target:
public void test_bind_unresolvedAddress ( ) throws java.io.IOException { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; try { dc.socket ( ) . bind ( new java.net.InetSocketAddress ( "unresolvedname" , 31415 ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } assertTrue ( dc.isOpen ( ) ) ; assertFalse ( dc.isConnected ( ) ) ; dc.close ( ) ; }
Source:
public void getCallBarring ( java.lang.String facility , android.os.Message onComplete , int serviceClass ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( ( ( "getCallBarring facility=" + facility ) + ", serviceClass = " ) + serviceClass ) ) ; } android.os.Message resp ; resp = obtainMessage ( com.android.internal.telephony.imsphone.ImsPhone.EVENT_GET_CALL_BARRING_DONE , onComplete ) ; try { com.android.ims.ImsUtInterface ut = mCT.getUtInterface ( ) ; ut.queryCallBarring ( getCBTypeFromFacility ( facility ) , resp , serviceClass ) ; } catch ( com.android.ims.ImsException e ) { sendErrorResponse ( onComplete , e ) ; } }

Target:
public void getCallBarring ( java.lang.String facility , java.lang.String password , android.os.Message onComplete , int serviceClass ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( ( ( "getCallBarring facility=" + facility ) + ", serviceClass = " ) + serviceClass ) ) ; } android.os.Message resp ; resp = obtainMessage ( com.android.internal.telephony.imsphone.ImsPhone.EVENT_GET_CALL_BARRING_DONE , onComplete ) ; try { com.android.ims.ImsUtInterface ut = mCT.getUtInterface ( ) ; ut.queryCallBarring ( getCBTypeFromFacility ( facility ) , resp , serviceClass ) ; } catch ( com.android.ims.ImsException e ) { sendErrorResponse ( onComplete , e ) ; } }
Source:
public int size ( ) { return tableOfContents.fieldIds.size ; }

Target:
private java.util.List < com.android.jack.dx.io.FieldId > readFieldIds ( ) { com.android.jack.dx.io.DexBuffer.Section fieldIds = open ( tableOfContents.fieldIds.off ) ; com.android.jack.dx.io.FieldId [ ] result = new com.android.jack.dx.io.FieldId [ tableOfContents.fieldIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.fieldIds.size ) ; ++ i ) { result [ i ] = fieldIds.readFieldId ( ) ; } return java.util.Arrays.asList ( result ) ; }
Source:
public void setSoWriteTimeout ( int writeTimeoutMilliseconds ) throws java.net.SocketException { this . writeTimeoutMilliseconds = writeTimeoutMilliseconds ; android.system.StructTimeval tv = android.system.StructTimeval.fromMillis ( writeTimeoutMilliseconds ) ; try { android.system.Os.setsockoptTimeval ( getFileDescriptor$ ( ) , android.system.OsConstants.SOL_SOCKET , android.system.OsConstants.SO_SNDTIMEO , tv ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }

Target:
public void setSoWriteTimeout ( int writeTimeoutMilliseconds ) throws java.net.SocketException { this . writeTimeoutMilliseconds = writeTimeoutMilliseconds ; org.conscrypt.Platform.setSocketTimeout ( this , writeTimeoutMilliseconds ) ; }
Source:
public void onCallerInfoChanged ( com.android.server.telecom.Call call ) { call.removeListener ( this ) ; showMissedCallNotification ( call , userHandle ) ; }

Target:
public void onCallerInfoQueryComplete ( android.net.Uri queryHandle , com.android.internal.telephony.CallerInfo info ) { if ( ! ( java.util.Objects.equals ( queryHandle , handle ) ) ) { com.android.server.telecom.Log.w ( this , ( "CallerInfo query returned with " + "different handle." ) ) ; return ; } if ( ( info.contactDisplayPhotoUri ) == null ) { com.android.server.telecom.ui.CallInfo callInfo = callInfoFactory.makeCallInfo ( info , null , handle , date ) ; showMissedCallNotification ( callInfo , userHandle ) ; } }
Source:
private void extractRaw ( android.content.Context ctx , int rid , java.io.File file ) throws java.lang.Exception { java.io.InputStream input = ctx.getResources ( ) . openRawResource ( rid ) ; byte [ ] buffer = new byte [ input.available ( ) ] ; input.read ( buffer ) ; input.close ( ) ; java.io.FileOutputStream fos = new java.io.FileOutputStream ( file ) ; fos.write ( buffer , 0 , buffer.length ) ; fos.close ( ) ; }

Target:
public void run ( ) { android.os.Looper.prepare ( ) ; android.media.MediaPlayer mp = new android.media.MediaPlayer ( ) ; mp.setOnErrorListener ( mpcl ) ; try { android.content.res.AssetFileDescriptor fd = getContext ( ) . getResources ( ) . openRawResourceFd ( rid ) ; mp.setDataSource ( fd.getFileDescriptor ( ) , fd.getStartOffset ( ) , fd.getLength ( ) ) ; mp.prepareAsync ( ) ; } catch ( java.lang.Exception e ) { } android.os.Looper.loop ( ) ; mp.release ( ) ; }
Source:
public void testSuccessfulFirstUpdate ( ) throws java.lang.Exception { libcore.tzdata.update2.ConfigBundle tzData = createValidTzDataBundle ( "2030a" ) ; assertTrue ( install ( tzData ) ) ; assertTzDataInstalled ( tzData ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; tempDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "tempDir" ) ; testInstallDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "testInstall" ) ; testSystemTzDataDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "testSystemTzData" ) ; java.io.File testSystemTzDataFile = new java.io.File ( testSystemTzDataDir , "tzdata" ) ; createTzDataFile ( testSystemTzDataFile , libcore.tzdata.update2.TzDataBundleInstallerTest.SYSTEM_RULES_VERSION ) ; installer = new libcore.tzdata.update2.TzDataBundleInstaller ( "TzDataBundleInstallerTest" , testSystemTzDataFile , testInstallDir ) ; }
Source:
public void test2 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( "res/values-cs/plurals3.xml:3: Error: For locale \"cs\" the following quantities should also be defined: few, many [MissingQuantity]\n" + " <plurals name=\"draft\">\n" ) + " ^\n" ) + "res/values-zh-rCN/plurals3.xml:3: Warning: For language \"zh\" the following quantities are not relevant: one [UnusedQuantity]\n" ) + " <plurals name=\"draft\">\n" ) + " ^\n" ) + "res/values-zh-rCN/plurals3.xml:7: Warning: For language \"zh\" the following quantities are not relevant: one [UnusedQuantity]\n" ) + " <plurals name=\"title_day_dialog_content\">\n" ) + " ^\n" ) + "1 errors, 2 warnings\n" ) ) , lintProject ( "res/values-zh-rCN/plurals3.xml" , "res/values-cs/plurals3.xml" ) ) ; }

Target:
public void test2 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( "res/values-cs/plurals3.xml:3: Error: For locale \"cs\" (Czech) the following quantities should also be defined: few, many [MissingQuantity]\n" + " <plurals name=\"draft\">\n" ) + " ^\n" ) + "res/values-zh-rCN/plurals3.xml:3: Warning: For language \"zh\" (Chinese) the following quantities are not relevant: one [UnusedQuantity]\n" ) + " <plurals name=\"draft\">\n" ) + " ^\n" ) + "res/values-zh-rCN/plurals3.xml:7: Warning: For language \"zh\" (Chinese) the following quantities are not relevant: one [UnusedQuantity]\n" ) + " <plurals name=\"title_day_dialog_content\">\n" ) + " ^\n" ) + "1 errors, 2 warnings\n" ) ) , lintProject ( "res/values-zh-rCN/plurals3.xml" , "res/values-cs/plurals3.xml" ) ) ; }
Source:
protected com.intellij.ide.util.MemberChooser < com.intellij.codeInsight.generation.ClassMember > createMembersChooser ( com.intellij.codeInsight.generation.ClassMember [ ] members , boolean allowEmptySelection , boolean copyJavadocCheckbox , com.intellij.openapi.project.Project project ) { com.intellij.ide.util.MemberChooser < com.intellij.codeInsight.generation.ClassMember > chooser = new com.intellij.ide.util.MemberChooser < com.intellij.codeInsight.generation.ClassMember > ( members , allowEmptySelection , true , project , false , getHeaderPanel ( project ) ) ; chooser.setTitle ( myChooserTitle ) ; chooser.setCopyJavadocVisible ( copyJavadocCheckbox ) ; return chooser ; }

Target:
protected java.lang.String getHelpId ( ) { return this . getHelpId ( ) ; }
Source:
private void handleWnmFrame ( java.lang.String eventStr , java.lang.String iface ) { try { com.android.server.wifi.WnmData wnmData = com.android.server.wifi.WnmData.buildWnmData ( eventStr ) ; sendMessage ( iface , com.android.server.wifi.WifiMonitor.HS20_REMEDIATION_EVENT , wnmData ) ; } catch ( java.io.IOException | java.lang.NumberFormatException e ) { android.util.Log.w ( com.android.server.wifi.WifiMonitor.TAG , ( ( "Bad WNM event: '" + eventStr ) + "'" ) ) ; } }

Target:
private void handleWnmFrame ( java.lang.String eventStr , java.lang.String iface ) { try { com.android.server.wifi.hotspot2.WnmData wnmData = com.android.server.wifi.hotspot2.WnmData.buildWnmData ( eventStr ) ; sendMessage ( iface , com.android.server.wifi.WifiMonitor.HS20_REMEDIATION_EVENT , wnmData ) ; } catch ( java.io.IOException | java.lang.NumberFormatException e ) { android.util.Log.w ( com.android.server.wifi.WifiMonitor.TAG , ( ( "Bad WNM event: '" + eventStr ) + "'" ) ) ; } }
Source:
public boolean remove ( java.lang.Object element ) { try { @ java.lang.SuppressWarnings ( value = "unchecked" ) E e = ( ( E ) ( element ) ) ; return ( predicate.apply ( e ) ) && ( unfiltered.remove ( element ) ) ; } catch ( java.lang.NullPointerException e ) { return false ; } catch ( java.lang.ClassCastException e ) { return false ; } }

Target:
public boolean remove ( java.lang.Object element ) { return ( contains ( element ) ) && ( unfiltered.remove ( element ) ) ; }
Source:
private static com.android.dialer.historyitemactions.HistoryItemActionModule createModuleForAccessingCallDetails ( android.content.Context context , com.android.dialer.calllog.model.CoalescedRow row ) { boolean canReportAsInvalidNumber = row.getNumberAttributes ( ) . getCanReportAsInvalidNumber ( ) ; boolean canSupportAssistedDialing = ! ( android.text.TextUtils.isEmpty ( row.getNumberAttributes ( ) . getLookupUri ( ) ) ) ; return new com.android.dialer.historyitemactions.IntentModule ( context , com.android.dialer.calldetails.CallDetailsActivity.newInstance ( context , row.getCoalescedIds ( ) , com.android.dialer.calllog.ui.menu.Modules.createCallDetailsHeaderInfoFromRow ( context , row ) , canReportAsInvalidNumber , canSupportAssistedDialing ) , R.string.call_details_menu_label , R.drawable.quantum_ic_info_outline_vd_theme_24 ) ; }

Target:
private static com.android.dialer.historyitemactions.HistoryItemActionModule createModuleForAccessingCallDetails ( android.content.Context context , com.android.dialer.calllog.model.CoalescedRow row ) { boolean canReportAsInvalidNumber = row.getNumberAttributes ( ) . getCanReportAsInvalidNumber ( ) ; return new com.android.dialer.historyitemactions.IntentModule ( context , com.android.dialer.calldetails.CallDetailsActivity.newInstance ( context , row.getCoalescedIds ( ) , com.android.dialer.calllog.ui.menu.Modules.createCallDetailsHeaderInfoFromRow ( context , row ) , canReportAsInvalidNumber , com.android.dialer.calllog.ui.menu.Modules.canSupportAssistedDialing ( row ) ) , R.string.call_details_menu_label , R.drawable.quantum_ic_info_outline_vd_theme_24 ) ; }
Source:
public android.net.Uri insert ( android.net.Uri uri , android.content.ContentValues values ) { final long row = getWritableDatabase ( ) . insertOrThrow ( com.android.providers.telephony.CarrierIdProvider.CARRIER_ID_TABLE , null , values ) ; if ( row > 0 ) { final android.net.Uri newUri = android.content.ContentUris.withAppendedId ( CarrierIdentification.CONTENT_URI , row ) ; getContext ( ) . getContentResolver ( ) . notifyChange ( newUri , null ) ; return newUri ; } return null ; }

Target:
public android.net.Uri insert ( android.net.Uri uri , android.content.ContentValues values ) { checkWritePermission ( ) ; final long row = getWritableDatabase ( ) . insertOrThrow ( com.android.providers.telephony.CarrierIdProvider.CARRIER_ID_TABLE , null , values ) ; if ( row > 0 ) { final android.net.Uri newUri = android.content.ContentUris.withAppendedId ( CarrierIdentification.CONTENT_URI , row ) ; getContext ( ) . getContentResolver ( ) . notifyChange ( newUri , null ) ; return newUri ; } return null ; }
Source:
private void writeEmptyBlock ( ) throws java.io.IOException { sourceInfoWriter.writeDebugBegin ( currentClass , currentLine ) ; writer.writeCatchBlockIds ( currentCatchList ) ; writer.writeKeyword ( Token.BLOCK ) ; writer.writeOpen ( ) ; writer.writeOpenNodeList ( ) ; writer.writeCloseNodeList ( ) ; sourceInfoWriter.writeDebugEnd ( currentClass , ( ( currentLine ) + 1 ) ) ; writer.writeClose ( ) ; }

Target:
private void writeLabelInsn ( @ javax.annotation.Nonnegative int insnIdx ) throws java.io.IOException { sourceInfoWriter.writeDebugBegin ( currentClass , currentLine ) ; writer.writeCatchBlockIds ( currentCatchList ) ; writer.writeKeyword ( Token.LABELED_STATEMENT ) ; writer.writeOpen ( ) ; java.lang.String id = java.lang.Integer.toString ( insnIdx ) ; writer.writeString ( id ) ; writer.writeId ( id ) ; writeEmptyBlock ( ) ; sourceInfoWriter.writeDebugEnd ( currentClass , ( ( currentLine ) + 1 ) ) ; writer.writeClose ( ) ; }
Source:
public void compileBouncycastle ( ) throws java.lang.Exception { java.io.File outDexFolder = com.android.jack.TestTools.createTempDir ( "bouncycastle" , ".dex" ) ; com.android.jack.Options options = new com.android.jack.Options ( ) ; options.disableDxOptimizations ( ) ; com.android.jack.TestTools.compileSourceToDex ( options , com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.SOURCELIST , com.android.jack.TestTools.getClasspathAsString ( com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.BOOTCLASSPATH ) , outDexFolder , false , com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.JARJAR_RULES , null , false ) ; }

Target:
public void compileBouncycastle ( ) throws java.lang.Exception { java.io.File outDexFolder = com.android.jack.TestTools.createTempDir ( "bouncycastle" , ".dex" ) ; com.android.jack.Options options = new com.android.jack.Options ( ) ; options.disableDxOptimizations ( ) ; com.android.jack.TestTools.compileSourceToDex ( options , com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.SOURCELIST , com.android.jack.TestTools.getClasspathAsString ( com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.CLASSPATH ) , outDexFolder , false , com.android.jack.compile.androidtree.bouncycastle.BouncycastleCompilationTest.JARJAR_RULES , null , false ) ; }
Source:
protected org.eclipse.core.runtime.IStatus run ( org.eclipse.core.runtime.IProgressMonitor monitor ) { com.android.sdkstats.SdkStatsService stats = new com.android.sdkstats.SdkStatsService ( ) ; java.lang.String toolsPath = new org.eclipse.core.runtime.Path ( com.android.ide.eclipse.monitor.MonitorPlugin.getDefault ( ) . getSdkPath ( ) ) . append ( "tools" ) . toString ( ) ; com.android.ide.eclipse.monitor.MonitorStartup.ping ( stats , toolsPath ) ; return org.eclipse.core.runtime.Status.OK_STATUS ; }

Target:
protected org.eclipse.core.runtime.IStatus run ( org.eclipse.core.runtime.IProgressMonitor monitor ) { com.android.sdkstats.SdkStatsService stats = new com.android.sdkstats.SdkStatsService ( ) ; java.lang.String sdkPath = com.android.ide.eclipse.monitor.MonitorPlugin.getDefault ( ) . getSdkPath ( ) ; if ( sdkPath == null ) { return org.eclipse.core.runtime.Status.OK_STATUS ; } java.lang.String toolsPath = new org.eclipse.core.runtime.Path ( sdkPath ) . append ( SdkConstants.FD_TOOLS ) . toString ( ) ; com.android.ide.eclipse.monitor.MonitorStartup.ping ( stats , toolsPath ) ; return org.eclipse.core.runtime.Status.OK_STATUS ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mActivity = getActivity ( ) ; mInstrumentation = getInstrumentation ( ) ; mToast = new android.widget.Toast ( mActivity ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mActivity = getActivity ( ) ; mInstrumentation = getInstrumentation ( ) ; mToast = new android.widget.Toast ( mActivity ) ; mLayoutDone = false ; mLayoutListener = new android.view.ViewTreeObserver.OnGlobalLayoutListener ( ) { public void onGlobalLayout ( ) { mLayoutDone = true ; } } ; }
Source:
public static org.eclipse.swt.graphics.Image getImage ( org.eclipse.swt.widgets.Display display , com.android.ide.eclipse.gltrace.GLProtoBuf.GLMessage glMsg ) { if ( ! ( glMsg.hasFb ( ) ) ) { return null ; } return new org.eclipse.swt.graphics.Image ( display , com.android.ide.eclipse.gltrace.ProtoBufUtils.getImageData ( glMsg ) ) ; }

Target:
public static org.eclipse.swt.graphics.Image getImage ( org.eclipse.swt.widgets.Display display , com.android.ide.eclipse.gltrace.GLProtoBuf.GLMessage glMsg ) { if ( ! ( glMsg.hasFb ( ) ) ) { return null ; } org.eclipse.swt.graphics.ImageData imageData = com.android.ide.eclipse.gltrace.ProtoBufUtils.getImageData ( glMsg ) ; if ( imageData == null ) { return null ; } return new org.eclipse.swt.graphics.Image ( display , imageData ) ; }
Source:
public void coreToJayceFromFolder ( ) throws java.lang.Exception { com.android.jill.Options options = new com.android.jill.Options ( ) ; options.setBinaryFile ( new java.io.File ( ( ( com.android.jill.JillTestTools.getAndroidTop ( ) ) + "/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes/" ) ) ) ; options.setVerbose ( true ) ; options.container = ContainerType.DIR ; options.outputDirOrZip = com.android.jill.JillTestTools.createTempDir ( "core_" , "_dir" ) ; new com.android.jill.Jill ( options , "0.1" ) . process ( options.getBinaryFile ( ) ) ; }

Target:
public void coreToJayceFromFolder ( ) throws java.lang.Exception { com.android.jill.Options options = new com.android.jill.Options ( ) ; options.setBinaryFile ( new java.io.File ( ( ( com.android.jack.test.TestsProperties.getAndroidRootDir ( ) . getPath ( ) ) + "/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes/" ) ) ) ; options.setVerbose ( true ) ; options.container = ContainerType.DIR ; options.outputDirOrZip = com.android.jill.JillTestTools.createTempDir ( "core_" , "_dir" ) ; new com.android.jill.Jill ( options , "0.1" ) . process ( options.getBinaryFile ( ) ) ; }
Source:
private java.security.KeyStore getKeyStore ( java.lang.String keys ) throws java.lang.Exception { byte [ ] bytes = libcore.io.Base64.decode ( keys.getBytes ( ) ) ; java.io.InputStream inputStream = new java.io.ByteArrayInputStream ( bytes ) ; java.security.KeyStore keyStore = java.security.KeyStore.getInstance ( java.security.KeyStore.getDefaultType ( ) ) ; keyStore.load ( inputStream , PASSWORD.toCharArray ( ) ) ; inputStream.close ( ) ; return keyStore ; }

Target:
private java.security.KeyStore getKeyStore ( java.lang.String keys ) throws java.lang.Exception { byte [ ] bytes = java.util.Base64.getDecoder ( ) . decode ( keys.getBytes ( ) ) ; java.io.InputStream inputStream = new java.io.ByteArrayInputStream ( bytes ) ; java.security.KeyStore keyStore = java.security.KeyStore.getInstance ( java.security.KeyStore.getDefaultType ( ) ) ; keyStore.load ( inputStream , PASSWORD.toCharArray ( ) ) ; inputStream.close ( ) ; return keyStore ; }
Source:
public static java.lang.String toString ( int ch ) { if ( ( ch < ( android.icu.lang.UCharacter.MIN_VALUE ) ) || ( ch > ( android.icu.lang.UCharacter.MAX_VALUE ) ) ) { return null ; } if ( ch < ( android.icu.lang.UCharacter.SUPPLEMENTARY_MIN_VALUE ) ) { return java.lang.String.valueOf ( ( ( char ) ( ch ) ) ) ; } java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; result.append ( android.icu.text.UTF16.getLeadSurrogate ( ch ) ) ; result.append ( android.icu.text.UTF16.getTrailSurrogate ( ch ) ) ; return result.toString ( ) ; }

Target:
public static java.lang.String toString ( int ch ) { if ( ( ch < ( android.icu.lang.UCharacter.MIN_VALUE ) ) || ( ch > ( android.icu.lang.UCharacter.MAX_VALUE ) ) ) { return null ; } if ( ch < ( android.icu.lang.UCharacter.SUPPLEMENTARY_MIN_VALUE ) ) { return java.lang.String.valueOf ( ( ( char ) ( ch ) ) ) ; } return new java.lang.String ( java.lang.Character.toChars ( ch ) ) ; }
Source:
public com.google.common.collect.ImmutableMultimap < java.lang.Integer , com.android.manifmerger.Actions.Record > getResultingSourceMapping ( com.android.manifmerger.XmlDocument xmlDocument ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.manifmerger.XmlLoader.SourceLocation inMemory = XmlLoader.UNKNOWN ; com.android.manifmerger.XmlDocument loadedWithLineNumbers = com.android.manifmerger.XmlLoader.load ( xmlDocument.getSelectors ( ) , xmlDocument.getSystemPropertyResolver ( ) , inMemory , xmlDocument.prettyPrint ( ) ) ; com.google.common.collect.ImmutableMultimap.Builder < java.lang.Integer , com.android.manifmerger.Actions.Record > mappingBuilder = com.google.common.collect.ImmutableMultimap.builder ( ) ; for ( com.android.manifmerger.XmlElement xmlElement : loadedWithLineNumbers.getRootNode ( ) . getMergeableElements ( ) ) { parse ( xmlElement , mappingBuilder ) ; } return mappingBuilder.build ( ) ; }

Target:
public com.google.common.collect.ImmutableMultimap < java.lang.Integer , com.android.manifmerger.Actions.Record > getResultingSourceMapping ( com.android.manifmerger.XmlDocument xmlDocument ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.manifmerger.XmlLoader.SourceLocation inMemory = XmlLoader.UNKNOWN ; com.android.manifmerger.XmlDocument loadedWithLineNumbers = com.android.manifmerger.XmlLoader.load ( xmlDocument.getSelectors ( ) , xmlDocument.getSystemPropertyResolver ( ) , inMemory , xmlDocument.prettyPrint ( ) , XmlDocument.Type.MAIN ) ; com.google.common.collect.ImmutableMultimap.Builder < java.lang.Integer , com.android.manifmerger.Actions.Record > mappingBuilder = com.google.common.collect.ImmutableMultimap.builder ( ) ; for ( com.android.manifmerger.XmlElement xmlElement : loadedWithLineNumbers.getRootNode ( ) . getMergeableElements ( ) ) { parse ( xmlElement , mappingBuilder ) ; } return mappingBuilder.build ( ) ; }
Source:
public void onQueueChanged ( java.util.List < android.media.session.MediaSession.QueueItem > queue ) { if ( queue == null ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , "onQueueChanged: received null queue" ) ; return ; } android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "onQueueChanged: NowPlaying list changed, Queue Size = " + ( queue.size ( ) ) ) ) ; mAddressedMediaPlayer.updateNowPlayingList ( queue ) ; if ( ! ( registerNotificationRspNowPlayingChangedNative ( AvrcpConstants.NOTIFICATION_TYPE_CHANGED ) ) ) { android.util.Log.e ( com.android.bluetooth.avrcp.Avrcp.TAG , "onQueueChanged-registerNotificationRspNowPlayingChangedNative failed" ) ; } }

Target:
public void onQueueChanged ( java.util.List < android.media.session.MediaSession.QueueItem > queue ) { if ( queue == null ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , "onQueueChanged: received null queue" ) ; return ; } android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "onQueueChanged: NowPlaying list changed, Queue Size = " + ( queue.size ( ) ) ) ) ; mAddressedMediaPlayer.updateNowPlayingList ( queue ) ; mHandler.sendEmptyMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NOW_PLAYING_CHANGED_RSP ) ; }
Source:
public final boolean isCategoryName ( @ com.android.annotations.NonNull java.lang.String name ) { for ( com.android.tools.lint.detector.api.Category c : getCategories ( ) ) { if ( ( c.getName ( ) . equals ( name ) ) || ( c.getFullName ( ) . equals ( name ) ) ) { return true ; } } return false ; }

Target:
public final boolean isCategoryName ( @ com.android.annotations.NonNull java.lang.String name ) { for ( com.android.tools.lint.detector.api.Category category : getCategories ( ) ) { if ( ( category.getName ( ) . equals ( name ) ) || ( category.getFullName ( ) . equals ( name ) ) ) { return true ; } } return false ; }
Source:
protected android.view.View bindVetoButtonClickListener ( android.view.View row , final android.service.notification.StatusBarNotification n ) { android.view.View vetoButton = row.findViewById ( R.id.veto ) ; vetoButton.setOnClickListener ( new android.view.View.OnClickListener ( ) { public void onClick ( android.view.View v ) { v.announceForAccessibility ( mContext.getString ( R.string.accessibility_notification_dismissed ) ) ; performRemoveNotification ( n , false ) ; } } ) ; vetoButton.setImportantForAccessibility ( View.IMPORTANT_FOR_ACCESSIBILITY_NO ) ; return vetoButton ; }

Target:
protected void bindDismissListener ( final com.android.systemui.statusbar.ExpandableNotificationRow row ) { row.setOnDismissListener ( new android.view.View.OnClickListener ( ) { public void onClick ( android.view.View v ) { v.announceForAccessibility ( mContext.getString ( R.string.accessibility_notification_dismissed ) ) ; performRemoveNotification ( row.getStatusBarNotification ( ) , false ) ; } } ) ; }
Source:
public void addGeneratedSourceFolders ( @ com.android.annotations.NonNull org.gradle.api.Task task , @ com.android.annotations.NonNull java.io.File ... generatedSourceFolders ) { if ( ( extraGeneratedSourceFolders ) == null ) { extraGeneratedSourceFolders = com.google.common.collect.Lists.newArrayList ( ) ; } javaCompileTask.dependsOn ( task ) ; for ( java.io.File f : generatedSourceFolders ) { extraGeneratedSourceFolders.add ( f ) ; javaCompileTask.source ( f ) ; } }

Target:
public void addJavaSourceFoldersToModel ( @ com.android.annotations.NonNull java.util.Collection < java.io.File > generatedSourceFolders ) { extraGeneratedSourceFolders.addAll ( generatedSourceFolders ) ; }
Source:
private double getAspectRatio ( android.content.Context context ) { android.view.WindowManager windowManager = ( ( android.view.WindowManager ) ( context.getSystemService ( Context.WINDOW_SERVICE ) ) ) ; android.view.Display display = windowManager.getDefaultDisplay ( ) ; android.util.DisplayMetrics metrics = new android.util.DisplayMetrics ( ) ; display.getMetrics ( metrics ) ; int max = java.lang.Math.max ( metrics.widthPixels , metrics.heightPixels ) ; int min = java.lang.Math.min ( metrics.widthPixels , metrics.heightPixels ) ; return ( ( double ) ( max ) ) / min ; }

Target:
private double getRealAspectRatio ( android.content.Context context ) { android.view.WindowManager windowManager = ( ( android.view.WindowManager ) ( context.getSystemService ( Context.WINDOW_SERVICE ) ) ) ; android.view.Display display = windowManager.getDefaultDisplay ( ) ; android.util.DisplayMetrics metrics = new android.util.DisplayMetrics ( ) ; display.getRealMetrics ( metrics ) ; int max = java.lang.Math.max ( metrics.widthPixels , metrics.heightPixels ) ; int min = java.lang.Math.min ( metrics.widthPixels , metrics.heightPixels ) ; return ( ( double ) ( max ) ) / min ; }
Source:
protected abstract void startNetStatPoll ( ) ;

Target:
protected void startNetStatPoll ( ) { if ( ( ( getOverallState ( ) ) == ( DctConstants.State.CONNECTED ) ) && ( ( mNetStatPollEnabled ) == false ) ) { if ( com.android.internal.telephony.DataConnectionTracker.DBG ) log ( "startNetStatPoll" ) ; resetPollStats ( ) ; mNetStatPollEnabled = true ; mPollNetStat.run ( ) ; } }
Source:
java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.util.List < android.bluetooth.BluetoothDevice > inputDevices = new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; for ( android.bluetooth.BluetoothDevice device : mInputDevices.keySet ( ) ) { int inputDeviceState = getConnectionState ( device ) ; for ( int state : states ) { if ( state == inputDeviceState ) { inputDevices.add ( device ) ; break ; } } } return inputDevices ; }

Target:
java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { if ( com.android.bluetooth.hid.HidService.DBG ) android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , "getDevicesMatchingConnectionStates()" ) ; enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.util.List < android.bluetooth.BluetoothDevice > inputDevices = new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; for ( android.bluetooth.BluetoothDevice device : mInputDevices.keySet ( ) ) { int inputDeviceState = getConnectionState ( device ) ; for ( int state : states ) { if ( state == inputDeviceState ) { inputDevices.add ( device ) ; break ; } } } return inputDevices ; }
Source:
public int getColumnCount ( ) { return com.android.sched.util.log.stats.ObjectAlloc.HEADER.length ; }

Target:
public synchronized java.util.Iterator < java.lang.Object > iterator ( ) { return com.google.common.collect.Iterators.< java.lang.Object > forArray ( java.lang.Long.valueOf ( getNumber ( ) ) , java.lang.Long.valueOf ( getSize ( ) ) , java.lang.Long.valueOf ( ( ( getNumber ( ) ) * ( getSize ( ) ) ) ) ) ; }