auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void removeServiceByName ( android.content.ComponentName name , int callingUser ) { com.android.server.am.ServiceRecord removed = getServices ( callingUser ) . remove ( name ) ; if ( com.android.server.am.ActivityManagerService.DEBUG_MU ) android.util.Slog.v ( com.android.server.am.ActivityManagerService.TAG , ( ( ( ( ( "removeServiceByName user=" + callingUser ) + " name=" ) + name ) + " removed=" ) + removed ) ) ; }

Target:
public boolean isUserRunning ( int userId , boolean orStopped ) { if ( ( checkCallingPermission ( android.Manifest.permission.INTERACT_ACROSS_USERS ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { java.lang.String msg = ( ( ( ( "Permission Denial: isUserRunning() from pid=" + ( android.os.Binder.getCallingPid ( ) ) ) + ", uid=" ) + ( android.os.Binder.getCallingUid ( ) ) ) + " requires " ) + ( android.Manifest.permission.INTERACT_ACROSS_USERS ) ; android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , msg ) ; throw new java.lang.SecurityException ( msg ) ; } synchronized ( this ) { return isUserRunningLocked ( userId , orStopped ) ; } }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ! ( obj instanceof org.junit.runner.Description ) ) return false ; org.junit.runner.Description d = ( ( org.junit.runner.Description ) ( obj ) ) ; return getDisplayName ( ) . equals ( d.getDisplayName ( ) ) ; }

Target:
public java.lang.Class < ? > getTestClass ( ) { if ( ( fTestClass ) != null ) { return fTestClass ; } java.lang.String name = getClassName ( ) ; if ( name == null ) { return null ; } try { fTestClass = java.lang.Class.forName ( name , false , getClass ( ) . getClassLoader ( ) ) ; return fTestClass ; } catch ( java.lang.ClassNotFoundException e ) { return null ; } }
Source:
public void keepaliveStatus ( int indicationType , android.hardware.radio.V1_1.KeepaliveStatus keepaliveStatus ) { throw new java.lang.UnsupportedOperationException ( "keepaliveStatus Indications are not implemented" ) ; }

Target:
public void keepaliveStatus ( int indicationType , com.android.internal.telephony.V1_1.KeepaliveStatus halStatus ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) { mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_KEEPALIVE_STATUS , ( ( ( "handle=" + ( halStatus.sessionHandle ) ) + " code=" ) + ( halStatus.code ) ) ) ; } com.android.internal.telephony.dataconnection.KeepaliveStatus ks = new com.android.internal.telephony.dataconnection.KeepaliveStatus ( halStatus.sessionHandle , halStatus.code ) ; mRil.mNattKeepaliveStatusRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , ks , null ) ) ; }
Source:
public static com.android.ide.eclipse.gltrace.state.IGLProperty createDefaultES1State ( ) { com.android.ide.eclipse.gltrace.state.GLCompositeProperty glState = new com.android.ide.eclipse.gltrace.state.GLCompositeProperty ( GLStateType.GL_STATE_ES1 , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createFramebufferState ( ) , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createTransformationState ( ) , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createRasterizationState ( ) , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createPixelOperationsState ( ) , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createPixelPackState ( ) , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createTextureState ( ) ) ; return glState ; }

Target:
public static com.android.ide.eclipse.gltrace.state.IGLProperty createDefaultES1State ( ) { com.android.ide.eclipse.gltrace.state.GLCompositeProperty glState = new com.android.ide.eclipse.gltrace.state.GLCompositeProperty ( GLStateType.GL_STATE_ES1 , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createVertexArrayData ( ) , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createFramebufferState ( ) , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createTransformationState ( ) , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createRasterizationState ( ) , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createPixelOperationsState ( ) , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createPixelPackState ( ) , com.android.ide.eclipse.gltrace.state.GLState.sGLState.createTextureState ( ) ) ; return glState ; }
Source:
void assertNotAudioRoute ( final android.telecom.InCallService incallService , final int route ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return new java.lang.Boolean ( true ) ; } @ java.lang.Override public java.lang.Object actual ( ) { final android.telecom.CallAudioState state = incallService.getCallAudioState ( ) ; return route != ( state.getRoute ( ) ) ; } } , android.telecom.cts.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Phone's audio route should not be: " + route ) ) ; }

Target:
void assertNotAudioRoute ( final android.telecom.InCallService incallService , final int route ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return new java.lang.Boolean ( true ) ; } @ java.lang.Override public java.lang.Object actual ( ) { final android.telecom.CallAudioState state = incallService.getCallAudioState ( ) ; return route != ( state.getRoute ( ) ) ; } } , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Phone's audio route should not be: " + route ) ) ; }
Source:
private com.android.sdkmanager.Main runCmdLine ( java.lang.String ... args ) { com.android.sdkmanager.Main main = new com.android.sdkmanager.SdkManagerTest2.ExitMain ( ) ; main.setupForTest ( getSdkManager ( ) , getLog ( ) , new com.android.sdkmanager.SdkManagerTest2.ExitSdkCommandLine ( getLog ( ) ) , args ) ; getLog ( ) . clear ( ) ; main.doAction ( ) ; return main ; }

Target:
private com.android.sdkmanager.Main runCmdLine ( java.lang.String ... args ) throws java.lang.Exception { super . createSdkAvdManagers ( ) ; com.android.sdkmanager.Main main = new com.android.sdkmanager.SdkManagerTest2.ExitMain ( ) ; main.setupForTest ( getSdkManager ( ) , getLog ( ) , new com.android.sdkmanager.SdkManagerTest2.ExitSdkCommandLine ( getLog ( ) ) , args ) ; getLog ( ) . clear ( ) ; main.doAction ( ) ; return main ; }
Source:
public java.lang.String findLibrary ( java.lang.String libraryName ) { java.lang.String fileName = java.lang.System.mapLibraryName ( libraryName ) ; for ( java.io.File directory : nativeLibraryDirectories ) { java.io.File file = new java.io.File ( directory , fileName ) ; if ( ( ( file.exists ( ) ) && ( file.isFile ( ) ) ) && ( file.canRead ( ) ) ) { return file.getPath ( ) ; } } return null ; }

Target:
public java.lang.String findLibrary ( java.lang.String libraryName ) { java.lang.String fileName = java.lang.System.mapLibraryName ( libraryName ) ; for ( java.io.File directory : nativeLibraryDirectories ) { java.lang.String path = new java.io.File ( directory , fileName ) . getPath ( ) ; if ( libcore.io.IoUtils.canOpenReadOnly ( path ) ) { return path ; } } return null ; }
Source:
public java.util.concurrent.ScheduledFuture < ? > scheduleAtFixedRate ( java.lang.Runnable command , long initialDelay , long period , java.util.concurrent.TimeUnit unit ) { return delegate.scheduleAtFixedRate ( command , initialDelay , period , unit ) ; }

Target:
public < V > com.google.common.util.concurrent.ListenableScheduledFuture < V > schedule ( java.util.concurrent.Callable < V > callable , long delay , java.util.concurrent.TimeUnit unit ) { com.google.common.util.concurrent.ListenableFutureTask < V > task = com.google.common.util.concurrent.ListenableFutureTask.create ( callable ) ; java.util.concurrent.ScheduledFuture < ? > scheduled = delegate.schedule ( task , delay , unit ) ; return new com.google.common.util.concurrent.MoreExecutors.ScheduledListeningDecorator.ListenableScheduledTask < V > ( task , scheduled ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JIfStatement x ) { assert ( block ) instanceof com.android.jack.ir.ast.cfg.JConditionalBasicBlock ; addElement ( new com.android.jack.ir.ast.cfg.JConditionalBlockElement ( x.getSourceInfo ( ) , x.getIfExpr ( ) ) ) ; com.android.jack.transformations.booleanoperators.FallThroughMarker marker = x.getMarker ( com.android.jack.transformations.booleanoperators.FallThroughMarker.class ) ; if ( ( marker != null ) && ( ( marker.getFallThrough ( ) ) == ( FallThroughMarker.FallThroughEnum.ELSE ) ) ) { ( ( com.android.jack.ir.ast.cfg.JConditionalBasicBlock ) ( this . block ) ) . setInverted ( true ) ; } return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JIfStatement x ) { assert ( block ) instanceof com.android.jack.ir.ast.cfg.JConditionalBasicBlock ; addElement ( x , new com.android.jack.ir.ast.cfg.JConditionalBlockElement ( x.getSourceInfo ( ) , ExceptionHandlingContext.EMPTY , x.getIfExpr ( ) ) ) ; com.android.jack.transformations.booleanoperators.FallThroughMarker marker = x.getMarker ( com.android.jack.transformations.booleanoperators.FallThroughMarker.class ) ; if ( ( marker != null ) && ( ( marker.getFallThrough ( ) ) == ( FallThroughMarker.FallThroughEnum.ELSE ) ) ) { ( ( com.android.jack.ir.ast.cfg.JConditionalBasicBlock ) ( this . block ) ) . setInverted ( true ) ; } return false ; }
Source:
public void testSendCallEventNull ( ) throws java.lang.Exception { com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mInCallServiceFixtureX.mInCallAdapter.sendCallEvent ( ids.mCallId , com.android.server.telecom.tests.BasicCallTests.TEST_EVENT , null ) ; org.mockito.Mockito.verify ( mConnectionServiceFixtureA.getTestDouble ( ) , org.mockito.Mockito.timeout ( com.android.server.telecom.tests.TEST_TIMEOUT ) ) . sendCallEvent ( ids.mCallId , com.android.server.telecom.tests.BasicCallTests.TEST_EVENT , null ) ; }

Target:
public void testSendCallEventNull ( ) throws java.lang.Exception { com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mInCallServiceFixtureX.mInCallAdapter.sendCallEvent ( ids.mCallId , com.android.server.telecom.tests.BasicCallTests.TEST_EVENT , null ) ; org.mockito.Mockito.verify ( mConnectionServiceFixtureA.getTestDouble ( ) , org.mockito.Mockito.timeout ( com.android.server.telecom.tests.TEST_TIMEOUT ) ) . sendCallEvent ( ids.mConnectionId , com.android.server.telecom.tests.BasicCallTests.TEST_EVENT , null ) ; }
Source:
public void callSessionRttModifyResponseReceived ( int status ) { com.android.ims.ImsCall.Listener listener ; logi ( "callSessionRttModifyResponseReceived" ) ; synchronized ( this ) { listener = mListener ; } if ( listener != null ) { try { listener.onRttModifyResponseReceived ( this , status ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionRttModifyResponseReceived:: " , t ) ; } } }

Target:
public void callSessionRttModifyResponseReceived ( int status ) { com.android.ims.ImsCall.Listener listener ; logi ( ( "callSessionRttModifyResponseReceived: " + status ) ) ; synchronized ( this ) { listener = mListener ; } if ( listener != null ) { try { listener.onRttModifyResponseReceived ( this , status ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionRttModifyResponseReceived:: " , t ) ; } } }
Source:
protected void onFinishInflate ( ) { super . onFinishInflate ( ) ; final android.widget.TextView nameView = ( ( android.widget.TextView ) ( findViewById ( R.id.contact_tile_name ) ) ) ; nameView.setElegantTextHeight ( false ) ; final android.widget.TextView phoneTypeView = ( ( android.widget.TextView ) ( findViewById ( R.id.contact_tile_phone_type ) ) ) ; phoneTypeView.setElegantTextHeight ( false ) ; secondaryButton = ( ( android.widget.ImageButton ) ( findViewById ( R.id.contact_tile_secondary_button ) ) ) ; }

Target:
protected void onFinishInflate ( ) { super . onFinishInflate ( ) ; com.android.dialer.widget.BidiTextView nameView = findViewById ( R.id.contact_tile_name ) ; nameView.setElegantTextHeight ( false ) ; android.widget.TextView phoneTypeView = findViewById ( R.id.contact_tile_phone_type ) ; phoneTypeView.setElegantTextHeight ( false ) ; secondaryButton = findViewById ( R.id.contact_tile_secondary_button ) ; }
Source:
public void testNamespaceAttributes ( ) throws java.lang.Exception { org.w3c.dom.Document document = com.android.builder.resources.NoteUtilsTest.createDocument ( ) ; org.w3c.dom.Node node1 = document.createElement ( "N1" ) ; org.w3c.dom.Node node2 = document.createElement ( "N2" ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , node1 , "http://some.uri/" , "foo" , "bar" ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , node2 , "http://some.uri/" , "foo" , "bar" ) ; assertTrue ( com.android.builder.resources.NodeUtils.compareAttributes ( node1.getAttributes ( ) , node2.getAttributes ( ) ) ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , node1 , "http://some.uri/" , "foo2" , "bar2" ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , node2 , "http://some.other.uri/" , "foo2" , "bar2" ) ; assertFalse ( com.android.builder.resources.NodeUtils.compareAttributes ( node1.getAttributes ( ) , node2.getAttributes ( ) ) ) ; }

Target:
public void testNamespaceAttributes ( ) throws java.lang.Exception { org.w3c.dom.Document document = com.android.builder.resources.NodeUtilsTest.createDocument ( ) ; org.w3c.dom.Node node1 = document.createElement ( "N1" ) ; org.w3c.dom.Node node2 = document.createElement ( "N2" ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , node1 , "http://some.uri/" , "foo" , "bar" ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , node2 , "http://some.uri/" , "foo" , "bar" ) ; assertTrue ( com.android.builder.resources.NodeUtils.compareAttributes ( node1.getAttributes ( ) , node2.getAttributes ( ) ) ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , node1 , "http://some.uri/" , "foo2" , "bar2" ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , node2 , "http://some.other.uri/" , "foo2" , "bar2" ) ; assertFalse ( com.android.builder.resources.NodeUtils.compareAttributes ( node1.getAttributes ( ) , node2.getAttributes ( ) ) ) ; }
Source:
private void addService ( java.lang.String action , android.content.ComponentName name , android.os.IInterface service ) { mComponentNamesByAction.put ( action , name ) ; mServiceByComponentName.put ( name , service ) ; mComponentNameByService.put ( service , name ) ; }

Target:
public void addService ( java.lang.String action , android.content.ComponentName name , java.lang.String packageName , android.os.IInterface service , android.content.pm.ServiceInfo serviceInfo ) { mComponentNamesByAction.put ( action , name ) ; mServiceInfoByComponentName.put ( name , serviceInfo ) ; mServiceByPackageName.put ( packageName , service ) ; mComponentNameByService.put ( service , name ) ; }
Source:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; doLog ( lr , bundleName ) ; }

Target:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.util.function.Supplier < java.lang.String > msgSupplier ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msgSupplier.get ( ) ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; doLog ( lr ) ; }
Source:
public void removeReferences ( ) { this . mRuimPhoneBookInterfaceManager = null ; this . mRuimSmsInterfaceManager = null ; this . mSMS = null ; this . mSubInfo = null ; this . mRuimRecords = null ; this . mIccFileHandler = null ; this . mRuimCard = null ; this . mDataConnection = null ; this . mCT = null ; this . mSST = null ; this . mEriManager = null ; this . mCcatService = null ; }

Target:
public void removeReferences ( ) { this . mRuimPhoneBookInterfaceManager = null ; this . mRuimSmsInterfaceManager = null ; this . mSMS = null ; this . mSubInfo = null ; this . mRuimRecords = null ; this . mIccFileHandler = null ; this . mRuimCard = null ; this . mDataConnection = null ; this . mCT = null ; this . mSST = null ; this . mEriManager = null ; this . mCcatService = null ; this . mExitEcmRunnable = null ; }
Source:
private void updateLocation ( java.lang.String testProviderName , java.lang.String locationProviderName , double latitude , double longitude ) { android.location.Location location = new android.location.Location ( locationProviderName ) ; location.setLatitude ( latitude ) ; location.setLongitude ( longitude ) ; location.setAccuracy ( 1.0F ) ; location.setTime ( java.lang.System.currentTimeMillis ( ) ) ; location.setElapsedRealtimeNanos ( android.os.SystemClock.elapsedRealtimeNanos ( ) ) ; mManager.setTestProviderLocation ( testProviderName , location ) ; }

Target:
private void updateLocation ( final java.lang.String providerName , final double latitude , final double longitude ) { android.location.Location location = new android.location.Location ( providerName ) ; location.setLatitude ( latitude ) ; location.setLongitude ( longitude ) ; location.setAccuracy ( 1.0F ) ; location.setTime ( java.lang.System.currentTimeMillis ( ) ) ; location.setElapsedRealtimeNanos ( android.os.SystemClock.elapsedRealtimeNanos ( ) ) ; mManager.setTestProviderLocation ( providerName , location ) ; }
Source:
public boolean isBusiness ( ) { return ( phoneLookupInfo.hasPeopleApiInfo ( ) ) && ( ( phoneLookupInfo.getPeopleApiInfo ( ) . getInfoType ( ) ) == ( com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo.InfoType.NEARBY_BUSINESS ) ) ; }

Target:
public java.lang.String getNumberLabel ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getLabel ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getLabel ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PHONE_NUMBER_CACHE : return phoneLookupInfo.getMigratedInfo ( ) . getLabel ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public java.util.List < android.view.inputmethod.InputMethodSubtype > getEnabledInputMethodSubtypeList ( android.view.inputmethod.InputMethodInfo imi , boolean allowsImplicitlySelectedSubtypes ) { try { return mService.getEnabledInputMethodSubtypeList ( ( imi == null ? null : imi.getId ( ) ) , allowsImplicitlySelectedSubtypes ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public java.util.List < android.view.inputmethod.InputMethodSubtype > getEnabledInputMethodSubtypeList ( android.view.inputmethod.InputMethodInfo imi , boolean allowsImplicitlySelectedSubtypes ) { try { return mService.getEnabledInputMethodSubtypeList ( ( imi == null ? null : imi.getId ( ) ) , allowsImplicitlySelectedSubtypes ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void gattServerCharacteristicSetValue ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "index" ) java.lang.Integer index , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "value" ) byte [ ] value ) throws java.lang.Exception { if ( ( mCharacteristicList.get ( index ) ) != null ) { mCharacteristicList.get ( index ) . setValue ( value ) ; } else { throw new java.lang.Exception ( ( "Invalid index input:" + index ) ) ; } }

Target:
public boolean gattServerCharacteristicSetStringValue ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "index" ) java.lang.Integer index , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "value" ) java.lang.String value ) throws java.lang.Exception { if ( ( mCharacteristicList.get ( index ) ) != null ) { return mCharacteristicList.get ( index ) . setValue ( value ) ; } else { throw new java.lang.Exception ( ( "Invalid index input:" + index ) ) ; } }
Source:
private android.net.NetworkStatsHistory internalGetHistoryForNetwork ( android.net.NetworkTemplate template , int fields , @ com.android.server.net.NetworkStatsAccess.Level int accessLevel ) { return mXtStatsCached.getHistory ( template , android.net.NetworkStats.UID_ALL , android.net.NetworkStats.SET_ALL , android.net.NetworkStats.TAG_NONE , fields , accessLevel ) ; }

Target:
private android.net.NetworkStatsHistory internalGetHistoryForNetwork ( android.net.NetworkTemplate template , int flags , int fields , @ com.android.server.net.NetworkStatsAccess.Level int accessLevel , int callingUid ) { final android.telephony.SubscriptionPlan augmentPlan = resolveSubscriptionPlan ( template , flags ) ; synchronized ( mStatsLock ) { return mXtStatsCached.getHistory ( template , augmentPlan , android.net.NetworkStats.UID_ALL , android.net.NetworkStats.SET_ALL , android.net.NetworkStats.TAG_NONE , fields , java.lang.Long.MIN_VALUE , java.lang.Long.MAX_VALUE , accessLevel , callingUid ) ; } }
Source:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
native void rsnAllocationData2D ( long con , long id , int xoff , int yoff , int mip , int face , android.graphics.Bitmap b ) ;
Source:
private void checkSockName ( java.io.FileDescriptor fd , boolean isAbstract , java.net.InetAddress address ) throws java.lang.Exception { java.net.InetSocketAddress isa = ( ( java.net.InetSocketAddress ) ( Libcore.os.getsockname ( fd ) ) ) ; if ( isAbstract ) { checkNoName ( isa ) ; } else { assertEquals ( address , isa.getAddress ( ) ) ; } }

Target:
private static void checkSockName ( java.io.FileDescriptor fd , boolean isAbstract , android.system.UnixSocketAddress address ) throws java.lang.Exception { android.system.UnixSocketAddress isa = ( ( android.system.UnixSocketAddress ) ( Libcore.os.getsockname ( fd ) ) ) ; assertEquals ( address , isa ) ; if ( isAbstract ) { assertEquals ( 0 , isa.getSunPath ( ) [ 0 ] ) ; } }
Source:
private static javax.net.ssl.TrustManagerFactory [ ] createTMFac ( ) throws java.lang.Exception { return new javax.net.ssl.TrustManagerFactory [ ] { javax.net.ssl.TrustManagerFactory.getInstance ( tests.api.javax.net.ssl.TrustManagerFactory1Test.getDefaultAlgorithm ( ) ) , javax.net.ssl.TrustManagerFactory.getInstance ( tests.api.javax.net.ssl.TrustManagerFactory1Test.getDefaultAlgorithm ( ) , tests.api.javax.net.ssl.TrustManagerFactory1Test.getDefaultProvider ( ) ) , javax.net.ssl.TrustManagerFactory.getInstance ( tests.api.javax.net.ssl.TrustManagerFactory1Test.getDefaultAlgorithm ( ) , tests.api.javax.net.ssl.TrustManagerFactory1Test.getDefaultProviderName ( ) ) } ; }

Target:
private static javax.net.ssl.TrustManagerFactory [ ] createTMFac ( ) throws java.lang.Exception { return new javax.net.ssl.TrustManagerFactory [ ] { javax.net.ssl.TrustManagerFactory.getInstance ( org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.getDefaultAlgorithm ( ) ) , javax.net.ssl.TrustManagerFactory.getInstance ( org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.getDefaultAlgorithm ( ) , org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.getDefaultProvider ( ) ) , javax.net.ssl.TrustManagerFactory.getInstance ( org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.getDefaultAlgorithm ( ) , org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.getDefaultProviderName ( ) ) } ; }
Source:
private void sendIntentToReceiver ( final java.lang.String intentName , final java.lang.String extraName , final java.lang.String extraValue ) { android.content.Intent intent = new android.content.Intent ( intentName ) ; intent.setClassName ( BluetoothPbapService.THIS_PACKAGE_NAME , com.android.bluetooth.pbap.BluetoothPbapReceiver.class . getName ( ) ) ; if ( extraName != null ) { intent.putExtra ( extraName , extraValue ) ; } sendBroadcast ( intent ) ; }

Target:
private void sendIntentToReceiver ( final java.lang.String intentName , final java.lang.String extraName , final java.lang.String extraValue ) { android.content.Intent intent = new android.content.Intent ( intentName ) ; intent.setPackage ( BluetoothPbapService.THIS_PACKAGE_NAME ) ; if ( extraName != null ) { intent.putExtra ( extraName , extraValue ) ; } sendBroadcast ( intent ) ; }
Source:
public void onRawContactInsert ( android.database.sqlite.SQLiteDatabase db , long rawContactId ) { mSelectionArgs1 [ 0 ] = java.lang.String.valueOf ( rawContactId ) ; computeAggregateData ( db , mRawContactsQueryByRawContactId , mSelectionArgs1 , mContactInsert ) ; long contactId = mContactInsert.executeInsert ( ) ; setContactId ( rawContactId , contactId ) ; mDbHelper.updateContactVisible ( contactId ) ; }

Target:
public long insertContact ( android.database.sqlite.SQLiteDatabase db , long rawContactId ) { mSelectionArgs1 [ 0 ] = java.lang.String.valueOf ( rawContactId ) ; computeAggregateData ( db , mRawContactsQueryByRawContactId , mSelectionArgs1 , mContactInsert ) ; return mContactInsert.executeInsert ( ) ; }
Source:
private void writeReturn ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , int stackIdx ) throws java.io.IOException { sourceInfoWriter.writeDebugBegin ( currentClass , currentLine ) ; writer.writeCatchBlockIds ( currentCatchList ) ; writer.writeKeyword ( Token.RETURN_STATEMENT ) ; writer.writeOpen ( ) ; if ( stackIdx == 0 ) { writer.writeNull ( ) ; } else { writeStackAccess ( frame , stackIdx ) ; } sourceInfoWriter.writeDebugEnd ( currentClass , ( ( currentLine ) + 1 ) ) ; writer.writeClose ( ) ; }

Target:
private void writeGoto ( int insIndex ) throws java.io.IOException { sourceInfoWriter.writeDebugBegin ( currentClass , currentLine ) ; writer.writeCatchBlockIds ( currentCatchList ) ; writer.writeKeyword ( Token.GOTO ) ; writer.writeOpen ( ) ; writer.writeId ( java.lang.Integer.toString ( insIndex ) ) ; sourceInfoWriter.writeDebugEnd ( currentClass , ( ( currentLine ) + 1 ) ) ; writer.writeClose ( ) ; }
Source:
public void testE3 ( ) { dot.junit.opcodes.aput_boolean.d.T_aput_boolean_1 t = new dot.junit.opcodes.aput_boolean.d.T_aput_boolean_1 ( ) ; boolean [ ] arr = new boolean [ 2 ] ; try { t.run ( arr , ( - 1 ) , true ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE3 ( ) { loadAndRun ( "dot.junit.opcodes.aput_boolean.d.T_aput_boolean_1" , java.lang.ArrayIndexOutOfBoundsException.class , new boolean [ 2 ] , ( - 1 ) , true ) ; }
Source:
private float dist ( android.graphics.PointF p0 , android.graphics.PointF p1 ) { return ( ( float ) ( java.lang.Math.sqrt ( ( ( ( ( p1.x ) - ( p0.x ) ) * ( ( p1.x ) - ( p0.x ) ) ) + ( ( ( p1.y ) - ( p0.y ) ) * ( ( p1.y ) - ( p0.y ) ) ) ) ) ) ) ; }

Target:
private float dist ( android.graphics.PointF p0 , android.graphics.PointF p1 ) { return ( ( float ) ( java.lang.Math.hypot ( ( ( p1.x ) - ( p0.x ) ) , ( ( p1.y ) - ( p0.y ) ) ) ) ) ; }
Source:
private static java.lang.String formatAliasName ( java.lang.String type , long uid ) { return ( type + ( com.android.server.wifi.hotspot2.PasspointProvider.ALIAS_PREFIX ) ) + uid ; }

Target:
private void buildEnterpriseConfigForSimCredential ( android.net.wifi.WifiEnterpriseConfig config , android.net.wifi.hotspot2.pps.Credential.SimCredential credential ) { int eapMethod = WifiEnterpriseConfig.Eap.NONE ; switch ( credential.eapType ) { case android.net.wifi.EAPConstants.EAP_SIM : eapMethod = WifiEnterpriseConfig.Eap.SIM ; break ; case android.net.wifi.EAPConstants.EAP_AKA : eapMethod = WifiEnterpriseConfig.Eap.AKA ; break ; case android.net.wifi.EAPConstants.EAP_AKA_PRIME : eapMethod = WifiEnterpriseConfig.Eap.AKA_PRIME ; break ; default : android.util.Log.wtf ( com.android.server.wifi.hotspot2.PasspointProvider.TAG , ( "Unsupported EAP Method: " + ( credential.eapType ) ) ) ; break ; } config.setEapMethod ( eapMethod ) ; config.setPlmn ( credential.imsi ) ; }
Source:
private synchronized java.util.List < java.lang.String > generatePackageDexopts ( android.content.pm.PackageParser.Package pkg , int compilationReason ) { com.android.server.pm.OtaDexoptService.RecordingInstallerConnection collectingConnection = new com.android.server.pm.OtaDexoptService.RecordingInstallerConnection ( ) ; com.android.server.pm.Installer collectingInstaller = new com.android.server.pm.Installer ( mContext , collectingConnection ) ; com.android.server.pm.PackageDexOptimizer optimizer = new com.android.server.pm.OtaDexoptService.OTADexoptPackageDexOptimizer ( collectingInstaller , mPackageManagerService.mInstallLock , mContext ) ; optimizer.performDexOpt ( pkg , pkg.usesLibraryFiles , null , false , com.android.server.pm.PackageManagerServiceCompilerMapping.getCompilerFilterForReason ( compilationReason ) , null ) ; return collectingConnection.commands ; }

Target:
private synchronized java.util.List < java.lang.String > generatePackageDexopts ( android.content.pm.PackageParser.Package pkg , int compilationReason ) { com.android.server.pm.OtaDexoptService.RecordingInstallerConnection collectingConnection = new com.android.server.pm.OtaDexoptService.RecordingInstallerConnection ( ) ; com.android.server.pm.Installer collectingInstaller = new com.android.server.pm.Installer ( mContext , collectingConnection ) ; com.android.server.pm.PackageDexOptimizer optimizer = new com.android.server.pm.OtaDexoptService.OTADexoptPackageDexOptimizer ( collectingInstaller , mPackageManagerService.mInstallLock , mContext ) ; java.lang.String [ ] libraryDependencies = pkg.usesLibraryFiles ; if ( pkg.isSystemApp ( ) ) { libraryDependencies = com.android.server.pm.OtaDexoptService.NO_LIBRARIES ; } optimizer.performDexOpt ( pkg , libraryDependencies , null , false , com.android.server.pm.PackageManagerServiceCompilerMapping.getCompilerFilterForReason ( compilationReason ) , null ) ; return collectingConnection.commands ; }
Source:
public void testKeyStore_GetKey_Certificate_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertNull ( "Certificate entries should return null" , mKeyStore.getKey ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 , null ) ) ; }

Target:
public void testKeyStore_GetCertificateAlias_NonExist_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_RSA_CA_1 , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; java.security.cert.CertificateFactory f = java.security.cert.CertificateFactory.getInstance ( "X.509" ) ; java.security.cert.Certificate userCert = f.generateCertificate ( new java.io.ByteArrayInputStream ( android.security.AndroidKeyStoreTest.FAKE_RSA_USER_1 ) ) ; assertNull ( "Stored certificate alias should be found" , mKeyStore.getCertificateAlias ( userCert ) ) ; }
Source:
final void moveToFront ( ) { if ( isAttached ( ) ) { if ( isOnHomeDisplay ( ) ) { mStackSupervisor.moveHomeStack ( isHomeStack ( ) ) ; } mStacks.remove ( this ) ; mStacks.add ( this ) ; } }

Target:
final void moveToFront ( java.lang.String reason ) { if ( isAttached ( ) ) { if ( isOnHomeDisplay ( ) ) { mStackSupervisor.moveHomeStack ( isHomeStack ( ) , reason ) ; } mStacks.remove ( this ) ; mStacks.add ( this ) ; final com.android.server.am.TaskRecord task = topTask ( ) ; if ( task != null ) { mWindowManager.moveTaskToTop ( task.taskId ) ; } } }
Source:
public void testIsEmergencyNumberWithFormatting_US ( ) { assertTrue ( shortInfo.isEmergencyNumber ( "9-1-1" , RegionCode.US ) ) ; assertTrue ( shortInfo.isEmergencyNumber ( "*911" , RegionCode.US ) ) ; assertTrue ( shortInfo.isEmergencyNumber ( "1-1-2" , RegionCode.US ) ) ; assertTrue ( shortInfo.isEmergencyNumber ( "*112" , RegionCode.US ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( "9-9-9" , RegionCode.US ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( "*999" , RegionCode.US ) ) ; }

Target:
public void testIsEmergencyNumberWithPlusSign_US ( ) { assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "+911" , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "＋911" , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( " +911" , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "+112" , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "+999" , RegionCode.US ) ) ; }
Source:
public void forceRemoveScheduledRecording ( com.android.tv.dvr.ScheduledRecording ... schedules ) { android.util.Log.i ( com.android.tv.dvr.DvrManager.TAG , ( "Force removing " + ( java.util.Arrays.asList ( schedules ) ) ) ) ; if ( ! ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) ) { return ; } for ( com.android.tv.dvr.ScheduledRecording r : schedules ) { if ( ( r.getState ( ) ) == ( ScheduledRecording.STATE_RECORDING_IN_PROGRESS ) ) { stopRecording ( r ) ; } else { mDataManager.removeScheduledRecording ( true , r ) ; } } }

Target:
public void removeScheduledRecording ( com.android.tv.dvr.data.ScheduledRecording ... schedules ) { android.util.Log.i ( com.android.tv.dvr.DvrManager.TAG , ( "Removing " + ( java.util.Arrays.asList ( schedules ) ) ) ) ; if ( ! ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) ) { return ; } for ( com.android.tv.dvr.data.ScheduledRecording r : schedules ) { if ( ( r.getState ( ) ) == ( com.android.tv.dvr.data.ScheduledRecording.STATE_RECORDING_IN_PROGRESS ) ) { stopRecording ( r ) ; } else { mDataManager.removeScheduledRecording ( r ) ; } } }
Source:
public void testIsEmpty ( ) throws java.lang.Exception { assertTrue ( mKeyStore.isEmpty ( ) ) ; mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ; assertTrue ( mKeyStore.isEmpty ( ) ) ; mKeyStore.put ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_KEYVALUE , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ; assertFalse ( mKeyStore.isEmpty ( ) ) ; mKeyStore.reset ( ) ; assertTrue ( mKeyStore.isEmpty ( ) ) ; }

Target:
public void testIsEmpty ( ) throws java.lang.Exception { assertTrue ( mKeyStore.isEmpty ( ) ) ; mKeyStore.onUserPasswordChanged ( android.security.KeyStoreTest.TEST_PASSWD ) ; assertTrue ( mKeyStore.isEmpty ( ) ) ; mKeyStore.put ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_KEYVALUE , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ; assertFalse ( mKeyStore.isEmpty ( ) ) ; mKeyStore.reset ( ) ; assertTrue ( mKeyStore.isEmpty ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; tempDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "tempDir" ) ; testInstallDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "testInstall" ) ; installer = new libcore.tzdata.update2.TzDataBundleInstaller ( "TzDataBundleInstallerTest" , testInstallDir ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( testSystemTzDataDir.exists ( ) ) { libcore.tzdata.update2.FileUtils.deleteRecursive ( testInstallDir ) ; } if ( testInstallDir.exists ( ) ) { libcore.tzdata.update2.FileUtils.deleteRecursive ( testInstallDir ) ; } if ( tempDir.exists ( ) ) { libcore.tzdata.update2.FileUtils.deleteRecursive ( tempDir ) ; } super . tearDown ( ) ; }
Source:
public java.lang.String nextType ( ) { int startIndex = index ; index = descriptor.indexOf ( ClassConstants.EXTERNAL_METHOD_ARGUMENTS_SEPARATOR , startIndex ) ; if ( ( index ) < 0 ) { index = descriptor.indexOf ( ClassConstants.EXTERNAL_METHOD_ARGUMENTS_CLOSE , startIndex ) ; if ( ( index ) < 0 ) { throw new java.lang.IllegalArgumentException ( ( ( "Missing closing parenthesis in descriptor [" + ( descriptor ) ) + "]" ) ) ; } } return descriptor.substring ( startIndex , ( ( index ) ++ ) ) . trim ( ) ; }

Target:
public java.lang.String nextType ( ) { int startIndex = index ; index = descriptor.indexOf ( JavaConstants.METHOD_ARGUMENTS_SEPARATOR , startIndex ) ; if ( ( index ) < 0 ) { index = descriptor.indexOf ( JavaConstants.METHOD_ARGUMENTS_CLOSE , startIndex ) ; if ( ( index ) < 0 ) { throw new java.lang.IllegalArgumentException ( ( ( "Missing closing parenthesis in descriptor [" + ( descriptor ) ) + "]" ) ) ; } } return descriptor.substring ( startIndex , ( ( index ) ++ ) ) . trim ( ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { assert ( cfg.getMarker ( com.android.jack.transformations.ssa.SsaBasicBlockSplitterMarker.class ) ) == null ; removeExceptionHandlingContext ( cfg ) ; edgeSplit ( cfg ) ; cfg.addMarker ( SsaBasicBlockSplitterMarker.INSTANCE ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodBodyCfg body ) { assert ( body.getCfg ( ) . getMarker ( com.android.jack.transformations.ssa.SsaBasicBlockSplitterMarker.class ) ) == null ; removeExceptionHandlingContext ( body.getCfg ( ) ) ; edgeSplit ( body.getCfg ( ) ) ; body.getCfg ( ) . addMarker ( SsaBasicBlockSplitterMarker.INSTANCE ) ; }
Source:
public void onStop ( ) { super . onStop ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( ( "onStop - mIsResponseSent[" + ( mIsResponseSent ) ) + "]" ) ) ; if ( mIsResponseSent ) { cancelTimeOut ( ) ; finish ( ) ; } else { appService.getStkContext ( mSlotId ) . setPendingActivityInstance ( this ) ; } }

Target:
public void onStop ( ) { super . onStop ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( ( "onStop - mIsResponseSent[" + ( mIsResponseSent ) ) + "]" ) ) ; if ( ( mIsResponseSent ) && ( appService.isTopOfStack ( ) ) ) { cancelTimeOut ( ) ; finish ( ) ; } else { appService.getStkContext ( mSlotId ) . setPendingActivityInstance ( this ) ; } }
Source:
private void maybeShowNotSpamDialog ( final java.lang.String number , final com.android.dialer.logging.ContactLookupResult.Type contactLookupResultType ) { if ( com.android.dialer.spam.SpamComponent.get ( this ) . spam ( ) . isDialogEnabledForSpamNotification ( ) ) { BlockReportSpamDialogs.ReportNotSpamDialogFragment.newInstance ( com.android.incallui.spam.SpamNotificationActivity.getFormattedNumber ( number , this ) , new com.android.dialer.blockreportspam.BlockReportSpamDialogs.OnConfirmListener ( ) { @ java.lang.Override public void onClick ( ) { reportNotSpamAndFinish ( number , contactLookupResultType ) ; } } , dismissListener ) . show ( getFragmentManager ( ) , BlockReportSpamDialogs.NOT_SPAM_DIALOG_TAG ) ; } else { reportNotSpamAndFinish ( number , contactLookupResultType ) ; } }

Target:
private void maybeShowNotSpamDialog ( final java.lang.String number , final com.android.dialer.logging.ContactLookupResult.Type contactLookupResultType ) { if ( com.android.dialer.spam.SpamComponent.get ( this ) . spam ( ) . isDialogEnabledForSpamNotification ( ) ) { com.android.dialer.blockreportspam.BlockReportSpamDialogs.DialogFragmentForReportingNotSpam.newInstance ( com.android.incallui.spam.SpamNotificationActivity.getFormattedNumber ( number , this ) , new com.android.dialer.blockreportspam.BlockReportSpamDialogs.OnConfirmListener ( ) { @ java.lang.Override public void onClick ( ) { reportNotSpamAndFinish ( number , contactLookupResultType ) ; } } , dismissListener ) . show ( getFragmentManager ( ) , BlockReportSpamDialogs.NOT_SPAM_DIALOG_TAG ) ; } else { reportNotSpamAndFinish ( number , contactLookupResultType ) ; } }
Source:
public void loadLayoutParamsAttributes ( com.android.ide.eclipse.adt.internal.resources.ViewClassInfo.LayoutParamsInfo info ) { if ( ( getDocument ( ) ) != null ) { java.lang.String xmlName = java.lang.String.format ( "%1$s_%2$s" , info.getViewLayoutClass ( ) . getShortClassName ( ) , info.getShortClassName ( ) ) ; xmlName = xmlName.replaceFirst ( "Params$" , "" ) ; com.android.ide.eclipse.adt.internal.resources.DeclareStyleableInfo style = mStyleMap.get ( xmlName ) ; if ( style != null ) { info.setAttributes ( style.getAttributes ( ) ) ; } } }

Target:
public void loadLayoutParamsAttributes ( com.android.ide.common.resources.platform.ViewClassInfo.LayoutParamsInfo info ) { if ( ( getDocument ( ) ) != null ) { java.lang.String xmlName = java.lang.String.format ( "%1$s_%2$s" , info.getViewLayoutClass ( ) . getShortClassName ( ) , info.getShortClassName ( ) ) ; xmlName = xmlName.replaceFirst ( "Params$" , "" ) ; com.android.ide.common.resources.platform.DeclareStyleableInfo style = mStyleMap.get ( xmlName ) ; if ( style != null ) { info.setAttributes ( style.getAttributes ( ) ) ; } } }
Source:
void addAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotation ) throws java.lang.UnsupportedOperationException { com.android.jack.ir.ast.JAnnotation type = annotation.getType ( ) ; java.util.ArrayList < com.android.jack.ir.ast.JAnnotationLiteral > annotationLiterals = annotations.get ( type ) ; if ( annotationLiterals == null ) { annotationLiterals = new java.util.ArrayList < com.android.jack.ir.ast.JAnnotationLiteral > ( 1 ) ; annotations.put ( type , annotationLiterals ) ; } annotationLiterals.add ( annotation ) ; }

Target:
void addAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotation ) throws java.lang.UnsupportedOperationException { com.android.jack.ir.ast.JAnnotationType type = annotation.getType ( ) ; java.util.ArrayList < com.android.jack.ir.ast.JAnnotationLiteral > annotationLiterals = annotations.get ( type ) ; if ( annotationLiterals == null ) { annotationLiterals = new java.util.ArrayList < com.android.jack.ir.ast.JAnnotationLiteral > ( 1 ) ; annotations.put ( type , annotationLiterals ) ; } annotationLiterals.add ( annotation ) ; }
Source:
public void callOnSelected ( com.android.ide.eclipse.adt.editors.layout.gscripts.IGraphics gc , com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy selectedNode , java.lang.String displayName , boolean isMultipleSelection ) { com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule = loadRule ( selectedNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onSelected ( gc , selectedNode , displayName , isMultipleSelection ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onSelected() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }

Target:
public void callOnSelected ( com.android.ide.common.api.IGraphics gc , com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy selectedNode , java.lang.String displayName , boolean isMultipleSelection ) { com.android.ide.common.api.IViewRule rule = loadRule ( selectedNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onSelected ( gc , selectedNode , displayName , isMultipleSelection ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onSelected() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }
Source:
protected java.security.AlgorithmParameters engineGetParameters ( ) { return null ; }

Target:
protected java.security.AlgorithmParameters engineGetParameters ( ) { if ( ( ( iv ) != null ) && ( ( iv.length ) > 0 ) ) { try { java.security.AlgorithmParameters params = java.security.AlgorithmParameters.getInstance ( getBaseCipherName ( ) ) ; params.init ( iv ) ; return params ; } catch ( java.security.NoSuchAlgorithmException e ) { return null ; } catch ( java.io.IOException e ) { return null ; } } return null ; }
Source:
public void uncaughtException ( java.lang.Thread t , java.lang.Throwable e ) { com.google.common.util.concurrent.UncaughtExceptionHandlers.Exiter.logger.log ( java.util.logging.Level.SEVERE , java.lang.String.format ( "Caught an exception in %s. Shutting down." , t ) , e ) ; runtime.exit ( 1 ) ; }

Target:
public void uncaughtException ( java.lang.Thread t , java.lang.Throwable e ) { try { com.google.common.util.concurrent.UncaughtExceptionHandlers.Exiter.logger.log ( java.util.logging.Level.SEVERE , java.lang.String.format ( "Caught an exception in %s. Shutting down." , t ) , e ) ; } catch ( java.lang.Throwable errorInLogging ) { java.lang.System.err.println ( e.getMessage ( ) ) ; java.lang.System.err.println ( errorInLogging.getMessage ( ) ) ; } finally { runtime.exit ( 1 ) ; } }
Source:
public synchronized int getAudioState ( ) { com.android.internal.util.IState state = getCurrentState ( ) ; if ( state == ( mAudioConnecting ) ) { return android.bluetooth.BluetoothHeadset.STATE_AUDIO_CONNECTING ; } else if ( ( state == ( mAudioDisconnecting ) ) || ( state == ( mAudioOn ) ) ) { return android.bluetooth.BluetoothHeadset.STATE_AUDIO_CONNECTED ; } else { return android.bluetooth.BluetoothHeadset.STATE_AUDIO_DISCONNECTED ; } }

Target:
int getAudioStateInt ( ) { return android.bluetooth.BluetoothHeadset.STATE_AUDIO_CONNECTED ; }
Source:
public native java.lang.String toString ( ) ;

Target:
public long toMillis ( boolean ignoreDst ) { if ( ignoreDst ) { wallTime.setIsDst ( ( - 1 ) ) ; } int r = wallTime.mktime ( zoneInfo ) ; if ( r == ( - 1 ) ) { return - 1 ; } return r * 1000L ; }
Source:
public void onRttModifyRequestReceived ( com.android.ims.ImsCall imsCall ) { com.android.internal.telephony.imsphone.ImsPhoneConnection conn = findConnection ( imsCall ) ; if ( conn != null ) { conn.onRttModifyRequestReceived ( ) ; } }

Target:
public void onCallUssdMessageReceived ( com.android.ims.ImsCall call , int mode , java.lang.String ussdMessage ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "mImsUssdListener onCallUssdMessageReceived mode=" + mode ) ) ; int ussdMode = - 1 ; switch ( mode ) { case com.android.ims.ImsCall.USSD_MODE_REQUEST : ussdMode = com.android.internal.telephony.CommandsInterface.USSD_MODE_REQUEST ; break ; case com.android.ims.ImsCall.USSD_MODE_NOTIFY : ussdMode = com.android.internal.telephony.CommandsInterface.USSD_MODE_NOTIFY ; break ; } mPhone.onIncomingUSSD ( ussdMode , ussdMessage ) ; }