auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gson.JsonElement serialize ( com.android.manifmerger.Actions.ActionLocation src , java.lang.reflect.Type typeOfSrc , com.google.gson.JsonSerializationContext context ) { com.google.gson.JsonObject jsonObject = new com.google.gson.JsonObject ( ) ; jsonObject.add ( com.android.manifmerger.Actions.ActionLocation.ActionLocationAdapter.POSITION_ELEMENT , context.serialize ( src.getSourceLocation ( ) ) ) ; jsonObject.addProperty ( com.android.manifmerger.Actions.ActionLocation.ActionLocationAdapter.LINE_ATTRIBUTE , src.getPosition ( ) . getLine ( ) ) ; jsonObject.addProperty ( com.android.manifmerger.Actions.ActionLocation.ActionLocationAdapter.COLUMN_ATTRIBUTE , src.getPosition ( ) . getColumn ( ) ) ; jsonObject.addProperty ( com.android.manifmerger.Actions.ActionLocation.ActionLocationAdapter.OFFSET_ATTRIBUTE , src.getPosition ( ) . getOffset ( ) ) ; return jsonObject ; }

Target:
private static org.w3c.dom.Element getNextSiblingElement ( org.w3c.dom.Element element ) { org.w3c.dom.Node sibling = element.getNextSibling ( ) ; while ( ( sibling != null ) && ( ( sibling.getNodeType ( ) ) != ( org.w3c.dom.Node.ELEMENT_NODE ) ) ) { sibling = sibling.getNextSibling ( ) ; } return ( ( org.w3c.dom.Element ) ( sibling ) ) ; }
Source:
public void saveWebArchive ( final java.lang.String basename , final boolean autoname , final android.webkit.ValueCallback < java.lang.String > callback ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { saveWebArchive ( basename , autoname , callback ) ; } } ) ; return ; } mAwContents.saveWebArchive ( basename , autoname , callback ) ; }

Target:
public void onSizeChanged ( final int w , final int h , final int ow , final int oh ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onSizeChanged ( w , h , ow , oh ) ; } } ) ; return ; } mAwContents.onSizeChanged ( w , h , ow , oh ) ; }
Source:
protected void writeToParcel ( android.os.Parcel dest , int flags , int type ) { dest.writeInt ( type ) ; dest.writeInt ( ( mRegistered ? 1 : 0 ) ) ; dest.writeInt ( mTimeStampType ) ; dest.writeLong ( mTimeStamp ) ; }

Target:
protected void writeToParcel ( android.os.Parcel dest , int flags , int type ) { dest.writeInt ( type ) ; dest.writeInt ( ( mRegistered ? 1 : 0 ) ) ; dest.writeInt ( mTimeStampType ) ; dest.writeLong ( mTimeStamp ) ; dest.writeInt ( mCellConnectionStatus ) ; }
Source:
public void generatePushValue ( final org.jetbrains.asm4.commons.GeneratorAdapter generator , final java.lang.Object value ) { final java.awt.Insets insets = ( ( java.awt.Insets ) ( value ) ) ; generator.newInstance ( myInsetsType ) ; generator.dup ( ) ; generator.push ( insets.top ) ; generator.push ( insets.left ) ; generator.push ( insets.bottom ) ; generator.push ( insets.right ) ; generator.invokeConstructor ( myInsetsType , org.jetbrains.asm4.commons.Method.getMethod ( "void <init>(int,int,int,int)" ) ) ; }

Target:
public void generatePushValue ( final org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter generator , final java.lang.Object value ) { final java.awt.Insets insets = ( ( java.awt.Insets ) ( value ) ) ; generator.newInstance ( myInsetsType ) ; generator.dup ( ) ; generator.push ( insets.top ) ; generator.push ( insets.left ) ; generator.push ( insets.bottom ) ; generator.push ( insets.right ) ; generator.invokeConstructor ( myInsetsType , org.jetbrains.org.objectweb.asm.commons.Method.getMethod ( "void <init>(int,int,int,int)" ) ) ; }
Source:
void onResume ( ) { actions = com.android.dialer.precall.PreCallComponent.get ( activity ) . getPreCall ( ) . getActions ( ) ; runNextAction ( ) ; }

Target:
void onCreate ( android.content.Intent intent , @ android.support.annotation.Nullable android.os.Bundle savedInstanceState ) { com.android.dialer.common.LogUtil.enterBlock ( "PreCallCoordinatorImpl.onCreate" ) ; if ( savedInstanceState != null ) { currentActionIndex = savedInstanceState.getInt ( com.android.dialer.precall.impl.PreCallCoordinatorImpl.SAVED_STATE_CURRENT_ACTION ) ; builder = com.android.dialer.common.Assert.isNotNull ( savedInstanceState.getParcelable ( com.android.dialer.precall.impl.EXTRA_CALL_INTENT_BUILDER ) ) ; } else { builder = com.android.dialer.common.Assert.isNotNull ( intent.getParcelableExtra ( com.android.dialer.precall.impl.EXTRA_CALL_INTENT_BUILDER ) ) ; } actions = com.android.dialer.precall.PreCallComponent.get ( activity ) . getPreCall ( ) . getActions ( ) ; }
Source:
public void compareFrameworksStructure ( ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.BOOTCLASSPATH , com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.CLASSPATH , com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.SOURCELIST , false , true , 0.32F ) ; }

Target:
public void compileFrameworks ( ) throws java.lang.Exception { java.io.File outDexFolder = com.android.jack.TestTools.createTempDir ( "frameworks" , "dex" ) ; java.lang.String classpathString = com.android.jack.TestTools.getClasspathsAsString ( com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.BOOTCLASSPATH , com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.CLASSPATH ) ; com.android.jack.Options options = new com.android.jack.Options ( ) ; options.addProperty ( DexFileWriter.DEX_WRITING_POLICY.getName ( ) , "multidex" ) ; options.addProperty ( Options.JAVA_SOURCE_VERSION.getName ( ) , JavaVersion.JAVA_7.toString ( ) ) ; com.android.jack.TestTools.compileSourceToDex ( options , com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.SOURCELIST , classpathString , outDexFolder , false ) ; }
Source:
void playDtmfTone ( char digit ) { if ( ( mConnectionService ) == null ) { com.android.server.telecom.Log.w ( this , "playDtmfTone() request on a call without a connection service." ) ; } else { com.android.server.telecom.Log.i ( this , "Send playDtmfTone to connection service for call %s" , this ) ; mConnectionService.playDtmfTone ( this , digit ) ; com.android.server.telecom.Log.event ( this , Log.Events.START_DTMF , com.android.server.telecom.Log.pii ( digit ) ) ; } }

Target:
void silence ( ) { if ( ( mConnectionService ) == null ) { android.telecom.Log.w ( this , "silence() request on a call without a connection service." ) ; } else { android.telecom.Log.i ( this , "Send silence to connection service for call %s" , this ) ; android.telecom.Log.addEvent ( this , LogUtils.Events.SILENCE ) ; mConnectionService.silence ( this ) ; } }
Source:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( "getDevicesMatchingConnectionStates(): states=" + ( java.util.Arrays.toString ( states ) ) ) ) ; return null ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( "getDevicesMatchingConnectionStates(): states=" + ( java.util.Arrays.toString ( states ) ) ) ) ; if ( ( mService ) != null ) { try { return mService.getDevicesMatchingConnectionStates ( states ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; }
Source:
protected void tearDown ( ) { if ( ( ( mWakeLock ) != null ) && ( mWakeLock.isHeld ( ) ) ) { mWakeLock.release ( ) ; } }

Target:
protected void tearDown ( ) { if ( ( mSensorManager ) != null ) { mSensorManager.unregisterListener ( mNullSensorEventListener ) ; if ( ( mTriggerSensor ) != null ) { mSensorManager.cancelTriggerSensor ( mNullTriggerEventListener , mTriggerSensor ) ; mTriggerSensor = null ; } } if ( ( mTestSensorManager ) != null ) { mTestSensorManager.unregisterListener ( ) ; mTestSensorManager = null ; } if ( ( ( mWakeLock ) != null ) && ( mWakeLock.isHeld ( ) ) ) { mWakeLock.release ( ) ; } }
Source:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { if ( insertType == ( com.android.ide.common.api.InsertType.CREATE ) ) { java.lang.String fqcn = mRulesEngine.displayFragmentSourceInput ( ) ; if ( fqcn != null ) { node.editXml ( "Add Fragment" , new com.android.ide.common.layout.PropertySettingNodeHandler ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_NAME , ( ( fqcn.length ( ) ) > 0 ? fqcn : null ) ) ) ; } else { parent.removeChild ( node ) ; } } }

Target:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { if ( insertType == ( com.android.ide.common.api.InsertType.CREATE ) ) { java.lang.String fqcn = mRulesEngine.displayFragmentSourceInput ( ) ; if ( fqcn != null ) { node.editXml ( "Add Fragment" , new com.android.ide.common.layout.PropertySettingNodeHandler ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_NAME , ( ( fqcn.length ( ) ) > 0 ? fqcn : null ) ) ) ; } else { parent.removeChild ( node ) ; } } }
Source:
public void run ( ) { try { java.lang.System.err.println ( "sleep..." ) ; java.lang.Thread.sleep ( 2000 ) ; java.lang.System.err.println ( "close..." ) ; s.getClass ( ) . getMethod ( "close" ) . invoke ( s ) ; } catch ( java.lang.Exception ex ) { ex.printStackTrace ( ) ; } }

Target:
public void run ( ) { try { java.lang.System.err.println ( "sleep..." ) ; java.lang.Thread.sleep ( 2000 ) ; java.lang.System.err.println ( ( ( "close " + ( s ) ) + "..." ) ) ; s.getClass ( ) . getMethod ( "close" ) . invoke ( s ) ; } catch ( java.lang.Exception ex ) { ex.printStackTrace ( ) ; } }
Source:
int getByteLength ( ) { int length = ( ( 3 + ( mType.length ) ) + ( mId.length ) ) + ( mPayload.length ) ; boolean sr = ( mPayload.length ) < 256 ; boolean il = ( mId.length ) > 0 ; if ( ! sr ) length += 3 ; if ( il ) length += 1 ; return length ; }

Target:
int getByteLength ( ) { int length = ( ( 3 + ( mType.length ) ) + ( mId.length ) ) + ( mPayload.length ) ; boolean sr = ( mPayload.length ) < 256 ; boolean il = ( ( mTnf ) == ( android.nfc.NdefRecord.TNF_EMPTY ) ) ? true : ( mId.length ) > 0 ; if ( ! sr ) length += 3 ; if ( il ) length += 1 ; return length ; }
Source:
public int getVersionCode ( ) { return versionCode ; }

Target:
public java.util.Collection < com.android.build.FilterData > getFilters ( ) { com.google.common.collect.ImmutableList.Builder < com.android.build.FilterData > filters = com.google.common.collect.ImmutableList.builder ( ) ; if ( ( densityFilter ) != null ) { filters.add ( FilterData.Builder.build ( OutputFile.DENSITY , densityFilter ) ) ; } if ( ( abiFilter ) != null ) { filters.add ( FilterData.Builder.build ( OutputFile.ABI , abiFilter ) ) ; } return filters.build ( ) ; }
Source:
public void testListIterator2_IndexOutOfBoundsException ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.add ( "adasd" ) ; c.add ( "asdasdas" ) ; c.listIterator ( 100 ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testListIterator1_IndexOutOfBoundsException ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.listIterator ( ( - 1 ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
synchronized void nScriptInvokeV ( long id , int slot , byte [ ] params ) { validate ( ) ; rsnScriptInvokeV ( mContext , id , slot , params ) ; }

Target:
synchronized void nScriptInvokeV ( long id , int slot , byte [ ] params , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptInvokeV ( curCon , id , slot , params , mUseInc ) ; }
Source:
public void loadDataWithBaseURL ( java.lang.String baseUrl , java.lang.String data , java.lang.String mimeType , java.lang.String encoding , java.lang.String historyUrl ) { checkThread ( ) ; if ( DebugFlags.TRACE_API ) android.util.Log.d ( android.webkit.WebView.LOGTAG , ( "loadDataWithBaseURL=" + baseUrl ) ) ; mProvider.loadDataWithBaseURL ( baseUrl , data , mimeType , encoding , historyUrl ) ; }

Target:
public void loadDataWithBaseURL ( java.lang.String baseUrl , java.lang.String data , java.lang.String mimeType , java.lang.String encoding , java.lang.String historyUrl ) { checkThread ( ) ; if ( android.webkit.WebView.TRACE ) android.util.Log.d ( android.webkit.WebView.LOGTAG , ( "loadDataWithBaseURL=" + baseUrl ) ) ; mProvider.loadDataWithBaseURL ( baseUrl , data , mimeType , encoding , historyUrl ) ; }
Source:
public void setCompoundDrawablesWithIntrinsicBounds ( int left , int top , int right , int bottom ) { final android.content.res.Resources resources = getContext ( ) . getResources ( ) ; setCompoundDrawablesWithIntrinsicBounds ( ( left != 0 ? resources.getDrawable ( left ) : null ) , ( top != 0 ? resources.getDrawable ( top ) : null ) , ( right != 0 ? resources.getDrawable ( right ) : null ) , ( bottom != 0 ? resources.getDrawable ( bottom ) : null ) ) ; }

Target:
public void setCompoundDrawablesWithIntrinsicBounds ( int left , int top , int right , int bottom ) { final android.content.Context context = getContext ( ) ; setCompoundDrawablesWithIntrinsicBounds ( ( left != 0 ? context.getDrawable ( left ) : null ) , ( top != 0 ? context.getDrawable ( top ) : null ) , ( right != 0 ? context.getDrawable ( right ) : null ) , ( bottom != 0 ? context.getDrawable ( bottom ) : null ) ) ; }
Source:
public int dexOptSecondaryDexPath ( android.content.pm.ApplicationInfo info , java.lang.String path , java.util.Set < java.lang.String > isas , java.lang.String compilerFilter , boolean isUsedByOtherApps ) { synchronized ( mInstallLock ) { final boolean useLock = mSystemReady ; if ( useLock ) { mDexoptWakeLock.setWorkSource ( new android.os.WorkSource ( info.uid ) ) ; mDexoptWakeLock.acquire ( ) ; } try { return dexOptSecondaryDexPathLI ( info , path , isas , compilerFilter , isUsedByOtherApps ) ; } finally { if ( useLock ) { mDexoptWakeLock.release ( ) ; } } } }

Target:
public int dexOptSecondaryDexPath ( android.content.pm.ApplicationInfo info , java.lang.String path , java.util.Set < java.lang.String > isas , java.lang.String compilerFilter , boolean isUsedByOtherApps , boolean downgrade ) { synchronized ( mInstallLock ) { final long acquireTime = acquireWakeLockLI ( info.uid ) ; try { return dexOptSecondaryDexPathLI ( info , path , isas , compilerFilter , isUsedByOtherApps , downgrade ) ; } finally { releaseWakeLockLI ( acquireTime ) ; } } }
Source:
private static android.net.wifi.hotspot2.pps.Credential createCredential ( ) { android.net.wifi.hotspot2.pps.Credential cred = new android.net.wifi.hotspot2.pps.Credential ( ) ; cred.realm = "realm" ; cred.userCredential = null ; cred.certCredential = null ; cred.simCredential = null ; cred.caCertificate = null ; cred.clientCertificateChain = null ; cred.clientPrivateKey = null ; return cred ; }

Target:
private static android.net.wifi.hotspot2.pps.Credential createCredential ( ) { android.net.wifi.hotspot2.pps.Credential cred = new android.net.wifi.hotspot2.pps.Credential ( ) ; cred.realm = "realm" ; cred.userCredential = null ; cred.certCredential = null ; cred.simCredential = new android.net.wifi.hotspot2.pps.Credential.SimCredential ( ) ; cred.simCredential.imsi = "1234*" ; cred.simCredential.eapType = android.net.wifi.EAPConstants.EAP_SIM ; cred.caCertificate = null ; cred.clientCertificateChain = null ; cred.clientPrivateKey = null ; return cred ; }
Source:
public static synchronized java.nio.charset.CoderResult unmappableForLength ( int length ) throws java.lang.IllegalArgumentException { if ( length > 0 ) { java.lang.Integer key = java.lang.Integer.valueOf ( length ) ; synchronized ( java.nio.charset.CoderResult._unmappableErrors ) { java.nio.charset.CoderResult r = java.nio.charset.CoderResult._unmappableErrors.get ( key ) ; if ( r == null ) { r = new java.nio.charset.CoderResult ( java.nio.charset.CoderResult.TYPE_UNMAPPABLE_CHAR , length ) ; java.nio.charset.CoderResult._unmappableErrors.put ( key , r ) ; } return r ; } } throw new java.lang.IllegalArgumentException ( ( "Length must be greater than 0; was " + length ) ) ; }

Target:
public static synchronized java.nio.charset.CoderResult unmappableForLength ( int length ) throws java.lang.IllegalArgumentException { if ( length > 0 ) { java.lang.Integer key = java.lang.Integer.valueOf ( length ) ; synchronized ( java.nio.charset.CoderResult._unmappableErrors ) { java.nio.charset.CoderResult r = java.nio.charset.CoderResult._unmappableErrors.get ( key ) ; if ( r == null ) { r = new java.nio.charset.CoderResult ( java.nio.charset.CoderResult.TYPE_UNMAPPABLE_CHAR , length ) ; java.nio.charset.CoderResult._unmappableErrors.put ( key , r ) ; } return r ; } } throw new java.lang.IllegalArgumentException ( ( "length <= 0: " + length ) ) ; }
Source:
public void onClose ( ) { if ( ( mCallback ) != null ) { android.os.Message msg = android.os.Message.obtain ( mCallback ) ; msg.what = BluetoothPbapService.MSG_SERVERSESSION_CLOSE ; msg.sendToTarget ( ) ; if ( com.android.bluetooth.pbap.BluetoothPbapObexServer.D ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapObexServer.TAG , "onClose(): msg MSG_SERVERSESSION_CLOSE sent out." ) ; } } }

Target:
public void onClose ( ) { mStateMachine.sendMessage ( PbapStateMachine.DISCONNECT ) ; }
Source:
private void handleTHCR ( com.android.ddmlib.Client client , java.nio.ByteBuffer data ) { int threadId ; int nameLen ; java.lang.String name ; threadId = data.getInt ( ) ; nameLen = data.getInt ( ) ; name = getString ( data , nameLen ) ; com.android.ddmlib.Log.v ( "ddm-thread" , ( ( ( ( "THCR: " + threadId ) + " '" ) + name ) + "'" ) ) ; client.getClientData ( ) . addThread ( threadId , name ) ; client.update ( Client.CHANGE_THREAD_DATA ) ; }

Target:
private void handleTHCR ( com.android.ddmlib.Client client , java.nio.ByteBuffer data ) { int threadId ; int nameLen ; java.lang.String name ; threadId = data.getInt ( ) ; nameLen = data.getInt ( ) ; name = com.android.ddmlib.ByteBufferUtil.getString ( data , nameLen ) ; com.android.ddmlib.Log.v ( "ddm-thread" , ( ( ( ( "THCR: " + threadId ) + " '" ) + name ) + "'" ) ) ; client.getClientData ( ) . addThread ( threadId , name ) ; client.update ( Client.CHANGE_THREAD_DATA ) ; }
Source:
private static void testUnloadClass ( java.lang.reflect.Constructor < ? > constructor ) throws java.lang.Exception { java.lang.ref.WeakReference < java.lang.Class > klass = Main.setUpUnloadClassWeak ( constructor ) ; java.lang.Runtime.getRuntime ( ) . gc ( ) ; java.lang.ref.WeakReference < java.lang.Class > klass2 = Main.setUpUnloadClassWeak ( constructor ) ; java.lang.Runtime.getRuntime ( ) . gc ( ) ; java.lang.System.out.println ( klass.get ( ) ) ; java.lang.System.out.println ( klass2.get ( ) ) ; }

Target:
private static void doUnloading ( ) { for ( int i = 0 ; i < 5 ; ++ i ) { java.lang.Runtime.getRuntime ( ) . gc ( ) ; } }
Source:
private int getUnknownSourcesSettings ( ) { return android.provider.Settings.Global.getInt ( mContext.getContentResolver ( ) , android.provider.Settings.Global.INSTALL_NON_MARKET_APPS , ( - 1 ) ) ; }

Target:
private java.lang.String getActiveLauncherPackageName ( int userId ) { android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_MAIN ) ; intent.addCategory ( Intent.CATEGORY_HOME ) ; android.content.pm.ResolveInfo resolveInfo = resolveIntent ( intent , intent.resolveTypeIfNeeded ( mContext.getContentResolver ( ) ) , PackageManager.MATCH_DEFAULT_ONLY , userId ) ; return resolveInfo == null ? null : resolveInfo.activityInfo.packageName ; }
Source:
public void writeOnImsCallTerminated ( int phoneId , com.android.ims.internal.ImsCallSession session , com.android.ims.ImsReasonInfo reasonInfo ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_CALL_TERMINATED ) . setCallIndex ( getCallId ( session ) ) . setImsReasonInfo ( toImsReasonInfoProto ( reasonInfo ) ) ) ; } }

Target:
public void writeOnImsCallReceive ( int phoneId , android.telephony.ims.ImsCallSession session ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = startNewCallSessionIfNeeded ( phoneId ) ; callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_CALL_RECEIVE ) . setCallIndex ( getCallId ( session ) ) ) ; }
Source:
private void fillBinaries ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVDir vDir , @ javax.annotation.Nonnull com.android.jack.library.BinaryKind binaryKind , @ javax.annotation.Nonnull java.util.List < com.android.sched.vfs.InputVFile > binaries ) { for ( com.android.sched.vfs.InputVElement subFile : vDir.list ( ) ) { if ( subFile.isVDir ( ) ) { fillBinaries ( ( ( com.android.sched.vfs.InputVDir ) ( subFile ) ) , binaryKind , binaries ) ; } else { com.android.sched.vfs.InputVFile vFile = ( ( com.android.sched.vfs.InputVFile ) ( subFile ) ) ; if ( binaryKind.isBinaryFile ( vFile ) ) { binaries.add ( vFile ) ; } } } }

Target:
private void fillFiles ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVDir vDir , @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull java.util.List < com.android.sched.vfs.InputVFile > binaries ) { for ( com.android.sched.vfs.InputVElement subFile : vDir.list ( ) ) { if ( subFile.isVDir ( ) ) { fillFiles ( ( ( com.android.sched.vfs.InputVDir ) ( subFile ) ) , fileType , binaries ) ; } else { com.android.sched.vfs.InputVFile vFile = ( ( com.android.sched.vfs.InputVFile ) ( subFile ) ) ; if ( fileType.isOfType ( vFile ) ) { binaries.add ( vFile ) ; } } } }
Source:
public java.lang.String getDisplayLanguage ( java.util.Locale locale ) { if ( languageCode.isEmpty ( ) ) { return "" ; } try { java.util.Locale.Builder.normalizeAndValidateLanguage ( languageCode ) ; } catch ( java.util.IllformedLocaleException ex ) { return languageCode ; } java.lang.String result = libcore.icu.ICU.getDisplayLanguage ( this , locale ) ; if ( result == null ) { result = libcore.icu.ICU.getDisplayLanguage ( this , java.util.Locale.getDefault ( ) ) ; } return result ; }

Target:
public java.lang.String getDisplayLanguage ( java.util.Locale locale ) { if ( languageCode.isEmpty ( ) ) { return "" ; } final java.lang.String normalizedLanguage = java.util.Locale.Builder.normalizeAndValidateLanguage ( languageCode , false ) ; if ( java.util.Locale.UNDETERMINED_LANGUAGE.equals ( normalizedLanguage ) ) { return languageCode ; } java.lang.String result = libcore.icu.ICU.getDisplayLanguage ( this , locale ) ; if ( result == null ) { result = libcore.icu.ICU.getDisplayLanguage ( this , java.util.Locale.getDefault ( ) ) ; } return result ; }
Source:
protected void invoke ( int slot , android.support.v8.renderscript.FieldPacker v ) { if ( v != null ) { mRS.nScriptInvokeV ( getID ( mRS ) , slot , v.getData ( ) ) ; } else { mRS.nScriptInvoke ( getID ( mRS ) , slot ) ; } }

Target:
protected android.support.v8.renderscript.Script.InvokeID createInvokeID ( int slot ) { android.support.v8.renderscript.Script.InvokeID i = mIIDs.get ( slot ) ; if ( i != null ) { return i ; } long id = mRS.nScriptInvokeIDCreate ( getID ( mRS ) , slot ) ; if ( id == 0 ) { throw new android.support.v8.renderscript.RSDriverException ( "Failed to create KernelID" ) ; } i = new android.support.v8.renderscript.Script.InvokeID ( id , mRS , this , slot ) ; mIIDs.put ( slot , i ) ; return i ; }
Source:
public void dispose ( ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( "dispose" ) ; mRingingCall.dispose ( ) ; mBackgroundCall.dispose ( ) ; mForegroundCall.dispose ( ) ; mHandoverCall.dispose ( ) ; clearDisconnected ( ) ; mPhone.getContext ( ) . unregisterReceiver ( mReceiver ) ; mPhone.unregisterForDataEnabledChanged ( this ) ; removeMessages ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.EVENT_GET_IMS_SERVICE ) ; }

Target:
public void dispose ( ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( "dispose" ) ; mRingingCall.dispose ( ) ; mBackgroundCall.dispose ( ) ; mForegroundCall.dispose ( ) ; mHandoverCall.dispose ( ) ; clearDisconnected ( ) ; mPhone.getContext ( ) . unregisterReceiver ( mReceiver ) ; mPhone.getDefaultPhone ( ) . unregisterForDataEnabledChanged ( this ) ; removeMessages ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.EVENT_GET_IMS_SERVICE ) ; }
Source:
public boolean lock ( ) { execute ( 'l' ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; }

Target:
public boolean unlock ( java.lang.String password ) { try { mError = mBinder.unlock ( password ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
public void testWrongTypeContentXml ( ) throws java.lang.Exception { java.lang.String document = ( ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.SdkRepositoryTest.OPEN_TAG ) ) + "<r:platform> <r:api-level>NotAnInteger</r:api-level> <r:libs /> </r:platform>" ) + ( com.android.sdklib.repository.SdkRepositoryTest.CLOSE_TAG ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; javax.xml.validation.Validator validator = getValidator ( SdkRepoConstants.NS_LATEST_VERSION , null ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "cvc-datatype-valid.1.2.1: 'NotAnInteger' is not a valid value.*" , e.getMessage ( ) ) ; return ; } fail ( ) ; }

Target:
public void testEmptyRootXml ( ) throws java.lang.Exception { java.lang.String document = ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.SdkRepositoryTest.OPEN_TAG ) ) + ( com.android.sdklib.repository.SdkRepositoryTest.CLOSE_TAG ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler handler = new com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler ( ) ; javax.xml.validation.Validator validator = getRepoValidator ( SdkRepoConstants.NS_LATEST_VERSION , handler ) ; validator.validate ( source ) ; handler.verify ( ) ; }
Source:
public void getCdmaSubscriptionSource ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( RILConstants.RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getIMEISV ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_IMEISV , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
private static java.lang.String abbreviate ( java.util.concurrent.TimeUnit unit ) { switch ( unit ) { case NANOSECONDS : return "ns" ; case MICROSECONDS : return "μs" ; case MILLISECONDS : return "ms" ; case SECONDS : return "s" ; default : throw new java.lang.AssertionError ( ) ; } }

Target:
private static java.lang.String abbreviate ( java.util.concurrent.TimeUnit unit ) { switch ( unit ) { case NANOSECONDS : return "ns" ; case MICROSECONDS : return "μs" ; case MILLISECONDS : return "ms" ; case SECONDS : return "s" ; case MINUTES : return "min" ; case HOURS : return "h" ; case DAYS : return "d" ; default : throw new java.lang.AssertionError ( ) ; } }
Source:
public void addChannel_exceedMaxChannels ( ) { mChannelCollection.addChannel ( 5600 ) ; mChannelCollection.addChannel ( 5650 ) ; mChannelCollection.addChannel ( 5660 ) ; com.android.server.wifi.WifiNative.BucketSettings bucketSettings = new com.android.server.wifi.WifiNative.BucketSettings ( ) ; mChannelCollection.fillBucketSettings ( bucketSettings , 2 ) ; org.hamcrest.MatcherAssert.assertThat ( bucketSettings , com.android.server.wifi.ScanTestUtil.bandIs ( WifiScanner.WIFI_BAND_5_GHZ_DFS_ONLY ) ) ; }

Target:
public void addChannel_exceedMaxChannels ( ) { mChannelCollection.addChannel ( 5600 ) ; mChannelCollection.addChannel ( 5650 ) ; mChannelCollection.addChannel ( 5660 ) ; com.android.server.wifi.WifiNative.BucketSettings bucketSettings = new com.android.server.wifi.WifiNative.BucketSettings ( ) ; mChannelCollection.fillBucketSettings ( bucketSettings , 2 ) ; org.hamcrest.MatcherAssert.assertThat ( bucketSettings , com.android.server.wifi.ScanTestUtil.bandIs ( WifiScanner.WIFI_BAND_5_GHZ_DFS_ONLY ) ) ; org.junit.Assert.assertFalse ( mChannelCollection.isAllChannels ( ) ) ; }
Source:
public void updateAvd ( java.lang.String name , com.android.sdklib.ISdkLog log ) throws java.io.IOException { com.android.sdklib.internal.avd.AvdInfo avd = null ; synchronized ( mAllAvdList ) { for ( com.android.sdklib.internal.avd.AvdInfo info : mAllAvdList ) { if ( info.getName ( ) . equals ( name ) ) { avd = info ; break ; } } } if ( avd == null ) { log.error ( null , "There is no Android Virtual Device named '%s'." , name ) ; return ; } updateAvd ( avd , log ) ; }

Target:
public void updateAvd ( java.lang.String name , com.android.utils.ILogger log ) throws java.io.IOException { com.android.sdklib.internal.avd.AvdInfo avd = null ; synchronized ( mAllAvdList ) { for ( com.android.sdklib.internal.avd.AvdInfo info : mAllAvdList ) { if ( info.getName ( ) . equals ( name ) ) { avd = info ; break ; } } } if ( avd == null ) { log.error ( null , "There is no Android Virtual Device named '%s'." , name ) ; return ; } updateAvd ( avd , log ) ; }
Source:
private float [ ] createInputArrayFloat ( int len , int seed ) { java.util.Random rand = new java.util.Random ( seed ) ; float [ ] array = new float [ len ] ; for ( int i = 0 ; i < len ; ++ i ) array [ i ] = rand.nextFloat ( ) ; return array ; }

Target:
private float [ ] createInputArrayFloat ( int len , java.util.Random rand ) { float [ ] array = new float [ len ] ; for ( int i = 0 ; i < len ; ++ i ) { final float val = rand.nextFloat ( ) ; array [ i ] = ( rand.nextBoolean ( ) ) ? val : - val ; } return array ; }
Source:
public java.lang.Object clone ( ) { try { @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.concurrent.CopyOnWriteArrayList < E > clone = ( ( java.util.concurrent.CopyOnWriteArrayList < E > ) ( super . clone ( ) ) ) ; clone.resetLock ( ) ; return clone ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( ) ; } }

Target:
public java.lang.Object clone ( ) { try { java.util.concurrent.CopyOnWriteArrayList result = ( ( java.util.concurrent.CopyOnWriteArrayList ) ( super . clone ( ) ) ) ; result.elements = result.elements.clone ( ) ; return result ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.AssertionError ( e ) ; } }
Source:
public static void setAdb ( java.lang.String adb , boolean startAdb ) { if ( adb != null ) { if ( com.android.ide.eclipse.ddms.DdmsPlugin.setAdbLocation ( adb ) ) { if ( startAdb ) { new java.lang.Thread ( ) { @ java.lang.Override public void run ( ) { com.android.ddmlib.AndroidDebugBridge.createBridge ( com.android.ide.eclipse.ddms.DdmsPlugin.sAdbLocation , false ) ; } } . start ( ) ; } } } }

Target:
public static void setToolsLocation ( java.lang.String adbLocation , boolean startAdb , java.lang.String hprofConvLocation , java.lang.String traceViewLocation ) { if ( com.android.ide.eclipse.ddms.DdmsPlugin.setToolsLocation ( adbLocation , hprofConvLocation , traceViewLocation ) ) { if ( startAdb ) { new java.lang.Thread ( ) { @ java.lang.Override public void run ( ) { com.android.ddmlib.AndroidDebugBridge.createBridge ( com.android.ide.eclipse.ddms.DdmsPlugin.sAdbLocation , false ) ; } } . start ( ) ; } } }
Source:
public void setPictureListener ( final android.webkit.WebView.PictureListener listener ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setPictureListener ( listener ) ; } } ) ; return ; } mContentsClientAdapter.setPictureListener ( listener ) ; mAwContents.enableOnNewPicture ( ( listener != null ) , ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.JELLY_BEAN_MR2 ) ) ) ; }

Target:
public void findNext ( final boolean forwards ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { findNext ( forwards ) ; } } ) ; return ; } mAwContents.findNext ( forwards ) ; }
Source:
public boolean onError ( android.media.MediaPlayer mp , int what , int extra ) { assertTrue ( ( mp == mediaPlayer ) ) ; assertTrue ( "mediaserver process died" , ( what != ( android.media.MediaPlayer.MEDIA_ERROR_SERVER_DIED ) ) ) ; android.util.Log.w ( android.security.cts.MediaServerCrashTest.TAG , ( "onError " + what ) ) ; return false ; }

Target:
public boolean onError ( android.media.MediaPlayer mp , int what , int extra ) { assertTrue ( ( mp == ( mMediaPlayer ) ) ) ; assertTrue ( "mediaserver process died" , ( what != ( android.media.MediaPlayer.MEDIA_ERROR_SERVER_DIED ) ) ) ; android.util.Log.w ( android.security.cts.MediaServerCrashTest.TAG , ( "onError " + what ) ) ; return false ; }
Source:
public void cancel ( ) { com.android.tradefed.log.LogUtil.CLog.i ( "Attempt to interrupt execution thread." ) ; synchronized ( mLock ) { if ( ! ( mCancelled ) ) { mCancelled = true ; if ( ( mExecutionThread ) != null ) { mExecutionThread.interrupt ( ) ; } else { com.android.tradefed.log.LogUtil.CLog.i ( "Execution thread has not started." ) ; } } else { com.android.tradefed.log.LogUtil.CLog.i ( "Execution thread has been cancelled." ) ; } } }

Target:
public void cancel ( ) { com.android.tradefed.log.LogUtil.CLog.w ( "Attempt to interrupt execution thread." ) ; synchronized ( mLock ) { if ( ! ( mCancelled ) ) { mCancelled = true ; if ( ( mExecutionThread ) != null ) { mExecutionThread.interrupt ( ) ; } else { com.android.tradefed.log.LogUtil.CLog.d ( "Execution thread has not started." ) ; } } else { com.android.tradefed.log.LogUtil.CLog.e ( "Execution thread has been cancelled." ) ; } } }
Source:
public static void computeFract ( android.renderscript.cts.TestFract.ArgumentsFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 12 ; float floor = ( ( float ) ( java.lang.StrictMath.floor ( args.inV ) ) ) ; args.out = ( ( float ) ( java.lang.StrictMath.min ( ( ( args.inV ) - floor ) , 0.99999994F ) ) ) ; }

Target:
public static void computeAsin ( android.renderscript.cts.TestAsin.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.asin ( args.inV ) , 4 , 128 ) ; }
Source:
public void testQuickFix_parameterWithNoNamedAnnotation ( ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; com.intellij.psi.PsiParameter parameter = com.intellij.psi.JavaPsiFacade.getInstance ( myProject ) . getElementFactory ( ) . createParameter ( "someParam" , PsiType.INT ) ; com.google.gct.intellij.endpoints.validation.ApiParameterInspection.MyQuickFix myQuickFix = new com.google.gct.intellij.endpoints.validation.ApiParameterInspection ( ) . new com.google.gct.intellij.endpoints.validation.MyQuickFix ( ) ; com.intellij.codeInspection.ex.ProblemDescriptorImpl problemDescriptorMock = org.mockito.Mockito.mock ( com.intellij.codeInspection.ex.ProblemDescriptorImpl.class ) ; org.mockito.Mockito.when ( problemDescriptorMock.getPsiElement ( ) ) . thenReturn ( parameter ) ; myQuickFix.applyFix ( myProject , problemDescriptorMock ) ; junit.framework.Assert.assertEquals ( "@Named(\"someParam\")int someParam" , parameter.getText ( ) ) ; }

Target:
public void testQuickFix_parameterWithNoNamedAnnotation ( ) { runQuickFixTest ( "int someParam" , "@Named(\"someParam\")int someParam" ) ; }
Source:
public boolean canHandle ( java.lang.String path , java.lang.String mimeType ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) && ( ( null == mimeType ) || ( mimeType.equals ( "" ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Path or the mimetype should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _canHandle ( mUniqueId , path , mimeType ) ; }

Target:
public int getDrmObjectType ( java.lang.String path , java.lang.String mimeType ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) && ( ( null == mimeType ) || ( mimeType.equals ( "" ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Path or the mimetype should be non null" ) ; } return _getDrmObjectType ( mUniqueId , path , mimeType ) ; }
Source:
public void run ( ) { final org.eclipse.swt.graphics.Image image = com.android.hierarchyviewerlib.device.DeviceBridge.loadCapture ( viewNode.window , viewNode ) ; if ( image != null ) { viewNode.image = image ; com.android.hierarchyviewerlib.ComponentRegistry.getTreeViewModel ( ) . notifySelectionChanged ( ) ; org.eclipse.swt.widgets.Display.getDefault ( ) . asyncExec ( new java.lang.Runnable ( ) { public void run ( ) { com.android.hierarchyviewerlib.ui.CaptureDisplay.show ( shell , viewNode , image ) ; } } ) ; } }

Target:
public void run ( ) { final org.eclipse.swt.graphics.Image image = com.android.hierarchyviewerlib.device.DeviceBridge.loadCapture ( viewNode.window , viewNode ) ; if ( image != null ) { viewNode.image = image ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . notifySelectionChanged ( ) ; org.eclipse.swt.widgets.Display.getDefault ( ) . asyncExec ( new java.lang.Runnable ( ) { public void run ( ) { com.android.hierarchyviewerlib.ui.CaptureDisplay.show ( shell , viewNode , image ) ; } } ) ; } }
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:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getConnectionState: " + device ) ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( ) ; if ( service == null ) { return android.bluetooth.BluetoothAdapter.STATE_DISCONNECTED ; } return service.getConnectionState ( device ) ; }
Source:
public void tearDown ( ) { if ( ( mTestCaseBuilder ) != null ) { java.util.List < android.uirendering.cts.testinfrastructure.TestCase > testCases = mTestCaseBuilder.getTestCases ( ) ; if ( ( testCases.size ( ) ) == 0 ) { throw new java.lang.IllegalStateException ( "Must have at least one test case" ) ; } for ( android.uirendering.cts.testinfrastructure.TestCase testCase : testCases ) { if ( ! ( testCase.wasTestRan ) ) { android.util.Log.w ( android.uirendering.cts.testinfrastructure.ActivityTestBase.TAG , ( ( getName ( ) ) + " not all of the tests ran" ) ) ; break ; } } mTestCaseBuilder = null ; } }

Target:
public void tearDown ( ) { if ( ( mTestCaseBuilder ) != null ) { java.util.List < android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCase > testCases = mTestCaseBuilder.getTestCases ( ) ; if ( ( testCases.size ( ) ) == 0 ) { throw new java.lang.IllegalStateException ( "Must have at least one test case" ) ; } for ( android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCase testCase : testCases ) { if ( ! ( testCase.wasTestRan ) ) { android.util.Log.w ( android.uirendering.cts.testinfrastructure.ActivityTestBase.TAG , ( ( getName ( ) ) + " not all of the tests ran" ) ) ; break ; } } mTestCaseBuilder = null ; } }
Source:
public void setTargetPhoneAccount ( android.telecom.PhoneAccountHandle accountHandle ) { if ( ! ( java.util.Objects.equals ( mTargetPhoneAccountHandle , accountHandle ) ) ) { mTargetPhoneAccountHandle = accountHandle ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onTargetPhoneAccountChanged ( this ) ; } configureIsWorkCall ( ) ; } checkIfVideoCapable ( ) ; }

Target:
public void setTargetPhoneAccount ( android.telecom.PhoneAccountHandle accountHandle ) { if ( ! ( java.util.Objects.equals ( mTargetPhoneAccountHandle , accountHandle ) ) ) { mTargetPhoneAccountHandle = accountHandle ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onTargetPhoneAccountChanged ( this ) ; } configureCallAttributes ( ) ; } checkIfVideoCapable ( ) ; }
Source:
public static com.android.manifmerger.XmlDocument load ( com.android.utils.Pair < java.lang.String , java.io.File > xmlFile ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.io.InputStream inputStream = new java.io.BufferedInputStream ( new java.io.FileInputStream ( xmlFile.getSecond ( ) ) ) ; com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( inputStream ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , new com.android.manifmerger.XmlLoader.FileSourceLocation ( xmlFile.getFirst ( ) , xmlFile.getSecond ( ) ) , domDocument.getDocumentElement ( ) ) : null ; }

Target:
public org.w3c.dom.Node toXml ( org.w3c.dom.Document document ) { return document.createElement ( "source" ) ; }
Source:
public void entering ( java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.Object param1 ) { if ( ( java.util.logging.Level.FINER.intValue ( ) ) < ( levelValue ) ) { return ; } java.lang.Object [ ] params = new java.lang.Object [ ] { param1 } ; logp ( java.util.logging.Level.FINER , sourceClass , sourceMethod , "ENTRY {0}" , params ) ; }

Target:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Object [ ] params ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setParameters ( params ) ; doLog ( lr , bundleName ) ; }
Source:
public void testInCallLongPress_hangupCall ( ) throws java.lang.Exception { if ( ! ( mShouldTestTelecom ) ) { return ; } placeAndVerifyCall ( ) ; final android.telecom.cts.MockConnection connection = verifyConnectionForOutgoingCall ( ) ; final android.telecom.Call call = mInCallCallbacks.getService ( ) . getLastCall ( ) ; assertCallState ( call , Call.STATE_DIALING ) ; connection.setActive ( ) ; assertCallState ( call , Call.STATE_ACTIVE ) ; sendMediaButtonLongPress ( ) ; assertCallState ( call , Call.STATE_DISCONNECTED ) ; assertConnectionState ( connection , Connection.STATE_DISCONNECTED ) ; }

Target:
public void testInCallShortPress_hangupCall ( ) throws java.lang.Exception { if ( ! ( mShouldTestTelecom ) ) { return ; } placeAndVerifyCall ( ) ; final android.telecom.cts.MockConnection connection = verifyConnectionForOutgoingCall ( ) ; final android.telecom.Call call = mInCallCallbacks.getService ( ) . getLastCall ( ) ; assertCallState ( call , Call.STATE_DIALING ) ; connection.setActive ( ) ; assertCallState ( call , Call.STATE_ACTIVE ) ; sendMediaButtonShortPress ( ) ; assertCallState ( call , Call.STATE_DISCONNECTED ) ; assertConnectionState ( connection , Connection.STATE_DISCONNECTED ) ; }
Source:
public java.lang.String iccTransmitApduBasicChannel ( 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 ( cla , instruction , p1 , p2 , p3 , data ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }

Target:
public int getVoiceActivationState ( int subId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.getVoiceActivationState ( subId , getOpPackageName ( ) ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; }
Source:
private synchronized org.conscrypt.PinListEntry lookup ( java.lang.String hostname ) throws org.conscrypt.PinManagerException { if ( ! ( initialized ) ) { return null ; } if ( ! ( isCacheValid ( ) ) ) { rebuild ( ) ; } java.lang.String cn = hostnameCache.get ( hostname ) ; if ( cn != null ) { return entries.get ( cn ) ; } cn = getMatchingCN ( hostname ) ; if ( cn != null ) { hostnameCache.put ( hostname , cn ) ; return entries.get ( cn ) ; } return null ; }

Target:
private synchronized org.conscrypt.PinListEntry lookup ( java.lang.String hostname ) throws org.conscrypt.PinManagerException { if ( ! ( ensureInitialized ( ) ) ) { return null ; } java.lang.String cn = hostnameCache.get ( hostname ) ; if ( cn != null ) { return entries.get ( cn ) ; } cn = getMatchingCN ( hostname ) ; if ( cn != null ) { hostnameCache.put ( hostname , cn ) ; return entries.get ( cn ) ; } return null ; }
Source:
public boolean disableRttResponder ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( ! ( isHalStarted ( ) ) ) return false ; if ( ( com.android.server.wifi.WifiNative.sRttResponderCmdId ) == 0 ) { android.util.Log.e ( mTAG , "responder role not enabled yet" ) ; return true ; } com.android.server.wifi.WifiNative.sRttResponderCmdId = 0 ; return com.android.server.wifi.WifiNative.disableRttResponderNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sRttResponderCmdId ) ; } }

Target:
public boolean disableRttResponder ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.disableRttResponder ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( ! ( isHalStarted ( ) ) ) return false ; if ( ( com.android.server.wifi.WifiNative.sRttResponderCmdId ) == 0 ) { android.util.Log.e ( mTAG , "responder role not enabled yet" ) ; return true ; } com.android.server.wifi.WifiNative.sRttResponderCmdId = 0 ; return com.android.server.wifi.WifiNative.disableRttResponderNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sRttResponderCmdId ) ; } } }