auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public synchronized boolean enable ( boolean quietMode ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; if ( mUserManager.hasUserRestriction ( UserManager.DISALLOW_BLUETOOTH , UserHandle.SYSTEM ) ) { debugLog ( "enable() called when Bluetooth was disallowed" ) ; return false ; } debugLog ( ( "enable() - Enable called with quiet mode status = " + ( mQuietmode ) ) ) ; mQuietmode = quietMode ; android.os.Message m = mAdapterStateMachine.obtainMessage ( AdapterState.BLE_TURN_ON ) ; mAdapterStateMachine.sendMessage ( m ) ; mBluetoothStartTime = java.lang.System.currentTimeMillis ( ) ; return true ; }

Target:
boolean setBluetoothClass ( android.bluetooth.BluetoothClass bluetoothClass ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PRIVILEGED , "Need BLUETOOTH PRIVILEGED permission" ) ; debugLog ( ( "setBluetoothClass() to " + bluetoothClass ) ) ; boolean result = mAdapterProperties.setBluetoothClass ( bluetoothClass ) ; if ( ! result ) { android.util.Log.e ( com.android.bluetooth.btservice.AdapterService.TAG , ( ( "setBluetoothClass() to " + bluetoothClass ) + " failed" ) ) ; } return result && ( storeBluetoothClassConfig ( bluetoothClass.getClassOfDevice ( ) ) ) ; }
Source:
public void menuShown ( org.eclipse.swt.events.MenuEvent e ) { boolean deviceEnabled = ( mCurrentDevice ) != null ; screenShotItem.setEnabled ( deviceEnabled ) ; explorerItem.setEnabled ( deviceEnabled ) ; processItem.setEnabled ( deviceEnabled ) ; deviceStateItem.setEnabled ( deviceEnabled ) ; appStateItem.setEnabled ( deviceEnabled ) ; radioStateItem.setEnabled ( deviceEnabled ) ; logCatItem.setEnabled ( deviceEnabled ) ; }

Target:
public void menuShown ( org.eclipse.swt.events.MenuEvent e ) { boolean deviceEnabled = ( mCurrentDevice ) != null ; screenShotItem.setEnabled ( deviceEnabled ) ; explorerItem.setEnabled ( deviceEnabled ) ; processItem.setEnabled ( deviceEnabled ) ; deviceStateItem.setEnabled ( deviceEnabled ) ; appStateItem.setEnabled ( deviceEnabled ) ; radioStateItem.setEnabled ( deviceEnabled ) ; logCatItem.setEnabled ( deviceEnabled ) ; screenRecordItem.setEnabled ( ( ( ( mCurrentDevice ) != null ) && ( mCurrentDevice.supportsFeature ( IDevice.Feature.SCREEN_RECORD ) ) ) ) ; }
Source:
public void copyFromUnchecked ( short [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFromUnchecked" ) ; 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 ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , short [ ] d ) { copy1DRangeFromUnchecked ( off , count , ( ( java.lang.Object ) ( d ) ) , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
private static boolean isAsymmetric ( java.lang.String algorithm ) { return libcore.javax.crypto.CipherTest.getBaseAlgoritm ( algorithm ) . equals ( "RSA" ) ; }

Target:
private static int getExpectedOutputSize ( java.lang.String algorithm , java.security.Key key ) { final int firstSlash = algorithm.indexOf ( '/' ) ; if ( firstSlash != ( - 1 ) ) { algorithm = algorithm.substring ( 0 , firstSlash ) ; } if ( "RSA" . equals ( libcore.javax.crypto.CipherTest.getBaseAlgorithm ( algorithm ) ) ) { return libcore.javax.crypto.CipherTest.getRSAModulusSize ( key ) ; } java.lang.Integer expected = libcore.javax.crypto.CipherTest.EXPECTED_OUTPUT_SIZE.get ( algorithm ) ; assertNotNull ( algorithm , expected ) ; return expected ; }
Source:
public void testAesGcm96Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.getKey ( 288 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , null , authCrypt , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , null , authCrypt , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha384Udp4UdpEncap ( ) 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.IPV4_LOOPBACK , crypt , auth , true , 1 , false ) ; }
Source:
public java.lang.String createNetworkSpecifier ( @ android.annotation.Nullable android.net.wifi.aware.PeerHandle peerHandle , @ android.annotation.Nullable byte [ ] token ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "createNetworkSpecifier: called on terminated session" ) ; return null ; } else { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "createNetworkSpecifier: called post GC on WifiAwareManager" ) ; return null ; } int role = ( ( this ) instanceof android.net.wifi.aware.SubscribeDiscoverySession ) ? WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_INITIATOR : WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_RESPONDER ; return mgr.createNetworkSpecifier ( mClientId , role , mSessionId , peerHandle , token ) ; } }

Target:
public java.lang.String createNetworkSpecifier ( @ android.annotation.Nullable android.net.wifi.aware.PeerHandle peerHandle , @ android.annotation.Nullable byte [ ] token ) { return createNetworkSpecifierOpen ( peerHandle ) ; }
Source:
public void setSuppServiceNotifications ( boolean enable , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION , result ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( ( enable ? 1 : 0 ) ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void setSuppServiceNotifications ( boolean enable , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION , result , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( ( enable ? 1 : 0 ) ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
public void testAbiOnlyWithNoMatch ( ) { java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "foo" ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "bar" ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertNull ( result ) ; }

Target:
public void testMultiFilterWithNoMatch ( ) { java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 320 , "zzz" , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 160 , "bar" , 2 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 320 , "foo" , 3 ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertNull ( result ) ; }
Source:
public void testGetmtime_NonExist_Failure ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to import key when unlocked" , mKeyStore.importKey ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.PRIVKEY_BYTES , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertEquals ( "-1 should be returned for non-existent key" , ( - 1L ) , mKeyStore.getmtime ( android.security.KeyStoreTest.TEST_KEYNAME2 ) ) ; }

Target:
public void testGetmtime_NonExist_Failure ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.onUserPasswordChanged ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to import key when unlocked" , mKeyStore.importKey ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.PRIVKEY_BYTES , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertEquals ( "-1 should be returned for non-existent key" , ( - 1L ) , mKeyStore.getmtime ( android.security.KeyStoreTest.TEST_KEYNAME2 ) ) ; }
Source:
private com.android.jack.dx.dex.file.ClassDefItem createClassDefItem ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws com.android.jack.ir.ast.JTypeLookupException { com.android.jack.dx.rop.cst.CstType thisClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( type ) ; com.android.jack.dx.rop.cst.CstType superclassType = com.android.jack.backend.dex.ClassDefItemBuilder.createSuperClass ( type ) ; int accessFlags = getDxAccessFlagsForType ( type ) ; com.android.jack.dx.rop.type.TypeList interfaces = com.android.jack.backend.dex.ClassDefItemBuilder.createInterfacesList ( type ) ; com.android.jack.dx.rop.cst.CstString sourceFile = null ; if ( emitSourceFileInfo ) { sourceFile = com.android.jack.backend.dex.ClassDefItemBuilder.createSourceFile ( type ) ; } com.android.jack.dx.dex.file.ClassDefItem classDefItem = new com.android.jack.dx.dex.file.ClassDefItem ( thisClass , accessFlags , superclassType , interfaces , sourceFile ) ; return classDefItem ; }

Target:
private com.android.jack.dx.dex.file.ClassDefItem createClassDefItem ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws com.android.jack.ir.ast.JTypeLookupException { com.android.jack.dx.rop.cst.CstString sourceFile = null ; if ( emitSourceFileInfo ) { sourceFile = com.android.jack.backend.dex.ClassDefItemBuilder.createSourceFile ( type ) ; } return new com.android.jack.dx.dex.file.ClassDefItem ( com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( type ) , getDxAccessFlagsForType ( type ) , com.android.jack.backend.dex.ClassDefItemBuilder.createSuperClass ( type ) , com.android.jack.backend.dex.ClassDefItemBuilder.createInterfacesList ( type ) , sourceFile ) ; }
Source:
public void putAll ( java.util.Map < ? extends K , ? extends V > t ) { for ( K key : t.keySet ( ) ) { put ( key , t.get ( key ) ) ; } }

Target:
public void putAll ( java.util.Map < ? extends K , ? extends V > t ) { for ( java.util.Map.Entry < ? extends K , ? extends V > entry : t.entrySet ( ) ) { put ( entry.getKey ( ) , entry.getValue ( ) ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JThisRef jThisRef ) { com.android.jack.ir.ast.JThis jThis = targetMethod.getThis ( ) ; assert jThis != null ; assert jThis.getType ( ) . equals ( jThisRef.getType ( ) ) ; expression = new com.android.jack.ir.ast.JThisRef ( jThisRef.getSourceInfo ( ) , jThis ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JThisRef jThisRef ) { com.android.jack.ir.ast.JThis jThis = targetMethod.getThis ( ) ; assert jThis != null ; assert jThis.getType ( ) . isSameType ( jThisRef.getType ( ) ) ; expression = new com.android.jack.ir.ast.JThisRef ( jThisRef.getSourceInfo ( ) , jThis ) ; return false ; }
Source:
void bringToForeground ( boolean showDialpad ) { if ( ! ( mInCallServices.isEmpty ( ) ) ) { for ( com.android.internal.telecom.IInCallService inCallService : mInCallServices.values ( ) ) { try { inCallService.bringToForeground ( showDialpad ) ; } catch ( android.os.RemoteException ignored ) { } } } else { com.android.server.telecom.Log.w ( this , "Asking to bring unbound in-call UI to foreground." ) ; } }

Target:
void bringToForeground ( boolean showDialpad ) { if ( ! ( mInCallServices.isEmpty ( ) ) ) { for ( com.android.internal.telecom.IInCallService inCallService : mInCallServices.values ( ) ) { try { inCallService.bringToForeground ( showDialpad ) ; } catch ( android.os.RemoteException ignored ) { } } } else { android.telecom.Log.w ( this , "Asking to bring unbound in-call UI to foreground." ) ; } }
Source:
public void testAPInterfaceFailedWhenSwitchingToApMode ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( mWificond ) ; when ( mWificond.createApInterface ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; }

Target:
public void testEnterSoftApModeActiveWhenAlreadyInSoftApMode ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( mWificond ) ; when ( mWificond.createApInterface ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( null ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachinePrimeTest.SOFT_AP_MODE_STATE_STRING , mWifiStateMachinePrime.getCurrentMode ( ) ) ; enterSoftApActiveMode ( ) ; }
Source:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object object ) { if ( object instanceof com.google.common.collect.Multimap ) { com.google.common.collect.Multimap < ? , ? > that = ( ( com.google.common.collect.Multimap < ? , ? > ) ( object ) ) ; return this . map.equals ( that.asMap ( ) ) ; } return false ; }

Target:
com.google.common.collect.ImmutableCollection < java.util.Map.Entry < K , V > > createEntries ( ) { return new com.google.common.collect.ImmutableMultimap.EntryCollection < K , V > ( this ) ; }
Source:
public static < E > java.util.Set < java.util.Set < E > > powerSet ( java.util.Set < E > set ) { com.google.common.collect.ImmutableSet < E > input = com.google.common.collect.ImmutableSet.copyOf ( set ) ; com.google.common.base.Preconditions.checkArgument ( ( ( input.size ( ) ) <= 30 ) , "Too many elements to create power set: %s > 30" , input.size ( ) ) ; return new com.google.common.collect.Sets.PowerSet < E > ( input ) ; }

Target:
public boolean contains ( @ javax.annotation.Nullable java.lang.Object o ) { java.lang.Integer index = inputSet.get ( o ) ; return ( index != null ) && ( ( ( mask ) & ( 1 << index ) ) != 0 ) ; }
Source:
protected boolean stop ( ) { if ( com.android.bluetooth.a2dpsink.A2dpSinkService.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.A2dpSinkService.TAG , "stop()" ) ; } if ( ( mStateMachine ) != null ) { mStateMachine.doQuit ( ) ; } android.content.Intent stopIntent = new android.content.Intent ( this , com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.class ) ; stopService ( stopIntent ) ; return true ; }

Target:
protected boolean stop ( ) { if ( com.android.bluetooth.a2dpsink.A2dpSinkService.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.A2dpSinkService.TAG , "stop()" ) ; } com.android.bluetooth.a2dpsink.A2dpSinkService.setA2dpSinkService ( null ) ; if ( ( mStateMachine ) != null ) { mStateMachine.doQuit ( ) ; } android.content.Intent stopIntent = new android.content.Intent ( this , com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.class ) ; stopService ( stopIntent ) ; return true ; }
Source:
public static void promptToLogIn ( final java.lang.String message ) { if ( ! ( com.google.gct.login.GoogleLogin.instance.isLoggedIn ( ) ) ) { com.intellij.openapi.application.Application application = com.intellij.openapi.application.ApplicationManager.getApplication ( ) ; java.lang.Runnable promptToLoginTask = new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.google.gct.login.GoogleLogin.getInstance ( ) . logIn ( message ) ; } } ; if ( application.isDispatchThread ( ) ) { promptToLoginTask.run ( ) ; } else { application.invokeAndWait ( promptToLoginTask , com.intellij.openapi.application.ModalityState.defaultModalityState ( ) ) ; } } }

Target:
public void notifyStatusIndicator ( ) { if ( ( myButton ) != null ) { com.intellij.openapi.application.ApplicationManager.getApplication ( ) . invokeLater ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { myButton.updateUi ( ) ; } } ) ; } }
Source:
public boolean cleanup ( ) { if ( com.android.bluetooth.mapclient.MapClientService.DBG ) { android.util.Log.d ( com.android.bluetooth.mapclient.MapClientService.TAG , "cleanup()" ) ; } return true ; }

Target:
protected boolean start ( ) { android.util.Log.e ( com.android.bluetooth.mapclient.MapClientService.TAG , "start()" ) ; com.android.bluetooth.mapclient.MapClientService.setService ( this ) ; if ( ( mMnsServer ) == null ) { mMnsServer = com.android.bluetooth.mapclient.MapUtils.newMnsServiceInstance ( this ) ; } mAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; mStartError = false ; android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( BluetoothDevice.ACTION_SDP_RECORD ) ; filter.addAction ( BluetoothDevice.ACTION_ACL_DISCONNECTED ) ; registerReceiver ( mMapReceiver , filter ) ; removeUncleanAccounts ( ) ; return ! ( mStartError ) ; }
Source:
public static com.android.dialer.app.calllog.IntentProvider getDuoVideoIntentProvider ( java.lang.String number ) { return new com.android.dialer.app.calllog.IntentProvider ( ) { @ java.lang.Override public android.content.Intent getIntent ( android.content.Context context ) { return com.android.dialer.duo.DuoComponent.get ( context ) . getDuo ( ) . getCallIntent ( number ) . orNull ( ) ; } } ; }

Target:
public static com.android.dialer.app.calllog.IntentProvider getDuoVideoIntentProvider ( java.lang.String number , boolean isNonContact ) { return new com.android.dialer.app.calllog.IntentProvider ( ) { @ java.lang.Override public android.content.Intent getIntent ( android.content.Context context ) { return com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , CallInitiationType.Type.CALL_LOG ) . setIsDuoCall ( true ) . setIsVideoCall ( true ) ) ; } @ java.lang.Override public void logInteraction ( android.content.Context context ) { com.android.dialer.logging.Logger.get ( context ) . logImpression ( DialerImpression.Type.LIGHTBRINGER_VIDEO_REQUESTED_FROM_CALL_LOG ) ; if ( isNonContact ) { com.android.dialer.logging.Logger.get ( context ) . logImpression ( DialerImpression.Type.LIGHTBRINGER_NON_CONTACT_VIDEO_REQUESTED_FROM_CALL_LOG ) ; } } } ; }
Source:
public void test_JarFile_Modified_Manifest_MainAttributes ( ) throws java.io.IOException { java.lang.String modifiedJarName = "Modified_Manifest_MainAttributes.jar" ; tests.support.resource.Support_Resources.copyFile ( resources , null , modifiedJarName ) ; java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( new java.io.File ( resources , modifiedJarName ) , true ) ; java.util.Enumeration < java.util.jar.JarEntry > entries = jarFile.entries ( ) ; while ( entries.hasMoreElements ( ) ) { java.util.zip.ZipEntry zipEntry = entries.nextElement ( ) ; try { jarFile.getInputStream ( zipEntry ) ; fail ( "SecurityException expected" ) ; } catch ( java.lang.SecurityException e ) { } } }

Target:
public void test_JarFile_Modified_SF_EntryAttributes ( ) throws java.io.IOException { java.lang.String modifiedJarName = "Modified_SF_EntryAttributes.jar" ; java.io.File file = tests.support.resource.Support_Resources.copyFile ( resources , null , modifiedJarName ) ; try ( java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( file , true ) ) { java.util.Enumeration < java.util.jar.JarEntry > entries = jarFile.entries ( ) ; while ( entries.hasMoreElements ( ) ) { java.util.zip.ZipEntry zipEntry = entries.nextElement ( ) ; try { jarFile.getInputStream ( zipEntry ) ; fail ( "should throw Security Exception" ) ; } catch ( java.lang.SecurityException e ) { } } } }
Source:
public static java.lang.String normalizeNumber ( java.lang.String number , int offset , com.android.dialer.smartdial.SmartDialMap map ) { final java.lang.StringBuilder s = new java.lang.StringBuilder ( ) ; for ( int i = offset ; i < ( number.length ( ) ) ; i ++ ) { char ch = number.charAt ( i ) ; if ( map.isValidDialpadNumericChar ( ch ) ) { s.append ( ch ) ; } } return s.toString ( ) ; }

Target:
public static java.lang.String normalizeNumber ( android.content.Context context , java.lang.String number , int offset ) { final java.lang.StringBuilder s = new java.lang.StringBuilder ( ) ; for ( int i = offset ; i < ( number.length ( ) ) ; i ++ ) { char ch = number.charAt ( i ) ; if ( com.android.dialer.smartdial.CompositeSmartDialMap.isValidDialpadNumericChar ( context , ch ) ) { s.append ( ch ) ; } } return s.toString ( ) ; }
Source:
sun.nio.ch.NativeObject getObject ( int offset ) { long newAddress = 0L ; switch ( sun.nio.ch.NativeObject.addressSize ( ) ) { case 8 : newAddress = sun.nio.ch.NativeObject.unsafe.getLong$ ( ( offset + ( address ) ) ) ; break ; case 4 : newAddress = ( sun.nio.ch.NativeObject.unsafe.getInt$ ( ( offset + ( address ) ) ) ) & - 1 ; break ; default : throw new java.lang.InternalError ( "Address size not supported" ) ; } return new sun.nio.ch.NativeObject ( newAddress ) ; }

Target:
sun.nio.ch.NativeObject getObject ( int offset ) { long newAddress = 0L ; switch ( sun.nio.ch.NativeObject.addressSize ( ) ) { case 8 : newAddress = sun.nio.ch.NativeObject.unsafe.getLong ( ( offset + ( address ) ) ) ; break ; case 4 : newAddress = ( sun.nio.ch.NativeObject.unsafe.getInt ( ( offset + ( address ) ) ) ) & - 1 ; break ; default : throw new java.lang.InternalError ( "Address size not supported" ) ; } return new sun.nio.ch.NativeObject ( newAddress ) ; }
Source:
public int tether ( java.lang.String iface ) { try { return mService.tether ( iface ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public int untether ( java.lang.String iface ) { try { java.lang.String pkgName = mContext.getOpPackageName ( ) ; android.util.Log.i ( android.net.ConnectivityManager.TAG , ( "untether caller:" + pkgName ) ) ; return mService.untether ( iface , pkgName ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
private void assertFailureStackContainsThisClass ( java.lang.Throwable e ) { assertTrue ( com.google.common.base.Throwables.getStackTraceAsString ( e ) . contains ( getClass ( ) . getSimpleName ( ) . toString ( ) ) ) ; }

Target:
public void noMatchingViewException ( ) { expectedException.expect ( android.support.test.espresso.NoMatchingViewException.class ) ; expectedException.expect ( stackTraceContainsThisClass ( ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.base.DefaultFailureHandlerTest.withMatchesThatReturns ( false ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( org.hamcrest.Matchers.not ( android.support.test.espresso.matcher.ViewMatchers.isDisplayed ( ) ) ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testfindSpecial_invokeSuperBehaviour ( ) ; Main.testfindSpecial_invokeDirectBehaviour ( ) ; Main.testExceptionDetailMessages ( ) ; Main.testfindVirtual ( ) ; Main.testfindStatic ( ) ; Main.testUnreflects ( ) ; Main.testAsType ( ) ; Main.testConstructors ( ) ; Main.testStringConstructors ( ) ; Main.testReturnValueConversions ( ) ; Main.testVariableArity ( ) ; Main.testVariableArity_MethodHandles_bind ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testfindSpecial_invokeSuperBehaviour ( ) ; Main.testfindSpecial_invokeDirectBehaviour ( ) ; Main.testExceptionDetailMessages ( ) ; Main.testfindVirtual ( ) ; Main.testfindStatic ( ) ; Main.testUnreflects ( ) ; Main.testAsType ( ) ; Main.testConstructors ( ) ; Main.testStringConstructors ( ) ; Main.testReturnValueConversions ( ) ; Main.testVariableArity ( ) ; Main.testVariableArity_MethodHandles_bind ( ) ; Main.testRevealDirect ( ) ; }
Source:
public void setHs20 ( boolean hs20 ) { if ( hs20 ) { doBooleanCommand ( "SET HS20 1" ) ; } else { doBooleanCommand ( "SET HS20 0" ) ; } }

Target:
public boolean setCountryCode ( java.lang.String countryCode ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.setCountryCode ( countryCode ) ; } else { if ( countryCode != null ) { return doBooleanCommand ( ( "DRIVER COUNTRY " + ( countryCode.toUpperCase ( java.util.Locale.ROOT ) ) ) ) ; } else { return doBooleanCommand ( "DRIVER COUNTRY" ) ; } } }
Source:
private static java.util.Set < com.android.dialer.DialerPhoneNumber > getDialerPhoneNumbers ( java.util.Set < com.android.dialer.DialerPhoneNumber > phoneNumbers , java.lang.String number ) { java.util.Set < com.android.dialer.DialerPhoneNumber > matches = new android.support.v4.util.ArraySet ( ) ; for ( com.android.dialer.DialerPhoneNumber phoneNumber : phoneNumbers ) { if ( com.android.dialer.phonelookup.cp2.Cp2PhoneLookup.getNormalizedNumber ( phoneNumber ) . equals ( number ) ) { matches.add ( phoneNumber ) ; } } com.android.dialer.common.Assert.checkArgument ( ( ( matches.size ( ) ) > 0 ) , ( "Couldn't find DialerPhoneNumber for number: " + number ) ) ; return matches ; }

Target:
java.util.Set < com.android.dialer.DialerPhoneNumber > dialerPhoneNumbersForUnformattable ( java.lang.String unformattableNumber ) { return unformattableNumbersToDialerPhoneNumbers.get ( unformattableNumber ) ; }
Source:
public static void doTest ( ) throws java.lang.Exception { java.util.ArrayList < java.lang.Object > l = new java.util.ArrayList < > ( 100 ) ; Main.setupObjectFreeCallback ( ) ; Main.enableFreeTracking ( true ) ; Main.run ( l ) ; Main.enableFreeTracking ( false ) ; Main.run ( l ) ; }

Target:
public static void doTest ( ) throws java.lang.Exception { java.util.ArrayList < java.lang.Object > l = new java.util.ArrayList < > ( 100 ) ; Main.setupObjectFreeCallback ( ) ; Main.enableFreeTracking ( true ) ; Main.run ( l ) ; Main.enableFreeTracking ( false ) ; Main.run ( l ) ; Main.enableFreeTracking ( true ) ; Main.stress ( ) ; }
Source:
public void setOutputFile ( @ com.android.annotations.NonNull java.io.File outputFile ) { com.android.build.gradle.internal.variant.ApkVariantOutputData variantOutputData = getApkVariantData ( ) . getOutputs ( ) . get ( 0 ) ; if ( ( variantOutputData.zipAlignTask ) != null ) { variantOutputData.zipAlignTask.setOutputFile ( outputFile ) ; } else { variantOutputData.packageApplicationTask.setOutputFile ( outputFile ) ; } variantOutputData.setOutputFile ( outputFile ) ; }

Target:
public com.android.build.gradle.tasks.PackageApplication getPackageApplication ( ) { if ( ( outputs.size ( ) ) > 1 ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "More than one output on variant '%s', cannot call getPackageApplication() on it. Call it on one of its outputs instead." , getName ( ) ) ) ; } plugin.displayDeprecationWarning ( "variant.getPackageApplication() is deprecated. Call it on one of variant.getOutputs() instead." ) ; return ( ( com.android.build.gradle.internal.api.ApkVariantOutputImpl ) ( outputs.get ( 0 ) ) ) . getPackageApplication ( ) ; }
Source:
public final char getChar ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.CHAR ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } char result = ( ( char ) ( this . block.peekShort ( ( ( offset ) + ( position ) ) , order ) ) ) ; position = newPosition ; return result ; }

Target:
public final short getShort ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.SHORT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } short result = this . block.peekShort ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }
Source:
private void checkCacheContent ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType checkedType , @ javax.annotation.Nonnull java.lang.String signature , @ javax.annotation.CheckForNull com.android.jack.ir.ast.JType defined , @ javax.annotation.Nonnull java.lang.Class < ? > clazz , @ javax.annotation.Nonnull java.util.Map < java.lang.String , ? extends com.android.jack.ir.ast.JType > cache ) { if ( ! ( clazz.isInstance ( defined ) ) ) { com.android.jack.ir.ast.JType phantom = cache.get ( signature ) ; if ( ( phantom != null ) && ( ! ( phantom.equals ( checkedType ) ) ) ) { throw com.android.jack.lookup.JPhantomLookup.getCheckError ( checkedType , phantom ) ; } } }

Target:
private void checkCacheContent ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType checkedType , @ javax.annotation.Nonnull java.lang.String signature , @ javax.annotation.CheckForNull com.android.jack.ir.ast.JType defined , @ javax.annotation.Nonnull java.lang.Class < ? > clazz , @ javax.annotation.Nonnull java.util.Map < java.lang.String , ? extends com.android.jack.ir.ast.JType > cache ) { if ( ! ( clazz.isInstance ( defined ) ) ) { com.android.jack.ir.ast.JType phantom = cache.get ( signature ) ; if ( ( phantom != null ) && ( ! ( phantom.isSameType ( checkedType ) ) ) ) { throw com.android.jack.lookup.JPhantomLookup.getCheckError ( checkedType , phantom ) ; } } }
Source:
static com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSet getResCfs ( @ com.android.annotations.NonNull org.eclipse.core.resources.IProject project ) { com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSet set = new com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSet ( "resources" , ( ( com.android.SdkConstants.FD_RES ) + "/**" ) , ( ( com.android.SdkConstants.FD_ASSETS ) + "/**" ) ) ; java.lang.String path = com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSetHelper.getRelativeAndroidOut ( project ) ; set.setOutput ( ( ( path + '/' ) + ( com.android.ide.eclipse.adt.AdtConstants.FN_RESOURCES_AP_ ) ) ) ; return set ; }

Target:
static com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSet getResCfs ( @ com.android.annotations.NonNull org.eclipse.core.resources.IProject project ) { java.lang.String path = com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSetHelper.getRelativeAndroidOut ( project ) ; com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSet set = new com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSet ( "resources" , ( ( com.android.SdkConstants.FD_RES ) + "/**" ) , ( ( com.android.SdkConstants.FD_ASSETS ) + "/**" ) , ( ( ( path + '/' ) + ( com.android.ide.eclipse.adt.AdtConstants.WS_BIN_RELATIVE_BC ) ) + "/**" ) ) ; set.setOutput ( ( ( path + '/' ) + ( com.android.ide.eclipse.adt.AdtConstants.FN_RESOURCES_AP_ ) ) ) ; return set ; }
Source:
private void initSpacingInfo ( com.ibm.icu.impl.CurrencyData.CurrencySpacingInfo spcInfo ) { currencySpcBeforeSym [ com.ibm.icu.text.DecimalFormatSymbols.CURRENCY_SPC_CURRENCY_MATCH ] = spcInfo.beforeCurrencyMatch ; currencySpcBeforeSym [ com.ibm.icu.text.DecimalFormatSymbols.CURRENCY_SPC_SURROUNDING_MATCH ] = spcInfo.beforeContextMatch ; currencySpcBeforeSym [ com.ibm.icu.text.DecimalFormatSymbols.CURRENCY_SPC_INSERT ] = spcInfo.beforeInsert ; currencySpcAfterSym [ com.ibm.icu.text.DecimalFormatSymbols.CURRENCY_SPC_CURRENCY_MATCH ] = spcInfo.afterCurrencyMatch ; currencySpcAfterSym [ com.ibm.icu.text.DecimalFormatSymbols.CURRENCY_SPC_SURROUNDING_MATCH ] = spcInfo.afterContextMatch ; currencySpcAfterSym [ com.ibm.icu.text.DecimalFormatSymbols.CURRENCY_SPC_INSERT ] = spcInfo.afterInsert ; }

Target:
private void initSpacingInfo ( com.ibm.icu.impl.CurrencyData.CurrencySpacingInfo spcInfo ) { currencySpcBeforeSym = spcInfo.getBeforeSymbols ( ) ; currencySpcAfterSym = spcInfo.getAfterSymbols ( ) ; }
Source:
public void attachSession ( com.android.ims.internal.ImsCallSession session ) throws com.android.ims.ImsException { logi ( ( "attachSession :: session=" + session ) ) ; synchronized ( mLockObj ) { mSession = session ; try { mSession.setListener ( createCallSessionListener ( ) ) ; } catch ( java.lang.Throwable t ) { loge ( "attachSession :: " , t ) ; throwImsException ( t , 0 ) ; } } }

Target:
public void attachSession ( android.telephony.ims.ImsCallSession session ) throws com.android.ims.ImsException { logi ( ( "attachSession :: session=" + session ) ) ; synchronized ( mLockObj ) { mSession = session ; try { mSession.setListener ( createCallSessionListener ( ) ) ; } catch ( java.lang.Throwable t ) { loge ( "attachSession :: " , t ) ; throwImsException ( t , 0 ) ; } } }
Source:
com.android.resources.ScreenOrientation getOrientation ( com.android.ide.eclipse.adt.internal.sdk.LayoutDevice.DeviceConfig config ) { com.android.ide.common.resources.configuration.ScreenOrientationQualifier qualifier = config.getConfig ( ) . getScreenOrientationQualifier ( ) ; com.android.resources.ScreenOrientation orientation = null ; if ( qualifier != null ) { orientation = qualifier.getValue ( ) ; } if ( orientation == null ) { orientation = com.android.resources.ScreenOrientation.PORTRAIT ; } return orientation ; }

Target:
com.android.resources.ScreenOrientation getOrientation ( com.android.sdklib.devices.State state ) { com.android.ide.common.resources.configuration.FolderConfiguration config = com.android.ide.common.resources.configuration.DeviceConfigHelper.getFolderConfig ( state ) ; com.android.resources.ScreenOrientation orientation = null ; if ( ( config != null ) && ( ( config.getScreenOrientationQualifier ( ) ) != null ) ) { orientation = config.getScreenOrientationQualifier ( ) . getValue ( ) ; } if ( orientation == null ) { orientation = com.android.resources.ScreenOrientation.PORTRAIT ; } return orientation ; }
Source:
public void test_getJarFileURL ( ) throws java.lang.Exception { java.net.URL fileURL = new java.net.URL ( tests.api.java.net.JarURLConnectionTest.BASE ) ; java.net.URL u = new java.net.URL ( ( ( "jar:" + ( tests.api.java.net.JarURLConnectionTest.BASE ) ) + "!/plus.bmp" ) ) ; juc = ( ( java.net.JarURLConnection ) ( u.openConnection ( ) ) ) ; assertEquals ( "Returned incorrect file URL" , fileURL , juc.getJarFileURL ( ) ) ; java.net.URL url = new java.net.URL ( "jar:file:///bar.jar!/foo.jar!/Bugs/HelloWorld.class" ) ; assertEquals ( "file:/bar.jar" , ( ( java.net.JarURLConnection ) ( url.openConnection ( ) ) ) . getJarFileURL ( ) . toString ( ) ) ; }

Target:
public void test_getManifest ( ) throws java.lang.Exception { java.net.URL u = copyAndOpenResourceStream ( "lf.jar" , "plus.bmp" ) ; juc = ( ( java.net.JarURLConnection ) ( u.openConnection ( ) ) ) ; java.util.jar.Manifest mf = juc.getManifest ( ) ; assertNotNull ( mf ) ; assertEquals ( mf , juc.getManifest ( ) ) ; assertNotSame ( mf , juc.getManifest ( ) ) ; assertEquals ( juc.getMainAttributes ( ) , mf.getMainAttributes ( ) ) ; }
Source:
public void testV1SignedAttrsMultipleGoodDigests ( ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verify ( "v1-only-with-signed-attrs-multiple-good-digests.apk" ) , Issue.JAR_SIG_PARSE_EXCEPTION ) ; }

Target:
public void testV1SignedAttrsMultipleGoodDigests ( ) throws java.lang.Exception { java.lang.String apk = "v1-only-with-signed-attrs-multiple-good-digests.apk" ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verifyForMaxSdkVersion ( apk , ( ( com.android.apksig.internal.util.AndroidSdkVersion.N ) - 1 ) ) , Issue.JAR_SIG_PARSE_EXCEPTION ) ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verifyForMinSdkVersion ( apk , AndroidSdkVersion.N ) , Issue.JAR_SIG_PARSE_EXCEPTION ) ; apk = "v1-only-with-signed-attrs-signerInfo1-multiple-good-digests-signerInfo2-good.apk" ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verifyForMaxSdkVersion ( apk , ( ( com.android.apksig.internal.util.AndroidSdkVersion.N ) - 1 ) ) , Issue.JAR_SIG_PARSE_EXCEPTION ) ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verifyForMinSdkVersion ( apk , AndroidSdkVersion.N ) , Issue.JAR_SIG_PARSE_EXCEPTION ) ; }
Source:
public void testBadSystemFile ( ) throws java.lang.Exception { java.io.File doesNotExist = new java.io.File ( testSystemTzDataDir , "doesNotExist" ) ; libcore.tzdata.update2.TimeZoneBundleInstaller brokenSystemInstaller = new libcore.tzdata.update2.TimeZoneBundleInstaller ( "TimeZoneBundleInstallerTest" , doesNotExist , testInstallDir ) ; libcore.tzdata.update2.TimeZoneBundle tzData = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , "001" ) ; assertFalse ( brokenSystemInstaller.install ( tzData.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstall_badSystemFile ( ) throws java.lang.Exception { java.io.File doesNotExist = new java.io.File ( testSystemTzDataDir , "doesNotExist" ) ; libcore.tzdata.update2.TimeZoneBundleInstaller brokenSystemInstaller = new libcore.tzdata.update2.TimeZoneBundleInstaller ( "TimeZoneBundleInstallerTest" , doesNotExist , testInstallDir ) ; libcore.tzdata.update2.TimeZoneBundle tzData = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , "001" ) ; try { brokenSystemInstaller.install ( tzData.getBytes ( ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } assertNoContentInstalled ( ) ; }
Source:
public void stopAdvertising ( final android.bluetooth.le.AdvertiseCallback callback ) { synchronized ( mLegacyAdvertisers ) { if ( callback == null ) { throw new java.lang.IllegalArgumentException ( "callback cannot be null" ) ; } android.bluetooth.le.AdvertisingSetCallback wrapper = mLegacyAdvertisers.get ( callback ) ; if ( wrapper == null ) return ; stopAdvertisingSet ( wrapper ) ; } }

Target:
public void stopAdvertising ( final android.bluetooth.le.AdvertiseCallback callback ) { synchronized ( mLegacyAdvertisers ) { if ( callback == null ) { throw new java.lang.IllegalArgumentException ( "callback cannot be null" ) ; } android.bluetooth.le.AdvertisingSetCallback wrapper = mLegacyAdvertisers.get ( callback ) ; if ( wrapper == null ) return ; stopAdvertisingSet ( wrapper ) ; mLegacyAdvertisers.remove ( callback ) ; } }
Source:
public final void actionPerformed ( final com.intellij.ui.tabs.impl.AnActionEvent e ) { com.intellij.ui.tabs.impl.JBTabsImpl tabs = e.getData ( com.intellij.ui.tabs.impl.JBTabsImpl.NAVIGATION_ACTIONS_KEY ) ; tabs = findNavigatableTabs ( tabs ) ; if ( tabs == null ) return ; final int index = tabs.myVisibleInfos.indexOf ( tabs.getSelectedInfo ( ) ) ; if ( index == ( - 1 ) ) return ; _actionPerformed ( e , tabs , index ) ; }

Target:
public final void actionPerformed ( final com.intellij.ui.tabs.impl.AnActionEvent e ) { com.intellij.ui.tabs.impl.JBTabsImpl tabs = e.getData ( com.intellij.ui.tabs.impl.JBTabsImpl.NAVIGATION_ACTIONS_KEY ) ; tabs = findNavigatableTabs ( tabs ) ; if ( tabs == null ) return ; final int index = tabs.getVisibleInfos ( ) . indexOf ( tabs.getSelectedInfo ( ) ) ; if ( index == ( - 1 ) ) return ; _actionPerformed ( e , tabs , index ) ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , byte [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , d.length , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , byte [ ] d ) { copy1DRangeFromUnchecked ( off , count , ( ( java.lang.Object ) ( d ) ) , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
public com.google.common.collect.SortedMultiset < E > headMultiset ( E upperBound , com.google.common.collect.BoundType boundType ) { return com.google.common.collect.Multisets.unmodifiableSortedMultiset ( delegate ( ) . headMultiset ( upperBound , boundType ) ) ; }

Target:
public int count ( @ javax.annotation.Nullable java.lang.Object element ) { int count = unfiltered.count ( element ) ; if ( count > 0 ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) E e = ( ( E ) ( element ) ) ; return predicate.apply ( e ) ? count : 0 ; } return 0 ; }
Source:
public com.android.sched.util.log.tracer.AbstractTracer.TracerEvent start ( @ javax.annotation.Nonnull com.android.sched.util.log.EventType type ) { eventCount.incrementAndGet ( ) ; java.util.Stack < com.android.sched.util.log.tracer.AbstractTracer.TracerEvent > threadPendingEvents = pendingEvents.get ( ) ; com.android.sched.util.log.tracer.AbstractTracer.TracerEvent parent = null ; if ( ! ( threadPendingEvents.isEmpty ( ) ) ) { parent = threadPendingEvents.peek ( ) ; } com.android.sched.util.log.tracer.AbstractTracer.TracerEvent newEvent = new com.android.sched.util.log.tracer.AbstractTracer.TracerEvent ( parent , type ) ; threadPendingEvents.push ( newEvent ) ; return newEvent ; }

Target:
public com.android.sched.util.log.tracer.AbstractTracer.TracerEvent open ( @ javax.annotation.Nonnull com.android.sched.util.log.EventType type ) { eventCount.incrementAndGet ( ) ; java.util.Stack < com.android.sched.util.log.tracer.AbstractTracer.TracerEvent > threadPendingEvents = pendingEvents.get ( ) ; com.android.sched.util.log.tracer.AbstractTracer.TracerEvent parent = null ; if ( ! ( threadPendingEvents.isEmpty ( ) ) ) { parent = threadPendingEvents.peek ( ) ; } com.android.sched.util.log.tracer.AbstractTracer.TracerEvent newEvent = new com.android.sched.util.log.tracer.AbstractTracer.TracerEvent ( parent , type ) ; threadPendingEvents.push ( newEvent ) ; return newEvent ; }
Source:
private void writeOriginalTypeInfoMarker ( ) throws java.io.IOException { if ( com.android.jill.frontend.java.AsmHelper.hasValidGenericSignature ( currentMethod ) ) { writer.writeKeyword ( Token.GENERIC_SIGNATURE ) ; writer.writeOpen ( ) ; writer.writeString ( currentMethod.signature ) ; writer.writeClose ( ) ; } else { writer.writeNull ( ) ; } }

Target:
private void writeGenericSignatureMarker ( ) throws java.io.IOException { if ( com.android.jill.frontend.java.AsmHelper.hasValidGenericSignature ( currentMethod ) ) { writer.writeKeyword ( Token.GENERIC_SIGNATURE ) ; writer.writeOpen ( ) ; writer.writeString ( currentMethod.signature ) ; writer.writeClose ( ) ; } }
Source:
public void destroyAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , long ceDataInode ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.destroyAppData ( uuid , packageName , userId , flags , ceDataInode ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void destroyAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , long ceDataInode ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.destroyAppData ( uuid , packageName , userId , flags , ceDataInode ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void transferCardReaderStatusResponse ( int token , int resultCode , int cardReaderStatus ) { android.util.Log.d ( com.android.bluetooth.sap.SapRilReceiver.TAG , ( ( ( ( ( "transferCardReaderStatusResponse: token " + token ) + " resultCode " ) + resultCode ) + " cardReaderStatus " ) + cardReaderStatus ) ) ; com.android.bluetooth.sap.SapMessage sapMessage = new com.android.bluetooth.sap.SapMessage ( SapMessage.ID_TRANSFER_CARD_READER_STATUS_RESP ) ; sapMessage.setResultCode ( resultCode ) ; if ( resultCode == ( SapMessage.RESULT_OK ) ) { sapMessage.setCardReaderStatus ( cardReaderStatus ) ; } removeOngoingReqAndSendMessage ( token , sapMessage ) ; }

Target:
public void transferCardReaderStatusResponse ( int token , int resultCode , int cardReaderStatus ) { android.util.Log.d ( com.android.bluetooth.sap.SapRilReceiver.TAG , ( ( ( ( ( "transferCardReaderStatusResponse: token " + token ) + " resultCode " ) + resultCode ) + " cardReaderStatus " ) + cardReaderStatus ) ) ; com.android.bluetooth.sap.SapService.notifyUpdateWakeLock ( mSapServiceHandler ) ; com.android.bluetooth.sap.SapMessage sapMessage = new com.android.bluetooth.sap.SapMessage ( SapMessage.ID_TRANSFER_CARD_READER_STATUS_RESP ) ; sapMessage.setResultCode ( resultCode ) ; if ( resultCode == ( SapMessage.RESULT_OK ) ) { sapMessage.setCardReaderStatus ( cardReaderStatus ) ; } removeOngoingReqAndSendMessage ( token , sapMessage ) ; }
Source:
public void mouseMove ( org.eclipse.swt.events.MouseEvent e ) { if ( ( ( mModel ) != null ) && ( mModel.isExploreMode ( ) ) ) { com.android.uiautomator.tree.BasicTreeNode node = mModel.updateSelectionForCoordinates ( getInverseScaledSize ( ( ( e.x ) - ( mDx ) ) ) , getInverseScaledSize ( ( ( e.y ) - ( mDy ) ) ) ) ; if ( node != null ) { updateTreeSelection ( node ) ; } } }

Target:
public void mouseUp ( org.eclipse.swt.events.MouseEvent e ) { if ( ( mModel ) != null ) { mModel.toggleExploreMode ( ) ; redrawScreenshot ( ) ; } }
Source:
private synchronized void msgGetPlayStatusNative ( ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "msgGetPlayStatusNative" ) ; if ( ( mA2dpDevice ) == null ) { android.util.Log.e ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "Already disconnected ignoring." ) ; return ; } mAvrcpCtrlSrvc.getPlaybackState ( mA2dpDevice , false ) ; }

Target:
private synchronized void msgGetPlayStatusNative ( ) { if ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.DBG ) android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "msgGetPlayStatusNative" ) ; if ( ( mA2dpDevice ) == null ) { android.util.Log.w ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "Already disconnected ignoring." ) ; return ; } mAvrcpCtrlSrvc.getPlaybackState ( mA2dpDevice , false ) ; }
Source:
public boolean removeAll ( java.util.Collection < ? > c ) { boolean modified = false ; java.util.Iterator < ? > it = iterator ( ) ; while ( it.hasNext ( ) ) { if ( c.contains ( it.next ( ) ) ) { it.remove ( ) ; modified = true ; } } return modified ; }

Target:
public boolean removeAll ( java.util.Collection < ? > c ) { java.util.Objects.requireNonNull ( c ) ; boolean modified = false ; java.util.Iterator < ? > it = iterator ( ) ; while ( it.hasNext ( ) ) { if ( c.contains ( it.next ( ) ) ) { it.remove ( ) ; modified = true ; } } return modified ; }
Source:
private void transformStaticValues ( com.android.dx.io.DexBuffer.Section in , com.android.dx.merge.IndexMap indexMap ) { ( contentsOut.encodedArrays.size ) ++ ; indexMap.putStaticValuesOffset ( in.getPosition ( ) , encodedArrayOut.getPosition ( ) ) ; indexMap.adjustEncodedArray ( in.readEncodedArray ( ) ) . writeTo ( encodedArrayOut ) ; }

Target:
private void transformStaticValues ( com.android.dex.Dex.Section in , com.android.dx.merge.IndexMap indexMap ) { ( contentsOut.encodedArrays.size ) ++ ; indexMap.putStaticValuesOffset ( in.getPosition ( ) , encodedArrayOut.getPosition ( ) ) ; indexMap.adjustEncodedArray ( in.readEncodedArray ( ) ) . writeTo ( encodedArrayOut ) ; }