auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void copyFrom ( android.telephony.SignalStrength s ) { mGsmSignalStrength = s.mGsmSignalStrength ; mGsmBitErrorRate = s.mGsmBitErrorRate ; mCdmaDbm = s.mCdmaDbm ; mCdmaEcio = s.mCdmaEcio ; mEvdoDbm = s.mEvdoDbm ; mEvdoEcio = s.mEvdoEcio ; mEvdoSnr = s.mEvdoSnr ; mLteSignalStrength = s.mLteSignalStrength ; mLteRsrp = s.mLteRsrp ; mLteRsrq = s.mLteRsrq ; mLteRssnr = s.mLteRssnr ; mLteCqi = s.mLteCqi ; mTdScdmaRscp = s.mTdScdmaRscp ; isGsm = s.isGsm ; }

Target:
protected void copyFrom ( android.telephony.SignalStrength s ) { mGsmSignalStrength = s.mGsmSignalStrength ; mGsmBitErrorRate = s.mGsmBitErrorRate ; mCdmaDbm = s.mCdmaDbm ; mCdmaEcio = s.mCdmaEcio ; mEvdoDbm = s.mEvdoDbm ; mEvdoEcio = s.mEvdoEcio ; mEvdoSnr = s.mEvdoSnr ; mLteSignalStrength = s.mLteSignalStrength ; mLteRsrp = s.mLteRsrp ; mLteRsrq = s.mLteRsrq ; mLteRssnr = s.mLteRssnr ; mLteCqi = s.mLteCqi ; mLteRsrpBoost = s.mLteRsrpBoost ; mTdScdmaRscp = s.mTdScdmaRscp ; isGsm = s.isGsm ; }
Source:
private void addDefaultModuleExpectations ( com.android.tradefed.util.IRunUtil mockRunUtil , com.android.tradefed.util.CommandResult result ) { org.easymock.EasyMock.expect ( mockRunUtil.runTimedCmd ( org.easymock.EasyMock.anyLong ( ) , org.easymock.EasyMock.eq ( "pip" ) , org.easymock.EasyMock.eq ( "install" ) , org.easymock.EasyMock.eq ( "enum" ) ) ) . andReturn ( result ) ; }

Target:
private void addDefaultModuleExpectations ( com.android.tradefed.util.IRunUtil mockRunUtil , com.android.tradefed.util.CommandResult result ) { org.easymock.EasyMock.expect ( mockRunUtil.runTimedCmd ( org.easymock.EasyMock.anyLong ( ) , org.easymock.EasyMock.eq ( mPreparer.getPipPath ( ) ) , org.easymock.EasyMock.eq ( "install" ) , org.easymock.EasyMock.eq ( "enum" ) ) ) . andReturn ( result ) ; }
Source:
public java.lang.String getImei ( int slotId ) { int [ ] subId = android.telephony.SubscriptionManager.getSubId ( slotId ) ; try { com.android.internal.telephony.IPhoneSubInfo info = getSubscriberInfo ( ) ; if ( info == null ) return null ; return info.getImeiForSubscriber ( subId [ 0 ] , mContext.getOpPackageName ( ) ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }

Target:
public java.lang.String getDeviceId ( int slotIndex ) { try { com.android.internal.telephony.IPhoneSubInfo info = getSubscriberInfo ( ) ; if ( info == null ) return null ; return info.getDeviceIdForPhone ( slotIndex , mContext.getOpPackageName ( ) ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }
Source:
public void testHasPackageNoPackage ( ) { android.content.Intent intent = new android.content.Intent ( ) ; assertFalse ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( "com.foo.bar" ) . matches ( intent ) ) ; assertFalse ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( org.hamcrest.Matchers.equalTo ( "com.foo.bar" ) ) . matches ( intent ) ) ; }

Target:
public void hasPackageNoPackage ( ) { android.content.Intent intent = new android.content.Intent ( ) ; org.junit.Assert.assertFalse ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( "com.foo.bar" ) . matches ( intent ) ) ; org.junit.Assert.assertFalse ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( org.hamcrest.Matchers.equalTo ( "com.foo.bar" ) ) . matches ( intent ) ) ; }
Source:
public void setup ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; com.android.server.wifi.aware.WifiAwareHalTest.resetWifiAwareNative ( ) ; com.android.server.wifi.HalMockUtils.initHalMockLibrary ( ) ; com.android.server.wifi.aware.WifiAwareHalMock.initAwareHalMockLibrary ( mDut ) ; com.android.server.wifi.aware.WifiAwareNative.initAwareHandlersNative ( com.android.server.wifi.WifiNative.class , WifiNative.sWlan0Index ) ; com.android.server.wifi.HalMockUtils.setHalMockObject ( mAwareHalMock ) ; com.android.server.wifi.aware.WifiAwareHalTest.installMockAwareStateManager ( mAwareStateManager ) ; }

Target:
public void setup ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mDut = new com.android.server.wifi.aware.WifiAwareNative ( false ) ; mDut.setStateManager ( mAwareStateManager ) ; com.android.server.wifi.HalMockUtils.initHalMockLibrary ( ) ; com.android.server.wifi.aware.WifiAwareHalMock.initAwareHalMockLibrary ( mDut ) ; com.android.server.wifi.aware.WifiAwareNative.initAwareHandlersNative ( com.android.server.wifi.WifiNative.class , WifiNative.sWlan0Index ) ; com.android.server.wifi.HalMockUtils.setHalMockObject ( mAwareHalMock ) ; }
Source:
private boolean isKeyEntry ( java.lang.String alias ) { if ( alias == null ) { throw new java.lang.NullPointerException ( "alias == null" ) ; } return mKeyStore.contains ( ( ( Credentials.USER_PRIVATE_KEY ) + alias ) ) ; }

Target:
public boolean engineContainsAlias ( java.lang.String alias ) { if ( alias == null ) { throw new java.lang.NullPointerException ( "alias == null" ) ; } return ( ( mKeyStore.contains ( ( ( Credentials.USER_PRIVATE_KEY ) + alias ) ) ) || ( mKeyStore.contains ( ( ( Credentials.USER_CERTIFICATE ) + alias ) ) ) ) || ( mKeyStore.contains ( ( ( Credentials.CA_CERTIFICATE ) + alias ) ) ) ; }
Source:
public void enter ( ) { maybeLogEvaluationResult ( networkEventType ( validationStage ( ) , com.android.server.connectivity.NetworkMonitor.EvaluationResult.CAPTIVE_PORTAL ) ) ; if ( mDontDisplaySigninNotification ) return ; if ( ( mLaunchCaptivePortalAppBroadcastReceiver ) == null ) { mLaunchCaptivePortalAppBroadcastReceiver = new com.android.server.connectivity.NetworkMonitor.CustomIntentReceiver ( com.android.server.connectivity.NetworkMonitor.CaptivePortalState.ACTION_LAUNCH_CAPTIVE_PORTAL_APP , new java.util.Random ( ) . nextInt ( ) , com.android.server.connectivity.NetworkMonitor.CMD_LAUNCH_CAPTIVE_PORTAL_APP ) ; } android.os.Message message = obtainMessage ( com.android.server.connectivity.NetworkMonitor.EVENT_PROVISIONING_NOTIFICATION , 1 , mNetworkAgentInfo.network.netId , mLaunchCaptivePortalAppBroadcastReceiver.getPendingIntent ( ) ) ; mConnectivityServiceHandler.sendMessage ( message ) ; sendMessageDelayed ( com.android.server.connectivity.NetworkMonitor.CMD_CAPTIVE_PORTAL_RECHECK , 0 , com.android.server.connectivity.NetworkMonitor.CAPTIVE_PORTAL_REEVALUATE_DELAY_MS ) ; ( mValidations ) ++ ; }

Target:
public void enter ( ) { maybeLogEvaluationResult ( networkEventType ( validationStage ( ) , com.android.server.connectivity.NetworkMonitor.EvaluationResult.CAPTIVE_PORTAL ) ) ; if ( mDontDisplaySigninNotification ) return ; if ( ( mLaunchCaptivePortalAppBroadcastReceiver ) == null ) { mLaunchCaptivePortalAppBroadcastReceiver = new com.android.server.connectivity.NetworkMonitor.CustomIntentReceiver ( com.android.server.connectivity.NetworkMonitor.CaptivePortalState.ACTION_LAUNCH_CAPTIVE_PORTAL_APP , new java.util.Random ( ) . nextInt ( ) , com.android.server.connectivity.NetworkMonitor.CMD_LAUNCH_CAPTIVE_PORTAL_APP ) ; } android.os.Message message = obtainMessage ( com.android.server.connectivity.NetworkMonitor.EVENT_PROVISIONING_NOTIFICATION , 1 , mNetId , mLaunchCaptivePortalAppBroadcastReceiver.getPendingIntent ( ) ) ; mConnectivityServiceHandler.sendMessage ( message ) ; sendMessageDelayed ( com.android.server.connectivity.NetworkMonitor.CMD_CAPTIVE_PORTAL_RECHECK , 0 , com.android.server.connectivity.NetworkMonitor.CAPTIVE_PORTAL_REEVALUATE_DELAY_MS ) ; ( mValidations ) ++ ; }
Source:
public AndroidFacade.Resources getAndroidFacadeResources ( ) { return new com.googlecode.android_scripting.facade.AndroidFacade.Resources ( ) { @ java.lang.Override public int getLogo48 ( ) { java.lang.String packageName = mService.getApplication ( ) . getPackageName ( ) ; return mService.getResources ( ) . getIdentifier ( "script_logo_48" , "drawable" , packageName ) ; } } ; }

Target:
public int getStringId ( java.lang.String identifier ) { java.lang.String packageName = mService.getApplication ( ) . getPackageName ( ) ; return mService.getResources ( ) . getIdentifier ( identifier , "string" , packageName ) ; }
Source:
synchronized boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return replyReportNative ( type , id , data ) ; }

Target:
synchronized boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "sendReport(): device=" + device ) + " id=" ) + id ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return mHidDeviceNativeInterface.sendReport ( id , data ) ; }
Source:
public int getTargetSdk ( ) { com.android.builder.model.ApiVersion targetSdk = mProject.getDefaultConfig ( ) . getProductFlavor ( ) . getTargetSdkVersion ( ) ; if ( targetSdk != null ) { return targetSdk.getApiLevel ( ) ; } return mTargetSdk ; }

Target:
public com.android.sdklib.AndroidVersion getMinSdkVersion ( ) { if ( ( mMinSdkVersion ) == null ) { com.android.builder.model.ProductFlavor flavor = mProject.getDefaultConfig ( ) . getProductFlavor ( ) ; com.android.builder.model.ApiVersion minSdk = flavor.getMinSdkVersion ( ) ; if ( minSdk != null ) { mMinSdkVersion = com.android.tools.lint.detector.api.LintUtils.convertVersion ( minSdk , mClient.getTargets ( ) ) ; } else { mMinSdkVersion = super . getMinSdkVersion ( ) ; } } return mMinSdkVersion ; }
Source:
private org.gradle.api.Task createAssembleTask ( com.android.build.gradle.internal.ProductFlavorData [ ] flavorDataList ) { java.lang.String name = com.android.build.gradle.internal.ProductFlavorData.getFlavoredName ( flavorDataList , true ) ; com.android.build.gradle.internal.def assembleTask = project.tasks.create ( "assemble${name}" ) ; assembleTask.description = "Assembles all builds for flavor ${name}" ; assembleTask.group = "Build" ; return assembleTask ; }

Target:
private org.gradle.api.Task createAssembleTask ( com.android.build.gradle.internal.ProductFlavorData [ ] flavorDataList ) { java.lang.String name = com.android.build.gradle.internal.ProductFlavorData.getFlavoredName ( flavorDataList , true ) ; org.gradle.api.Task assembleTask = project.getTasks ( ) . create ( ( "assemble" + name ) ) ; assembleTask.setDescription ( ( "Assembles all builds for flavor " + name ) ) ; assembleTask.setGroup ( "Build" ) ; return assembleTask ; }
Source:
public boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { boolean result = false ; if ( ( mService ) != null ) { try { result = mService.sendReport ( device , id , data ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return result ; }

Target:
public boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { boolean result = false ; final android.bluetooth.IBluetoothInputHost service = mService ; if ( service != null ) { try { result = service.sendReport ( device , id , data ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return result ; }
Source:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.MethodInfo m = findMethod ( method ) ; if ( m == null ) { return null ; } if ( ( m.annotations ) != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : m.annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }

Target:
public java.util.Collection < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method , int parameterIndex ) { com.android.tools.lint.ExternalAnnotationRepository.MethodInfo m = findMethod ( method ) ; if ( m == null ) { return null ; } if ( ( m.getParameterAnnotations ( ) ) != null ) { return m.getParameterAnnotations ( ) . get ( parameterIndex ) ; } return null ; }
Source:
public void testRemoveMMTelFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createMMTelFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , mTestCallback ) ; mTestImsServiceBinder.removeImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; org.mockito.Mockito.verify ( mTestImsService.mSpyMMTelFeature ) . onFeatureRemoved ( ) ; org.mockito.Mockito.verify ( mTestImsService.mSpyMMTelFeature ) . removeImsFeatureStatusCallback ( mTestCallback ) ; android.util.SparseArray < android.telephony.ims.feature.ImsFeature > features = mTestImsService.getFeatures ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 ) ; junit.framework.Assert.assertNull ( features.get ( ImsFeature.MMTEL ) ) ; }

Target:
public void testImsServiceUpSentCompat ( ) throws android.os.RemoteException { mTestImsServiceBinder.createMmTelFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , mTestCallback ) ; mTestImsService.mSpyMmTelFeature.sendSetFeatureState ( ImsFeature.STATE_READY ) ; org.mockito.ArgumentCaptor < android.content.Intent > intentCaptor = org.mockito.ArgumentCaptor.forClass ( android.content.Intent.class ) ; org.mockito.Mockito.verify ( mMockContext ) . sendBroadcast ( intentCaptor.capture ( ) ) ; try { junit.framework.Assert.assertNotNull ( intentCaptor.getValue ( ) ) ; verifyServiceUpSent ( intentCaptor.getValue ( ) ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { junit.framework.Assert.fail ( "Did not receive all intents" ) ; } }
Source:
public java.util.List < java.lang.Class < ? extends org.w3c.dom.Node > > getApplicableNodeTypes ( ) { java.util.List < java.lang.Class < ? extends org.w3c.dom.Node > > types = new java.util.ArrayList < java.lang.Class < ? extends org.w3c.dom.Node > > ( 2 ) ; types.add ( lombok.ast.ImportDeclaration.class ) ; types.add ( lombok.ast.Select.class ) ; types.add ( lombok.ast.MethodDeclaration.class ) ; types.add ( lombok.ast.ConstructorDeclaration.class ) ; types.add ( lombok.ast.VariableDefinitionEntry.class ) ; types.add ( lombok.ast.VariableReference.class ) ; return types ; }

Target:
public java.util.List < java.lang.Class < ? extends org.w3c.dom.Node > > getApplicableNodeTypes ( ) { java.util.List < java.lang.Class < ? extends org.w3c.dom.Node > > types = new java.util.ArrayList < java.lang.Class < ? extends org.w3c.dom.Node > > ( 2 ) ; types.add ( lombok.ast.ImportDeclaration.class ) ; types.add ( lombok.ast.Select.class ) ; types.add ( lombok.ast.MethodDeclaration.class ) ; types.add ( lombok.ast.ConstructorDeclaration.class ) ; types.add ( lombok.ast.VariableDefinitionEntry.class ) ; types.add ( lombok.ast.VariableReference.class ) ; types.add ( lombok.ast.Try.class ) ; return types ; }
Source:
public synchronized void setAllIndexesToMax ( ) { java.util.Set set = mIndex.entrySet ( ) ; java.util.Iterator i = set.iterator ( ) ; while ( i.hasNext ( ) ) { java.util.Map.Entry entry = ( ( java.util.Map.Entry ) ( i.next ( ) ) ) ; entry.setValue ( mIndexMax ) ; } }

Target:
public void setAllIndexesToMax ( ) { synchronized ( android.media.AudioService.VolumeStreamState.class ) { java.util.Set set = mIndex.entrySet ( ) ; java.util.Iterator i = set.iterator ( ) ; while ( i.hasNext ( ) ) { java.util.Map.Entry entry = ( ( java.util.Map.Entry ) ( i.next ( ) ) ) ; entry.setValue ( mIndexMax ) ; } } }
Source:
public void clearCache ( final boolean includeDiskFiles ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { clearCache ( includeDiskFiles ) ; } } ) ; return ; } mAwContents.clearCache ( includeDiskFiles ) ; }

Target:
public void clearFormData ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { clearFormData ( ) ; } } ) ; return ; } mAwContents.hideAutofillPopup ( ) ; }
Source:
public void handleUserSwitch ( int userId ) { if ( userId == ( mCurrentUserId ) ) { android.util.Log.w ( com.android.server.wifi.WifiConfigManager.TAG , ( "User already in foreground " + userId ) ) ; return ; } if ( mUserManager.isUserUnlockingOrUnlocked ( mCurrentUserId ) ) { saveToStore ( true ) ; } mCurrentUserId = userId ; mConfiguredNetworks.setNewUser ( userId ) ; clearInternalData ( ) ; if ( mUserManager.isUserUnlockingOrUnlocked ( mCurrentUserId ) ) { loadFromStoreAndMigrateAfterUserSwitch ( mCurrentUserId ) ; } else { android.util.Log.i ( com.android.server.wifi.WifiConfigManager.TAG , "Waiting for user unlock to load from store" ) ; } }

Target:
private void handleUserUnlockOrSwitch ( int userId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Loading from store after user switch/unlock for " + userId ) ) ; } if ( loadFromUserStoreAfterUnlockOrSwitch ( userId ) ) { saveToStore ( true ) ; mPendingUnlockStoreRead = false ; } }
Source:
public java.util.Set < java.lang.String > getApplicableFilters ( ) { if ( ! ( enable ) ) { return java.util.Collections.singleton ( null ) ; } java.util.Set < java.lang.String > results = com.google.common.collect.Sets.newHashSetWithExpectedSize ( values.size ( ) ) ; for ( java.lang.String value : values ) { if ( allowedValues.contains ( value ) ) { results.add ( value ) ; } } return results ; }

Target:
public java.util.Set < java.lang.String > getApplicableFilters ( ) { if ( ! ( enable ) ) { return java.util.Collections.emptySet ( ) ; } java.util.Set < java.lang.String > results = com.google.common.collect.Sets.newHashSetWithExpectedSize ( values.size ( ) ) ; for ( java.lang.String value : values ) { if ( allowedValues.contains ( value ) ) { results.add ( value ) ; } } return results ; }
Source:
private java.lang.String parseLicense ( org.w3c.dom.Node packageNode , java.util.Map < java.lang.String , java.lang.String > licenses ) { org.w3c.dom.Node usesLicense = com.android.sdklib.internal.repository.XmlParserUtils.getFirstChild ( packageNode , SdkRepository.NODE_USES_LICENSE ) ; if ( usesLicense != null ) { org.w3c.dom.Node ref = usesLicense.getAttributes ( ) . getNamedItem ( SdkRepository.ATTR_REF ) ; if ( ref != null ) { java.lang.String licenseRef = ref.getNodeValue ( ) ; return licenses.get ( licenseRef ) ; } } return null ; }

Target:
private java.lang.String parseLicense ( org.w3c.dom.Node packageNode , java.util.Map < java.lang.String , java.lang.String > licenses ) { org.w3c.dom.Node usesLicense = com.android.sdklib.internal.repository.XmlParserUtils.getFirstChild ( packageNode , SdkRepoConstants.NODE_USES_LICENSE ) ; if ( usesLicense != null ) { org.w3c.dom.Node ref = usesLicense.getAttributes ( ) . getNamedItem ( SdkRepoConstants.ATTR_REF ) ; if ( ref != null ) { java.lang.String licenseRef = ref.getNodeValue ( ) ; return licenses.get ( licenseRef ) ; } } return null ; }
Source:
private void sendAck ( ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_RESPONSE_ACKNOWLEDGEMENT , null ) ; acquireWakeLock ( rr , com.android.internal.telephony.RIL.FOR_ACK_WAKELOCK ) ; android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( ) ; if ( radioProxy != null ) { try { radioProxy.responseAcknowledgement ( ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { resetProxyAndRequestList ( ) ; riljLoge ( "sendAck" , e ) ; } } else { android.telephony.Rlog.e ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , "Error trying to send ack, radioProxy = null" ) ; } rr.release ( ) ; }

Target:
private void sendAck ( ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_RESPONSE_ACKNOWLEDGEMENT , null , mRILDefaultWorkSource ) ; acquireWakeLock ( rr , com.android.internal.telephony.RIL.FOR_ACK_WAKELOCK ) ; android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( null ) ; if ( radioProxy != null ) { try { radioProxy.responseAcknowledgement ( ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { resetProxyAndRequestList ( ) ; riljLoge ( "sendAck" , e ) ; } } else { android.telephony.Rlog.e ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , "Error trying to send ack, radioProxy = null" ) ; } rr.release ( ) ; }
Source:
private void destroy ( android.support.rastermill.FrameSequenceDrawable.BitmapProvider bitmapProvider ) { if ( bitmapProvider == null ) { throw new java.lang.IllegalStateException ( "BitmapProvider must be non-null" ) ; } android.graphics.Bitmap bitmapToReleaseA ; android.graphics.Bitmap bitmapToReleaseB ; synchronized ( mLock ) { checkDestroyedLocked ( ) ; bitmapToReleaseA = mFrontBitmap ; bitmapToReleaseB = mBackBitmap ; mFrontBitmap = null ; mBackBitmap = null ; mDestroyed = true ; } bitmapProvider.releaseBitmap ( bitmapToReleaseA ) ; bitmapProvider.releaseBitmap ( bitmapToReleaseB ) ; }

Target:
public void destroy ( ) { if ( ( mBitmapProvider ) == null ) { throw new java.lang.IllegalStateException ( "BitmapProvider must be non-null" ) ; } android.graphics.Bitmap bitmapToReleaseA ; android.graphics.Bitmap bitmapToReleaseB = null ; synchronized ( mLock ) { checkDestroyedLocked ( ) ; bitmapToReleaseA = mFrontBitmap ; mFrontBitmap = null ; if ( ( mState ) != ( android.support.rastermill.FrameSequenceDrawable.STATE_DECODING ) ) { bitmapToReleaseB = mBackBitmap ; mBackBitmap = null ; } mDestroyed = true ; } mBitmapProvider.releaseBitmap ( bitmapToReleaseA ) ; if ( bitmapToReleaseB != null ) { mBitmapProvider.releaseBitmap ( bitmapToReleaseB ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mUserId = getPrimaryUser ( ) ; if ( mHasFeature ) { installAppAsUser ( com.android.cts.devicepolicy.ProfileOwnerTest.PROFILE_OWNER_APK , mUserId ) ; assertTrue ( "Failed to set profile owner" , setProfileOwner ( ( ( ( com.android.cts.devicepolicy.ProfileOwnerTest.PROFILE_OWNER_PKG ) + "/" ) + ( com.android.cts.devicepolicy.ProfileOwnerTest.ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId , false ) ) ; } }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mUserId = getPrimaryUser ( ) ; if ( mHasFeature ) { installAppAsUser ( com.android.cts.devicepolicy.ProfileOwnerTest.PROFILE_OWNER_APK , mUserId ) ; if ( ! ( setProfileOwner ( ( ( ( com.android.cts.devicepolicy.ProfileOwnerTest.PROFILE_OWNER_PKG ) + "/" ) + ( com.android.cts.devicepolicy.ProfileOwnerTest.ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId , false ) ) ) { removeAdmin ( ( ( ( com.android.cts.devicepolicy.ProfileOwnerTest.PROFILE_OWNER_PKG ) + "/" ) + ( com.android.cts.devicepolicy.ProfileOwnerTest.ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId ) ; getDevice ( ) . uninstallPackage ( com.android.cts.devicepolicy.ProfileOwnerTest.PROFILE_OWNER_PKG ) ; fail ( "Failed to set profile owner" ) ; } } }
Source:
public java.lang.Object [ ] getChildren ( java.lang.Object element ) { if ( element instanceof com.android.hierarchyviewerlib.device.ViewNode ) { java.util.List < com.android.hierarchyviewerlib.device.ViewNode > children = ( ( com.android.hierarchyviewerlib.device.ViewNode ) ( element ) ) . children ; return children.toArray ( new com.android.hierarchyviewerlib.device.ViewNode [ children.size ( ) ] ) ; } return null ; }

Target:
public java.lang.Object [ ] getChildren ( java.lang.Object element ) { if ( element instanceof com.android.hierarchyviewerlib.models.ViewNode ) { java.util.List < com.android.hierarchyviewerlib.models.ViewNode > children = ( ( com.android.hierarchyviewerlib.models.ViewNode ) ( element ) ) . children ; return children.toArray ( new com.android.hierarchyviewerlib.models.ViewNode [ children.size ( ) ] ) ; } return null ; }
Source:
public void processIntent ( android.content.Intent intent , java.lang.String callingPackageName , boolean canCallNonEmergency ) { if ( ! ( isVoiceCapable ( ) ) ) { return ; } java.lang.String action = intent.getAction ( ) ; if ( ( ( Intent.ACTION_CALL.equals ( action ) ) || ( Intent.ACTION_CALL_PRIVILEGED.equals ( action ) ) ) || ( Intent.ACTION_CALL_EMERGENCY.equals ( action ) ) ) { processOutgoingCallIntent ( intent , callingPackageName , canCallNonEmergency ) ; } }

Target:
public void processIntent ( android.content.Intent intent , java.lang.String callingPackageName , boolean canCallNonEmergency , boolean isLocalInvocation ) { if ( ! ( isVoiceCapable ( ) ) ) { return ; } java.lang.String action = intent.getAction ( ) ; if ( ( ( Intent.ACTION_CALL.equals ( action ) ) || ( Intent.ACTION_CALL_PRIVILEGED.equals ( action ) ) ) || ( Intent.ACTION_CALL_EMERGENCY.equals ( action ) ) ) { processOutgoingCallIntent ( intent , callingPackageName , canCallNonEmergency , isLocalInvocation ) ; } }
Source:
public static void unzip ( @ javax.annotation.Nonnull java.io.File jarfile , @ javax.annotation.Nonnull java.io.File outputFolder ) { java.lang.String [ ] args = new java.lang.String [ ] { "unzip" , "-qo" , jarfile.getAbsolutePath ( ) , "-d" , outputFolder.getAbsolutePath ( ) } ; com.android.jack.test.util.ExecuteFile execFile = new com.android.jack.test.util.ExecuteFile ( args ) ; try { if ( ( execFile.run ( ) ) != 0 ) { throw new java.lang.RuntimeException ( "Unzip exited with an error" ) ; } } catch ( com.android.jack.test.util.ExecFileException e ) { throw new java.lang.RuntimeException ( "An error occurred while running unzip" , e ) ; } }

Target:
public static void unzip ( @ javax.annotation.Nonnull java.io.File jarfile , @ javax.annotation.Nonnull java.io.File outputFolder ) { java.lang.String [ ] commandLine = new java.lang.String [ ] { "unzip" , "-qo" , jarfile.getAbsolutePath ( ) , "-d" , outputFolder.getAbsolutePath ( ) } ; com.android.jack.test.util.ExecuteFile execFile = new com.android.jack.test.util.ExecuteFile ( commandLine ) ; try { if ( ( execFile.run ( ) ) != 0 ) { throw new java.lang.RuntimeException ( "Unzip exited with an error" ) ; } } catch ( com.android.jack.test.util.ExecFileException e ) { throw new java.lang.RuntimeException ( "An error occurred while running unzip" , e ) ; } }
Source:
protected void addTab ( java.lang.String title , final org.gradle.api.Action < org.gradle.api.internal.html.SimpleHtmlWriter > contentRenderer ) { tabsRenderer.add ( title , new org.gradle.reporting.ReportRenderer < T , org.gradle.api.internal.html.SimpleHtmlWriter > ( ) { @ java.lang.Override public void render ( T model , org.gradle.api.internal.html.SimpleHtmlWriter writer ) { contentRenderer.execute ( writer ) ; } } ) ; }

Target:
protected void addTab ( java.lang.String title , final org.gradle.api.Action < com.android.build.gradle.internal.test.report.SimpleHtmlWriter > contentRenderer ) { tabsRenderer.add ( title , new org.gradle.reporting.ReportRenderer < T , com.android.build.gradle.internal.test.report.SimpleHtmlWriter > ( ) { @ java.lang.Override public void render ( T model , com.android.build.gradle.internal.test.report.SimpleHtmlWriter writer ) { contentRenderer.execute ( writer ) ; } } ) ; }
Source:
protected void collect ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType type ) { if ( type instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) { typesToVisit.add ( ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( type ) ) ) ; } }

Target:
protected void collect ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType type ) { if ( type instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) { typesToVisit.add ( ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( type ) ) ) ; } else if ( type instanceof com.android.jack.ir.ast.JPhantomClassOrInterface ) { phantomsToRemap.add ( ( ( com.android.jack.ir.ast.JPhantomClassOrInterface ) ( type ) ) ) ; } }
Source:
public java.io.ObjectOutputStream.PutField putFields ( ) throws java.io.IOException { if ( ( curPut ) == null ) { if ( ( curContext ) == null ) { throw new java.io.NotActiveException ( "not in call to writeObject" ) ; } java.lang.Object curObj = curContext.getObj ( ) ; java.io.ObjectStreamClass curDesc = curContext.getDesc ( ) ; curPut = new java.io.ObjectOutputStream.PutFieldImpl ( curDesc ) ; } return curPut ; }

Target:
public java.io.ObjectOutputStream.PutField putFields ( ) throws java.io.IOException { if ( ( curPut ) == null ) { java.io.SerialCallbackContext ctx = curContext ; if ( ctx == null ) { throw new java.io.NotActiveException ( "not in call to writeObject" ) ; } java.lang.Object curObj = ctx.getObj ( ) ; java.io.ObjectStreamClass curDesc = ctx.getDesc ( ) ; curPut = new java.io.ObjectOutputStream.PutFieldImpl ( curDesc ) ; } return curPut ; }
Source:
public void setUp ( int repoXsdLevel ) throws java.lang.Exception { mRepoXsdLevel = repoXsdLevel ; mLog = new com.android.sdklib.mock.MockLog ( ) ; makeFakeAndroidHome ( ) ; makeFakeSdk ( ) ; mSdkManager = com.android.sdklib.SdkManager.createManager ( mFakeSdk.getAbsolutePath ( ) , mLog ) ; assertNotNull ( "SdkManager location was invalid" , mSdkManager ) ; mAvdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager.getLocalSdk ( ) , mLog ) ; }

Target:
public void setUp ( int repoXsdLevel ) throws java.lang.Exception { super . setUp ( ) ; mRepoXsdLevel = repoXsdLevel ; mLog = new com.android.sdklib.mock.MockLog ( ) ; makeFakeSdk ( ) ; createSdkAvdManagers ( ) ; }
Source:
public static boolean isObjectSelected ( java.lang.Object object ) { boolean match = false ; java.lang.String s = java.lang.System.getenv ( "ANDROID_OBJECT_FILTER" ) ; if ( ( s != null ) && ( ( s.length ( ) ) > 0 ) ) { java.lang.String [ ] selectors = s.split ( "@" ) ; if ( object.getClass ( ) . getSimpleName ( ) . matches ( selectors [ 0 ] ) ) { for ( int i = 1 ; i < ( selectors.length ) ; i ++ ) { java.lang.String [ ] pair = selectors [ i ] . split ( "=" ) ; java.lang.Class < ? > klass = object.getClass ( ) ; try { java.lang.reflect.Method declaredMethod = null ; java.lang.Class < ? > parent = klass ; do { declaredMethod = parent.getDeclaredMethod ( ( ( "get" + ( pair [ 0 ] . substring ( 0 , 1 ) . toUpperCase ( ) ) ) + ( pair [ 0 ] . substring ( 1 ) ) ) , ( ( java.lang.Class [ ] ) ( null ) ) ) ; } while ( ( ( parent = klass.getSuperclass ( ) ) != null ) && ( declaredMethod == null ) ) ; if ( declaredMethod != null ) { java.lang.Object value = declaredMethod.invoke ( object , ( ( java.lang.Object [ ] ) ( null ) ) ) ; match |= ( value != null ? value.toString ( ) : "null" ) . matches ( pair [ 1 ] ) ; } } catch ( java.lang.NoSuchMethodException e ) { e.printStackTrace ( ) ; } catch ( java.lang.IllegalAccessException e ) { e.printStackTrace ( ) ; } catch ( java.lang.reflect.InvocationTargetException e ) { e.printStackTrace ( ) ; } } } } return match ; }

Target:
public static boolean isObjectSelected ( java.lang.Object object ) { boolean match = false ; java.lang.String s = java.lang.System.getenv ( "ANDROID_OBJECT_FILTER" ) ; if ( ( s != null ) && ( ( s.length ( ) ) > 0 ) ) { java.lang.String [ ] selectors = s.split ( "@" ) ; if ( object.getClass ( ) . getSimpleName ( ) . matches ( selectors [ 0 ] ) ) { for ( int i = 1 ; i < ( selectors.length ) ; i ++ ) { java.lang.String [ ] pair = selectors [ i ] . split ( "=" ) ; java.lang.Class < ? > klass = object.getClass ( ) ; try { java.lang.reflect.Method declaredMethod = null ; java.lang.Class < ? > parent = klass ; do { declaredMethod = parent.getDeclaredMethod ( ( ( "get" + ( pair [ 0 ] . substring ( 0 , 1 ) . toUpperCase ( java.util.Locale.ROOT ) ) ) + ( pair [ 0 ] . substring ( 1 ) ) ) , ( ( java.lang.Class [ ] ) ( null ) ) ) ; } while ( ( ( parent = klass.getSuperclass ( ) ) != null ) && ( declaredMethod == null ) ) ; if ( declaredMethod != null ) { java.lang.Object value = declaredMethod.invoke ( object , ( ( java.lang.Object [ ] ) ( null ) ) ) ; match |= ( value != null ? value.toString ( ) : "null" ) . matches ( pair [ 1 ] ) ; } } catch ( java.lang.NoSuchMethodException e ) { e.printStackTrace ( ) ; } catch ( java.lang.IllegalAccessException e ) { e.printStackTrace ( ) ; } catch ( java.lang.reflect.InvocationTargetException e ) { e.printStackTrace ( ) ; } } } } return match ; }
Source:
private long readId ( java.io.DataInputStream stream ) throws java.io.IOException { switch ( mIdSize ) { case 1 : return stream.readUnsignedByte ( ) ; case 2 : return stream.readUnsignedShort ( ) ; case 4 : return com.google.common.primitives.UnsignedInts.toLong ( stream.readInt ( ) ) ; case 8 : return stream.readLong ( ) ; } throw new java.lang.IllegalArgumentException ( "ID Length must be 1, 2, 4, or 8" ) ; }

Target:
private long readId ( ) throws java.io.IOException { switch ( mIdSize ) { case 1 : return mInput.readByte ( ) ; case 2 : return mInput.readShort ( ) ; case 4 : return mInput.readInt ( ) ; case 8 : return mInput.readLong ( ) ; } throw new java.lang.IllegalArgumentException ( "ID Length must be 1, 2, 4, or 8" ) ; }
Source:
private void onSetPolicyDataEnabled ( boolean enabled ) { synchronized ( mDataEnabledSettings ) { final boolean prevEnabled = getAnyDataEnabled ( ) ; if ( ( mDataEnabledSettings.isPolicyDataEnabled ( ) ) != enabled ) { mDataEnabledSettings.setPolicyDataEnabled ( enabled ) ; if ( prevEnabled != ( getAnyDataEnabled ( ) ) ) { if ( ! prevEnabled ) { reevaluateDataConnections ( ) ; onTrySetupData ( Phone.REASON_DATA_ENABLED ) ; } else { onCleanUpAllConnections ( Phone.REASON_DATA_SPECIFIC_DISABLED ) ; } } } } }

Target:
private void onSetPolicyDataEnabled ( boolean enabled ) { synchronized ( mDataEnabledSettings ) { final boolean prevEnabled = isDataEnabled ( ) ; if ( ( mDataEnabledSettings.isPolicyDataEnabled ( ) ) != enabled ) { mDataEnabledSettings.setPolicyDataEnabled ( enabled ) ; if ( prevEnabled != ( isDataEnabled ( ) ) ) { if ( ! prevEnabled ) { reevaluateDataConnections ( ) ; onTrySetupData ( Phone.REASON_DATA_ENABLED ) ; } else { onCleanUpAllConnections ( Phone.REASON_DATA_SPECIFIC_DISABLED ) ; } } } } }
Source:
private static android.database.MatrixCursor createHeaderCursor ( android.content.Context context , java.lang.String name , long id ) { android.database.MatrixCursor headerCursor = new android.database.MatrixCursor ( com.android.dialer.searchfragment.directories.DirectoryContactsCursor.PROJECTION , 1 ) ; if ( com.android.dialer.common.cp2.DirectoryCompat.isOnlyEnterpriseDirectoryId ( id ) ) { headerCursor.addRow ( new java.lang.Object [ ] { context.getString ( R.string.directory_search_label_work ) , id } ) ; } else { headerCursor.addRow ( new java.lang.Object [ ] { context.getString ( R.string.directory , name ) , id } ) ; } return headerCursor ; }

Target:
private static android.database.MatrixCursor createHeaderCursor ( android.content.Context context , java.lang.String name , long id ) { android.database.MatrixCursor headerCursor = new android.database.MatrixCursor ( com.android.dialer.searchfragment.directories.DirectoryContactsCursor.PROJECTION , 1 ) ; if ( com.android.dialer.common.cp2.DirectoryUtils.isLocalEnterpriseDirectoryId ( id ) ) { headerCursor.addRow ( new java.lang.Object [ ] { context.getString ( R.string.directory_search_label_work ) , id } ) ; } else { headerCursor.addRow ( new java.lang.Object [ ] { context.getString ( R.string.directory , name ) , id } ) ; } return headerCursor ; }
Source:
public void testE3 ( ) { dot.junit.opcodes.aget_wide.d.T_aget_wide_1 t = new dot.junit.opcodes.aget_wide.d.T_aget_wide_1 ( ) ; long [ ] arr = new long [ 2 ] ; try { t.run ( arr , ( - 1 ) ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE3 ( ) { loadAndRun ( "dot.junit.opcodes.aget_wide.d.T_aget_wide_1" , java.lang.ArrayIndexOutOfBoundsException.class , new long [ 2 ] , ( - 1 ) ) ; }
Source:
private com.intellij.openapi.vfs.VirtualFile addLibrary ( final com.intellij.openapi.module.Module m , final com.intellij.roots.DependencyScope scope ) { final com.intellij.openapi.vfs.VirtualFile libraryRoot = myFixture.findOrCreateDir ( "lib" ) ; com.intellij.roots.ModuleRootModificationUtil.addModuleLibrary ( m , "l" , java.util.Collections.singletonList ( libraryRoot.getUrl ( ) ) , java.util.Collections.< java.lang.String > emptyList ( ) , scope ) ; return libraryRoot ; }

Target:
private com.intellij.openapi.vfs.VirtualFile addLibrary ( final com.intellij.openapi.module.Module m , final com.intellij.openapi.roots.DependencyScope scope ) { final com.intellij.openapi.vfs.VirtualFile libraryRoot = myFixture.findOrCreateDir ( "lib" ) ; com.intellij.openapi.roots.ModuleRootModificationUtil.addModuleLibrary ( m , "l" , java.util.Collections.singletonList ( libraryRoot.getUrl ( ) ) , java.util.Collections.< java.lang.String > emptyList ( ) , scope ) ; return libraryRoot ; }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.conscrypt.NativeCrypto.SSL_renegotiate ( s ) ; org.conscrypt.NativeCrypto.SSL_write ( s , fd , callback , new byte [ ] { 42 } , 0 , 1 , 0 ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_renegotiate ( s ) ; org.junit.Assert.fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_write ( s , fd , callback , new byte [ ] { 42 } , 0 , 1 , 0 ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
private java.lang.String getPathToApks ( org.jetbrains.android.run.AndroidRunningState runningState ) { java.lang.String buildPath = ( runningState.getFacet ( ) . getModule ( ) . getModuleFile ( ) . getParent ( ) . getPath ( ) ) + "/build" ; java.io.File buildFolder = new java.io.File ( buildPath ) ; for ( java.lang.String subFolder : buildFolder.list ( ) ) { if ( subFolder.equals ( "apk" ) ) { return buildPath + "/apk/" ; } } return buildPath + "/outputs/apk/" ; }

Target:
private java.util.List < java.lang.String > getApkPaths ( org.jetbrains.android.run.AndroidRunningState runningState ) { java.lang.String buildPath = ( runningState.getFacet ( ) . getModule ( ) . getModuleFile ( ) . getParent ( ) . getPath ( ) ) + "/build" ; java.util.List < java.lang.String > apkPaths = new java.util.LinkedList < java.lang.String > ( ) ; addPathIfExists ( apkPaths , ( buildPath + "/apk/" ) ) ; addPathIfExists ( apkPaths , ( buildPath + "/outputs/apk/" ) ) ; return apkPaths ; }
Source:
com.android.jack.ir.ast.JDefinedClassOrInterface load ( ) throws com.android.jack.library.LibraryFormatException , com.android.jack.library.LibraryIOException { if ( ( defaultLoadLevel ) == ( NodeLevel.TYPES ) ) { tracer.getStatistic ( com.android.jack.jayce.JayceClassOrInterfaceLoader.NNODE_MINI_LOAD ) . incValue ( ) ; } com.android.jack.jayce.DeclaredTypeNode type = getNNode ( NodeLevel.TYPES ) ; assert checkName ( type.getSignature ( ) ) ; com.android.jack.ir.ast.JDefinedClassOrInterface jType = type.create ( enclosingPackage , this ) ; return jType ; }

Target:
com.android.jack.ir.ast.JDefinedClassOrInterface load ( ) throws com.android.jack.library.LibraryFormatException , com.android.jack.library.LibraryIOException { if ( ( defaultLoadLevel ) == ( NodeLevel.TYPES ) ) { tracer.getStatistic ( com.android.jack.jayce.JayceClassOrInterfaceLoader.NNODE_TYPE_LOAD ) . incValue ( ) ; } com.android.jack.jayce.DeclaredTypeNode type = getNNode ( NodeLevel.TYPES ) ; assert checkName ( type.getSignature ( ) ) ; com.android.jack.ir.ast.JDefinedClassOrInterface jType = type.create ( enclosingPackage , this ) ; return jType ; }
Source:
public void onUnblockComplete ( int rows , final android.content.ContentValues values ) { final android.view.View.OnClickListener undoListener = new android.view.View.OnClickListener ( ) { @ java.lang.Override public void onClick ( android.view.View view ) { com.android.dialer.logging.Logger.get ( applicationContext ) . logInteraction ( InteractionEvent.Type.UNDO_UNBLOCK_NUMBER ) ; handler.blockNumber ( onUndoListener , values ) ; } } ; android.support.design.widget.Snackbar.make ( parentView , message , Snackbar.LENGTH_LONG ) . setAction ( R.string.block_number_undo , undoListener ) . setActionTextColor ( actionTextColor ) . show ( ) ; if ( callback != null ) { callback.onUnfilterNumberSuccess ( ) ; } }

Target:
public void onUnblockComplete ( int rows , final android.content.ContentValues values ) { final android.view.View.OnClickListener undoListener = new android.view.View.OnClickListener ( ) { @ java.lang.Override public void onClick ( android.view.View view ) { com.android.dialer.logging.Logger.get ( applicationContext ) . logInteraction ( InteractionEvent.Type.UNDO_UNBLOCK_NUMBER ) ; handler.blockNumber ( onUndoListener , values ) ; } } ; android.support.design.widget.Snackbar.make ( parentView , message , Snackbar.LENGTH_LONG ) . setAction ( R.string.snackbar_undo , undoListener ) . setActionTextColor ( actionTextColor ) . show ( ) ; if ( callback != null ) { callback.onUnfilterNumberSuccess ( ) ; } }
Source:
public void copyFrom ( int [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFrom" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFromUnchecked ( int [ ] d ) { copyFromUnchecked ( d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public int hashCode ( ) { return ( ( ( ( ( markClasses ? 0 : 1 ) ^ ( markConditionally ? 0 : 2 ) ) ^ ( allowShrinking ? 0 : 4 ) ) ^ ( allowOptimization ? 0 : 8 ) ) ^ ( allowObfuscation ? 0 : 16 ) ) ^ ( super . hashCode ( ) ) ; }

Target:
public int hashCode ( ) { return ( ( ( ( ( ( markClasses ? 0 : 1 ) ^ ( markConditionally ? 0 : 2 ) ) ^ ( markDescriptorClasses ? 0 : 4 ) ) ^ ( allowShrinking ? 0 : 8 ) ) ^ ( allowOptimization ? 0 : 16 ) ) ^ ( allowObfuscation ? 0 : 32 ) ) ^ ( super . hashCode ( ) ) ; }
Source:
public void testInvalidPackage ( ) throws java.lang.Exception { boolean output = false ; setupTestCase ( ) ; com.android.server.wifi.util.WifiPermissionsUtil codeUnderTest = new com.android.server.wifi.util.WifiPermissionsUtil ( mMockPermissionsWrapper , mMockContext , mMockWifiSettingsStore , mMockUserManager ) ; try { output = codeUnderTest.canAccessScanResults ( com.android.server.wifi.util.WifiPermissionsUtilTest.TEST_PACKAGE_NAME , mUid , mTargetVersion ) ; } catch ( java.lang.SecurityException e ) { throw e ; } }

Target:
public void testCannotAccessScanResults_NoCoarseLocationPermission ( ) throws java.lang.Exception { boolean output = true ; mThrowSecurityException = false ; mLocationModeSetting = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY ; setupTestCase ( ) ; com.android.server.wifi.util.WifiPermissionsUtil codeUnderTest = new com.android.server.wifi.util.WifiPermissionsUtil ( mMockPermissionsWrapper , mMockContext , mMockWifiSettingsStore , mMockUserManager , mNetworkScorerAppManager ) ; try { output = codeUnderTest.canAccessScanResults ( com.android.server.wifi.util.WifiPermissionsUtilTest.TEST_PACKAGE_NAME , mUid , mTargetVersion ) ; } catch ( java.lang.SecurityException e ) { throw e ; } org.junit.Assert.assertEquals ( output , false ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException { util.build.BuildDalvikSuite.parseArgs ( args ) ; long start = java.lang.System.currentTimeMillis ( ) ; util.build.BuildDalvikSuite cat = new util.build.BuildDalvikSuite ( false ) ; cat.compose ( ) ; long end = java.lang.System.currentTimeMillis ( ) ; java.lang.System.out.println ( ( "elapsed seconds: " + ( ( end - start ) / 1000 ) ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException { if ( ! ( util.build.BuildDalvikSuite.parseArgs ( args ) ) ) { util.build.BuildDalvikSuite.printUsage ( ) ; java.lang.System.exit ( ( - 1 ) ) ; } long start = java.lang.System.currentTimeMillis ( ) ; util.build.BuildDalvikSuite cat = new util.build.BuildDalvikSuite ( false ) ; cat.compose ( ) ; long end = java.lang.System.currentTimeMillis ( ) ; java.lang.System.out.println ( ( "elapsed seconds: " + ( ( end - start ) / 1000 ) ) ) ; }
Source:
public void run ( ) { final com.android.systemui.qs.QSTile.State state = tile.newTileState ( ) ; tile.getState ( ) . copyTo ( state ) ; state.label = tile.getTileLabel ( ) ; mainHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { addTile ( spec , null , state , true ) ; mListener.onTilesChanged ( mTiles ) ; } } ) ; }

Target:
public void run ( ) { final com.android.systemui.qs.QSTile.State state = tile.newTileState ( ) ; tile.getState ( ) . copyTo ( state ) ; state.label = tile.getTileLabel ( ) ; tile.destroy ( ) ; mainHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { addTile ( spec , null , state , true ) ; mListener.onTilesChanged ( mTiles ) ; } } ) ; }
Source:
public int [ ] blend ( int [ ] src , int [ ] dst ) { return src ; }

Target:
public int [ ] blend ( int [ ] src , int [ ] dst , int [ ] result ) { java.lang.System.arraycopy ( dst , 0 , result , 0 , 3 ) ; result [ 3 ] = java.lang.Math.min ( 255 , ( ( src [ 3 ] ) + ( dst [ 3 ] ) ) ) ; return result ; }
Source:
public static void checkContent ( @ com.android.annotations.NonNull java.io.File archive , @ com.android.annotations.NonNull java.lang.String path , @ com.android.annotations.NonNull java.lang.String content ) throws java.io.IOException { java.util.Map < java.lang.String , java.lang.String > pathToContent = java.util.Collections.singletonMap ( path , content ) ; com.android.build.gradle.integration.common.utils.ZipHelper.checkArchive ( archive , pathToContent , com.google.common.collect.ImmutableSet.< java.lang.String > of ( ) ) ; }

Target:
public static void checkContent ( @ com.android.annotations.NonNull java.io.File archive , @ com.android.annotations.NonNull java.lang.String path , @ com.android.annotations.NonNull java.lang.String content ) throws java.io.IOException { java.util.Map < java.lang.String , byte [ ] > pathToContent = java.util.Collections.singletonMap ( path , content.getBytes ( com.google.common.base.Charsets.UTF_8 ) ) ; com.android.build.gradle.integration.common.utils.ZipHelper.checkArchive ( archive , pathToContent , com.google.common.collect.ImmutableSet.< java.lang.String > of ( ) , true ) ; }
Source:
private void processRemovedNoMediaPath ( final java.lang.String path ) { final com.android.providers.media.MediaProvider.DatabaseHelper helper ; if ( path.startsWith ( com.android.providers.media.MediaProvider.mExternalStoragePaths [ 0 ] ) ) { helper = getDatabaseForUri ( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI ) ; } else { helper = getDatabaseForUri ( MediaStore.Audio.Media.INTERNAL_CONTENT_URI ) ; } android.database.sqlite.SQLiteDatabase db = helper.getWritableDatabase ( ) ; new com.android.providers.media.MediaProvider.ScannerClient ( getContext ( ) , db , path ) ; }

Target:
private void processRemovedNoMediaPath ( final java.lang.String path ) { android.media.MediaScanner.clearMediaPathCache ( false , true ) ; final com.android.providers.media.MediaProvider.DatabaseHelper helper ; if ( path.startsWith ( com.android.providers.media.MediaProvider.mExternalStoragePaths [ 0 ] ) ) { helper = getDatabaseForUri ( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI ) ; } else { helper = getDatabaseForUri ( MediaStore.Audio.Media.INTERNAL_CONTENT_URI ) ; } android.database.sqlite.SQLiteDatabase db = helper.getWritableDatabase ( ) ; new com.android.providers.media.MediaProvider.ScannerClient ( getContext ( ) , db , path ) ; }