auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , byte [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , data.length ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , byte [ ] d ) { validateIsInt8 ( ) ; copy1DRangeFromUnchecked ( off , count , d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
public boolean equals ( java.lang.Object object ) { if ( object instanceof com.google.common.hash.HashCode ) { com.google.common.hash.HashCode that = ( ( com.google.common.hash.HashCode ) ( object ) ) ; return java.security.MessageDigest.isEqual ( this . asBytes ( ) , that.asBytes ( ) ) ; } return false ; }

Target:
public final boolean equals ( @ javax.annotation.Nullable java.lang.Object object ) { if ( object instanceof com.google.common.hash.HashCode ) { com.google.common.hash.HashCode that = ( ( com.google.common.hash.HashCode ) ( object ) ) ; return ( ( bits ( ) ) == ( that.bits ( ) ) ) && ( equalsSameBits ( that ) ) ; } return false ; }
Source:
private void sendUuidIntent ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.btservice.RemoteDevices.DeviceProperties prop = getDeviceProperties ( device ) ; android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_UUID ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothDevice.EXTRA_UUID , ( prop == null ? null : prop.mUuids ) ) ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.sendBroadcast ( intent , AdapterService.BLUETOOTH_ADMIN_PERM ) ; com.android.bluetooth.btservice.RemoteDevices.mSdpTracker.remove ( device ) ; }

Target:
private void sendUuidIntent ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.btservice.RemoteDevices.DeviceProperties prop = getDeviceProperties ( device ) ; android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_UUID ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothDevice.EXTRA_UUID , ( prop == null ? null : prop.mUuids ) ) ; com.android.bluetooth.btservice.RemoteDevices.sAdapterService.sendBroadcast ( intent , AdapterService.BLUETOOTH_ADMIN_PERM ) ; com.android.bluetooth.btservice.RemoteDevices.sSdpTracker.remove ( device ) ; }
Source:
public static void sort ( short [ ] a ) { java.util.DualPivotQuicksort.sort ( a ) ; }

Target:
public static void sort ( short [ ] a , int fromIndex , int toIndex ) { java.util.Arrays.rangeCheck ( a.length , fromIndex , toIndex ) ; java.util.DualPivotQuicksort.sort ( a , fromIndex , ( toIndex - 1 ) , null , 0 , 0 ) ; }
Source:
public void testPackageOverridePackageFromFlavorWithSuffix ( ) { com.android.builder.AndroidBuilder builder = new com.android.builder.AndroidBuilder ( new com.android.builder.DefaultSdkParser ( "" ) , new com.android.utils.StdLogger ( StdLogger.Level.ERROR ) , false ) ; mFlavor.setPackageName ( "foo.bar" ) ; mDebug.setPackageNameSuffix ( ".fortytwo" ) ; builder.setBuildVariant ( mMain , mFlavor , mDebug ) ; assertEquals ( "foo.bar.fortytwo" , builder.getPackageOverride ( "" ) ) ; }

Target:
public void testPackageOverridePackageFromFlavorWithSuffix2 ( ) { com.android.builder.AndroidBuilder builder = new com.android.builder.AndroidBuilderTest.AndroidBuilderMock ( new com.android.builder.DefaultSdkParser ( "" ) , new com.android.utils.StdLogger ( StdLogger.Level.ERROR ) , false ) ; mFlavor.getProductFlavor ( ) . setPackageName ( "foo.bar" ) ; mDebug.getBuildType ( ) . setPackageNameSuffix ( "fortytwo" ) ; builder.setBuildVariant ( mMain , mDebug ) ; builder.addProductFlavor ( mFlavor ) ; assertEquals ( "foo.bar.fortytwo" , builder.getPackageOverride ( "" ) ) ; }
Source:
public void onTabChanged ( java.lang.String tabId ) { final int slotId = java.lang.Integer.parseInt ( tabId ) ; mSir = mSelectableSubInfos.get ( slotId ) ; updatePhoneInfos ( ) ; mTelephonyManager.listen ( mPhoneStateListener , ( ( ( android.telephony.PhoneStateListener.LISTEN_DATA_CONNECTION_STATE ) | ( android.telephony.PhoneStateListener.LISTEN_SIGNAL_STRENGTHS ) ) | ( android.telephony.PhoneStateListener.LISTEN_SERVICE_STATE ) ) ) ; updateDataState ( ) ; updateNetworkType ( ) ; updatePreference ( ) ; }

Target:
void doTabChanged ( java.lang.String tabId ) { final int slotId = java.lang.Integer.parseInt ( tabId ) ; mSir = mSelectableSubInfos.get ( slotId ) ; updatePhoneInfos ( ) ; updatePreference ( true ) ; mTelephonyManager.listen ( mPhoneStateListener , ( ( ( android.telephony.PhoneStateListener.LISTEN_DATA_CONNECTION_STATE ) | ( android.telephony.PhoneStateListener.LISTEN_SIGNAL_STRENGTHS ) ) | ( android.telephony.PhoneStateListener.LISTEN_SERVICE_STATE ) ) ) ; updateDataState ( ) ; updateNetworkType ( ) ; }
Source:
public void test_zh_CN ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex zh_CN = new libcore.icu.AlphabeticIndex ( new java.util.Locale ( "zh" , "CN" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_CN , "贾" , "J" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_CN , "沈" , "C" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_CN , "瀋" , "S" ) ; }

Target:
public void test_zh_CN ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex zh_CN = libcore.icu.AlphabeticIndexTest.createIndex ( new java.util.Locale ( "zh" , "CN" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_CN , "贾" , "J" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_CN , "沈" , "C" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( zh_CN , "瀋" , "S" ) ; }
Source:
public boolean handlePinMmi ( java.lang.String dialString ) { com.android.internal.telephony.cdma.CdmaMmiCode mmi = com.android.internal.telephony.cdma.CdmaMmiCode.newFromDialString ( dialString , this ) ; if ( mmi == null ) { android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "Mmi is NULL!" ) ; return false ; } else if ( mmi.isPukCommand ( ) ) { mPendingMmis.add ( mmi ) ; mMmiRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , mmi , null ) ) ; mmi.processCode ( ) ; return true ; } android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "Unrecognized mmi!" ) ; return false ; }

Target:
public boolean handlePinMmi ( java.lang.String dialString ) { com.android.internal.telephony.cdma.CdmaMmiCode mmi = com.android.internal.telephony.cdma.CdmaMmiCode.newFromDialString ( dialString , this ) ; if ( mmi == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "Mmi is NULL!" ) ; return false ; } else if ( mmi.isPukCommand ( ) ) { mPendingMmis.add ( mmi ) ; mMmiRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , mmi , null ) ) ; mmi.processCode ( ) ; return true ; } android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "Unrecognized mmi!" ) ; return false ; }
Source:
private int getSubId ( ) { if ( ( mSubId ) == ( SubscriptionManager.DEFAULT_SUBSCRIPTION_ID ) ) { return android.telephony.TelephonyManager.getDefaultSubscription ( ) ; } return mSubId ; }

Target:
public android.telephony.VisualVoicemailSmsFilterSettings getActiveVisualVoicemailSmsFilterSettings ( int subId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getActiveVisualVoicemailSmsFilterSettings ( subId ) ; } } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }
Source:
public com.android.ims.internal.IImsServiceController getImsServiceControllerAndListen ( int slotIndex , @ android.telephony.TelephonyManager.Feature int feature , com.android.ims.internal.IImsServiceFeatureListener callback ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getImsServiceControllerAndListen ( slotIndex , feature , callback ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsServiceControllerAndListen, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }

Target:
public java.lang.String iccTransmitApduBasicChannel ( int subId , int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccTransmitApduBasicChannel ( subId , getOpPackageName ( ) , cla , instruction , p1 , p2 , p3 , data ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }
Source:
public void clientReadPhy ( int clientIf , java.lang.String address ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; }

Target:
void clientSetPreferredPhy ( int clientIf , java.lang.String address , int txPhy , int rxPhy , int phyOptions ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.lang.Integer connId = mClientMap.connIdByAddress ( clientIf , address ) ; if ( connId == null ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "clientSetPreferredPhy() - no connection to " + address ) ) ; return ; } if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( "clientSetPreferredPhy() - address=" + address ) + ", connId=" ) + connId ) ) ; gattClientSetPreferredPhyNative ( clientIf , connId , txPhy , rxPhy , phyOptions ) ; }
Source:
private int getLteEarfcn ( android.hardware.radio.V1_0.DataRegStateResult dataRegStateResult ) { int lteEarfcn = com.android.internal.telephony.ServiceStateTracker.INVALID_LTE_EARFCN ; switch ( dataRegStateResult.cellIdentity.cellInfoType ) { case android.hardware.radio.V1_0.CellInfoType.LTE : { if ( ( dataRegStateResult.cellIdentity.cellIdentityLte.size ( ) ) == 1 ) { com.android.internal.telephony.V1_0.CellIdentityLte cellIdentityLte = dataRegStateResult.cellIdentity.cellIdentityLte.get ( 0 ) ; lteEarfcn = cellIdentityLte.earfcn ; } break ; } default : { break ; } } return lteEarfcn ; }

Target:
private int getLteEarfcn ( android.telephony.CellIdentity cellIdentity ) { int lteEarfcn = com.android.internal.telephony.ServiceStateTracker.INVALID_LTE_EARFCN ; if ( cellIdentity != null ) { switch ( cellIdentity.getType ( ) ) { case android.hardware.radio.V1_0.CellInfoType.LTE : { lteEarfcn = ( ( android.telephony.CellIdentityLte ) ( cellIdentity ) ) . getEarfcn ( ) ; break ; } default : { break ; } } } return lteEarfcn ; }
Source:
public void copyFrom ( byte [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFrom" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFrom ( short [ ] d ) { validateIsInt16 ( ) ; copyFromUnchecked ( d , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
protected com.android.jack.library.OutputJackLibrary getOutputJackLibraryFromVfs ( ) { com.android.sched.vfs.InputOutputVFS outputDir ; com.android.sched.vfs.Container containerType = com.android.sched.util.config.ThreadConfig.get ( Options.LIBRARY_OUTPUT_CONTAINER_TYPE ) ; if ( containerType == ( com.android.sched.vfs.Container.DIR ) ) { outputDir = com.android.sched.util.config.ThreadConfig.get ( Options.LIBRARY_OUTPUT_DIR ) ; } else { outputDir = com.android.sched.util.config.ThreadConfig.get ( Options.LIBRARY_OUTPUT_ZIP ) ; } return com.android.jack.library.JackLibraryFactory.getOutputLibrary ( outputDir , com.android.jack.Jack.getEmitterId ( ) , com.android.jack.Jack.getVersionString ( ) ) ; }

Target:
protected com.android.jack.library.OutputJackLibrary getOutputJackLibraryFromVfs ( ) { com.android.sched.vfs.VFS vfs ; com.android.sched.vfs.Container containerType = com.android.sched.util.config.ThreadConfig.get ( Options.LIBRARY_OUTPUT_CONTAINER_TYPE ) ; if ( containerType == ( com.android.sched.vfs.Container.DIR ) ) { vfs = com.android.sched.util.config.ThreadConfig.get ( Options.LIBRARY_OUTPUT_DIR ) ; } else { vfs = com.android.sched.util.config.ThreadConfig.get ( Options.LIBRARY_OUTPUT_ZIP ) ; } return com.android.jack.library.JackLibraryFactory.getOutputLibrary ( vfs , com.android.jack.Jack.getEmitterId ( ) , com.android.jack.Jack.getVersionString ( ) ) ; }
Source:
public static < T > java.lang.Iterable < T > concat ( java.lang.Iterable < ? extends T > a , java.lang.Iterable < ? extends T > b ) { com.google.common.base.Preconditions.checkNotNull ( a ) ; com.google.common.base.Preconditions.checkNotNull ( b ) ; return com.google.common.collect.Iterables.concat ( java.util.Arrays.asList ( a , b ) ) ; }

Target:
static < T > T removeFirstMatching ( java.lang.Iterable < T > removeFrom , com.google.common.base.Predicate < ? super T > predicate ) { com.google.common.base.Preconditions.checkNotNull ( predicate ) ; java.util.Iterator < T > iterator = removeFrom.iterator ( ) ; while ( iterator.hasNext ( ) ) { T next = iterator.next ( ) ; if ( predicate.apply ( next ) ) { iterator.remove ( ) ; return next ; } } return null ; }
Source:
protected com.android.tools.lint.checks.TestConfiguration getConfiguration ( com.android.tools.lint.detector.api.Project project ) { return new com.android.tools.lint.checks.TestConfiguration ( ) { @ java.lang.Override public boolean isEnabled ( com.android.tools.lint.detector.api.Issue issue ) { return ( super . isEnabled ( issue ) ) && ( mEnabled.contains ( issue ) ) ; } } ; }

Target:
protected com.android.tools.lint.checks.TestConfiguration getConfiguration ( com.android.tools.lint.client.api.LintClient client , com.android.tools.lint.detector.api.Project project ) { return new com.android.tools.lint.checks.TestConfiguration ( client , project , null ) { @ java.lang.Override public boolean isEnabled ( com.android.tools.lint.detector.api.Issue issue ) { return ( super . isEnabled ( issue ) ) && ( mEnabled.contains ( issue ) ) ; } } ; }
Source:
private void getTotalNumOfItemsRequestFromNative ( byte [ ] address , byte scope ) { android.os.Bundle data = new android.os.Bundle ( ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_GET_TOTAL_NUM_OF_ITEMS ) ; msg.arg1 = scope ; msg.obj = address ; mHandler.sendMessage ( msg ) ; }

Target:
private void getTotalNumOfItemsRequestFromNative ( byte [ ] address , byte scope ) { final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "getTotalNumOfItemsRequestFromNative: mHandler is already null" ) ; return ; } android.os.Bundle data = new android.os.Bundle ( ) ; android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_GET_TOTAL_NUM_OF_ITEMS ) ; msg.arg1 = scope ; msg.obj = address ; handler.sendMessage ( msg ) ; }
Source:
public com.android.sched.util.log.tracer.AbstractTracer.TracerEvent start ( @ javax.annotation.Nonnull java.lang.String name ) { com.android.sched.util.log.tracer.DynamicEventType event = dynalicEventByName.get ( name ) ; if ( event == null ) { event = new com.android.sched.util.log.tracer.DynamicEventType ( name ) ; dynalicEventByName.put ( name , event ) ; } return start ( event ) ; }

Target:
private com.android.sched.util.log.EventType getOrCreateDynamicEventType ( @ javax.annotation.Nonnull java.lang.String name ) { synchronized ( dynalicEventByName ) { com.android.sched.util.log.tracer.DynamicEventType type = dynalicEventByName.get ( name ) ; if ( type == null ) { type = new com.android.sched.util.log.tracer.DynamicEventType ( name ) ; dynalicEventByName.put ( name , type ) ; } return type ; } }
Source:
public final byte byte_literal ( ) throws org.jf.smali.RecognitionException { byte value = 0 ; org.antlr.runtime.tree.CommonTree BYTE_LITERAL207 = null ; try { { BYTE_LITERAL207 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.BYTE_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_BYTE_LITERAL_in_byte_literal3483 ) ) ) ; value = org.jf.smali.LiteralTools.parseByte ( ( BYTE_LITERAL207 != null ? BYTE_LITERAL207.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final byte byte_literal ( ) throws org.jf.smali.RecognitionException { byte value = 0 ; org.antlr.runtime.tree.CommonTree BYTE_LITERAL212 = null ; try { { BYTE_LITERAL212 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.BYTE_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_BYTE_LITERAL_in_byte_literal3540 ) ) ) ; value = org.jf.smali.LiteralTools.parseByte ( ( BYTE_LITERAL212 != null ? BYTE_LITERAL212.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
protected void finalize ( ) { finalizerWait.countDown ( ) ; java.lang.System.out.println ( "Finalizer started and spinning..." ) ; long start ; long end ; start = java.lang.System.nanoTime ( ) ; for ( int i = 0 ; i < 1000000 ; i ++ ) { ( j ) ++ ; } end = java.lang.System.nanoTime ( ) ; java.lang.System.out.println ( "Finalizer done spinning." ) ; java.lang.System.out.println ( "Finalizer sleeping forever now." ) ; while ( true ) { Main.snooze ( 10000 ) ; } }

Target:
protected void finalize ( ) { finalizerWait.countDown ( ) ; java.lang.System.out.println ( "Finalizer started and spinning..." ) ; long start ; long end ; start = java.lang.System.nanoTime ( ) ; Main.snooze ( 2000 ) ; end = java.lang.System.nanoTime ( ) ; java.lang.System.out.println ( "Finalizer done spinning." ) ; java.lang.System.out.println ( "Finalizer sleeping forever now." ) ; while ( true ) { Main.snooze ( 10000 ) ; } }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newIndex ) { return new com.android.jack.dx.io.instructions.FourRegisterDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newIndex , getIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , b , c , d ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newFirstIndex , int newSecondIndex ) { assert ( getSecondIndexType ( ) ) == ( com.android.jack.dx.io.IndexType.NONE ) ; return new com.android.jack.dx.io.instructions.FourRegisterDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newFirstIndex , getFirstIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , b , c , d ) ; }
Source:
private void initLocalZeroPaddingNumberFormat ( ) { if ( ( numberFormat ) instanceof com.ibm.icu.text.DecimalFormat ) { decDigits = ( ( com.ibm.icu.text.DecimalFormat ) ( numberFormat ) ) . getDecimalFormatSymbols ( ) . getDigits ( ) ; useLocalZeroPaddingNumberFormat = true ; } else if ( ( numberFormat ) instanceof com.ibm.icu.impl.DateNumberFormat ) { decDigits = ( ( com.ibm.icu.impl.DateNumberFormat ) ( numberFormat ) ) . getDigits ( ) ; useLocalZeroPaddingNumberFormat = true ; } else { useLocalZeroPaddingNumberFormat = false ; } if ( useLocalZeroPaddingNumberFormat ) { decimalBuf = new char [ 10 ] ; } }

Target:
private void initLocalZeroPaddingNumberFormat ( ) { if ( ( numberFormat ) instanceof com.ibm.icu.text.DecimalFormat ) { decDigits = ( ( com.ibm.icu.text.DecimalFormat ) ( numberFormat ) ) . getDecimalFormatSymbols ( ) . getDigits ( ) ; useLocalZeroPaddingNumberFormat = true ; } else if ( ( numberFormat ) instanceof com.ibm.icu.impl.DateNumberFormat ) { decDigits = ( ( com.ibm.icu.impl.DateNumberFormat ) ( numberFormat ) ) . getDigits ( ) ; useLocalZeroPaddingNumberFormat = true ; } else { useLocalZeroPaddingNumberFormat = false ; } if ( useLocalZeroPaddingNumberFormat ) { decimalBuf = new char [ com.ibm.icu.text.SimpleDateFormat.DECIMAL_BUF_SIZE ] ; } }
Source:
public static com.google.common.io.InputSupplier < java.io.InputStreamReader > newReaderSupplier ( final com.google.common.io.InputSupplier < ? extends java.io.InputStream > in , final java.nio.charset.Charset charset ) { com.google.common.base.Preconditions.checkNotNull ( in ) ; com.google.common.base.Preconditions.checkNotNull ( charset ) ; return new com.google.common.io.InputSupplier < java.io.InputStreamReader > ( ) { @ java.lang.Override public java.io.InputStreamReader getInput ( ) throws java.io.IOException { return new java.io.InputStreamReader ( in.getInput ( ) , charset ) ; } } ; }

Target:
public void write ( int c ) { }
Source:
public void onInterfaceDeleted ( java.lang.String interfaceName ) { if ( com.android.server.wifi.nan.WifiNanDataPathStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.nan.WifiNanDataPathStateManager.TAG , ( "onInterfaceDeleted: interfaceName=" + interfaceName ) ) ; if ( ! ( mInterfaces.contains ( interfaceName ) ) ) { android.util.Log.w ( com.android.server.wifi.nan.WifiNanDataPathStateManager.TAG , ( "onInterfaceDeleted: interface not on list -- " + interfaceName ) ) ; } mInterfaces.remove ( interfaceName ) ; }

Target:
public void onInterfaceDeleted ( java.lang.String interfaceName ) { if ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.TAG , ( "onInterfaceDeleted: interfaceName=" + interfaceName ) ) ; if ( ! ( mInterfaces.contains ( interfaceName ) ) ) { android.util.Log.w ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.TAG , ( "onInterfaceDeleted: interface not on list -- " + interfaceName ) ) ; } mInterfaces.remove ( interfaceName ) ; }
Source:
public boolean needsUnlockedKeyStore ( ) { for ( android.net.wifi.WifiConfiguration config : getInternalConfiguredNetworks ( ) ) { if ( ( config.allowedKeyManagement.get ( WifiConfiguration.KeyMgmt.WPA_EAP ) ) && ( config.allowedKeyManagement.get ( WifiConfiguration.KeyMgmt.IEEE8021X ) ) ) { if ( mWifiKeyStore.needsSoftwareBackedKeyStore ( config.enterpriseConfig ) ) { return true ; } } } return false ; }

Target:
public boolean needsUnlockedKeyStore ( ) { for ( android.net.wifi.WifiConfiguration config : getInternalConfiguredNetworks ( ) ) { if ( com.android.server.wifi.WifiConfigurationUtil.isConfigForEapNetwork ( config ) ) { if ( mWifiKeyStore.needsSoftwareBackedKeyStore ( config.enterpriseConfig ) ) { return true ; } } } return false ; }
Source:
public void removeActiveDownstream ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine downstream ) { com.android.server.connectivity.tethering.IPv6TetheringCoordinator.stopIPv6TetheringOn ( downstream ) ; if ( mActiveDownstreams.remove ( downstream ) ) { updateIPv6TetheringInterfaces ( ) ; } }

Target:
public void addActiveDownstream ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine downstream , int mode ) { if ( ( findDownstream ( downstream ) ) == null ) { if ( mActiveDownstreams.offer ( new com.android.server.connectivity.tethering.IPv6TetheringCoordinator.Downstream ( downstream , mode , mNextSubnetId ) ) ) { mNextSubnetId = ( ( short ) ( java.lang.Math.max ( 0 , ( ( mNextSubnetId ) + 1 ) ) ) ) ; } updateIPv6TetheringInterfaces ( ) ; } }
Source:
public void callSessionConferenceStateUpdated ( com.android.ims.internal.ImsCallSession session , com.android.ims.ImsConferenceState state ) { logi ( ( "callSessionConferenceStateUpdated :: state=" + state ) ) ; conferenceStateUpdated ( state ) ; }

Target:
public void callSessionRemoveParticipantsRequestFailed ( android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsReasonInfo reasonInfo ) { loge ( ( "callSessionRemoveParticipantsRequestFailed :: reasonInfo=" + reasonInfo ) ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( ( "callSessionRemoveParticipantsRequestFailed :: not supported for " + "conference session=" ) + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; } if ( listener != null ) { try { listener.onCallRemoveParticipantsRequestFailed ( this , reasonInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionRemoveParticipantsRequestFailed :: " , t ) ; } } }
Source:
public void testJustInfoAndError ( ) { com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . addInfo ( "merging info" ) . addError ( "something bad happened" ) . build ( ) ; assertEquals ( MergingReport.Result.ERROR , mergingReport.getResult ( ) ) ; }

Target:
public void testJustInfoAndWarning ( ) { com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . addMessage ( mSourceLocation , 0 , 0 , Severity.INFO , "merging info" ) . addMessage ( mSourceLocation , 0 , 0 , Severity.WARNING , "Something weird happened" ) . build ( ) ; assertEquals ( MergingReport.Result.WARNING , mergingReport.getResult ( ) ) ; }
Source:
public void getVoiceRadioTechnology ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_VOICE_RADIO_TECH , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getImsRegistrationState ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_IMS_REGISTRATION_STATE , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } send ( rr ) ; }
Source:
public void testInterfaceCountersUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1000 , false ) ; }

Target:
public void testAesGcm128Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.AEAD_KEY , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , null , authCrypt , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , null , authCrypt , false , 1 , true ) ; }
Source:
public void test_JarFile_Modified_Manifest_MainAttributes ( ) throws java.io.IOException { java.lang.String modifiedJarName = "Modified_Manifest_MainAttributes.jar" ; tests.support.resource.Support_Resources.copyFile ( resources , null , modifiedJarName ) ; java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( new java.io.File ( resources , modifiedJarName ) , true ) ; java.util.Enumeration < java.util.jar.JarEntry > entries = jarFile.entries ( ) ; while ( entries.hasMoreElements ( ) ) { java.util.zip.ZipEntry zipEntry = entries.nextElement ( ) ; try { jarFile.getInputStream ( zipEntry ) ; fail ( "SecurityException expected" ) ; } catch ( java.lang.SecurityException e ) { } } }

Target:
public void test_JarFile_Modified_Manifest_MainAttributes ( ) throws java.io.IOException { java.lang.String modifiedJarName = "Modified_Manifest_MainAttributes.jar" ; java.io.File file = tests.support.resource.Support_Resources.copyFile ( resources , null , modifiedJarName ) ; try ( java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( file , true ) ) { java.util.Enumeration < java.util.jar.JarEntry > entries = jarFile.entries ( ) ; while ( entries.hasMoreElements ( ) ) { java.util.zip.ZipEntry zipEntry = entries.nextElement ( ) ; try { jarFile.getInputStream ( zipEntry ) ; fail ( "SecurityException expected" ) ; } catch ( java.lang.SecurityException e ) { } } } }
Source:
private void generateTestManifest ( java.lang.String outManifestLocation ) { com.android.builder.TestManifestGenerator generator = new com.android.builder.TestManifestGenerator ( outManifestLocation , mVariant.getPackageName ( ) , mVariant.getTestedPackageName ( ) , mVariant.getInstrumentationRunner ( ) ) ; try { generator.generate ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
private void generateTestManifest ( java.lang.String outManifestLocation ) { com.android.builder.VariantConfiguration testedConfig = mVariant.getTestedConfig ( ) ; com.android.builder.TestManifestGenerator generator = new com.android.builder.TestManifestGenerator ( outManifestLocation , mVariant.getPackageName ( ) , testedConfig.getMinSdkVersion ( ) , mVariant.getTestedPackageName ( ) , mVariant.getInstrumentationRunner ( ) ) ; try { generator.generate ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public boolean enable ( ) { if ( ( isEnabled ( ) ) == true ) { if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enable(): BT is already enabled..!" ) ; return true ; } try { return mManagerService.enable ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean enable ( ) { if ( ( isEnabled ( ) ) == true ) { if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enable(): BT is already enabled..!" ) ; return true ; } try { return mManagerService.enable ( android.app.ActivityThread.currentPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }
Source:
public static java.math.MathContext getMathContextOr16Digits ( com.ibm.icu.impl.number.Rounder.IBasicRoundingProperties properties ) { java.math.MathContext mathContext = properties.getMathContext ( ) ; if ( mathContext == null ) { java.math.RoundingMode roundingMode = properties.getRoundingMode ( ) ; if ( roundingMode == null ) roundingMode = java.math.RoundingMode.HALF_EVEN ; mathContext = com.ibm.icu.impl.number.RoundingUtils.MATH_CONTEXT_BY_ROUNDING_MODE_16_DIGITS [ roundingMode.ordinal ( ) ] ; } return mathContext ; }

Target:
public static java.math.MathContext getMathContextOr34Digits ( com.ibm.icu.impl.number.Rounder.IBasicRoundingProperties properties ) { java.math.MathContext mathContext = properties.getMathContext ( ) ; if ( mathContext == null ) { java.math.RoundingMode roundingMode = properties.getRoundingMode ( ) ; if ( roundingMode == null ) roundingMode = java.math.RoundingMode.HALF_EVEN ; mathContext = com.ibm.icu.impl.number.RoundingUtils.MATH_CONTEXT_BY_ROUNDING_MODE_34_DIGITS [ roundingMode.ordinal ( ) ] ; } return mathContext ; }
Source:
public java.net.Socket createSocket ( java.lang.String host , int port , java.net.InetAddress localAddr , int localPort ) throws java.io.IOException { com.android.org.conscrypt.OpenSSLSocketImpl s = ( ( com.android.org.conscrypt.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( host , port , localAddr , localPort ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; if ( mSecure ) { android.net.SSLCertificateSocketFactory.verifyHostname ( s , host ) ; } return s ; }

Target:
public java.net.Socket createSocket ( java.lang.String host , int port , java.net.InetAddress localAddr , int localPort ) throws java.io.IOException { com.android.org.conscrypt.OpenSSLSocketImpl s = ( ( com.android.org.conscrypt.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( host , port , localAddr , localPort ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setAlpnProtocols ( mAlpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; if ( mSecure ) { android.net.SSLCertificateSocketFactory.verifyHostname ( s , host ) ; } return s ; }
Source:
public org.eclipse.swt.widgets.Control createControl ( org.eclipse.swt.widgets.Composite composite ) { org.eclipse.swt.widgets.Group workingSetGroup = new org.eclipse.swt.widgets.Group ( composite , org.eclipse.swt.SWT.NONE ) ; workingSetGroup.setFont ( composite.getFont ( ) ) ; workingSetGroup.setText ( NewWizardMessages.NewJavaProjectWizardPageOne_WorkingSets_group ) ; workingSetGroup.setLayout ( new org.eclipse.swt.layout.GridLayout ( 1 , false ) ) ; fWorkingSetBlock.createContent ( workingSetGroup ) ; return workingSetGroup ; }

Target:
public org.eclipse.swt.widgets.Composite createControl ( org.eclipse.swt.widgets.Composite composite ) { org.eclipse.swt.widgets.Group workingSetGroup = new org.eclipse.swt.widgets.Group ( composite , org.eclipse.swt.SWT.NONE ) ; workingSetGroup.setFont ( composite.getFont ( ) ) ; workingSetGroup.setText ( NewWizardMessages.NewJavaProjectWizardPageOne_WorkingSets_group ) ; workingSetGroup.setLayout ( new org.eclipse.swt.layout.GridLayout ( 1 , false ) ) ; fWorkingSetBlock.createContent ( workingSetGroup ) ; mEnableButton = findCheckbox ( workingSetGroup ) ; return workingSetGroup ; }
Source:
private void deleteDownload ( int arrayPos ) { com.android.providers.downloads.DownloadInfo info = ( ( com.android.providers.downloads.DownloadInfo ) ( mDownloads.get ( arrayPos ) ) ) ; if ( ( info.status ) == ( android.provider.Downloads.STATUS_RUNNING ) ) { info.status = android.provider.Downloads.STATUS_CANCELED ; } else if ( ( ( info.destination ) != ( android.provider.Downloads.DESTINATION_EXTERNAL ) ) && ( ( info.filename ) != null ) ) { new java.io.File ( info.filename ) . delete ( ) ; } mNotifier.mNotificationMgr.cancel ( info.id ) ; mDownloads.remove ( arrayPos ) ; }

Target:
private void deleteDownload ( int arrayPos ) { com.android.providers.downloads.DownloadInfo info = ( ( com.android.providers.downloads.DownloadInfo ) ( mDownloads.get ( arrayPos ) ) ) ; if ( ( info.mStatus ) == ( android.provider.Downloads.STATUS_RUNNING ) ) { info.mStatus = android.provider.Downloads.STATUS_CANCELED ; } else if ( ( ( info.mDestination ) != ( android.provider.Downloads.DESTINATION_EXTERNAL ) ) && ( ( info.mFileName ) != null ) ) { new java.io.File ( info.mFileName ) . delete ( ) ; } mNotifier.mNotificationMgr.cancel ( info.mId ) ; mDownloads.remove ( arrayPos ) ; }
Source:
boolean disconnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidService.DBG ) android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , ( "disconnect: " + ( device.getAddress ( ) ) ) ) ; enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_DISCONNECT , device ) ; mHandler.sendMessage ( msg ) ; return true ; }

Target:
boolean disconnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidHostService.DBG ) android.util.Log.d ( com.android.bluetooth.hid.HidHostService.TAG , ( "disconnect: " + ( device.getAddress ( ) ) ) ) ; enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidHostService.MESSAGE_DISCONNECT , device ) ; mHandler.sendMessage ( msg ) ; return true ; }
Source:
public void cachePackageCodeLocation ( java.lang.String packageName , java.lang.String baseCodePath , java.lang.String [ ] splitCodePaths , java.lang.String dataDir , int userId ) { com.android.server.pm.dex.DexManager.PackageCodeLocations pcl = com.android.server.pm.dex.DexManager.putIfAbsent ( mPackageCodeLocationsCache , packageName , new com.android.server.pm.dex.DexManager.PackageCodeLocations ( packageName , baseCodePath , splitCodePaths ) ) ; pcl.updateCodeLocation ( baseCodePath , splitCodePaths ) ; if ( dataDir != null ) { pcl.mergeAppDataDirs ( dataDir , userId ) ; } }

Target:
private void cachePackageCodeLocation ( java.lang.String packageName , java.lang.String baseCodePath , java.lang.String [ ] splitCodePaths , java.lang.String [ ] dataDirs , int userId ) { synchronized ( mPackageCodeLocationsCache ) { com.android.server.pm.dex.DexManager.PackageCodeLocations pcl = com.android.server.pm.dex.DexManager.putIfAbsent ( mPackageCodeLocationsCache , packageName , new com.android.server.pm.dex.DexManager.PackageCodeLocations ( packageName , baseCodePath , splitCodePaths ) ) ; pcl.updateCodeLocation ( baseCodePath , splitCodePaths ) ; if ( dataDirs != null ) { for ( java.lang.String dataDir : dataDirs ) { if ( dataDir != null ) { pcl.mergeAppDataDirs ( dataDir , userId ) ; } } } } }
Source:
public void waitForUninterruptibly ( com.google.common.util.concurrent.Monitor.Guard guard ) { if ( ( guard.monitor ) != ( this ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } if ( ! ( lock.isHeldByCurrentThread ( ) ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } waitUninterruptibly ( guard , true ) ; }

Target:
public boolean waitFor ( com.google.common.util.concurrent.Monitor.Guard guard , long time , java.util.concurrent.TimeUnit unit ) throws java.lang.InterruptedException { long timeoutNanos = unit.toNanos ( time ) ; if ( ! ( ( ( guard.monitor ) == ( this ) ) & ( lock.isHeldByCurrentThread ( ) ) ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } return ( guard.isSatisfied ( ) ) || ( awaitNanos ( guard , timeoutNanos , true ) ) ; }
Source:
public static void recordBooleanHistogram ( java.lang.String name , boolean sample ) { if ( ( org.chromium.base.metrics.RecordHistogram.sDisabledBy ) != null ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordBooleanHistogram ( name , key , sample ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }

Target:
public static void recordBooleanHistogram ( java.lang.String name , boolean sample ) { if ( org.chromium.base.metrics.RecordHistogram.sIsDisabledForTests ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordBooleanHistogram ( name , key , sample ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }
Source:
public boolean enableDataConnectivity ( ) { enforceModifyPermission ( ) ; int subId = mSubscriptionController.getDefaultDataSubId ( ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { phone.setDataEnabled ( true ) ; return true ; } else { return false ; } }

Target:
public boolean disableDataConnectivity ( ) { enforceModifyPermission ( ) ; int subId = mSubscriptionController.getDefaultDataSubId ( ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { phone.setUserDataEnabled ( false ) ; return true ; } else { return false ; } }
Source:
public void testLibProguard ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( regularDir , "libProguard" ) ; java.io.File fileOutput = new java.io.File ( project , ( ( "build/" + ( com.android.builder.model.AndroidProject.FD_OUTPUTS ) ) + "/proguard/release" ) ) ; runTasksOn ( project , BasePlugin.GRADLE_TEST_VERSION , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( fileOutput , "mapping.txt" , new java.lang.String [ ] { "int proguardInt -> a" } ) ; }

Target:
public void testLibMinify ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( regularDir , "libMinify" ) ; java.io.File fileOutput = new java.io.File ( project , ( ( "build/" + ( com.android.builder.model.AndroidProject.FD_OUTPUTS ) ) + "/mapping/release" ) ) ; runTasksOn ( project , BasePlugin.GRADLE_TEST_VERSION , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( fileOutput , "mapping.txt" , new java.lang.String [ ] { "int obfuscatedInt -> a" } ) ; }
Source:
public static java.lang.String [ ] allToString ( @ android.security.KeyStoreKeyConstraints.DigestEnum int digests ) { int [ ] values = android.security.KeyStoreKeyConstraints.getSetFlags ( digests ) ; java.lang.String [ ] result = new java.lang.String [ values.length ] ; for ( int i = 0 ; i < ( values.length ) ; i ++ ) { result [ i ] = android.security.KeyStoreKeyConstraints.Digest.toString ( values [ i ] ) ; } return result ; }

Target:
public static java.lang.String allToString ( @ android.security.KeyStoreKeyConstraints.DigestEnum int digests ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( "[" ) ; boolean firstValue = true ; for ( @ android.security.KeyStoreKeyConstraints.DigestEnum int digest : android.security.KeyStoreKeyConstraints.getSetFlags ( digests ) ) { if ( firstValue ) { firstValue = false ; } else { result.append ( ", " ) ; } result.append ( android.security.KeyStoreKeyConstraints.Digest.toString ( digest ) ) ; } result.append ( ']' ) ; return result.toString ( ) ; }
Source:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , int [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFrom" ) ; validateIsInt32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data ) ; 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 ) { 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 ) ; }
Source:
public short int16 ( ) throws java.io.IOException { read ( 2 ) ; int i = 0 ; i |= ( mBuffer [ 0 ] ) & 255 ; i |= ( ( mBuffer [ 1 ] ) & 255 ) << 8 ; return ( ( short ) ( i ) ) ; }

Target:
private long intv ( ) throws java.io.IOException { long uv = uintv ( ) ; long v = uv > > > 1 ; if ( ( uv & 1 ) != 0 ) { v = ~ v ; } return v ; }
Source:
private void assertHasWireData ( com.google.protobuf.nano.MessageNano message , boolean expected ) { int wireLength = com.google.protobuf.nano.MessageNano.toByteArray ( message ) . length ; if ( expected ) { assertFalse ( ( wireLength == 0 ) ) ; } else { assertEquals ( 0 , wireLength ) ; } }

Target:
private void assertHasWireData ( com.google.protobuf.nano.MessageNano message , boolean expected ) { byte [ ] bytes = com.google.protobuf.nano.MessageNano.toByteArray ( message ) ; int wireLength = bytes.length ; if ( expected ) { assertFalse ( ( wireLength == 0 ) ) ; } else { if ( wireLength != 0 ) { fail ( ( ( ( "Expected no wire data for message \n" + message ) + "\nBut got:\n" ) + ( com.google.protobuf.NanoTest.hexDump ( bytes ) ) ) ) ; } } }
Source:
public void run ( ) { switch ( mID ) { default : outArray [ 0 ] = mID ; outArray [ 1 ] = mData [ 0 ] ; outArray [ 2 ] = mData [ 1 ] ; outArray [ 3 ] = mData [ 2 ] ; try { releaseForTest ( ) ; } catch ( java.lang.Exception e ) { } return ; } }

Target:
public void run ( ) { switch ( mID ) { default : outArray [ 0 ] = mID ; outArray [ 1 ] = mData [ 0 ] ; outArray [ 2 ] = mData [ 1 ] ; outArray [ 3 ] = mData [ 2 ] ; try { android.renderscript.cts.SendToClient.mSync.release ( ) ; } catch ( java.lang.Exception e ) { } return ; } }
Source:
public void onEventReceived ( com.googlecode.android_scripting.event.Event event ) { if ( event.getName ( ) . equals ( eventName ) ) { synchronized ( futureEvent ) { if ( ! ( futureEvent.isDone ( ) ) ) { futureEvent.set ( event ) ; com.googlecode.android_scripting.Log.v ( java.lang.String.format ( "Removeing observer (%s) got event (%s)" , this , event ) ) ; removeEventObserver ( this ) ; } if ( removeEvent ) mEventQueue.remove ( event ) ; } } }

Target:
public void onEventReceived ( com.googlecode.android_scripting.event.Event event ) { if ( event.getName ( ) . equals ( eventName ) ) { synchronized ( futureEvent ) { if ( ! ( futureEvent.isDone ( ) ) ) { futureEvent.set ( event ) ; com.googlecode.android_scripting.Log.v ( java.lang.String.format ( "Removing observer (%s) got event (%s)" , this , event ) ) ; removeEventObserver ( this ) ; } if ( removeEvent ) mEventQueue.remove ( event ) ; } } }
Source:
public boolean enableNetworkWithoutConnect ( int netId ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( ( "enableNetworkWithoutConnect nid=" + ( java.lang.Integer.toString ( netId ) ) ) ) ; return doBooleanCommand ( ( ( ( "ENABLE_NETWORK " + netId ) + " " ) + "no-connect" ) ) ; }

Target:
public boolean startFilteringMulticastV4Packets ( ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return ( ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) && ( mSupplicantStaIfaceHal.removeRxFilter ( SupplicantStaIfaceHal.RX_FILTER_TYPE_V4_MULTICAST ) ) ) && ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) ; } else { return ( ( doBooleanCommand ( "DRIVER RXFILTER-STOP" ) ) && ( doBooleanCommand ( "DRIVER RXFILTER-REMOVE 2" ) ) ) && ( doBooleanCommand ( "DRIVER RXFILTER-START" ) ) ; } }
Source:
public void cleanup ( ) { if ( ( myEntryPointsManager ) != null ) { com.intellij.openapi.util.Disposer.dispose ( myEntryPointsManager ) ; myEntryPointsManager = null ; } myPackages = null ; myApplet = null ; myAppMainPattern = null ; myAppPremainPattern = null ; myAppAgentmainPattern = null ; myServlet = null ; myDefaultPackage = null ; myProjectIterator = null ; }

Target:
public void cleanup ( ) { if ( ( myEntryPointsManager ) != null ) { com.intellij.openapi.util.Disposer.dispose ( myEntryPointsManager ) ; myEntryPointsManager = null ; } myPackages = null ; myApplet = null ; myAppMainPattern = null ; myAppPremainPattern = null ; myAppAgentmainPattern = null ; myServlet = null ; myAndroidActivity = null ; myAndroidService = null ; myAndroidBackupAgent = null ; myAndroidFragment = null ; myAndroidV4Fragment = null ; myAndroidContentProvider = null ; myAndroidReceiver = null ; myAndroidView = null ; myAndroidActionProvider = null ; myAndroidParcelable = null ; myDefaultPackage = null ; myProjectIterator = null ; }
Source:
public void testNewIncomingCall ( ) throws java.lang.Exception { com.android.ims.internal.IImsCallSession sessionBinder = org.mockito.Mockito.mock ( com.android.ims.internal.IImsCallSession.class ) ; com.android.ims.internal.ImsCallSession session = new com.android.ims.internal.ImsCallSession ( sessionBinder ) ; mFeature.incomingCall ( session ) ; org.mockito.ArgumentCaptor < com.android.ims.internal.IImsCallSession > captor = org.mockito.ArgumentCaptor.forClass ( com.android.ims.internal.IImsCallSession.class ) ; org.mockito.Mockito.verify ( mListener ) . onIncomingCall ( captor.capture ( ) , org.mockito.ArgumentMatchers.any ( ) ) ; junit.framework.Assert.assertEquals ( sessionBinder , captor.getValue ( ) ) ; }

Target:
public void testNewIncomingCall ( ) throws java.lang.Exception { com.android.ims.internal.IImsCallSession sessionBinder = org.mockito.Mockito.mock ( com.android.ims.internal.IImsCallSession.class ) ; android.telephony.ims.stub.ImsCallSessionImplBase session = new android.telephony.ims.stub.ImsCallSessionImplBase ( ) ; session.setServiceImpl ( sessionBinder ) ; mFeature.incomingCall ( session ) ; org.mockito.ArgumentCaptor < com.android.ims.internal.IImsCallSession > captor = org.mockito.ArgumentCaptor.forClass ( com.android.ims.internal.IImsCallSession.class ) ; org.mockito.Mockito.verify ( mListener ) . onIncomingCall ( captor.capture ( ) , org.mockito.ArgumentMatchers.any ( ) ) ; junit.framework.Assert.assertEquals ( sessionBinder , captor.getValue ( ) ) ; }