auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void check ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull com.android.sched.util.location.FileLocation location ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { assert file != null ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( location ) ; } if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileException ( location ) ; } }

Target:
public static void check ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull com.android.sched.util.location.FileLocation location ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { assert file != null ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( location ) ; } if ( file.isDirectory ( ) ) { throw new com.android.sched.util.file.NotFileException ( location ) ; } }
Source:
private static void test_directGetResourceAsStream ( dalvik.system.DexClassLoaderTest.Configuration config , java.lang.String resourceName , java.lang.String expectedContents ) throws java.lang.Exception { dalvik.system.DexClassLoader dcl = dalvik.system.DexClassLoaderTest.createInstance ( config ) ; java.io.InputStream in = dcl.getResourceAsStream ( resourceName ) ; byte [ ] contents = libcore.io.Streams.readFully ( in ) ; java.lang.String s = new java.lang.String ( contents , "UTF-8" ) ; assertEquals ( expectedContents , s ) ; }

Target:
public void test_oneJar_getResourceAsStream ( ) throws java.lang.Exception { createLoaderAndCallMethod ( "test.TestMethods" , "test_getResourceAsStream" , jar1 ) ; }
Source:
public static void rebootWipeCache ( android.content.Context context , java.lang.String reason ) throws java.io.IOException { java.lang.String reasonArg = null ; if ( ! ( android.text.TextUtils.isEmpty ( reason ) ) ) { reasonArg = "--reason=" + ( android.os.RecoverySystem.sanitizeArg ( reason ) ) ; } final java.lang.String localeArg = "--locale=" + ( java.util.Locale.getDefault ( ) . toString ( ) ) ; android.os.RecoverySystem.bootCommand ( context , "--wipe_cache" , reasonArg , localeArg ) ; }

Target:
public static void rebootWipeCache ( android.content.Context context , java.lang.String reason ) throws java.io.IOException { java.lang.String reasonArg = null ; if ( ! ( android.text.TextUtils.isEmpty ( reason ) ) ) { reasonArg = "--reason=" + ( android.os.RecoverySystem.sanitizeArg ( reason ) ) ; } final java.lang.String localeArg = "--locale=" + ( java.util.Locale.getDefault ( ) . toLanguageTag ( ) ) ; android.os.RecoverySystem.bootCommand ( context , "--wipe_cache" , reasonArg , localeArg ) ; }
Source:
public void testInheritStatic ( ) throws java.lang.Exception { assertEquals ( ( "ApiCallTest5.java:16: Error: Call requires API level 11 (current min is 2): android.view.View#resolveSizeAndState\n" + ( ( "ApiCallTest5.java:18: Error: Call requires API level 11 (current min is 2): android.view.View#resolveSizeAndState\n" + "ApiCallTest5.java:20: Error: Call requires API level 11 (current min is 2): android.view.View#combineMeasuredStates\n" ) + "ApiCallTest5.java:21: Error: Call requires API level 11 (current min is 2): android.view.View#combineMeasuredStates" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk2.xml=>AndroidManifest.xml" , "apicheck/ApiCallTest5.java.txt=>src/foo/bar/ApiCallTest5.java" , "apicheck/ApiCallTest5.class.data=>bin/classes/foo/bar/ApiCallTest5.class" ) ) ; }

Target:
public void testInheritStatic ( ) throws java.lang.Exception { assertEquals ( ( "src/foo/bar/ApiCallTest5.java:16: Error: Call requires API level 11 (current min is 2): android.view.View#resolveSizeAndState [NewApi]\n" + ( ( ( ( ( ( ( ( ( ( ( ( " int measuredWidth = View.resolveSizeAndState(widthMeasureSpec,\n" + " ~~~~~~~~~~~~~~~~~~~\n" ) + "src/foo/bar/ApiCallTest5.java:18: Error: Call requires API level 11 (current min is 2): android.view.View#resolveSizeAndState [NewApi]\n" ) + " int measuredHeight = resolveSizeAndState(heightMeasureSpec,\n" ) + " ~~~~~~~~~~~~~~~~~~~\n" ) + "src/foo/bar/ApiCallTest5.java:20: Error: Call requires API level 11 (current min is 2): android.view.View#combineMeasuredStates [NewApi]\n" ) + " View.combineMeasuredStates(0, 0);\n" ) + " ~~~~~~~~~~~~~~~~~~~~~\n" ) + "src/foo/bar/ApiCallTest5.java:21: Error: Call requires API level 11 (current min is 2): android.view.View#combineMeasuredStates [NewApi]\n" ) + " ApiCallTest5.combineMeasuredStates(0, 0);\n" ) + " ~~~~~~~~~~~~~~~~~~~~~\n" ) + "4 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk2.xml=>AndroidManifest.xml" , "apicheck/ApiCallTest5.java.txt=>src/foo/bar/ApiCallTest5.java" , "apicheck/ApiCallTest5.class.data=>bin/classes/foo/bar/ApiCallTest5.class" ) ) ; }
Source:
private static void unblock ( @ javax.annotation.Nonnull java.lang.String name ) { com.android.jack.server.JackSimpleServer.logger.log ( java.util.logging.Level.INFO , ( ( "Trying to unblock '" + name ) + "'" ) ) ; java.io.PrintStream out = null ; try { out = new com.android.sched.util.file.OutputStreamFile ( name ) . getPrintStream ( ) ; } catch ( java.io.IOException e ) { } if ( out != null ) { out.close ( ) ; } }

Target:
public void run ( ) { try { com.android.jack.server.JackSimpleServer.in = new com.android.sched.util.file.InputStreamFile ( name ) . getInputStream ( ) ; } catch ( java.io.IOException e ) { } }
Source:
private void initializeUserInfo ( com.google.api.services.oauth2.model.Userinfoplus userInfo , final com.google.gct.login.IGoogleLoginCompletedCallback updateUserCallback ) { if ( userInfo == null ) { name = null ; image = null ; } else { name = userInfo.getName ( ) ; com.google.gct.login.IUserPropertyCallback pictureCallback = new com.google.gct.login.IUserPropertyCallback < java.awt.Image > ( ) { @ java.lang.Override public void setProperty ( java.awt.Image newImage ) { image = newImage ; updateUserCallback.onLoginCompleted ( ) ; } } ; com.google.gct.login.GoogleLoginUtils.getUserPicture ( userInfo , pictureCallback ) ; } }

Target:
private void initializeUserInfo ( com.google.api.services.oauth2.model.Userinfoplus userInfo , final com.google.gct.login.IGoogleLoginCompletedCallback updateUserCallback ) { if ( userInfo == null ) { name = null ; image = null ; } else { name = userInfo.getName ( ) ; com.google.gct.login.IUserPropertyCallback pictureCallback = new com.google.gct.login.IUserPropertyCallback < java.awt.Image > ( ) { @ java.lang.Override public void setProperty ( java.awt.Image newImage ) { image = newImage ; updateUserCallback.onLoginCompleted ( ) ; } } ; com.google.gct.login.GoogleLoginUtils.provideUserPicture ( userInfo , pictureCallback ) ; } }
Source:
private java.lang.String getUniqueFileName ( java.lang.String ext ) { java.io.File dir = new java.io.File ( "/sdcard/locationtracker" ) ; if ( ! ( dir.exists ( ) ) ) { dir.mkdir ( ) ; } return ( ( "/sdcard/locationtracker/tracking-" + ( com.android.locationtracker.data.DateUtils.getCurrentTimestamp ( ) ) ) + "." ) + ext ; }

Target:
private java.lang.String getUniqueFileName ( java.lang.String ext ) { java.io.File dir = new java.io.File ( ( ( android.os.Environment.getExternalStorageDirectory ( ) ) + "/locationtracker" ) ) ; if ( ! ( dir.exists ( ) ) ) { dir.mkdir ( ) ; } return ( ( ( dir + "/tracking-" ) + ( com.android.locationtracker.data.DateUtils.getCurrentTimestamp ( ) ) ) + "." ) + ext ; }
Source:
private com.android.dx.io.Code.Try [ ] readTries ( int triesSize , com.android.dx.io.Code.CatchHandler [ ] catchHandlers ) { com.android.dx.io.Code.Try [ ] result = new com.android.dx.io.Code.Try [ triesSize ] ; for ( int i = 0 ; i < triesSize ; i ++ ) { int startAddress = readInt ( ) ; int instructionCount = readUnsignedShort ( ) ; int handlerOffset = readUnsignedShort ( ) ; int catchHandlerIndex = findCatchHandlerIndex ( catchHandlers , handlerOffset ) ; result [ i ] = new com.android.dx.io.Code.Try ( startAddress , instructionCount , catchHandlerIndex ) ; } return result ; }

Target:
private com.android.dex.Code.Try [ ] readTries ( int triesSize , com.android.dex.Code.CatchHandler [ ] catchHandlers ) { com.android.dex.Code.Try [ ] result = new com.android.dex.Code.Try [ triesSize ] ; for ( int i = 0 ; i < triesSize ; i ++ ) { int startAddress = readInt ( ) ; int instructionCount = readUnsignedShort ( ) ; int handlerOffset = readUnsignedShort ( ) ; int catchHandlerIndex = findCatchHandlerIndex ( catchHandlers , handlerOffset ) ; result [ i ] = new com.android.dex.Code.Try ( startAddress , instructionCount , catchHandlerIndex ) ; } return result ; }
Source:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent event ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; if ( canvas != null ) { canvas.getDragSourceListener ( ) . dragFinished ( event ) ; } }

Target:
public void dragStart ( org.eclipse.swt.dnd.DragSourceEvent event ) { if ( ! ( adjustEventCoordinates ( event ) ) ) { event.doit = false ; return ; } com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; if ( canvas != null ) { canvas.getDragListener ( ) . dragStart ( event ) ; } }
Source:
public V replace ( K key , V value ) { int hash = java.util.concurrent.ConcurrentHashMap.hash ( key.hashCode ( ) ) ; if ( value == null ) throw new java.lang.NullPointerException ( ) ; java.util.concurrent.ConcurrentHashMap.Segment < K , V > s = segmentForHash ( hash ) ; return s == null ? null : s.replace ( key , hash , value ) ; }

Target:
public V putIfAbsent ( K key , V value ) { return putVal ( key , value , true ) ; }
Source:
public static < A extends java.lang.annotation.Annotation > A getDeclaredAnnotation ( java.lang.reflect.AnnotatedElement element , java.lang.Class < A > annotationClass ) { java.lang.annotation.Annotation a = libcore.reflect.AnnotationAccess.getMethodAnnotation ( element , annotationClass ) ; return a != null ? libcore.reflect.AnnotationAccess.toAnnotationInstance ( libcore.reflect.AnnotationAccess.getDexClass ( element ) , annotationClass , a ) : null ; }

Target:
public static < A extends java.lang.annotation.Annotation > A getDeclaredAnnotation ( java.lang.reflect.AnnotatedElement element , java.lang.Class < A > annotationClass ) { java.lang.annotation.Annotation a = libcore.reflect.AnnotationAccess.getAnnotation ( element , annotationClass ) ; return a != null ? libcore.reflect.AnnotationAccess.toAnnotationInstance ( libcore.reflect.AnnotationAccess.getDexClass ( element ) , annotationClass , a ) : null ; }
Source:
public void execute ( @ com.android.annotations.NonNull com.android.build.gradle.tasks.StripDebugSymbolTask task ) { java.io.File debugLib = binary.getSharedLibraryFile ( ) ; task.setInputFile ( debugLib ) ; task.setOutputFile ( new java.io.File ( buildDir , ( ( ( com.android.build.gradle.ndk.internal.NdkNamingScheme.getOutputDirectoryName ( binary ) ) + "/" ) + ( debugLib.getName ( ) ) ) ) ) ; task.setStripCommand ( handler.getStripCommand ( com.android.build.gradle.internal.core.Abi.getByName ( binary.getTargetPlatform ( ) . getName ( ) ) ) ) ; }

Target:
public void execute ( @ com.android.annotations.NonNull com.android.build.gradle.tasks.StripDebugSymbolTask task ) { java.io.File debugLib = binary.getSharedLibraryFile ( ) ; task.setInputFile ( debugLib ) ; task.setOutputFile ( new java.io.File ( buildDir , ( ( ( com.android.build.gradle.ndk.internal.NdkNamingScheme.getOutputDirectoryName ( binary ) ) + "/" ) + ( debugLib.getName ( ) ) ) ) ) ; task.setStripCommand ( handler.getStripCommand ( com.android.build.gradle.internal.core.Abi.getByName ( binary.getTargetPlatform ( ) . getName ( ) ) ) ) ; task.dependsOn ( binary ) ; }
Source:
public void testAesCbcHmacSha256Tcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacMd5Tcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public boolean syncUid ( int sourceUid , int targetUid ) { try { mError = mBinder.sync_uid ( sourceUid , targetUid ) ; 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 ; } }

Target:
public boolean isEmpty ( ) { return isEmpty ( android.os.UserHandle.myUserId ( ) ) ; }
Source:
public java.lang.Number parse ( java.lang.String text , java.text.ParsePosition parsePosition ) { return ( ( java.lang.Number ) ( parse ( text , parsePosition , null ) ) ) ; }

Target:
public android.icu.util.CurrencyAmount parseCurrency ( java.lang.CharSequence text , java.text.ParsePosition parsePosition ) { try { android.icu.util.CurrencyAmount result = android.icu.impl.number.Parse.parseCurrency ( text , parsePosition , properties , symbols ) ; if ( result == null ) return null ; java.lang.Number number = result.getNumber ( ) ; if ( number instanceof java.math.BigDecimal ) { number = safeConvertBigDecimal ( ( ( java.math.BigDecimal ) ( number ) ) ) ; result = new android.icu.util.CurrencyAmount ( number , result.getCurrency ( ) ) ; } return result ; } catch ( java.text.ParseException e ) { return null ; } }
Source:
private void updateResourceItems ( ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository repository = getRepository ( ) ; for ( com.android.resources.ResourceType type : mResourceTypeList ) { java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > list = mResourceItems.get ( type ) ; if ( list != null ) { java.util.Collection < com.android.ide.common.rendering.api.ResourceValue > values = list.values ( ) ; for ( com.android.ide.common.rendering.api.ResourceValue res : values ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem item = repository.getResourceItem ( type , res.getName ( ) ) ; item.add ( this ) ; } } } }

Target:
private void updateResourceItems ( ) { com.android.ide.common.resources.ResourceRepository repository = getRepository ( ) ; for ( com.android.resources.ResourceType type : mResourceTypeList ) { java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > list = mResourceItems.get ( type ) ; if ( list != null ) { java.util.Collection < com.android.ide.common.rendering.api.ResourceValue > values = list.values ( ) ; for ( com.android.ide.common.rendering.api.ResourceValue res : values ) { com.android.ide.common.resources.ResourceItem item = repository.getResourceItem ( type , res.getName ( ) ) ; item.add ( this ) ; } } } }
Source:
public com.google.common.base.Optional < com.android.manifmerger.XmlDocument > merge ( com.android.manifmerger.XmlDocument lowerPriorityDocument , com.android.manifmerger.MergingReport.Builder mergingReportBuilder ) { mergingReportBuilder.getActionRecorder ( ) . recordDefaultNodeAction ( getRootNode ( ) ) ; getRootNode ( ) . mergeWithLowerPriorityNode ( lowerPriorityDocument.getRootNode ( ) , mergingReportBuilder ) ; addImplicitElements ( lowerPriorityDocument , mergingReportBuilder ) ; return mergingReportBuilder.hasErrors ( ) ? com.google.common.base.Optional.< com.android.manifmerger.XmlDocument > absent ( ) : com.google.common.base.Optional.of ( reparse ( ) ) ; }

Target:
public com.google.common.base.Optional < com.android.manifmerger.XmlDocument > merge ( com.android.manifmerger.XmlDocument lowerPriorityDocument , com.android.manifmerger.MergingReport.Builder mergingReportBuilder ) { if ( ( getFileType ( ) ) == ( com.android.manifmerger.XmlDocument.Type.MAIN ) ) { mergingReportBuilder.getActionRecorder ( ) . recordDefaultNodeAction ( getRootNode ( ) ) ; } getRootNode ( ) . mergeWithLowerPriorityNode ( lowerPriorityDocument.getRootNode ( ) , mergingReportBuilder ) ; addImplicitElements ( lowerPriorityDocument , mergingReportBuilder ) ; return mergingReportBuilder.hasErrors ( ) ? com.google.common.base.Optional.< com.android.manifmerger.XmlDocument > absent ( ) : com.google.common.base.Optional.of ( reparse ( ) ) ; }
Source:
public void copy ( @ javax.annotation.Nonnull com.android.sched.vfs.VFile srcFile , @ javax.annotation.Nonnull FILE dstFile ) throws com.android.sched.util.file.WrongPermissionException , java.io.IOException { java.io.InputStream is = srcFile.getInputStream ( ) ; java.io.OutputStream os = dstFile.getOutputStream ( ) ; try { new com.android.sched.util.stream.ByteStreamSucker ( is , os ) . suck ( ) ; } finally { os.close ( ) ; is.close ( ) ; } }

Target:
public void copy ( @ javax.annotation.Nonnull com.android.sched.vfs.VFile srcFile , @ javax.annotation.Nonnull FILE dstFile ) throws com.android.sched.util.file.WrongPermissionException , java.io.IOException { java.io.InputStream is = srcFile.getInputStream ( ) ; java.io.OutputStream os = dstFile.getOutputStream ( ) ; try { new com.android.sched.util.stream.LocationByteStreamSucker ( is , os , srcFile , dstFile ) . suck ( ) ; } finally { os.close ( ) ; is.close ( ) ; } }
Source:
public java.lang.String toString ( ) { if ( ( buffer ) == null ) { return ( ( ( ( declaringClassIndex ) + " " ) + ( protoIndex ) ) + " " ) + ( nameIndex ) ; } return ( ( ( buffer.typeNames ( ) . get ( declaringClassIndex ) ) + "." ) + ( buffer.strings ( ) . get ( nameIndex ) ) ) + ( buffer.readTypeList ( buffer.protoIds ( ) . get ( protoIndex ) . getParametersOffset ( ) ) ) ; }

Target:
public java.lang.String toString ( ) { if ( ( dex ) == null ) { return ( ( ( ( declaringClassIndex ) + " " ) + ( protoIndex ) ) + " " ) + ( nameIndex ) ; } return ( ( ( dex.typeNames ( ) . get ( declaringClassIndex ) ) + "." ) + ( dex.strings ( ) . get ( nameIndex ) ) ) + ( dex.readTypeList ( dex.protoIds ( ) . get ( protoIndex ) . getParametersOffset ( ) ) ) ; }
Source:
protected < DST extends com.android.sched.item.Component > java.util.Iterator < DST > adaptWithLog ( @ javax.annotation.Nonnull com.android.sched.schedulable.AdapterSchedulable < T , DST > adapter , @ javax.annotation.Nonnull T data ) throws java.lang.Exception { com.android.sched.scheduler.ManagedSchedulable managedSchedulable = schedulableManager.getManagedSchedulable ( adapter.getClass ( ) ) ; com.android.sched.util.log.Event event = logAndTrace ( adapter , managedSchedulable , data ) ; try { return adapter.adapt ( data ) ; } finally { event.end ( ) ; } }

Target:
protected < DST extends com.android.sched.item.Component > java.util.Iterator < DST > adaptWithLog ( @ javax.annotation.Nonnull com.android.sched.schedulable.AdapterSchedulable < T , DST > adapter , @ javax.annotation.Nonnull T data ) throws com.android.sched.scheduler.AdapterProcessException { com.android.sched.scheduler.ManagedSchedulable managedSchedulable = schedulableManager.getManagedSchedulable ( adapter.getClass ( ) ) ; com.android.sched.util.log.Event event = logAndTrace ( adapter , managedSchedulable , data ) ; try { return adapter.adapt ( data ) ; } catch ( java.lang.Throwable e ) { throw new com.android.sched.scheduler.AdapterProcessException ( adapter , managedSchedulable , data , e ) ; } finally { event.end ( ) ; } }
Source:
private void updateAvd ( ) { try { java.lang.String avdName = mSdkCommandLine.getParamName ( ) ; com.android.sdklib.internal.avd.AvdManager avdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager.getLocalSdk ( ) , mSdkLog ) ; avdManager.updateAvd ( avdName , mSdkLog ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } catch ( java.io.IOException e ) { errorAndExit ( e.getMessage ( ) ) ; } }

Target:
private void updateAvd ( ) { try { java.lang.String avdName = mSdkCommandLine.getParamName ( ) ; com.android.sdklib.internal.avd.AvdManager avdManager = getAvdManager ( ) ; avdManager.updateAvd ( avdName , mSdkLog ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } catch ( java.io.IOException e ) { errorAndExit ( e.getMessage ( ) ) ; } }
Source:
public void setOutgoingCallerIdDisplay ( int commandInterfaceCLIRMode , android.os.Message onComplete ) { if ( isPhoneTypeGsm ( ) ) { com.android.internal.telephony.Phone imsPhone = mImsPhone ; if ( ( imsPhone != null ) && ( ( imsPhone.getServiceState ( ) . getState ( ) ) == ( android.telephony.ServiceState.STATE_IN_SERVICE ) ) ) { imsPhone.setOutgoingCallerIdDisplay ( commandInterfaceCLIRMode , onComplete ) ; return ; } mCi.setCLIR ( commandInterfaceCLIRMode , obtainMessage ( com.android.internal.telephony.EVENT_SET_CLIR_COMPLETE , commandInterfaceCLIRMode , 0 , onComplete ) ) ; } else { loge ( "setOutgoingCallerIdDisplay: not possible in CDMA" ) ; } }

Target:
public void getOutgoingCallerIdDisplay ( android.os.Message onComplete ) { if ( isPhoneTypeGsm ( ) ) { com.android.internal.telephony.Phone imsPhone = mImsPhone ; if ( ( imsPhone != null ) && ( ( ( imsPhone.getServiceState ( ) . getState ( ) ) == ( android.telephony.ServiceState.STATE_IN_SERVICE ) ) || ( imsPhone.isUtEnabled ( ) ) ) ) { imsPhone.getOutgoingCallerIdDisplay ( onComplete ) ; return ; } mCi.getCLIR ( onComplete ) ; } else { loge ( "getOutgoingCallerIdDisplay: not possible in CDMA" ) ; } }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { assertNull ( org.conscrypt.NativeCrypto.SSL_get_certificate ( s ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.junit.Assert.assertNull ( org.conscrypt.NativeCrypto.SSL_get_certificate ( s ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public static org.bouncycastle.crypto.params.DHPrivateKeyParameters generateEphemeralClientKeyExchange ( java.security.SecureRandom random , org.bouncycastle.crypto.params.DHParameters dhParams , java.io.OutputStream output ) throws java.io.IOException { org.bouncycastle.crypto.AsymmetricCipherKeyPair kp = org.bouncycastle.crypto.tls.TlsDHUtils.generateDHKeyPair ( random , dhParams ) ; org.bouncycastle.crypto.params.DHPublicKeyParameters dh_public = ( ( org.bouncycastle.crypto.params.DHPublicKeyParameters ) ( kp.getPublic ( ) ) ) ; org.bouncycastle.crypto.tls.TlsDHUtils.writeDHParameter ( dh_public.getY ( ) , output ) ; return ( ( org.bouncycastle.crypto.params.DHPrivateKeyParameters ) ( kp.getPrivate ( ) ) ) ; }

Target:
public static org.bouncycastle.crypto.params.DHPrivateKeyParameters generateEphemeralServerKeyExchange ( java.security.SecureRandom random , org.bouncycastle.crypto.params.DHParameters dhParams , java.io.OutputStream output ) throws java.io.IOException { org.bouncycastle.crypto.AsymmetricCipherKeyPair kp = org.bouncycastle.crypto.tls.TlsDHUtils.generateDHKeyPair ( random , dhParams ) ; org.bouncycastle.crypto.params.DHPublicKeyParameters dhPublic = ( ( org.bouncycastle.crypto.params.DHPublicKeyParameters ) ( kp.getPublic ( ) ) ) ; new org.bouncycastle.crypto.tls.ServerDHParams ( dhPublic ) . encode ( output ) ; return ( ( org.bouncycastle.crypto.params.DHPrivateKeyParameters ) ( kp.getPrivate ( ) ) ) ; }
Source:
private static void captureViewInfo ( java.lang.String subTag , android.view.View v ) { if ( ( v == null ) || ( ( android.os.SystemProperties.getInt ( ViewDebug.SYSTEM_PROPERTY_CAPTURE_VIEW , 0 ) ) == 0 ) ) { return ; } android.view.ViewDebug.dumpCapturedView ( subTag , v ) ; }

Target:
void sendAccessibilityEventUncheckedInternal ( android.view.accessibility.AccessibilityEvent event ) { if ( ! ( isShown ( ) ) ) { return ; } onInitializeAccessibilityEvent ( event ) ; if ( ( ( event.getEventType ( ) ) & ( android.view.View.POPULATING_ACCESSIBILITY_EVENT_TYPES ) ) != 0 ) { dispatchPopulateAccessibilityEvent ( event ) ; } getParent ( ) . requestSendAccessibilityEvent ( this , event ) ; }
Source:
public static com.android.settings.search.Index getInstance ( android.content.Context context ) { if ( ( com.android.settings.search.Index.sInstance ) == null ) { com.android.settings.search.Index.sInstance = new com.android.settings.search.Index ( context.getApplicationContext ( ) , com.android.settings.search.Index.BASE_AUTHORITY ) ; } return com.android.settings.search.Index.sInstance ; }

Target:
public static com.android.settings.search.Index getInstance ( android.content.Context context ) { if ( ( com.android.settings.search.Index.sInstance ) == null ) { synchronized ( com.android.settings.search.Index.class ) { if ( ( com.android.settings.search.Index.sInstance ) == null ) { com.android.settings.search.Index.sInstance = new com.android.settings.search.Index ( context.getApplicationContext ( ) , com.android.settings.search.Index.BASE_AUTHORITY ) ; } } } return com.android.settings.search.Index.sInstance ; }
Source:
private libcore.tzdata.update2.BundleVersion readBundleVersion ( java.io.File unpackedContentDir ) throws java.io.IOException { android.util.Slog.i ( logTag , "Reading bundle format version" ) ; java.io.File bundleVersionFile = new java.io.File ( unpackedContentDir , TimeZoneBundle.BUNDLE_VERSION_FILE_NAME ) ; byte [ ] versionBytes = libcore.tzdata.update2.FileUtils.readBytes ( bundleVersionFile , BundleVersion.BUNDLE_VERSION_FILE_LENGTH ) ; try { return libcore.tzdata.update2.BundleVersion.extractFromBytes ( versionBytes ) ; } catch ( libcore.tzdata.update2.BundleException e ) { android.util.Slog.i ( logTag , ( ( ( "Invalid bundle version bytes: " + ( java.util.Arrays.toString ( versionBytes ) ) ) + ": " ) + ( e.getMessage ( ) ) ) ) ; return null ; } }

Target:
private libcore.tzdata.update2.BundleVersion readBundleVersion ( java.io.File bundleDir ) throws java.io.IOException , libcore.tzdata.update2.BundleException { android.util.Slog.i ( logTag , "Reading bundle format version" ) ; java.io.File bundleVersionFile = new java.io.File ( bundleDir , TimeZoneBundle.BUNDLE_VERSION_FILE_NAME ) ; if ( ! ( bundleVersionFile.exists ( ) ) ) { throw new libcore.tzdata.update2.BundleException ( ( "No bundle version file found: " + bundleVersionFile ) ) ; } byte [ ] versionBytes = libcore.tzdata.update2.FileUtils.readBytes ( bundleVersionFile , BundleVersion.BUNDLE_VERSION_FILE_LENGTH ) ; return libcore.tzdata.update2.BundleVersion.extractFromBytes ( versionBytes ) ; }
Source:
private boolean setCellBroadcastOnSub ( int subId , boolean enableForSub ) throws java.lang.Exception { java.lang.Class [ ] cArgs = new java.lang.Class [ 3 ] ; cArgs [ 0 ] = android.telephony.SmsManager.class ; cArgs [ 1 ] = java.lang.Integer.TYPE ; cArgs [ 2 ] = java.lang.Boolean.TYPE ; java.lang.reflect.Method method = com.android.cellbroadcastreceiver.CellBroadcastConfigService.class . getDeclaredMethod ( "setCellBroadcastOnSub" , cArgs ) ; method.setAccessible ( true ) ; return ( ( boolean ) ( method.invoke ( mConfigService , mSmsManager , subId , enableForSub ) ) ) ; }

Target:
private void setPreference ( java.lang.String pref , boolean value ) { org.mockito.Mockito.doReturn ( value ) . when ( mMockedSharedPreferences ) . getBoolean ( org.mockito.Mockito.eq ( pref ) , org.mockito.Mockito.eq ( true ) ) ; }
Source:
public boolean onCanceledViaNewOutgoingCallBroadcast ( final com.android.server.telecom.Call call ) { mPendingCallsToDisconnect.add ( call ) ; mHandler.postDelayed ( new java.lang.Runnable ( "CM.oCVNOCB" ) { @ java.lang.Override public void loggedRun ( ) { synchronized ( mLock ) { if ( mPendingCallsToDisconnect.remove ( call ) ) { android.telecom.Log.i ( this , "Delayed disconnection of call: %s" , call ) ; call.disconnect ( ) ; } } } } . prepare ( ) , com.android.server.telecom.Timeouts.getNewOutgoingCallCancelMillis ( mContext.getContentResolver ( ) ) ) ; return true ; }

Target:
void markCallAsPulling ( com.android.server.telecom.Call call ) { setCallState ( call , CallState.PULLING , "pulling set explicitly" ) ; maybeMoveToSpeakerPhone ( call ) ; }
Source:
private void checkMessages ( java.util.List < com.android.ddmuilib.logcat.LogCatMessage > receivedMessages , com.android.ddmlib.IDevice device ) { for ( com.android.ddmuilib.logcat.LogCatMessage m : receivedMessages ) { if ( isImportantMessage ( m ) ) { focusLogCatView ( device , m.getAppName ( ) ) ; break ; } } }

Target:
private void checkMessages ( java.util.List < com.android.ddmuilib.logcat.LogCatMessage > receivedMessages , com.android.ddmlib.IDevice device ) { if ( ! ( mMonitorEnabled.get ( ) ) ) { return ; } for ( com.android.ddmuilib.logcat.LogCatMessage m : receivedMessages ) { if ( isImportantMessage ( m ) ) { focusLogCatView ( device , m.getAppName ( ) ) ; mMonitorEnabled.set ( false ) ; break ; } } }
Source:
public void testGetDeviceId ( ) { java.lang.String deviceId = mTelephonyManager.getDeviceId ( ) ; int phoneType = mTelephonyManager.getPhoneType ( ) ; switch ( phoneType ) { case android.telephony.TelephonyManager.PHONE_TYPE_GSM : android.telephony.cts.TelephonyManagerTest.assertImeiDeviceId ( deviceId ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_CDMA : android.telephony.cts.TelephonyManagerTest.assertMeidDeviceId ( deviceId ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_NONE : assertMacAddressReported ( ) ; break ; default : throw new java.lang.IllegalArgumentException ( ( "Did you add a new phone type? " + phoneType ) ) ; } }

Target:
public void testGetDeviceId ( ) { java.lang.String deviceId = mTelephonyManager.getDeviceId ( ) ; int phoneType = mTelephonyManager.getPhoneType ( ) ; switch ( phoneType ) { case android.telephony.TelephonyManager.PHONE_TYPE_GSM : android.telephony.cts.TelephonyManagerTest.assertImeiDeviceId ( deviceId ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_CDMA : android.telephony.cts.TelephonyManagerTest.assertMeidDeviceId ( deviceId ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_NONE : assertNull ( deviceId ) ; assertMacAddressReported ( ) ; break ; default : throw new java.lang.IllegalArgumentException ( ( "Did you add a new phone type? " + phoneType ) ) ; } }
Source:
public boolean perform ( ) { try { java.util.List < byte [ ] > l = new java.util.ArrayList < byte [ ] > ( ) ; while ( true ) { l.add ( new byte [ 1024 ] ) ; } } catch ( java.lang.OutOfMemoryError e ) { } return true ; }

Target:
public boolean perform ( ) { try { java.util.List < byte [ ] > l = new java.util.ArrayList < byte [ ] > ( ) ; while ( true ) { l.add ( new byte [ Main.OOM.ALLOC_SIZE ] ) ; } } catch ( java.lang.OutOfMemoryError e ) { } return true ; }
Source:
private com.android.jill.frontend.java.Variable getStackVariable ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , int stackIdx ) { int stackHeight = ( frame.getStackSize ( ) ) + stackIdx ; org.objectweb.asm.tree.analysis.BasicValue bv = frame.getStack ( stackHeight ) ; assert bv != ( org.objectweb.asm.tree.analysis.BasicValue.UNINITIALIZED_VALUE ) ; java.lang.String id = ( ( "-s_" + stackHeight ) + "_" ) + ( typeToUntypedDesc ( bv.getType ( ) ) ) ; return getVariable ( id , id , typeToUntyped ( bv.getType ( ) ) , null ) ; }

Target:
private com.android.jill.frontend.java.Variable getStackVariable ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , int stackIdx ) { int stackHeight = ( frame.getStackSize ( ) ) + stackIdx ; org.objectweb.asm.tree.analysis.BasicValue bv = frame.getStack ( stackHeight ) ; assert bv != ( org.objectweb.asm.tree.analysis.BasicValue.UNINITIALIZED_VALUE ) ; java.lang.String id = ( ( "-s_" + stackHeight ) + "_" ) + ( typeToUntypedDesc ( bv.getType ( ) ) ) ; com.android.jill.frontend.java.Variable variable = getVariable ( id , id , typeToUntyped ( bv.getType ( ) ) , null ) ; variable.setSynthetic ( ) ; return variable ; }
Source:
public void setTargetInfo ( @ com.android.annotations.NonNull com.android.builder.sdk.SdkInfo sdkInfo , @ com.android.annotations.NonNull com.android.builder.sdk.TargetInfo targetInfo ) { mSdkInfo = sdkInfo ; mTargetInfo = targetInfo ; if ( ( mTargetInfo.getBuildTools ( ) . getRevision ( ) . compareTo ( com.android.builder.core.AndroidBuilder.MIN_BUILD_TOOLS_REV ) ) < 0 ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "The SDK Build Tools revision (%1$s) is too low for project '%2$s'. Minimum required is %3$s" , mTargetInfo.getBuildTools ( ) . getRevision ( ) , mProjectId , com.android.builder.core.AndroidBuilder.MIN_BUILD_TOOLS_REV ) ) ; } }

Target:
public void setTargetInfo ( @ com.android.annotations.NonNull com.android.builder.sdk.SdkInfo sdkInfo , @ com.android.annotations.NonNull com.android.builder.sdk.TargetInfo targetInfo , @ com.android.annotations.NonNull java.util.Collection < com.android.builder.core.LibraryRequest > libraryRequests ) { mSdkInfo = sdkInfo ; mTargetInfo = targetInfo ; if ( ( mTargetInfo.getBuildTools ( ) . getRevision ( ) . compareTo ( com.android.builder.core.AndroidBuilder.MIN_BUILD_TOOLS_REV ) ) < 0 ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "The SDK Build Tools revision (%1$s) is too low for project '%2$s'. Minimum required is %3$s" , mTargetInfo.getBuildTools ( ) . getRevision ( ) , mProjectId , com.android.builder.core.AndroidBuilder.MIN_BUILD_TOOLS_REV ) ) ; } mLibraryRequests = com.google.common.collect.ImmutableList.copyOf ( libraryRequests ) ; }
Source:
protected void updateTarget ( ) { myTargetOperation.setComponent ( myContext.getComponents ( ) . get ( 0 ) ) ; }

Target:
protected void updateTarget ( ) { if ( ( ( myTargetOperation ) != null ) && ( ( myContext ) != null ) ) { java.util.List < com.intellij.designer.model.RadComponent > components = myContext.getComponents ( ) ; if ( ( components != null ) && ( ! ( components.isEmpty ( ) ) ) ) { myTargetOperation.setComponent ( components.get ( 0 ) ) ; } } }
Source:
public void onHostCardEmulationActivated ( int technology ) { if ( technology == ( com.android.nfc.cardemulation.CardEmulationManager.NFC_HCE_APDU ) ) { mHostEmulationManager.onHostEmulationActivated ( ) ; mPreferredServices.onHostEmulationActivated ( ) ; } else if ( technology == ( com.android.nfc.cardemulation.CardEmulationManager.NFC_HCE_NFCF ) ) { mHostNfcFEmulationManager.onHostEmulationActivated ( ) ; mNfcFServicesCache.onHostEmulationActivated ( ) ; mEnabledNfcFServices.onHostEmulationActivated ( ) ; } }

Target:
public void onHostCardEmulationActivated ( int technology ) { if ( ( mPowerManager ) != null ) { mPowerManager.userActivity ( android.os.SystemClock.uptimeMillis ( ) , PowerManager.USER_ACTIVITY_EVENT_TOUCH , 0 ) ; } if ( technology == ( com.android.nfc.cardemulation.CardEmulationManager.NFC_HCE_APDU ) ) { mHostEmulationManager.onHostEmulationActivated ( ) ; mPreferredServices.onHostEmulationActivated ( ) ; } else if ( technology == ( com.android.nfc.cardemulation.CardEmulationManager.NFC_HCE_NFCF ) ) { mHostNfcFEmulationManager.onHostEmulationActivated ( ) ; mNfcFServicesCache.onHostEmulationActivated ( ) ; mEnabledNfcFServices.onHostEmulationActivated ( ) ; } }
Source:
protected void testCreatedPackage ( java.lang.Package p ) { assertEquals ( "42" , p.getRevision ( ) . toShortString ( ) ) ; assertEquals ( "The License" , p.getLicense ( ) ) ; assertEquals ( "Some description." , p.getDescription ( ) ) ; assertEquals ( "http://description/url" , p.getDescUrl ( ) ) ; assertEquals ( "Release Note" , p.getReleaseNote ( ) ) ; assertEquals ( "http://release/note" , p.getReleaseNoteUrl ( ) ) ; assertEquals ( new com.android.sdklib.internal.repository.sources.SdkRepoSource ( "http://source/url" , null ) , p.getParentSource ( ) ) ; assertTrue ( p.isObsolete ( ) ) ; assertNotNull ( p.getArchives ( ) ) ; assertEquals ( 1 , p.getArchives ( ) . length ) ; com.android.sdklib.internal.repository.archives.Archive a = p.getArchives ( ) [ 0 ] ; assertNotNull ( a ) ; assertEquals ( Os.ANY , a.getOs ( ) ) ; assertEquals ( Arch.ANY , a.getArch ( ) ) ; assertEquals ( com.android.sdklib.internal.repository.packages.PackageTest.LOCAL_ARCHIVE_PATH , a.getLocalOsPath ( ) ) ; }

Target:
protected void testCreatedPackage ( java.lang.Package p ) { assertEquals ( "42" , p.getRevision ( ) . toShortString ( ) ) ; assertEquals ( "<License ref:null, text:The License>" , p.getLicense ( ) . toString ( ) ) ; assertEquals ( "Some description." , p.getDescription ( ) ) ; assertEquals ( "http://description/url" , p.getDescUrl ( ) ) ; assertEquals ( "Release Note" , p.getReleaseNote ( ) ) ; assertEquals ( "http://release/note" , p.getReleaseNoteUrl ( ) ) ; assertEquals ( new com.android.sdklib.internal.repository.sources.SdkRepoSource ( "http://source/url" , null ) , p.getParentSource ( ) ) ; assertTrue ( p.isObsolete ( ) ) ; assertNotNull ( p.getArchives ( ) ) ; assertEquals ( 1 , p.getArchives ( ) . length ) ; com.android.sdklib.internal.repository.archives.Archive a = p.getArchives ( ) [ 0 ] ; assertNotNull ( a ) ; assertEquals ( Os.ANY , a.getOs ( ) ) ; assertEquals ( Arch.ANY , a.getArch ( ) ) ; assertEquals ( com.android.sdklib.internal.repository.packages.PackageTest.LOCAL_ARCHIVE_PATH , a.getLocalOsPath ( ) ) ; }
Source:
public static int $opt$noinline$testProfile ( ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return Main.ensureProfilingInfo ( "$opt$noinline$testProfile" ) ; }

Target:
static void testAddMethodToProfile ( java.io.File file , java.lang.reflect.Method m ) { Main.ensureProfilingInfo ( m ) ; Main.ensureProfileProcessing ( ) ; if ( ! ( Main.presentInProfile ( file.getPath ( ) , m ) ) ) { throw new java.lang.RuntimeException ( ( ( "Method with index " + m ) + " not in the profile" ) ) ; } }
Source:
public void testDisabled ( ) throws org.json.JSONException { android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "reason" , WifiAwareNative.AWARE_STATUS_DE_FAILURE ) ; com.android.server.wifi.aware.WifiAwareHalMock.callDisabled ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onAwareDownNotification ( WifiAwareNative.AWARE_STATUS_DE_FAILURE ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }

Target:
public void testTransmitFollowupFail ( ) throws org.json.JSONException { final short transactionId = 5689 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "id" , transactionId ) ; args.putInt ( "reason" , WifiAwareNative.AWARE_STATUS_NO_OTA_ACK ) ; com.android.server.wifi.aware.WifiAwareHalMock.callTransmitFollowup ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onMessageSendFailNotification ( transactionId , WifiAwareNative.AWARE_STATUS_NO_OTA_ACK ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }
Source:
public void testDependency004 ( ) throws java.lang.Exception { com.android.jack.test.helper.IncrementalTestHelper ite = new com.android.jack.test.helper.IncrementalTestHelper ( com.android.jack.TestTools.createTempDir ( "DependenciesTest_" , "_004" ) ) ; ite.addJavaFile ( "jack.incremental" , "A.java" , ( "package jack.incremental; \n" + "public class A extends B \n" ) ) ; ite.addJavaFile ( "jack.incremental" , "B.java" , ( "package jack.incremental; \n" + "public class B \n" ) ) ; ite.incrementalBuildFromFolder ( ) ; ite.snapshotJackFilesModificationDate ( ) ; ite.incrementalBuildFromFolder ( ) ; java.util.List < java.lang.String > fqnOfRebuiltTypes = ite.getFQNOfRebuiltTypes ( ) ; junit.framework.Assert.assertEquals ( 0 , fqnOfRebuiltTypes.size ( ) ) ; }

Target:
public void testDependency004 ( ) throws java.lang.Exception { com.android.jack.test.helper.IncrementalTestHelper ite = new com.android.jack.test.helper.IncrementalTestHelper ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ) ; ite.addJavaFile ( "jack.incremental" , "A.java" , ( "package jack.incremental; \n" + "public class A extends B \n" ) ) ; ite.addJavaFile ( "jack.incremental" , "B.java" , ( "package jack.incremental; \n" + "public class B \n" ) ) ; ite.incrementalBuildFromFolder ( ) ; ite.snapshotJackFilesModificationDate ( ) ; ite.incrementalBuildFromFolder ( ) ; java.util.List < java.lang.String > fqnOfRebuiltTypes = ite.getFQNOfRebuiltTypes ( ) ; junit.framework.Assert.assertEquals ( 0 , fqnOfRebuiltTypes.size ( ) ) ; }
Source:
public void run ( ) { java.util.ArrayList < org.apache.harmony.jpda.tests.jdwp.ReferenceType.MockClass > reachableObjs = new java.util.ArrayList < org.apache.harmony.jpda.tests.jdwp.ReferenceType.MockClass > ( ) ; for ( int i = 0 ; i < ( org.apache.harmony.jpda.tests.jdwp.ReferenceType.InstancesDebuggee.reachableObjNum ) ; i ++ ) { reachableObjs.add ( new org.apache.harmony.jpda.tests.jdwp.ReferenceType.MockClass ( true ) ) ; } for ( int i = 0 ; i < ( org.apache.harmony.jpda.tests.jdwp.ReferenceType.InstancesDebuggee.unreachableObjNum ) ; i ++ ) { new org.apache.harmony.jpda.tests.jdwp.ReferenceType.MockClass ( false ) ; } synchronizer.sendMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; logWriter.println ( "--> Debuggee: InstancesDebuggee..." ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_CONTINUE ) ; }

Target:
private static void allocateUnreachableObjects ( ) { for ( int i = 0 ; i < ( org.apache.harmony.jpda.tests.jdwp.ReferenceType.InstancesDebuggee.unreachableObjNum ) ; i ++ ) { new org.apache.harmony.jpda.tests.jdwp.ReferenceType.MockClass ( false ) ; } }
Source:
public void test_limiting_to_1method_and_run_for_SimpleTest2_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , "testSimple2" , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , null ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( vogar.target.junit.JUnitRunner.class , ( ( target.getName ( ) ) + "#testSimple2" ) ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_limiting_to_1method_and_run_for_SimpleTest2_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; java.util.List < vogar.target.junit.VogarTest > tests = vogar.target.junit.JUnitRunnerFactory.createVogarTests ( target , "testSimple2" , vogar.target.JUnitRunnerTest.EMPTY_ARGS ) ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , skipPastReference , testEnvironment , 0 , tests ) ; runner.run ( null ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( vogar.target.junit.JUnitRunner.class , ( ( target.getName ( ) ) + "#testSimple2" ) ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }
Source:
public void onDestroy ( ) { super . onDestroy ( ) ; if ( ( mThread ) != null ) { mThread.quit ( ) ; } try { if ( ( mHttpResponseCache ) != null ) { mHttpResponseCache.delete ( ) ; } } catch ( java.io.IOException e ) { android.util.Log.i ( com.android.statementservice.DirectStatementService.TAG , ( "HTTP(S) response cache deletion failed:" + e ) ) ; } }

Target:
public void run ( ) { try { if ( responseCache != null ) { responseCache.delete ( ) ; } } catch ( java.io.IOException e ) { android.util.Log.i ( com.android.statementservice.DirectStatementService.TAG , ( "HTTP(S) response cache deletion failed:" + e ) ) ; } android.os.Looper.myLooper ( ) . quit ( ) ; }
Source:
public void callSessionUpdated ( com.android.ims.internal.ImsCallSession session , com.android.ims.ImsCallProfile profile ) { logi ( ( ( ( "callSessionUpdated :: session=" + session ) + " profile=" ) + profile ) ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( "callSessionUpdated :: not supported for transient conference session=" + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; setCallProfile ( profile ) ; } if ( listener != null ) { try { listener.onCallUpdated ( this ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionUpdated :: " , t ) ; } } }

Target:
public void callSessionMergeFailed ( android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsReasonInfo reasonInfo ) { loge ( ( ( ( "callSessionMergeFailed :: session=" + session ) + "reasonInfo=" ) + reasonInfo ) ) ; synchronized ( this ) { if ( isMergeHost ( ) ) { processMergeFailed ( reasonInfo ) ; } else if ( ( mMergeHost ) != null ) { mMergeHost.processMergeFailed ( reasonInfo ) ; } else { loge ( "callSessionMergeFailed :: No merge host for this conference!" ) ; } } }
Source:
public void testPreloadDensity_tvdpi ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final android.content.res.Resources res = getContext ( ) . getResources ( ) ; final int densityDpi = res.getConfiguration ( ) . densityDpi ; { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , 213 ) ; verifyPreloadDensityInner ( res , 213 ) ; } android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; android.graphics.drawable.cts.ce2b36 Merge ; }

Target:
public void testPreloadDensity ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final int densityDpi = mResources.getConfiguration ( ) . densityDpi ; try { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( mResources , densityDpi ) ; verifyPreloadDensityInner ( mResources , densityDpi ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( mResources , densityDpi ) ; } }
Source:
public void test_minus_MinusAdjuster ( ) { test.java.time.MockSimplePeriod period = test.java.time.MockSimplePeriod.of ( 7 , java.time.temporal.ChronoUnit.MINUTES ) ; java.time.OffsetTime t = TEST_11_30_59_500_PONE.minus ( period ) ; org.testng.Assert.assertEquals ( t , java.time.OffsetTime.of ( 11 , 23 , 59 , 500 , tck.java.time.TCKOffsetTime.OFFSET_PONE ) ) ; }

Target:
public void test_minus_MinusAdjuster ( ) { test.java.time.MockSimplePeriod period = test.java.time.MockSimplePeriod.of ( 7 , java.time.temporal.ChronoUnit.MINUTES ) ; java.time.OffsetTime t = tck.java.time.TCKOffsetTime.TEST_11_30_59_500_PONE.minus ( period ) ; org.testng.Assert.assertEquals ( t , java.time.OffsetTime.of ( 11 , 23 , 59 , 500 , tck.java.time.TCKOffsetTime.OFFSET_PONE ) ) ; }
Source:
public java.util.concurrent.ScheduledFuture < ? > scheduleWithFixedDelay ( java.lang.Runnable command , long initialDelay , long delay , java.util.concurrent.TimeUnit unit ) { return delegate.scheduleWithFixedDelay ( command , initialDelay , delay , unit ) ; }

Target:
public com.google.common.util.concurrent.ListenableScheduledFuture < ? > scheduleWithFixedDelay ( java.lang.Runnable command , long initialDelay , long delay , java.util.concurrent.TimeUnit unit ) { com.google.common.util.concurrent.MoreExecutors.ScheduledListeningDecorator.NeverSuccessfulListenableFutureTask task = new com.google.common.util.concurrent.MoreExecutors.ScheduledListeningDecorator.NeverSuccessfulListenableFutureTask ( command ) ; java.util.concurrent.ScheduledFuture < ? > scheduled = delegate.scheduleWithFixedDelay ( task , initialDelay , delay , unit ) ; return new com.google.common.util.concurrent.MoreExecutors.ScheduledListeningDecorator.ListenableScheduledTask < java.lang.Void > ( task , scheduled ) ; }