auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void fillDexLists ( @ javax.annotation.Nonnull java.util.List < com.android.sched.vfs.InputVFile > mainDexList , @ javax.annotation.Nonnull java.util.List < com.android.sched.vfs.InputVFile > anyDexList ) { final com.android.jack.library.OutputJackLibrary jackOutputLibrary = com.android.jack.Jack.getSession ( ) . getJackOutputLibrary ( ) ; for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : com.android.jack.Jack.getSession ( ) . getTypesToEmit ( ) ) { if ( type.containsMarker ( com.android.jack.backend.dex.MainDexMarker.class ) ) { mainDexList.add ( getDexInputVFileOfType ( jackOutputLibrary , type ) ) ; } else { anyDexList.add ( getDexInputVFileOfType ( jackOutputLibrary , type ) ) ; } } }

Target:
private synchronized int getNextMergerIdx ( int oldMergerIdx ) { if ( ( currentMergerIdx ) > oldMergerIdx ) { return getCurrentMergerIdx ( ) ; } ( currentMergerIdx ) ++ ; mergers.add ( getNewMerger ( ) ) ; return getCurrentMergerIdx ( ) ; }
Source:
public final void testNewParent ( ) throws java.lang.Exception { java.util.Map < java.lang.String , com.android.ide.eclipse.adt.internal.resources.DeclareStyleableInfo > styleableList = preloadAndGetStyleables ( ) ; com.android.ide.eclipse.adt.internal.resources.DeclareStyleableInfo newElement = styleableList.get ( "AndroidManifestNewElement" ) ; assertNotNull ( newElement ) ; assertEquals ( "AndroidManifestNewElement" , newElement.getStyleName ( ) ) ; assertEquals ( "[AndroidManifestNewParent]" , java.util.Arrays.toString ( newElement.getParents ( ) ) ) ; com.android.ide.eclipse.adt.internal.resources.DeclareStyleableInfo newParent = styleableList.get ( "AndroidManifestNewParent" ) ; assertNotNull ( newParent ) ; assertEquals ( "[AndroidManifest]" , java.util.Arrays.toString ( newParent.getParents ( ) ) ) ; }

Target:
public final void testNewParent ( ) throws java.lang.Exception { java.util.Map < java.lang.String , com.android.ide.common.resources.platform.DeclareStyleableInfo > styleableList = preloadAndGetStyleables ( ) ; com.android.ide.common.resources.platform.DeclareStyleableInfo newElement = styleableList.get ( "AndroidManifestNewElement" ) ; assertNotNull ( newElement ) ; assertEquals ( "AndroidManifestNewElement" , newElement.getStyleName ( ) ) ; assertEquals ( "[AndroidManifestNewParent]" , java.util.Arrays.toString ( newElement.getParents ( ) ) ) ; com.android.ide.common.resources.platform.DeclareStyleableInfo newParent = styleableList.get ( "AndroidManifestNewParent" ) ; assertNotNull ( newParent ) ; assertEquals ( "[AndroidManifest]" , java.util.Arrays.toString ( newParent.getParents ( ) ) ) ; }
Source:
private java.lang.String selectInterfaceForRequest ( com.android.server.wifi.nan.WifiNanDataPathStateManager.NanNetworkRequestInformation req ) { java.util.Iterator < java.lang.String > it = mInterfaces.iterator ( ) ; if ( it.hasNext ( ) ) { return it.next ( ) ; } android.util.Log.e ( com.android.server.wifi.nan.WifiNanDataPathStateManager.TAG , ( ( "selectInterfaceForRequest: req=" + req ) + " - but no interfaces available!" ) ) ; return "" ; }

Target:
private java.lang.String selectInterfaceForRequest ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.AwareNetworkRequestInformation req ) { java.util.Iterator < java.lang.String > it = mInterfaces.iterator ( ) ; if ( it.hasNext ( ) ) { return it.next ( ) ; } android.util.Log.e ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.TAG , ( ( "selectInterfaceForRequest: req=" + req ) + " - but no interfaces available!" ) ) ; return "" ; }
Source:
public void testInvalidMajorDistroVersion_newer ( ) throws java.lang.Exception { createSystemTzDataFileOnHost ( com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; libcore.tzdata.shared2.DistroVersion newMajorDistroVersion = new libcore.tzdata.shared2.DistroVersion ( ( ( libcore.tzdata.shared2.DistroVersion.CURRENT_FORMAT_MAJOR_VERSION ) + 1 ) , libcore.tzdata.shared2.DistroVersion.CURRENT_FORMAT_MINOR_VERSION , com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION , com.android.cts.tzdata.TzDataCheckTest.VALID_REVISION ) ; libcore.tzdata.shared2.TimeZoneDistro distro = com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . setDistroVersion ( newMajorDistroVersion ) . build ( ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataCurrentDir , distro ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 5 , runTzDataCheckOnDevice ( ) ) ; assertDevicePathDoesNotExist ( dataCurrentDir ) ; }

Target:
public void testInvalidMajorDistroVersion_newer ( ) throws java.lang.Exception { createSystemTzDataFileOnHost ( com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION ) ; com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; com.android.timezone.distro.DistroVersion newMajorDistroVersion = new com.android.timezone.distro.DistroVersion ( ( ( com.android.timezone.distro.DistroVersion.CURRENT_FORMAT_MAJOR_VERSION ) + 1 ) , com.android.timezone.distro.DistroVersion.CURRENT_FORMAT_MINOR_VERSION , com.android.cts.tzdata.TzDataCheckTest.VALID_RULES_VERSION , com.android.cts.tzdata.TzDataCheckTest.VALID_REVISION ) ; com.android.timezone.distro.TimeZoneDistro distro = com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . setDistroVersion ( newMajorDistroVersion ) . build ( ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataCurrentDir , distro ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 5 , runTzDataCheckOnDevice ( ) ) ; assertDevicePathDoesNotExist ( dataCurrentDir ) ; }
Source:
private static java.util.Properties createProps ( com.android.sdklib.internal.repository.packages.PreviewVersion previewVersion ) { java.util.Properties props = new java.util.Properties ( ) ; props.setProperty ( PkgProps.PKG_MINOR_REV , java.lang.Integer.toString ( previewVersion.getMinor ( ) ) ) ; props.setProperty ( PkgProps.PKG_MICRO_REV , java.lang.Integer.toString ( previewVersion.getMicro ( ) ) ) ; props.setProperty ( PkgProps.PKG_PREVIEW_REV , java.lang.Integer.toString ( previewVersion.getPreview ( ) ) ) ; return props ; }

Target:
private static java.util.Properties createProps ( com.android.sdklib.internal.repository.packages.FullRevision revision ) { java.util.Properties props = new java.util.Properties ( ) ; props.setProperty ( PkgProps.PKG_MINOR_REV , java.lang.Integer.toString ( revision.getMinor ( ) ) ) ; props.setProperty ( PkgProps.PKG_MICRO_REV , java.lang.Integer.toString ( revision.getMicro ( ) ) ) ; props.setProperty ( PkgProps.PKG_PREVIEW_REV , java.lang.Integer.toString ( revision.getPreview ( ) ) ) ; return props ; }
Source:
private double getDurationPercentage ( com.android.tools.perflib.vmtrace.Call call , com.android.tools.perflib.vmtrace.viz.CallHierarchyRenderer.TimeSelector selector ) { com.android.tools.perflib.vmtrace.MethodInfo info = mTraceData.getMethod ( call.getMethodId ( ) ) ; long methodTime = selector.get ( info , mThreadName ) ; long topLevelTime = getMethodInfo ( mTopCall ) . getInclusiveTime ( mThreadName , com.android.tools.perflib.vmtrace.ClockType.THREAD ) ; return ( ( ( double ) ( methodTime ) ) / topLevelTime ) * 100 ; }

Target:
private double getDurationPercentage ( com.android.tools.perflib.vmtrace.Call call , com.android.tools.perflib.vmtrace.viz.CallHierarchyRenderer.TimeSelector selector ) { com.android.tools.perflib.vmtrace.MethodInfo info = mTraceData.getMethod ( call.getMethodId ( ) ) ; long methodTime = selector.get ( info , mThreadName ) ; com.android.tools.perflib.vmtrace.MethodInfo topMethod = mTraceData.getMethod ( mTopCall.getMethodId ( ) ) ; long topLevelTime = INCLUSIVE_TIME_SELECTOR.get ( topMethod , mThreadName ) ; return ( ( ( double ) ( methodTime ) ) / topLevelTime ) * 100 ; }
Source:
public static void main ( java.lang.String [ ] args ) { if ( ( Main.testLiveArgument ( Main.staticField3 ) ) != ( Main.staticField3 ) ) { throw new java.lang.Error ( ( "Expected " + ( Main.staticField3 ) ) ) ; } if ( ( Main.testLiveArgument ( Main.staticField3 ) ) != ( Main.staticField3 ) ) { throw new java.lang.Error ( ( "Expected " + ( Main.staticField3 ) ) ) ; } Main.testWrapperIntervalHole ( 1 , true ) ; Main.testWrapperIntervalHole ( 1 , false ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( args [ 0 ] ) ; if ( ( Main.testLiveArgument ( Main.staticField3 ) ) != ( Main.staticField3 ) ) { throw new java.lang.Error ( ( "Expected " + ( Main.staticField3 ) ) ) ; } if ( ( Main.testLiveArgument ( Main.staticField3 ) ) != ( Main.staticField3 ) ) { throw new java.lang.Error ( ( "Expected " + ( Main.staticField3 ) ) ) ; } Main.testWrapperIntervalHole ( 1 , true ) ; Main.testWrapperIntervalHole ( 1 , false ) ; }
Source:
public void test_getBucketIndex_NPE ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex ai = new libcore.icu.AlphabeticIndex ( java.util.Locale.US ) ; try { ai.getBucketIndex ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void test_getBucketLabel_invalid ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex ii = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.US ) ; try { ii.getBucketLabel ( ( - 1 ) ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } try { ii.getBucketLabel ( 123456 ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }
Source:
public static java.util.List < org.jetbrains.plugins.github.api.GithubIssueComment > getIssueComments ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.api.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user , @ org.jetbrains.annotations.NotNull java.lang.String repo , long id ) throws java.io.IOException { java.lang.String path = ( ( ( ( ( ( "/repos/" + user ) + "/" ) + repo ) + "/issues/" ) + id ) + "/comments?" ) + ( org.jetbrains.plugins.github.api.GithubApiUtil.PER_PAGE ) ; org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubIssueComment > request = new org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubIssueComment > ( path , org.jetbrains.plugins.github.api.GithubIssueComment.class , org.jetbrains.plugins.github.api.GithubIssueCommentRaw [ ] . class , org.jetbrains.plugins.github.api.GithubApiUtil.ACCEPT_HTML_BODY_MARKUP ) ; return request.getAll ( auth ) ; }

Target:
public static java.util.List < org.jetbrains.plugins.github.api.GithubIssueComment > getIssueComments ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.util.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user , @ org.jetbrains.annotations.NotNull java.lang.String repo , long id ) throws java.io.IOException { java.lang.String path = ( ( ( ( ( ( "/repos/" + user ) + "/" ) + repo ) + "/issues/" ) + id ) + "/comments?" ) + ( org.jetbrains.plugins.github.api.GithubApiUtil.PER_PAGE ) ; org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubIssueComment > request = new org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubIssueComment > ( path , org.jetbrains.plugins.github.api.GithubIssueComment.class , org.jetbrains.plugins.github.api.GithubIssueCommentRaw [ ] . class , org.jetbrains.plugins.github.api.GithubApiUtil.ACCEPT_HTML_BODY_MARKUP ) ; return request.getAll ( auth ) ; }
Source:
public java.lang.String getDeviceId ( int slotId ) { try { com.android.internal.telephony.IPhoneSubInfo info = getSubscriberInfo ( ) ; if ( info == null ) return null ; return info.getDeviceIdForPhone ( slotId , mContext.getOpPackageName ( ) ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }

Target:
public void setCarrierInfoForImsiEncryption ( android.telephony.ImsiEncryptionInfo imsiEncryptionInfo ) { try { com.android.internal.telephony.IPhoneSubInfo info = getSubscriberInfo ( ) ; if ( info == null ) return ; info.setCarrierInfoForImsiEncryption ( mSubId , mContext.getOpPackageName ( ) , imsiEncryptionInfo ) ; } catch ( java.lang.NullPointerException ex ) { return ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setCarrierInfoForImsiEncryption RemoteException" , ex ) ; return ; } }
Source:
private boolean isSupportedSetupEventCommand ( com.android.internal.telephony.cat.CatCmdMessage cmdMsg ) { boolean flag = true ; for ( int eventVal : cmdMsg.getSetEventList ( ) . eventList ) { com.android.internal.telephony.cat.CatLog.d ( this , ( "Event: " + eventVal ) ) ; switch ( eventVal ) { case SetupEventListConstants.IDLE_SCREEN_AVAILABLE_EVENT : case SetupEventListConstants.LANGUAGE_SELECTION_EVENT : break ; default : flag = false ; } } return flag ; }

Target:
private boolean isSupportedSetupEventCommand ( com.android.internal.telephony.cat.CatCmdMessage cmdMsg ) { boolean flag = true ; for ( int eventVal : cmdMsg.getSetEventList ( ) . eventList ) { com.android.internal.telephony.cat.CatLog.d ( this , ( "Event: " + eventVal ) ) ; switch ( eventVal ) { case SetupEventListConstants.IDLE_SCREEN_AVAILABLE_EVENT : case SetupEventListConstants.LANGUAGE_SELECTION_EVENT : case SetupEventListConstants.USER_ACTIVITY_EVENT : break ; default : flag = false ; } } return flag ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; long literal = in.readLong ( ) ; return new com.android.jack.dx.io.instructions.OneRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , literal , a ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int size = in.read ( ) ; int firstKey = in.readInt ( ) ; int [ ] targets = new int [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { targets [ i ] = in.readInt ( ) ; } return new com.android.jack.dx.io.instructions.PackedSwitchPayloadDecodedInstruction ( this , opcodeUnit , firstKey , targets ) ; }
Source:
public com.android.apksig.ApkSigner build ( ) { if ( mV3SigningExplicitlyDisabled ) { mV3SigningEnabled = false ; } if ( mV3SigningExplicitlyEnabled ) { mV3SigningEnabled = true ; } return new com.android.apksig.ApkSigner ( mSignerConfigs , mMinSdkVersion , mV1SigningEnabled , mV2SigningEnabled , mV3SigningEnabled , mDebuggableApkPermitted , mOtherSignersSignaturesPreserved , mCreatedBy , mSignerEngine , mInputApkFile , mInputApkDataSource , mOutputApkFile , mOutputApkDataSink , mOutputApkDataSource , mSigningCertificateLineage ) ; }

Target:
public com.android.apksig.ApkSigner build ( ) { if ( ( mV3SigningExplicitlyDisabled ) && ( mV3SigningExplicitlyEnabled ) ) { throw new java.lang.IllegalStateException ( ( "Builder configured to both enable and disable APK " + "Signature Scheme v3 signing" ) ) ; } if ( mV3SigningExplicitlyDisabled ) { mV3SigningEnabled = false ; } if ( mV3SigningExplicitlyEnabled ) { mV3SigningEnabled = true ; } return new com.android.apksig.ApkSigner ( mSignerConfigs , mMinSdkVersion , mV1SigningEnabled , mV2SigningEnabled , mV3SigningEnabled , mDebuggableApkPermitted , mOtherSignersSignaturesPreserved , mCreatedBy , mSignerEngine , mInputApkFile , mInputApkDataSource , mOutputApkFile , mOutputApkDataSink , mOutputApkDataSource , mSigningCertificateLineage ) ; }
Source:
private void postProceed ( final boolean proceed ) { post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { callback.onReceiveValue ( proceed ) ; } } ) ; }

Target:
public void onPermissionRequestCanceled ( org.chromium.android_webview.permission.AwPermissionRequest permissionRequest ) { org.chromium.base.TraceEvent.begin ( ) ; if ( ( ( mWebChromeClient ) != null ) && ( ( mOngoingPermissionRequests ) != null ) ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onPermissionRequestCanceled" ) ; java.lang.ref.WeakReference < com.android.webview.chromium.WebViewContentsClientAdapter.PermissionRequestAdapter > weakRef = mOngoingPermissionRequests.get ( permissionRequest ) ; if ( weakRef != null ) { com.android.webview.chromium.WebViewContentsClientAdapter.PermissionRequestAdapter adapter = weakRef.get ( ) ; if ( adapter != null ) mWebChromeClient.onPermissionRequestCanceled ( adapter ) ; } } org.chromium.base.TraceEvent.end ( ) ; }
Source:
public void onWindowVisibilityChanged ( final int visibility ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onWindowVisibilityChanged ( visibility ) ; } } ) ; return ; } mAwContents.onWindowVisibilityChanged ( visibility ) ; }

Target:
public void onConfigurationChanged ( final android.content.res.Configuration newConfig ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onConfigurationChanged ( newConfig ) ; } } ) ; return ; } mAwContents.onConfigurationChanged ( newConfig ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { new com.ibm.icu.dev.test.format.MeasureUnitTest ( ) . run ( args ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.Thread thread = new java.lang.Thread ( ) { @ java.lang.Override public void run ( ) { @ java.lang.SuppressWarnings ( value = "unused" ) java.util.Set < java.lang.String > measureUnitTypes = com.ibm.icu.util.MeasureUnit.getAvailableTypes ( ) ; } } ; thread.start ( ) ; @ java.lang.SuppressWarnings ( value = "unused" ) com.ibm.icu.util.Currency cur = com.ibm.icu.util.Currency.getInstance ( ULocale.ENGLISH ) ; try { thread.join ( ) ; } catch ( java.lang.InterruptedException e ) { } new com.ibm.icu.dev.test.format.MeasureUnitTest ( ) . run ( args ) ; }
Source:
public void dispose ( ) throws android.telephony.mbms.MbmsException { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { mService.disposeStream ( mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_MIDDLEWARE_LOST ) ; } finally { mService = null ; } }

Target:
public void dispose ( ) throws android.telephony.mbms.MbmsException { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { mService.disposeStream ( mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_MIDDLEWARE_LOST ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new java.lang.IllegalStateException ( "StreamingService state inconsistent with middleware" ) ; } finally { mService = null ; } }
Source:
private static com.android.sdklib.util.Pair < java.io.File , java.lang.Integer > findValueDefinition ( java.io.File resourceDir , com.android.ide.eclipse.adt.internal.resources.ResourceType type , java.lang.String name ) { java.io.File [ ] children = resourceDir.listFiles ( ) ; if ( children == null ) { return null ; } for ( java.io.File resource : children ) { if ( resource.getName ( ) . endsWith ( com.android.ide.eclipse.adt.AndroidConstants.EXT_XML ) ) { com.android.sdklib.util.Pair < java.io.File , java.lang.Integer > target = com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.findValueInXml ( type , name , resource ) ; if ( target != null ) { return target ; } } } return null ; }

Target:
private static com.android.sdklib.util.Pair < org.eclipse.core.resources.IFile , org.eclipse.jface.text.IRegion > findValueDefinition ( org.eclipse.core.resources.IProject project , com.android.ide.eclipse.adt.internal.resources.ResourceType type , java.lang.String name ) { com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration configuration = com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.getConfiguration ( ) ; com.android.sdklib.util.Pair < org.eclipse.core.resources.IFile , org.eclipse.jface.text.IRegion > target = com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.findValueByConfig ( project , type , name , configuration ) ; if ( target != null ) { return target ; } if ( configuration != null ) { return com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.findValueByConfig ( project , type , name , configuration ) ; } return null ; }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; android.content.Intent intent = new android.content.Intent ( NotificationService.ACTION_CREATE ) ; intent.setComponent ( new android.content.ComponentName ( this , com.android.example.notificationshowcase.NotificationService.class ) ) ; startService ( intent ) ; finish ( ) ; }

Target:
public void doPrefs ( android.view.View v ) { android.content.Intent intent = new android.content.Intent ( ) ; intent.setComponent ( new android.content.ComponentName ( this , com.android.example.notificationshowcase.SettingsActivity.class ) ) ; startActivity ( intent ) ; }
Source:
private void doFollowReferencesTestRoot ( ) { Main.Verifier v = new Main.Verifier ( ) ; Main.TestConfig.tagClasses ( v ) ; Main.A a = Main.TestConfig.createTree ( v ) ; doFollowReferencesTestImpl ( null , java.lang.Integer.MAX_VALUE , ( - 1 ) , a , v , null ) ; doFollowReferencesTestImpl ( a.foo2 , java.lang.Integer.MAX_VALUE , ( - 1 ) , a , v , "3@1001" ) ; }

Target:
private void doFollowReferencesTestNonRoot ( java.util.ArrayList < java.lang.Object > tmpStorage ) { Main.Verifier v = new Main.Verifier ( ) ; Main.TestConfig.tagClasses ( v ) ; Main.A a = Main.TestConfig.createTree ( v ) ; tmpStorage.add ( a ) ; v.add ( "0@0" , "1@1000" ) ; doFollowReferencesTestImpl ( null , stopAfter , followSet , null , v , null ) ; doFollowReferencesTestImpl ( a.foo2 , stopAfter , followSet , null , v , "3@1001" ) ; tmpStorage.clear ( ) ; }
Source:
public android.content.Loader < android.database.Cursor > onCreateLoader ( int id , android.os.Bundle args ) { boolean sortOrderPrimary = ( contactsPrefs.getSortOrder ( ) ) == ( com.android.contacts.common.preference.ContactsPreferences.SORT_ORDER_PRIMARY ) ; boolean displayOrderPrimary = ( contactsPrefs.getDisplayOrder ( ) ) == ( com.android.contacts.common.preference.ContactsPreferences.DISPLAY_ORDER_PRIMARY ) ; java.lang.String sortKey = ( sortOrderPrimary ) ? android.provider.ContactsContract.Contacts.SORT_KEY_PRIMARY : android.provider.ContactsContract.Contacts.SORT_KEY_ALTERNATIVE ; return displayOrderPrimary ? com.android.dialer.contactsfragment.ContactsCursorLoader.createInstanceDisplayNamePrimary ( getContext ( ) , sortKey ) : com.android.dialer.contactsfragment.ContactsCursorLoader.createInstanceDisplayNameAlternative ( getContext ( ) , sortKey ) ; }

Target:
public android.content.Loader < android.database.Cursor > onCreateLoader ( int id , android.os.Bundle args ) { com.android.dialer.contactsfragment.ContactsCursorLoader cursorLoader = new com.android.dialer.contactsfragment.ContactsCursorLoader ( getContext ( ) , hasPhoneNumbers ) ; cursorLoader.setQuery ( query ) ; return cursorLoader ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , float [ ] 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 copy1DRangeFrom ( int off , int count , java.lang.Object array ) { copy1DRangeFromUnchecked ( off , count , array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public boolean canThrow ( ) { return ! ( ( ( getCastType ( ) ) instanceof com.android.jack.ir.ast.JPrimitiveType ) && ( ( getExpr ( ) . getType ( ) ) instanceof com.android.jack.ir.ast.JPrimitiveType ) ) ; }

Target:
public boolean canThrow ( ) { if ( ( castTypes.size ( ) ) > 1 ) { return true ; } return ! ( ( ( getType ( ) ) instanceof com.android.jack.ir.ast.JPrimitiveType ) && ( ( getExpr ( ) . getType ( ) ) instanceof com.android.jack.ir.ast.JPrimitiveType ) ) ; }
Source:
private boolean requiresUi ( android.content.Context context , com.android.dialer.callintent.CallIntentBuilder builder ) { for ( com.android.dialer.precall.PreCallAction action : com.android.dialer.precall.PreCallComponent.get ( context ) . getPreCall ( ) . getActions ( ) ) { if ( action.requiresUi ( context , builder ) ) { com.android.dialer.common.LogUtil.i ( "PreCallImpl.requiresUi" , ( action + " requested UI" ) ) ; return true ; } } return false ; }

Target:
private boolean requiresUi ( android.content.Context context , com.android.dialer.callintent.CallIntentBuilder builder ) { for ( com.android.dialer.precall.PreCallAction action : actions ) { if ( action.requiresUi ( context , builder ) ) { com.android.dialer.common.LogUtil.i ( "PreCallImpl.requiresUi" , ( action + " requested UI" ) ) ; return true ; } } return false ; }
Source:
private static void validateManifestAttribute ( com.android.manifmerger.MergingReport.Builder mergingReport , com.android.manifmerger.XmlElement manifest ) { org.w3c.dom.Attr attributeNode = manifest.getXml ( ) . getAttributeNode ( AndroidManifest.ATTRIBUTE_PACKAGE ) ; if ( attributeNode == null ) { mergingReport.addWarning ( java.lang.String.format ( "Missing 'package' declaration in manifest at %1$s" , manifest.printPosition ( ) ) ) ; } }

Target:
private static void validateManifestAttribute ( com.android.manifmerger.MergingReport.Builder mergingReport , com.android.manifmerger.XmlElement manifest ) { org.w3c.dom.Attr attributeNode = manifest.getXml ( ) . getAttributeNode ( AndroidManifest.ATTRIBUTE_PACKAGE ) ; if ( attributeNode == null ) { manifest.addMessage ( mergingReport , com.android.manifmerger.WARNING , java.lang.String.format ( "Missing 'package' declaration in manifest at %1$s" , manifest.printPosition ( ) ) ) ; } }
Source:
public void fetchCalls ( ) { callLogQueryHandler.fetchCalls ( callTypeFilter , dateLimit ) ; if ( ( ( ! ( isCallLogActivity ) ) && ( ( getActivity ( ) ) != null ) ) && ( ! ( getActivity ( ) . isFinishing ( ) ) ) ) { com.android.dialer.common.FragmentUtils.getParentUnsafe ( this , com.android.dialer.app.calllog.CallLogFragment.CallLogFragmentListener.class ) . updateTabUnreadCounts ( ) ; } }

Target:
public void fetchCalls ( ) { callLogQueryHandler.fetchCalls ( callTypeFilter , dateLimit ) ; if ( ( ( ( ! ( isCallLogActivity ) ) && ( ( getActivity ( ) ) != null ) ) && ( ! ( getActivity ( ) . isFinishing ( ) ) ) ) && ( ( com.android.dialer.common.FragmentUtils.getParent ( this , com.android.dialer.app.calllog.CallLogFragment.CallLogFragmentListener.class ) ) != null ) ) { com.android.dialer.common.FragmentUtils.getParentUnsafe ( this , com.android.dialer.app.calllog.CallLogFragment.CallLogFragmentListener.class ) . updateTabUnreadCounts ( ) ; } }
Source:
private void initSnakeView ( ) { setFocusable ( true ) ; android.content.res.Resources r = this . getContext ( ) . getResources ( ) ; resetTiles ( 4 ) ; loadTile ( com.example.android.snake.SnakeView.RED_STAR , r.getDrawable ( R.drawable.redstar ) ) ; loadTile ( com.example.android.snake.SnakeView.YELLOW_STAR , r.getDrawable ( R.drawable.yellowstar ) ) ; loadTile ( com.example.android.snake.SnakeView.GREEN_STAR , r.getDrawable ( R.drawable.greenstar ) ) ; }

Target:
private void initSnakeView ( android.content.Context context ) { setFocusable ( true ) ; android.content.res.Resources r = this . getContext ( ) . getResources ( ) ; resetTiles ( 4 ) ; loadTile ( com.example.android.snake.SnakeView.RED_STAR , r.getDrawable ( R.drawable.redstar ) ) ; loadTile ( com.example.android.snake.SnakeView.YELLOW_STAR , r.getDrawable ( R.drawable.yellowstar ) ) ; loadTile ( com.example.android.snake.SnakeView.GREEN_STAR , r.getDrawable ( R.drawable.greenstar ) ) ; }
Source:
public android.telephony.ImsiEncryptionInfo getCarrierInfoForImsiEncryption ( int subId , int keyType , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( checkReadPhoneState ( callingPackage , "getCarrierInfoForImsiEncryption" ) ) ) { return null ; } return phone.getCarrierInfoForImsiEncryption ( keyType ) ; } else { loge ( ( "getCarrierInfoForImsiEncryption phone is null for Subscription:" + subId ) ) ; return null ; } }

Target:
public android.telephony.ImsiEncryptionInfo getCarrierInfoForImsiEncryption ( int subId , int keyType , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , "getCarrierInfoForImsiEncryption" ) ) ) { return null ; } return phone.getCarrierInfoForImsiEncryption ( keyType ) ; } else { loge ( ( "getCarrierInfoForImsiEncryption phone is null for Subscription:" + subId ) ) ; return null ; } }
Source:
java.lang.String getExampleShortNumber ( java.lang.String regionCode ) { com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionCode ) ; if ( phoneMetadata == null ) { return "" ; } com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneNumberDesc desc = phoneMetadata.shortCode ; if ( ! ( desc.exampleNumber.equals ( "" ) ) ) { return desc.exampleNumber ; } return "" ; }

Target:
java.lang.String getExampleShortNumber ( java.lang.String regionCode ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionCode ) ; if ( phoneMetadata == null ) { return "" ; } com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc desc = phoneMetadata.getShortCode ( ) ; if ( desc.hasExampleNumber ( ) ) { return desc.getExampleNumber ( ) ; } return "" ; }
Source:
public void testFlagIExistingI ( ) { int iFlags = PackageManager.INSTALL_INTERNAL ; int rFlags = ( PackageManager.INSTALL_INTERNAL ) | ( PackageManager.INSTALL_REPLACE_EXISTING ) ; installFromRawResource ( "install.apk" , R.raw.install , iFlags , false , false , ( - 1 ) , ( - 1 ) ) ; installFromRawResource ( "install.apk" , R.raw.install , rFlags , true , false , ( - 1 ) , ( - 1 ) ) ; }

Target:
public void testManifestEExistingE ( ) { if ( android.os.Environment.isExternalStorageEmulated ( ) ) { return ; } int iFlags = android.content.pm.PackageManager.INSTALL_EXTERNAL ; int rFlags = android.content.pm.PackageManager.INSTALL_REPLACE_EXISTING ; installFromRawResource ( "install.apk" , R.raw.install , iFlags , false , false , ( - 1 ) , ( - 1 ) ) ; installFromRawResource ( "install.apk" , R.raw.install_loc_sdcard , rFlags , true , false , ( - 1 ) , PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL ) ; }
Source:
private void enterMethod ( long methodId , int threadTime , int globalTime ) { com.android.tools.perflib.vmtrace.Call c = new com.android.tools.perflib.vmtrace.Call ( methodId ) ; c.setMethodEntryTime ( threadTime , globalTime ) ; if ( mCallStack.isEmpty ( ) ) { mTopLevelCallees.add ( c ) ; } else { com.android.tools.perflib.vmtrace.Call caller = mCallStack.peek ( ) ; caller.addCallee ( c ) ; } mCallStack.push ( c ) ; }

Target:
private void enterMethod ( long methodId , int threadTime , int globalTime ) { com.android.tools.perflib.vmtrace.Call.Builder cb = new com.android.tools.perflib.vmtrace.Call.Builder ( methodId ) ; cb.setMethodEntryTime ( threadTime , globalTime ) ; if ( mCallStack.isEmpty ( ) ) { mTopLevelCalls.add ( cb ) ; } else { com.android.tools.perflib.vmtrace.Call.Builder caller = mCallStack.peek ( ) ; caller.addCallee ( cb ) ; } mCallStack.push ( cb ) ; }
Source:
public static java.text.DateFormat getTimeFormat ( android.content.Context context ) { libcore.icu.LocaleData d = libcore.icu.LocaleData.get ( context.getResources ( ) . getConfiguration ( ) . locale ) ; boolean is24 = android.text.format.DateFormat.is24HourFormat ( context ) ; return new java.text.SimpleDateFormat ( ( is24 ? d.timeFormat24 : d.timeFormat12 ) ) ; }

Target:
public static java.lang.String getTimeFormatString ( android.content.Context context ) { libcore.icu.LocaleData d = libcore.icu.LocaleData.get ( context.getResources ( ) . getConfiguration ( ) . locale ) ; return android.text.format.DateFormat.is24HourFormat ( context ) ? d.timeFormat24 : d.timeFormat12 ; }
Source:
public static java.lang.String getTypo ( @ com.android.annotations.NonNull java.lang.String errorMessage ) { int index = errorMessage.indexOf ( '"' ) ; int start = index + 1 ; index = errorMessage.indexOf ( '"' , start ) ; if ( index != ( - 1 ) ) { return errorMessage.substring ( start , index ) ; } return null ; }

Target:
public static java.lang.String getTypo ( @ com.android.annotations.NonNull java.lang.String errorMessage , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.TextFormat format ) { errorMessage = format.toText ( errorMessage ) ; int index = errorMessage.indexOf ( '"' ) ; int start = index + 1 ; index = errorMessage.indexOf ( '"' , start ) ; if ( index != ( - 1 ) ) { return errorMessage.substring ( start , index ) ; } return null ; }
Source:
android.content.Intent createAppErrorIntentLocked ( com.android.server.am.ProcessRecord r ) { android.app.ApplicationErrorReport report = createAppErrorReportLocked ( r ) ; if ( report == null ) { return null ; } android.content.Intent result = new android.content.Intent ( android.content.Intent.ACTION_APP_ERROR ) ; result.setComponent ( r.errorReportReceiver ) ; result.putExtra ( Intent.EXTRA_BUG_REPORT , report ) ; result.addFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; return result ; }

Target:
private boolean makeAppCrashingLocked ( com.android.server.am.ProcessRecord app , java.lang.String shortMsg , java.lang.String longMsg , java.lang.String stackTrace ) { app.crashing = true ; app.crashingReport = generateProcessError ( app , ActivityManager.ProcessErrorStateInfo.CRASHED , null , shortMsg , longMsg , stackTrace ) ; startAppProblemLocked ( app ) ; app.stopFreezingAllLocked ( ) ; return handleAppCrashLocked ( app ) ; }
Source:
public static java.lang.String selectName ( com.android.dialer.phonelookup.PhoneLookupInfo phoneLookupInfo ) { com.android.dialer.phonelookup.PhoneLookupInfo.Cp2Info.Cp2ContactInfo firstLocalContact = com.android.dialer.phonelookup.PhoneLookupSelector.firstLocalContact ( phoneLookupInfo ) ; if ( firstLocalContact != null ) { java.lang.String name = firstLocalContact.getName ( ) ; if ( ! ( name.isEmpty ( ) ) ) { return firstLocalContact.getName ( ) ; } } return "" ; }

Target:
public static java.lang.String selectName ( com.android.dialer.phonelookup.PhoneLookupInfo phoneLookupInfo ) { com.android.dialer.phonelookup.PhoneLookupInfo.Cp2Info.Cp2ContactInfo firstLocalContact = com.android.dialer.phonelookup.PhoneLookupSelector.firstLocalContact ( phoneLookupInfo ) ; if ( firstLocalContact != null ) { java.lang.String name = firstLocalContact.getName ( ) ; if ( ! ( name.isEmpty ( ) ) ) { return firstLocalContact.getName ( ) ; } } if ( phoneLookupInfo.hasPeopleApiInfo ( ) ) { return phoneLookupInfo.getPeopleApiInfo ( ) . getDisplayName ( ) ; } return "" ; }
Source:
public void test_toString_listAsMapValue ( ) throws java.lang.Exception { java.util.ArrayList < java.lang.Object > list = new java.util.ArrayList < java.lang.Object > ( ) ; list.add ( "a" ) ; list.add ( new java.util.ArrayList < java.lang.String > ( ) ) ; java.util.HashMap < java.lang.String , java.lang.Object > map = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; map.put ( "x" , "l" ) ; map.put ( "y" , list ) ; assertEquals ( "{\"y\":[\"a\",[]],\"x\":\"l\"}" , new org.json.JSONObject ( map ) . toString ( ) ) ; }

Target:
public void test_toString_listAsMapValue ( ) throws java.lang.Exception { java.util.ArrayList < java.lang.Object > list = new java.util.ArrayList < java.lang.Object > ( ) ; list.add ( "a" ) ; list.add ( new java.util.ArrayList < java.lang.String > ( ) ) ; java.util.Map < java.lang.String , java.lang.Object > map = new java.util.TreeMap < java.lang.String , java.lang.Object > ( ) ; map.put ( "x" , "l" ) ; map.put ( "y" , list ) ; assertEquals ( "{\"x\":\"l\",\"y\":[\"a\",[]]}" , new org.json.JSONObject ( map ) . toString ( ) ) ; }
Source:
public com.android.sched.vfs.InputVDir getDir ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { return vfs.getRootDir ( ) . getInputVDir ( typePath ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }

Target:
public com.android.sched.vfs.InputVDir getDir ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { return vfs.getRootInputVDir ( ) . getInputVDir ( typePath ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
public void testVarargsCustomClass ( junitparams.internal.TestMethodTest.Pair ... pairs ) { assertEquals ( pairs [ 0 ] . x , pairs [ 0 ] . y ) ; assertEquals ( pairs [ 1 ] . x , pairs [ 1 ] . y ) ; assertTrue ( ( ( pairs [ 2 ] . x ) != ( pairs [ 2 ] . y ) ) ) ; }

Target:
public void testVarargsCustomClass ( junitparams.internal.TestMethodTest.Pair ... pairs ) { assertEquals ( pairs [ 0 ] . x , pairs [ 0 ] . y ) ; assertEquals ( pairs [ 1 ] . x , pairs [ 1 ] . y ) ; assertNotEquals ( pairs [ 2 ] . x , pairs [ 2 ] . y ) ; }
Source:
public java.lang.String toString ( ) { return ( buffer ) == null ? ( ( visibility ) + " " ) + ( getTypeIndex ( ) ) : ( ( visibility ) + " " ) + ( buffer.typeNames ( ) . get ( getTypeIndex ( ) ) ) ; }

Target:
public java.lang.String toString ( ) { return ( dex ) == null ? ( ( visibility ) + " " ) + ( getTypeIndex ( ) ) : ( ( visibility ) + " " ) + ( dex.typeNames ( ) . get ( getTypeIndex ( ) ) ) ; }
Source:
private void interceptScreenshotChord ( ) { if ( ( ( ( mScreenshotChordEnabled ) && ( mVolumeDownKeyTriggered ) ) && ( mPowerKeyTriggered ) ) && ( ! ( mVolumeUpKeyTriggered ) ) ) { final long now = android.os.SystemClock.uptimeMillis ( ) ; if ( ( now <= ( ( mVolumeDownKeyTime ) + ( com.android.internal.policy.impl.PhoneWindowManager.SCREENSHOT_CHORD_DEBOUNCE_DELAY_MILLIS ) ) ) && ( now <= ( ( mPowerKeyTime ) + ( com.android.internal.policy.impl.PhoneWindowManager.SCREENSHOT_CHORD_DEBOUNCE_DELAY_MILLIS ) ) ) ) { mVolumeDownKeyConsumedByScreenshotChord = true ; cancelPendingPowerKeyAction ( ) ; mHandler.postDelayed ( mScreenshotChordLongPress , android.view.ViewConfiguration.getGlobalActionKeyTimeout ( ) ) ; } } }

Target:
private void interceptScreenshotChord ( ) { if ( ( ( ( mScreenshotChordEnabled ) && ( mVolumeDownKeyTriggered ) ) && ( mPowerKeyTriggered ) ) && ( ! ( mVolumeUpKeyTriggered ) ) ) { final long now = android.os.SystemClock.uptimeMillis ( ) ; if ( ( now <= ( ( mVolumeDownKeyTime ) + ( com.android.internal.policy.impl.PhoneWindowManager.SCREENSHOT_CHORD_DEBOUNCE_DELAY_MILLIS ) ) ) && ( now <= ( ( mPowerKeyTime ) + ( com.android.internal.policy.impl.PhoneWindowManager.SCREENSHOT_CHORD_DEBOUNCE_DELAY_MILLIS ) ) ) ) { mVolumeDownKeyConsumedByScreenshotChord = true ; cancelPendingPowerKeyAction ( ) ; mHandler.postDelayed ( mScreenshotChordLongPress , getScreenshotChordLongPressDelay ( ) ) ; } } }
Source:
public void wifiNanSendMessage ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The session ID returned when session" + " was created using publish or subscribe" ) java.lang.Integer sessionId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "peerId" , description = "The ID of the peer being communicated " + "with. Obtained from a previous message or match session." ) java.lang.Integer peerId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "message" ) java.lang.String message , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "messageId" , description = "Arbitrary handle used for " + "identification of the message in the message status callbacks" ) java.lang.Integer messageId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "retryCount" , description = "Number of retries (0 for none) if " + "transmission fails due to no ACK reception" ) java.lang.Integer retryCount ) throws android.os.RemoteException { android.net.wifi.nan.WifiNanDiscoveryBaseSession session = mSessions.get ( sessionId ) ; if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanSendMessage before session (session ID " + sessionId ) + " is ready" ) ) ; } byte [ ] bytes = message.getBytes ( ) ; session.sendMessage ( peerId , bytes , messageId , retryCount ) ; }

Target:
public void wifiNanSendMessage ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The session ID returned when session" + " was created using publish or subscribe" ) java.lang.Integer sessionId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "peerId" , description = "The ID of the peer being communicated " + "with. Obtained from a previous message or match session." ) java.lang.Integer peerId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "message" ) java.lang.String message , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "messageId" , description = "Arbitrary handle used for " + "identification of the message in the message status callbacks" ) java.lang.Integer messageId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "retryCount" , description = "Number of retries (0 for none) if " + "transmission fails due to no ACK reception" ) java.lang.Integer retryCount ) throws android.os.RemoteException { android.net.wifi.nan.WifiNanDiscoveryBaseSession session ; synchronized ( mLock ) { session = mDiscoverySessions.get ( sessionId ) ; } if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanSendMessage before session (session ID " + sessionId ) + " is ready" ) ) ; } byte [ ] bytes = message.getBytes ( ) ; session.sendMessage ( peerId , bytes , messageId , retryCount ) ; }
Source:
public void testSetValues008_Double ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointDouble" , StackTrace002Debuggee.DOUBLE_METHOD ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointDouble" ) ; methodInfo.addVariable ( "param" , new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.DOUBLE_PARAM_VALUE ) , new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.DOUBLE_PARAM_VALUE_TO_SET ) ) ; runStackFrameTest ( tester ) ; }

Target:
public void testSetValues005_Int ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.INT_SIGNAL ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.INT_PARAM_VALUE ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value newValue = new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.INT_PARAM_VALUE_TO_SET ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointInt" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue , newValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointInt" ) ; methodInfo.addVariable ( "param" , oldValue , newValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
public void pullExternalCall ( ) { if ( ( mConnectionService ) == null ) { com.android.server.telecom.Log.w ( this , "pulling a call without a connection service." ) ; } if ( ! ( hasProperty ( Connection.PROPERTY_IS_EXTERNAL_CALL ) ) ) { com.android.server.telecom.Log.w ( this , "pullExternalCall - call %s is not an external call." , mId ) ; return ; } if ( ! ( can ( Connection.CAPABILITY_CAN_PULL_CALL ) ) ) { com.android.server.telecom.Log.w ( this , "pullExternalCall - call %s is external but cannot be pulled." , mId ) ; return ; } com.android.server.telecom.Log.event ( this , Log.Events.PULL ) ; mConnectionService.pullExternalCall ( this ) ; }

Target:
public void pullExternalCall ( ) { if ( ( mConnectionService ) == null ) { android.telecom.Log.w ( this , "pulling a call without a connection service." ) ; } if ( ! ( hasProperty ( Connection.PROPERTY_IS_EXTERNAL_CALL ) ) ) { android.telecom.Log.w ( this , "pullExternalCall - call %s is not an external call." , mId ) ; return ; } if ( ! ( can ( Connection.CAPABILITY_CAN_PULL_CALL ) ) ) { android.telecom.Log.w ( this , "pullExternalCall - call %s is external but cannot be pulled." , mId ) ; return ; } android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_PULL ) ; mConnectionService.pullExternalCall ( this ) ; }
Source:
public void onExternalCallChanged ( com.android.server.telecom.Call call , boolean isExternalCall ) { if ( isExternalCall ) { com.android.server.telecom.Log.d ( LOG_TAG , "Removing call which became external ID %s" , call.getId ( ) ) ; removeCall ( call ) ; } else if ( ! isExternalCall ) { com.android.server.telecom.Log.d ( LOG_TAG , "Adding external call which was pulled with ID %s" , call.getId ( ) ) ; addCall ( call ) ; } }

Target:
public void onExternalCallChanged ( com.android.server.telecom.Call call , boolean isExternalCall ) { if ( isExternalCall ) { android.telecom.Log.d ( LOG_TAG , "Removing call which became external ID %s" , call.getId ( ) ) ; removeCall ( call ) ; } else if ( ! isExternalCall ) { android.telecom.Log.d ( LOG_TAG , "Adding external call which was pulled with ID %s" , call.getId ( ) ) ; addCall ( call ) ; } }
Source:
public void reloadAvds ( com.android.sdklib.ISdkLog log ) throws com.android.prefs.AndroidLocation.AndroidLocationException { java.util.ArrayList < com.android.sdklib.internal.avd.AvdInfo > allList = new java.util.ArrayList < com.android.sdklib.internal.avd.AvdInfo > ( ) ; buildAvdList ( allList , log ) ; synchronized ( mAllAvdList ) { mAllAvdList.clear ( ) ; mAllAvdList.addAll ( allList ) ; mValidAvdList = mBrokenAvdList = null ; } }

Target:
public void reloadAvds ( com.android.utils.ILogger log ) throws com.android.prefs.AndroidLocation.AndroidLocationException { java.util.ArrayList < com.android.sdklib.internal.avd.AvdInfo > allList = new java.util.ArrayList < com.android.sdklib.internal.avd.AvdInfo > ( ) ; buildAvdList ( allList , log ) ; synchronized ( mAllAvdList ) { mAllAvdList.clear ( ) ; mAllAvdList.addAll ( allList ) ; mValidAvdList = mBrokenAvdList = null ; } }
Source:
public com.intellij.updater.ValidationResult validate ( java.io.File toDir ) throws java.io.IOException { return doValidate ( getFile ( toDir ) ) ; }

Target:
public com.intellij.updater.PatchAction merge ( com.intellij.updater.PatchAction other ) { if ( this . equals ( other ) ) { return this ; } com.intellij.updater.MultiAction multi = new com.intellij.updater.MultiAction ( myPatch , myPath , Digester.INVALID ) ; multi.addAction ( this ) ; multi.addAction ( other ) ; return multi ; }