auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public V get ( @ javax.annotation.Nullable java.lang.Object rowKey , @ javax.annotation.Nullable java.lang.Object columnKey ) { java.lang.Integer rowIndex = rowKeyToIndex.get ( rowKey ) ; java.lang.Integer columnIndex = columnKeyToIndex.get ( columnKey ) ; return ( rowIndex == null ) || ( columnIndex == null ) ? null : array [ rowIndex ] [ columnIndex ] ; }

Target:
public V get ( @ javax.annotation.Nullable java.lang.Object rowKey , @ javax.annotation.Nullable java.lang.Object columnKey ) { java.lang.Integer rowIndex = rowKeyToIndex.get ( rowKey ) ; java.lang.Integer columnIndex = columnKeyToIndex.get ( columnKey ) ; return ( rowIndex == null ) || ( columnIndex == null ) ? null : at ( rowIndex , columnIndex ) ; }
Source:
public void delete ( java.lang.String name ) throws java.io.IOException { if ( name.equalsIgnoreCase ( sun.security.x509.CRLDistributionPointsExtension.POINTS ) ) { distributionPoints = new java.util.ArrayList < sun.security.x509.DistributionPoint > ( ) ; } else { throw new java.io.IOException ( ( ( ( ( ( "Attribute name [" + name ) + "] not recognized by " ) + "CertAttrSet:" ) + ( extensionName ) ) + "." ) ) ; } encodeThis ( ) ; }

Target:
public void delete ( java.lang.String name ) throws java.io.IOException { if ( name.equalsIgnoreCase ( sun.security.x509.CRLDistributionPointsExtension.POINTS ) ) { distributionPoints = java.util.Collections.< sun.security.x509.DistributionPoint > emptyList ( ) ; } else { throw new java.io.IOException ( ( ( ( ( ( "Attribute name [" + name ) + "] not recognized by " ) + "CertAttrSet:" ) + ( extensionName ) ) + '.' ) ) ; } encodeThis ( ) ; }
Source:
public final int startActivityWithConfig ( android.app.IApplicationThread caller , android.content.Intent intent , java.lang.String resolvedType , android.net.Uri [ ] grantedUriPermissions , int grantedMode , android.os.IBinder resultTo , java.lang.String resultWho , int requestCode , boolean onlyIfNeeded , boolean debug , android.content.res.Configuration config ) { return startActivityMayWait ( caller , intent , resolvedType , grantedUriPermissions , grantedMode , resultTo , resultWho , requestCode , onlyIfNeeded , debug , null , config ) ; }

Target:
public final int startActivityWithConfig ( android.app.IApplicationThread caller , android.content.Intent intent , java.lang.String resolvedType , android.net.Uri [ ] grantedUriPermissions , int grantedMode , android.os.IBinder resultTo , java.lang.String resultWho , int requestCode , boolean onlyIfNeeded , boolean debug , android.content.res.Configuration config ) { return mMainStack.startActivityMayWait ( caller , intent , resolvedType , grantedUriPermissions , grantedMode , resultTo , resultWho , requestCode , onlyIfNeeded , debug , null , config ) ; }
Source:
public void removeAllRights ( ) { if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } _removeAllRights ( mUniqueId ) ; }

Target:
public int unloadPlugIns ( ) { int result = android.drm.DrmManagerClient.ERROR_UNKNOWN ; if ( ( android.drm.DrmManagerClient.STATE_INITIALIZED ) == ( getState ( ) ) ) { if ( null != ( mEventHandler ) ) { android.os.Message msg = mEventHandler.obtainMessage ( android.drm.DrmManagerClient.ACTION_FINALIZE ) ; result = ( mEventHandler.sendMessage ( msg ) ) ? android.drm.DrmManagerClient.ERROR_NONE : result ; } } else { result = android.drm.DrmManagerClient.ERROR_NONE ; } return result ; }
Source:
public android.hardware.cts.helpers.TestSensorEvent [ ] getEvents ( int count ) { if ( ( mTestSensorEventListener ) == null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "No listener registered, returning." ) ; return null ; } mTestSensorEventListener.waitForEvents ( count ) ; android.hardware.cts.helpers.TestSensorEvent [ ] events = mTestSensorEventListener.getEvents ( ) ; mTestSensorEventListener.clearEvents ( ) ; return events ; }

Target:
public void waitForEvents ( long duration , java.util.concurrent.TimeUnit timeUnit ) { if ( ( mTestSensorEventListener ) == null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "No listener registered, returning." ) ; return ; } mTestSensorEventListener.waitForEvents ( duration , timeUnit ) ; }
Source:
void updateIndex ( int offset , com.android.dx.merge.IndexMap indexMap , int oldIndex , int newIndex ) { if ( ( newIndex < 0 ) || ( newIndex > 65535 ) ) { throw new java.lang.IllegalArgumentException ( ( "proto ID not in [0, 0xffff]: " + newIndex ) ) ; } indexMap.protoIds [ oldIndex ] = ( ( short ) ( newIndex ) ) ; }

Target:
void updateIndex ( int offset , com.android.dx.merge.IndexMap indexMap , int oldIndex , int newIndex ) { if ( ( newIndex < 0 ) || ( newIndex > 65535 ) ) { throw new com.android.dex.DexIndexOverflowException ( ( "proto ID not in [0, 0xffff]: " + newIndex ) ) ; } indexMap.protoIds [ oldIndex ] = ( ( short ) ( newIndex ) ) ; }
Source:
public static void showDialog ( ) { if ( com.android.phone.IccNetworkDepersonalizationPanel.sShowingDialog ) { android.util.Log.i ( com.android.phone.TAG , "[IccNetworkDepersonalizationPanel] - showDialog; skipped already shown." ) ; return ; } android.util.Log.i ( com.android.phone.TAG , "[IccNetworkDepersonalizationPanel] - showDialog; showing dialog." ) ; com.android.phone.IccNetworkDepersonalizationPanel.sShowingDialog = true ; com.android.phone.IccNetworkDepersonalizationPanel ndpPanel = new com.android.phone.IccNetworkDepersonalizationPanel ( com.android.phone.PhoneGlobals.getInstance ( ) ) ; ndpPanel.show ( ) ; }

Target:
public static void showDialog ( com.android.internal.telephony.Phone phone ) { if ( com.android.phone.IccNetworkDepersonalizationPanel.sShowingDialog ) { android.util.Log.i ( com.android.phone.TAG , "[IccNetworkDepersonalizationPanel] - showDialog; skipped already shown." ) ; return ; } android.util.Log.i ( com.android.phone.TAG , "[IccNetworkDepersonalizationPanel] - showDialog; showing dialog." ) ; com.android.phone.IccNetworkDepersonalizationPanel.sShowingDialog = true ; com.android.phone.IccNetworkDepersonalizationPanel ndpPanel = new com.android.phone.IccNetworkDepersonalizationPanel ( com.android.phone.PhoneGlobals.getInstance ( ) , phone ) ; ndpPanel.show ( ) ; }
Source:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { mImageCanvas = new com.android.ide.eclipse.gltrace.widgets.ImageCanvas ( parent ) ; mImageCanvas.setFitToCanvas ( false ) ; mFitToCanvasAction = new com.android.ide.eclipse.gltrace.views.FitToCanvasAction ( false , mImageCanvas ) ; mToolBarItems = java.util.Collections.singletonList ( ( ( org.eclipse.jface.action.IContributionItem ) ( new org.eclipse.jface.action.ActionContributionItem ( mFitToCanvasAction ) ) ) ) ; }

Target:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { mImageCanvas = new com.android.ide.eclipse.gltrace.widgets.ImageCanvas ( parent ) ; mImageCanvas.setFitToCanvas ( false ) ; mFitToCanvasAction = new com.android.ide.eclipse.gltrace.views.FitToCanvasAction ( false , mImageCanvas ) ; mSaveImageAction = new com.android.ide.eclipse.gltrace.views.SaveImageAction ( mImageCanvas ) ; mToolBarItems = java.util.Arrays.asList ( ( ( org.eclipse.jface.action.IContributionItem ) ( new org.eclipse.jface.action.ActionContributionItem ( mFitToCanvasAction ) ) ) , ( ( org.eclipse.jface.action.IContributionItem ) ( new org.eclipse.jface.action.ActionContributionItem ( mSaveImageAction ) ) ) ) ; }
Source:
private void postMessage ( int messageCode ) { synchronized ( this ) { if ( ( mHandler ) == null ) { mHandler = getNewHandler ( ) ; } if ( ( mHandler ) == null ) { android.telecom.Log.d ( this , "Message %d skipped because there is no handler." , messageCode ) ; } else { mHandler.obtainMessage ( messageCode , null ) . sendToTarget ( ) ; } } }

Target:
public void stopTone ( ) { if ( ( mToneGenerator ) != null ) { mToneGenerator.stopTone ( ) ; } }
Source:
public boolean replyReport ( byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( ( ( "replyReport(): type=" + type ) + " id=" ) + id ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.replyReport ( type , id , data ) ; }

Target:
public boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.replyReport ( device , type , id , data ) ; }
Source:
protected void postInstall ( android.content.Context context , android.content.Intent intent ) { try { unpackBundle ( ) ; applyUpdate ( ) ; } catch ( java.lang.IllegalArgumentException e ) { android.util.Slog.e ( com.android.server.updates.SELinuxPolicyInstallReceiver.TAG , "SELinux policy update malformed: " , e ) ; } catch ( java.io.IOException e ) { android.util.Slog.e ( com.android.server.updates.SELinuxPolicyInstallReceiver.TAG , "Could not update selinux policy: " , e ) ; } catch ( libcore.io.ErrnoException e ) { android.util.Slog.e ( com.android.server.updates.SELinuxPolicyInstallReceiver.TAG , "Could not update selinux policy: " , e ) ; } }

Target:
protected void postInstall ( android.content.Context context , android.content.Intent intent ) { try { unpackBundle ( ) ; applyUpdate ( ) ; } catch ( java.lang.IllegalArgumentException e ) { android.util.Slog.e ( com.android.server.updates.SELinuxPolicyInstallReceiver.TAG , "SELinux policy update malformed: " , e ) ; } catch ( java.io.IOException e ) { android.util.Slog.e ( com.android.server.updates.SELinuxPolicyInstallReceiver.TAG , "Could not update selinux policy: " , e ) ; } catch ( android.system.ErrnoException e ) { android.util.Slog.e ( com.android.server.updates.SELinuxPolicyInstallReceiver.TAG , "Could not update selinux policy: " , e ) ; } }
Source:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.google.gct.testing.dimension.GoogleCloudTestingTypeGroup that = ( ( com.google.gct.testing.dimension.GoogleCloudTestingTypeGroup ) ( o ) ) ; if ( ! ( name.equals ( that.name ) ) ) return false ; return true ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.google.gct.testing.dimension.CloudTestingTypeGroup that = ( ( com.google.gct.testing.dimension.CloudTestingTypeGroup ) ( o ) ) ; if ( ! ( name.equals ( that.name ) ) ) return false ; return true ; }
Source:
private void doConnect ( android.net.wifi.WifiManager wifiManager ) { int networkId = wifiManager.addNetwork ( mCurrentWifiConfiguration ) ; if ( networkId < 0 ) { showFailToast ( ) ; } else { wifiManager.connect ( networkId , new android.net.wifi.WifiManager.ActionListener ( ) { @ java.lang.Override public void onSuccess ( ) { android.widget.Toast.makeText ( com.android.nfc.ConfirmConnectToWifiNetworkActivity.this , R.string.status_wifi_connected , Toast.LENGTH_SHORT ) . show ( ) ; } @ java.lang.Override public void onFailure ( int reason ) { showFailToast ( ) ; } } ) ; } }

Target:
private void doConnect ( android.net.wifi.WifiManager wifiManager ) { int networkId = wifiManager.addNetwork ( mCurrentWifiConfiguration ) ; if ( networkId < 0 ) { showFailToast ( ) ; } else { wifiManager.connect ( networkId , new android.net.wifi.WifiManager.ActionListener ( ) { @ java.lang.Override public void onSuccess ( ) { android.widget.Toast.makeText ( com.android.nfc.ConfirmConnectToWifiNetworkActivity.this , R.string.status_wifi_connected , Toast.LENGTH_SHORT ) . show ( ) ; } @ java.lang.Override public void onFailure ( int reason ) { showFailToast ( ) ; } } ) ; } finish ( ) ; }
Source:
public void dump ( ) { java.lang.System.out.printf ( "%s [%d, %d]\n" , mName , mGlobalStartTime , mGlobalEndTime ) ; }

Target:
void finish ( ) { if ( ( mCaller ) != null ) { mCaller.mInclusiveCpuTime += mInclusiveCpuTime ; mCaller.mInclusiveRealTime += mInclusiveRealTime ; } mMethodData.addElapsedExclusive ( mExclusiveCpuTime , mExclusiveRealTime ) ; if ( ! ( mIsRecursive ) ) { mMethodData.addTopExclusive ( mExclusiveCpuTime , mExclusiveRealTime ) ; } mMethodData.addElapsedInclusive ( mInclusiveCpuTime , mInclusiveRealTime , mIsRecursive , mCaller ) ; }
Source:
public void setSimPowerStateForSlot ( int slotId , boolean powerUp ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.setSimPowerStateForSlot ( slotId , powerUp ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setSimPowerStateForSlot" , e ) ; } catch ( java.lang.SecurityException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Permission error calling ITelephony#setSimPowerStateForSlot" , e ) ; } }

Target:
public void setSimPowerStateForSlot ( int slotIndex , boolean powerUp ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.setSimPowerStateForSlot ( slotIndex , powerUp ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setSimPowerStateForSlot" , e ) ; } catch ( java.lang.SecurityException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Permission error calling ITelephony#setSimPowerStateForSlot" , e ) ; } }
Source:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ! ( o instanceof android.opengl.EGLSurface ) ) return false ; android.opengl.EGLSurface that = ( ( android.opengl.EGLSurface ) ( o ) ) ; return ( getHandle ( ) ) == ( that.getHandle ( ) ) ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ! ( o instanceof android.opengl.EGLSurface ) ) return false ; android.opengl.EGLSurface that = ( ( android.opengl.EGLSurface ) ( o ) ) ; return ( getNativeHandle ( ) ) == ( that.getNativeHandle ( ) ) ; }
Source:
public void dispose ( ) { synchronized ( mLock ) { if ( com.android.internal.telephony.uicc.UiccCard.DBG ) log ( "Disposing card" ) ; if ( ( mCatService ) != null ) mCatService.dispose ( ) ; for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( app != null ) { app.dispose ( ) ; } } mCatService = null ; mUiccApplications = null ; } }

Target:
public void dispose ( ) { synchronized ( mLock ) { if ( com.android.internal.telephony.uicc.UiccCard.DBG ) log ( "Disposing card" ) ; if ( ( mCatService ) != null ) mCatService.dispose ( ) ; for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( app != null ) { app.dispose ( ) ; } } mCatService = null ; mUiccApplications = null ; mCarrierPrivilegeRules = null ; } }
Source:
synchronized void nAllocationData2D ( int id , int xoff , int yoff , int mip , int face , int w , int h , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID ) ; }
Source:
public void done ( org.eclipse.core.runtime.jobs.IJobChangeEvent event ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart graphicalEditor = getGraphicalEditor ( ) ; if ( graphicalEditor != null ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutActionBar bar = graphicalEditor.getLayoutActionBar ( ) ; if ( ! ( bar.isDisposed ( ) ) ) { bar.updateErrorIndicator ( ) ; } } }

Target:
public void run ( ) { if ( ! ( mCanvas.isDisposed ( ) ) ) { mCanvas.redraw ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage outlinePage = mCanvas.getOutlinePage ( ) ; if ( outlinePage != null ) { outlinePage.refreshIcons ( ) ; } } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mTelephonyManager = ( ( android.telephony.TelephonyManager ) ( getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mTelephonyManager = ( ( android.telephony.TelephonyManager ) ( getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; android.telephony.cts.TelephonyManagerTest.mCm = ( ( android.net.ConnectivityManager ) ( getContext ( ) . getSystemService ( Context.CONNECTIVITY_SERVICE ) ) ) ; }
Source:
public final java.security.Key unwrap ( byte [ ] wrappedKey , java.lang.String wrappedKeyAlgorithm , int wrappedKeyType ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException { if ( ( mode ) != ( javax.crypto.Cipher.UNWRAP_MODE ) ) { throw new java.lang.IllegalStateException ( ) ; } return spiImpl.engineUnwrap ( wrappedKey , wrappedKeyAlgorithm , wrappedKeyType ) ; }

Target:
public final java.security.Key unwrap ( byte [ ] wrappedKey , java.lang.String wrappedKeyAlgorithm , int wrappedKeyType ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException { if ( ( mode ) != ( javax.crypto.Cipher.UNWRAP_MODE ) ) { throw new java.lang.IllegalStateException ( ) ; } return getSpi ( ) . engineUnwrap ( wrappedKey , wrappedKeyAlgorithm , wrappedKeyType ) ; }
Source:
public void testCheckAndSetCaseInsensitive ( ) { assertEquals ( true , lq.checkAndSet ( "b+KOK" , config ) ) ; assertTrue ( ( ( config.getLocaleQualifier ( ) ) != null ) ) ; assertEquals ( "b+kok" , config.getLocaleQualifier ( ) . toString ( ) ) ; assertEquals ( "b+kok" , com.android.ide.common.resources.configuration.LocaleQualifier.getFolderSegment ( "b+KOK" ) ) ; }

Target:
public void testFailures ( ) { assertEquals ( false , lq.checkAndSet ( "" , config ) ) ; assertEquals ( false , lq.checkAndSet ( "abcd" , config ) ) ; assertEquals ( false , lq.checkAndSet ( "en-USofA" , config ) ) ; }
Source:
public java.net.Socket createSocket ( java.lang.String host , int port , java.net.InetAddress localAddr , int localPort ) throws java.io.IOException { org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl s = ( ( org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( host , port , localAddr , localPort ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; if ( mSecure ) { android.net.SSLCertificateSocketFactory.verifyHostname ( s , host ) ; } return s ; }

Target:
public java.net.Socket createSocket ( java.lang.String host , int port , java.net.InetAddress localAddr , int localPort ) throws java.io.IOException { com.android.org.conscrypt.OpenSSLSocketImpl s = ( ( com.android.org.conscrypt.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( host , port , localAddr , localPort ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; if ( mSecure ) { android.net.SSLCertificateSocketFactory.verifyHostname ( s , host ) ; } return s ; }
Source:
public void enter ( ) { log ( ( ( ( "Enter Disconnected: " + ( getCurrentMessage ( ) . what ) ) + ", size: " ) + ( mConnectedDevicesList.size ( ) ) ) ) ; mPhonebook.resetAtState ( ) ; mPhoneState.listenForPhoneState ( false ) ; mVoiceRecognitionStarted = false ; mWaitingForVoiceRecognition = false ; }

Target:
public void enter ( ) { log ( ( ( ( "Enter Disconnected: " + ( getCurrentMessage ( ) . what ) ) + ", size: " ) + ( mConnectedDevicesList.size ( ) ) ) ) ; mPhonebook.resetAtState ( ) ; mPhoneState.listenForPhoneState ( false ) ; mVoiceRecognitionStarted = false ; mWaitingForVoiceRecognition = false ; mSlcConnected = false ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( ( "BaseConfigImpl{" + "mBuildConfigFields=" ) + ( mBuildConfigFields ) ) + ", mResValues=" ) + ( mResValues ) ) + ", mProguardFiles=" ) + ( mProguardFiles ) ) + ", mConsumerProguardFiles=" ) + ( mConsumerProguardFiles ) ) + ", mManifestPlaceholders=" ) + ( mManifestPlaceholders ) ) + '}' ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( ( ( ( "BaseConfigImpl{" + "mBuildConfigFields=" ) + ( mBuildConfigFields ) ) + ", mResValues=" ) + ( mResValues ) ) + ", mProguardFiles=" ) + ( mProguardFiles ) ) + ", mConsumerProguardFiles=" ) + ( mConsumerProguardFiles ) ) + ", mManifestPlaceholders=" ) + ( mManifestPlaceholders ) ) + ", mMultiDex=" ) + ( mMultiDex ) ) + '}' ; }
Source:
public android.net.IpSecTransform buildTunnelModeTransform ( java.net.InetAddress localAddress , java.net.InetAddress remoteAddress ) { if ( localAddress == null ) { throw new java.lang.IllegalArgumentException ( "Local address may not be null or empty!" ) ; } if ( remoteAddress == null ) { throw new java.lang.IllegalArgumentException ( "Remote address may not be null or empty!" ) ; } mConfig.setLocalAddress ( localAddress.getHostAddress ( ) ) ; mConfig.setRemoteAddress ( remoteAddress.getHostAddress ( ) ) ; mConfig.setMode ( android.net.IpSecTransform.MODE_TUNNEL ) ; return new android.net.IpSecTransform ( mContext , mConfig ) ; }

Target:
public android.net.IpSecTransform buildTunnelModeTransform ( @ android.annotation.NonNull java.net.InetAddress sourceAddress , @ android.annotation.NonNull android.net.IpSecManager.SecurityParameterIndex spi ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { com.android.internal.util.Preconditions.checkNotNull ( sourceAddress ) ; com.android.internal.util.Preconditions.checkNotNull ( spi ) ; if ( ( spi.getResourceId ( ) ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { throw new java.lang.IllegalArgumentException ( "Invalid SecurityParameterIndex" ) ; } mConfig.setMode ( android.net.IpSecTransform.MODE_TUNNEL ) ; mConfig.setSourceAddress ( sourceAddress.getHostAddress ( ) ) ; mConfig.setSpiResourceId ( spi.getResourceId ( ) ) ; return new android.net.IpSecTransform ( mContext , mConfig ) ; }
Source:
public void dispose ( ) throws android.telephony.mbms.MbmsException { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { mService.disposeStream ( mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_MIDDLEWARE_LOST ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new java.lang.IllegalStateException ( "StreamingService state inconsistent with middleware" ) ; } finally { mService = null ; } }

Target:
public void stopStreaming ( ) { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { mService.stopStreaming ( mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; mService = null ; sendErrorToApp ( MbmsException.ERROR_MIDDLEWARE_LOST , null ) ; } finally { mParentSession.onStreamingServiceStopped ( this ) ; } }
Source:
public void test_readUnsignedShort ( ) throws java.io.IOException { oos.writeShort ( ( - 1 ) ) ; oos.close ( ) ; ois = new java.io.ObjectInputStream ( new java.io.ByteArrayInputStream ( bao.toByteArray ( ) ) ) ; assertEquals ( "Read incorrect unsignedShort value" , 65535 , ois.readUnsignedShort ( ) ) ; ois.close ( ) ; }

Target:
public void test_skipBytesI_IOException ( ) throws java.io.IOException { oos.writeObject ( testString ) ; oos.close ( ) ; tests.support.Support_ASimpleInputStream sis = new tests.support.Support_ASimpleInputStream ( bao.toByteArray ( ) ) ; ois = new java.io.ObjectInputStream ( sis ) ; sis.throwExceptionOnNextUse = true ; try { ois.skipBytes ( 5 ) ; fail ( "Test 1: IOException expected." ) ; } catch ( java.io.IOException e ) { } sis.throwExceptionOnNextUse = false ; ois.close ( ) ; }
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 testAesCbcHmacSha384Tcp4UdpEncap ( ) 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_SHA384 , android.net.cts.IpSecManagerTest.getKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }
Source:
final void decrementAssociatedCallCount ( ) { if ( ( mAssociatedCallCount ) > 0 ) { ( mAssociatedCallCount ) -- ; android.telecom.Log.v ( this , "Call count decrement %d, %s" , mAssociatedCallCount , mComponentName.flattenToShortString ( ) ) ; if ( ( mAssociatedCallCount ) == 0 ) { unbind ( ) ; } } else { android.telecom.Log.wtf ( this , "%s: ignoring a request to decrement mAssociatedCallCount below zero" , mComponentName.getClassName ( ) ) ; } }

Target:
final void decrementAssociatedCallCount ( boolean isSuppressingUnbind ) { if ( ( mAssociatedCallCount ) > 0 ) { ( mAssociatedCallCount ) -- ; android.telecom.Log.v ( this , "Call count decrement %d, %s" , mAssociatedCallCount , mComponentName.flattenToShortString ( ) ) ; if ( ( ! isSuppressingUnbind ) && ( ( mAssociatedCallCount ) == 0 ) ) { unbind ( ) ; } } else { android.telecom.Log.wtf ( this , "%s: ignoring a request to decrement mAssociatedCallCount below zero" , mComponentName.getClassName ( ) ) ; } }
Source:
public void onPause ( ) { getDuo ( ) . unregisterListener ( this ) ; pauseCache ( ) ; for ( android.net.Uri uri : hiddenItemUris ) { com.android.dialer.app.calllog.CallLogAsyncTaskUtil.deleteVoicemail ( activity , uri , null ) ; } }

Target:
public void onPause ( ) { if ( ! ( contactsProviderMatchInfos.isEmpty ( ) ) ) { com.android.dialer.logging.Logger.get ( activity ) . logContactsProviderMetrics ( contactsProviderMatchInfos.values ( ) ) ; } getDuo ( ) . unregisterListener ( this ) ; pauseCache ( ) ; for ( android.net.Uri uri : hiddenItemUris ) { com.android.dialer.app.calllog.CallLogAsyncTaskUtil.deleteVoicemail ( activity , uri , null ) ; } }
Source:
private int findRopRegForLocal ( int startReg , int width ) { int reg ; reg = usedRopRegs.nextClearBit ( startReg ) ; while ( true ) { int i = 1 ; while ( ( i < width ) && ( ! ( usedRopRegs.get ( ( reg + i ) ) ) ) ) { i ++ ; } if ( i == width ) { return reg ; } reg = usedRopRegs.nextClearBit ( ( reg + i ) ) ; } }

Target:
private int findRopRegForLocal ( int startReg , int category ) { com.android.dx.ssa.back.FirstFitLocalCombiningAllocator.Alignment alignment = getAlignment ( category ) ; int reg = alignment.nextClearBit ( usedRopRegs , startReg ) ; while ( true ) { int i = 1 ; while ( ( i < category ) && ( ! ( usedRopRegs.get ( ( reg + i ) ) ) ) ) { i ++ ; } if ( i == category ) { return reg ; } reg = alignment.nextClearBit ( usedRopRegs , ( reg + i ) ) ; } }
Source:
private void exitVideoMode ( ) { com.android.dialer.common.LogUtil.i ( "VideoCallPresenter.exitVideoMode" , "" ) ; showVideoUi ( VideoProfile.STATE_AUDIO_ONLY , DialerCall.State.ACTIVE , SessionModificationState.NO_REQUEST , false ) ; enableCamera ( primaryCall , false ) ; com.android.incallui.InCallPresenter.getInstance ( ) . setFullScreen ( false ) ; com.android.incallui.InCallPresenter.getInstance ( ) . enableScreenTimeout ( false ) ; com.android.incallui.VideoCallPresenter.isVideoMode = false ; }

Target:
private void exitVideoMode ( ) { com.android.dialer.common.LogUtil.i ( "VideoCallPresenter.exitVideoMode" , "" ) ; showVideoUi ( VideoProfile.STATE_AUDIO_ONLY , DialerCallState.ACTIVE , SessionModificationState.NO_REQUEST , false ) ; enableCamera ( primaryCall , false ) ; com.android.incallui.InCallPresenter.getInstance ( ) . setFullScreen ( false ) ; com.android.incallui.InCallPresenter.getInstance ( ) . enableScreenTimeout ( false ) ; com.android.incallui.VideoCallPresenter.isVideoMode = false ; }
Source:
public int getApplicationEnabledSetting ( java.lang.String packageName , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED ; int uid = android.os.Binder.getCallingUid ( ) ; checkValidCaller ( uid , userId ) ; synchronized ( mPackages ) { return mSettings.getApplicationEnabledSettingLPr ( packageName , userId ) ; } }

Target:
public int getComponentEnabledSetting ( android.content.ComponentName componentName , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED ; int uid = android.os.Binder.getCallingUid ( ) ; enforceCrossUserPermission ( uid , userId , false , "get component enabled" ) ; synchronized ( mPackages ) { return mSettings.getComponentEnabledSettingLPr ( componentName , userId ) ; } }
Source:
public void finish ( ) { if ( ( ! ( mHaveConditional ) ) && ( ( mNodes ) != null ) ) { for ( lombok.ast.Node node : mNodes ) { java.lang.String message = "Unconditional layout inflation from view adapter: " + ( ( "Should use View Holder pattern (use recycled view passed " + "into this method as the second parameter) for smoother " ) + "scrolling" ) ; mContext.report ( com.android.tools.lint.checks.ViewHolderDetector.ISSUE , node , mContext.getLocation ( node ) , message ) ; } } }

Target:
public void finish ( ) { if ( ( ! ( mHaveConditional ) ) && ( ( mNodes ) != null ) ) { for ( com.intellij.psi.PsiElement node : mNodes ) { java.lang.String message = "Unconditional layout inflation from view adapter: " + ( ( "Should use View Holder pattern (use recycled view passed " + "into this method as the second parameter) for smoother " ) + "scrolling" ) ; mContext.report ( com.android.tools.lint.checks.ViewHolderDetector.ISSUE , node , mContext.getLocation ( node ) , message ) ; } } }
Source:
private void addCacheHeaders ( java.util.Map < java.lang.String , java.lang.String > headers , com.android.volley.Cache.Entry entry ) { if ( entry == null ) { return ; } if ( ( entry.etag ) != null ) { headers.put ( "If-None-Match" , entry.etag ) ; } if ( ( entry.serverDate ) > 0 ) { java.util.Date refTime = new java.util.Date ( entry.serverDate ) ; headers.put ( "If-Modified-Since" , org.apache.http.impl.cookie.DateUtils.formatDate ( refTime ) ) ; } }

Target:
private void addCacheHeaders ( java.util.Map < java.lang.String , java.lang.String > headers , com.android.volley.Cache.Entry entry ) { if ( entry == null ) { return ; } if ( ( entry.etag ) != null ) { headers.put ( "If-None-Match" , entry.etag ) ; } if ( ( entry.lastModified ) > 0 ) { java.util.Date refTime = new java.util.Date ( entry.lastModified ) ; headers.put ( "If-Modified-Since" , org.apache.http.impl.cookie.DateUtils.formatDate ( refTime ) ) ; } }
Source:
public java.util.SortedSet < R > subSet ( R fromElement , R toElement ) { com.google.common.base.Preconditions.checkNotNull ( fromElement ) ; com.google.common.base.Preconditions.checkNotNull ( toElement ) ; return new com.google.common.collect.StandardRowSortedTable < R , C , V > ( sortedBackingMap ( ) . subMap ( fromElement , toElement ) , factory ) . rowKeySet ( ) ; }

Target:
public java.util.SortedMap < R , java.util.Map < C , V > > rowMap ( ) { return ( ( java.util.SortedMap < R , java.util.Map < C , V > > ) ( super . rowMap ( ) ) ) ; }
Source:
private void setNotification ( android.bluetooth.BluetoothGattCharacteristic characteristic , boolean enable ) { if ( characteristic != null ) { mBluetoothGatt.setCharacteristicNotification ( characteristic , enable ) ; android.bluetooth.BluetoothGattDescriptor descriptor = characteristic.getDescriptor ( com.android.cts.verifier.bluetooth.BleClientService.UPDATE_DESCRIPTOR_UUID ) ; if ( enable ) { if ( characteristic.getUuid ( ) . equals ( com.android.cts.verifier.bluetooth.BleClientService.INDICATE_CHARACTERISTIC_UUID ) ) { descriptor.setValue ( BluetoothGattDescriptor.ENABLE_INDICATION_VALUE ) ; } else { descriptor.setValue ( BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE ) ; } } else { descriptor.setValue ( BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE ) ; } mBluetoothGatt.writeDescriptor ( descriptor ) ; } }

Target:
private void writeDescriptor ( java.lang.String writeValue ) { android.bluetooth.BluetoothGattDescriptor descriptor = getDescriptor ( ) ; if ( descriptor == null ) return ; descriptor.setValue ( writeValue.getBytes ( ) ) ; mBluetoothGatt.writeDescriptor ( descriptor ) ; }
Source:
private int getClientId ( final int globalId ) { int idx = mClientIds.indexOfValue ( globalId ) ; if ( idx < 0 ) { return idx ; } return mClientIds.keyAt ( idx ) ; }

Target:
private int getClientId ( final int globalId ) { for ( int i = 0 , nSize = mClientIds.size ( ) ; i < nSize ; i ++ ) { int mDnsId = mClientIds.valueAt ( i ) ; if ( globalId == mDnsId ) { return mClientIds.keyAt ( i ) ; } } return - 1 ; }
Source:
public boolean disables ( java.security.Key key ) { int size = sun.security.util.KeyUtil.getKeySize ( key ) ; if ( size == 0 ) { return true ; } else if ( size > 0 ) { return ( ( size < ( minSize ) ) || ( size > ( maxSize ) ) ) || ( ( prohibitedSize ) == size ) ; } return false ; }

Target:
private boolean permitsImpl ( java.security.Key key ) { if ( ( algorithm.compareToIgnoreCase ( key.getAlgorithm ( ) ) ) != 0 ) { return true ; } int size = sun.security.util.KeyUtil.getKeySize ( key ) ; if ( size == 0 ) { return false ; } else if ( size > 0 ) { return ! ( ( ( size < ( minSize ) ) || ( size > ( maxSize ) ) ) || ( ( prohibitedSize ) == size ) ) ; } return true ; }
Source:
static com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences defaults ( ) { return new com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences ( ) ; }

Target:
public int compare ( org.w3c.dom.Attr attr1 , org.w3c.dom.Attr attr2 ) { org.eclipse.wst.sse.core.internal.provisional.IndexedRegion region1 = ( ( org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) ( attr1 ) ) ; org.eclipse.wst.sse.core.internal.provisional.IndexedRegion region2 = ( ( org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) ( attr2 ) ) ; return ( region1.getStartOffset ( ) ) - ( region2.getStartOffset ( ) ) ; }
Source:
public java.lang.String getType ( android.net.Uri uri ) { int match = com.android.bluetooth.opp.BluetoothOppProvider.sURIMatcher.match ( uri ) ; switch ( match ) { case com.android.bluetooth.opp.BluetoothOppProvider.SHARES : { return com.android.bluetooth.opp.BluetoothOppProvider.SHARE_LIST_TYPE ; } case com.android.bluetooth.opp.BluetoothOppProvider.SHARES_ID : { return com.android.bluetooth.opp.BluetoothOppProvider.SHARE_TYPE ; } default : { if ( com.android.bluetooth.opp.BluetoothOppProvider.D ) { android.util.Log.d ( com.android.bluetooth.opp.BluetoothOppProvider.TAG , ( "calling getType on an unknown URI: " + uri ) ) ; } throw new java.lang.IllegalArgumentException ( ( "Unknown URI: " + uri ) ) ; } } }

Target:
public java.lang.String getType ( android.net.Uri uri ) { int match = com.android.bluetooth.opp.BluetoothOppProvider.sURIMatcher.match ( uri ) ; switch ( match ) { case com.android.bluetooth.opp.BluetoothOppProvider.SHARES : return com.android.bluetooth.opp.BluetoothOppProvider.SHARE_LIST_TYPE ; case com.android.bluetooth.opp.BluetoothOppProvider.SHARES_ID : return com.android.bluetooth.opp.BluetoothOppProvider.SHARE_TYPE ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown URI in getType(): " + uri ) ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JEnumLiteral literal ) { com.android.jack.dx.rop.cst.CstNat nat = com.android.jack.backend.dex.rop.RopHelper.createSignature ( literal.getFieldId ( ) ) ; result = new com.android.jack.dx.rop.cst.CstEnumRef ( nat ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JEnumLiteral literal ) { com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( literal.getFieldId ( ) . getName ( ) ) ; com.android.jack.dx.rop.cst.CstNat nat = com.android.jack.backend.dex.rop.RopHelper.createSignature ( literal.getFieldId ( ) ) ; result = new com.android.jack.dx.rop.cst.CstEnumRef ( name , nat ) ; return false ; }
Source:
private void dumpPosition ( java.lang.StringBuilder stringBuilder , com.android.utils.PositionXmlParser.Position position ) { stringBuilder.append ( "(" ) . append ( position.getLine ( ) ) . append ( "," ) . append ( position.getColumn ( ) ) . append ( ") " ) . append ( mOwnerElement.getDocument ( ) . getSourceLocation ( ) . print ( true ) ) . append ( ":" ) . append ( position.getLine ( ) ) ; }

Target:
public XmlLoader.SourceLocation getSourceLocation ( ) { return getOwnerElement ( ) . getSourceLocation ( ) ; }
Source:
public void test_isReachable_neverThrows ( ) throws java.lang.Exception { java.net.InetAddress inetAddress = java.net.InetAddress.getByName ( "www.google.com" ) ; final java.net.NetworkInterface netIf = java.net.NetworkInterface.getByName ( "dummy0" ) ; if ( netIf == null ) { java.lang.System.logI ( "Skipping test_isReachable_neverThrows because dummy0 isn't available" ) ; return ; } assertFalse ( inetAddress.isReachable ( netIf , 256 , 500 ) ) ; }

Target:
public void test_isReachable_neverThrows ( ) throws java.lang.Exception { java.net.InetAddress inetAddress = java.net.InetAddress.getByName ( "www.google.com" ) ; final java.net.NetworkInterface netIf = java.net.NetworkInterface.getByName ( "dummy0" ) ; if ( netIf == null ) { java.lang.System.logI ( "Skipping test_isReachable_neverThrows because dummy0 isn't available" ) ; return ; } org.junit.Assert.assertFalse ( inetAddress.isReachable ( netIf , 256 , 500 ) ) ; }
Source:
public com.android.jack.ir.ast.JNameValuePair exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.ExportSession exportSession , @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationType receiver ) throws com.android.jack.ir.ast.JTypeLookupException , com.android.jack.lookup.JMethodLookupException { assert ( sourceInfo ) != null ; assert ( value ) != null ; assert ( name ) != null ; com.android.jack.ir.ast.JLiteral jValue = value.exportAsJast ( exportSession ) ; com.android.jack.ir.sourceinfo.SourceInfo jSourceInfo = sourceInfo.exportAsJast ( exportSession ) ; com.android.jack.ir.ast.JMethodIdWide methodId = receiver.getOrCreateMethodIdWide ( name , java.util.Collections.< com.android.jack.ir.ast.JType > emptyList ( ) , MethodKind.INSTANCE_VIRTUAL ) ; com.android.jack.ir.ast.JNameValuePair jNameValuePair = new com.android.jack.ir.ast.JNameValuePair ( jSourceInfo , methodId , jValue ) ; return jNameValuePair ; }

Target:
public com.android.jack.ir.ast.JNameValuePair exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.ExportSession exportSession ) throws com.android.jack.ir.ast.JTypeLookupException , com.android.jack.lookup.JMethodLookupException { assert ( sourceInfo ) != null ; assert ( value ) != null ; assert ( name ) != null ; com.android.jack.ir.ast.JLiteral jValue = value.exportAsJast ( exportSession ) ; com.android.jack.ir.sourceinfo.SourceInfo jSourceInfo = sourceInfo.exportAsJast ( exportSession ) ; com.android.jack.ir.ast.JMethodIdWide methodId = new com.android.jack.ir.ast.JMethodIdWide ( name , com.android.jack.ir.ast.MethodKind.INSTANCE_VIRTUAL ) ; com.android.jack.ir.ast.JNameValuePair jNameValuePair = new com.android.jack.ir.ast.JNameValuePair ( jSourceInfo , methodId , jValue ) ; return jNameValuePair ; }
Source:
public void listen ( android.telephony.PhoneStateListener listener , int events ) { if ( ( mContext ) == null ) return ; try { java.lang.Boolean notifyNow = ( getITelephony ( ) ) != null ; android.telephony.TelephonyManager.sRegistry.listenForSubscriber ( listener.mSubId , getOpPackageName ( ) , listener.callback , events , notifyNow ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } }

Target:
public void listen ( android.telephony.PhoneStateListener listener , int events ) { if ( ( mContext ) == null ) return ; try { java.lang.Boolean notifyNow = ( getITelephony ( ) ) != null ; if ( ( listener.mSubId ) == null ) { listener.mSubId = mSubId ; } android.telephony.TelephonyManager.sRegistry.listenForSubscriber ( listener.mSubId , getOpPackageName ( ) , listener.callback , events , notifyNow ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } }
Source:
private android.content.Intent waitForNoIntent ( int timeoutMs , java.util.concurrent.BlockingQueue < android.content.Intent > queue ) { try { android.content.Intent intent = queue.poll ( timeoutMs , java.util.concurrent.TimeUnit.MILLISECONDS ) ; org.junit.Assert.assertNull ( intent ) ; return intent ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( ( "Cannot obtain an Intent from the queue: " + ( e.getMessage ( ) ) ) ) ; } return null ; }

Target:
private android.content.Intent waitForNoIntent ( int timeoutMs , java.util.concurrent.LinkedBlockingQueue < android.content.Intent > queue ) { try { org.junit.Assert.assertNotNull ( queue ) ; android.content.Intent intent = queue.poll ( timeoutMs , java.util.concurrent.TimeUnit.MILLISECONDS ) ; org.junit.Assert.assertNull ( intent ) ; return intent ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( ( "Cannot obtain an Intent from the queue: " + ( e.getMessage ( ) ) ) ) ; } return null ; }
Source:
public com.android.sched.vfs.OutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { com.android.sched.util.RunnableHooks hooks = context.getRunnableHooks ( ) ; try { com.android.sched.vfs.WriteZipFS vfs = new com.android.sched.vfs.WriteZipFS ( new com.android.sched.util.file.OutputZipFile ( context.getWorkingDirectory ( ) , string , hooks , existence , change ) ) ; return new com.android.sched.vfs.GenericOutputVFS ( vfs ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }

Target:
public com.android.sched.vfs.OutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { com.android.sched.util.RunnableHooks hooks = context.getRunnableHooks ( ) ; try { com.android.sched.vfs.WriteZipFS vfs = new com.android.sched.vfs.WriteZipFS ( new com.android.sched.util.file.OutputZipFile ( context.getWorkingDirectory ( ) , string , hooks , existence , change , com.android.sched.util.file.OutputZipFile.Compression.COMPRESSED ) ) ; return new com.android.sched.vfs.GenericOutputVFS ( vfs ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }
Source:
private void rewriteCallIntentAction ( android.content.Intent intent , boolean isPotentialEmergencyNumber ) { java.lang.String action = intent.getAction ( ) ; if ( Intent.ACTION_CALL_PRIVILEGED.equals ( action ) ) { if ( isPotentialEmergencyNumber ) { com.android.server.telecom.Log.i ( this , ( "ACTION_CALL_PRIVILEGED is used while the number is a potential" + " emergency number. Using ACTION_CALL_EMERGENCY as an action instead." ) ) ; action = android.content.Intent.ACTION_CALL_EMERGENCY ; } else { action = android.content.Intent.ACTION_CALL ; } com.android.server.telecom.Log.v ( this , " - updating action from CALL_PRIVILEGED to %s" , action ) ; intent.setAction ( action ) ; } }

Target:
private void rewriteCallIntentAction ( android.content.Intent intent , boolean isPotentialEmergencyNumber ) { java.lang.String action = intent.getAction ( ) ; if ( Intent.ACTION_CALL_PRIVILEGED.equals ( action ) ) { if ( isPotentialEmergencyNumber ) { android.telecom.Log.i ( this , ( "ACTION_CALL_PRIVILEGED is used while the number is a potential" + " emergency number. Using ACTION_CALL_EMERGENCY as an action instead." ) ) ; action = android.content.Intent.ACTION_CALL_EMERGENCY ; } else { action = android.content.Intent.ACTION_CALL ; } android.telecom.Log.v ( this , " - updating action from CALL_PRIVILEGED to %s" , action ) ; intent.setAction ( action ) ; } }
Source:
public boolean isImsRegistered ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) return false ; return telephony.isImsRegistered ( ) ; } catch ( android.os.RemoteException ex ) { return false ; } catch ( java.lang.NullPointerException ex ) { return false ; } }

Target:
public void sendDialerSpecialCode ( java.lang.String inputCode ) { try { final com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; telephony.sendDialerSpecialCode ( mContext.getOpPackageName ( ) , inputCode ) ; } catch ( android.os.RemoteException ex ) { ex.rethrowFromSystemServer ( ) ; } catch ( java.lang.NullPointerException ex ) { throw new java.lang.IllegalStateException ( "Telephony service unavailable" ) ; } }
Source:
void putExtra ( java.lang.String callId , java.lang.String key , int value ) { android.telecom.Log.v ( this , "putExtra: %s %s=%d" , callId , key , value ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putInt ( key , value ) ; adapter.putExtras ( callId , bundle ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void putExtra ( java.lang.String callId , java.lang.String key , int value ) { android.telecom.Log.v ( this , "putExtra: %s %s=%d" , callId , key , value ) ; for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putInt ( key , value ) ; adapter.putExtras ( callId , bundle , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }