auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void addU16 ( android.support.v8.renderscript.Int4 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addU16 ( new android.support.v8.renderscript.Int4 ( v.x , v.y , v.z , v.w ) ) ; return ; } addU16 ( v.x ) ; addU16 ( v.y ) ; addU16 ( v.z ) ; addU16 ( v.w ) ; }

Target:
public void addI32 ( android.support.v8.renderscript.Int4 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addI32 ( v ) ; return ; } addI32 ( v.x ) ; addI32 ( v.y ) ; addI32 ( v.z ) ; addI32 ( v.w ) ; }
Source:
private void addProjects ( @ com.android.annotations.NonNull java.io.File dir , @ com.android.annotations.NonNull java.util.Map < java.io.File , com.android.tools.lint.detector.api.Project > fileToProject , @ com.android.annotations.NonNull java.io.File rootDir ) { if ( mCanceled ) { return ; } if ( com.android.tools.lint.detector.api.LintUtils.isProjectDir ( dir ) ) { registerProjectFile ( fileToProject , dir , dir , rootDir ) ; } else { java.io.File [ ] files = dir.listFiles ( ) ; if ( files != null ) { for ( java.io.File file : files ) { if ( file.isDirectory ( ) ) { addProjects ( file , fileToProject , rootDir ) ; } } } } }

Target:
private void addProjects ( @ com.android.annotations.NonNull java.io.File dir , @ com.android.annotations.NonNull java.util.Map < java.io.File , com.android.tools.lint.detector.api.Project > fileToProject , @ com.android.annotations.NonNull java.io.File rootDir ) { if ( mCanceled ) { return ; } if ( mClient.isProjectDirectory ( dir ) ) { registerProjectFile ( fileToProject , dir , dir , rootDir ) ; } else { java.io.File [ ] files = dir.listFiles ( ) ; if ( files != null ) { for ( java.io.File file : files ) { if ( file.isDirectory ( ) ) { addProjects ( file , fileToProject , rootDir ) ; } } } } }
Source:
public void testStageInstallWithErrorCode_missingTzLookupFile ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro stagedDistro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.stageInstallWithErrorCode ( stagedDistro ) ) ; assertInstallDistroStaged ( stagedDistro ) ; com.android.timezone.distro.TimeZoneDistro incompleteDistro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEWER_RULES_VERSION , 1 ) . setTzLookupXml ( null ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( incompleteDistro ) ) ; assertInstallDistroStaged ( stagedDistro ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_missingIcuFile ( ) throws java.lang.Exception { byte [ ] stagedDistroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBytes ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.stageInstallWithErrorCode ( new com.android.timezone.distro.TimeZoneDistro ( stagedDistroBytes ) ) ) ; assertInstallDistroStaged ( stagedDistroBytes ) ; byte [ ] incompleteDistroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEWER_RULES_VERSION , 1 ) . clearIcuDataForTests ( ) . buildUnvalidatedBytes ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( new com.android.timezone.distro.TimeZoneDistro ( incompleteDistroBytes ) ) ) ; assertInstallDistroStaged ( stagedDistroBytes ) ; assertNoInstalledDistro ( ) ; }
Source:
synchronized void nScriptSetTimeZone ( long script , byte [ ] timeZone ) { validate ( ) ; rsnScriptSetTimeZone ( mContext , script , timeZone ) ; }

Target:
synchronized void nScriptSetVarV ( long id , int slot , byte [ ] val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarV ( curCon , id , slot , val , mUseInc ) ; }
Source:
public void simSlotsStatusChanged ( int indicationType , java.util.ArrayList < android.hardware.radio.config.V1_0.SimSlotStatus > slotStatus ) { java.util.ArrayList < com.android.internal.telephony.uicc.IccSlotStatus > ret = com.android.internal.telephony.RadioConfig.convertHalSlotStatus ( slotStatus ) ; if ( ( mRadioConfig.mSimSlotStatusRegistrant ) != null ) { mRadioConfig.mSimSlotStatusRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , ret , null ) ) ; } }

Target:
public void simSlotsStatusChanged ( int indicationType , java.util.ArrayList < android.hardware.radio.config.V1_0.SimSlotStatus > slotStatus ) { java.util.ArrayList < com.android.internal.telephony.uicc.IccSlotStatus > ret = com.android.internal.telephony.RadioConfig.convertHalSlotStatus ( slotStatus ) ; android.telephony.Rlog.d ( com.android.internal.telephony.RadioConfigIndication.TAG , ( ( "[UNSL]< " + " UNSOL_SIM_SLOT_STATUS_CHANGED " ) + ( ret.toString ( ) ) ) ) ; if ( ( mRadioConfig.mSimSlotStatusRegistrant ) != null ) { mRadioConfig.mSimSlotStatusRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , ret , null ) ) ; } }
Source:
public void terminate ( ) { android.net.wifi.nan.WifiNanManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.nan.WifiNanSession.TAG , "terminate: called post GC on WifiNanManager" ) ; return ; } mgr.terminateSession ( mSessionId ) ; mTerminated = true ; mMgr.clear ( ) ; mCloseGuard.close ( ) ; }

Target:
public void terminate ( ) { android.net.wifi.nan.WifiNanManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.nan.WifiNanDiscoveryBaseSession.TAG , "terminate: called post GC on WifiNanManager" ) ; return ; } mgr.terminateSession ( mSessionId ) ; mTerminated = true ; mMgr.clear ( ) ; mCloseGuard.close ( ) ; }
Source:
public void enter ( ) { if ( android.net.wifi.WifiStateMachine.DBG ) log ( ( ( getName ( ) ) + "\n" ) ) ; android.util.EventLog.writeEvent ( android.net.wifi.WifiStateMachine.EVENTLOG_WIFI_STATE_CHANGED , getName ( ) ) ; }

Target:
public void enter ( ) { if ( android.net.wifi.WifiStateMachine.DBG ) log ( ( ( getName ( ) ) + "\n" ) ) ; android.util.EventLog.writeEvent ( android.net.wifi.WifiStateMachine.EVENTLOG_WIFI_STATE_CHANGED , getName ( ) ) ; setNetworkDetailedState ( DetailedState.VERIFYING_POOR_LINK ) ; mWifiConfigStore.updateStatus ( mLastNetworkId , DetailedState.VERIFYING_POOR_LINK ) ; sendNetworkStateChangeBroadcast ( mLastBssid ) ; }
Source:
public java.util.ListIterator < V > listIterator ( int index ) { final com.google.common.collect.LinkedListMultimap < K , V > . NodeIterator nodes = new NodeIterator ( index ) ; return new com.google.common.collect.TransformedListIterator < com.google.common.collect.LinkedListMultimap.Node < K , V > , V > ( nodes ) { @ java.lang.Override V transform ( com.google.common.collect.LinkedListMultimap.Node < K , V > node ) { return node.value ; } @ java.lang.Override public void set ( V value ) { nodes.setValue ( value ) ; } } ; }

Target:
public java.util.ListIterator < java.util.Map.Entry < K , V > > listIterator ( int index ) { return new NodeIterator ( index ) ; }
Source:
public int startSession ( int slotId , int featureType , android.app.PendingIntent incomingCallIntent , com.android.ims.internal.IImsRegistrationListener listener ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.startSession ( incomingCallIntent , listener ) ; } } return 0 ; }

Target:
public int startSession ( int slotId , int featureType , android.app.PendingIntent incomingCallIntent , com.android.ims.internal.IImsRegistrationListener listener ) throws android.os.RemoteException { enforceCallingOrSelfPermission ( android.Manifest.permission.MODIFY_PHONE_STATE , "startSession" ) ; synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.startSession ( incomingCallIntent , listener ) ; } } return 0 ; }
Source:
public void callOnPaste ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ ] pastedElements ) { com.android.ide.common.api.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onPaste ( targetNode , pastedElements ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onPaste() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }

Target:
public void callOnPaste ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ ] pastedElements ) { com.android.ide.common.api.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { mInsertType = com.android.ide.common.api.InsertType.PASTE ; rule.onPaste ( targetNode , pastedElements ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onPaste() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }
Source:
public void showCapture ( final org.eclipse.swt.widgets.Shell shell , final com.android.hierarchyviewerlib.device.ViewNode viewNode ) { executeInBackground ( "Capturing node" , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { final org.eclipse.swt.graphics.Image image = loadCapture ( viewNode ) ; if ( image != null ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.android.hierarchyviewerlib.ui.CaptureDisplay.show ( shell , viewNode , image ) ; } } ) ; } } } ) ; }

Target:
public void showCapture ( final org.eclipse.swt.widgets.Shell shell , final com.android.hierarchyviewerlib.models.ViewNode viewNode ) { executeInBackground ( "Capturing node" , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { final org.eclipse.swt.graphics.Image image = loadCapture ( viewNode ) ; if ( image != null ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.android.hierarchyviewerlib.ui.CaptureDisplay.show ( shell , viewNode , image ) ; } } ) ; } } } ) ; }
Source:
public void setRinging ( java.lang.String callId ) { com.android.server.telecom.Log.startSession ( "CSW.sR" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setRinging %s" , callId ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { mCallsManager.markCallAsRinging ( call ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void setRinging ( java.lang.String callId ) { android.telecom.Log.startSession ( "CSW.sR" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setRinging %s" , callId ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { mCallsManager.markCallAsRinging ( call ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
public java.lang.String getSystemProperty ( java.lang.String property , java.lang.String defValue ) { if ( ( isPhoneTypeGsm ( ) ) || ( isPhoneTypeCdmaLte ( ) ) ) { if ( getUnitTestMode ( ) ) { return null ; } return android.telephony.TelephonyManager.getTelephonyProperty ( mPhoneId , property , defValue ) ; } else { return super . getSystemProperty ( property , defValue ) ; } }

Target:
public java.lang.String getPlmn ( ) { if ( isPhoneTypeGsm ( ) ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; return r != null ? r.getPnnHomeName ( ) : null ; } else if ( isPhoneTypeCdma ( ) ) { loge ( "Plmn is not available in CDMA" ) ; return null ; } else { return ( mSimRecords ) != null ? mSimRecords.getPnnHomeName ( ) : null ; } }
Source:
public void addContents ( com.android.dx.dex.file.DexFile file ) { com.android.dx.dex.file.ProtoIdsSection protoIds = file.getProtoIds ( ) ; com.android.dx.rop.cst.CstProtoRef cstProtoRef = ( ( com.android.dx.rop.cst.CstProtoRef ) ( this . value.getList ( ) . get ( 2 ) ) ) ; protoIds.intern ( cstProtoRef.getPrototype ( ) ) ; }

Target:
public void addContents ( com.android.dx.dex.file.DexFile file ) { com.android.dx.dex.file.ValueEncoder.addContents ( file , value ) ; }
Source:
public org.objectweb.asm.util.Textifier visitParameterAnnotation ( final int parameter , final java.lang.String desc , final boolean visible ) { buf.setLength ( 0 ) ; buf.append ( tab2 ) . append ( '@' ) ; appendDescriptor ( org.objectweb.asm.util.Textifier.FIELD_DESCRIPTOR , desc ) ; buf.append ( '(' ) ; text.add ( buf.toString ( ) ) ; org.objectweb.asm.util.Textifier t = createTextifier ( ) ; text.add ( t.getText ( ) ) ; text.add ( ( visible ? ") // parameter " : ") // invisible, parameter " ) ) ; text.add ( new java.lang.Integer ( parameter ) ) ; text.add ( "\n" ) ; return t ; }

Target:
public org.objectweb.asm.util.Textifier visitParameterAnnotation ( final int parameter , final java.lang.String desc , final boolean visible ) { buf.setLength ( 0 ) ; buf.append ( tab2 ) . append ( '@' ) ; appendDescriptor ( org.objectweb.asm.util.Textifier.FIELD_DESCRIPTOR , desc ) ; buf.append ( '(' ) ; text.add ( buf.toString ( ) ) ; org.objectweb.asm.util.Textifier t = createTextifier ( ) ; text.add ( t.getText ( ) ) ; text.add ( ( visible ? ") // parameter " : ") // invisible, parameter " ) ) ; text.add ( parameter ) ; text.add ( "\n" ) ; return t ; }
Source:
public com.android.sched.vfs.InputOutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.DirectVFS ( new com.android.sched.util.file.Directory ( string , context.getRunnableHooks ( ) , existence , permissions , change ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e ) ; } }

Target:
public com.android.sched.vfs.InputOutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.GenericInputOutputVFS ( new com.android.sched.vfs.DirectFS ( new com.android.sched.util.file.Directory ( string , context.getRunnableHooks ( ) , existence , permissions , change ) , permissions ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e ) ; } }
Source:
public void transform ( org.eclipse.jdt.core.dom.CompilationUnit cu , org.eclipse.jface.text.Document document ) { for ( com.google.currysrc.api.transform.ast.TypeLocater publicClassLocater : publicClassLocaters ) { org.eclipse.jdt.core.dom.AbstractTypeDeclaration matchedType = publicClassLocater.find ( cu ) ; if ( matchedType != null ) { if ( com.android.icu4j.srcgen.CaptureDeprecatedElements.CaptureDeprecatedTransformer.isDeprecated ( matchedType ) ) { java.lang.String typeName = com.google.currysrc.api.transform.ast.BodyDeclarationLocaters.toLocaterStringForm ( matchedType ) ; deprecatedElements.add ( typeName ) ; } trackDeprecationsRecursively ( matchedType ) ; } } }

Target:
public void transform ( org.eclipse.jdt.core.dom.CompilationUnit cu , org.eclipse.jface.text.Document document ) { for ( com.google.currysrc.api.transform.ast.TypeLocater publicClassLocater : publicClassLocaters ) { org.eclipse.jdt.core.dom.AbstractTypeDeclaration matchedType = publicClassLocater.find ( cu ) ; if ( matchedType != null ) { if ( com.android.icu4j.srcgen.CaptureDeprecatedElements.CaptureDeprecatedTransformer.isDeprecated ( matchedType ) ) { java.util.List < java.lang.String > locaterStrings = com.google.currysrc.api.transform.ast.BodyDeclarationLocaters.toLocaterStringForms ( matchedType ) ; deprecatedElements.addAll ( locaterStrings ) ; } trackDeprecationsRecursively ( matchedType ) ; } } }
Source:
private vogar.tasks.Task createCreateDexJarTask ( vogar.Classpath classpath , java.io.File classpathElement , java.lang.String name , vogar.Action action , java.io.File localDex , java.io.File localTempDir ) { vogar.tasks.Task dex ; if ( ( run.toolchain ) == ( vogar.Toolchain.JACK ) ) { dex = new vogar.android.JackDexTask ( run , classpath , run.benchmark , name , classpathElement , action , localDex ) ; } else { dex = new vogar.android.DexTask ( run.androidSdk , classpath , run.benchmark , name , classpathElement , action , localDex , localTempDir , run.multidex ) ; } return dex ; }

Target:
private vogar.tasks.Task createCreateDexJarTask ( vogar.Classpath classpath , java.io.File classpathElement , java.lang.String name , vogar.Action action , java.io.File localDex , java.io.File localTempDir ) { vogar.tasks.Task dex ; if ( ( run.toolchain ) == ( vogar.Toolchain.JACK ) ) { dex = new vogar.android.JackDexTask ( run , classpath , run.benchmark , name , classpathElement , action , localDex ) ; } else { dex = new vogar.android.DexTask ( run.toolchain.getDexer ( ) , run.androidSdk , classpath , run.benchmark , name , classpathElement , action , localDex , localTempDir , run.multidex ) ; } return dex ; }
Source:
public void hierarchicalArrayTestMethodStructure ( ) throws java.lang.Exception { java.lang.System.clearProperty ( "JUnitParams.flat" ) ; org.junit.runner.Description description = arrayTestMethod.describe ( ) ; assertEquals ( "forOthersToWorkWithArray" , description.getDisplayName ( ) ) ; assertEquals ( "[0] a,b (forOthersToWorkWithArray)(junitparams.internal.TestMethodTest)" , description.getChildren ( ) . get ( 0 ) . getDisplayName ( ) ) ; assertEquals ( "[1] b,a (forOthersToWorkWithArray)(junitparams.internal.TestMethodTest)" , description.getChildren ( ) . get ( 1 ) . getDisplayName ( ) ) ; }

Target:
public void hierarchicalArrayTestMethodStructure ( ) throws java.lang.Exception { java.lang.System.clearProperty ( "JUnitParams.flat" ) ; org.junit.runner.Description description = arrayTestMethod.describableFrameworkMethod ( ) . getDescription ( ) ; assertEquals ( "forOthersToWorkWithArray" , description.getDisplayName ( ) ) ; assertEquals ( "[0] a,b (forOthersToWorkWithArray)(junitparams.internal.TestMethodTest)" , description.getChildren ( ) . get ( 0 ) . getDisplayName ( ) ) ; assertEquals ( "[1] b,a (forOthersToWorkWithArray)(junitparams.internal.TestMethodTest)" , description.getChildren ( ) . get ( 1 ) . getDisplayName ( ) ) ; }
Source:
public void testAesCbcHmacSha512Tcp4 ( ) 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_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }

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 android.bluetooth.BluetoothDevice getClient ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getClient = " + ( mService.getRemoteDevice ( ) ) ) ) ; com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) return null ; return service.getRemoteDevice ( ) ; }

Target:
java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.util.List < android.bluetooth.BluetoothDevice > devices = new java.util.ArrayList < > ( ) ; if ( ( mRemoteDevice ) != null ) { devices.add ( mRemoteDevice ) ; } return devices ; }
Source:
public java.lang.String getPath ( ) { return com.android.sdklib.AndroidTargetHash.getPlatformHashString ( getAndroidVersion ( ) ) ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newPlatform ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision minToolsRev ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_PLATFORMS ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mMinToolsRev = minToolsRev ; p.mCustomPath = new com.android.sdklib.repository.descriptors.PkgDesc.IGetPath ( ) { @ java.lang.Override public java.lang.String getPath ( com.android.sdklib.repository.descriptors.PkgDesc thisPkgDesc ) { return com.android.sdklib.AndroidTargetHash.getPlatformHashString ( thisPkgDesc.getAndroidVersion ( ) ) ; } } ; return p ; }
Source:
static void deadCycleWithException ( int k ) { int dead = 0 ; for ( int i = 0 ; i < ( Main.a.length ) ; i ++ ) { Main.a [ i ] = 4 ; dead += Main.a [ k ] ; } }

Target:
static void deadSequence ( ) { int dead = 0 ; for ( int i = 0 ; i < ( Main.a.length ) ; i ++ ) { Main.a [ i ] = ( Main.novec [ ( 2 * i ) ] ) + 3 ; dead += i ; } }
Source:
private synchronized void onConnectStateChanged ( byte [ ] address , int state ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "onConnectStateChanged(): address=" + ( java.util.Arrays.toString ( address ) ) ) + " state=" ) + state ) ) ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDeviceService.MESSAGE_CONNECT_STATE_CHANGED ) ; msg.obj = address ; msg.arg1 = state ; mHandler.sendMessage ( msg ) ; }

Target:
public static synchronized com.android.bluetooth.hid.HidDeviceService getHidDeviceService ( ) { if ( ( com.android.bluetooth.hid.HidDeviceService.sHidDeviceService ) == null ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "getHidDeviceService(): service is NULL" ) ; return null ; } if ( ! ( com.android.bluetooth.hid.HidDeviceService.sHidDeviceService.isAvailable ( ) ) ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "getHidDeviceService(): service is not available" ) ; return null ; } return com.android.bluetooth.hid.HidDeviceService.sHidDeviceService ; }
Source:
public boolean isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType numberType , int countryCallingCode ) { return ( ( numberType == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.FIXED_LINE ) ) || ( numberType == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.FIXED_LINE_OR_MOBILE ) ) ) || ( ( com.google.i18n.phonenumbers.PhoneNumberUtil.GEO_MOBILE_COUNTRIES.contains ( countryCallingCode ) ) && ( numberType == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.MOBILE ) ) ) ; }

Target:
private java.util.Set < com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType > getSupportedTypesForMetadata ( com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata ) { java.util.Set < com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType > types = new java.util.TreeSet < com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType > ( ) ; for ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType type : com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.values ( ) ) { if ( ( type == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.FIXED_LINE_OR_MOBILE ) ) || ( type == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.UNKNOWN ) ) ) { continue ; } if ( com.google.i18n.phonenumbers.PhoneNumberUtil.descHasData ( getNumberDescByType ( metadata , type ) ) ) { types.add ( type ) ; } } return java.util.Collections.unmodifiableSet ( types ) ; }
Source:
private static long getStreamSize ( java.io.FileInputStream is ) throws java.io.IOException { long length = 0 ; byte [ ] unused = new byte [ 4096 ] ; while ( ( is.available ( ) ) > 0 ) { length += is.read ( unused , 0 , 4096 ) ; } return length ; }

Target:
private static long getStreamSize ( java.io.FileInputStream is ) throws java.io.IOException { long length = 0 ; byte [ ] unused = new byte [ 4096 ] ; int bytesRead = is.read ( unused , 0 , 4096 ) ; while ( bytesRead != ( - 1 ) ) { length += bytesRead ; bytesRead = is.read ( unused , 0 , 4096 ) ; } return length ; }
Source:
public void visitMethod ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.Nullable lombok.ast.AstVisitor visitor , @ com.android.annotations.NonNull lombok.ast.MethodInvocation node ) { java.lang.String name = node.astName ( ) . astValue ( ) ; if ( com.android.tools.lint.checks.CleanupDetector.BEGIN_TRANSACTION.equals ( name ) ) { com.android.tools.lint.checks.CleanupDetector.checkTransactionCommits ( context , node ) ; } else { com.android.tools.lint.checks.CleanupDetector.checkResourceRecycled ( context , node , name ) ; } }

Target:
public void visitMethod ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.Nullable com.intellij.psi.JavaElementVisitor visitor , @ com.android.annotations.NonNull com.intellij.psi.PsiMethodCallExpression call , @ com.android.annotations.NonNull com.intellij.psi.PsiMethod method ) { java.lang.String name = method.getName ( ) ; if ( com.android.tools.lint.checks.CleanupDetector.BEGIN_TRANSACTION.equals ( name ) ) { com.android.tools.lint.checks.CleanupDetector.checkTransactionCommits ( context , call , method ) ; } else if ( com.android.tools.lint.checks.CleanupDetector.EDIT.equals ( name ) ) { com.android.tools.lint.checks.CleanupDetector.checkEditorApplied ( context , call , method ) ; } else { com.android.tools.lint.checks.CleanupDetector.checkResourceRecycled ( context , call , method ) ; } }
Source:
public void testRunWithPackage ( ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException { final java.lang.String packageName = "foo.test" ; mRunner.setTestPackageName ( packageName ) ; mRunner.run ( new com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.EmptyListener ( ) ) ; assertStringsEquals ( java.lang.String.format ( "am instrument -w -r -e package %s %s/%s" , packageName , com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_PACKAGE , com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_RUNNER ) , mMockDevice.getLastShellCommand ( ) ) ; }

Target:
public void testRun_withPackage ( ) throws java.lang.Exception { final java.lang.String packageName = "foo.test" ; mRunner.setTestPackageName ( packageName ) ; java.lang.String expectedCmd = org.easymock.EasyMock.contains ( java.lang.String.format ( "-e package %s" , packageName ) ) ; runAndVerify ( expectedCmd ) ; }
Source:
public static void computeAsinh ( android.renderscript.cts.TestAsinh.ArgumentsFloatFloat args ) { args.ulf = 5 ; args.ulfRelaxed = 5 ; args.out = ( ( float ) ( java.lang.StrictMath.log ( ( ( args.in ) + ( java.lang.StrictMath.sqrt ( ( 1 + ( java.lang.StrictMath.pow ( args.in , 2 ) ) ) ) ) ) ) ) ) ; }

Target:
private static float distance ( float [ ] lhs , float [ ] rhs ) { float sum = 0.0F ; for ( int i = 0 ; i < ( lhs.length ) ; i ++ ) { float diff = ( lhs [ i ] ) - ( rhs [ i ] ) ; sum += diff * diff ; } return ( ( float ) ( java.lang.StrictMath.sqrt ( sum ) ) ) ; }
Source:
public boolean execute ( com.android.tools.perflib.heap.Instance inst ) { long id = inst.getId ( ) ; if ( inst instanceof com.android.tools.perflib.heap.ClassInstance ) { mInstances.add ( new com.android.ahat.heapdump.AhatClassInstance ( id ) ) ; } else if ( inst instanceof com.android.tools.perflib.heap.ArrayInstance ) { mInstances.add ( new com.android.ahat.heapdump.AhatArrayInstance ( id ) ) ; } else if ( inst instanceof com.android.tools.perflib.heap.ClassObj ) { com.android.ahat.heapdump.AhatClassObj classObj = new com.android.ahat.heapdump.AhatClassObj ( id ) ; mInstances.add ( classObj ) ; } return true ; }

Target:
public com.android.ahat.heapdump.AhatInstance findInstance ( long id ) { return mInstances.get ( id ) ; }
Source:
public void profileCurrentNode ( ) { final com.android.hierarchyviewerlib.ui.util.DrawableViewNode selectedNode = com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . getSelection ( ) ; if ( selectedNode != null ) { executeInBackground ( "Profile Node" , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.android.hierarchyviewerlib.device.IHvDevice hvDevice = getHvDevice ( selectedNode.viewNode.window.getDevice ( ) ) ; hvDevice.loadProfileData ( selectedNode.viewNode.window , selectedNode.viewNode ) ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . notifySelectionChanged ( ) ; } } ) ; } }

Target:
public void dumpDisplayListForCurrentNode ( ) { final com.android.hierarchyviewerlib.ui.util.DrawableViewNode selectedNode = com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . getSelection ( ) ; if ( selectedNode != null ) { executeInBackground ( "Dump displaylist" , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.android.hierarchyviewerlib.device.IHvDevice hvDevice = getHvDevice ( selectedNode.viewNode.window.getDevice ( ) ) ; hvDevice.outputDisplayList ( selectedNode.viewNode ) ; } } ) ; } }
Source:
private void checkResourceContent ( @ javax.annotation.Nonnull java.util.zip.ZipFile zipFile , @ javax.annotation.Nonnull java.lang.String entryName , @ javax.annotation.Nonnull java.lang.String expectedContent ) throws java.io.IOException { java.util.zip.ZipEntry entry = zipFile.getEntry ( entryName ) ; junit.framework.Assert.assertNotNull ( entry ) ; java.io.BufferedReader reader = null ; try { java.io.InputStream in = zipFile.getInputStream ( entry ) ; reader = new java.io.BufferedReader ( new java.io.InputStreamReader ( in ) ) ; java.lang.String line = reader.readLine ( ) ; junit.framework.Assert.assertEquals ( expectedContent , line ) ; } finally { if ( reader != null ) { reader.close ( ) ; } } }

Target:
private void checkJayceNotEmpty ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVFile jayceFile ) { java.io.File file = new java.io.File ( ( ( com.android.sched.util.location.FileLocation ) ( jayceFile.getLocation ( ) ) ) . getPath ( ) ) ; junit.framework.Assert.assertTrue ( ( ( file.length ( ) ) > 0 ) ) ; }
Source:
public static com.android.jack.dx.rop.cst.CstNat createSignature ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JFieldId field ) { java.lang.String fieldName = field.getName ( ) ; java.lang.String fieldSignature = com.android.jack.backend.dex.rop.RopHelper.formatterWithClosure.getName ( field.getType ( ) , false ) ; if ( fieldSignature.startsWith ( "\\" ) ) { fieldSignature = "L" + ( fieldSignature.substring ( 1 ) ) ; } com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( fieldName ) ; com.android.jack.dx.rop.cst.CstString descriptor = new com.android.jack.dx.rop.cst.CstString ( fieldSignature ) ; com.android.jack.dx.rop.cst.CstNat signature = new com.android.jack.dx.rop.cst.CstNat ( name , descriptor ) ; return signature ; }

Target:
public static com.android.jack.dx.rop.cst.CstNat createSignature ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JFieldId field ) { java.lang.String fieldName = field.getName ( ) ; java.lang.String fieldSignature = com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( field.getType ( ) ) ; com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( fieldName ) ; com.android.jack.dx.rop.cst.CstString descriptor = new com.android.jack.dx.rop.cst.CstString ( fieldSignature ) ; com.android.jack.dx.rop.cst.CstNat signature = new com.android.jack.dx.rop.cst.CstNat ( name , descriptor ) ; return signature ; }
Source:
public com.android.ims.internal.IImsConfig getConfigInterface ( int slotId , int featureType , int sessionId ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.getConfigInterface ( sessionId ) ; } } return null ; }

Target:
public void turnOnIms ( int slotId , int featureType ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { feature.turnOnIms ( ) ; } } }
Source:
public int available ( ) throws java.io.IOException { java.io.FileDescriptor myFd = fd ; if ( myFd == null ) throw new java.io.IOException ( "socket closed" ) ; return available_native ( myFd ) ; }

Target:
public int available ( ) throws java.io.IOException { java.io.FileDescriptor myFd = fd ; if ( myFd == null ) throw new java.io.IOException ( "socket closed" ) ; android.util.MutableInt avail = new android.util.MutableInt ( 0 ) ; try { android.system.Os.ioctlInt ( myFd , OsConstants.FIONREAD , avail ) ; } catch ( android.system.ErrnoException e ) { throw e.rethrowAsIOException ( ) ; } return avail.value ; }
Source:
private void sensorTestHelper ( int sensorType ) throws java.lang.Throwable { android.hardware.cts.helpers.sensorTestOperations.VerifySensorOperation op = new android.hardware.cts.helpers.sensorTestOperations.VerifySensorOperation ( this . getContext ( ) , sensorType , android.hardware.SensorManager.SENSOR_DELAY_FASTEST , 0 , 100 ) ; op.setDefaultVerifications ( ) ; op.execute ( ) ; }

Target:
private void sensorTestHelper ( int sensorType ) throws java.lang.Throwable { android.hardware.cts.helpers.sensoroperations.VerifySensorOperation op = new android.hardware.cts.helpers.sensoroperations.VerifySensorOperation ( this . getContext ( ) , sensorType , android.hardware.SensorManager.SENSOR_DELAY_FASTEST , 0 , 100 ) ; op.setDefaultVerifications ( ) ; op.execute ( ) ; android.hardware.cts.helpers.SensorStats.logStats ( android.hardware.cts.SingleSensorTests.TAG , op.getStats ( ) ) ; }
Source:
public void test_ConstructorLjava_security_cert_CertPathParameters ( ) { try { java.security.cert.CertPathParameters parameters = new tests.api.javax.net.ssl.MyCertPathParameters ( ) ; javax.net.ssl.CertPathTrustManagerParameters p = new javax.net.ssl.CertPathTrustManagerParameters ( parameters ) ; assertNotSame ( "Parameters were cloned incorrectly" , parameters , p.getParameters ( ) ) ; } catch ( java.lang.Exception e ) { fail ( ( "Unexpected exception " + ( e.toString ( ) ) ) ) ; } try { new javax.net.ssl.CertPathTrustManagerParameters ( null ) ; fail ( "Expected CertPathTrustManagerParameters was not thrown" ) ; } catch ( java.lang.NullPointerException npe ) { } }

Target:
public void test_ConstructorLjava_security_cert_CertPathParameters ( ) { try { java.security.cert.CertPathParameters parameters = new org.apache.harmony.tests.javax.net.ssl.MyCertPathParameters ( ) ; javax.net.ssl.CertPathTrustManagerParameters p = new javax.net.ssl.CertPathTrustManagerParameters ( parameters ) ; assertNotSame ( "Parameters were cloned incorrectly" , parameters , p.getParameters ( ) ) ; } catch ( java.lang.Exception e ) { fail ( ( "Unexpected exception " + ( e.toString ( ) ) ) ) ; } try { new javax.net.ssl.CertPathTrustManagerParameters ( null ) ; fail ( "Expected CertPathTrustManagerParameters was not thrown" ) ; } catch ( java.lang.NullPointerException npe ) { } }
Source:
private void initDevices ( ) { final com.android.ide.eclipse.adt.internal.sdk.Sdk sdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( sdk != null ) { mDeviceList = sdk.getDevices ( ) ; com.android.sdklib.devices.DeviceManager manager = sdk.getDeviceManager ( ) ; manager.unregisterListener ( this ) ; manager.registerListener ( this ) ; } else { mDeviceList = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; } }

Target:
private void initDevices ( ) { final com.android.ide.eclipse.adt.internal.sdk.Sdk sdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( sdk != null ) { com.android.sdklib.devices.DeviceManager manager = sdk.getDeviceManager ( ) ; manager.unregisterListener ( this ) ; manager.registerListener ( this ) ; mDeviceList = manager.getDevices ( DeviceManager.ALL_DEVICES ) ; } else { mDeviceList = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; } }
Source:
public static com.google.gct.testing.GoogleCloudTestingConfiguration getConfigurationByHash ( int hashCode , org.jetbrains.android.facet.AndroidFacet facet ) { for ( com.google.gct.testing.GoogleCloudTestingConfiguration configuration : com.google.gct.testing.GoogleCloudTestingConfigurationFactory.getCustomConfigurationsFromStorage ( facet ) ) { if ( ( configuration.getHash ( ) ) == hashCode ) { return configuration ; } } for ( com.google.gct.testing.GoogleCloudTestingConfiguration configuration : com.google.gct.testing.GoogleCloudTestingConfigurationFactory.getDefaultConfigurationsFromStorage ( facet ) ) { if ( ( configuration.getHash ( ) ) == hashCode ) { return configuration ; } } return null ; }

Target:
public static com.google.gct.testing.GoogleCloudTestingConfiguration getConfigurationById ( int id , org.jetbrains.android.facet.AndroidFacet facet ) { for ( com.google.gct.testing.GoogleCloudTestingConfiguration configuration : com.google.gct.testing.GoogleCloudTestingConfigurationFactory.getCustomConfigurationsFromStorage ( facet ) ) { if ( ( configuration.getId ( ) ) == id ) { return configuration ; } } for ( com.google.gct.testing.GoogleCloudTestingConfiguration configuration : com.google.gct.testing.GoogleCloudTestingConfigurationFactory.getDefaultConfigurationsFromStorage ( facet ) ) { if ( ( configuration.getId ( ) ) == id ) { return configuration ; } } return null ; }
Source:
public void onChange ( boolean selfChange ) { super . onChange ( selfChange ) ; synchronized ( mLock ) { if ( ( mUiAutomationService ) == null ) { handleTouchExplorationEnabledSettingChangedLocked ( ) ; updateInputFilterLocked ( ) ; sendStateToClientsLocked ( ) ; } } }

Target:
private void restoreStateFromMementoIfNeeded ( ) { synchronized ( mLock ) { if ( ( mTempStateChangeForCurrentUserMemento.mUserId ) != ( android.os.UserHandle.USER_NULL ) ) { com.android.server.accessibility.AccessibilityManagerService.UserState userState = getCurrentUserStateLocked ( ) ; mTempStateChangeForCurrentUserMemento.applyTo ( userState ) ; mTempStateChangeForCurrentUserMemento.clear ( ) ; performServiceManagementLocked ( userState ) ; updateInputFilterLocked ( userState ) ; scheduleSendStateToClientsLocked ( userState ) ; } } }
Source:
public java.io.File getCompressedResourceFile ( ) { return new java.io.File ( ( ( ( ( ( ( ( getGlobalScope ( ) . getBuildDir ( ) ) + "/" ) + ( com.android.builder.model.AndroidProject.FD_INTERMEDIATES ) ) + "/resources/" ) + "resources-" ) + ( variantOutputData.getBaseName ( ) ) ) + "-stripped.ap_" ) ) ; }

Target:
public java.io.File getCompressedResourceFile ( ) { return new java.io.File ( getGlobalScope ( ) . getIntermediatesDir ( ) , ( ( ( "/res/" + "resources-" ) + ( variantOutputData.getBaseName ( ) ) ) + "-stripped.ap_" ) ) ; }
Source:
public void pauseTimers ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { pauseTimers ( ) ; } } ) ; return ; } mAwContents.pauseTimers ( ) ; }

Target:
public void requestImageRef ( final android.os.Message msg ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { requestImageRef ( msg ) ; } } ) ; return ; } mAwContents.requestImageRef ( msg ) ; }
Source:
public void onSeriesRecordingChanged ( com.android.tv.dvr.SeriesRecording ... seriesRecordings ) { for ( com.android.tv.dvr.SeriesRecording r : seriesRecordings ) { if ( ( ( r.getId ( ) ) == ( mSeriesRecording.getId ( ) ) ) && ( ( getRowsAdapter ( ) ) instanceof com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter ) ) { ( ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter ) ( getRowsAdapter ( ) ) ) . onSeriesRecordingUpdated ( r ) ; return ; } } }

Target:
public void onSeriesRecordingChanged ( com.android.tv.dvr.data.SeriesRecording ... seriesRecordings ) { for ( com.android.tv.dvr.data.SeriesRecording r : seriesRecordings ) { if ( ( ( r.getId ( ) ) == ( mSeriesRecording.getId ( ) ) ) && ( ( getRowsAdapter ( ) ) instanceof com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter ) ) { ( ( com.android.tv.dvr.ui.list.SeriesScheduleRowAdapter ) ( getRowsAdapter ( ) ) ) . onSeriesRecordingUpdated ( r ) ; mSeriesRecording = r ; updateEmptyMessage ( ) ; return ; } } }
Source:
public int hashCode ( ) { return this . getPositivePrefix ( ) . hashCode ( ) ; }

Target:
public java.lang.Object clone ( ) { try { libcore.icu.NativeDecimalFormat clone = ( ( libcore.icu.NativeDecimalFormat ) ( super . clone ( ) ) ) ; clone.address = libcore.icu.NativeDecimalFormat.cloneImpl ( address ) ; clone.lastPattern = lastPattern ; clone.negPrefNull = negPrefNull ; clone.negSuffNull = negSuffNull ; clone.posPrefNull = posPrefNull ; clone.posSuffNull = posSuffNull ; return clone ; } catch ( java.lang.CloneNotSupportedException unexpected ) { throw new java.lang.AssertionError ( unexpected ) ; } }
Source:
public void onLightbringerIconClicked ( int position ) { com.android.dialer.performancereport.PerformanceReport.stopRecording ( ) ; java.lang.String phoneNumber = getPhoneNumber ( position ) ; android.content.Intent intent = com.android.dialer.lightbringer.LightbringerComponent.get ( getContext ( ) ) . getLightbringer ( ) . getIntent ( getContext ( ) , phoneNumber ) ; com.android.dialer.logging.Logger.get ( getContext ( ) ) . logImpression ( DialerImpression.Type.LIGHTBRINGER_VIDEO_REQUESTED_FROM_SEARCH ) ; int dialactsActivityRequestCode = 3 ; getActivity ( ) . startActivityForResult ( intent , dialactsActivityRequestCode ) ; }

Target:
public void onDuoVideoIconClicked ( int position ) { com.android.dialer.performancereport.PerformanceReport.stopRecording ( ) ; java.lang.String phoneNumber = getPhoneNumber ( position ) ; android.content.Intent intent = com.android.dialer.duo.DuoComponent.get ( getContext ( ) ) . getDuo ( ) . getIntent ( getContext ( ) , phoneNumber ) ; com.android.dialer.logging.Logger.get ( getContext ( ) ) . logImpression ( DialerImpression.Type.LIGHTBRINGER_VIDEO_REQUESTED_FROM_SEARCH ) ; int dialactsActivityRequestCode = 3 ; getActivity ( ) . startActivityForResult ( intent , dialactsActivityRequestCode ) ; }
Source:
public com.android.apksig.internal.zip.CentralDirectoryRecord createWithModifiedLocalFileHeaderOffset ( long localFileHeaderOffset ) { java.nio.ByteBuffer result = java.nio.ByteBuffer.allocate ( mData.remaining ( ) ) ; result.put ( mData.slice ( ) ) ; result.flip ( ) ; result.order ( java.nio.ByteOrder.LITTLE_ENDIAN ) ; com.android.apksig.internal.zip.ZipUtils.setUnsignedInt32 ( result , com.android.apksig.internal.zip.CentralDirectoryRecord.LOCAL_FILE_HEADER_OFFSET_OFFSET , localFileHeaderOffset ) ; return new com.android.apksig.internal.zip.CentralDirectoryRecord ( result , mLastModificationTime , mLastModificationDate , mCrc32 , mCompressedSize , mUncompressedSize , localFileHeaderOffset , mName , mNameSizeBytes ) ; }

Target:
public com.android.apksig.internal.zip.CentralDirectoryRecord createWithModifiedLocalFileHeaderOffset ( long localFileHeaderOffset ) { java.nio.ByteBuffer result = java.nio.ByteBuffer.allocate ( mData.remaining ( ) ) ; result.put ( mData.slice ( ) ) ; result.flip ( ) ; result.order ( java.nio.ByteOrder.LITTLE_ENDIAN ) ; com.android.apksig.internal.zip.ZipUtils.setUnsignedInt32 ( result , com.android.apksig.internal.zip.CentralDirectoryRecord.LOCAL_FILE_HEADER_OFFSET_OFFSET , localFileHeaderOffset ) ; return new com.android.apksig.internal.zip.CentralDirectoryRecord ( result , mGpFlags , mCompressionMethod , mLastModificationTime , mLastModificationDate , mCrc32 , mCompressedSize , mUncompressedSize , localFileHeaderOffset , mName , mNameSizeBytes ) ; }
Source:
public void removeTransportModeTransform ( android.os.ParcelFileDescriptor socket , int resourceId ) throws android.os.RemoteException { try { getNetdInstance ( ) . ipSecRemoveTransportModeTransform ( socket.getFileDescriptor ( ) ) ; } catch ( android.os.ServiceSpecificException e ) { } }

Target:
protected synchronized void dump ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.DUMP , com.android.server.IpSecService.TAG ) ; pw.println ( "IpSecService dump:" ) ; pw.println ( ( "NetdNativeService Connection: " + ( isNetdAlive ( ) ? "alive" : "dead" ) ) ) ; pw.println ( ) ; pw.println ( "mTransformRecords:" ) ; pw.println ( mTransformRecords ) ; pw.println ( "mUdpSocketRecords:" ) ; pw.println ( mUdpSocketRecords ) ; pw.println ( "mSpiRecords:" ) ; pw.println ( mSpiRecords ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( "BaseConfigImpl{" + "mManifestPlaceholders=" ) + ( mManifestPlaceholders ) ) + ", mBuildConfigFields=" ) + ( mBuildConfigFields ) ) + ", mResValues=" ) + ( mResValues ) ) + '}' ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( "BaseConfigImpl{" + "mManifestPlaceholders=" ) + ( mManifestPlaceholders ) ) + ", mBuildConfigFields=" ) + ( mBuildConfigFields ) ) + ", mResValues=" ) + ( mResValues ) ) + ", mMultiDex=" ) + ( mMultiDex ) ) + '}' ; }
Source:
public int clearSubInfo ( ) { enforceModifyPhoneState ( "clearSubInfo" ) ; final long identity = android.os.Binder.clearCallingIdentity ( ) ; try { int size = com.android.internal.telephony.SubscriptionController.sSlotIdxToSubId.size ( ) ; if ( size == 0 ) { if ( com.android.internal.telephony.SubscriptionController.DBG ) logdl ( ( "[clearSubInfo]- no simInfo size=" + size ) ) ; return 0 ; } com.android.internal.telephony.SubscriptionController.sSlotIdxToSubId.clear ( ) ; if ( com.android.internal.telephony.SubscriptionController.DBG ) logdl ( ( "[clearSubInfo]- clear size=" + size ) ) ; return size ; } finally { android.os.Binder.restoreCallingIdentity ( identity ) ; } }

Target:
public int clearSubInfo ( ) { enforceModifyPhoneState ( "clearSubInfo" ) ; final long identity = android.os.Binder.clearCallingIdentity ( ) ; try { int size = com.android.internal.telephony.SubscriptionController.sSlotIndexToSubId.size ( ) ; if ( size == 0 ) { if ( com.android.internal.telephony.SubscriptionController.DBG ) logdl ( ( "[clearSubInfo]- no simInfo size=" + size ) ) ; return 0 ; } com.android.internal.telephony.SubscriptionController.sSlotIndexToSubId.clear ( ) ; if ( com.android.internal.telephony.SubscriptionController.DBG ) logdl ( ( "[clearSubInfo]- clear size=" + size ) ) ; return size ; } finally { android.os.Binder.restoreCallingIdentity ( identity ) ; } }