auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public synchronized void stop ( ) { if ( ( mPhoneProxy ) != null ) { if ( com.android.bluetooth.hfp.HeadsetSystemInterface.DBG ) { android.util.Log.d ( com.android.bluetooth.hfp.HeadsetSystemInterface.TAG , "Unbinding phone proxy" ) ; } mPhoneProxy = null ; mHeadsetService.unbindService ( mPhoneProxyConnection ) ; } mHeadsetPhoneState.listenForPhoneState ( false ) ; mHeadsetPhoneState.cleanup ( ) ; }

Target:
public synchronized void stop ( ) { if ( ( mPhoneProxy ) != null ) { if ( com.android.bluetooth.hfp.HeadsetSystemInterface.DBG ) { android.util.Log.d ( com.android.bluetooth.hfp.HeadsetSystemInterface.TAG , "Unbinding phone proxy" ) ; } mPhoneProxy = null ; mHeadsetService.unbindService ( mPhoneProxyConnection ) ; } mHeadsetPhoneState.cleanup ( ) ; }
Source:
synchronized void nAllocationData2D ( int id , int xoff , int yoff , int mip , int face , int w , int h , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }
Source:
public void testVoicemailCall ( ) { java.lang.String voicemailNumber = "voicemail:18005551234" ; android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_CALL , android.net.Uri.parse ( voicemailNumber ) ) ; intent.putExtra ( TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE , true ) ; int result = processIntent ( intent , true ) ; assertEquals ( DisconnectCause.NOT_DISCONNECTED , result ) ; org.mockito.Mockito.verify ( mCallsManager ) . placeOutgoingCall ( org.mockito.Matchers.eq ( mCall ) , org.mockito.Matchers.eq ( android.net.Uri.parse ( voicemailNumber ) ) , org.mockito.ArgumentMatchers.nullable ( android.telecom.GatewayInfo.class ) , org.mockito.Matchers.eq ( true ) , org.mockito.Matchers.eq ( VideoProfile.STATE_AUDIO_ONLY ) ) ; }

Target:
public void testVoicemailCall ( ) { java.lang.String voicemailNumber = "voicemail:18005551234" ; android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_CALL , android.net.Uri.parse ( voicemailNumber ) ) ; intent.putExtra ( TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE , true ) ; int result = processIntent ( intent , true ) ; org.junit.Assert.assertEquals ( DisconnectCause.NOT_DISCONNECTED , result ) ; org.mockito.Mockito.verify ( mCallsManager ) . placeOutgoingCall ( org.mockito.Matchers.eq ( mCall ) , org.mockito.Matchers.eq ( android.net.Uri.parse ( voicemailNumber ) ) , org.mockito.ArgumentMatchers.nullable ( android.telecom.GatewayInfo.class ) , org.mockito.Matchers.eq ( true ) , org.mockito.Matchers.eq ( VideoProfile.STATE_AUDIO_ONLY ) ) ; }
Source:
public com.android.jack.dx.dex.file.IndexedItem get ( com.android.jack.dx.rop.cst.Constant cst ) { if ( cst == null ) { throw new java.lang.NullPointerException ( "cst == null" ) ; } throwIfNotPrepared ( ) ; com.android.jack.dx.rop.type.Type type = ( ( com.android.jack.dx.rop.cst.CstType ) ( cst ) ) . getClassType ( ) ; com.android.jack.dx.dex.file.IndexedItem result = classDefs.get ( type ) ; if ( result == null ) { throw new java.lang.IllegalArgumentException ( "not found" ) ; } return result ; }

Target:
public com.android.jack.dx.dex.file.IndexedItem get ( com.android.jack.dx.rop.cst.Constant cst ) { if ( cst == null ) { throw new java.lang.NullPointerException ( "cst == null" ) ; } throwIfNotPrepared ( ) ; com.android.jack.dx.dex.file.IndexedItem result = classDefs.get ( cst ) ; if ( result == null ) { throw new java.lang.IllegalArgumentException ( "not found" ) ; } return result ; }
Source:
protected com.android.sdklib.internal.repository.archives.Archive [ ] initializeArchives ( java.util.Properties props , com.android.sdklib.internal.repository.archives.Archive.Os archiveOs , com.android.sdklib.internal.repository.archives.Archive.Arch archiveArch , java.lang.String archiveOsPath ) { assert archiveOs == ( com.android.sdklib.internal.repository.archives.Archive.Os.getCurrentOs ( ) ) ; assert archiveArch == ( com.android.sdklib.internal.repository.archives.Archive.Arch.getCurrentArch ( ) ) ; return super . initializeArchives ( props , Os.ANY , Arch.ANY , com.android.sdklib.internal.repository.packages.LOCAL_ARCHIVE_PATH ) ; }

Target:
protected com.android.sdklib.internal.repository.archives.Archive [ ] initializeArchives ( java.util.Properties props , java.lang.String archiveOsPath ) { return super . initializeArchives ( props , com.android.sdklib.internal.repository.packages.LOCAL_ARCHIVE_PATH ) ; }
Source:
public static android.renderscript.Element I16_2 ( android.renderscript.RenderScript rs ) { if ( ( rs.mElement_SHORT_2 ) == null ) { rs.mElement_SHORT_2 = android.renderscript.Element.createVector ( rs , android.renderscript.Element.DataType.SIGNED_16 , 2 ) ; } return rs.mElement_SHORT_2 ; }

Target:
public static android.renderscript.Element I16_2 ( android.renderscript.RenderScript rs ) { if ( ( rs.mElement_SHORT_2 ) == null ) { synchronized ( rs ) { if ( ( rs.mElement_SHORT_2 ) == null ) { rs.mElement_SHORT_2 = android.renderscript.Element.createVector ( rs , android.renderscript.Element.DataType.SIGNED_16 , 2 ) ; } } } return rs.mElement_SHORT_2 ; }
Source:
private boolean loadData ( java.lang.String path ) { try { mappedFile = libcore.io.MemoryMappedFile.mmapRO ( path ) ; } catch ( android.system.ErrnoException errnoException ) { return false ; } try { readHeader ( ) ; return true ; } catch ( java.lang.Exception ex ) { try { mappedFile.close ( ) ; } catch ( android.system.ErrnoException ignored ) { } java.lang.System.logE ( ( ( "tzdata file \"" + path ) + "\" was present but invalid!" ) , ex ) ; return false ; } }

Target:
private boolean loadData ( java.lang.String path ) { try { mappedFile = libcore.io.MemoryMappedFile.mmapRO ( path ) ; } catch ( android.system.ErrnoException errnoException ) { return false ; } try { readHeader ( ) ; return true ; } catch ( java.lang.Exception ex ) { close ( ) ; java.lang.System.logE ( ( ( "tzdata file \"" + path ) + "\" was present but invalid!" ) , ex ) ; return false ; } }
Source:
public void getDownloadableSubscriptionMetadata ( android.telephony.euicc.DownloadableSubscription subscription , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . getDownloadableSubscriptionMetadata ( subscription , mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void getDownloadableSubscriptionMetadata ( android.telephony.euicc.DownloadableSubscription subscription , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . getDownloadableSubscriptionMetadata ( subscription , mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
synchronized void dropClient ( com.android.ddmlib.Client client , boolean notify ) { if ( ( com.android.ddmlib.MonitorThread.sInstance ) == null ) { return ; } synchronized ( mClientList ) { if ( ( mClientList.remove ( client ) ) == false ) { return ; } } client.close ( notify ) ; broadcast ( com.android.ddmlib.MonitorThread.CLIENT_DISCONNECTED , client ) ; wakeup ( ) ; }

Target:
synchronized void dropClient ( com.android.ddmlib.Client client , boolean notify ) { if ( ( com.android.ddmlib.MonitorThread.sInstance ) == null ) { return ; } synchronized ( mClientList ) { if ( ! ( mClientList.remove ( client ) ) ) { return ; } } client.close ( notify ) ; broadcast ( com.android.ddmlib.MonitorThread.CLIENT_DISCONNECTED , client ) ; wakeup ( ) ; }
Source:
public void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.Nullable org.objectweb.asm.tree.MethodNode method , @ com.android.annotations.Nullable org.objectweb.asm.tree.AbstractInsnNode instruction , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.Nullable java.lang.Object data ) { if ( ( method != null ) && ( mDriver.isSuppressed ( issue , mClassNode , method , instruction ) ) ) { return ; } report ( issue , location , message , data ) ; }

Target:
public void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.Nullable org.objectweb.asm.tree.MethodNode method , @ com.android.annotations.Nullable org.objectweb.asm.tree.AbstractInsnNode instruction , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message ) { if ( ( method != null ) && ( mDriver.isSuppressed ( issue , mClassNode , method , instruction ) ) ) { return ; } report ( issue , location , message ) ; }
Source:
public void binderDied ( ) { mImsServiceProxy = null ; mUt = null ; mConfig = null ; mEcbm = null ; mMultiEndpoint = null ; if ( ( ( mContext ) != null ) && ( ! ( isDynamicBinding ( ) ) ) ) { android.content.Intent intent = new android.content.Intent ( com.android.ims.ImsManager.ACTION_IMS_SERVICE_DOWN ) ; intent.putExtra ( com.android.ims.ImsManager.EXTRA_PHONE_ID , mPhoneId ) ; mContext.sendBroadcast ( new android.content.Intent ( intent ) ) ; } }

Target:
public void binderDied ( ) { mImsServiceProxy = null ; mUt = null ; mConfig = null ; mEcbm = null ; mMultiEndpoint = null ; }
Source:
private void assertParseFailure ( java.lang.String xml ) throws java.lang.Exception { org.xmlpull.v1.XmlPullParser parser = newPullParser ( ) ; parser.setInput ( new java.io.StringReader ( xml ) ) ; try { while ( ( parser.next ( ) ) != ( org.xmlpull.v1.XmlPullParser.END_DOCUMENT ) ) { } fail ( ) ; } catch ( org.xmlpull.v1.XmlPullParserException expected ) { } }

Target:
private void assertParseFailure ( java.lang.String xml , org.xmlpull.v1.XmlPullParser parser ) throws java.lang.Exception { parser.setInput ( new java.io.StringReader ( xml ) ) ; try { while ( ( parser.next ( ) ) != ( org.xmlpull.v1.XmlPullParser.END_DOCUMENT ) ) { } fail ( ) ; } catch ( org.xmlpull.v1.XmlPullParserException expected ) { } }
Source:
public void stopScan ( ) { try { if ( ( mWifiVendorHal ) != null ) { mWifiVendorHal.stopScan ( ) ; return ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { if ( ( com.android.server.wifi.WifiNative.sScanCmdId ) != 0 ) { com.android.server.wifi.WifiNative.stopScanNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sScanCmdId ) ; } com.android.server.wifi.WifiNative.sScanSettings = null ; com.android.server.wifi.WifiNative.sScanEventHandler = null ; com.android.server.wifi.WifiNative.sScanCmdId = 0 ; } } }

Target:
public void stopScan ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { if ( ( com.android.server.wifi.WifiNative.sScanCmdId ) != 0 ) { com.android.server.wifi.WifiNative.stopScanNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sScanCmdId ) ; } com.android.server.wifi.WifiNative.sScanSettings = null ; com.android.server.wifi.WifiNative.sScanEventHandler = null ; com.android.server.wifi.WifiNative.sScanCmdId = 0 ; } } }
Source:
private void initForNewRadioTechnology ( int phoneId ) { if ( com.android.phone.PhoneGlobals.DBG ) android.util.Log.d ( com.android.phone.PhoneGlobals.LOG_TAG , "initForNewRadioTechnology..." ) ; final com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( phoneId ) ; if ( ( phone == null ) || ( ! ( com.android.internal.telephony.TelephonyCapabilities.supportsOtasp ( phone ) ) ) ) { clearOtaState ( ) ; } notifier.updateCallNotifierRegistrationsAfterRadioTechnologyChange ( ) ; }

Target:
private void initForNewRadioTechnology ( ) { if ( com.android.phone.PhoneGlobals.DBG ) android.util.Log.d ( com.android.phone.PhoneGlobals.LOG_TAG , "initForNewRadioTechnology..." ) ; notifier.updateCallNotifierRegistrationsAfterRadioTechnologyChange ( ) ; }
Source:
public synchronized void requestToSetMode ( com.android.cts.verifier.sensors.base.ISensorTestStateContainer stateContainer , boolean modeOn ) throws java.lang.InterruptedException { if ( ( ! ( isSettingAvailable ( ) ) ) && ( ! ( isSettingUiAvailable ( stateContainer ) ) ) ) { return ; } trySetMode ( stateContainer , modeOn ) ; if ( ( getCurrentSettingMode ( ) ) != modeOn ) { java.lang.String message = stateContainer.getString ( R.string.snsr_setting_mode_not_set , getSettingName ( stateContainer ) , modeOn ) ; throw new java.lang.IllegalStateException ( message ) ; } }

Target:
public synchronized void requestToSetMode ( com.android.cts.verifier.sensors.base.ISensorTestStateContainer stateContainer , boolean modeOn ) throws java.lang.InterruptedException { if ( ( ! ( isSettingAvailable ( ) ) ) || ( ! ( isSettingUiAvailable ( stateContainer ) ) ) ) { return ; } trySetMode ( stateContainer , modeOn ) ; if ( ( getCurrentSettingMode ( ) ) != modeOn ) { java.lang.String message = stateContainer.getString ( R.string.snsr_setting_mode_not_set , getSettingName ( stateContainer ) , modeOn ) ; throw new java.lang.IllegalStateException ( message ) ; } }
Source:
public static byte [ ] encode ( java.lang.String s ) throws java.io.UTFDataFormatException { int utfCount = ( ( int ) ( java.nio.charset.ModifiedUtf8.countBytes ( s , true ) ) ) ; byte [ ] result = new byte [ ( libcore.io.SizeOf.SHORT ) + utfCount ] ; libcore.io.Memory.pokeShort ( result , 0 , ( ( short ) ( utfCount ) ) , java.nio.ByteOrder.BIG_ENDIAN ) ; java.nio.charset.ModifiedUtf8.encode ( result , SizeOf.SHORT , s ) ; return result ; }

Target:
public static byte [ ] encode ( java.lang.String s ) throws java.io.UTFDataFormatException { long size = java.nio.charset.ModifiedUtf8.countBytes ( s , true ) ; byte [ ] output = new byte [ ( ( int ) ( size ) ) + 2 ] ; java.nio.charset.ModifiedUtf8.encode ( output , 2 , s ) ; output [ 0 ] = ( ( byte ) ( size > > > 8 ) ) ; output [ 1 ] = ( ( byte ) ( size ) ) ; return output ; }
Source:
private java.lang.StringBuffer subformat ( java.lang.String pluralCount , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr , int maxIntDig ) { if ( ( style ) == ( NumberFormat.PLURALCURRENCYSTYLE ) ) { java.lang.String currencyPluralPattern = currencyPluralInfo.getCurrencyPluralPattern ( pluralCount ) ; if ( ( formatPattern.equals ( currencyPluralPattern ) ) == false ) { applyPatternWithoutExpandAffix ( currencyPluralPattern , false ) ; } } expandAffixAdjustWidth ( pluralCount ) ; return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; }

Target:
private java.lang.StringBuffer subformat ( java.lang.String pluralCount , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr ) { if ( ( style ) == ( NumberFormat.PLURALCURRENCYSTYLE ) ) { java.lang.String currencyPluralPattern = currencyPluralInfo.getCurrencyPluralPattern ( pluralCount ) ; if ( ( formatPattern.equals ( currencyPluralPattern ) ) == false ) { applyPatternWithoutExpandAffix ( currencyPluralPattern , false ) ; } } expandAffixAdjustWidth ( pluralCount ) ; return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr ) ; }
Source:
public void testNetworkEventSerialization ( ) { android.net.ConnectivityMetricsEvent ev = com.android.server.connectivity.MetricsTestUtil.describeIpEvent ( com.android.server.connectivity.MetricsTestUtil.aType ( android.net.metrics.NetworkEvent.class ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 100 ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 5 ) , com.android.server.connectivity.MetricsTestUtil.aLong ( 20410 ) ) ; java.lang.String want = com.android.server.connectivity.IpConnectivityEventBuilderTest.joinLines ( "dropped_events: 0" , "events <" , " time_ms: 1" , " transport: 0" , " network_event <" , " event_type: 5" , " latency_ms: 20410" , " network_id <" , " network_id: 100" , " >" , " >" , ">" , "version: 2" ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , ev ) ; }

Target:
public void testNetworkEventSerialization ( ) { android.net.ConnectivityMetricsEvent ev = com.android.server.connectivity.MetricsTestUtil.describeIpEvent ( com.android.server.connectivity.MetricsTestUtil.aType ( android.net.metrics.NetworkEvent.class ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 100 ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 5 ) , com.android.server.connectivity.MetricsTestUtil.aLong ( 20410 ) ) ; java.lang.String want = com.android.server.connectivity.IpConnectivityEventBuilderTest.joinLines ( "dropped_events: 0" , "events <" , " network_event <" , " event_type: 5" , " latency_ms: 20410" , " network_id <" , " network_id: 100" , " >" , " >" , " time_ms: 1" , " transport: 0" , ">" , "version: 2" ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , ev ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuffer b = new java.lang.StringBuffer ( ) ; for ( int i = 0 ; i < ( getLocals ( ) ) ; ++ i ) { b.append ( getLocal ( i ) ) ; } b.append ( ' ' ) ; for ( int i = 0 ; i < ( getStackSize ( ) ) ; ++ i ) { b.append ( getStack ( i ) . toString ( ) ) ; } return b.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( int i = 0 ; i < ( getLocals ( ) ) ; ++ i ) { sb.append ( getLocal ( i ) ) ; } sb.append ( ' ' ) ; for ( int i = 0 ; i < ( getStackSize ( ) ) ; ++ i ) { sb.append ( getStack ( i ) . toString ( ) ) ; } return sb.toString ( ) ; }
Source:
public int compare ( java.util.Map < ? , ? > map1 , java.util.Map < ? , ? > map2 ) { java.lang.Object value1 = map1.get ( mSortingKey ) ; java.lang.Object value2 = map2.get ( mSortingKey ) ; if ( ! ( isComparable ( value1 ) ) ) { return isComparable ( value2 ) ? 1 : 0 ; } else if ( ! ( isComparable ( value2 ) ) ) { return - 1 ; } return ( ( java.lang.Comparable ) ( value1 ) ) . compareTo ( value2 ) ; }

Target:
public int compare ( java.util.HashMap < ? , ? > map1 , java.util.HashMap < ? , ? > map2 ) { java.lang.Object value1 = map1.get ( mSortingKey ) ; java.lang.Object value2 = map2.get ( mSortingKey ) ; if ( ! ( isComparable ( value1 ) ) ) { return isComparable ( value2 ) ? 1 : 0 ; } else if ( ! ( isComparable ( value2 ) ) ) { return - 1 ; } return ( ( java.lang.Comparable ) ( value1 ) ) . compareTo ( value2 ) ; }
Source:
public java.lang.Boolean bluetoothHidDeviceReplyReport ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "deviceID" , description = "Name or MAC address of a bluetooth device." ) java.lang.String deviceID , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "type" , description = "Type as in the report." ) java.lang.Integer type , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "id" , description = "id as in the report." ) java.lang.Integer id , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "report" ) java.lang.String report ) throws java.lang.Exception { android.bluetooth.BluetoothDevice device = com.googlecode.android_scripting.facade.bluetooth.BluetoothFacade.getDevice ( com.googlecode.android_scripting.facade.bluetooth.BluetoothHidDeviceFacade.sHidDeviceProfile.getConnectedDevices ( ) , deviceID ) ; byte [ ] reportByteArray = report.getBytes ( ) ; return com.googlecode.android_scripting.facade.bluetooth.BluetoothHidDeviceFacade.sHidDeviceProfile.replyReport ( device , ( ( byte ) ( ( int ) ( type ) ) ) , ( ( byte ) ( ( int ) ( id ) ) ) , reportByteArray ) ; }

Target:
public java.lang.Boolean bluetoothHidDeviceReplyReport ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "deviceID" , description = "Name or MAC address of a bluetooth device." ) java.lang.String deviceID , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "type" , description = "Type as in the report." ) java.lang.Integer type , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "id" , description = "id as in the report." ) java.lang.Integer id , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "report" ) java.lang.String report ) throws java.lang.Exception { if ( ( com.googlecode.android_scripting.facade.bluetooth.BluetoothHidDeviceFacade.sHidDeviceProfile ) == null ) { return false ; } android.bluetooth.BluetoothDevice device = com.googlecode.android_scripting.facade.bluetooth.BluetoothFacade.getDevice ( com.googlecode.android_scripting.facade.bluetooth.BluetoothHidDeviceFacade.sHidDeviceProfile.getConnectedDevices ( ) , deviceID ) ; byte [ ] reportByteArray = report.getBytes ( ) ; return com.googlecode.android_scripting.facade.bluetooth.BluetoothHidDeviceFacade.sHidDeviceProfile.replyReport ( device , ( ( byte ) ( ( int ) ( type ) ) ) , ( ( byte ) ( ( int ) ( id ) ) ) , reportByteArray ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , int [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , short [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 2 ) ) ; }
Source:
private void switchUser ( int userId ) { mBlacklist.switchUser ( userId ) ; mLocationHandler.removeMessages ( com.android.server.LocationManagerService.MSG_LOCATION_CHANGED ) ; synchronized ( mLock ) { mLastLocation.clear ( ) ; mLastLocationCoarseInterval.clear ( ) ; for ( com.android.server.location.LocationProviderInterface p : mProviders ) { updateProviderListenersLocked ( p.getName ( ) , false , mCurrentUserId ) ; } mCurrentUserId = userId ; updateProvidersLocked ( ) ; } }

Target:
private void switchUser ( int userId ) { if ( ( mCurrentUserId ) == userId ) { return ; } mBlacklist.switchUser ( userId ) ; mLocationHandler.removeMessages ( com.android.server.LocationManagerService.MSG_LOCATION_CHANGED ) ; synchronized ( mLock ) { mLastLocation.clear ( ) ; mLastLocationCoarseInterval.clear ( ) ; for ( com.android.server.location.LocationProviderInterface p : mProviders ) { updateProviderListenersLocked ( p.getName ( ) , false , mCurrentUserId ) ; } mCurrentUserId = userId ; updateProvidersLocked ( ) ; } }
Source:
public static int MultiplePhis ( ) { int x = 0 ; int y = 1 ; while ( ( y ++ ) < 10 ) { if ( y > 1 ) { x = 13 ; continue ; } else { x = 42 ; continue ; } } return x ; }

Target:
public static int MultiplePhis ( ) { int x = 0 ; int y = 1 ; while ( ( y ++ ) < 10 ) { if ( y > 1 ) { x = 13 ; } else { x = 42 ; } } return x ; }
Source:
public static < T > void sort ( T [ ] a , java.util.Comparator < ? super T > c ) { if ( java.util.Arrays.LegacyMergeSort.userRequested ) java.util.Arrays.legacyMergeSort ( a , c ) ; else java.util.TimSort.sort ( a , c ) ; }

Target:
public static < T > void sort ( T [ ] a , java.util.Comparator < ? super T > c ) { if ( c == null ) { java.util.Arrays.sort ( a ) ; } else { if ( java.util.Arrays.LegacyMergeSort.userRequested ) java.util.Arrays.legacyMergeSort ( a , c ) ; else java.util.TimSort.sort ( a , 0 , a.length , c , null , 0 , 0 ) ; } }
Source:
public void testEqualsDuplicated ( ) { try { android.net.LinkProperties source = new android.net.LinkProperties ( ) ; source.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV4 ) ; source.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV4 ) ; source.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV6 ) ; android.net.LinkProperties target = new android.net.LinkProperties ( ) ; target.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV4 ) ; target.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV6 ) ; target.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV6 ) ; assertLinkPropertiesEqual ( source , target ) ; } catch ( java.lang.Exception e ) { fail ( ) ; } }

Target:
public void testEqualsDuplicated ( ) throws java.lang.Exception { android.net.LinkProperties source = new android.net.LinkProperties ( ) ; source.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV4 ) ; source.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV4 ) ; source.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV6 ) ; android.net.LinkProperties target = new android.net.LinkProperties ( ) ; target.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV4 ) ; target.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV6 ) ; target.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV6 ) ; assertLinkPropertiesEqual ( source , target ) ; }
Source:
public void test_binarySearchLjava_util_ListLjava_lang_Object ( ) { final int llSize = ll.size ( ) ; try { java.util.Collections.binarySearch ( null , new java.lang.Object ( ) ) ; fail ( "Expected NullPointerException for null list parameter" ) ; } catch ( java.lang.NullPointerException e ) { } for ( int counter = 0 ; counter < llSize ; counter ++ ) { assertEquals ( "Returned incorrect binary search item position" , ll.get ( counter ) , ll.get ( java.util.Collections.binarySearch ( ll , ll.get ( counter ) ) ) ) ; } }

Target:
public void test_binarySearchLjava_util_ListLjava_lang_Object ( ) { final int llSize = ll.size ( ) ; try { java.util.Collections.binarySearch ( null , new java.lang.Object ( ) ) ; fail ( "Expected NullPointerException for null list parameter" ) ; } catch ( java.lang.NullPointerException e ) { } for ( int i = 0 ; i < llSize ; i ++ ) { assertEquals ( "Returned incorrect binary search item position" , ll.get ( i ) , ll.get ( java.util.Collections.binarySearch ( ll , ll.get ( i ) ) ) ) ; } }
Source:
public int setAllowedCarriers ( int slotId , java.util.List < android.service.carrier.CarrierIdentifier > carriers ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.setAllowedCarriers ( slotId , carriers ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setAllowedCarriers" , e ) ; } return - 1 ; }

Target:
public int setAllowedCarriers ( int slotId , java.util.List < android.service.carrier.CarrierIdentifier > carriers ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.setAllowedCarriers ( slotId , carriers ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setAllowedCarriers" , e ) ; } catch ( java.lang.NullPointerException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setAllowedCarriers" , e ) ; } return - 1 ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( 100 ) ; sb.append ( getClass ( ) . getName ( ) ) ; sb.append ( '{' ) ; sb.append ( section.toString ( ) ) ; sb.append ( ' ' ) ; sb.append ( type.toHuman ( ) ) ; sb.append ( '}' ) ; return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 100 ) ; sb.append ( getClass ( ) . getName ( ) ) ; sb.append ( '{' ) ; sb.append ( section.toString ( ) ) ; sb.append ( ' ' ) ; sb.append ( type.toHuman ( ) ) ; sb.append ( '}' ) ; return sb.toString ( ) ; }
Source:
public static boolean isConstructorDelegation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call , @ javax.annotation.Nonnull com.android.jack.ir.ast.JConstructor constructor ) { if ( ( ! ( call.getMethodId ( ) . isInit ( ) ) ) || ( ! ( ( call.getInstance ( ) ) instanceof com.android.jack.ir.ast.JThisRef ) ) ) { return false ; } assert ( call.getDispatchKind ( ) ) == ( JMethodCall.DispatchKind.DIRECT ) ; assert ( constructor.getMethodIdWide ( ) . getKind ( ) ) == ( com.android.jack.ir.ast.MethodKind.INSTANCE_NON_VIRTUAL ) ; return call.getReceiverType ( ) . isSameType ( constructor.getEnclosingType ( ) ) ; }

Target:
public static boolean isConstructorDelegation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call , @ javax.annotation.Nonnull com.android.jack.ir.ast.JConstructor constructor ) { if ( ( ! ( call.getMethodIdWide ( ) . isInit ( ) ) ) || ( ! ( ( call.getInstance ( ) ) instanceof com.android.jack.ir.ast.JThisRef ) ) ) { return false ; } assert ( call.getDispatchKind ( ) ) == ( JMethodCall.DispatchKind.DIRECT ) ; assert ( constructor.getMethodIdWide ( ) . getKind ( ) ) == ( com.android.jack.ir.ast.MethodKind.INSTANCE_NON_VIRTUAL ) ; return call.getReceiverType ( ) . isSameType ( constructor.getEnclosingType ( ) ) ; }
Source:
android.graphics.Bitmap createNotificationBadgeBitmap ( @ android.annotation.NonNull android.net.wifi.WifiConfiguration config , @ android.annotation.NonNull java.util.List < android.net.wifi.ScanResult > scanResults ) { android.net.wifi.ScanResult matchingScanResult = findMatchingScanResult ( scanResults , config ) ; if ( matchingScanResult == null ) { return null ; } int rssi = matchingScanResult.level ; android.net.WifiKey wifiKey = new android.net.WifiKey ( config.SSID , config.BSSID ) ; android.net.ScoredNetwork scoredNetwork = mCachedScoredNetworkProvider.getCachedScoredNetwork ( new android.net.NetworkKey ( wifiKey ) ) ; if ( scoredNetwork != null ) { return getBadgedWifiBitmap ( scoredNetwork.calculateBadge ( rssi ) , rssi ) ; } return null ; }

Target:
public android.graphics.Bitmap createNotificationBadgeBitmap ( @ android.support.annotation.NonNull android.net.wifi.WifiConfiguration config , @ android.support.annotation.NonNull java.util.List < android.net.wifi.ScanResult > scanResults ) { android.net.wifi.ScanResult matchingScanResult = findMatchingScanResult ( scanResults , config ) ; if ( matchingScanResult == null ) { return null ; } int rssi = matchingScanResult.level ; android.net.WifiKey wifiKey = new android.net.WifiKey ( config.SSID , config.BSSID ) ; android.net.ScoredNetwork scoredNetwork = mCachedScoredNetworkProvider.getCachedScoredNetwork ( new android.net.NetworkKey ( wifiKey ) ) ; if ( scoredNetwork != null ) { return getBadgedWifiBitmap ( scoredNetwork.calculateBadge ( rssi ) , rssi ) ; } return null ; }
Source:
public void testGetAndSetDefaultUncaughtExceptionHandler ( ) { assertEquals ( null , java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ) ; java.lang.Thread.UncaughtExceptionHandler defaultHandler = java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ; jsr166.ThreadTest.MyHandler eh = new jsr166.ThreadTest.MyHandler ( ) ; try { java.lang.Thread.setDefaultUncaughtExceptionHandler ( eh ) ; try { assertSame ( eh , java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ) ; } finally { java.lang.Thread.setDefaultUncaughtExceptionHandler ( defaultHandler ) ; } } catch ( java.lang.SecurityException ok ) { assertNotNull ( java.lang.System.getSecurityManager ( ) ) ; } assertSame ( defaultHandler , java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ) ; }

Target:
public void testGetAndSetDefaultUncaughtExceptionHandler ( ) { java.lang.Thread.UncaughtExceptionHandler defaultHandler = java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ; jsr166.ThreadTest.MyHandler eh = new jsr166.ThreadTest.MyHandler ( ) ; try { java.lang.Thread.setDefaultUncaughtExceptionHandler ( eh ) ; try { assertSame ( eh , java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ) ; } finally { java.lang.Thread.setDefaultUncaughtExceptionHandler ( defaultHandler ) ; } } catch ( java.lang.SecurityException ok ) { assertNotNull ( java.lang.System.getSecurityManager ( ) ) ; } assertSame ( defaultHandler , java.lang.Thread.getDefaultUncaughtExceptionHandler ( ) ) ; }
Source:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , java.lang.Object array ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy3DRangeFrom" ) ; copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , java.lang.Object array ) { try { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy3DRangeFrom" ) ; copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; } finally { android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; } }
Source:
private android.bluetooth.BluetoothGattDescriptor getDescriptor ( ) { android.bluetooth.BluetoothGattDescriptor descriptor = null ; android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( com.android.cts.verifier.bluetooth.BleServerService.CHARACTERISTIC_UUID ) ; if ( characteristic != null ) { descriptor = characteristic.getDescriptor ( com.android.cts.verifier.bluetooth.BleServerService.DESCRIPTOR_UUID ) ; if ( descriptor == null ) { showMessage ( "Descriptor not found" ) ; } } return descriptor ; }

Target:
private android.bluetooth.BluetoothGattDescriptor getDescriptor ( ) { android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( com.android.cts.verifier.bluetooth.BleServerService.CHARACTERISTIC_UUID ) ; if ( characteristic == null ) return null ; android.bluetooth.BluetoothGattDescriptor descriptor = characteristic.getDescriptor ( com.android.cts.verifier.bluetooth.BleServerService.DESCRIPTOR_UUID ) ; if ( descriptor == null ) { showMessage ( "Descriptor not found" ) ; return null ; } return descriptor ; }
Source:
public synchronized boolean isDataEnabled ( boolean checkUserDataEnabled ) { return ( ( ( mInternalDataEnabled ) && ( ( ! checkUserDataEnabled ) || ( mUserDataEnabled ) ) ) && ( ( ! checkUserDataEnabled ) || ( mPolicyDataEnabled ) ) ) && ( ( ! checkUserDataEnabled ) || ( mCarrierDataEnabled ) ) ; }

Target:
public synchronized boolean isDataEnabled ( ) { return ( ( ( mInternalDataEnabled ) && ( mUserDataEnabled ) ) && ( mPolicyDataEnabled ) ) && ( mCarrierDataEnabled ) ; }
Source:
public void testConfigurationUpdatesWhenResizedFromDockedStack ( ) throws java.lang.Exception { if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }

Target:
public void testConfigurationUpdatesWhenResizedFromDockedStack ( ) throws java.lang.Exception { if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }
Source:
private void assertParseFailure ( java.lang.String xml ) throws java.lang.Exception { org.xmlpull.v1.XmlPullParser parser = newPullParser ( ) ; parser.setInput ( new java.io.StringReader ( xml ) ) ; try { while ( ( parser.next ( ) ) != ( org.xmlpull.v1.XmlPullParser.END_DOCUMENT ) ) { } fail ( ) ; } catch ( org.xmlpull.v1.XmlPullParserException expected ) { } }

Target:
private void assertParseFailure ( java.lang.String xml ) throws java.lang.Exception { org.xmlpull.v1.XmlPullParser parser = newPullParser ( ) ; assertParseFailure ( xml , parser ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.UnaryExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope b ) { int operator = ( ( x.bits ) & ( org.eclipse.jdt.internal.compiler.ast.ASTNode.OperatorMASK ) ) > > ( org.eclipse.jdt.internal.compiler.ast.ASTNode.OperatorSHIFT ) ; if ( ( operator == ( org.eclipse.jdt.internal.compiler.ast.OperatorIds.PLUS ) ) && ( ! ( ( x.expression ) instanceof org.eclipse.jdt.internal.compiler.ast.Literal ) ) ) { hasEcjUnaryPosBug = true ; org.eclipse.jdt.internal.compiler.impl.Constant outer = x.constant ; org.eclipse.jdt.internal.compiler.impl.Constant inner = x.expression.constant ; boolean hasEcjUnaryPosBug = ! ( outer.equals ( inner ) ) ; assert hasEcjUnaryPosBug ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.UnaryExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope b ) { int operator = ( ( x.bits ) & ( org.eclipse.jdt.internal.compiler.ast.ASTNode.OperatorMASK ) ) > > ( org.eclipse.jdt.internal.compiler.ast.ASTNode.OperatorSHIFT ) ; if ( ( operator == ( org.eclipse.jdt.internal.compiler.ast.OperatorIds.PLUS ) ) && ( ! ( ( x.expression ) instanceof org.eclipse.jdt.internal.compiler.ast.Literal ) ) ) { hasEcjUnaryPosBug = true ; org.eclipse.jdt.internal.compiler.impl.Constant outer = x.constant ; org.eclipse.jdt.internal.compiler.impl.Constant inner = x.expression.constant ; @ java.lang.SuppressWarnings ( value = "unused" ) boolean hasEcjUnaryPosBug = ! ( outer.equals ( inner ) ) ; } }
Source:
public void addOutput ( byte [ ] data , int offset , int length ) { if ( ! ( isCancelled ( ) ) ) { java.lang.String s = null ; try { s = new java.lang.String ( data , offset , length , "UTF-8" ) ; } catch ( java.io.UnsupportedEncodingException e ) { s = new java.lang.String ( data , offset , length ) ; } mOutputBuffer.append ( s ) ; } }

Target:
public void addOutput ( byte [ ] data , int offset , int length ) { if ( ! ( isCancelled ( ) ) ) { java.lang.String s ; try { s = new java.lang.String ( data , offset , length , "UTF-8" ) ; } catch ( java.io.UnsupportedEncodingException e ) { s = new java.lang.String ( data , offset , length ) ; } mOutputBuffer.append ( s ) ; } }
Source:
private void updateUser ( ) { synchronized ( mLock ) { int userId = android.app.ActivityManager.getCurrentUser ( ) ; if ( ( mCurrentUserId ) != userId ) { final int oldUserId = mCurrentUserId ; mCurrentUserId = userId ; com.android.server.media.MediaSessionService.UserRecord oldUser = mUserRecords.get ( oldUserId ) ; if ( oldUser != null ) { oldUser.stopLocked ( ) ; } com.android.server.media.MediaSessionService.UserRecord newUser = getOrCreateUser ( userId ) ; newUser.startLocked ( ) ; } } }

Target:
private void updateUser ( ) { int userId = android.app.ActivityManager.getCurrentUser ( ) ; synchronized ( mLock ) { if ( ( mCurrentUserId ) != userId ) { final int oldUserId = mCurrentUserId ; mCurrentUserId = userId ; com.android.server.media.MediaSessionService.UserRecord oldUser = mUserRecords.get ( oldUserId ) ; if ( oldUser != null ) { oldUser.stopLocked ( ) ; } com.android.server.media.MediaSessionService.UserRecord newUser = getOrCreateUser ( userId ) ; newUser.startLocked ( ) ; } } }
Source:
private static boolean isWMVEnabled ( ) { java.util.List < android.media.DecoderCapabilities.VideoDecoder > decoders = android.media.DecoderCapabilities.getVideoDecoders ( ) ; for ( android.media.DecoderCapabilities.VideoDecoder decoder : decoders ) { if ( decoder == ( android.media.DecoderCapabilities.VideoDecoder.VIDEO_DECODER_WMV ) ) { return true ; } } return false ; }

Target:
private static boolean isWMVEnabled ( ) { java.util.List < android.media.DecoderCapabilities.VideoDecoder > decoders = android.media.DecoderCapabilities.getVideoDecoders ( ) ; int count = decoders.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { android.media.DecoderCapabilities.VideoDecoder decoder = decoders.get ( i ) ; if ( decoder == ( android.media.DecoderCapabilities.VideoDecoder.VIDEO_DECODER_WMV ) ) { return true ; } } return false ; }
Source:
public java.lang.String createNetworkSpecifierOpen ( @ android.annotation.Nullable android.net.wifi.aware.PeerHandle peerHandle ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "createNetworkSpecifierOpen: called on terminated session" ) ; return null ; } else { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "createNetworkSpecifierOpen: called post GC on WifiAwareManager" ) ; return null ; } int role = ( ( this ) instanceof android.net.wifi.aware.SubscribeDiscoverySession ) ? WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_INITIATOR : WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_RESPONDER ; return mgr.createNetworkSpecifier ( mClientId , role , mSessionId , peerHandle , null ) ; } }

Target:
public java.lang.String createNetworkSpecifierOpen ( @ android.annotation.Nullable android.net.wifi.aware.PeerHandle peerHandle ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "createNetworkSpecifierOpen: called on terminated session" ) ; return null ; } android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "createNetworkSpecifierOpen: called post GC on WifiAwareManager" ) ; return null ; } int role = ( ( this ) instanceof android.net.wifi.aware.SubscribeDiscoverySession ) ? WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_INITIATOR : WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_RESPONDER ; return mgr.createNetworkSpecifier ( mClientId , role , mSessionId , peerHandle , null , null ) ; }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , float [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 4 ) ) ; }

Target:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , int [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 4 ) ) ; }
Source:
public void processParameterAnnotations ( org.jf.dexlib.MethodIdItem method , org.jf.dexlib.AnnotationSetRefList parameterAnnotations ) { int cptParam = 0 ; for ( org.jf.dexlib.AnnotationSetItem asi : parameterAnnotations.getAnnotationSets ( ) ) { try { processGeneric ( ( ( ( "param " + cptParam ) + " " ) + ( method.getMethodString ( ) ) ) , asi ) ; } catch ( com.android.jack.DifferenceFoundException e ) { throw new java.lang.RuntimeException ( e ) ; } } }

Target:
public void processParameterAnnotations ( org.jf.dexlib.MethodIdItem method , org.jf.dexlib.AnnotationSetRefList parameterAnnotations ) { int cptParam = 0 ; for ( org.jf.dexlib.AnnotationSetItem asi : parameterAnnotations.getAnnotationSets ( ) ) { try { processGeneric ( ( ( ( "param " + ( cptParam ++ ) ) + " " ) + ( method.getMethodString ( ) ) ) , asi ) ; } catch ( com.android.jack.DifferenceFoundException e ) { throw new java.lang.RuntimeException ( e ) ; } } }
Source:
public void generateTestList ( ) { try { java.io.File tests_list = new java.io.File ( com.android.dumprendertree.LayoutTestsAutoTest.LAYOUT_TESTS_LIST_FILE ) ; java.io.BufferedOutputStream bos = new java.io.BufferedOutputStream ( new java.io.FileOutputStream ( tests_list , false ) ) ; com.android.dumprendertree.FsUtils.findLayoutTestsRecursively ( bos , getTestPath ( ) ) ; bos.flush ( ) ; bos.close ( ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( com.android.dumprendertree.LayoutTestsAutoTest.LOGTAG , ( "Error when creating test list: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
public void generateTestList ( ) { try { java.io.File tests_list = new java.io.File ( com.android.dumprendertree.LayoutTestsAutoTest.LAYOUT_TESTS_LIST_FILE ) ; java.io.BufferedOutputStream bos = new java.io.BufferedOutputStream ( new java.io.FileOutputStream ( tests_list , false ) ) ; com.android.dumprendertree.FsUtils.findLayoutTestsRecursively ( bos , getTestPath ( ) , false ) ; bos.flush ( ) ; bos.close ( ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( com.android.dumprendertree.LayoutTestsAutoTest.LOGTAG , ( "Error when creating test list: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
public void engineSetKeyEntry ( java.lang.String alias , java.security.Key key , char [ ] password , java.security.cert.Certificate [ ] chain ) throws java.security.KeyStoreException { if ( ( password != null ) && ( ( password.length ) > 0 ) ) { throw new java.security.KeyStoreException ( "entries cannot be protected with passwords" ) ; } if ( key instanceof java.security.PrivateKey ) { setPrivateKeyEntry ( alias , ( ( java.security.PrivateKey ) ( key ) ) , chain ) ; } else { throw new java.security.KeyStoreException ( "Only PrivateKeys are supported" ) ; } }

Target:
public void engineSetKeyEntry ( java.lang.String alias , java.security.Key key , char [ ] password , java.security.cert.Certificate [ ] chain ) throws java.security.KeyStoreException { if ( ( password != null ) && ( ( password.length ) > 0 ) ) { throw new java.security.KeyStoreException ( "entries cannot be protected with passwords" ) ; } if ( key instanceof java.security.PrivateKey ) { setPrivateKeyEntry ( alias , ( ( java.security.PrivateKey ) ( key ) ) , chain , null ) ; } else { throw new java.security.KeyStoreException ( "Only PrivateKeys are supported" ) ; } }
Source:
public void test_SSLContext_SSLv3Unsupported ( ) throws java.lang.Exception { try { javax.net.ssl.SSLContext context = javax.net.ssl.SSLContext.getInstance ( "SSLv3" ) ; fail ( "SSLv3 should not be supported" ) ; } catch ( java.security.NoSuchAlgorithmException expected ) { } try { javax.net.ssl.SSLContext context = javax.net.ssl.SSLContext.getInstance ( "SSL" ) ; fail ( "SSL should not be supported" ) ; } catch ( java.security.NoSuchAlgorithmException expected ) { } }

Target:
public void test_SSLContext_SSLv3Unsupported ( ) throws java.lang.Exception { try { javax.net.ssl.SSLContext context = javax.net.ssl.SSLContext.getInstance ( "SSLv3" ) ; fail ( "SSLv3 should not be supported" ) ; } catch ( java.security.NoSuchAlgorithmException expected ) { } }