auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static com.android.tools.lint.checks.PermissionHolder mergeAnnotationPermissions ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionHolder permissions , @ com.android.annotations.Nullable com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation ) { if ( annotation != null ) { com.android.tools.lint.checks.PermissionRequirement requirement = com.android.tools.lint.checks.PermissionRequirement.create ( context , annotation ) ; permissions = com.android.tools.lint.checks.PermissionHolder.SetPermissionLookup.join ( permissions , requirement ) ; } return permissions ; }

Target:
private static com.android.tools.lint.checks.PermissionHolder mergeAnnotationPermissions ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionHolder permissions , @ com.android.annotations.Nullable com.intellij.psi.PsiAnnotation annotation ) { if ( annotation != null ) { com.android.tools.lint.checks.PermissionRequirement requirement = com.android.tools.lint.checks.PermissionRequirement.create ( context , annotation ) ; permissions = com.android.tools.lint.checks.PermissionHolder.SetPermissionLookup.join ( permissions , requirement ) ; } return permissions ; }
Source:
public void tearDown ( ) throws java.lang.Exception { if ( ( mPackageStatusStorage ) != null ) { mPackageStatusStorage.deleteDatabaseForTests ( ) ; } }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( ( mPackageStatusStorage ) != null ) { mPackageStatusStorage.deleteFileForTests ( ) ; } }
Source:
public static com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator create ( boolean allowXmlExtension ) { return new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator ( allowXmlExtension , null ) ; }

Target:
public static com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator create ( boolean allowXmlExtension , java.util.Set < java.lang.String > existing , com.android.resources.ResourceType type ) { boolean isFileType = ! ( com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.isValueResource ( type ) ) ; return new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator ( allowXmlExtension , existing , isFileType ) ; }
Source:
public final java.io.FileDescriptor readRawFileDescriptor ( ) { return android.os.Parcel.nativeReadFileDescriptor ( mNativePtr ) ; }

Target:
protected static final android.os.Parcel obtain ( int obj ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
protected void removeFile ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile file ) { mFiles.remove ( file ) ; }

Target:
protected void removeFile ( com.android.ide.common.resources.ResourceFile file ) { mFiles.remove ( file ) ; }
Source:
public void remove ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public com.android.jack.tools.merger.JackMerger current ( ) { return mergers.get ( getCurrentMergerIdx ( ) ) ; }
Source:
public java.lang.ClassLoader generateAndLoad ( java.lang.ClassLoader parent , java.io.File dexCache ) throws java.io.IOException { return generateAndLoad ( parent , parent , dexCache ) ; }

Target:
public void setSharedClassLoader ( java.lang.ClassLoader classLoader ) { this . sharedClassLoader = classLoader ; }
Source:
public void setWhiteBalance ( java.lang.String value ) { set ( android.hardware.Camera.Parameters.KEY_WHITE_BALANCE , value ) ; }

Target:
public void setWhiteBalance ( java.lang.String value ) { java.lang.String oldValue = get ( android.hardware.Camera.Parameters.KEY_WHITE_BALANCE ) ; if ( same ( value , oldValue ) ) return ; set ( android.hardware.Camera.Parameters.KEY_WHITE_BALANCE , value ) ; set ( android.hardware.Camera.Parameters.KEY_AUTO_WHITEBALANCE_LOCK , android.hardware.Camera.Parameters.FALSE ) ; }
Source:
public org.hamcrest.Matcher < android.view.View > getConstraints ( ) { return android.support.test.espresso.matcher.ViewMatchers.isDisplayed ( ) ; }

Target:
public org.hamcrest.Matcher < android.view.View > getConstraints ( ) { return org.hamcrest.Matchers.any ( android.view.View.class ) ; }
Source:
private void gHASHBlock ( byte [ ] Y , byte [ ] b ) { org.bouncycastle.crypto.modes.GCMBlockCipher.xor ( Y , b ) ; multiplier.multiplyH ( Y ) ; }

Target:
private void gHASHBlock ( byte [ ] Y , byte [ ] b ) { org.bouncycastle.crypto.modes.gcm.GCMUtil.xor ( Y , b ) ; multiplier.multiplyH ( Y ) ; }
Source:
void stepLocked ( ) { ( mCount ) ++ ; }

Target:
void stepAtomic ( ) { mCount.incrementAndGet ( ) ; }
Source:
public static java.lang.String getNewCall ( @ com.android.annotations.NonNull java.lang.String errorMessage ) { return com.android.tools.lint.checks.AppCompatCallDetector.getMessagePart ( errorMessage , 1 ) ; }

Target:
public static java.lang.String getNewCall ( @ com.android.annotations.NonNull java.lang.String errorMessage , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.TextFormat format ) { return com.android.tools.lint.checks.AppCompatCallDetector.getMessagePart ( errorMessage , 1 , format ) ; }
Source:
public void copyTo ( short [ ] d ) { validateIsInt16 ( ) ; mRS.validate ( ) ; mRS.nAllocationRead ( getID ( mRS ) , d ) ; }

Target:
public void copyTo ( short [ ] d ) { validateIsInt16 ( ) ; copyTo ( d , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
public static java.lang.String retrieveJavaTimeFieldValueName ( java.lang.String id , int field , int value , int style , java.util.Locale locale ) { return null ; }

Target:
public static java.util.Map < java.lang.String , java.lang.Integer > retrieveJavaTimeFieldValueNames ( java.lang.String id , int field , int style , java.util.Locale locale ) { return sun.util.locale.provider.CalendarDataUtility.retrieveFieldValueNames ( id , field , style , locale ) ; }
Source:
public boolean isImsRegistered ( ) { return mPhone.isImsRegistered ( ) ; }

Target:
public boolean isWifiCallingAvailable ( int subId ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.isWifiCallingEnabled ( ) ; } else { return false ; } }
Source:
protected com.android.builder.resources.AssetFile createFileAndItems ( java.io.File file , com.android.utils.ILogger logger ) { return new com.android.builder.resources.AssetFile ( file , new com.android.builder.resources.AssetItem ( file.getName ( ) ) ) ; }

Target:
protected void readSourceFolder ( java.io.File sourceFolder , com.android.utils.ILogger logger ) throws com.android.builder.resources.DuplicateDataException , java.io.IOException { readFiles ( sourceFolder , sourceFolder , logger ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mTestResult = new com.android.ddmlib.testrunner.InstrumentationResultParserTest.VerifyingTestResult ( ) ; mParser = new com.android.ddmlib.testrunner.InstrumentationResultParser ( mTestResult ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mTestResult = new com.android.ddmlib.testrunner.InstrumentationResultParserTest.VerifyingTestResult ( ) ; mParser = new com.android.ddmlib.testrunner.InstrumentationResultParser ( com.android.ddmlib.testrunner.InstrumentationResultParserTest.RUN_NAME , mTestResult ) ; }
Source:
public void testOriginalRefocus ( ) { refocus ( RenderScriptTask.script.f32 ) ; }

Target:
public void testOriginalRefocus ( ) { refocus ( RenderScriptTask.script.f32 , java.lang.Double.POSITIVE_INFINITY ) ; }
Source:
void setCustomMinSdk ( int minSdk ) { assert ! ( mChooseProject ) ; mCustomMinSdk = minSdk ; }

Target:
void setCustomMinSdk ( int minSdk , int buildApi ) { assert ! ( mChooseProject ) ; mCustomMinSdk = minSdk ; mCustomBuildApi = buildApi ; }
Source:
public void onLinkPropertiesChanged ( android.net.Network network , android.net.LinkProperties newLp ) { handleLinkProp ( network , newLp ) ; recomputeOffloadExemptPrefixes ( ) ; }

Target:
public void onLinkPropertiesChanged ( android.net.Network network , android.net.LinkProperties newLp ) { handleLinkProp ( network , newLp ) ; recomputeLocalPrefixes ( ) ; }
Source:
public javax.net.ssl.SSLServerSocketFactory engineGetServerSocketFactory ( ) { if ( ( sslParameters ) == null ) { throw new java.lang.IllegalStateException ( "SSLContext is not initialized." ) ; } return new org.conscrypt.OpenSSLServerSocketFactoryImpl ( sslParameters ) ; }

Target:
public javax.net.ssl.SSLSocketFactory engineGetSocketFactory ( ) { if ( ( sslParameters ) == null ) { throw new java.lang.IllegalStateException ( "SSLContext is not initialized." ) ; } return new org.conscrypt.OpenSSLSocketFactoryImpl ( sslParameters ) ; }
Source:
public void TestArabicLongStyle ( ) { com.ibm.icu.text.NumberFormat cdf = com.ibm.icu.text.CompactDecimalFormat.getInstance ( com.ibm.icu.util.ULocale.forLanguageTag ( "ar" ) , CompactStyle.LONG ) ; assertEquals ( "Arabic Long" , "‏-٥٫٣ ألف" , cdf.format ( ( - 5300 ) ) ) ; }

Target:
public void TestArabicLongStyle ( ) { com.ibm.icu.text.NumberFormat cdf = com.ibm.icu.text.CompactDecimalFormat.getInstance ( new java.util.Locale ( "ar" ) , CompactStyle.LONG ) ; assertEquals ( "Arabic Long" , "‏-٥٫٣ ألف" , cdf.format ( ( - 5300 ) ) ) ; }
Source:
public java.io.File getResultsDir ( ) { return new java.io.File ( resultsDir.getPath ( ) ) ; }

Target:
public java.io.File getResultsDir ( ) { return mTmpDir ; }
Source:
public java.lang.String getId ( ) { return java.lang.String.format ( "{glformat=%s,rotation=%s,surfacetype=%s}" , mGlConfig , mRotation , mSurfaceType ) ; }

Target:
public java.lang.String getId ( ) { return java.lang.String.format ( "{glformat=%s,rotation=%s,surfacetype=%s,required=%b}" , mGlConfig , mRotation , mSurfaceType , mRequired ) ; }
Source:
private boolean skipTest ( ) { return ! ( mTargetContext.getResources ( ) . getBoolean ( R.bool.profile_supported_mapmce ) ) ; }

Target:
public void tearDown ( ) { if ( ! ( mTargetContext.getResources ( ) . getBoolean ( R.bool.profile_supported_mapmce ) ) ) { return ; } if ( ( mMceStateMachine ) != null ) { mMceStateMachine.doQuit ( ) ; } }
Source:
public void run ( ) { try { com.android.jack.server.JackSimpleServer.in = new com.android.sched.util.file.InputStreamFile ( name ) . getInputStream ( ) ; } catch ( java.io.IOException e ) { } }

Target:
public void run ( ) { try { com.android.jack.server.JackSimpleServer.unblockIn = new com.android.sched.util.file.InputStreamFile ( name ) . getInputStream ( ) ; } catch ( java.io.IOException e ) { } }
Source:
public < T extends B > T getInstance ( java.lang.Class < T > type ) { return ( ( T ) ( delegate.get ( type ) ) ) ; }

Target:
public < T extends B > T getInstance ( java.lang.Class < T > type ) { return ( ( T ) ( delegate.get ( com.google.common.base.Preconditions.checkNotNull ( type ) ) ) ) ; }
Source:
private void setText ( java.lang.String s , java.text.CharacterIterator it ) { this . charIter = it ; libcore.icu.NativeBreakIterator.setTextImpl ( this . address , s ) ; }

Target:
private void setText ( java.lang.String s , java.text.CharacterIterator it ) { this . string = s ; this . charIterator = it ; libcore.icu.NativeBreakIterator.setTextImpl ( this . address , this . string ) ; }
Source:
public com.android.build.gradle.integration.common.fixture.GradleTestProject create ( ) { return new com.android.build.gradle.integration.common.fixture.GradleTestProject ( name , testProject , captureStdOut ) ; }

Target:
public com.android.build.gradle.integration.common.fixture.GradleTestProject create ( ) { return new com.android.build.gradle.integration.common.fixture.GradleTestProject ( name , testProject , experimentalMode , ( experimentalMode ? com.android.build.gradle.integration.common.fixture.GradleTestProject.GRADLE_EXP_TEST_VERSION : com.android.build.gradle.integration.common.fixture.GradleTestProject.GRADLE_TEST_VERSION ) , captureStdOut ) ; }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String instructionSet , int dexoptNeeded ) { return dexopt ( apkPath , uid , isPublic , "*" , instructionSet , dexoptNeeded , false , false , null ) ; }

Target:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String instructionSet , int dexoptNeeded , boolean bootComplete ) { return dexopt ( apkPath , uid , isPublic , "*" , instructionSet , dexoptNeeded , false , false , null , bootComplete ) ; }
Source:
public java.lang.String toLocalizedPattern ( ) { if ( ( style ) == ( android.icu.text.NumberFormat.PLURALCURRENCYSTYLE ) ) { return formatPattern ; } return toPattern ( true ) ; }

Target:
public java.lang.String toPattern ( ) { if ( ( style ) == ( NumberFormat.PLURALCURRENCYSTYLE ) ) { return formatPattern ; } return toPattern ( false ) ; }
Source:
public void setup ( ) { put ( "Cipher.FOO" , MockCipherSpi.AllKeyTypes.class . getName ( ) ) ; }

Target:
public void setup ( ) { put ( "Cipher.FOO/FOO/FOO" , MockCipherSpi.AllKeyTypes.class . getName ( ) ) ; put ( "Cipher.FOO/FOO/FOO SupportedKeyClasses" , "none" ) ; }
Source:
void setConnectionProperties ( java.lang.String callId , int properties ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.setConnectionProperties ( callId , properties ) ; } catch ( android.os.RemoteException ignored ) { } } }

Target:
void setConnectionProperties ( java.lang.String callId , int properties ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.setConnectionProperties ( callId , properties , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
private long getSecureLong ( java.lang.String name , long def ) { return Settings.Secure.getLong ( mResolver , name , def ) ; }

Target:
private long getGlobalLong ( java.lang.String name , long def ) { return Settings.Global.getLong ( mResolver , name , def ) ; }
Source:
void notifyListenerResponseReceived ( com.android.volley.Response < ? > response ) { synchronized ( mLock ) { if ( ( mRequestCompleteListener ) != null ) { mRequestCompleteListener.onResponseReceived ( this , response ) ; } } }

Target:
void notifyListenerResponseReceived ( com.android.volley.Response < ? > response ) { com.android.volley.Request.NetworkRequestCompleteListener listener ; synchronized ( mLock ) { listener = mRequestCompleteListener ; } if ( listener != null ) { listener.onResponseReceived ( this , response ) ; } }
Source:
public static byte getId ( @ javax.annotation.Nonnull java.lang.Enum < ? > enumValue ) { return com.android.jack.jayce.v0003.util.ReceiverKindIdHelper.ids [ enumValue.ordinal ( ) ] ; }

Target:
public static byte getId ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.nodes.NMethodCall.ReceiverKind enumValue ) { return com.android.jack.jayce.v0003.util.ReceiverKindIdHelper.ids [ enumValue.ordinal ( ) ] ; }
Source:
public final native boolean weakCompareAndSet ( java.lang.Object ... args ) ;

Target:
public final native java.lang.Object compareAndExchangeRelease ( java.lang.Object ... args ) ;
Source:
public static com.android.build.gradle.integration.common.truth.ApkSubject assertThatApk ( @ com.android.annotations.NonNull java.io.File apk ) { return com.google.common.truth.Truth.assert_ ( ) . about ( com.android.build.gradle.integration.common.truth.ApkSubjectFactory.factory ( ) ) . that ( apk ) ; }

Target:
public static com.android.build.gradle.integration.common.truth.FileSubject assertThat ( @ com.android.annotations.NonNull java.io.File file ) { return com.google.common.truth.Truth.assert_ ( ) . about ( com.android.build.gradle.integration.common.truth.FileSubjectFactory.factory ( ) ) . that ( file ) ; }
Source:
private com.android.bluetooth.gatt.ScanClient getBatchScanClient ( int clientIf ) { for ( com.android.bluetooth.gatt.ScanClient client : mBatchClients ) { if ( ( client.clientIf ) == clientIf ) { return client ; } } return null ; }

Target:
private com.android.bluetooth.gatt.ScanClient getBatchScanClient ( int scannerId ) { for ( com.android.bluetooth.gatt.ScanClient client : mBatchClients ) { if ( ( client.scannerId ) == scannerId ) { return client ; } } return null ; }
Source:
public void shouldPutProviderClassNameInExceptionMessageForProviderWithNoValidMethods ( ) { junitparams.internal.ParameterisedTestMethodRunner runner = new junitparams.internal.ParameterisedTestMethodRunner ( getTestMethodWithInvalidProvider ( ) ) ; exception.expect ( java.lang.RuntimeException.class ) ; exception.expectMessage ( junitparams.ParametersReaderProvidersTest.ProviderClassWithNoValidMethods.class . getName ( ) ) ; runner.method.parametersSets ( ) ; }

Target:
public void shouldPutProviderClassNameInExceptionMessageForProviderWithNoValidMethods ( ) { junitparams.internal.TestMethod testMethod = getTestMethodWithInvalidProvider ( ) ; exception.expect ( java.lang.RuntimeException.class ) ; exception.expectMessage ( junitparams.ParametersReaderProvidersTest.ProviderClassWithNoValidMethods.class . getName ( ) ) ; testMethod.parametersSets ( ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.stk.ToneDialog.MSG_ID_STOP_TONE : sendResponse ( StkAppService.RES_ID_DONE ) ; finish ( ) ; break ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( intent.getAction ( ) . equals ( StkAppService.FINISH_TONE_ACTIVITY_ACTION ) ) { com.android.internal.telephony.cat.CatLog.d ( this , "Finishing Tone dialog activity" ) ; finish ( ) ; } }
Source:
public int getLevel ( ) { if ( ( mRssi ) == ( java.lang.Integer.MAX_VALUE ) ) { return - 1 ; } return android.net.wifi.WifiManager.calculateSignalLevel ( mRssi , 4 ) ; }

Target:
public int getLevel ( ) { if ( ( mRssi ) == ( java.lang.Integer.MAX_VALUE ) ) { return - 1 ; } return android.net.wifi.WifiManager.calculateSignalLevel ( mRssi , com.android.settingslib.wifi.AccessPoint.SIGNAL_LEVELS ) ; }
Source:
public java.lang.String getName ( ) { if ( ( ( mCurrentEvent ) != ( com.android.apksigner.AndroidBinXmlParser.EVENT_START_ELEMENT ) ) && ( ( mCurrentEvent ) != ( com.android.apksigner.AndroidBinXmlParser.EVENT_END_ELEMENT ) ) ) { return null ; } return mCurrentElementName ; }

Target:
public java.lang.String getName ( ) { if ( ( ( mCurrentEvent ) != ( com.android.apksig.apk.AndroidBinXmlParser.EVENT_START_ELEMENT ) ) && ( ( mCurrentEvent ) != ( com.android.apksig.apk.AndroidBinXmlParser.EVENT_END_ELEMENT ) ) ) { return null ; } return mCurrentElementName ; }
Source:
public java.lang.String getDeviceSvn ( ) { android.util.Log.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "getDeviceSvn(): return 0" ) ; return "0" ; }

Target:
public java.lang.String getImei ( ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "IMEI is not available in CDMA" ) ; return null ; }
Source:
protected void doApply ( java.util.zip.ZipFile patchFile , java.io.File toFile ) throws java.io.IOException { throw new java.io.IOException ( "dummy exception" ) ; }

Target:
protected void doApply ( com.intellij.updater.MultiZipFile patchFile , java.io.File backupDir , java.io.File toFile ) throws java.io.IOException { throw new java.io.IOException ( "dummy exception" ) ; }
Source:
public void testSendMessageQueueAllTxFail ( ) throws java.lang.Exception { com.android.server.wifi.nan.WifiNanNative.Capabilities cap = com.android.server.wifi.nan.WifiNanStateManagerTest.getCapabilities ( ) ; testSendMessageQueue ( com.android.server.wifi.nan.WifiNanStateManagerTest.SendMessageAnswer.OP_QUEUE_OK_SEND_RETX_FAIL , cap , ( ( cap.maxQueuedTransmitMessages ) + 5 ) ) ; }

Target:
public void testSendMessageQueueAllTxFail ( ) throws java.lang.Exception { com.android.server.wifi.aware.WifiAwareNative.Capabilities cap = com.android.server.wifi.aware.WifiAwareStateManagerTest.getCapabilities ( ) ; testSendMessageQueue ( com.android.server.wifi.aware.WifiAwareStateManagerTest.SendMessageAnswer.OP_QUEUE_OK_SEND_RETX_FAIL , cap , ( ( cap.maxQueuedTransmitMessages ) + 5 ) ) ; }
Source:
public void setUp ( ) { TEST_12345_123456789 = java.time.Instant.ofEpochSecond ( 12345 , 123456789 ) ; }

Target:
public static void setUp ( ) { tck.java.time.TCKInstant.TEST_12345_123456789 = java.time.Instant.ofEpochSecond ( 12345 , 123456789 ) ; }
Source:
public void onCapabilitiesUpdateResponse ( short transactionId , com.android.server.wifi.nan.WifiNanNative.Capabilities capabilities ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_RESPONSE ) ; msg.arg1 = com.android.server.wifi.nan.WifiNanStateManager.RESPONSE_TYPE_ON_CAPABILITIES_UPDATED ; msg.arg2 = transactionId ; msg.obj = capabilities ; mSm.sendMessage ( msg ) ; }

Target:
public void onCapabilitiesUpdateResponse ( short transactionId , com.android.server.wifi.aware.WifiAwareNative.Capabilities capabilities ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_RESPONSE ) ; msg.arg1 = com.android.server.wifi.aware.WifiAwareStateManager.RESPONSE_TYPE_ON_CAPABILITIES_UPDATED ; msg.arg2 = transactionId ; msg.obj = capabilities ; mSm.sendMessage ( msg ) ; }
Source:
public void testInRoot_NullHandling ( ) { initInteraction ( ) ; try { testInteraction.inRoot ( null ) ; fail ( "should throw" ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void inRoot_NullHandling ( ) { initInteraction ( ) ; expectedException.expect ( java.lang.NullPointerException.class ) ; testInteraction.inRoot ( null ) ; }
Source:
public java.util.List < com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.NewCall > getNewVoicemails ( ) { return mNewCallsQuery.query ( Calls.VOICEMAIL_TYPE ) ; }

Target:
public java.util.List < com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.NewCall > getNewVoicemails ( ) { return mNewCallsQuery.query ( Calls.VOICEMAIL_TYPE , ( ( java.lang.System.currentTimeMillis ( ) ) - ( com.android.dialer.configprovider.ConfigProviderBindings.get ( mContext ) . getLong ( com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.CONFIG_NEW_VOICEMAIL_NOTIFICATION_THRESHOLD_OFFSET , java.util.concurrent.TimeUnit.DAYS.toMillis ( 7 ) ) ) ) ) ; }
Source:
public boolean onKey ( android.content.DialogInterface dialog , int keyCode , android.view.KeyEvent keyEvent ) { mHandler.removeCallbacks ( mAutoDismisser ) ; mHandler.postDelayed ( mAutoDismisser , com.android.tv.dvr.ui.HalfSizedDialogFragment.AUTO_DISMISS_TIME_THRESHOLD_MS ) ; return false ; }

Target:
public boolean onKey ( android.content.DialogInterface dialog , int keyCode , android.view.KeyEvent keyEvent ) { mHandler.removeCallbacks ( mAutoDismisser ) ; mHandler.postDelayed ( mAutoDismisser , com.android.tv.dialog.HalfSizedDialogFragment.AUTO_DISMISS_TIME_THRESHOLD_MS ) ; return false ; }
Source:
private void assertNoExpectations ( ) { if ( ( mExpectations ) != null ) { fail ( ( ( "Can't add expectation, " + ( mExpectations.getCount ( ) ) ) + " already pending" ) ) ; } }

Target:
private void assertNoExpectations ( ) { if ( ( mExpectations ) != null ) { org.junit.Assert.fail ( ( ( "Can't add expectation, " + ( mExpectations.getCount ( ) ) ) + " already pending" ) ) ; } }
Source:
public static java.lang.Integer getTargetSdkVersion ( com.android.sdklib.io.IAbstractFile manifestFile ) throws com.android.sdklib.io.StreamException , javax.xml.xpath.XPathExpressionException { javax.xml.xpath.XPath xPath = com.android.sdklib.xml.AndroidXPathFactory.newXPath ( ) ; java.lang.String result = xPath.evaluate ( ( ( ( ( ( ( ( "/" + ( com.android.sdklib.xml.AndroidManifest.NODE_MANIFEST ) ) + "/" ) + ( com.android.sdklib.xml.AndroidManifest.NODE_USES_SDK ) ) + "/@" ) + ( AndroidXPathFactory.DEFAULT_NS_PREFIX ) ) + ":" ) + ( com.android.sdklib.xml.AndroidManifest.ATTRIBUTE_TARGET_SDK_VERSION ) ) , new org.xml.sax.InputSource ( manifestFile.getContents ( ) ) ) ; try { return java.lang.Integer.valueOf ( result ) ; } catch ( java.lang.NumberFormatException e ) { return ( result.length ( ) ) > 0 ? - 1 : null ; } }

Target:
public static java.lang.Integer getTargetSdkVersion ( com.android.io.IAbstractFile manifestFile ) throws com.android.io.StreamException , javax.xml.xpath.XPathExpressionException { javax.xml.xpath.XPath xPath = com.android.sdklib.xml.AndroidXPathFactory.newXPath ( ) ; java.lang.String result = xPath.evaluate ( ( ( ( ( ( ( ( "/" + ( com.android.sdklib.xml.AndroidManifest.NODE_MANIFEST ) ) + "/" ) + ( com.android.sdklib.xml.AndroidManifest.NODE_USES_SDK ) ) + "/@" ) + ( AndroidXPathFactory.DEFAULT_NS_PREFIX ) ) + ":" ) + ( com.android.sdklib.xml.AndroidManifest.ATTRIBUTE_TARGET_SDK_VERSION ) ) , new org.xml.sax.InputSource ( manifestFile.getContents ( ) ) ) ; try { return java.lang.Integer.valueOf ( result ) ; } catch ( java.lang.NumberFormatException e ) { return ( result.length ( ) ) > 0 ? - 1 : null ; } }
Source:
public boolean isConnected ( int callSessionType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { return this . isConnected ( callSessionType , callType ) ; } }

Target:
public void setSmsListener ( android.telephony.ims.internal.aidl.IImsSmsListener l ) throws android.os.RemoteException { this . setSmsListener ( l ) ; }
Source:
public void createImsFeature ( int slotId , int feature , com.android.ims.internal.IImsFeatureStatusCallback c ) throws android.os.RemoteException { this . createImsFeature ( slotId , feature ) ; mStatusCallback = c ; }

Target:
public com.android.ims.internal.IImsMMTelFeature createEmergencyMMTelFeature ( int slotId , com.android.ims.internal.IImsFeatureStatusCallback c ) throws android.os.RemoteException { mStatusCallback = c ; return this . createEmergencyMMTelFeature ( slotId ) ; }
Source:
private void doAdd ( ) { addNewConfiguration ( new com.google.gct.testing.CloudTestConfigurationImpl ( facet ) ) ; }

Target:
private void doAdd ( ) { addNewConfiguration ( new com.google.gct.testing.CloudConfigurationImpl ( facet , configurationKind ) ) ; }
Source:
synchronized long nScriptKernelIDCreate ( long sid , int slot , int sig ) { validate ( ) ; return rsnScriptKernelIDCreate ( mContext , sid , slot , sig ) ; }

Target:
synchronized void nScriptSetVarF ( long id , int slot , float val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarF ( curCon , id , slot , val , mUseInc ) ; }
Source:
static void inlinedForNull ( java.lang.Iterable < ? > it ) { it.iterator ( ) ; }

Target:
static void inlinedForNull ( java.lang.Iterable < ? > it ) { if ( it != null ) { if ( Main.doThrow ) { throw new java.lang.Error ( "" ) ; } } }
Source:
public void modifyText ( org.eclipse.swt.events.ModifyEvent e ) { onWsFolderPathUpdated ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( ( e.getSource ( ) ) instanceof org.eclipse.swt.widgets.Button ) { onRadioTypeUpdated ( ( ( org.eclipse.swt.widgets.Button ) ( e.getSource ( ) ) ) ) ; } }
Source:
public void aboutToChange ( int flags ) { if ( ( flags & ( CHANGED_RENDER_TARGET ) ) != 0 ) { com.android.sdklib.IAndroidTarget oldTarget = mConfigChooser.getConfiguration ( ) . getTarget ( ) ; preRenderingTargetChangeCleanUp ( oldTarget ) ; } }

Target:
public void aboutToChange ( int flags ) { if ( ( flags & ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configuration.CFG_TARGET ) ) != 0 ) { com.android.sdklib.IAndroidTarget oldTarget = mConfigChooser.getConfiguration ( ) . getTarget ( ) ; preRenderingTargetChangeCleanUp ( oldTarget ) ; } }
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "namespace.xml:2: Warning: Attribute is missing the Android namespace prefix\n" + "namespace.xml:3: Warning: Attribute is missing the Android namespace prefix" ) , lintFiles ( "res/layout/namespace.xml" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/namespace.xml:2: Warning: Attribute is missing the Android namespace prefix [MissingPrefix]\n" + ( ( ( ( ( ( "<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" android:id=\"@+id/newlinear\" android:orientation=\"vertical\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" orientation=\"true\">\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/namespace.xml:3: Warning: Attribute is missing the Android namespace prefix [MissingPrefix]\n" ) + " <Button style=\"@style/setupWizardOuterFrame\" android.text=\"Button\" android:id=\"@+id/button1\" android:layout_width=\"wrap_content\" android:layout_height=\"wrap_content\"></Button>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 2 warnings\n" ) + "" ) ) , lintFiles ( "res/layout/namespace.xml" ) ) ; }
Source:
public void markBootComplete ( java.lang.String instructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; mInstaller.execute ( "markbootcomplete" , instructionSet ) ; }

Target:
public void markBootComplete ( java.lang.String instructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; checkLock ( ) ; try { mInstalld.markBootComplete ( instructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( "ResourceFile{" + "mFile='" ) + ( getFile ( ) ) ) + '\'' ) + ", mQualifiers='" ) + ( mQualifiers ) ) + '\'' ) + '}' ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( getClass ( ) ) . add ( "mFile" , mFile ) . add ( "mQualifiers" , mQualifiers ) . toString ( ) ; }
Source:
public java.lang.String getCompleteVoiceMailNumber ( ) { return getCompleteVoiceMailNumber ( android.telephony.TelephonyManager.getDefaultSubscription ( ) ) ; }

Target:
public boolean setLine1NumberForDisplay ( java.lang.String alphaTag , java.lang.String number ) { return setLine1NumberForDisplay ( getSubId ( ) , alphaTag , number ) ; }
Source:
public void test_ar ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex ar = new libcore.icu.AlphabeticIndex ( new java.util.Locale ( "ar" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ar , "نور" , "ن" ) ; }

Target:
public void test_ar ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex ar = libcore.icu.AlphabeticIndexTest.createIndex ( new java.util.Locale ( "ar" ) ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( ar , "نور" , "ن" ) ; }
Source:
private void simLockChanged ( boolean success ) { if ( success ) { mPinToggle.setChecked ( mToState ) ; } else { android.widget.Toast.makeText ( this , mRes.getString ( R.string.sim_lock_failed ) , Toast.LENGTH_SHORT ) . show ( ) ; } resetDialogState ( ) ; }

Target:
private void iccLockChanged ( boolean success ) { if ( success ) { mPinToggle.setChecked ( mToState ) ; } else { android.widget.Toast.makeText ( this , mRes.getString ( R.string.sim_lock_failed ) , Toast.LENGTH_SHORT ) . show ( ) ; } resetDialogState ( ) ; }
Source:
private void ensurePackageDexOpt ( java.lang.String packageName ) { android.content.pm.IPackageManager pm = android.app.ActivityThread.getPackageManager ( ) ; try { if ( pm.performDexOpt ( packageName ) ) { mDidDexOpt = true ; } } catch ( android.os.RemoteException e ) { } }

Target:
void ensurePackageDexOpt ( java.lang.String packageName ) { android.content.pm.IPackageManager pm = android.app.AppGlobals.getPackageManager ( ) ; try { if ( pm.performDexOpt ( packageName ) ) { mDidDexOpt = true ; } } catch ( android.os.RemoteException e ) { } }
Source:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { android.content.Intent intent = new android.content.Intent ( this , com.googlecode.android_scripting.activity.ScriptingLayerService.class ) ; intent.setAction ( Constants.ACTION_KILL_ALL ) ; startService ( intent ) ; return true ; }

Target:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { android.content.Intent intent = new android.content.Intent ( this , com.googlecode.android_scripting.service.ScriptingLayerService.class ) ; intent.setAction ( Constants.ACTION_KILL_ALL ) ; startService ( intent ) ; return true ; }
Source:
public void add ( T e ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public java.util.ListIterator < T > listIterator ( final int index ) { return new com.google.common.collect.TransformedListIterator < F , T > ( fromList.listIterator ( index ) ) { @ java.lang.Override T transform ( F from ) { return function.apply ( from ) ; } } ; }
Source:
public synchronized boolean setActiveDevice ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hearingaid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; return false ; }

Target:
long getHiSyncId ( android.bluetooth.BluetoothDevice device ) { if ( ! ( mDeviceHiSyncIdMap.containsKey ( device ) ) ) { return android.bluetooth.BluetoothHearingAid.HI_SYNC_ID_INVALID ; } return mDeviceHiSyncIdMap.get ( device ) ; }
Source:
public void enter ( ) { mDeathRecipient.unlinkToDeath ( ) ; }

Target:
public void enter ( ) { mDeathRecipient.unlinkToDeath ( ) ; unregisterObserver ( ) ; }
Source:
public void insertUpdate ( javax.swing.event.DocumentEvent e ) { searchTextUpdated ( ) ; }

Target:
public void changedUpdate ( javax.swing.event.DocumentEvent e ) { searchTextUpdated ( ) ; }
Source:
public com.android.sdkuilib.ui.GridLayoutBuilder vSpacing ( int v ) { com.android.sdkuilib.ui.GridLayoutBuilder.mGL.verticalSpacing = v ; return this ; }

Target:
public com.android.sdkuilib.ui.GridLayoutBuilder columnsEqual ( ) { mGL.makeColumnsEqualWidth = true ; return this ; }
Source:
public java.util.Set < java.lang.String > getRevocablePermissions ( ) { java.util.Set < java.lang.String > result = com.google.common.collect.Sets.newHashSet ( ) ; addRevocablePermissions ( result ) ; return result ; }

Target:
public java.util.Set < java.lang.String > getRevocablePermissions ( @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionHolder revocable ) { java.util.Set < java.lang.String > result = com.google.common.collect.Sets.newHashSet ( ) ; addRevocablePermissions ( result , revocable ) ; return result ; }
Source:
private android.os.Bundle createGoogleSearchSourceBundle ( java.lang.String source ) { android.os.Bundle bundle = new android.os.Bundle ( ) ; bundle.putString ( Search.SOURCE , source ) ; return bundle ; }

Target:
boolean isMenuOrCtrlKey ( int keyCode ) { return ( ( ( android.view.KeyEvent.KEYCODE_MENU ) == keyCode ) || ( ( android.view.KeyEvent.KEYCODE_CTRL_LEFT ) == keyCode ) ) || ( ( android.view.KeyEvent.KEYCODE_CTRL_RIGHT ) == keyCode ) ; }
Source:
public void registerNetworkCallback ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback ) { sendRequestForNetwork ( request.networkCapabilities , networkCallback , 0 , android.net.ConnectivityManager.LISTEN , android.net.ConnectivityManager.TYPE_NONE ) ; }

Target:
private void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , int timeoutMs , int legacyType , android.os.Handler handler ) { android.net.ConnectivityManager.CallbackHandler cbHandler = new android.net.ConnectivityManager.CallbackHandler ( handler ) ; android.net.NetworkCapabilities nc = request.networkCapabilities ; sendRequestForNetwork ( nc , networkCallback , timeoutMs , android.net.ConnectivityManager.REQUEST , legacyType , cbHandler ) ; }
Source:
public void setMinSdkVersion ( int minSdkVersion ) { mMinSdkVersion = minSdkVersion ; }

Target:
public com.android.sdklib.xml.ManifestData.SupportsScreens getSupportsScreens ( ) { return mSupportsScreens ; }
Source:
public void removeTransportModeTransform ( java.io.FileDescriptor socket , android.net.IpSecTransform transform ) throws java.io.IOException { removeTransportModeTransform ( new android.os.ParcelFileDescriptor ( socket ) , transform ) ; }

Target:
public void removeTransportModeTransform ( java.net.DatagramSocket socket , android.net.IpSecTransform transform ) throws java.io.IOException { try ( android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.fromDatagramSocket ( socket ) ) { removeTransportModeTransform ( pfd , transform ) ; } }
Source:
public boolean enableNetworkWithoutConnect ( int netId ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( ( "enableNetworkWithoutConnect nid=" + ( java.lang.Integer.toString ( netId ) ) ) ) ; return doBooleanCommand ( ( ( ( "ENABLE_NETWORK " + netId ) + " " ) + "no-connect" ) ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > readNetworkVariablesFromSupplicantFile ( java.lang.String key ) { return mWifiSupplicantControl.readNetworkVariablesFromSupplicantFile ( key ) ; }
Source:
public int getCarrierPrivilegeStatus ( android.content.pm.Signature signature , java.lang.String packageName ) { return ( mCarrierPrivilegeRules ) == null ? android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED : mCarrierPrivilegeRules.getCarrierPrivilegeStatus ( signature , packageName ) ; }

Target:
public int getCarrierPrivilegeStatus ( android.content.pm.Signature signature , java.lang.String packageName ) { com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules carrierPrivilegeRules = getCarrierPrivilegeRules ( ) ; return carrierPrivilegeRules == null ? android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED : carrierPrivilegeRules.getCarrierPrivilegeStatus ( signature , packageName ) ; }
Source:
public void testVFE11 ( ) { try { new dot.junit.opcodes.invoke_interface.d.T_invoke_interface_20 ( ) . run ( new dot.junit.opcodes.invoke_interface.ITestImpl ( ) ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testVFE9 ( ) { load ( "dot.junit.opcodes.invoke_interface.d.T_invoke_interface_9" , java.lang.VerifyError.class ) ; }
Source:
public com.android.sched.util.config.id.BooleanPropertyId makePrivate ( ) { super . makePrivate ( ) ; return this ; }

Target:
public com.android.sched.util.config.id.BooleanPropertyId withCategory ( @ javax.annotation.Nonnull com.android.sched.util.config.category.Category category ) { super . withCategory ( category ) ; return this ; }
Source:
public int classCount ( ) { int count = 0 ; nextFluff ( ) ; while ( hasMoreClassNames ( ) ) { count ++ ; nextClassName ( ) ; nextFluff ( ) ; } index = 0 ; return count ; }

Target:
private void reset ( ) { index = 0 ; nestingLevel = 0 ; isInnerClassName = false ; accumulatedClassName = null ; accumulatedClassNames = null ; }
Source:
public static final native int myTid ( ) ;

Target:
public static final int myTid ( ) { return Libcore.os.gettid ( ) ; }
Source:
public com.android.tools.perflib.heap.Value getStaticField ( com.android.tools.perflib.heap.Type type , java.lang.String name ) { return mStaticFields.get ( new com.android.tools.perflib.heap.Field ( type , name ) ) ; }

Target:
java.lang.Object getStaticField ( com.android.tools.perflib.heap.Type type , java.lang.String name ) { return getStaticFieldValues ( ) . get ( new com.android.tools.perflib.heap.Field ( type , name ) ) ; }
Source:
public boolean matches ( java.lang.Object p ) { return ( ( android.content.pm.PackageInfo ) ( p ) ) . packageName.equals ( mPackageName ) ; }

Target:
public boolean matchesObject ( java.lang.Object p ) { return ( ( android.content.pm.PackageInfo ) ( p ) ) . packageName.equals ( mPackageName ) ; }
Source:
void putUnchecked ( int pos , long [ ] dst , int srcOffset , int length ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
abstract void getUnchecked ( int pos , float [ ] dst , int dstOffset , int length ) ;
Source:
public void setInitialAttachApn ( java.lang.String apn , java.lang.String protocol , int authType , java.lang.String username , java.lang.String password , android.os.Message result ) ;

Target:
void sendDeviceState ( int stateType , boolean state , android.os.Message result ) ;
Source:
void waitForActivity ( ) throws java.lang.Exception { assertTrue ( mLatch.await ( 500 , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ; resetLatch ( ) ; }

Target:
public void setUp ( ) { resetLatch ( ) ; mLocalSocket = null ; mLocalSockName = null ; mLastRecvBuf = null ; mStopped = false ; mHandlerThread = new android.os.HandlerThread ( android.net.util.BlockingSocketReaderTest.class . getSimpleName ( ) ) ; mHandlerThread.start ( ) ; }
Source:
public void run ( ) { try { mNetworkQueue.put ( request ) ; } catch ( java.lang.InterruptedException e ) { } }

Target:
public void run ( ) { try { mNetworkQueue.put ( request ) ; } catch ( java.lang.InterruptedException e ) { java.lang.Thread.currentThread ( ) . interrupt ( ) ; } }
Source:
public com.android.dx.io.EncodedValue adjustEncodedValue ( com.android.dx.io.EncodedValue encodedValue ) { com.android.dx.util.ByteArrayAnnotatedOutput out = new com.android.dx.util.ByteArrayAnnotatedOutput ( 32 ) ; new com.android.dx.merge.IndexMap.EncodedValueTransformer ( out ) . transform ( new com.android.dx.io.EncodedValueReader ( encodedValue ) ) ; return new com.android.dx.io.EncodedValue ( out.toByteArray ( ) ) ; }

Target:
public com.android.dex.EncodedValue adjustEncodedValue ( com.android.dex.EncodedValue encodedValue ) { com.android.dx.util.ByteArrayAnnotatedOutput out = new com.android.dx.util.ByteArrayAnnotatedOutput ( 32 ) ; new com.android.dx.merge.IndexMap.EncodedValueTransformer ( out ) . transform ( new com.android.dex.EncodedValueReader ( encodedValue ) ) ; return new com.android.dex.EncodedValue ( out.toByteArray ( ) ) ; }
Source:
private void updateDropFeedback ( com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback df , org.eclipse.swt.dnd.DropTargetEvent event ) { if ( event != null ) { df.isCopy = ( event.detail ) == ( org.eclipse.swt.dnd.DND.DROP_COPY ) ; } df.sameCanvas = ( mCanvas ) == ( mGlobalDragInfo.getSourceCanvas ( ) ) ; }

Target:
private void updateDropFeedback ( com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback df , org.eclipse.swt.dnd.DropTargetEvent event ) { if ( event != null ) { df.isCopy = ( event.detail ) == ( org.eclipse.swt.dnd.DND.DROP_COPY ) ; } df.sameCanvas = ( mCanvas ) == ( mGlobalDragInfo.getSourceCanvas ( ) ) ; df.invalidTarget = false ; }
Source:
protected void onNewIntent ( android.content.Intent intent ) { super . onNewIntent ( intent ) ; updateEditTextWithNumber ( ) ; }

Target:
protected void onNewIntent ( android.content.Intent intent ) { super . onNewIntent ( intent ) ; updateMutableUi ( ) ; }
Source:
public void broadcastAnqpDoneEvent ( java.lang.String iface , int result , com.android.server.wifi.hotspot2.AnqpEvent anqpResult ) { sendMessage ( iface , com.android.server.wifi.WifiMonitor.ANQP_DONE_EVENT , result , 0 , anqpResult ) ; }

Target:
public void broadcastAnqpDoneEvent ( java.lang.String iface , com.android.server.wifi.hotspot2.AnqpEvent anqpEvent ) { sendMessage ( iface , com.android.server.wifi.WifiMonitor.ANQP_DONE_EVENT , anqpEvent ) ; }
Source:
com.google.common.collect.ImmutableList < java.lang.String > getExpansion ( com.google.devtools.common.options.IsolatedOptionsData optionsData ) ;

Target:
com.google.common.collect.ImmutableList < java.lang.String > getExpansion ( com.google.devtools.common.options.ExpansionContext context ) throws com.google.devtools.common.options.OptionsParsingException ;
Source:
public void testTextureViewActivity ( ) throws java.lang.InterruptedException { assertTrue ( mActivity.waitForCompletion ( android.graphics2.cts.TextureViewTest.WAIT_TIMEOUT_IN_SECS ) ) ; }

Target:
public void testTextureViewActivity ( ) throws java.lang.InterruptedException { if ( ( android.hardware.Camera.getNumberOfCameras ( ) ) < 1 ) { return ; } assertTrue ( mActivity.waitForCompletion ( android.graphics2.cts.TextureViewTest.WAIT_TIMEOUT_IN_SECS ) ) ; }
Source:
public static com.android.sdklib.repository.descriptors.IPkgDesc newAddon ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IAddonDesc targetHashProvider ) { return new com.android.sdklib.repository.descriptors.PkgDescAddon ( version , revision , targetHashProvider ) ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newAddon ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IAddonDesc targetHashProvider ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_ADDONS ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mTargetHashProvider = targetHashProvider ; return p ; }
Source:
public android.support.test.testapp.SendActivity getActivity ( ) { android.support.test.testapp.SendActivity a = super . getActivity ( ) ; while ( ! ( a.hasWindowFocus ( ) ) ) { getInstrumentation ( ) . waitForIdleSync ( ) ; } return a ; }

Target:
public android.support.test.testapp.SendActivity getActivity ( ) { android.support.test.testapp.SendActivity a = launchActivity ( null ) ; while ( ! ( a.hasWindowFocus ( ) ) ) { android.support.test.InstrumentationRegistry.getInstrumentation ( ) . waitForIdleSync ( ) ; } return a ; }
Source:
public void enter ( ) { if ( com.android.server.wifi.p2p.WifiP2pServiceImpl.DBG ) logd ( getName ( ) ) ; sendMessageDelayed ( obtainMessage ( com.android.server.wifi.p2p.WifiP2pServiceImpl.DISABLE_P2P_TIMED_OUT , ( ++ ( com.android.server.wifi.p2p.WifiP2pServiceImpl.mDisableP2pTimeoutIndex ) ) , 0 ) , com.android.server.wifi.p2p.WifiP2pServiceImpl.DISABLE_P2P_WAIT_TIME_MS ) ; }

Target:
public void enter ( ) { if ( com.android.server.wifi.p2p.WifiP2pServiceImpl.DBG ) logd ( getName ( ) ) ; sendMessageDelayed ( obtainMessage ( com.android.server.wifi.p2p.WifiP2pServiceImpl.DISABLE_P2P_TIMED_OUT , ( ++ ( com.android.server.wifi.p2p.WifiP2pServiceImpl.sDisableP2pTimeoutIndex ) ) , 0 ) , com.android.server.wifi.p2p.WifiP2pServiceImpl.DISABLE_P2P_WAIT_TIME_MS ) ; }
Source:
com.android.apksig.ApkSignerEngine.OutputApkSigningBlockRequest outputZipSections ( com.android.apksig.util.DataSource zipEntries , com.android.apksig.util.DataSource zipCentralDirectory , com.android.apksig.util.DataSource zipEocd ) throws com.android.apksig.apk.ApkFormatException , java.io.IOException , java.lang.IllegalStateException , java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.SignatureException ;

Target:
com.android.apksig.ApkSignerEngine.OutputApkSigningBlockRequest2 outputZipSections2 ( com.android.apksig.util.DataSource zipEntries , com.android.apksig.util.DataSource zipCentralDirectory , com.android.apksig.util.DataSource zipEocd ) throws com.android.apksig.apk.ApkFormatException , java.io.IOException , java.lang.IllegalStateException , java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.SignatureException ;
Source:
public void registerServer ( android.os.ParcelUuid uuid , android.bluetooth.IBluetoothGattServerCallback callback ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.registerServer ( uuid.getUuid ( ) , callback ) ; }

Target:
public void registerServer ( android.os.ParcelUuid uuid , android.bluetooth.IBluetoothGattServerCallbackExt callback ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.registerServer ( uuid.getUuid ( ) , callback ) ; }
Source:
public void setOffset ( int newOffset ) { this . icuIterator.setOffset ( newOffset ) ; }

Target:
public void setText ( java.lang.String source ) { this . icuIterator.setText ( source ) ; }