auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testSetTempFileDirectory ( ) throws java.lang.Exception { java.lang.String tempFileDirName = "CTSTestDir" ; java.io.File tempFileRootDirectory = new java.io.File ( mContext.getFilesDir ( ) , tempFileDirName ) ; tempFileRootDirectory.mkdirs ( ) ; mDownloadSession.setTempFileRootDirectory ( tempFileRootDirectory ) ; java.util.List < android.os.Bundle > setTempRootCalls = getMiddlewareCalls ( CtsDownloadService.METHOD_SET_TEMP_FILE_ROOT ) ; assertEquals ( 1 , setTempRootCalls.size ( ) ) ; assertEquals ( tempFileRootDirectory.getCanonicalPath ( ) , setTempRootCalls.get ( 0 ) . getString ( CtsDownloadService.ARGUMENT_ROOT_DIRECTORY_PATH ) ) ; }

Target:
public void testSetTempFileDirectory ( ) throws java.lang.Exception { java.lang.String tempFileDirName = "CTSTestDir" ; java.io.File tempFileRootDirectory = new java.io.File ( mContext.getFilesDir ( ) , tempFileDirName ) ; tempFileRootDirectory.mkdirs ( ) ; mDownloadSession.setTempFileRootDirectory ( tempFileRootDirectory ) ; java.util.List < android.os.Bundle > setTempRootCalls = getMiddlewareCalls ( CtsDownloadService.METHOD_SET_TEMP_FILE_ROOT ) ; assertEquals ( 1 , setTempRootCalls.size ( ) ) ; assertEquals ( tempFileRootDirectory.getCanonicalPath ( ) , setTempRootCalls.get ( 0 ) . getString ( CtsDownloadService.ARGUMENT_ROOT_DIRECTORY_PATH ) ) ; tempFileRootDirectory.delete ( ) ; }
Source:
private void mergeField ( org.w3c.dom.Element item , java.lang.String containingClass , java.lang.String fieldName ) { com.android.tools.lint.ExternalAnnotationRepository.FieldInfo field = createField ( containingClass , fieldName ) ; java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > annotations = createAnnotations ( item ) ; if ( ( field.annotations ) == null ) { field.annotations = com.google.common.collect.Lists.newArrayListWithExpectedSize ( annotations.size ( ) ) ; } field.annotations.addAll ( annotations ) ; }

Target:
private void mergeField ( org.w3c.dom.Element item , java.lang.String containingClass , java.lang.String fieldName ) { com.android.tools.lint.ExternalAnnotationRepository.FieldInfo field = createField ( containingClass , fieldName ) ; java.util.List < com.intellij.psi.PsiAnnotation > annotations = createAnnotations ( item ) ; if ( ( field.psiAnnotations ) == null ) { field.psiAnnotations = com.google.common.collect.Lists.newArrayListWithExpectedSize ( annotations.size ( ) ) ; } field.psiAnnotations.addAll ( annotations ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { Main.testFindClassOnAttachedNativeThread ( ) ; Main.testFindFieldOnAttachedNativeThread ( ) ; Main.testCallStaticVoidMethodOnSubClass ( ) ; Main.testGetMirandaMethod ( ) ; Main.testZeroLengthByteBuffers ( ) ; Main.testByteMethod ( ) ; Main.testShortMethod ( ) ; Main.testBooleanMethod ( ) ; Main.testCharMethod ( ) ; Main.testEnvironment ( ) ; Main.testNewStringObject ( ) ; Main.testSignalHandler ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main.testFindClassOnAttachedNativeThread ( ) ; Main.testFindFieldOnAttachedNativeThread ( ) ; Main.testCallStaticVoidMethodOnSubClass ( ) ; Main.testGetMirandaMethod ( ) ; Main.testZeroLengthByteBuffers ( ) ; Main.testByteMethod ( ) ; Main.testShortMethod ( ) ; Main.testBooleanMethod ( ) ; Main.testCharMethod ( ) ; Main.testEnvironment ( ) ; Main.testNewStringObject ( ) ; Main.testSignalHandler ( ) ; Main.testGetErrorByLoadInvalidLibrary ( ) ; }
Source:
public static com.ibm.icu.text.ScientificFormatHelper getInstance ( com.ibm.icu.text.DecimalFormatSymbols dfs ) { java.lang.StringBuilder preExponent = new java.lang.StringBuilder ( ) ; preExponent.append ( com.ibm.icu.text.ScientificFormatHelper.getMultiplicationSymbol ( dfs ) ) ; char [ ] digits = dfs.getDigits ( ) ; preExponent.append ( digits [ 1 ] ) . append ( digits [ 0 ] ) ; return new com.ibm.icu.text.ScientificFormatHelper ( preExponent.toString ( ) ) ; }

Target:
public static com.ibm.icu.text.ScientificFormatHelper getInstance ( com.ibm.icu.text.DecimalFormatSymbols dfs ) { return new com.ibm.icu.text.ScientificFormatHelper ( com.ibm.icu.text.ScientificNumberFormatter.getPreExponent ( dfs ) ) ; }
Source:
public int download ( android.telephony.mbms.DownloadRequest downloadRequest , android.telephony.mbms.IDownloadProgressListener listener ) throws android.os.RemoteException { return 0 ; }

Target:
public final int download ( android.telephony.mbms.DownloadRequest downloadRequest , android.telephony.mbms.IDownloadProgressListener listener ) throws android.os.RemoteException { return download ( downloadRequest , new android.telephony.mbms.DownloadProgressListener ( ) { @ java.lang.Override public void progress ( android.telephony.mbms.DownloadRequest request , android.telephony.mbms.FileInfo fileInfo , int currentDownloadSize , int fullDownloadSize , int currentDecodedSize , int fullDecodedSize ) throws android.os.RemoteException { listener.progress ( request , fileInfo , currentDownloadSize , fullDownloadSize , currentDecodedSize , fullDecodedSize ) ; } } ) ; }
Source:
public void verifyCallbackTrackSelected ( ) { android.media.tv.cts.TvInputServiceTest.CountingTvInputService.CountingSession session = android.media.tv.cts.TvInputServiceTest.CountingTvInputService.sSession ; assertNotNull ( session ) ; session.notifyTrackSelected ( android.media.tv.cts.TvInputServiceTest.mDummyTrack.getType ( ) , android.media.tv.cts.TvInputServiceTest.mDummyTrack.getId ( ) ) ; new android.cts.util.PollingCheck ( android.media.tv.cts.TvInputServiceTest.TIME_OUT ) { @ java.lang.Override protected boolean check ( ) { return ( mCallback.mTrackSelectedCount ) > 0 ; } } . run ( ) ; }

Target:
public void verifyCallbackTrackSelected ( ) { resetCounts ( ) ; android.media.tv.cts.TvInputServiceTest.CountingTvInputService.CountingSession session = android.media.tv.cts.TvInputServiceTest.CountingTvInputService.sSession ; assertNotNull ( session ) ; session.notifyTrackSelected ( android.media.tv.cts.TvInputServiceTest.mDummyTrack.getType ( ) , android.media.tv.cts.TvInputServiceTest.mDummyTrack.getId ( ) ) ; new android.cts.util.PollingCheck ( android.media.tv.cts.TvInputServiceTest.TIME_OUT ) { @ java.lang.Override protected boolean check ( ) { return ( mCallback.mTrackSelectedCount ) > 0 ; } } . run ( ) ; }
Source:
public void loggerFetchesTxFatesEvenIfFetchingRxFatesFails ( ) { final boolean verbosityToggle = true ; org.mockito.Mockito.when ( mWifiNative.getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ) . thenReturn ( false ) ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionFailure ( ) ; org.mockito.Mockito.verify ( mWifiNative ) . getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; }

Target:
public void loggerFetchesTxFatesEvenIfFetchingRxFatesFails ( ) { final boolean verbosityToggle = true ; org.mockito.Mockito.when ( mWifiNative.getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ) . thenReturn ( false ) ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; org.mockito.Mockito.verify ( mWifiNative ) . getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; }
Source:
public void test_SSL_check_private_key_no_key_no_cert ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_check_private_key_no_key_no_cert ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.junit.Assert.fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
protected boolean assertEquals ( java.lang.String message , float expected , float actual , double error ) { boolean result = ( java.lang.Float.isInfinite ( expected ) ) ? expected == actual : ! ( ( java.lang.Math.abs ( ( expected - actual ) ) ) > error ) ; return handleAssert ( result , message , ( ( java.lang.String.valueOf ( expected ) ) + ( error == 0 ? "" : ( " (within " + error ) + ")" ) ) , java.lang.String.valueOf ( actual ) ) ; }

Target:
protected static boolean assertEquals ( java.lang.String message , float expected , float actual , double error ) { boolean result = ( java.lang.Float.isInfinite ( expected ) ) ? expected == actual : ! ( ( java.lang.Math.abs ( ( expected - actual ) ) ) > error ) ; return android.icu.dev.test.TestFmwk.handleAssert ( result , message , ( ( java.lang.String.valueOf ( expected ) ) + ( error == 0 ? "" : ( " (within " + error ) + ")" ) ) , java.lang.String.valueOf ( actual ) ) ; }
Source:
public void getAllowedCarriers ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_ALLOWED_CARRIERS , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } send ( rr ) ; }

Target:
public void getDeviceIdentity ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_DEVICE_IDENTITY , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
private int getClearableCount ( ) { int count = 0 ; if ( mTransferCursor.moveToFirst ( ) ) { while ( ! ( mTransferCursor.isAfterLast ( ) ) ) { int statusColumnId = mTransferCursor.getColumnIndexOrThrow ( BluetoothShare.STATUS ) ; int status = mTransferCursor.getInt ( statusColumnId ) ; if ( com.android.bluetooth.opp.BluetoothShare.isStatusCompleted ( status ) ) { count ++ ; } mTransferCursor.moveToNext ( ) ; } } return count ; }

Target:
private boolean isTransferComplete ( ) { try { if ( mTransferCursor.moveToFirst ( ) ) { while ( ! ( mTransferCursor.isAfterLast ( ) ) ) { int statusColumnId = mTransferCursor.getColumnIndexOrThrow ( BluetoothShare.STATUS ) ; int status = mTransferCursor.getInt ( statusColumnId ) ; if ( com.android.bluetooth.opp.BluetoothShare.isStatusCompleted ( status ) ) { return true ; } mTransferCursor.moveToNext ( ) ; } } } catch ( android.database.StaleDataException e ) { } return false ; }
Source:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
native void rsnAllocationData2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , float [ ] d , int sizeBytes ) ;
Source:
public void testKeyPairGenerator_Initialize_ParamsAndSecureRandom_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mGenerator.initialize ( new android.security.KeyPairGeneratorSpec.Builder ( getContext ( ) ) . setAlias ( android.security.AndroidKeyPairGeneratorTest.TEST_ALIAS_1 ) . setSubject ( android.security.AndroidKeyPairGeneratorTest.TEST_DN_1 ) . setSerialNumber ( android.security.AndroidKeyPairGeneratorTest.TEST_SERIAL_1 ) . setStartDate ( android.security.AndroidKeyPairGeneratorTest.NOW ) . setEndDate ( android.security.AndroidKeyPairGeneratorTest.NOW_PLUS_10_YEARS ) . setEncryptionRequired ( ) . build ( ) , new java.security.SecureRandom ( ) ) ; }

Target:
public void testKeyPairGenerator_Initialize_ParamsAndSecureRandom_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mGenerator.initialize ( new android.security.KeyPairGeneratorSpec.Builder ( getContext ( ) ) . setAlias ( android.security.AndroidKeyPairGeneratorTest.TEST_ALIAS_1 ) . setKeyType ( "RSA" ) . setKeySize ( 1024 ) . setSubject ( android.security.AndroidKeyPairGeneratorTest.TEST_DN_1 ) . setSerialNumber ( android.security.AndroidKeyPairGeneratorTest.TEST_SERIAL_1 ) . setStartDate ( android.security.AndroidKeyPairGeneratorTest.NOW ) . setEndDate ( android.security.AndroidKeyPairGeneratorTest.NOW_PLUS_10_YEARS ) . setEncryptionRequired ( ) . build ( ) , new java.security.SecureRandom ( ) ) ; }
Source:
private void updatePersistThresholds ( ) { mDevRecorder.setPersistThreshold ( mSettings.getDevPersistBytes ( mPersistThreshold ) ) ; mXtRecorder.setPersistThreshold ( mSettings.getXtPersistBytes ( mPersistThreshold ) ) ; mUidRecorder.setPersistThreshold ( mSettings.getUidPersistBytes ( mPersistThreshold ) ) ; mUidTagRecorder.setPersistThreshold ( mSettings.getUidTagPersistBytes ( mPersistThreshold ) ) ; mGlobalAlertBytes = mSettings.getGlobalAlertBytes ( mPersistThreshold ) ; }

Target:
private void updatePersistThresholdsLocked ( ) { mDevRecorder.setPersistThreshold ( mSettings.getDevPersistBytes ( mPersistThreshold ) ) ; mXtRecorder.setPersistThreshold ( mSettings.getXtPersistBytes ( mPersistThreshold ) ) ; mUidRecorder.setPersistThreshold ( mSettings.getUidPersistBytes ( mPersistThreshold ) ) ; mUidTagRecorder.setPersistThreshold ( mSettings.getUidTagPersistBytes ( mPersistThreshold ) ) ; mGlobalAlertBytes = mSettings.getGlobalAlertBytes ( mPersistThreshold ) ; }
Source:
public boolean isMobilePolicySplit ( java.lang.String subscriberId ) { boolean has3g = false ; boolean has4g = false ; for ( android.net.NetworkPolicy policy : mPolicies ) { final android.net.NetworkTemplate template = policy.template ; if ( com.android.internal.util.Objects.equal ( subscriberId , template.getSubscriberId ( ) ) ) { switch ( template.getMatchRule ( ) ) { case android.net.NetworkTemplate.MATCH_MOBILE_3G_LOWER : has3g = true ; break ; case android.net.NetworkTemplate.MATCH_MOBILE_4G : has4g = true ; break ; } } } return has3g && has4g ; }

Target:
public boolean isMobilePolicySplit ( java.lang.String subscriberId ) { boolean has3g = false ; boolean has4g = false ; for ( android.net.NetworkPolicy policy : mPolicies ) { final android.net.NetworkTemplate template = policy.template ; if ( java.util.Objects.equals ( subscriberId , template.getSubscriberId ( ) ) ) { switch ( template.getMatchRule ( ) ) { case android.net.NetworkTemplate.MATCH_MOBILE_3G_LOWER : has3g = true ; break ; case android.net.NetworkTemplate.MATCH_MOBILE_4G : has4g = true ; break ; } } } return has3g && has4g ; }
Source:
private boolean migrateFromLegacyStore ( ) { if ( mWifiConfigStoreLegacy.areStoresPresent ( ) ) { com.android.server.wifi.WifiConfigStoreLegacy.WifiConfigStoreDataLegacy storeData = mWifiConfigStoreLegacy.read ( ) ; android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , "Reading from legacy store completed" ) ; loadInternalData ( storeData.getConfigurations ( ) , storeData.getDeletedEphemeralSSIDs ( ) ) ; if ( ! ( saveToStore ( true ) ) ) { return false ; } mWifiConfigStoreLegacy.removeStores ( ) ; android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , "Migration from legacy store completed" ) ; } return true ; }

Target:
private boolean migrateFromLegacyStore ( ) { if ( mWifiConfigStoreLegacy.areStoresPresent ( ) ) { com.android.server.wifi.WifiConfigStoreLegacy.WifiConfigStoreDataLegacy storeData = mWifiConfigStoreLegacy.read ( ) ; android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , "Reading from legacy store completed" ) ; loadInternalData ( storeData.getConfigurations ( ) , new java.util.ArrayList < android.net.wifi.WifiConfiguration > ( ) , storeData.getDeletedEphemeralSSIDs ( ) ) ; if ( ! ( saveToStore ( true ) ) ) { return false ; } mWifiConfigStoreLegacy.removeStores ( ) ; android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , "Migration from legacy store completed" ) ; } return true ; }
Source:
public void start ( ) { mBrowsePlayerInfoList.clear ( ) ; cleanup ( ) ; android.content.Intent intent = new android.content.Intent ( android.service.media.MediaBrowserService.SERVICE_INTERFACE ) ; mWaiting = mPackageManager.queryIntentServices ( intent , PackageManager.MATCH_ALL ) ; connectNextPlayer ( ) ; }

Target:
private java.lang.String getBrowseServiceName ( java.lang.String packageName ) { java.lang.String browseServiceName = "" ; synchronized ( mBrowsePlayerInfoList ) { int browseInfoID = getBrowseId ( packageName ) ; if ( browseInfoID != ( - 1 ) ) { browseServiceName = mBrowsePlayerInfoList.get ( browseInfoID ) . serviceClass ; } } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "getBrowseServiceName for packageName: " + packageName ) + ", browseServiceName = " ) + browseServiceName ) ) ; return browseServiceName ; }
Source:
public void testQuickFix_withNamedAnnotation ( ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; com.intellij.psi.PsiParameter parameter = com.intellij.psi.JavaPsiFacade.getInstance ( myProject ) . getElementFactory ( ) . createParameter ( "param" , PsiType.BOOLEAN ) ; parameter.getModifierList ( ) . addAnnotation ( GctConstants.APP_ENGINE_ANNOTATION_NAMED ) ; com.intellij.codeInspection.ex.ProblemDescriptorImpl problemDescriptorMock = org.mockito.Mockito.mock ( com.intellij.codeInspection.ex.ProblemDescriptorImpl.class ) ; org.mockito.Mockito.when ( problemDescriptorMock.getPsiElement ( ) ) . thenReturn ( parameter ) ; com.google.gct.intellij.endpoints.validation.InvalidParameterAnnotationsInspection.MyQuickFix myQuickFix = new com.google.gct.intellij.endpoints.validation.InvalidParameterAnnotationsInspection ( ) . new com.google.gct.intellij.endpoints.validation.MyQuickFix ( ) ; myQuickFix.applyFix ( myProject , problemDescriptorMock ) ; junit.framework.Assert.assertEquals ( ( ( "@" + ( com.google.gct.intellij.endpoints.GctConstants.APP_ENGINE_ANNOTATION_NAMED ) ) + " boolean param" ) , parameter.getText ( ) ) ; }

Target:
public void testQuickFix_withNamedAnnotation ( ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; com.intellij.psi.PsiParameter parameter = com.intellij.psi.JavaPsiFacade.getInstance ( myProject ) . getElementFactory ( ) . createParameter ( "param" , PsiType.BOOLEAN ) ; parameter.getModifierList ( ) . addAnnotation ( GctConstants.APP_ENGINE_ANNOTATION_NAMED ) ; runQuickFixTest ( parameter , ( ( "@" + ( com.google.gct.intellij.endpoints.GctConstants.APP_ENGINE_ANNOTATION_NAMED ) ) + " boolean param" ) ) ; }
Source:
public android.net.wifi.WifiConfiguration evaluateNetworks ( java.util.List < com.android.server.wifi.ScanDetail > scanDetails , android.net.wifi.WifiConfiguration currentNetwork , java.lang.String currentBssid , boolean connected , boolean untrustedNetworkAllowed , java.util.List < android.util.Pair < com.android.server.wifi.ScanDetail , android.net.wifi.WifiConfiguration > > connectableNetworks ) { com.android.server.wifi.ScanDetail scanDetail = scanDetails.get ( 0 ) ; mWifiConfigManager.setNetworkCandidateScanResult ( 0 , scanDetail.getScanResult ( ) , 100 ) ; return mWifiConfigManager.getSavedNetworkForScanDetailAndCache ( scanDetail ) ; }

Target:
public android.net.wifi.WifiConfiguration evaluateNetworks ( java.util.List < com.android.server.wifi.ScanDetail > scanDetails , android.net.wifi.WifiConfiguration currentNetwork , java.lang.String currentBssid , boolean connected , boolean untrustedNetworkAllowed , java.util.List < android.util.Pair < com.android.server.wifi.ScanDetail , android.net.wifi.WifiConfiguration > > connectableNetworks ) { com.android.server.wifi.ScanDetail scanDetail = scanDetails.get ( 0 ) ; mWifiConfigManager.setNetworkCandidateScanResult ( 0 , scanDetail.getScanResult ( ) , 100 ) ; assertNotNull ( "Saved network must not be null" , mWifiConfigManager.getSavedNetworkForScanDetailAndCache ( scanDetail ) ) ; return mWifiConfigManager.getSavedNetworkForScanDetailAndCache ( scanDetail ) ; }
Source:
public org.chromium.android_webview.InterceptedRequestData shouldInterceptRequest ( java.lang.String url ) { org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "shouldInterceptRequest=" + url ) ) ; android.webkit.WebResourceResponse response = mWebViewClient.shouldInterceptRequest ( mWebView , url ) ; org.chromium.base.TraceEvent.end ( ) ; if ( response == null ) return null ; return new org.chromium.android_webview.InterceptedRequestData ( response.getMimeType ( ) , response.getEncoding ( ) , response.getData ( ) ) ; }

Target:
public org.chromium.android_webview.AwWebResourceResponse shouldInterceptRequest ( com.android.webview.chromium.ShouldInterceptRequestParams params ) { org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "shouldInterceptRequest=" + ( params.url ) ) ) ; android.webkit.WebResourceResponse response = mWebViewClient.shouldInterceptRequest ( mWebView , params.url ) ; org.chromium.base.TraceEvent.end ( ) ; if ( response == null ) return null ; return new org.chromium.android_webview.AwWebResourceResponse ( response.getMimeType ( ) , response.getEncoding ( ) , response.getData ( ) ) ; }
Source:
void onDisconnect ( com.android.internal.telephony.cdma.DisconnectCause cause ) { mCause = cause ; if ( ! ( mDisconnected ) ) { doDisconnect ( ) ; if ( com.android.internal.telephony.cdma.CdmaConnection.VDBG ) android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CdmaConnection.LOG_TAG , ( "onDisconnect: cause=" + cause ) ) ; mOwner.mPhone.notifyDisconnect ( this ) ; if ( ( mParent ) != null ) { mParent.connectionDisconnected ( this ) ; } } releaseWakeLock ( ) ; }

Target:
boolean onDisconnect ( com.android.internal.telephony.cdma.DisconnectCause cause ) { boolean changed = false ; mCause = cause ; if ( ! ( mDisconnected ) ) { doDisconnect ( ) ; if ( com.android.internal.telephony.cdma.CdmaConnection.VDBG ) android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CdmaConnection.LOG_TAG , ( "onDisconnect: cause=" + cause ) ) ; mOwner.mPhone.notifyDisconnect ( this ) ; if ( ( mParent ) != null ) { changed = mParent.connectionDisconnected ( this ) ; } } releaseWakeLock ( ) ; return changed ; }
Source:
void hold ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "hold" ) ) ) { try { logOutgoing ( "hold %s" , callId ) ; mServiceInterface.hold ( callId ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
void hold ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "hold" ) ) ) { try { logOutgoing ( "hold %s" , callId ) ; mServiceInterface.hold ( callId , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
public java.util.List < ? extends com.android.tools.idea.run.GoogleCloudTestingConfiguration > getDefaultConfigurationsFromStorage ( org.jetbrains.android.facet.AndroidFacet facet ) { com.google.gct.testing.GoogleCloudTestingConfigurationImpl allConfiguration = new com.google.gct.testing.GoogleCloudTestingConfigurationImpl ( GoogleCloudTestingConfigurationImpl.ALL_ID , "All" , icons.AndroidIcons.Display , facet ) ; allConfiguration.deviceDimension.enableAll ( ) ; allConfiguration.apiDimension.enableAll ( ) ; allConfiguration.languageDimension.enableAll ( ) ; allConfiguration.orientationDimension.enableAll ( ) ; allConfiguration.setNonEditable ( ) ; return com.google.common.collect.ImmutableList.of ( allConfiguration ) ; }

Target:
private java.util.List < ? extends com.android.tools.idea.run.GoogleCloudTestingConfiguration > getDefaultConfigurations ( org.jetbrains.android.facet.AndroidFacet facet ) { com.google.gct.testing.GoogleCloudTestingConfigurationImpl allConfiguration = new com.google.gct.testing.GoogleCloudTestingConfigurationImpl ( GoogleCloudTestingConfigurationImpl.ALL_ID , "All" , icons.AndroidIcons.Display , facet ) ; allConfiguration.deviceDimension.enableAll ( ) ; allConfiguration.apiDimension.enableAll ( ) ; allConfiguration.languageDimension.enableAll ( ) ; allConfiguration.orientationDimension.enableAll ( ) ; allConfiguration.setNonEditable ( ) ; return com.google.common.collect.ImmutableList.of ( allConfiguration ) ; }
Source:
public void setZoneStrings ( java.lang.String [ ] [ ] zoneStrings ) { if ( zoneStrings == null ) { throw new java.lang.NullPointerException ( "zoneStrings == null" ) ; } for ( java.lang.String [ ] row : zoneStrings ) { if ( ( row.length ) < 5 ) { throw new java.lang.IllegalArgumentException ( ( ( java.util.Arrays.toString ( row ) ) + ".length < 5" ) ) ; } } this . zoneStrings = java.text.DateFormatSymbols.clone2dStringArray ( zoneStrings ) ; this . customZoneStrings = true ; }

Target:
private void readObject ( java.io.ObjectInputStream ois ) throws java.io.IOException , java.lang.ClassNotFoundException { ois.defaultReadObject ( ) ; java.util.Locale locale = this . locale ; if ( locale == null ) { locale = java.util.Locale.getDefault ( ) ; } this . localeData = libcore.icu.LocaleData.get ( locale ) ; }
Source:
private void runTestRunBatch ( com.drawelements.deqp.runner.DeqpTestRunner.TestBatch batch ) throws com.android.tradefed.device.DeviceNotAvailableException , com.drawelements.deqp.runner.DeqpTestRunner.CapabilityQueryFailureException { mInstanceListerner.setCurrentConfig ( batch.config ) ; for ( com.android.ddmlib.testrunner.TestIdentifier test : batch.tests ) { mInstanceListerner.setTestInstances ( test , getTestRunConfigs ( test ) ) ; } if ( isSupportedRunConfiguration ( batch.config ) ) { executeTestRunBatch ( batch ) ; } else { fakePassTestRunBatch ( batch ) ; } }

Target:
private void runTestRunBatch ( com.drawelements.deqp.runner.DeqpTestRunner.TestBatch batch ) throws com.android.tradefed.device.DeviceNotAvailableException , com.drawelements.deqp.runner.DeqpTestRunner.CapabilityQueryFailureException { mInstanceListerner.setCurrentConfig ( batch.config ) ; for ( com.android.ddmlib.testrunner.TestIdentifier test : batch.tests ) { mInstanceListerner.setTestInstances ( test , getTestRunConfigs ( test ) ) ; } if ( isSupportedRunConfiguration ( batch.config ) ) { executeTestRunBatch ( batch ) ; } else { if ( batch.config.isRequired ( ) ) { fakeFailTestRunBatch ( batch ) ; } else { fakePassTestRunBatch ( batch ) ; } } }
Source:
private void disconnectProfiles ( android.bluetooth.BluetoothDevice device , java.lang.String deviceID ) { com.googlecode.android_scripting.Log.d ( ( "Disconnecting device " + device ) ) ; mA2dpProfile.a2dpDisconnect ( device ) ; mA2dpSinkProfile.a2dpSinkDisconnect ( device ) ; mHidProfile.hidDisconnect ( device ) ; mHspProfile.hspDisconnect ( device ) ; mHfpClientProfile.hfpClientDisconnect ( device ) ; mPanProfile.panDisconnect ( device ) ; mPbapClientProfile.pbapClientDisconnect ( device ) ; }

Target:
private void disconnectProfiles ( android.bluetooth.BluetoothDevice device , java.lang.String deviceID ) { com.googlecode.android_scripting.Log.d ( ( "Disconnecting device " + device ) ) ; mA2dpProfile.a2dpDisconnect ( device ) ; mA2dpSinkProfile.a2dpSinkDisconnect ( device ) ; mHidProfile.hidDisconnect ( device ) ; mHspProfile.hspDisconnect ( device ) ; mHfpClientProfile.hfpClientDisconnect ( device ) ; mPbapClientProfile.pbapClientDisconnect ( device ) ; mPanProfile.panDisconnect ( device ) ; mMapClientProfile.mapClientDisconnect ( device ) ; }
Source:
com.android.server.wifi.ScanResult getCurrentScanResult ( ) { com.android.server.wifi.WifiConfiguration config = getCurrentWifiConfiguration ( ) ; if ( config == null ) { return null ; } java.lang.String BSSID = mWifiInfo.getBSSID ( ) ; if ( BSSID == null ) { BSSID = mTargetRoamBSSID ; } if ( ( config.scanResultCache ) == null ) { return null ; } return config.scanResultCache.get ( BSSID ) ; }

Target:
android.net.wifi.ScanResult getCurrentScanResult ( ) { android.net.wifi.WifiConfiguration config = getCurrentWifiConfiguration ( ) ; if ( config == null ) { return null ; } java.lang.String BSSID = mWifiInfo.getBSSID ( ) ; if ( BSSID == null ) { BSSID = mTargetRoamBSSID ; } com.android.server.wifi.ScanDetailCache scanDetailCache = mWifiConfigManager.getScanDetailCacheForNetwork ( config.networkId ) ; if ( scanDetailCache == null ) { return null ; } return scanDetailCache.get ( BSSID ) ; }
Source:
public void testOpenSocketAddress_Null ( ) throws java.io.IOException { java.nio.channels.SocketChannel channel1IP = null ; try { channel1IP = java.nio.channels.SocketChannel.open ( null ) ; fail ( "Should throw an IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException e ) { } assertNull ( channel1IP ) ; }

Target:
public void testSocket_BasicStatusBeforeConnect ( ) throws java.io.IOException { assertFalse ( this . channel1.isConnected ( ) ) ; java.net.Socket s1 = this . channel1.socket ( ) ; assertSocketBeforeBind ( s1 ) ; assertSocketBeforeConnect ( s1 ) ; java.net.Socket s2 = this . channel1.socket ( ) ; assertSame ( s1 , s2 ) ; }
Source:
public void wifiAwareDestroyDiscoverySession ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The discovery session ID returned when session was created using publish or subscribe" ) java.lang.Integer sessionId ) throws android.os.RemoteException { synchronized ( mLock ) { android.net.wifi.aware.WifiAwareDiscoveryBaseSession session = mDiscoverySessions.get ( sessionId ) ; if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling WifiAwareTerminateSession before session (session ID " + sessionId ) + ") is ready" ) ) ; } session.destroy ( ) ; mDiscoverySessions.remove ( sessionId ) ; } }

Target:
public void wifiAwareDestroyDiscoverySession ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The discovery session ID returned when session was created using publish or subscribe" ) java.lang.Integer sessionId ) throws android.os.RemoteException { synchronized ( mLock ) { android.net.wifi.aware.DiscoverySession session = mDiscoverySessions.get ( sessionId ) ; if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling WifiAwareTerminateSession before session (session ID " + sessionId ) + ") is ready" ) ) ; } session.destroy ( ) ; mDiscoverySessions.remove ( sessionId ) ; } }
Source:
public void setReordering ( int [ ] codes , byte [ ] table ) { if ( codes == null ) { codes = com.ibm.icu.impl.coll.CollationSettings.EMPTY_INT_ARRAY ; } assert ( ( codes.length ) == 0 ) == ( table == null ) ; reorderTable = table ; reorderCodes = codes ; }

Target:
private void setReorderArrays ( int [ ] codes , int [ ] ranges , int rangesStart , int rangesLength , byte [ ] table ) { if ( codes == null ) { codes = com.ibm.icu.impl.coll.CollationSettings.EMPTY_INT_ARRAY ; } assert ( ( codes.length ) == 0 ) == ( table == null ) ; reorderTable = table ; reorderCodes = codes ; setReorderRanges ( ranges , rangesStart , rangesLength ) ; }
Source:
public boolean isTestCoverageEnabled ( ) { return mBuildType.isTestCoverageEnabled ( ) ; }

Target:
public java.util.List < java.lang.Object > getConsumerProguardFiles ( ) { java.util.List < java.lang.Object > fullList = com.google.common.collect.Lists.newArrayList ( ) ; fullList.addAll ( mDefaultConfig.getConsumerProguardFiles ( ) ) ; fullList.addAll ( mBuildType.getConsumerProguardFiles ( ) ) ; for ( F flavor : mFlavors ) { fullList.addAll ( flavor.getConsumerProguardFiles ( ) ) ; } return fullList ; }
Source:
public boolean supportsFeature ( @ com.android.annotations.NonNull com.android.ddmlib.HardwareFeature feature ) { if ( ( mHardwareCharacteristics ) == null ) { try { java.lang.String characteristics = getSystemProperty ( com.android.ddmlib.PROP_BUILD_CHARACTERISTICS ) . get ( ) ; mHardwareCharacteristics = com.google.common.collect.Sets.newHashSet ( com.google.common.base.Splitter.on ( ',' ) . split ( characteristics ) ) ; } catch ( java.lang.Exception e ) { mHardwareCharacteristics = java.util.Collections.emptySet ( ) ; } } return mHardwareCharacteristics.contains ( feature.getCharacteristic ( ) ) ; }

Target:
public boolean supportsFeature ( @ com.android.annotations.NonNull com.android.ddmlib.HardwareFeature feature ) { if ( ( mHardwareCharacteristics ) == null ) { try { java.lang.String characteristics = getProperty ( com.android.ddmlib.PROP_BUILD_CHARACTERISTICS ) ; if ( characteristics == null ) { return false ; } mHardwareCharacteristics = com.google.common.collect.Sets.newHashSet ( com.google.common.base.Splitter.on ( ',' ) . split ( characteristics ) ) ; } catch ( java.lang.Exception e ) { mHardwareCharacteristics = java.util.Collections.emptySet ( ) ; } } return mHardwareCharacteristics.contains ( feature.getCharacteristic ( ) ) ; }
Source:
private void awareIsDown ( ) { if ( ( mWifiNanIface ) != null ) { synchronized ( mLock ) { mWifiNanIface = null ; mWifiAwareStateManager.disableUsage ( ) ; } } }

Target:
private void awareIsDown ( ) { synchronized ( mLock ) { if ( com.android.server.wifi.aware.WifiAwareNativeManager.DBG ) android.util.Log.d ( com.android.server.wifi.aware.WifiAwareNativeManager.TAG , ( "awareIsDown: mWifiNanIface=" + ( mWifiNanIface ) ) ) ; if ( ( mWifiNanIface ) != null ) { mWifiNanIface = null ; mWifiAwareStateManager.disableUsage ( ) ; } } }
Source:
private android.icu.text.DecimalFormat_ICU58 createDecimalFormat ( android.icu.dev.test.format.DataDrivenNumberFormatTestData tuple ) { android.icu.text.DecimalFormat_ICU58 fmt = new android.icu.text.DecimalFormat_ICU58 ( ( ( tuple.pattern ) == null ? "0" : tuple.pattern ) , new android.icu.text.DecimalFormatSymbols ( ( ( tuple.locale ) == null ? android.icu.dev.test.format.NumberFormatDataDrivenTest.EN : tuple.locale ) ) ) ; adjustDecimalFormat ( tuple , fmt ) ; return fmt ; }

Target:
private android.icu.text.DecimalFormat_ICU58_Android createDecimalFormat ( android.icu.dev.test.format.DataDrivenNumberFormatTestData tuple ) { android.icu.text.DecimalFormat_ICU58_Android fmt = new android.icu.text.DecimalFormat_ICU58_Android ( ( ( tuple.pattern ) == null ? "0" : tuple.pattern ) , new android.icu.text.DecimalFormatSymbols ( ( ( tuple.locale ) == null ? android.icu.dev.test.format.NumberFormatDataDrivenTest.EN : tuple.locale ) ) ) ; adjustDecimalFormat ( tuple , fmt ) ; return fmt ; }
Source:
protected void listen ( int backlog ) throws java.io.IOException { if ( ( fd ) == null ) { throw new java.io.IOException ( "socket not created" ) ; } listen_native ( fd , backlog ) ; }

Target:
protected void listen ( int backlog ) throws java.io.IOException { if ( ( fd ) == null ) { throw new java.io.IOException ( "socket not created" ) ; } try { android.system.Os.listen ( fd , backlog ) ; } catch ( android.system.ErrnoException e ) { throw e.rethrowAsIOException ( ) ; } }
Source:
private void sendNotificationThroughDefaultDialer ( com.android.server.telecom.Call call , android.os.UserHandle userHandle ) { int count = mMissedCallCounts.get ( userHandle ) . get ( ) ; android.content.Intent intent = getShowMissedCallIntentForDefaultDialer ( userHandle ) . setFlags ( Intent.FLAG_RECEIVER_FOREGROUND ) . putExtra ( TelecomManager.EXTRA_NOTIFICATION_COUNT , count ) . putExtra ( TelecomManager.EXTRA_NOTIFICATION_PHONE_NUMBER , ( call != null ? call.getPhoneNumber ( ) : null ) ) ; com.android.server.telecom.Log.w ( this , "Showing missed calls through default dialer." ) ; mContext.sendBroadcastAsUser ( intent , userHandle , android.Manifest.permission.READ_PHONE_STATE ) ; }

Target:
private void sendNotificationThroughDefaultDialer ( com.android.server.telecom.ui.CallInfo callInfo , android.os.UserHandle userHandle ) { int count = mMissedCallCounts.get ( userHandle ) . get ( ) ; android.content.Intent intent = getShowMissedCallIntentForDefaultDialer ( userHandle ) . setFlags ( Intent.FLAG_RECEIVER_FOREGROUND ) . putExtra ( TelecomManager.EXTRA_NOTIFICATION_COUNT , count ) . putExtra ( TelecomManager.EXTRA_NOTIFICATION_PHONE_NUMBER , ( callInfo == null ? null : callInfo.getPhoneNumber ( ) ) ) ; com.android.server.telecom.Log.w ( this , "Showing missed calls through default dialer." ) ; mContext.sendBroadcastAsUser ( intent , userHandle , android.Manifest.permission.READ_PHONE_STATE ) ; }
Source:
public boolean isTtySupported ( java.lang.String callingPackage ) { try { android.telecom.Log.startSession ( "TSI.iTS" ) ; if ( ! ( canReadPhoneState ( callingPackage , "hasVoiceMailNumber" ) ) ) { return false ; } synchronized ( mLock ) { return mCallsManager.isTtySupported ( ) ; } } finally { android.telecom.Log.endSession ( ) ; } }

Target:
public boolean isTtySupported ( java.lang.String callingPackage ) { try { android.telecom.Log.startSession ( "TSI.iTS" ) ; if ( ! ( canReadPhoneState ( callingPackage , "isTtySupported" ) ) ) { throw new java.lang.SecurityException ( ( "Only default dialer or an app with" + "READ_PRIVILEGED_PHONE_STATE or READ_PHONE_STATE can call this api" ) ) ; } synchronized ( mLock ) { return mCallsManager.isTtySupported ( ) ; } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.JayceInternalReaderImpl in ) throws java.io.IOException { level = in.getNodeLevel ( ) ; parameters = in.readNodes ( com.android.jack.jayce.v0002.nodes.NParameter.class ) ; modifier = in.readInt ( ) ; annotations = in.readNodes ( com.android.jack.jayce.v0002.nodes.NAnnotationLiteral.class ) ; body = in.readNode ( com.android.jack.jayce.v0002.nodes.NAbstractMethodBody.class ) ; markers = in.readNodes ( com.android.jack.jayce.v0002.nodes.NMarker.class ) ; }

Target:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.JayceInternalReaderImpl in ) throws java.io.IOException { level = in.getNodeLevel ( ) ; parameters = in.readNodes ( com.android.jack.jayce.v0002.nodes.NParameter.class ) ; modifier = in.readInt ( ) ; annotations = in.readNodes ( com.android.jack.jayce.v0002.nodes.NAnnotation.class ) ; body = in.readNode ( com.android.jack.jayce.v0002.nodes.NAbstractMethodBody.class ) ; markers = in.readNodes ( com.android.jack.jayce.v0002.nodes.NMarker.class ) ; }
Source:
private void exitVideoMode ( ) { com.android.dialer.common.LogUtil.i ( "VideoCallPresenter.exitVideoMode" , "" ) ; showVideoUi ( VideoProfile.STATE_AUDIO_ONLY , DialerCall.State.ACTIVE , SessionModificationState.NO_REQUEST , false ) ; enableCamera ( mVideoCall , false ) ; com.android.incallui.InCallPresenter.getInstance ( ) . setFullScreen ( false ) ; com.android.incallui.InCallPresenter.getInstance ( ) . enableScreenTimeout ( false ) ; com.android.incallui.VideoCallPresenter.mIsVideoMode = false ; }

Target:
private void exitVideoMode ( ) { com.android.dialer.common.LogUtil.i ( "VideoCallPresenter.exitVideoMode" , "" ) ; showVideoUi ( VideoProfile.STATE_AUDIO_ONLY , DialerCall.State.ACTIVE , SessionModificationState.NO_REQUEST , false ) ; enableCamera ( mPrimaryCall , false ) ; com.android.incallui.InCallPresenter.getInstance ( ) . setFullScreen ( false ) ; com.android.incallui.InCallPresenter.getInstance ( ) . enableScreenTimeout ( false ) ; com.android.incallui.VideoCallPresenter.mIsVideoMode = false ; }
Source:
public int read ( ) throws java.io.IOException { return libcore.io.Streams.readSingleByte ( this ) ; }

Target:
public int read ( ) throws java.io.IOException { byte [ ] buffer = new byte [ 1 ] ; int result = read ( buffer , 0 , 1 ) ; return result != ( - 1 ) ? ( buffer [ 0 ] ) & 255 : - 1 ; }
Source:
protected final void updateConnectionProperties ( ) { int newProperties = buildConnectionProperties ( ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_HIGH_DEF_AUDIO , mHasHighDefAudio ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_WIFI , mIsWifi ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_IS_EXTERNAL_CALL , isExternalConnection ( ) ) ; if ( ( getConnectionProperties ( ) ) != newProperties ) { setConnectionProperties ( newProperties ) ; } }

Target:
protected final void updateConnectionProperties ( ) { int newProperties = buildConnectionProperties ( ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_HIGH_DEF_AUDIO , hasHighDefAudioProperty ( ) ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_WIFI , mIsWifi ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_IS_EXTERNAL_CALL , isExternalConnection ( ) ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_HAS_CDMA_VOICE_PRIVACY , mIsCdmaVoicePrivacyEnabled ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_ASSISTED_DIALING_USED , mIsUsingAssistedDialing ) ; if ( ( getConnectionProperties ( ) ) != newProperties ) { setConnectionProperties ( newProperties ) ; } }
Source:
private static float length ( float [ ] array ) { float sum = 0.0F ; for ( int i = 0 ; i < ( array.length ) ; i ++ ) { sum += ( array [ i ] ) * ( array [ i ] ) ; } return ( ( float ) ( java.lang.StrictMath.sqrt ( sum ) ) ) ; }

Target:
private static android.renderscript.cts.Floaty length ( float [ ] array , int ulpFactor , int ulpRelaxedFactor ) { android.renderscript.cts.Floaty sum = new android.renderscript.cts.Floaty ( 0.0F , ulpFactor , ulpRelaxedFactor ) ; for ( int i = 0 ; i < ( array.length ) ; i ++ ) { android.renderscript.cts.Floaty f = new android.renderscript.cts.Floaty ( array [ i ] , ulpFactor , ulpRelaxedFactor ) ; sum.add ( android.renderscript.cts.Floaty.multiply ( f , f ) ) ; } return android.renderscript.cts.Floaty.sqrt ( sum ) ; }
Source:
public void testAesCbcHmacMd5Tcp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , true , 1 , false ) ; }

Target:
public void testAesCbcHmacSha512Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , android.net.cts.IpSecManagerTest.getKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }
Source:
public void dragOperationChanged ( org.eclipse.swt.dnd.DropTargetEvent event ) { com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( "DEBUG" , "drag changed" , event ) ; checkDataType ( event ) ; if ( ( event.detail ) == ( org.eclipse.swt.dnd.DND.DROP_DEFAULT ) ) { if ( ( ( event.operations ) & ( org.eclipse.swt.dnd.DND.DROP_COPY ) ) != 0 ) { event.detail = org.eclipse.swt.dnd.DND.DROP_COPY ; } } if ( ( event.detail ) == ( org.eclipse.swt.dnd.DND.DROP_COPY ) ) { processDropEvent ( event ) ; } else { event.detail = org.eclipse.swt.dnd.DND.DROP_NONE ; clearDropInfo ( ) ; } }

Target:
public void dragOperationChanged ( org.eclipse.swt.dnd.DropTargetEvent event ) { com.android.ide.eclipse.adt.AdtPlugin.printErrorToConsole ( "DEBUG" , "drag changed" , event ) ; checkDataType ( event ) ; recomputeDragType ( event ) ; }
Source:
public void testNoDpi ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.IconDetectorTest.ALL ; assertEquals ( ( "res/drawable-mdpi/frame.png: Warning: The following images appear in both -nodpi and in a density folder: frame.png [IconNoDpi]\n" + ( ( ( ( ( "res/drawable-xlarge-nodpi-v11/frame.png: Warning: The frame.png icon has identical contents in the following configuration folders: drawable-mdpi, drawable-nodpi, drawable-xlarge-nodpi-v11 [IconDuplicatesConfig]\n" + " res/drawable-nodpi/frame.png: <No location-specific message\n" ) + " res/drawable-mdpi/frame.png: <No location-specific message\n" ) + "res: Warning: Missing density variation folders in res: drawable-hdpi, drawable-xhdpi, drawable-xxhdpi [IconMissingDensityFolder]\n" ) + "0 errors, 3 warnings\n" ) + "" ) ) , lintProject ( "res/drawable-mdpi/frame.png" , "res/drawable-nodpi/frame.png" , "res/drawable-xlarge-nodpi-v11/frame.png" ) ) ; }

Target:
public void testNoDpi ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.IconDetectorTest.ALL ; assertEquals ( ( "res/drawable-mdpi/frame.png: Warning: The following images appear in both -nodpi and in a density folder: frame.png [IconNoDpi]\n" + ( ( ( ( ( "res/drawable-xlarge-nodpi-v11/frame.png: Warning: The frame.png icon has identical contents in the following configuration folders: drawable-mdpi, drawable-nodpi, drawable-xlarge-nodpi-v11 [IconDuplicatesConfig]\n" + " res/drawable-nodpi/frame.png: <No location-specific message\n" ) + " res/drawable-mdpi/frame.png: <No location-specific message\n" ) + "res: Warning: Missing density variation folders in res: drawable-hdpi, drawable-xhdpi, drawable-xxhdpi, drawable-xxxhdpi [IconMissingDensityFolder]\n" ) + "0 errors, 3 warnings\n" ) + "" ) ) , lintProject ( "res/drawable-mdpi/frame.png" , "res/drawable-nodpi/frame.png" , "res/drawable-xlarge-nodpi-v11/frame.png" ) ) ; }
Source:
private void initStateMachine ( int interfaceType ) throws java.lang.Exception { mTestedSm = new com.android.server.connectivity.tethering.TetherInterfaceStateMachine ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mLooper.getLooper ( ) , interfaceType , mSharedLog , mNMService , mStatsService , mTetherHelper ) ; mTestedSm.start ( ) ; mLooper.dispatchAll ( ) ; org.mockito.Mockito.reset ( mNMService , mStatsService , mTetherHelper ) ; org.mockito.Mockito.when ( mNMService.getInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ) . thenReturn ( mInterfaceConfiguration ) ; }

Target:
private void initStateMachine ( int interfaceType ) throws java.lang.Exception { mTestedSm = new com.android.server.connectivity.tethering.TetherInterfaceStateMachine ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mLooper.getLooper ( ) , interfaceType , mSharedLog , mNMService , mStatsService , mTetherHelper , mTetheringDependencies ) ; mTestedSm.start ( ) ; mLooper.dispatchAll ( ) ; org.mockito.Mockito.reset ( mNMService , mStatsService , mTetherHelper ) ; org.mockito.Mockito.when ( mNMService.getInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ) . thenReturn ( mInterfaceConfiguration ) ; }
Source:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 2 , notificationWithNumbers ( 2 ) ) ; }

Target:
public void run ( ) { for ( int i = 0 ; i < 10 ; i ++ ) { android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , "Add two notifications" ) ; mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 2 , notificationWithNumbers ( 2 ) ) ; android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , "Cancel two notifications" ) ; mNM.cancel ( 1 ) ; mNM.cancel ( 2 ) ; } }