auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getIMEI ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_IMEI , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void startDtmf ( char c , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_DTMF_START , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; rr.mParcel.writeString ( java.lang.Character.toString ( c ) ) ; send ( rr ) ; }
Source:
private boolean isSizeStyle ( java.lang.String style , java.util.Set < java.lang.String > sizeStyles ) { if ( sizeStyles == null ) { return false ; } return isSizeStyle ( com.android.tools.lint.checks.RequiredAttributeDetector.stripStylePrefix ( style ) , sizeStyles , 0 ) ; }

Target:
private boolean isSizeStyle ( java.lang.String style , java.util.Set < java.lang.String > sizeStyles ) { if ( isFrameworkSizeStyle ( style ) ) { return true ; } if ( sizeStyles == null ) { return false ; } return isSizeStyle ( com.android.tools.lint.checks.RequiredAttributeDetector.stripStylePrefix ( style ) , sizeStyles , 0 ) ; }
Source:
public void onCreateOptionsMenu ( android.view.Menu menu , android.view.MenuInflater inflater ) { if ( ! ( mUnavailable ) ) { if ( mAllowAddingApns ) { menu.add ( 0 , com.android.settings.ApnSettings.MENU_NEW , 0 , getResources ( ) . getString ( R.string.menu_new ) ) . setIcon ( android.R.drawable.ic_menu_add ) . setShowAsAction ( MenuItem.SHOW_AS_ACTION_IF_ROOM ) ; } menu.add ( 0 , com.android.settings.ApnSettings.MENU_RESTORE , 0 , getResources ( ) . getString ( R.string.menu_restore ) ) . setIcon ( android.R.drawable.ic_menu_upload ) ; } super . onCreateOptionsMenu ( menu , inflater ) ; }

Target:
public void onCreateOptionsMenu ( android.view.Menu menu , android.view.MenuInflater inflater ) { if ( ! ( mUnavailable ) ) { if ( mAllowAddingApns ) { menu.add ( 0 , com.android.settings.ApnSettings.MENU_NEW , 0 , getResources ( ) . getString ( R.string.menu_new ) ) . setIcon ( R.drawable.ic_menu_add_white ) . setShowAsAction ( MenuItem.SHOW_AS_ACTION_IF_ROOM ) ; } menu.add ( 0 , com.android.settings.ApnSettings.MENU_RESTORE , 0 , getResources ( ) . getString ( R.string.menu_restore ) ) . setIcon ( android.R.drawable.ic_menu_upload ) ; } super . onCreateOptionsMenu ( menu , inflater ) ; }
Source:
public void testCommit4 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/pkg/CommitTest3.java:35: Warning: This transaction should be completed with a commit() call [Recycle]\n" + " getCompatFragmentManager().beginTransaction();\n" ) + " ~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk4.xml=>AndroidManifest.xml" , "project.properties1=>project.properties" , "bytecode/CommitTest3.java.txt=>src/test/pkg/CommitTest3.java" , "bytecode/CommitTest3.class.data=>bin/classes/test/pkg/CommitTest3.class" , "bytecode/CommitTest3$MyDialogFragment.class.data=>bin/classes/test/pkg/CommitTest3$MyDialogFragment.class" , "bytecode/CommitTest3$MyCompatDialogFragment.class.data=>bin/classes/test/pkg/CommitTest3$MyCompatDialogFragment.class" ) ) ; }

Target:
public void testCommit4 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/pkg/CommitTest3.java:35: Warning: This transaction should be completed with a commit() call [CommitTransaction]\n" + " getCompatFragmentManager().beginTransaction();\n" ) + " ~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk4.xml=>AndroidManifest.xml" , "project.properties19=>project.properties" , "bytecode/CommitTest3.java.txt=>src/test/pkg/CommitTest3.java" , "bytecode/CommitTest3.class.data=>bin/classes/test/pkg/CommitTest3.class" , "bytecode/CommitTest3$MyDialogFragment.class.data=>bin/classes/test/pkg/CommitTest3$MyDialogFragment.class" , "bytecode/CommitTest3$MyCompatDialogFragment.class.data=>bin/classes/test/pkg/CommitTest3$MyCompatDialogFragment.class" , "appcompat/Fragment.java.txt=>src/android/support/v4/app/Fragment.java" , "appcompat/DialogFragment.java.txt=>src/android/support/v4/app/DialogFragment.java" , "appcompat/FragmentTransaction.java.txt=>src/android/support/v4/app/FragmentTransaction.java" , "appcompat/FragmentManager.java.txt=>src/android/support/v4/app/FragmentManager.java" ) ) ; }
Source:
protected void onLayout ( boolean changed , int l , int t , int r , int b ) { super . onLayout ( changed , l , t , r , b ) ; if ( changed ) { if ( isLandscapeMode ( ) ) { adjustKeyWidths ( ) ; } else { adjustDigitKeyHeights ( ) ; } } }

Target:
protected void onAttachedToWindow ( ) { super . onAttachedToWindow ( ) ; getViewTreeObserver ( ) . removeOnPreDrawListener ( mOnPreDrawListenerForKeyLayoutAdjust ) ; getViewTreeObserver ( ) . addOnPreDrawListener ( mOnPreDrawListenerForKeyLayoutAdjust ) ; }
Source:
public static int waitpid ( int pid , android.util.MutableInt status , int options ) throws android.system.ErrnoException { return Libcore.os.waitpid ( pid , status , options ) ; }

Target:
public static int waitpid ( int pid , android.util.MutableInt status , int options ) throws android.system.ErrnoException { android.util.MutableInt internalStatus = new android.util.MutableInt ( status.value ) ; try { return Libcore.os.waitpid ( pid , internalStatus , options ) ; } finally { status.value = internalStatus.value ; } }
Source:
public void testBackupAndRestore_withNoUninstall ( ) throws java.lang.Exception { installAppAsUser ( android.content.pm.cts.shortcuthost.ShortcutManagerBackupTest.PUBLISHER1_APK , getPrimaryUserId ( ) ) ; runDeviceTestsAsUser ( android.content.pm.cts.shortcuthost.ShortcutManagerBackupTest.PUBLISHER1_PKG , ".ShortcutManagerPreBackupTest" , getPrimaryUserId ( ) ) ; doBackup ( ) ; doRestore ( ) ; runDeviceTestsAsUser ( android.content.pm.cts.shortcuthost.ShortcutManagerBackupTest.PUBLISHER1_PKG , ".ShortcutManagerPostBackupTest" , "testWithNoUninstall" , getPrimaryUserId ( ) ) ; }

Target:
public void testBackupAndRestore_withNoUninstall ( ) throws java.lang.Exception { if ( ! ( mSupportsBackup ) ) { return ; } installAppAsUser ( android.content.pm.cts.shortcuthost.ShortcutManagerBackupTest.PUBLISHER1_APK , getPrimaryUserId ( ) ) ; runDeviceTestsAsUser ( android.content.pm.cts.shortcuthost.ShortcutManagerBackupTest.PUBLISHER1_PKG , ".ShortcutManagerPreBackupTest" , getPrimaryUserId ( ) ) ; doBackup ( ) ; doRestore ( ) ; runDeviceTestsAsUser ( android.content.pm.cts.shortcuthost.ShortcutManagerBackupTest.PUBLISHER1_PKG , ".ShortcutManagerPostBackupTest" , "testWithNoUninstall" , getPrimaryUserId ( ) ) ; }
Source:
private void checkAndThrowExceptionIfServiceUnavailable ( ) throws com.android.ims.ImsException { if ( ( ( mMmTelFeatureConnection ) == null ) || ( ! ( mMmTelFeatureConnection.isBinderAlive ( ) ) ) ) { createImsService ( ) ; if ( ( mMmTelFeatureConnection ) == null ) { throw new com.android.ims.ImsException ( "Service is unavailable" , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } } }

Target:
private void checkAndThrowExceptionIfServiceUnavailable ( ) throws com.android.ims.ImsException { if ( ( ( mMmTelFeatureConnection ) == null ) || ( ! ( mMmTelFeatureConnection.isBinderAlive ( ) ) ) ) { createImsService ( ) ; if ( ( mMmTelFeatureConnection ) == null ) { throw new com.android.ims.ImsException ( "Service is unavailable" , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } } }
Source:
public void testEvaluateNetworks_recommendationsDisabled ( ) { org.mockito.Mockito.when ( mFrameworkFacade.getIntegerSetting ( mContext , Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED , 0 ) ) . thenReturn ( 0 ) ; mRecommendedNetworkEvaluator.mContentObserver.onChange ( false ) ; mRecommendedNetworkEvaluator.evaluateNetworks ( null , null , null , false , false , null ) ; org.mockito.Mockito.verifyZeroInteractions ( mWifiConfigManager , mNetworkScoreManager ) ; }

Target:
public void testEvaluateNetworks_recommendationsDisabled ( ) { when ( mFrameworkFacade.getIntegerSetting ( mContext , Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED , 0 ) ) . thenReturn ( 0 ) ; mContentObserver.onChange ( false ) ; mRecommendedNetworkEvaluator.evaluateNetworks ( null , null , null , false , false , null ) ; verifyZeroInteractions ( mWifiConfigManager , mNetworkScoreManager ) ; }
Source:
public void answer ( java.lang.String iface , int what , android.os.Handler handler ) { android.util.SparseArray < android.os.Handler > ifaceHandlers = mHandlerMap.get ( iface ) ; if ( ifaceHandlers == null ) { ifaceHandlers = new android.util.SparseArray ( ) ; mHandlerMap.put ( iface , ifaceHandlers ) ; } ifaceHandlers.put ( what , handler ) ; }

Target:
public void registerHandler ( java.lang.String iface , int what , android.os.Handler handler ) { android.util.SparseArray < android.os.Handler > ifaceHandlers = mHandlerMap.get ( iface ) ; if ( ifaceHandlers == null ) { ifaceHandlers = new android.util.SparseArray ( ) ; mHandlerMap.put ( iface , ifaceHandlers ) ; } ifaceHandlers.put ( what , handler ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { updateLaunchConfigurationDialog ( ) ; boolean auto = mAutoTargetButton.getSelection ( ) ; mPreferredAvdSelector.setEnabled ( auto ) ; mPreferredAvdLabel.setEnabled ( auto ) ; boolean all = mAllDevicesTargetButton.getSelection ( ) ; mDeviceTypeCombo.setEnabled ( all ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { targetModeChanged ( ) ; }
Source:
public java.lang.String getPackageFromManifest ( ) { assert ( mType ) != ( com.android.builder.core.VariantConfiguration.Type.TEST ) ; java.io.File manifestLocation = mDefaultSourceProvider.getManifestFile ( ) ; return sManifestParser.getPackage ( manifestLocation ) ; }

Target:
public java.lang.String getPackageFromManifest ( ) { assert ( mType ) != ( com.android.builder.core.VariantConfiguration.Type.TEST ) ; java.io.File manifestLocation = mDefaultSourceProvider.getManifestFile ( ) ; java.lang.String packageName = sManifestParser.getPackage ( manifestLocation ) ; if ( packageName == null ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "Cannot read packageName from %1$s" , mDefaultSourceProvider.getManifestFile ( ) . getAbsolutePath ( ) ) ) ; } return packageName ; }
Source:
protected void onOrientationChange ( ) { int index = mOrientation.getSelectionIndex ( ) ; if ( index != ( - 1 ) ) { mSelectedConfiguration.setScreenOrientationQualifier ( new com.android.ide.eclipse.adt.internal.resources.configurations.ScreenOrientationQualifier ( com.android.sdklib.resources.ScreenOrientation.getByIndex ( index ) ) ) ; } else { mSelectedConfiguration.setScreenOrientationQualifier ( new com.android.ide.eclipse.adt.internal.resources.configurations.ScreenOrientationQualifier ( ) ) ; } onChange ( true ) ; }

Target:
protected void onOrientationChange ( ) { int index = mOrientation.getSelectionIndex ( ) ; if ( index != ( - 1 ) ) { mSelectedConfiguration.setScreenOrientationQualifier ( new com.android.ide.eclipse.adt.internal.resources.configurations.ScreenOrientationQualifier ( com.android.resources.ScreenOrientation.getByIndex ( index ) ) ) ; } else { mSelectedConfiguration.setScreenOrientationQualifier ( new com.android.ide.eclipse.adt.internal.resources.configurations.ScreenOrientationQualifier ( ) ) ; } onChange ( true ) ; }
Source:
public void requestRecommendation ( android.net.RecommendationRequest request , android.os.IRemoteCallback callback , int sequence ) throws android.os.RemoteException { final android.os.Message msg = mHandler.obtainMessage ( android.net.NetworkRecommendationProvider.ServiceHandler.MSG_GET_RECOMMENDATION , sequence , 0 , callback ) ; final android.os.Bundle data = new android.os.Bundle ( ) ; data.putParcelable ( android.net.NetworkRecommendationProvider.EXTRA_RECOMMENDATION_REQUEST , request ) ; msg.setData ( data ) ; msg.sendToTarget ( ) ; }

Target:
public void requestScores ( final android.net.NetworkKey [ ] networks ) throws android.os.RemoteException { if ( ( networks != null ) && ( ( networks.length ) > 0 ) ) { mHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onRequestScores ( networks ) ; } } ) ; } }
Source:
public static java.util.List < com.android.sdklib.devices.Device > parse ( @ com.android.annotations.NonNull java.io.File devicesFile ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.InputStream stream = new java.io.FileInputStream ( devicesFile ) ; return com.android.sdklib.devices.DeviceParser.parseImpl ( stream , devicesFile.getAbsoluteFile ( ) . getParentFile ( ) ) ; }

Target:
public static java.util.List < com.android.sdklib.devices.Device > parse ( @ com.android.annotations.NonNull java.io.File devicesFile ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.io.InputStream stream = null ; try { stream = new java.io.FileInputStream ( devicesFile ) ; return com.android.sdklib.devices.DeviceParser.parseImpl ( stream , devicesFile.getAbsoluteFile ( ) . getParentFile ( ) ) ; } finally { if ( stream != null ) { try { stream.close ( ) ; } catch ( java.io.IOException ignore ) { } } } }
Source:
public int compare ( java.util.Map.Entry < java.lang.Long , com.android.tools.perflib.vmtrace.MethodInfo > o1 , java.util.Map.Entry < java.lang.Long , com.android.tools.perflib.vmtrace.MethodInfo > o2 ) { long diff = ( o2.getValue ( ) . getInclusiveTime ( threadName , ClockType.THREAD ) ) - ( o1.getValue ( ) . getInclusiveTime ( threadName , ClockType.THREAD ) ) ; return com.google.common.primitives.Ints.saturatedCast ( diff ) ; }

Target:
public int compare ( java.util.Map.Entry < java.lang.Long , com.android.tools.perflib.vmtrace.MethodInfo > o1 , java.util.Map.Entry < java.lang.Long , com.android.tools.perflib.vmtrace.MethodInfo > o2 ) { long diff = ( o2.getValue ( ) . getInclusiveTime ( thread , ClockType.THREAD ) ) - ( o1.getValue ( ) . getInclusiveTime ( thread , ClockType.THREAD ) ) ; return com.google.common.primitives.Ints.saturatedCast ( diff ) ; }
Source:
synchronized boolean isHearingAidPlaying ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hearingaid.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.hearingaid.HearingAidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hearingaid.HearingAidService.TAG , ( ( "isHearingAidPlaying(" + device ) + ")" ) ) ; } throw new java.lang.IllegalStateException ( "Implement me" ) ; }

Target:
java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hearingaid.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; synchronized ( mStateMachines ) { java.util.List < android.bluetooth.BluetoothDevice > devices = new java.util.ArrayList < > ( ) ; for ( com.android.bluetooth.hearingaid.HearingAidStateMachine sm : mStateMachines.values ( ) ) { if ( sm.isConnected ( ) ) { devices.add ( sm.getDevice ( ) ) ; } } return devices ; } }
Source:
public static void sort ( long [ ] a ) { java.util.DualPivotQuicksort.sort ( a ) ; }

Target:
public static void sort ( long [ ] a , int fromIndex , int toIndex ) { java.util.Arrays.rangeCheck ( a.length , fromIndex , toIndex ) ; java.util.DualPivotQuicksort.sort ( a , fromIndex , ( toIndex - 1 ) , null , 0 , 0 ) ; }
Source:
protected com.android.volley.Response < org.json.JSONObject > parseNetworkResponse ( com.android.volley.NetworkResponse response ) { try { java.lang.String jsonString = new java.lang.String ( response.data , com.android.volley.toolbox.HttpHeaderParser.parseCharset ( response.headers ) ) ; return com.android.volley.Response.success ( new org.json.JSONObject ( jsonString ) , com.android.volley.toolbox.HttpHeaderParser.parseCacheHeaders ( response ) ) ; } catch ( java.io.UnsupportedEncodingException e ) { return com.android.volley.Response.error ( new com.android.volley.ParseError ( e ) ) ; } catch ( org.json.JSONException je ) { return com.android.volley.Response.error ( new com.android.volley.ParseError ( je ) ) ; } }

Target:
protected com.android.volley.Response < org.json.JSONObject > parseNetworkResponse ( com.android.volley.NetworkResponse response ) { try { java.lang.String jsonString = new java.lang.String ( response.data , com.android.volley.toolbox.HttpHeaderParser.parseCharset ( response.headers , com.android.volley.toolbox.PROTOCOL_CHARSET ) ) ; return com.android.volley.Response.success ( new org.json.JSONObject ( jsonString ) , com.android.volley.toolbox.HttpHeaderParser.parseCacheHeaders ( response ) ) ; } catch ( java.io.UnsupportedEncodingException e ) { return com.android.volley.Response.error ( new com.android.volley.ParseError ( e ) ) ; } catch ( org.json.JSONException je ) { return com.android.volley.Response.error ( new com.android.volley.ParseError ( je ) ) ; } }
Source:
public void onCreate ( @ android.support.annotation.Nullable android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; contactsPrefs = new com.android.contacts.common.preference.ContactsPreferences ( getContext ( ) ) ; contactsPrefs.registerChangeListener ( this ) ; header = getArguments ( ) . getInt ( com.android.dialer.contactsfragment.ContactsFragment.EXTRA_HEADER ) ; hasPhoneNumbers = getArguments ( ) . getBoolean ( com.android.dialer.contactsfragment.ContactsFragment.EXTRA_HAS_PHONE_NUMBERS ) ; }

Target:
public void onCreate ( @ android.support.annotation.Nullable android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; contactsPrefs = new com.android.contacts.common.preference.ContactsPreferences ( getContext ( ) ) ; contactsPrefs.registerChangeListener ( this ) ; header = getArguments ( ) . getInt ( com.android.dialer.contactsfragment.ContactsFragment.EXTRA_HEADER ) ; hasPhoneNumbers = getArguments ( ) . getBoolean ( com.android.dialer.contactsfragment.ContactsFragment.EXTRA_HAS_PHONE_NUMBERS ) ; if ( savedInstanceState == null ) { onHiddenChanged ( false ) ; } }
Source:
public int pxToDp ( int px ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite config = mRulesEngine.getEditor ( ) . getConfigurationComposite ( ) ; float dpi = config.getDensity ( ) . getDpiValue ( ) ; return ( ( int ) ( ( px * 160 ) / dpi ) ) ; }

Target:
public int pxToDp ( int px ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationChooser chooser = mRulesEngine.getEditor ( ) . getConfigurationChooser ( ) ; float dpi = chooser.getConfiguration ( ) . getDensity ( ) . getDpiValue ( ) ; return ( ( int ) ( ( px * 160 ) / dpi ) ) ; }
Source:
public final org.jf.dexlib2.builder.Label label_ref ( ) throws org.jf.smali.RecognitionException { org.jf.dexlib2.builder.Label label = null ; org.antlr.runtime.tree.CommonTree SIMPLE_NAME96 = null ; try { { SIMPLE_NAME96 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.SIMPLE_NAME , org.jf.smali.smaliTreeWalker.FOLLOW_SIMPLE_NAME_in_label_ref1662 ) ) ) ; label = method_stack.peek ( ) . methodBuilder.getLabel ( ( SIMPLE_NAME96 != null ? SIMPLE_NAME96.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return label ; }

Target:
public final org.jf.dexlib2.builder.Label label_ref ( ) throws org.jf.smali.RecognitionException { org.jf.dexlib2.builder.Label label = null ; org.antlr.runtime.tree.CommonTree SIMPLE_NAME96 = null ; try { { SIMPLE_NAME96 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.SIMPLE_NAME , org.jf.smali.smaliTreeWalker.FOLLOW_SIMPLE_NAME_in_label_ref1664 ) ) ) ; label = method_stack.peek ( ) . methodBuilder.getLabel ( ( SIMPLE_NAME96 != null ? SIMPLE_NAME96.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return label ; }
Source:
public final int onSetCapabilityValues ( android.telephony.ims.internal.feature.CapabilityConfiguration capabilities ) { return onSetCapabilityValues ( new android.telephony.ims.internal.feature.MmTelFeature.MmTelCapabilityConfiguration ( capabilities ) ) ; }

Target:
private void queryCapabilityConfigurationInternal ( int capability , int radioTech , android.telephony.ims.internal.aidl.IImsCapabilityCallback c ) { boolean enabled = queryCapabilityConfiguration ( capability , radioTech ) ; try { if ( c != null ) { c.onQueryCapabilityConfiguration ( capability , radioTech , enabled ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.feature.MmTelFeature.LOG_TAG , "queryCapabilityConfigurationInternal called on dead binder!" ) ; } }
Source:
private static void reportTypeDef ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation , @ com.android.annotations.NonNull lombok.ast.Node argument ) { java.lang.Object allowed = annotation.getValue ( ) ; if ( allowed instanceof java.lang.Object [ ] ) { java.lang.Object [ ] allowedValues = ( ( java.lang.Object [ ] ) ( allowed ) ) ; com.android.tools.lint.checks.SupportAnnotationDetector.reportTypeDef ( context , argument , false , allowedValues ) ; } }

Target:
private static void reportTypeDef ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation , @ com.android.annotations.NonNull lombok.ast.Node argument , @ com.android.annotations.Nullable lombok.ast.Node errorNode ) { java.lang.Object allowed = annotation.getValue ( ) ; if ( allowed instanceof java.lang.Object [ ] ) { java.lang.Object [ ] allowedValues = ( ( java.lang.Object [ ] ) ( allowed ) ) ; com.android.tools.lint.checks.SupportAnnotationDetector.reportTypeDef ( context , argument , errorNode , false , allowedValues ) ; } }
Source:
public static java.io.File getCompatJarFile ( ) { java.io.File supportDir = com.android.ide.eclipse.adt.internal.actions.AddCompatibilityJarAction.getCompatPackageDir ( ) ; java.io.File path = new java.io.File ( supportDir , ( ( ( com.android.ide.eclipse.adt.internal.actions.AddCompatibilityJarAction.FD_V4 ) + ( java.io.File.separator ) ) + ( com.android.ide.eclipse.adt.internal.actions.AddCompatibilityJarAction.ANDROID_SUPPORT_V4_JAR ) ) ) ; if ( path.exists ( ) ) { return path ; } return null ; }

Target:
public static java.io.File getSupportJarFile ( ) { java.io.File supportDir = com.android.ide.eclipse.adt.internal.actions.AddCompatibilityJarAction.getSupportPackageDir ( ) ; if ( supportDir != null ) { java.io.File path = new java.io.File ( supportDir , ( ( ( com.android.ide.eclipse.adt.internal.actions.AddCompatibilityJarAction.FD_V4 ) + ( java.io.File.separator ) ) + ( com.android.ide.eclipse.adt.internal.actions.AddCompatibilityJarAction.ANDROID_SUPPORT_V4_JAR ) ) ) ; if ( path.exists ( ) ) { return path ; } } return null ; }
Source:
public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { mTypedef = ( desc.equals ( com.android.tools.rmtypedefs.RmTypeDefs.INT_DEF_DESC ) ) || ( desc.equals ( com.android.tools.rmtypedefs.RmTypeDefs.STRING_DEF_DESC ) ) ; if ( desc.equals ( com.android.tools.rmtypedefs.RmTypeDefs.RETENTION_DESC ) ) { return new org.objectweb.asm.AnnotationVisitor ( org.objectweb.asm.Opcodes.ASM4 ) { public void visitEnum ( java.lang.String name , java.lang.String desc , java.lang.String value ) { if ( desc.equals ( com.android.tools.rmtypedefs.RmTypeDefs.RETENTION_POLICY_DESC ) ) { mSourceRetention = com.android.tools.rmtypedefs.RmTypeDefs.SOURCE_RETENTION_VALUE.equals ( value ) ; } } } ; } return null ; }

Target:
public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { mTypedef = ( desc.equals ( com.android.tools.rmtypedefs.RmTypeDefs.INT_DEF_DESC ) ) || ( desc.equals ( com.android.tools.rmtypedefs.RmTypeDefs.STRING_DEF_DESC ) ) ; if ( desc.equals ( com.android.tools.rmtypedefs.RmTypeDefs.RETENTION_DESC ) ) { return new org.objectweb.asm.AnnotationVisitor ( org.objectweb.asm.Opcodes.ASM5 ) { public void visitEnum ( java.lang.String name , java.lang.String desc , java.lang.String value ) { if ( desc.equals ( com.android.tools.rmtypedefs.RmTypeDefs.RETENTION_POLICY_DESC ) ) { mSourceRetention = com.android.tools.rmtypedefs.RmTypeDefs.SOURCE_RETENTION_VALUE.equals ( value ) ; } } } ; } return null ; }
Source:
public void testInvalidMinorDistroVersion_older ( ) throws java.lang.Exception { createSystemTzDataFileOnHost ( com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; libcore.tzdata.shared2.DistroVersion oldMinorDistroVersion = new libcore.tzdata.shared2.DistroVersion ( libcore.tzdata.shared2.DistroVersion.CURRENT_FORMAT_MAJOR_VERSION , ( ( libcore.tzdata.shared2.DistroVersion.CURRENT_FORMAT_MINOR_VERSION ) - 1 ) , com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION , 1 ) ; libcore.tzdata.shared2.TimeZoneDistro distro = com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . setDistroVersion ( oldMinorDistroVersion ) . build ( ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataCurrentDir , distro ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 5 , runTzDataCheckOnDevice ( ) ) ; assertDevicePathDoesNotExist ( dataCurrentDir ) ; }

Target:
public void testInvalidMinorDistroVersion_older ( ) throws java.lang.Exception { createSystemTzDataFileOnHost ( com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; com.android.timezone.distro.DistroVersion oldMinorDistroVersion = new com.android.timezone.distro.DistroVersion ( com.android.timezone.distro.DistroVersion.CURRENT_FORMAT_MAJOR_VERSION , ( ( com.android.timezone.distro.DistroVersion.CURRENT_FORMAT_MINOR_VERSION ) - 1 ) , com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION , 1 ) ; com.android.timezone.distro.TimeZoneDistro distro = com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . setDistroVersion ( oldMinorDistroVersion ) . build ( ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataCurrentDir , distro ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 5 , runTzDataCheckOnDevice ( ) ) ; assertDevicePathDoesNotExist ( dataCurrentDir ) ; }
Source:
private native void gattClientScanFilterDeleteNative ( int client_if , int filter_type , int filter_index , int company_id , int company_id_mask , long uuid_lsb , long uuid_msb , long uuid_mask_lsb , long uuid_mask_msb , java.lang.String name , java.lang.String address , byte addr_type , byte [ ] data , byte [ ] mask ) ;

Target:
private native void gattClientScanFilterAddNative ( int clientIf , int filterType , int filterIndex , int companyId , int companyIdMask , long uuidLsb , long uuidMsb , long uuidMaskLsb , long uuidMaskMsb , java.lang.String name , java.lang.String address , byte addrType , byte [ ] data , byte [ ] mask ) ;
Source:
public void writeDescriptor ( int clientIf , java.lang.String address , int srvcType , int srvcInstanceId , android.os.ParcelUuid srvcId , int charInstanceId , android.os.ParcelUuid charId , int descrInstanceId , android.os.ParcelUuid descrId , int writeType , int authReq , byte [ ] value ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.writeDescriptor ( clientIf , address , srvcType , srvcInstanceId , srvcId.getUuid ( ) , charInstanceId , charId.getUuid ( ) , descrInstanceId , descrId.getUuid ( ) , writeType , authReq , value ) ; }

Target:
public void readDescriptor ( int clientIf , java.lang.String address , int handle , int authReq ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.readDescriptor ( clientIf , address , handle , authReq ) ; }
Source:
public void initializeInvalidateRegion ( int left , int top , int right , int bottom ) { final android.graphics.RectF region = mPreviousRegion ; region.set ( left , top , right , bottom ) ; region.inset ( ( - 1.0F ) , ( - 1.0F ) ) ; if ( mFillBefore ) { final android.view.animation.Transformation previousTransformation = mPreviousTransformation ; applyTransformation ( 0.0F , previousTransformation ) ; } }

Target:
public void initializeInvalidateRegion ( int left , int top , int right , int bottom ) { final android.graphics.RectF region = mPreviousRegion ; region.set ( left , top , right , bottom ) ; region.inset ( ( - 1.0F ) , ( - 1.0F ) ) ; if ( mFillBefore ) { final android.view.animation.Transformation previousTransformation = mPreviousTransformation ; applyTransformation ( mInterpolator.getInterpolation ( 0.0F ) , previousTransformation ) ; } }
Source:
private boolean checkDataType ( org.eclipse.swt.dnd.DropTargetEvent event ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.ElementDescTransfer edt = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ElementDescTransfer.getInstance ( ) ; org.eclipse.swt.dnd.TransferData current = event.currentDataType ; if ( edt.isSupportedType ( current ) ) { return true ; } for ( org.eclipse.swt.dnd.TransferData td : event.dataTypes ) { if ( ( td != current ) && ( edt.isSupportedType ( td ) ) ) { event.currentDataType = td ; return true ; } } event.detail = org.eclipse.swt.dnd.DND.DROP_NONE ; return false ; }

Target:
private boolean checkDataType ( org.eclipse.swt.dnd.DropTargetEvent event ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleXmlTransfer sxt = com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleXmlTransfer.getInstance ( ) ; org.eclipse.swt.dnd.TransferData current = event.currentDataType ; if ( sxt.isSupportedType ( current ) ) { return true ; } for ( org.eclipse.swt.dnd.TransferData td : event.dataTypes ) { if ( ( td != current ) && ( sxt.isSupportedType ( td ) ) ) { event.currentDataType = td ; return true ; } } event.detail = org.eclipse.swt.dnd.DND.DROP_NONE ; return false ; }
Source:
public void testPownF32_2 ( ) { 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.set_n2 ( nAlloc ) ; doF32_2 ( 11329265 , 16 ) ; }

Target:
public void testPownF32_2 ( ) { 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.set_n2 ( nAlloc ) ; doF32_2 ( 11329265 , 16 ) ; }
Source:
public void getLastDataCallFailCause ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void resetRadio ( android.os.Message result ) { throw new java.lang.RuntimeException ( "resetRadio not expected to be called" ) ; }
Source:
public void testCleartextTrafficPolicyWithFtpURLConnection ( ) throws java.lang.Exception { libcore.net.NetworkSecurityPolicy.setCleartextTrafficPermitted ( true ) ; byte [ ] serverReplyOnConnect = "220\r\n" . getBytes ( "US-ASCII" ) ; try ( libcore.net.NetworkSecurityPolicyTest.CapturingServerSocket server = new libcore.net.NetworkSecurityPolicyTest.CapturingServerSocket ( serverReplyOnConnect ) ) { java.net.URL url = new java.net.URL ( ( ( "ftp://localhost:" + ( server.getPort ( ) ) ) + "/test.txt" ) ) ; try { url.openConnection ( ) . getContent ( ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } server.assertDataTransmittedByClient ( ) ; } libcore.net.NetworkSecurityPolicy.setCleartextTrafficPermitted ( false ) ; try ( libcore.net.NetworkSecurityPolicyTest.CapturingServerSocket server = new libcore.net.NetworkSecurityPolicyTest.CapturingServerSocket ( serverReplyOnConnect ) ) { java.net.URL url = new java.net.URL ( ( ( "ftp://localhost:" + ( server.getPort ( ) ) ) + "/test.txt" ) ) ; try { url.openConnection ( ) . getContent ( ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } server.assertNoDataTransmittedByClient ( ) ; } }

Target:
public void testCleartextTrafficPolicyWithFtpURLConnection ( ) throws java.lang.Exception { libcore.net.NetworkSecurityPolicy.setInstance ( new libcore.net.NetworkSecurityPolicyTest.TestNetworkSecurityPolicy ( true ) ) ; byte [ ] serverReplyOnConnect = "220\r\n" . getBytes ( "US-ASCII" ) ; try ( libcore.net.NetworkSecurityPolicyTest.CapturingServerSocket server = new libcore.net.NetworkSecurityPolicyTest.CapturingServerSocket ( serverReplyOnConnect ) ) { java.net.URL url = new java.net.URL ( ( ( "ftp://localhost:" + ( server.getPort ( ) ) ) + "/test.txt" ) ) ; try { url.openConnection ( ) . getContent ( ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } server.assertDataTransmittedByClient ( ) ; } libcore.net.NetworkSecurityPolicy.setInstance ( new libcore.net.NetworkSecurityPolicyTest.TestNetworkSecurityPolicy ( false ) ) ; try ( libcore.net.NetworkSecurityPolicyTest.CapturingServerSocket server = new libcore.net.NetworkSecurityPolicyTest.CapturingServerSocket ( serverReplyOnConnect ) ) { java.net.URL url = new java.net.URL ( ( ( "ftp://localhost:" + ( server.getPort ( ) ) ) + "/test.txt" ) ) ; try { url.openConnection ( ) . getContent ( ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } server.assertNoDataTransmittedByClient ( ) ; } }
Source:
private static boolean getBooleanProperty ( final java.lang.String key ) { java.lang.String s = java.security.AccessController.doPrivileged ( new java.security.PrivilegedAction < java.lang.String > ( ) { @ java.lang.Override public java.lang.String run ( ) { return java.lang.System.getProperty ( key ) ; } } ) ; return java.lang.Boolean.parseBoolean ( s ) ; }

Target:
private static boolean getBooleanProperty ( final java.lang.String key ) { java.lang.String s = java.security.AccessController.doPrivileged ( new java.security.PrivilegedAction < java.lang.String > ( ) { @ java.lang.Override public java.lang.String run ( ) { return java.lang.System.getProperty ( key ) ; } } ) ; return java.lang.Boolean.valueOf ( s ) ; }
Source:
public void testGetTvInputInfo ( ) throws java.lang.Exception { if ( ! ( android.media.tv.cts.Utils.hasTvInputFramework ( getContext ( ) ) ) ) { return ; } assertEquals ( mManager.getTvInputInfo ( mStubId ) , android.media.tv.cts.TvInputManagerTest.getInfoForClassName ( mManager.getTvInputList ( ) , android.media.tv.cts.StubTunerTvInputService.class . getName ( ) ) ) ; }

Target:
public void testGetTvInputInfo ( ) throws java.lang.Exception { if ( ! ( android.media.tv.cts.Utils.hasTvInputFramework ( getActivity ( ) ) ) ) { return ; } assertEquals ( mManager.getTvInputInfo ( mStubId ) , android.media.tv.cts.TvInputManagerTest.getInfoForClassName ( mManager.getTvInputList ( ) , android.media.tv.cts.StubTunerTvInputService.class . getName ( ) ) ) ; }
Source:
public void writeOnImsCallHandoverEvent ( int phoneId , int eventType , com.android.ims.internal.ImsCallSession session , int srcAccessTech , int targetAccessTech , com.android.ims.ImsReasonInfo reasonInfo ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( eventType ) . setCallIndex ( getCallId ( session ) ) . setSrcAccessTech ( srcAccessTech ) . setTargetAccessTech ( targetAccessTech ) . setImsReasonInfo ( toImsReasonInfoProto ( reasonInfo ) ) ) ; } }

Target:
public void writeOnImsCallHandoverEvent ( int phoneId , int eventType , android.telephony.ims.ImsCallSession session , int srcAccessTech , int targetAccessTech , android.telephony.ims.ImsReasonInfo reasonInfo ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( eventType ) . setCallIndex ( getCallId ( session ) ) . setSrcAccessTech ( srcAccessTech ) . setTargetAccessTech ( targetAccessTech ) . setImsReasonInfo ( toImsReasonInfoProto ( reasonInfo ) ) ) ; } }
Source:
public void runCmdLine ( java.lang.String [ ] command ) throws java.io.IOException , java.lang.InterruptedException { java.lang.Process process = java.lang.Runtime.getRuntime ( ) . exec ( command ) ; if ( ( grabProcessOutput ( process ) ) != 0 ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "Running %s failed. See output" , command [ 0 ] ) ) ; } }

Target:
public void runCmdLine ( java.lang.String [ ] command ) throws java.io.IOException , java.lang.InterruptedException { printCommand ( command ) ; java.lang.Process process = java.lang.Runtime.getRuntime ( ) . exec ( command ) ; if ( ( grabProcessOutput ( process ) ) != 0 ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "Running %s failed. See output" , command [ 0 ] ) ) ; } }
Source:
public void addI8 ( android.support.v8.renderscript.Byte4 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addI8 ( new android.support.v8.renderscript.Byte4 ( v.x , v.y , v.z , v.w ) ) ; return ; } addI8 ( v.x ) ; addI8 ( v.y ) ; addI8 ( v.z ) ; addI8 ( v.w ) ; }

Target:
public void addU8 ( android.support.v8.renderscript.Short3 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addU8 ( v ) ; return ; } addU8 ( v.x ) ; addU8 ( v.y ) ; addU8 ( v.z ) ; }
Source:
public boolean isApplicable ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call ) throws com.android.jack.lookup.JMethodLookupException { if ( ( call.getReceiverType ( ) . isSameType ( javaLangClass ) ) && ( call.getMethodId ( ) . equals ( getFieldMethodId ) ) ) { assert formatter.getName ( call.getType ( ) ) . equals ( com.android.jack.transformations.ast.string.parameterrefiners.FIELD_CLASS_SIGNATURE ) ; return true ; } return false ; }

Target:
public boolean isApplicable ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call ) throws com.android.jack.lookup.JMethodLookupException { if ( ( call.getReceiverType ( ) . isSameType ( javaLangClass ) ) && ( call.getMethodIdWide ( ) . equals ( getFieldMethodId ) ) ) { assert formatter.getName ( call.getType ( ) ) . equals ( com.android.jack.transformations.ast.string.parameterrefiners.FIELD_CLASS_SIGNATURE ) ; return true ; } return false ; }
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.WifiNanSession 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 { 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 ) ; }
Source:
protected abstract void injectSmsPdu ( byte [ ] pdu , java.lang.String format , android.app.PendingIntent receivedIntent ) ;

Target:
protected com.android.internal.telephony.SMSDispatcher.SmsTracker getSmsTracker ( java.util.HashMap < java.lang.String , java.lang.Object > data , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent , java.lang.String format , android.net.Uri messageUri , boolean expectMore , java.lang.String fullMessageText , boolean isText , boolean persistMessage , int priority , int validityPeriod ) { return getSmsTracker ( data , sentIntent , deliveryIntent , format , null , null , messageUri , null , expectMore , fullMessageText , isText , persistMessage , priority , validityPeriod ) ; }
Source:
void moveUserToForeground ( com.android.server.am.UserState uss , int oldUserId , int newUserId ) { boolean homeInFront = mStackSupervisor.switchUserLocked ( newUserId , uss ) ; if ( homeInFront ) { startHomeActivityLocked ( newUserId , "moveUserToFroreground" ) ; } else { mStackSupervisor.resumeTopActivitiesLocked ( ) ; } com.android.server.am.EventLogTags.writeAmSwitchUser ( newUserId ) ; getUserManagerLocked ( ) . onUserForeground ( newUserId ) ; sendUserSwitchBroadcastsLocked ( oldUserId , newUserId ) ; }

Target:
public void notifyAppTransitionStarting ( int reason ) { synchronized ( this ) { mStackSupervisor.mActivityMetricsLogger.notifyTransitionStarting ( reason ) ; } }
Source:
public void afterHandshake ( int session , int s , int c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { super . afterHandshake ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL , s , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL , sock , fd , callback ) ; serverSession [ 0 ] = session ; }

Target:
public void afterHandshake ( int session , int s , int c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.assertEqualSessions ( serverSession [ 0 ] , session ) ; super . afterHandshake ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL , s , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL , sock , fd , callback ) ; }
Source:
private void updateInternalCallAudioState ( ) { com.android.internal.util.IState currentState = getCurrentState ( ) ; if ( currentState == null ) { com.android.server.telecom.Log.e ( this , new java.lang.IllegalStateException ( ) , ( "Current state should never be null" + " when updateInternalCallAudioState is called." ) ) ; mCurrentCallAudioState = new android.telecom.CallAudioState ( mIsMuted , mCurrentCallAudioState.getRoute ( ) , mAvailableRoutes ) ; return ; } int currentRoute = mStateNameToRouteCode.get ( currentState.getName ( ) ) ; mCurrentCallAudioState = new android.telecom.CallAudioState ( mIsMuted , currentRoute , mAvailableRoutes ) ; }

Target:
private void updateInternalCallAudioState ( ) { com.android.internal.util.IState currentState = getCurrentState ( ) ; if ( currentState == null ) { android.telecom.Log.e ( this , new java.lang.IllegalStateException ( ) , ( "Current state should never be null" + " when updateInternalCallAudioState is called." ) ) ; mCurrentCallAudioState = new android.telecom.CallAudioState ( mIsMuted , mCurrentCallAudioState.getRoute ( ) , mAvailableRoutes ) ; return ; } int currentRoute = mStateNameToRouteCode.get ( currentState.getName ( ) ) ; mCurrentCallAudioState = new android.telecom.CallAudioState ( mIsMuted , currentRoute , mAvailableRoutes ) ; }
Source:
public void dispose ( ) { mRootWrapper.setRoot ( null ) ; getSite ( ) . getPage ( ) . removeSelectionListener ( this ) ; super . dispose ( ) ; }

Target:
public void dispose ( ) { mRootWrapper.setRoot ( null ) ; getSite ( ) . getPage ( ) . removeSelectionListener ( this ) ; super . dispose ( ) ; if ( ( mPropertySheet ) != null ) { mPropertySheet.dispose ( ) ; mPropertySheet = null ; } }
Source:
private static java.util.List < com.android.ide.eclipse.gltrace.state.transforms.IStateTransform > transformsForGlBlendEquation ( com.android.ide.eclipse.gltrace.GLProtoBuf.GLMessage msg ) { com.android.ide.eclipse.gldebugger.GLEnum mode = com.android.ide.eclipse.gldebugger.GLEnum.valueOf ( msg.getArgs ( 0 ) . getIntValue ( 0 ) ) ; java.util.List < com.android.ide.eclipse.gltrace.state.transforms.IStateTransform > transforms = new java.util.ArrayList < com.android.ide.eclipse.gltrace.state.transforms.IStateTransform > ( ) ; transforms.add ( com.android.ide.eclipse.gltrace.state.transforms.StateTransformFactory.transformForGlEquationRGB ( msg.getContextId ( ) , mode ) ) ; transforms.add ( com.android.ide.eclipse.gltrace.state.transforms.StateTransformFactory.transformForGlEquationAlpha ( msg.getContextId ( ) , mode ) ) ; return transforms ; }

Target:
private static java.util.List < com.android.ide.eclipse.gltrace.state.transforms.IStateTransform > transformsForGlBlendEquation ( com.android.ide.eclipse.gltrace.GLProtoBuf.GLMessage msg ) { com.android.ide.eclipse.gltrace.GLEnum mode = com.android.ide.eclipse.gltrace.GLEnum.valueOf ( msg.getArgs ( 0 ) . getIntValue ( 0 ) ) ; java.util.List < com.android.ide.eclipse.gltrace.state.transforms.IStateTransform > transforms = new java.util.ArrayList < com.android.ide.eclipse.gltrace.state.transforms.IStateTransform > ( ) ; transforms.add ( com.android.ide.eclipse.gltrace.state.transforms.StateTransformFactory.transformForGlEquationRGB ( msg.getContextId ( ) , mode ) ) ; transforms.add ( com.android.ide.eclipse.gltrace.state.transforms.StateTransformFactory.transformForGlEquationAlpha ( msg.getContextId ( ) , mode ) ) ; return transforms ; }
Source:
public boolean add ( E o ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
private static boolean removeOccurrencesImpl ( com.google.common.collect.Multiset < ? > multisetToModify , java.lang.Iterable < ? > occurrencesToRemove ) { com.google.common.base.Preconditions.checkNotNull ( multisetToModify ) ; com.google.common.base.Preconditions.checkNotNull ( occurrencesToRemove ) ; boolean changed = false ; for ( java.lang.Object o : occurrencesToRemove ) { changed |= multisetToModify.remove ( o ) ; } return changed ; }
Source:
public void setWifiEnabled ( boolean enable ) { android.util.Log.i ( com.android.server.wifi.WifiConnectivityManager.TAG , ( "Set WiFi " + ( enable ? "enabled" : "disabled" ) ) ) ; mWifiEnabled = enable ; if ( ! ( mWifiEnabled ) ) { stopConnectivityScan ( ) ; resetLastPeriodicSingleScanTimeStamp ( ) ; mLastConnectionAttemptBssid = null ; } else if ( mWifiConnectivityManagerEnabled ) { startConnectivityScan ( com.android.server.wifi.WifiConnectivityManager.SCAN_IMMEDIATELY ) ; } }

Target:
public void setWifiEnabled ( boolean enable ) { localLog ( ( "Set WiFi " + ( enable ? "enabled" : "disabled" ) ) ) ; mWifiEnabled = enable ; if ( ! ( mWifiEnabled ) ) { stopConnectivityScan ( ) ; resetLastPeriodicSingleScanTimeStamp ( ) ; mLastConnectionAttemptBssid = null ; } else if ( mWifiConnectivityManagerEnabled ) { startConnectivityScan ( com.android.server.wifi.WifiConnectivityManager.SCAN_IMMEDIATELY ) ; } }