auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setDataEnabled ( int subId , boolean enable ) { try { android.util.Log.d ( android.telephony.TelephonyManager.TAG , ( "setDataEnabled: enabled=" + enable ) ) ; com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setDataEnabled ( subId , enable ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setDataEnabled" , e ) ; } }

Target:
private void setUserMobileDataEnabled ( int subId , boolean enable ) { try { android.util.Log.d ( android.telephony.TelephonyManager.TAG , ( "setUserMobileDataEnabled: enabled=" + enable ) ) ; com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setUserDataEnabled ( subId , enable ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setUserDataEnabled" , e ) ; } }
Source:
public void wakingUp ( ) { this . wakingUp ( ) ; }

Target:
public void finishAndRemoveTask ( ) { checkCaller ( ) ; synchronized ( this ) { long origId = android.os.Binder.clearCallingIdentity ( ) ; try { if ( ! ( removeTaskByIdLocked ( mTaskId , false ) ) ) { throw new java.lang.IllegalArgumentException ( ( "Unable to find task ID " + ( mTaskId ) ) ) ; } } finally { android.os.Binder.restoreCallingIdentity ( origId ) ; } } }
Source:
public android.renderscript.ScriptGroup.Future getGlobal ( android.renderscript.Script.FieldID field ) { android.renderscript.ScriptGroup.Future f = mGlobalFuture.get ( field ) ; if ( f == null ) { f = new android.renderscript.ScriptGroup.Future ( this , field , mBindings.get ( field ) ) ; mGlobalFuture.put ( field , f ) ; } return f ; }

Target:
public android.renderscript.ScriptGroup.Future getGlobal ( android.renderscript.Script.FieldID field ) { android.renderscript.ScriptGroup.Future f = mGlobalFuture.get ( field ) ; if ( f == null ) { java.lang.Object obj = mBindings.get ( field ) ; if ( obj instanceof android.renderscript.ScriptGroup.Future ) { obj = ( ( android.renderscript.ScriptGroup.Future ) ( obj ) ) . getValue ( ) ; } f = new android.renderscript.ScriptGroup.Future ( this , field , obj ) ; mGlobalFuture.put ( field , f ) ; } return f ; }
Source:
public void buildPatchFile ( java.io.File olderDir , java.io.File newerDir , java.util.zip.ZipOutputStream patchOutput ) throws java.io.IOException { doBuildPatchFile ( getFile ( olderDir ) , getFile ( newerDir ) , patchOutput ) ; }

Target:
public com.intellij.updater.PatchAction merge ( com.intellij.updater.PatchAction other ) { if ( this . equals ( other ) ) { return this ; } com.intellij.updater.MultiAction multi = new com.intellij.updater.MultiAction ( myPatch , myPath , Digester.INVALID ) ; multi.addAction ( this ) ; multi.addAction ( other ) ; return multi ; }
Source:
public void setOnHold ( java.lang.String callId ) { android.telecom.Log.startSession ( "CSW.sOH" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setOnHold %s" , callId ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { mCallsManager.markCallAsOnHold ( call ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }

Target:
public void setOnHold ( java.lang.String callId , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , "CSW.sOH" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setOnHold %s" , callId ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { mCallsManager.markCallAsOnHold ( call ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
public void onRangingFailure ( int rangingId , int reason , java.lang.String description ) { if ( com.android.server.wifi.nan.WifiNanClientState.VDBG ) { android.util.Log.v ( com.android.server.wifi.nan.WifiNanClientState.TAG , ( ( ( ( ( "onRangingSuccess: rangingId=" + rangingId ) + ", reason=" ) + reason ) + ", description=" ) + description ) ) ; } try { mCallback.onRangingFailure ( rangingId , reason , description ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.server.wifi.nan.WifiNanClientState.TAG , ( "onRangingFailure: RemoteException - ignored: " + e ) ) ; } }

Target:
public void onRangingFailure ( int rangingId , int reason , java.lang.String description ) { if ( com.android.server.wifi.aware.WifiAwareClientState.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareClientState.TAG , ( ( ( ( ( "onRangingSuccess: rangingId=" + rangingId ) + ", reason=" ) + reason ) + ", description=" ) + description ) ) ; } try { mCallback.onRangingFailure ( rangingId , reason , description ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.server.wifi.aware.WifiAwareClientState.TAG , ( "onRangingFailure: RemoteException - ignored: " + e ) ) ; } }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( "ConfigRequest [mSupport5gBand=" + ( mSupport5gBand ) ) + ", mMasterPreference=" ) + ( mMasterPreference ) ) + ", mClusterLow=" ) + ( mClusterLow ) ) + ", mClusterHigh=" ) + ( mClusterHigh ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( "ConfigRequest [mSupport5gBand=" + ( mSupport5gBand ) ) + ", mMasterPreference=" ) + ( mMasterPreference ) ) + ", mClusterLow=" ) + ( mClusterLow ) ) + ", mClusterHigh=" ) + ( mClusterHigh ) ) + ", mDiscoveryWindowInterval=" ) + ( java.util.Arrays.toString ( mDiscoveryWindowInterval ) ) ) + "]" ; }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.err.println ( "Hello, world!" ) ; for ( java.lang.String a : args ) { if ( a.startsWith ( "agent:" ) ) { java.lang.String agent = a.substring ( 6 ) ; try { dalvik.system.VMDebug.attachAgent ( agent ) ; } catch ( java.io.IOException e ) { e.printStackTrace ( ) ; } } } java.lang.System.err.println ( "Goodbye!" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.out.println ( "Hello, world!" ) ; for ( java.lang.String a : args ) { if ( a.startsWith ( "agent:" ) ) { java.lang.String agent = a.substring ( 6 ) ; try { dalvik.system.VMDebug.attachAgent ( agent ) ; } catch ( java.io.IOException e ) { e.printStackTrace ( java.lang.System.out ) ; } } } java.lang.System.out.println ( "Goodbye!" ) ; }
Source:
private boolean visitFieldOrArrayRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { assert expr.canThrow ( ) ; confirmBlockElement ( expr ) ; confirmThrowingPosition ( expr ) ; confirmParent ( expr , com.android.jack.ir.ast.JAsgOperation.class ) ; com.android.jack.ir.ast.JAsgOperation asgExpr = ( ( com.android.jack.ir.ast.JAsgOperation ) ( expr.getParent ( ) ) ) ; if ( ( asgExpr.getLhs ( ) ) == expr ) { confirmParent ( asgExpr , com.android.jack.ir.ast.cfg.JStoreBlockElement.class ) ; } else { confirmVarAsgValue ( expr , com.android.jack.ir.ast.cfg.JVariableAsgBlockElement.class ) ; } return true ; }

Target:
private boolean visitMethodCall ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAbstractMethodCall expr , @ javax.annotation.Nonnull java.lang.Class parentClass ) { assert expr.canThrow ( ) ; confirmBlockElement ( expr ) ; confirmThrowingIsAllowed ( expr ) ; confirmParent ( expr , com.android.jack.ir.ast.JAsgOperation.class , parentClass ) ; confirmNotAssignmentTarget ( expr ) ; return true ; }
Source:
private com.android.jill.frontend.java.Variable getLocalVariable ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , @ javax.annotation.Nonnegative int localIdx ) { org.objectweb.asm.tree.analysis.BasicValue bv = frame.getLocal ( localIdx ) ; assert bv != ( org.objectweb.asm.tree.analysis.BasicValue.UNINITIALIZED_VALUE ) ; com.android.jill.frontend.java.Variable v ; java.lang.String id = getUnnamedLocalId ( localIdx , bv.getType ( ) ) ; java.lang.String localName = id ; org.objectweb.asm.Type localType = typeToUntyped ( bv.getType ( ) ) ; v = getVariableWithLocalIndex ( localIdx , id , localName , localType , null , com.android.jill.frontend.java.MethodBodyWriter.NO_MODIFIER ) ; return v ; }

Target:
private com.android.jill.frontend.java.Variable getVariableWithLocalIndex ( @ javax.annotation.Nonnegative int localIdx , @ javax.annotation.Nonnull java.lang.String id , @ javax.annotation.Nonnull java.lang.String name , @ javax.annotation.Nonnull org.objectweb.asm.Type type , @ javax.annotation.CheckForNull java.lang.String signature ) { com.android.jill.frontend.java.Variable var = nameToVar.get ( id ) ; if ( var == null ) { var = new com.android.jill.frontend.java.Variable ( id , name , type , signature , localIdx , ( ( getLocalVariableNode ( localIdx ) ) == null ) ) ; nameToVar.put ( id , var ) ; } return var ; }
Source:
public static java.nio.IntBuffer wrap ( int [ ] array , int start , int intCount ) { java.util.Arrays.checkOffsetAndCount ( array.length , start , intCount ) ; java.nio.IntBuffer buf = new java.nio.ReadWriteIntArrayBuffer ( array ) ; buf.position = start ; buf.limit = start + intCount ; return buf ; }

Target:
public static java.nio.IntBuffer wrap ( int [ ] array , int start , int intCount ) { java.util.Arrays.checkOffsetAndCount ( array.length , start , intCount ) ; java.nio.IntBuffer buf = new java.nio.IntArrayBuffer ( array ) ; buf.position = start ; buf.limit = start + intCount ; return buf ; }
Source:
public void removeProximityAlert ( android.app.PendingIntent intent ) { try { synchronized ( mLock ) { removeProximityAlertLocked ( intent ) ; } } catch ( java.lang.SecurityException se ) { throw se ; } catch ( java.lang.IllegalArgumentException iae ) { throw iae ; } catch ( java.lang.Exception e ) { android.util.Slog.e ( com.android.server.LocationManagerService.TAG , "removeProximityAlert got exception:" , e ) ; } }

Target:
public com.android.internal.location.ProviderProperties getProviderProperties ( java.lang.String provider ) { if ( ( mProvidersByName.get ( provider ) ) == null ) { return null ; } checkResolutionLevelIsSufficientForProviderUse ( getCallerAllowedResolutionLevel ( ) , provider ) ; com.android.server.location.LocationProviderInterface p ; synchronized ( mLock ) { p = mProvidersByName.get ( provider ) ; } if ( p == null ) return null ; return p.getProperties ( ) ; }
Source:
public boolean execute ( @ org.jetbrains.annotations.NotNull com.intellij.psi.PsiFileSystemItem element ) { list.add ( new com.intellij.ide.scratch.ScratchProjectViewPane.MyPsiNode ( value.getProject ( ) , myRootType , element ) ) ; return true ; }

Target:
public boolean execute ( @ org.jetbrains.annotations.NotNull com.intellij.psi.PsiFileSystemItem element ) { if ( ! ( myRootType.isIgnored ( value.getProject ( ) , element.getVirtualFile ( ) ) ) ) { list.add ( new com.intellij.ide.scratch.ScratchProjectViewPane.MyPsiNode ( value.getProject ( ) , myRootType , element ) ) ; } return true ; }
Source:
public void testE4_2 ( ) { dot.junit.opcodes.invoke_interface.d.T_invoke_interface_11 t = new dot.junit.opcodes.invoke_interface.d.T_invoke_interface_11 ( ) ; try { t.run ( ) ; fail ( "expected IncompatibleClassChangeError" ) ; } catch ( java.lang.IncompatibleClassChangeError expected ) { } try { t.run ( ) ; fail ( "expected IncompatibleClassChangeError" ) ; } catch ( java.lang.IncompatibleClassChangeError expected ) { } }

Target:
public void testVFE1 ( ) { load ( "dot.junit.opcodes.invoke_interface.d.T_invoke_interface_2" , java.lang.VerifyError.class ) ; }
Source:
public void copy ( @ javax.annotation.Nonnull com.android.sched.vfs.VFile srcFile , @ javax.annotation.Nonnull FILE dstFile ) throws com.android.sched.util.file.CannotCloseInputException , com.android.sched.util.file.CannotCloseOutputException , com.android.sched.util.file.CannotReadException , com.android.sched.util.file.CannotWriteException , com.android.sched.util.file.WrongPermissionException { try ( java.io.InputStream is = srcFile.getInputStream ( ) ) { try ( java.io.OutputStream os = dstFile.getOutputStream ( ) ) { new com.android.sched.util.stream.LocationByteStreamSucker ( is , os , srcFile , dstFile ) . suck ( ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotCloseOutputException ( dstFile , e ) ; } } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotCloseInputException ( srcFile , e ) ; } }

Target:
public void copy ( @ javax.annotation.Nonnull com.android.sched.vfs.VFile srcFile , @ javax.annotation.Nonnull FILE dstFile ) throws com.android.sched.util.file.CannotCloseException , com.android.sched.util.file.CannotReadException , com.android.sched.util.file.CannotWriteException , com.android.sched.util.file.WrongPermissionException { try ( java.io.InputStream is = srcFile.getInputStream ( ) ) { try ( java.io.OutputStream os = dstFile.getOutputStream ( ) ) { new com.android.sched.util.stream.LocationByteStreamSucker ( is , os , srcFile , dstFile ) . suck ( ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotCloseException ( dstFile , e ) ; } } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotCloseException ( srcFile , e ) ; } }
Source:
public void onVisibilityChanged ( final android.view.View changedView , final int visibility ) { if ( ( mAwContents ) == null ) return ; if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onVisibilityChanged ( changedView , visibility ) ; } } ) ; return ; } mAwContents.onVisibilityChanged ( changedView , visibility ) ; }

Target:
public void onWindowFocusChanged ( final boolean hasWindowFocus ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onWindowFocusChanged ( hasWindowFocus ) ; } } ) ; return ; } mAwContents.onWindowFocusChanged ( hasWindowFocus ) ; }
Source:
protected boolean processMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( com.android.internal.telephony.gsm.stk.RilMessageDecoder.CMD_PARAMS_READY ) ) { mCurrentRilMessage.mResCode = com.android.internal.telephony.gsm.stk.ResultCode.fromInt ( msg.arg1 ) ; mCurrentRilMessage.mData = msg.obj ; sendCmdForExecution ( mCurrentRilMessage ) ; transitionTo ( mStateStart ) ; } else { com.android.internal.telephony.gsm.stk.StkLog.d ( this , ( ( ( "StateCmdParamsReady expecting CMD_PARAMS_READY=" + ( com.android.internal.telephony.gsm.stk.RilMessageDecoder.CMD_PARAMS_READY ) ) + " got " ) + ( msg.what ) ) ) ; deferMessage ( msg ) ; } return true ; }

Target:
protected boolean processMessage ( android.os.Message msg ) { if ( ( msg.what ) == ( com.android.internal.telephony.cat.RilMessageDecoder.CMD_PARAMS_READY ) ) { mCurrentRilMessage.mResCode = com.android.internal.telephony.cat.ResultCode.fromInt ( msg.arg1 ) ; mCurrentRilMessage.mData = msg.obj ; sendCmdForExecution ( mCurrentRilMessage ) ; transitionTo ( mStateStart ) ; } else { com.android.internal.telephony.cat.CatLog.d ( this , ( ( ( "StateCmdParamsReady expecting CMD_PARAMS_READY=" + ( com.android.internal.telephony.cat.RilMessageDecoder.CMD_PARAMS_READY ) ) + " got " ) + ( msg.what ) ) ) ; deferMessage ( msg ) ; } return true ; }
Source:
public int getAttributeValueType ( int index ) throws com.android.apksig.internal.apk.AndroidBinXmlParser.XmlParserException { int type = getAttribute ( index ) . getValueType ( ) ; switch ( type ) { case com.android.apksig.internal.apk.AndroidBinXmlParser.Attribute.TYPE_STRING : return com.android.apksig.internal.apk.AndroidBinXmlParser.VALUE_TYPE_STRING ; case com.android.apksig.internal.apk.AndroidBinXmlParser.Attribute.TYPE_INT_DEC : case com.android.apksig.internal.apk.AndroidBinXmlParser.Attribute.TYPE_INT_HEX : case com.android.apksig.internal.apk.AndroidBinXmlParser.Attribute.TYPE_REFERENCE : return com.android.apksig.internal.apk.AndroidBinXmlParser.VALUE_TYPE_INT ; case com.android.apksig.internal.apk.AndroidBinXmlParser.Attribute.TYPE_INT_BOOLEAN : return com.android.apksig.internal.apk.AndroidBinXmlParser.VALUE_TYPE_BOOLEAN ; default : return com.android.apksig.internal.apk.AndroidBinXmlParser.VALUE_TYPE_UNSUPPORTED ; } }

Target:
public int getAttributeValueType ( int index ) throws com.android.apksig.internal.apk.AndroidBinXmlParser.XmlParserException { int type = getAttribute ( index ) . getValueType ( ) ; switch ( type ) { case com.android.apksig.internal.apk.AndroidBinXmlParser.Attribute.TYPE_STRING : return com.android.apksig.internal.apk.AndroidBinXmlParser.VALUE_TYPE_STRING ; case com.android.apksig.internal.apk.AndroidBinXmlParser.Attribute.TYPE_INT_DEC : case com.android.apksig.internal.apk.AndroidBinXmlParser.Attribute.TYPE_INT_HEX : return com.android.apksig.internal.apk.AndroidBinXmlParser.VALUE_TYPE_INT ; case com.android.apksig.internal.apk.AndroidBinXmlParser.Attribute.TYPE_REFERENCE : return com.android.apksig.internal.apk.AndroidBinXmlParser.VALUE_TYPE_REFERENCE ; case com.android.apksig.internal.apk.AndroidBinXmlParser.Attribute.TYPE_INT_BOOLEAN : return com.android.apksig.internal.apk.AndroidBinXmlParser.VALUE_TYPE_BOOLEAN ; default : return com.android.apksig.internal.apk.AndroidBinXmlParser.VALUE_TYPE_UNSUPPORTED ; } }
Source:
public static void notifyBreakpointReached ( java.lang.Thread thr , java.lang.reflect.Executable e , long loc ) { java.lang.System.out.println ( ( ( ( "\t\t\tBreakpoint: " + e ) + " @ line=" ) + ( art.Breakpoint.locationToLine ( e , loc ) ) ) ) ; }

Target:
public static void notifyBreakpointReached ( java.lang.Thread thr , java.lang.reflect.Executable e , long loc ) { java.lang.String line ; if ( e.getDeclaringClass ( ) . getPackage ( ) . equals ( art.Test993.class . getPackage ( ) ) ) { line = java.lang.Integer.valueOf ( art.Breakpoint.locationToLine ( e , loc ) ) . toString ( ) ; } else { line = "<NON-DETERMINISTIC>" ; } java.lang.System.out.println ( ( ( ( "\t\t\tBreakpoint: " + e ) + " @ line=" ) + line ) ) ; }
Source:
public void test_getFirst ( ) { assertTrue ( "Returned incorrect first element" , ll.getFirst ( ) . equals ( objArray [ 0 ] ) ) ; ll.clear ( ) ; try { ll.getFirst ( ) ; fail ( "NoSuchElementException expected" ) ; } catch ( java.util.NoSuchElementException e ) { } }

Target:
public void test_addAll_Self_ILjava_util_Collection ( ) { java.util.LinkedList linkedList = new java.util.LinkedList ( ) ; linkedList.addLast ( 1 ) ; assertEquals ( 1 , linkedList.size ( ) ) ; assertTrue ( linkedList.addAll ( 1 , linkedList ) ) ; assertEquals ( 2 , linkedList.size ( ) ) ; }
Source:
protected java.lang.String generateReplacementText ( org.eclipse.jdt.core.dom.Comment commentNode , java.lang.String commentText ) { if ( ! ( commentNode instanceof org.eclipse.jdt.core.dom.LineComment ) ) { return null ; } java.util.regex.Matcher matcher = com.android.icu4j.srcgen.TranslateJcite.BeginEndTagsHandler.JCITE_TAG_PATTERN.matcher ( commentText ) ; if ( ! ( matcher.matches ( ) ) ) { return null ; } java.lang.String jciteTag = matcher.group ( 1 ) ; if ( startedJciteTags.contains ( jciteTag ) ) { return ( "// IGNORED_INCLUDE(" + jciteTag ) + ")" ; } if ( endedJciteTags.contains ( jciteTag ) ) { startedJciteTags.add ( jciteTag ) ; return ( "// BEGIN_INCLUDE(" + jciteTag ) + ")" ; } else { endedJciteTags.add ( jciteTag ) ; return ( "// END_INCLUDE(" + jciteTag ) + ")" ; } }

Target:
protected java.lang.String processComment ( com.google.currysrc.api.process.Reporter reporter , org.eclipse.jdt.core.dom.Comment commentNode , java.lang.String commentText ) { if ( ! ( commentNode instanceof org.eclipse.jdt.core.dom.LineComment ) ) { return null ; } java.util.regex.Matcher matcher = com.android.icu4j.srcgen.TranslateJcite.BeginEndTagsHandler.JCITE_TAG_PATTERN.matcher ( commentText ) ; if ( ! ( matcher.matches ( ) ) ) { return null ; } java.lang.String jciteTag = matcher.group ( 1 ) ; if ( startedJciteTags.contains ( jciteTag ) ) { return ( "// IGNORED_INCLUDE(" + jciteTag ) + ")" ; } if ( endedJciteTags.contains ( jciteTag ) ) { startedJciteTags.add ( jciteTag ) ; return ( "// BEGIN_INCLUDE(" + jciteTag ) + ")" ; } else { endedJciteTags.add ( jciteTag ) ; return ( "// END_INCLUDE(" + jciteTag ) + ")" ; } }
Source:
void registerClient ( java.util.UUID uuid , android.bluetooth.IBluetoothGattCallbackExt callback ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "registerClient() - UUID=" + uuid ) ) ; mClientMap.add ( uuid , callback , this ) ; gattClientRegisterAppNative ( uuid.getLeastSignificantBits ( ) , uuid.getMostSignificantBits ( ) ) ; }

Target:
void registerClient ( java.util.UUID uuid , android.bluetooth.IBluetoothGattCallback callback ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "registerClient() - UUID=" + uuid ) ) ; mClientMap.add ( uuid , callback , this ) ; gattClientRegisterAppNative ( uuid.getLeastSignificantBits ( ) , uuid.getMostSignificantBits ( ) ) ; }
Source:
public void requestScores ( android.net.NetworkKey [ ] networks ) throws android.os.RemoteException { if ( ( networks != null ) && ( ( networks.length ) > 0 ) ) { mHandler.obtainMessage ( android.net.NetworkRecommendationProvider.ServiceHandler.MSG_REQUEST_SCORES , networks ) . sendToTarget ( ) ; } }

Target:
public void requestRecommendation ( final android.net.RecommendationRequest request , final android.os.IRemoteCallback callback , final int sequence ) throws android.os.RemoteException { mHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { android.net.NetworkRecommendationProvider.ResultCallback resultCallback = new android.net.NetworkRecommendationProvider.ResultCallback ( callback , sequence ) ; onRequestRecommendation ( request , resultCallback ) ; } } ) ; }
Source:
private java.lang.String getLibraryVariableName ( java.lang.String name ) { java.lang.String validName = name.replaceAll ( "[^0-9a-zA-Z]+" , "_" ) ; return ( ( "_android_" + validName ) + "_" ) + ( java.lang.Integer.toString ( name.hashCode ( ) ) ) ; }

Target:
private java.lang.String getLibraryVariableName ( java.lang.String name ) { java.lang.String validName = name.replaceAll ( "[^0-9a-zA-Z]+" , "_" ) ; long hash = ( ( long ) ( name.hashCode ( ) ) ) & 4294967295L ; return ( ( "_android_" + validName ) + "_" ) + ( java.lang.Long.toString ( hash , 16 ) ) ; }
Source:
boolean deferForUserInput ( android.os.Message message , int netId , boolean allowOverride ) { final android.net.wifi.WifiConfiguration config = mWifiConfigManager.getWifiConfiguration ( netId ) ; if ( config == null ) { logd ( ( ( "deferForUserInput: configuration for netId=" + netId ) + " not stored" ) ) ; return true ; } switch ( config.userApproved ) { case android.net.wifi.WifiConfiguration.USER_APPROVED : case android.net.wifi.WifiConfiguration.USER_BANNED : return false ; case android.net.wifi.WifiConfiguration.USER_PENDING : default : config.userApproved = android.net.wifi.WifiConfiguration.USER_APPROVED ; return false ; } }

Target:
private boolean setUserSelectNetwork ( int netId , int uid ) { if ( ! ( mWifiConfigManager.enableNetwork ( netId , true , uid ) ) ) { loge ( ( ( ( "connectToUserSelectNetwork uid " + uid ) + " did not have the permissions to enable=" ) + netId ) ) ; return false ; } if ( ( mWifiConnectivityManager ) != null ) { mWifiConnectivityManager.connectToUserSelectNetwork ( netId , true ) ; } return true ; }
Source:
public void actionPerformed ( final com.google.gct.idea.git.AnActionEvent e ) { final com.intellij.openapi.project.Project project = e.getData ( CommonDataKeys.PROJECT ) ; final com.intellij.openapi.vfs.VirtualFile file = e.getData ( CommonDataKeys.VIRTUAL_FILE ) ; if ( ( ( project == null ) || ( project.isDisposed ( ) ) ) || ( ! ( com.google.gct.idea.git.UploadSourceAction.isGitSupported ( project ) ) ) ) { return ; } com.google.gct.idea.git.UploadSourceAction.uploadProjectToGoogleCloud ( project , file ) ; }

Target:
public void actionPerformed ( final com.google.gct.idea.git.AnActionEvent e ) { com.android.tools.idea.stats.UsageTracker.getInstance ( ) . trackEvent ( GctTracking.CATEGORY , GctTracking.VCS , "upload" , null ) ; final com.intellij.openapi.project.Project project = e.getData ( CommonDataKeys.PROJECT ) ; final com.intellij.openapi.vfs.VirtualFile file = e.getData ( CommonDataKeys.VIRTUAL_FILE ) ; if ( ( ( project == null ) || ( project.isDisposed ( ) ) ) || ( ! ( com.google.gct.idea.git.UploadSourceAction.isGitSupported ( project ) ) ) ) { return ; } com.google.gct.idea.git.UploadSourceAction.uploadProjectToGoogleCloud ( project , file ) ; }
Source:
public void queryCallWaiting ( int serviceClass , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_QUERY_CALL_WAITING , response ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( serviceClass ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + serviceClass ) ) ; send ( rr ) ; }

Target:
public void queryFacilityLock ( java.lang.String facility , java.lang.String password , int serviceClass , android.os.Message result ) { queryFacilityLockForApp ( facility , password , serviceClass , null , result ) ; }
Source:
public void getEuiccInfo1 ( java.lang.String cardId , android.telephony.euicc.EuiccCardManager.ResultCallback < byte [ ] > callback ) { try { getIEuiccCardController ( ) . getEuiccInfo1 ( mContext.getOpPackageName ( ) , cardId , new com.android.internal.telephony.euicc.IGetEuiccInfo1Callback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , byte [ ] info ) { callback.onComplete ( resultCode , info ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling getEuiccInfo1" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void setDefaultSmdpAddress ( java.lang.String cardId , java.lang.String defaultSmdpAddress , java.util.concurrent.Executor executor , android.telephony.euicc.EuiccCardManager.ResultCallback < java.lang.Void > callback ) { try { getIEuiccCardController ( ) . setDefaultSmdpAddress ( mContext.getOpPackageName ( ) , cardId , defaultSmdpAddress , new com.android.internal.telephony.euicc.ISetDefaultSmdpAddressCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , null ) ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling setDefaultSmdpAddress" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void enter ( ) { mPhone.mCi.registerForDataCallListChanged ( getHandler ( ) , DataConnection.EVENT_DATA_STATE_CHANGED , null ) ; if ( android.os.Build.IS_DEBUGGABLE ) { mDcTesterDeactivateAll = new com.android.internal.telephony.dataconnection.DcTesterDeactivateAll ( mPhone , this , getHandler ( ) ) ; } }

Target:
public void enter ( ) { mPhone.mCi.registerForRilConnected ( getHandler ( ) , DataConnection.EVENT_RIL_CONNECTED , null ) ; mPhone.mCi.registerForDataCallListChanged ( getHandler ( ) , DataConnection.EVENT_DATA_STATE_CHANGED , null ) ; if ( android.os.Build.IS_DEBUGGABLE ) { mDcTesterDeactivateAll = new com.android.internal.telephony.dataconnection.DcTesterDeactivateAll ( mPhone , this , getHandler ( ) ) ; } }
Source:
public com.android.ide.common.api.Margins getMargins ( ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.ViewHierarchy viewHierarchy = mFactory.getCanvas ( ) . getViewHierarchy ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo view = viewHierarchy.findViewInfoFor ( this ) ; if ( view != null ) { return view.getMargins ( ) ; } return com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy.NO_MARGINS ; }

Target:
public com.android.ide.common.api.Margins getMargins ( ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.ViewHierarchy viewHierarchy = mFactory.getCanvas ( ) . getViewHierarchy ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo view = viewHierarchy.findViewInfoFor ( this ) ; if ( view != null ) { com.android.ide.common.api.Margins margins = view.getMargins ( ) ; if ( margins != null ) { return margins ; } } return com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy.NO_MARGINS ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( item.getSelection ( ) ) { choices.getCallback ( ) . action ( choices , getSelectedNodes ( ) , id , null ) ; updateSelection ( ) ; } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( item.getSelection ( ) ) { com.android.ide.common.api.RuleAction.Choices choices = ( ( com.android.ide.common.api.RuleAction.Choices ) ( item.getData ( ) ) ) ; choices.getCallback ( ) . action ( choices , getSelectedNodes ( ) , id , null ) ; updateSelection ( ) ; } }
Source:
private static void adjustAbsoluteAttributes ( final com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiNode , final org.eclipse.draw2d.geometry.Point where ) { if ( where == null ) { return ; } uiNode.getEditor ( ) . editXmlModel ( new java.lang.Runnable ( ) { public void run ( ) { uiNode.setAttributeValue ( LayoutConstants.ATTR_LAYOUT_X , SdkConstants.NS_RESOURCES , java.lang.String.format ( LayoutConstants.VALUE_N_DIP , where.x ) , false ) ; uiNode.setAttributeValue ( LayoutConstants.ATTR_LAYOUT_Y , SdkConstants.NS_RESOURCES , java.lang.String.format ( LayoutConstants.VALUE_N_DIP , where.y ) , false ) ; uiNode.commitDirtyAttributesToXml ( ) ; } } ) ; }

Target:
private static void adjustAbsoluteAttributes ( final com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode uiNode , final org.eclipse.draw2d.geometry.Point where ) { if ( where == null ) { return ; } uiNode.getEditor ( ) . wrapEditXmlModel ( new java.lang.Runnable ( ) { public void run ( ) { uiNode.setAttributeValue ( LayoutConstants.ATTR_LAYOUT_X , SdkConstants.NS_RESOURCES , java.lang.String.format ( LayoutConstants.VALUE_N_DIP , where.x ) , false ) ; uiNode.setAttributeValue ( LayoutConstants.ATTR_LAYOUT_Y , SdkConstants.NS_RESOURCES , java.lang.String.format ( LayoutConstants.VALUE_N_DIP , where.y ) , false ) ; uiNode.commitDirtyAttributesToXml ( ) ; } } ) ; }
Source:
public java.util.Collection < java.util.List < ? > > valueOfSubjectAlternativeName ( ) throws java.io.IOException { org.apache.harmony.security.x509.Extension extension = getExtensionByOID ( "2.5.29.17" ) ; if ( extension == null ) { return null ; } return ( ( org.apache.harmony.security.x509.GeneralNames ) ( GeneralNames.ASN1.decode ( extension.getExtnValue ( ) ) ) ) . getPairsList ( ) ; }

Target:
public java.util.Collection < java.util.List < ? > > valueOfSubjectAlternativeName ( ) throws java.io.IOException { org.apache.harmony.security.x509.Extension extension = getExtensionByOID ( "2.5.29.17" ) ; if ( extension == null ) { return null ; } java.util.Collection < java.util.List < ? > > collection = ( ( org.apache.harmony.security.x509.GeneralNames ) ( GeneralNames.ASN1.decode ( extension.getExtnValue ( ) ) ) ) . getPairsList ( ) ; if ( ( collection.size ( ) ) == 0 ) { return null ; } return collection ; }
Source:
public void setUp ( ) { mFakeExecutor = new com.android.server.timezone.RulesManagerServiceTest.FakeExecutor ( ) ; mMockPackageTracker = org.mockito.Mockito.mock ( com.android.server.timezone.PackageTracker.class ) ; mMockPermissionHelper = org.mockito.Mockito.mock ( com.android.server.timezone.PermissionHelper.class ) ; mMockTimeZoneDistroInstaller = org.mockito.Mockito.mock ( libcore.tzdata.update2.TimeZoneDistroInstaller.class ) ; mRulesManagerService = new com.android.server.timezone.RulesManagerService ( mMockPermissionHelper , mFakeExecutor , mMockPackageTracker , mMockTimeZoneDistroInstaller ) ; }

Target:
public void setUp ( ) { mFakeExecutor = new com.android.server.timezone.RulesManagerServiceTest.FakeExecutor ( ) ; mMockPackageTracker = org.mockito.Mockito.mock ( com.android.server.timezone.PackageTracker.class ) ; mMockPermissionHelper = org.mockito.Mockito.mock ( com.android.server.timezone.PermissionHelper.class ) ; mMockTimeZoneDistroInstaller = org.mockito.Mockito.mock ( com.android.timezone.distro.installer.TimeZoneDistroInstaller.class ) ; mRulesManagerService = new com.android.server.timezone.RulesManagerService ( mMockPermissionHelper , mFakeExecutor , mMockPackageTracker , mMockTimeZoneDistroInstaller ) ; }
Source:
public void testJustInfoAndError ( ) { com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . addInfo ( "merging info" ) . addError ( "something bad happened" ) . build ( ) ; assertEquals ( MergingReport.Result.ERROR , mergingReport.getResult ( ) ) ; }

Target:
public void testAllTypes ( ) { com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . addMessage ( mSourceLocation , 0 , 0 , Severity.INFO , "merging info" ) . addMessage ( mSourceLocation , 0 , 0 , Severity.WARNING , "something weird happened" ) . addMessage ( mSourceLocation , 0 , 0 , Severity.ERROR , "something bad happened" ) . build ( ) ; assertEquals ( MergingReport.Result.ERROR , mergingReport.getResult ( ) ) ; }
Source:
public android.net.IpSecTransform buildTunnelModeTransform ( java.net.InetAddress localAddress , java.net.InetAddress remoteAddress ) { mConfig.setLocalAddress ( localAddress.getHostAddress ( ) ) ; mConfig.setRemoteAddress ( remoteAddress.getHostAddress ( ) ) ; mConfig.setMode ( android.net.IpSecTransform.MODE_TUNNEL ) ; return new android.net.IpSecTransform ( mContext , mConfig ) ; }

Target:
public android.net.IpSecTransform buildTransportModeTransform ( @ android.annotation.NonNull java.net.InetAddress sourceAddress , @ android.annotation.NonNull android.net.IpSecManager.SecurityParameterIndex spi ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { com.android.internal.util.Preconditions.checkNotNull ( sourceAddress ) ; com.android.internal.util.Preconditions.checkNotNull ( spi ) ; if ( ( spi.getResourceId ( ) ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { throw new java.lang.IllegalArgumentException ( "Invalid SecurityParameterIndex" ) ; } mConfig.setMode ( android.net.IpSecTransform.MODE_TRANSPORT ) ; mConfig.setSourceAddress ( sourceAddress.getHostAddress ( ) ) ; mConfig.setSpiResourceId ( spi.getResourceId ( ) ) ; return new android.net.IpSecTransform ( mContext , mConfig ) . activate ( ) ; }
Source:
public void testCurrentAnimationTimeMillis ( ) { long time1 = android.view.animation.AnimationUtils.currentAnimationTimeMillis ( ) ; assertTrue ( ( time1 > 0 ) ) ; long time2 = 0L ; for ( int i = 0 ; ( i < 1000 ) && ( time1 >= time2 ) ; i ++ ) { time2 = android.view.animation.AnimationUtils.currentAnimationTimeMillis ( ) ; assertTrue ( ( time2 > 0 ) ) ; } assertTrue ( ( time2 > time1 ) ) ; }

Target:
public void testCurrentAnimationTimeMillis ( ) { long time1 = android.view.animation.AnimationUtils.currentAnimationTimeMillis ( ) ; assertTrue ( ( time1 > 0 ) ) ; long time2 = 0L ; for ( int i = 0 ; ( i < 1000 ) && ( time1 >= time2 ) ; i ++ ) { time2 = android.view.animation.AnimationUtils.currentAnimationTimeMillis ( ) ; try { java.lang.Thread.sleep ( 1 ) ; } catch ( java.lang.InterruptedException e ) { } assertTrue ( ( time2 > 0 ) ) ; } assertTrue ( ( time2 > time1 ) ) ; }
Source:
private com.android.ide.common.resources.ResourceItem findDeclaredResourceItem ( com.android.resources.ResourceType type , java.lang.String name ) { java.util.List < com.android.ide.common.resources.ResourceItem > list = mResourceMap.get ( type ) ; if ( list != null ) { for ( com.android.ide.common.resources.ResourceItem item : list ) { if ( ( name.equals ( item.getName ( ) ) ) && ( ( item.isDeclaredInline ( ) ) == false ) ) { return item ; } } } return null ; }

Target:
protected void removeFile ( com.android.resources.ResourceType type , com.android.ide.common.resources.ResourceFile file ) { java.util.Map < java.lang.String , com.android.ide.common.resources.ResourceItem > map = mResourceMap.get ( type ) ; if ( map != null ) { java.util.Collection < com.android.ide.common.resources.ResourceItem > values = map.values ( ) ; for ( com.android.ide.common.resources.ResourceItem item : values ) { item.removeFile ( file ) ; } } }
Source:
private static void performAction ( android.content.Context context , java.lang.String phoneNumber , int interactionType , boolean isVideoCall , com.android.dialer.callintent.CallSpecificAppData callSpecificAppData ) { android.content.Intent intent ; switch ( interactionType ) { case com.android.contacts.common.util.ContactDisplayUtils.INTERACTION_SMS : intent = new android.content.Intent ( android.content.Intent.ACTION_SENDTO , android.net.Uri.fromParts ( "sms" , phoneNumber , null ) ) ; break ; default : intent = new com.android.dialer.callintent.CallIntentBuilder ( phoneNumber , callSpecificAppData ) . setIsVideoCall ( isVideoCall ) . setAllowAssistedDial ( callSpecificAppData.getAllowAssistedDialing ( ) ) . build ( ) ; break ; } com.android.dialer.util.DialerUtils.startActivityWithErrorToast ( context , intent ) ; }

Target:
private static void performAction ( android.content.Context context , java.lang.String phoneNumber , int interactionType , boolean isVideoCall , com.android.dialer.callintent.CallSpecificAppData callSpecificAppData ) { android.content.Intent intent ; switch ( interactionType ) { case com.android.contacts.common.util.ContactDisplayUtils.INTERACTION_SMS : intent = new android.content.Intent ( android.content.Intent.ACTION_SENDTO , android.net.Uri.fromParts ( "sms" , phoneNumber , null ) ) ; break ; default : intent = com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( phoneNumber , callSpecificAppData ) . setIsVideoCall ( isVideoCall ) . setAllowAssistedDial ( callSpecificAppData.getAllowAssistedDialing ( ) ) ) ; break ; } com.android.dialer.util.DialerUtils.startActivityWithErrorToast ( context , intent ) ; }
Source:
public void TestCaseMap ( ) { android.icu.text.Transliterator toUpper = android.icu.text.Transliterator.getInstance ( "Any-Upper[^xyzXYZ]" ) ; android.icu.text.Transliterator toLower = android.icu.text.Transliterator.getInstance ( "Any-Lower[^xyzXYZ]" ) ; android.icu.text.Transliterator toTitle = android.icu.text.Transliterator.getInstance ( "Any-Title[^xyzXYZ]" ) ; expect ( toUpper , "The quick brown fox jumped over the lazy dogs." , "THE QUICK BROWN FOx JUMPED OVER THE LAzy DOGS." ) ; expect ( toLower , "The quIck brown fOX jUMPED OVER THE LAzY dogs." , "the quick brown foX jumped over the lazY dogs." ) ; expect ( toTitle , "the quick brown foX caN'T jump over the laZy dogs." , "The Quick Brown FoX Can't Jump Over The LaZy Dogs." ) ; }

Target:
public void TestCaseMap ( ) { android.icu.text.Transliterator toUpper = android.icu.text.Transliterator.getInstance ( "Any-Upper[^xyzXYZ]" ) ; android.icu.text.Transliterator toLower = android.icu.text.Transliterator.getInstance ( "Any-Lower[^xyzXYZ]" ) ; android.icu.text.Transliterator toTitle = android.icu.text.Transliterator.getInstance ( "Any-Title[^xyzXYZ]" ) ; android.icu.dev.test.translit.TransliteratorTest.expect ( toUpper , "The quick brown fox jumped over the lazy dogs." , "THE QUICK BROWN FOx JUMPED OVER THE LAzy DOGS." ) ; android.icu.dev.test.translit.TransliteratorTest.expect ( toLower , "The quIck brown fOX jUMPED OVER THE LAzY dogs." , "the quick brown foX jumped over the lazY dogs." ) ; android.icu.dev.test.translit.TransliteratorTest.expect ( toTitle , "the quick brown foX caN'T jump over the laZy dogs." , "The Quick Brown FoX Can't Jump Over The LaZy Dogs." ) ; }
Source:
public void setNetworkSelectionModeAutomatic ( int subId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setNetworkSelectionModeAutomatic ( subId ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeAutomatic RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeAutomatic NPE" , ex ) ; } }

Target:
public void disableIms ( int slotId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.disableIms ( slotId ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "disableIms, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
protected void entryRemoved ( boolean evicted , com.android.server.accounts.TokenCache.Key k , com.android.server.accounts.TokenCache.Value oldVal , com.android.server.accounts.TokenCache.Value newVal ) { if ( ( oldVal != null ) && ( newVal == null ) ) { com.android.server.accounts.TokenCache.TokenLruCache.Evictor evictor = mTokenEvictors.remove ( oldVal.token ) ; if ( evictor != null ) { evictor.evict ( ) ; } } }

Target:
protected void entryRemoved ( boolean evicted , com.android.server.accounts.TokenCache.Key k , com.android.server.accounts.TokenCache.Value oldVal , com.android.server.accounts.TokenCache.Value newVal ) { if ( ( oldVal != null ) && ( newVal == null ) ) { com.android.server.accounts.TokenCache.TokenLruCache.Evictor evictor = mTokenEvictors.remove ( new android.util.Pair ( k.account.type , oldVal.token ) ) ; if ( evictor != null ) { evictor.evict ( ) ; } } }
Source:
public void testRemoveBlanklines ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences prefs = com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences.create ( ) ; prefs.removeEmptyLines = true ; checkFormat ( prefs , "res/layout-xlarge/layout.xml" , "<foo><bar><baz1></baz1><baz2></baz2></bar><bar2></bar2><bar3><baz12></baz12></bar3></foo>" , ( "<foo>\n" + ( ( ( ( ( ( ( ( ( ( ( ( " <bar>\n" + " <baz1>\n" ) + " </baz1>\n" ) + " <baz2>\n" ) + " </baz2>\n" ) + " </bar>\n" ) + " <bar2>\n" ) + " </bar2>\n" ) + " <bar3>\n" ) + " <baz12>\n" ) + " </baz12>\n" ) + " </bar3>\n" ) + "</foo>" ) ) ) ; }

Target:
public void testRemoveBlanklines ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences prefs = com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences.create ( ) ; prefs.removeEmptyLines = true ; checkFormat ( prefs , "res/layout-xlarge/layout.xml" , "<foo><bar><baz1></baz1><baz2></baz2></bar><bar2></bar2><bar3><baz12></baz12></bar3></foo>" , ( "<foo>\n" + ( ( ( ( ( ( ( ( ( ( ( ( " <bar>\n" + " <baz1>\n" ) + " </baz1>\n" ) + " <baz2>\n" ) + " </baz2>\n" ) + " </bar>\n" ) + " <bar2>\n" ) + " </bar2>\n" ) + " <bar3>\n" ) + " <baz12>\n" ) + " </baz12>\n" ) + " </bar3>\n" ) + "</foo>" ) ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( "arttest" ) ; Main.testFindClassOnAttachedNativeThread ( ) ; Main.testFindFieldOnAttachedNativeThread ( ) ; Main.testReflectFieldGetFromAttachedNativeThreadNative ( ) ; Main.testCallStaticVoidMethodOnSubClass ( ) ; Main.testGetMirandaMethod ( ) ; Main.testZeroLengthByteBuffers ( ) ; Main.testByteMethod ( ) ; Main.testShortMethod ( ) ; Main.testBooleanMethod ( ) ; Main.testCharMethod ( ) ; Main.testIsAssignableFromOnPrimitiveTypes ( ) ; Main.testShallowGetCallingClassLoader ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( "arttest" ) ; Main.testFindClassOnAttachedNativeThread ( ) ; Main.testFindFieldOnAttachedNativeThread ( ) ; Main.testReflectFieldGetFromAttachedNativeThreadNative ( ) ; Main.testCallStaticVoidMethodOnSubClass ( ) ; Main.testGetMirandaMethod ( ) ; Main.testZeroLengthByteBuffers ( ) ; Main.testByteMethod ( ) ; Main.testShortMethod ( ) ; Main.testBooleanMethod ( ) ; Main.testCharMethod ( ) ; Main.testIsAssignableFromOnPrimitiveTypes ( ) ; Main.testShallowGetCallingClassLoader ( ) ; Main.testShallowGetStackClass2 ( ) ; }
Source:
private void setMobileDataEnabled ( boolean enabled ) { if ( com.android.phone.MobileDataPreference.DBG ) android.util.Log.d ( com.android.phone.MobileDataPreference.TAG , ( ( ( ( "setMobileDataEnabled(" + enabled ) + "," ) + ( mSubId ) ) + ")" ) ) ; mTelephonyManager.setDataEnabled ( mSubId , enabled ) ; setChecked ( enabled ) ; }

Target:
private void setMobileDataEnabled ( boolean enabled ) { if ( com.android.phone.MobileDataPreference.DBG ) android.util.Log.d ( com.android.phone.MobileDataPreference.TAG , ( ( ( ( "setMobileDataEnabled(" + enabled ) + "," ) + ( mSubId ) ) + ")" ) ) ; com.android.internal.logging.MetricsLogger.action ( getContext ( ) , MetricsEvent.ACTION_MOBILE_NETWORK_MOBILE_DATA_TOGGLE , enabled ) ; mTelephonyManager.setDataEnabled ( mSubId , enabled ) ; setChecked ( enabled ) ; }
Source:
public java.lang.String getVisualVoicemailPackageName ( android.telecom.PhoneAccountHandle phoneAccountHandle ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getVisualVoicemailPackageName ( mContext.getOpPackageName ( ) , phoneAccountHandle ) ; } } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }

Target:
public java.lang.String getVisualVoicemailPackageName ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getVisualVoicemailPackageName ( mContext.getOpPackageName ( ) , mSubId ) ; } } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }
Source:
public java.net.Socket createSocket ( java.net.Socket k , java.lang.String host , int port , boolean close ) throws java.io.IOException { org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl s = ( ( org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( k , host , port , close ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; if ( mSecure ) { android.net.SSLCertificateSocketFactory.verifyHostname ( s , host ) ; } return s ; }

Target:
public java.net.Socket createSocket ( java.net.Socket k , java.lang.String host , int port , boolean close ) throws java.io.IOException { org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl s = ( ( org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( k , host , port , close ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; if ( mSecure ) { android.net.SSLCertificateSocketFactory.verifyHostname ( s , host ) ; } return s ; }
Source:
public void setUp ( ) throws java.lang.Exception { mSnapshot = new com.android.tools.perflib.heap.Snapshot ( ) ; mSnapshot.setHeapTo ( 13 , "testHeap" ) ; mDummyClass.setInstanceSize ( 20 ) ; mSnapshot.addClass ( 0 , mDummyClass ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mSnapshot = new com.android.tools.perflib.heap.Snapshot ( new com.android.tools.perflib.heap.io.InMemoryBuffer ( 10 ) ) ; mSnapshot.setHeapTo ( 13 , "testHeap" ) ; mDummyClass.setInstanceSize ( 20 ) ; mDummyClass.setFields ( new com.android.tools.perflib.heap.Field [ 0 ] ) ; mSnapshot.addClass ( 42 , mDummyClass ) ; }