auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void checkSubroutine ( int offset ) { if ( ( subroutineStarts [ offset ] ) != ( proguard.optimize.peephole.BranchTargetFinder.UNKNOWN ) ) { currentSubroutineStart = subroutineStarts [ offset ] ; } else if ( ( currentSubroutineStart ) != ( proguard.optimize.peephole.BranchTargetFinder.UNKNOWN ) ) { subroutineStarts [ offset ] = currentSubroutineStart ; if ( ( currentSubroutineStart ) >= 0 ) { subroutineEnds [ currentSubroutineStart ] = offset ; } } }

Target:
public void visitExceptionInfo ( proguard.optimize.peephole.Clazz clazz , proguard.optimize.peephole.Method method , proguard.optimize.peephole.CodeAttribute codeAttribute , proguard.optimize.peephole.ExceptionInfo exceptionInfo ) { int startPC = exceptionInfo.u2startPC ; int endPC = exceptionInfo.u2endPC ; int handlerPC = exceptionInfo.u2handlerPC ; instructionMarks [ startPC ] |= proguard.optimize.peephole.BranchTargetFinder.EXCEPTION_START ; instructionMarks [ endPC ] |= proguard.optimize.peephole.BranchTargetFinder.EXCEPTION_END ; instructionMarks [ handlerPC ] |= proguard.optimize.peephole.BranchTargetFinder.EXCEPTION_HANDLER ; if ( ( ( subroutineStarts [ handlerPC ] ) == ( proguard.optimize.peephole.BranchTargetFinder.UNKNOWN ) ) && ( ( subroutineStarts [ startPC ] ) != ( proguard.optimize.peephole.BranchTargetFinder.UNKNOWN ) ) ) { subroutineStarts [ handlerPC ] = subroutineStarts [ startPC ] ; repeat = true ; } }
Source:
public com.android.ims.ImsUtInterface getSupplementaryServiceConfiguration ( int sessionId ) throws com.android.ims.ImsException { if ( ( ( mUt ) == null ) || ( ! ( mImsServiceProxy.isBinderAlive ( ) ) ) ) { checkAndThrowExceptionIfServiceUnavailable ( ) ; try { com.android.ims.internal.IImsUt iUt = mImsServiceProxy.getUtInterface ( sessionId ) ; if ( iUt == null ) { throw new com.android.ims.ImsException ( "getSupplementaryServiceConfiguration()" , ImsReasonInfo.CODE_UT_NOT_SUPPORTED ) ; } mUt = new com.android.ims.ImsUt ( iUt ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getSupplementaryServiceConfiguration()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } } return mUt ; }

Target:
public boolean isConnected ( int serviceType , int callType ) throws com.android.ims.ImsException { checkAndThrowExceptionIfServiceUnavailable ( ) ; try { return mImsServiceProxy.isConnected ( serviceType , callType ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "isServiceConnected()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }
Source:
public long getRetainedSize ( com.android.tools.perflib.heap.Heap heap ) { java.lang.Long result = mRetainedSizes.get ( heap ) ; return result == null ? 0L : result ; }

Target:
public void resetRetainedSize ( ) { java.util.List < com.android.tools.perflib.heap.Heap > allHeaps = mHeap.mSnapshot.mHeaps ; if ( ( mRetainedSizes ) == null ) { mRetainedSizes = new long [ allHeaps.size ( ) ] ; } else { java.util.Arrays.fill ( mRetainedSizes , 0 ) ; } mRetainedSizes [ allHeaps.indexOf ( mHeap ) ] = getSize ( ) ; }
Source:
public void copyFromUnchecked ( int [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } }

Target:
public void copyFrom ( int [ ] d ) { validateIsInt32 ( ) ; copyFromUnchecked ( d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( ConnectivityManager.CONNECTIVITY_ACTION.equals ( action ) ) { if ( com.android.server.NetworkTimeUpdateService.DBG ) android.util.Log.d ( com.android.server.NetworkTimeUpdateService.TAG , "Received CONNECTIVITY_ACTION " ) ; android.os.Message message = mHandler.obtainMessage ( com.android.server.NetworkTimeUpdateService.EVENT_NETWORK_CHANGED ) ; mHandler.sendMessageDelayed ( message , com.android.server.NetworkTimeUpdateService.NETWORK_CHANGE_EVENT_DELAY_MS ) ; } }

Target:
public void onLost ( android.net.Network network ) { if ( network.equals ( mDefaultNetwork ) ) mDefaultNetwork = null ; }
Source:
public void paint ( java.awt.Graphics g ) { super . paint ( g ) ; if ( ( myBusyIcon ) != null ) { myBusyIcon.updateLocation ( this ) ; } }

Target:
public void paint ( java.awt.Graphics g ) { if ( ! ( isEnabled ( ) ) ) { g = new com.intellij.ui.table.JBTable.TableGrayer ( ( ( java.awt.Graphics2D ) ( g ) ) ) ; } super . paint ( g ) ; if ( ( myBusyIcon ) != null ) { myBusyIcon.updateLocation ( this ) ; } }
Source:
public void test_run_for_SimpleTest_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest.class ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , null , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , null ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( vogar.target.junit.JUnitRunner.class , ( ( target.getName ( ) ) + "#testSimple" ) ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_run_for_SimpleTest_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest.class ; java.util.List < vogar.target.junit.VogarTest > tests = vogar.target.junit.JUnitRunnerFactory.createVogarTests ( target , null , vogar.target.JUnitRunnerTest.EMPTY_ARGS ) ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , skipPastReference , testEnvironment , 0 , tests ) ; runner.run ( null ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( vogar.target.junit.JUnitRunner.class , ( ( target.getName ( ) ) + "#testSimple" ) ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }
Source:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { org.objectweb.asm.MethodVisitor dest = super . visitMethod ( access , name , desc , signature , exceptions ) ; if ( ( access & ( ( org.objectweb.asm.Opcodes.ACC_ABSTRACT ) | ( org.objectweb.asm.Opcodes.ACC_NATIVE ) ) ) != 0 ) { return dest ; } return new com.google.devtools.build.android.desugar.HeaderClassLoader.BodyStubber ( dest ) ; }

Target:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { org.objectweb.asm.MethodVisitor dest = super . visitMethod ( access , name , desc , signature , exceptions ) ; if ( ( access & ( ( org.objectweb.asm.Opcodes.ACC_ABSTRACT ) | ( org.objectweb.asm.Opcodes.ACC_NATIVE ) ) ) != 0 ) { return dest ; } if ( ( isInterface ) && ( "<clinit>" . equals ( name ) ) ) { return new com.google.devtools.build.android.desugar.HeaderClassLoader.InterfaceInitializerEraser ( dest , internalName , interfaceFields ) ; } return new com.google.devtools.build.android.desugar.HeaderClassLoader.BodyStubber ( dest ) ; }
Source:
public void createPatchRequestWithBody ( ) throws java.lang.Exception { com.android.volley.mock.TestRequest.PatchWithBody request = new com.android.volley.mock.TestRequest.PatchWithBody ( ) ; assertEquals ( request.getMethod ( ) , Method.PATCH ) ; org.apache.http.client.methods.HttpUriRequest httpRequest = com.android.volley.toolbox.HttpClientStack.createHttpRequest ( request , null ) ; assertTrue ( ( httpRequest instanceof com.android.volley.toolbox.HttpClientStack.HttpPatch ) ) ; }

Target:
public void createPatchRequest ( ) throws java.lang.Exception { com.android.volley.mock.TestRequest.Patch request = new com.android.volley.mock.TestRequest.Patch ( ) ; org.junit.Assert.assertEquals ( request.getMethod ( ) , Method.PATCH ) ; org.apache.http.client.methods.HttpUriRequest httpRequest = com.android.volley.toolbox.HttpClientStack.createHttpRequest ( request , null ) ; org.junit.Assert.assertTrue ( ( httpRequest instanceof com.android.volley.toolbox.HttpClientStack.HttpPatch ) ) ; }
Source:
public void onConference ( android.telecom.Connection connection1 , android.telecom.Connection connection2 ) { if ( ( connection1 instanceof com.android.services.telephony.TelephonyConnection ) && ( connection2 instanceof com.android.services.telephony.TelephonyConnection ) ) { ( ( com.android.services.telephony.TelephonyConnection ) ( connection1 ) ) . performConference ( ( ( com.android.services.telephony.TelephonyConnection ) ( connection2 ) ) ) ; } }

Target:
public void onConference ( android.telecom.Connection connection1 , android.telecom.Connection connection2 ) { if ( connection1 instanceof com.android.services.telephony.TelephonyConnection ) { ( ( com.android.services.telephony.TelephonyConnection ) ( connection1 ) ) . performConference ( connection2 ) ; } else if ( connection2 instanceof com.android.services.telephony.TelephonyConnection ) { ( ( com.android.services.telephony.TelephonyConnection ) ( connection2 ) ) . performConference ( connection1 ) ; } else { com.android.services.telephony.Log.w ( this , ( "onConference - cannot merge connections " + "Connection1: %s, Connection2: %2" ) , connection1 , connection2 ) ; } }
Source:
public void onResume ( ) { super . onResume ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( ( ( "onResume - mIsResponseSent[" + ( mIsResponseSent ) ) + "], slot id: " ) + ( mSlotId ) ) ) ; startTimeOut ( ) ; appService.getStkContext ( mSlotId ) . setPendingActivityInstance ( null ) ; if ( mIsResponseSent ) { cancelTimeOut ( ) ; finish ( ) ; } }

Target:
public void onStop ( ) { super . onStop ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( ( "onStop - mIsResponseSent[" + ( mIsResponseSent ) ) + "]" ) ) ; if ( isChangingConfigurations ( ) ) { return ; } if ( ( mIsResponseSent ) && ( appService.isTopOfStack ( ) ) ) { cancelTimeOut ( ) ; finish ( ) ; } else { appService.getStkContext ( mSlotId ) . setPendingActivityInstance ( this ) ; } }
Source:
private boolean startIPv6 ( ) { final java.lang.String PREFER_TEMPADDRS = "2" ; try { android.net.util.NetdService.run ( ( android.net.INetd netd ) -> { netd.setProcSysNet ( INetd.IPV6 , INetd.CONF , mInterfaceName , "use_tempaddr" , PREFER_TEMPADDRS ) ; } ) ; mNwService.enableIpv6 ( mInterfaceName ) ; } catch ( java.lang.IllegalStateException | android.os.RemoteException | android.os.ServiceSpecificException e ) { logError ( "Unable to change interface settings: %s" , e ) ; return false ; } return true ; }

Target:
private void enableInterfaceIPv6PrivacyExtensions ( ) { final java.lang.String PREFER_TEMPADDRS = "2" ; android.net.util.NetdService.run ( ( android.net.INetd netd ) -> { netd.setProcSysNet ( INetd.IPV6 , INetd.CONF , mInterfaceName , "use_tempaddr" , PREFER_TEMPADDRS ) ; } ) ; }
Source:
public void testSize ( ) { java.util.concurrent.CopyOnWriteArraySet empty = new java.util.concurrent.CopyOnWriteArraySet ( ) ; java.util.concurrent.CopyOnWriteArraySet full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; assertEquals ( 3 , full.size ( ) ) ; assertEquals ( 0 , empty.size ( ) ) ; }

Target:
public void testRemoveAll ( ) { java.util.Set full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; assertTrue ( full.removeAll ( java.util.Arrays.asList ( one , two ) ) ) ; assertEquals ( 1 , full.size ( ) ) ; assertFalse ( full.removeAll ( java.util.Arrays.asList ( one , two ) ) ) ; assertEquals ( 1 , full.size ( ) ) ; }
Source:
private void startApp ( com.google.android.gfx.benchmark.test.GraphicsBenchmarkTest.App app ) throws java.io.IOException , java.lang.InterruptedException { android.util.Log.d ( com.google.android.gfx.benchmark.test.GraphicsBenchmarkTest.TAG , ( "Launching " + ( app.getPackageName ( ) ) ) ) ; android.content.Intent intent = android.support.test.InstrumentationRegistry.getContext ( ) . getPackageManager ( ) . getLaunchIntentForPackage ( app.getPackageName ( ) ) ; android.support.test.InstrumentationRegistry.getContext ( ) . startActivity ( intent ) ; java.lang.Thread.sleep ( 10000 ) ; }

Target:
private void startApp ( com.android.gfx.benchmark.ApkInfo app ) throws java.io.IOException , java.lang.InterruptedException { android.util.Log.d ( com.google.android.gfx.benchmark.test.GraphicsBenchmarkTest.TAG , ( "Launching " + ( app.getPackageName ( ) ) ) ) ; android.content.Intent intent = android.support.test.InstrumentationRegistry.getContext ( ) . getPackageManager ( ) . getLaunchIntentForPackage ( app.getPackageName ( ) ) ; android.support.test.InstrumentationRegistry.getContext ( ) . startActivity ( intent ) ; java.lang.Thread.sleep ( 10000 ) ; }
Source:
protected void testCreatedPackage ( java.lang.Package p ) { assertEquals ( 42 , p.getRevision ( ) ) ; assertEquals ( "The License" , p.getLicense ( ) ) ; assertEquals ( "Some description." , p.getDescription ( ) ) ; assertEquals ( "http://description/url" , p.getDescUrl ( ) ) ; assertEquals ( "Release Note" , p.getReleaseNote ( ) ) ; assertEquals ( "http://release/note" , p.getReleaseNoteUrl ( ) ) ; assertEquals ( new com.android.sdklib.internal.repository.sources.SdkRepoSource ( "http://source/url" , null ) , p.getParentSource ( ) ) ; assertTrue ( p.isObsolete ( ) ) ; assertNotNull ( p.getArchives ( ) ) ; assertEquals ( 1 , p.getArchives ( ) . length ) ; com.android.sdklib.internal.repository.archives.Archive a = p.getArchives ( ) [ 0 ] ; assertNotNull ( a ) ; assertEquals ( Os.ANY , a.getOs ( ) ) ; assertEquals ( Arch.ANY , a.getArch ( ) ) ; assertEquals ( com.android.sdklib.internal.repository.packages.PackageTest.LOCAL_ARCHIVE_PATH , a.getLocalOsPath ( ) ) ; }

Target:
protected void testCreatedPackage ( java.lang.Package p ) { assertEquals ( "42" , p.getRevision ( ) . toShortString ( ) ) ; assertEquals ( "The License" , p.getLicense ( ) ) ; assertEquals ( "Some description." , p.getDescription ( ) ) ; assertEquals ( "http://description/url" , p.getDescUrl ( ) ) ; assertEquals ( "Release Note" , p.getReleaseNote ( ) ) ; assertEquals ( "http://release/note" , p.getReleaseNoteUrl ( ) ) ; assertEquals ( new com.android.sdklib.internal.repository.sources.SdkRepoSource ( "http://source/url" , null ) , p.getParentSource ( ) ) ; assertTrue ( p.isObsolete ( ) ) ; assertNotNull ( p.getArchives ( ) ) ; assertEquals ( 1 , p.getArchives ( ) . length ) ; com.android.sdklib.internal.repository.archives.Archive a = p.getArchives ( ) [ 0 ] ; assertNotNull ( a ) ; assertEquals ( Os.ANY , a.getOs ( ) ) ; assertEquals ( Arch.ANY , a.getArch ( ) ) ; assertEquals ( com.android.sdklib.internal.repository.packages.PackageTest.LOCAL_ARCHIVE_PATH , a.getLocalOsPath ( ) ) ; }
Source:
public final byte [ ] doFinal ( ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } return spiImpl.engineDoFinal ( null , 0 , 0 ) ; }

Target:
public final byte [ ] doFinal ( byte [ ] input , int inputOffset , int inputLen ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } javax.crypto.Cipher.checkInputOffsetAndCount ( input.length , inputOffset , inputLen ) ; return getSpi ( ) . engineDoFinal ( input , inputOffset , inputLen ) ; }
Source:
public boolean getRxPktFates ( com.android.server.wifi.WifiNative.RxFateReport [ ] reportBufs ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { int res = com.android.server.wifi.WifiNative.getRxPktFatesNative ( com.android.server.wifi.WifiNative.sWlan0Index , reportBufs ) ; if ( res != ( com.android.server.wifi.WifiNative.WIFI_SUCCESS ) ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , ( "getRxPktFatesNative returned " + res ) ) ; return false ; } else { return true ; } } else { return false ; } } }

Target:
public boolean getRxPktFates ( com.android.server.wifi.WifiNative.RxFateReport [ ] reportBufs ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getRxPktFates ( reportBufs ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { int res = com.android.server.wifi.WifiNative.getRxPktFatesNative ( com.android.server.wifi.WifiNative.sWlan0Index , reportBufs ) ; if ( res != ( com.android.server.wifi.WifiNative.WIFI_SUCCESS ) ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , ( "getRxPktFatesNative returned " + res ) ) ; return false ; } else { return true ; } } else { return false ; } } } }
Source:
synchronized boolean terminateScoUsingVirtualVoiceCall ( ) { if ( com.android.bluetooth.hfp.HeadsetStateMachine.DBG ) log ( "terminateScoUsingVirtualVoiceCall: Received" ) ; if ( ! ( isVirtualCallInProgress ( ) ) ) { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , ( "terminateScoUsingVirtualVoiceCall:" + "No present call to terminate" ) ) ; return false ; } processCallState ( new com.android.bluetooth.hfp.HeadsetCallState ( 0 , 0 , HeadsetHalConstants.CALL_STATE_IDLE , "" , 0 ) , true ) ; setVirtualCallInProgress ( false ) ; if ( com.android.bluetooth.hfp.HeadsetStateMachine.DBG ) log ( "terminateScoUsingVirtualVoiceCall: Done" ) ; return true ; }

Target:
synchronized boolean terminateScoUsingVirtualVoiceCall ( ) { log ( "terminateScoUsingVirtualVoiceCall: Received" ) ; if ( ! ( isVirtualCallInProgress ( ) ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "terminateScoUsingVirtualVoiceCall: No present call to terminate" ) ; return false ; } processCallState ( new com.android.bluetooth.hfp.HeadsetCallState ( 0 , 0 , HeadsetHalConstants.CALL_STATE_IDLE , "" , 0 ) , true ) ; setVirtualCallInProgress ( false ) ; log ( "terminateScoUsingVirtualVoiceCall: Done" ) ; return true ; }
Source:
public int getAllPhoneAccountsCount ( ) { synchronized ( mLock ) { try { android.telecom.Log.startSession ( "TSI.gAPAC" ) ; return getAllPhoneAccounts ( ) . size ( ) ; } catch ( java.lang.Exception e ) { android.telecom.Log.e ( this , e , "getAllPhoneAccountsCount" ) ; throw e ; } finally { android.telecom.Log.endSession ( ) ; } } }

Target:
public int getAllPhoneAccountsCount ( ) { try { android.telecom.Log.startSession ( "TSI.gAPAC" ) ; try { enforceModifyPermission ( "getAllPhoneAccountsCount requires MODIFY_PHONE_STATE permission." ) ; } catch ( java.lang.SecurityException e ) { android.util.EventLog.writeEvent ( 1397638484 , "62347125" , android.os.Binder.getCallingUid ( ) , "getAllPhoneAccountsCount" ) ; throw e ; } synchronized ( mLock ) { try { return getAllPhoneAccounts ( ) . size ( ) ; } catch ( java.lang.Exception e ) { android.telecom.Log.e ( this , e , "getAllPhoneAccountsCount" ) ; throw e ; } } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
public void setAccessible ( boolean flag ) { this . flag = flag ; }

Target:
public void setAccessible ( boolean flag ) { try { if ( equals ( java.lang.Class.class . getDeclaredConstructor ( ) ) ) { throw new java.lang.SecurityException ( "Can't make class constructor accessible" ) ; } } catch ( java.lang.NoSuchMethodException e ) { throw new java.lang.AssertionError ( "Couldn't find class constructor" ) ; } this . flag = flag ; }
Source:
public void onEndDataPathResponse ( short transactionId , boolean success , int reasonOnFailure ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_RESPONSE ) ; msg.arg1 = com.android.server.wifi.nan.WifiNanStateManager.RESPONSE_TYPE_ON_END_DATA_PATH ; msg.arg2 = transactionId ; msg.getData ( ) . putBoolean ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_BUNDLE_KEY_SUCCESS_FLAG , success ) ; msg.getData ( ) . putInt ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_BUNDLE_KEY_STATUS_CODE , reasonOnFailure ) ; mSm.sendMessage ( msg ) ; }

Target:
public void onEndDataPathResponse ( short transactionId , boolean success , int reasonOnFailure ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_RESPONSE ) ; msg.arg1 = com.android.server.wifi.aware.WifiAwareStateManager.RESPONSE_TYPE_ON_END_DATA_PATH ; msg.arg2 = transactionId ; msg.getData ( ) . putBoolean ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_BUNDLE_KEY_SUCCESS_FLAG , success ) ; msg.getData ( ) . putInt ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_BUNDLE_KEY_STATUS_CODE , reasonOnFailure ) ; mSm.sendMessage ( msg ) ; }
Source:
private boolean isWifiTethered ( java.util.ArrayList < java.lang.String > active ) { checkAndSetConnectivityInstance ( ) ; java.lang.String [ ] wifiRegexs = mCm.getTetherableWifiRegexs ( ) ; for ( java.lang.String intf : active ) { for ( java.lang.String regex : wifiRegexs ) { if ( intf.matches ( regex ) ) { return true ; } } } return false ; }

Target:
void maybeRegisterNetworkFactory ( ) { if ( ( mNetworkFactory ) == null ) { checkAndSetConnectivityInstance ( ) ; if ( ( mCm ) != null ) { mNetworkFactory = new com.android.server.wifi.WifiStateMachine.WifiNetworkFactory ( getHandler ( ) . getLooper ( ) , mContext , com.android.server.wifi.WifiStateMachine.NETWORKTYPE , mNetworkCapabilitiesFilter ) ; mNetworkFactory.setScoreFilter ( 60 ) ; mNetworkFactory.register ( ) ; mUntrustedNetworkFactory = new com.android.server.wifi.WifiStateMachine.UntrustedWifiNetworkFactory ( getHandler ( ) . getLooper ( ) , mContext , com.android.server.wifi.WifiStateMachine.NETWORKTYPE_UNTRUSTED , mNetworkCapabilitiesFilter ) ; mUntrustedNetworkFactory.setScoreFilter ( java.lang.Integer.MAX_VALUE ) ; mUntrustedNetworkFactory.register ( ) ; } } }
Source:
public final boolean setConference ( android.telecom.Conference conference ) { if ( ( mConference ) == null ) { mConference = conference ; if ( ( ( mConnectionService ) != null ) && ( mConnectionService.containsConference ( conference ) ) ) { fireConferenceChanged ( ) ; } return true ; } return false ; }

Target:
public final boolean setConference ( android.telecom.Conference conference ) { if ( ( mConference ) == null ) { mConference = conference ; if ( ( ( mConnectionService ) != null ) && ( mConnectionService.containsConference ( conference ) ) ) { fireConferenceChanged ( ) ; onConferenceChanged ( ) ; } return true ; } return false ; }
Source:
public int hashCode ( ) { return ( ( ( ( ( this . a.hashCode ( ) ) ^ ( this . b.hashCode ( ) ) ) ^ ( m ) ) ^ ( k1 ) ) ^ ( k2 ) ) ^ ( k3 ) ; }

Target:
protected org.bouncycastle.math.ec.ECCurve cloneCurve ( ) { return new org.bouncycastle.math.ec.ECCurve.F2m ( m , k1 , k2 , k3 , a , b , order , cofactor ) ; }
Source:
public static org.jetbrains.plugins.github.api.GithubGist getGist ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.api.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String id ) throws java.io.IOException { java.lang.String path = "/gists/" + id ; com.google.gson.JsonElement result = org.jetbrains.plugins.github.api.GithubApiUtil.getRequest ( auth , path ) ; return org.jetbrains.plugins.github.api.GithubApiUtil.createDataFromRaw ( org.jetbrains.plugins.github.api.GithubApiUtil.fromJson ( result , org.jetbrains.plugins.github.api.GithubGistRaw.class ) , org.jetbrains.plugins.github.api.GithubGist.class ) ; }

Target:
public static org.jetbrains.plugins.github.api.GithubGist getGist ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.util.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String id ) throws java.io.IOException { java.lang.String path = "/gists/" + id ; com.google.gson.JsonElement result = org.jetbrains.plugins.github.api.GithubApiUtil.getRequest ( auth , path ) ; return org.jetbrains.plugins.github.api.GithubApiUtil.createDataFromRaw ( org.jetbrains.plugins.github.api.GithubApiUtil.fromJson ( result , org.jetbrains.plugins.github.api.GithubGistRaw.class ) , org.jetbrains.plugins.github.api.GithubGist.class ) ; }
Source:
static boolean isMediaDatabaseName ( java.lang.String name ) { if ( com.android.providers.media.MediaProvider.INTERNAL_DATABASE_NAME.equals ( name ) ) { return true ; } if ( com.android.providers.media.MediaProvider.EXTERNAL_DATABASE_NAME.equals ( name ) ) { return true ; } if ( name.startsWith ( "external-" ) ) { return true ; } return false ; }

Target:
static boolean isMediaDatabaseName ( java.lang.String name ) { if ( com.android.providers.media.MediaProvider.INTERNAL_DATABASE_NAME.equals ( name ) ) { return true ; } if ( com.android.providers.media.MediaProvider.EXTERNAL_DATABASE_NAME.equals ( name ) ) { return true ; } if ( ( name.startsWith ( "external-" ) ) && ( name.endsWith ( ".db" ) ) ) { return true ; } return false ; }
Source:
private boolean checkGradlePluginDependency ( com.android.tools.lint.detector.api.Context context , com.android.ide.common.repository.GradleCoordinate dependency , java.lang.Object cookie ) { com.android.ide.common.repository.GradleCoordinate latestPlugin = com.android.ide.common.repository.GradleCoordinate.parseCoordinateString ( ( ( com.android.SdkConstants.GRADLE_PLUGIN_NAME ) + ( com.android.SdkConstants.GRADLE_PLUGIN_MINIMUM_VERSION ) ) ) ; if ( ( GradleCoordinate.COMPARE_PLUS_HIGHER.compare ( dependency , latestPlugin ) ) < 0 ) { java.lang.String message = ( ( ( "You must use a newer version of the Android Gradle plugin. The " + "minimum supported version is " ) + ( com.android.SdkConstants.GRADLE_PLUGIN_MINIMUM_VERSION ) ) + " and the recommended version is " ) + ( com.android.SdkConstants.GRADLE_PLUGIN_RECOMMENDED_VERSION ) ; report ( context , cookie , com.android.tools.lint.checks.GradleDetector.GRADLE_PLUGIN_COMPATIBILITY , message ) ; return true ; } return false ; }

Target:
private boolean checkGradlePluginDependency ( com.android.tools.lint.detector.api.Context context , com.android.ide.common.repository.GradleCoordinate dependency , java.lang.Object cookie ) { com.android.ide.common.repository.GradleCoordinate latestPlugin = com.android.ide.common.repository.GradleCoordinate.parseCoordinateString ( ( ( com.android.SdkConstants.GRADLE_PLUGIN_NAME ) + ( com.android.SdkConstants.GRADLE_PLUGIN_MINIMUM_VERSION ) ) ) ; if ( ( com.android.ide.common.repository.GradleCoordinate.COMPARE_PLUS_HIGHER.compare ( dependency , latestPlugin ) ) < 0 ) { java.lang.String message = ( ( ( "You must use a newer version of the Android Gradle plugin. The " + "minimum supported version is " ) + ( com.android.SdkConstants.GRADLE_PLUGIN_MINIMUM_VERSION ) ) + " and the recommended version is " ) + ( com.android.SdkConstants.GRADLE_PLUGIN_RECOMMENDED_VERSION ) ; report ( context , cookie , com.android.tools.lint.checks.GradleDetector.GRADLE_PLUGIN_COMPATIBILITY , message ) ; return true ; } return false ; }
Source:
public void write ( ) throws java.io.IOException { if ( com.android.jill.frontend.java.AsmHelper.isAnnotation ( currentClass ) ) { writeAnnotationMethod ( ) ; } else if ( com.android.jill.frontend.java.AsmHelper.isConstructor ( currentMethod ) ) { writeConstructor ( ) ; } else { writeMethod ( ) ; } }

Target:
public void write ( ) throws java.io.IOException { if ( ( ( com.android.jill.frontend.java.AsmHelper.isAnnotation ( currentClass ) ) && ( com.android.jill.frontend.java.AsmHelper.isAbstract ( currentMethod ) ) ) && ( ( ( currentMethod.parameters ) == null ) || ( currentMethod.parameters.isEmpty ( ) ) ) ) { writeAnnotationMethod ( ) ; } else if ( com.android.jill.frontend.java.AsmHelper.isConstructor ( currentMethod ) ) { writeConstructor ( ) ; } else { writeMethod ( ) ; } }
Source:
public void test2_1SetEnabledAfterRelease ( ) throws java.lang.Exception { if ( ! ( isBassBoostAvailable ( ) ) ) { return ; } getBassBoost ( 0 ) ; mBassBoost.release ( ) ; try { mBassBoost.setEnabled ( true ) ; fail ( "setEnabled() processed after release()" ) ; } catch ( java.lang.IllegalStateException e ) { } finally { releaseBassBoost ( ) ; } }

Target:
public void test2_1SetEnabledAfterRelease ( ) throws java.lang.Exception { if ( ! ( isBassBoostAvailable ( ) ) ) { return ; } getBassBoost ( getSessionId ( ) ) ; mBassBoost.release ( ) ; try { mBassBoost.setEnabled ( true ) ; fail ( "setEnabled() processed after release()" ) ; } catch ( java.lang.IllegalStateException e ) { } finally { releaseBassBoost ( ) ; } }
Source:
public void testAesCbcHmacSha384Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , android.net.cts.IpSecManagerTest.getKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha384Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , getAuthKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public boolean tearDownInterfaces ( ) { if ( ( mWificond ) == null ) { android.util.Log.e ( com.android.server.wifi.WificondControl.TAG , "No valid wificond handler" ) ; return false ; } try { mWificond.tearDownInterfaces ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.WificondControl.TAG , "Failed to tear down interfaces via wificond" ) ; return false ; } return true ; }

Target:
public boolean tearDownInterfaces ( ) { mWificond = mWifiInjector.makeWificond ( ) ; if ( ( mWificond ) == null ) { android.util.Log.e ( com.android.server.wifi.WificondControl.TAG , "Failed to get reference to wificond" ) ; return false ; } try { mWificond.tearDownInterfaces ( ) ; return true ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.WificondControl.TAG , "Failed to tear down interfaces due to remote exception" ) ; } return false ; }
Source:
public void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc ) { switch ( opcode ) { case org.objectweb.asm.Opcodes.INVOKESPECIAL : invokespecial ( owner , name , desc ) ; break ; case org.objectweb.asm.Opcodes.INVOKEVIRTUAL : invokevirtual ( owner , name , desc ) ; break ; case org.objectweb.asm.Opcodes.INVOKESTATIC : invokestatic ( owner , name , desc ) ; break ; case org.objectweb.asm.Opcodes.INVOKEINTERFACE : invokeinterface ( owner , name , desc ) ; break ; default : throw new java.lang.IllegalArgumentException ( ) ; } }

Target:
public void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc , final boolean itf ) { if ( ( api ) < ( org.objectweb.asm.Opcodes.ASM5 ) ) { super . visitMethodInsn ( opcode , owner , name , desc , itf ) ; return ; } doVisitMethodInsn ( opcode , owner , name , desc , itf ) ; }
Source:
public java.util.concurrent.ScheduledFuture < ? > scheduleWithFixedDelay ( java.lang.Runnable command , long initialDelay , long delay , java.util.concurrent.TimeUnit unit ) { return delegate.scheduleWithFixedDelay ( command , initialDelay , delay , 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:
private void contentSizeChanged ( boolean updateLayout ) { if ( ( ( mContentWidth ) | ( mContentHeight ) ) == 0 ) { return ; } if ( mHeightCanMeasure ) { if ( ( ( getMeasuredHeight ( ) ) != ( contentToView ( mContentHeight ) ) ) && updateLayout ) { requestLayout ( ) ; } } else if ( mWidthCanMeasure ) { if ( ( ( getMeasuredWidth ( ) ) != ( contentToView ( mContentWidth ) ) ) && updateLayout ) { requestLayout ( ) ; } } else { sendViewSizeZoom ( ) ; } }

Target:
protected int computeVerticalScrollOffset ( ) { return java.lang.Math.max ( ( ( mScrollY ) - ( getTitleHeight ( ) ) ) , 0 ) ; }
Source:
private boolean replaceAttribute ( int attributesCount , proguard.classfile.editor.Attribute [ ] attributes , proguard.classfile.editor.Attribute attribute ) { int index = findAttribute ( attributesCount , attributes , attribute.getAttributeName ( targetClass ) ) ; if ( index < 0 ) { return false ; } attributes [ index ] = attribute ; return true ; }

Target:
private int deleteAttribute ( int attributesCount , proguard.classfile.editor.Attribute [ ] attributes , java.lang.String attributeName ) { int index = findAttributeIndex ( attributesCount , attributes , attributeName ) ; if ( index < 0 ) { return attributesCount ; } java.lang.System.arraycopy ( attributes , ( index + 1 ) , attributes , index , ( ( attributesCount - index ) - 1 ) ) ; attributes [ ( -- attributesCount ) ] = null ; return attributesCount ; }
Source:
private void onHeadsetPluggedInChanged ( boolean isPluggedIn ) { if ( ( mIsPluggedIn ) != isPluggedIn ) { com.android.server.telecom.Log.v ( this , "onHeadsetPluggedInChanged, mIsPluggedIn: %b -> %b" , mIsPluggedIn , isPluggedIn ) ; boolean oldIsPluggedIn = mIsPluggedIn ; mIsPluggedIn = isPluggedIn ; for ( com.android.server.telecom.WiredHeadsetManager.Listener listener : mListeners ) { listener.onWiredHeadsetPluggedInChanged ( oldIsPluggedIn , mIsPluggedIn ) ; } } }

Target:
private void onHeadsetPluggedInChanged ( boolean isPluggedIn ) { if ( ( mIsPluggedIn ) != isPluggedIn ) { android.telecom.Log.v ( this , "onHeadsetPluggedInChanged, mIsPluggedIn: %b -> %b" , mIsPluggedIn , isPluggedIn ) ; boolean oldIsPluggedIn = mIsPluggedIn ; mIsPluggedIn = isPluggedIn ; for ( com.android.server.telecom.WiredHeadsetManager.Listener listener : mListeners ) { listener.onWiredHeadsetPluggedInChanged ( oldIsPluggedIn , mIsPluggedIn ) ; } } }
Source:
protected boolean isFilterStopped ( android.content.pm.PackageParser.ServiceIntentInfo filter ) { android.content.pm.PackageParser.Package p = filter.service.owner ; if ( p != null ) { com.android.server.pm.PackageSetting ps = ( ( com.android.server.pm.PackageSetting ) ( p.mExtras ) ) ; if ( ps != null ) { return ( ps.stopped ) && ( ( ( ps.pkgFlags ) & ( android.content.pm.ApplicationInfo.FLAG_SYSTEM ) ) == 0 ) ; } } return false ; }

Target:
protected boolean isFilterStopped ( android.content.pm.PackageParser.ActivityIntentInfo filter , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return true ; android.content.pm.PackageParser.Package p = filter.activity.owner ; if ( p != null ) { com.android.server.pm.PackageSetting ps = ( ( com.android.server.pm.PackageSetting ) ( p.mExtras ) ) ; if ( ps != null ) { return ( ps.getStopped ( userId ) ) && ( ( ( ps.pkgFlags ) & ( android.content.pm.ApplicationInfo.FLAG_SYSTEM ) ) == 0 ) ; } } return false ; }
Source:
public void ctorDoesNotCrashEvenIfReleaseFileIsMissing ( ) throws java.lang.Exception { mTraceReleaseFile.delete ( ) ; new com.android.server.wifi.LastMileLogger ( mWifiInjector , mTraceDataFile.getPath ( ) , mTraceEnableFile.getPath ( ) , mTraceReleaseFile.getPath ( ) ) ; org.mockito.Mockito.verify ( mLog ) . warn ( org.mockito.Matchers.contains ( "Failed" ) ) ; }

Target:
public void connectionEventStartedDoesNotAttemptToReopenReleaseFile ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; mTraceReleaseFile.delete ( ) ; mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; org.mockito.Mockito.verifyZeroInteractions ( mLog ) ; }
Source:
public void test_run_for_SimpleTest2_limiting_to_1method_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; java.lang.String actionName = "actionName" ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , actionName , null , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , new java.lang.String [ ] { "testSimple2" } ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( runner , ( ( target.getName ( ) ) + "#testSimple2" ) , actionName ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_run_for_SimpleTest2_limiting_to_1method_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , null , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , new java.lang.String [ ] { "testSimple2" } ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( vogar.target.junit.JUnitRunner.class , ( ( target.getName ( ) ) + "#testSimple2" ) ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }
Source:
private void processWBSEvent ( int enable ) { if ( enable == 2 ) { android.util.Log.d ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "AudioManager.setParameters: bt_wbs=on, device=" ) ; mSystemInterface.getAudioManager ( ) . setParameters ( ( ( com.android.bluetooth.hfp.HeadsetStateMachine.HEADSET_WBS ) + "=on" ) ) ; } else { android.util.Log.d ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , ( "AudioManager.setParameters: bt_wbs=off, enable=" + enable ) ) ; mSystemInterface.getAudioManager ( ) . setParameters ( ( ( com.android.bluetooth.hfp.HeadsetStateMachine.HEADSET_WBS ) + "=off" ) ) ; } }

Target:
private void processWBSEvent ( int wbsConfig ) { switch ( wbsConfig ) { case HeadsetHalConstants.BTHF_WBS_YES : android.util.Log.d ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "AudioManager.setParameters: bt_wbs=on" ) ; mSystemInterface.getAudioManager ( ) . setParameters ( ( ( com.android.bluetooth.hfp.HeadsetStateMachine.HEADSET_WBS ) + "=on" ) ) ; break ; case HeadsetHalConstants.BTHF_WBS_NO : case HeadsetHalConstants.BTHF_WBS_NONE : android.util.Log.d ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , ( "AudioManager.setParameters: bt_wbs=off, wbsConfig=" + wbsConfig ) ) ; mSystemInterface.getAudioManager ( ) . setParameters ( ( ( com.android.bluetooth.hfp.HeadsetStateMachine.HEADSET_WBS ) + "=off" ) ) ; break ; default : android.util.Log.e ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , ( "processWBSEvent, unknown wbsConfig " + wbsConfig ) ) ; } }
Source:
private void checkExpandItem ( java.lang.Object elem , org.eclipse.jface.viewers.ITreeContentProvider provider ) { if ( ( elem instanceof com.android.sdkuilib.internal.repository.PackagesPage.PkgCategory ) || ( elem instanceof com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) ) { mTreeViewer.setExpandedState ( elem , true ) ; for ( java.lang.Object pkg : provider.getChildren ( elem ) ) { mTreeViewer.setChecked ( pkg , true ) ; checkExpandItem ( pkg , provider ) ; } } else if ( elem instanceof java.lang.Package ) { selectCompatibleArchives ( elem , provider ) ; } }

Target:
private void checkExpandItem ( java.lang.Object elem , org.eclipse.jface.viewers.ITreeContentProvider provider ) { if ( ( elem instanceof com.android.sdkuilib.internal.repository.PackagesPage.PkgCategory ) || ( elem instanceof com.android.sdkuilib.internal.repository.PackageManager.PkgItem ) ) { mTreeViewer.setExpandedState ( elem , true ) ; for ( java.lang.Object pkg : provider.getChildren ( elem ) ) { mTreeViewer.setChecked ( pkg , true ) ; checkExpandItem ( pkg , provider ) ; } } else if ( elem instanceof java.lang.Package ) { selectCompatibleArchives ( elem , provider ) ; } }
Source:
private java.lang.String location ( ) { java.lang.String className = dex.typeNames ( ) . get ( currentClass.getTypeIndex ( ) ) ; if ( ( currentMethod ) != null ) { com.android.dx.io.MethodId methodId = dex.methodIds ( ) . get ( currentMethod.getMethodIndex ( ) ) ; return ( className + "." ) + ( dex.strings ( ) . get ( methodId.getNameIndex ( ) ) ) ; } else { return className ; } }

Target:
private java.lang.String location ( ) { java.lang.String className = dex.typeNames ( ) . get ( currentClass.getTypeIndex ( ) ) ; if ( ( currentMethod ) != null ) { com.android.dex.MethodId methodId = dex.methodIds ( ) . get ( currentMethod.getMethodIndex ( ) ) ; return ( className + "." ) + ( dex.strings ( ) . get ( methodId.getNameIndex ( ) ) ) ; } else { return className ; } }
Source:
public boolean isBluetoothAudioConnectedOrPending ( ) { if ( isBluetoothAudioConnected ( ) ) { com.android.server.telecom.Log.v ( this , "isBluetoothAudioConnectedOrPending: ==> TRUE (really connected)" ) ; return true ; } if ( isBluetoothAudioPending ( ) ) { long timeSinceRequest = ( android.os.SystemClock.elapsedRealtime ( ) ) - ( mBluetoothConnectionRequestTime ) ; com.android.server.telecom.Log.v ( this , ( ( "isBluetoothAudioConnectedOrPending: ==> TRUE (requested " + timeSinceRequest ) + " msec ago)" ) ) ; return true ; } com.android.server.telecom.Log.v ( this , "isBluetoothAudioConnectedOrPending: ==> FALSE" ) ; return false ; }

Target:
public boolean isBluetoothAudioConnectedOrPending ( ) { if ( isBluetoothAudioConnected ( ) ) { android.telecom.Log.v ( this , "isBluetoothAudioConnectedOrPending: ==> TRUE (really connected)" ) ; return true ; } if ( isBluetoothAudioPending ( ) ) { long timeSinceRequest = ( android.os.SystemClock.elapsedRealtime ( ) ) - ( mBluetoothConnectionRequestTime ) ; android.telecom.Log.v ( this , ( ( "isBluetoothAudioConnectedOrPending: ==> TRUE (requested " + timeSinceRequest ) + " msec ago)" ) ) ; return true ; } android.telecom.Log.v ( this , "isBluetoothAudioConnectedOrPending: ==> FALSE" ) ; return false ; }
Source:
public static com.android.dx.rop.annotation.Annotations getAnnotations ( com.android.dx.cf.iface.AttributeList attribs ) { com.android.dx.rop.annotation.Annotations result = com.android.dx.dex.cf.AttributeTranslator.getAnnotations0 ( attribs ) ; com.android.dx.rop.annotation.Annotation signature = com.android.dx.dex.cf.AttributeTranslator.getSignature ( attribs ) ; if ( signature != null ) { result = com.android.dx.rop.annotation.Annotations.combine ( result , signature ) ; } return result ; }

Target:
public static com.android.dx.rop.annotation.Annotations getAnnotations ( com.android.dx.cf.iface.AttributeList attribs ) { com.android.dx.rop.annotation.Annotations result = com.android.dx.dex.cf.AttributeTranslator.getAnnotations0 ( attribs ) ; com.android.dx.rop.annotation.Annotation signature = com.android.dx.dex.cf.AttributeTranslator.getSignature ( attribs ) ; com.android.dx.rop.annotation.Annotation sourceDebugExtension = com.android.dx.dex.cf.AttributeTranslator.getSourceDebugExtension ( attribs ) ; if ( signature != null ) { result = com.android.dx.rop.annotation.Annotations.combine ( result , signature ) ; } if ( sourceDebugExtension != null ) { result = com.android.dx.rop.annotation.Annotations.combine ( result , sourceDebugExtension ) ; } return result ; }
Source:
private static void setDefaultNetworkEvent ( com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityEvent out , android.net.metrics.DefaultNetworkEvent in ) { com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.DefaultNetworkEvent defaultNetworkEvent = new com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.DefaultNetworkEvent ( ) ; defaultNetworkEvent.networkId = com.android.server.connectivity.IpConnectivityEventBuilder.netIdOf ( in.netId ) ; defaultNetworkEvent.previousNetworkId = com.android.server.connectivity.IpConnectivityEventBuilder.netIdOf ( in.prevNetId ) ; defaultNetworkEvent.transportTypes = in.transportTypes ; defaultNetworkEvent.previousNetworkIpSupport = com.android.server.connectivity.IpConnectivityEventBuilder.ipSupportOf ( in ) ; out.setDefaultNetworkEvent ( defaultNetworkEvent ) ; }

Target:
public static com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityEvent toProto ( android.net.metrics.DefaultNetworkEvent in ) { com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.DefaultNetworkEvent ev = new com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.DefaultNetworkEvent ( ) ; ev.networkId = com.android.server.connectivity.IpConnectivityEventBuilder.netIdOf ( in.netId ) ; ev.previousNetworkId = com.android.server.connectivity.IpConnectivityEventBuilder.netIdOf ( in.prevNetId ) ; ev.transportTypes = in.transportTypes ; ev.previousNetworkIpSupport = com.android.server.connectivity.IpConnectivityEventBuilder.ipSupportOf ( in ) ; final com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityEvent out = com.android.server.connectivity.IpConnectivityEventBuilder.buildEvent ( in.netId , 0 , null ) ; out.setDefaultNetworkEvent ( ev ) ; return out ; }
Source:
private void enforceCallingPermission ( java.lang.String permission , java.lang.String function ) { if ( ( com.android.server.accessibility.AccessibilityManagerService.OWN_PROCESS_ID ) == ( android.os.Binder.getCallingPid ( ) ) ) { return ; } final int permissionStatus = mContext.checkCallingPermission ( permission ) ; if ( permissionStatus != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( ( ( ( "You do not have " + permission ) + " required to call " ) + function ) ) ; } }

Target:
private void enforceCallingPermission ( java.lang.String permission , java.lang.String function ) { if ( ( com.android.server.accessibility.AccessibilityManagerService.OWN_PROCESS_ID ) == ( android.os.Binder.getCallingPid ( ) ) ) { return ; } if ( ! ( hasPermission ( permission ) ) ) { throw new java.lang.SecurityException ( ( ( ( "You do not have " + permission ) + " required to call " ) + function ) ) ; } }
Source:
public void run ( ) { mBuilder = new android.app.AlertDialog.Builder ( mContext ) ; mBuilder.setNegativeButton ( mTitle , mOnClickListener ) ; mDialog = mBuilder.show ( ) ; mButton = ( ( android.widget.Button ) ( mDialog.getWindow ( ) . findViewById ( R.id.button2 ) ) ) ; mButton.performClick ( ) ; }

Target:
public void run ( ) { mBuilder = new android.app.AlertDialog.Builder ( mContext ) ; mBuilder.setNegativeButton ( com.android.cts.stub.R.string.notify , mOnClickListener ) ; mDialog = mBuilder.show ( ) ; mButton = mDialog.getButton ( DialogInterface.BUTTON_NEGATIVE ) ; mButton.performClick ( ) ; }
Source:
public boolean matches ( @ com.android.annotations.NonNull java.lang.String name ) { int length = name.length ( ) ; char [ ] chars = mBinding.readableName ( ) ; if ( ( chars.length ) != length ) { return false ; } for ( int i = 0 ; i < length ; i ++ ) { if ( ( chars [ i ] ) != ( name.charAt ( i ) ) ) { return false ; } } return true ; }

Target:
public boolean isSubclassOf ( @ com.android.annotations.NonNull java.lang.String name , boolean strict ) { if ( ( mBinding ) instanceof org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding ) { org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding cls = ( ( org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding ) ( mBinding ) ) ; if ( strict ) { cls = cls.superclass ( ) ; } for ( ; cls != null ; cls = cls.superclass ( ) ) { if ( com.android.tools.lint.EcjParser.sameChars ( name , cls.readableName ( ) ) ) { return true ; } } } return false ; }