auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean canHandle ( java.lang.String path , java.lang.String mimeType ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) && ( ( null == mimeType ) || ( mimeType.equals ( "" ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Path or the mimetype should be non null" ) ; } else if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _canHandle ( mUniqueId , path , mimeType ) ; }

Target:
public int removeRights ( java.lang.String path ) { if ( ( null == path ) || ( path.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( "Given path should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _removeRights ( mUniqueId , path ) ; }
Source:
public static long IntNonmatCond_LongVarVar ( int a , int b , long x , long y ) { return a > b ? x : y ; }

Target:
public static long LongMatCond_LongVarVar ( long a , long b , long x , long y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } long result = ( a > b ) ? x : y ; return result + ( a > b ? 0L : 1L ) ; }
Source:
public void onReliableWriteCompleted ( android.bluetooth.BluetoothGatt gatt , int status ) { if ( com.android.cts.verifier.bluetooth.BleClientService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleClientService.TAG , ( "onReliableWriteComplete: " + status ) ) ; if ( status == ( android.bluetooth.BluetoothGatt.GATT_SUCCESS ) ) { notifyReliableWriteCompleted ( ) ; } else { notifyError ( ( "Failed to complete reliable write: " + status ) ) ; } sleep ( 1000 ) ; mBluetoothGatt.disconnect ( ) ; }

Target:
public void onDestroy ( ) { super . onDestroy ( ) ; if ( ( mBluetoothGatt ) != null ) { mBluetoothGatt.disconnect ( ) ; mBluetoothGatt.close ( ) ; mBluetoothGatt = null ; } stopScan ( ) ; unregisterReceiver ( mBondStatusReceiver ) ; mTaskQueue.quit ( ) ; }
Source:
public final void testPkgTypeDoc ( ) { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_DOCS ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertFalse ( p.hasPath ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }

Target:
public final void testPkgTypeDoc ( ) { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_DOCS ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertFalse ( p.hasPath ( ) ) ; assertFalse ( p.hasVendorId ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }
Source:
private java.lang.invoke.MethodHandle findAccessor ( java.lang.Class < ? > refc , java.lang.String name , java.lang.Class < ? > type , int kind ) throws java.lang.IllegalAccessException , java.lang.NoSuchFieldException { final java.lang.reflect.Field field = refc.getDeclaredField ( name ) ; final java.lang.Class < ? > fieldType = field.getType ( ) ; if ( fieldType != type ) { throw new java.lang.NoSuchFieldException ( ( ( ( "Field has wrong type: " + fieldType ) + " != " ) + type ) ) ; } return findAccessor ( field , refc , type , kind , true ) ; }

Target:
private java.lang.invoke.MethodHandle findAccessor ( java.lang.Class < ? > refc , java.lang.String name , java.lang.Class < ? > type , int kind ) throws java.lang.IllegalAccessException , java.lang.NoSuchFieldException { final java.lang.reflect.Field field = findFieldOfType ( refc , name , type ) ; return findAccessor ( field , refc , type , kind , true ) ; }
Source:
public void copyFrom ( int [ ] 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 ( java.lang.Object array ) { copyFromUnchecked ( array , validateObjectIsPrimitiveArray ( array , false ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public final java.nio.MappedByteBuffer force ( ) { if ( ( mapMode ) == ( java.nio.channels.FileChannel.MapMode.READ_WRITE ) ) { try { Libcore.os.msync ( block.toInt ( ) , block.getSize ( ) , java.nio.MS_SYNC ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw new java.lang.AssertionError ( errnoException ) ; } } return this ; }

Target:
public final java.nio.MappedByteBuffer force ( ) { checkIsMapped ( ) ; if ( ( mapMode ) == ( java.nio.channels.FileChannel.MapMode.READ_WRITE ) ) { try { Libcore.os.msync ( block.toLong ( ) , block.getSize ( ) , java.nio.MS_SYNC ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw new java.lang.AssertionError ( errnoException ) ; } } return this ; }
Source:
private int getParameterSize ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { int paramSize = 0 ; if ( ! ( method.isStatic ( ) ) ) { paramSize += 1 ; } for ( com.android.jack.ir.ast.JParameter param : method.getParams ( ) ) { if ( ( param.getType ( ) . equals ( JPrimitiveTypeEnum.LONG.getType ( ) ) ) || ( param.getType ( ) . equals ( JPrimitiveTypeEnum.DOUBLE.getType ( ) ) ) ) { paramSize += 2 ; } else { paramSize += 1 ; } } return paramSize ; }

Target:
private int getParameterSize ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { int paramSize = 0 ; if ( ! ( method.isStatic ( ) ) ) { paramSize += 1 ; } for ( com.android.jack.ir.ast.JParameter param : method.getParams ( ) ) { if ( ( param.getType ( ) . isSameType ( JPrimitiveTypeEnum.LONG.getType ( ) ) ) || ( param.getType ( ) . isSameType ( JPrimitiveTypeEnum.DOUBLE.getType ( ) ) ) ) { paramSize += 2 ; } else { paramSize += 1 ; } } return paramSize ; }
Source:
private static void tryToReadFromAllIn ( java.io.File dir ) throws java.io.IOException { assertTrue ( dir.isDirectory ( ) ) ; if ( android.permission.cts.FileSystemPermissionTest.isSymbolicLink ( dir ) ) { return ; } java.io.File [ ] files = dir.listFiles ( ) ; if ( files != null ) { for ( java.io.File f : files ) { if ( f.isDirectory ( ) ) { android.permission.cts.FileSystemPermissionTest.tryToReadFromAllIn ( f ) ; } else { android.permission.cts.FileSystemPermissionTest.tryFileRead ( f ) ; } } } }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { return android.permission.cts.FileSystemPermissionTest.tryFileRead ( f ) ; }
Source:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.BOOTCLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar" ) } ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jar" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar" ) } ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "framework" ) ; }

Target:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.BOOTCLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.zip" ) } ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.zip" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.zip" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.zip" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.zip" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.zip" ) } ; com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "framework" ) ; }
Source:
public void testCompile ( ) throws java.lang.Exception { com.android.jack.TestTools.runCompilation ( com.android.jack.TestTools.buildCommandLineArgs ( com.android.jack.TestTools.getJackTestsWithJackFolder ( "comparison/test001" ) ) ) ; }

Target:
public void testCompile ( ) throws java.lang.Exception { java.io.File [ ] bootclasspath = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar" ) , com.android.jack.TestTools.getFromAndroidTree ( "out/host/common/obj/JAVA_LIBRARIES/junit4-hostdex-jack_intermediates/classes.jar" ) } ; com.android.jack.TestTools.runCompilation ( com.android.jack.TestTools.buildCommandLineArgs ( bootclasspath , null , com.android.jack.TestTools.getJackTestsWithJackFolder ( "comparison/test001" ) ) ) ; }
Source:
public static long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , android.util.MutableLong inOffset , long byteCount ) throws android.system.ErrnoException { android.util.MutableLong internalInOffset = new android.util.MutableLong ( inOffset.value ) ; try { return Libcore.os.sendfile ( outFd , inFd , internalInOffset , byteCount ) ; } finally { inOffset.value = internalInOffset.value ; } }

Target:
public static int ioctlInt ( java.io.FileDescriptor fd , int cmd , android.system.Int32Ref arg ) throws android.system.ErrnoException { return Libcore.os.ioctlInt ( fd , cmd , arg ) ; }
Source:
public boolean onSurfaceTextureDestroyed ( android.graphics.SurfaceTexture destroyedSurfaceTexture ) { com.android.dialer.common.LogUtil.i ( "SurfaceTextureListener.onSurfaceTextureDestroyed" , ( ( ( "destroyedSurfaceTexture: " + destroyedSurfaceTexture ) + " " ) + ( this . toString ( ) ) ) ) ; if ( ( delegate ) != null ) { delegate.onSurfaceDestroyed ( this ) ; } else { com.android.dialer.common.LogUtil.e ( "SurfaceTextureListener.onSurfaceTextureDestroyed" , "delegate is null" ) ; } if ( isDoneWithSurface ) { onSurfaceReleased ( ) ; if ( ( savedSurface ) != null ) { savedSurface.release ( ) ; savedSurface = null ; } } return isDoneWithSurface ; }

Target:
public boolean onSurfaceTextureDestroyed ( android.graphics.SurfaceTexture destroyedSurfaceTexture ) { com.android.dialer.common.LogUtil.i ( "SurfaceTextureListener.onSurfaceTextureDestroyed" , "destroyedSurfaceTexture: %s, %s, isDoneWithSurface: %b" , destroyedSurfaceTexture , this . toString ( ) , isDoneWithSurface ) ; if ( ( delegate ) != null ) { delegate.onSurfaceDestroyed ( this ) ; } else { com.android.dialer.common.LogUtil.e ( "SurfaceTextureListener.onSurfaceTextureDestroyed" , "delegate is null" ) ; } if ( isDoneWithSurface ) { onSurfaceReleased ( ) ; if ( ( savedSurface ) != null ) { savedSurface.release ( ) ; savedSurface = null ; } } return isDoneWithSurface ; }
Source:
public void addExistingConnection ( java.lang.String callId , android.telecom.ParcelableConnection connection ) { android.telecom.Log.startSession ( "CSW.aEC" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "addExistingConnection %s %s" , callId , connection ) ; com.android.server.telecom.Call existingCall = mCallsManager.createCallForExistingConnection ( callId , connection ) ; mCallIdMapper.addCall ( existingCall , callId ) ; existingCall.setConnectionService ( this ) ; } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }

Target:
public void addExistingConnection ( java.lang.String callId , android.telecom.ParcelableConnection connection , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , "CSW.aEC" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "addExistingConnection %s %s" , callId , connection ) ; com.android.server.telecom.Call existingCall = mCallsManager.createCallForExistingConnection ( callId , connection ) ; mCallIdMapper.addCall ( existingCall , callId ) ; existingCall.setConnectionService ( this ) ; } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
public void enter ( ) { android.util.Log.d ( com.android.bluetooth.pbapclient.PbapClientStateMachine.TAG , ( "Enter Connected: " + ( getCurrentMessage ( ) . what ) ) ) ; onConnectionStateChanged ( mCurrentDevice , mMostRecentState , BluetoothProfile.STATE_CONNECTED ) ; mMostRecentState = android.bluetooth.BluetoothProfile.STATE_CONNECTED ; mConnectionHandler.obtainMessage ( PbapClientConnectionHandler.MSG_DOWNLOAD ) . sendToTarget ( ) ; }

Target:
public void enter ( ) { android.util.Log.d ( com.android.bluetooth.pbapclient.PbapClientStateMachine.TAG , ( "Enter Connected: " + ( getCurrentMessage ( ) . what ) ) ) ; onConnectionStateChanged ( mCurrentDevice , mMostRecentState , BluetoothProfile.STATE_CONNECTED ) ; mMostRecentState = android.bluetooth.BluetoothProfile.STATE_CONNECTED ; if ( mUserManager.isUserUnlocked ( ) ) { mConnectionHandler.obtainMessage ( PbapClientConnectionHandler.MSG_DOWNLOAD ) . sendToTarget ( ) ; } }
Source:
public com.android.sched.vfs.VPath prependPath ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { if ( ! ( 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 ; }

Target:
public com.android.sched.vfs.VPath prependPath ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { assert ! ( path.isRoot ( ) ) ; if ( ! ( this . isRoot ( ) ) ) { 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 canBeTetheredAsUsb ( ) throws java.lang.Exception { initStateMachine ( ConnectivityManager.TETHERING_USB ) ; dispatchCommand ( TetherInterfaceStateMachine.CMD_TETHER_REQUESTED ) ; org.mockito.InOrder inOrder = org.mockito.Mockito.inOrder ( mTetherHelper , mNMService ) ; inOrder.verify ( mNMService ) . getInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ; inOrder.verify ( mNMService ) . setInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mInterfaceConfiguration ) ; inOrder.verify ( mNMService ) . tetherInterface ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ; inOrder.verify ( mTetherHelper ) . notifyInterfaceStateChange ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mTestedSm , com.android.server.connectivity.tethering.IControlsTethering.STATE_TETHERED , android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNMService , mStatsService , mTetherHelper ) ; }

Target:
public void canBeTetheredAsUsb ( ) throws java.lang.Exception { initStateMachine ( android.net.ConnectivityManager.TETHERING_USB ) ; dispatchCommand ( TetherInterfaceStateMachine.CMD_TETHER_REQUESTED ) ; org.mockito.InOrder inOrder = org.mockito.Mockito.inOrder ( mTetherHelper , mNMService ) ; inOrder.verify ( mNMService ) . getInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ; inOrder.verify ( mNMService ) . setInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mInterfaceConfiguration ) ; inOrder.verify ( mNMService ) . tetherInterface ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ; inOrder.verify ( mTetherHelper ) . notifyInterfaceStateChange ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mTestedSm , com.android.server.connectivity.tethering.IControlsTethering.STATE_TETHERED , android.net.ConnectivityManager.TETHER_ERROR_NO_ERROR ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNMService , mStatsService , mTetherHelper ) ; }
Source:
private void controlCdmaOptions ( boolean enable ) { android.preference.PreferenceScreen prefSet = getPreferenceScreen ( ) ; if ( prefSet == null ) { return ; } if ( enable && ( ( mCdmaOptions ) == null ) ) { mCdmaOptions = new com.android.phone.CdmaOptions ( this , prefSet , mPhone ) ; } com.android.phone.CdmaSystemSelectListPreference systemSelect = ( ( com.android.phone.CdmaSystemSelectListPreference ) ( prefSet.findPreference ( com.android.phone.MobileNetworkSettings.MobileNetworkFragment.BUTTON_CDMA_SYSTEM_SELECT_KEY ) ) ) ; if ( systemSelect != null ) { systemSelect.setEnabled ( enable ) ; } }

Target:
private void updateCdmaOptions ( android.preference.PreferenceFragment prefFragment , android.preference.PreferenceScreen prefScreen , com.android.internal.telephony.Phone phone ) { if ( ( mCdmaOptions ) == null ) { mCdmaOptions = new com.android.phone.CdmaOptions ( prefFragment , prefScreen , phone ) ; } else { mCdmaOptions.update ( phone ) ; } }
Source:
public java.util.Set < ? extends javax.lang.model.element.Element > process ( com.google.common.collect.SetMultimap < java.lang.Class < ? extends java.lang.annotation.Annotation > , javax.lang.model.element.Element > elementsByAnnotation ) { for ( javax.lang.model.element.Element element : elementsByAnnotation.get ( com.android.dialer.inject.DialerRootComponent.class ) ) { generateRootComponent ( com.google.auto.common.MoreElements.asType ( element ) ) ; } return java.util.Collections.emptySet ( ) ; }

Target:
public java.util.Set < ? extends javax.lang.model.element.Element > process ( com.google.common.collect.SetMultimap < java.lang.Class < ? extends java.lang.annotation.Annotation > , javax.lang.model.element.Element > elementsByAnnotation ) { for ( javax.lang.model.element.Element element : elementsByAnnotation.get ( com.android.dialer.inject.DialerRootComponent.class ) ) { if ( ( elementsByAnnotation.containsKey ( com.android.dialer.inject.InstallIn.class ) ) || ( elementsByAnnotation.containsKey ( com.android.dialer.inject.IncludeInDialerRoot.class ) ) ) { return elementsByAnnotation.get ( com.android.dialer.inject.DialerRootComponent.class ) ; } else { generateRootComponent ( com.google.auto.common.MoreElements.asType ( element ) ) ; } } return java.util.Collections.emptySet ( ) ; }
Source:
public java.util.List < java.lang.String > getEcjArguments ( ) { if ( ( inputSources ) == null ) { return ecjExtraArguments ; } java.util.ArrayList < java.lang.String > list = new java.util.ArrayList < java.lang.String > ( ecjExtraArguments ) ; for ( java.io.File input : inputSources ) { list.add ( input.getPath ( ) ) ; } return list ; }

Target:
java.util.List < java.lang.String > getEcjExtraArguments ( ) { return ecjExtraArguments ; }
Source:
public void setupDataCall ( int accessNetworkType , android.telephony.data.DataProfile dataProfile , boolean isRoaming , boolean allowRoaming , boolean isHandover , android.net.LinkProperties linkProperties , android.telephony.data.IDataServiceCallback callback ) { mHandler.obtainMessage ( android.telephony.data.DataService.DATA_SERVICE_REQUEST_SETUP_DATA_CALL , mSlotId , 0 , new android.telephony.data.DataService.SetupDataCallRequest ( accessNetworkType , dataProfile , isRoaming , allowRoaming , isHandover , linkProperties , callback ) ) . sendToTarget ( ) ; }

Target:
public void deactivateDataCall ( int cid , int reason , android.telephony.data.IDataServiceCallback callback ) { mHandler.obtainMessage ( android.telephony.data.DataService.DATA_SERVICE_REQUEST_DEACTIVATE_DATA_CALL , mSlotId , 0 , new android.telephony.data.DataService.DeactivateDataCallRequest ( cid , reason , callback ) ) . sendToTarget ( ) ; }
Source:
private void sendImsFeatureCreatedCallback ( int slot , int feature ) { synchronized ( mLock ) { for ( java.util.Iterator < com.android.ims.internal.IImsServiceFeatureCallback > i = mImsStatusCallbacks.iterator ( ) ; i.hasNext ( ) ; ) { com.android.ims.internal.IImsServiceFeatureCallback callbacks = i.next ( ) ; try { callbacks.imsFeatureCreated ( slot , feature ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( ( "sendImsFeatureCreatedCallback: Binder died, removing " + "callback. Exception:" ) + ( e.getMessage ( ) ) ) ) ; i.remove ( ) ; } } } }

Target:
protected void notifyImsServiceReady ( ) throws android.os.RemoteException { synchronized ( mLock ) { if ( isServiceControllerAvailable ( ) ) { android.util.Log.d ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , "notifyImsServiceReady" ) ; mIImsServiceController.notifyImsServiceReadyForFeatureCreation ( ) ; } } }
Source:
public void testSetValues003_Char ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointChar" , StackTrace002Debuggee.CHAR_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointChar" ) ; methodInfo.addVariable ( "param" , new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.CHAR_PARAM_VALUE ) , new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.CHAR_PARAM_VALUE_TO_SET ) ) ; runStackFrameTest ( tester ) ; }

Target:
public void testSetValues003_Char ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.CHAR_SIGNAL ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.CHAR_PARAM_VALUE ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value newValue = new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.CHAR_PARAM_VALUE_TO_SET ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointChar" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue , newValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointChar" ) ; methodInfo.addVariable ( "param" , oldValue , newValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
private void transformAnnotation ( com.android.dx.io.EncodedValueReader reader ) { int fieldCount = reader.readAnnotation ( ) ; com.android.dx.util.Leb128Utils.writeUnsignedLeb128 ( out , adjustType ( reader.getAnnotationType ( ) ) ) ; com.android.dx.util.Leb128Utils.writeUnsignedLeb128 ( out , fieldCount ) ; for ( int i = 0 ; i < fieldCount ; i ++ ) { com.android.dx.util.Leb128Utils.writeUnsignedLeb128 ( out , adjustString ( reader.readAnnotationName ( ) ) ) ; transform ( reader ) ; } }

Target:
private void transformAnnotation ( com.android.dex.EncodedValueReader reader ) { int fieldCount = reader.readAnnotation ( ) ; com.android.dex.Leb128.writeUnsignedLeb128 ( out , adjustType ( reader.getAnnotationType ( ) ) ) ; com.android.dex.Leb128.writeUnsignedLeb128 ( out , fieldCount ) ; for ( int i = 0 ; i < fieldCount ; i ++ ) { com.android.dex.Leb128.writeUnsignedLeb128 ( out , adjustString ( reader.readAnnotationName ( ) ) ) ; transform ( reader ) ; } }
Source:
public void testSetupDriverForClientModeError ( ) { com.android.server.wifi.WificondControl wificondControl = org.mockito.Mockito.mock ( com.android.server.wifi.WificondControl.class ) ; android.net.wifi.IWificond wificond = org.mockito.Mockito.mock ( android.net.wifi.IWificond.class ) ; org.mockito.Mockito.when ( wificondControl.setupDriverForClientMode ( ) ) . thenReturn ( null ) ; mWifiNative.setWificondControl ( wificondControl ) ; android.net.wifi.IClientInterface returnedClientInterface = mWifiNative.setupForClientMode ( ) ; org.junit.Assert.assertEquals ( null , returnedClientInterface ) ; org.mockito.Mockito.verify ( mWifiNative ) . startHal ( org.mockito.Mockito.eq ( true ) ) ; org.mockito.Mockito.verify ( wificondControl ) . setupDriverForClientMode ( ) ; }

Target:
public void testSetupDriverForClientMode ( ) { android.net.wifi.IClientInterface clientInterface = org.mockito.Mockito.mock ( android.net.wifi.IClientInterface.class ) ; org.mockito.Mockito.when ( mWificondControl.setupDriverForClientMode ( ) ) . thenReturn ( clientInterface ) ; android.net.wifi.IClientInterface returnedClientInterface = mWifiNative.setupForClientMode ( ) ; org.junit.Assert.assertEquals ( clientInterface , returnedClientInterface ) ; org.mockito.Mockito.verify ( mWifiVendorHal ) . startVendorHal ( org.mockito.Mockito.eq ( true ) ) ; org.mockito.Mockito.verify ( mWificondControl ) . setupDriverForClientMode ( ) ; }
Source:
public void run ( ) { android.app.Notification n = new android.app.Notification ( R.drawable.icon1 , ( " " + ( ( ( ( "tick tock tick tock\n\nSometimes notifications can " + "be really long and wrap to more than one line.\n" ) + "Sometimes." ) + "Ohandwhathappensifwehaveonereallylongstringarewesure" ) + "thatwesegmentitcorrectly?\n" ) ) , java.lang.System.currentTimeMillis ( ) ) ; n.setLatestEventInfo ( this , "Still Persistent #1" , "This is still a notification!!!" , makeIntent ( ) ) ; mNM.notify ( 1 , n ) ; }

Target:
public void run ( ) { android.app.Notification n = new android.app.Notification ( R.drawable.icon1 , "tick tick tick" , java.lang.System.currentTimeMillis ( ) ) ; n.setLatestEventInfo ( this , "Persistent #1" , "This is a notification!!!" , makeIntent ( ) ) ; mNM.notify ( 1 , n ) ; }
Source:
public void callSessionResumeReceived ( com.android.ims.internal.ImsCallSession session , com.android.ims.ImsCallProfile profile ) { logi ( ( ( ( "callSessionResumeReceived :: session=" + session ) + "profile=" ) + profile ) ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( "callSessionResumeReceived :: not supported for transient conference session=" + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; setCallProfile ( profile ) ; } if ( listener != null ) { try { listener.onCallResumeReceived ( this ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionResumeReceived :: " , t ) ; } } }

Target:
public void callSessionResumeReceived ( android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsCallProfile profile ) { logi ( ( ( ( "callSessionResumeReceived :: session=" + session ) + "profile=" ) + profile ) ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( "callSessionResumeReceived :: not supported for transient conference session=" + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; setCallProfile ( profile ) ; } if ( listener != null ) { try { listener.onCallResumeReceived ( this ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionResumeReceived :: " , t ) ; } } }
Source:
public boolean setP2pGroupIdle ( java.lang.String iface , int time ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setGroupIdle ( iface , time ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " SET p2p_group_idle " ) + time ) ) ; } } }

Target:
public boolean setP2pGroupIdle ( java.lang.String iface , int time ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setGroupIdle ( iface , time ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " SET p2p_group_idle " ) + time ) ) ; } } }
Source:
public void testIsInManagedCallFail ( ) throws java.lang.Exception { org.mockito.Mockito.doThrow ( new java.lang.SecurityException ( ) ) . when ( mContext ) . enforceCallingOrSelfPermission ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.any ( ) ) ; try { mTSIBinder.isInManagedCall ( "blah" ) ; fail ( ) ; } catch ( java.lang.SecurityException e ) { } org.mockito.Mockito.verify ( mFakeCallsManager , org.mockito.Mockito.never ( ) ) . hasOngoingCalls ( ) ; }

Target:
public void testIsInManagedCallFail ( ) throws java.lang.Exception { org.mockito.Mockito.doThrow ( new java.lang.SecurityException ( ) ) . when ( mContext ) . enforceCallingOrSelfPermission ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.any ( ) ) ; try { mTSIBinder.isInManagedCall ( "blah" ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.SecurityException e ) { } org.mockito.Mockito.verify ( mFakeCallsManager , org.mockito.Mockito.never ( ) ) . hasOngoingCalls ( ) ; }
Source:
public boolean deleteMessageFromIcc ( int messageIndex ) { boolean success = false ; byte [ ] pdu = new byte [ ( com.android.internal.telephony.IccConstants.SMS_RECORD_LENGTH ) - 1 ] ; java.util.Arrays.fill ( pdu , ( ( byte ) ( 255 ) ) ) ; try { com.android.internal.telephony.ISms iccISms = ISms.Stub.asInterface ( android.os.ServiceManager.getService ( "isms" ) ) ; if ( iccISms != null ) { success = iccISms.updateMessageOnIccEf ( messageIndex , android.telephony.SmsManager.STATUS_ON_ICC_FREE , pdu ) ; } } catch ( android.os.RemoteException ex ) { } return success ; }

Target:
public boolean deleteMessageFromIcc ( int messageIndex ) { boolean success = false ; byte [ ] pdu = new byte [ ( com.android.internal.telephony.uicc.IccConstants.SMS_RECORD_LENGTH ) - 1 ] ; java.util.Arrays.fill ( pdu , ( ( byte ) ( 255 ) ) ) ; try { com.android.internal.telephony.ISms iccISms = ISms.Stub.asInterface ( android.os.ServiceManager.getService ( "isms" ) ) ; if ( iccISms != null ) { success = iccISms.updateMessageOnIccEf ( messageIndex , android.telephony.SmsManager.STATUS_ON_ICC_FREE , pdu ) ; } } catch ( android.os.RemoteException ex ) { } return success ; }
Source:
public void dispose ( ) { mRootWrapper.setRoot ( null ) ; getSite ( ) . getPage ( ) . removeSelectionListener ( this ) ; super . dispose ( ) ; }

Target:
public void dispose ( ) { mRootWrapper.setRoot ( null ) ; org.eclipse.ui.IWorkbenchWindow win = getSite ( ) . getWorkbenchWindow ( ) ; win.getPartService ( ) . removePartListener ( mPartListener ) ; getSite ( ) . getPage ( ) . removeSelectionListener ( this ) ; super . dispose ( ) ; }
Source:
private void updateLibraries ( ) { java.util.ArrayList < org.eclipse.core.resources.IProject > list = new java.util.ArrayList < org.eclipse.core.resources.IProject > ( ) ; synchronized ( mLibraries ) { for ( com.android.ide.eclipse.adt.internal.project.ProjectState.LibraryState state : mLibraries ) { if ( ( state.getProjectState ( ) ) != null ) { list.add ( state.getProjectState ( ) . getProject ( ) ) ; } } } mLibraryProjects = list.toArray ( new org.eclipse.core.resources.IProject [ list.size ( ) ] ) ; }

Target:
public boolean dependsOn ( com.android.ide.eclipse.adt.internal.project.ProjectState library ) { synchronized ( mLibraries ) { for ( com.android.ide.eclipse.adt.internal.project.ProjectState.LibraryState state : mLibraries ) { if ( ( ( state != null ) && ( ( state.getProjectState ( ) ) != null ) ) && ( library.getProject ( ) . equals ( state.getProjectState ( ) . getProject ( ) ) ) ) { return true ; } } } return false ; }
Source:
public void setEapMethod ( int eapMethod ) { switch ( eapMethod ) { case android.net.wifi.WifiEnterpriseConfig.Eap.TLS : case android.net.wifi.WifiEnterpriseConfig.Eap.UNAUTH_TLS : setPhase2Method ( android.net.wifi.WifiEnterpriseConfig.Phase2.NONE ) ; case android.net.wifi.WifiEnterpriseConfig.Eap.PEAP : case android.net.wifi.WifiEnterpriseConfig.Eap.PWD : case android.net.wifi.WifiEnterpriseConfig.Eap.TTLS : case android.net.wifi.WifiEnterpriseConfig.Eap.SIM : case android.net.wifi.WifiEnterpriseConfig.Eap.AKA : case android.net.wifi.WifiEnterpriseConfig.Eap.AKA_PRIME : mEapMethod = eapMethod ; mFields.put ( android.net.wifi.WifiEnterpriseConfig.OPP_KEY_CACHING , "1" ) ; break ; default : throw new java.lang.IllegalArgumentException ( "Unknown EAP method" ) ; } }

Target:
public void setEapMethod ( int eapMethod ) { switch ( eapMethod ) { case android.net.wifi.WifiEnterpriseConfig.Eap.TLS : case android.net.wifi.WifiEnterpriseConfig.Eap.UNAUTH_TLS : setPhase2Method ( android.net.wifi.WifiEnterpriseConfig.Phase2.NONE ) ; case android.net.wifi.WifiEnterpriseConfig.Eap.PEAP : case android.net.wifi.WifiEnterpriseConfig.Eap.PWD : case android.net.wifi.WifiEnterpriseConfig.Eap.TTLS : case android.net.wifi.WifiEnterpriseConfig.Eap.SIM : case android.net.wifi.WifiEnterpriseConfig.Eap.AKA : case android.net.wifi.WifiEnterpriseConfig.Eap.AKA_PRIME : mEapMethod = eapMethod ; setFieldValue ( android.net.wifi.WifiEnterpriseConfig.OPP_KEY_CACHING , "1" ) ; break ; default : throw new java.lang.IllegalArgumentException ( "Unknown EAP method" ) ; } }
Source:
public void testAesCbcHmacSha256Udp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , android.net.cts.IpSecManagerTest.getKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }

Target:
public void testCryptUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , null , false , 1 , true ) ; }
Source:
private void addRemoteExtra ( com.android.sdklib.repository.NoPreviewRevision revision , java.lang.String vendor , java.lang.String path ) { com.android.sdklib.repository.descriptors.IPkgDesc d = com.android.sdklib.repository.descriptors.PkgDesc.newExtra ( vendor , path , null , revision ) ; com.android.sdklib.repository.remote.RemotePkgInfo r = new com.android.sdklib.repository.remote.RemotePkgInfo ( d , mSource ) ; mRemotePkgs.put ( d.getType ( ) , r ) ; }

Target:
private void addRemoteExtra ( com.android.sdklib.repository.NoPreviewRevision revision , java.lang.String vendor , java.lang.String path ) { com.android.sdklib.repository.descriptors.IPkgDesc d = PkgDesc.Builder.newExtra ( vendor , path , null , revision ) . create ( ) ; com.android.sdklib.repository.remote.RemotePkgInfo r = new com.android.sdklib.repository.remote.RemotePkgInfo ( d , mSource ) ; mRemotePkgs.put ( d.getType ( ) , r ) ; }
Source:
public void test_SSL_check_private_key_key_then_cert ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getServerPrivateKey ( ) ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getServerCertificates ( ) ) ; org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_check_private_key_key_then_cert ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getServerPrivateKey ( ) . getPkeyContext ( ) ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getServerCertificates ( ) ) ; org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public static void writeUint24 ( int i , byte [ ] buf , int offset ) { buf [ offset ] = ( ( byte ) ( i > > 16 ) ) ; buf [ ( offset + 1 ) ] = ( ( byte ) ( i > > 8 ) ) ; buf [ ( offset + 2 ) ] = ( ( byte ) ( i ) ) ; }

Target:
public static void writeUint32 ( long i , byte [ ] buf , int offset ) { buf [ offset ] = ( ( byte ) ( i > > > 24 ) ) ; buf [ ( offset + 1 ) ] = ( ( byte ) ( i > > > 16 ) ) ; buf [ ( offset + 2 ) ] = ( ( byte ) ( i > > > 8 ) ) ; buf [ ( offset + 3 ) ] = ( ( byte ) ( i ) ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.tv.tuner.TunerInputController.MSG_ENABLE_INPUT_SERVICE : android.content.Context context = ( ( android.content.Context ) ( msg.obj ) ) ; if ( ( mDvbDeviceAccessor ) == null ) { mDvbDeviceAccessor = new com.android.tv.tuner.DvbDeviceAccessor ( context ) ; } enableTunerTvInputService ( context , mDvbDeviceAccessor.isDvbDeviceAvailable ( ) ) ; break ; } }

Target:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.tv.tuner.TunerInputController.MSG_ENABLE_INPUT_SERVICE : android.content.Context context = ( ( android.content.Context ) ( msg.obj ) ) ; if ( ( mDvbDeviceAccessor ) == null ) { mDvbDeviceAccessor = new com.android.tv.tuner.DvbDeviceAccessor ( context ) ; } boolean enabled = mDvbDeviceAccessor.isDvbDeviceAvailable ( ) ; enableTunerTvInputService ( context , enabled , false , ( enabled ? TunerHal.TUNER_TYPE_USB : null ) ) ; break ; } }
Source:
public void testBuildProgram ( ) { com.android.tv.data.Channel c = new com.android.tv.data.Channel.Builder ( ) . build ( ) ; com.android.tv.data.Program p = new com.android.tv.data.Program.Builder ( ) . build ( ) ; com.android.tv.dvr.ScheduledRecording actual = com.android.tv.dvr.ScheduledRecording.builder ( com.android.tv.dvr.ScheduledRecordingTest.INPUT_ID , p ) . setChannelId ( c.getId ( ) ) . build ( ) ; assertEquals ( "type" , ScheduledRecording.TYPE_PROGRAM , actual.getType ( ) ) ; }

Target:
public void testBuildProgram ( ) { com.android.tv.data.Channel c = new com.android.tv.data.Channel.Builder ( ) . build ( ) ; com.android.tv.data.Program p = new com.android.tv.data.Program.Builder ( ) . build ( ) ; com.android.tv.dvr.data.ScheduledRecording actual = com.android.tv.dvr.data.ScheduledRecording.builder ( com.android.tv.dvr.ScheduledRecordingTest.INPUT_ID , p ) . setChannelId ( c.getId ( ) ) . build ( ) ; assertEquals ( "type" , ScheduledRecording.TYPE_PROGRAM , actual.getType ( ) ) ; }
Source:
private com.android.ide.common.resources.ResourceFolder _addProjectResourceFolder ( com.android.ide.common.resources.ResourceRepository resources , com.android.ide.common.resources.configuration.FolderConfiguration config , org.eclipse.core.resources.IFolder folder ) throws java.lang.Exception { java.lang.reflect.Method addMethod = com.android.ide.common.resources.ResourceRepository.class . getDeclaredMethod ( "add" , com.android.resources.ResourceFolderType.class , com.android.ide.common.resources.configuration.FolderConfiguration.class , com.android.io.IAbstractFolder.class ) ; addMethod.setAccessible ( true ) ; com.android.ide.common.resources.ResourceFolder resFolder = ( ( com.android.ide.common.resources.ResourceFolder ) ( addMethod.invoke ( resources , ResourceFolderType.LAYOUT , config , new com.android.ide.eclipse.adt.io.IFolderWrapper ( folder ) ) ) ) ; return resFolder ; }

Target:
private void addFolder ( com.android.ide.common.resources.ResourceRepository resources , com.android.ide.common.resources.configuration.FolderConfiguration config , org.eclipse.core.resources.IFile [ ] memberList ) throws java.lang.Exception { java.lang.String folderName = config.getFolderName ( ResourceFolderType.LAYOUT ) ; org.eclipse.core.resources.IFolder folder = com.android.ide.eclipse.mock.Mocks.createFolder ( folderName , memberList ) ; com.android.ide.common.resources.ResourceFolder resFolder = resources.processFolder ( new com.android.ide.eclipse.adt.io.IFolderWrapper ( folder ) ) ; for ( org.eclipse.core.resources.IFile file : memberList ) { resFolder.addFile ( new com.android.ide.common.resources.SingleResourceFile ( new com.android.ide.eclipse.adt.io.IFileWrapper ( file ) , resFolder ) ) ; } }
Source:
public int writeBytesTo ( byte [ ] dest , int offset , int maxLength ) { byte [ ] hash = asBytes ( ) ; maxLength = com.google.common.primitives.Ints.min ( maxLength , hash.length ) ; com.google.common.base.Preconditions.checkPositionIndexes ( offset , ( offset + maxLength ) , dest.length ) ; java.lang.System.arraycopy ( hash , 0 , dest , offset , maxLength ) ; return maxLength ; }

Target:
public static com.google.common.hash.HashCode fromBytes ( byte [ ] bytes ) { com.google.common.base.Preconditions.checkArgument ( ( ( bytes.length ) >= 1 ) , "A HashCode must contain at least 1 byte." ) ; return com.google.common.hash.HashCode.fromBytesNoCopy ( bytes.clone ( ) ) ; }
Source:
public boolean isTypeBarring ( ) { return ( ( ( ( ( ( ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_BAOC ) ) || ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_BAOIC ) ) ) || ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_BAOIC_EXC_HOME ) ) ) || ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_BAIC ) ) ) || ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_BAIC_ROAMING ) ) ) || ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_ALL_BARRING ) ) ) || ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_OUTGOING_BARRING ) ) ) || ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_INCOMING_BARRING ) ) ; }

Target:
public boolean isTypeBarring ( ) { return ( ( ( ( ( ( ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_BAOC ) ) || ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_BAOIC ) ) ) || ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_BAOIC_EXC_HOME ) ) ) || ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_BAIC ) ) ) || ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_BAIC_ROAMING ) ) ) || ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_ALL_BARRING ) ) ) || ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_OUTGOING_BARRING ) ) ) || ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_INCOMING_BARRING ) ) ; }
Source:
public static java.util.List < com.android.jack.test.runner.RuntimeRunner > listRuntimeTestRunners ( @ javax.annotation.CheckForNull java.util.Properties properties ) throws com.android.jack.test.runner.RuntimeRunnerException , java.lang.IllegalArgumentException , java.lang.SecurityException { if ( properties != null ) { java.lang.String rtAsString = properties.getProperty ( com.android.jack.test.toolchain.AbstractTestTools.RUNTIME_LIST_KEY ) ; if ( rtAsString != null ) { return com.android.jack.test.toolchain.AbstractTestTools.parseRuntimeList ( rtAsString ) ; } } return com.android.jack.test.toolchain.AbstractTestTools.runtimes ; }

Target:
public static java.util.List < com.android.jack.test.runner.RuntimeRunner > listRuntimeTestRunners ( @ javax.annotation.CheckForNull java.util.Properties properties ) throws com.android.jack.test.runner.RuntimeRunnerException , java.lang.IllegalArgumentException , java.lang.SecurityException { if ( properties != null ) { java.lang.String rtAsString = properties.getProperty ( com.android.jack.test.toolchain.AbstractTestTools.RUNTIME_LIST_KEY ) ; if ( rtAsString != null ) { return com.android.jack.test.toolchain.AbstractTestTools.parseRuntimeList ( rtAsString ) ; } } if ( ( ! ( com.android.jack.test.toolchain.AbstractTestTools.hasRuntimeWarningBeenEmitted ) ) && ( ( com.android.jack.test.toolchain.AbstractTestTools.runtimes.size ( ) ) == 0 ) ) { java.lang.System.err.println ( "WARNING: no runtime has been provided" ) ; com.android.jack.test.toolchain.AbstractTestTools.hasRuntimeWarningBeenEmitted = true ; } return com.android.jack.test.toolchain.AbstractTestTools.runtimes ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { toggle.getCallback ( ) . action ( toggle , getSelectedNodes ( ) , toggle.getId ( ) , button.getSelection ( ) ) ; updateSelection ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { com.android.ide.common.api.RuleAction.Toggle toggle = ( ( com.android.ide.common.api.RuleAction.Toggle ) ( button.getData ( ) ) ) ; toggle.getCallback ( ) . action ( toggle , getSelectedNodes ( ) , toggle.getId ( ) , button.getSelection ( ) ) ; updateSelection ( ) ; }
Source:
synchronized void setConnected ( ) { status = java.nio.SocketChannelImpl.SOCKET_STATUS_CONNECTED ; }

Target:
void onConnectStatusChanged ( java.net.InetSocketAddress address , int status , boolean updateSocketState ) { this . status = status ; connectAddress = address ; if ( ( ( status == ( java.nio.SocketChannelImpl.SOCKET_STATUS_CONNECTED ) ) && updateSocketState ) && ( ( socket ) != null ) ) { socket.onConnect ( connectAddress.getAddress ( ) , connectAddress.getPort ( ) ) ; } }
Source:
public void testPutCharBuffer ( ) { java.nio.CharBuffer other = java.nio.CharBuffer.allocate ( 1 ) ; try { buf.put ( other ) ; fail ( "Should throw ReadOnlyBufferException" ) ; } catch ( java.nio.ReadOnlyBufferException e ) { } try { buf.put ( ( ( java.nio.CharBuffer ) ( null ) ) ) ; fail ( "Should throw ReadOnlyBufferException" ) ; } catch ( java.nio.ReadOnlyBufferException e ) { } try { buf.put ( buf ) ; fail ( "Should throw ReadOnlyBufferException" ) ; } catch ( java.nio.ReadOnlyBufferException e ) { } }

Target:
public void testPutCharBuffer ( ) { java.nio.CharBuffer other = java.nio.CharBuffer.allocate ( 1 ) ; try { buf.put ( other ) ; fail ( "Should throw ReadOnlyBufferException" ) ; } catch ( java.nio.ReadOnlyBufferException e ) { } try { buf.put ( ( ( java.nio.CharBuffer ) ( null ) ) ) ; fail ( "Should throw ReadOnlyBufferException" ) ; } catch ( java.nio.ReadOnlyBufferException e ) { } try { buf.put ( buf ) ; fail ( "Should throw IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }