auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onBindViewHolder ( com.android.incallui.rtt.impl.RttChatMessageViewHolder rttChatMessageViewHolder , int i ) { boolean isSameGroup = false ; if ( i > 0 ) { isSameGroup = ( rttMessages.get ( i ) . isRemote ) == ( rttMessages.get ( ( i - 1 ) ) . isRemote ) ; } rttChatMessageViewHolder.setMessage ( rttMessages.get ( i ) , isSameGroup ) ; }

Target:
public void onBindViewHolder ( com.android.incallui.rtt.impl.RttChatMessageViewHolder rttChatMessageViewHolder , int i ) { boolean isSameGroup = false ; if ( i > 0 ) { isSameGroup = ( rttMessages.get ( i ) . isRemote ) == ( rttMessages.get ( ( i - 1 ) ) . isRemote ) ; } rttChatMessageViewHolder.setMessage ( rttMessages.get ( i ) , isSameGroup , avatarDrawable ) ; }
Source:
private com.android.internal.telecom.ICallScreeningAdapter getCallScreeningAdapter ( ) throws java.lang.Exception { org.mockito.ArgumentCaptor < com.android.internal.telecom.ICallScreeningAdapter > captor = org.mockito.ArgumentCaptor.forClass ( com.android.internal.telecom.ICallScreeningAdapter.class ) ; org.mockito.Mockito.verify ( mCallScreeningService ) . screenCall ( captor.capture ( ) , org.mockito.Matchers.any ( android.telecom.ParcelableCall.class ) ) ; return captor.getValue ( ) ; }

Target:
private com.android.internal.telecom.ICallScreeningAdapter getCallScreeningAdapter ( ) throws java.lang.Exception { org.mockito.ArgumentCaptor < com.android.internal.telecom.ICallScreeningAdapter > captor = org.mockito.ArgumentCaptor.forClass ( com.android.internal.telecom.ICallScreeningAdapter.class ) ; org.mockito.Mockito.verify ( mCallScreeningService ) . screenCall ( captor.capture ( ) , org.mockito.ArgumentMatchers.nullable ( android.telecom.ParcelableCall.class ) ) ; return captor.getValue ( ) ; }
Source:
void moveUserToForeground ( com.android.server.am.UserState uss , int oldUserId , int newUserId ) { boolean homeInFront = mStackSupervisor.switchUserLocked ( newUserId , uss ) ; if ( homeInFront ) { startHomeActivityLocked ( newUserId , "moveUserToFroreground" ) ; } else { mStackSupervisor.resumeTopActivitiesLocked ( ) ; } com.android.server.am.EventLogTags.writeAmSwitchUser ( newUserId ) ; getUserManagerLocked ( ) . onUserForeground ( newUserId ) ; sendUserSwitchBroadcastsLocked ( oldUserId , newUserId ) ; }

Target:
public java.util.List < android.app.ActivityManager.StackInfo > getAllStackInfos ( ) { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "getAllStackInfos()" ) ; long ident = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { return mStackSupervisor.getAllStackInfosLocked ( ) ; } } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }
Source:
public final synchronized void setRate ( double permitsPerSecond ) { com.google.common.base.Preconditions.checkArgument ( ( ( permitsPerSecond > 0.0 ) && ( ! ( java.lang.Double.isNaN ( permitsPerSecond ) ) ) ) , "rate must be positive" ) ; resync ( readSafeMicros ( ) ) ; double stableIntervalMicros = ( java.util.concurrent.TimeUnit.SECONDS.toMicros ( 1L ) ) / permitsPerSecond ; this . stableIntervalMicros = stableIntervalMicros ; doSetRate ( permitsPerSecond , stableIntervalMicros ) ; }

Target:
public final void setRate ( double permitsPerSecond ) { com.google.common.base.Preconditions.checkArgument ( ( ( permitsPerSecond > 0.0 ) && ( ! ( java.lang.Double.isNaN ( permitsPerSecond ) ) ) ) , "rate must be positive" ) ; synchronized ( mutex ( ) ) { doSetRate ( permitsPerSecond , stopwatch.readMicros ( ) ) ; } }
Source:
public boolean isPossibleShortNumberForRegion ( java.lang.String shortNumber , java.lang.String regionDialingFrom ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionDialingFrom ) ; if ( phoneMetadata == null ) { return false ; } return phoneMetadata.getGeneralDesc ( ) . getPossibleLengthList ( ) . contains ( shortNumber.length ( ) ) ; }

Target:
public boolean isCarrierSpecificForRegion ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number , java.lang.String regionDialingFrom ) { if ( ! ( regionDialingFromMatchesNumber ( number , regionDialingFrom ) ) ) { return false ; } java.lang.String nationalNumber = com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) ; com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionDialingFrom ) ; return ( phoneMetadata != null ) && ( matchesPossibleNumberAndNationalNumber ( nationalNumber , phoneMetadata.getCarrierSpecific ( ) ) ) ; }
Source:
public void writeOnImsCallReceive ( int phoneId , com.android.ims.internal.ImsCallSession session ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = startNewCallSessionIfNeeded ( phoneId ) ; callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_CALL_RECEIVE ) . setCallIndex ( getCallId ( session ) ) ) ; }

Target:
public void writeOnImsCallTerminated ( int phoneId , android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsReasonInfo reasonInfo ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_CALL_TERMINATED ) . setCallIndex ( getCallId ( session ) ) . setImsReasonInfo ( toImsReasonInfoProto ( reasonInfo ) ) ) ; } }
Source:
boolean isNumberNegative ( double number ) { if ( java.lang.Double.isNaN ( number ) ) { return false ; } return isNegative ( multiply ( number ) ) ; }

Target:
public synchronized boolean equals ( java.lang.Object obj ) { if ( obj == null ) return false ; if ( obj == ( this ) ) return true ; if ( ! ( obj instanceof android.icu.text.DecimalFormat ) ) return false ; android.icu.text.DecimalFormat other = ( ( android.icu.text.DecimalFormat ) ( obj ) ) ; return ( properties.equals ( other.properties ) ) && ( symbols.equals ( other.symbols ) ) ; }
Source:
public void test_unmodifiableList_replaceAll ( ) { try { java.util.Collections.unmodifiableList ( new java.util.ArrayList < > ( ) ) . replaceAll ( ( k ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } try { java.util.ArrayList l = new java.util.ArrayList ( ) ; l.add ( 1 ) ; l.add ( 2 ) ; java.util.Collections.unmodifiableList ( l ) . replaceAll ( ( k ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }

Target:
public void test_SingletonMap_merge ( ) { try { java.util.Collections.singletonMap ( 1 , 11.0 ) . merge ( 1 , 5.0 , ( k , v ) -> 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }
Source:
public void updateSourcesToDefinitions ( com.android.dx.ssa.SsaMethod ssaMeth ) { for ( com.android.dx.ssa.PhiInsn.Operand o : operands ) { com.android.dx.ssa.RegisterSpec def = ssaMeth.getDefinitionForRegister ( o.regSpec.getReg ( ) ) . getResult ( ) ; o.regSpec = o.regSpec.withType ( def.getType ( ) ) ; } sources = null ; }

Target:
public void updateSourcesToDefinitions ( com.android.dx.ssa.SsaMethod ssaMeth ) { for ( com.android.dx.ssa.PhiInsn.Operand o : operands ) { com.android.dx.rop.code.RegisterSpec def = ssaMeth.getDefinitionForRegister ( o.regSpec.getReg ( ) ) . getResult ( ) ; o.regSpec = o.regSpec.withType ( def.getType ( ) ) ; } sources = null ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { switch ( intent.getAction ( ) ) { case com.android.incallui.ReturnToCallActionReceiver.ACTION_TOGGLE_SPEAKER : toggleSpeaker ( context ) ; break ; case com.android.incallui.ReturnToCallActionReceiver.ACTION_SHOW_AUDIO_ROUTE_SELECTOR : showAudioRouteSelector ( context ) ; break ; case com.android.incallui.ReturnToCallActionReceiver.ACTION_TOGGLE_MUTE : toggleMute ( context ) ; break ; case com.android.incallui.ReturnToCallActionReceiver.ACTION_END_CALL : endCall ( context ) ; break ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { switch ( intent.getAction ( ) ) { case com.android.incallui.ReturnToCallActionReceiver.ACTION_TOGGLE_SPEAKER : toggleSpeaker ( context ) ; break ; case com.android.incallui.ReturnToCallActionReceiver.ACTION_SHOW_AUDIO_ROUTE_SELECTOR : showAudioRouteSelector ( context ) ; break ; case com.android.incallui.ReturnToCallActionReceiver.ACTION_TOGGLE_MUTE : toggleMute ( context ) ; break ; case com.android.incallui.ReturnToCallActionReceiver.ACTION_END_CALL : endCall ( context ) ; break ; default : throw com.android.dialer.common.Assert.createIllegalStateFailException ( ( "Invalid intent action: " + ( intent.getAction ( ) ) ) ) ; } }
Source:
public void run ( ) { mHandler.removeCallbacks ( this ) ; final boolean succeded ; synchronized ( mInstallLock ) { succeded = deleteApplicationCacheFilesLI ( packageName , userId ) ; } clearExternalStorageDataSync ( packageName , userId , false ) ; if ( observer != null ) { try { observer.onRemoveCompleted ( packageName , succeded ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }

Target:
public void run ( ) { killUid ( appId , userId , com.android.server.pm.PackageManagerService.KILL_APP_REASON_PERMISSIONS_REVOKED ) ; }
Source:
protected void dispatchQueuedEvents ( ) { if ( isDispatching.get ( ) ) { return ; } isDispatching.set ( true ) ; try { while ( true ) { com.google.common.eventbus.EventBus.EventWithHandler eventWithHandler = eventsToDispatch.get ( ) . poll ( ) ; if ( eventWithHandler == null ) { break ; } dispatch ( eventWithHandler.event , eventWithHandler.handler ) ; } } finally { isDispatching.set ( false ) ; } }

Target:
void dispatchQueuedEvents ( ) { if ( isDispatching.get ( ) ) { return ; } isDispatching.set ( true ) ; try { java.util.Queue < com.google.common.eventbus.EventBus.EventWithSubscriber > events = eventsToDispatch.get ( ) ; com.google.common.eventbus.EventBus.EventWithSubscriber eventWithSubscriber ; while ( ( eventWithSubscriber = events.poll ( ) ) != null ) { dispatch ( eventWithSubscriber.event , eventWithSubscriber.subscriber ) ; } } finally { isDispatching.remove ( ) ; eventsToDispatch.remove ( ) ; } }
Source:
private void clearCache ( ) { java.util.HashSet < com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule > rules = new java.util.HashSet < com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule > ( mRulesCache.values ( ) ) ; mRulesCache.clear ( ) ; for ( com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule : rules ) { if ( rule != null ) { try { rule.onDispose ( ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDispose() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } } }

Target:
private void clearCache ( ) { java.util.HashSet < com.android.ide.common.api.IViewRule > rules = new java.util.HashSet < com.android.ide.common.api.IViewRule > ( mRulesCache.values ( ) ) ; mRulesCache.clear ( ) ; for ( com.android.ide.common.api.IViewRule rule : rules ) { if ( rule != null ) { try { rule.onDispose ( ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDispose() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } } }
Source:
public void test_getResourceLjava_lang_String ( ) { java.net.URL u = java.lang.ClassLoader.getSystemClassLoader ( ) . getResource ( "hyts_Foo.c" ) ; assertNotNull ( "Unable to find resource" , u ) ; java.io.InputStream is = null ; try { is = u.openStream ( ) ; assertNotNull ( "Resource returned is invalid" , is ) ; is.close ( ) ; } catch ( java.io.IOException e ) { fail ( ( "IOException getting stream for resource : " + ( e.getMessage ( ) ) ) ) ; } }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; testClassLoader = getClass ( ) . getClassLoader ( ) ; }
Source:
public void testIsLeadingZeroPossible ( ) { assertTrue ( phoneUtil.isLeadingZeroPossible ( 39 ) ) ; assertFalse ( phoneUtil.isLeadingZeroPossible ( 1 ) ) ; assertTrue ( phoneUtil.isLeadingZeroPossible ( 800 ) ) ; assertFalse ( phoneUtil.isLeadingZeroPossible ( 979 ) ) ; assertFalse ( phoneUtil.isLeadingZeroPossible ( 888 ) ) ; }

Target:
public void testGetSupportedTypesForNonGeoEntity ( ) { assertEquals ( 0 , phoneUtil.getSupportedTypesForNonGeoEntity ( 999 ) . size ( ) ) ; java.util.Set < com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType > typesFor979 = phoneUtil.getSupportedTypesForNonGeoEntity ( 979 ) ; assertTrue ( typesFor979.contains ( PhoneNumberType.PREMIUM_RATE ) ) ; assertFalse ( typesFor979.contains ( PhoneNumberType.MOBILE ) ) ; assertFalse ( typesFor979.contains ( PhoneNumberType.UNKNOWN ) ) ; }
Source:
public void setFocusData ( final org.eclipse.swt.graphics.Image image , final com.android.hierarchyviewerlib.device.ViewNode viewNode ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( com.android.hierarchyviewerlib.models.PixelPerfectModel.this ) { if ( ( com.android.hierarchyviewerlib.models.PixelPerfectModel.this . image ) != null ) { com.android.hierarchyviewerlib.models.PixelPerfectModel.this . image.dispose ( ) ; } com.android.hierarchyviewerlib.models.PixelPerfectModel.this . image = image ; com.android.hierarchyviewerlib.models.PixelPerfectModel.this . viewNode = viewNode ; com.android.hierarchyviewerlib.models.PixelPerfectModel.this . selected = null ; } } } ) ; notifyFocusChanged ( ) ; }

Target:
public void setImage ( final org.eclipse.swt.graphics.Image image ) { final org.eclipse.swt.graphics.Image toDispose = this . image ; org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( com.android.hierarchyviewerlib.models.PixelPerfectModel.this ) { com.android.hierarchyviewerlib.models.PixelPerfectModel.this . image = image ; } } } ) ; notifyImageChanged ( ) ; if ( toDispose != null ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { toDispose.dispose ( ) ; } } ) ; } }
Source:
public void setUp ( android.content.Context context , java.lang.Class < ? > packageClass ) throws java.lang.Exception { java.lang.String dexCache = context.getCacheDir ( ) . toString ( ) ; com.android.server.telecom.Log.v ( this , "Setting property %s to %s" , com.android.server.telecom.tests.MockitoHelper.DEXCACHE , dexCache ) ; java.lang.System.setProperty ( com.android.server.telecom.tests.MockitoHelper.DEXCACHE , dexCache ) ; }

Target:
public void setUp ( android.content.Context context , java.lang.Class < ? > packageClass ) throws java.lang.Exception { java.lang.String dexCache = context.getCacheDir ( ) . toString ( ) ; android.telecom.Log.v ( this , "Setting property %s to %s" , com.android.server.telecom.tests.MockitoHelper.DEXCACHE , dexCache ) ; java.lang.System.setProperty ( com.android.server.telecom.tests.MockitoHelper.DEXCACHE , dexCache ) ; }
Source:
private void write ( ) { try { java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream ( ) ; org.xmlpull.v1.XmlSerializer serializer = new com.android.internal.util.FastXmlSerializer ( ) ; serializer.setOutput ( os , "utf-8" ) ; com.android.server.telecom.PhoneAccountRegistrar.writeToXml ( mState , serializer , mContext ) ; serializer.flush ( ) ; new com.android.server.telecom.PhoneAccountRegistrar.AsyncXmlWriter ( ) . execute ( os ) ; } catch ( java.io.IOException e ) { com.android.server.telecom.Log.e ( this , e , "Writing state to XML buffer" ) ; } }

Target:
private void write ( ) { try { java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream ( ) ; org.xmlpull.v1.XmlSerializer serializer = new com.android.internal.util.FastXmlSerializer ( ) ; serializer.setOutput ( os , "utf-8" ) ; com.android.server.telecom.PhoneAccountRegistrar.writeToXml ( mState , serializer , mContext ) ; serializer.flush ( ) ; new com.android.server.telecom.PhoneAccountRegistrar.AsyncXmlWriter ( ) . execute ( os ) ; } catch ( java.io.IOException e ) { android.telecom.Log.e ( this , e , "Writing state to XML buffer" ) ; } }
Source:
public void close ( ) { android.util.Log.d ( android.net.IpSecTransform.TAG , ( "Removing Transform with Id " + ( mResourceId ) ) ) ; if ( ( mResourceId ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { mCloseGuard.close ( ) ; return ; } try { android.net.IIpSecService svc = getIpSecService ( ) ; svc.deleteTransform ( mResourceId ) ; stopKeepalive ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowAsRuntimeException ( ) ; } finally { mResourceId = android.net.IpSecManager.INVALID_RESOURCE_ID ; mCloseGuard.close ( ) ; } }

Target:
public void close ( ) { android.util.Log.d ( android.net.IpSecTransform.TAG , ( "Removing Transform with Id " + ( mResourceId ) ) ) ; if ( ( mResourceId ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { mCloseGuard.close ( ) ; return ; } try { android.net.IIpSecService svc = getIpSecService ( ) ; svc.deleteTransform ( mResourceId ) ; stopNattKeepalive ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowAsRuntimeException ( ) ; } finally { mResourceId = android.net.IpSecManager.INVALID_RESOURCE_ID ; mCloseGuard.close ( ) ; } }
Source:
public void generateComponentLayout ( final com.intellij.uiDesigner.lw.LwComponent component , final org.jetbrains.asm4.commons.GeneratorAdapter generator , final int componentLocal , final int parentLocal ) { java.awt.GridBagConstraints gbc ; if ( ( component.getCustomLayoutConstraints ( ) ) instanceof java.awt.GridBagConstraints ) { gbc = ( ( java.awt.GridBagConstraints ) ( component.getCustomLayoutConstraints ( ) ) ) ; } else { gbc = new java.awt.GridBagConstraints ( ) ; } com.intellij.uiDesigner.compiler.GridBagConverter.constraintsToGridBag ( component.getConstraints ( ) , gbc ) ; com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.generateGridBagConstraints ( generator , gbc , componentLocal , parentLocal ) ; }

Target:
public void generateComponentLayout ( final com.intellij.uiDesigner.lw.LwComponent component , final org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter generator , final int componentLocal , final int parentLocal ) { java.awt.GridBagConstraints gbc ; if ( ( component.getCustomLayoutConstraints ( ) ) instanceof java.awt.GridBagConstraints ) { gbc = ( ( java.awt.GridBagConstraints ) ( component.getCustomLayoutConstraints ( ) ) ) ; } else { gbc = new java.awt.GridBagConstraints ( ) ; } com.intellij.uiDesigner.compiler.GridBagConverter.constraintsToGridBag ( component.getConstraints ( ) , gbc ) ; com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.generateGridBagConstraints ( generator , gbc , componentLocal , parentLocal ) ; }
Source:
public boolean implies ( java.lang.Object obj ) { if ( ( obj == null ) || ( ! ( obj instanceof javax.security.auth.PrivateCredentialPermission.CredOwner ) ) ) return false ; javax.security.auth.PrivateCredentialPermission.CredOwner that = ( ( javax.security.auth.PrivateCredentialPermission.CredOwner ) ( obj ) ) ; if ( ( principalClass.equals ( "*" ) ) || ( principalClass.equals ( that.principalClass ) ) ) { if ( ( principalName.equals ( "*" ) ) || ( principalName.equals ( that.principalName ) ) ) { return true ; } } return false ; }

Target:
public boolean implies ( java.security.Permission p ) { return true ; }
Source:
public void onClick ( android.content.DialogInterface dialog , int which ) { updateState ( com.android.mms.ui.ManageSimMessages.SHOW_BUSY ) ; deleteAllFromSim ( ) ; dialog.dismiss ( ) ; }

Target:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { switch ( item.getItemId ( ) ) { case com.android.mms.ui.ManageSimMessages.OPTION_MENU_DELETE_ALL : confirmDeleteDialog ( new android.content.DialogInterface.OnClickListener ( ) { public void onClick ( android.content.DialogInterface dialog , int which ) { updateState ( com.android.mms.ui.ManageSimMessages.SHOW_BUSY ) ; deleteAllFromSim ( ) ; dialog.dismiss ( ) ; } } , R.string.confirm_delete_all_SIM_messages ) ; break ; case android.R.id.home : finish ( ) ; break ; } return true ; }
Source:
public org.objectweb.asm.ClassReader readIfKnown ( java.lang.String internalClassName ) { java.lang.String filename = ( rewriter.unprefix ( internalClassName ) ) + ".class" ; com.google.devtools.build.android.desugar.InputFileProvider inputFileProvider = indexedInputs.getInputFileProvider ( filename ) ; if ( inputFileProvider != null ) { try ( java.io.InputStream bytecode = inputFileProvider.getInputStream ( filename ) ) { return rewriter.reader ( bytecode ) ; } catch ( java.io.IOException e ) { throw new java.lang.IllegalStateException ( ( "Couldn't load " + internalClassName ) , e ) ; } } return null ; }

Target:
public org.objectweb.asm.ClassReader readIfKnown ( java.lang.String internalClassName ) { java.lang.String filename = ( rewriter.unprefix ( internalClassName ) ) + ".class" ; com.google.devtools.build.android.desugar.io.InputFileProvider inputFileProvider = indexedInputs.getInputFileProvider ( filename ) ; if ( inputFileProvider != null ) { try ( java.io.InputStream bytecode = inputFileProvider.getInputStream ( filename ) ) { return rewriter.reader ( bytecode ) ; } catch ( java.io.IOException e ) { throw new java.lang.IllegalStateException ( ( "Couldn't load " + internalClassName ) , e ) ; } } return null ; }
Source:
public java.util.Set < ? extends javax.lang.model.element.Element > process ( com.google.common.collect.SetMultimap < java.lang.Class < ? extends java.lang.annotation.Annotation > , javax.lang.model.element.Element > elementsByAnnotation ) { for ( javax.lang.model.element.Element element : elementsByAnnotation.get ( dagger.Subcomponent.class ) ) { generateMetadataFor ( dagger.Subcomponent.class , element ) ; } for ( javax.lang.model.element.Element element : elementsByAnnotation.get ( com.android.dialer.rootcomponentgenerator.annotation.InstallIn.class ) ) { if ( ( element.getAnnotation ( com.android.dialer.rootcomponentgenerator.annotation.InstallIn.class ) . variants ( ) . length ) == 0 ) { processingEnv.getMessager ( ) . printMessage ( javax.tools.Diagnostic.Kind.ERROR , java.lang.String.format ( "@InstallIn %s must have at least one variant" , element ) ) ; continue ; } generateMetadataFor ( com.android.dialer.rootcomponentgenerator.annotation.InstallIn.class , element ) ; } return java.util.Collections.emptySet ( ) ; }

Target:
public java.util.Set < ? extends javax.lang.model.element.Element > process ( com.google.common.collect.SetMultimap < java.lang.Class < ? extends java.lang.annotation.Annotation > , javax.lang.model.element.Element > elementsByAnnotation ) { for ( javax.lang.model.element.Element element : elementsByAnnotation.get ( com.android.dialer.rootcomponentgenerator.annotation.IncludeInDialerRoot.class ) ) { generateMetadataFor ( com.android.dialer.rootcomponentgenerator.annotation.IncludeInDialerRoot.class , com.google.auto.common.MoreElements.asType ( element ) ) ; } for ( javax.lang.model.element.Element element : elementsByAnnotation.get ( com.android.dialer.rootcomponentgenerator.annotation.InstallIn.class ) ) { if ( ( element.getAnnotation ( com.android.dialer.rootcomponentgenerator.annotation.InstallIn.class ) . variants ( ) . length ) == 0 ) { processingEnv.getMessager ( ) . printMessage ( javax.tools.Diagnostic.Kind.ERROR , java.lang.String.format ( "@InstallIn %s must have at least one variant" , element ) ) ; continue ; } generateMetadataFor ( com.android.dialer.rootcomponentgenerator.annotation.InstallIn.class , com.google.auto.common.MoreElements.asType ( element ) ) ; } return java.util.Collections.emptySet ( ) ; }
Source:
protected boolean postCreateContent ( ) { com.android.sdkuilib.internal.repository.UpdaterData updaterData = getUpdaterData ( ) ; com.android.sdkuilib.internal.tasks.ProgressViewFactory factory = new com.android.sdkuilib.internal.tasks.ProgressViewFactory ( ) ; factory.setProgressView ( new com.android.sdkuilib.internal.tasks.ProgressView ( mStatusText , mProgressBar , mButtonStop ) ) ; updaterData.setTaskFactory ( factory ) ; return super . postCreateContent ( ) ; }

Target:
private void setWindowImage ( org.eclipse.swt.widgets.Shell androidSdkUpdater ) { java.lang.String imageName = "android_icon_16.png" ; if ( ( com.android.sdklib.SdkConstants.currentPlatform ( ) ) == ( com.android.sdklib.SdkConstants.PLATFORM_DARWIN ) ) { imageName = "android_icon_128.png" ; } if ( ( mUpdaterData ) != null ) { com.android.sdkuilib.internal.repository.icons.ImageFactory imgFactory = mUpdaterData.getImageFactory ( ) ; if ( imgFactory != null ) { mShell.setImage ( imgFactory.getImageByName ( imageName ) ) ; } } }
Source:
public void test_getAbsolutePath ( ) throws java.lang.Exception { java.lang.String originalUserDir = java.lang.System.getProperty ( "user.dir" ) ; try { java.io.File f = new java.io.File ( "poop" ) ; java.lang.System.setProperty ( "user.dir" , "/a" ) ; assertEquals ( "/a/poop" , f.getAbsolutePath ( ) ) ; java.lang.System.setProperty ( "user.dir" , "/b" ) ; assertEquals ( "/b/poop" , f.getAbsolutePath ( ) ) ; } finally { java.lang.System.setProperty ( "user.dir" , originalUserDir ) ; } }

Target:
public void test_getAbsolutePath ( ) throws java.lang.Exception { java.lang.String userDir = java.lang.System.getProperty ( "user.dir" ) ; java.io.File f = new java.io.File ( "poop" ) ; assertEquals ( ( ( userDir + ( java.io.File.separator ) ) + "poop" ) , f.getAbsolutePath ( ) ) ; }
Source:
public android.os.ParcelUuid [ ] getUuids ( ) { if ( ( ( android.bluetooth.BluetoothDevice.sService ) == null ) || ( ( isBluetoothEnabled ( ) ) == false ) ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot get remote device Uuids" ) ; return null ; } try { return android.bluetooth.BluetoothDevice.sService.getRemoteUuids ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return null ; }

Target:
public android.bluetooth.BluetoothClass getBluetoothClass ( ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot get Bluetooth Class" ) ; return null ; } try { int classInt = service.getRemoteClass ( this ) ; if ( classInt == ( BluetoothClass.ERROR ) ) return null ; return new android.bluetooth.BluetoothClass ( classInt ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return null ; }
Source:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.JayceInternalReaderImpl in ) throws java.io.IOException { level = in.getNodeLevel ( ) ; name = in.readId ( ) ; returnType = in.readId ( ) ; parameters = in.readNodes ( com.android.jack.jayce.v0002.nodes.NParameter.class ) ; methodKind = in.readMethodKindEnum ( ) ; modifier = in.readInt ( ) ; annotations = in.readNodes ( com.android.jack.jayce.v0002.nodes.NAnnotationLiteral.class ) ; body = in.readNode ( com.android.jack.jayce.v0002.nodes.NAbstractMethodBody.class ) ; markers = in.readNodes ( com.android.jack.jayce.v0002.nodes.NMarker.class ) ; }

Target:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.JayceInternalReaderImpl in ) throws java.io.IOException { level = in.getNodeLevel ( ) ; name = in.readId ( ) ; returnType = in.readId ( ) ; parameters = in.readNodes ( com.android.jack.jayce.v0002.nodes.NParameter.class ) ; methodKind = in.readMethodKindEnum ( ) ; modifier = in.readInt ( ) ; annotations = in.readNodes ( com.android.jack.jayce.v0002.nodes.NAnnotation.class ) ; body = in.readNode ( com.android.jack.jayce.v0002.nodes.NAbstractMethodBody.class ) ; markers = in.readNodes ( com.android.jack.jayce.v0002.nodes.NMarker.class ) ; }
Source:
private void responseSetupDataCall ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.SetupDataCallResult dcResponse ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.dataconnection.DataCallResponse ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = com.android.internal.telephony.RIL.convertHalDc ( dcResponse ) ; sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseIccIo ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.IccIoResult result ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.uicc.IccIoResult ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = new com.android.internal.telephony.uicc.IccIoResult ( result.sw1 , result.sw2 , result.simResponse ) ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
public void writeTo ( java.io.OutputStream out , java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { writeTo ( out , null , humanOut , verbose ) ; }

Target:
public void writeTo ( java.io.OutputStream out , java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { boolean annotate = humanOut != null ; com.android.dx.util.ByteArrayAnnotatedOutput result = toDex0 ( annotate , verbose ) ; if ( out != null ) { out.write ( result.getArray ( ) ) ; } if ( annotate ) { result.writeAnnotationsTo ( humanOut ) ; } }
Source:
public void onPostDialContinue ( java.lang.String callId , boolean proceed ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = callId ; args.argi1 = ( proceed ) ? 1 : 0 ; mHandler.obtainMessage ( android.telecom.ConnectionService.MSG_ON_POST_DIAL_CONTINUE , args ) . sendToTarget ( ) ; }

Target:
public void onPostDialContinue ( java.lang.String callId , boolean proceed , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , android.telecom.ConnectionService.SESSION_POST_DIAL_CONT ) ; try { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = callId ; args.arg2 = android.telecom.Log.createSubsession ( ) ; args.argi1 = ( proceed ) ? 1 : 0 ; mHandler.obtainMessage ( android.telecom.ConnectionService.MSG_ON_POST_DIAL_CONTINUE , args ) . sendToTarget ( ) ; } finally { android.telecom.Log.endSession ( ) ; } }
Source:
private void validateWrongPassword ( android.support.test.uiautomator.UiDevice device , java.lang.String password , java.lang.String errorMessage ) throws java.lang.Exception { android.support.test.uiautomator.UiObject passwordField = device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . className ( "android.widget.EditText" ) ) ; passwordField.setText ( password ) ; junit.framework.Assert.assertTrue ( device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . textContains ( errorMessage ) ) . exists ( ) ) ; pressDeleteKey ( device , password.length ( ) ) ; }

Target:
private void validateWrongPassword ( android.support.test.uiautomator.UiDevice device , java.lang.String password , java.lang.String errorMessage ) throws java.lang.Exception { android.support.test.uiautomator.UiObject passwordField = device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . className ( "android.widget.EditText" ) ) ; passwordField.setText ( password ) ; android.support.test.uiautomator.UiObject passwordError = device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . textContains ( errorMessage ) ) ; passwordError.waitForExists ( 3L ) ; junit.framework.Assert.assertTrue ( passwordError.exists ( ) ) ; pressDeleteKey ( device , password.length ( ) ) ; }
Source:
public void run ( ) { com.android.rs.test_v14.RenderScript pRS = com.android.rs.test_v14.RenderScript.create ( mCtx ) ; com.android.rs.test_v14.ScriptC_rstime s = new com.android.rs.test_v14.ScriptC_rstime ( pRS , mRes , R.raw.rstime ) ; pRS.setMessageHandler ( mRsMessage ) ; s.invoke_test_rstime ( 0 , 0 ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { com.android.rs.test_v14.RenderScript pRS = com.android.rs.test_v14.RenderScript.create ( mCtx ) ; com.android.rs.test_v14.ScriptC_rstime s = new com.android.rs.test_v14.ScriptC_rstime ( pRS , mRes , R.raw.rstime ) ; pRS.setMessageHandler ( mRsMessage ) ; s.setTimeZone ( "America/Los_Angeles" ) ; s.invoke_test_rstime ( 0 , 0 ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }
Source:
public void syncPreviewMode ( ) { if ( ( ( mImageOverlay ) != null ) && ( ( mImageOverlay.getImage ( ) ) != null ) ) { if ( mPreviewManager.recomputePreviews ( false ) ) { mZoomFitNextImage = true ; ensureZoomed ( ) ; } } }

Target:
public void syncPreviewMode ( ) { if ( ( ( ( mImageOverlay ) != null ) && ( ( mImageOverlay.getImage ( ) ) != null ) ) && ( ( getGraphicalEditor ( ) . getConfigurationChooser ( ) . getResources ( ) ) != null ) ) { if ( mPreviewManager.recomputePreviews ( false ) ) { mZoomFitNextImage = true ; ensureZoomed ( ) ; } } }
Source:
private int getParameterWordCount ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { java.util.List < com.android.jack.ir.ast.JParameter > parameters = method.getParams ( ) ; int wordCount = ( method.isStatic ( ) ) ? 0 : 1 ; for ( com.android.jack.ir.ast.JParameter param : parameters ) { com.android.jack.ir.ast.JType paramType = param.getType ( ) ; if ( paramType == ( JPrimitiveTypeEnum.LONG.getType ( ) ) ) { wordCount += 2 ; } else if ( paramType == ( JPrimitiveTypeEnum.DOUBLE.getType ( ) ) ) { wordCount += 2 ; } else { wordCount ++ ; } } return wordCount ; }

Target:
private int getParameterWordCount ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { int wordCount = ( method.isStatic ( ) ) ? 0 : Type.OBJECT.getWordCount ( ) ; for ( com.android.jack.ir.ast.JParameter param : method.getParams ( ) ) { if ( ( param.getMarker ( com.android.jack.transformations.lambda.CapturedVariable.class ) ) != null ) { continue ; } wordCount += com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( param.getType ( ) , ( ( param.getMarker ( com.android.jack.transformations.lambda.ForceClosureMarker.class ) ) != null ) ) . getWordCount ( ) ; } return wordCount ; }
Source:
protected void onButtonReload ( org.eclipse.swt.events.SelectionEvent e ) { loadPackages ( ) ; }

Target:
public void run ( com.android.sdklib.internal.repository.ITaskMonitor monitor ) { monitor.setProgressMax ( ( ( archives.size ( ) ) + 1 ) ) ; for ( com.android.sdklib.internal.repository.Archive a : archives ) { monitor.setDescription ( "Deleting '%1$s' (%2$s)" , a.getParentPackage ( ) . getShortDescription ( ) , a.getLocalOsPath ( ) ) ; a.deleteLocal ( ) ; monitor.incProgress ( 1 ) ; if ( monitor.isCancelRequested ( ) ) { break ; } } monitor.incProgress ( 1 ) ; monitor.setDescription ( "Done" ) ; }
Source:
public boolean isVolteAvailable ( ) { return mPhone.isVolteEnabled ( ) ; }

Target:
public boolean isVideoCallingEnabled ( java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "isVideoCallingEnabled" ) ) ) { return false ; } com.android.ims.ImsManager imsManager = com.android.ims.ImsManager.getInstance ( mPhone.getContext ( ) , mPhone.getPhoneId ( ) ) ; return ( ( imsManager.isVtEnabledByPlatform ( ) ) && ( imsManager.isEnhanced4gLteModeSettingEnabledByUser ( ) ) ) && ( imsManager.isVtEnabledByUser ( ) ) ; }
Source:
public void testInnerClassTwoParameters ( ) throws java.lang.Exception { java.lang.reflect.Constructor < ? > constructor = libcore.java.lang.reflect.ParameterTest.InnerClass.class . getDeclaredConstructor ( libcore.java.lang.reflect.ParameterTest.class , java.lang.String.class ) ; libcore.java.lang.reflect.ParameterTest.ExecutableTestHelper helper = new libcore.java.lang.reflect.ParameterTest.ExecutableTestHelper ( constructor ) ; helper.checkStandardParametersBehavior ( ) . checkParametersToString ( "[libcore.java.lang.reflect.ParameterTest arg0, java.lang.String arg1]" ) . checkParametersMetadataNotAvailable ( ) . checkParametersNoVarArgs ( ) ; helper.getParameterTestHelper ( 0 ) . checkGetType ( libcore.java.lang.reflect.ParameterTest.class ) . checkGetParameterizedType ( "class libcore.java.lang.reflect.ParameterTest" ) ; helper.getParameterTestHelper ( 1 ) . checkGetType ( java.lang.String.class ) . checkGetParameterizedType ( "class java.lang.String" ) ; }

Target:
public void testTwoParameterMethod_withMetadata ( ) throws java.lang.Exception { java.lang.Class < ? > clazz = loadTestInnerClassWithMetadata ( "TwoParameters" ) ; java.lang.reflect.Method method = clazz.getDeclaredMethod ( "twoParameters" , java.lang.String.class , java.lang.Integer.class ) ; libcore.java.lang.reflect.ParameterTest.checkTwoParameters_withMetadata ( method ) ; }
Source:
public static void runWithFlags ( @ javax.annotation.Nonnull com.android.jack.Options jackOptions , @ javax.annotation.CheckForNull java.io.File [ ] jackBootclasspath , @ javax.annotation.CheckForNull java.io.File [ ] jackClasspath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , @ javax.annotation.CheckForNull com.android.jack.shrob.spec.Flags flags ) throws java.lang.Exception { jackOptions.flags = flags ; if ( flags != null ) { jackOptions.applyShrobFlags ( ) ; } jackOptions.addProperty ( Options.METHOD_FILTER.getName ( ) , "supported-methods" ) ; java.io.File out = com.android.jack.TestTools.createTempFile ( "checklisting" , ".dex" ) ; com.android.jack.TestTools.compileSourceToDex ( jackOptions , fileOrSourceList , com.android.jack.TestTools.getClasspathsAsString ( jackBootclasspath , jackClasspath ) , out , false ) ; }

Target:
public static void runWithFlags ( @ javax.annotation.Nonnull com.android.jack.Options jackOptions , @ javax.annotation.CheckForNull java.io.File [ ] jackBootclasspath , @ javax.annotation.CheckForNull java.io.File [ ] jackClasspath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , @ javax.annotation.CheckForNull com.android.jack.shrob.spec.Flags flags ) throws java.lang.Exception { jackOptions.flags = flags ; if ( flags != null ) { jackOptions.applyShrobFlags ( ) ; } jackOptions.addProperty ( Options.METHOD_FILTER.getName ( ) , "supported-methods" ) ; java.io.File outFolder = com.android.jack.TestTools.createTempDir ( "checklisting" , "dex" ) ; com.android.jack.TestTools.compileSourceToDex ( jackOptions , fileOrSourceList , com.android.jack.TestTools.getClasspathsAsString ( jackBootclasspath , jackClasspath ) , outFolder , false ) ; }
Source:
private void removeChildCall ( com.android.server.telecom.Call call ) { if ( mChildCalls.remove ( call ) ) { com.android.server.telecom.Log.event ( this , Log.Events.REMOVE_CHILD , call ) ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onChildrenChanged ( this ) ; } } }

Target:
private void addChildCall ( com.android.server.telecom.Call call ) { if ( ! ( mChildCalls.contains ( call ) ) ) { mConferenceLevelActiveCall = call ; mChildCalls.add ( call ) ; android.telecom.Log.addEvent ( this , LogUtils.Events.ADD_CHILD , call ) ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onChildrenChanged ( this ) ; } } }
Source:
public int getNetworkTypeForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( canReadPhoneState ( callingPackage , "getNetworkTypeForSubscriber" ) ) ) { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getServiceState ( ) . getDataNetworkType ( ) ; } else { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } }

Target:
public int getNetworkTypeForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getNetworkTypeForSubscriber" ) ) ) { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getServiceState ( ) . getDataNetworkType ( ) ; } else { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } }
Source:
public void testIsOutgoingCallPermittedOngoing ( ) throws java.lang.Exception { com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; org.junit.Assert.assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; org.junit.Assert.assertFalse ( mTelecomSystem.getTelecomServiceImpl ( ) . getBinder ( ) . isOutgoingCallPermitted ( mPhoneAccountSelfManaged.getAccountHandle ( ) ) ) ; }

Target:
public void testIsOutgoingCallPermittedOngoingHoldable ( ) throws java.lang.Exception { com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; org.junit.Assert.assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; org.junit.Assert.assertTrue ( mTelecomSystem.getTelecomServiceImpl ( ) . getBinder ( ) . isOutgoingCallPermitted ( mPhoneAccountSelfManaged.getAccountHandle ( ) ) ) ; }
Source:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newPlatform ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision minToolsRev ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_PLATFORMS ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mMinToolsRev = minToolsRev ; p.mCustomPath = new com.android.sdklib.repository.descriptors.PkgDesc.IGetPath ( ) { @ java.lang.Override public java.lang.String getPath ( com.android.sdklib.repository.descriptors.PkgDesc thisPkgDesc ) { return com.android.sdklib.AndroidTargetHash.getPlatformHashString ( thisPkgDesc.getAndroidVersion ( ) ) ; } } ; return p ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newPlatform ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision minToolsRev ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_PLATFORM ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mMinToolsRev = minToolsRev ; p.mCustomPath = new com.android.sdklib.repository.descriptors.PkgDesc.IGetPath ( ) { @ java.lang.Override public java.lang.String getPath ( com.android.sdklib.repository.descriptors.PkgDesc thisPkgDesc ) { return com.android.sdklib.AndroidTargetHash.getPlatformHashString ( thisPkgDesc.getAndroidVersion ( ) ) ; } } ; return p ; }
Source:
public void invokeMethodOnSelectedView ( final java.lang.String method , final java.util.List < java.lang.Object > args ) { final com.android.hierarchyviewerlib.ui.util.DrawableViewNode selectedNode = com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . getSelection ( ) ; if ( selectedNode != null ) { executeInBackground ( "Invoke View Method" , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.android.hierarchyviewerlib.device.IHvDevice hvDevice = getHvDevice ( selectedNode.viewNode.window.getDevice ( ) ) ; hvDevice.invokeViewMethod ( selectedNode.viewNode.window , selectedNode.viewNode , method , args ) ; } } ) ; } }

Target:
public void profileCurrentNode ( ) { final com.android.hierarchyviewerlib.ui.util.DrawableViewNode selectedNode = com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . getSelection ( ) ; if ( selectedNode != null ) { executeInBackground ( "Profile Node" , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.android.hierarchyviewerlib.device.IHvDevice hvDevice = getHvDevice ( selectedNode.viewNode.window.getDevice ( ) ) ; hvDevice.loadProfileData ( selectedNode.viewNode.window , selectedNode.viewNode ) ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . notifySelectionChanged ( ) ; } } ) ; } }
Source:
private int addDefaultRingtoneItem ( android.widget.ListView listView ) { return addStaticItem ( listView , com.android.internal.R.string.ringtone_default ) ; }

Target:
private int addDefaultRingtoneItem ( android.widget.ListView listView ) { if ( ( mType ) == ( android.media.RingtoneManager.TYPE_NOTIFICATION ) ) { return addStaticItem ( listView , R.string.notification_sound_default ) ; } else if ( ( mType ) == ( android.media.RingtoneManager.TYPE_ALARM ) ) { return addStaticItem ( listView , R.string.alarm_sound_default ) ; } return addStaticItem ( listView , R.string.ringtone_default ) ; }
Source:
public void copyFromUnchecked ( short [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , float [ ] d ) { copy1DRangeFromUnchecked ( off , count , ( ( java.lang.Object ) ( d ) ) , Element.DataType.FLOAT_32 , d.length ) ; }
Source:
public static java.lang.String shortToCharToBytePrint ( short value ) { char c = ( ( char ) ( value ) ) ; byte b = ( ( byte ) ( c ) ) ; return ( ( "c=" + ( ( int ) ( c ) ) ) + ", b=" ) + ( ( int ) ( b ) ) ; }

Target:
public static java.lang.String $noinline$shortToCharToBytePrint ( short value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } char c = ( ( char ) ( value ) ) ; byte b = ( ( byte ) ( c ) ) ; return ( ( "c=" + ( ( int ) ( c ) ) ) + ", b=" ) + ( ( int ) ( b ) ) ; }
Source:
private void deleteSelected ( ) { if ( mCursor.moveToPosition ( getSelectedItemPosition ( ) ) ) { java.lang.String name = mCursor.getString ( com.android.phone.settings.fdn.NAME_COLUMN ) ; java.lang.String number = mCursor.getString ( com.android.phone.settings.fdn.NUMBER_COLUMN ) ; android.content.Intent intent = mSubscriptionInfoHelper.getIntent ( com.android.phone.settings.fdn.DeleteFdnContactScreen.class ) ; intent.putExtra ( com.android.phone.settings.fdn.FdnList.INTENT_EXTRA_NAME , name ) ; intent.putExtra ( com.android.phone.settings.fdn.FdnList.INTENT_EXTRA_NUMBER , number ) ; startActivity ( intent ) ; } }

Target:
private void deleteSelected ( int position ) { if ( mCursor.moveToPosition ( position ) ) { java.lang.String name = mCursor.getString ( com.android.phone.settings.fdn.NAME_COLUMN ) ; java.lang.String number = mCursor.getString ( com.android.phone.settings.fdn.NUMBER_COLUMN ) ; android.content.Intent intent = mSubscriptionInfoHelper.getIntent ( com.android.phone.settings.fdn.DeleteFdnContactScreen.class ) ; intent.putExtra ( com.android.phone.settings.fdn.FdnList.INTENT_EXTRA_NAME , name ) ; intent.putExtra ( com.android.phone.settings.fdn.FdnList.INTENT_EXTRA_NUMBER , number ) ; startActivity ( intent ) ; } }