auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static java.lang.String getSimIdentity ( android.telephony.TelephonyManager tm , int eapMethod ) { if ( tm == null ) { android.util.Log.e ( com.android.server.wifi.util.TelephonyUtil.TAG , "No valid TelephonyManager" ) ; return null ; } java.lang.String imsi = tm.getSubscriberId ( ) ; java.lang.String mccMnc = "" ; if ( ( tm.getSimState ( ) ) == ( android.telephony.TelephonyManager.SIM_STATE_READY ) ) { mccMnc = tm.getSimOperator ( ) ; } return com.android.server.wifi.util.TelephonyUtil.buildIdentity ( eapMethod , imsi , mccMnc ) ; }

Target:
public static java.lang.String getSimIdentity ( android.telephony.TelephonyManager tm , android.net.wifi.WifiConfiguration config ) { if ( tm == null ) { android.util.Log.e ( com.android.server.wifi.util.TelephonyUtil.TAG , "No valid TelephonyManager" ) ; return null ; } java.lang.String imsi = tm.getSubscriberId ( ) ; java.lang.String mccMnc = "" ; if ( ( tm.getSimState ( ) ) == ( android.telephony.TelephonyManager.SIM_STATE_READY ) ) { mccMnc = tm.getSimOperator ( ) ; } return com.android.server.wifi.util.TelephonyUtil.buildIdentity ( com.android.server.wifi.util.TelephonyUtil.getSimMethodForConfig ( config ) , imsi , mccMnc ) ; }
Source:
public void removeRegistrationListener ( com.android.ims.ImsConnectionStateListener listener ) throws com.android.ims.ImsException { if ( listener == null ) { throw new java.lang.NullPointerException ( "listener can't be null" ) ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { mMmTelFeatureConnection.removeRegistrationCallback ( listener ) ; com.android.ims.ImsManager.log ( "Registration Callback/Listener registered." ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "addRegistrationCallback()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }

Target:
public void addRegistrationCallback ( android.telephony.ims.stub.ImsRegistrationImplBase.Callback callback ) throws com.android.ims.ImsException { if ( callback == null ) { throw new java.lang.NullPointerException ( "registration callback can't be null" ) ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { mMmTelFeatureConnection.addRegistrationCallback ( callback ) ; com.android.ims.ImsManager.log ( "Registration Callback registered." ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "addRegistrationCallback(IRIB)" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JThisRef thisRef ) { com.android.jack.dx.rop.code.RegisterSpec valueReg = ropReg.getOrCreateRegisterSpec ( thisRef ) ; com.android.jack.dx.rop.code.RegisterSpecList sources = com.android.jack.dx.rop.code.RegisterSpecList.make ( valueReg ) ; addInstruction ( new com.android.jack.dx.rop.code.PlainInsn ( com.android.jack.dx.rop.code.Rops.opMove ( valueReg.getTypeBearer ( ) ) , sourcePosition , destReg , sources ) ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariableRef varRef ) { com.android.jack.dx.rop.code.RegisterSpec valueReg = ropReg.getOrCreateRegisterSpec ( varRef ) ; com.android.jack.dx.rop.code.RegisterSpecList sources = com.android.jack.dx.rop.code.RegisterSpecList.make ( valueReg ) ; addInstruction ( new com.android.jack.dx.rop.code.PlainInsn ( com.android.jack.dx.rop.code.Rops.opMove ( valueReg.getTypeBearer ( ) ) , sourcePosition , destReg , sources ) ) ; return false ; }
Source:
void remove ( int id ) { synchronized ( mApps ) { java.util.Iterator < com.android.bluetooth.gatt.ContextMap < T > . App > i = mApps.iterator ( ) ; while ( i.hasNext ( ) ) { com.android.bluetooth.gatt.ContextMap < T > . App entry = i.next ( ) ; if ( ( entry.id ) == id ) { entry.unlinkToDeath ( ) ; i.remove ( ) ; break ; } } } }

Target:
void remove ( int id ) { synchronized ( mApps ) { java.util.Iterator < com.android.bluetooth.gatt.ContextMap < T > . App > i = mApps.iterator ( ) ; while ( i.hasNext ( ) ) { com.android.bluetooth.gatt.ContextMap < T > . App entry = i.next ( ) ; if ( ( entry.id ) == id ) { entry.unlinkToDeath ( ) ; mScanStats.get ( entry.name ) . isRegistered = false ; i.remove ( ) ; break ; } } } }
Source:
public void testDensityOnlyWithMatch ( ) { com.android.build.SplitOutput match ; java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( 1 ) ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 160 , 2 ) ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 320 , 3 ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( match , result ) ; }

Target:
public void testDensityOnlyWithNoMatch ( ) { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 320 , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 480 , 2 ) ) ; java.util.List < java.io.File > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( 0 , result.size ( ) ) ; }
Source:
public static void computeAcosh ( android.renderscript.cts.TestAcosh.ArgumentsFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 4 ; double x = ( ( double ) ( args.in ) ) ; args.out = ( ( float ) ( java.lang.StrictMath.log ( ( x + ( java.lang.StrictMath.sqrt ( ( ( x * x ) - 1.0 ) ) ) ) ) ) ) ; }

Target:
public static void computeAcosh ( android.renderscript.cts.TestAcosh.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.acosh ( args.in ) , 4 , 128 ) ; }
Source:
public void test_setSoTimeoutI ( ) throws java.lang.Exception { java.net.ServerSocket server = new java.net.ServerSocket ( 0 ) ; java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , server.getLocalPort ( ) ) ; client.setSoTimeout ( 100 ) ; assertEquals ( "Set incorrect sotimeout" , 100 , client.getSoTimeout ( ) ) ; client.close ( ) ; server.close ( ) ; }

Target:
public void test_setSoTimeoutI ( ) throws java.lang.Exception { java.net.ServerSocket server = new java.net.ServerSocket ( 0 ) ; java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , server.getLocalPort ( ) ) ; final int timeoutSet = 100 ; client.setSoTimeout ( timeoutSet ) ; int actualTimeout = client.getSoTimeout ( ) ; assertTrue ( "Set incorrect sotimeout" , ( ( java.lang.Math.abs ( ( timeoutSet - actualTimeout ) ) ) <= 10 ) ) ; client.close ( ) ; server.close ( ) ; }
Source:
private com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo getHorizontalPaddingBottom ( int x ) { int left = ( patchInfo.horizontalPadding.first ) + 1 ; int right = ( ( image.getWidth ( ) ) - ( patchInfo.horizontalPadding.second ) ) - 1 ; return getContainingPadding ( left , right , x , com.android.draw9patch.ui.ImageViewer.UpdateRegion.BOTTOM_PADDING ) ; }

Target:
private com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo findHorizontalPatch ( int x , int y ) { java.util.List < com.android.draw9patch.ui.Pair < java.lang.Integer > > markers ; com.android.draw9patch.ui.ImageViewer.UpdateRegion region ; if ( y < ( ( image.getHeight ( ) ) / 2 ) ) { markers = patchInfo.horizontalPatchMarkers ; region = com.android.draw9patch.ui.ImageViewer.UpdateRegion.TOP_PATCH ; } else { markers = patchInfo.horizontalPaddingMarkers ; region = com.android.draw9patch.ui.ImageViewer.UpdateRegion.BOTTOM_PADDING ; } return getContainingPatch ( markers , x , region ) ; }
Source:
private void storeBackground ( java.io.File imageDir , org.eclipse.swt.graphics.RGB color ) { mBackground = color ; java.io.File file = new java.io.File ( imageDir , com.android.ide.eclipse.adt.internal.editors.layout.gle2.PreviewIconFactory.PREVIEW_INFO_FILE ) ; java.lang.String colors = java.lang.String.format ( "background=%02x,%02x,%02x" , color.red , color.green , color.blue ) ; com.android.ide.eclipse.adt.AdtPlugin.writeFile ( file , colors ) ; }

Target:
private void storeBackground ( java.io.File imageDir , org.eclipse.swt.graphics.RGB bg , org.eclipse.swt.graphics.RGB fg ) { mBackground = bg ; mForeground = fg ; java.io.File file = new java.io.File ( imageDir , com.android.ide.eclipse.adt.internal.editors.layout.gle2.PreviewIconFactory.PREVIEW_INFO_FILE ) ; java.lang.String colors = java.lang.String.format ( "background=#%02x%02x%02x\nforeground=#%02x%02x%02x\\n" , bg.red , bg.green , bg.blue , fg.red , fg.green , fg.blue ) ; com.android.ide.eclipse.adt.AdtPlugin.writeFile ( file , colors ) ; }
Source:
private native void gattClientScanFilterAddNative ( int client_if , int filter_type , int filter_index , int company_id , int company_id_mask , long uuid_lsb , long uuid_msb , long uuid_mask_lsb , long uuid_mask_msb , java.lang.String name , java.lang.String address , byte addr_type , byte [ ] data , byte [ ] mask ) ;

Target:
private native void gattClientScanFilterAddNative ( int clientId , com.android.bluetooth.gatt.ScanFilterQueue [ ] entries , int filterIndex ) ;
Source:
public void goForward ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { goForward ( ) ; } } ) ; return ; } mAwContents.goForward ( ) ; }

Target:
public boolean canGoBackOrForward ( final int steps ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return canGoBackOrForward ( steps ) ; } } ) ; return ret ; } return mAwContents.canGoBackOrForward ( steps ) ; }
Source:
private void setDefault ( int defaults ) { android.app.PendingIntent contentIntent = android.app.PendingIntent.getActivity ( this , 0 , new android.content.Intent ( this , com.example.android.apis.app.StatusBarNotifications.class ) , 0 ) ; java.lang.CharSequence text = getText ( R.string.status_bar_notifications_happy_message ) ; final android.app.Notification notification = new android.app.Notification ( R.drawable.stat_happy , text , java.lang.System.currentTimeMillis ( ) ) ; notification.setLatestEventInfo ( this , getText ( R.string.status_bar_notifications_mood_title ) , text , contentIntent ) ; notification.defaults = defaults ; mNotificationManager.notify ( R.layout.status_bar_notifications , notification ) ; }

Target:
private void setDefault ( int defaults ) { android.app.PendingIntent contentIntent = android.app.PendingIntent.getActivity ( this , 0 , new android.content.Intent ( this , com.example.android.apis.app.StatusBarNotifications.class ) , 0 ) ; java.lang.CharSequence text = getText ( R.string.status_bar_notifications_happy_message ) ; final android.app.Notification notification = new android.app.Notification ( R.drawable.stat_happy , text , java.lang.System.currentTimeMillis ( ) ) ; notification.setLatestEventInfo ( this , getText ( R.string.status_bar_notifications_mood_title ) , text , contentIntent ) ; notification.defaults = defaults ; mNotificationManager.notify ( com.example.android.apis.app.StatusBarNotifications.MOOD_NOTIFICATIONS , notification ) ; }
Source:
public void binderDied ( ) { onAppCallbackDied ( uid , subscriptionId ) ; }

Target:
public final int initialize ( android.telephony.mbms.IMbmsStreamingManagerCallback listener , int subscriptionId ) throws android.os.RemoteException { return initialize ( new android.telephony.mbms.MbmsStreamingManagerCallback ( ) { @ java.lang.Override public void error ( int errorCode , java.lang.String message ) throws android.os.RemoteException { listener.error ( errorCode , message ) ; } @ java.lang.Override public void streamingServicesUpdated ( java.util.List < android.telephony.mbms.StreamingServiceInfo > services ) throws android.os.RemoteException { listener.streamingServicesUpdated ( services ) ; } @ java.lang.Override public void middlewareReady ( ) throws android.os.RemoteException { listener.middlewareReady ( ) ; } } , subscriptionId ) ; }
Source:
public void listen ( android.content.Context context , @ android.support.annotation.NonNull com.google.common.util.concurrent.ListenableFuture < OutputT > future , @ android.support.annotation.NonNull com.android.dialer.common.concurrent.DialerExecutor.SuccessListener < OutputT > successListener , @ android.support.annotation.NonNull com.android.dialer.common.concurrent.DialerExecutor.FailureListener failureListener ) { callbackWrapper = new com.android.dialer.common.concurrent.UiListener.CallbackWrapper ( com.android.dialer.common.Assert.isNotNull ( successListener ) , com.android.dialer.common.Assert.isNotNull ( failureListener ) ) ; com.google.common.util.concurrent.Futures.addCallback ( com.android.dialer.common.Assert.isNotNull ( future ) , callbackWrapper , com.android.dialer.common.concurrent.DialerExecutorComponent.get ( context ) . uiExecutorService ( ) ) ; }

Target:
public void listen ( android.content.Context context , @ android.support.annotation.NonNull com.google.common.util.concurrent.ListenableFuture < OutputT > future , @ android.support.annotation.NonNull com.android.dialer.common.concurrent.DialerExecutor.SuccessListener < OutputT > successListener , @ android.support.annotation.NonNull com.android.dialer.common.concurrent.DialerExecutor.FailureListener failureListener ) { callbackWrapper = new com.android.dialer.common.concurrent.UiListener.CallbackWrapper ( com.android.dialer.common.Assert.isNotNull ( successListener ) , com.android.dialer.common.Assert.isNotNull ( failureListener ) ) ; com.google.common.util.concurrent.Futures.addCallback ( com.android.dialer.common.Assert.isNotNull ( future ) , callbackWrapper , com.android.dialer.common.concurrent.DialerExecutorComponent.get ( context ) . uiExecutor ( ) ) ; }
Source:
public android.bluetooth.BluetoothDevice getClient ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getClient = " + ( mService.getRemoteDevice ( ) ) ) ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) { return null ; } return service.getRemoteDevice ( ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "getDevicesMatchingConnectionStates" ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( ) ; if ( service == null ) { return new java.util.ArrayList < > ( 0 ) ; } return service.getDevicesMatchingConnectionStates ( states ) ; }
Source:
public void test_peek ( ) { assertEquals ( "should remove the head" , objArray [ 0 ] , ll.peek ( ) ) ; assertEquals ( "should remove the head" , objArray [ 0 ] , ll.peek ( ) ) ; ll.clear ( ) ; assertNull ( "should return 'null' if list is empty" , ll.peek ( ) ) ; }

Target:
public void test_peek ( ) { java.util.LinkedList list = new java.util.LinkedList ( ) ; assertNull ( "Should return null if this list is empty" , list.peek ( ) ) ; assertEquals ( "Returned incorrect first element" , ll.peek ( ) , objArray [ 0 ] ) ; assertEquals ( "Peek remove the head (first element) of this list" , ll.getFirst ( ) , objArray [ 0 ] ) ; }
Source:
public static < K , V > com.google.common.collect.Multimap < K , V > filterEntries ( com.google.common.collect.Multimap < K , V > unfiltered , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Preconditions.checkNotNull ( entryPredicate ) ; return unfiltered instanceof com.google.common.collect.Multimaps.FilteredMultimap ? com.google.common.collect.Multimaps.filterFiltered ( ( ( com.google.common.collect.Multimaps.FilteredMultimap < K , V > ) ( unfiltered ) ) , entryPredicate ) : new com.google.common.collect.Multimaps.FilteredMultimap < K , V > ( com.google.common.base.Preconditions.checkNotNull ( unfiltered ) , entryPredicate ) ; }

Target:
public static < K , V > com.google.common.collect.SetMultimap < K , V > filterEntries ( com.google.common.collect.SetMultimap < K , V > unfiltered , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Preconditions.checkNotNull ( entryPredicate ) ; return unfiltered instanceof com.google.common.collect.FilteredSetMultimap ? com.google.common.collect.Multimaps.filterFiltered ( ( ( com.google.common.collect.FilteredSetMultimap < K , V > ) ( unfiltered ) ) , entryPredicate ) : new com.google.common.collect.FilteredEntrySetMultimap < K , V > ( com.google.common.base.Preconditions.checkNotNull ( unfiltered ) , entryPredicate ) ; }
Source:
public com.android.sched.vfs.InputOutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.GenericInputOutputVFS ( new com.android.sched.vfs.CachedDirectFS ( new com.android.sched.util.file.Directory ( context.getWorkingDirectory ( ) , string , context.getRunnableHooks ( ) , existence , permissions , change ) , permissions ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e ) ; } }

Target:
public com.android.sched.vfs.InputOutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.GenericInputOutputVFS ( new com.android.sched.vfs.CachedDirectFS ( new com.android.sched.util.file.Directory ( context.getWorkingDirectory ( ) , string , context.getRunnableHooks ( ) , existence , permissions , change ) , permissions ) ) ; } catch ( com.android.sched.util.file.CannotChangePermissionException | com.android.sched.util.file.NotDirectoryException | com.android.sched.util.file.WrongPermissionException | com.android.sched.util.file.NoSuchFileException | com.android.sched.util.file.FileAlreadyExistsException | com.android.sched.util.file.CannotCreateFileException e ) { throw new com.android.sched.util.codec.ParsingException ( e ) ; } }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; int SDK_INT = android.os.Build.VERSION.SDK_INT ; android.util.Log.i ( "OnCreate" , "OnCreate!!!" ) ; if ( SDK_INT >= 19 ) { setImmersiveSticky ( ) ; android.view.View decorView = getWindow ( ) . getDecorView ( ) ; decorView.setOnSystemUiVisibilityChangeListener ( new android.view.View.OnSystemUiVisibilityChangeListener ( ) { @ java.lang.Override public void onSystemUiVisibilityChange ( int visibility ) { setImmersiveSticky ( ) ; } } ) ; } }
Source:
public void testIsVoicemailNumberAccountNotVisibleFailure ( ) throws java.lang.Exception { java.lang.String vmNumber = "010" ; org.mockito.Mockito.doReturn ( true ) . when ( mFakePhoneAccountRegistrar ) . isVoiceMailNumber ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_CURRENT , vmNumber ) ; org.mockito.Mockito.when ( mFakePhoneAccountRegistrar.getPhoneAccount ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_CURRENT , android.os.Binder.getCallingUserHandle ( ) ) ) . thenReturn ( null ) ; assertFalse ( mTSIBinder.isVoiceMailNumber ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_CURRENT , vmNumber , com.android.server.telecom.tests.TelecomServiceImplTest.DEFAULT_DIALER_PACKAGE ) ) ; }

Target:
public void testIsVoicemailNumberAccountNotVisibleFailure ( ) throws java.lang.Exception { java.lang.String vmNumber = "010" ; org.mockito.Mockito.doReturn ( true ) . when ( mFakePhoneAccountRegistrar ) . isVoiceMailNumber ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_CURRENT , vmNumber ) ; org.mockito.Mockito.when ( mFakePhoneAccountRegistrar.getPhoneAccount ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_CURRENT , android.os.Binder.getCallingUserHandle ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertFalse ( mTSIBinder.isVoiceMailNumber ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_CURRENT , vmNumber , com.android.server.telecom.tests.TelecomServiceImplTest.DEFAULT_DIALER_PACKAGE ) ) ; }
Source:
private void prefixOptionToString ( java.lang.StringBuffer sb , int offset ) { java.lang.String prefix = IPv6AddresstoString ( ( offset + 16 ) ) ; int length = android.net.apf.ApfFilter.getUint8 ( mPacket , ( offset + 2 ) ) ; long valid = android.net.apf.ApfFilter.getUint32 ( mPacket , ( offset + 4 ) ) ; long preferred = android.net.apf.ApfFilter.getUint32 ( mPacket , ( offset + 8 ) ) ; sb.append ( java.lang.String.format ( "%s/%d %ds/%ds " , prefix , length , valid , preferred ) ) ; }

Target:
private void prefixOptionToString ( java.lang.StringBuffer sb , int offset ) { java.lang.String prefix = IPv6AddresstoString ( ( offset + 16 ) ) ; int length = com.android.internal.util.BitUtils.getUint8 ( mPacket , ( offset + 2 ) ) ; long valid = com.android.internal.util.BitUtils.getUint32 ( mPacket , ( offset + 4 ) ) ; long preferred = com.android.internal.util.BitUtils.getUint32 ( mPacket , ( offset + 8 ) ) ; sb.append ( java.lang.String.format ( "%s/%d %ds/%ds " , prefix , length , valid , preferred ) ) ; }
Source:
private int getNextDebuggerPort ( ) { synchronized ( mDebuggerPorts ) { if ( ! ( mDebuggerPorts.isEmpty ( ) ) ) { int port = mDebuggerPorts.get ( 0 ) ; mDebuggerPorts.remove ( 0 ) ; if ( mDebuggerPorts.isEmpty ( ) ) { mDebuggerPorts.add ( ( port + 1 ) ) ; } return port ; } } return - 1 ; }

Target:
void addPortToAvailableList ( int port ) { mDebuggerPorts.free ( port ) ; }
Source:
public java.nio.ByteBuffer putInt ( int index , int value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.INT ) ; this . block.pokeInt ( ( ( offset ) + index ) , value , order ) ; return this ; }

Target:
public java.nio.ByteBuffer putInt ( int index , int value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.INT ) ; this . block.pokeInt ( ( ( offset ) + index ) , value , order ) ; return this ; }
Source:
public boolean disconnectAudio ( android.bluetooth.BluetoothDevice device ) { android.util.Log.e ( com.android.bluetooth.hfpclient.HeadsetClientService.TAG , "disconnectAudio API not supported" ) ; return false ; }

Target:
boolean isScoAvailable ( ) { for ( android.bluetooth.BluetoothDevice bd : mStateMachineMap.keySet ( ) ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine sm = mStateMachineMap.get ( bd ) ; int audioState = sm.getAudioState ( bd ) ; if ( audioState != ( android.bluetooth.BluetoothHeadsetClient.STATE_AUDIO_DISCONNECTED ) ) { android.util.Log.w ( com.android.bluetooth.hfpclient.HeadsetClientService.TAG , ( ( ( ( "Device " + bd ) + " audio state " ) + audioState ) + " not disconnected" ) ) ; return false ; } } return true ; }
Source:
private static void assertMeidDeviceId ( java.lang.String deviceId ) { android.telephony.cts.TelephonyManagerTest.assertHexadecimalMeidFormat ( deviceId ) ; android.telephony.cts.TelephonyManagerTest.assertReportingBodyIdentifier ( deviceId , false ) ; }

Target:
private static void assertCdmaDeviceId ( java.lang.String deviceId ) { if ( ( deviceId.length ( ) ) == 14 ) { android.telephony.cts.TelephonyManagerTest.assertHexadecimalMeidFormat ( deviceId ) ; android.telephony.cts.TelephonyManagerTest.assertReportingBodyIdentifier ( deviceId , false ) ; } else if ( ( deviceId.length ( ) ) == 8 ) { android.telephony.cts.TelephonyManagerTest.assertHexadecimalEsnFormat ( deviceId ) ; } else { fail ( "device id on CDMA must be 14-digit hex MEID or 8-digit hex ESN." ) ; } }
Source:
public void testInnerInnerClass ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { java.lang.reflect.Constructor < ? > constructor = com.android.jack.java8.parameter.test001.Tests.InnerClass.InnerInnerClass.class . getDeclaredConstructor ( com.android.jack.java8.parameter.test001.Tests.InnerClass.class , float . class ) ; junit.framework.Assert.assertEquals ( 2 , constructor.getParameters ( ) . length ) ; check ( constructor.getParameters ( ) [ 0 ] , "this$1" , true , true , false , ( ( com.android.jack.java8.parameter.test001.Tests.MODIFIER_FINAL ) | ( com.android.jack.java8.parameter.test001.Tests.MODIFIER_IMPLICIT ) ) ) ; check ( constructor.getParameters ( ) [ 1 ] , "f" , true , false , false , com.android.jack.java8.parameter.test001.Tests.MODIFIER_NONE ) ; }

Target:
public void testInnerInnerClass ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { java.lang.reflect.Constructor < ? > constructor = com.android.jack.java8.parameter.test001.Tests.InnerClass.InnerInnerClass.class . getDeclaredConstructor ( com.android.jack.java8.parameter.test001.Tests.InnerClass.class , float . class ) ; junit.framework.Assert.assertEquals ( 2 , constructor.getParameters ( ) . length ) ; check ( constructor.getParameters ( ) [ 0 ] , "this$1" , true , true , false , ( ( com.android.jack.java8.parameter.common.ParameterTestModifier.MODIFIER_FINAL ) | ( com.android.jack.java8.parameter.common.ParameterTestModifier.MODIFIER_IMPLICIT ) ) ) ; check ( constructor.getParameters ( ) [ 1 ] , "f" , true , false , false , ParameterTestModifier.MODIFIER_NONE ) ; }
Source:
private void assertInstalledDistro ( libcore.tzdata.shared2.TimeZoneDistro timeZoneDistro ) throws java.lang.Exception { java.io.File currentTzDataDir = installer.getCurrentTzDataDir ( ) ; assertTrue ( currentTzDataDir.exists ( ) ) ; java.io.File versionFile = new java.io.File ( currentTzDataDir , libcore.tzdata.shared2.TimeZoneDistro.DISTRO_VERSION_FILE_NAME ) ; assertTrue ( versionFile.exists ( ) ) ; byte [ ] expectedVersionBytes = timeZoneDistro.getDistroVersion ( ) . toBytes ( ) ; byte [ ] actualVersionBytes = libcore.tzdata.shared2.FileUtils.readBytes ( versionFile , expectedVersionBytes.length ) ; org.junit.Assert.assertArrayEquals ( expectedVersionBytes , actualVersionBytes ) ; }

Target:
private void assertInstalledDistro ( com.android.timezone.distro.TimeZoneDistro timeZoneDistro ) throws java.lang.Exception { java.io.File currentTzDataDir = installer.getCurrentTzDataDir ( ) ; assertTrue ( currentTzDataDir.exists ( ) ) ; java.io.File versionFile = new java.io.File ( currentTzDataDir , com.android.timezone.distro.TimeZoneDistro.DISTRO_VERSION_FILE_NAME ) ; assertTrue ( versionFile.exists ( ) ) ; byte [ ] expectedVersionBytes = timeZoneDistro.getDistroVersion ( ) . toBytes ( ) ; byte [ ] actualVersionBytes = com.android.timezone.distro.FileUtils.readBytes ( versionFile , expectedVersionBytes.length ) ; org.junit.Assert.assertArrayEquals ( expectedVersionBytes , actualVersionBytes ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mCm = ( ( android.net.ConnectivityManager ) ( getContext ( ) . getSystemService ( Context.CONNECTIVITY_SERVICE ) ) ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mCm = ( ( android.net.ConnectivityManager ) ( getContext ( ) . getSystemService ( Context.CONNECTIVITY_SERVICE ) ) ) ; mWifiManager = ( ( android.net.wifi.WifiManager ) ( getContext ( ) . getSystemService ( Context.WIFI_SERVICE ) ) ) ; mPackageManager = getContext ( ) . getPackageManager ( ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( "ServiceIntentInfo{" + ( java.lang.Integer.toHexString ( java.lang.System.identityHashCode ( this ) ) ) ) + " " ) + ( service.info.name ) ) + "}" ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 128 ) ; sb.append ( "ServiceIntentInfo{" ) ; sb.append ( java.lang.Integer.toHexString ( java.lang.System.identityHashCode ( this ) ) ) ; sb.append ( ' ' ) ; service.appendComponentShortName ( sb ) ; sb.append ( '}' ) ; return sb.toString ( ) ; }
Source:
private void sendNotification ( int textChangedType , android.text.style.EasyEditSpan span ) { try { android.app.PendingIntent pendingIntent = span.getPendingIntent ( ) ; if ( pendingIntent != null ) { android.content.Intent intent = new android.content.Intent ( ) ; intent.putExtra ( EasyEditSpan.EXTRA_TEXT_CHANGED_TYPE , textChangedType ) ; pendingIntent.send ( mTextView.getContext ( ) , 0 , intent ) ; } } catch ( android.app.PendingIntent.CanceledException e ) { android.util.Log.w ( android.widget.Editor.TAG , "PendingIntent for notification cannot be sent" , e ) ; } }

Target:
private void sendEasySpanNotification ( int textChangedType , android.text.style.EasyEditSpan span ) { try { android.app.PendingIntent pendingIntent = span.getPendingIntent ( ) ; if ( pendingIntent != null ) { android.content.Intent intent = new android.content.Intent ( ) ; intent.putExtra ( EasyEditSpan.EXTRA_TEXT_CHANGED_TYPE , textChangedType ) ; pendingIntent.send ( mTextView.getContext ( ) , 0 , intent ) ; } } catch ( android.app.PendingIntent.CanceledException e ) { android.util.Log.w ( android.widget.Editor.TAG , "PendingIntent for notification cannot be sent" , e ) ; } }
Source:
public void tesNoSplitDelegateLast ( ) { android.content.pm.ApplicationInfo ai = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.DELEGATE_LAST_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] sharedLibrary = new java.lang.String [ ] { "a.dex" , "b.dex" } ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( ai , sharedLibrary ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "PCL[a.dex:b.dex]" , contexts [ 0 ] ) ; }

Target:
public void tesNoSplits ( ) { com.android.server.pm.dex.DexoptUtilsTest.TestData data = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.PATH_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] sharedLibrary = new java.lang.String [ ] { "a.dex" , "b.dex" } ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( data.info , sharedLibrary , data.pathsWithCode ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "PCL[a.dex:b.dex]" , contexts [ 0 ] ) ; }
Source:
private void render ( final com.android.builder.AndroidDependency lib , boolean lastChild ) { renderer.visit ( new org.gradle.api.Action < org.gradle.logging.StyledTextOutput > ( ) { @ java.lang.Override public void execute ( org.gradle.logging.StyledTextOutput styledTextOutput ) { getTextOutput ( ) . text ( ( ( com.android.builder.BundleDependency ) ( lib ) ) . getName ( ) ) ; } } , lastChild ) ; renderChildren ( lib.getDependencies ( ) ) ; }

Target:
private void render ( final com.android.builder.dependency.AndroidDependency lib , boolean lastChild ) { renderer.visit ( new org.gradle.api.Action < org.gradle.logging.StyledTextOutput > ( ) { @ java.lang.Override public void execute ( org.gradle.logging.StyledTextOutput styledTextOutput ) { getTextOutput ( ) . text ( ( ( com.android.builder.dependency.BundleDependency ) ( lib ) ) . getName ( ) ) ; } } , lastChild ) ; renderChildren ( lib.getDependencies ( ) ) ; }
Source:
public java.nio.ByteBuffer putShort ( int index , short value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.SHORT ) ; this . block.pokeShort ( ( ( offset ) + index ) , value , order ) ; return this ; }

Target:
public java.nio.ByteBuffer putShort ( int index , short value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.SHORT ) ; this . block.pokeShort ( ( ( offset ) + index ) , value , order ) ; return this ; }
Source:
public int computeHorizontalScrollRange ( ) { 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 computeHorizontalScrollRange ( ) ; } } ) ; return ret ; } return mAwContents.computeHorizontalScrollRange ( ) ; }

Target:
public boolean requestFocus ( final int direction , final android.graphics.Rect previouslyFocusedRect ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return requestFocus ( direction , previouslyFocusedRect ) ; } } ) ; return ret ; } mAwContents.requestFocus ( ) ; return mWebViewPrivate.super_requestFocus ( direction , previouslyFocusedRect ) ; }
Source:
synchronized long nScriptFieldIDCreate ( long sid , int slot ) { validate ( ) ; return rsnScriptFieldIDCreate ( mContext , sid , slot ) ; }

Target:
synchronized long nScriptKernelIDCreate ( long sid , int slot , int sig , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } return rsnScriptKernelIDCreate ( curCon , sid , slot , sig , mUseInc ) ; }
Source:
public void normalDeletedDiffedFieldValues ( ) { com.android.ahat.heapdump.FieldValue normal = new com.android.ahat.heapdump.FieldValue ( "name" , "type" , com.android.ahat.heapdump.Value.pack ( 1 ) ) ; com.android.ahat.heapdump.DiffedFieldValue x = com.android.ahat.heapdump.DiffedFieldValue.deleted ( normal ) ; org.junit.Assert.assertEquals ( "name" , x.name ) ; org.junit.Assert.assertEquals ( "type" , x.type ) ; org.junit.Assert.assertEquals ( com.android.ahat.heapdump.Value.pack ( 1 ) , x.baseline ) ; org.junit.Assert.assertEquals ( DiffedFieldValue.Status.DELETED , x.status ) ; }

Target:
public void normalDeletedDiffedFieldValues ( ) { com.android.ahat.heapdump.FieldValue normal = new com.android.ahat.heapdump.FieldValue ( "name" , com.android.ahat.DiffFieldsTest.t0 , com.android.ahat.heapdump.Value.pack ( 1 ) ) ; com.android.ahat.heapdump.DiffedFieldValue x = com.android.ahat.heapdump.DiffedFieldValue.deleted ( normal ) ; org.junit.Assert.assertEquals ( "name" , x.name ) ; org.junit.Assert.assertEquals ( com.android.ahat.DiffFieldsTest.t0 , x.type ) ; org.junit.Assert.assertEquals ( com.android.ahat.heapdump.Value.pack ( 1 ) , x.baseline ) ; org.junit.Assert.assertEquals ( DiffedFieldValue.Status.DELETED , x.status ) ; }
Source:
public void onReceivedTouchIconUrl ( java.lang.String url , boolean precomposed ) { org.chromium.content.common.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "onReceivedTouchIconUrl=" + url ) ) ; mWebChromeClient.onReceivedTouchIconUrl ( mWebView , url , precomposed ) ; } org.chromium.content.common.TraceEvent.end ( ) ; }

Target:
public void onReceivedTouchIconUrl ( java.lang.String url , boolean precomposed ) { org.chromium.base.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "onReceivedTouchIconUrl=" + url ) ) ; mWebChromeClient.onReceivedTouchIconUrl ( mWebView , url , precomposed ) ; } org.chromium.base.TraceEvent.end ( ) ; }
Source:
public void getSimIdentityUnknownMccMnc ( ) { android.telephony.TelephonyManager tm = mock ( android.telephony.TelephonyManager.class ) ; when ( tm.getSubscriberId ( ) ) . thenReturn ( "3214560123456789" ) ; when ( tm.getSimState ( ) ) . thenReturn ( TelephonyManager.SIM_STATE_UNKNOWN ) ; when ( tm.getSimOperator ( ) ) . thenReturn ( null ) ; assertEquals ( "13214560123456789@wlan.mnc456.mcc321.3gppnetwork.org" , com.android.server.wifi.util.TelephonyUtil.getSimIdentity ( tm , WifiEnterpriseConfig.Eap.SIM ) ) ; }

Target:
public void getSimIdentity2DigitMnc ( ) { android.telephony.TelephonyManager tm = mock ( android.telephony.TelephonyManager.class ) ; when ( tm.getSubscriberId ( ) ) . thenReturn ( "321560123456789" ) ; when ( tm.getSimState ( ) ) . thenReturn ( TelephonyManager.SIM_STATE_READY ) ; when ( tm.getSimOperator ( ) ) . thenReturn ( "32156" ) ; assertEquals ( "1321560123456789@wlan.mnc056.mcc321.3gppnetwork.org" , com.android.server.wifi.util.TelephonyUtil.getSimIdentity ( tm , com.android.server.wifi.WifiConfigurationTestUtil.createEapNetwork ( WifiEnterpriseConfig.Eap.SIM , WifiEnterpriseConfig.Phase2.NONE ) ) ) ; }
Source:
public void testDisabled ( ) throws org.json.JSONException { android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "reason" , WifiNanNative.NAN_STATUS_DE_FAILURE ) ; com.android.server.wifi.nan.WifiNanHalMock.callDisabled ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mNanStateManager ) . onNanDownNotification ( WifiNanEventCallback.REASON_OTHER ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNanStateManager ) ; }

Target:
public void testDisabled ( ) throws org.json.JSONException { android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "reason" , WifiNanNative.NAN_STATUS_DE_FAILURE ) ; com.android.server.wifi.nan.WifiNanHalMock.callDisabled ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mNanStateManager ) . onNanDownNotification ( WifiNanAttachCallback.REASON_OTHER ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNanStateManager ) ; }
Source:
private static java.lang.String getResourceName ( org.eclipse.core.resources.IResource resourceFile ) { java.lang.String name = resourceFile.getName ( ) ; int baseEnd = ( ( name.length ( ) ) - ( com.android.ide.eclipse.adt.AndroidConstants.EXT_XML.length ( ) ) ) - 1 ; if ( baseEnd > 0 ) { name = name.substring ( 0 , baseEnd ) ; } return name ; }

Target:
private static java.lang.String getResourceName ( org.eclipse.core.resources.IResource resourceFile ) { java.lang.String name = resourceFile.getName ( ) ; int baseEnd = ( ( name.length ( ) ) - ( com.android.ide.eclipse.adt.AdtConstants.EXT_XML.length ( ) ) ) - 1 ; if ( baseEnd > 0 ) { name = name.substring ( 0 , baseEnd ) ; } return name ; }
Source:
public void testCannotSetChunkedStreamingModeAfterFixedLengthStreamingMode ( ) throws java.lang.Exception { server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; connection.setFixedLengthStreamingMode ( 1 ) ; try { connection.setChunkedStreamingMode ( 1 ) ; fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } }

Target:
public void testCannotSetChunkedStreamingModeAfterFixedLengthStreamingMode ( ) throws java.lang.Exception { server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; connection.setFixedLengthStreamingMode ( 1 ) ; try { connection.setChunkedStreamingMode ( 1 ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.IllegalStateException expected ) { } }
Source:
private void checkAndUpdate ( com.android.resources.ResourceType type ) { java.util.List < com.android.resources.ResourceFolderType > folderTypes = com.android.ide.eclipse.adt.internal.resources.manager.FolderTypeRelationship.getRelatedFolders ( type ) ; for ( com.android.resources.ResourceFolderType folderType : folderTypes ) { java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder > folders = mFolderMap.get ( folderType ) ; if ( folders != null ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder folder : folders ) { if ( folder.isTouched ( ) ) { java.util.List < com.android.resources.ResourceType > resTypes = com.android.ide.eclipse.adt.internal.resources.manager.FolderTypeRelationship.getRelatedResourceTypes ( folderType ) ; for ( com.android.resources.ResourceType resType : resTypes ) { update ( resType ) ; } return ; } } } } }

Target:
private void checkAndUpdate ( com.android.resources.ResourceType type ) { java.util.List < com.android.resources.ResourceFolderType > folderTypes = com.android.resources.FolderTypeRelationship.getRelatedFolders ( type ) ; for ( com.android.resources.ResourceFolderType folderType : folderTypes ) { java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder > folders = mFolderMap.get ( folderType ) ; if ( folders != null ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder folder : folders ) { if ( folder.isTouched ( ) ) { java.util.List < com.android.resources.ResourceType > resTypes = com.android.resources.FolderTypeRelationship.getRelatedResourceTypes ( folderType ) ; for ( com.android.resources.ResourceType resType : resTypes ) { update ( resType ) ; } return ; } } } } }
Source:
public boolean isApplicable ( ) { return ( ( ( annotation ) != null ) && ( annotation.source ( ) . isAssignableFrom ( javax.lang.model.type.NullType.class ) ) ) && ( ( ! ( annotation.method ( ) . isEmpty ( ) ) ) || ( paramsFromMethodCommon.containsDefaultParametersProvidingMethod ( testClass ) ) ) ; }

Target:
public boolean isApplicable ( ) { return ( ( ( annotation ) != null ) && ( annotation.source ( ) . isAssignableFrom ( java.lang.Void.class ) ) ) && ( ( ! ( annotation.method ( ) . isEmpty ( ) ) ) || ( paramsFromMethodCommon.containsDefaultParametersProvidingMethod ( testClass ) ) ) ; }
Source:
public com.android.sched.vfs.InputOutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.GenericInputOutputVFS ( new com.android.sched.vfs.CachedDirectFS ( new com.android.sched.util.file.Directory ( string , context.getRunnableHooks ( ) , existence , permissions , change ) , permissions ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e ) ; } }

Target:
public com.android.sched.vfs.InputOutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.GenericInputOutputVFS ( new com.android.sched.vfs.DirectFS ( new com.android.sched.util.file.Directory ( string , context.getRunnableHooks ( ) , existence , permissions , change ) , permissions ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e ) ; } }
Source:
public void test_valueBound ( ) throws java.io.IOException , java.lang.InterruptedException , java.net.UnknownHostException { javax.net.ssl.SSLSocket sock = ( ( javax.net.ssl.SSLSocket ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) . createSocket ( ) ) ) ; javax.net.ssl.SSLSession ss = sock.getSession ( ) ; tests.api.javax.net.ssl.SSLSessionBindingListenerTest.mySSLSessionBindingListener sbl = new tests.api.javax.net.ssl.SSLSessionBindingListenerTest.mySSLSessionBindingListener ( ) ; ss.putValue ( "test" , sbl ) ; assertTrue ( "valueBound was not called." , sbl.boundDone ) ; }

Target:
public void test_valueBound ( ) throws java.io.IOException , java.lang.InterruptedException , java.net.UnknownHostException { javax.net.ssl.SSLSocket sock = ( ( javax.net.ssl.SSLSocket ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) . createSocket ( ) ) ) ; javax.net.ssl.SSLSession ss = sock.getSession ( ) ; org.apache.harmony.tests.javax.net.ssl.SSLSessionBindingListenerTest.mySSLSessionBindingListener sbl = new org.apache.harmony.tests.javax.net.ssl.SSLSessionBindingListenerTest.mySSLSessionBindingListener ( ) ; ss.putValue ( "test" , sbl ) ; assertTrue ( "valueBound was not called." , sbl.boundDone ) ; }
Source:
public void testLocalClass ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { class Local { } java.lang.reflect.Constructor < ? > constructor = Local.class . getDeclaredConstructor ( com.android.jack.java8.parameter.test001.Tests.class ) ; junit.framework.Assert.assertEquals ( 1 , constructor.getParameters ( ) . length ) ; check ( constructor.getParameters ( ) [ 0 ] , "this$0" , true , true , false , ( ( com.android.jack.java8.parameter.test001.Tests.MODIFIER_FINAL ) | ( com.android.jack.java8.parameter.test001.Tests.MODIFIER_IMPLICIT ) ) ) ; }

Target:
public void testLocalClass ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { class Local { } java.lang.reflect.Constructor < ? > constructor = Local.class . getDeclaredConstructor ( com.android.jack.java8.parameter.test001.Tests.class ) ; junit.framework.Assert.assertEquals ( 1 , constructor.getParameters ( ) . length ) ; check ( constructor.getParameters ( ) [ 0 ] , "this$0" , true , true , false , ( ( com.android.jack.java8.parameter.common.ParameterTestModifier.MODIFIER_FINAL ) | ( com.android.jack.java8.parameter.common.ParameterTestModifier.MODIFIER_IMPLICIT ) ) ) ; }
Source:
private void setIssuerUniqueId ( java.lang.Object val ) throws java.security.cert.CertificateException { if ( ( version.compare ( sun.security.x509.CertificateVersion.V2 ) ) < 0 ) { throw new java.security.cert.CertificateException ( "Invalid version" ) ; } if ( ! ( val instanceof sun.security.x509.CertificateIssuerUniqueIdentity ) ) { throw new java.security.cert.CertificateException ( "IssuerUniqueId class type invalid." ) ; } issuerUniqueId = ( ( sun.security.x509.CertificateIssuerUniqueIdentity ) ( val ) ) ; }

Target:
private void setIssuerUniqueId ( java.lang.Object val ) throws java.security.cert.CertificateException { if ( ( version.compare ( sun.security.x509.CertificateVersion.V2 ) ) < 0 ) { throw new java.security.cert.CertificateException ( "Invalid version" ) ; } if ( ! ( val instanceof sun.security.x509.UniqueIdentity ) ) { throw new java.security.cert.CertificateException ( "IssuerUniqueId class type invalid." ) ; } issuerUniqueId = ( ( sun.security.x509.UniqueIdentity ) ( val ) ) ; }
Source:
private void convert0dipToWrapContent ( org.w3c.dom.Element child ) { org.w3c.dom.Attr height = child.getAttributeNodeNS ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_HEIGHT ) ; if ( ( height != null ) && ( height.getValue ( ) . startsWith ( "0" ) ) ) { mRefactoring.removeAttribute ( mRootEdit , height ) ; } org.w3c.dom.Attr width = child.getAttributeNodeNS ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH ) ; if ( ( width != null ) && ( width.getValue ( ) . startsWith ( "0" ) ) ) { mRefactoring.removeAttribute ( mRootEdit , width ) ; } }

Target:
private void convert0dipToWrapContent ( org.w3c.dom.Element child ) { org.w3c.dom.Attr height = child.getAttributeNodeNS ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_HEIGHT ) ; if ( ( height != null ) && ( height.getValue ( ) . startsWith ( "0" ) ) ) { mRefactoring.removeAttribute ( mRootEdit , height ) ; } org.w3c.dom.Attr width = child.getAttributeNodeNS ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH ) ; if ( ( width != null ) && ( width.getValue ( ) . startsWith ( "0" ) ) ) { mRefactoring.removeAttribute ( mRootEdit , width ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { cs = tests.api.java.nio.charset.UTF16BECharsetEncoderTest.CS ; specifiedReplacement = new byte [ ] { - 1 , - 3 } ; unibytes = new byte [ ] { 0 , 32 , 0 , 98 , 0 , 117 , 0 , 102 , 0 , 102 , 0 , 101 , 0 , 114 } ; super . setUp ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { cs = org.apache.harmony.tests.java.nio.charset.UTF16BECharsetEncoderTest.CS ; specifiedReplacement = new byte [ ] { - 1 , - 3 } ; unibytes = new byte [ ] { 0 , 32 , 0 , 98 , 0 , 117 , 0 , 102 , 0 , 102 , 0 , 101 , 0 , 114 } ; super . setUp ( ) ; }