auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void inlineSubroutines ( ) { if ( configuration.verbose ) { java.lang.System.out.println ( "Inlining subroutines..." ) ; } new proguard.SubroutineInliner ( configuration ) . execute ( programClassPool ) ; }

Target:
private void shrink ( ) throws java.io.IOException { if ( configuration.verbose ) { java.lang.System.out.println ( "Shrinking..." ) ; if ( ( configuration.whyAreYouKeeping ) != null ) { java.lang.System.out.println ( "Explaining why classes and class members are being kept..." ) ; } if ( ( configuration.printUsage ) != null ) { java.lang.System.out.println ( ( ( "Printing usage to [" + ( fileName ( configuration.printUsage ) ) ) + "]..." ) ) ; } } programClassPool = new proguard.shrink.Shrinker ( configuration ) . execute ( programClassPool , libraryClassPool ) ; }
Source:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { final com.intellij.openapi.module.Module selectedModule = LangDataKeys.MODULE.getData ( e.getDataContext ( ) ) ; com.google.gct.idea.stats.UsageTracker.getInstance ( ) . trackEvent ( GctTracking.CATEGORY , GctTracking.DEPLOY , "show.dialog" , null ) ; com.google.gct.idea.appengine.deploy.AppEngineUpdateDialog.show ( e.getProject ( ) , selectedModule ) ; }

Target:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { final com.intellij.openapi.module.Module selectedModule = LangDataKeys.MODULE.getData ( e.getDataContext ( ) ) ; com.google.gct.login.stats.UsageTrackerService.getInstance ( ) . trackEvent ( GctTracking.CATEGORY , GctTracking.DEPLOY , "show.dialog" , null ) ; com.google.gct.idea.appengine.deploy.AppEngineUpdateDialog.show ( e.getProject ( ) , selectedModule ) ; }
Source:
private static com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode createNode ( com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode parent , java.lang.String fqn , boolean hasChildren ) { java.lang.String name = fqn.substring ( ( ( fqn.lastIndexOf ( '.' ) ) + 1 ) ) ; com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor descriptor = com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfoTest.createDesc ( name , fqn , hasChildren ) ; if ( parent != null ) { return ( ( com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ) ( parent.appendNewUiChild ( descriptor ) ) ) ; } else { return new com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ( descriptor ) ; } }

Target:
private static com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode createNode ( com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode parent , java.lang.String fqn , boolean hasChildren ) { java.lang.String name = fqn.substring ( ( ( fqn.lastIndexOf ( '.' ) ) + 1 ) ) ; com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor descriptor = com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfoTest.createDesc ( name , fqn , hasChildren ) ; if ( parent == null ) { parent = new com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfoTest.createDesc ( "doc" , "doc" , true ) ) ; } return ( ( com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode ) ( parent.appendNewUiChild ( descriptor ) ) ) ; }
Source:
public java.lang.String guessZoneIdByCountry ( java.lang.String isoCountryCode , long whenMillis ) { libcore.util.CountryTimeZones countryTimeZones = libcore.util.TimeZoneFinder.getInstance ( ) . lookupCountryTimeZones ( isoCountryCode ) ; if ( countryTimeZones == null ) { return null ; } if ( countryTimeZones.isDefaultOkForCountryTimeZoneDetection ( whenMillis ) ) { return countryTimeZones.getDefaultTimeZoneId ( ) ; } return null ; }

Target:
public com.android.internal.telephony.TimeZoneLookupHelper.CountryResult lookupByCountry ( java.lang.String isoCountryCode , long whenMillis ) { libcore.util.CountryTimeZones countryTimeZones = libcore.util.TimeZoneFinder.getInstance ( ) . lookupCountryTimeZones ( isoCountryCode ) ; if ( countryTimeZones == null ) { return null ; } if ( ( countryTimeZones.getDefaultTimeZoneId ( ) ) == null ) { return null ; } return new com.android.internal.telephony.TimeZoneLookupHelper.CountryResult ( countryTimeZones.getDefaultTimeZoneId ( ) , countryTimeZones.isDefaultOkForCountryTimeZoneDetection ( whenMillis ) , whenMillis ) ; }
Source:
public static org.w3c.dom.Document parse ( @ com.android.annotations.NonNull byte [ ] data ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String xml = com.android.utils.PositionXmlParser.getXmlString ( data ) ; xml = com.android.utils.XmlUtils.stripBom ( xml ) ; return com.android.utils.PositionXmlParser.parse ( xml , new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) , true ) ; }

Target:
public static org.w3c.dom.Document parse ( @ com.android.annotations.NonNull byte [ ] data , boolean checkDtd ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String xml = com.android.utils.PositionXmlParser.getXmlString ( data ) ; xml = com.android.utils.XmlUtils.stripBom ( xml ) ; return com.android.utils.PositionXmlParser.parse ( xml , new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) , true , checkDtd ) ; }
Source:
public javax.security.auth.x500.X500Principal getIssuerX500Principal ( ) { if ( ( info ) == null ) { return null ; } try { javax.security.auth.x500.X500Principal issuer = ( ( javax.security.auth.x500.X500Principal ) ( info.get ( ( ( ( sun.security.x509.CertificateIssuerName.NAME ) + ( sun.security.x509.X509CertImpl.DOT ) ) + ( sun.security.x509.CertificateIssuerName.DN_PRINCIPAL ) ) ) ) ) ; return issuer ; } catch ( java.lang.Exception e ) { return null ; } }

Target:
public javax.security.auth.x500.X500Principal getIssuerX500Principal ( ) { if ( ( info ) == null ) { return null ; } try { javax.security.auth.x500.X500Principal issuer = ( ( javax.security.auth.x500.X500Principal ) ( info.get ( ( ( ( sun.security.x509.X509CertInfo.ISSUER ) + ( sun.security.x509.X509CertImpl.DOT ) ) + "x500principal" ) ) ) ) ; return issuer ; } catch ( java.lang.Exception e ) { return null ; } }
Source:
public void testInvalidInsertionCarrierInfo ( ) { try { android.content.ContentValues contentValues = new android.content.ContentValues ( ) ; contentValues.put ( CarrierIdentification.GID1 , com.android.providers.telephony.CarrierIdProviderTest.dummy_gid1 ) ; mContentResolver.insert ( CarrierIdentification.CONTENT_URI , contentValues ) ; org.junit.Assert.fail ( "should throw an exception for null mccmnc" ) ; } catch ( java.lang.Exception e ) { android.util.Log.d ( com.android.providers.telephony.CarrierIdProviderTest.TAG , ( "Error inserting carrier info:" + e ) ) ; assertTrue ( ( e instanceof android.database.SQLException ) ) ; assertFalse ( mContentObserver.changed ) ; } }

Target:
public void testDuplicateInsertionCarrierInfo ( ) { try { android.content.ContentValues contentValues = com.android.providers.telephony.CarrierIdProviderTest.createCarrierInfoInternal ( ) ; mContentResolver.insert ( CarrierIdentification.All.CONTENT_URI , contentValues ) ; mContentResolver.insert ( CarrierIdentification.All.CONTENT_URI , contentValues ) ; org.junit.Assert.fail ( "should throw an exception for duplicate carrier info" ) ; } catch ( java.lang.Exception e ) { android.util.Log.d ( com.android.providers.telephony.CarrierIdProviderTest.TAG , ( "Error inserting carrier info:" + e ) ) ; } }
Source:
private void sendInfoNotifications ( java.lang.String callId , com.android.incallui.ContactInfoCache.ContactCacheEntry entry ) { com.android.dialer.common.Assert.isMainThread ( ) ; final java.util.Set < com.android.incallui.ContactInfoCache.ContactInfoCacheCallback > callBacks = mCallBacks.get ( callId ) ; if ( callBacks != null ) { for ( com.android.incallui.ContactInfoCache.ContactInfoCacheCallback callBack : callBacks ) { callBack.onContactInfoComplete ( callId , entry ) ; } } }

Target:
private void sendInfoNotifications ( java.lang.String callId , com.android.incallui.ContactInfoCache.ContactCacheEntry entry ) { android.os.Trace.beginSection ( "ContactInfoCache.sendInfoNotifications" ) ; com.android.dialer.common.Assert.isMainThread ( ) ; final java.util.Set < com.android.incallui.ContactInfoCache.ContactInfoCacheCallback > callBacks = mCallBacks.get ( callId ) ; if ( callBacks != null ) { for ( com.android.incallui.ContactInfoCache.ContactInfoCacheCallback callBack : callBacks ) { callBack.onContactInfoComplete ( callId , entry ) ; } } android.os.Trace.endSection ( ) ; }
Source:
public void copyFrom ( float [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFrom" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFrom ( int [ ] d ) { validateIsInt32 ( ) ; copyFromUnchecked ( d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public android.os.Bundle getApplicationRestrictions ( @ android.annotation.Nullable android.content.ComponentName admin , java.lang.String packageName ) { throwIfParentInstance ( "getApplicationRestrictions" ) ; if ( ( mService ) != null ) { try { return mService.getApplicationRestrictions ( admin , packageName ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return null ; }

Target:
public boolean setApplicationHidden ( @ android.annotation.NonNull android.content.ComponentName admin , java.lang.String packageName , boolean hidden ) { throwIfParentInstance ( "setApplicationHidden" ) ; if ( ( mService ) != null ) { try { return mService.setApplicationHidden ( admin , mContext.getPackageName ( ) , packageName , hidden ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return false ; }
Source:
public void setExternalCallStateListener ( com.android.ims.ImsExternalCallStateListener externalCallStateListener ) throws com.android.ims.ImsException { try { if ( com.android.ims.ImsMultiEndpoint.DBG ) android.telephony.Rlog.d ( com.android.ims.ImsMultiEndpoint.TAG , "setExternalCallStateListener" ) ; mImsMultiendpoint.setListener ( new com.android.ims.ImsMultiEndpoint.ImsExternalCallStateListenerProxy ( externalCallStateListener ) ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "setExternalCallStateListener could not be set." , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }

Target:
public void setExternalCallStateListener ( com.android.ims.ImsExternalCallStateListener externalCallStateListener ) throws com.android.ims.ImsException { try { if ( com.android.ims.ImsMultiEndpoint.DBG ) android.telephony.Rlog.d ( com.android.ims.ImsMultiEndpoint.TAG , "setExternalCallStateListener" ) ; mImsMultiendpoint.setListener ( new com.android.ims.ImsMultiEndpoint.ImsExternalCallStateListenerProxy ( externalCallStateListener ) ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "setExternalCallStateListener could not be set." , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }
Source:
public void mouseDoubleClick ( org.eclipse.swt.events.MouseEvent e ) { com.android.hierarchyviewerlib.ui.util.DrawableViewNode clickedNode = null ; synchronized ( this ) { if ( ( ( tree ) != null ) && ( ( viewport ) != null ) ) { com.android.hierarchyviewerlib.ui.util.DrawableViewNode.Point pt = transformPoint ( e.x , e.y ) ; clickedNode = tree.getSelected ( pt.x , pt.y ) ; } } if ( clickedNode != null ) { com.android.hierarchyviewerlib.HierarchyViewerDirector.getDirector ( ) . showCapture ( getShell ( ) , clickedNode.viewNode ) ; } }

Target:
public void mouseDoubleClick ( org.eclipse.swt.events.MouseEvent e ) { com.android.hierarchyviewerlib.ui.util.DrawableViewNode clickedNode = null ; synchronized ( this ) { if ( ( ( tree ) != null ) && ( ( viewport ) != null ) ) { com.android.hierarchyviewerlib.ui.util.DrawableViewNode.Point pt = transformPoint ( e.x , e.y ) ; clickedNode = tree.getSelected ( pt.x , pt.y ) ; } } if ( clickedNode != null ) { com.android.hierarchyviewerlib.HierarchyViewerDirector.getDirector ( ) . showCapture ( getShell ( ) , clickedNode.viewNode ) ; doubleClicked = true ; } }
Source:
public void removeTasks ( java.util.List < com.intellij.openapi.externalSystem.model.task.TaskData > tasks , com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.Phase phase ) { if ( tasks.isEmpty ( ) ) return ; final com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsManager.ExternalProjectsStateProvider stateProvider = com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsManager.getInstance ( myProject ) . getStateProvider ( ) ; for ( com.intellij.openapi.externalSystem.model.task.TaskData task : tasks ) { final com.intellij.openapi.externalSystem.service.project.manage.TaskActivationState taskActivationState = stateProvider.getTasksActivation ( task.getOwner ( ) , task.getLinkedExternalProjectPath ( ) ) ; taskActivationState.getTasks ( phase ) . remove ( task.getName ( ) ) ; } fireTasksChanged ( ) ; }

Target:
public void addTasks ( @ org.jetbrains.annotations.NotNull java.util.Collection < com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.TaskActivationEntry > entries ) { if ( entries.isEmpty ( ) ) return ; final com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsManager.ExternalProjectsStateProvider stateProvider = com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsManager.getInstance ( myProject ) . getStateProvider ( ) ; for ( com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.TaskActivationEntry entry : entries ) { final com.intellij.openapi.externalSystem.service.project.manage.TaskActivationState taskActivationState = stateProvider.getTasksActivation ( entry.systemId , entry.projectPath ) ; taskActivationState.getTasks ( entry.phase ) . add ( entry.taskName ) ; } fireTasksChanged ( ) ; }
Source:
public void setSoWriteTimeout ( int writeTimeoutMilliseconds ) throws java.net.SocketException { this . writeTimeoutMilliseconds = writeTimeoutMilliseconds ; android.system.StructTimeval tv = android.system.StructTimeval.fromMillis ( writeTimeoutMilliseconds ) ; try { android.system.Os.setsockoptTimeval ( getFileDescriptor$ ( ) , android.system.OsConstants.SOL_SOCKET , android.system.OsConstants.SO_SNDTIMEO , tv ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }

Target:
public javax.crypto.SecretKey getPSKKey ( org.conscrypt.PSKKeyManager keyManager , java.lang.String identityHint , java.lang.String identity ) { return keyManager.getKey ( identityHint , identity , this ) ; }
Source:
private void makeFakeSysImgInternal ( java.io.File imagesDir , java.lang.String abiType ) throws java.io.IOException { imagesDir.mkdirs ( ) ; new java.io.File ( imagesDir , "userdata.img" ) . createNewFile ( ) ; java.io.File sourceProp = new java.io.File ( imagesDir , com.android.SdkConstants.FN_SOURCE_PROP ) ; sourceProp.createNewFile ( ) ; java.io.FileWriter out = new java.io.FileWriter ( sourceProp ) ; out.write ( ( ( com.android.sdklib.repository.PkgProps.VERSION_API_LEVEL ) + "=0\n" ) ) ; out.write ( ( ( ( ( com.android.sdklib.repository.PkgProps.SYS_IMG_ABI ) + "=" ) + abiType ) + "\n" ) ) ; out.close ( ) ; }

Target:
private void makeBuildTools ( java.io.File buildToolsTopDir ) throws java.io.IOException { buildToolsTopDir.mkdir ( ) ; for ( java.lang.String revision : new java.lang.String [ ] { "3.0.0" , "3.0.1" , "12.3.4 rc5" } ) { java.io.File buildToolsDir = new java.io.File ( buildToolsTopDir , revision ) ; buildToolsDir.mkdir ( ) ; createSourceProps ( buildToolsDir , PkgProps.PKG_REVISION , revision ) ; new java.io.File ( buildToolsDir , com.android.SdkConstants.FN_AAPT ) . createNewFile ( ) ; new java.io.File ( buildToolsDir , com.android.SdkConstants.FN_AIDL ) . createNewFile ( ) ; new java.io.File ( buildToolsDir , com.android.SdkConstants.FN_DX ) . createNewFile ( ) ; } }
Source:
public void test2 ( ) { com.android.utils.HtmlBuilder builder = new com.android.utils.HtmlBuilder ( ) ; builder.add ( "Plain" ) . newline ( ) . addLink ( "mylink" , "runnable:0" ) . newline ( ) ; builder.beginList ( ) . listItem ( ) . add ( "item 1" ) . listItem ( ) . add ( "item 2" ) . endList ( ) ; assertEquals ( ( "Plain<BR/>\n" + ( ( ( ( "<A HREF=\"runnable:0\">mylink</A><BR/>\n" + "<DL>\n" ) + "<DD>-&NBSP;item 1\n" ) + "<DD>-&NBSP;item 2\n" ) + "</DL>" ) ) , builder.getHtml ( ) ) ; }

Target:
public void testAddItalic ( ) { com.android.utils.HtmlBuilder builder = new com.android.utils.HtmlBuilder ( ) ; builder.addItalic ( "This is italic" ) ; assertEquals ( "<I>This is italic</I>" , builder.getHtml ( ) ) ; }
Source:
private void loadViewServerInfoAndWindows ( final com.android.ddmlib.IDevice device ) { executeInBackground ( new java.lang.Runnable ( ) { public void run ( ) { com.android.hierarchyviewerlib.device.DeviceBridge.ViewServerInfo viewServerInfo = com.android.hierarchyviewerlib.device.DeviceBridge.loadViewServerInfo ( device ) ; if ( viewServerInfo == null ) { return ; } com.android.hierarchyviewerlib.device.Window [ ] windows = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindows ( device ) ; com.android.hierarchyviewerlib.ComponentRegistry.getDeviceSelectionModel ( ) . addDevice ( device , windows ) ; if ( ( viewServerInfo.protocolVersion ) >= 3 ) { com.android.hierarchyviewerlib.device.WindowUpdater.startListenForWindowChanges ( com.android.hierarchyviewerlib.HierarchyViewerDirector.this , device ) ; focusChanged ( device ) ; } } } ) ; }

Target:
private void loadViewServerInfoAndWindows ( final com.android.ddmlib.IDevice device ) { com.android.hierarchyviewerlib.device.DeviceBridge.ViewServerInfo viewServerInfo = com.android.hierarchyviewerlib.device.DeviceBridge.loadViewServerInfo ( device ) ; if ( viewServerInfo == null ) { return ; } com.android.hierarchyviewerlib.device.Window [ ] windows = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindows ( device ) ; com.android.hierarchyviewerlib.models.DeviceSelectionModel.getModel ( ) . addDevice ( device , windows ) ; if ( ( viewServerInfo.protocolVersion ) >= 3 ) { com.android.hierarchyviewerlib.device.WindowUpdater.startListenForWindowChanges ( this , device ) ; focusChanged ( device ) ; } }
Source:
public void run ( ) { java.io.InputStreamReader is = new java.io.InputStreamReader ( process.getInputStream ( ) ) ; java.io.BufferedReader outReader = new java.io.BufferedReader ( is ) ; try { while ( true ) { java.lang.String line = outReader.readLine ( ) ; if ( output != null ) { output.out ( line ) ; } if ( line == null ) { break ; } } } catch ( java.io.IOException e ) { } }

Target:
public void run ( ) { java.io.InputStreamReader is = new java.io.InputStreamReader ( process.getInputStream ( ) ) ; java.io.BufferedReader outReader = new java.io.BufferedReader ( is ) ; try { while ( true ) { java.lang.String line = outReader.readLine ( ) ; if ( output != null ) { output.out ( line ) ; } if ( line == null ) { break ; } } } catch ( java.io.IOException e ) { } finally { com.google.common.io.Closeables.closeQuietly ( outReader ) ; } }
Source:
static com.android.internal.telephony.cat.IconLoader getInstance ( android.os.Handler caller , com.android.internal.telephony.uicc.IccFileHandler fh ) { if ( ( com.android.internal.telephony.cat.IconLoader.sLoader ) != null ) { return com.android.internal.telephony.cat.IconLoader.sLoader ; } if ( fh != null ) { android.os.HandlerThread thread = new android.os.HandlerThread ( "Cat Icon Loader" ) ; thread.start ( ) ; return new com.android.internal.telephony.cat.IconLoader ( thread.getLooper ( ) , fh ) ; } return null ; }

Target:
static com.android.internal.telephony.cat.IconLoader getInstance ( android.os.Handler caller , com.android.internal.telephony.uicc.IccFileHandler fh ) { if ( ( com.android.internal.telephony.cat.IconLoader.sLoader ) != null ) { return com.android.internal.telephony.cat.IconLoader.sLoader ; } if ( fh != null ) { com.android.internal.telephony.cat.IconLoader.sThread = new android.os.HandlerThread ( "Cat Icon Loader" ) ; com.android.internal.telephony.cat.IconLoader.sThread.start ( ) ; return new com.android.internal.telephony.cat.IconLoader ( com.android.internal.telephony.cat.IconLoader.sThread.getLooper ( ) , fh ) ; } return null ; }
Source:
private void stopResultProcessing ( boolean allResultsArrived ) { if ( ! allResultsArrived ) { for ( com.google.gct.testing.ConfigurationResult result : results.values ( ) ) { if ( ! ( markedAsFinishedConfigurations.contains ( result ) ) ) { resultParser.getTestRunListener ( ) . stopTestConfiguration ( result.getConfigurationInstance ( ) . getDisplayString ( ) , ConfigurationStopReason.TIMED_OUT ) ; } } } resultParser.flush ( ) ; }

Target:
private void timeoutResultProcessing ( boolean allResultsArrived ) { if ( ! allResultsArrived ) { for ( java.lang.String configurationInstance : expectedConfigurationInstances ) { resultParser.getTestRunListener ( ) . stopTestConfiguration ( configurationInstance , ConfigurationStopReason.TIMED_OUT ) ; } } resultParser.flush ( ) ; }
Source:
public void requestNetwork ( android.net.NetworkRequest request , int timeoutMs , android.net.ConnectivityManager.NetworkCallback networkCallback ) { if ( timeoutMs <= 0 ) { throw new java.lang.IllegalArgumentException ( ( "Non-positive timeoutMs: " + timeoutMs ) ) ; } int legacyType = inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ; requestNetwork ( request , networkCallback , timeoutMs , legacyType , getDefaultHandler ( ) ) ; }

Target:
private static void checkTimeout ( int timeoutMs ) { com.android.internal.util.Preconditions.checkArgumentPositive ( timeoutMs , "timeoutMs must be strictly positive." ) ; }
Source:
public static java.time.temporal.WeekFields of ( java.util.Locale locale ) { java.util.Objects.requireNonNull ( locale , "locale" ) ; locale = new java.util.Locale ( locale.getLanguage ( ) , locale.getCountry ( ) ) ; int calDow = sun.util.locale.provider.CalendarDataUtility.retrieveFirstDayOfWeek ( locale ) ; java.time.DayOfWeek dow = java.time.DayOfWeek.SUNDAY.plus ( ( calDow - 1 ) ) ; int minDays = sun.util.locale.provider.CalendarDataUtility.retrieveMinimalDaysInFirstWeek ( locale ) ; return java.time.temporal.WeekFields.of ( dow , minDays ) ; }

Target:
public static java.time.temporal.WeekFields of ( java.util.Locale locale ) { java.util.Objects.requireNonNull ( locale , "locale" ) ; android.icu.util.ULocale ulocale = android.icu.util.ULocale.forLocale ( locale ) ; java.lang.String region = android.icu.util.ULocale.getRegionForSupplementalData ( ulocale , true ) ; android.icu.util.Calendar.WeekData weekData = android.icu.util.Calendar.getWeekDataForRegion ( region ) ; java.time.DayOfWeek dow = java.time.DayOfWeek.SUNDAY.plus ( ( ( weekData.firstDayOfWeek ) - 1 ) ) ; return java.time.temporal.WeekFields.of ( dow , weekData.minimalDaysInFirstWeek ) ; }
Source:
protected java.lang.String createMessage ( @ javax.annotation.Nonnull java.lang.String description ) { return ( ( ( description + " cannot have its " ) + ( ( permission ) == ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ? "readable " : ( permission ) == ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ? "writable " : ( permission ) == ( com.android.sched.util.file.FileOrDirectory.Permission.EXECUTE ) ? "executable " : "???" ) ) + "permission set" ) + ( ( change ) == ( com.android.sched.util.file.FileOrDirectory.ChangePermission.EVERYBODY ) ? "for everybody" : "" ) ; }

Target:
protected java.lang.String createMessage ( @ javax.annotation.Nonnull java.lang.String description ) { return ( ( ( ( description + " cannot have its " ) + ( ( permission ) == ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ? "readable" : ( permission ) == ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ? "writable" : ( permission ) == ( com.android.sched.util.file.FileOrDirectory.Permission.EXECUTE ) ? "executable" : "???" ) ) + " permission " ) + ( ( setOrClear ) == ( com.android.sched.util.file.CannotSetPermissionException.SetOrClearPermission.SET ) ? "set" : ( setOrClear ) == ( com.android.sched.util.file.CannotSetPermissionException.SetOrClearPermission.CLEAR ) ? "cleared" : "???" ) ) + ( ( change ) == ( com.android.sched.util.file.FileOrDirectory.ChangePermission.EVERYBODY ) ? " for everybody" : "" ) ; }
Source:
void removeCall ( java.lang.String callId ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.removeCall ( callId ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void putExtras ( java.lang.String callId , android.os.Bundle extras ) { android.telecom.Log.v ( this , "putExtras: %s" , callId ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.putExtras ( callId , extras , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
void onRemovedFromCallList ( ) { com.android.dialer.common.LogUtil.enterBlock ( "DialerCall.onRemovedFromCallList" ) ; videoTechManager.dispatchRemovedFromCallList ( ) ; if ( ( rttTranscript ) != null ) { com.google.common.util.concurrent.Futures.addCallback ( com.android.dialer.rtt.RttTranscriptUtil.saveRttTranscript ( context , rttTranscript ) , new com.android.dialer.common.concurrent.DefaultFutureCallback ( ) , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; rttTranscript = null ; } }

Target:
void onRemovedFromCallList ( ) { com.android.dialer.common.LogUtil.enterBlock ( "DialerCall.onRemovedFromCallList" ) ; if ( ( videoTechManager ) != null ) { videoTechManager.dispatchRemovedFromCallList ( ) ; } if ( ( ( rttTranscript ) != null ) && ( ! ( isCallRemoved ) ) ) { com.google.common.util.concurrent.Futures.addCallback ( com.android.dialer.rtt.RttTranscriptUtil.saveRttTranscript ( context , rttTranscript ) , new com.android.dialer.common.concurrent.DefaultFutureCallback ( ) , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; } isCallRemoved = true ; }
Source:
public void stop ( ) { disposeConnection ( ) ; finishProcessAndRedirectors ( ) ; closeConnection ( ) ; if ( settings.isListenConnectorKind ( ) ) { try { transport.stopListening ( ) ; } catch ( java.io.IOException e ) { logWriter.println ( ( "IOException in stopping transport listening: " + e ) ) ; } } }

Target:
private void tearDownConnection ( ) { closeConnection ( ) ; if ( settings.isListenConnectorKind ( ) ) { try { transport.stopListening ( ) ; } catch ( java.io.IOException e ) { logWriter.println ( ( "IOException in transport listening stopping: " + e ) ) ; } } }
Source:
public static java.security.KeyFactory getInstance ( java.lang.String algorithm , java.security.Provider provider ) throws java.security.NoSuchAlgorithmException { if ( provider == null ) { throw new java.lang.IllegalArgumentException ( ) ; } if ( algorithm == null ) { throw new java.lang.NullPointerException ( "algorithm == null" ) ; } java.lang.Object spi = java.security.KeyFactory.ENGINE.getInstance ( algorithm , provider , null ) ; return new java.security.KeyFactory ( ( ( java.security.KeyFactorySpi ) ( spi ) ) , provider , algorithm ) ; }

Target:
public static java.security.KeyFactory getInstance ( java.lang.String algorithm , java.security.Provider provider ) throws java.security.NoSuchAlgorithmException { if ( provider == null ) { throw new java.lang.IllegalArgumentException ( "provider == null" ) ; } if ( algorithm == null ) { throw new java.lang.NullPointerException ( "algorithm == null" ) ; } java.lang.Object spi = java.security.KeyFactory.ENGINE.getInstance ( algorithm , provider , null ) ; return new java.security.KeyFactory ( ( ( java.security.KeyFactorySpi ) ( spi ) ) , provider , algorithm ) ; }
Source:
public void writeStringData ( java.lang.String value ) { try { int length = value.length ( ) ; writeUleb128 ( length ) ; write ( com.android.dx.util.Mutf8.encode ( value ) ) ; writeByte ( 0 ) ; } catch ( java.io.UTFDataFormatException e ) { throw new java.lang.AssertionError ( ) ; } }

Target:
public void writeStringData ( java.lang.String value ) { try { int length = value.length ( ) ; writeUleb128 ( length ) ; write ( com.android.dex.Mutf8.encode ( value ) ) ; writeByte ( 0 ) ; } catch ( java.io.UTFDataFormatException e ) { throw new java.lang.AssertionError ( ) ; } }
Source:
private static void loadRootRules ( ) { if ( ( android.icu.impl.coll.CollationLoader.rootRules ) != null ) { return ; } synchronized ( android.icu.impl.coll.CollationLoader.class ) { if ( ( android.icu.impl.coll.CollationLoader.rootRules ) == null ) { android.icu.util.UResourceBundle rootBundle = android.icu.util.UResourceBundle.getBundleInstance ( ICUResourceBundle.ICU_COLLATION_BASE_NAME , ULocale.ROOT ) ; android.icu.impl.coll.CollationLoader.rootRules = rootBundle.getString ( "UCARules" ) ; } } }

Target:
private static void loadRootRules ( ) { if ( ( android.icu.impl.coll.CollationLoader.rootRules ) != null ) { return ; } synchronized ( android.icu.impl.coll.CollationLoader.class ) { if ( ( android.icu.impl.coll.CollationLoader.rootRules ) == null ) { android.icu.util.UResourceBundle rootBundle = android.icu.util.UResourceBundle.getBundleInstance ( ICUData.ICU_COLLATION_BASE_NAME , ULocale.ROOT ) ; android.icu.impl.coll.CollationLoader.rootRules = rootBundle.getString ( "UCARules" ) ; } } }
Source:
final void get ( char [ ] dst , int dstOffset , int charCount ) { int byteCount = checkGetBounds ( SizeOf.CHAR , dst.length , dstOffset , charCount ) ; this . block.peekCharArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , charCount , order.needsSwap ) ; position += byteCount ; }

Target:
public java.nio.ByteBuffer put ( byte [ ] src , int srcOffset , int byteCount ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkPutBounds ( 1 , src.length , srcOffset , byteCount ) ; this . block.pokeByteArray ( ( ( offset ) + ( position ) ) , src , srcOffset , byteCount ) ; position += byteCount ; return this ; }
Source:
public int getMaxTransceiveLength ( int technology ) { switch ( technology ) { case android.nfc.tech.TagTechnology.NFC_A : case android.nfc.tech.TagTechnology.MIFARE_CLASSIC : case android.nfc.tech.TagTechnology.MIFARE_ULTRALIGHT : return 253 ; case android.nfc.tech.TagTechnology.NFC_B : return 253 ; case android.nfc.tech.TagTechnology.NFC_V : return 253 ; case android.nfc.tech.TagTechnology.ISO_DEP : return mIsoDepMaxTransceiveLength ; case android.nfc.tech.TagTechnology.NFC_F : return 252 ; default : return 0 ; } }

Target:
public int getMaxTransceiveLength ( int technology ) { switch ( technology ) { case android.nfc.tech.TagTechnology.NFC_A : case android.nfc.tech.TagTechnology.MIFARE_CLASSIC : case android.nfc.tech.TagTechnology.MIFARE_ULTRALIGHT : return 253 ; case android.nfc.tech.TagTechnology.NFC_B : return 253 ; case android.nfc.tech.TagTechnology.NFC_V : return 253 ; case android.nfc.tech.TagTechnology.ISO_DEP : return mIsoDepMaxTransceiveLength ; case android.nfc.tech.TagTechnology.NFC_F : return 255 ; default : return 0 ; } }
Source:
public static java.lang.String getMethodSignatureWithoutName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( '(' ) ; for ( com.android.jack.ir.ast.JType p : call.getMethodId ( ) . getParamTypes ( ) ) { sb.append ( com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( p ) ) ; } sb.append ( ')' ) ; sb.append ( com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( call.getType ( ) ) ) ; return sb.toString ( ) ; }

Target:
public static java.lang.String getMethodSignatureWithoutName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( '(' ) ; for ( com.android.jack.ir.ast.JType p : call.getMethodId ( ) . getParamTypes ( ) ) { sb.append ( com.android.jack.backend.dex.rop.RopHelper.formatterWithClosure.getName ( p , false ) ) ; } sb.append ( ')' ) ; sb.append ( com.android.jack.backend.dex.rop.RopHelper.formatterWithClosure.getName ( call.getType ( ) , false ) ) ; return sb.toString ( ) ; }
Source:
public void setVideoState ( java.lang.String callId , int videoState ) { android.telecom.Log.startSession ( "CSW.sVS" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setVideoState %s %d" , callId , videoState ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.setVideoState ( videoState ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }

Target:
public void setVideoState ( java.lang.String callId , int videoState , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , "CSW.sVS" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setVideoState %s %d" , callId , videoState ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.setVideoState ( videoState ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
public static java.util.List < java.lang.Integer > getInts ( android.security.keymaster.KeyCharacteristics keyCharacteristics , int tag ) { java.util.List < java.lang.Integer > result = new java.util.ArrayList < java.lang.Integer > ( ) ; result.addAll ( keyCharacteristics.hwEnforced.getInts ( tag ) ) ; result.addAll ( keyCharacteristics.swEnforced.getInts ( tag ) ) ; return result ; }

Target:
public static java.lang.String [ ] getJcaDigestAlgorithmsFromKeymasterDigests ( java.util.Collection < java.lang.Integer > keymasterDigests ) { if ( keymasterDigests.isEmpty ( ) ) { return libcore.util.EmptyArray.STRING ; } java.lang.String [ ] result = new java.lang.String [ keymasterDigests.size ( ) ] ; int offset = 0 ; for ( int keymasterDigest : keymasterDigests ) { result [ offset ] = android.security.KeymasterUtils.getJcaDigestAlgorithmFromKeymasterDigest ( keymasterDigest ) ; offset ++ ; } return result ; }
Source:
public java.lang.String getName ( android.icu.impl.NameType type ) { if ( ( ( _names ) != null ) && ( ( type.ordinal ( ) ) < ( _names.length ) ) ) { return _names [ type.ordinal ( ) ] ; } else { return null ; } }

Target:
public java.lang.String getName ( android.icu.impl.NameType type ) { int index = android.icu.impl.TimeZoneNamesImpl.ZNames.getNameTypeIndex ( type ) ; if ( ( ( _names ) != null ) && ( index < ( _names.length ) ) ) { return _names [ index ] ; } else { return null ; } }
Source:
private void simPinChanged ( boolean success ) { if ( ! success ) { android.widget.Toast.makeText ( this , mRes.getString ( R.string.sim_change_failed ) , Toast.LENGTH_SHORT ) . show ( ) ; } else { android.widget.Toast.makeText ( this , mRes.getString ( R.string.sim_change_succeeded ) , Toast.LENGTH_SHORT ) . show ( ) ; } resetDialogState ( ) ; }

Target:
private void iccPinChanged ( boolean success ) { if ( ! success ) { android.widget.Toast.makeText ( this , mRes.getString ( R.string.sim_change_failed ) , Toast.LENGTH_SHORT ) . show ( ) ; } else { android.widget.Toast.makeText ( this , mRes.getString ( R.string.sim_change_succeeded ) , Toast.LENGTH_SHORT ) . show ( ) ; } resetDialogState ( ) ; }
Source:
private java.lang.String getDefaultHttpMethod ( com.google.gct.idea.appengine.validation.PsiMethod psiMethod ) { java.lang.String methodName = psiMethod.getName ( ) ; for ( com.google.gct.idea.appengine.validation.RestSignatureInspection.RestMethod entry : com.google.gct.idea.appengine.validation.RestSignatureInspection.RestMethod.values ( ) ) { if ( methodName.startsWith ( entry.getMethodNamePrefix ( ) ) ) { return entry.getHttpMethod ( ) ; } } throw new java.lang.AssertionError ( ( ( "It's impossible for method" + ( psiMethod.getName ( ) ) ) + " to map to no REST path." ) ) ; }

Target:
private com.google.gct.idea.appengine.validation.RestSignatureInspection.RestMethod getDefaultRestMethod ( com.google.gct.idea.appengine.validation.PsiMethod psiMethod ) { java.lang.String methodName = psiMethod.getName ( ) ; for ( com.google.gct.idea.appengine.validation.RestSignatureInspection.RestMethod entry : com.google.gct.idea.appengine.validation.RestSignatureInspection.RestMethod.values ( ) ) { if ( methodName.startsWith ( entry.getMethodNamePrefix ( ) ) ) { return entry ; } } throw new java.lang.AssertionError ( ( ( "It's impossible for method" + ( psiMethod.getName ( ) ) ) + " to map to no REST path." ) ) ; }
Source:
void setIsConferenced ( java.lang.String callId , java.lang.String conferenceCallId ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { android.telecom.Log.d ( this , "sending connection %s with conference %s" , callId , conferenceCallId ) ; adapter.setIsConferenced ( callId , conferenceCallId ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void setIsConferenced ( java.lang.String callId , java.lang.String conferenceCallId ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { android.telecom.Log.d ( this , "sending connection %s with conference %s" , callId , conferenceCallId ) ; adapter.setIsConferenced ( callId , conferenceCallId , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public void callSessionMergeFailed ( com.android.ims.internal.ImsCallSession session , com.android.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!" ) ; } } }

Target:
public void callSessionMergeComplete ( android.telephony.ims.ImsCallSession newSession ) { logi ( ( "callSessionMergeComplete :: newSession =" + newSession ) ) ; if ( ! ( isMergeHost ( ) ) ) { mMergeHost.processMergeComplete ( ) ; } else { if ( newSession != null ) { mTransientConferenceSession = ( doesCallSessionExistsInMerge ( newSession ) ) ? null : newSession ; } processMergeComplete ( ) ; } }
Source:
public void testLamba040_ByLib ( ) throws java.lang.Exception { java.io.File lib2 = makeLibrary ( new java.io.File [ ] { } , new java.io.File ( TEST001.directory , "lib2" ) ) ; java.io.File lib1 = makeLibrary ( new java.io.File [ ] { lib2 } , new java.io.File ( TEST001.directory , "lib1" ) ) ; java.io.File libJack = makeLibrary ( new java.io.File [ ] { lib2 , lib1 } , new java.io.File ( TEST001.directory , "jack" ) ) ; test ( TEST001.jUnit , lib2 , lib1 , libJack ) ; }

Target:
public void testLamba044_ByLib ( ) throws java.lang.Exception { java.io.File lib2 = makeLibrary ( new java.io.File [ ] { } , new java.io.File ( TEST001.directory , "lib2" ) ) ; java.io.File lib1 = makeLibrary ( new java.io.File [ ] { lib2 } , new java.io.File ( TEST001.directory , "lib1" ) ) ; java.io.File libJack = makeLibrary ( new java.io.File [ ] { lib2 , lib1 } , new java.io.File ( TEST001.directory , "jack" ) ) ; test ( TEST001.jUnit , lib2 , lib1 , libJack ) ; }
Source:
public boolean checkForCondition ( ) { android.support.test.uiautomator.UiObject unlock = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . packageName ( "com.android.keyboard" ) . descriptionContains ( "Slide area" ) ) ; android.support.test.uiautomator.UiObject unlock2 = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( "com.android.systemui:id/lock_icon" ) ) ; if ( ( unlock.exists ( ) ) || ( unlock2.exists ( ) ) ) { mDevice.pressMenu ( ) ; return true ; } return false ; }

Target:
public boolean checkForCondition ( ) { android.support.test.uiautomator.UiObject unlock = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . packageName ( "com.android.keyboard" ) . descriptionContains ( "Slide area" ) ) ; android.support.test.uiautomator.UiObject unlock2 = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( ( "com.android" + ".systemui:id/lock_icon" ) ) ) ; if ( ( unlock.exists ( ) ) || ( unlock2.exists ( ) ) ) { mDevice.pressMenu ( ) ; return true ; } return false ; }
Source:
public static com.android.sdklib.AndroidVersion convertVersion ( @ com.android.annotations.NonNull com.android.builder.model.ApiVersion api , @ com.android.annotations.Nullable com.android.sdklib.IAndroidTarget [ ] targets ) { java.lang.String codename = api.getCodename ( ) ; if ( codename != null ) { com.android.sdklib.AndroidVersion version = com.android.ide.common.sdk.SdkVersionInfo.getVersion ( codename , targets ) ; if ( version != null ) { return version ; } return new com.android.sdklib.AndroidVersion ( api.getApiLevel ( ) , codename ) ; } return new com.android.sdklib.AndroidVersion ( api.getApiLevel ( ) , null ) ; }

Target:
public static com.android.sdklib.AndroidVersion convertVersion ( @ com.android.annotations.NonNull com.android.builder.model.ApiVersion api , @ com.android.annotations.Nullable com.android.sdklib.IAndroidTarget [ ] targets ) { java.lang.String codename = api.getCodename ( ) ; if ( codename != null ) { com.android.sdklib.AndroidVersion version = com.android.sdklib.SdkVersionInfo.getVersion ( codename , targets ) ; if ( version != null ) { return version ; } return new com.android.sdklib.AndroidVersion ( api.getApiLevel ( ) , codename ) ; } return new com.android.sdklib.AndroidVersion ( api.getApiLevel ( ) , null ) ; }
Source:
public final int compareTo ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.ClassObj o ) { return mClassName.compareTo ( o.mClassName ) ; }

Target:
public final int compareTo ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.ClassObj o ) { if ( ( getId ( ) ) == ( o.getId ( ) ) ) { return 0 ; } int nameCompareResult = mClassName.compareTo ( o.mClassName ) ; if ( nameCompareResult != 0 ) { return nameCompareResult ; } else { return ( ( getId ( ) ) - ( o.getId ( ) ) ) > 0 ? 1 : - 1 ; } }
Source:
public void testDefaultMethod018 ( ) throws java.lang.Exception { run ( DEFAULTMETHOD018 ) ; }

Target:
public void testDefaultMethod018 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( DEFAULTMETHOD018 ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidApiLevel.ReleasedLevel.N.getLevel ( ) ) ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . compileAndRunTest ( ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.internal.telephony.uicc.UiccController.EVENT_ICC_STATUS_CHANGED : if ( com.android.internal.telephony.uicc.UiccController.DBG ) log ( "Received EVENT_ICC_STATUS_CHANGED, calling getIccCardStatus" ) ; mCi.getIccCardStatus ( obtainMessage ( com.android.internal.telephony.uicc.UiccController.EVENT_GET_ICC_STATUS_DONE ) ) ; break ; case com.android.internal.telephony.uicc.UiccController.EVENT_GET_ICC_STATUS_DONE : if ( com.android.internal.telephony.uicc.UiccController.DBG ) log ( "Received EVENT_GET_ICC_STATUS_DONE" ) ; android.os.AsyncResult ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; onGetIccCardStatusDone ( ar ) ; break ; default : android.util.Log.e ( com.android.internal.telephony.uicc.UiccController.LOG_TAG , ( " Unknown Event " + ( msg.what ) ) ) ; } }

Target:
public void handleMessage ( android.os.Message msg ) { synchronized ( com.android.internal.telephony.uicc.UiccController.mLock ) { switch ( msg.what ) { case com.android.internal.telephony.uicc.UiccController.EVENT_ICC_STATUS_CHANGED : if ( com.android.internal.telephony.uicc.UiccController.DBG ) log ( "Received EVENT_ICC_STATUS_CHANGED, calling getIccCardStatus" ) ; mCi.getIccCardStatus ( obtainMessage ( com.android.internal.telephony.uicc.UiccController.EVENT_GET_ICC_STATUS_DONE ) ) ; break ; case com.android.internal.telephony.uicc.UiccController.EVENT_GET_ICC_STATUS_DONE : if ( com.android.internal.telephony.uicc.UiccController.DBG ) log ( "Received EVENT_GET_ICC_STATUS_DONE" ) ; android.os.AsyncResult ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; onGetIccCardStatusDone ( ar ) ; break ; default : android.util.Log.e ( com.android.internal.telephony.uicc.UiccController.LOG_TAG , ( " Unknown Event " + ( msg.what ) ) ) ; } } }
Source:
private com.google.common.collect.TreeMultiset.AvlNode < E > floor ( java.util.Comparator < ? super E > comparator , E e ) { int cmp = comparator.compare ( e , elem ) ; if ( cmp > 0 ) { return ( right ) == null ? this : com.google.common.base.Objects.firstNonNull ( right.floor ( comparator , e ) , this ) ; } else if ( cmp == 0 ) { return this ; } else { return ( left ) == null ? null : left.floor ( comparator , e ) ; } }

Target:
private com.google.common.collect.TreeMultiset.AvlNode < E > floor ( java.util.Comparator < ? super E > comparator , E e ) { int cmp = comparator.compare ( e , elem ) ; if ( cmp > 0 ) { return ( right ) == null ? this : com.google.common.base.MoreObjects.firstNonNull ( right.floor ( comparator , e ) , this ) ; } else if ( cmp == 0 ) { return this ; } else { return ( left ) == null ? null : left.floor ( comparator , e ) ; } }
Source:
public void loadAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface loading , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader classOrInterfaceLoader ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; com.android.jack.jayce.v0002.io.ExportSession exportSession = new com.android.jack.jayce.v0002.io.ExportSession ( session.getPhantomLookup ( ) , session , com.android.jack.jayce.NodeLevel.STRUCTURE ) ; for ( com.android.jack.jayce.v0002.nodes.NAnnotation annotation : annotations ) { com.android.jack.ir.ast.JAnnotation annotationLiteral = annotation.exportAsJast ( exportSession ) ; loading.addAnnotation ( annotationLiteral ) ; annotationLiteral.updateParents ( loading ) ; } }

Target:
public void loadAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface loading , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader loader ) { if ( ! ( annotations.isEmpty ( ) ) ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; com.android.jack.jayce.v0002.io.ExportSession exportSession = new com.android.jack.jayce.v0002.io.ExportSession ( loader.getSession ( ) , com.android.jack.jayce.NodeLevel.STRUCTURE ) ; for ( com.android.jack.jayce.v0002.nodes.NAnnotation annotation : annotations ) { com.android.jack.ir.ast.JAnnotation annotationLiteral = annotation.exportAsJast ( exportSession ) ; loading.addAnnotation ( annotationLiteral ) ; annotationLiteral.updateParents ( loading ) ; } } }