auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onDeviceAttributesChanged ( ) { setTitle ( mCachedDevice.getName ( ) ) ; int summaryResId = mCachedDevice.getConnectionSummary ( ) ; if ( summaryResId != 0 ) { setSummary ( summaryResId ) ; } else { setSummary ( null ) ; } int iconResId = getBtClassDrawable ( ) ; if ( iconResId != 0 ) { setIcon ( iconResId ) ; } setEnabled ( ( ! ( mCachedDevice.isBusy ( ) ) ) ) ; notifyHierarchyChanged ( ) ; }

Target:
public void onDeviceAttributesChanged ( ) { setTitle ( mCachedDevice.getName ( ) ) ; int summaryResId = mCachedDevice.getConnectionSummary ( ) ; if ( summaryResId != 0 ) { setSummary ( summaryResId ) ; } else { setSummary ( null ) ; } android.util.Pair < java.lang.Integer , java.lang.String > pair = getBtClassDrawableWithDescription ( ) ; if ( ( pair.first ) != 0 ) { setIcon ( pair.first ) ; contentDescription = pair.second ; } setEnabled ( ( ! ( mCachedDevice.isBusy ( ) ) ) ) ; notifyHierarchyChanged ( ) ; }
Source:
public com.android.sched.vfs.VPath appendPath ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { if ( ! ( this . equals ( com.android.sched.vfs.VPath.ROOT ) ) ) { pathFragments.add ( new com.android.sched.vfs.VPath.VPathFragment ( java.lang.String.valueOf ( com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) , com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) ) ; } pathFragments.addAll ( path.getPathFragments ( ) ) ; return this ; }

Target:
public com.android.sched.vfs.VPath appendPath ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { assert ! ( path.isRoot ( ) ) ; if ( ! ( this . isRoot ( ) ) ) { pathFragments.add ( new com.android.sched.vfs.VPath.VPathFragment ( java.lang.String.valueOf ( com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) , com.android.sched.vfs.VPath.INTERNAL_SEPARATOR ) ) ; } pathFragments.addAll ( path.getPathFragments ( ) ) ; return this ; }
Source:
public com.android.ims.internal.IImsMMTelFeature getMMTelFeature ( int slotId ) { synchronized ( mLock ) { com.android.internal.telephony.ims.ImsServiceController.ImsFeatureContainer f = getImsFeatureContainer ( slotId , ImsFeature.MMTEL ) ; if ( f == null ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( "Requested null MMTelFeature on slot " + slotId ) ) ; return null ; } return f.resolve ( com.android.ims.internal.IImsMMTelFeature.class ) ; } }

Target:
public android.telephony.ims.aidl.IImsMmTelFeature getMmTelFeature ( int slotId ) { synchronized ( mLock ) { com.android.internal.telephony.ims.ImsServiceController.ImsFeatureContainer f = getImsFeatureContainer ( slotId , ImsFeature.FEATURE_MMTEL ) ; if ( f == null ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( "Requested null MMTelFeature on slot " + slotId ) ) ; return null ; } return f.resolve ( android.telephony.ims.aidl.IImsMmTelFeature.class ) ; } }
Source:
private com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem findDeclaredResourceItem ( com.android.resources.ResourceType type , java.lang.String name ) { java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem > list = mResourceMap.get ( type ) ; if ( list != null ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem item : list ) { if ( ( name.equals ( item.getName ( ) ) ) && ( ( item.isDeclaredInline ( ) ) == false ) ) { return item ; } } } return null ; }

Target:
private com.android.ide.common.resources.ResourceItem findDeclaredResourceItem ( com.android.resources.ResourceType type , java.lang.String name ) { java.util.List < com.android.ide.common.resources.ResourceItem > list = mResourceMap.get ( type ) ; if ( list != null ) { for ( com.android.ide.common.resources.ResourceItem item : list ) { if ( ( name.equals ( item.getName ( ) ) ) && ( ( item.isDeclaredInline ( ) ) == false ) ) { return item ; } } } return null ; }
Source:
public static com.android.build.gradle.internal.model.JavaArtifactImpl clone ( @ com.android.annotations.NonNull com.android.builder.model.JavaArtifact javaArtifact ) { com.android.builder.model.SourceProvider variantSP = javaArtifact.getVariantSourceProvider ( ) ; com.android.builder.model.SourceProvider flavorsSP = javaArtifact.getMultiFlavorSourceProvider ( ) ; return new com.android.build.gradle.internal.model.JavaArtifactImpl ( javaArtifact.getName ( ) , javaArtifact.getAssembleTaskName ( ) , javaArtifact.getJavaCompileTaskName ( ) , javaArtifact.getClassesFolder ( ) , com.android.build.gradle.internal.model.DependenciesImpl.cloneDependenciesForJavaArtifacts ( javaArtifact.getDependencies ( ) ) , ( variantSP != null ? com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider ( variantSP ) : null ) , ( flavorsSP != null ? com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider ( flavorsSP ) : null ) ) ; }

Target:
public static com.android.build.gradle.internal.model.JavaArtifactImpl clone ( @ com.android.annotations.NonNull com.android.builder.model.JavaArtifact javaArtifact ) { com.android.builder.model.SourceProvider variantSP = javaArtifact.getVariantSourceProvider ( ) ; com.android.builder.model.SourceProvider flavorsSP = javaArtifact.getMultiFlavorSourceProvider ( ) ; return new com.android.build.gradle.internal.model.JavaArtifactImpl ( javaArtifact.getName ( ) , javaArtifact.getAssembleTaskName ( ) , javaArtifact.getCompileTaskName ( ) , javaArtifact.getClassesFolder ( ) , com.android.build.gradle.internal.model.DependenciesImpl.cloneDependenciesForJavaArtifacts ( javaArtifact.getDependencies ( ) ) , ( variantSP != null ? com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider ( variantSP ) : null ) , ( flavorsSP != null ? com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider ( flavorsSP ) : null ) ) ; }
Source:
private boolean denyIfQueueLimitReached ( com.android.internal.telephony.SMSDispatcher.SmsTracker tracker ) { if ( ( mPendingTrackerCount ) >= ( com.android.internal.telephony.SMSDispatcher.MO_MSG_QUEUE_LIMIT ) ) { try { tracker.mSentIntent.send ( android.telephony.SmsManager.RESULT_ERROR_LIMIT_EXCEEDED ) ; } catch ( android.app.PendingIntent.CanceledException ex ) { android.util.Log.e ( com.android.internal.telephony.SMSDispatcher.TAG , "failed to send back RESULT_ERROR_LIMIT_EXCEEDED" ) ; } return true ; } ( mPendingTrackerCount ) ++ ; return false ; }

Target:
private boolean denyIfQueueLimitReached ( com.android.internal.telephony.SMSDispatcher.SmsTracker tracker ) { if ( ( mPendingTrackerCount ) >= ( com.android.internal.telephony.SMSDispatcher.MO_MSG_QUEUE_LIMIT ) ) { try { tracker.mSentIntent.send ( android.telephony.SmsManager.RESULT_ERROR_LIMIT_EXCEEDED ) ; } catch ( android.app.PendingIntent.CanceledException ex ) { android.telephony.Rlog.e ( com.android.internal.telephony.SMSDispatcher.TAG , "failed to send back RESULT_ERROR_LIMIT_EXCEEDED" ) ; } return true ; } ( mPendingTrackerCount ) ++ ; return false ; }
Source:
public java.lang.String getTypeDescription ( ) { return java.lang.String.format ( "a comma-separated list of colon-separated key value pairs of the types %s and %s" , ( ( java.lang.reflect.ParameterizedType ) ( getClass ( ) . getGenericSuperclass ( ) ) ) . getActualTypeArguments ( ) [ 0 ] , ( ( java.lang.reflect.ParameterizedType ) ( getClass ( ) . getGenericSuperclass ( ) ) ) . getActualTypeArguments ( ) [ 1 ] ) ; }

Target:
public java.lang.String getTypeDescription ( ) { return "a valid filesystem path" ; }
Source:
private void unregisterAllAppEvents ( ) { for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( app != null ) { app.unregisterForReady ( this ) ; com.android.internal.telephony.uicc.IccRecords ir = app.getIccRecords ( ) ; if ( ir != null ) { ir.unregisterForRecordsLoaded ( this ) ; ir.unregisterForRecordsEvents ( this ) ; } } } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( intent.getAction ( ) . equals ( CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED ) ) { mHandler.sendMessage ( mHandler.obtainMessage ( com.android.internal.telephony.uicc.UiccProfile.EVENT_CARRIER_CONFIG_CHANGED ) ) ; } }
Source:
public void exit ( ) { mNetworkInfo.setIsAvailable ( false ) ; if ( ( mNetworkAgent ) != null ) mNetworkAgent.sendNetworkInfo ( mNetworkInfo ) ; mWifiConnectivityManager.setWifiEnabled ( false ) ; mWifiMetrics.setWifiState ( WifiMetricsProto.WifiLog.WIFI_DISABLED ) ; }

Target:
public void exit ( ) { mNetworkInfo.setIsAvailable ( false ) ; if ( ( mNetworkAgent ) != null ) mNetworkAgent.sendNetworkInfo ( mNetworkInfo ) ; mWifiConnectivityManager.setWifiEnabled ( false ) ; mWifiMetrics.setWifiState ( WifiMetricsProto.WifiLog.WIFI_DISABLED ) ; if ( ! ( mWifiNative.removeAllNetworks ( ) ) ) { loge ( "Failed to remove networks on exiting connect mode" ) ; } }
Source:
public android.net.LinkQualityInfo getActiveLinkQualityInfo ( ) { try { android.net.LinkQualityInfo li = mService.getActiveLinkQualityInfo ( ) ; return li ; } catch ( android.os.RemoteException e ) { return null ; } }

Target:
public android.net.ProxyInfo getDefaultProxy ( ) { final android.net.Network network = android.net.ConnectivityManager.getProcessDefaultNetwork ( ) ; if ( network != null ) { final android.net.ProxyInfo globalProxy = getGlobalProxy ( ) ; if ( globalProxy != null ) return globalProxy ; final android.net.LinkProperties lp = getLinkProperties ( network ) ; if ( lp != null ) return lp.getHttpProxy ( ) ; return null ; } try { return mService.getDefaultProxy ( ) ; } catch ( android.os.RemoteException e ) { return null ; } }
Source:
public boolean hasNextLong ( int radix ) { java.util.regex.Pattern integerPattern = getIntegerPattern ( radix ) ; boolean isLongValue = false ; if ( hasNext ( integerPattern ) ) { java.lang.String intString = matcher.group ( ) ; intString = removeLocaleInfo ( intString , java.util.Scanner.DataType.INT ) ; try { cachedNextValue = java.lang.Long.valueOf ( intString , radix ) ; isLongValue = true ; } catch ( java.lang.NumberFormatException e ) { matchSuccessful = false ; } } return isLongValue ; }

Target:
public boolean hasNextShort ( int radix ) { java.util.regex.Pattern integerPattern = getIntegerPattern ( radix ) ; boolean isShortValue = false ; if ( hasNext ( integerPattern ) ) { java.lang.String intString = matcher.group ( ) ; intString = removeLocaleInfo ( intString , int . class ) ; try { cachedNextValue = java.lang.Short.valueOf ( intString , radix ) ; isShortValue = true ; } catch ( java.lang.NumberFormatException e ) { matchSuccessful = false ; } } return isShortValue ; }
Source:
public void hold ( ) { if ( ( mState ) == ( CallState.ACTIVE ) ) { if ( ( mConnectionService ) != null ) { mConnectionService.hold ( this ) ; } else { android.telecom.Log.e ( this , new java.lang.NullPointerException ( ) , "hold call failed due to null CS callId=%s" , getId ( ) ) ; } android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_HOLD ) ; } }

Target:
public void reject ( boolean rejectWithMessage , java.lang.String textMessage , java.lang.String reason ) { if ( isRinging ( "reject" ) ) { mVideoStateHistory |= mVideoState ; if ( ( mConnectionService ) != null ) { mConnectionService.reject ( this , rejectWithMessage , textMessage ) ; } else { android.telecom.Log.e ( this , new java.lang.NullPointerException ( ) , "reject call failed due to null CS callId=%s" , getId ( ) ) ; } android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_REJECT , reason ) ; } }
Source:
public void onLoadChildren ( final java.lang.String parentMediaId , final android.media.cts.Result < java.util.List < android.media.browse.MediaBrowser.MediaItem > > result ) { }

Target:
public void onLoadChildren ( final java.lang.String parentMediaId , final android.media.cts.Result < java.util.List < android.media.browse.MediaBrowser.MediaItem > > result ) { java.util.List < android.media.browse.MediaBrowser.MediaItem > mediaItems = new java.util.ArrayList < > ( ) ; if ( android.media.cts.StubMediaBrowserService.MEDIA_ID_ROOT.equals ( parentMediaId ) ) { for ( java.lang.String id : android.media.cts.StubMediaBrowserService.MEDIA_ID_CHILDREN ) { mediaItems.add ( new android.media.browse.MediaBrowser.MediaItem ( new android.media.MediaDescription.Builder ( ) . setMediaId ( id ) . build ( ) , android.media.browse.MediaBrowser.MediaItem.FLAG_BROWSABLE ) ) ; } } result.sendResult ( mediaItems ) ; }
Source:
public void testConstructor_NullAliases ( ) { tests.api.java.nio.charset.CharsetTest.MockCharset c = new tests.api.java.nio.charset.CharsetTest.MockCharset ( "mockChar" , null ) ; assertEquals ( "mockChar" , c.name ( ) ) ; assertEquals ( "mockChar" , c.displayName ( ) ) ; assertEquals ( "mockChar" , c.displayName ( java.util.Locale.getDefault ( ) ) ) ; assertEquals ( 0 , c.aliases ( ) . toArray ( ) . length ) ; }

Target:
public void testConstructor_NullAliases ( ) { org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset c = new org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset ( "mockChar" , null ) ; assertEquals ( "mockChar" , c.name ( ) ) ; assertEquals ( "mockChar" , c.displayName ( ) ) ; assertEquals ( "mockChar" , c.displayName ( java.util.Locale.getDefault ( ) ) ) ; assertEquals ( 0 , c.aliases ( ) . toArray ( ) . length ) ; }
Source:
void assertConnectionCallDisplayName ( final android.telecom.Connection connection , final java.lang.String name ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return name ; } @ java.lang.Override public java.lang.Object actual ( ) { return connection.getCallerDisplayName ( ) ; } } , android.telecom.cts.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Connection should have display name: " + name ) ) ; }

Target:
void assertConnectionCallDisplayName ( final android.telecom.Connection connection , final java.lang.String name ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return name ; } @ java.lang.Override public java.lang.Object actual ( ) { return connection.getCallerDisplayName ( ) ; } } , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Connection should have display name: " + name ) ) ; }
Source:
public void closeRttPipes ( ) { }

Target:
private void closeRttStreams ( ) { if ( ( mConnectionServiceToInCallStreams ) != null ) { for ( android.os.ParcelFileDescriptor fd : mConnectionServiceToInCallStreams ) { if ( fd != null ) { try { fd.close ( ) ; } catch ( java.io.IOException e ) { } } } } if ( ( mInCallToConnectionServiceStreams ) != null ) { for ( android.os.ParcelFileDescriptor fd : mInCallToConnectionServiceStreams ) { if ( fd != null ) { try { fd.close ( ) ; } catch ( java.io.IOException e ) { } } } } }
Source:
public void notifyStateChanged ( ) { try { int status = mImsManager.getImsServiceState ( ) ; log ( ( "Status Changed: " + status ) ) ; switch ( status ) { case android.telephony.ims.feature.ImsFeature.STATE_READY : { startListeningForCalls ( ) ; break ; } case android.telephony.ims.feature.ImsFeature.STATE_INITIALIZING : case android.telephony.ims.feature.ImsFeature.STATE_UNAVAILABLE : { stopListeningForCalls ( ) ; break ; } default : { android.util.Log.w ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.LOG_TAG , "Unexpected State!" ) ; } } } catch ( com.android.ims.ImsException e ) { retryGetImsService ( ) ; } }

Target:
public void setRetryTimeout ( com.android.ims.ImsManager.Connector.RetryTimeout retryTimeout ) { mImsManagerConnector.mRetryTimeout = retryTimeout ; }
Source:
public void test_parse_h_z_2DigitOffsetFromGMT ( ) throws java.lang.Exception { assertParse ( "h z" , "14 GMT-24 " , new java.util.Date ( 51840000 ) , 0 , 9 ) ; assertParse ( "h z" , "14 GMT-23 " , new java.util.Date ( 133200000 ) , 0 , 9 ) ; assertParse ( "h z" , "14 GMT+24 " , new java.util.Date ( 48960000 ) , 0 , 9 ) ; assertParse ( "h z" , "14 GMT+23 " , new java.util.Date ( ( - 32400000 ) ) , 0 , 9 ) ; }

Target:
public void test_parse_h_z_2DigitOffsetFromGMT_doesNotParse ( ) throws java.lang.Exception { pFormat.applyPattern ( "h z" ) ; try { pFormat.parse ( "14 GMT-23" ) ; } catch ( java.text.ParseException expected ) { } try { pFormat.parse ( "14 GMT+23" ) ; } catch ( java.text.ParseException expected ) { } }
Source:
public void clearWallpaper ( ) { if ( com.android.server.WallpaperManagerService.DEBUG ) android.util.Slog.v ( com.android.server.WallpaperManagerService.TAG , "clearWallpaper" ) ; synchronized ( mLock ) { clearWallpaperLocked ( false ) ; } }

Target:
public void onSomePackagesChanged ( ) { synchronized ( mLock ) { for ( int i = 0 ; i < ( mWallpaperMap.size ( ) ) ; i ++ ) { com.android.server.WallpaperManagerService.WallpaperData wallpaper = mWallpaperMap.valueAt ( i ) ; doPackagesChangedLocked ( true , wallpaper ) ; } } }
Source:
protected org.eclipse.swt.widgets.Control createDialogArea ( org.eclipse.swt.widgets.Composite parent ) { org.eclipse.swt.widgets.Composite top = ( ( org.eclipse.swt.widgets.Composite ) ( super . createDialogArea ( parent ) ) ) ; createMessageArea ( top ) ; createFilteredTree ( top ) ; setupInitialSelection ( ) ; createNewResButtons ( top ) ; return top ; }

Target:
protected org.eclipse.swt.widgets.Control createDialogArea ( org.eclipse.swt.widgets.Composite parent ) { org.eclipse.swt.widgets.Composite top = ( ( org.eclipse.swt.widgets.Composite ) ( super . createDialogArea ( parent ) ) ) ; createMessageArea ( top ) ; createFilteredTree ( top ) ; if ( ( mCurrentResource ) != null ) { setupInitialSelection ( ) ; } createNewResButtons ( top ) ; return top ; }
Source:
public com.android.tv.dvr.ScheduledRecording getCurrentRecording ( long channelId ) { if ( ! ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) { return null ; } for ( com.android.tv.dvr.ScheduledRecording recording : mDataManager.getStartedRecordings ( ) ) { if ( ( recording.getChannelId ( ) ) == channelId ) { return recording ; } } return null ; }

Target:
public com.android.tv.dvr.data.ScheduledRecording getCurrentRecording ( long channelId ) { if ( ! ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) { return null ; } for ( com.android.tv.dvr.data.ScheduledRecording recording : mDataManager.getStartedRecordings ( ) ) { if ( ( recording.getChannelId ( ) ) == channelId ) { return recording ; } } return null ; }
Source:
public void testQuickFix_parameterWithNamedAnnotation ( ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; java.lang.String parameterText = ( "@" + ( com.google.gct.intellij.endpoints.GctConstants.APP_ENGINE_ANNOTATION_NAMED ) ) + "(\"foo\")int someParam" ; com.intellij.psi.PsiParameter parameter = com.intellij.psi.JavaPsiFacade.getInstance ( myProject ) . getElementFactory ( ) . createParameterFromText ( parameterText , null ) ; com.google.gct.intellij.endpoints.validation.ApiParameterInspection.MyQuickFix myQuickFix = new com.google.gct.intellij.endpoints.validation.ApiParameterInspection ( ) . new com.google.gct.intellij.endpoints.validation.MyQuickFix ( ) ; com.intellij.codeInspection.ex.ProblemDescriptorImpl problemDescriptorMock = org.mockito.Mockito.mock ( com.intellij.codeInspection.ex.ProblemDescriptorImpl.class ) ; org.mockito.Mockito.when ( problemDescriptorMock.getPsiElement ( ) ) . thenReturn ( parameter ) ; myQuickFix.applyFix ( myProject , problemDescriptorMock ) ; junit.framework.Assert.assertEquals ( parameterText , parameter.getText ( ) ) ; }

Target:
private void runQuickFixTest ( java.lang.String parameterText , java.lang.String expectedString ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; com.intellij.psi.PsiParameter parameter = com.intellij.psi.JavaPsiFacade.getInstance ( myProject ) . getElementFactory ( ) . createParameterFromText ( parameterText , null ) ; com.google.gct.intellij.endpoints.validation.ApiParameterInspection.MyQuickFix myQuickFix = new com.google.gct.intellij.endpoints.validation.ApiParameterInspection ( ) . new com.google.gct.intellij.endpoints.validation.MyQuickFix ( ) ; com.intellij.testFramework.MockProblemDescriptor problemDescriptor = new com.intellij.testFramework.MockProblemDescriptor ( parameter , "" , com.intellij.codeInspection.ProblemHighlightType.ERROR , null ) ; myQuickFix.applyFix ( myFixture.getProject ( ) , problemDescriptor ) ; junit.framework.Assert.assertEquals ( expectedString , parameter.getText ( ) ) ; }
Source:
private com.android.server.wifi.WifiConfigStoreData createSingleOpenNetworkStoreData ( ) { java.util.List < android.net.wifi.WifiConfiguration > configurations = new java.util.ArrayList < > ( ) ; configurations.add ( com.android.server.wifi.WifiConfigurationTestUtil.createOpenNetwork ( ) ) ; return new com.android.server.wifi.WifiConfigStoreData ( configurations , new java.util.ArrayList < android.net.wifi.WifiConfiguration > ( ) , new java.util.HashSet < java.lang.String > ( ) ) ; }

Target:
public void setShareData ( java.lang.String shareData ) { mShareData = shareData ; }
Source:
private static android.net.Uri ensureIsContactUri ( final android.net.Uri uri ) { if ( uri == null ) { throw new java.lang.IllegalArgumentException ( "Uri must not be null" ) ; } if ( ! ( uri.toString ( ) . startsWith ( Contacts.CONTENT_URI.toString ( ) ) ) ) { throw new java.lang.IllegalArgumentException ( ( "Invalid contact Uri: " + uri ) ) ; } return uri ; }

Target:
private static android.net.Uri ensureIsContactUri ( final android.net.Uri uri ) { if ( uri == null ) { throw new java.lang.IllegalArgumentException ( "Uri must not be null" ) ; } if ( ( ! ( uri.toString ( ) . startsWith ( Contacts.CONTENT_URI.toString ( ) ) ) ) && ( ! ( uri.toString ( ) . equals ( Profile.CONTENT_URI.toString ( ) ) ) ) ) { throw new java.lang.IllegalArgumentException ( ( "Invalid contact Uri: " + uri ) ) ; } return uri ; }
Source:
public void onCharacteristicRead ( android.bluetooth.BluetoothGatt gatt , android.bluetooth.BluetoothGattCharacteristic characteristic , int status ) { if ( com.android.cts.verifier.bluetooth.BleClientService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleClientService.TAG , "onCharacteristicRead" ) ; if ( ( status == ( android.bluetooth.BluetoothGatt.GATT_SUCCESS ) ) && ( characteristic.getUuid ( ) . equals ( com.android.cts.verifier.bluetooth.BleClientService.CHARACTERISTIC_UUID ) ) ) { notifyCharacteristicRead ( characteristic.getStringValue ( 0 ) ) ; sleep ( 1000 ) ; writeDescriptor ( com.android.cts.verifier.bluetooth.BleClientService.WRITE_VALUE ) ; } else { notifyError ( "Failed to read characteristic" ) ; } }

Target:
public void onCharacteristicChanged ( android.bluetooth.BluetoothGatt gatt , android.bluetooth.BluetoothGattCharacteristic characteristic ) { java.util.UUID uid = characteristic.getUuid ( ) ; if ( com.android.cts.verifier.bluetooth.BleClientService.DEBUG ) { android.util.Log.d ( com.android.cts.verifier.bluetooth.BleClientService.TAG , ( "onCharacteristicChanged: " + uid ) ) ; } if ( uid != null ) { if ( uid.equals ( com.android.cts.verifier.bluetooth.BleClientService.INDICATE_CHARACTERISTIC_UUID ) ) { setNotification ( characteristic , false ) ; notifyCharacteristicIndicated ( ) ; } else { ( mNotifyCount ) -- ; setNotification ( characteristic , false ) ; if ( ( mNotifyCount ) == 0 ) { notifyCharacteristicChanged ( ) ; } } } }
Source:
public void onRttStatusChanged ( android.telecom.Call call , boolean enabled , android.telecom.Call.RttCall rttCall ) { android.util.Log.v ( com.android.server.telecom.testapps.TestCallList.TAG , ( ( ( "onRttStatusChanged: call = " + call ) + " " ) + ( java.lang.System.identityHashCode ( this ) ) ) ) ; if ( call != null ) { mCalls.clear ( ) ; mCalls.add ( call ) ; } }

Target:
public void onRttStatusChanged ( android.telecom.Call call , boolean enabled , android.telecom.Call.RttCall rttCall ) { android.util.Log.v ( com.android.server.telecom.testapps.TestCallList.TAG , ( ( ( "onRttStatusChanged: call = " + call ) + " " ) + ( java.lang.System.identityHashCode ( this ) ) ) ) ; if ( enabled ) { for ( com.android.server.telecom.testapps.TestCallList.Listener l : mListeners ) { l.onRttStarted ( call ) ; } } else { for ( com.android.server.telecom.testapps.TestCallList.Listener l : mListeners ) { l.onRttStopped ( call ) ; } } }
Source:
public boolean equals ( java.lang.Object other ) { if ( ( this ) == other ) { return true ; } if ( ! ( other instanceof com.android.jack.dx.rop.type.Type ) ) { return false ; } return descriptor.equals ( ( ( com.android.jack.dx.rop.type.Type ) ( other ) ) . descriptor ) ; }

Target:
public int hashCode ( ) { return descriptor.hashCode ( ) ; }
Source:
public final void testOffsetBy ( ) { com.android.ide.eclipse.adt.editors.layout.gscripts.Point p = new com.android.ide.eclipse.adt.editors.layout.gscripts.Point ( 1 , 2 ) ; com.android.ide.eclipse.adt.editors.layout.gscripts.Point p2 = p.offsetBy ( 3 , 4 ) ; assertSame ( p , p2 ) ; assertEquals ( ( 1 + 3 ) , p.x ) ; assertEquals ( ( 2 + 4 ) , p.y ) ; }

Target:
public final void testOffsetBy ( ) { com.android.ide.common.api.Point p = new com.android.ide.common.api.Point ( 1 , 2 ) ; com.android.ide.common.api.Point p2 = p.offsetBy ( 3 , 4 ) ; assertSame ( p , p2 ) ; assertEquals ( ( 1 + 3 ) , p.x ) ; assertEquals ( ( 2 + 4 ) , p.y ) ; }
Source:
public void execute ( java.lang.String programName ) { java.lang.StringBuilder commandBuilder = new java.lang.StringBuilder ( ) ; commandBuilder.append ( "dalvikvm32 -Xint " ) ; if ( device.noBootImageAvailable ( ) ) { commandBuilder.append ( "-Ximage:/data/art-test/core.art -Xnorelocate " ) ; } commandBuilder.append ( "-cp " ) . append ( testLocation ) . append ( "/" ) . append ( programName ) . append ( " " ) ; commandBuilder.append ( executeClass ) ; executionResult = executeCommandWithTimeout ( commandBuilder.toString ( ) , true ) ; }

Target:
protected java.lang.String constructCommand ( java.lang.String programName ) { java.lang.StringBuilder commandBuilder = new java.lang.StringBuilder ( ) ; commandBuilder.append ( "dalvikvm32 -Xint " ) ; if ( device.noBootImageAvailable ( ) ) { commandBuilder.append ( "-Ximage:/data/art-test/core.art -Xnorelocate " ) ; } commandBuilder.append ( "-cp " ) . append ( testLocation ) . append ( "/" ) . append ( programName ) . append ( " " ) ; commandBuilder.append ( executeClass ) ; return commandBuilder.toString ( ) ; }
Source:
public void forEach ( java.util.function.Consumer < ? super E > action ) { if ( action == null ) throw new java.lang.NullPointerException ( ) ; for ( java.lang.Object x : getArray ( ) ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) E e = ( ( E ) ( x ) ) ; action.accept ( e ) ; } }

Target:
public E remove ( int index ) { synchronized ( this ) { slice.checkElementIndex ( index ) ; slice.checkConcurrentModification ( elements ) ; E removed = this . remove ( ( ( slice.from ) + index ) ) ; slice = new java.util.concurrent.CopyOnWriteArrayList.Slice ( elements , slice.from , ( ( slice.to ) - 1 ) ) ; return removed ; } }
Source:
void addOptionInstance ( com.google.devtools.common.options.ParsedOptionDescription parsedOption , java.util.List < java.lang.String > warnings ) throws com.google.devtools.common.options.OptionsParsingException { java.lang.Object convertedValue = parsedOption.getConvertedValue ( ) ; com.google.devtools.common.options.OptionPriority priority = parsedOption.getPriority ( ) ; parsedOptions.put ( priority , parsedOption ) ; if ( convertedValue instanceof java.util.List < ? > ) { optionValues.putAll ( priority , ( ( java.util.List < ? > ) ( convertedValue ) ) ) ; } else { optionValues.put ( priority , convertedValue ) ; } }

Target:
com.google.devtools.common.options.OptionValueDescription.ExpansionBundle addOptionInstance ( com.google.devtools.common.options.ParsedOptionDescription parsedOption , java.util.List < java.lang.String > warnings ) throws com.google.devtools.common.options.OptionsParsingException { java.lang.Object convertedValue = parsedOption.getConvertedValue ( ) ; com.google.devtools.common.options.OptionPriority priority = parsedOption.getPriority ( ) ; parsedOptions.put ( priority , parsedOption ) ; if ( convertedValue instanceof java.util.List < ? > ) { optionValues.putAll ( priority , ( ( java.util.List < ? > ) ( convertedValue ) ) ) ; } else { optionValues.put ( priority , convertedValue ) ; } return null ; }
Source:
public void destroy ( ) { validate ( ) ; nContextDeinitToClient ( mContext ) ; mMessageThread.mRun = false ; try { mMessageThread.join ( ) ; } catch ( java.lang.InterruptedException e ) { } nContextDestroy ( ) ; mContext = 0 ; nDeviceDestroy ( mDev ) ; mDev = 0 ; }

Target:
synchronized void nContextDestroy ( ) { validate ( ) ; java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock wlock = mRWLock.writeLock ( ) ; wlock.lock ( ) ; int curCon = mContext ; mContext = 0 ; wlock.unlock ( ) ; rsnContextDestroy ( curCon ) ; }
Source:
public void error ( java.lang.String id ) { severities.put ( id , Severity.ERROR ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Integer > getSeverityOverrides ( ) { if ( ( ( severities ) == null ) || ( severities.isEmpty ( ) ) ) { return null ; } java.util.Map < java.lang.String , java.lang.Integer > map = com.google.common.collect.Maps.newHashMapWithExpectedSize ( severities.size ( ) ) ; for ( java.util.Map.Entry < java.lang.String , com.android.tools.lint.detector.api.Severity > entry : severities.entrySet ( ) ) { map.put ( entry.getKey ( ) , com.android.build.gradle.internal.dsl.LintOptions.convert ( entry.getValue ( ) ) ) ; } return map ; }
Source:
public void iccTransmitApduLogicalChannel ( int channel , int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data , android.os.Message response ) { if ( channel <= 0 ) { throw new java.lang.RuntimeException ( ( "Invalid channel in iccTransmitApduLogicalChannel: " + channel ) ) ; } iccTransmitApduHelper ( com.android.internal.telephony.RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL , channel , cla , instruction , p1 , p2 , p3 , data , response ) ; }

Target:
void processIndication ( int indicationType ) { if ( indicationType == ( android.hardware.radio.V1_0.RadioIndicationType.UNSOLICITED_ACK_EXP ) ) { sendAck ( ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( "Unsol response received; Sending ack to ril.cpp" ) ; } else { } }
Source:
private void newDefaultNetwork ( long timeMs , com.android.server.connectivity.NetworkAgentInfo newNai ) { android.net.metrics.DefaultNetworkEvent ev = new android.net.metrics.DefaultNetworkEvent ( timeMs ) ; ev.durationMs = timeMs ; if ( newNai != null ) { com.android.server.connectivity.DefaultNetworkMetrics.fillLinkInfo ( ev , newNai ) ; ev.initialScore = newNai.getCurrentScore ( ) ; if ( newNai.lastValidated ) { logDefaultNetworkValidity ( timeMs , true ) ; } } else { mIsCurrentlyValid = false ; } mCurrentDefaultNetwork = ev ; }

Target:
private void newDefaultNetwork ( long timeMs , com.android.server.connectivity.NetworkAgentInfo newNai ) { android.net.metrics.DefaultNetworkEvent ev = new android.net.metrics.DefaultNetworkEvent ( timeMs ) ; ev.durationMs = timeMs ; if ( newNai != null ) { com.android.server.connectivity.DefaultNetworkMetrics.fillLinkInfo ( ev , newNai ) ; ev.initialScore = newNai.getCurrentScore ( ) ; if ( newNai.lastValidated ) { mIsCurrentlyValid = true ; mLastValidationTimeMs = timeMs ; } } else { mIsCurrentlyValid = false ; } mCurrentDefaultNetwork = ev ; }
Source:
private void cachePackageCodeLocation ( android.content.pm.PackageInfo info , int userId ) { com.android.server.pm.dex.DexManager.PackageCodeLocations pcl = mPackageCodeLocationsCache.get ( info.packageName ) ; if ( pcl != null ) { pcl.mergeAppDataDirs ( info.applicationInfo , userId ) ; } else { mPackageCodeLocationsCache.put ( info.packageName , new com.android.server.pm.dex.DexManager.PackageCodeLocations ( info.applicationInfo , userId ) ) ; } }

Target:
public void cachePackageCodeLocation ( java.lang.String packageName , java.lang.String baseCodePath , java.lang.String [ ] splitCodePaths , java.lang.String dataDir , int userId ) { com.android.server.pm.dex.DexManager.PackageCodeLocations pcl = com.android.server.pm.dex.DexManager.putIfAbsent ( mPackageCodeLocationsCache , packageName , new com.android.server.pm.dex.DexManager.PackageCodeLocations ( packageName , baseCodePath , splitCodePaths ) ) ; pcl.updateCodeLocation ( baseCodePath , splitCodePaths ) ; if ( dataDir != null ) { pcl.mergeAppDataDirs ( dataDir , userId ) ; } }
Source:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.phoneButtonListener" , "speaker request for voicemailUri: %s" , voicemailUri.toString ( ) ) ; android.content.ContentValues contentValues = new android.content.ContentValues ( ) ; contentValues.put ( "has_content" , 0 ) ; try { getContext ( ) . getContentResolver ( ) . update ( voicemailUri , contentValues , "type = 4" , null ) ; } catch ( java.lang.Exception e ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.deleteButtonListener" , "update has content of voicemailUri %s caused an error: %s" , voicemailUri.toString ( ) , e.toString ( ) ) ; } }

Target:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.phoneButtonListener" , "phone request for voicemailUri: %s with number:%s" , voicemailUri.toString ( ) , numberVoicemailFrom ) ; com.android.dialer.common.Assert.checkArgument ( ( ! ( android.text.TextUtils.isEmpty ( numberVoicemailFrom ) ) ) , ( "number cannot be empty:" + ( numberVoicemailFrom ) ) ) ; com.android.dialer.precall.PreCall.start ( getContext ( ) , new com.android.dialer.callintent.CallIntentBuilder ( numberVoicemailFrom , com.android.dialer.callintent.CallInitiationType.Type.VOICEMAIL_LOG ) ) ; }
Source:
private void update ( ) { boolean tracingOn = com.android.traceur.AtraceUtils.isTracingOn ( ) ; getQsTile ( ) . setIcon ( android.graphics.drawable.Icon.createWithResource ( this , R.drawable.stat_sys_adb ) ) ; getQsTile ( ) . setState ( ( tracingOn ? android.service.quicksettings.Tile.STATE_ACTIVE : android.service.quicksettings.Tile.STATE_INACTIVE ) ) ; getQsTile ( ) . setLabel ( ( tracingOn ? "Tracing" : "Start Tracing" ) ) ; getQsTile ( ) . updateTile ( ) ; }

Target:
private void update ( ) { boolean tracingOn = com.android.traceur.AtraceUtils.isTracingOn ( ) ; java.lang.String titleString = getString ( ( tracingOn ? R.string.save_and_share_trace : R.string.record_trace ) ) ; getQsTile ( ) . setIcon ( android.graphics.drawable.Icon.createWithResource ( this , R.drawable.stat_sys_adb ) ) ; getQsTile ( ) . setState ( ( tracingOn ? android.service.quicksettings.Tile.STATE_ACTIVE : android.service.quicksettings.Tile.STATE_INACTIVE ) ) ; getQsTile ( ) . setLabel ( titleString ) ; getQsTile ( ) . updateTile ( ) ; }
Source:
public java.lang.String toString ( ) { java.io.File [ ] nativeLibraryDirectoriesArray = nativeLibraryDirectories.toArray ( new java.io.File [ nativeLibraryDirectories.size ( ) ] ) ; return ( ( ( "DexPathList[" + ( java.util.Arrays.toString ( dexElements ) ) ) + ",nativeLibraryDirectories=" ) + ( java.util.Arrays.toString ( nativeLibraryDirectoriesArray ) ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { java.util.List < java.io.File > allNativeLibraryDirectories = new java.util.ArrayList < > ( nativeLibraryDirectories ) ; allNativeLibraryDirectories.addAll ( systemNativeLibraryDirectories ) ; java.io.File [ ] nativeLibraryDirectoriesArray = allNativeLibraryDirectories.toArray ( new java.io.File [ allNativeLibraryDirectories.size ( ) ] ) ; return ( ( ( "DexPathList[" + ( java.util.Arrays.toString ( dexElements ) ) ) + ",nativeLibraryDirectories=" ) + ( java.util.Arrays.toString ( nativeLibraryDirectoriesArray ) ) ) + "]" ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , int [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 4 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , int [ ] d ) { copy1DRangeFromUnchecked ( off , count , ( ( java.lang.Object ) ( d ) ) , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
private com.android.internal.telephony.NitzStateMachineTest.TestNitzSignal createTestNitzSignal ( ) { long receivedRealtimeMillis = mDeviceState.elapsedRealtime ( ) ; long timeMillis = com.android.internal.telephony.NitzStateMachineTest.createTime ( java.util.TimeZone.getTimeZone ( "UTC" ) , 2017 , 1 , 2 , 12 , 45 , 25 ) ; com.android.internal.telephony.NitzData nitzData = com.android.internal.telephony.NitzData.createForTests ( 1000 , 2000 , timeMillis , null ) ; return new com.android.internal.telephony.NitzStateMachineTest.TestNitzSignal ( nitzData , receivedRealtimeMillis ) ; }

Target:
private com.android.internal.telephony.NitzStateMachineTest.TestNitzSignal createTestNitzSignal ( ) { long receivedRealtimeMillis = mTimeServiceHelper.elapsedRealtime ( ) ; long timeMillis = com.android.internal.telephony.NitzStateMachineTest.createTime ( java.util.TimeZone.getTimeZone ( "UTC" ) , 2017 , 1 , 2 , 12 , 45 , 25 ) ; com.android.internal.telephony.NitzData nitzData = com.android.internal.telephony.NitzData.createForTests ( 1000 , 2000 , timeMillis , null ) ; return new com.android.internal.telephony.NitzStateMachineTest.TestNitzSignal ( nitzData , receivedRealtimeMillis ) ; }
Source:
public void testAesCbcHmacSha256Udp4 ( ) 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_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha1Udp4 ( ) 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_SHA1 , getAuthKey ( 160 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public final boolean requestFocusFromTouch ( ) { if ( isInTouchMode ( ) ) { android.view.View root = getRootView ( ) ; if ( root != null ) { android.view.ViewRoot viewRoot = ( ( android.view.ViewRoot ) ( root.getParent ( ) ) ) ; if ( viewRoot != null ) { viewRoot.ensureTouchMode ( false ) ; } } } return requestFocus ( android.view.View.FOCUS_DOWN ) ; }

Target:
public final boolean requestFocusFromTouch ( ) { if ( isInTouchMode ( ) ) { android.view.ViewRootImpl viewRoot = getViewRootImpl ( ) ; if ( viewRoot != null ) { viewRoot.ensureTouchMode ( false ) ; } } return requestFocus ( android.view.View.FOCUS_DOWN ) ; }
Source:
public void getNeighboringCids ( android.os.Message result ) { int [ ] ret = new int [ 7 ] ; ret [ 0 ] = 6 ; for ( int i = 1 ; i < 7 ; i ++ ) { ret [ i ] = i ; } resultSuccess ( result , ret ) ; }

Target:
public void getNeighboringCids ( android.os.Message result , android.os.WorkSource workSource ) { int [ ] ret = new int [ 7 ] ; ret [ 0 ] = 6 ; for ( int i = 1 ; i < 7 ; i ++ ) { ret [ i ] = i ; } resultSuccess ( result , ret ) ; }
Source:
public void testCallMethodOnCreatedFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; mTestImsServiceBinder.isConnected ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , 0 , 0 ) ; org.mockito.Mockito.verify ( mTestImsService.mSpyMMTelFeature ) . isConnected ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) ) ; }

Target:
public void testCallMethodOnCreatedFeature ( ) throws android.os.RemoteException { com.android.ims.internal.IImsMMTelFeature f = mTestImsServiceBinder.createMMTelFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , mTestCallback ) ; f.isConnected ( 0 , 0 ) ; junit.framework.Assert.assertTrue ( mTestImsService.mTestMMTelFeature.isConnectedCalled ) ; }
Source:
public boolean isDataConnectivityPossible ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.isDataConnectivityPossible ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isDataConnectivityPossible" , e ) ; } return false ; }

Target:
public boolean isConcurrentVoiceAndDataAllowed ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; return telephony == null ? false : telephony.isConcurrentVoiceAndDataAllowed ( getSubId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isConcurrentVoiceAndDataAllowed" , e ) ; } return false ; }
Source:
public void testNotifyPackageInstallSelfUse ( ) { com.android.server.pm.dex.DexManagerTests.TestData newPackage = new com.android.server.pm.dex.DexManagerTests.TestData ( "newPackage" , dalvik.system.VMRuntime.getInstructionSet ( android.os.Build.SUPPORTED_ABIS [ 0 ] ) , mUser0 ) ; java.util.List < java.lang.String > newSecondaries = newPackage.getSecondaryDexPaths ( ) ; notifyDexLoad ( newPackage , newSecondaries , mUser0 ) ; com.android.server.pm.dex.PackageDexUsage.PackageUseInfo pui = getPackageUseInfo ( newPackage ) ; org.junit.Assert.assertFalse ( pui.isUsedByOtherApps ( ) ) ; org.junit.Assert.assertEquals ( newSecondaries.size ( ) , pui.getDexUseInfoMap ( ) . size ( ) ) ; assertSecondaryUse ( newPackage , pui , newSecondaries , false , mUser0 ) ; }

Target:
public void testNotifyPackageInstallSelfUse ( ) { com.android.server.pm.dex.DexManagerTests.TestData newPackage = new com.android.server.pm.dex.DexManagerTests.TestData ( "newPackage" , dalvik.system.VMRuntime.getInstructionSet ( android.os.Build.SUPPORTED_ABIS [ 0 ] ) , mUser0 ) ; java.util.List < java.lang.String > newSecondaries = newPackage.getSecondaryDexPaths ( ) ; notifyDexLoad ( newPackage , newSecondaries , mUser0 ) ; com.android.server.pm.dex.PackageDexUsage.PackageUseInfo pui = getPackageUseInfo ( newPackage ) ; assertIsUsedByOtherApps ( newPackage , pui , false ) ; org.junit.Assert.assertEquals ( newSecondaries.size ( ) , pui.getDexUseInfoMap ( ) . size ( ) ) ; assertSecondaryUse ( newPackage , pui , newSecondaries , false , mUser0 ) ; }
Source:
public void documentHasImages ( final android.os.Message response ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { documentHasImages ( response ) ; } } ) ; return ; } mAwContents.documentHasImages ( response ) ; }

Target:
public void clearMatches ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { clearMatches ( ) ; } } ) ; return ; } mAwContents.clearMatches ( ) ; }
Source:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID ) ; }

Target:
synchronized long nScriptFieldIDCreate ( long sid , int slot , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } return rsnScriptFieldIDCreate ( curCon , sid , slot , mUseInc ) ; }
Source:
public boolean addAccountExplicitly ( android.accounts.Account account , java.lang.String password , android.os.Bundle userdata ) { if ( account == null ) throw new java.lang.IllegalArgumentException ( "account is null" ) ; try { return mService.addAccount ( account , password , userdata ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public boolean notifyAccountAuthenticated ( android.accounts.Account account ) { if ( account == null ) throw new java.lang.IllegalArgumentException ( "account is null" ) ; try { return mService.accountAuthenticated ( account ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public static int forkSystemServer ( int uid , int gid , int [ ] gids , int debugFlags , int [ ] [ ] rlimits , long permittedCapabilities , long effectiveCapabilities ) { com.android.internal.os.Zygote.VM_HOOKS.preFork ( ) ; com.android.internal.os.Zygote.resetNicePriority ( ) ; int pid = com.android.internal.os.Zygote.nativeForkSystemServer ( uid , gid , gids , debugFlags , rlimits , permittedCapabilities , effectiveCapabilities ) ; if ( pid == 0 ) { android.os.Trace.setTracingEnabled ( true ) ; } com.android.internal.os.Zygote.VM_HOOKS.postForkCommon ( ) ; return pid ; }

Target:
public static int forkSystemServer ( int uid , int gid , int [ ] gids , int runtimeFlags , int [ ] [ ] rlimits , long permittedCapabilities , long effectiveCapabilities ) { com.android.internal.os.Zygote.VM_HOOKS.preFork ( ) ; com.android.internal.os.Zygote.resetNicePriority ( ) ; int pid = com.android.internal.os.Zygote.nativeForkSystemServer ( uid , gid , gids , runtimeFlags , rlimits , permittedCapabilities , effectiveCapabilities ) ; if ( pid == 0 ) { android.os.Trace.setTracingEnabled ( true ) ; } com.android.internal.os.Zygote.VM_HOOKS.postForkCommon ( ) ; return pid ; }
Source:
public void testCommentHandling2 ( ) throws java.lang.Exception { checkFormat ( com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences.create ( ) , "res/layout-xlarge/layout.xml" , ( "<foo >\n" + ( ( ( " <!-- multi -->\n" + "\n" ) + " <bar />\n" ) + "</foo>" ) ) , ( "<foo>\n" + ( ( ( ( ( "\n" + " <!-- multi -->\n" ) + "\n" ) + " <bar />\n" ) + "\n" ) + "</foo>" ) ) ) ; }

Target:
public void testCommentHandling2 ( ) throws java.lang.Exception { checkFormat ( com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences.create ( ) , "res/layout-xlarge/layout.xml" , ( "<foo >\n" + ( ( ( " <!-- multi -->\n" + "\n" ) + " <bar />\n" ) + "</foo>" ) ) , ( "<foo>\n" + ( ( ( ( ( "\n" + " <!-- multi -->\n" ) + "\n" ) + " <bar />\n" ) + "\n" ) + "</foo>" ) ) ) ; }
Source:
private static void reverseBytes ( byte [ ] bytes ) { byte tmp ; for ( int i = 0 ; i < ( ( bytes.length ) / 2 ) ; i ++ ) { tmp = bytes [ i ] ; bytes [ i ] = bytes [ ( ( ( bytes.length ) - 1 ) - i ) ] ; bytes [ ( ( ( bytes.length ) - 1 ) - i ) ] = tmp ; } }

Target:
protected org.bouncycastle.math.ec.ECMultiplier createBasePointMultiplier ( ) { return new org.bouncycastle.math.ec.FixedPointCombMultiplier ( ) ; }