auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onCreate ( android.os.Bundle savedState ) { if ( com.android.dialer.app.list.OldSpeedDialFragment.DEBUG ) { com.android.dialer.common.LogUtil.d ( "OldSpeedDialFragment.onCreate" , null ) ; } android.os.Trace.beginSection ( ( ( com.android.dialer.app.list.OldSpeedDialFragment.TAG ) + " onCreate" ) ) ; super . onCreate ( savedState ) ; contactTileAdapter = new com.android.dialer.app.list.PhoneFavoritesTileAdapter ( getActivity ( ) , contactTileAdapterListener , this ) ; contactTileAdapter.setPhotoLoader ( com.android.dialer.contactphoto.ContactPhotoManager.getInstance ( getActivity ( ) ) ) ; animationDuration = getResources ( ) . getInteger ( R.integer.fade_duration ) ; android.os.Trace.endSection ( ) ; }

Target:
public void onCreate ( android.os.Bundle savedState ) { android.os.Trace.beginSection ( ( ( com.android.dialer.app.list.OldSpeedDialFragment.TAG ) + " onCreate" ) ) ; super . onCreate ( savedState ) ; contactTileAdapter = new com.android.dialer.app.list.PhoneFavoritesTileAdapter ( getContext ( ) , contactTileAdapterListener , this ) ; contactTileAdapter.setPhotoLoader ( com.android.dialer.contactphoto.ContactPhotoManager.getInstance ( getContext ( ) ) ) ; contactTileLoaderListener = new com.android.dialer.app.list.OldSpeedDialFragment.ContactTileLoaderListener ( this , contactTileAdapter ) ; animationDuration = getResources ( ) . getInteger ( R.integer.fade_duration ) ; android.os.Trace.endSection ( ) ; }
Source:
public void testOnSetUpAdapterMultipleInstance ( ) throws java.lang.Exception { java.lang.String output = "android.hardware.foo@1.1::IFoo/default\n" + ( ( "android.hardware.foo@1.1::IFoo/test\n" + "android.hardware.foo@1.1::IFooSecond/default\n" ) + "android.hardware.foo@1.1::IFooSecond/slot/1\n" ) ; doReturn ( output ) . when ( mDevice ) . executeShellCommand ( java.lang.String.format ( LIST_HAL_CMD , TEST_HAL_PACKAGE ) ) ; mPreparer.setUp ( mDevice , mBuildInfo ) ; java.util.List < java.lang.String > adapterCmds = new java.util.ArrayList < java.lang.String > ( ) ; adapterCmds.add ( java.lang.String.format ( "%s /data/nativetest64/%s %s %s %d" , SCRIPT_PATH , TEST_HAL_ADAPTER_BINARY , "IFoo" , "default" , THREAD_COUNT_DEFAULT ) ) ; adapterCmds.add ( java.lang.String.format ( "%s /data/nativetest64/%s %s %s %d" , SCRIPT_PATH , TEST_HAL_ADAPTER_BINARY , "IFoo" , "test" , THREAD_COUNT_DEFAULT ) ) ; adapterCmds.add ( java.lang.String.format ( "%s /data/nativetest64/%s %s %s %d" , SCRIPT_PATH , TEST_HAL_ADAPTER_BINARY , "IFooSecond" , "default" , THREAD_COUNT_DEFAULT ) ) ; adapterCmds.add ( java.lang.String.format ( "%s /data/nativetest64/%s %s %s %d" , SCRIPT_PATH , TEST_HAL_ADAPTER_BINARY , "IFooSecond" , "slot/1" , THREAD_COUNT_DEFAULT ) ) ; for ( java.lang.String cmd : adapterCmds ) { verify ( mDevice , times ( 1 ) ) . executeShellCommand ( eq ( cmd ) ) ; } }

Target:
public void testOnSetUpAdapterSingleInstance ( ) throws java.lang.Exception { java.io.File testAdapter = new java.io.File ( mTestDir , ( ( VTS_NATIVE_TEST_DIR ) + ( TEST_HAL_ADAPTER_BINARY ) ) ) ; testAdapter.createNewFile ( ) ; java.lang.String output = "android.hardware.foo@1.1::IFoo/default" ; doReturn ( output ) . when ( mDevice ) . executeShellCommand ( java.lang.String.format ( LIST_HAL_CMD , TEST_HAL_PACKAGE ) ) ; mPreparer.setUp ( mDevice , mBuildInfo ) ; verify ( mDevice , times ( 1 ) ) . pushFile ( eq ( testAdapter ) , eq ( ( ( TARGET_NATIVE_TEST_DIR ) + ( TEST_HAL_ADAPTER_BINARY ) ) ) ) ; java.lang.String adapterCmd = java.lang.String.format ( "%s /data/nativetest64/%s %s %s %d" , SCRIPT_PATH , TEST_HAL_ADAPTER_BINARY , "IFoo" , "default" , THREAD_COUNT_DEFAULT ) ; verify ( mDevice , times ( 1 ) ) . executeShellCommand ( eq ( adapterCmd ) ) ; }
Source:
protected void onPrintJobQueued ( android.printservice.PrintJob printJob ) { if ( com.android.bips.BuiltInPrintService.DEBUG ) android.util.Log.d ( com.android.bips.BuiltInPrintService.TAG , "onPrintJobQueued" ) ; if ( com.android.bips.util.WifiMonitor.isConnected ( this ) ) { mJobQueue.print ( new com.android.bips.LocalPrintJob ( this , mBackend , printJob ) ) ; } else { printJob.fail ( getString ( R.string.wifi_not_connected ) ) ; } }

Target:
public java.lang.String getDescription ( com.android.bips.discovery.DiscoveredPrinter printer ) { if ( ( com.android.bips.p2p.P2pUtils.isP2p ( printer ) ) || ( com.android.bips.p2p.P2pUtils.isOnConnectedInterface ( this , printer ) ) ) { return getString ( R.string.wifi_direct ) ; } java.lang.String host = printer.getHost ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( printer.location ) ) ) { return getString ( R.string.printer_description , host , printer.location ) ; } else { return host ; } }
Source:
public void testReadProcVersion ( ) throws java.io.IOException { java.io.File file = new java.io.File ( "/proc/version" ) ; try ( java.io.FileInputStream input = new java.io.FileInputStream ( file ) ) { assertTrue ( ( ( input.available ( ) ) == 0 ) ) ; } }

Target:
public void test_available_on_nonIOCTL_supported_file ( ) throws java.lang.Exception { java.io.File file = new java.io.File ( "/dev/zero" ) ; try ( java.io.FileInputStream input = new java.io.FileInputStream ( file ) ) { assertEquals ( 0 , input.available ( ) ) ; } try ( java.io.FileInputStream input = new java.io.FileInputStream ( file ) ) { android.system.Os.ioctlInt ( input.getFD ( ) , OsConstants.FIONREAD , new android.util.MutableInt ( 0 ) ) ; fail ( ) ; } catch ( android.system.ErrnoException expected ) { assertEquals ( ( "FIONREAD should have returned ENOTTY for the file. If it doesn't return" + " FIONREAD, the test is no longer valid." ) , OsConstants.ENOTTY , expected.errno ) ; } }
Source:
public void setDestDir ( java.io.File destDir ) { mDestDir = destDir ; }

Target:
public void setDestDir ( java.io.File destDir ) { mDestDir = destDir ; mHasRiskyPathChars = false ; java.lang.String path = destDir.getPath ( ) ; for ( int i = 0 , n = path.length ( ) ; i < n ; i ++ ) { char c = path.charAt ( i ) ; if ( com.android.tools.gradle.eclipse.ImportSummary.isRiskyPathChar ( c ) ) { mHasRiskyPathChars = true ; } } }
Source:
public final com.android.tools.perflib.heap.ClassObj findClass ( long id ) { for ( com.android.tools.perflib.heap.Heap mHeap : mHeaps ) { com.android.tools.perflib.heap.ClassObj theClass = mHeap.getClass ( id ) ; if ( theClass != null ) { return theClass ; } } return null ; }

Target:
public final com.android.tools.perflib.heap.Instance findReference ( long id ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.Instance instance = mHeaps.get ( i ) . getInstance ( id ) ; if ( instance != null ) { return instance ; } } return findClass ( id ) ; }
Source:
public void widgetDefaultSelected ( org.eclipse.swt.events.SelectionEvent e ) { }

Target:
public void widgetDefaultSelected ( org.eclipse.swt.events.SelectionEvent e ) { java.lang.Object selection = ( ( org.eclipse.swt.widgets.TreeItem ) ( e.item ) ) . getData ( ) ; if ( selection instanceof com.android.ddmlib.IDevice ) { com.android.hierarchyviewerlib.ComponentRegistry.getDirector ( ) . loadPixelPerfectData ( ( ( com.android.ddmlib.IDevice ) ( selection ) ) ) ; } }
Source:
public boolean post ( java.lang.Runnable action ) { android.os.Handler handler ; if ( ( mAttachInfo ) != null ) { handler = mAttachInfo.mHandler ; } else { android.view.ViewRoot.getRunQueue ( ) . post ( action ) ; return true ; } return handler.post ( action ) ; }

Target:
public boolean post ( java.lang.Runnable action ) { android.os.Handler handler ; android.view.View.AttachInfo attachInfo = mAttachInfo ; if ( attachInfo != null ) { handler = attachInfo.mHandler ; } else { android.view.ViewRootImpl.getRunQueue ( ) . post ( action ) ; return true ; } return handler.post ( action ) ; }
Source:
private static java.lang.String newClassName ( java.lang.String className , proguard.classfile.editor.Clazz referencedClass ) { if ( referencedClass == null ) { return className ; } java.lang.String newClassName = referencedClass.getName ( ) ; if ( ( className.charAt ( 0 ) ) == ( ClassConstants.INTERNAL_TYPE_ARRAY ) ) { newClassName = ( ( className.substring ( 0 , ( ( className.indexOf ( ClassConstants.INTERNAL_TYPE_CLASS_START ) ) + 1 ) ) ) + newClassName ) + ( ClassConstants.INTERNAL_TYPE_CLASS_END ) ; } return newClassName ; }

Target:
private static java.lang.String newClassName ( java.lang.String className , proguard.classfile.editor.Clazz referencedClass ) { if ( referencedClass == null ) { return className ; } java.lang.String newClassName = referencedClass.getName ( ) ; if ( ( className.charAt ( 0 ) ) == ( ClassConstants.TYPE_ARRAY ) ) { newClassName = ( ( className.substring ( 0 , ( ( className.indexOf ( ClassConstants.TYPE_CLASS_START ) ) + 1 ) ) ) + newClassName ) + ( ClassConstants.TYPE_CLASS_END ) ; } return newClassName ; }
Source:
private void setNewPhone ( com.android.internal.telephony.PhoneBase phone ) { mCurrentPhone = phone ; if ( phone instanceof com.android.internal.telephony.gsm.GSMPhone ) { if ( com.android.internal.telephony.uicc.UiccController.DBG ) log ( "New phone is GSMPhone" ) ; updateCurrentCard ( IccCard.CARD_IS_3GPP ) ; } else if ( phone instanceof com.android.internal.telephony.cdma.CDMALTEPhone ) { if ( com.android.internal.telephony.uicc.UiccController.DBG ) log ( "New phone type is CDMALTEPhone" ) ; updateCurrentCard ( IccCard.CARD_IS_3GPP ) ; } else if ( phone instanceof com.android.internal.telephony.cdma.CDMAPhone ) { if ( com.android.internal.telephony.uicc.UiccController.DBG ) log ( "New phone type is CDMAPhone" ) ; updateCurrentCard ( IccCard.CARD_IS_NOT_3GPP ) ; } else { android.util.Log.e ( com.android.internal.telephony.uicc.UiccController.LOG_TAG , "Unhandled phone type. Critical error!" ) ; } }

Target:
public void unregisterForIccChanged ( android.os.Handler h ) { mIccChangedRegistrants.remove ( h ) ; }
Source:
public android.net.IpSecTransform.Builder setUnderlyingNetwork ( android.net.Network net ) { mConfig.setNetwork ( net ) ; return this ; }

Target:
public android.net.IpSecTransform buildTransportModeTransform ( @ android.annotation.NonNull java.net.InetAddress sourceAddress , @ android.annotation.NonNull android.net.IpSecManager.SecurityParameterIndex spi ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { com.android.internal.util.Preconditions.checkNotNull ( sourceAddress ) ; com.android.internal.util.Preconditions.checkNotNull ( spi ) ; if ( ( spi.getResourceId ( ) ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { throw new java.lang.IllegalArgumentException ( "Invalid SecurityParameterIndex" ) ; } mConfig.setMode ( android.net.IpSecTransform.MODE_TRANSPORT ) ; mConfig.setSourceAddress ( sourceAddress.getHostAddress ( ) ) ; mConfig.setSpiResourceId ( spi.getResourceId ( ) ) ; return new android.net.IpSecTransform ( mContext , mConfig ) . activate ( ) ; }
Source:
public android.net.IpConfiguration readIpAndProxyConfigurations ( ) { android.util.SparseArray < android.net.IpConfiguration > networks = readIpAndProxyConfigurations ( com.android.server.ethernet.EthernetConfigStore.ipConfigFile ) ; if ( ( networks.size ( ) ) == 0 ) { android.util.Log.w ( com.android.server.ethernet.EthernetConfigStore.TAG , "No Ethernet configuration found. Using default." ) ; return new android.net.IpConfiguration ( android.net.IpConfiguration.IpAssignment.DHCP , android.net.IpConfiguration.ProxySettings.NONE , null , null ) ; } if ( ( networks.size ( ) ) > 1 ) { android.util.Log.w ( com.android.server.ethernet.EthernetConfigStore.TAG , "Multiple Ethernet configurations detected. Only reading first one." ) ; } return networks.valueAt ( 0 ) ; }

Target:
public void write ( java.lang.String iface , android.net.IpConfiguration config ) { boolean modified ; synchronized ( mSync ) { if ( config == null ) { modified = ( mIpConfigurations.remove ( iface ) ) != null ; } else { android.net.IpConfiguration oldConfig = mIpConfigurations.put ( iface , config ) ; modified = ! ( config.equals ( oldConfig ) ) ; } if ( modified ) { mStore.writeIpConfigurations ( com.android.server.ethernet.EthernetConfigStore.ipConfigFile , mIpConfigurations ) ; } } }
Source:
private static java.lang.String getNativeLibraryDirectory ( ) { android.content.pm.ApplicationInfo ai = org.chromium.base.ContextUtils.getApplicationContext ( ) . getApplicationInfo ( ) ; if ( ( ( ( ai.flags ) & ( android.content.pm.ApplicationInfo.FLAG_UPDATED_SYSTEM_APP ) ) != 0 ) || ( ( ( ai.flags ) & ( android.content.pm.ApplicationInfo.FLAG_SYSTEM ) ) == 0 ) ) { return ai.nativeLibraryDir ; } return "/system/lib/" ; }

Target:
private static java.lang.String getNativeLibraryDirectory ( android.content.Context appContext ) { android.content.pm.ApplicationInfo ai = appContext.getApplicationInfo ( ) ; if ( ( ( ( ai.flags ) & ( android.content.pm.ApplicationInfo.FLAG_UPDATED_SYSTEM_APP ) ) != 0 ) || ( ( ( ai.flags ) & ( android.content.pm.ApplicationInfo.FLAG_SYSTEM ) ) == 0 ) ) { return ai.nativeLibraryDir ; } return "/system/lib/" ; }
Source:
public int fetchIsimRecords ( com.android.internal.telephony.IccFileHandler iccFh , android.os.Handler h ) { iccFh.loadEFTransparent ( com.android.internal.telephony.IccConstants.EF_IMPI , h.obtainMessage ( IccRecords.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.ims.IsimUiccRecords.EfIsimImpiLoaded ( ) ) ) ; iccFh.loadEFLinearFixedAll ( com.android.internal.telephony.IccConstants.EF_IMPU , h.obtainMessage ( IccRecords.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.ims.IsimUiccRecords.EfIsimImpuLoaded ( ) ) ) ; iccFh.loadEFTransparent ( com.android.internal.telephony.IccConstants.EF_DOMAIN , h.obtainMessage ( IccRecords.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.ims.IsimUiccRecords.EfIsimDomainLoaded ( ) ) ) ; return 3 ; }

Target:
protected void fetchIsimRecords ( ) { recordsRequested = true ; mFh.loadEFTransparent ( com.android.internal.telephony.IccConstants.EF_IMPI , obtainMessage ( IccRecords.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.ims.IsimUiccRecords.EfIsimImpiLoaded ( ) ) ) ; ( recordsToLoad ) ++ ; mFh.loadEFLinearFixedAll ( com.android.internal.telephony.IccConstants.EF_IMPU , obtainMessage ( IccRecords.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.ims.IsimUiccRecords.EfIsimImpuLoaded ( ) ) ) ; ( recordsToLoad ) ++ ; mFh.loadEFTransparent ( com.android.internal.telephony.IccConstants.EF_DOMAIN , obtainMessage ( IccRecords.EVENT_GET_ICC_RECORD_DONE , new com.android.internal.telephony.ims.IsimUiccRecords.EfIsimDomainLoaded ( ) ) ) ; ( recordsToLoad ) ++ ; log ( ( "fetchIsimRecords " + ( recordsToLoad ) ) ) ; }
Source:
public static void setMultiprocessEnabled ( boolean enabled ) { android.webkit.WebViewZygote.sMultiprocessEnabled = enabled ; final java.lang.String serviceName = android.webkit.WebViewZygote.getServiceName ( ) ; if ( serviceName == null ) return ; if ( enabled && ( ( android.webkit.WebViewZygote.sZygote ) == null ) ) { android.os.SystemService.start ( serviceName ) ; } else { android.os.SystemService.stop ( serviceName ) ; android.webkit.WebViewZygote.sZygote = null ; } }

Target:
public static void setMultiprocessEnabled ( boolean enabled ) { synchronized ( android.webkit.WebViewZygote.sLock ) { android.webkit.WebViewZygote.sMultiprocessEnabled = enabled ; final java.lang.String serviceName = android.webkit.WebViewZygote.getServiceNameLocked ( ) ; if ( serviceName == null ) return ; if ( enabled && ( ( android.webkit.WebViewZygote.sZygote ) == null ) ) { android.os.SystemService.start ( serviceName ) ; } else { android.os.SystemService.stop ( serviceName ) ; android.webkit.WebViewZygote.sZygote = null ; } } }
Source:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Throwable thrown ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr , bundleName ) ; }

Target:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.util.ResourceBundle bundle , java.lang.String msg , java.lang.Object ... params ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; if ( ( params != null ) && ( ( params.length ) != 0 ) ) { lr.setParameters ( params ) ; } doLog ( lr , bundle ) ; }
Source:
public boolean canReportAsInvalidNumber ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return false ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo peopleApiInfo = phoneLookupInfo.getPeopleApiInfo ( ) ; return ( ( peopleApiInfo.getInfoType ( ) ) != ( com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo.InfoType.UNKNOWN ) ) && ( ! ( peopleApiInfo.getPersonId ( ) . isEmpty ( ) ) ) ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public boolean canReportAsInvalidNumber ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CEQUINT : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return false ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo peopleApiInfo = phoneLookupInfo.getPeopleApiInfo ( ) ; return ( ( peopleApiInfo.getInfoType ( ) ) != ( com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo.InfoType.UNKNOWN ) ) && ( ! ( peopleApiInfo.getPersonId ( ) . isEmpty ( ) ) ) ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public void testInterfaceCountersUdp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1000 , false ) ; }

Target:
public void testInterfaceCountersUdp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV4_LOOPBACK , crypt , auth , null , true , 1000 , false ) ; }
Source:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newAddon ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull java.lang.String addonVendor , @ com.android.annotations.NonNull java.lang.String addonNameId ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_ADDONS ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mVendor = new com.android.sdklib.repository.descriptors.IdDisplay ( addonVendor , addonVendor ) ; p.mNameId = addonNameId ; return p ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newAddon ( @ 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.descriptors.IdDisplay addonVendor , @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IdDisplay addonName ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_ADDONS ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mVendor = addonVendor ; p.mNameIdDisplay = addonName ; return p ; }
Source:
private void enforceStatusBarPermission ( java.lang.String action , int pid , int uid ) { if ( ( getContext ( ) . checkPermission ( android.Manifest.permission.STATUS_BAR_SERVICE , pid , uid ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( ( "Only system ui may " + action ) ) ; } }

Target:
private void enforceSystemUiPermission ( java.lang.String action , int pid , int uid ) { if ( isCurrentVolumeController ( uid ) ) return ; if ( ( getContext ( ) . checkPermission ( android.Manifest.permission.STATUS_BAR_SERVICE , pid , uid ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( ( "Only system ui may " + action ) ) ; } }
Source:
protected void cleanUpAllConnections ( boolean tearDown , java.lang.String reason ) { if ( DBG ) log ( ( ( ( "cleanUpAllConnections: tearDown=" + tearDown ) + " reason=" ) + reason ) ) ; for ( com.android.internal.telephony.dataconnection.ApnContext apnContext : mApnContexts.values ( ) ) { apnContext.setReason ( reason ) ; cleanUpConnection ( tearDown , apnContext ) ; } stopNetStatPoll ( ) ; stopDataStallAlarm ( ) ; mRequestedApnType = com.android.internal.telephony.PhoneConstants.APN_TYPE_DEFAULT ; }

Target:
protected boolean cleanUpAllConnections ( boolean tearDown , java.lang.String reason ) { if ( DBG ) log ( ( ( ( "cleanUpAllConnections: tearDown=" + tearDown ) + " reason=" ) + reason ) ) ; boolean didDisconnect = false ; for ( com.android.internal.telephony.dataconnection.ApnContext apnContext : mApnContexts.values ( ) ) { if ( ( apnContext.isDisconnected ( ) ) == false ) didDisconnect = true ; apnContext.setReason ( reason ) ; cleanUpConnection ( tearDown , apnContext ) ; } stopNetStatPoll ( ) ; stopDataStallAlarm ( ) ; mRequestedApnType = com.android.internal.telephony.PhoneConstants.APN_TYPE_DEFAULT ; return didDisconnect ; }
Source:
private java.lang.String getIccStateIntentString ( com.android.internal.telephony.IccCardConstants.State state ) { switch ( state ) { case ABSENT : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_ABSENT ; case PIN_REQUIRED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case PUK_REQUIRED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case NETWORK_LOCKED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case READY : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_READY ; case NOT_READY : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_NOT_READY ; case PERM_DISABLED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case CARD_IO_ERROR : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_CARD_IO_ERROR ; case CARD_RESTRICTED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_CARD_RESTRICTED ; default : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_UNKNOWN ; } }

Target:
private java.lang.String getIccStateIntentString ( com.android.internal.telephony.IccCardConstants.State state ) { switch ( state ) { case ABSENT : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_ABSENT ; case PIN_REQUIRED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case PUK_REQUIRED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case NETWORK_LOCKED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case READY : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_READY ; case NOT_READY : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_NOT_READY ; case PERM_DISABLED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOCKED ; case CARD_IO_ERROR : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_CARD_IO_ERROR ; case CARD_RESTRICTED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_CARD_RESTRICTED ; case LOADED : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOADED ; default : return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_UNKNOWN ; } }
Source:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.playButtonListener" , "play button for voicemailUri: %s" , voicemailUri.toString ( ) ) ; if ( ( ( mediaPlayer.getLastPausedVoicemailUri ( ) ) != null ) && ( mediaPlayer.getLastPausedVoicemailUri ( ) . toString ( ) . contentEquals ( voicemailUri.toString ( ) ) ) ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.playButtonListener" , "resume playing voicemailUri: %s" , voicemailUri.toString ( ) ) ; newVoicemailViewHolderListener.resumePausedViewHolder ( newVoicemailViewHolder ) ; } else { playVoicemailWhenAvailableLocally ( ) ; } }

Target:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.deleteButtonListener" , "delete voicemailUri %s" , voicemailUri.toString ( ) ) ; android.content.ContentValues contentValues = new android.content.ContentValues ( ) ; contentValues.put ( "has_content" , 0 ) ; try { getContext ( ) . getContentResolver ( ) . update ( voicemailUri , contentValues , "type = 4" , null ) ; } catch ( java.lang.Exception e ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.deleteButtonListener" , "update has content of voicemailUri %s caused an error: %s" , voicemailUri.toString ( ) , e.toString ( ) ) ; } }
Source:
private static void printUsage ( @ javax.annotation.Nonnull org.kohsuke.args4j.CmdLineParser parser ) { java.lang.System.err.print ( "Main: " ) ; parser.printSingleLineUsage ( java.lang.System.err ) ; java.lang.System.err.println ( ) ; parser.printUsage ( java.lang.System.err ) ; }

Target:
protected static void printUsage ( @ javax.annotation.Nonnull java.io.PrintStream printStream ) { org.kohsuke.args4j.CmdLineParser parser = new org.kohsuke.args4j.CmdLineParser ( new com.android.jill.Options ( ) , org.kohsuke.args4j.ParserProperties.defaults ( ) . withUsageWidth ( 100 ) ) ; printStream.println ( ( "Usage: <options> <class files to be transformed contained recursively" + " in directories or in a zip/jar file>" ) ) ; printStream.println ( ) ; printStream.println ( "Options:" ) ; parser.printUsage ( printStream ) ; }
Source:
public android.net.Uri insert ( android.net.Uri uri , android.content.ContentValues initialValues ) { int match = com.android.providers.media.MediaProvider.URI_MATCHER.match ( uri ) ; java.util.ArrayList < java.lang.Long > notifyRowIds = new java.util.ArrayList < java.lang.Long > ( ) ; android.net.Uri newUri = insertInternal ( uri , match , initialValues , notifyRowIds ) ; notifyMtp ( notifyRowIds ) ; if ( ( newUri != null ) && ( match != ( com.android.providers.media.MediaProvider.MTP_OBJECTS ) ) ) { getContext ( ) . getContentResolver ( ) . notifyChange ( uri , null ) ; } return newUri ; }

Target:
public android.net.Uri insert ( android.net.Uri uri , android.content.ContentValues initialValues ) { int match = com.android.providers.media.MediaProvider.URI_MATCHER.match ( uri ) ; java.util.ArrayList < java.lang.Long > notifyRowIds = new java.util.ArrayList < java.lang.Long > ( ) ; android.net.Uri newUri = insertInternal ( uri , match , initialValues , notifyRowIds ) ; if ( uri != null ) { if ( uri.toString ( ) . startsWith ( "content://media/external/" ) ) { notifyMtp ( notifyRowIds ) ; } } if ( ( newUri != null ) && ( match != ( com.android.providers.media.MediaProvider.MTP_OBJECTS ) ) ) { getContext ( ) . getContentResolver ( ) . notifyChange ( uri , null ) ; } return newUri ; }
Source:
public void testGetValues002_Byte ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointByte" , StackTrace002Debuggee.BYTE_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointByte" ) ; methodInfo.addVariable ( "param" , new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.BYTE_PARAM_VALUE ) ) ; runStackFrameTest ( tester ) ; }

Target:
public void testGetValues015_ThreadGroupAsObject ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = getStaticFieldValue ( classID , "THREAD_GROUP_PARAM_VALUE" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.THREAD_GROUP_AS_OBJECT_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointObject" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointObject" ) ; methodInfo.addVariable ( "param" , oldValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object object ) { if ( object == ( this ) ) { return true ; } if ( object instanceof com.google.common.collect.Multimap ) { com.google.common.collect.Multimap < ? , ? > that = ( ( com.google.common.collect.Multimap < ? , ? > ) ( object ) ) ; return ( ( this . size ( ) ) == ( that.size ( ) ) ) && ( asMap ( ) . equals ( that.asMap ( ) ) ) ; } return false ; }

Target:
java.util.Map < K , java.util.Collection < V > > createAsMap ( ) { return new com.google.common.collect.Multimaps.AsMap < K , V > ( this ) ; }
Source:
public boolean enableNetworkWithoutConnect ( int netId ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( ( "enableNetworkWithoutConnect nid=" + ( java.lang.Integer.toString ( netId ) ) ) ) ; return doBooleanCommand ( ( ( ( "ENABLE_NETWORK " + netId ) + " " ) + "no-connect" ) ) ; }

Target:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } }
Source:
public void testAesCbcHmacSha1Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA1 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha256Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.aput_boolean.d.T_aput_boolean_1 t = new dot.junit.opcodes.aput_boolean.d.T_aput_boolean_1 ( ) ; boolean [ ] arr = new boolean [ 2 ] ; try { t.run ( arr , 2 , true ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE2 ( ) { loadAndRun ( "dot.junit.opcodes.aput_boolean.d.T_aput_boolean_1" , java.lang.NullPointerException.class , null , 2 , true ) ; }
Source:
int doTransfer ( java.io.FileDescriptor fd ) throws java.io.IOException { try { if ( ( direction ) == ( java.nio.IoVec.Direction.READV ) ) { int result = Libcore.os.readv ( fd , ioBuffers , offsets , byteCounts ) ; if ( result == 0 ) { result = - 1 ; } return result ; } else { return Libcore.os.writev ( fd , ioBuffers , offsets , byteCounts ) ; } } catch ( libcore.io.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }

Target:
int doTransfer ( java.io.FileDescriptor fd ) throws java.io.IOException { try { if ( ( direction ) == ( java.nio.IoVec.Direction.READV ) ) { int result = Libcore.os.readv ( fd , ioBuffers , offsets , byteCounts ) ; if ( result == 0 ) { result = - 1 ; } return result ; } else { return Libcore.os.writev ( fd , ioBuffers , offsets , byteCounts ) ; } } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }
Source:
public void rebootRecoveryWithCommand ( java.lang.String command ) { if ( com.android.server.RecoverySystemService.DEBUG ) android.util.Slog.d ( com.android.server.RecoverySystemService.TAG , ( ( "rebootRecoveryWithCommand: [" + command ) + "]" ) ) ; synchronized ( com.android.server.RecoverySystemService.sRequestLock ) { if ( ! ( setupOrClearBcb ( true , command ) ) ) { return ; } android.os.PowerManager pm = ( ( android.os.PowerManager ) ( mContext.getSystemService ( Context.POWER_SERVICE ) ) ) ; pm.reboot ( PowerManager.REBOOT_RECOVERY ) ; } }

Target:
public void rebootRecoveryWithCommand ( java.lang.String command , boolean update ) { if ( com.android.server.RecoverySystemService.DEBUG ) android.util.Slog.d ( com.android.server.RecoverySystemService.TAG , ( ( "rebootRecoveryWithCommand: [" + command ) + "]" ) ) ; synchronized ( com.android.server.RecoverySystemService.sRequestLock ) { if ( ! ( setupOrClearBcb ( true , command ) ) ) { return ; } android.os.PowerManager pm = ( ( android.os.PowerManager ) ( mContext.getSystemService ( Context.POWER_SERVICE ) ) ) ; pm.reboot ( ( update ? android.os.PowerManager.REBOOT_RECOVERY_UPDATE : android.os.PowerManager.REBOOT_RECOVERY ) ) ; } }
Source:
void flushBatchResults ( int clientIf ) { logd ( ( "flushPendingBatchResults - clientIf = " + clientIf ) ) ; if ( ( mBatchScanParms.fullScanClientIf ) != ( - 1 ) ) { resetCountDownLatch ( ) ; gattClientReadScanReportsNative ( mBatchScanParms.fullScanClientIf , com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_FULL ) ; waitForCallback ( ) ; } if ( ( mBatchScanParms.truncatedScanClientIf ) != ( - 1 ) ) { resetCountDownLatch ( ) ; gattClientReadScanReportsNative ( mBatchScanParms.truncatedScanClientIf , com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_TRUNCATED ) ; waitForCallback ( ) ; } setBatchAlarm ( ) ; }

Target:
void flushBatchResults ( int scannerId ) { logd ( ( "flushPendingBatchResults - scannerId = " + scannerId ) ) ; if ( ( mBatchScanParms.fullScanscannerId ) != ( - 1 ) ) { resetCountDownLatch ( ) ; gattClientReadScanReportsNative ( mBatchScanParms.fullScanscannerId , com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_FULL ) ; waitForCallback ( ) ; } if ( ( mBatchScanParms.truncatedScanscannerId ) != ( - 1 ) ) { resetCountDownLatch ( ) ; gattClientReadScanReportsNative ( mBatchScanParms.truncatedScanscannerId , com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_TRUNCATED ) ; waitForCallback ( ) ; } setBatchAlarm ( ) ; }
Source:
public void onRangingFailure ( int rangingId , int reason , java.lang.String description ) { if ( android.net.wifi.nan.WifiNanManager.VDBG ) { android.util.Log.v ( android.net.wifi.nan.WifiNanManager.TAG , ( ( ( ( ( "onRangingSuccess: rangingId=" + rangingId ) + ", reason=" ) + reason ) + ", description=" ) + description ) ) ; } android.os.Message msg = mHandler.obtainMessage ( android.net.wifi.nan.WifiNanManager.WifiNanEventCallbackProxy.CALLBACK_RANGING_FAILURE ) ; msg.arg1 = rangingId ; msg.arg2 = reason ; msg.obj = description ; mHandler.sendMessage ( msg ) ; }

Target:
public void onRangingFailure ( int rangingId , int reason , java.lang.String description ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) { android.util.Log.v ( android.net.wifi.aware.WifiAwareManager.TAG , ( ( ( ( ( "onRangingSuccess: rangingId=" + rangingId ) + ", reason=" ) + reason ) + ", description=" ) + description ) ) ; } android.os.Message msg = mHandler.obtainMessage ( android.net.wifi.aware.WifiAwareManager.WifiAwareEventCallbackProxy.CALLBACK_RANGING_FAILURE ) ; msg.arg1 = rangingId ; msg.arg2 = reason ; msg.obj = description ; mHandler.sendMessage ( msg ) ; }
Source:
public boolean canUpgradeToRttCall ( ) { android.telecom.PhoneAccount phoneAccount = getPhoneAccount ( ) ; if ( phoneAccount == null ) { return false ; } if ( ! ( phoneAccount.hasCapabilities ( PhoneAccount.CAPABILITY_RTT ) ) ) { return false ; } if ( isActiveRttCall ( ) ) { return false ; } if ( isVideoCall ( ) ) { return false ; } if ( isConferenceCall ( ) ) { return false ; } if ( com.android.incallui.call.CallList.getInstance ( ) . hasActiveRttCall ( ) ) { return false ; } return true ; }

Target:
public boolean canUpgradeToRttCall ( ) { if ( ! ( isPhoneAccountRttCapable ( ) ) ) { return false ; } if ( isActiveRttCall ( ) ) { return false ; } if ( isVideoCall ( ) ) { return false ; } if ( isConferenceCall ( ) ) { return false ; } if ( com.android.incallui.call.CallList.getInstance ( ) . hasActiveRttCall ( ) ) { return false ; } return true ; }
Source:
private java.lang.String prepareProgressString ( java.lang.String progressMessage ) { return com.google.gct.testing.GoogleCloudTestingUtils.shouldShowProgressTimestamps ( ) ? ( ( ( progressMessage.substring ( 0 , ( ( progressMessage.length ( ) ) - 1 ) ) ) + "\t" ) + ( java.lang.System.currentTimeMillis ( ) ) ) + "\n" : progressMessage ; }

Target:
private java.lang.String prepareProgressString ( java.lang.String progressMessage ) { return com.google.gct.testing.CloudTestingUtils.shouldShowProgressTimestamps ( ) ? ( ( ( progressMessage.substring ( 0 , ( ( progressMessage.length ( ) ) - 1 ) ) ) + "\t" ) + ( java.lang.System.currentTimeMillis ( ) ) ) + "\n" : progressMessage ; }
Source:
private vogar.tasks.Task createCreateDexJarTask ( vogar.Classpath classpath , java.io.File classpathElement , java.lang.String name , vogar.Action action , java.io.File localDex , java.io.File localTempDir ) { vogar.tasks.Task dex ; if ( run.useJack ) { dex = new vogar.android.JackDexTask ( run , classpath , run.benchmark , name , classpathElement , action , localDex ) ; } else { dex = new vogar.android.DexTask ( run.androidSdk , classpath , run.benchmark , name , classpathElement , action , localDex , localTempDir , run.multidex ) ; } return dex ; }

Target:
private vogar.tasks.Task createCreateDexJarTask ( vogar.Classpath classpath , java.io.File classpathElement , java.lang.String name , vogar.Action action , java.io.File localDex , java.io.File localTempDir ) { vogar.tasks.Task dex ; if ( ( run.toolchain ) == ( vogar.Toolchain.JACK ) ) { dex = new vogar.android.JackDexTask ( run , classpath , run.benchmark , name , classpathElement , action , localDex ) ; } else { dex = new vogar.android.DexTask ( run.androidSdk , classpath , run.benchmark , name , classpathElement , action , localDex , localTempDir , run.multidex ) ; } return dex ; }
Source:
public static void startMethodTracing ( java.lang.String traceFileName , java.io.FileDescriptor fd , int bufferSize , int flags ) { if ( traceFileName == null ) { throw new java.lang.NullPointerException ( "traceFileName == null" ) ; } if ( fd == null ) { throw new java.lang.NullPointerException ( "fd == null" ) ; } dalvik.system.VMDebug.startMethodTracingNative ( traceFileName , fd , bufferSize , flags ) ; }

Target:
public static void startMethodTracing ( java.lang.String traceFileName , java.io.FileDescriptor fd , int bufferSize , int flags ) { if ( fd == null ) { throw new java.lang.NullPointerException ( "fd == null" ) ; } dalvik.system.VMDebug.startMethodTracingFd ( traceFileName , fd , dalvik.system.VMDebug.checkBufferSize ( bufferSize ) , flags ) ; }
Source:
public void run ( ) { com.android.rs.test.RenderScript pRS = com.android.rs.test.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_small_struct s = new com.android.rs.test.ScriptC_small_struct ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.forEach_setStruct ( A ) ; s.forEach_setArrayOfStruct ( B ) ; s.invoke_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_small_struct s = new com.android.rs.test.ScriptC_small_struct ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.forEach_setStruct ( A ) ; s.forEach_setArrayOfStruct ( B ) ; s.invoke_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }
Source:
public com.android.sched.util.file.Directory checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.util.file.Directory ( context.getWorkingDirectory ( ) , string , context.getRunnableHooks ( ) , existence , permissions , change ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }

Target:
public com.android.sched.util.file.Directory checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.util.file.Directory ( context.getWorkingDirectory ( ) , string , context.getRunnableHooks ( ) , existence , permissions , change ) ; } catch ( com.android.sched.util.file.CannotCreateFileException | com.android.sched.util.file.NotDirectoryException | com.android.sched.util.file.WrongPermissionException | com.android.sched.util.file.CannotChangePermissionException | com.android.sched.util.file.NoSuchFileException | com.android.sched.util.file.FileAlreadyExistsException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }
Source:
public boolean stopFilteringMulticastV4Packets ( ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return ( ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) && ( mSupplicantStaIfaceHal.addRxFilter ( SupplicantStaIfaceHal.RX_FILTER_TYPE_V4_MULTICAST ) ) ) && ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) ; } else { return ( ( doBooleanCommand ( "DRIVER RXFILTER-STOP" ) ) && ( doBooleanCommand ( "DRIVER RXFILTER-ADD 2" ) ) ) && ( doBooleanCommand ( "DRIVER RXFILTER-START" ) ) ; } }

Target:
public boolean simAuthResponse ( int id , java.lang.String type , java.lang.String response ) { if ( com.android.server.wifi.WifiNative.SIM_AUTH_RESP_TYPE_GSM_AUTH.equals ( type ) ) { return mSupplicantStaIfaceHal.sendCurrentNetworkEapSimGsmAuthResponse ( response ) ; } else if ( com.android.server.wifi.WifiNative.SIM_AUTH_RESP_TYPE_UMTS_AUTH.equals ( type ) ) { return mSupplicantStaIfaceHal.sendCurrentNetworkEapSimUmtsAuthResponse ( response ) ; } else if ( com.android.server.wifi.WifiNative.SIM_AUTH_RESP_TYPE_UMTS_AUTS.equals ( type ) ) { return mSupplicantStaIfaceHal.sendCurrentNetworkEapSimUmtsAutsResponse ( response ) ; } else { return false ; } }
Source:
public com.android.jack.cfg.ControlFlowGraph getCfg ( ) { try ( com.android.sched.util.log.Event optEvent = tracer.open ( JackEventType.REMOVE_DEAD_CODE ) ) { com.android.jack.cfg.CfgBuilder.removeUnaccessibleNode ( blocks , entryBlock , exitBlock , basicBlockId ) ; } return new com.android.jack.cfg.ControlFlowGraph ( method , basicBlockId , entryBlock , exitBlock , blocks ) ; }

Target:
public com.android.jack.cfg.ControlFlowGraph getCfg ( ) { try ( com.android.sched.util.log.Event optEvent = tracer.open ( JackEventType.REMOVE_DEAD_CODE ) ) { tracer.getStatistic ( com.android.jack.cfg.CfgBuilder.CREATED_BASIC_BLOCK ) . incValue ( ( ( blocks.size ( ) ) + 1 ) ) ; removeUnaccessibleNode ( blocks , entryBlock , exitBlock , basicBlockId ) ; } return new com.android.jack.cfg.ControlFlowGraph ( method , basicBlockId , entryBlock , exitBlock , blocks ) ; }
Source:
private static java.util.List < java.lang.String > listDisplayNames ( java.util.List < com.android.sdklib.devices.Device > devices ) { if ( devices == null ) return null ; java.util.List < java.lang.String > names = new java.util.ArrayList < java.lang.String > ( ) ; for ( com.android.sdklib.devices.Device d : devices ) { names.add ( d.getDisplayName ( ) ) ; } return names ; }

Target:
private static java.util.List < java.lang.String > listDisplayNames ( java.util.List < com.android.sdklib.devices.Device > devices ) { if ( devices == null ) return null ; java.util.List < java.lang.String > names = new java.util.ArrayList < java.lang.String > ( ) ; for ( com.android.sdklib.devices.Device d : devices ) { names.add ( com.android.sdklib.devices.DeviceManagerTest.listDisplayName ( d ) ) ; } return names ; }
Source:
public void testFiveCount_E ( ) throws java.lang.Exception { java.util.TimeZone.setDefault ( java.util.TimeZone.getTimeZone ( "GMT" ) ) ; assertEquals ( "Thu" , formatDate ( java.util.Locale.ENGLISH , "E" ) ) ; assertEquals ( "Thu" , formatDate ( java.util.Locale.ENGLISH , "EE" ) ) ; assertEquals ( "Thu" , formatDate ( java.util.Locale.ENGLISH , "EEE" ) ) ; assertEquals ( "Thursday" , formatDate ( java.util.Locale.ENGLISH , "EEEE" ) ) ; assertEquals ( "T" , formatDate ( java.util.Locale.ENGLISH , "EEEEE" ) ) ; }

Target:
public void testFiveCount_E ( ) throws java.lang.Exception { assertEquals ( "Thu" , formatDateUtc ( java.util.Locale.ENGLISH , "E" ) ) ; assertEquals ( "Thu" , formatDateUtc ( java.util.Locale.ENGLISH , "EE" ) ) ; assertEquals ( "Thu" , formatDateUtc ( java.util.Locale.ENGLISH , "EEE" ) ) ; assertEquals ( "Thursday" , formatDateUtc ( java.util.Locale.ENGLISH , "EEEE" ) ) ; assertEquals ( "T" , formatDateUtc ( java.util.Locale.ENGLISH , "EEEEE" ) ) ; }