auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setSimPowerStateForSlot ( int slotIndex , int state ) { enforceModifyPermission ( ) ; int [ ] subId = mSubscriptionController.getSubIdUsingSlotIndex ( slotIndex ) ; if ( ( subId == null ) || ( ( subId.length ) == 0 ) ) { return ; } final com.android.internal.telephony.Phone phone = getPhone ( subId [ 0 ] ) ; if ( phone != null ) { phone.setSimPowerState ( state ) ; } }

Target:
public void setSimPowerStateForSlot ( int slotIndex , boolean powerUp ) { enforceModifyPermission ( ) ; com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( slotIndex ) ; if ( phone != null ) { phone.setSimPowerState ( powerUp ) ; } }
Source:
private void maybeShowNotSpamDialog ( final java.lang.String number , final com.android.dialer.logging.ContactLookupResult.Type contactLookupResultType ) { if ( com.android.dialer.spam.SpamComponent.get ( this ) . spam ( ) . isDialogEnabledForSpamNotification ( ) ) { com.android.dialer.blockreportspam.BlockReportSpamDialogs.DialogFragmentForReportingNotSpam.newInstance ( com.android.incallui.spam.SpamNotificationActivity.getFormattedNumber ( number , this ) , new com.android.dialer.blockreportspam.BlockReportSpamDialogs.OnConfirmListener ( ) { @ java.lang.Override public void onClick ( ) { reportNotSpamAndFinish ( number , contactLookupResultType ) ; } } , dismissListener ) . show ( getFragmentManager ( ) , BlockReportSpamDialogs.NOT_SPAM_DIALOG_TAG ) ; } else { reportNotSpamAndFinish ( number , contactLookupResultType ) ; } }

Target:
private void maybeShowNotSpamDialog ( final java.lang.String number , final com.android.dialer.logging.ContactLookupResult.Type contactLookupResultType ) { if ( com.android.dialer.spam.SpamComponent.get ( this ) . spamSettings ( ) . isDialogEnabledForSpamNotification ( ) ) { com.android.dialer.blockreportspam.BlockReportSpamDialogs.DialogFragmentForReportingNotSpam.newInstance ( com.android.incallui.spam.SpamNotificationActivity.getFormattedNumber ( number , this ) , new com.android.dialer.blockreportspam.BlockReportSpamDialogs.OnConfirmListener ( ) { @ java.lang.Override public void onClick ( ) { reportNotSpamAndFinish ( number , contactLookupResultType ) ; } } , dismissListener ) . show ( getFragmentManager ( ) , BlockReportSpamDialogs.NOT_SPAM_DIALOG_TAG ) ; } else { reportNotSpamAndFinish ( number , contactLookupResultType ) ; } }
Source:
private void addActiveLog ( int reason , java.lang.String packageName , boolean enable ) { synchronized ( mActiveLogs ) { if ( ( mActiveLogs.size ( ) ) > ( com.android.server.BluetoothManagerService.ACTIVE_LOG_MAX_SIZE ) ) { mActiveLogs.remove ( ) ; } mActiveLogs.add ( new com.android.server.BluetoothManagerService.ActiveLog ( reason , packageName , enable , java.lang.System.currentTimeMillis ( ) ) ) ; } }

Target:
private void addActiveLog ( int reason , java.lang.String packageName , boolean enable ) { synchronized ( mActiveLogs ) { if ( ( mActiveLogs.size ( ) ) > ( com.android.server.BluetoothManagerService.ACTIVE_LOG_MAX_SIZE ) ) { mActiveLogs.remove ( ) ; } mActiveLogs.add ( new com.android.server.BluetoothManagerService.ActiveLog ( reason , packageName , enable , java.lang.System.currentTimeMillis ( ) ) ) ; } int state = ( enable ) ? android.util.StatsLog.BLUETOOTH_ENABLED_STATE_CHANGED__STATE__ENABLED : android.util.StatsLog.BLUETOOTH_ENABLED_STATE_CHANGED__STATE__DISABLED ; android.util.StatsLog.write_non_chained ( StatsLog.BLUETOOTH_ENABLED_STATE_CHANGED , android.os.Binder.getCallingUid ( ) , null , state , reason , packageName ) ; }
Source:
private com.android.resources.ResourceType getType ( java.lang.String qName , org.xml.sax.Attributes attributes ) { java.lang.String typeValue ; if ( com.android.ide.common.resources.ValueResourceParser.NODE_ITEM.equals ( qName ) ) { typeValue = attributes.getValue ( com.android.ide.common.resources.ValueResourceParser.ATTR_TYPE ) ; } else { typeValue = qName ; } com.android.resources.ResourceType type = com.android.resources.ResourceType.getEnum ( typeValue ) ; return type ; }

Target:
private static com.android.resources.ResourceType getType ( java.lang.String qName , org.xml.sax.Attributes attributes ) { java.lang.String typeValue ; if ( com.android.SdkConstants.TAG_ITEM.equals ( qName ) ) { typeValue = attributes.getValue ( com.android.SdkConstants.ATTR_TYPE ) ; } else { typeValue = qName ; } return com.android.resources.ResourceType.getEnum ( typeValue ) ; }
Source:
public void sendSms ( int messageRef , java.lang.String format , java.lang.String smsc , boolean isRetry , byte [ ] pdu ) { try { onSendSmsResult ( messageRef , android.telephony.ims.internal.SmsImplBase.SEND_STATUS_ERROR , SmsManager.RESULT_ERROR_GENERIC_FAILURE ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.SmsImplBase.LOG_TAG , ( "Can not send sms: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
public void sendSms ( int token , int messageRef , java.lang.String format , java.lang.String smsc , boolean isRetry , byte [ ] pdu ) { try { onSendSmsResult ( token , messageRef , android.telephony.ims.internal.SmsImplBase.SEND_STATUS_ERROR , SmsManager.RESULT_ERROR_GENERIC_FAILURE ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.SmsImplBase.LOG_TAG , ( "Can not send sms: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
private void updateChannelsGuidedAction ( boolean notifyActionChanged ) { if ( ( mChannelOption ) == ( com.android.tv.dvr.SeriesRecording.OPTION_CHANNEL_ALL ) ) { mChannelsGuidedAction.setDescription ( mChannelsActionAllText ) ; } else { mChannelsGuidedAction.setDescription ( mId2Channel.get ( mSelectedChannelId ) . getDisplayText ( ) ) ; } if ( notifyActionChanged ) { notifyActionChanged ( findActionPositionById ( com.android.tv.dvr.ui.SeriesSettingsFragment.ACTION_ID_CHANNEL ) ) ; } }

Target:
private void updateChannelsGuidedAction ( boolean notifyActionChanged ) { if ( ( mChannelOption ) == ( com.android.tv.dvr.data.SeriesRecording.OPTION_CHANNEL_ALL ) ) { mChannelsGuidedAction.setDescription ( mChannelsActionAllText ) ; } else if ( ( mId2Channel.get ( mSelectedChannelId ) ) != null ) { mChannelsGuidedAction.setDescription ( mId2Channel.get ( mSelectedChannelId ) . getDisplayText ( ) ) ; } if ( notifyActionChanged ) { notifyActionChanged ( findActionPositionById ( com.android.tv.dvr.ui.DvrSeriesSettingsFragment.ACTION_ID_CHANNEL ) ) ; } }
Source:
public java.io.OutputStream openWrite ( ) throws java.io.IOException { return new java.security.DigestOutputStream ( file.openWrite ( ) , this . mdFactory.create ( ) ) { @ java.lang.Override public void close ( ) throws java.io.IOException { super . close ( ) ; com.android.sched.vfs.MessageDigestInputOutputVFS.MessageDigestOutputVFile.this . digest = getMessageDigest ( ) . digest ( ) ; } } ; }

Target:
public java.io.OutputStream openWrite ( ) throws java.io.IOException { assert ! ( closed ) ; return new java.security.DigestOutputStream ( file.openWrite ( ) , this . mdFactory.create ( ) ) { @ java.lang.Override public void close ( ) throws java.io.IOException { super . close ( ) ; com.android.sched.vfs.MessageDigestInputOutputVFS.MessageDigestOutputVFile.this . digest = getMessageDigest ( ) . digest ( ) ; } } ; }
Source:
protected void setUp ( ) { initialThreadGroup = java.lang.Thread.currentThread ( ) . getThreadGroup ( ) ; java.lang.ThreadGroup rootThreadGroup = initialThreadGroup ; while ( ( rootThreadGroup.getParent ( ) ) != null ) { rootThreadGroup = rootThreadGroup.getParent ( ) ; } }

Target:
protected void setUp ( ) { myThreads = new java.util.ArrayList < > ( ) ; initialThreadGroup = java.lang.Thread.currentThread ( ) . getThreadGroup ( ) ; java.lang.ThreadGroup rootThreadGroup = initialThreadGroup ; while ( ( rootThreadGroup.getParent ( ) ) != null ) { rootThreadGroup = rootThreadGroup.getParent ( ) ; } }
Source:
protected boolean isMarked ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode node ) { if ( ( node instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) && ( ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( node ) ) . isExternal ( ) ) ) { return true ; } else if ( ( node instanceof com.android.jack.ir.ast.JMethod ) && ( ( ( com.android.jack.ir.ast.JMethod ) ( node ) ) . getEnclosingType ( ) . isExternal ( ) ) ) { return true ; } else { return super . isMarked ( node ) ; } }

Target:
protected boolean isMarked ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode node ) { if ( ( node instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) && ( ! ( ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( node ) ) . isToEmit ( ) ) ) ) { return true ; } else if ( ( node instanceof com.android.jack.ir.ast.JMethod ) && ( ! ( ( ( com.android.jack.ir.ast.JMethod ) ( node ) ) . getEnclosingType ( ) . isToEmit ( ) ) ) ) { return true ; } else { return super . isMarked ( node ) ; } }
Source:
protected org.bouncycastle.crypto.Digest createHMACDigest ( int macAlgorithm ) throws java.io.IOException { switch ( macAlgorithm ) { case MACAlgorithm._null : return null ; case MACAlgorithm.hmac_md5 : return new org.bouncycastle.crypto.digests.MD5Digest ( ) ; case MACAlgorithm.hmac_sha1 : return new org.bouncycastle.crypto.digests.SHA1Digest ( ) ; case MACAlgorithm.hmac_sha256 : return new org.bouncycastle.crypto.digests.SHA256Digest ( ) ; case MACAlgorithm.hmac_sha384 : return new org.bouncycastle.crypto.digests.SHA384Digest ( ) ; case MACAlgorithm.hmac_sha512 : return new org.bouncycastle.crypto.digests.SHA512Digest ( ) ; default : throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.internal_error ) ; } }

Target:
protected org.bouncycastle.crypto.Digest createHMACDigest ( int macAlgorithm ) throws java.io.IOException { switch ( macAlgorithm ) { case MACAlgorithm._null : return null ; case MACAlgorithm.hmac_md5 : return org.bouncycastle.crypto.tls.TlsUtils.createHash ( HashAlgorithm.md5 ) ; case MACAlgorithm.hmac_sha1 : return org.bouncycastle.crypto.tls.TlsUtils.createHash ( HashAlgorithm.sha1 ) ; case MACAlgorithm.hmac_sha256 : return org.bouncycastle.crypto.tls.TlsUtils.createHash ( HashAlgorithm.sha256 ) ; case MACAlgorithm.hmac_sha384 : return org.bouncycastle.crypto.tls.TlsUtils.createHash ( HashAlgorithm.sha384 ) ; case MACAlgorithm.hmac_sha512 : return org.bouncycastle.crypto.tls.TlsUtils.createHash ( HashAlgorithm.sha512 ) ; default : throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.internal_error ) ; } }
Source:
public void testAdjustVolumeInTotalSilenceMode ( ) throws java.lang.Exception { if ( ( mUseFixedVolume ) || ( mIsTelevision ) ) { return ; } try { android.media.cts.Utils.toggleNotificationPolicyAccess ( mContext.getPackageName ( ) , getInstrumentation ( ) , true ) ; mAudioManager.setStreamVolume ( AudioManager.STREAM_MUSIC , 1 , 0 ) ; setInterruptionFilter ( NotificationManager.INTERRUPTION_FILTER_NONE ) ; int musicVolume = mAudioManager.getStreamVolume ( AudioManager.STREAM_MUSIC ) ; mAudioManager.adjustStreamVolume ( AudioManager.STREAM_MUSIC , AudioManager.ADJUST_RAISE , 0 ) ; assertEquals ( musicVolume , mAudioManager.getStreamVolume ( AudioManager.STREAM_MUSIC ) ) ; } finally { setInterruptionFilter ( NotificationManager.INTERRUPTION_FILTER_ALL ) ; } }

Target:
public void testAdjustVolumeInTotalSilenceMode ( ) throws java.lang.Exception { if ( mSkipRingerTests ) { return ; } try { android.media.cts.Utils.toggleNotificationPolicyAccess ( mContext.getPackageName ( ) , getInstrumentation ( ) , true ) ; mAudioManager.setStreamVolume ( AudioManager.STREAM_MUSIC , 1 , 0 ) ; setInterruptionFilter ( NotificationManager.INTERRUPTION_FILTER_NONE ) ; int musicVolume = mAudioManager.getStreamVolume ( AudioManager.STREAM_MUSIC ) ; mAudioManager.adjustStreamVolume ( AudioManager.STREAM_MUSIC , AudioManager.ADJUST_RAISE , 0 ) ; assertEquals ( musicVolume , mAudioManager.getStreamVolume ( AudioManager.STREAM_MUSIC ) ) ; } finally { setInterruptionFilter ( NotificationManager.INTERRUPTION_FILTER_ALL ) ; } }
Source:
final void put ( long [ ] src , int srcOffset , int longCount ) { checkNotFreed ( ) ; int byteCount = checkPutBounds ( SizeOf.LONG , src.length , srcOffset , longCount ) ; this . block.pokeLongArray ( ( ( offset ) + ( position ) ) , src , srcOffset , longCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void put ( long [ ] src , int srcOffset , int longCount ) { checkIsAccessible ( ) ; int byteCount = checkPutBounds ( SizeOf.LONG , src.length , srcOffset , longCount ) ; this . block.pokeLongArray ( ( ( offset ) + ( position ) ) , src , srcOffset , longCount , order.needsSwap ) ; position += byteCount ; }
Source:
public boolean zoomOut ( ) { switchOutDrawHistory ( ) ; return zoomWithPreview ( ( ( mActualScale ) * 0.8F ) ) ; }

Target:
public boolean zoomOut ( ) { switchOutDrawHistory ( ) ; mZoomCenterX = ( getViewWidth ( ) ) * 0.5F ; mZoomCenterY = ( getViewHeight ( ) ) * 0.5F ; mAnchorX = viewToContentX ( ( ( ( int ) ( mZoomCenterX ) ) + ( mScrollX ) ) ) ; mAnchorY = viewToContentY ( ( ( ( int ) ( mZoomCenterY ) ) + ( mScrollY ) ) ) ; return zoomWithPreview ( ( ( mActualScale ) * 0.8F ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( "arttest" ) ; JniTest.testFindClassOnAttachedNativeThread ( ) ; JniTest.testFindFieldOnAttachedNativeThread ( ) ; JniTest.testCallStaticVoidMethodOnSubClass ( ) ; JniTest.testGetMirandaMethod ( ) ; JniTest.testZeroLengthByteBuffers ( ) ; JniTest.testByteMethod ( ) ; JniTest.testShortMethod ( ) ; JniTest.testBooleanMethod ( ) ; JniTest.testCharMethod ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( "arttest" ) ; JniTest.testFindClassOnAttachedNativeThread ( ) ; JniTest.testFindFieldOnAttachedNativeThread ( ) ; JniTest.testReflectFieldGetFromAttachedNativeThreadNative ( ) ; JniTest.testCallStaticVoidMethodOnSubClass ( ) ; JniTest.testGetMirandaMethod ( ) ; JniTest.testZeroLengthByteBuffers ( ) ; JniTest.testByteMethod ( ) ; JniTest.testShortMethod ( ) ; JniTest.testBooleanMethod ( ) ; JniTest.testCharMethod ( ) ; }
Source:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { if ( ( attribute.getOwnerDocument ( ) . getDocumentElement ( ) ) == ( attribute.getOwnerElement ( ) ) ) { java.lang.String background = attribute.getValue ( ) ; if ( ( ( mValidDrawables ) != null ) && ( mValidDrawables.contains ( background ) ) ) { return ; } if ( background.equals ( com.android.SdkConstants.TRANSPARENT_COLOR ) ) { return ; } if ( background.startsWith ( "@android:drawable/" ) ) { return ; } java.lang.String name = context.file.getName ( ) ; if ( ( name.contains ( "list_" ) ) || ( name.contains ( "_item" ) ) ) { return ; } if ( ! ( context.getProject ( ) . getReportIssues ( ) ) ) { return ; } com.android.tools.lint.detector.api.Location location = context.getLocation ( attribute ) ; location.setClientData ( attribute ) ; if ( ( mRootAttributes ) == null ) { mRootAttributes = new java.util.ArrayList < com.android.utils.Pair < com.android.tools.lint.detector.api.Location , java.lang.String > > ( ) ; } mRootAttributes.add ( com.android.utils.Pair.of ( location , attribute.getValue ( ) ) ) ; } }

Target:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { org.w3c.dom.Element documentElement = attribute.getOwnerDocument ( ) . getDocumentElement ( ) ; if ( documentElement == ( attribute.getOwnerElement ( ) ) ) { java.lang.String background = attribute.getValue ( ) ; if ( ( ( mValidDrawables ) != null ) && ( mValidDrawables.contains ( background ) ) ) { return ; } if ( background.equals ( com.android.SdkConstants.TRANSPARENT_COLOR ) ) { return ; } if ( background.startsWith ( "@android:drawable/" ) ) { return ; } java.lang.String name = context.file.getName ( ) ; if ( ( name.contains ( "list_" ) ) || ( name.contains ( "_item" ) ) ) { return ; } if ( ! ( context.getProject ( ) . getReportIssues ( ) ) ) { return ; } com.android.tools.lint.detector.api.Location location = context.getLocation ( attribute ) ; location.setClientData ( attribute ) ; if ( ( mRootAttributes ) == null ) { mRootAttributes = new java.util.ArrayList < com.android.utils.Pair < com.android.tools.lint.detector.api.Location , java.lang.String > > ( ) ; } mRootAttributes.add ( com.android.utils.Pair.of ( location , attribute.getValue ( ) ) ) ; java.lang.String activity = documentElement.getAttributeNS ( com.android.SdkConstants.TOOLS_URI , com.android.SdkConstants.ATTR_CONTEXT ) ; if ( ( activity != null ) && ( ! ( activity.isEmpty ( ) ) ) ) { if ( activity.startsWith ( "." ) ) { activity = ( context.getProject ( ) . getPackage ( ) ) + activity ; } registerLayoutActivity ( com.android.tools.lint.detector.api.LintUtils.getLayoutName ( context.file ) , activity ) ; } } }
Source:
public void copyFrom ( com.android.systemui.statusbar.policy.State s ) { super . copyFrom ( s ) ; com.android.systemui.statusbar.policy.MobileSignalController.MobileState state = ( ( com.android.systemui.statusbar.policy.MobileSignalController.MobileState ) ( s ) ) ; dataSim = state.dataSim ; networkName = state.networkName ; networkNameData = state.networkNameData ; dataConnected = state.dataConnected ; isDefault = state.isDefault ; isEmergency = state.isEmergency ; airplaneMode = state.airplaneMode ; carrierNetworkChangeMode = state.carrierNetworkChangeMode ; userSetup = state.userSetup ; }

Target:
public void copyFrom ( com.android.systemui.statusbar.policy.State s ) { super . copyFrom ( s ) ; com.android.systemui.statusbar.policy.MobileSignalController.MobileState state = ( ( com.android.systemui.statusbar.policy.MobileSignalController.MobileState ) ( s ) ) ; dataSim = state.dataSim ; networkName = state.networkName ; networkNameData = state.networkNameData ; dataConnected = state.dataConnected ; isDefault = state.isDefault ; isEmergency = state.isEmergency ; airplaneMode = state.airplaneMode ; carrierNetworkChangeMode = state.carrierNetworkChangeMode ; userSetup = state.userSetup ; roaming = state.roaming ; }
Source:
public void onImsSuspended ( ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( "onImsSuspended" ) ; mPhone.setServiceState ( ServiceState.STATE_OUT_OF_SERVICE ) ; mMetrics.writeOnImsConnectionState ( mPhone.getPhoneId ( ) , ImsConnectionState.State.SUSPENDED , null ) ; }

Target:
public void onCapabilitiesStatusChanged ( android.telephony.ims.feature.ImsFeature.Capabilities config ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onCapabilitiesStatusChanged: " + config ) ) ; com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = config ; removeMessages ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.EVENT_ON_FEATURE_CAPABILITY_CHANGED ) ; obtainMessage ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.EVENT_ON_FEATURE_CAPABILITY_CHANGED , args ) . sendToTarget ( ) ; }
Source:
public int getItemCount ( ) { return cursor.getCount ( ) ; }

Target:
public int getItemCount ( ) { com.android.dialer.common.LogUtil.enterBlock ( "NewVoicemailAdapter.getItemCount" ) ; int numberOfHeaders = 0 ; if ( ( todayHeaderPosition ) != ( java.lang.Integer.MAX_VALUE ) ) { numberOfHeaders ++ ; } if ( ( olderHeaderPosition ) != ( java.lang.Integer.MAX_VALUE ) ) { numberOfHeaders ++ ; } return ( cursor.getCount ( ) ) + numberOfHeaders ; }
Source:
public void addI8 ( android.support.v8.renderscript.Byte2 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addI8 ( new android.support.v8.renderscript.Byte2 ( v.x , v.y ) ) ; return ; } addI8 ( v.x ) ; addI8 ( v.y ) ; }

Target:
public void addI8 ( android.support.v8.renderscript.Byte4 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addI8 ( v ) ; return ; } addI8 ( v.x ) ; addI8 ( v.y ) ; addI8 ( v.z ) ; addI8 ( v.w ) ; }
Source:
public void handleConnectionStateChanged ( int state ) { localLog ( ( "handleConnectionStateChanged: state=" + state ) ) ; mWifiState = state ; if ( ( mWifiState ) == ( com.android.server.wifi.WifiConnectivityManager.WIFI_STATE_DISCONNECTED ) ) { mLastConnectionAttemptBssid = null ; scheduleWatchdogTimer ( ) ; } startConnectivityScan ( com.android.server.wifi.WifiConnectivityManager.SCAN_ON_SCHEDULE ) ; }

Target:
public void handleConnectionStateChanged ( int state ) { localLog ( ( "handleConnectionStateChanged: state=" + state ) ) ; mWifiState = state ; if ( ( mWifiState ) == ( com.android.server.wifi.WifiConnectivityManager.WIFI_STATE_DISCONNECTED ) ) { mLastConnectionAttemptBssid = null ; scheduleWatchdogTimer ( ) ; startConnectivityScan ( com.android.server.wifi.WifiConnectivityManager.SCAN_IMMEDIATELY ) ; } else { startConnectivityScan ( com.android.server.wifi.WifiConnectivityManager.SCAN_ON_SCHEDULE ) ; } }
Source:
private void libToCommon ( @ javax.annotation.Nonnull java.io.File ... in ) throws java.lang.Exception { apiV01Config.setClasspath ( classpath ) ; java.util.List < java.io.File > importedLibs = new java.util.ArrayList < java.io.File > ( staticLibs ) ; java.util.Collections.addAll ( importedLibs , in ) ; apiV01Config.setImportedJackLibraryFiles ( importedLibs ) ; apiV01Config.setResourceDirs ( resImport ) ; apiV01Config.setProguardConfigFiles ( proguardFlags ) ; if ( ( jarjarRules ) != null ) { apiV01Config.setJarJarConfigFiles ( jarjarRules ) ; } }

Target:
private void libToCommon ( @ javax.annotation.Nonnull java.io.File ... in ) throws java.lang.Exception { apiV01Config.setClasspath ( classpath ) ; java.util.List < java.io.File > importedLibs = new java.util.ArrayList < java.io.File > ( staticLibs ) ; java.util.Collections.addAll ( importedLibs , in ) ; apiV01Config.setImportedJackLibraryFiles ( importedLibs ) ; apiV01Config.setResourceDirs ( resImport ) ; apiV01Config.setMetaDirs ( metaImport ) ; apiV01Config.setProguardConfigFiles ( proguardFlags ) ; if ( ( jarjarRules ) != null ) { apiV01Config.setJarJarConfigFiles ( jarjarRules ) ; } }
Source:
public void onSessionConfigSuccessResponse ( short transactionId , boolean isPublish , int pubSubId ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_RESPONSE ) ; msg.arg1 = com.android.server.wifi.nan.WifiNanStateManager.RESPONSE_TYPE_ON_SESSION_CONFIG_SUCCESS ; msg.arg2 = transactionId ; msg.obj = pubSubId ; msg.getData ( ) . putBoolean ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_BUNDLE_KEY_SESSION_TYPE , isPublish ) ; mSm.sendMessage ( msg ) ; }

Target:
public void onSessionConfigSuccessResponse ( short transactionId , boolean isPublish , int pubSubId ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_RESPONSE ) ; msg.arg1 = com.android.server.wifi.aware.WifiAwareStateManager.RESPONSE_TYPE_ON_SESSION_CONFIG_SUCCESS ; msg.arg2 = transactionId ; msg.obj = pubSubId ; msg.getData ( ) . putBoolean ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_BUNDLE_KEY_SESSION_TYPE , isPublish ) ; mSm.sendMessage ( msg ) ; }
Source:
private void writeObject ( java.io.ObjectOutputStream stream ) throws java.io.IOException { if ( getOpenSSLKey ( ) . isEngineBased ( ) ) { throw new java.io.NotSerializableException ( "engine-based keys can not be serialized" ) ; } stream.defaultWriteObject ( ) ; ensureReadParams ( ) ; stream.writeObject ( new java.math.BigInteger ( g ) ) ; stream.writeObject ( new java.math.BigInteger ( p ) ) ; stream.writeObject ( new java.math.BigInteger ( x ) ) ; }

Target:
private java.lang.Object readResolve ( ) { return new org.conscrypt.OpenSSLDHPrivateKey ( new org.conscrypt.OpenSSLKey ( org.conscrypt.NativeCrypto.EVP_PKEY_new_DH ( p.toByteArray ( ) , g.toByteArray ( ) , null , x.toByteArray ( ) ) ) ) ; }
Source:
private org.eclipse.wst.sse.core.internal.provisional.IndexedRegion perform ( org.eclipse.wst.sse.core.internal.provisional.IStructuredModel model ) { if ( model instanceof org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel ) { org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel domModel = ( ( org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel ) ( model ) ) ; org.w3c.dom.Document document = domModel.getDocument ( ) ; org.w3c.dom.Element element = document.getDocumentElement ( ) ; org.w3c.dom.Attr attr = document.createAttributeNS ( XmlnsAttributeDescriptor.XMLNS_URI , "xmlns:android" ) ; attr.setValue ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI ) ; element.getAttributes ( ) . setNamedItemNS ( attr ) ; return ( ( org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) ( attr ) ) ; } return null ; }

Target:
private org.eclipse.wst.sse.core.internal.provisional.IndexedRegion perform ( org.eclipse.wst.sse.core.internal.provisional.IStructuredModel model ) { if ( model instanceof org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel ) { org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel domModel = ( ( org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel ) ( model ) ) ; org.w3c.dom.Document document = domModel.getDocument ( ) ; org.w3c.dom.Element element = document.getDocumentElement ( ) ; org.w3c.dom.Attr attr = document.createAttributeNS ( com.android.util.XmlUtils.XMLNS_URI , com.android.util.XmlUtils.XMLNS_ANDROID ) ; attr.setValue ( com.android.util.XmlUtils.ANDROID_URI ) ; element.getAttributes ( ) . setNamedItemNS ( attr ) ; return ( ( org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) ( attr ) ) ; } return null ; }
Source:
private void recordMedia ( long maxFileSize ) throws java.lang.Exception { mMediaRecorder.setMaxFileSize ( maxFileSize ) ; mMediaRecorder.prepare ( ) ; mMediaRecorder.start ( ) ; java.lang.Thread.sleep ( android.media.cts.MediaRecorderTest.RECORD_TIME ) ; mMediaRecorder.stop ( ) ; assertTrue ( mOutFile.exists ( ) ) ; assertTrue ( ( ( mOutFile.length ( ) ) < ( 1.1 * maxFileSize ) ) ) ; assertTrue ( ( ( mOutFile.length ( ) ) > 0 ) ) ; }

Target:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "prepare" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setAudioEncoder" , args = { int . class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setAudioSource" , args = { int . class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setOutputFormat" , args = { int . class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "start" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "stop" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setOnErrorListener" , args = { android.media.MediaRecorder.OnErrorListener.class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setMaxFileSize" , args = { long . class } ) } ) public void testOnErrorListener ( ) throws java.lang.Exception { mMediaRecorder.setAudioSource ( MediaRecorder.AudioSource.DEFAULT ) ; mMediaRecorder.setOutputFormat ( MediaRecorder.OutputFormat.THREE_GPP ) ; mMediaRecorder.setAudioEncoder ( MediaRecorder.AudioEncoder.AMR_NB ) ; recordMedia ( android.media.cts.MediaRecorderTest.MAX_FILE_SIZE , mOutFile ) ; assertFalse ( mOnErrorCalled ) ; }
Source:
public void getVoiceRegistrationState ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_VOICE_REGISTRATION_STATE , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getVoiceRegistrationState ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_VOICE_REGISTRATION_STATE , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.getVoiceRegistrationState ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "getVoiceRegistrationState" , e ) ; } } }
Source:
private static com.google.gson.Gson createGson ( com.android.ide.common.blame.output.GradleMessageRewriter.ErrorFormatMode errorFormatMode ) { com.google.gson.GsonBuilder gsonBuilder = new com.google.gson.GsonBuilder ( ) ; gsonBuilder.registerTypeAdapter ( com.android.ide.common.blame.SourceFragmentPositionRange.class , new com.android.ide.common.blame.SourceFragmentPositionRange.Serializer ( ) ) ; return gsonBuilder.create ( ) ; }

Target:
private static com.google.gson.Gson createGson ( com.android.ide.common.blame.output.GradleMessageRewriter.ErrorFormatMode errorFormatMode ) { com.google.gson.GsonBuilder gsonBuilder = new com.google.gson.GsonBuilder ( ) ; gsonBuilder.registerTypeAdapter ( com.android.ide.common.blame.SourceFragmentPositionRange.class , new com.android.ide.common.blame.SourceFragmentPositionRange.Serializer ( ) ) ; if ( errorFormatMode == ( com.android.ide.common.blame.output.GradleMessageRewriter.ErrorFormatMode.HUMAN_READABLE ) ) { gsonBuilder.setPrettyPrinting ( ) ; } return gsonBuilder.create ( ) ; }
Source:
public int getFatVolumeId ( ) { if ( ( ( mUuid ) == null ) || ( ( mUuid.length ( ) ) != 9 ) ) { return - 1 ; } try { return java.lang.Integer.parseInt ( mUuid.replace ( "-" , "" ) , 16 ) ; } catch ( java.lang.NumberFormatException e ) { return - 1 ; } }

Target:
public int getFatVolumeId ( ) { if ( ( ( mUuid ) == null ) || ( ( mUuid.length ( ) ) != 9 ) ) { return - 1 ; } try { return ( ( int ) ( java.lang.Long.parseLong ( mUuid.replace ( "-" , "" ) , 16 ) ) ) ; } catch ( java.lang.NumberFormatException e ) { return - 1 ; } }
Source:
public static void assertArrayEquals ( java.lang.String message , int [ ] expecteds , int [ ] actuals ) { java.lang.String expectedString = java.util.Arrays.toString ( expecteds ) ; java.lang.String actualString = java.util.Arrays.toString ( actuals ) ; if ( ! ( expectedString.equals ( actualString ) ) ) { fail ( message , ( ( ( "expected " + expectedString ) + " but was " ) + actualString ) ) ; } }

Target:
public static void assertArrayEquals ( java.lang.String message , int [ ] expecteds , int [ ] actuals ) { java.lang.String expectedString = java.util.Arrays.toString ( expecteds ) ; java.lang.String actualString = java.util.Arrays.toString ( actuals ) ; if ( ! ( expectedString.equals ( actualString ) ) ) { org.junit.Assert.fail ( message , ( ( ( "expected " + expectedString ) + " but was " ) + actualString ) ) ; } }
Source:
private static int translateHalStatusToNanSessionCallbackTerminate ( int halStatus ) { switch ( halStatus ) { case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_TIMEOUT : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_USER_REQUEST : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_COUNT_REACHED : return android.net.wifi.nan.WifiNanSessionCallback.TERMINATE_REASON_DONE ; case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_INVALID : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_FAILURE : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_DE_SHUTDOWN : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_DISABLE_IN_PROGRESS : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_POST_DISC_ATTR_EXPIRED : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_POST_DISC_LEN_EXCEEDED : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_FURTHER_AVAIL_MAP_EMPTY : return android.net.wifi.nan.WifiNanSessionCallback.TERMINATE_REASON_FAIL ; } return android.net.wifi.nan.WifiNanSessionCallback.TERMINATE_REASON_FAIL ; }

Target:
private static int translateHalStatusToNanSessionCallbackTerminate ( int halStatus ) { switch ( halStatus ) { case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_TIMEOUT : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_USER_REQUEST : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_COUNT_REACHED : return android.net.wifi.nan.WifiNanDiscoverySessionCallback.TERMINATE_REASON_DONE ; case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_INVALID : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_FAILURE : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_DE_SHUTDOWN : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_DISABLE_IN_PROGRESS : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_POST_DISC_ATTR_EXPIRED : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_POST_DISC_LEN_EXCEEDED : case com.android.server.wifi.nan.WifiNanNative.NAN_TERMINATED_REASON_FURTHER_AVAIL_MAP_EMPTY : return android.net.wifi.nan.WifiNanDiscoverySessionCallback.TERMINATE_REASON_FAIL ; } return android.net.wifi.nan.WifiNanDiscoverySessionCallback.TERMINATE_REASON_FAIL ; }
Source:
public void testAesGcm64Tcp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.getKey ( 288 ) , 64 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , null , authCrypt , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , null , authCrypt , true , 1 , true ) ; }

Target:
public void testAuthUdp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , auth , false , 1 , true ) ; }
Source:
public void onConnectionServiceFocusReleased ( android.telecom.Logging.Session.Info sessionInfo ) throws android.os.RemoteException { }

Target:
public void onConnectionServiceFocusReleased ( android.telecom.Logging.Session.Info sessionInfo ) throws android.os.RemoteException { android.telecom.Log.startSession ( sessionInfo , "CSW.oCSFR" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { mConnSvrFocusListener.onConnectionServiceReleased ( this ) ; } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
protected java.io.File getTargetDir ( ) { java.lang.String sdk = java.lang.System.getenv ( "ADT_SDK_SOURCE_PATH" ) ; if ( sdk != null ) { java.io.File sdkPath = new java.io.File ( sdk ) ; if ( sdkPath.exists ( ) ) { java.io.File testData = new java.io.File ( sdkPath , com.android.assetstudiolib.GeneratorTest.TEST_DATA_REL_PATH.replace ( '/' , java.io.File.separatorChar ) ) ; if ( testData.exists ( ) ) { return testData ; } } } return null ; }

Target:
protected java.io.File getTargetDir ( ) { java.lang.String sdk = java.lang.System.getenv ( "ANDROID_SRC" ) ; if ( sdk != null ) { java.io.File root = new java.io.File ( sdk ) ; if ( root.exists ( ) ) { java.io.File testData = new java.io.File ( root , com.android.assetstudiolib.GeneratorTest.TEST_DATA_REL_PATH.replace ( '/' , java.io.File.separatorChar ) ) ; if ( testData.exists ( ) ) { return testData ; } } } return null ; }
Source:
public static lombok.ast.Node getCompilationUnit ( java.lang.String javaSource ) { com.android.tools.lint.detector.api.LintUtilsTest.TestContext context = new com.android.tools.lint.detector.api.LintUtilsTest.TestContext ( javaSource , new java.io.File ( "test" ) ) ; com.android.tools.lint.client.api.IJavaParser parser = new com.android.tools.lint.EcjParser ( new com.android.tools.lint.LintCliClient ( ) ) ; lombok.ast.Node compilationUnit = parser.parseJava ( context ) ; assertNotNull ( javaSource , compilationUnit ) ; return compilationUnit ; }

Target:
public static lombok.ast.Node getCompilationUnit ( java.lang.String javaSource ) { return com.android.tools.lint.detector.api.LintUtilsTest.getCompilationUnit ( javaSource , new java.io.File ( "test" ) ) ; }
Source:
private void gCTRBlock ( byte [ ] block , byte [ ] out , int outOff ) { byte [ ] tmp = getNextCounterBlock ( ) ; org.bouncycastle.crypto.modes.GCMBlockCipher.xor ( tmp , block ) ; java.lang.System.arraycopy ( tmp , 0 , out , outOff , org.bouncycastle.crypto.modes.GCMBlockCipher.BLOCK_SIZE ) ; gHASHBlock ( S , ( forEncryption ? tmp : block ) ) ; totalLength += org.bouncycastle.crypto.modes.GCMBlockCipher.BLOCK_SIZE ; }

Target:
private void gCTRBlock ( byte [ ] block , byte [ ] out , int outOff ) { byte [ ] tmp = getNextCounterBlock ( ) ; org.bouncycastle.crypto.modes.gcm.GCMUtil.xor ( tmp , block ) ; java.lang.System.arraycopy ( tmp , 0 , out , outOff , org.bouncycastle.crypto.modes.GCMBlockCipher.BLOCK_SIZE ) ; gHASHBlock ( S , ( forEncryption ? tmp : block ) ) ; totalLength += org.bouncycastle.crypto.modes.GCMBlockCipher.BLOCK_SIZE ; }
Source:
public boolean isShadowed ( proguard.classfile.util.Clazz clazz , proguard.classfile.util.Field field ) { java.lang.String name = field.getName ( clazz ) ; java.lang.String descriptor = field.getDescriptor ( clazz ) ; try { this . clazz = null ; this . member = null ; clazz.hierarchyAccept ( false , false , false , true , new proguard.classfile.util.NamedFieldVisitor ( name , descriptor , new proguard.classfile.util.MemberAccessFilter ( 0 , ClassConstants.INTERNAL_ACC_PRIVATE , this ) ) ) ; } catch ( proguard.classfile.util.MemberFinder.MemberFoundException ex ) { return true ; } return false ; }

Target:
public boolean isShadowed ( proguard.classfile.util.Clazz clazz , proguard.classfile.util.Field field ) { java.lang.String name = field.getName ( clazz ) ; java.lang.String descriptor = field.getDescriptor ( clazz ) ; try { this . clazz = null ; this . member = null ; clazz.hierarchyAccept ( false , false , false , true , new proguard.classfile.util.NamedFieldVisitor ( name , descriptor , new proguard.classfile.util.MemberAccessFilter ( 0 , ClassConstants.ACC_PRIVATE , this ) ) ) ; } catch ( proguard.classfile.util.MemberFinder.MemberFoundException ex ) { return true ; } return false ; }
Source:
public void onDataPathEnd ( int ndpId ) { if ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.TAG , ( "onDataPathEnd: ndpId=" + ndpId ) ) ; java.util.Map.Entry < java.lang.String , com.android.server.wifi.aware.WifiAwareDataPathStateManager.AwareNetworkRequestInformation > nnriE = getNetworkRequestByNdpId ( ndpId ) ; if ( nnriE == null ) { if ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.DBG ) { android.util.Log.d ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.TAG , ( "onDataPathEnd: network request not found for ndpId=" + ndpId ) ) ; } return ; } tearDownInterface ( nnriE.getValue ( ) ) ; mNetworkRequestsCache.remove ( nnriE.getKey ( ) ) ; }

Target:
public void onDataPathEnd ( int ndpId ) { if ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.TAG , ( "onDataPathEnd: ndpId=" + ndpId ) ) ; java.util.Map.Entry < android.net.wifi.aware.WifiAwareNetworkSpecifier , com.android.server.wifi.aware.WifiAwareDataPathStateManager.AwareNetworkRequestInformation > nnriE = getNetworkRequestByNdpId ( ndpId ) ; if ( nnriE == null ) { if ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.DBG ) { android.util.Log.d ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.TAG , ( "onDataPathEnd: network request not found for ndpId=" + ndpId ) ) ; } return ; } tearDownInterface ( nnriE.getValue ( ) ) ; mNetworkRequestsCache.remove ( nnriE.getKey ( ) ) ; }
Source:
public void actionPerformed ( java.awt.event.ActionEvent e ) { assert ( mTraceViewCanvas ) != null ; mTraceViewCanvas.displayThread ( ( ( java.lang.String ) ( mThreadCombo.getSelectedItem ( ) ) ) ) ; }

Target:
public void actionPerformed ( java.awt.event.ActionEvent e ) { assert ( mTraceViewCanvas ) != null ; if ( ( e.getSource ( ) ) == ( mThreadCombo ) ) { mTraceViewCanvas.displayThread ( ( ( java.lang.String ) ( mThreadCombo.getSelectedItem ( ) ) ) ) ; } else if ( ( e.getSource ( ) ) == ( mClockSelector ) ) { mTraceViewCanvas.setRenderClock ( ( mClockSelector.isSelected ( ) ? com.android.tools.perflib.vmtrace.ClockType.GLOBAL : com.android.tools.perflib.vmtrace.ClockType.THREAD ) ) ; } }
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 ( parent != null ) { com.android.ide.common.api.INode focus = com.android.ide.common.layout.EditTextRule.findFocus ( com.android.ide.common.layout.EditTextRule.findRoot ( parent ) ) ; if ( focus == null ) { node.appendChild ( com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.REQUEST_FOCUS ) ; } if ( ( parent.getBounds ( ) . w ) >= 320 ) { node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_EMS , "10" ) ; } } }

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 ( parent != null ) { com.android.ide.common.api.INode focus = com.android.ide.common.layout.EditTextRule.findFocus ( com.android.ide.common.layout.EditTextRule.findRoot ( parent ) ) ; if ( focus == null ) { node.appendChild ( com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.REQUEST_FOCUS ) ; } if ( ( parent.getBounds ( ) . w ) >= 320 ) { node.setAttribute ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_EMS , "10" ) ; } } }
Source:
static boolean containsKeyImpl ( java.util.Map < ? , ? > map , @ javax.annotation.Nullable java.lang.Object key ) { for ( java.util.Map.Entry < ? , ? > entry : map.entrySet ( ) ) { if ( com.google.common.base.Objects.equal ( entry.getKey ( ) , key ) ) { return true ; } } return false ; }

Target:
static boolean containsKeyImpl ( java.util.Map < ? , ? > map , @ javax.annotation.Nullable java.lang.Object key ) { return com.google.common.collect.Iterators.contains ( com.google.common.collect.Maps.keyIterator ( map.entrySet ( ) . iterator ( ) ) , key ) ; }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.unittest.ScriptC_rstime s = new com.android.rs.unittest.ScriptC_rstime ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; s.setTimeZone ( "America/Los_Angeles" ) ; s.invoke_test_rstime ( 0 , 0 ) ; pRS.finish ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = createRenderScript ( true ) ; com.android.rs.unittest.ScriptC_rstime s = new com.android.rs.unittest.ScriptC_rstime ( pRS ) ; s.setTimeZone ( "America/Los_Angeles" ) ; s.invoke_test_rstime ( 0 , 0 ) ; pRS.finish ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }
Source:
public void testUnescapeStringShouldUnescapeJavaUnescapeSequences ( ) throws java.lang.Exception { assertEquals ( "\n" , com.android.ide.common.resources.ValueResourceParser.unescapeResourceString ( "\\n" , false , true ) ) ; assertEquals ( "\t" , com.android.ide.common.resources.ValueResourceParser.unescapeResourceString ( "\\t" , false , true ) ) ; assertEquals ( "\\" , com.android.ide.common.resources.ValueResourceParser.unescapeResourceString ( "\\\\" , false , true ) ) ; }

Target:
public void testUnescapeStringShouldUnescapeJavaUnescapeSequences ( ) throws java.lang.Exception { assertEquals ( "\n" , com.android.ide.common.res2.ValueXmlHelper.unescapeResourceString ( "\\n" , false , true ) ) ; assertEquals ( "\t" , com.android.ide.common.res2.ValueXmlHelper.unescapeResourceString ( "\\t" , false , true ) ) ; assertEquals ( "\\" , com.android.ide.common.res2.ValueXmlHelper.unescapeResourceString ( "\\\\" , false , true ) ) ; }
Source:
public com.google.common.util.concurrent.Service.State get ( long timeout , java.util.concurrent.TimeUnit unit ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , java.util.concurrent.TimeoutException { try { return super . get ( timeout , unit ) ; } catch ( java.util.concurrent.TimeoutException e ) { throw new java.util.concurrent.TimeoutException ( this . toString ( ) ) ; } }

Target:
public final void addListener ( com.google.common.util.concurrent.Service.Listener listener , java.util.concurrent.Executor executor ) { com.google.common.base.Preconditions.checkNotNull ( listener , "listener" ) ; com.google.common.base.Preconditions.checkNotNull ( executor , "executor" ) ; monitor.enter ( ) ; try { if ( ! ( state ( ) . isTerminal ( ) ) ) { listeners.add ( new com.google.common.util.concurrent.ListenerCallQueue < com.google.common.util.concurrent.Service.Listener > ( listener , executor ) ) ; } } finally { monitor.leave ( ) ; } }
Source:
private void update ( ) { boolean tracingOn = com.google.android.traceur.AtraceUtils.isTracingOn ( ) ; getQsTile ( ) . setIcon ( android.graphics.drawable.Icon.createWithResource ( this , R.drawable.stat_sys_adb ) ) ; getQsTile ( ) . setState ( ( tracingOn ? android.service.quicksettings.Tile.STATE_ACTIVE : android.service.quicksettings.Tile.STATE_INACTIVE ) ) ; getQsTile ( ) . setLabel ( ( tracingOn ? "Tracing" : "Start Tracing" ) ) ; getQsTile ( ) . updateTile ( ) ; }

Target:
private void update ( ) { boolean tracingOn = com.android.traceur.AtraceUtils.isTracingOn ( ) ; getQsTile ( ) . setIcon ( android.graphics.drawable.Icon.createWithResource ( this , R.drawable.stat_sys_adb ) ) ; getQsTile ( ) . setState ( ( tracingOn ? android.service.quicksettings.Tile.STATE_ACTIVE : android.service.quicksettings.Tile.STATE_INACTIVE ) ) ; getQsTile ( ) . setLabel ( ( tracingOn ? "Tracing" : "Start Tracing" ) ) ; getQsTile ( ) . updateTile ( ) ; }
Source:
public void testCompatRevoked22 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_22 ) , false , false ) ) ; try { runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest22" , "testCompatRevoked_part1" ) ; fail ( "App must be killed on a permission revoke" ) ; } catch ( java.lang.AssertionError expected ) { } runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest22" , "testCompatRevoked_part2" ) ; }

Target:
public void testCompatDefault22 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_22 ) , false , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest22" , "testCompatDefault" ) ; }
Source:
public void testE3 ( ) { dot.junit.opcodes.aget.d.T_aget_1 t = new dot.junit.opcodes.aget.d.T_aget_1 ( ) ; int [ ] arr = new int [ 2 ] ; try { t.run ( arr , ( - 1 ) ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE3 ( ) { loadAndRun ( "dot.junit.opcodes.aget.d.T_aget_1" , java.lang.ArrayIndexOutOfBoundsException.class , new int [ 2 ] , ( - 1 ) ) ; }