auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean resetRoamingConfiguration ( ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "resetRoamingConfiguration " ) ; try { if ( ( mWifiVendorHal ) != null ) { com.android.server.wifi.WifiNative.RoamingConfig config = new com.android.server.wifi.WifiNative.RoamingConfig ( ) ; return mWifiVendorHal.configureRoaming ( config ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } return false ; }

Target:
public boolean getRoamingCapabilities ( com.android.server.wifi.WifiNative.RoamingCapabilities capabilities ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "getRoamingCapabilities " ) ; if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getRoamingCapabilities ( capabilities ) ; } else { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "getRoamingCapabilities not supported" ) ; return false ; } }
Source:
public final int doFinal ( byte [ ] input , int inputOffset , int inputLen , byte [ ] output , int outputOffset ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } javax.crypto.Cipher.checkInputOffsetAndCount ( input.length , inputOffset , inputLen ) ; return spiImpl.engineDoFinal ( input , inputOffset , inputLen , output , outputOffset ) ; }

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:
private void handleSessionEnd ( ) { com.android.internal.telephony.cat.CatLog.d ( this , "SESSION END" ) ; mCurrntCmd = mMenuCmd ; android.content.Intent intent = new android.content.Intent ( AppInterface.CAT_SESSION_END_ACTION ) ; mContext.sendBroadcast ( intent ) ; }

Target:
private void broadcastCatCmdIntent ( com.android.internal.telephony.cat.CatCmdMessage cmdMsg ) { android.content.Intent intent = new android.content.Intent ( AppInterface.CAT_CMD_ACTION ) ; intent.putExtra ( "STK CMD" , cmdMsg ) ; intent.putExtra ( "SLOT_ID" , mSlotId ) ; com.android.internal.telephony.cat.CatLog.d ( this , ( ( ( "Sending CmdMsg: " + cmdMsg ) + " on slotid:" ) + ( mSlotId ) ) ) ; mContext.sendBroadcast ( intent ) ; }
Source:
public java.lang.String toString ( ) { if ( ( buffer ) == null ) { return ( ( ( ( declaringClassIndex ) + " " ) + ( typeIndex ) ) + " " ) + ( nameIndex ) ; } return ( ( buffer.typeNames ( ) . get ( typeIndex ) ) + "." ) + ( buffer.strings ( ) . get ( nameIndex ) ) ; }

Target:
public java.lang.String toString ( ) { if ( ( dex ) == null ) { return ( ( ( ( declaringClassIndex ) + " " ) + ( typeIndex ) ) + " " ) + ( nameIndex ) ; } return ( ( dex.typeNames ( ) . get ( typeIndex ) ) + "." ) + ( dex.strings ( ) . get ( nameIndex ) ) ; }
Source:
private boolean setupData ( java.lang.String reason ) { com.android.internal.telephony.cdma.CdmaDataConnection conn = findFreeDataConnection ( ) ; if ( conn == null ) { if ( DBG ) log ( "setupData: No free CdmaDataConnectionfound!" ) ; return false ; } mActiveDataConnection = conn ; mIsApnActive = true ; android.os.Message msg = obtainMessage ( ) ; msg.what = EVENT_DATA_SETUP_COMPLETE ; msg.obj = reason ; conn.connect ( msg ) ; setState ( State.INITING ) ; phone.notifyDataConnection ( reason ) ; return true ; }

Target:
private boolean setupData ( java.lang.String reason ) { com.android.internal.telephony.cdma.CdmaDataConnection conn = findFreeDataConnection ( ) ; if ( conn == null ) { if ( DBG ) log ( "setupData: No free CdmaDataConnection found!" ) ; return false ; } mActiveDataConnection = conn ; mIsApnActive = true ; android.os.Message msg = obtainMessage ( ) ; msg.what = EVENT_DATA_SETUP_COMPLETE ; msg.obj = reason ; conn.connect ( msg ) ; setState ( State.INITING ) ; phone.notifyDataConnection ( reason ) ; return true ; }
Source:
public void setHighestPriority ( com.android.tv.dvr.ScheduledRecording schedule ) { if ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) { long newPriority = mScheduleManager.suggestHighestPriority ( schedule ) ; if ( newPriority != ( schedule.getPriority ( ) ) ) { mDataManager.updateScheduledRecording ( com.android.tv.dvr.ScheduledRecording.buildFrom ( schedule ) . setPriority ( newPriority ) . build ( ) ) ; } } }

Target:
public void setHighestPriority ( com.android.tv.dvr.data.ScheduledRecording schedule ) { if ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) { long newPriority = mScheduleManager.suggestHighestPriority ( schedule ) ; if ( newPriority != ( schedule.getPriority ( ) ) ) { mDataManager.updateScheduledRecording ( com.android.tv.dvr.data.ScheduledRecording.buildFrom ( schedule ) . setPriority ( newPriority ) . build ( ) ) ; } } }
Source:
public final float getFloat ( int index ) { checkIndex ( index , SizeOf.FLOAT ) ; return java.lang.Float.intBitsToFloat ( this . block.peekInt ( ( ( offset ) + index ) , order ) ) ; }

Target:
final void get ( long [ ] dst , int dstOffset , int longCount ) { int byteCount = checkGetBounds ( SizeOf.LONG , dst.length , dstOffset , longCount ) ; this . block.peekLongArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , longCount , order.needsSwap ) ; position += byteCount ; }
Source:
public static java.lang.invoke.MethodHandle filterArguments ( java.lang.invoke.MethodHandle target , int pos , java.lang.invoke.MethodHandle ... filters ) { java.lang.invoke.MethodHandles.filterArgumentsCheckArity ( target , pos , filters ) ; java.lang.invoke.MethodHandle adapter = target ; int curPos = pos - 1 ; for ( java.lang.invoke.MethodHandle filter : filters ) { curPos += 1 ; if ( filter == null ) continue ; adapter = java.lang.invoke.MethodHandles.filterArgument ( adapter , curPos , filter ) ; } return adapter ; }

Target:
public static java.lang.invoke.MethodHandle filterArguments ( java.lang.invoke.MethodHandle target , int pos , java.lang.invoke.MethodHandle ... filters ) { java.lang.invoke.MethodHandles.filterArgumentsCheckArity ( target , pos , filters ) ; for ( int i = 0 ; i < ( filters.length ) ; ++ i ) { java.lang.invoke.MethodHandles.filterArgumentChecks ( target , ( i + pos ) , filters [ i ] ) ; } return new java.lang.invoke.Transformers.FilterArguments ( target , pos , filters ) ; }
Source:
public void visitArrayElementValue ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Annotation annotation , proguard.classfile.visitor.ArrayElementValue arrayElementValue ) { println ( ( ( ( ( visitorInfo ( arrayElementValue ) ) + " Array element value [" ) + ( ( arrayElementValue.u2elementNameIndex ) == 0 ? "(default)" : clazz.getString ( arrayElementValue.u2elementNameIndex ) ) ) + "]:" ) ) ; indent ( ) ; arrayElementValue.elementValuesAccept ( clazz , annotation , this ) ; outdent ( ) ; }

Target:
public void visitArrayElementValue ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Annotation annotation , proguard.classfile.visitor.ArrayElementValue arrayElementValue ) { println ( ( ( ( ( visitorInfo ( arrayElementValue ) ) + " Array element value [" ) + ( ( arrayElementValue.u2elementNameIndex ) == 0 ? "(default)" : arrayElementValue.getMethodName ( clazz ) ) ) + "]:" ) ) ; indent ( ) ; arrayElementValue.elementValuesAccept ( clazz , annotation , this ) ; outdent ( ) ; }
Source:
public static boolean doesDeviceSupportEarpieceRoute ( ) { java.lang.String [ ] characteristics = android.os.SystemProperties.get ( "ro.build.characteristics" ) . split ( "," ) ; for ( java.lang.String characteristic : characteristics ) { if ( "watch" . equals ( characteristic ) ) { return false ; } } return true ; }

Target:
private boolean checkForEarpieceSupport ( ) { android.media.AudioDeviceInfo [ ] deviceList = mAudioManager.getDevices ( AudioManager.GET_DEVICES_OUTPUTS ) ; for ( android.media.AudioDeviceInfo device : deviceList ) { if ( ( device.getType ( ) ) == ( android.media.AudioDeviceInfo.TYPE_BUILTIN_EARPIECE ) ) { return true ; } } return false ; }
Source:
public static void log ( int severity , java.lang.String format , java.lang.Object ... args ) { java.lang.String message = java.lang.String.format ( format , args ) ; org.eclipse.core.runtime.Status status = new org.eclipse.core.runtime.Status ( severity , com.android.ide.eclipse.adt.AdtPlugin.PLUGIN_ID , message ) ; com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . getLog ( ) . log ( status ) ; }

Target:
public static void log ( int severity , java.lang.String format , java.lang.Object ... args ) { java.lang.String message = java.lang.String.format ( format , args ) ; org.eclipse.core.runtime.Status status = new org.eclipse.core.runtime.Status ( severity , com.android.ide.eclipse.adt.AdtPlugin.PLUGIN_ID , message ) ; if ( ( com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) ) != null ) { com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . getLog ( ) . log ( status ) ; } else { ( severity < ( org.eclipse.core.runtime.IStatus.ERROR ) ? java.lang.System.out : java.lang.System.err ) . println ( status.toString ( ) ) ; } }
Source:
public void testAesCbcHmacSha1Tcp4 ( ) 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_SHA1 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha1Tcp6 ( ) 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_SHA1 , getAuthKey ( 160 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 ) ; }
Source:
public void test_setOption ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; dc.setOption ( java.net.StandardSocketOptions.SO_SNDBUF , 1024 ) ; assertEquals ( 1024 , ( ( int ) ( dc.getOption ( java.net.StandardSocketOptions.SO_SNDBUF ) ) ) ) ; assertEquals ( 1024 , dc.socket ( ) . getSendBufferSize ( ) ) ; dc.close ( ) ; try { dc.setOption ( java.net.StandardSocketOptions.SO_SNDBUF , 1024 ) ; fail ( ) ; } catch ( java.nio.channels.ClosedChannelException expected ) { } }

Target:
public void test_setOption ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; dc.setOption ( java.net.StandardSocketOptions.SO_SNDBUF , 4096 ) ; assertEquals ( 4096 , ( ( int ) ( dc.getOption ( java.net.StandardSocketOptions.SO_SNDBUF ) ) ) ) ; assertEquals ( 4096 , dc.socket ( ) . getSendBufferSize ( ) ) ; dc.close ( ) ; try { dc.setOption ( java.net.StandardSocketOptions.SO_SNDBUF , 4096 ) ; fail ( ) ; } catch ( java.nio.channels.ClosedChannelException expected ) { } }
Source:
private static boolean hasOperand ( lombok.ast.Expression operand , java.util.List < lombok.ast.MethodInvocation > list ) { for ( lombok.ast.MethodInvocation method : list ) { lombok.ast.Expression operand1 = method.astOperand ( ) ; if ( operand.toString ( ) . equals ( operand1.toString ( ) ) ) { return true ; } } return false ; }

Target:
private static boolean hasOperand ( com.intellij.psi.PsiExpression operand , java.util.List < com.intellij.psi.PsiMethodCallExpression > list ) { for ( com.intellij.psi.PsiMethodCallExpression method : list ) { com.intellij.psi.PsiElement operand2 = method.getMethodExpression ( ) . getQualifier ( ) ; if ( ( operand2 != null ) && ( operand.getText ( ) . equals ( operand2.getText ( ) ) ) ) { return true ; } } return false ; }
Source:
public void testRegisterAndUnregisterIdling ( ) throws java.lang.Exception { android.support.test.espresso.base.OnDemandIdlingResource r1 = new android.support.test.espresso.base.OnDemandIdlingResource ( "r1" ) ; r1.forceIdleNow ( ) ; java.util.concurrent.FutureTask < java.lang.Boolean > resourcesIdle = createIdleCheckTask ( registry ) ; handler.post ( resourcesIdle ) ; assertTrue ( resourcesIdle.get ( ) ) ; r1.reset ( ) ; registry.unregisterResources ( com.google.common.collect.Lists.newArrayList ( r1 ) ) ; resourcesIdle = createIdleCheckTask ( registry ) ; handler.post ( resourcesIdle ) ; assertTrue ( resourcesIdle.get ( ) ) ; }

Target:
public void registerAndUnregisterIdling ( ) throws java.lang.Exception { android.support.test.espresso.base.OnDemandIdlingResource r1 = new android.support.test.espresso.base.OnDemandIdlingResource ( "r1" ) ; r1.forceIdleNow ( ) ; java.util.concurrent.FutureTask < java.lang.Boolean > resourcesIdle = createIdleCheckTask ( registry ) ; handler.post ( resourcesIdle ) ; junit.framework.Assert.assertTrue ( resourcesIdle.get ( ) ) ; r1.reset ( ) ; registry.unregisterResources ( com.google.common.collect.Lists.newArrayList ( r1 ) ) ; resourcesIdle = createIdleCheckTask ( registry ) ; handler.post ( resourcesIdle ) ; junit.framework.Assert.assertTrue ( resourcesIdle.get ( ) ) ; }
Source:
public void testHasMyPackageName ( ) { java.lang.String targetPackage = android.support.test.InstrumentationRegistry.getTargetContext ( ) . getPackageName ( ) ; android.content.ComponentName targetComponent = new android.content.ComponentName ( targetPackage , ( targetPackage + ".SomeClass " ) ) ; assertTrue ( android.support.test.espresso.intent.matcher.ComponentNameMatchers.hasMyPackageName ( ) . matches ( targetComponent ) ) ; }

Target:
public void hasMyPackageNameTesting ( ) { java.lang.String targetPackage = android.support.test.InstrumentationRegistry.getTargetContext ( ) . getPackageName ( ) ; android.content.ComponentName targetComponent = new android.content.ComponentName ( targetPackage , ( targetPackage + ".SomeClass " ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.ComponentNameMatchers.hasMyPackageName ( ) . matches ( targetComponent ) ) ; }
Source:
public synchronized void release ( ) throws java.io.IOException { java.nio.channels.Channel ch = acquiredBy ( ) ; if ( ! ( ch.isOpen ( ) ) ) throw new java.nio.channels.ClosedChannelException ( ) ; if ( valid ) { if ( ch instanceof sun.nio.ch.FileChannelImpl ) ( ( sun.nio.ch.FileChannelImpl ) ( ch ) ) . release ( this ) ; else throw new java.lang.AssertionError ( ) ; valid = false ; } }

Target:
public synchronized void release ( ) throws java.io.IOException { java.nio.channels.Channel ch = acquiredBy ( ) ; if ( ! ( ch.isOpen ( ) ) ) throw new java.nio.channels.ClosedChannelException ( ) ; if ( valid ) { if ( ch instanceof sun.nio.ch.FileChannelImpl ) ( ( sun.nio.ch.FileChannelImpl ) ( ch ) ) . release ( this ) ; else if ( ch instanceof sun.nio.ch.AsynchronousFileChannelImpl ) ( ( sun.nio.ch.AsynchronousFileChannelImpl ) ( ch ) ) . release ( this ) ; else throw new java.lang.AssertionError ( ) ; valid = false ; } }
Source:
public void testGetValues010_Array ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value expectedValue = getStaticFieldValue ( classID , "ARRAY_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointArray" , StackTrace002Debuggee.ARRAY_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointArray" ) ; methodInfo.addVariable ( "param" , expectedValue ) ; runStackFrameTest ( tester ) ; }

Target:
public void testGetValues008_Double ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.DOUBLE_METHOD ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.DOUBLE_PARAM_VALUE ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointDouble" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointDouble" ) ; methodInfo.addVariable ( "param" , oldValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
private final boolean updateOomAdjLocked ( com.android.server.am.ProcessRecord app , int cachedAdj , com.android.server.am.ProcessRecord TOP_APP , boolean doingAll , long now ) { if ( ( app.thread ) == null ) { return false ; } computeOomAdjLocked ( app , cachedAdj , TOP_APP , doingAll , now ) ; return applyOomAdjLocked ( app , doingAll , now ) ; }

Target:
private final boolean updateOomAdjLocked ( com.android.server.am.ProcessRecord app , int cachedAdj , com.android.server.am.ProcessRecord TOP_APP , boolean doingAll , long now ) { if ( ( app.thread ) == null ) { return false ; } computeOomAdjLocked ( app , cachedAdj , TOP_APP , doingAll , now ) ; return applyOomAdjLocked ( app , doingAll , now , android.os.SystemClock.elapsedRealtime ( ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( "ServerSocket: Type: " ) ; switch ( mSocket.getConnectionType ( ) ) { case BluetoothSocket.TYPE_RFCOMM : { sb.append ( "TYPE_RFCOMM" ) ; break ; } case BluetoothSocket.TYPE_L2CAP : { sb.append ( "TYPE_L2CAP" ) ; break ; } case BluetoothSocket.TYPE_SCO : { sb.append ( "TYPE_SCO" ) ; break ; } } sb.append ( " Channel: " ) . append ( mChannel ) ; return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( "ServerSocket: Type: " ) ; switch ( mSocket.getConnectionType ( ) ) { case BluetoothSocket.TYPE_RFCOMM : { sb.append ( "TYPE_RFCOMM" ) ; break ; } case BluetoothSocket.TYPE_L2CAP : { sb.append ( "TYPE_L2CAP" ) ; break ; } case BluetoothSocket.TYPE_L2CAP_LE : { sb.append ( "TYPE_L2CAP_LE" ) ; break ; } case BluetoothSocket.TYPE_SCO : { sb.append ( "TYPE_SCO" ) ; break ; } } sb.append ( " Channel: " ) . append ( mChannel ) ; return sb.toString ( ) ; }
Source:
public void bind ( java.net.SocketAddress localAddr ) throws java.io.IOException { if ( channel.isConnected ( ) ) { throw new java.nio.channels.AlreadyConnectedException ( ) ; } if ( ( java.nio.SocketChannelImpl.SOCKET_STATUS_PENDING ) == ( channel.status ) ) { throw new java.nio.channels.ConnectionPendingException ( ) ; } super . bind ( localAddr ) ; channel.initLocalAddressAndPort ( ) ; channel.isBound = true ; }

Target:
public void bind ( java.net.SocketAddress localAddr ) throws java.io.IOException { if ( channel.isConnected ( ) ) { throw new java.nio.channels.AlreadyConnectedException ( ) ; } if ( ( java.nio.SocketChannelImpl.SOCKET_STATUS_PENDING ) == ( channel.status ) ) { throw new java.nio.channels.ConnectionPendingException ( ) ; } super . bind ( localAddr ) ; channel.onBind ( false ) ; }
Source:
public int computeVerticalScrollExtent ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { int ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Integer > ( ) { @ java.lang.Override public java.lang.Integer call ( ) { return computeVerticalScrollExtent ( ) ; } } ) ; return ret ; } return mAwContents.computeVerticalScrollExtent ( ) ; }

Target:
public void computeScroll ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { computeScroll ( ) ; } } ) ; return ; } mAwContents.computeScroll ( ) ; }
Source:
private void registerNotificationRequestFromNative ( byte [ ] address , int eventId , int param ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_REGISTER_NOTIFICATION , eventId , param ) ; msg.obj = address ; mHandler.sendMessage ( msg ) ; }

Target:
private void registerNotificationRequestFromNative ( byte [ ] address , int eventId , int param ) { final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) { android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "registerNotificationRequestFromNative: mHandler is already null" ) ; } return ; } android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_REGISTER_NOTIFICATION , eventId , param ) ; msg.obj = address ; handler.sendMessage ( msg ) ; }
Source:
public void testOverlay1Content ( ) throws java.lang.Exception { java.io.File project = buildProject ( "overlay1" , BasePlugin.GRADLE_MIN_VERSION ) ; java.io.File drawableOutput = new java.io.File ( project , "build/res/all/debug/drawable" ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "no_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "type_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; }

Target:
public void testOverlay1Content ( ) throws java.lang.Exception { java.io.File project = buildProject ( "overlay1" , BasePlugin.GRADLE_MIN_VERSION ) ; java.io.File drawableOutput = new java.io.File ( project , ( ( "build/" + ( com.android.build.gradle.BasePlugin.FD_INTERMEDIATES ) ) + "/res/debug/drawable" ) ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "no_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "type_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; }
Source:
public void removeRemotePackage ( java.lang.String remoteFilePath ) throws com.android.ddmlib.InstallException { try { executeShellCommand ( java.lang.String.format ( "rm \"%1$s\"" , remoteFilePath ) , new com.android.ddmlib.NullOutputReceiver ( ) , com.android.ddmlib.Device.INSTALL_TIMEOUT ) ; } catch ( java.io.IOException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.TimeoutException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.AdbCommandRejectedException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.ShellCommandUnresponsiveException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } }

Target:
public void removeRemotePackage ( java.lang.String remoteFilePath ) throws com.android.ddmlib.InstallException { try { executeShellCommand ( java.lang.String.format ( "rm \"%1$s\"" , remoteFilePath ) , new com.android.ddmlib.NullOutputReceiver ( ) , com.android.ddmlib.Device.INSTALL_TIMEOUT_MINUTES , java.util.concurrent.TimeUnit.MINUTES ) ; } catch ( java.io.IOException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.TimeoutException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.AdbCommandRejectedException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.ShellCommandUnresponsiveException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } }
Source:
public java.lang.String formatToE164 ( @ android.support.annotation.NonNull com.android.dialer.DialerPhoneNumber number ) { com.android.dialer.common.Assert.isWorkerThread ( ) ; if ( number.hasDialerInternalPhoneNumber ( ) ) { return phoneNumberUtil.format ( com.android.dialer.phonenumberproto.Converter.protoToPojo ( number.getDialerInternalPhoneNumber ( ) ) , PhoneNumberFormat.E164 ) ; } return number.getRawInput ( ) . getNumber ( ) ; }

Target:
public com.google.common.base.Optional < java.lang.String > formatToE164 ( com.android.dialer.DialerPhoneNumber number ) { com.android.dialer.common.Assert.isWorkerThread ( ) ; if ( number.hasDialerInternalPhoneNumber ( ) ) { return com.google.common.base.Optional.of ( phoneNumberUtil.format ( com.android.dialer.phonenumberproto.Converter.protoToPojo ( number.getDialerInternalPhoneNumber ( ) ) , PhoneNumberFormat.E164 ) ) ; } return com.google.common.base.Optional.absent ( ) ; }
Source:
protected com.intellij.updater.ValidationResult doValidateNotChanged ( java.io.File toFile , com.intellij.updater.ValidationResult.Kind kind , com.intellij.updater.ValidationResult.Action action ) throws java.io.IOException { if ( toFile.exists ( ) ) { if ( isModified ( toFile ) ) { return new com.intellij.updater.ValidationResult ( kind , myPath , action , ValidationResult.MODIFIED_MESSAGE , ValidationResult.Option.IGNORE ) ; } } else if ( ! ( isOptional ) ) { return new com.intellij.updater.ValidationResult ( kind , myPath , action , ValidationResult.ABSENT_MESSAGE , ValidationResult.Option.IGNORE ) ; } return null ; }

Target:
protected com.intellij.updater.ValidationResult doValidateNotChanged ( java.io.File toFile , com.intellij.updater.ValidationResult.Kind kind , com.intellij.updater.ValidationResult.Action action ) throws java.io.IOException { if ( toFile.exists ( ) ) { if ( isModified ( toFile ) ) { return new com.intellij.updater.ValidationResult ( kind , myPath , action , ValidationResult.MODIFIED_MESSAGE , ( myPatch.isStrict ( ) ? ValidationResult.Option.NONE : ValidationResult.Option.IGNORE ) ) ; } } else if ( ! ( isOptional ) ) { return new com.intellij.updater.ValidationResult ( kind , myPath , action , ValidationResult.ABSENT_MESSAGE , ( myPatch.isStrict ( ) ? ValidationResult.Option.NONE : ValidationResult.Option.IGNORE ) ) ; } return null ; }
Source:
public com.android.sched.util.log.tracer.AbstractTracer.TracerEvent start ( @ javax.annotation.Nonnull com.android.sched.util.log.EventType type ) { java.util.Stack < com.android.sched.util.log.tracer.AbstractTracer.TracerEvent > threadPendingEvents = pendingEvents.get ( ) ; com.android.sched.util.log.tracer.AbstractTracer.TracerEvent parent = null ; if ( ! ( threadPendingEvents.isEmpty ( ) ) ) { parent = threadPendingEvents.peek ( ) ; } com.android.sched.util.log.tracer.AbstractTracer.TracerEvent newEvent = new com.android.sched.util.log.tracer.AbstractTracer.TracerEvent ( parent , type ) ; threadPendingEvents.push ( newEvent ) ; return newEvent ; }

Target:
public com.android.sched.util.log.tracer.AbstractTracer.TracerEvent start ( @ javax.annotation.Nonnull com.android.sched.util.log.EventType type ) { eventCount.incrementAndGet ( ) ; java.util.Stack < com.android.sched.util.log.tracer.AbstractTracer.TracerEvent > threadPendingEvents = pendingEvents.get ( ) ; com.android.sched.util.log.tracer.AbstractTracer.TracerEvent parent = null ; if ( ! ( threadPendingEvents.isEmpty ( ) ) ) { parent = threadPendingEvents.peek ( ) ; } com.android.sched.util.log.tracer.AbstractTracer.TracerEvent newEvent = new com.android.sched.util.log.tracer.AbstractTracer.TracerEvent ( parent , type ) ; threadPendingEvents.push ( newEvent ) ; return newEvent ; }
Source:
public void TestFunctionalEquivalent ( ) { java.lang.String [ ] calCases = new java.lang.String [ ] { "t" , "en_US_POSIX" , "en@calendar=gregorian" , "f" , "ja_JP_TOKYO" , "ja@calendar=gregorian" , "f" , "ja_JP_TOKYO@calendar=japanese" , "ja@calendar=japanese" , "t" , "sr@calendar=gregorian" , "sr@calendar=gregorian" , "t" , "en" , "en@calendar=gregorian" , "t" , "th_TH" , "th@calendar=gregorian" , "t" , "th_TH@calendar=gregorian" , "th@calendar=gregorian" , "f" , "th_TH_Bangkok" , "th@calendar=gregorian" } ; logln ( "Testing functional equivalents for calendar..." ) ; getFunctionalEquivalentTestCases ( ICUResourceBundle.ICU_BASE_NAME , android.icu.util.Calendar.class . getClassLoader ( ) , android.icu.dev.test.util.ICUResourceBundleTest.CALENDAR_RESNAME , android.icu.dev.test.util.ICUResourceBundleTest.CALENDAR_KEYWORD , false , calCases ) ; logln ( "Testing error conditions:" ) ; try { java.lang.ClassLoader cl = android.icu.text.BreakIterator.class . getClassLoader ( ) ; android.icu.impl.ICUResourceBundle.getFunctionalEquivalent ( ICUResourceBundle.ICU_BRKITR_BASE_NAME , cl , "calendar" , "calendar" , new android.icu.util.ULocale ( "ar_EG@calendar=islamic" ) , new boolean [ 1 ] , true ) ; errln ( "Err: expected MissingResourceException" ) ; } catch ( java.util.MissingResourceException t ) { logln ( ( "expected MissingResourceException caught (PASS): " + ( t.toString ( ) ) ) ) ; } }

Target:
public void TestFunctionalEquivalent ( ) { java.lang.String [ ] calCases = new java.lang.String [ ] { "t" , "en_US_POSIX" , "en@calendar=gregorian" , "f" , "ja_JP_TOKYO" , "ja@calendar=gregorian" , "f" , "ja_JP_TOKYO@calendar=japanese" , "ja@calendar=japanese" , "t" , "sr@calendar=gregorian" , "sr@calendar=gregorian" , "t" , "en" , "en@calendar=gregorian" , "t" , "th_TH" , "th@calendar=gregorian" , "t" , "th_TH@calendar=gregorian" , "th@calendar=gregorian" , "f" , "th_TH_Bangkok" , "th@calendar=gregorian" } ; logln ( "Testing functional equivalents for calendar..." ) ; getFunctionalEquivalentTestCases ( ICUData.ICU_BASE_NAME , android.icu.util.Calendar.class . getClassLoader ( ) , android.icu.dev.test.util.ICUResourceBundleTest.CALENDAR_RESNAME , android.icu.dev.test.util.ICUResourceBundleTest.CALENDAR_KEYWORD , false , calCases ) ; logln ( "Testing error conditions:" ) ; try { java.lang.ClassLoader cl = android.icu.text.BreakIterator.class . getClassLoader ( ) ; android.icu.impl.ICUResourceBundle.getFunctionalEquivalent ( ICUData.ICU_BRKITR_BASE_NAME , cl , "calendar" , "calendar" , new android.icu.util.ULocale ( "ar_EG@calendar=islamic" ) , new boolean [ 1 ] , true ) ; errln ( "Err: expected MissingResourceException" ) ; } catch ( java.util.MissingResourceException t ) { logln ( ( "expected MissingResourceException caught (PASS): " + ( t.toString ( ) ) ) ) ; } }
Source:
public static java.lang.String getMethodSignatureWithoutName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPolymorphicMethodCall call ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( '(' ) ; for ( com.android.jack.ir.ast.JType p : call.getMethodIdWide ( ) . getParamTypes ( ) ) { sb.append ( com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( p ) ) ; } sb.append ( ')' ) ; sb.append ( com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( call.getReturnTypeOfPolymorphicMethod ( ) ) ) ; return sb.toString ( ) ; }

Target:
public static com.android.jack.dx.rop.type.Prototype getPrototypeFromPolymorphicCall ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPolymorphicMethodCall call ) { java.util.List < com.android.jack.ir.ast.JType > parameterTypes = call.getMethodIdWide ( ) . getParamTypes ( ) ; com.android.jack.dx.rop.type.StdTypeList stdTypeList = new com.android.jack.dx.rop.type.StdTypeList ( parameterTypes.size ( ) ) ; int idx = 0 ; for ( com.android.jack.ir.ast.JType parameterType : parameterTypes ) { stdTypeList.set ( ( idx ++ ) , com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( parameterType ) ) ; } return com.android.jack.dx.rop.type.Prototype.intern ( stdTypeList , com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( call.getReturnTypeOfPolymorphicMethod ( ) ) ) ; }
Source:
public java.util.List < java.io.File > getRenderscriptImports ( ) { java.util.List < java.io.File > list = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.android.builder.AndroidDependency lib : mFlatLibraries ) { java.io.File rsLib = lib.getRenderscriptFolder ( ) ; if ( ( rsLib != null ) && ( rsLib.isDirectory ( ) ) ) { list.add ( rsLib ) ; } } return list ; }

Target:
public java.util.List < java.io.File > getRenderscriptImports ( ) { java.util.List < java.io.File > list = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.android.builder.dependency.AndroidDependency lib : mFlatLibraries ) { java.io.File rsLib = lib.getRenderscriptFolder ( ) ; if ( ( rsLib != null ) && ( rsLib.isDirectory ( ) ) ) { list.add ( rsLib ) ; } } return list ; }
Source:
protected com.android.jack.test.toolchain.JackBasedToolchain getReferenceToolchain ( ) { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; java.io.File oneDexPerTypeFolder ; try { oneDexPerTypeFolder = com.android.jack.TestTools.createTempDir ( "oneDexPerType" , "dex" ) ; toolchain.addProperty ( Options.EMIT_LINE_NUMBER_DEBUG_INFO.getName ( ) , java.lang.Boolean.toString ( withDebugInfos ) ) ; toolchain.addProperty ( ScheduleInstance.DEFAULT_RUNNER.getName ( ) , "single-threaded" ) ; toolchain.addProperty ( Options.INTERMEDIATE_DEX_DIR.getName ( ) , oneDexPerTypeFolder.getAbsolutePath ( ) ) ; } catch ( java.io.IOException e ) { throw new java.lang.AssertionError ( e ) ; } return toolchain ; }

Target:
protected com.android.jack.test.toolchain.JackBasedToolchain getReferenceToolchain ( ) { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; java.io.File internalJackOutputLib ; try { internalJackOutputLib = com.android.jack.TestTools.createTempDir ( "oneDexPerType" , "dex" ) ; toolchain.addProperty ( Options.EMIT_LINE_NUMBER_DEBUG_INFO.getName ( ) , java.lang.Boolean.toString ( withDebugInfos ) ) ; toolchain.addProperty ( ScheduleInstance.DEFAULT_RUNNER.getName ( ) , "single-threaded" ) ; toolchain.addProperty ( Options.INTERNAL_LIBRARY_OUTPUT_DIR.getName ( ) , internalJackOutputLib.getAbsolutePath ( ) ) ; } catch ( java.io.IOException e ) { throw new java.lang.AssertionError ( e ) ; } return toolchain ; }
Source:
public void testInnerInnerClass ( ) { android.signature.cts.JDiffClassDescription clz = new android.signature.cts.JDiffClassDescription ( "android.signature.cts.tests.data" , "NormalClass.InnerClass.InnerInnerClass" , new android.signature.cts.tests.JDiffClassDescriptionTest.NoFailures ( ) ) ; clz.setType ( JDiffClassDescription.JDiffType.CLASS ) ; clz.setModifier ( java.lang.reflect.Modifier.PUBLIC ) ; android.signature.cts.JDiffClassDescription.JDiffField field = new android.signature.cts.JDiffClassDescription.JDiffField ( "innerInnerClassData" , "java.lang.String" , java.lang.reflect.Modifier.PRIVATE ) ; clz.addField ( field ) ; clz.checkSignatureCompliance ( ) ; assertEquals ( clz.toSignatureString ( ) , "public class NormalClass.InnerClass.InnerInnerClass" ) ; }

Target:
public void testInnerClass ( ) { android.signature.cts.JDiffClassDescription clz = new android.signature.cts.JDiffClassDescription ( "android.signature.cts.tests.data" , "NormalClass.InnerClass" , new android.signature.cts.tests.JDiffClassDescriptionTest.NoFailures ( ) ) ; clz.setType ( JDiffClassDescription.JDiffType.CLASS ) ; clz.setModifier ( java.lang.reflect.Modifier.PUBLIC ) ; android.signature.cts.JDiffClassDescription.JDiffField field = new android.signature.cts.JDiffClassDescription.JDiffField ( "innerClassData" , "java.lang.String" , java.lang.reflect.Modifier.PRIVATE , android.signature.cts.tests.JDiffClassDescriptionTest.VALUE ) ; clz.addField ( field ) ; clz.checkSignatureCompliance ( ) ; assertEquals ( clz.toSignatureString ( ) , "public class NormalClass.InnerClass" ) ; }
Source:
private void onGetReport ( byte [ ] address , byte [ ] report , int rpt_size ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_ON_GET_REPORT ) ; msg.obj = address ; android.os.Bundle data = new android.os.Bundle ( ) ; data.putByteArray ( BluetoothInputDevice.EXTRA_REPORT , report ) ; data.putInt ( BluetoothInputDevice.EXTRA_REPORT_BUFFER_SIZE , rpt_size ) ; msg.setData ( data ) ; mHandler.sendMessage ( msg ) ; }

Target:
private void onGetReport ( byte [ ] address , byte [ ] report , int rptSize ) { if ( com.android.bluetooth.hid.HidService.DBG ) android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , "onGetReport()" ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_ON_GET_REPORT ) ; msg.obj = address ; android.os.Bundle data = new android.os.Bundle ( ) ; data.putByteArray ( BluetoothInputDevice.EXTRA_REPORT , report ) ; data.putInt ( BluetoothInputDevice.EXTRA_REPORT_BUFFER_SIZE , rptSize ) ; msg.setData ( data ) ; mHandler.sendMessage ( msg ) ; }
Source:
public void applyBorder ( android.renderscript.Allocation in , android.renderscript.Allocation out , boolean copyOut , com.android.gallery3d.filtershow.pipeline.FilterEnvironment environment ) { com.android.gallery3d.filtershow.filters.FilterRepresentation border = getFilterRepresentationForType ( FilterRepresentation.TYPE_BORDER ) ; if ( ( border != null ) && ( mDoApplyGeometry ) ) { android.renderscript.Allocation bitmapIn = in ; if ( copyOut ) { bitmapIn = android.renderscript.Allocation.createTyped ( com.android.gallery3d.filtershow.pipeline.CachingPipeline.getRenderScriptContext ( ) , in.getType ( ) ) ; bitmapIn.copyFrom ( out ) ; } environment.applyRepresentation ( border , bitmapIn , out ) ; } }

Target:
public void applyBorder ( android.support.v8.renderscript.Allocation in , android.support.v8.renderscript.Allocation out , boolean copyOut , com.android.gallery3d.filtershow.pipeline.FilterEnvironment environment ) { com.android.gallery3d.filtershow.filters.FilterRepresentation border = getFilterRepresentationForType ( FilterRepresentation.TYPE_BORDER ) ; if ( ( border != null ) && ( mDoApplyGeometry ) ) { android.support.v8.renderscript.Allocation bitmapIn = in ; if ( copyOut ) { bitmapIn = android.support.v8.renderscript.Allocation.createTyped ( com.android.gallery3d.filtershow.pipeline.CachingPipeline.getRenderScriptContext ( ) , in.getType ( ) ) ; bitmapIn.copyFrom ( out ) ; } environment.applyRepresentation ( border , bitmapIn , out ) ; } }
Source:
public void testResetBatteryLevel_testResetBeforeUpdate ( ) { com.android.bluetooth.btservice.RemoteDevices remoteDevices = new com.android.bluetooth.btservice.RemoteDevices ( mAdapterService ) ; org.junit.Assert.assertNull ( remoteDevices.getDeviceProperties ( mDevice1 ) ) ; remoteDevices.resetBatteryLevel ( mDevice1 ) ; org.junit.Assert.assertNull ( remoteDevices.getDeviceProperties ( mDevice1 ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAdapterService ) ; }

Target:
private static android.content.Intent getHfIndicatorIntent ( android.bluetooth.BluetoothDevice device , int batteryLevel , int indicatorId ) { android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothHeadset.ACTION_HF_INDICATORS_VALUE_CHANGED ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothHeadset.EXTRA_HF_INDICATORS_IND_ID , indicatorId ) ; intent.putExtra ( BluetoothHeadset.EXTRA_HF_INDICATORS_IND_VALUE , batteryLevel ) ; return intent ; }
Source:
protected void startupOnInitialize ( ) { super . startupOnInitialize ( ) ; mDerivedProgressMonitor = new com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.DerivedProgressMonitor ( ) ; org.eclipse.core.resources.IProject project = getProject ( ) ; mManifestPackage = loadProjectStringProperty ( com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.PROPERTY_PACKAGE ) ; mGenFolder = project.getFolder ( SdkConstants.FD_GEN_SOURCES ) ; mMustCompileResources = loadProjectBooleanProperty ( com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.PROPERTY_COMPILE_RESOURCES , true ) ; boolean mustCompileAidl = loadProjectBooleanProperty ( com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.PROPERTY_COMPILE_AIDL , true ) ; if ( mustCompileAidl ) { org.eclipse.jdt.core.IJavaProject javaProject = org.eclipse.jdt.core.JavaCore.create ( project ) ; java.util.ArrayList < org.eclipse.core.runtime.IPath > sourceFolderPathList = com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getSourceClasspaths ( javaProject ) ; buildAidlCompilationList ( project , sourceFolderPathList ) ; } }

Target:
protected void startupOnInitialize ( ) { super . startupOnInitialize ( ) ; org.eclipse.core.resources.IProject project = getProject ( ) ; mManifestPackage = loadProjectStringProperty ( com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.PROPERTY_PACKAGE ) ; mGenFolder = project.getFolder ( SdkConstants.FD_GEN_SOURCES ) ; mMustCompileResources = loadProjectBooleanProperty ( com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.PROPERTY_COMPILE_RESOURCES , true ) ; org.eclipse.jdt.core.IJavaProject javaProject = org.eclipse.jdt.core.JavaCore.create ( project ) ; com.android.ide.eclipse.adt.internal.build.JavaGenerator aidlGenerator = new com.android.ide.eclipse.adt.internal.build.AidlGenerator ( javaProject , mGenFolder ) ; mGeneratorList.add ( aidlGenerator ) ; mDerivedProgressMonitor = new com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.DerivedProgressMonitor ( mGenFolder ) ; }
Source:
public void exit ( ) { if ( ( mPhone ) != null ) { mPhone.mCi.unregisterForRilConnected ( getHandler ( ) ) ; mPhone.mCi.unregisterForDataCallListChanged ( getHandler ( ) ) ; } if ( ( mDcTesterDeactivateAll ) != null ) { mDcTesterDeactivateAll.dispose ( ) ; } }

Target:
public void exit ( ) { if ( ( mPhone ) != null ) { mPhone.mCi.unregisterForRilConnected ( getHandler ( ) ) ; mPhone.mCi.unregisterForDataCallListChanged ( getHandler ( ) ) ; } if ( ( mDcTesterDeactivateAll ) != null ) { mDcTesterDeactivateAll.dispose ( ) ; } if ( ( mNetworkPolicyManager ) != null ) { mNetworkPolicyManager.unregisterListener ( mListener ) ; } }
Source:
private static com.google.doclava.ParameterInfo convertParameter ( com.google.doclava.Parameter p , com.google.doclava.SourcePosition pos , boolean isVarArg ) { if ( p == null ) return null ; com.google.doclava.ParameterInfo pi = new com.google.doclava.ParameterInfo ( p.name ( ) , p.typeName ( ) , com.google.doclava.Converter.obtainType ( p.type ( ) ) , isVarArg , com.google.doclava.Converter.convertSourcePosition ( pos ) ) ; return pi ; }

Target:
private static com.google.doclava.ParameterInfo convertParameter ( com.sun.javadoc.Parameter p , com.sun.javadoc.SourcePosition pos , boolean isVarArg ) { if ( p == null ) return null ; com.google.doclava.ParameterInfo pi = new com.google.doclava.ParameterInfo ( p.name ( ) , p.typeName ( ) , com.google.doclava.Converter.obtainType ( p.type ( ) ) , isVarArg , com.google.doclava.Converter.convertSourcePosition ( pos ) ) ; return pi ; }
Source:
public void testOcclude ( ) throws java.lang.Exception { if ( ! ( supportsKeyguard ( ) ) ) { return ; } gotoKeyguard ( ) ; launchActivity ( "ShowWhenLockedActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "ShowWhenLockedActivity" } ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_KEYGUARD_OCCLUDE , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }

Target:
public void testOcclude ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } gotoKeyguard ( ) ; launchActivity ( "ShowWhenLockedActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "ShowWhenLockedActivity" } ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_KEYGUARD_OCCLUDE , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }
Source:
private java.lang.String getCalendarTypeFromPath ( java.lang.String path ) { if ( ( path.startsWith ( com.ibm.icu.text.DateIntervalInfo.DateIntervalSink.DATE_INTERVAL_PATH_PREFIX ) ) && ( path.endsWith ( com.ibm.icu.text.DateIntervalInfo.DateIntervalSink.DATE_INTERVAL_PATH_SUFIX ) ) ) { return path.substring ( com.ibm.icu.text.DateIntervalInfo.DateIntervalSink.DATE_INTERVAL_PATH_PREFIX.length ( ) , ( ( path.length ( ) ) - ( com.ibm.icu.text.DateIntervalInfo.DateIntervalSink.DATE_INTERVAL_PATH_SUFIX.length ( ) ) ) ) ; } throw new com.ibm.icu.util.ICUException ( ( "Malformed 'intervalFormat' alias path: " + path ) ) ; }

Target:
private java.lang.String getCalendarTypeFromPath ( java.lang.String path ) { if ( ( path.startsWith ( com.ibm.icu.text.DateIntervalInfo.DateIntervalSink.DATE_INTERVAL_PATH_PREFIX ) ) && ( path.endsWith ( com.ibm.icu.text.DateIntervalInfo.DateIntervalSink.DATE_INTERVAL_PATH_SUFFIX ) ) ) { return path.substring ( com.ibm.icu.text.DateIntervalInfo.DateIntervalSink.DATE_INTERVAL_PATH_PREFIX.length ( ) , ( ( path.length ( ) ) - ( com.ibm.icu.text.DateIntervalInfo.DateIntervalSink.DATE_INTERVAL_PATH_SUFFIX.length ( ) ) ) ) ; } throw new com.ibm.icu.util.ICUException ( ( "Malformed 'intervalFormat' alias path: " + path ) ) ; }
Source:
private int superClassCount ( proguard.evaluation.value.Clazz subClass , java.util.Set classes ) { int count = 0 ; java.util.Iterator iterator = classes.iterator ( ) ; while ( iterator.hasNext ( ) ) { proguard.evaluation.value.Clazz clazz = ( ( proguard.evaluation.value.Clazz ) ( iterator.next ( ) ) ) ; if ( subClass.extendsOrImplements ( clazz ) ) { count ++ ; } } return count ; }

Target:
public proguard.evaluation.value.ReferenceValue generalize ( proguard.evaluation.value.IdentifiedReferenceValue other ) { return generalize ( ( ( proguard.evaluation.value.TypedReferenceValue ) ( other ) ) ) ; }
Source:
public void log ( java.lang.String log ) { synchronized ( mLogText ) { mLogText.append ( "=> " ) . append ( log ) ; } }

Target:
public void logVerbose ( java.lang.String log ) { if ( acceptLog ( log ) ) { if ( ( mLog ) != null ) { mLog.printf ( " %1$s" , log ) ; } else { synchronized ( mLogText ) { mLogText.append ( " " ) . append ( log ) ; } } } }
Source:
public android.content.res.Resources getResourcesForApplication ( android.content.pm.ApplicationInfo app ) throws android.app.NameNotFoundException { if ( app.packageName.equals ( "system" ) ) { return mContext.mMainThread.getSystemContext ( ) . getResources ( ) ; } android.content.res.Resources r = mContext.mMainThread.getTopLevelResources ( ( ( app.uid ) == ( java.lang.Process.myUid ( ) ) ? app.sourceDir : app.publicSourceDir ) , Display.DEFAULT_DISPLAY , null , mContext.mPackageInfo ) ; if ( r != null ) { return r ; } throw new android.app.NameNotFoundException ( ( "Unable to open " + ( app.publicSourceDir ) ) ) ; }

Target:
public android.content.res.Resources getResourcesForApplication ( android.content.pm.ApplicationInfo app ) throws android.app.NameNotFoundException { if ( app.packageName.equals ( "system" ) ) { return mContext.mMainThread.getSystemContext ( ) . getResources ( ) ; } android.content.res.Resources r = mContext.mMainThread.getTopLevelResources ( ( ( app.uid ) == ( java.lang.Process.myUid ( ) ) ? app.sourceDir : app.publicSourceDir ) , app.resourceDirs , Display.DEFAULT_DISPLAY , null , mContext.mPackageInfo ) ; if ( r != null ) { return r ; } throw new android.app.NameNotFoundException ( ( "Unable to open " + ( app.publicSourceDir ) ) ) ; }
Source:
public byte [ ] getBytes ( ) { return data ; }

Target:
public com.android.dex.Dex.Section open ( int position ) { if ( ( position < 0 ) || ( position >= ( data.capacity ( ) ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( "position=" + position ) + " length=" ) + ( data.capacity ( ) ) ) ) ; } java.nio.ByteBuffer sectionData = data.duplicate ( ) ; sectionData.order ( java.nio.ByteOrder.LITTLE_ENDIAN ) ; sectionData.position ( position ) ; sectionData.limit ( data.capacity ( ) ) ; return new com.android.dex.Dex.Section ( "section" , sectionData ) ; }