auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void dataCallListChanged ( int var1 , java.util.ArrayList < android.hardware.radio.V1_0.SetupDataCallResult > var2 ) { }

Target:
public void dataCallListChanged ( int indicationType , java.util.ArrayList < android.hardware.radio.V1_0.SetupDataCallResult > dcList ) { mRil.processIndication ( indicationType ) ; java.util.ArrayList < com.android.internal.telephony.dataconnection.DataCallResponse > response = com.android.internal.telephony.RIL.convertHalDcList ( dcList ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_DATA_CALL_LIST_CHANGED , response ) ; mRil.mDataNetworkStateRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; }
Source:
public void sendUssd ( java.lang.String ussdMessage ) throws com.android.ims.ImsException { logi ( ( "sendUssd :: ussdMessage=" + ussdMessage ) ) ; synchronized ( mLockObj ) { if ( ( mSession ) == null ) { loge ( "sendUssd :: " ) ; throw new com.android.ims.ImsException ( "No call session" , ImsReasonInfo.CODE_LOCAL_CALL_TERMINATED ) ; } mSession.sendUssd ( ussdMessage ) ; } }

Target:
public void sendUssd ( java.lang.String ussdMessage ) throws com.android.ims.ImsException { logi ( ( "sendUssd :: ussdMessage=" + ussdMessage ) ) ; synchronized ( mLockObj ) { if ( ( mSession ) == null ) { loge ( "sendUssd :: " ) ; throw new com.android.ims.ImsException ( "No call session" , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_CALL_TERMINATED ) ; } mSession.sendUssd ( ussdMessage ) ; } }
Source:
public void test_d2i_SSL_SESSION ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } assertEquals ( org.conscrypt.NativeCryptoTest.NULL , org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 0 ] ) ) ; assertEquals ( org.conscrypt.NativeCryptoTest.NULL , org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 1 ] ) ) ; }

Target:
public void test_d2i_SSL_SESSION ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 0 ] ) ; fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 1 ] ) ; fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } }
Source:
java.security.Signature createSignature ( org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId ) throws java.security.GeneralSecurityException { java.security.Signature sig ; try { sig = helper.createSignature ( org.bouncycastle.operator.jcajce.OperatorHelper.getSignatureName ( sigAlgId ) ) ; } catch ( java.security.NoSuchAlgorithmException e ) { if ( ( org.bouncycastle.operator.jcajce.OperatorHelper.oids.get ( sigAlgId.getAlgorithm ( ) ) ) != null ) { java.lang.String signatureAlgorithm = ( ( java.lang.String ) ( org.bouncycastle.operator.jcajce.OperatorHelper.oids.get ( sigAlgId.getAlgorithm ( ) ) ) ) ; sig = helper.createSignature ( signatureAlgorithm ) ; } else { throw e ; } } return sig ; }

Target:
java.security.MessageDigest createDigest ( org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlgId ) throws java.security.GeneralSecurityException { java.security.MessageDigest dig ; try { dig = helper.createDigest ( org.bouncycastle.jcajce.util.JcaJceUtils.getDigestAlgName ( digAlgId.getAlgorithm ( ) ) ) ; } catch ( java.security.NoSuchAlgorithmException e ) { if ( ( org.bouncycastle.operator.jcajce.OperatorHelper.oids.get ( digAlgId.getAlgorithm ( ) ) ) != null ) { java.lang.String digestAlgorithm = ( ( java.lang.String ) ( org.bouncycastle.operator.jcajce.OperatorHelper.oids.get ( digAlgId.getAlgorithm ( ) ) ) ) ; dig = helper.createDigest ( digestAlgorithm ) ; } else { throw e ; } } return dig ; }
Source:
private void getActivityEnergyInfoFromController ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PRIVILEGED , "Need BLUETOOTH permission" ) ; if ( isActivityAndEnergyReportingSupported ( ) ) { readEnergyInfo ( ) ; } }

Target:
java.lang.String getRemoteName ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ( mRemoteDevices ) == null ) return null ; com.android.bluetooth.btservice.RemoteDevices.DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties ( device ) ; if ( deviceProp == null ) return null ; return deviceProp.getName ( ) ; }
Source:
public android.bluetooth.le.BluetoothLeAdvertiser getBluetoothLeAdvertiser ( ) { if ( ! ( getLeAccess ( ) ) ) { return null ; } synchronized ( mLock ) { if ( ( android.bluetooth.BluetoothAdapter.sBluetoothLeAdvertiser ) == null ) { android.bluetooth.BluetoothAdapter.sBluetoothLeAdvertiser = new android.bluetooth.le.BluetoothLeAdvertiser ( mManagerService ) ; } } return android.bluetooth.BluetoothAdapter.sBluetoothLeAdvertiser ; }

Target:
public android.bluetooth.le.BluetoothLeAdvertiser getBluetoothLeAdvertiser ( ) { if ( ! ( getLeAccess ( ) ) ) { return null ; } if ( ! ( isMultipleAdvertisementSupported ( ) ) ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "Bluetooth LE advertising not supported" ) ; return null ; } synchronized ( mLock ) { if ( ( android.bluetooth.BluetoothAdapter.sBluetoothLeAdvertiser ) == null ) { android.bluetooth.BluetoothAdapter.sBluetoothLeAdvertiser = new android.bluetooth.le.BluetoothLeAdvertiser ( mManagerService ) ; } } return android.bluetooth.BluetoothAdapter.sBluetoothLeAdvertiser ; }
Source:
com.android.sched.vfs.DirectFS.DirectVFile createVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.DirectFS.DirectVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ) != 0 ; java.io.File file = new java.io.File ( parent.getNativePath ( ) . getPath ( ) , name ) ; try { com.android.sched.util.file.AbstractStreamFile.create ( file , new com.android.sched.util.location.FileLocation ( file ) ) ; } catch ( com.android.sched.util.file.FileAlreadyExistsException e ) { } return new com.android.sched.vfs.DirectFS.DirectVFile ( this , parent , name ) ; }

Target:
com.android.sched.vfs.ParentVFile createVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { assert ! ( isClosed ( ) ) ; assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ) != 0 ; java.io.File path = getNativeFile ( parent.getPath ( ) , name ) ; try { com.android.sched.util.file.AbstractStreamFile.create ( path , new com.android.sched.util.location.FileLocation ( path ) ) ; } catch ( com.android.sched.util.file.FileAlreadyExistsException e ) { } return new com.android.sched.vfs.ParentVFile ( this , parent , name ) ; }
Source:
boolean sendData ( android.bluetooth.BluetoothDevice device , java.lang.String report ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , ( "sendData: " + ( device.getAddress ( ) ) ) ) ; } int state = this . getConnectionState ( device ) ; if ( state != ( android.bluetooth.BluetoothInputDevice.STATE_CONNECTED ) ) { return false ; } return sendDataNative ( com.android.bluetooth.Utils.getByteAddress ( device ) , report ) ; }

Target:
boolean sendData ( android.bluetooth.BluetoothDevice device , java.lang.String report ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , ( "sendData: " + ( device.getAddress ( ) ) ) ) ; } int state = this . getConnectionState ( device ) ; if ( state != ( android.bluetooth.BluetoothHidHost.STATE_CONNECTED ) ) { return false ; } return sendDataNative ( com.android.bluetooth.Utils.getByteAddress ( device ) , report ) ; }
Source:
protected final boolean closeImpl ( ) throws java.io.IOException { if ( ! ( isClosed ) ) { isClosed = true ; try { sun.nio.fs.UnixNativeDispatcher.closedir ( dp ) ; } catch ( sun.nio.fs.UnixException x ) { throw new java.io.IOException ( x.errorString ( ) ) ; } return true ; } else { return false ; } }

Target:
protected final boolean closeImpl ( ) throws java.io.IOException { if ( ! ( isClosed ) ) { isClosed = true ; try { sun.nio.fs.UnixNativeDispatcher.closedir ( dp ) ; } catch ( sun.nio.fs.UnixException x ) { throw new java.io.IOException ( x.errorString ( ) ) ; } guard.close ( ) ; return true ; } else { return false ; } }
Source:
private static com.google.doclava.SeeTagInfo convertSeeTag ( com.google.doclava.SeeTag tag , com.google.doclava.ContainerInfo base ) { return new com.google.doclava.SeeTagInfo ( tag.name ( ) , tag.kind ( ) , tag.text ( ) , base , com.google.doclava.Converter.convertSourcePosition ( tag.position ( ) ) ) ; }

Target:
private static com.google.doclava.ParamTagInfo convertParamTag ( com.sun.javadoc.ParamTag tag , com.google.doclava.ContainerInfo base ) { return new com.google.doclava.ParamTagInfo ( tag.name ( ) , tag.kind ( ) , tag.text ( ) , tag.isTypeParameter ( ) , tag.parameterComment ( ) , tag.parameterName ( ) , base , com.google.doclava.Converter.convertSourcePosition ( tag.position ( ) ) ) ; }
Source:
private boolean isDevicesExtra ( java.io.File item ) { java.io.File properties = new java.io.File ( item , com.android.SdkConstants.FN_SOURCE_PROP ) ; try { java.io.BufferedReader propertiesReader = new java.io.BufferedReader ( new java.io.FileReader ( properties ) ) ; try { java.lang.String line ; while ( ( line = propertiesReader.readLine ( ) ) != null ) { java.util.regex.Matcher m = com.android.sdklib.devices.DeviceManager.sPathPropertyPattern.matcher ( line ) ; if ( m.matches ( ) ) { return true ; } } } finally { propertiesReader.close ( ) ; } } catch ( java.io.IOException ignore ) { } return false ; }

Target:
private boolean isDevicesExtra ( java.io.File item ) { java.io.File properties = new java.io.File ( item , com.android.SdkConstants.FN_SOURCE_PROP ) ; try { java.io.BufferedReader propertiesReader = new java.io.BufferedReader ( new java.io.FileReader ( properties ) ) ; try { java.lang.String line ; while ( ( line = propertiesReader.readLine ( ) ) != null ) { java.util.regex.Matcher m = com.android.sdklib.devices.DeviceManager.PATH_PROPERTY_PATTERN.matcher ( line ) ; if ( m.matches ( ) ) { return true ; } } } finally { propertiesReader.close ( ) ; } } catch ( java.io.IOException ignore ) { } return false ; }
Source:
public android.net.IpSecTransform.Builder setSpi ( @ android.net.IpSecTransform.TransformDirection int direction , android.net.IpSecManager.SecurityParameterIndex spi ) { if ( ( spi.getResourceId ( ) ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { throw new java.lang.IllegalArgumentException ( "Invalid SecurityParameterIndex" ) ; } mConfig.setSpiResourceId ( direction , spi.getResourceId ( ) ) ; return this ; }

Target:
public android.net.IpSecTransform buildTransportModeTransform ( @ android.annotation.NonNull java.net.InetAddress sourceAddress , @ android.annotation.NonNull android.net.IpSecManager.SecurityParameterIndex spi ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { com.android.internal.util.Preconditions.checkNotNull ( sourceAddress ) ; com.android.internal.util.Preconditions.checkNotNull ( spi ) ; if ( ( spi.getResourceId ( ) ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { throw new java.lang.IllegalArgumentException ( "Invalid SecurityParameterIndex" ) ; } mConfig.setMode ( android.net.IpSecTransform.MODE_TRANSPORT ) ; mConfig.setSourceAddress ( sourceAddress.getHostAddress ( ) ) ; mConfig.setSpiResourceId ( spi.getResourceId ( ) ) ; return new android.net.IpSecTransform ( mContext , mConfig ) . activate ( ) ; }
Source:
public void terminate ( ) { android.net.wifi.nan.WifiNanManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.nan.WifiNanDiscoveryBaseSession.TAG , "terminate: called post GC on WifiNanManager" ) ; return ; } mgr.terminateSession ( mSessionId ) ; mTerminated = true ; mMgr.clear ( ) ; mCloseGuard.close ( ) ; }

Target:
public java.lang.String createNetworkSpecifier ( @ android.net.wifi.nan.WifiNanManager.DataPathRole int role , int peerId , @ android.annotation.Nullable byte [ ] token ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.nan.WifiNanDiscoveryBaseSession.TAG , "createNetworkSpecifier: called on terminated session" ) ; return null ; } else { android.net.wifi.nan.WifiNanManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.nan.WifiNanDiscoveryBaseSession.TAG , "createNetworkSpecifier: called post GC on WifiNanManager" ) ; return null ; } return mgr.createNetworkSpecifier ( mClientId , role , mSessionId , peerId , token ) ; } }
Source:
public void testMultipleProjects ( ) throws java.lang.Exception { java.io.File project = getProjectDir ( null , "bytecode/classes.jar=>libs/classes.jar" ) ; checkDriver ( "" , "The --sources, --classpath and --libraries arguments can only be used with a single project\n" , new java.lang.String [ ] { "--libraries" , new java.io.File ( project , "libs/classes.jar" ) . getPath ( ) , "--disable" , "LintError" , project.getPath ( ) , project.getPath ( ) } ) ; }

Target:
public void testMultipleProjects ( ) throws java.lang.Exception { java.io.File project = getProjectDir ( null , "bytecode/classes.jar=>libs/classes.jar" ) ; checkDriver ( "" , "The --sources, --classpath, --libraries and --resources arguments can only be used with a single project\n" , new java.lang.String [ ] { "--libraries" , new java.io.File ( project , "libs/classes.jar" ) . getPath ( ) , "--disable" , "LintError" , project.getPath ( ) , project.getPath ( ) } ) ; }
Source:
public java.net.Socket createSocket ( java.lang.String host , int port ) throws java.io.IOException { org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl s = ( ( org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( host , port ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; if ( mSecure ) { android.net.SSLCertificateSocketFactory.verifyHostname ( s , host ) ; } return s ; }

Target:
public java.net.Socket createSocket ( java.lang.String host , int port ) throws java.io.IOException { com.android.org.conscrypt.OpenSSLSocketImpl s = ( ( com.android.org.conscrypt.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( host , port ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; if ( mSecure ) { android.net.SSLCertificateSocketFactory.verifyHostname ( s , host ) ; } return s ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeString ( username ) ; dest.writeString ( password ) ; dest.writeInt ( eapType ) ; dest.writeString ( nonEapInnerMethod ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeString ( username ) ; dest.writeString ( password ) ; dest.writeInt ( ( machineManaged ? 1 : 0 ) ) ; dest.writeString ( softTokenApp ) ; dest.writeInt ( ( ableToShare ? 1 : 0 ) ) ; dest.writeInt ( eapType ) ; dest.writeString ( nonEapInnerMethod ) ; }
Source:
private java.lang.String getApkName ( java.lang.String split ) { java.lang.String apkName = "${project.archivesBaseName}-${getOutputBaseName()}_${split}" ; return apkName + ( ( getSigningConfig ( ) ) == null ? "-unsigned.apk" : "-unaligned.apk" ) ; }

Target:
private java.lang.String getApkName ( final java.lang.String split ) { java.lang.String archivesBaseName = ( ( java.lang.String ) ( getProject ( ) . getProperties ( ) . get ( "archivesBaseName" ) ) ) ; java.lang.String apkName = ( ( ( archivesBaseName + "-" ) + ( getOutputBaseName ( ) ) ) + "_" ) + split ; return apkName + ( ( getSigningConfig ( ) ) == null ? "-unsigned.apk" : "-unaligned.apk" ) ; }
Source:
private static void addToElement ( com.android.manifmerger.ManifestMerger2.SystemProperty systemProperty , com.android.manifmerger.ActionRecorder actionRecorder , java.lang.String value , com.android.manifmerger.XmlElement to ) { to.getXml ( ) . setAttribute ( systemProperty.toCamelCase ( ) , value ) ; com.android.manifmerger.XmlAttribute xmlAttribute = new com.android.manifmerger.XmlAttribute ( to , to.getXml ( ) . getAttributeNode ( systemProperty.toCamelCase ( ) ) , null ) ; actionRecorder.recordAttributeAction ( xmlAttribute , new com.android.manifmerger.Actions.AttributeRecord ( Actions.ActionType.INJECTED , new com.android.manifmerger.Actions.ActionLocation ( to.getSourceLocation ( ) , PositionImpl.UNKNOWN_POSITION ) , xmlAttribute.getId ( ) , null , null ) ) ; }

Target:
private static void addToElement ( com.android.manifmerger.ManifestMerger2.SystemProperty systemProperty , com.android.manifmerger.ActionRecorder actionRecorder , java.lang.String value , com.android.manifmerger.XmlElement to ) { to.getXml ( ) . setAttribute ( systemProperty.toCamelCase ( ) , value ) ; com.android.manifmerger.XmlAttribute xmlAttribute = new com.android.manifmerger.XmlAttribute ( to , to.getXml ( ) . getAttributeNode ( systemProperty.toCamelCase ( ) ) , null ) ; actionRecorder.recordAttributeAction ( xmlAttribute , new com.android.manifmerger.Actions.AttributeRecord ( Actions.ActionType.INJECTED , new com.android.manifmerger.Actions.ActionLocation ( to.getSourceLocation ( ) , PositionImpl.UNKNOWN ) , xmlAttribute.getId ( ) , null , null ) ) ; }
Source:
synchronized void setSelectedClient ( com.android.ddmlib.Client selectedClient ) { if ( ( com.android.ddmlib.MonitorThread.mInstance ) == null ) { return ; } if ( ( mSelectedClient ) != selectedClient ) { com.android.ddmlib.Client oldClient = mSelectedClient ; mSelectedClient = selectedClient ; if ( oldClient != null ) { oldClient.update ( Client.CHANGE_PORT ) ; } if ( ( mSelectedClient ) != null ) { mSelectedClient.update ( Client.CHANGE_PORT ) ; } } }

Target:
synchronized void setSelectedClient ( com.android.ddmlib.Client selectedClient ) { if ( ( com.android.ddmlib.MonitorThread.sInstance ) == null ) { return ; } if ( ( mSelectedClient ) != selectedClient ) { com.android.ddmlib.Client oldClient = mSelectedClient ; mSelectedClient = selectedClient ; if ( oldClient != null ) { oldClient.update ( Client.CHANGE_PORT ) ; } if ( ( mSelectedClient ) != null ) { mSelectedClient.update ( Client.CHANGE_PORT ) ; } } }
Source:
private ApkVerifier.Result verify ( java.lang.String apkFilenameInResources ) throws com.android.apksig.apk.ApkFormatException , java.io.IOException , java.security.NoSuchAlgorithmException { return verify ( apkFilenameInResources , null ) ; }

Target:
public void testTargetSandboxVersion2AndHigher ( ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerified ( verify ( "targetSandboxVersion-2.apk" ) ) ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verify ( "v2-only-targetSandboxVersion-2.apk" ) , Issue.JAR_SIG_NO_MANIFEST ) ; com.android.apksig.ApkVerifierTest.assertVerified ( verifyForMinSdkVersion ( "v2-only-targetSandboxVersion-2.apk" , 24 ) ) ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verify ( "v1-only-targetSandboxVersion-2.apk" ) , Issue.NO_SIG_FOR_TARGET_SANDBOX_VERSION ) ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verify ( "unsigned-targetSandboxVersion-2.apk" ) , Issue.NO_SIG_FOR_TARGET_SANDBOX_VERSION ) ; com.android.apksig.ApkVerifierTest.assertVerified ( verify ( "v2-only-targetSandboxVersion-3.apk" ) ) ; }
Source:
public void test_with_adjustment ( ) { final java.time.LocalTime sample = java.time.LocalTime.of ( 23 , 5 ) ; java.time.temporal.TemporalAdjuster adjuster = new java.time.temporal.TemporalAdjuster ( ) { @ java.lang.Override public java.time.temporal.Temporal adjustInto ( java.time.temporal.Temporal dateTime ) { return sample ; } } ; org.testng.Assert.assertEquals ( TEST_12_30_40_987654321.with ( adjuster ) , sample ) ; }

Target:
public void test_with_adjustment ( ) { final java.time.LocalTime sample = java.time.LocalTime.of ( 23 , 5 ) ; java.time.temporal.TemporalAdjuster adjuster = new java.time.temporal.TemporalAdjuster ( ) { @ java.lang.Override public java.time.temporal.Temporal adjustInto ( java.time.temporal.Temporal dateTime ) { return sample ; } } ; org.testng.Assert.assertEquals ( tck.java.time.TCKLocalTime.TEST_12_30_40_987654321.with ( adjuster ) , sample ) ; }
Source:
private java.lang.String decodeMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( com.android.mms.transaction.TransactionService.EVENT_QUIT ) ) { return "EVENT_QUIT" ; } else if ( ( msg.what ) == ( com.android.mms.transaction.TransactionService.EVENT_CONTINUE_MMS_CONNECTIVITY ) ) { return "EVENT_CONTINUE_MMS_CONNECTIVITY" ; } else if ( ( msg.what ) == ( com.android.mms.transaction.TransactionService.EVENT_TRANSACTION_REQUEST ) ) { return "EVENT_TRANSACTION_REQUEST" ; } else if ( ( msg.what ) == ( com.android.mms.transaction.TransactionService.EVENT_HANDLE_NEXT_PENDING_TRANSACTION ) ) { return "EVENT_HANDLE_NEXT_PENDING_TRANSACTION" ; } return "unknown message.what" ; }

Target:
private java.lang.String decodeMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( com.android.mms.transaction.TransactionService.EVENT_QUIT ) ) { return "EVENT_QUIT" ; } else if ( ( msg.what ) == ( com.android.mms.transaction.TransactionService.EVENT_CONTINUE_MMS_CONNECTIVITY ) ) { return "EVENT_CONTINUE_MMS_CONNECTIVITY" ; } else if ( ( msg.what ) == ( com.android.mms.transaction.TransactionService.EVENT_TRANSACTION_REQUEST ) ) { return "EVENT_TRANSACTION_REQUEST" ; } else if ( ( msg.what ) == ( com.android.mms.transaction.TransactionService.EVENT_HANDLE_NEXT_PENDING_TRANSACTION ) ) { return "EVENT_HANDLE_NEXT_PENDING_TRANSACTION" ; } else if ( ( msg.what ) == ( com.android.mms.transaction.TransactionService.EVENT_NEW_INTENT ) ) { return "EVENT_NEW_INTENT" ; } return "unknown message.what" ; }
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 invokevirtual ( 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 ) ) { if ( itf ) { throw new java.lang.IllegalArgumentException ( "INVOKEVIRTUAL on interfaces require ASM 5" ) ; } invokevirtual ( owner , name , desc ) ; return ; } mv.visitMethodInsn ( Opcodes.INVOKEVIRTUAL , owner , name , desc , itf ) ; }
Source:
private org.w3c.dom.Element findOuterScrollingWidget ( org.w3c.dom.Node node , boolean vertical ) { java.util.Collection < java.lang.String > applicableElements = getApplicableElements ( ) ; while ( node != null ) { if ( node instanceof org.w3c.dom.Element ) { org.w3c.dom.Element element = ( ( org.w3c.dom.Element ) ( node ) ) ; java.lang.String tagName = element.getTagName ( ) ; if ( ( applicableElements.contains ( tagName ) ) && ( vertical == ( isVerticalScroll ( element ) ) ) ) { return element ; } } node = node.getParentNode ( ) ; } return null ; }

Target:
private org.w3c.dom.Element findOuterScrollingWidget ( org.w3c.dom.Node node , boolean vertical ) { java.util.Collection < java.lang.String > applicableElements = getApplicableElements ( ) ; while ( node != null ) { if ( node instanceof org.w3c.dom.Element ) { org.w3c.dom.Element element = ( ( org.w3c.dom.Element ) ( node ) ) ; java.lang.String tagName = element.getTagName ( ) ; if ( ( applicableElements.contains ( tagName ) ) && ( vertical == ( com.android.tools.lint.checks.NestedScrollingWidgetDetector.isVerticalScroll ( element ) ) ) ) { return element ; } } node = node.getParentNode ( ) ; } return null ; }
Source:
private static void checkName ( java.lang.String name , java.lang.String displayName ) { if ( name.startsWith ( com.android.builder.BuilderConstants.INSTRUMENT_TEST ) ) { throw new java.lang.RuntimeException ( "${displayName} names cannot start with '${INSTRUMENT_TEST}'" ) ; } if ( name.startsWith ( com.android.builder.BuilderConstants.UI_TEST ) ) { throw new java.lang.RuntimeException ( "${displayName} names cannot start with '${UI_TEST}'" ) ; } if ( com.android.builder.BuilderConstants.LINT.equals ( name ) ) { throw new java.lang.RuntimeException ( "${displayName} names cannot be ${LINT}" ) ; } }

Target:
private static void checkName ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull java.lang.String displayName ) { if ( name.startsWith ( com.android.builder.BuilderConstants.INSTRUMENT_TEST ) ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "%1$s names cannot start with '%2$s'" , displayName , com.android.builder.BuilderConstants.INSTRUMENT_TEST ) ) ; } if ( name.startsWith ( com.android.builder.BuilderConstants.UI_TEST ) ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "%1$s names cannot start with %2$s" , displayName , com.android.builder.BuilderConstants.UI_TEST ) ) ; } if ( com.android.builder.BuilderConstants.LINT.equals ( name ) ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "%1$s names cannot be %2$s" , displayName , com.android.builder.BuilderConstants.LINT ) ) ; } }
Source:
public boolean isRoot ( ) { return ( ( ( mUiViewNode ) == null ) || ( ( mUiViewNode.getUiParent ( ) ) == null ) ) || ( ( mUiViewNode.getUiParent ( ) . getUiParent ( ) ) == null ) ; }

Target:
public boolean isRoot ( ) { if ( ( ( ( mParent ) != null ) && ( mParent.mName.endsWith ( "GestureOverlayView" ) ) ) && ( mParent.isRoot ( ) ) ) { return true ; } return ( ( ( mUiViewNode ) == null ) || ( ( mUiViewNode.getUiParent ( ) ) == null ) ) || ( ( mUiViewNode.getUiParent ( ) . getUiParent ( ) ) == null ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mDevice.registerWatcher ( com.android.devtools.systemimage.uitest.watchers.GoogleNowWelcomeViewWatcher.class . getName ( ) , new com.android.devtools.systemimage.uitest.watchers.GoogleNowWelcomeViewWatcher ( mDevice ) ) ; }

Target:
public void testGoogleNowWelcomeViewWatcher ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; android.support.test.uiautomator.UiDevice device = testFramework.getDevice ( ) ; device.registerWatcher ( com.android.devtools.systemimage.uitest.watchers.GoogleNowWelcomeViewWatcher.class . getName ( ) , new com.android.devtools.systemimage.uitest.watchers.GoogleNowWelcomeViewWatcher ( device ) ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "Google" ) ; device.removeWatcher ( com.android.devtools.systemimage.uitest.watchers.GoogleNowWelcomeViewWatcher.class . getName ( ) ) ; }
Source:
private static org.eclipse.jdt.internal.compiler.lookup.MethodBinding findSuperMethodBinding ( @ com.android.annotations.NonNull org.eclipse.jdt.internal.compiler.lookup.MethodBinding binding ) { org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding superclass = binding.declaringClass.superclass ( ) ; while ( superclass != null ) { org.eclipse.jdt.internal.compiler.lookup.MethodBinding [ ] methods = superclass.getMethods ( binding.selector , binding.parameters.length ) ; for ( org.eclipse.jdt.internal.compiler.lookup.MethodBinding method : methods ) { if ( method.areParameterErasuresEqual ( binding ) ) { return method ; } } superclass = superclass.superclass ( ) ; } return null ; }

Target:
private static org.eclipse.jdt.internal.compiler.lookup.MethodBinding findSuperMethodBinding ( @ com.android.annotations.NonNull org.eclipse.jdt.internal.compiler.lookup.MethodBinding binding ) { try { org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding superclass = binding.declaringClass.superclass ( ) ; while ( superclass != null ) { org.eclipse.jdt.internal.compiler.lookup.MethodBinding [ ] methods = superclass.getMethods ( binding.selector , binding.parameters.length ) ; for ( org.eclipse.jdt.internal.compiler.lookup.MethodBinding method : methods ) { if ( method.areParameterErasuresEqual ( binding ) ) { return method ; } } superclass = superclass.superclass ( ) ; } } catch ( java.lang.Exception ignore ) { } return null ; }
Source:
private com.android.sdklib.internal.repository.packages.Package.License parseLicense ( @ com.android.annotations.NonNull org.w3c.dom.Node packageNode , @ com.android.annotations.NonNull java.util.Map < java.lang.String , java.lang.String > licenses ) { org.w3c.dom.Node usesLicense = com.android.sdklib.internal.repository.packages.PackageParserUtils.findChildElement ( packageNode , SdkRepoConstants.NODE_USES_LICENSE ) ; if ( usesLicense != null ) { org.w3c.dom.Node ref = usesLicense.getAttributes ( ) . getNamedItem ( SdkRepoConstants.ATTR_REF ) ; if ( ref != null ) { java.lang.String licenseRef = ref.getNodeValue ( ) ; return new com.android.sdklib.internal.repository.packages.Package.License ( licenses.get ( licenseRef ) , licenseRef ) ; } } return null ; }

Target:
private com.android.sdklib.internal.repository.packages.License parseLicense ( @ com.android.annotations.NonNull org.w3c.dom.Node packageNode , @ com.android.annotations.NonNull java.util.Map < java.lang.String , java.lang.String > licenses ) { org.w3c.dom.Node usesLicense = com.android.sdklib.internal.repository.packages.PackageParserUtils.findChildElement ( packageNode , SdkRepoConstants.NODE_USES_LICENSE ) ; if ( usesLicense != null ) { org.w3c.dom.Node ref = usesLicense.getAttributes ( ) . getNamedItem ( SdkRepoConstants.ATTR_REF ) ; if ( ref != null ) { java.lang.String licenseRef = ref.getNodeValue ( ) ; return new com.android.sdklib.internal.repository.packages.License ( licenses.get ( licenseRef ) , licenseRef ) ; } } return null ; }
Source:
private void transformStaticValues ( com.android.dx.io.DexBuffer in , com.android.dx.merge.IndexMap indexMap ) { com.android.dx.dex.TableOfContents.Section section = in.getTableOfContents ( ) . encodedArrays ; if ( section.exists ( ) ) { com.android.dx.io.DexBuffer.Section staticValuesIn = in.open ( section.off ) ; for ( int i = 0 ; i < ( section.size ) ; i ++ ) { transformStaticValues ( staticValuesIn , indexMap ) ; } } }

Target:
private void transformStaticValues ( com.android.dex.Dex in , com.android.dx.merge.IndexMap indexMap ) { com.android.dex.TableOfContents.Section section = in.getTableOfContents ( ) . encodedArrays ; if ( section.exists ( ) ) { com.android.dex.Dex.Section staticValuesIn = in.open ( section.off ) ; for ( int i = 0 ; i < ( section.size ) ; i ++ ) { transformStaticValues ( staticValuesIn , indexMap ) ; } } }
Source:
private java.io.File createFileFromStr ( java.lang.String configStr , java.lang.String module ) throws java.io.IOException { java.io.File file = java.io.File.createTempFile ( module , "dynamic" ) ; java.io.FileOutputStream stream = null ; try { stream = new java.io.FileOutputStream ( file ) ; stream.write ( configStr.getBytes ( ) ) ; stream.flush ( ) ; } finally { if ( stream != null ) { stream.close ( ) ; } } return file ; }

Target:
private java.io.File createFileFromStr ( java.lang.String configStr , java.lang.String module ) throws java.io.IOException { java.io.File file = java.io.File.createTempFile ( module , "dynamic" ) ; java.io.FileOutputStream stream = null ; try { stream = new java.io.FileOutputStream ( file ) ; stream.write ( configStr.getBytes ( ) ) ; stream.flush ( ) ; } finally { com.android.tradefed.util.StreamUtil.close ( stream ) ; } return file ; }
Source:
public void enableSaveConfig ( ) { doBooleanCommand ( "SET update_config 1" ) ; }

Target:
public boolean setExternalSim ( boolean external ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.setExternalSim ( external ) ; } else { java.lang.String value = ( external ) ? "1" : "0" ; android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "Setting external_sim to " + value ) ) ; return doBooleanCommand ( ( "SET external_sim " + value ) ) ; } }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent , android.bluetooth.BluetoothDevice device ) { int state = intent.getIntExtra ( BluetoothAdapter.EXTRA_STATE , BluetoothAdapter.ERROR ) ; mLocalAdapter.setBluetoothStateInt ( state ) ; synchronized ( mCallbacks ) { for ( com.android.settingslib.bluetooth.BluetoothCallback callback : mCallbacks ) { callback.onBluetoothStateChanged ( state ) ; } } mDeviceManager.onBluetoothStateChanged ( state ) ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent , android.bluetooth.BluetoothDevice device ) { int state = intent.getIntExtra ( BluetoothAdapter.EXTRA_STATE , BluetoothAdapter.ERROR ) ; if ( state == ( android.bluetooth.BluetoothAdapter.STATE_OFF ) ) { context.unregisterReceiver ( mProfileBroadcastReceiver ) ; registerProfileIntentReceiver ( ) ; } mLocalAdapter.setBluetoothStateInt ( state ) ; synchronized ( mCallbacks ) { for ( com.android.settingslib.bluetooth.BluetoothCallback callback : mCallbacks ) { callback.onBluetoothStateChanged ( state ) ; } } mDeviceManager.onBluetoothStateChanged ( state ) ; }
Source:
public static void w ( java.lang.String prefix , java.lang.String format , java.lang.Object ... args ) { if ( android.telecom.Log.WARN ) { android.util.Log.w ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( prefix , format , args ) ) ; } }

Target:
public static void v ( java.lang.Object objectPrefix , java.lang.String format , java.lang.Object ... args ) { if ( android.telecom.Log.sIsUserExtendedLoggingEnabled ) { android.telecom.Log.maybeDisableLogging ( ) ; android.util.Slog.i ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( android.telecom.Log.getPrefixFromObject ( objectPrefix ) , format , args ) ) ; } else if ( android.telecom.Log.VERBOSE ) { android.util.Slog.v ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( android.telecom.Log.getPrefixFromObject ( objectPrefix ) , format , args ) ) ; } }
Source:
public void TestPatternWhitespace ( ) { java.lang.String r = "a > ‎ b;" ; com.ibm.icu.text.Transliterator t = com.ibm.icu.text.Transliterator.createFromRules ( "test" , r , Transliterator.FORWARD ) ; expect ( t , "a" , "b" ) ; com.ibm.icu.text.UnicodeSet set = new com.ibm.icu.text.UnicodeSet ( "[a ‎]" ) ; if ( set.contains ( 8206 ) ) { errln ( "FAIL: U+200E not being ignored by UnicodeSet" ) ; } }

Target:
public void TestPatternWhitespace ( ) { java.lang.String r = "a > ‎ b;" ; com.ibm.icu.text.Transliterator t = com.ibm.icu.text.Transliterator.createFromRules ( "test" , r , Transliterator.FORWARD ) ; com.ibm.icu.dev.test.translit.TransliteratorTest.expect ( t , "a" , "b" ) ; com.ibm.icu.text.UnicodeSet set = new com.ibm.icu.text.UnicodeSet ( "[a ‎]" ) ; if ( set.contains ( 8206 ) ) { errln ( "FAIL: U+200E not being ignored by UnicodeSet" ) ; } }
Source:
public void testPocBug_35644815 ( ) throws java.lang.Exception { enableAdbRoot ( getDevice ( ) ) ; }

Target:
public void testPocBug_35644815 ( ) throws java.lang.Exception { enableAdbRoot ( getDevice ( ) ) ; if ( containsDriver ( getDevice ( ) , "/sys/kernel/debug/ion/clients/pids/" ) ) { java.lang.String pocOut = android.security.cts.AdbUtils.runPoc ( "Bug-35644815" , getDevice ( ) , 60 ) ; assertNotMatches ( "[\\s\\n\\S]*INFO DISC FLAG[\\s\\n\\S]*" , pocOut ) ; } }
Source:
protected boolean updateActions ( ) { boolean changed = false ; if ( updatePipAction ( ) ) { changed = true ; } if ( updateMultiAudioAction ( ) ) { changed = true ; } if ( updateDisplayModeAction ( ) ) { changed = true ; } return changed ; }

Target:
private boolean updateClosedCaptionAction ( ) { return updateActionDescription ( MenuAction.SELECT_CLOSED_CAPTION_ACTION ) ; }
Source:
private void setCertificate ( byte [ ] cert_der ) { try { java.security.cert.X509Certificate cert = new org.apache.harmony.security.provider.cert.X509CertImpl ( cert_der ) ; mCallbackProxy.onReceivedCertificate ( new android.net.http.SslCertificate ( cert ) ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( android.webkit.BrowserFrame.LOGTAG , "Can't get the certificate from WebKit, canceling" ) ; return ; } }

Target:
private void setCertificate ( byte [ ] cert_der ) { try { java.security.cert.CertificateFactory cf = java.security.cert.CertificateFactory.getInstance ( "X.509" ) ; java.security.cert.X509Certificate cert = ( ( java.security.cert.X509Certificate ) ( cf.generateCertificate ( new java.io.ByteArrayInputStream ( cert_der ) ) ) ) ; mCallbackProxy.onReceivedCertificate ( new android.net.http.SslCertificate ( cert ) ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( android.webkit.BrowserFrame.LOGTAG , "Can't get the certificate from WebKit, canceling" ) ; return ; } }
Source:
public void onServiceConnected ( android.content.ComponentName name , android.os.IBinder service ) { com.android.server.telecom.Log.startSession ( "ICSBC.oSC" ) ; synchronized ( mLock ) { try { com.android.server.telecom.Log.d ( this , "onServiceConnected: %s %b %b" , name , mIsBound , mIsConnected ) ; mIsBound = true ; if ( mIsConnected ) { onConnected ( service ) ; } } finally { com.android.server.telecom.Log.endSession ( ) ; } } }

Target:
public void onServiceConnected ( android.content.ComponentName name , android.os.IBinder service ) { android.telecom.Log.startSession ( "ICSBC.oSC" ) ; synchronized ( mLock ) { try { android.telecom.Log.d ( this , "onServiceConnected: %s %b %b" , name , mIsBound , mIsConnected ) ; mIsBound = true ; if ( mIsConnected ) { onConnected ( service ) ; } } finally { android.telecom.Log.endSession ( ) ; } } }
Source:
public com.android.sched.vfs.VFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { com.android.sched.util.RunnableHooks hooks = context.getRunnableHooks ( ) ; try { return new com.android.sched.vfs.ReadWriteZipFS ( new com.android.sched.util.file.OutputZipFile ( string , hooks , existence , change ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }

Target:
public com.android.sched.vfs.VFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { com.android.sched.util.RunnableHooks hooks = context.getRunnableHooks ( ) ; try { return new com.android.sched.vfs.ReadWriteZipFS ( new com.android.sched.util.file.OutputZipFile ( context.getWorkingDirectory ( ) , string , hooks , existence , change ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }
Source:
public static < R extends java.lang.Readable & java.io.Closeable > long copy ( com.google.common.io.InputSupplier < R > from , java.lang.Appendable to ) throws java.io.IOException { boolean threw = true ; R in = from.getInput ( ) ; try { long count = com.google.common.io.CharStreams.copy ( in , to ) ; threw = false ; return count ; } finally { com.google.common.io.Closeables.close ( in , threw ) ; } }

Target:
public java.io.Writer append ( java.lang.CharSequence csq , int start , int end ) { com.google.common.base.Preconditions.checkPositionIndexes ( start , end , csq.length ( ) ) ; return this ; }
Source:
private static void createDexFile ( ) { if ( ( com.android.dx.command.dexer.Main.outputDex ) != null ) { com.android.dx.command.dexer.Main.dexOutputArrays.add ( com.android.dx.command.dexer.Main.writeDex ( ) ) ; } com.android.dx.command.dexer.Main.outputDex = new com.android.dx.dex.file.DexFile ( com.android.dx.command.dexer.Main.args.dexOptions ) ; if ( ( com.android.dx.command.dexer.Main.args.dumpWidth ) != 0 ) { com.android.dx.command.dexer.Main.outputDex.setDumpWidth ( com.android.dx.command.dexer.Main.args.dumpWidth ) ; } }

Target:
private static void rotateDexFile ( ) { if ( ( com.android.dx.command.dexer.Main.outputDex ) != null ) { if ( ( com.android.dx.command.dexer.Main.dexOutPool ) != null ) { com.android.dx.command.dexer.Main.dexOutputFutures.add ( com.android.dx.command.dexer.Main.dexOutPool.submit ( new com.android.dx.command.dexer.Main.DexWriter ( com.android.dx.command.dexer.Main.outputDex ) ) ) ; } else { com.android.dx.command.dexer.Main.dexOutputArrays.add ( com.android.dx.command.dexer.Main.writeDex ( com.android.dx.command.dexer.Main.outputDex ) ) ; } } com.android.dx.command.dexer.Main.createDexFile ( ) ; }
Source:
public boolean enableNoAutoConnect ( ) { if ( ( isEnabled ( ) ) == true ) { if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enableNoAutoConnect(): BT is already enabled..!" ) ; return true ; } try { return mManagerService.enableNoAutoConnect ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean enableNoAutoConnect ( ) { if ( ( isEnabled ( ) ) == true ) { if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enableNoAutoConnect(): BT already enabled!" ) ; return true ; } try { return mManagerService.enableNoAutoConnect ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }
Source:
public void test_d2i_SSL_SESSION ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( null ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 0 ] ) ; org.junit.Assert.fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 1 ] ) ; org.junit.Assert.fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } }

Target:
public void SSL_use_certificate_NullArguments ( ) throws java.lang.Exception { org.conscrypt.NativeCrypto.SSL_use_certificate ( org.conscrypt.NativeCryptoTest.NULL , null ) ; }
Source:
private void testScriptSide ( android.renderscript.RenderScript pRS ) { com.android.rs.test.ScriptC_sampler s = new com.android.rs.test.ScriptC_sampler ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.invoke_sampler_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; }

Target:
private void testScriptSide ( android.renderscript.RenderScript pRS ) { com.android.rs.test.ScriptC_sampler s = new com.android.rs.test.ScriptC_sampler ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.invoke_sampler_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; s.destroy ( ) ; }
Source:
public void TestGetAvailable ( ) { com.ibm.icu.util.ULocale [ ] locales = com.ibm.icu.util.ULocale.getAvailableLocales ( ) ; if ( ( locales.length ) < 10 ) { errln ( "Did not get the correct result from getAvailableLocales" ) ; } if ( ! ( locales [ ( ( locales.length ) - 1 ) ] . getName ( ) . startsWith ( "z" ) ) ) { errln ( "Did not get the expected result" ) ; } }

Target:
public void TestGetAvailable ( ) { com.ibm.icu.util.ULocale [ ] locales = com.ibm.icu.util.ULocale.getAvailableLocales ( ) ; if ( ( locales.length ) < 10 ) { errln ( "Did not get the correct result from getAvailableLocales" ) ; } if ( ! ( locales [ ( ( locales.length ) - 1 ) ] . getName ( ) . equals ( "zu_ZA" ) ) ) { errln ( "Did not get the expected result" ) ; } }
Source:
public void setOverScrollMode ( final int mode ) { if ( ( mAwContents ) == null ) return ; if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setOverScrollMode ( mode ) ; } } ) ; return ; } mAwContents.setOverScrollMode ( mode ) ; }

Target:
public boolean performAccessibilityAction ( final int action , final android.os.Bundle arguments ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return performAccessibilityAction ( action , arguments ) ; } } ) ; return ret ; } if ( mAwContents.supportsAccessibilityAction ( action ) ) { return mAwContents.performAccessibilityAction ( action , arguments ) ; } return mWebViewPrivate.super_performAccessibilityAction ( action , arguments ) ; }
Source:
public static com.android.jack.dx.rop.cst.CstNat createSignature ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JFieldId field ) { java.lang.String fieldName = field.getName ( ) ; java.lang.String fieldSignature = com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( field.getType ( ) ) ; com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( fieldName ) ; com.android.jack.dx.rop.cst.CstString descriptor = new com.android.jack.dx.rop.cst.CstString ( fieldSignature ) ; com.android.jack.dx.rop.cst.CstNat signature = new com.android.jack.dx.rop.cst.CstNat ( name , descriptor ) ; return signature ; }

Target:
public static com.android.jack.dx.rop.cst.CstNat createSignature ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JFieldId field ) { java.lang.String fieldName = field.getName ( ) ; java.lang.String fieldSignature = com.android.jack.backend.dex.rop.RopHelper.formatterWithClosure.getName ( field.getType ( ) , false ) ; if ( fieldSignature.startsWith ( "\\" ) ) { fieldSignature = "L" + ( fieldSignature.substring ( 1 ) ) ; } com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( fieldName ) ; com.android.jack.dx.rop.cst.CstString descriptor = new com.android.jack.dx.rop.cst.CstString ( fieldSignature ) ; com.android.jack.dx.rop.cst.CstNat signature = new com.android.jack.dx.rop.cst.CstNat ( name , descriptor ) ; return signature ; }
Source:
public int getFeatureStatus ( ) { synchronized ( mLock ) { if ( ( mFeatureStatusCached ) != null ) { return mFeatureStatusCached ; } } java.lang.Integer status = retrieveFeatureStatus ( ) ; synchronized ( mLock ) { if ( status == null ) { return android.telephony.ims.feature.ImsFeature.STATE_NOT_AVAILABLE ; } mFeatureStatusCached = status ; } return status ; }

Target:
public int getFeatureStatus ( ) { synchronized ( mLock ) { if ( ( isBinderAlive ( ) ) && ( ( mFeatureStatusCached ) != null ) ) { android.util.Log.i ( LOG_TAG , ( "getFeatureStatus - returning cached: " + ( mFeatureStatusCached ) ) ) ; return mFeatureStatusCached ; } } java.lang.Integer status = retrieveFeatureStatus ( ) ; synchronized ( mLock ) { if ( status == null ) { return android.telephony.ims.feature.ImsFeature.STATE_NOT_AVAILABLE ; } mFeatureStatusCached = status ; } android.util.Log.i ( LOG_TAG , ( "getFeatureStatus - returning " + status ) ) ; return status ; }