auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void initializeSettings ( ) { com.android.sdkuilib.internal.repository.SettingsController c = mUpdaterData.getSettingsController ( ) ; c.loadSettings ( ) ; c.applySettings ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { close ( ) ; }
Source:
private void setSleepState ( boolean isAsleep ) { setSystemState ( com.android.server.vr.VrManagerService.FLAG_AWAKE , ( ! isAsleep ) ) ; }

Target:
public void onAwakeStateChanged ( boolean isAwake ) { setSystemState ( com.android.server.vr.VrManagerService.FLAG_AWAKE , isAwake ) ; }
Source:
public void importFailed ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NotNull final java.lang.String errorMessage ) { com.intellij.openapi.application.ApplicationManager.getApplication ( ) . invokeLater ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.ui.Messages.showErrorDialog ( ( "Error importing App Engine module : " + errorMessage ) , com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.ERROR_MESSAGE_TITLE ) ; } } ) ; }

Target:
public void syncFailed ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NotNull final java.lang.String errorMessage ) { com.intellij.openapi.application.ApplicationManager.getApplication ( ) . invokeLater ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.ui.Messages.showErrorDialog ( ( "Error importing App Engine module : " + errorMessage ) , com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.ERROR_MESSAGE_TITLE ) ; } } ) ; }
Source:
public com.android.sched.scheduler.ComponentFilterSet getFilters ( ) { return neededFilters.clone ( ) ; }

Target:
public com.android.sched.scheduler.ComponentFilterSet getFilters ( @ javax.annotation.Nonnull com.android.sched.scheduler.FeatureSet features ) { if ( ( features.containsAll ( filtersIfAll ) ) && ( features.containsNone ( filtersUnlessOne ) ) ) { return neededFilters.clone ( ) ; } else { return scheduler.createComponentFilterSet ( ) ; } }
Source:
public lombok.ast.AstVisitor createJavaVisitor ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context ) { if ( ( context.getDriver ( ) . getPhase ( ) ) == 1 ) { return new com.android.tools.lint.checks.UnusedResourceDetector.UnusedResourceVisitor ( context ) ; } else { return null ; } }

Target:
public com.intellij.psi.JavaElementVisitor createPsiVisitor ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context ) { if ( ( context.getDriver ( ) . getPhase ( ) ) == 1 ) { return new com.android.tools.lint.checks.UnusedResourceDetector.UnusedResourceVisitor ( ) ; } else { return null ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mX509Providers = java.security.Security.getProviders ( "CertificateFactory.X509" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mX509Providers = java.security.Security.getProviders ( "CertificateFactory.X509" ) ; sun.security.jca.Providers.setMaximumAllowableApiLevelForBcDeprecation ( dalvik.system.VMRuntime.getRuntime ( ) . getTargetSdkVersion ( ) ) ; }
Source:
public java.util.List < java.lang.String > getCarrierPackageNamesForIntent ( android.content.Intent intent ) { return getCarrierPackageNamesForIntentAndPhone ( intent , android.telephony.TelephonyManager.getDefaultPhone ( ) ) ; }

Target:
private int getPhoneId ( int preferredSubId ) { return android.telephony.SubscriptionManager.getPhoneId ( getSubId ( preferredSubId ) ) ; }
Source:
public void testOnSetUpAdapterFailed ( ) throws java.lang.Exception { java.io.File testAdapter = new java.io.File ( mTestDir , ( ( VTS_NATIVE_TEST_DIR ) + ( TEST_HAL_ADAPTER_BINARY ) ) ) ; testAdapter.createNewFile ( ) ; java.lang.String output = "android.hardware.foo@1.1::IFoo/default" ; doReturn ( output ) . when ( mDevice ) . executeShellCommand ( java.lang.String.format ( LIST_HAL_CMD , TEST_HAL_PACKAGE ) ) ; mCmdUtil.mCmdSuccess = false ; try { mPreparer.setUp ( mDevice , mBuildInfo ) ; } catch ( com.android.tradefed.targetprep.TargetSetupError e ) { org.junit.Assert.assertEquals ( "HAL adapter setup failed." , e.getMessage ( ) ) ; return ; } org.junit.Assert.fail ( ) ; }

Target:
private java.io.File createTestAdapter ( ) throws java.io.IOException { java.io.File testAdapter = new java.io.File ( mTestDir , ( ( VTS_NATIVE_TEST_DIR ) + ( TEST_HAL_ADAPTER_BINARY ) ) ) ; testAdapter.createNewFile ( ) ; return testAdapter ; }
Source:
public native void set ( long millis ) ;

Target:
public void set ( long millis ) { allDay = false ; calculator.timezone = timezone ; calculator.setTimeInMillis ( millis ) ; calculator.copyFieldsToTime ( this ) ; }
Source:
public void testTextViewContent ( ) { assertEquals ( "1234" , mTextView.getText ( ) . toString ( ) ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mainActivity = getActivity ( ) ; assertNotNull ( mainActivity ) ; mTextView = ( ( android.widget.TextView ) ( mainActivity.findViewById ( R.id.dateText ) ) ) ; }
Source:
public void startScheduleTask ( ) { if ( ( taskHandle ) == null ) { taskHandle = scheduler.scheduleAtFixedRate ( com.google.gct.intellij.endpoints.synchronization.SampleSyncTask.getInstance ( ) , 0 , DELAY_IN_MINUTES , java.util.concurrent.TimeUnit.MINUTES ) ; } }

Target:
public void startScheduleTask ( ) { if ( ( taskHandle ) == null ) { taskHandle = scheduler.scheduleAtFixedRate ( com.google.gct.idea.appengine.synchronization.SampleSyncTask.getInstance ( ) , 0 , DELAY_IN_MINUTES , java.util.concurrent.TimeUnit.MINUTES ) ; } }
Source:
public void copy1DRangeFrom ( int off , int count , long [ ] d ) { validateIsInt64 ( ) ; copy1DRangeFromUnchecked ( off , count , d ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , byte [ ] d ) { validateIsInt8 ( ) ; copy1DRangeFromUnchecked ( off , count , d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
public void onClick ( android.content.DialogInterface dialog , int which ) { if ( ( dialog == ( mWarnInstallApps ) ) && ( which == ( android.content.DialogInterface.BUTTON1 ) ) ) { setNonMarketAppsAllowed ( true ) ; mToggleAppInstallation.setChecked ( true ) ; } }

Target:
public void onClick ( android.content.DialogInterface dialog , int which ) { if ( ( dialog == ( mWarnInstallApps ) ) && ( which == ( android.content.DialogInterface.BUTTON_POSITIVE ) ) ) { setNonMarketAppsAllowed ( true ) ; mToggleAppInstallation.setChecked ( true ) ; } }
Source:
public boolean setSuspendOptimizations ( boolean enabled ) { if ( enabled ) { return doBooleanCommand ( "DRIVER SETSUSPENDMODE 1" ) ; } else { return doBooleanCommand ( "DRIVER SETSUSPENDMODE 0" ) ; } }

Target:
public boolean setSuspendOptimizations ( boolean enabled ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.setSuspendModeEnabled ( enabled ) ; } else { if ( enabled ) { return doBooleanCommand ( "DRIVER SETSUSPENDMODE 1" ) ; } else { return doBooleanCommand ( "DRIVER SETSUSPENDMODE 0" ) ; } } }
Source:
private void checkClosed ( ) { if ( closed ) { throw new java.lang.IllegalStateException ( ) ; } }

Target:
private void checkOpen ( ) { if ( closed ) { throw new java.lang.IllegalStateException ( ) ; } }
Source:
public void ensureCapacity ( int minCapacity ) { int minExpand = ( ( elementData ) != ( java.util.ArrayList.EMPTY_ELEMENTDATA ) ) ? 0 : java.util.ArrayList.DEFAULT_CAPACITY ; if ( minCapacity > minExpand ) { ensureExplicitCapacity ( minCapacity ) ; } }

Target:
public void ensureCapacity ( int minCapacity ) { int minExpand = ( ( elementData ) != ( java.util.ArrayList.DEFAULTCAPACITY_EMPTY_ELEMENTDATA ) ) ? 0 : java.util.ArrayList.DEFAULT_CAPACITY ; if ( minCapacity > minExpand ) { ensureExplicitCapacity ( minCapacity ) ; } }
Source:
public long getSize ( com.android.ahat.heapdump.AhatHeap heap ) { int index = heap.getIndex ( ) ; return ( index >= 0 ) && ( index < ( mSizesByHeap.length ) ) ? mSizesByHeap [ index ] : 0 ; }

Target:
public com.android.ahat.heapdump.Size getSize ( com.android.ahat.heapdump.AhatHeap heap ) { int index = heap.getIndex ( ) ; return ( index >= 0 ) && ( index < ( mSizesByHeap.length ) ) ? mSizesByHeap [ index ] : Size.ZERO ; }
Source:
com.google.common.collect.ImmutableMap < java.lang.Object , java.lang.Object > delegate ( ) { return com.google.common.collect.ImmutableMap.of ( ) ; }

Target:
public com.google.common.collect.ImmutableSet < java.util.Map.Entry < java.lang.Object , java.lang.Object > > entrySet ( ) { return com.google.common.collect.ImmutableSet.of ( ) ; }
Source:
private native void gattClientReadCharacteristicNative ( int conn_id , int service_type , int service_id_inst_id , long service_id_uuid_lsb , long service_id_uuid_msb , int char_id_inst_id , long char_id_uuid_lsb , long char_id_uuid_msb , int authReq ) ;

Target:
void addScanEvent ( com.android.bluetooth.btservice.BluetoothProto.ScanEvent event ) { synchronized ( mScanEvents ) { if ( ( mScanEvents.size ( ) ) == ( com.android.bluetooth.gatt.GattService.NUM_SCAN_EVENTS_KEPT ) ) mScanEvents.remove ( 0 ) ; mScanEvents.add ( event ) ; } }
Source:
public void run ( ) { try { com.android.jack.test.toolchain.AbstractTestTools.deleteTempDir ( tmpDir ) ; } catch ( java.io.IOException e ) { java.lang.System.err.println ( e.getMessage ( ) ) ; } }

Target:
public void run ( ) { try { com.android.jack.test.toolchain.AbstractTestTools.deleteTempDir ( tmpDir ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( new com.android.sched.util.file.CannotDeleteFileException ( new com.android.sched.util.location.FileLocation ( tmpDir ) ) ) ; } }
Source:
public java.lang.invoke.MethodHandle asType ( java.lang.invoke.MethodType newType ) { if ( newType == ( type ) ) { return this ; } java.lang.invoke.MethodHandle atc = asTypeCached ( newType ) ; if ( atc != null ) { return atc ; } return asTypeUncached ( newType ) ; }

Target:
public java.lang.invoke.MethodType type ( ) { if ( ( nominalType ) != null ) { return nominalType ; } return type ; }
Source:
public void enableUsage ( ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_COMMAND ) ; msg.arg1 = com.android.server.wifi.nan.WifiNanStateManager.COMMAND_TYPE_ENABLE_USAGE ; mSm.sendMessage ( msg ) ; }

Target:
public void enableUsage ( ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_COMMAND ) ; msg.arg1 = com.android.server.wifi.aware.WifiAwareStateManager.COMMAND_TYPE_ENABLE_USAGE ; mSm.sendMessage ( msg ) ; }
Source:
private java.lang.String sp ( int sp ) { float dp = sp * ( mDpPerSp ) ; dp *= 1.3 ; return dp ( ( ( int ) ( dp ) ) ) ; }

Target:
private java.lang.String sp ( int sp ) { float dp = sp * ( mDpPerSp ) ; dp *= 1.3 ; return ( java.lang.Integer.toString ( ( ( int ) ( dp ) ) ) ) + "px" ; }
Source:
public void test_minusMonths_long_overYears ( ) { java.time.LocalDate t = TEST_2007_07_15.minusMonths ( 25 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2005 , 6 , 15 ) ) ; }

Target:
public void test_minusMonths_long_overYears ( ) { java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.minusMonths ( 25 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2005 , 6 , 15 ) ) ; }
Source:
public com.android.tv.dvr.SeriesRecording getSeriesRecording ( java.lang.String seriesId ) { for ( com.android.tv.dvr.SeriesRecording r : mSeriesRecordings.values ( ) ) { if ( r.getSeriesId ( ) . equals ( seriesId ) ) { return r ; } } return null ; }

Target:
public com.android.tv.dvr.data.SeriesRecording getSeriesRecording ( java.lang.String seriesId ) { for ( com.android.tv.dvr.data.SeriesRecording r : mSeriesRecordings.values ( ) ) { if ( r.getSeriesId ( ) . equals ( seriesId ) ) { return r ; } } return null ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { reloadAbiTypeCombo ( ) ; validatePage ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent arg0 ) { boolean sizeMode = mSdCardSizeRadio.getSelection ( ) ; enableSdCardWidgets ( sizeMode ) ; validatePage ( ) ; }
Source:
void expectCapabilitiesWithout ( int capability , com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { com.android.server.ConnectivityServiceTest.CallbackInfo cbi = expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.NETWORK_CAPABILITIES , agent ) ; android.net.NetworkCapabilities.NetworkCapabilities nc = ( ( android.net.NetworkCapabilities.NetworkCapabilities ) ( cbi.arg ) ) ; assertFalse ( nc.hasCapability ( capability ) ) ; }

Target:
void expectCapabilitiesWith ( int capability , com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { com.android.server.ConnectivityServiceTest.CallbackInfo cbi = expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.NETWORK_CAPABILITIES , agent ) ; android.net.NetworkCapabilities.NetworkCapabilities nc = ( ( android.net.NetworkCapabilities.NetworkCapabilities ) ( cbi.arg ) ) ; org.junit.Assert.assertTrue ( nc.hasCapability ( capability ) ) ; }
Source:
public final void appendPartiallyEncoded ( java.lang.StringBuilder builder , java.lang.String s ) { appendEncoded ( builder , s , Charsets.UTF_8 , true ) ; }

Target:
public final void appendEncoded ( java.lang.StringBuilder builder , java.lang.String s ) { appendEncoded ( builder , s , com.android.exchange.utility.UriCodec.UTF_8 , false ) ; }
Source:
public org.objectweb.asm.FieldVisitor visitField ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.Object value ) { return new org.objectweb.asm.FieldVisitor ( org.objectweb.asm.Opcodes.ASM4 ) { } ; }

Target:
public org.objectweb.asm.FieldVisitor visitField ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.Object value ) { return new org.objectweb.asm.FieldVisitor ( org.objectweb.asm.Opcodes.ASM5 ) { } ; }
Source:
public static com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderService create ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart editor , com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configuration configuration , com.android.ide.common.resources.ResourceResolver resolver ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderService renderService = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderService ( editor , configuration , resolver ) ; return renderService ; }

Target:
public static com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderService create ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart editor , com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configuration configuration , com.android.ide.common.resources.ResourceResolver resolver ) { return editor.createRenderService ( configuration , resolver ) ; }
Source:
public static native byte [ ] [ ] get_DSA_params ( int dsa ) ;

Target:
public static native byte [ ] [ ] get_RSA_private_params ( long rsa ) ;
Source:
protected void socketClose ( ) throws java.io.IOException { guard.close ( ) ; socketClose0 ( false ) ; }

Target:
void reset ( ) throws java.io.IOException { if ( ( ( fd ) != null ) && ( fd.valid ( ) ) ) { socketClose ( ) ; guard.close ( ) ; } super . reset ( ) ; }
Source:
public void testTlvInvalidSizeT1Lm2 ( ) { android.net.wifi.nan.TlvBufferUtils.TlvConstructor tlv10 = new android.net.wifi.nan.TlvBufferUtils.TlvConstructor ( 1 , ( - 2 ) ) ; }

Target:
public void testTlvInvalidSizeT1Lm2 ( ) { android.net.wifi.aware.TlvBufferUtils.TlvConstructor tlv10 = new android.net.wifi.aware.TlvBufferUtils.TlvConstructor ( 1 , ( - 2 ) ) ; }
Source:
public void setCellInfoListRate ( int rateInMillis ) { android.os.WorkSource workSource = getWorkSource ( null , android.os.Binder.getCallingUid ( ) ) ; mPhone.setCellInfoListRate ( rateInMillis , workSource ) ; }

Target:
public void setCellInfoListRate ( int rateInMillis ) { enforceModifyPermission ( ) ; android.os.WorkSource workSource = getWorkSource ( null , android.os.Binder.getCallingUid ( ) ) ; mPhone.setCellInfoListRate ( rateInMillis , workSource ) ; }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < java.lang.Iterable < T > > hasItem ( org.hamcrest.org.hamcrest.Matcher < ? extends T > elementMatcher ) { return org.hamcrest.collection.IsCollectionContaining.< org.hamcrest.T > hasItem ( elementMatcher ) ; }

Target:
public static < E > org.hamcrest.org.hamcrest.Matcher < java.util.Collection < ? extends E > > hasSize ( org.hamcrest.org.hamcrest.Matcher < ? extends java.lang.Integer > sizeMatcher ) { return org.hamcrest.collection.IsCollectionWithSize.< org.hamcrest.E > hasSize ( sizeMatcher ) ; }
Source:
public void addJavascriptInterface ( java.lang.Object object , java.lang.String name ) { checkThread ( ) ; if ( DebugFlags.TRACE_API ) android.util.Log.d ( android.webkit.WebView.LOGTAG , ( "addJavascriptInterface=" + name ) ) ; mProvider.addJavascriptInterface ( object , name ) ; }

Target:
public void addJavascriptInterface ( java.lang.Object object , java.lang.String name ) { checkThread ( ) ; if ( android.webkit.WebView.TRACE ) android.util.Log.d ( android.webkit.WebView.LOGTAG , ( "addJavascriptInterface=" + name ) ) ; mProvider.addJavascriptInterface ( object , name ) ; }
Source:
private java.lang.String normalizeFirstWord ( java.lang.String word ) { switch ( this ) { case LOWER_CAMEL : return com.google.common.base.Ascii.toLowerCase ( word ) ; default : return normalizeWord ( word ) ; } }

Target:
public com.google.common.base.Converter < java.lang.String , java.lang.String > converterTo ( com.google.common.base.CaseFormat targetFormat ) { return new com.google.common.base.CaseFormat.StringConverter ( this , targetFormat ) ; }
Source:
native void rsnAllocationData2D ( int con , int id , int xoff , int yoff , int mip , int face , android.graphics.Bitmap b ) ;

Target:
native void rsnAllocationData2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , int [ ] d , int sizeBytes ) ;
Source:
public void run ( ) { setPictureListener ( listener ) ; }

Target:
public void run ( ) { addJavascriptInterface ( obj , interfaceName ) ; }
Source:
public static native void native_call ( ) ;

Target:
public static native void nativeMethod ( ) ;
Source:
public final boolean equals ( java.lang.Object obj ) { if ( obj instanceof com.android.jack.ir.ast.JReferenceTypeCommon ) { return ( getId ( ) ) == ( ( ( com.android.jack.ir.ast.JReferenceTypeCommon ) ( obj ) ) . getId ( ) ) ; } else { return false ; } }

Target:
public final boolean isSameType ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType type ) { if ( type instanceof com.android.jack.ir.ast.JReferenceTypeCommon ) { return ( getId ( ) ) == ( ( ( com.android.jack.ir.ast.JReferenceTypeCommon ) ( type ) ) . getId ( ) ) ; } else { return false ; } }
Source:
public final void test_Constructor ( ) throws java.lang.Exception { new tests.api.javax.net.ssl.MyHttpsURLConnection ( new java.net.URL ( "https://www.fortify.net/" ) ) ; new tests.api.javax.net.ssl.MyHttpsURLConnection ( null ) ; }

Target:
public final void test_Constructor ( ) throws java.lang.Exception { new org.apache.harmony.tests.javax.net.ssl.MyHttpsURLConnection ( new java.net.URL ( "https://www.fortify.net/" ) ) ; new org.apache.harmony.tests.javax.net.ssl.MyHttpsURLConnection ( null ) ; }
Source:
public int hashCode ( ) { return mName.hashCode ( ) ; }

Target:
public int hashCode ( ) { int result = mName.hashCode ( ) ; result = ( 31 * result ) + ( ( mSource ) != null ? mSource.hashCode ( ) : 0 ) ; return result ; }
Source:
synchronized boolean unregisterApp ( ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "unregisterApp()" ) ; } int callingUid = android.os.Binder.getCallingUid ( ) ; return unregisterAppUid ( callingUid ) ; }

Target:
synchronized boolean unregisterApp ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "unregisterApp()" ) ; } int callingUid = android.os.Binder.getCallingUid ( ) ; return unregisterAppUid ( callingUid ) ; }
Source:
public void remove ( ) { com.google.common.collect.Iterators.checkRemove ( ( ( toRemove ) != null ) ) ; this . remove ( toRemove.getKey ( ) , toRemove.getValue ( ) ) ; toRemove = null ; }

Target:
public void remove ( ) { com.google.common.collect.CollectPreconditions.checkRemove ( ( ( toRemove ) != null ) ) ; this . remove ( toRemove.getKey ( ) , toRemove.getValue ( ) ) ; toRemove = null ; }
Source:
private static void setFlagValue ( com.google.devtools.common.options.OptionsParser parser , com.google.devtools.common.options.OptionDefinition flag , java.lang.String flagValue ) throws com.google.devtools.common.options.OptionsParsingException { parser.parseWithSourceFunction ( OptionPriority.INVOCATION_POLICY , com.google.devtools.common.options.InvocationPolicyEnforcer.INVOCATION_POLICY_SOURCE , com.google.common.collect.ImmutableList.of ( java.lang.String.format ( "--%s=%s" , flag.getOptionName ( ) , flagValue ) ) ) ; }

Target:
private static void setFlagValue ( com.google.devtools.common.options.OptionsParser parser , com.google.devtools.common.options.OptionDefinition flag , java.lang.String flagValue ) throws com.google.devtools.common.options.OptionsParsingException { parser.parseWithSourceFunction ( OptionPriority.INVOCATION_POLICY , com.google.devtools.common.options.InvocationPolicyEnforcer.INVOCATION_POLICY_SOURCE_FUNCTION , com.google.common.collect.ImmutableList.of ( java.lang.String.format ( "--%s=%s" , flag.getOptionName ( ) , flagValue ) ) ) ; }
Source:
public boolean onPreferenceClick ( android.support.v7.preference.Preference arg0 ) { com.android.settings.wifi.AdvancedWifiSettings.WpsFragment wpsFragment = new com.android.settings.wifi.AdvancedWifiSettings.WpsFragment ( android.net.wifi.WpsInfo.DISPLAY ) ; wpsFragment.show ( getFragmentManager ( ) , com.android.settings.wifi.AdvancedWifiSettings.KEY_WPS_PIN ) ; return true ; }

Target:
public boolean onPreferenceClick ( android.support.v7.preference.Preference arg0 ) { com.android.settings.wifi.AdvancedWifiSettings.WpsFragment wpsFragment = new com.android.settings.wifi.AdvancedWifiSettings.WpsFragment ( android.net.wifi.WpsInfo.PBC ) ; wpsFragment.show ( getFragmentManager ( ) , com.android.settings.wifi.AdvancedWifiSettings.KEY_WPS_PUSH ) ; return true ; }
Source:
public static native int SSL_read_BIO ( long sslNativePointer , byte [ ] dest , int destOffset , int destLength , long sourceBioRef , long sinkBioRef , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks shc ) throws java.io.IOException ;

Target:
public static native int ENGINE_SSL_read_heap ( long sslNativePointer , byte [ ] destJava , int destOffset , int destLength , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks shc ) throws java.io.IOException ;
Source:
static long $opt$FloatToLong ( float a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( long ) ( a ) ) ; }

Target:
static long $opt$noinline$FloatToLong ( float a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( long ) ( a ) ) ; }
Source:
synchronized void recordNodeAction ( com.android.manifmerger.XmlElement xmlElement , com.android.manifmerger.ActionRecorder.ActionType actionType ) { recordNodeAction ( xmlElement , actionType , xmlElement ) ; }

Target:
synchronized void recordNodeAction ( com.android.manifmerger.XmlElement xmlElement , com.android.manifmerger.Actions.ActionType actionType ) { recordNodeAction ( xmlElement , actionType , xmlElement ) ; }
Source:
private boolean _isProviderEnabledLocked ( java.lang.String provider ) { checkPermissionsSafe ( provider ) ; android.location.LocationProviderImpl p = android.location.LocationProviderImpl.getProvider ( provider ) ; if ( p == null ) { throw new java.lang.IllegalArgumentException ( ( "provider=" + provider ) ) ; } return isAllowedBySettingsLocked ( provider ) ; }

Target:
private boolean _isProviderEnabledLocked ( java.lang.String provider ) { checkPermissionsSafe ( provider ) ; com.android.internal.location.LocationProviderProxy p = mProvidersByName.get ( provider ) ; if ( p == null ) { throw new java.lang.IllegalArgumentException ( ( "provider=" + provider ) ) ; } return isAllowedBySettingsLocked ( provider ) ; }
Source:
public java.security.Principal getLocalPrincipal ( ) { if ( ( ( localCertificates ) != null ) && ( ( localCertificates.length ) > 0 ) ) { return localCertificates [ 0 ] . getSubjectX500Principal ( ) ; } else { return null ; } }

Target:
public void setLastAccessedTime ( long accessTimeMillis ) { lastAccessedTime = accessTimeMillis ; }
Source:
public void test_get_TemporalField ( ) { org.testng.Assert.assertEquals ( TEST_07_15.get ( java.time.temporal.ChronoField.DAY_OF_MONTH ) , 15 ) ; org.testng.Assert.assertEquals ( TEST_07_15.get ( java.time.temporal.ChronoField.MONTH_OF_YEAR ) , 7 ) ; }

Target:
public void test_get_TemporalField ( ) { org.testng.Assert.assertEquals ( tck.java.time.TCKMonthDay.TEST_07_15.get ( java.time.temporal.ChronoField.DAY_OF_MONTH ) , 15 ) ; org.testng.Assert.assertEquals ( tck.java.time.TCKMonthDay.TEST_07_15.get ( java.time.temporal.ChronoField.MONTH_OF_YEAR ) , 7 ) ; }
Source:
public static long IntNonmatCond_LongVarVar ( int a , int b , long x , long y ) { return a > b ? x : y ; }

Target:
public static int IntNonmatCond_IntVarVar ( int a , int b , int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return a > b ? x : y ; }
Source:
public static com.android.sdkuilib.ui.GridLayoutBuilder create ( org.eclipse.swt.widgets.Composite parent ) { com.android.sdkuilib.ui.GridLayoutBuilder glh = new com.android.sdkuilib.ui.GridLayoutBuilder ( ) ; parent.setLayout ( com.android.sdkuilib.ui.GridLayoutBuilder.mGL ) ; return glh ; }

Target:
public static com.android.sdkuilib.ui.GridLayoutBuilder create ( org.eclipse.swt.widgets.Composite parent ) { com.android.sdkuilib.ui.GridLayoutBuilder glh = new com.android.sdkuilib.ui.GridLayoutBuilder ( ) ; parent.setLayout ( glh.mGL ) ; return glh ; }
Source:
public void testRegistrationCallbackOnTechChangeFailed ( ) throws android.os.RemoteException { com.android.ims.ImsReasonInfo info = new com.android.ims.ImsReasonInfo ( ) ; mRegistration.onTechnologyChangeFailed ( ImsRegistrationImplBase.REGISTRATION_TECH_IWLAN , info ) ; org.mockito.Mockito.verify ( mCallback ) . onTechnologyChangeFailed ( org.mockito.ArgumentMatchers.eq ( ImsRegistrationImplBase.REGISTRATION_TECH_IWLAN ) , org.mockito.ArgumentMatchers.eq ( info ) ) ; }

Target:
public void testRegistrationCallbackOnTechChangeFailed ( ) throws android.os.RemoteException { android.telephony.ims.ImsReasonInfo info = new android.telephony.ims.ImsReasonInfo ( ) ; mRegistration.onTechnologyChangeFailed ( ImsRegistrationImplBase.REGISTRATION_TECH_IWLAN , info ) ; org.mockito.Mockito.verify ( mCallback ) . onTechnologyChangeFailed ( org.mockito.ArgumentMatchers.eq ( ImsRegistrationImplBase.REGISTRATION_TECH_IWLAN ) , org.mockito.ArgumentMatchers.eq ( info ) ) ; }
Source:
public java.lang.String getUsage ( ) { return ( "a path to a directory (" + ( getDetailedUsage ( ) ) ) + ")" ; }

Target:
public java.lang.String getUsage ( ) { return ( "a path to an input directory (" + ( directFSCodec.getDetailedUsage ( ) ) ) + ")" ; }
Source:
protected void myassertTrue ( java.lang.String msg , boolean b ) { assertTrue ( msg , b ) ; }

Target:
public void assertWasNotCalled ( ) { assertFalse ( called ) ; }
Source:
public com.android.layoutlib.api.SceneResult insertChild ( ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }

Target:
public com.android.layoutlib.api.SceneResult insertChild ( java.lang.Object parentView , com.android.layoutlib.api.IXmlPullParser childXml , int index ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }
Source:
private void cleanUpService ( ) { synchronized ( mLock ) { mImsDeathRecipient = null ; mImsServiceConnection = null ; mImsServiceControllerBinder = null ; mIImsServiceController = null ; mIsBound = false ; } }

Target:
protected void setServiceController ( android.os.IBinder serviceController ) { mIImsServiceController = IImsServiceController.Stub.asInterface ( serviceController ) ; }
Source:
private org.gradle.tooling.ProjectConnection getProjectConnection ( ) { org.gradle.tooling.GradleConnector connector = org.gradle.tooling.GradleConnector.newConnector ( ) ; ( ( org.gradle.tooling.internal.consumer.DefaultGradleConnector ) ( connector ) ) . daemonMaxIdleTime ( 10 , java.util.concurrent.TimeUnit.SECONDS ) ; return connector.useGradleVersion ( com.android.build.gradle.integration.common.fixture.GradleTestProject.GRADLE_TEST_VERSION ) . forProjectDirectory ( testDir ) . connect ( ) ; }

Target:
public com.android.build.gradle.integration.common.fixture.GradleTestProject create ( ) { return new com.android.build.gradle.integration.common.fixture.GradleTestProject ( name , testProject , experimentalMode , ( experimentalMode ? com.android.build.gradle.integration.common.fixture.GradleTestProject.GRADLE_EXP_TEST_VERSION : com.android.build.gradle.integration.common.fixture.GradleTestProject.GRADLE_TEST_VERSION ) , captureStdOut ) ; }
Source:
private native void _finalize ( int uniqueId ) ;

Target:
private native void _setListeners ( int uniqueId , java.lang.Object weak_this ) ;
Source:
public boolean p2pCancelConnect ( ) { return doBooleanCommand ( "P2P_CANCEL" ) ; }

Target:
public boolean p2pCancelConnect ( ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.cancelConnect ( ) ; } else { return doBooleanCommand ( "P2P_CANCEL" ) ; } }
Source:
public static < T > org.hamcrest.core.CombinableMatcher.CombinableBothMatcher < T > both ( org.hamcrest.Matcher < ? super T > matcher ) { return org.hamcrest.CoreMatchers.both ( matcher ) ; }

Target:
public static < T > org.junit.internal.matchers.CombinableMatcher < T > either ( org.hamcrest.Matcher < T > matcher ) { return new org.junit.internal.matchers.CombinableMatcher < T > ( matcher ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { mLog = new com.android.sdkmanager.MockStdLogger ( ) ; super . setUp ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { mLog = new com.android.sdklib.StdSdkLog ( ) ; super . setUp ( ) ; }
Source:
public void setFeatureValue ( int feature , int network , int value , com.android.ims.ImsConfigListener listener ) throws android.os.RemoteException { listener.onSetFeatureResponse ( feature , network , value , ImsConfig.OperationStatusConstants.SUCCESS ) ; }

Target:
public int setConfig ( int item , java.lang.String value ) { replaceConfig ( new com.android.phone.testapps.imstestapp.TestImsConfigImpl.ConfigItem ( item , value ) ) ; return ImsConfig.OperationStatusConstants.SUCCESS ; }
Source:
public void setup ( android.content.Context context , android.app.FragmentManager manager ) { super . setup ( ) ; mContext = context ; mFragmentManager = manager ; ensureContent ( ) ; }

Target:
public void setup ( android.content.Context context , android.app.FragmentManager manager ) { ensureHierarchy ( context ) ; super . setup ( ) ; mContext = context ; mFragmentManager = manager ; ensureContent ( ) ; }
Source:
public void writeTo ( com.android.dx.io.DexBuffer.Section out ) { out.write ( data ) ; }

Target:
public void writeTo ( com.android.dex.Dex.Section out ) { out.write ( data ) ; }
Source:
public void doWork ( ) throws android.os.RemoteException { mService.getAuthToken ( this . mResponse , account , authTokenType , false , true , optionsIn ) ; }

Target:
public void doWork ( ) throws android.os.RemoteException { mService.removeAccount ( mResponse , account , false ) ; }
Source:
public void test_checkedSortedSetSerializationCompatability ( ) throws java.lang.Exception { java.util.SortedSet < java.lang.String > c = new java.util.TreeSet < java.lang.String > ( ) ; c = java.util.Collections.checkedSortedSet ( c , java.lang.String.class ) ; tests.util.SerializationTester.assertCompabilityEquals ( c , "serialization/java/util/Collections_CheckedSortedSet.golden.ser" ) ; }

Target:
public void test_checkedSortedSetSerializationCompatability ( ) throws java.lang.Exception { java.util.SortedSet < java.lang.String > c = new java.util.TreeSet < java.lang.String > ( ) ; c = java.util.Collections.checkedSortedSet ( c , java.lang.String.class ) ; tests.util.SerializationTester.assertCompabilityEquals ( c , "serialization/tests/api/java/util/Collections_CheckedSortedSet.golden.ser" ) ; }
Source:
public void testExtensionsCaching ( ) { com.google.protobuf.nano.Extensions.ExtendableMessage extendableMessage = new com.google.protobuf.nano.Extensions.ExtendableMessage ( ) ; extendableMessage.setExtension ( SingularExtensions.someMessage , new com.google.protobuf.nano.Extensions.AnotherMessage ( ) ) ; assertSame ( "Consecutive calls to getExtensions should return the same object" , extendableMessage.getExtension ( SingularExtensions.someMessage ) , extendableMessage.getExtension ( SingularExtensions.someMessage ) ) ; }

Target:
public void testExtensionsCaching ( ) { com.google.protobuf.nano.testext.Extensions.ExtendableMessage extendableMessage = new com.google.protobuf.nano.testext.Extensions.ExtendableMessage ( ) ; extendableMessage.setExtension ( SingularExtensions.someMessage , new com.google.protobuf.nano.testext.Extensions.AnotherMessage ( ) ) ; assertSame ( "Consecutive calls to getExtensions should return the same object" , extendableMessage.getExtension ( SingularExtensions.someMessage ) , extendableMessage.getExtension ( SingularExtensions.someMessage ) ) ; }
Source:
private org.eclipse.core.resources.IResource findResource ( java.lang.String from ) { final org.eclipse.core.resources.IResource resource = mProject.findMember ( ( ( ( ( ( com.android.ide.eclipse.adt.AndroidConstants.WS_LAYOUTS ) + ( com.android.ide.eclipse.adt.AndroidConstants.WS_SEP ) ) + from ) + '.' ) + ( com.android.ide.eclipse.adt.AndroidConstants.EXT_XML ) ) ) ; return resource ; }

Target:
private org.eclipse.core.resources.IResource findResource ( java.lang.String from ) { final org.eclipse.core.resources.IResource resource = mProject.findMember ( ( ( ( ( ( com.android.ide.eclipse.adt.AdtConstants.WS_LAYOUTS ) + ( com.android.ide.eclipse.adt.AdtConstants.WS_SEP ) ) + from ) + '.' ) + ( com.android.ide.eclipse.adt.AdtConstants.EXT_XML ) ) ) ; return resource ; }
Source:
public void test_he ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex he = new libcore.icu.AlphabeticIndex ( new java.util.Locale ( "he" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( he , "פרידמן" , "פ" ) ; }

Target:
public void test_he ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex he = libcore.icu.AlphabeticIndexTest.createIndex ( new java.util.Locale ( "he" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( he , "פרידמן" , "פ" ) ; }
Source:
public void packageDeleted ( boolean succeeded ) throws android.os.RemoteException { synchronized ( this ) { this . succeeded = succeeded ; doneFlag = true ; notifyAll ( ) ; } }

Target:
public void packageDeleted ( java.lang.String packageName , int returnCode ) throws android.os.RemoteException { synchronized ( this ) { this . succeeded = returnCode == ( android.content.pm.PackageManager.DELETE_SUCCEEDED ) ; doneFlag = true ; notifyAll ( ) ; } }
Source:
public static int IntMultiplication ( ) { int a ; int b ; int c ; a = Main.$inline$int ( 7 ) ; b = Main.$inline$int ( 3 ) ; c = a * b ; return c ; }

Target:
public static double DoubleMultiplication ( ) { double a ; double b ; double c ; a = 7.0 ; b = 3.0 ; c = a * b ; return c ; }
Source:
public native void waitForConcurrentGCRequest ( ) ;

Target:
public native void startHeapTaskProcessor ( ) ;
Source:
public java.util.Collection < com.android.builder.resources.Resource > getResources ( ) { return mItems.values ( ) ; }

Target:
public boolean isEmpty ( ) { return mItems.isEmpty ( ) ; }
Source:
public boolean visitNode ( lombok.ast.Node node ) { return mDone ; }

Target:
public void visitElement ( com.intellij.psi.PsiElement element ) { if ( ! ( mDone ) ) { super . visitElement ( element ) ; } }
Source:
public com.android.manifmerger.MergingReport merge ( ) throws com.android.manifmerger.ManifestMerger2.MergeFailureException { com.android.manifmerger.ManifestMerger2 manifestMerger = new com.android.manifmerger.ManifestMerger2 ( mLogger , mMainManifestFile , mLibraryFilesBuilder.build ( ) , mFlavorsAndBuildTypeFiles.build ( ) , mFeaturesBuilder.build ( ) ) ; return manifestMerger.merge ( ) ; }

Target:
public java.lang.String getValue ( @ com.android.annotations.NonNull java.lang.String key ) { return null ; }
Source:
public void write ( com.android.sdklib.internal.project.ProjectProperties properties ) { }

Target:
public void write ( com.android.sdklib.internal.project.ProjectProperties properties ) { properties.setProperty ( ProjectProperties.PROPERTY_SPLIT_BY_DENSITY , java.lang.Boolean.toString ( mSplitByDensity ) ) ; properties.setProperty ( ProjectProperties.PROPERTY_SPLIT_BY_ABI , java.lang.Boolean.toString ( mSplitByAbi ) ) ; }
Source:
public void testInstall_successfulFirstUpdate ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , "001" ) ; assertTrue ( installer.install ( bundle.getBytes ( ) ) ) ; assertBundleInstalled ( bundle ) ; }

Target:
public void testInstall_successfulFirstUpdate ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneBundleInstaller.INSTALL_SUCCESS , installer.installWithErrorCode ( bundle.getBytes ( ) ) ) ; assertBundleInstalled ( bundle ) ; }
Source:
public void testDiff3 ( ) throws java.lang.Exception { java.lang.String main = "" + ( ( ( ( ( ( ( ( ( "<manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application android:label=\"@string/lib_name\" />\n" ) + " <!-- some comment that should be ignored -->\n" ) + " <activity android:name=\"activityOne\" />\n" ) + "\n" ) + "\n" ) + "</manifest>" ) ; java.lang.String library = "" + ( ( ( ( ( ( ( ( "<manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <!-- some comment that should also be ignored -->\n" ) + " <activity android:name=\"activityOne\" />\n" ) + " <application android:label=\"@string/lib_name\" />\n" ) + "\n" ) + "</manifest>" ) ; com.android.manifmerger.XmlDocument mainDocument = com.android.manifmerger.TestUtils.xmlDocumentFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "testDiff3()" ) , main ) ; com.android.manifmerger.XmlDocument libraryDocument = com.android.manifmerger.TestUtils.xmlDocumentFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "testDiff3()" ) , library ) ; assertFalse ( mainDocument.compareTo ( libraryDocument ) . isPresent ( ) ) ; }

Target:
public void testDiff3 ( ) throws java.lang.Exception { java.lang.String main = "" + ( ( ( ( ( ( ( ( ( "<manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application android:label=\"@string/lib_name\" />\n" ) + " <!-- some comment that should be ignored -->\n" ) + " <activity android:name=\"activityOne\" />\n" ) + "\n" ) + "\n" ) + "</manifest>" ) ; java.lang.String library = "" + ( ( ( ( ( ( ( ( "<manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <!-- some comment that should also be ignored -->\n" ) + " <activity android:name=\"activityOne\" />\n" ) + " <application android:label=\"@string/lib_name\" />\n" ) + "\n" ) + "</manifest>" ) ; com.android.manifmerger.XmlDocument mainDocument = com.android.manifmerger.TestUtils.xmlDocumentFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "testDiff3()" ) , main ) ; com.android.manifmerger.XmlDocument libraryDocument = com.android.manifmerger.TestUtils.xmlLibraryFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "testDiff3()" ) , library ) ; assertFalse ( mainDocument.compareTo ( libraryDocument ) . isPresent ( ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { try { Main.doTest ( ) ; } catch ( java.lang.Exception e ) { e.printStackTrace ( ) ; } }

Target:
public static void main ( java.lang.String [ ] args ) { art.Main.bindAgentJNIForClass ( Main.class ) ; try { Main.doTest ( ) ; } catch ( java.lang.Exception e ) { e.printStackTrace ( ) ; } }
Source:
private static java.lang.String getPacketKeepaliveReceiverEventString ( int event ) { switch ( event ) { case com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_STARTED : return com.googlecode.android_scripting.facade.telephony.TelephonyConstants.PacketKeepaliveCallbackStarted ; case com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_STOPPED : return com.googlecode.android_scripting.facade.telephony.TelephonyConstants.PacketKeepaliveCallbackStopped ; case com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_ERROR : return com.googlecode.android_scripting.facade.telephony.TelephonyConstants.PacketKeepaliveCallbackError ; } return com.googlecode.android_scripting.facade.telephony.TelephonyConstants.PacketKeepaliveCallbackInvalid ; }

Target:
private static java.lang.String getPacketKeepaliveReceiverEventString ( int event ) { switch ( event ) { case com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_STARTED : return ConnectivityConstants.PacketKeepaliveCallbackStarted ; case com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_STOPPED : return ConnectivityConstants.PacketKeepaliveCallbackStopped ; case com.googlecode.android_scripting.facade.ConnectivityManagerFacade.PacketKeepaliveReceiver.EVENT_ERROR : return ConnectivityConstants.PacketKeepaliveCallbackError ; } return ConnectivityConstants.PacketKeepaliveCallbackInvalid ; }
Source:
private void removeProvider ( com.android.server.location.LocationProviderInterface provider ) { mProviders.remove ( provider ) ; mProvidersByName.remove ( provider.getName ( ) ) ; }

Target:
private void removeProviderLocked ( com.android.server.location.LocationProviderInterface provider ) { provider.disable ( ) ; mProviders.remove ( provider ) ; mProvidersByName.remove ( provider.getName ( ) ) ; }
Source:
public com.android.apksigner.core.util.DataSink getDataSink ( ) { synchronized ( mLock ) { checkNotDone ( ) ; if ( ( mDataSink ) == null ) { mDataSink = new com.android.apksigner.core.internal.apk.v2.MessageDigestSink ( new java.security.MessageDigest [ ] { getMessageDigest ( ) } ) ; } return mDataSink ; } }

Target:
public com.android.apksigner.core.util.DataSink getDataSink ( ) { synchronized ( mLock ) { checkNotDone ( ) ; if ( ( mDataSink ) == null ) { mDataSink = new com.android.apksigner.core.internal.util.MessageDigestSink ( new java.security.MessageDigest [ ] { getMessageDigest ( ) } ) ; } return mDataSink ; } }
Source:
public void registerContentObservers ( android.content.Context appContext , com.android.dialer.phonelookup.blockednumber.ContentObserverCallbacks contentObserverCallbacks ) { if ( ( android.os.Build.VERSION.SDK_INT ) < ( android.os.Build.VERSION_CODES.N ) ) { return ; } appContext.getContentResolver ( ) . registerContentObserver ( BlockedNumbers.CONTENT_URI , true , new com.android.dialer.phonelookup.blockednumber.MarkDirtyObserver ( appContext , contentObserverCallbacks ) ) ; }

Target:
public void registerContentObservers ( android.content.Context appContext ) { if ( ( android.os.Build.VERSION.SDK_INT ) < ( android.os.Build.VERSION_CODES.N ) ) { return ; } appContext.getContentResolver ( ) . registerContentObserver ( BlockedNumbers.CONTENT_URI , true , markDirtyObserver ) ; }
Source:
public java.lang.Object invoke ( java.lang.Object proxy , java.lang.reflect.Method method , java.lang.Object [ ] args ) throws libcore.io.ErrnoException { throw new libcore.io.ErrnoException ( method.getName ( ) , errno ) ; }

Target:
public java.lang.Object invoke ( java.lang.Object proxy , java.lang.reflect.Method method , java.lang.Object [ ] args ) throws android.system.ErrnoException { throw new android.system.ErrnoException ( method.getName ( ) , errno ) ; }
Source:
protected java.lang.String getCapitalizedFlavorName ( ) { return com.android.build.gradle.internal.StringHelper.capitalize ( variantConfiguration.getFlavorName ( ) ) ; }

Target:
protected java.lang.String getCapitalizedFlavorName ( ) { return com.android.utils.StringHelper.capitalize ( variantConfiguration.getFlavorName ( ) ) ; }
Source:
public static < E > com.google.common.collect.ImmutableMultiset < E > copyHighestCountFirst ( com.google.common.collect.Multiset < E > multiset ) { java.util.List < com.google.common.collect.Multiset.Entry < E > > sortedEntries = com.google.common.collect.Multisets.DECREASING_COUNT_ORDERING.sortedCopy ( multiset.entrySet ( ) ) ; return com.google.common.collect.ImmutableMultiset.copyFromEntries ( sortedEntries ) ; }

Target:
public static < E > com.google.common.collect.ImmutableMultiset < E > copyHighestCountFirst ( com.google.common.collect.Multiset < E > multiset ) { java.util.List < com.google.common.collect.Multiset.Entry < E > > sortedEntries = com.google.common.collect.Multisets.DECREASING_COUNT_ORDERING.immutableSortedCopy ( multiset.entrySet ( ) ) ; return com.google.common.collect.ImmutableMultiset.copyFromEntries ( sortedEntries ) ; }
Source:
public void setVideoQuality ( int quality , com.android.ims.ImsConfigListener listener ) throws android.os.RemoteException { }

Target:
public void getFeatureValue ( int feature , int network , com.android.ims.ImsConfigListener listener ) throws android.os.RemoteException { }
Source:
public com.android.sdklib.ISystemImage getSystemImage ( java.lang.String abiType ) { if ( SdkConstants.ABI_ARMEABI.equals ( abiType ) ) { return getSystemImages ( ) [ 0 ] ; } return null ; }

Target:
public com.android.sdklib.ISystemImage getSystemImage ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IdDisplay tag , @ com.android.annotations.NonNull java.lang.String abiType ) { if ( ( SystemImage.DEFAULT_TAG.equals ( tag ) ) && ( SdkConstants.ABI_ARMEABI.equals ( abiType ) ) ) { return getSystemImages ( ) [ 0 ] ; } return null ; }
Source:
com.android.build.gradle.internal.model.DefaultAndroidProject addVariant ( com.android.build.gradle.model.Variant variant ) { variants.put ( variant.getName ( ) , variant ) ; return this ; }

Target:
com.android.build.gradle.internal.model.DefaultAndroidProject addVariant ( @ com.android.annotations.NonNull com.android.build.gradle.internal.model.VariantImpl variant ) { variants.put ( variant.getName ( ) , variant ) ; return this ; }
Source:
public com.android.jack.dx.io.Code readCode ( com.android.jack.dx.io.ClassData.Method method ) { int offset = method.getCodeOffset ( ) ; if ( offset == 0 ) { throw new java.lang.IllegalArgumentException ( "offset == 0" ) ; } return open ( offset ) . readCode ( ) ; }

Target:
public com.android.jack.dx.io.TypeList readTypeList ( int offset ) { if ( offset == 0 ) { return TypeList.EMPTY ; } return openInternal ( offset ) . readTypeList ( ) ; }