auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean isAssistedDialed ( ) { if ( ( getIntentExtras ( ) ) != null ) { return getIntentExtras ( ) . getBoolean ( TelephonyManagerCompat.IS_ASSISTED_DIALED , false ) ; } return false ; }

Target:
public boolean isAssistedDialed ( ) { if ( ( getIntentExtras ( ) ) != null ) { if ( ( ( getIntentExtras ( ) . getBoolean ( TelephonyManagerCompat.USE_ASSISTED_DIALING , false ) ) && ( ( getAssistedDialingExtras ( ) ) != null ) ) && ( ( android.os.Build.VERSION.SDK_INT ) <= ( com.android.dialer.assisteddialing.ConcreteCreator.BUILD_CODE_CEILING ) ) ) { return true ; } } if ( ( hasProperty ( TelephonyManagerCompat.PROPERTY_ASSISTED_DIALING_USED ) ) && ( ( android.os.Build.VERSION.SDK_INT ) > ( com.android.dialer.assisteddialing.ConcreteCreator.BUILD_CODE_CEILING ) ) ) { return true ; } return false ; }
Source:
public void testEmptyStringException ( ) { try { new java.text.RuleBasedCollator ( "" ) ; fail ( ) ; } catch ( java.text.ParseException e ) { assertEquals ( "java.text.ParseException" , e.getClass ( ) . getName ( ) ) ; assertEquals ( 0 , e.getErrorOffset ( ) ) ; } }

Target:
public void testEmptyRules ( ) throws java.lang.Exception { new java.text.RuleBasedCollator ( "" ) ; new java.text.RuleBasedCollator ( " " ) ; new java.text.RuleBasedCollator ( "# This is a comment." ) ; }
Source:
public < T extends com.android.jack.ir.ast.JNode > void accept ( @ javax.annotation.Nonnull java.util.List < T > list ) { int i = 0 ; java.util.List < T > copiedList = new java.util.ArrayList < T > ( list ) ; try { for ( int c = copiedList.size ( ) ; i < c ; ++ i ) { copiedList.get ( i ) . traverse ( this ) ; } } catch ( java.lang.Throwable e ) { throw translateException ( copiedList.get ( i ) , e ) ; } }

Target:
public < T extends com.android.jack.ir.ast.JNode > void accept ( @ javax.annotation.Nonnull java.util.Collection < T > collection ) { java.util.Collection < T > copiedCollection = new java.util.ArrayList < T > ( collection ) ; for ( T element : copiedCollection ) { try { element.traverse ( this ) ; } catch ( java.lang.Throwable e ) { throw translateException ( element , e ) ; } } }
Source:
public void setComponentEnabledSetting ( android.content.ComponentName componentName , int newState , int flags , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return ; setEnabledSetting ( componentName.getPackageName ( ) , componentName.getClassName ( ) , newState , flags , userId ) ; }

Target:
public void setApplicationEnabledSetting ( java.lang.String appPackageName , int newState , int flags , int userId , java.lang.String callingPackage ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return ; if ( callingPackage == null ) { callingPackage = java.lang.Integer.toString ( android.os.Binder.getCallingUid ( ) ) ; } setEnabledSetting ( appPackageName , null , newState , flags , userId , callingPackage ) ; }
Source:
static java.util.Set < java.lang.String > _getAvailableMetaZoneIDs ( ) { if ( ( com.ibm.icu.impl.TimeZoneNamesImpl.METAZONE_IDS ) == null ) { synchronized ( com.ibm.icu.impl.TimeZoneNamesImpl.class ) { if ( ( com.ibm.icu.impl.TimeZoneNamesImpl.METAZONE_IDS ) == null ) { com.ibm.icu.util.UResourceBundle bundle = com.ibm.icu.util.UResourceBundle.getBundleInstance ( ICUResourceBundle.ICU_BASE_NAME , "metaZones" ) ; com.ibm.icu.util.UResourceBundle mapTimezones = bundle.get ( "mapTimezones" ) ; java.util.Set < java.lang.String > keys = mapTimezones.keySet ( ) ; com.ibm.icu.impl.TimeZoneNamesImpl.METAZONE_IDS = java.util.Collections.unmodifiableSet ( keys ) ; } } } return com.ibm.icu.impl.TimeZoneNamesImpl.METAZONE_IDS ; }

Target:
static java.util.Set < java.lang.String > _getAvailableMetaZoneIDs ( ) { if ( ( com.ibm.icu.impl.TimeZoneNamesImpl.METAZONE_IDS ) == null ) { synchronized ( com.ibm.icu.impl.TimeZoneNamesImpl.class ) { if ( ( com.ibm.icu.impl.TimeZoneNamesImpl.METAZONE_IDS ) == null ) { com.ibm.icu.util.UResourceBundle bundle = com.ibm.icu.util.UResourceBundle.getBundleInstance ( ICUData.ICU_BASE_NAME , "metaZones" ) ; com.ibm.icu.util.UResourceBundle mapTimezones = bundle.get ( "mapTimezones" ) ; java.util.Set < java.lang.String > keys = mapTimezones.keySet ( ) ; com.ibm.icu.impl.TimeZoneNamesImpl.METAZONE_IDS = java.util.Collections.unmodifiableSet ( keys ) ; } } } return com.ibm.icu.impl.TimeZoneNamesImpl.METAZONE_IDS ; }
Source:
public void forceUpdateIfaces ( ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_NETWORK_USAGE_HISTORY , com.android.server.net.NetworkStatsService.TAG ) ; assertBandwidthControlEnabled ( ) ; final long token = android.os.Binder.clearCallingIdentity ( ) ; try { updateIfaces ( ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }

Target:
public void forceUpdateIfaces ( android.net.Network [ ] defaultNetworks ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_NETWORK_USAGE_HISTORY , com.android.server.net.NetworkStatsService.TAG ) ; assertBandwidthControlEnabled ( ) ; final long token = android.os.Binder.clearCallingIdentity ( ) ; try { updateIfaces ( defaultNetworks ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }
Source:
public java.lang.String getFolderName ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType folder , org.eclipse.core.resources.IProject project ) { com.android.sdklib.IAndroidTarget target = null ; if ( project != null ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { target = currentSdk.getTarget ( project ) ; } } return getFolderName ( folder , target ) ; }

Target:
public void set ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { set ( config , false ) ; }
Source:
public java.lang.String getISO3Country ( ) { java.lang.String code = libcore.icu.ICU.getISO3CountryNative ( toString ( ) ) ; if ( ( ! ( countryCode.isEmpty ( ) ) ) && ( code.isEmpty ( ) ) ) { throw new java.util.MissingResourceException ( ( "No 3-letter country code for locale: " + ( this ) ) , ( "FormatData_" + ( this ) ) , "ShortCountry" ) ; } return code ; }

Target:
public boolean equals ( java.lang.Object object ) { if ( object == ( this ) ) { return true ; } if ( object instanceof java.util.Locale ) { java.util.Locale o = ( ( java.util.Locale ) ( object ) ) ; return ( ( ( ( languageCode.equals ( o.languageCode ) ) && ( countryCode.equals ( o.countryCode ) ) ) && ( variantCode.equals ( o.variantCode ) ) ) && ( scriptCode.equals ( o.scriptCode ) ) ) && ( extensions.equals ( o.extensions ) ) ; } return false ; }
Source:
public void test_numberLocalization ( ) throws java.lang.Exception { java.util.Locale arabic = new java.util.Locale ( "ar" ) ; if ( ! ( tests.support.Support_Locale.isLocaleAvailable ( arabic ) ) ) { return ; } java.text.NumberFormat nf = java.text.NumberFormat.getNumberInstance ( arabic ) ; assertEquals ( '٠' , new java.text.DecimalFormatSymbols ( arabic ) . getZeroDigit ( ) ) ; assertEquals ( "١٬٢٣٤٬٥٦٧٬٨٩٠" , nf.format ( 1234567890 ) ) ; }

Target:
public void test_numberLocalization ( ) throws java.lang.Exception { java.util.Locale arabic = new java.util.Locale ( "ar" ) ; if ( ! ( tests.support.Support_Locale.isLocaleAvailable ( arabic ) ) ) { return ; } java.text.NumberFormat nf = java.text.NumberFormat.getNumberInstance ( arabic ) ; assertEquals ( '٠' , new java.text.DecimalFormatSymbols ( arabic ) . getZeroDigit ( ) ) ; assertEquals ( "١٢٣٤٥٦٧٨٩٠" , nf.format ( 1234567890 ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( mMajor ) . append ( '.' ) . append ( mMinor ) . append ( '.' ) . append ( mMicro ) ; if ( ( mPreview ) != ( com.android.sdklib.internal.repository.packages.PreviewVersion.NOT_A_PREVIEW ) ) { sb.append ( " rc" ) . append ( mPreview ) ; } return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( mMajor ) . append ( '.' ) . append ( mMinor ) . append ( '.' ) . append ( mMicro ) ; if ( ( mPreview ) != ( com.android.sdklib.internal.repository.packages.FullRevision.NOT_A_PREVIEW ) ) { sb.append ( " rc" ) . append ( mPreview ) ; } return sb.toString ( ) ; }
Source:
protected void enableService ( ) { if ( android.autofillservice.cts.AutoFillServiceTestCase.isServiceEnabled ( ) ) return ; final android.autofillservice.cts.OneTimeSettingsListener observer = new android.autofillservice.cts.OneTimeSettingsListener ( android.autofillservice.cts.AutoFillServiceTestCase.getContext ( ) , android.provider.Settings.Secure.AUTOFILL_SERVICE ) ; android.autofillservice.cts.Helper.runShellCommand ( "settings put secure %s %s default" , android.provider.Settings.Secure.AUTOFILL_SERVICE , android.autofillservice.cts.AutoFillServiceTestCase.SERVICE_NAME ) ; observer.assertCalled ( ) ; android.autofillservice.cts.AutoFillServiceTestCase.assertServiceEnabled ( ) ; }

Target:
protected void disableService ( ) { if ( ! ( android.autofillservice.cts.Helper.hasAutofillFeature ( ) ) ) return ; android.autofillservice.cts.Helper.disableAutofillService ( android.autofillservice.cts.Helper.getContext ( ) , android.autofillservice.cts.InstrumentedAutoFillService.SERVICE_NAME ) ; android.autofillservice.cts.InstrumentedAutoFillService.setIgnoreUnexpectedRequests ( true ) ; }
Source:
private void unbindFromScoringServiceIfNeeded ( ) { if ( com.android.server.NetworkScoreService.DBG ) android.util.Log.d ( com.android.server.NetworkScoreService.TAG , "unbindFromScoringServiceIfNeeded" ) ; if ( ( mServiceConnection ) != null ) { mServiceConnection.disconnect ( mContext ) ; } mServiceConnection = null ; clearInternal ( ) ; }

Target:
private void unbindFromScoringServiceIfNeeded ( ) { if ( com.android.server.NetworkScoreService.DBG ) android.util.Log.d ( com.android.server.NetworkScoreService.TAG , "unbindFromScoringServiceIfNeeded" ) ; synchronized ( mServiceConnectionLock ) { if ( ( mServiceConnection ) != null ) { mServiceConnection.disconnect ( mContext ) ; } mServiceConnection = null ; } clearInternal ( ) ; }
Source:
void allPrintersLost ( ) { for ( com.android.bips.discovery.DiscoveredPrinter printer : mPrinters.values ( ) ) { for ( com.android.bips.discovery.Discovery.Listener listener : mListeners ) { listener.onPrinterLost ( printer ) ; } } mPrinters.clear ( ) ; }

Target:
public java.util.Collection < com.android.bips.discovery.DiscoveredPrinter > getSavedPrinters ( ) { java.util.List < com.android.bips.discovery.DiscoveredPrinter > printers = new java.util.ArrayList < > ( ) ; for ( com.android.bips.discovery.Discovery child : getChildren ( ) ) { if ( child != ( this ) ) { printers.addAll ( child.getSavedPrinters ( ) ) ; } } return printers ; }
Source:
private java.net.URL getUrl ( ) { java.lang.String url = getIntent ( ) . getStringExtra ( ConnectivityManager.EXTRA_CAPTIVE_PORTAL_URL ) ; if ( url == null ) { url = mCm.getCaptivePortalServerUrl ( ) ; } try { return new java.net.URL ( url ) ; } catch ( java.net.MalformedURLException e ) { android.util.Log.e ( com.android.captiveportallogin.CaptivePortalLoginActivity.TAG , ( "Invalid captive portal URL " + url ) ) ; } return null ; }

Target:
private static java.net.URL makeURL ( java.lang.String url ) { try { return new java.net.URL ( url ) ; } catch ( java.net.MalformedURLException e ) { android.util.Log.e ( com.android.captiveportallogin.CaptivePortalLoginActivity.TAG , ( "Invalid URL " + url ) ) ; } return null ; }
Source:
public void subscribe ( int clientId , android.os.Looper looper , android.net.wifi.aware.SubscribeConfig subscribeConfig , android.net.wifi.aware.WifiAwareDiscoverySessionCallback callback ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) { android.util.Log.v ( android.net.wifi.aware.WifiAwareManager.TAG , ( ( ( "subscribe(): clientId=" + clientId ) + ", config=" ) + subscribeConfig ) ) ; } } try { mService.subscribe ( clientId , subscribeConfig , new android.net.wifi.aware.WifiAwareManager.WifiAwareDiscoverySessionCallbackProxy ( this , looper , false , callback , clientId ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void subscribe ( int clientId , android.os.Looper looper , android.net.wifi.aware.SubscribeConfig subscribeConfig , android.net.wifi.aware.DiscoverySessionCallback callback ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) { android.util.Log.v ( android.net.wifi.aware.WifiAwareManager.TAG , ( ( ( "subscribe(): clientId=" + clientId ) + ", config=" ) + subscribeConfig ) ) ; } } try { mService.subscribe ( clientId , subscribeConfig , new android.net.wifi.aware.WifiAwareManager.WifiAwareDiscoverySessionCallbackProxy ( this , looper , false , callback , clientId ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void setDirty ( boolean isDirty ) { boolean old_value = mIsDirty ; mIsDirty = isDirty ; if ( old_value != isDirty ) { getUiParent ( ) . getEditor ( ) . editorDirtyStateChanged ( ) ; } }

Target:
public void setDirty ( boolean isDirty ) { boolean old_value = mIsDirty ; mIsDirty = isDirty ; if ( old_value != isDirty ) { com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor editor = getUiParent ( ) . getEditor ( ) ; if ( editor != null ) { editor.editorDirtyStateChanged ( ) ; } } }
Source:
public java.net.Socket createSocket ( ) throws java.io.IOException { org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl s = ( ( org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; return s ; }

Target:
public java.net.Socket createSocket ( ) throws java.io.IOException { com.android.org.conscrypt.OpenSSLSocketImpl s = ( ( com.android.org.conscrypt.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; return s ; }
Source:
private static com.android.dialer.glidephotomanager.PhotoInfo createPhotoInfoFromRow ( com.android.dialer.calllog.model.CoalescedRow row ) { return com.android.dialer.calllogutils.NumberAttributesConverter.toPhotoInfoBuilder ( row.getNumberAttributes ( ) ) . setFormattedNumber ( row.getFormattedNumber ( ) ) . setIsVideo ( ( ( ( row.getFeatures ( ) ) & ( android.provider.CallLog.Calls.FEATURES_VIDEO ) ) == ( android.provider.CallLog.Calls.FEATURES_VIDEO ) ) ) . setIsVoicemail ( row.getIsVoicemailCall ( ) ) . build ( ) ; }

Target:
private static com.android.dialer.glidephotomanager.PhotoInfo createPhotoInfoFromRow ( com.android.dialer.calllog.model.CoalescedRow row ) { return com.android.dialer.calllogutils.NumberAttributesConverter.toPhotoInfoBuilder ( row.getNumberAttributes ( ) ) . setFormattedNumber ( row.getFormattedNumber ( ) ) . setIsVideo ( ( ( ( row.getFeatures ( ) ) & ( android.provider.CallLog.Calls.FEATURES_VIDEO ) ) == ( android.provider.CallLog.Calls.FEATURES_VIDEO ) ) ) . setIsRtt ( ( ( android.support.v4.os.BuildCompat.isAtLeastP ( ) ) && ( ( ( row.getFeatures ( ) ) & ( android.provider.CallLog.Calls.FEATURES_RTT ) ) == ( android.provider.CallLog.Calls.FEATURES_RTT ) ) ) ) . setIsVoicemail ( row.getIsVoicemailCall ( ) ) . build ( ) ; }
Source:
public void keyguardGoingAway ( boolean disableWindowAnimations , boolean keyguardGoingToNotificationShade ) { enforceNotIsolatedCaller ( "keyguardGoingAway" ) ; final long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { if ( DEBUG_LOCKSCREEN ) logLockScreen ( "" ) ; mWindowManager.keyguardGoingAway ( disableWindowAnimations , keyguardGoingToNotificationShade ) ; if ( ( mLockScreenShown ) == ( com.android.server.am.ActivityManagerService.LOCK_SCREEN_SHOWN ) ) { mLockScreenShown = com.android.server.am.ActivityManagerService.LOCK_SCREEN_HIDDEN ; updateSleepIfNeededLocked ( ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }

Target:
public void keyguardWaitingForActivityDrawn ( ) { enforceNotIsolatedCaller ( "keyguardWaitingForActivityDrawn" ) ; final long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { if ( com.android.server.am.ActivityManagerDebugConfig.DEBUG_LOCKSCREEN ) logLockScreen ( "" ) ; mWindowManager.keyguardWaitingForActivityDrawn ( ) ; if ( ( mLockScreenShown ) == ( com.android.server.am.ActivityManagerService.LOCK_SCREEN_SHOWN ) ) { mLockScreenShown = com.android.server.am.ActivityManagerService.LOCK_SCREEN_LEAVING ; updateSleepIfNeededLocked ( ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }
Source:
public android.os.Bundle getProviderInfo ( java.lang.String provider ) { try { synchronized ( mLock ) { return _getProviderInfoLocked ( provider ) ; } } catch ( java.lang.SecurityException se ) { throw se ; } catch ( java.lang.IllegalArgumentException iae ) { throw iae ; } catch ( java.lang.Exception e ) { android.util.Slog.e ( com.android.server.LocationManagerService.TAG , "_getProviderInfo got exception:" , e ) ; return null ; } }

Target:
public boolean isProviderEnabled ( java.lang.String provider ) { checkResolutionLevelIsSufficientForProviderUse ( getCallerAllowedResolutionLevel ( ) , provider ) ; if ( LocationManager.FUSED_PROVIDER.equals ( provider ) ) return false ; long identity = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { com.android.server.location.LocationProviderInterface p = mProvidersByName.get ( provider ) ; if ( p == null ) return false ; return isAllowedBySettingsLocked ( provider , mCurrentUserId ) ; } } finally { android.os.Binder.restoreCallingIdentity ( identity ) ; } }
Source:
public java.util.ListIterator < E > listIterator ( int index ) { java.lang.Object [ ] elements = getArray ( ) ; int len = elements.length ; if ( ( index < 0 ) || ( index > len ) ) throw new java.lang.IndexOutOfBoundsException ( java.util.concurrent.CopyOnWriteArrayList.outOfBounds ( index , len ) ) ; return new java.util.concurrent.CopyOnWriteArrayList.COWIterator < E > ( elements , index ) ; }

Target:
public synchronized void clear ( ) { elements = libcore.util.EmptyArray.OBJECT ; }
Source:
private static void openAccountList ( android.app.Instrumentation instrumentation ) throws android.support.test.uiautomator.UiObjectNotFoundException { com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "Settings" ) ; android.support.test.uiautomator.UiScrollable itemList = new android.support.test.uiautomator.UiScrollable ( new android.support.test.uiautomator.UiSelector ( ) . resourceIdMatches ( Res.SETTINGS_LIST_CONTAINER_RES ) ) ; itemList.setAsVerticalList ( ) ; android.support.test.uiautomator.UiObject item = itemList.getChildByText ( new android.support.test.uiautomator.UiSelector ( ) . className ( "android.widget.TextView" ) , "Accounts" ) ; item.clickAndWaitForNewWindow ( ) ; }

Target:
private static void openAccountList ( android.app.Instrumentation instrumentation ) throws android.support.test.uiautomator.UiObjectNotFoundException { com.android.devtools.systemimage.uitest.utils.SettingsUtil.openItem ( instrumentation , "Accounts" ) ; }
Source:
public java.lang.String getLongDescription ( ) { java.lang.String s = java.lang.String.format ( "%1$s, Android API %2$s, revision %3$s%4$s\nBy %5$s" , getDisplayName ( ) , mVersion.getApiString ( ) , getRevision ( ) , ( isObsolete ( ) ? " (Obsolete)" : "" ) , getDisplayVendor ( ) ) ; java.lang.String d = getDescription ( ) ; if ( ( d != null ) && ( ( d.length ( ) ) > 0 ) ) { s += '\n' + d ; } s += java.lang.String.format ( "\nRequires SDK Platform Android API %1$s" , mVersion.getApiString ( ) ) ; return s ; }

Target:
public java.lang.String getLongDescription ( ) { java.lang.String s = java.lang.String.format ( "%1$s, Android API %2$s, revision %3$s%4$s\nBy %5$s" , getDisplayName ( ) , mVersion.getApiString ( ) , getRevision ( ) . toShortString ( ) , ( isObsolete ( ) ? " (Obsolete)" : "" ) , getDisplayVendor ( ) ) ; java.lang.String d = getDescription ( ) ; if ( ( d != null ) && ( ( d.length ( ) ) > 0 ) ) { s += '\n' + d ; } s += java.lang.String.format ( "\nRequires SDK Platform Android API %1$s" , mVersion.getApiString ( ) ) ; return s ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( ( e.getSource ( ) ) == ( mCollapseAllToolItem ) ) { setTreeItemsExpanded ( false ) ; } else if ( ( e.getSource ( ) ) == ( mExpandAllToolItem ) ) { setTreeItemsExpanded ( true ) ; } else if ( ( e.getSource ( ) ) == ( mSaveAsToolItem ) ) { exportTrace ( ) ; } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { selectContext ( ( ( mContextSwitchCombo.getSelectionIndex ( ) ) - 1 ) ) ; }
Source:
public void test_getStrength ( ) { java.text.RuleBasedCollator collator ; try { collator = new java.text.RuleBasedCollator ( "; ̀ < a, A < b < c < d" ) ; } catch ( java.text.ParseException e ) { fail ( "ParseException" ) ; return ; } assertTrue ( "Wrong default" , ( ( collator.getStrength ( ) ) == ( java.text.Collator.TERTIARY ) ) ) ; }

Target:
public void test_getStrength ( ) throws java.text.ParseException { java.text.RuleBasedCollator collator = new java.text.RuleBasedCollator ( "&9 ; ̀ < a, A < b < c < d" ) ; assertTrue ( "Wrong default" , ( ( collator.getStrength ( ) ) == ( java.text.Collator.TERTIARY ) ) ) ; }
Source:
public void accept ( @ javax.annotation.Nonnull java.util.List < com.android.jack.ir.ast.JStatement > list ) { instructions = new java.util.LinkedList < com.android.jack.dx.rop.code.Insn > ( ) ; extraInstructions = new java.util.LinkedList < com.android.jack.dx.rop.code.Insn > ( ) ; noMoreInstruction = false ; super . accept ( list ) ; }

Target:
public void processBasicBlockElements ( ) { instructions = new java.util.LinkedList < > ( ) ; extraInstructions = new java.util.LinkedList < > ( ) ; noMoreInstruction = false ; java.util.ArrayList < com.android.jack.ir.ast.cfg.JBasicBlockElement > elements = com.google.common.collect.Lists.newArrayList ( this . currentBasicBlock.elements ( true ) ) ; super . accept ( elements ) ; }
Source:
private void finishGesture ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint mousePos , boolean canceled ) { if ( ( mCurrentGesture ) != null ) { mCurrentGesture.end ( mousePos , canceled ) ; if ( ( mOverlays ) != null ) { for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.Overlay overlay : mOverlays ) { overlay.dispose ( ) ; } mOverlays = null ; } mCurrentGesture = null ; mZombieGesture = null ; mLastStateMask = 0 ; } }

Target:
private void finishGesture ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint mousePos , boolean canceled ) { if ( ( mCurrentGesture ) != null ) { mCurrentGesture.end ( mousePos , canceled ) ; if ( ( mOverlays ) != null ) { for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.Overlay overlay : mOverlays ) { overlay.dispose ( ) ; } mOverlays = null ; } mCurrentGesture = null ; mZombieGesture = null ; mLastStateMask = 0 ; updateMessage ( null ) ; updateCursor ( mousePos ) ; } }
Source:
public void testProcessChldHoldActiveRinging ( ) throws java.lang.Exception { com.android.server.telecom.Call ringingCall = createRingingCall ( ) ; boolean didProcess = mBluetoothPhoneService.mBinder.processChld ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.CHLD_TYPE_HOLDACTIVE_ACCEPTHELD ) ; org.mockito.Mockito.verify ( mMockCallsManager ) . answerCall ( org.mockito.Matchers.eq ( ringingCall ) , org.mockito.Matchers.any ( int . class ) ) ; assertEquals ( didProcess , true ) ; }

Target:
public void testProcessChldHoldActiveUnhold ( ) throws java.lang.Exception { com.android.server.telecom.Call heldCall = createHeldCall ( ) ; boolean didProcess = mBluetoothPhoneService.mBinder.processChld ( com.android.server.telecom.tests.BluetoothPhoneServiceTest.CHLD_TYPE_HOLDACTIVE_ACCEPTHELD ) ; org.mockito.Mockito.verify ( mMockCallsManager ) . unholdCall ( org.mockito.Matchers.eq ( heldCall ) ) ; org.junit.Assert.assertEquals ( didProcess , true ) ; }
Source:
public void addZipFile ( java.io.File zipFile ) throws com.android.sdklib.build.ApkBuilder.ApkCreationException , com.android.sdklib.build.ApkBuilder.DuplicateFileException , com.android.sdklib.build.ApkBuilder.SealedApkException { if ( mIsSealed ) { throw new com.android.sdklib.build.ApkBuilder.SealedApkException ( "APK is already sealed" ) ; } try { verbosePrintln ( "%s:" , zipFile ) ; mNullFilter.reset ( zipFile ) ; java.io.FileInputStream fis = new java.io.FileInputStream ( zipFile ) ; mBuilder.writeZip ( fis , mNullFilter ) ; } catch ( com.android.sdklib.build.ApkBuilder.DuplicateFileException e ) { throw e ; } catch ( java.lang.Exception e ) { throw new com.android.sdklib.build.ApkBuilder.ApkCreationException ( e , "Failed to add %s" , zipFile ) ; } }

Target:
public void addZipFile ( java.io.File zipFile ) throws com.android.sdklib.build.ApkCreationException , com.android.sdklib.build.DuplicateFileException , com.android.sdklib.build.SealedApkException { if ( mIsSealed ) { throw new com.android.sdklib.build.SealedApkException ( "APK is already sealed" ) ; } try { verbosePrintln ( "%s:" , zipFile ) ; mNullFilter.reset ( zipFile ) ; java.io.FileInputStream fis = new java.io.FileInputStream ( zipFile ) ; mBuilder.writeZip ( fis , mNullFilter ) ; } catch ( com.android.sdklib.build.DuplicateFileException e ) { throw e ; } catch ( java.lang.Exception e ) { throw new com.android.sdklib.build.ApkCreationException ( e , "Failed to add %s" , zipFile ) ; } }
Source:
protected synchronized void implCloseSelectableChannel ( ) throws java.io.IOException { if ( ( status ) != ( java.nio.SocketChannelImpl.SOCKET_STATUS_CLOSED ) ) { status = java.nio.SocketChannelImpl.SOCKET_STATUS_CLOSED ; if ( ( ( socket ) != null ) && ( ! ( socket.isClosed ( ) ) ) ) { socket.close ( ) ; } else { libcore.io.IoBridge.closeSocket ( fd ) ; } } }

Target:
protected synchronized void implCloseSelectableChannel ( ) throws java.io.IOException { if ( ( status ) != ( java.nio.SocketChannelImpl.SOCKET_STATUS_CLOSED ) ) { status = java.nio.SocketChannelImpl.SOCKET_STATUS_CLOSED ; libcore.io.IoBridge.closeSocket ( fd ) ; if ( ( ( socket ) != null ) && ( ! ( socket.isClosed ( ) ) ) ) { socket.onClose ( ) ; } } }
Source:
public void test_parkUntil_2 ( ) { tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( true , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( 300 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 300 ) ; }

Target:
public void test_parkUntil_1 ( ) { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 500 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 1000 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 500 ) ; }
Source:
public boolean appliesTo ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull java.io.File file ) { return true ; }

Target:
static boolean isReachableFrom ( @ com.android.annotations.NonNull com.intellij.psi.PsiMethod method , @ com.android.annotations.NonNull com.intellij.psi.PsiElement from , @ com.android.annotations.NonNull com.intellij.psi.PsiElement to ) { com.intellij.psi.PsiElement prev = from ; com.intellij.psi.PsiElement curr = com.android.tools.lint.checks.CutPasteDetector.next ( method , from , to , null ) ; while ( curr != null ) { if ( com.android.tools.lint.checks.CutPasteDetector.containsElement ( method , curr , to ) ) { return true ; } curr = com.android.tools.lint.checks.CutPasteDetector.next ( method , curr , to , prev ) ; prev = curr ; } return false ; }
Source:
public android.app.usage.NetworkStats.Bucket querySummaryForDevice ( android.net.NetworkTemplate template , long startTime , long endTime ) throws android.os.RemoteException , java.lang.SecurityException { android.app.usage.NetworkStats.Bucket bucket = null ; android.app.usage.NetworkStats stats = new android.app.usage.NetworkStats ( mContext , template , mFlags , startTime , endTime ) ; bucket = stats.getDeviceSummaryForNetwork ( ) ; stats.close ( ) ; return bucket ; }

Target:
public android.app.usage.NetworkStats.Bucket querySummaryForDevice ( android.net.NetworkTemplate template , long startTime , long endTime ) throws android.os.RemoteException , java.lang.SecurityException { android.app.usage.NetworkStats.Bucket bucket = null ; android.app.usage.NetworkStats stats = new android.app.usage.NetworkStats ( mContext , template , mFlags , startTime , endTime , mService ) ; bucket = stats.getDeviceSummaryForNetwork ( ) ; stats.close ( ) ; return bucket ; }
Source:
public void testPownF32_2_relaxed ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_2 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 2 ] ; android.renderscript.cts.RSUtils.genRandomInts ( 11329265 , 32 , ( - 16 ) , n ) ; nAlloc.copyFrom ( n ) ; script_f32_relaxed.set_n2 ( nAlloc ) ; doF32_2_relaxed ( 11329265 , 128 ) ; }

Target:
public void testPownF32_2_relaxed ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_2 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 2 ] ; android.renderscript.cts.RSUtils.genRandomInts ( 11329265 , ( - 16 ) , 15 , n ) ; nAlloc.copyFrom ( n ) ; script_f32_relaxed.set_n2 ( nAlloc ) ; doF32_2_relaxed ( 11329265 , 128 ) ; }
Source:
private int moveDexFilesLI ( android.content.pm.PackageParser.Package newPackage ) { if ( ( ( newPackage.applicationInfo.flags ) & ( android.content.pm.ApplicationInfo.FLAG_HAS_CODE ) ) != 0 ) { int retCode = mInstaller.movedex ( newPackage.mScanPath , newPackage.mPath ) ; if ( retCode != 0 ) { mInstaller.rmdex ( newPackage.mPath ) ; } } return android.content.pm.PackageManager.INSTALL_SUCCEEDED ; }

Target:
void cleanUpResourcesLI ( ) { java.lang.String sourceFile = getCodePath ( ) ; if ( ( instructionSet ) == null ) { throw new java.lang.IllegalStateException ( "instructionSet == null" ) ; } int retCode = mInstaller.rmdex ( sourceFile , instructionSet ) ; if ( retCode < 0 ) { android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , ( ( ( ( "Couldn't remove dex file for package: " + " at location " ) + ( sourceFile.toString ( ) ) ) + ", retcode=" ) + retCode ) ) ; } cleanUp ( ) ; }
Source:
public com.android.sched.vfs.InputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NotFileOrDirectoryException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileOrDirectoryException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } return new com.android.sched.vfs.InputOutputZipVFile ( file , zipFile , new java.util.zip.ZipEntry ( path.getPathAsString ( '/' ) ) ) ; }

Target:
public com.android.sched.vfs.InputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileOrDirectoryException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileOrDirectoryException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } return new com.android.sched.vfs.InputOutputZipVFile ( file , zipFile , new java.util.zip.ZipEntry ( path.getPathAsString ( '/' ) ) ) ; }
Source:
public boolean isConditional ( ) { java.lang.Object o = annotation.getValue ( com.android.tools.lint.checks.SupportAnnotationDetector.ATTR_CONDITIONAL ) ; if ( o instanceof java.lang.Boolean ) { return ( ( java.lang.Boolean ) ( o ) ) ; } else if ( o instanceof com.android.tools.lint.client.api.JavaParser.ResolvedField ) { o = ( ( com.android.tools.lint.client.api.JavaParser.ResolvedField ) ( o ) ) . getValue ( ) ; if ( o instanceof java.lang.Boolean ) { return ( ( java.lang.Boolean ) ( o ) ) ; } } return false ; }

Target:
public static java.lang.String getAnnotationStringValue ( @ com.android.annotations.Nullable com.intellij.psi.PsiAnnotation annotation , @ com.android.annotations.NonNull java.lang.String name ) { if ( annotation != null ) { com.intellij.psi.PsiAnnotationMemberValue attributeValue = annotation.findAttributeValue ( name ) ; if ( ( attributeValue == null ) && ( com.android.SdkConstants.ATTR_VALUE.equals ( name ) ) ) { attributeValue = annotation.findAttributeValue ( null ) ; } if ( attributeValue != null ) { java.lang.Object o = com.android.tools.lint.detector.api.ConstantEvaluator.evaluate ( null , attributeValue ) ; if ( o instanceof java.lang.String ) { return ( ( java.lang.String ) ( o ) ) ; } } } return null ; }
Source:
public void wifiNanTerminateSession ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The session ID returned when session was created using publish or subscribe" ) java.lang.Integer sessionId ) throws android.os.RemoteException { android.net.wifi.nan.WifiNanDiscoveryBaseSession session = mSessions.get ( sessionId ) ; if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanTerminateSession before session (session ID " + sessionId ) + " is ready" ) ) ; } session.terminate ( ) ; mSessions.remove ( sessionId ) ; }

Target:
public void wifiNanTerminateSession ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The session ID returned when session was created using publish or subscribe" ) java.lang.Integer sessionId ) throws android.os.RemoteException { synchronized ( mLock ) { android.net.wifi.nan.WifiNanDiscoveryBaseSession session = mDiscoverySessions.get ( sessionId ) ; if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanTerminateSession before session (session ID " + sessionId ) + ") is ready" ) ) ; } session.terminate ( ) ; mDiscoverySessions.remove ( sessionId ) ; } }
Source:
private java.lang.String getLastUsedXmlName ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode ui_node ) { if ( ui_node != null ) { com.android.ide.eclipse.adt.internal.editors.AndroidEditor editor = ui_node.getEditor ( ) ; if ( editor != null ) { org.eclipse.ui.IEditorInput editorInput = editor.getEditorInput ( ) ; if ( editorInput instanceof org.eclipse.ui.part.FileEditorInput ) { org.eclipse.core.resources.IFile f = ( ( org.eclipse.ui.part.FileEditorInput ) ( editorInput ) ) . getFile ( ) ; if ( f != null ) { mLastUsedKey = f.getFullPath ( ) . toPortableString ( ) ; return com.android.ide.eclipse.adt.internal.editors.ui.tree.NewItemSelectionDialog.sLastUsedXmlName.get ( mLastUsedKey ) ; } } } } return null ; }

Target:
private java.lang.String getLastUsedXmlName ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode ui_node ) { if ( ui_node != null ) { com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor editor = ui_node.getEditor ( ) ; if ( editor != null ) { org.eclipse.ui.IEditorInput editorInput = editor.getEditorInput ( ) ; if ( editorInput instanceof org.eclipse.ui.part.FileEditorInput ) { org.eclipse.core.resources.IFile f = ( ( org.eclipse.ui.part.FileEditorInput ) ( editorInput ) ) . getFile ( ) ; if ( f != null ) { mLastUsedKey = f.getFullPath ( ) . toPortableString ( ) ; return com.android.ide.eclipse.adt.internal.editors.ui.tree.NewItemSelectionDialog.sLastUsedXmlName.get ( mLastUsedKey ) ; } } } } return null ; }
Source:
public java.lang.String [ ] getIsimPcscf ( ) { try { com.android.internal.telephony.IPhoneSubInfo info = getSubscriberInfo ( ) ; if ( info == null ) return null ; return info.getIsimPcscf ( ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }

Target:
public java.lang.String [ ] getIsimPcscf ( ) { try { com.android.internal.telephony.IPhoneSubInfo info = getSubscriberInfo ( ) ; if ( info == null ) return null ; return info.getIsimPcscf ( getSubId ( ) ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }
Source:
private java.lang.Object implRemove ( java.lang.Object key ) { if ( registered ) { java.security.Security.increaseVersion ( ) ; } if ( key instanceof java.lang.String ) { java.lang.String keyString = ( ( java.lang.String ) ( key ) ) ; if ( keyString.startsWith ( "Provider." ) ) { return null ; } legacyChanged = true ; if ( ( legacyStrings ) == null ) { legacyStrings = new java.util.LinkedHashMap < java.lang.String , java.lang.String > ( ) ; } legacyStrings.remove ( keyString ) ; } return super . remove ( key ) ; }

Target:
private java.lang.Object implRemove ( java.lang.Object key ) { if ( key instanceof java.lang.String ) { if ( ! ( checkLegacy ( key ) ) ) { return null ; } legacyStrings.remove ( ( ( java.lang.String ) ( key ) ) ) ; } return super . remove ( key ) ; }
Source:
public void sendText ( java.lang.String callingPackage , java.lang.String destAddr , java.lang.String scAddr , java.lang.String text , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent , boolean persistMessageForNonDefaultSmsApp ) { mPhone.getContext ( ) . enforceCallingPermission ( Manifest.permission.SEND_SMS , "Sending SMS message" ) ; sendTextInternal ( callingPackage , destAddr , scAddr , text , sentIntent , deliveryIntent , persistMessageForNonDefaultSmsApp ) ; }

Target:
public void sendText ( java.lang.String callingPackage , java.lang.String destAddr , java.lang.String scAddr , java.lang.String text , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent , boolean persistMessageForNonDefaultSmsApp ) { mPhone.getContext ( ) . enforceCallingPermission ( Manifest.permission.SEND_SMS , "Sending SMS message" ) ; sendTextInternal ( callingPackage , destAddr , scAddr , text , sentIntent , deliveryIntent , persistMessageForNonDefaultSmsApp , com.android.internal.telephony.IccSmsInterfaceManager.SMS_MESSAGE_PRIORITY_NOT_SPECIFIED , false , com.android.internal.telephony.IccSmsInterfaceManager.SMS_MESSAGE_PERIOD_NOT_SPECIFIED ) ; }
Source:
public void copyFrom ( byte [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } }

Target:
public void copyFrom ( java.lang.Object array ) { copyFromUnchecked ( array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public android.view.Surface getSurface ( ) { if ( ( ( mUsage ) & ( android.renderscript.Allocation.USAGE_IO_INPUT ) ) == 0 ) { throw new android.renderscript.RSInvalidStateException ( "Allocation is not a surface texture." ) ; } return mRS.nAllocationGetSurface ( getID ( mRS ) ) ; }

Target:
public android.view.Surface getSurface ( ) { if ( ( ( mUsage ) & ( android.renderscript.Allocation.USAGE_IO_INPUT ) ) == 0 ) { throw new android.renderscript.RSInvalidStateException ( "Allocation is not a surface texture." ) ; } if ( ( mGetSurfaceSurface ) == null ) { mGetSurfaceSurface = mRS.nAllocationGetSurface ( getID ( mRS ) ) ; } return mGetSurfaceSurface ; }
Source:
public android.content.pm.ResolveInfo resolveIntent ( android.content.Intent intent , java.lang.String resolvedType , int flags ) { java.util.List < android.content.pm.ResolveInfo > query = queryIntentActivities ( intent , resolvedType , flags ) ; return chooseBestActivity ( intent , resolvedType , flags , query ) ; }

Target:
public android.content.pm.ResolveInfo resolveIntent ( android.content.Intent intent , java.lang.String resolvedType , int flags , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return null ; java.util.List < android.content.pm.ResolveInfo > query = queryIntentActivities ( intent , resolvedType , flags , userId ) ; return chooseBestActivity ( intent , resolvedType , flags , query , userId ) ; }
Source:
public boolean setP2pGroupIdle ( java.lang.String iface , int time ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setGroupIdle ( iface , time ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " SET p2p_group_idle " ) + time ) ) ; } } }

Target:
public boolean removeAllNetworks ( ) { return mSupplicantStaIfaceHal.removeAllNetworks ( ) ; }
Source:
public final byte get ( ) { if ( ( position ) == ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } return this . block.peekByte ( ( ( offset ) + ( ( position ) ++ ) ) ) ; }

Target:
final void put ( short [ ] src , int srcOffset , int shortCount ) { int byteCount = checkPutBounds ( SizeOf.SHORT , src.length , srcOffset , shortCount ) ; this . block.pokeShortArray ( ( ( offset ) + ( position ) ) , src , srcOffset , shortCount , order.needsSwap ) ; position += byteCount ; }
Source:
public synchronized java.lang.String sendLocation ( double longitude , double latitude , double elevation ) { java.util.Formatter formatter = new java.util.Formatter ( java.util.Locale.US ) ; formatter.format ( com.android.ddmlib.EmulatorConsole.COMMAND_GPS , longitude , latitude , elevation ) ; return processCommand ( formatter.toString ( ) ) ; }

Target:
public synchronized java.lang.String sendLocation ( double longitude , double latitude , double elevation ) { java.util.Formatter formatter = new java.util.Formatter ( java.util.Locale.US ) ; try { formatter.format ( com.android.ddmlib.EmulatorConsole.COMMAND_GPS , longitude , latitude , elevation ) ; return processCommand ( formatter.toString ( ) ) ; } finally { formatter.close ( ) ; } }
Source:
private java.util.List < java.awt.Rectangle > getVerticalRectangles ( java.awt.image.BufferedImage image , java.util.List < com.android.ninepatch.NinePatchChunk.Pair < java.lang.Integer > > topPairs ) { java.util.List < java.awt.Rectangle > rectangles = new java.util.ArrayList < java.awt.Rectangle > ( ) ; for ( com.android.ninepatch.NinePatchChunk.Pair < java.lang.Integer > top : topPairs ) { int x = top.mFirst ; int width = ( top.mSecond ) - ( top.mFirst ) ; rectangles.add ( new java.awt.Rectangle ( x , 1 , width , ( ( image.getHeight ( ) ) - 2 ) ) ) ; } return rectangles ; }

Target:
private java.util.List < java.awt.Rectangle > getVerticalRectangles ( int imageHeight , java.util.List < com.android.ninepatch.NinePatchChunk.Pair < java.lang.Integer > > topPairs ) { java.util.List < java.awt.Rectangle > rectangles = new java.util.ArrayList < java.awt.Rectangle > ( ) ; for ( com.android.ninepatch.NinePatchChunk.Pair < java.lang.Integer > top : topPairs ) { int x = top.mFirst ; int width = ( top.mSecond ) - ( top.mFirst ) ; rectangles.add ( new java.awt.Rectangle ( x , 0 , width , imageHeight ) ) ; } return rectangles ; }
Source:
private java.lang.Object responseCdmaSms ( android.os.Parcel p ) { android.telephony.SmsMessage sms ; sms = android.telephony.SmsMessage.newFromParcel ( p ) ; return sms ; }

Target:
public static byte [ ] arrayListToPrimitiveArray ( java.util.ArrayList < java.lang.Byte > bytes ) { byte [ ] ret = new byte [ bytes.size ( ) ] ; for ( int i = 0 ; i < ( ret.length ) ; i ++ ) { ret [ i ] = bytes.get ( i ) ; } return ret ; }
Source:
private boolean isConstantType ( int typeId ) { switch ( typeId ) { case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_int : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_byte : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_short : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_char : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_float : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_double : case org.eclipse.jdt.internal.compiler.impl.Constant.T_boolean : case org.eclipse.jdt.internal.compiler.impl.Constant.T_long : case org.eclipse.jdt.internal.compiler.impl.Constant.T_JavaLangString : case org.eclipse.jdt.internal.compiler.impl.Constant.T_null : return true ; default : return false ; } }

Target:
private boolean isConstantType ( int typeId ) { switch ( typeId ) { case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_int : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_byte : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_short : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_char : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_float : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_double : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_boolean : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_long : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_JavaLangString : case org.eclipse.jdt.internal.compiler.lookup.TypeIds.T_null : return true ; default : return false ; } }
Source:
public java.lang.String getDeviceSoftwareVersion ( int slotId ) { int [ ] subId = android.telephony.SubscriptionManager.getSubId ( slotId ) ; if ( ( subId == null ) || ( ( subId.length ) == 0 ) ) { return null ; } try { com.android.internal.telephony.IPhoneSubInfo info = getSubscriberInfo ( ) ; if ( info == null ) return null ; return info.getDeviceSvnUsingSubId ( subId [ 0 ] , mContext.getOpPackageName ( ) ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }

Target:
public void sendVisualVoicemailSmsForSubscriber ( int subId , java.lang.String number , int port , java.lang.String text , android.app.PendingIntent sentIntent ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.sendVisualVoicemailSmsForSubscriber ( mContext.getOpPackageName ( ) , subId , number , port , text , sentIntent ) ; } } catch ( android.os.RemoteException ex ) { } }
Source:
public void test_parkFor_2 ( ) { tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( false , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( 300 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 300 ) ; }

Target:
public void test_parkUntil_3 ( ) { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.UNSAFE.unpark ( parkerThread ) ; parkerThread.start ( ) ; parker.assertDurationIsInRange ( 0 ) ; }