auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void pullFile ( java.lang.String remoteFilepath , java.lang.String localFilename , com.android.ddmlib.SyncService.ISyncProgressMonitor monitor ) throws com.android.ddmlib.SyncException , com.android.ddmlib.TimeoutException , java.io.IOException { java.lang.Integer mode = readMode ( remoteFilepath ) ; if ( mode == null ) { } else if ( mode == 0 ) { throw new com.android.ddmlib.SyncException ( com.android.ddmlib.SyncException.SyncError.NO_REMOTE_OBJECT ) ; } monitor.start ( 0 ) ; doPullFile ( remoteFilepath , localFilename , monitor ) ; monitor.stop ( ) ; }

Target:
public void pullFile ( java.lang.String remoteFilepath , java.lang.String localFilename , com.android.ddmlib.SyncService.ISyncProgressMonitor monitor ) throws com.android.ddmlib.SyncException , com.android.ddmlib.TimeoutException , java.io.IOException { com.android.ddmlib.SyncService.FileStat fileStat = statFile ( remoteFilepath ) ; if ( fileStat == null ) { } else if ( ( fileStat.getMode ( ) ) == 0 ) { throw new com.android.ddmlib.SyncException ( com.android.ddmlib.SyncException.SyncError.NO_REMOTE_OBJECT ) ; } monitor.start ( 0 ) ; doPullFile ( remoteFilepath , localFilename , monitor ) ; monitor.stop ( ) ; }
Source:
public void testMakeTimeZone_TooManyOffsets ( ) throws java.lang.Exception { int [ ] [ ] times = new int [ ] [ ] { new int [ ] { - 2000 , 255 } } ; int [ ] [ ] offsets = new int [ 257 ] [ ] ; java.util.Arrays.fill ( offsets , new int [ 2 ] ) ; offsets [ 255 ] = new int [ ] { 3600 , 0 } ; try { createZoneInfo ( times , offsets ) ; fail ( "Did not detect too many offsets" ) ; } catch ( java.lang.IllegalStateException expected ) { } }

Target:
public void testReadTimeZone_valid ( ) throws java.lang.Exception { libcore.util.ZoneInfoTestHelper.ZoneInfoDataBuilder builder = new libcore.util.ZoneInfoTestHelper.ZoneInfoDataBuilder ( ) ; builder.initializeToValid ( ) ; assertNotNull ( createZoneInfo ( getName ( ) , java.lang.System.currentTimeMillis ( ) , builder.build ( ) ) ) ; }
Source:
public boolean process ( java.lang.String countryIso , java.lang.String defaultTimeZoneId , java.util.List < java.lang.String > countryTimeZoneIds , java.lang.String debugInfo ) { countryIso = libcore.util.TimeZoneFinder.normalizeCountryIso ( countryIso ) ; if ( ! ( countryCodeToMatch.equals ( countryIso ) ) ) { return libcore.util.TimeZoneFinder.CountryZonesProcessor.CONTINUE ; } validatedCountryTimeZones = libcore.util.TimeZoneFinder.createValidatedCountryTimeZones ( countryIso , defaultTimeZoneId , countryTimeZoneIds , debugInfo ) ; return libcore.util.TimeZoneFinder.CountryZonesProcessor.HALT ; }

Target:
public boolean process ( java.lang.String countryIso , java.lang.String defaultTimeZoneId , java.util.List < java.lang.String > countryTimeZoneIds , java.lang.String debugInfo ) { countryIso = libcore.util.TimeZoneFinder.normalizeCountryIso ( countryIso ) ; if ( ! ( countryCodeToMatch.equals ( countryIso ) ) ) { return libcore.util.TimeZoneFinder.CountryZonesProcessor.CONTINUE ; } validatedCountryTimeZones = libcore.util.CountryTimeZones.createValidated ( countryIso , defaultTimeZoneId , countryTimeZoneIds , debugInfo ) ; return libcore.util.TimeZoneFinder.CountryZonesProcessor.HALT ; }
Source:
public void onGeolocationPermissionsShowPrompt ( java.lang.String origin , android.webkit.GeolocationPermissions.Callback callback ) { org.chromium.base.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onGeolocationPermissionsShowPrompt" ) ; mWebChromeClient.onGeolocationPermissionsShowPrompt ( origin , callback ) ; } org.chromium.base.TraceEvent.end ( ) ; }

Target:
public void onGeolocationPermissionsShowPrompt ( java.lang.String origin , android.webkit.GeolocationPermissions.Callback callback ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.onGeolocationPermissionsShowPrompt" ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onGeolocationPermissionsShowPrompt" ) ; mWebChromeClient.onGeolocationPermissionsShowPrompt ( origin , callback ) ; } } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.onGeolocationPermissionsShowPrompt" ) ; } }
Source:
public void run ( ) { try { org.apache.http.HttpResponse response = mServer.getResponse ( mRequest ) ; mConnection.sendResponseHeader ( response ) ; mConnection.sendResponseEntity ( response ) ; mConnection.close ( ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( android.webkit.cts.CtsTestServer.TAG , "Error handling request:" , e ) ; } }

Target:
public void run ( ) { try { org.apache.http.HttpResponse response = mServer.getResponse ( mRequest ) ; mConnection.sendResponseHeader ( response ) ; mConnection.sendResponseEntity ( response ) ; mConnection.close ( ) ; synchronized ( mLock ) { this . mSockets.remove ( mSocket ) ; } } catch ( java.lang.Exception e ) { android.util.Log.e ( android.webkit.cts.CtsTestServer.TAG , "Error handling request:" , e ) ; } }
Source:
public void hangupWaitingOrBackground ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; mMetrics.writeRilHangup ( mInstanceId , rr.mSerial , ( - 1 ) ) ; send ( rr ) ; }

Target:
public void sendDtmf ( 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 , 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:
public void testE4 ( ) { dot.junit.opcodes.aput_object.d.T_aput_object_4 t = new dot.junit.opcodes.aput_object.d.T_aput_object_4 ( ) ; java.lang.String [ ] arr = new java.lang.String [ 2 ] ; try { t.run ( arr , 0 , t ) ; fail ( "expected ArrayStoreException" ) ; } catch ( java.lang.ArrayStoreException aie ) { } }

Target:
public void testVFE6 ( ) { load ( "dot.junit.opcodes.aput_object.d.T_aput_object_10" , java.lang.VerifyError.class ) ; }
Source:
public boolean execute ( com.android.server.NativeDaemonConnector.Command cmd ) { if ( com.android.server.NsdService.DBG ) { android.util.Slog.d ( com.android.server.NsdService.TAG , cmd.toString ( ) ) ; } try { mNativeConnector.execute ( cmd ) ; } catch ( com.android.server.NativeDaemonConnectorException e ) { android.util.Slog.e ( com.android.server.NsdService.TAG , ( "Failed to execute " + cmd ) , e ) ; return false ; } return true ; }

Target:
public void stop ( ) { execute ( "stop-service" ) ; }
Source:
protected void onScrollChanged ( int l , int t , int oldl , int oldt ) { if ( ( t == 0 ) || ( t >= ( mBottomY ) ) ) { if ( ( mMediaController ) != null ) { mMediaController.show ( ) ; } } }

Target:
protected void onScrollChanged ( int l , int t , int oldl , int oldt ) { if ( ( t == 0 ) || ( t >= ( mBottomY ) ) ) { if ( ( ( mMediaController ) != null ) && ( ! ( ( ( com.android.mms.ui.SlideshowActivity ) ( mContext ) ) . isFinishing ( ) ) ) ) { mMediaController.show ( ) ; } } }
Source:
private com.android.jack.ir.ast.JFieldId getOrCreateAssertionstatusField ( @ javax.annotation.Nonnull com.android.jack.transformations.request.TransformationRequest request ) { try { com.android.jack.ir.ast.JFieldId id = currentType.getFieldId ( com.android.jack.transformations.AssertionTransformer.Visitor.ASSERTION_FIELD_NAME , JPrimitiveTypeEnum.BOOLEAN.getType ( ) , FieldKind.STATIC ) ; com.android.jack.ir.ast.JField field = id.getField ( ) ; assert field != null ; if ( field.getEnclosingType ( ) . isSameType ( currentType ) ) { return id ; } } catch ( com.android.jack.lookup.JLookupException e ) { } return addAssertionStatusToType ( currentType , request ) ; }

Target:
private com.android.jack.ir.ast.JFieldId getOrCreateAssertionstatusField ( @ javax.annotation.Nonnull com.android.jack.transformations.request.TransformationRequest request ) { try { com.android.jack.ir.ast.JFieldId id = currentType.getFieldId ( com.android.jack.transformations.AssertionTransformer.ASSERTION_FIELD_NAME , JPrimitiveTypeEnum.BOOLEAN.getType ( ) , FieldKind.STATIC ) ; com.android.jack.ir.ast.JField field = id.getField ( ) ; assert field != null ; if ( field.getEnclosingType ( ) . isSameType ( currentType ) ) { return id ; } } catch ( com.android.jack.lookup.JLookupException e ) { } return addAssertionStatusToType ( currentType , request ) ; }
Source:
public boolean retainAll ( final java.util.Collection < ? > c ) { com.google.common.base.Preconditions.checkNotNull ( c ) ; com.google.common.base.Predicate < java.util.Map.Entry < R , V > > predicate = new com.google.common.base.Predicate < java.util.Map.Entry < R , V > > ( ) { @ java.lang.Override public boolean apply ( java.util.Map.Entry < R , V > entry ) { return ! ( c.contains ( entry.getKey ( ) ) ) ; } } ; return removePredicate ( predicate ) ; }

Target:
java.util.Collection < V > createValues ( ) { return new Values ( ) ; }
Source:
private void checkInputFile ( java.io.File file ) throws com.android.sdklib.build.ApkBuilder.ApkCreationException { if ( file.isDirectory ( ) ) { throw new com.android.sdklib.build.ApkBuilder.ApkCreationException ( "%s is a directory!" , file ) ; } if ( file.exists ( ) ) { if ( ( file.canRead ( ) ) == false ) { throw new com.android.sdklib.build.ApkBuilder.ApkCreationException ( "Cannot read %s" , file ) ; } } else { throw new com.android.sdklib.build.ApkBuilder.ApkCreationException ( "%s does not exist" , file ) ; } }

Target:
private void checkInputFile ( java.io.File file ) throws com.android.sdklib.build.ApkCreationException { if ( file.isDirectory ( ) ) { throw new com.android.sdklib.build.ApkCreationException ( "%s is a directory!" , file ) ; } if ( file.exists ( ) ) { if ( ( file.canRead ( ) ) == false ) { throw new com.android.sdklib.build.ApkCreationException ( "Cannot read %s" , file ) ; } } else { throw new com.android.sdklib.build.ApkCreationException ( "%s does not exist" , file ) ; } }
Source:
private void onApplicationFieldModified ( ) { if ( ! ( mInternalApplicationNameUpdate ) ) { mApplicationNameModifiedByUser = true ; if ( ! ( mActivityNameModifiedByUser ) ) { java.lang.String name = com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.capitalize ( mApplicationNameField.getText ( ) ) ; try { mInternalActivityNameUpdate = true ; mActivityNameField.setText ( ( name + ( com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage.ACTIVITY_NAME_SUFFIX ) ) ) ; } finally { mInternalActivityNameUpdate = false ; } } } }

Target:
private void onApplicationFieldModified ( ) { if ( ! ( mInternalApplicationNameUpdate ) ) { mApplicationNameModifiedByUser = true ; if ( ! ( mActivityNameModifiedByUser ) ) { java.lang.String name = com.android.ide.eclipse.adt.AdtUtils.capitalize ( mApplicationNameField.getText ( ) ) ; try { mInternalActivityNameUpdate = true ; mActivityNameField.setText ( ( ( com.android.ide.eclipse.adt.AdtUtils.stripWhitespace ( name ) ) + ( com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage.ACTIVITY_NAME_SUFFIX ) ) ) ; } finally { mInternalActivityNameUpdate = false ; } } } }
Source:
private static android.view.KeyEvent newKeyEvent ( long downTime , long eventTime , int action , int keyCode , int metaState ) { android.view.KeyEvent event = new android.view.KeyEvent ( downTime , eventTime , action , keyCode , 0 , metaState ) ; event.setSource ( InputDevice.SOURCE_KEYBOARD ) ; return event ; }

Target:
private static android.view.KeyEvent newKeyEvent ( long downTime , long eventTime , int action , int keyCode , int metaState ) { android.view.KeyEvent event = new android.view.KeyEvent ( downTime , eventTime , action , keyCode , 0 , metaState ) ; if ( ( Build.VERSION.SDK_INT ) >= ( Build.VERSION_CODES.HONEYCOMB_MR1 ) ) { event.setSource ( InputDevice.SOURCE_KEYBOARD ) ; } return event ; }
Source:
private com.android.server.wifi.NetworkUpdateResult verifyAddEphemeralNetworkToWifiConfigManager ( android.net.wifi.WifiConfiguration configuration ) { com.android.server.wifi.NetworkUpdateResult result = addNetworkToWifiConfigManager ( configuration ) ; assertTrue ( ( ( result.getNetworkId ( ) ) != ( android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID ) ) ) ; assertTrue ( result.isNewNetwork ( ) ) ; assertTrue ( result.hasIpChanged ( ) ) ; assertTrue ( result.hasProxyChanged ( ) ) ; verifyNetworkAddBroadcast ( configuration ) ; verifyNetworkNotInConfigStoreData ( configuration ) ; return result ; }

Target:
private com.android.server.wifi.NetworkUpdateResult verifyAddEphemeralNetworkToWifiConfigManager ( android.net.wifi.WifiConfiguration configuration ) throws java.lang.Exception { com.android.server.wifi.NetworkUpdateResult result = addNetworkToWifiConfigManager ( configuration ) ; assertTrue ( ( ( result.getNetworkId ( ) ) != ( android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID ) ) ) ; assertTrue ( result.isNewNetwork ( ) ) ; assertTrue ( result.hasIpChanged ( ) ) ; assertTrue ( result.hasProxyChanged ( ) ) ; verifyNetworkAddBroadcast ( configuration ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . write ( anyBoolean ( ) , any ( com.android.server.wifi.WifiConfigStoreData.class ) ) ; return result ; }
Source:
public V remove ( java.lang.Object key ) { int hash = java.util.concurrent.ConcurrentHashMap.hash ( key.hashCode ( ) ) ; return segmentFor ( hash ) . remove ( key , hash , null ) ; }

Target:
public boolean remove ( java.lang.Object key , java.lang.Object value ) { int hash = java.util.concurrent.ConcurrentHashMap.hash ( key.hashCode ( ) ) ; java.util.concurrent.ConcurrentHashMap.Segment < K , V > s ; return ( ( value != null ) && ( ( s = segmentForHash ( hash ) ) != null ) ) && ( ( s.remove ( key , hash , value ) ) != null ) ; }
Source:
public void setUiTTYMode ( android.content.Context context , int uiTtyMode , android.os.Message onComplete ) throws com.android.ims.ImsException { checkAndThrowExceptionIfServiceUnavailable ( ) ; try { mImsServiceProxy.setUiTTYMode ( uiTtyMode , onComplete ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "setTTYMode()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } if ( ! ( com.android.ims.ImsManager.getBooleanCarrierConfig ( context , CarrierConfigManager.KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL ) ) ) { setAdvanced4GMode ( ( ( uiTtyMode == ( android.telecom.TelecomManager.TTY_MODE_OFF ) ) && ( com.android.ims.ImsManager.isEnhanced4gLteModeSettingEnabledByUser ( context ) ) ) ) ; } }

Target:
public void setUiTTYMode ( android.content.Context context , int uiTtyMode , android.os.Message onComplete ) throws com.android.ims.ImsException { checkAndThrowExceptionIfServiceUnavailable ( ) ; try { mImsServiceProxy.setUiTTYMode ( uiTtyMode , onComplete ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "setTTYMode()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } if ( ! ( getBooleanCarrierConfigForSlot ( CarrierConfigManager.KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL ) ) ) { setAdvanced4GMode ( ( ( uiTtyMode == ( android.telecom.TelecomManager.TTY_MODE_OFF ) ) && ( isEnhanced4gLteModeSettingEnabledByUserForSlot ( ) ) ) ) ; } }
Source:
public void shutdown ( ) { for ( android.content.BroadcastReceiver receiver : listeningDevices.values ( ) ) { mService.unregisterReceiver ( receiver ) ; } listeningDevices.clear ( ) ; mService.unregisterReceiver ( mPairingHelper ) ; }

Target:
public void shutdown ( ) { for ( android.content.BroadcastReceiver receiver : listeningDevices.values ( ) ) { try { mService.unregisterReceiver ( receiver ) ; } catch ( java.lang.IllegalArgumentException ex ) { com.googlecode.android_scripting.Log.e ( ( "Failed to unregister " + ex ) ) ; } } listeningDevices.clear ( ) ; try { mService.unregisterReceiver ( mPairingHelper ) ; } catch ( java.lang.IllegalArgumentException ex ) { com.googlecode.android_scripting.Log.e ( ( "Failed to unregister pairing helper." + ex ) ) ; } }
Source:
private boolean isVerificationEnabled ( ) { return ( android.provider.Settings.Secure.getInt ( mContext.getContentResolver ( ) , android.provider.Settings.Secure.PACKAGE_VERIFIER_ENABLE , ( com.android.server.pm.PackageManagerService.DEFAULT_VERIFY_ENABLE ? 1 : 0 ) ) ) == 1 ? true : false ; }

Target:
private boolean isVerificationEnabled ( int flags ) { if ( ! ( com.android.server.pm.PackageManagerService.DEFAULT_VERIFY_ENABLE ) ) { return false ; } if ( ( flags & ( android.content.pm.PackageManager.INSTALL_FROM_ADB ) ) != 0 ) { if ( android.app.ActivityManager.isRunningInTestHarness ( ) ) { return false ; } if ( ( android.provider.Settings.Global.getInt ( mContext.getContentResolver ( ) , android.provider.Settings.Global.PACKAGE_VERIFIER_INCLUDE_ADB , 1 ) ) == 0 ) { return false ; } } return ( android.provider.Settings.Global.getInt ( mContext.getContentResolver ( ) , android.provider.Settings.Global.PACKAGE_VERIFIER_ENABLE , 1 ) ) == 1 ; }
Source:
private int getPhoneTypeFromNetworkType ( int phoneId ) { java.lang.String mode = android.telephony.TelephonyManager.getTelephonyProperty ( phoneId , "ro.telephony.default_network" , null ) ; if ( mode != null ) { return android.telephony.TelephonyManager.getPhoneType ( java.lang.Integer.parseInt ( mode ) ) ; } return android.telephony.TelephonyManager.PHONE_TYPE_NONE ; }

Target:
private int getPhoneTypeFromNetworkType ( int phoneId ) { java.lang.String mode = android.telephony.TelephonyManager.getTelephonyProperty ( phoneId , "ro.telephony.default_network" , null ) ; if ( ( mode != null ) && ( ! ( mode.isEmpty ( ) ) ) ) { return android.telephony.TelephonyManager.getPhoneType ( java.lang.Integer.parseInt ( mode ) ) ; } return android.telephony.TelephonyManager.PHONE_TYPE_NONE ; }
Source:
public static double nextUp ( double d ) { if ( ( sun.misc.FpUtils.isNaN ( d ) ) || ( d == ( java.lang.Double.POSITIVE_INFINITY ) ) ) return d ; else { d += 0.0 ; return java.lang.Double.longBitsToDouble ( ( ( java.lang.Double.doubleToRawLongBits ( d ) ) + ( d >= 0.0 ? + 1L : - 1L ) ) ) ; } }

Target:
public static double signum ( double d ) { return java.lang.Math.signum ( d ) ; }
Source:
private void onConnectionStateChanged ( int state , int peer_feat , int chld_feat , byte [ ] address ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_CONNECTION_STATE_CHANGED ) ; event.valueInt = state ; event.valueInt2 = peer_feat ; event.valueInt3 = chld_feat ; event.device = getDevice ( address ) ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }

Target:
private void onConnectionStateChanged ( int state , int peer_feat , int chld_feat , byte [ ] address ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_CONNECTION_STATE_CHANGED ) ; event.valueInt = state ; event.valueInt2 = peer_feat ; event.valueInt3 = chld_feat ; event.device = getDevice ( address ) ; if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; } sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }
Source:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType == ( com.android.ide.common.api.InsertType.CREATE ) ) { java.lang.String matchParent = getFillParentValueName ( ) ; node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH , matchParent ) ; node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_HEIGHT , matchParent ) ; } }

Target:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType.isCreate ( ) ) { java.lang.String matchParent = getFillParentValueName ( ) ; node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH , matchParent ) ; node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_HEIGHT , matchParent ) ; } }
Source:
public static void setSyncAutomatically ( android.accounts.Account account , java.lang.String authority , boolean sync ) { try { android.content.ContentResolver.getContentService ( ) . setSyncAutomatically ( account , authority , sync ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public static void requestSyncAsUser ( android.accounts.Account account , java.lang.String authority , int userId , android.os.Bundle extras ) { if ( extras == null ) { throw new java.lang.IllegalArgumentException ( "Must specify extras." ) ; } android.content.SyncRequest request = new android.content.SyncRequest.Builder ( ) . setSyncAdapter ( account , authority ) . setExtras ( extras ) . syncOnce ( ) . build ( ) ; try { android.content.ContentResolver.getContentService ( ) . syncAsUser ( request , userId ) ; } catch ( android.os.RemoteException e ) { } }
Source:
private boolean isNetworkInConfigStoreData ( android.net.wifi.WifiConfiguration configuration , com.android.server.wifi.WifiConfigStoreData storeData ) { boolean foundNetworkInStoreData = false ; for ( android.net.wifi.WifiConfiguration retrievedConfig : storeData.getConfigurations ( ) ) { if ( retrievedConfig.configKey ( ) . equals ( configuration.configKey ( ) ) ) { foundNetworkInStoreData = true ; break ; } } return foundNetworkInStoreData ; }

Target:
private boolean isNetworkInConfigStoreData ( android.net.wifi.WifiConfiguration configuration , java.util.List < android.net.wifi.WifiConfiguration > networkList ) { boolean foundNetworkInStoreData = false ; for ( android.net.wifi.WifiConfiguration retrievedConfig : networkList ) { if ( retrievedConfig.configKey ( ) . equals ( configuration.configKey ( ) ) ) { foundNetworkInStoreData = true ; break ; } } return foundNetworkInStoreData ; }
Source:
public java.util.Set < java.lang.String > getApplicableFilters ( @ com.android.annotations.NonNull java.util.Set < java.lang.String > allFilters ) { java.util.Set < java.lang.String > list = super . getApplicableFilters ( allFilters ) ; if ( ( isEnable ( ) ) && ( universalApk ) ) { list.add ( com.android.build.SplitOutput.NO_FILTER ) ; } return list ; }

Target:
public java.util.Set < java.lang.String > getApplicableFilters ( @ com.android.annotations.NonNull java.util.Set < java.lang.String > allFilters ) { java.util.Set < java.lang.String > list = super . getApplicableFilters ( allFilters ) ; if ( ( isEnable ( ) ) && ( universalApk ) ) { list.add ( com.android.build.OutputFile.NO_FILTER ) ; } return list ; }
Source:
public java.util.Set < java.lang.String > getDensityList ( ) { com.android.resources.Density [ ] values = com.android.resources.Density.values ( ) ; java.util.Set < java.lang.String > fullList = com.google.common.collect.Sets.newHashSetWithExpectedSize ( ( ( values.length ) - 1 ) ) ; for ( com.android.resources.Density value : values ) { if ( value != ( com.android.resources.Density.NODPI ) ) { fullList.add ( value.getResourceValue ( ) ) ; } } return density.computeList ( fullList ) ; }

Target:
public java.util.Set < java.lang.String > getDensityFilters ( ) { com.android.resources.Density [ ] values = com.android.resources.Density.values ( ) ; java.util.Set < java.lang.String > fullList = com.google.common.collect.Sets.newHashSetWithExpectedSize ( ( ( values.length ) - 1 ) ) ; for ( com.android.resources.Density value : values ) { if ( value != ( com.android.resources.Density.NODPI ) ) { fullList.add ( value.getResourceValue ( ) ) ; } } return density.getApplicableFilters ( fullList ) ; }
Source:
public void wifiNanSendMessage ( @ 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 , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "peerId" , description = "The ID of the peer being communicated " + "with. Obtained from a previous message or match session." ) java.lang.Integer peerId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "message" ) java.lang.String message , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "messageId" , description = "Arbitrary handle used for " + "identification of the message in the message status callbacks" ) java.lang.Integer messageId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "retryCount" , description = "Number of retries (0 for none) if " + "transmission fails due to no ACK reception" ) java.lang.Integer retryCount ) throws android.os.RemoteException { android.net.wifi.nan.WifiNanDiscoveryBaseSession session = mSessions.get ( sessionId ) ; if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanSendMessage before session (session ID " + sessionId ) + " is ready" ) ) ; } byte [ ] bytes = message.getBytes ( ) ; session.sendMessage ( peerId , bytes , messageId , retryCount ) ; }

Target:
public java.lang.Integer wifiNanPublish ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "clientId" , description = "The client ID returned when a connection was created" ) java.lang.Integer clientId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "publishConfig" ) org.json.JSONObject publishConfig ) throws android.os.RemoteException , org.json.JSONException { synchronized ( mLock ) { android.net.wifi.nan.WifiNanSession session = mSessions.get ( clientId ) ; if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanPublish before session (client ID " + clientId ) + ") is ready/or already disconnected" ) ) ; } int discoverySessionId = getNextDiscoverySessionId ( ) ; session.publish ( com.googlecode.android_scripting.facade.wifi.WifiNanManagerFacade.getPublishConfig ( publishConfig ) , new com.googlecode.android_scripting.facade.wifi.WifiNanManagerFacade.NanDiscoverySessionCallbackPostsEvents ( discoverySessionId ) ) ; return discoverySessionId ; } }
Source:
public void testAesCbcHmacMd5Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }

Target:
public void testInterfaceCountersUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1000 , false ) ; }
Source:
public void updateFocusedWindow ( com.android.ddmlib.IDevice device , int focusedWindow ) { java.lang.Integer oldValue = null ; synchronized ( mDeviceMap ) { oldValue = mFocusedWindowHashes.put ( device , new java.lang.Integer ( focusedWindow ) ) ; } if ( ( oldValue == null ) || ( ( oldValue != null ) && ( ( oldValue.intValue ( ) ) != focusedWindow ) ) ) { notifyFocusChanged ( device ) ; } }

Target:
public void updateFocusedWindow ( com.android.hierarchyviewerlib.device.IHvDevice device , int focusedWindow ) { java.lang.Integer oldValue = null ; synchronized ( mDeviceMap ) { oldValue = mFocusedWindowHashes.put ( device , new java.lang.Integer ( focusedWindow ) ) ; } if ( ( oldValue == null ) || ( ( oldValue != null ) && ( ( oldValue.intValue ( ) ) != focusedWindow ) ) ) { notifyFocusChanged ( device ) ; } }
Source:
public void getOutgoingCallerIdDisplay ( android.os.Message onComplete ) { if ( isPhoneTypeGsm ( ) ) { com.android.internal.telephony.Phone imsPhone = mImsPhone ; if ( ( imsPhone != null ) && ( ( imsPhone.getServiceState ( ) . getState ( ) ) == ( android.telephony.ServiceState.STATE_IN_SERVICE ) ) ) { imsPhone.getOutgoingCallerIdDisplay ( onComplete ) ; return ; } mCi.getCLIR ( onComplete ) ; } else { loge ( "getOutgoingCallerIdDisplay: not possible in CDMA" ) ; } }

Target:
public void getOutgoingCallerIdDisplay ( android.os.Message onComplete ) { if ( isPhoneTypeGsm ( ) ) { com.android.internal.telephony.Phone imsPhone = mImsPhone ; if ( ( imsPhone != null ) && ( ( ( imsPhone.getServiceState ( ) . getState ( ) ) == ( android.telephony.ServiceState.STATE_IN_SERVICE ) ) || ( imsPhone.isUtEnabled ( ) ) ) ) { imsPhone.getOutgoingCallerIdDisplay ( onComplete ) ; return ; } mCi.getCLIR ( onComplete ) ; } else { loge ( "getOutgoingCallerIdDisplay: not possible in CDMA" ) ; } }
Source:
private java.lang.Object getListener ( int key ) { if ( key == ( android.net.nsd.NsdManager.INVALID_LISTENER_KEY ) ) return null ; synchronized ( mMapLock ) { return mListenerMap.get ( key ) ; } }

Target:
private int putListener ( java.lang.Object listener , android.net.nsd.NsdServiceInfo s ) { android.net.nsd.NsdManager.checkListener ( listener ) ; final int key ; synchronized ( mMapLock ) { int valueIndex = mListenerMap.indexOfValue ( listener ) ; com.android.internal.util.Preconditions.checkArgument ( ( valueIndex == ( - 1 ) ) , "listener already in use" ) ; key = nextListenerKey ( ) ; mListenerMap.put ( key , listener ) ; mServiceMap.put ( key , s ) ; } return key ; }
Source:
public final java.nio.IntBuffer asIntBuffer ( ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } int off = this . position ( ) ; int lim = this . limit ( ) ; assert off <= lim ; int rem = ( off <= lim ) ? lim - off : 0 ; int size = rem > > 2 ; return new java.nio.ByteBufferAsIntBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ; }

Target:
final void putIntUnchecked ( int i , int x ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putInt ( ix ( i ) , x ) ; }
Source:
public void testClick ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.large_view ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.withText ( "large view" ) ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.large_view ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.large_view ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Ouch!!!" ) ) ) ; }

Target:
public void clickActionTesting ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.large_view ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.withText ( "large view" ) ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.large_view ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.large_view ) ) . check ( android.support.test.espresso.assertion.ViewAssertions.matches ( android.support.test.espresso.matcher.ViewMatchers.withText ( "Ouch!!!" ) ) ) ; }
Source:
public java.lang.String iccTransmitApduLogicalChannel ( int channel , int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccTransmitApduLogicalChannel ( channel , cla , instruction , p1 , p2 , p3 , data ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }

Target:
public int getDataActivationState ( int subId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.getDataActivationState ( subId , getOpPackageName ( ) ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN ; }
Source:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setProgressDrawable" , args = { android.graphics.drawable.Drawable.class } ) } ) public void testAccessProgressDrawable ( ) { android.widget.ProgressBar progressBar = new android.widget.ProgressBar ( mContext , null , com.android.internal.R.attr.progressBarStyleHorizontal ) ; android.widget.cts.ProgressBarTest.MockDrawable mockDrawable = new android.widget.cts.ProgressBarTest.MockDrawable ( ) ; progressBar.setProgressDrawable ( mockDrawable ) ; assertSame ( mockDrawable , progressBar.getProgressDrawable ( ) ) ; assertFalse ( mockDrawable.hasCalledDraw ( ) ) ; progressBar.draw ( new android.graphics.Canvas ( ) ) ; assertTrue ( mockDrawable.hasCalledDraw ( ) ) ; progressBar.setProgressDrawable ( null ) ; assertNull ( progressBar.getProgressDrawable ( ) ) ; }

Target:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setProgressDrawable" , args = { android.graphics.drawable.Drawable.class } ) } ) public void testAccessProgressDrawable ( ) { android.widget.ProgressBar progressBar = new android.widget.ProgressBar ( mContext , null , android.R.attr.progressBarStyleHorizontal ) ; android.widget.cts.ProgressBarTest.MockDrawable mockDrawable = new android.widget.cts.ProgressBarTest.MockDrawable ( ) ; progressBar.setProgressDrawable ( mockDrawable ) ; assertSame ( mockDrawable , progressBar.getProgressDrawable ( ) ) ; assertFalse ( mockDrawable.hasCalledDraw ( ) ) ; progressBar.draw ( new android.graphics.Canvas ( ) ) ; assertTrue ( mockDrawable.hasCalledDraw ( ) ) ; progressBar.setProgressDrawable ( null ) ; assertNull ( progressBar.getProgressDrawable ( ) ) ; }
Source:
public int answer ( java.lang.String permName , int uid ) throws java.lang.Exception { if ( uid == ( com.android.server.wifi.WifiConfigManagerTest.TEST_CREATOR_UID ) ) { return android.content.pm.PackageManager.PERMISSION_GRANTED ; } return android.content.pm.PackageManager.PERMISSION_DENIED ; }

Target:
public void testUpdateSingleOpenNetworkFailedDueToPermissionDenied ( ) throws java.lang.Exception { android.net.wifi.WifiConfiguration openNetwork = com.android.server.wifi.WifiConfigurationTestUtil.createOpenNetwork ( ) ; java.util.List < android.net.wifi.WifiConfiguration > networks = new java.util.ArrayList < > ( ) ; networks.add ( openNetwork ) ; verifyAddNetworkToWifiConfigManager ( openNetwork ) ; assertAndSetNetworkBSSID ( openNetwork , com.android.server.wifi.WifiConfigManagerTest.TEST_BSSID ) ; when ( mWifiPermissionsUtil.checkConfigOverridePermission ( anyInt ( ) ) ) . thenReturn ( false ) ; com.android.server.wifi.NetworkUpdateResult result = updateNetworkToWifiConfigManager ( openNetwork ) ; assertTrue ( ( ( result.getNetworkId ( ) ) == ( android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID ) ) ) ; }
Source:
public static java.nio.charset.Charset getCharset ( @ javax.annotation.Nonnull org.simpleframework.http.ContentType contentType ) throws java.nio.charset.IllegalCharsetNameException , java.nio.charset.UnsupportedCharsetException { assert com.android.jack.server.type.TextPlain.CONTENT_TYPE_NAME.equals ( contentType.getType ( ) ) : contentType.getType ( ) ; java.lang.String charsetName = contentType.getCharset ( ) ; java.nio.charset.Charset charset ; if ( charsetName == null ) { charset = com.android.jack.server.type.TextPlain.DEFAULT_CHARSET ; } else { charset = java.nio.charset.Charset.forName ( charsetName ) ; } return charset ; }

Target:
public static java.nio.charset.Charset getCharset ( @ javax.annotation.Nonnull org.simpleframework.http.ContentType contentType ) throws java.nio.charset.IllegalCharsetNameException , java.nio.charset.UnsupportedCharsetException { assert com.android.jack.server.type.TextPlain.CONTENT_TYPE_NAME.equals ( contentType.getType ( ) ) : contentType.getType ( ) ; java.lang.String charsetName = contentType.getCharset ( ) ; java.nio.charset.Charset charset ; if ( charsetName == null ) { charset = java.nio.charset.Charset.defaultCharset ( ) ; } else { charset = java.nio.charset.Charset.forName ( charsetName ) ; } return charset ; }
Source:
public boolean connect ( ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , "connect()" ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.connect ( ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( "getDevicesMatchingConnectionStates(): states=" + ( java.util.Arrays.toString ( states ) ) ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( 0 ) ; } return service.getDevicesMatchingConnectionStates ( states ) ; }
Source:
public boolean setWfdEnable ( boolean enable ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.enableWfd ( enable ) ; } else { return doBooleanCommand ( ( "SET wifi_display " + ( enable ? "1" : "0" ) ) ) ; } }

Target:
public boolean setWfdEnable ( boolean enable ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.enableWfd ( enable ) ; } else { return doBooleanCommand ( ( "SET wifi_display " + ( enable ? "1" : "0" ) ) ) ; } }
Source:
public java.util.Set < vogar.tasks.Task > installTasks ( ) { java.util.Set < vogar.tasks.Task > result = new java.util.HashSet < vogar.tasks.Task > ( ) ; for ( java.io.File classpathElement : run.classpath.getElements ( ) ) { dexAndPush ( result , run.basenameOfJar ( classpathElement ) , classpathElement , null ) ; } return result ; }

Target:
public java.util.Set < vogar.tasks.Task > installTasks ( ) { java.util.Set < vogar.tasks.Task > result = new java.util.HashSet < vogar.tasks.Task > ( ) ; for ( java.io.File classpathElement : run.classpath.getElements ( ) ) { addCreateDexJarAndPushTasks ( result , run.basenameOfJar ( classpathElement ) , classpathElement , null ) ; } return result ; }
Source:
private void setUpAndRegisterReceiver ( ) { if ( ( mReceiver ) != null ) { mContext.unregisterReceiver ( mReceiver ) ; } mReceiver = new android.assist.cts.AssistStructureTest.AssistStructureTestBroadcastReceiver ( ) ; android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( Utils.APP_3P_HASRESUMED ) ; filter.addAction ( Utils.ASSIST_RECEIVER_REGISTERED ) ; mContext.registerReceiver ( mReceiver , filter ) ; }

Target:
private void setUpAndRegisterReceiver ( ) { if ( ( mReceiver ) != null ) { mContext.unregisterReceiver ( mReceiver ) ; } mReceiver = new android.assist.cts.AssistStructureTest.AssistStructureTestBroadcastReceiver ( ) ; android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( Utils.APP_3P_HASRESUMED ) ; filter.addAction ( Utils.APP_3P_HASDRAWED ) ; filter.addAction ( Utils.ASSIST_RECEIVER_REGISTERED ) ; mContext.registerReceiver ( mReceiver , filter ) ; }
Source:
public lombok.ast.AstVisitor createJavaVisitor ( @ com.android.annotations.NonNull final com.android.tools.lint.detector.api.JavaContext context ) { return new lombok.ast.ForwardingAstVisitor ( ) { @ java.lang.Override public boolean visitMethodDeclaration ( lombok.ast.MethodDeclaration node ) { com.android.tools.lint.client.api.JavaParser.ResolvedNode resolved = context.resolve ( node ) ; if ( resolved instanceof com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) { com.android.tools.lint.client.api.JavaParser.ResolvedMethod method = ( ( com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) ( resolved ) ) ; com.android.tools.lint.checks.CallSuperDetector.checkCallSuper ( context , node , method ) ; } return false ; } } ; }

Target:
public com.intellij.psi.JavaElementVisitor createPsiVisitor ( @ com.android.annotations.NonNull final com.android.tools.lint.detector.api.JavaContext context ) { return new com.intellij.psi.JavaElementVisitor ( ) { @ java.lang.Override public void visitMethod ( com.intellij.psi.PsiMethod method ) { com.android.tools.lint.checks.CallSuperDetector.checkCallSuper ( context , method ) ; } } ; }
Source:
public void accept ( int result ) { if ( result == ( android.app.Activity.RESULT_OK ) ) { logFail ( ) ; status = FAIL ; } else { if ( ( mNm.getEffectsSuppressor ( ) ) == null ) { status = PASS ; } else { logFail ( ) ; status = RETEST ; delay ( ) ; } } next ( ) ; }

Target:
public void accept ( int result ) { if ( result == ( android.app.Activity.RESULT_OK ) ) { logFail ( ) ; status = FAIL ; } else { if ( ( ( mNm.getEffectsSuppressor ( ) ) == null ) || ( ! ( mNm.getEffectsSuppressor ( ) . equals ( MockListener.COMPONENT_NAME ) ) ) ) { status = PASS ; } else { logFail ( ) ; status = RETEST ; delay ( ) ; } } next ( ) ; }
Source:
public void controlResized ( org.eclipse.swt.events.ControlEvent e ) { super . controlResized ( e ) ; mHScale.setClientSize ( getClientArea ( ) . width ) ; mVScale.setClientSize ( getClientArea ( ) . height ) ; }

Target:
public void controlResized ( org.eclipse.swt.events.ControlEvent e ) { super . controlResized ( e ) ; mHScale.setClientSize ( getClientArea ( ) . width ) ; mVScale.setClientSize ( getClientArea ( ) . height ) ; org.eclipse.swt.graphics.Rectangle canvasBounds = this . getBounds ( ) ; getHorizontalBar ( ) . setPageIncrement ( canvasBounds.width ) ; getVerticalBar ( ) . setPageIncrement ( canvasBounds.height ) ; }
Source:
public boolean visitReturn ( lombok.ast.Return node ) { if ( ( node.astValue ( ) ) == ( mTarget ) ) { mFound = true ; } return super . visitReturn ( node ) ; }

Target:
public void visitMethodCallExpression ( com.intellij.psi.PsiMethodCallExpression node ) { super . visitMethodCallExpression ( node ) ; if ( node == ( mTarget ) ) { mSeenTarget = true ; } else { com.intellij.psi.PsiReferenceExpression methodExpression = node.getMethodExpression ( ) ; if ( ( ( mSeenTarget ) || ( ( methodExpression.getQualifier ( ) ) == ( mTarget ) ) ) && ( "show" . equals ( methodExpression.getReferenceName ( ) ) ) ) { mFound = true ; } } }
Source:
public boolean updatePublish ( short transactionId , android.net.wifi.nan.PublishConfig config ) { if ( ! ( mIsPublishSession ) ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.TAG , "A SUBSCRIBE session is being used to publish" ) ; try { mCallback.onSessionConfigFail ( WifiNanDiscoverySessionCallback.REASON_OTHER ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.TAG , ( "updatePublish: RemoteException=" + e ) ) ; } return false ; } return com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . publish ( transactionId , mPubSubId , config ) ; }

Target:
public boolean updatePublish ( short transactionId , android.net.wifi.nan.PublishConfig config ) { if ( ! ( mIsPublishSession ) ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.TAG , "A SUBSCRIBE session is being used to publish" ) ; try { mCallback.onSessionConfigFail ( WifiNanNative.NAN_STATUS_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.TAG , ( "updatePublish: RemoteException=" + e ) ) ; } return false ; } return com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . publish ( transactionId , mPubSubId , config ) ; }
Source:
public final void testDefaultAttributeFilter ( ) { assertEquals ( "true" , BaseLayout.DEFAULT_ATTR_FILTER.replace ( "myuri" , "layout_alignRight" , "true" ) ) ; assertEquals ( null , BaseLayout.DEFAULT_ATTR_FILTER.replace ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , "layout_alignRight" , "true" ) ) ; assertEquals ( "true" , BaseLayout.DEFAULT_ATTR_FILTER.replace ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , "myproperty" , "true" ) ) ; }

Target:
public final void testDefaultAttributeFilter ( ) { assertEquals ( "true" , BaseLayoutRule.DEFAULT_ATTR_FILTER.replace ( "myuri" , "layout_alignRight" , "true" ) ) ; assertEquals ( null , BaseLayoutRule.DEFAULT_ATTR_FILTER.replace ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , "layout_alignRight" , "true" ) ) ; assertEquals ( "true" , BaseLayoutRule.DEFAULT_ATTR_FILTER.replace ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , "myproperty" , "true" ) ) ; }
Source:
public static int getClassFileVersion ( org.jetbrains.asm4.ClassReader reader ) { final com.intellij.openapi.util.Ref < java.lang.Integer > result = new com.intellij.openapi.util.Ref < java.lang.Integer > ( 0 ) ; reader.accept ( new org.jetbrains.asm4.ClassVisitor ( org.jetbrains.asm4.Opcodes.ASM4 ) { public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { result.set ( version ) ; } } , 0 ) ; return result.get ( ) ; }

Target:
public static int getClassFileVersion ( org.jetbrains.org.objectweb.asm.ClassReader reader ) { final com.intellij.openapi.util.Ref < java.lang.Integer > result = new com.intellij.openapi.util.Ref < java.lang.Integer > ( 0 ) ; reader.accept ( new org.jetbrains.org.objectweb.asm.ClassVisitor ( org.jetbrains.org.objectweb.asm.Opcodes.ASM5 ) { public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { result.set ( version ) ; } } , 0 ) ; return result.get ( ) ; }