auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins ( java.net.InetAddress group ) throws java.lang.Exception { int groupPort = tests.support.Support_PortManager.getNextPortForUDP ( ) ; java.net.MulticastSocket mss = new java.net.MulticastSocket ( groupPort ) ; java.net.SocketAddress groupSockAddr = new java.net.InetSocketAddress ( group , groupPort ) ; mss.joinGroup ( groupSockAddr , networkInterface1 ) ; mss.joinGroup ( groupSockAddr , networkInterface2 ) ; try { mss.joinGroup ( groupSockAddr , networkInterface1 ) ; fail ( "Did not get expected exception when joining for second time on same interface" ) ; } catch ( java.io.IOException e ) { } mss.close ( ) ; }

Target:
private void test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins ( java.net.InetAddress group ) throws java.lang.Exception { java.net.MulticastSocket mss = new java.net.MulticastSocket ( 0 ) ; java.net.SocketAddress groupSockAddr = new java.net.InetSocketAddress ( group , mss.getLocalPort ( ) ) ; mss.joinGroup ( groupSockAddr , networkInterface1 ) ; mss.joinGroup ( groupSockAddr , networkInterface2 ) ; try { mss.joinGroup ( groupSockAddr , networkInterface1 ) ; fail ( "Did not get expected exception when joining for second time on same interface" ) ; } catch ( java.io.IOException e ) { } mss.close ( ) ; }
Source:
public boolean isTrue ( ) throws java.lang.Exception { java.lang.String result = device.executeShellCommand ( ( "ls " + ( BUG_REPORT_DIR ) ) ) ; android.util.Log.d ( TAG , ( "ls result " + result ) ) ; return ( result.matches ( "(?s).*bugreport[-0-9]+\\.png.*" ) ) && ( result.matches ( "(?s).*bugreport[-0-9]+\\.zip.*" ) ) ; }

Target:
public boolean isTrue ( ) throws java.lang.Exception { java.lang.String result = device.executeShellCommand ( ( "ls " + ( BUG_REPORT_DIR ) ) ) ; android.util.Log.d ( TAG , ( "ls result " + result ) ) ; boolean success = ( ( testFramework.getApi ( ) ) >= 24 ) ? ( result.matches ( "(?s).*bugreport.*\\.png.*" ) ) && ( result.matches ( "(?s).*bugreport.*\\.zip.*" ) ) : ( result.matches ( "(?s).*bugreport[-0-9]+\\.png.*" ) ) && ( result.matches ( "(?s).*bugreport[-0-9]+\\.zip.*" ) ) ; return success ; }
Source:
public final void setPriority ( int priority ) { if ( ( priority < ( java.lang.Thread.MIN_PRIORITY ) ) || ( priority > ( java.lang.Thread.MAX_PRIORITY ) ) ) { throw new java.lang.IllegalArgumentException ( "Priority out of range" ) ; } if ( priority > ( group.getMaxPriority ( ) ) ) { priority = group.getMaxPriority ( ) ; } this . priority = priority ; java.lang.VMThread vmt = this . vmThread ; if ( vmt != null ) { vmt.setPriority ( priority ) ; } }

Target:
public final void setPriority ( int priority ) { if ( ( priority < ( java.lang.Thread.MIN_PRIORITY ) ) || ( priority > ( java.lang.Thread.MAX_PRIORITY ) ) ) { throw new java.lang.IllegalArgumentException ( ( "Priority out of range: " + priority ) ) ; } if ( priority > ( group.getMaxPriority ( ) ) ) { priority = group.getMaxPriority ( ) ; } this . priority = priority ; java.lang.VMThread vmt = this . vmThread ; if ( vmt != null ) { vmt.setPriority ( priority ) ; } }
Source:
synchronized com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir createVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { assert ! ( isClosed ( ) ) ; try { return getVDir ( parent , name ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir dir = new com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir ( this , parent , name ) ; parent.putInCache ( name , dir ) ; return dir ; } catch ( com.android.sched.util.file.NotDirectoryException e ) { throw new com.android.sched.util.file.CannotCreateFileException ( getVDirLocation ( parent , name ) ) ; } }

Target:
synchronized com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir loadVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NotDirectoryException { assert ! ( isClosed ( ) ) ; com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir vDir = getVDirFromCache ( parent , name ) ; if ( vDir != null ) { return vDir ; } else { com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir dir = new com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir ( this , parent , name ) ; parent.putInCache ( name , dir ) ; return dir ; } }
Source:
public java.lang.Integer call ( ) { java.lang.Integer result ; try { java.lang.Class < ? > c = java.lang.Class.forName ( "Test" ) ; java.lang.reflect.Method m = c.getMethod ( "synchronizedHashCode" , new java.lang.Class [ ] { java.lang.Object.class } ) ; result = ( ( java.lang.Integer ) ( m.invoke ( null , m_obj ) ) ) ; } catch ( java.lang.Exception e ) { java.lang.System.err.println ( "Hash code query exception" ) ; e.printStackTrace ( ) ; result = - 1 ; } return result ; }

Target:
public java.lang.Integer call ( ) { java.lang.Integer result ; try { java.lang.Class < ? > c = java.lang.Class.forName ( "Test" ) ; java.lang.reflect.Method m = c.getMethod ( "synchronizedHashCode" , java.lang.Object.class ) ; result = ( ( java.lang.Integer ) ( m.invoke ( null , m_obj ) ) ) ; } catch ( java.lang.Exception e ) { java.lang.System.out.println ( "Hash code query exception" ) ; e.printStackTrace ( java.lang.System.out ) ; result = - 1 ; } return result ; }
Source:
public java.lang.String nextType ( ) { int startIndex = index ; skipArray ( ) ; char c = descriptor.charAt ( ( ( index ) ++ ) ) ; switch ( c ) { case proguard.classfile.ClassConstants.INTERNAL_TYPE_CLASS_START : case proguard.classfile.ClassConstants.INTERNAL_TYPE_GENERIC_VARIABLE_START : { skipClass ( ) ; break ; } case proguard.classfile.ClassConstants.INTERNAL_TYPE_GENERIC_START : { skipGeneric ( ) ; break ; } } return descriptor.substring ( startIndex , index ) ; }

Target:
public java.lang.String nextType ( ) { int startIndex = index ; skipArray ( ) ; char c = descriptor.charAt ( ( ( index ) ++ ) ) ; switch ( c ) { case proguard.classfile.ClassConstants.TYPE_CLASS_START : case proguard.classfile.ClassConstants.TYPE_GENERIC_VARIABLE_START : { skipClass ( ) ; break ; } case proguard.classfile.ClassConstants.TYPE_GENERIC_START : { skipGeneric ( ) ; break ; } } return descriptor.substring ( startIndex , index ) ; }
Source:
private void responseSetupDataCall ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.SetupDataCallResult setupDataCallResult ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.dataconnection.DataCallResponse ret = com.android.internal.telephony.RIL.convertDataCallResult ( setupDataCallResult ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseSignalStrength ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.SignalStrength signalStrength ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { android.telephony.SignalStrength ret = com.android.internal.telephony.RIL.convertHalSignalStrength ( signalStrength ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
protected void writeDiff ( java.io.File olderFile , java.io.File newerFile , java.util.zip.ZipOutputStream patchOutput ) throws java.io.IOException { java.io.BufferedInputStream olderFileIn = new java.io.BufferedInputStream ( new java.io.FileInputStream ( olderFile ) ) ; java.io.BufferedInputStream newerFileIn = new java.io.BufferedInputStream ( new java.io.FileInputStream ( newerFile ) ) ; try { writeDiff ( olderFileIn , newerFileIn , patchOutput ) ; } finally { olderFileIn.close ( ) ; newerFileIn.close ( ) ; } }

Target:
public void buildPatchFile ( java.io.File olderDir , java.io.File newerDir , java.util.zip.ZipOutputStream patchOutput ) throws java.io.IOException { doBuildPatchFile ( getSource ( olderDir ) , getFile ( newerDir ) , patchOutput ) ; }
Source:
private boolean checkSafeMediaVolume ( int streamType , int index , int device ) { synchronized ( mSafeMediaVolumeState ) { if ( ( ( ( ( mSafeMediaVolumeState ) == ( SAFE_MEDIA_VOLUME_ACTIVE ) ) && ( ( mStreamVolumeAlias [ streamType ] ) == ( AudioSystem.STREAM_MUSIC ) ) ) && ( ( device & ( mSafeMediaVolumeDevices ) ) != 0 ) ) && ( index > ( mSafeMediaVolumeIndex ) ) ) { return false ; } return true ; } }

Target:
private boolean checkSafeMediaVolume ( int streamType , int index , int device ) { synchronized ( mSafeMediaVolumeState ) { if ( ( ( ( ( mSafeMediaVolumeState ) == ( android.media.AudioService.SAFE_MEDIA_VOLUME_ACTIVE ) ) && ( ( mStreamVolumeAlias [ streamType ] ) == ( AudioSystem.STREAM_MUSIC ) ) ) && ( ( device & ( mSafeMediaVolumeDevices ) ) != 0 ) ) && ( index > ( mSafeMediaVolumeIndex ) ) ) { return false ; } return true ; } }
Source:
private void setNotification ( boolean enable ) { android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( com.android.cts.verifier.bluetooth.BleClientService.UPDATE_CHARACTERISTIC_UUID ) ; if ( characteristic != null ) mBluetoothGatt.setCharacteristicNotification ( characteristic , enable ) ; }

Target:
private void setNotification ( android.bluetooth.BluetoothGattCharacteristic characteristic , boolean enable ) { if ( characteristic != null ) { mBluetoothGatt.setCharacteristicNotification ( characteristic , enable ) ; android.bluetooth.BluetoothGattDescriptor descriptor = characteristic.getDescriptor ( com.android.cts.verifier.bluetooth.BleClientService.UPDATE_DESCRIPTOR_UUID ) ; if ( enable ) { if ( characteristic.getUuid ( ) . equals ( com.android.cts.verifier.bluetooth.BleClientService.INDICATE_CHARACTERISTIC_UUID ) ) { descriptor.setValue ( BluetoothGattDescriptor.ENABLE_INDICATION_VALUE ) ; } else { descriptor.setValue ( BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE ) ; } } else { descriptor.setValue ( BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE ) ; } mBluetoothGatt.writeDescriptor ( descriptor ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { final java.lang.reflect.Constructor < com.android.server.wifi.WifiNative > wifiNativeConstructor = com.android.server.wifi.WifiNative.class . getDeclaredConstructor ( java.lang.String.class , java.lang.Boolean.TYPE ) ; wifiNativeConstructor.setAccessible ( true ) ; mWifiNative = org.mockito.Mockito.spy ( wifiNativeConstructor.newInstance ( "test" , true ) ) ; mWifiVendorHal = org.mockito.Mockito.mock ( com.android.server.wifi.WifiVendorHal.class ) ; mWifiNative.setWifiVendorHal ( mWifiVendorHal ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { final java.lang.reflect.Constructor < com.android.server.wifi.WifiNative > wifiNativeConstructor = com.android.server.wifi.WifiNative.class . getDeclaredConstructor ( java.lang.String.class , java.lang.Boolean.TYPE ) ; wifiNativeConstructor.setAccessible ( true ) ; mWifiNative = org.mockito.Mockito.spy ( wifiNativeConstructor.newInstance ( "test" , true ) ) ; mWifiVendorHal = org.mockito.Mockito.mock ( com.android.server.wifi.WifiVendorHal.class ) ; org.mockito.Mockito.when ( mWifiVendorHal.startVendorHal ( org.mockito.Mockito.anyBoolean ( ) ) ) . thenReturn ( true ) ; mWifiNative.setWifiVendorHal ( mWifiVendorHal ) ; }
Source:
boolean removeBond ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; com.android.bluetooth.btservice.RemoteDevices.DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties ( device ) ; if ( ( deviceProp == null ) || ( ( deviceProp.getBondState ( ) ) != ( android.bluetooth.BluetoothDevice.BOND_BONDED ) ) ) { return false ; } android.os.Message msg = mBondStateMachine.obtainMessage ( BondStateMachine.REMOVE_BOND ) ; msg.obj = device ; mBondStateMachine.sendMessage ( msg ) ; return true ; }

Target:
boolean removeBond ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; com.android.bluetooth.btservice.RemoteDevices.DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties ( device ) ; if ( ( deviceProp == null ) || ( ( deviceProp.getBondState ( ) ) != ( android.bluetooth.BluetoothDevice.BOND_BONDED ) ) ) { return false ; } deviceProp.setBondingInitiatedLocally ( false ) ; android.os.Message msg = mBondStateMachine.obtainMessage ( BondStateMachine.REMOVE_BOND ) ; msg.obj = device ; mBondStateMachine.sendMessage ( msg ) ; return true ; }
Source:
public void test_SSLEngine_getEnabledProtocols ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLContext c = libcore.javax.net.ssl.TestSSLContext.create ( ) ; javax.net.ssl.SSLEngine e = c.clientContext.createSSLEngine ( ) ; java.lang.String [ ] protocols = e.getEnabledProtocols ( ) ; libcore.java.security.StandardNames.assertSSLEngineValidProtocols ( protocols ) ; assertNotSame ( protocols , e.getEnabledProtocols ( ) ) ; c.close ( ) ; }

Target:
public void test_SSLEngine_getEnabledProtocols ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLContext c = libcore.javax.net.ssl.TestSSLContext.create ( ) ; javax.net.ssl.SSLEngine e = c.clientContext.createSSLEngine ( ) ; java.lang.String [ ] protocols = e.getEnabledProtocols ( ) ; libcore.java.security.StandardNames.assertSSLEngineDefaultProtocols ( protocols ) ; assertNotSame ( protocols , e.getEnabledProtocols ( ) ) ; c.close ( ) ; }
Source:
public static void buildMultipleDirectoriesInPackageMessage ( java.lang.StringBuffer message , java.lang.String packageQname , com.intellij.psi.PsiDirectory [ ] directories ) { message.append ( com.intellij.refactoring.RefactoringBundle.message ( "multiple.directories.correspond.to.package" ) ) ; message.append ( packageQname ) ; message.append ( ":\n\n" ) ; for ( int i = 0 ; i < ( directories.length ) ; i ++ ) { com.intellij.psi.PsiDirectory directory = directories [ i ] ; if ( i > 0 ) { message.append ( "\n" ) ; } message.append ( directory.getVirtualFile ( ) . getPresentableUrl ( ) ) ; } }

Target:
public java.lang.String fun ( com.intellij.psi.PsiDirectory directory ) { return directory.getVirtualFile ( ) . getPresentableUrl ( ) ; }
Source:
public static void computeTrunc ( android.renderscript.cts.TestTrunc.ArgumentsFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; int sign = ( ( java.lang.Float.floatToIntBits ( args.in ) ) > > 31 ) & 1 ; float trunc = ( ( int ) ( args.in ) ) ; if ( ( sign == 1 ) && ( trunc == ( + 0.0F ) ) ) { trunc = - 0.0F ; } args.out = trunc ; }

Target:
public static void computeConvert ( android.renderscript.cts.TestConvert.ArgumentsUintUshort args ) { args.out = android.renderscript.cts.CoreMathVerifier.convertUintToUshort ( args.inV ) ; }
Source:
public void testSetupDriverForSoftApModeError ( ) { com.android.server.wifi.WificondControl wificondControl = org.mockito.Mockito.mock ( com.android.server.wifi.WificondControl.class ) ; android.net.wifi.IWificond wificond = org.mockito.Mockito.mock ( android.net.wifi.IWificond.class ) ; org.mockito.Mockito.when ( wificondControl.setupDriverForSoftApMode ( ) ) . thenReturn ( null ) ; mWifiNative.setWificondControl ( wificondControl ) ; android.net.wifi.IApInterface returnedApInterface = mWifiNative.setupDriverForSoftApMode ( ) ; org.junit.Assert.assertEquals ( null , returnedApInterface ) ; org.mockito.Mockito.verify ( wificondControl ) . setupDriverForSoftApMode ( ) ; }

Target:
public void testSetupDriverForClientModeError ( ) { com.android.server.wifi.WificondControl wificondControl = org.mockito.Mockito.mock ( com.android.server.wifi.WificondControl.class ) ; android.net.wifi.IWificond wificond = org.mockito.Mockito.mock ( android.net.wifi.IWificond.class ) ; org.mockito.Mockito.when ( wificondControl.setupDriverForClientMode ( ) ) . thenReturn ( null ) ; mWifiNative.setWificondControl ( wificondControl ) ; android.net.wifi.IClientInterface returnedClientInterface = mWifiNative.setupForClientMode ( ) ; org.junit.Assert.assertEquals ( null , returnedClientInterface ) ; org.mockito.Mockito.verify ( mWifiNative ) . startHal ( org.mockito.Mockito.eq ( true ) ) ; org.mockito.Mockito.verify ( wificondControl ) . setupDriverForClientMode ( ) ; }
Source:
public int setProvisionedStringValue ( int item , java.lang.String value ) throws android.os.RemoteException { return ImsConfig.OperationStatusConstants.FAILED ; }

Target:
public synchronized int getProvisionedValue ( int item ) throws android.os.RemoteException { if ( mProvisionedIntValue.containsKey ( item ) ) { return mProvisionedIntValue.get ( item ) ; } else { int retVal = getImsConfigImpl ( ) . getProvisionedValue ( item ) ; if ( retVal != ( ImsConfig.OperationStatusConstants.UNKNOWN ) ) { updateCachedValue ( item , retVal , false ) ; } return retVal ; } }
Source:
public void test_isSocket ( ) throws java.lang.Exception { java.io.File f = new java.io.File ( "/dev/null" ) ; java.io.FileInputStream fis = new java.io.FileInputStream ( f ) ; assertFalse ( fis.getFD ( ) . isSocket ( ) ) ; fis.close ( ) ; java.net.ServerSocket s = new java.net.ServerSocket ( ) ; assertTrue ( s.getImpl$ ( ) . getFD$ ( ) . isSocket ( ) ) ; s.close ( ) ; }

Target:
public void test_isSocket$ ( ) throws java.lang.Exception { java.io.File f = new java.io.File ( "/dev/null" ) ; java.io.FileInputStream fis = new java.io.FileInputStream ( f ) ; assertFalse ( fis.getFD ( ) . isSocket$ ( ) ) ; fis.close ( ) ; java.net.ServerSocket s = new java.net.ServerSocket ( ) ; assertTrue ( s.getImpl$ ( ) . getFD$ ( ) . isSocket$ ( ) ) ; s.close ( ) ; }
Source:
public com.android.ide.common.rendering.api.RenderSession render ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiDocumentNode model , int width , int height , java.util.Set < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > explodeNodes , boolean transparentBackground , com.android.ide.common.rendering.api.LayoutLog logger ) { if ( ! ( ensureFileValid ( ) ) ) { return null ; } if ( ! ( ensureModelValid ( model ) ) ) { return null ; } com.android.ide.common.rendering.LayoutLibrary layoutLib = getReadyLayoutLib ( true ) ; org.eclipse.core.resources.IProject iProject = mEditedFile.getProject ( ) ; return renderWithBridge ( iProject , model , layoutLib , width , height , explodeNodes , transparentBackground , logger ) ; }

Target:
public com.android.ide.common.rendering.api.RenderSession render ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiDocumentNode model , int width , int height , java.util.Set < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > explodeNodes , boolean transparentBackground , com.android.ide.common.rendering.api.LayoutLog logger , com.android.ide.common.rendering.api.Params.RenderingMode renderingMode ) { if ( ! ( ensureFileValid ( ) ) ) { return null ; } if ( ! ( ensureModelValid ( model ) ) ) { return null ; } com.android.ide.common.rendering.LayoutLibrary layoutLib = getReadyLayoutLib ( true ) ; org.eclipse.core.resources.IProject iProject = mEditedFile.getProject ( ) ; return renderWithBridge ( iProject , model , layoutLib , width , height , explodeNodes , transparentBackground , logger , null , renderingMode ) ; }
Source:
public void createTest ( com.android.rs.imagejb.Resources res ) { mScript = new com.android.rs.imagejb.ScriptC_wbalance ( mRS ) ; }

Target:
public void createTest ( com.android.rs.imagejb.Resources res ) { mScript = new com.android.rs.imagejb.ScriptC_wbalance ( mRS ) ; mHist = android.renderscript.ScriptIntrinsicHistogram.create ( mRS , android.renderscript.Element.U8_4 ( mRS ) ) ; mSums = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_3 ( mRS ) , 256 ) ; mHist.setOutput ( mSums ) ; mScript.set_histogramValues ( mSums ) ; }
Source:
protected void onRadioAvailable ( ) { if ( DBG ) log ( "onRadioAvailable" ) ; if ( ( mPhone.getSimulatedRadioControl ( ) ) != null ) { notifyDataConnection ( null ) ; log ( "onRadioAvailable: We're on the simulator; assuming data is connected" ) ; } com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; if ( ( r != null ) && ( r.getRecordsLoaded ( ) ) ) { notifyOffApnsOfAvailability ( null ) ; } if ( ( getOverallState ( ) ) != ( DctConstants.State.IDLE ) ) { cleanUpConnection ( true , null ) ; } }

Target:
protected void onRadioAvailable ( ) { if ( DBG ) log ( "onRadioAvailable" ) ; if ( ( mPhone.getSimulatedRadioControl ( ) ) != null ) { notifyDataConnection ( null ) ; log ( "onRadioAvailable: We're on the simulator; assuming data is connected" ) ; } com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; if ( ( r != null ) && ( r.getRecordsLoaded ( ) ) ) { notifyOffApnsOfAvailability ( null ) ; } if ( ( getOverallState ( ) ) != ( DctConstants.State.IDLE ) ) { cleanUpConnection ( true , null ) ; } }
Source:
private static void reportTypeDef ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation , @ com.android.annotations.NonNull lombok.ast.Node argument , @ com.android.annotations.Nullable lombok.ast.Node errorNode ) { java.lang.Object allowed = annotation.getValue ( ) ; if ( allowed instanceof java.lang.Object [ ] ) { java.lang.Object [ ] allowedValues = ( ( java.lang.Object [ ] ) ( allowed ) ) ; com.android.tools.lint.checks.SupportAnnotationDetector.reportTypeDef ( context , argument , errorNode , false , allowedValues ) ; } }

Target:
private static void checkIntRange ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation , @ com.android.annotations.NonNull lombok.ast.Node argument , @ com.android.annotations.NonNull java.lang.Iterable < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > allAnnotations ) { java.lang.String message = com.android.tools.lint.checks.SupportAnnotationDetector.getIntRangeError ( context , annotation , argument ) ; if ( message != null ) { if ( ( com.android.tools.lint.checks.SupportAnnotationDetector.findIntDef ( allAnnotations ) ) != null ) { return ; } context.report ( com.android.tools.lint.checks.SupportAnnotationDetector.RANGE , argument , context.getLocation ( argument ) , message ) ; } }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( ( ( org.eclipse.jface.viewers.TreeSelection ) ( mTreeViewer.getSelection ( ) ) ) . isEmpty ( ) ) { mModel.setSelected ( null ) ; } else { mModel.setSelected ( ( ( com.android.hierarchyviewerlib.device.ViewNode ) ( e.item.getData ( ) ) ) ) ; } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( ( ( org.eclipse.jface.viewers.TreeSelection ) ( mTreeViewer.getSelection ( ) ) ) . isEmpty ( ) ) { mModel.setSelected ( null ) ; } else { mModel.setSelected ( ( ( com.android.hierarchyviewerlib.models.ViewNode ) ( e.item.getData ( ) ) ) ) ; } }
Source:
private com.android.layoutlib.api.LayoutScene convertToScene ( com.android.layoutlib.api.ILayoutResult result ) { com.android.layoutlib.api.SceneResult sceneResult ; com.android.layoutlib.api.ViewInfo rootViewInfo ; if ( ( result.getSuccess ( ) ) == ( com.android.layoutlib.api.ILayoutResult.SUCCESS ) ) { sceneResult = SceneStatus.SUCCESS.getResult ( ) ; rootViewInfo = convertToViewInfo ( result.getRootView ( ) ) ; } else { sceneResult = new com.android.layoutlib.api.SceneResult ( com.android.layoutlib.api.SceneResult.SceneStatus.ERROR_UNKNOWN , result.getErrorMessage ( ) ) ; rootViewInfo = null ; } return new com.android.ide.common.layoutlib.BasicLayoutScene ( sceneResult , rootViewInfo , result.getImage ( ) ) ; }

Target:
private com.android.layoutlib.api.LayoutScene convertToScene ( com.android.layoutlib.api.ILayoutResult result ) { com.android.layoutlib.api.SceneResult sceneResult ; com.android.layoutlib.api.ViewInfo rootViewInfo ; if ( ( result.getSuccess ( ) ) == ( com.android.layoutlib.api.ILayoutResult.SUCCESS ) ) { sceneResult = SceneStatus.SUCCESS.getResult ( ) ; rootViewInfo = convertToViewInfo ( result.getRootView ( ) ) ; } else { sceneResult = SceneStatus.ERROR_UNKNOWN.getResult ( result.getErrorMessage ( ) ) ; rootViewInfo = null ; } return new com.android.ide.common.layoutlib.BasicLayoutScene ( sceneResult , rootViewInfo , result.getImage ( ) ) ; }
Source:
public com.android.sched.vfs.InputVFile getFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { return libraryVDir.getInputVFile ( new com.android.sched.vfs.VPath ( ( ( typePath.getPathAsString ( '/' ) ) + ( fileType.getFileExtension ( ) ) ) , '/' ) ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }

Target:
public com.android.sched.vfs.InputVFile getFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { typePath.addSuffix ( fileType.getFileExtension ( ) ) ; return libraryVDir.getInputVFile ( typePath ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
public void writeOnImsCallTerminated ( int phoneId , com.android.ims.internal.ImsCallSession session , com.android.ims.ImsReasonInfo reasonInfo ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_CALL_TERMINATED ) . setCallIndex ( getCallId ( session ) ) . setImsReasonInfo ( toImsReasonInfoProto ( reasonInfo ) ) ) ; } }

Target:
public void writeOnImsCallHandoverEvent ( int phoneId , int eventType , android.telephony.ims.ImsCallSession session , int srcAccessTech , int targetAccessTech , android.telephony.ims.ImsReasonInfo reasonInfo ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( eventType ) . setCallIndex ( getCallId ( session ) ) . setSrcAccessTech ( srcAccessTech ) . setTargetAccessTech ( targetAccessTech ) . setImsReasonInfo ( toImsReasonInfoProto ( reasonInfo ) ) ) ; } }
Source:
public boolean isOutboundDone ( ) { return ( ( org.conscrypt.NativeCrypto.SSL_get_shutdown ( sslNativePointer ) ) & ( NativeCrypto.SSL_SENT_SHUTDOWN ) ) != 0 ; }

Target:
public boolean isOutboundDone ( ) { if ( ( sslNativePointer ) == 0 ) { synchronized ( stateLock ) { return ( ( engineState ) == ( org.conscrypt.OpenSSLEngineImpl.EngineState.CLOSED ) ) || ( ( engineState ) == ( org.conscrypt.OpenSSLEngineImpl.EngineState.CLOSED_OUTBOUND ) ) ; } } return ( ( org.conscrypt.NativeCrypto.SSL_get_shutdown ( sslNativePointer ) ) & ( NativeCrypto.SSL_SENT_SHUTDOWN ) ) != 0 ; }
Source:
public int getComponentEnabledSetting ( android.content.ComponentName componentName ) { synchronized ( mPackages ) { return mSettings.getComponentEnabledSettingLPr ( componentName ) ; } }

Target:
public int getComponentEnabledSetting ( android.content.ComponentName componentName , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED ; int uid = android.os.Binder.getCallingUid ( ) ; checkValidCaller ( uid , userId ) ; synchronized ( mPackages ) { return mSettings.getComponentEnabledSettingLPr ( componentName , userId ) ; } }
Source:
public void dump ( java.io.FileDescriptor fd , java.lang.String [ ] args ) { java.io.PrintWriter writer = new java.io.PrintWriter ( new java.io.FileOutputStream ( fd ) ) ; com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return ; } service.dump ( fd , writer , args ) ; }

Target:
public void dump ( java.io.FileDescriptor fd , java.lang.String [ ] args ) { java.io.PrintWriter writer = new java.io.PrintWriter ( new java.io.FileOutputStream ( fd ) ) ; com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return ; } service.dump ( fd , writer , args ) ; writer.close ( ) ; }
Source:
private void addBridgeMethods ( org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding clazzBinding ) throws com.android.jack.ir.ast.JTypeLookupException { if ( ( clazzBinding.syntheticMethods ( ) ) != null ) { for ( org.eclipse.jdt.internal.compiler.lookup.SyntheticMethodBinding synthmeth : clazzBinding.syntheticMethods ( ) ) { if ( ( ( synthmeth.purpose ) == ( org.eclipse.jdt.internal.compiler.lookup.SyntheticMethodBinding.BridgeMethod ) ) && ( ! ( synthmeth.isStatic ( ) ) ) ) { createBridgeMethod ( synthmeth ) ; } } } }

Target:
private void addBridgeMethods ( org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding clazzBinding ) throws com.android.jack.ir.ast.JTypeLookupException { if ( ( ( clazzBinding.syntheticMethods ( ) ) != null ) && ( ( generateBridgeInInterface ) || ( ! ( clazzBinding.isInterface ( ) ) ) ) ) { for ( org.eclipse.jdt.internal.compiler.lookup.SyntheticMethodBinding synthmeth : clazzBinding.syntheticMethods ( ) ) { if ( ( ( synthmeth.purpose ) == ( org.eclipse.jdt.internal.compiler.lookup.SyntheticMethodBinding.BridgeMethod ) ) && ( ! ( synthmeth.isStatic ( ) ) ) ) { createBridgeMethod ( synthmeth ) ; } } } }
Source:
public java.lang.String getISO3Country ( ) { java.lang.String code = libcore.icu.ICU.getISO3Country ( this ) ; if ( ( ! ( countryCode.isEmpty ( ) ) ) && ( code.isEmpty ( ) ) ) { throw new java.util.MissingResourceException ( ( "No 3-letter country code for locale: " + ( this ) ) , ( "FormatData_" + ( this ) ) , "ShortCountry" ) ; } return code ; }

Target:
public java.lang.String getISO3Country ( ) { java.lang.String code = libcore.icu.ICU.getISO3Country ( ( "en-" + ( countryCode ) ) ) ; if ( ( ! ( countryCode.isEmpty ( ) ) ) && ( code.isEmpty ( ) ) ) { throw new java.util.MissingResourceException ( ( "No 3-letter country code for locale: " + ( this ) ) , ( "FormatData_" + ( this ) ) , "ShortCountry" ) ; } return code ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotationLiteral ) { com.android.jack.ir.ast.JAnnotationLiteral clonedAnnotationliteral = new com.android.jack.ir.ast.JAnnotationLiteral ( annotationLiteral.getSourceInfo ( ) , annotationLiteral.getRetentionPolicy ( ) , annotationLiteral.getType ( ) ) ; for ( com.android.jack.ir.ast.JNameValuePair nvp : annotationLiteral.getNameValuePairs ( ) ) { clonedAnnotationliteral.add ( new com.android.jack.ir.ast.JNameValuePair ( nvp.getSourceInfo ( ) , nvp.getMethodId ( ) , cloneExpression ( nvp.getValue ( ) ) ) ) ; } expression = clonedAnnotationliteral ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotation ) { com.android.jack.ir.ast.JAnnotation clonedAnnotationliteral = new com.android.jack.ir.ast.JAnnotation ( annotation.getSourceInfo ( ) , annotation.getRetentionPolicy ( ) , annotation.getType ( ) ) ; for ( com.android.jack.ir.ast.JNameValuePair nvp : annotation.getNameValuePairs ( ) ) { clonedAnnotationliteral.add ( new com.android.jack.ir.ast.JNameValuePair ( nvp.getSourceInfo ( ) , nvp.getMethodId ( ) , cloneExpression ( nvp.getValue ( ) ) ) ) ; } expression = clonedAnnotationliteral ; return false ; }
Source:
final boolean finishActivityAffinityLocked ( com.android.server.am.ActivityRecord r ) { java.util.ArrayList < com.android.server.am.ActivityRecord > activities = r.task.mActivities ; for ( int index = activities.indexOf ( r ) ; index >= 0 ; -- index ) { com.android.server.am.ActivityRecord cur = activities.get ( index ) ; if ( ! ( com.android.internal.util.Objects.equal ( cur.taskAffinity , r.taskAffinity ) ) ) { break ; } finishActivityLocked ( cur , Activity.RESULT_CANCELED , null , "request-affinity" , true ) ; } return true ; }

Target:
final boolean finishActivityAffinityLocked ( com.android.server.am.ActivityRecord r ) { java.util.ArrayList < com.android.server.am.ActivityRecord > activities = r.task.mActivities ; for ( int index = activities.indexOf ( r ) ; index >= 0 ; -- index ) { com.android.server.am.ActivityRecord cur = activities.get ( index ) ; if ( ! ( java.util.Objects.equals ( cur.taskAffinity , r.taskAffinity ) ) ) { break ; } finishActivityLocked ( cur , Activity.RESULT_CANCELED , null , "request-affinity" , true ) ; } return true ; }
Source:
public void dumpActivity ( java.io.FileDescriptor fd , android.os.IBinder activitytoken , java.lang.String prefix , java.lang.String [ ] args ) { android.app.ActivityThread.DumpComponentInfo data = new android.app.ActivityThread.DumpComponentInfo ( ) ; try { data.fd = android.os.ParcelFileDescriptor.dup ( fd ) ; data.token = activitytoken ; data.prefix = prefix ; data.args = args ; queueOrSendMessage ( android.app.ActivityThread.H.DUMP_ACTIVITY , data ) ; } catch ( java.io.IOException e ) { android.util.Slog.w ( android.app.ActivityThread.TAG , "dumpActivity failed" , e ) ; } }

Target:
public void dumpActivity ( java.io.FileDescriptor fd , android.os.IBinder activitytoken , java.lang.String prefix , java.lang.String [ ] args ) { android.app.ActivityThread.DumpComponentInfo data = new android.app.ActivityThread.DumpComponentInfo ( ) ; try { data.fd = android.os.ParcelFileDescriptor.dup ( fd ) ; data.token = activitytoken ; data.prefix = prefix ; data.args = args ; sendMessage ( android.app.ActivityThread.H.DUMP_ACTIVITY , data , 0 , 0 , true ) ; } catch ( java.io.IOException e ) { android.util.Slog.w ( android.app.ActivityThread.TAG , "dumpActivity failed" , e ) ; } }
Source:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { visitor.visitClassInstance ( this ) ; for ( java.lang.Object value : getValues ( ) . values ( ) ) { if ( value instanceof com.android.tools.perflib.heap.Instance ) { visitor.visitLater ( ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) ) ; } } }

Target:
public final void accept ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Visitor visitor ) { visitor.visitClassInstance ( this ) ; for ( java.lang.Object value : getValues ( ) . values ( ) ) { if ( value instanceof com.android.tools.perflib.heap.Instance ) { if ( ! ( mReferencesAdded ) ) { ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) . addReference ( this ) ; } visitor.visitLater ( ( ( com.android.tools.perflib.heap.Instance ) ( value ) ) ) ; } } mReferencesAdded = true ; }
Source:
synchronized boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return replyReportNative ( type , id , data ) ; }

Target:
synchronized boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return mHidDeviceNativeInterface.replyReport ( type , id , data ) ; }
Source:
protected void addAlgorithmSpecificParametersToBegin ( android.security.keymaster.KeymasterArguments keymasterArgs ) { if ( ! ( mFirstOperationInitiated ) ) { if ( mIvRequired ) { if ( ( ( mIv ) == null ) && ( mEncrypting ) ) { mIv = new byte [ mBlockSizeBytes ] ; java.security.SecureRandom rng = ( ( mRng ) != null ) ? mRng : new java.security.SecureRandom ( ) ; rng.nextBytes ( mIv ) ; } } } if ( ( mIvRequired ) && ( ( mIv ) != null ) ) { keymasterArgs.addBlob ( KeymasterDefs.KM_TAG_NONCE , mIv ) ; } }

Target:
protected void addAlgorithmSpecificParametersToBegin ( android.security.keymaster.KeymasterArguments keymasterArgs ) { if ( ! ( mFirstOperationInitiated ) ) { if ( mIvRequired ) { if ( ( ( mIv ) == null ) && ( mEncrypting ) ) { if ( ( mRng ) != null ) { mAdditionalEntropyForBegin = new byte [ mBlockSizeBytes ] ; mRng.nextBytes ( mAdditionalEntropyForBegin ) ; } } } } if ( ( mIvRequired ) && ( ( mIv ) != null ) ) { keymasterArgs.addBlob ( KeymasterDefs.KM_TAG_NONCE , mIv ) ; } }
Source:
public java.lang.String getNumberLabel ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getLabel ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getLabel ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public java.lang.String getNumberLabel ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getLabel ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getLabel ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public static java.lang.String formatProgressText ( long totalBytes , long currentBytes ) { if ( totalBytes <= 0 ) { return "0%" ; } long progress = ( currentBytes * 100 ) / totalBytes ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( progress ) ; sb.append ( '%' ) ; return sb.toString ( ) ; }

Target:
public static java.lang.String formatProgressText ( long totalBytes , long currentBytes ) { java.text.DecimalFormat df = new java.text.DecimalFormat ( "0%" ) ; df.setRoundingMode ( java.math.RoundingMode.DOWN ) ; double percent = 0.0 ; if ( totalBytes > 0 ) { percent = currentBytes / ( ( double ) ( totalBytes ) ) ; } return df.format ( percent ) ; }
Source:
protected static void printUsage ( @ javax.annotation.Nonnull java.io.PrintStream printStream ) { org.kohsuke.args4j.CmdLineParser parser = new org.kohsuke.args4j.CmdLineParser ( new com.android.jack.Options ( ) , org.kohsuke.args4j.ParserProperties.defaults ( ) . withUsageWidth ( 100 ) ) ; printStream.println ( "Usage: <options> <source files>" ) ; printStream.println ( ) ; printStream.println ( "Options:" ) ; parser.printUsage ( printStream ) ; }

Target:
protected static void printUsage ( @ javax.annotation.Nonnull java.io.PrintStream printStream ) { org.kohsuke.args4j.CmdLineParser parser = new org.kohsuke.args4j.CmdLineParser ( new com.android.jack.Options ( ) , org.kohsuke.args4j.ParserProperties.defaults ( ) . withUsageWidth ( 100 ) ) ; printStream.println ( "Usage: <options> <source files>" ) ; printStream.println ( ) ; printStream.println ( "Options:" ) ; java.io.ByteArrayOutputStream outputStream = new java.io.ByteArrayOutputStream ( ) ; parser.printUsage ( outputStream ) ; printStream.append ( outputStream.toString ( ) ) ; }
Source:
public boolean isConnected ( android.bluetooth.BluetoothDevice device ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "isConnected(): not allowed for non-active user" ) ; return false ; } enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; return ( ( mState ) == ( android.bluetooth.BluetoothPbap.STATE_CONNECTED ) ) && ( mRemoteDevice.equals ( device ) ) ; }

Target:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_ADMIN_PERM ) ; return false ; }
Source:
public void testNetworkTypes ( ) { assertTrue ( mCm.isNetworkSupported ( android.net.ConnectivityManager.TYPE_WIFI ) ) ; assertTrue ( mCm.isNetworkSupported ( android.net.ConnectivityManager.TYPE_MOBILE ) ) ; assertTrue ( mCm.isNetworkSupported ( android.net.ConnectivityManager.TYPE_MOBILE_MMS ) ) ; assertFalse ( mCm.isNetworkSupported ( android.net.ConnectivityManager.TYPE_MOBILE_FOTA ) ) ; assertTrue ( mCm.isNetworkSupported ( android.net.ConnectivityManager.TYPE_ETHERNET ) ) ; }

Target:
public void testNetworkTypes ( ) { org.junit.Assert.assertTrue ( mCm.isNetworkSupported ( android.net.ConnectivityManager.TYPE_WIFI ) ) ; org.junit.Assert.assertTrue ( mCm.isNetworkSupported ( android.net.ConnectivityManager.TYPE_MOBILE ) ) ; org.junit.Assert.assertTrue ( mCm.isNetworkSupported ( android.net.ConnectivityManager.TYPE_MOBILE_MMS ) ) ; org.junit.Assert.assertFalse ( mCm.isNetworkSupported ( android.net.ConnectivityManager.TYPE_MOBILE_FOTA ) ) ; org.junit.Assert.assertTrue ( mCm.isNetworkSupported ( android.net.ConnectivityManager.TYPE_ETHERNET ) ) ; }
Source:
public void update ( ) { clear ( ) ; final java.util.List < android.support.v7.media.MediaRouter.RouteInfo > routes = mRouter.getRoutes ( ) ; final int count = routes.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { android.support.v7.media.MediaRouter.RouteInfo route = routes.get ( i ) ; if ( onFilterRoute ( route ) ) { add ( route ) ; } } sort ( android.support.v7.app.MediaRouteChooserDialog.RouteComparator.sInstance ) ; notifyDataSetChanged ( ) ; }

Target:
public void onFilterRoutes ( @ android.support.v7.app.NonNull java.util.List < android.support.v7.media.MediaRouter.RouteInfo > routes ) { for ( int i = routes.size ( ) ; ( i -- ) > 0 ; ) { if ( ! ( onFilterRoute ( routes.get ( i ) ) ) ) { routes.remove ( i ) ; } } }
Source:
public android.view.accessibility.AccessibilityNodeProvider getAccessibilityNodeProvider ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { android.view.accessibility.AccessibilityNodeProvider ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.view.accessibility.AccessibilityNodeProvider > ( ) { @ java.lang.Override public android.view.accessibility.AccessibilityNodeProvider call ( ) { return getAccessibilityNodeProvider ( ) ; } } ) ; return ret ; } return mAwContents.getAccessibilityNodeProvider ( ) ; }

Target:
public boolean zoomIn ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return zoomIn ( ) ; } } ) ; return ret ; } return mAwContents.zoomIn ( ) ; }
Source:
private void initForReal ( ) { mAwContents = new org.chromium.android_webview.AwContents ( mFactory.getBrowserContext ( ) , mWebView , new com.android.webview.chromium.WebViewChromium.InternalAccessAdapter ( ) , mContentsClientAdapter , mWebSettings.getAwSettings ( ) ) ; if ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.KITKAT ) ) { org.chromium.android_webview.AwContents.setShouldDownloadFavicons ( ) ; } }

Target:
private void initForReal ( ) { mAwContents = new org.chromium.android_webview.AwContents ( mFactory.getBrowserContext ( ) , mWebView , new com.android.webview.chromium.WebViewChromium.InternalAccessAdapter ( ) , mContentsClientAdapter , mWebSettings.getAwSettings ( ) ) ; if ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.KITKAT ) ) { org.chromium.android_webview.AwContents.setShouldDownloadFavicons ( ) ; } mAwContents.setLayerType ( mWebView.getLayerType ( ) , null ) ; }
Source:
private void loadPhonePrefixMapFromFile ( java.lang.String fileName ) { java.io.InputStream source = com.google.i18n.phonenumbers.prefixmapper.PrefixFileReader.class . getResourceAsStream ( ( ( phonePrefixDataDirectory ) + fileName ) ) ; java.io.ObjectInputStream in = null ; try { in = new java.io.ObjectInputStream ( source ) ; com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMap map = new com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMap ( ) ; map.readExternal ( in ) ; availablePhonePrefixMaps.put ( fileName , map ) ; } catch ( java.io.IOException e ) { com.google.i18n.phonenumbers.prefixmapper.PrefixFileReader.LOGGER.log ( java.util.logging.Level.WARNING , e.toString ( ) ) ; } finally { com.google.i18n.phonenumbers.prefixmapper.PrefixFileReader.close ( in ) ; } }

Target:
private void loadPhonePrefixMapFromFile ( java.lang.String fileName ) { java.io.InputStream source = com.google.i18n.phonenumbers.prefixmapper.PrefixFileReader.class . getResourceAsStream ( ( ( phonePrefixDataDirectory ) + fileName ) ) ; java.io.ObjectInputStream in = null ; try { in = new java.io.ObjectInputStream ( source ) ; com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMap map = new com.google.i18n.phonenumbers.prefixmapper.PhonePrefixMap ( ) ; map.readExternal ( in ) ; availablePhonePrefixMaps.put ( fileName , map ) ; } catch ( java.io.IOException e ) { com.google.i18n.phonenumbers.prefixmapper.PrefixFileReader.logger.log ( java.util.logging.Level.WARNING , e.toString ( ) ) ; } finally { com.google.i18n.phonenumbers.prefixmapper.PrefixFileReader.close ( in ) ; } }