auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onRttConnectionFailure ( int reason ) { setRttStreams ( false ) ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onRttInitiationFailure ( this , reason ) ; } }

Target:
public void sendRttRequest ( ) { createRttStreams ( ) ; mConnectionService.startRtt ( this , getInCallToCsRttPipeForCs ( ) , getCsToInCallRttPipeForCs ( ) ) ; }
Source:
public void setConferenceMergeFailed ( java.lang.String callId ) { }

Target:
public void setConferenceMergeFailed ( java.lang.String callId , android.telecom.Logging.Session.Info sessionInfo ) { }
Source:
public void startNetworkScan ( android.os.Message response ) { }

Target:
public void startNetworkScan ( android.telephony.NetworkScanRequest nsr , android.os.Message response ) { }
Source:
public void onRttConnectionFailure ( int reason ) { setRttStreams ( false ) ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onRttInitiationFailure ( this , reason ) ; } }

Target:
public void onRttConnectionFailure ( int reason ) { android.telecom.Log.i ( this , "Got RTT initiation failure with reason %d" , reason ) ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onRttInitiationFailure ( this , reason ) ; } }
Source:
public void setupDataCall ( int radioTechnology , int profile , java.lang.String apn , java.lang.String user , java.lang.String password , int authType , java.lang.String protocol , android.os.Message result ) { }

Target:
public void setInitialAttachApn ( com.android.internal.telephony.dataconnection.DataProfile dataProfile , boolean isRoaming , android.os.Message result ) { }
Source:
public java.lang.String getLibraryPermittedPath ( ) { return pathList.getLibraryPermittedPath ( ) ; }

Target:
public void addDexPath ( java.lang.String dexPath ) { pathList.addDexPath ( dexPath , null ) ; }
Source:
public void test_minusWeeks_normal ( ) { java.time.LocalDate t = TEST_2007_07_15.minusWeeks ( 1 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2007 , 7 , 8 ) ) ; }

Target:
public void test_minusWeeks_normal ( ) { java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.minusWeeks ( 1 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2007 , 7 , 8 ) ) ; }
Source:
public void testEnded ( com.android.ddmlib.testrunner.TestIdentifier test ) { }

Target:
public void testEnded ( com.android.ddmlib.testrunner.TestIdentifier test , java.util.Map < java.lang.String , java.lang.String > metrics ) { }
Source:
public void addModifier ( int modifier , boolean hasNegator ) { if ( hasNegator ) { this . modifierWithNegator |= modifier ; } else { this . modifier |= modifier ; } }

Target:
public void addModifier ( com.android.jack.shrob.spec.ModifierSpecification.Modifier modifier , boolean hasNegator ) { if ( hasNegator ) { this . modifiersWithNegator.add ( modifier ) ; } else { this . modifiers.add ( modifier ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) { Main test = new Main ( ) ; test.run ( ) ; Main.checkType ( ) ; Main.checkInit ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main test = new Main ( ) ; test.run ( ) ; Main.checkAccess ( ) ; Main.checkType ( ) ; Main.checkInit ( ) ; Main.checkGeneric ( ) ; }
Source:
private void handleWifiApStateChanged ( android.content.Intent intent ) { mWifiApState = intent.getIntExtra ( WifiManager.EXTRA_WIFI_AP_STATE , WifiManager.WIFI_AP_STATE_DISABLED ) ; }

Target:
private void handleWifiApStateChanged ( ) { mWifiApState = mWifiManager.getWifiApState ( ) ; if ( com.android.networkrecommendation.WifiWakeupController.VERBOSE ) { android.util.Log.v ( com.android.networkrecommendation.WifiWakeupController.TAG , ( "handleWifiApStateChanged: " + ( mWifiApState ) ) ) ; } }
Source:
public void test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins_IPv4 ( ) throws java.lang.Exception { test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins ( org.apache.harmony.tests.java.net.MulticastSocketTest.GOOD_IPv4 ) ; }

Target:
public void test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface_IPv6 ( ) throws java.lang.Exception { test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface ( ipv6NetworkInterface , org.apache.harmony.tests.java.net.MulticastSocketTest.GOOD_IPv6 , org.apache.harmony.tests.java.net.MulticastSocketTest.BAD_IPv6 ) ; }
Source:
public com.android.tools.lint.client.api.Configuration getConfiguration ( ) { if ( ( mConfiguration ) == null ) { mConfiguration = mClient.getConfiguration ( this ) ; } return mConfiguration ; }

Target:
public com.android.tools.lint.client.api.Configuration getConfiguration ( @ com.android.annotations.Nullable com.android.tools.lint.client.api.LintDriver driver ) { if ( ( mConfiguration ) == null ) { mConfiguration = mClient.getConfiguration ( this , driver ) ; } return mConfiguration ; }
Source:
public boolean isDataEnabled ( ) { return getDataEnabled ( getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) ) ; }

Target:
public void setUserMobileDataEnabled ( boolean enable ) { setUserMobileDataEnabled ( getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) , enable ) ; }
Source:
private static java.lang.String getVariantKey ( java.lang.String projectName , java.lang.String flavorName ) { if ( flavorName.equals ( "Main" ) ) { return projectName ; } return ( projectName + ":" ) + flavorName ; }

Target:
private static java.lang.String getVariantKey ( java.lang.String projectName , java.lang.String flavorName ) { if ( BuilderConstants.MAIN.equalsIgnoreCase ( flavorName ) ) { return projectName ; } return ( projectName + ":" ) + flavorName ; }
Source:
static double $opt$FloatToDouble ( float a ) { return ( ( double ) ( a ) ) ; }

Target:
static double $opt$IntToDouble ( int a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( double ) ( a ) ) ; }
Source:
protected final void notifyCapabilitiesStatusChanged ( android.telephony.ims.internal.feature.MmTelFeature.MmTelCapabilityConfiguration c ) { super . notifyCapabilitiesStatusChanged ( c ) ; }

Target:
protected final void notifyCapabilitiesStatusChanged ( android.telephony.ims.internal.feature.MmTelFeature.MmTelCapabilities c ) { super . notifyCapabilitiesStatusChanged ( c ) ; }
Source:
public void addCallee ( com.android.tools.perflib.vmtrace.Call c ) { mCallees.add ( c ) ; }

Target:
public void addCallee ( com.android.tools.perflib.vmtrace.Call.Builder c ) { if ( ( mCallees ) == null ) { mCallees = new java.util.ArrayList < com.android.tools.perflib.vmtrace.Call.Builder > ( ) ; } mCallees.add ( c ) ; }
Source:
static com.android.cts.verifier.TestListAdapter.TestListItem createInteractiveTestItem ( android.app.Activity activity , java.lang.String id , int titleRes , int infoRes , com.android.cts.verifier.IntentDrivenTestActivity.ButtonInfo buttonInfo ) { return com.android.cts.verifier.managedprovisioning.DeviceOwnerPositiveTestActivity.createInteractiveTestItem ( activity , id , titleRes , infoRes , new com.android.cts.verifier.IntentDrivenTestActivity.ButtonInfo [ ] { buttonInfo } ) ; }

Target:
static com.android.cts.verifier.TestListAdapter.TestListItem createTestItem ( android.app.Activity activity , java.lang.String id , int titleRes , android.content.Intent intent ) { intent.putExtra ( com.android.cts.verifier.managedprovisioning.DeviceOwnerPositiveTestActivity.EXTRA_TEST_ID , id ) ; return com.android.cts.verifier.TestListAdapter.TestListItem.newTest ( activity , titleRes , id , intent , null ) ; }
Source:
public void getFacilityLockForAppResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , int var2 ) { }

Target:
public void getFacilityLockForAppResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , int response ) { responseInts ( responseInfo , response ) ; }
Source:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { return vfs.getVDirLocation ( parent , name ) ; }

Target:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { return vfs.getVDirLocation ( parent.getWrappedDir ( ) , name ) ; }
Source:
public void failTest ( ) { result = - 1 ; updateUI ( ) ; }

Target:
public void passTest ( ) { if ( ( result ) != ( com.android.rs.test.UnitTest.TEST_FAILED ) ) { result = com.android.rs.test.UnitTest.TEST_PASSED ; } updateUI ( ) ; }
Source:
public static void testInvalidStatusCodes ( ) throws java.lang.Exception { android.drm.cts.DrmInfoStatusTest.checkInvalidStatusCode ( ( ( android.drm.DrmInfoStatus.STATUS_OK ) - 1 ) ) ; }

Target:
public static void testInvalidStatusCodes ( ) throws java.lang.Exception { android.drm.cts.DrmInfoStatusTest.checkInvalidStatusCode ( ( ( android.drm.DrmInfoStatus.STATUS_ERROR ) + 1 ) ) ; android.drm.cts.DrmInfoStatusTest.checkInvalidStatusCode ( ( ( android.drm.DrmInfoStatus.STATUS_OK ) - 1 ) ) ; }
Source:
public long getLastModified ( ) { return vfs.getLastModified ( this ) ; }

Target:
public java.nio.file.attribute.FileTime getLastModified ( ) throws com.android.sched.util.file.CannotGetModificationTimeException { return vfs.getLastModified ( this ) ; }
Source:
synchronized void nAllocationRead ( long id , byte [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }

Target:
synchronized void nScriptSetVarObj ( long id , int slot , long val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarObj ( curCon , id , slot , val , mUseInc ) ; }
Source:
public void refreshRoutes ( ) { if ( mAttachedToWindow ) { mAdapter.update ( ) ; } }

Target:
public void refreshRoutes ( ) { if ( mAttachedToWindow ) { mRoutes.clear ( ) ; mRoutes.addAll ( mRouter.getRoutes ( ) ) ; onFilterRoutes ( mRoutes ) ; java.util.Collections.sort ( mRoutes , android.support.v7.app.MediaRouteChooserDialog.RouteComparator.sInstance ) ; mAdapter.notifyDataSetChanged ( ) ; } }
Source:
public void test720pPlay ( ) throws java.lang.InterruptedException { runPlayTest ( CamcorderProfile.QUALITY_720P ) ; }

Target:
public void test720pPlay ( ) throws java.lang.InterruptedException { runPlayTest ( 1280 , 720 ) ; }
Source:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , int timeoutMs ) { requestNetwork ( request , networkCallback , timeoutMs , inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ) ; }

Target:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback ) { requestNetwork ( request , networkCallback , getDefaultHandler ( ) ) ; }
Source:
public java.lang.String getNetworkSpecifier ( ) { return java.lang.String.valueOf ( mSubId ) ; }

Target:
public java.lang.String getNetworkSpecifier ( ) { return java.lang.String.valueOf ( getSubId ( ) ) ; }
Source:
protected java.lang.String getIconName ( com.android.assetstudiolib.GraphicGenerator.Options options , java.lang.String name ) { return name + ".png" ; }

Target:
protected java.lang.String getIconName ( com.android.assetstudiolib.GraphicGenerator.Options options , java.lang.String name ) { if ( ( options.density ) == ( com.android.resources.Density.ANYDPI ) ) { return name + ( com.android.SdkConstants.DOT_XML ) ; } return name + ( com.android.SdkConstants.DOT_PNG ) ; }
Source:
public void imsSetWfcRoamingSetting ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "enable" ) java.lang.Boolean enable ) { com.android.ims.ImsManager.setWfcRoamingSetting ( mContext , enable ) ; }

Target:
public void imsSetWfcRoamingSetting ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "enable" ) java.lang.Boolean enable ) { mImsManager.setWfcRoamingSetting ( mContext , enable ) ; }
Source:
public static void computeCos ( android.renderscript.cts.TestCos.ArgumentsFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 4 ; args.out = ( ( float ) ( java.lang.StrictMath.cos ( args.in ) ) ) ; }

Target:
public static void computeCos ( android.renderscript.cts.TestCos.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.cos ( args.in ) , 4 , 128 ) ; }
Source:
synchronized long nScriptKernelIDCreate ( long sid , int slot , int sig ) { validate ( ) ; return rsnScriptKernelIDCreate ( mContext , sid , slot , sig ) ; }

Target:
synchronized long nIncAllocationCreateTyped ( long alloc , long type ) { validate ( ) ; return rsnIncAllocationCreateTyped ( mContext , mIncCon , alloc , type ) ; }
Source:
public void addF64 ( double v ) { mN.addF64 ( v ) ; }

Target:
public void addF64 ( double v ) { mN.addF64 ( v ) ; mPos += 8 ; }
Source:
public void setMethod ( int method ) { if ( ( method != ( java.util.zip.ZipOutputStream.STORED ) ) && ( method != ( java.util.zip.ZipOutputStream.DEFLATED ) ) ) { throw new java.lang.IllegalArgumentException ( ) ; } compressMethod = method ; }

Target:
public void setMethod ( int method ) { if ( ( method != ( java.util.zip.ZipOutputStream.STORED ) ) && ( method != ( java.util.zip.ZipOutputStream.DEFLATED ) ) ) { throw new java.lang.IllegalArgumentException ( ( "Bad method: " + method ) ) ; } compressMethod = method ; }
Source:
com.android.sched.vfs.BaseVDir getVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException { return changeVFS ( vfs.getVDir ( parent , name ) ) ; }

Target:
com.android.sched.vfs.DeflateFS.DeflateVFile getVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.DeflateFS.DeflateVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { return new com.android.sched.vfs.DeflateFS.DeflateVFile ( this , vfs.getVFile ( parent.getWrappedDir ( ) , name ) ) ; }
Source:
public static native void SSL_set_reject_peer_renegotiations ( long sslNativePointer , boolean renegotiationRejected ) throws javax.net.ssl.SSLException ;

Target:
public static native void SSL_accept_renegotiations ( long sslNativePointer ) throws javax.net.ssl.SSLException ;
Source:
public void testRunEnded ( long elapsedTime ) { notifyTestRunEnded ( elapsedTime ) ; com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( mLaunchInfo.getProject ( ) , LaunchMessages.RemoteAdtTestRunner_RunCompleteMsg ) ; }

Target:
public void testRunEnded ( long elapsedTime , java.util.Map < java.lang.String , java.lang.String > runMetrics ) { notifyTestRunEnded ( elapsedTime ) ; com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( mLaunchInfo.getProject ( ) , LaunchMessages.RemoteAdtTestRunner_RunCompleteMsg ) ; }
Source:
public com.android.utils.HtmlBuilder newlineIfNecessary ( ) { if ( ! ( com.android.utils.SdkUtils.endsWith ( mStringBuilder , "<BR/>\n" ) ) ) { mStringBuilder.append ( "<BR/>\n" ) ; } return this ; }

Target:
public com.android.utils.HtmlBuilder newlineIfNecessary ( ) { if ( ! ( com.android.utils.SdkUtils.endsWith ( mStringBuilder , "<BR/>" ) ) ) { mStringBuilder.append ( "<BR/>" ) ; } return this ; }
Source:
java.util.List < org.gradle.api.DefaultTask > getDeviceInstrumentTests ( ) ;

Target:
java.util.List < ? extends org.gradle.api.DefaultTask > getProviderInstrumentTests ( ) ;
Source:
public java.lang.Integer getResourceValue ( java.lang.String type , java.lang.String name ) { if ( ( mProjectRes ) != null ) { return mProjectRes.getResourceValue ( type , name ) ; } return null ; }

Target:
public java.lang.Integer getResourceValue ( java.lang.String type , java.lang.String name ) { return getResourceValue ( com.android.resources.ResourceType.getEnum ( type ) , name ) ; }
Source:
private static void updateCardBackgroundColor ( android.support.v17.leanback.widget.ImageCardView view , boolean selected ) { int color = ( selected ) ? android.leanbackjank.app.presenter.CardPresenter.sSelectedBackgroundColor : android.leanbackjank.app.presenter.CardPresenter.sDefaultBackgroundColor ; view.setBackgroundColor ( color ) ; view.findViewById ( R.id.info_field ) . setBackgroundColor ( color ) ; }

Target:
public void setSelected ( boolean selected ) { findViewById ( R.id.info_field ) . setBackgroundColor ( ( selected ? android.leanbackjank.app.presenter.CardPresenter.sSelectedBackgroundColor : android.leanbackjank.app.presenter.CardPresenter.sDefaultBackgroundColor ) ) ; super . setSelected ( selected ) ; }
Source:
private void assertDialogsEnabled ( ) { if ( ! ( com.android.dialer.spam.Spam.get ( this ) . isDialogEnabledForSpamNotification ( ) ) ) { throw new java.lang.IllegalStateException ( "Cannot start this activity with given action because dialogs are not enabled." ) ; } }

Target:
private void assertDialogsEnabled ( ) { if ( ! ( com.android.dialer.spam.SpamComponent.get ( this ) . spam ( ) . isDialogEnabledForSpamNotification ( ) ) ) { throw new java.lang.IllegalStateException ( "Cannot start this activity with given action because dialogs are not enabled." ) ; } }
Source:
private static java.lang.String getDefaultAlgorithm ( ) { tests.api.javax.net.ssl.TrustManagerFactory1Test.init ( ) ; return tests.api.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM ; }

Target:
private static java.lang.String getDefaultAlgorithm ( ) { org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.init ( ) ; return org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.DEFAULT_ALGORITHM ; }
Source:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent event ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; if ( canvas != null ) { canvas.getDragSourceListener ( ) . dragFinished ( event ) ; } }

Target:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent event ) { adjustEventCoordinates ( event ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; if ( canvas != null ) { canvas.getDragListener ( ) . dragFinished ( event ) ; } }
Source:
public boolean isRevocable ( ) { for ( com.android.tools.lint.checks.PermissionRequirement requirement : permissions ) { if ( requirement.isRevocable ( ) ) { return true ; } } return false ; }

Target:
public boolean isRevocable ( @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionHolder revocable ) { for ( com.android.tools.lint.checks.PermissionRequirement requirement : permissions ) { if ( requirement.isRevocable ( revocable ) ) { return true ; } } return false ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; }

Target:
public void run ( ) { for ( int i = 0 ; i < 50 ; ++ i ) { java.nio.charset.Charset.availableCharsets ( ) ; } }
Source:
public void testConnectTwice ( ) { mConnectionCallback.resetCounts ( ) ; createMediaBrowser ( android.media.cts.MediaBrowserTest.TEST_BROWSER_SERVICE ) ; connectMediaBrowserService ( ) ; try { mMediaBrowser.connect ( ) ; fail ( ) ; } catch ( java.lang.IllegalStateException e ) { } }

Target:
public void testConnectTwice ( ) { resetCallbacks ( ) ; createMediaBrowser ( android.media.cts.MediaBrowserTest.TEST_BROWSER_SERVICE ) ; connectMediaBrowserService ( ) ; try { mMediaBrowser.connect ( ) ; fail ( ) ; } catch ( java.lang.IllegalStateException e ) { } }
Source:
public com.google.common.base.Objects.ToStringHelper addValue ( long value ) { addHolder ( ) . builder.append ( value ) ; return this ; }

Target:
public com.google.common.base.Objects.ToStringHelper addValue ( long value ) { return addHolder ( java.lang.String.valueOf ( value ) ) ; }
Source:
public void onNativeInitializationComplete ( android.content.Context context ) { recordBrowserProcessHistogram ( context ) ; }

Target:
private void recordBrowserProcessHistogram ( ) { if ( org.chromium.base.library_loader.Linker.getInstance ( ) . isUsed ( ) ) { nativeRecordChromiumAndroidLinkerBrowserHistogram ( mIsUsingBrowserSharedRelros , mLoadAtFixedAddressFailed , getLibraryLoadFromApkStatus ( ) , mLibraryLoadTimeMs ) ; } if ( ( org.chromium.base.library_loader.LibraryLoader.sLibraryPreloader ) != null ) { nativeRecordLibraryPreloaderBrowserHistogram ( mLibraryPreloaderStatus ) ; } }
Source:
public final java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > getSuccessors ( ) { java.util.ArrayList < com.android.jack.ir.ast.cfg.JBasicBlock > result = new java.util.ArrayList < > ( ) ; collectSuccessors ( result ) ; return com.android.jack.Jack.getUnmodifiableCollections ( ) . getUnmodifiableList ( result ) ; }

Target:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlockElement > getElements ( boolean forward ) { return forward ? com.android.jack.Jack.getUnmodifiableCollections ( ) . getUnmodifiableList ( elements ) : com.google.common.collect.ImmutableList.copyOf ( elements ) . reverse ( ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mX509Providers = java.security.Security.getProviders ( "CertificateFactory.X509" ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mX509Providers = java.security.Security.getProviders ( "CertificateFactory.X509" ) ; sun.security.jca.Providers.setMaximumAllowableApiLevelForBcDeprecation ( dalvik.system.VMRuntime.getRuntime ( ) . getTargetSdkVersion ( ) ) ; }
Source:
public void resetBlackList ( java.lang.String address ) { android.content.SharedPreferences pref = mContext.getSharedPreferences ( com.android.bluetooth.avrcp.Avrcp.ABSOLUTE_VOLUME_BLACKLIST , Context.MODE_PRIVATE ) ; android.content.SharedPreferences.Editor editor = pref.edit ( ) ; editor.remove ( address ) ; editor.commit ( ) ; }

Target:
public void resetBlackList ( java.lang.String address ) { android.content.SharedPreferences pref = mContext.getSharedPreferences ( com.android.bluetooth.avrcp.Avrcp.ABSOLUTE_VOLUME_BLACKLIST , Context.MODE_PRIVATE ) ; android.content.SharedPreferences.Editor editor = pref.edit ( ) ; editor.remove ( address ) ; editor.apply ( ) ; }
Source:
public void test_U8_3_SCALE20_05_inRectangle ( ) { testReszie ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inY , Element.DataType.UNSIGNED_8 , 3 , 2.0F , 0.5F ) ; checkError ( ) ; }

Target:
public void test_U8_3_SCALE20_05_inRectangle ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inY , Element.DataType.UNSIGNED_8 , 3 , 2.0F , 0.5F ) ; checkError ( ) ; }
Source:
private static com.android.build.SplitOutput getOutput ( int densityFilter , java.lang.String abiFilter , int versionCode ) { com.android.resources.Density densityEnum = com.android.resources.Density.getEnum ( densityFilter ) ; return new com.android.ide.common.build.SplitOutputMatcherTest.FakeSplitOutput ( densityEnum.getResourceValue ( ) , abiFilter , versionCode ) ; }

Target:
private static com.android.build.VariantOutput getOutput ( int densityFilter , java.lang.String abiFilter , int versionCode ) { com.android.resources.Density densityEnum = com.android.resources.Density.getEnum ( densityFilter ) ; return new com.android.ide.common.build.SplitOutputMatcherTest.FakeVariantOutput ( new com.android.ide.common.build.SplitOutputMatcherTest.FakeSplitOutput ( densityEnum.getResourceValue ( ) , abiFilter , versionCode ) ) ; }
Source:
private java.lang.String getVideoOutputMediaFileTitle ( ) { long dateTaken = java.lang.System.currentTimeMillis ( ) ; java.util.Date date = new java.util.Date ( dateTaken ) ; java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ( "'VID'_yyyyMMdd_HHmmss" ) ; return dateFormat.format ( date ) ; }

Target:
private java.lang.String getVideoOutputMediaFileTitle ( ) { long dateTaken = java.lang.System.currentTimeMillis ( ) ; java.util.Date date = new java.util.Date ( dateTaken ) ; java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ( "'VID'_yyyyMMdd_HHmmss" , java.util.Locale.US ) ; return dateFormat.format ( date ) ; }
Source:
public native void setShort ( java.lang.Object object , short value ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;

Target:
public void setShort ( java.lang.Object object , short value ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException { setShort ( object , value , isAccessible ( ) ) ; }
Source:
public synchronized void destroy ( ) { if ( mDestroyed ) { throw new android.renderscript.RSInvalidStateException ( "Object already destroyed." ) ; } mDestroyed = true ; mRS.nObjDestroy ( mID ) ; }

Target:
public void destroy ( ) { if ( mDestroyed ) { throw new android.renderscript.RSInvalidStateException ( "Object already destroyed." ) ; } helpDestroy ( ) ; }
Source:
private static com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation findIntRange ( @ com.android.annotations.NonNull java.lang.Iterable < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > annotations ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : annotations ) { if ( com.android.tools.lint.checks.SupportAnnotationDetector.INT_RANGE_ANNOTATION.equals ( annotation.getName ( ) ) ) { return annotation ; } } return null ; }

Target:
static com.intellij.psi.PsiAnnotation findIntDef ( @ com.android.annotations.NonNull com.intellij.psi.PsiAnnotation [ ] annotations ) { for ( com.intellij.psi.PsiAnnotation annotation : annotations ) { if ( com.android.SdkConstants.INT_DEF_ANNOTATION.equals ( annotation.getQualifiedName ( ) ) ) { return annotation ; } } return null ; }
Source:
public static native void SSL_enable_signed_cert_timestamps ( long ssl ) ;

Target:
public static native byte [ ] SSL_get_ocsp_response ( long ssl ) ;
Source:
com.google.common.collect.ImmutableMap < K , V > map ( ) { return this ; }

Target:
com.google.common.collect.ImmutableSet < K > createKeySet ( ) { return new com.google.common.collect.ImmutableMapKeySet < K , V > ( this ) ; }
Source:
public static < T > org.hamcrest.Matcher < java.lang.Iterable < T > > hasItems ( org.junit.matchers.org.hamcrest ... elementMatchers ) { return org.junit.internal.matchers.IsCollectionContaining.< org.junit.matchers.T > hasItems ( elementMatchers ) ; }

Target:
public static < T > org.hamcrest.Matcher < java.lang.Iterable < T > > hasItems ( org.hamcrest.Matcher < ? super T > ... elementMatchers ) { return org.hamcrest.CoreMatchers.hasItems ( elementMatchers ) ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.check_cast.d.T_check_cast_1 t = new dot.junit.opcodes.check_cast.d.T_check_cast_1 ( ) ; try { t.run ( t ) ; fail ( "expected ClassCastException" ) ; } catch ( java.lang.ClassCastException iae ) { } }

Target:
public void testVFE1 ( ) { load ( "dot.junit.opcodes.check_cast.d.T_check_cast_4" , java.lang.VerifyError.class ) ; }
Source:
private void configureStagedInstall ( libcore.tzdata.shared2.DistroVersion stagedDistroVersion ) throws java.lang.Exception { org.mockito.Mockito.when ( mMockTimeZoneDistroInstaller.getStagedDistroOperation ( ) ) . thenReturn ( libcore.tzdata.shared2.StagedDistroOperation.install ( stagedDistroVersion ) ) ; }

Target:
private void configureStagedInstall ( com.android.timezone.distro.DistroVersion stagedDistroVersion ) throws java.lang.Exception { org.mockito.Mockito.when ( mMockTimeZoneDistroInstaller.getStagedDistroOperation ( ) ) . thenReturn ( com.android.timezone.distro.StagedDistroOperation.install ( stagedDistroVersion ) ) ; }
Source:
public static com.android.sdklib.repository.descriptors.IPkgDescExtra newExtra ( @ com.android.annotations.NonNull final java.lang.String vendorId , @ com.android.annotations.NonNull final java.lang.String path , @ com.android.annotations.Nullable final java.lang.String [ ] oldPaths , @ com.android.annotations.NonNull final com.android.sdklib.repository.NoPreviewRevision revision ) { return new com.android.sdklib.repository.descriptors.PkgDescExtra ( vendorId , path , oldPaths , revision ) ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newExtra ( @ com.android.annotations.NonNull java.lang.String vendorId , @ com.android.annotations.NonNull java.lang.String path , @ com.android.annotations.Nullable java.lang.String [ ] oldPaths , @ com.android.annotations.NonNull com.android.sdklib.repository.NoPreviewRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_EXTRAS ) ; p.mFullRevision = revision ; p.mVendorId = vendorId ; p.mPath = path ; p.mOldPaths = oldPaths ; return p ; }
Source:
public void testOpenTagOnly ( ) throws java.lang.Exception { checkFormat ( com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences.create ( ) , "res/layout-xlarge/layout.xml" , "<LinearLayout><Button foo=\"bar\"></Button><CheckBox/></LinearLayout>" , ( "\n" + ( " <Button foo=\"bar\" >\n" + " </Button>\n" ) ) , "\n" , "Button" , true , "Button" ) ; }

Target:
public void testOpenTagOnly ( ) throws java.lang.Exception { checkFormat ( com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences.create ( ) , "res/layout-xlarge/layout.xml" , "<LinearLayout><Button foo=\"bar\"></Button><CheckBox/></LinearLayout>" , ( "\n" + ( " <Button foo=\"bar\" >\n" + " </Button>\n" ) ) , "\n" , "Button" , true , "Button" ) ; }
Source:
public boolean isCancelled ( ) { return false ; }

Target:
public java.util.concurrent.Future < java.lang.Integer > getBattery ( long freshnessTime , java.util.concurrent.TimeUnit timeUnit ) { return mBatteryFetcher.getBattery ( freshnessTime , timeUnit ) ; }
Source:
private java.lang.String newUniqueMemberName ( java.lang.String name , java.lang.String descriptor ) { return name.equals ( ClassConstants.INTERNAL_METHOD_NAME_INIT ) ? ClassConstants.INTERNAL_METHOD_NAME_INIT : ( name + ( ClassConstants.SPECIAL_MEMBER_SEPARATOR ) ) + ( java.lang.Long.toHexString ( java.lang.Math.abs ( descriptor.hashCode ( ) ) ) ) ; }

Target:
private java.lang.String newUniqueMemberName ( java.lang.String name , java.lang.String descriptor ) { return name.equals ( ClassConstants.METHOD_NAME_INIT ) ? ClassConstants.METHOD_NAME_INIT : ( name + ( ClassConstants.SPECIAL_MEMBER_SEPARATOR ) ) + ( java.lang.Long.toHexString ( java.lang.Math.abs ( descriptor.hashCode ( ) ) ) ) ; }
Source:
public void performFirstLoad ( ) { loadPackages ( true , false ) ; loadPackages ( false , true ) ; }

Target:
public void performFirstLoad ( ) { mImpl.performFirstLoad ( ) ; }
Source:
public void unregisterForDataCallListChanged ( int slotId , android.telephony.data.IDataServiceCallback callback ) { if ( callback == null ) { loge ( "Callback is null" ) ; return ; } mHandler.obtainMessage ( android.telephony.data.DataService.DATA_SERVICE_REQUEST_UNREGISTER_DATA_CALL_LIST_CHANGED , slotId , 0 , callback ) . sendToTarget ( ) ; }

Target:
public void unregisterForDataCallListChanged ( int slotId , android.telephony.data.IDataServiceCallback callback ) { if ( callback == null ) { loge ( "unregisterForDataCallListChanged: callback is null" ) ; return ; } mHandler.obtainMessage ( android.telephony.data.DataService.DATA_SERVICE_REQUEST_UNREGISTER_DATA_CALL_LIST_CHANGED , slotId , 0 , callback ) . sendToTarget ( ) ; }
Source:
protected void generateKeyStream ( byte [ ] output ) { org.bouncycastle.crypto.engines.ChaChaEngine.chachaCore ( rounds , engineState , x ) ; org.bouncycastle.crypto.util.Pack.intToLittleEndian ( x , output , 0 ) ; }

Target:
protected void generateKeyStream ( byte [ ] output ) { org.bouncycastle.crypto.engines.ChaChaEngine.chachaCore ( rounds , engineState , x ) ; org.bouncycastle.util.Pack.intToLittleEndian ( x , output , 0 ) ; }
Source:
public V2 apply ( V1 value ) { return transformer.transformEntry ( key , value ) ; }

Target:
java.util.Collection < V2 > createValues ( ) { return com.google.common.collect.Collections2.transform ( fromMultimap.entries ( ) , com.google.common.collect.Maps.< K , V1 , V2 > asEntryToValueFunction ( transformer ) ) ; }
Source:
public boolean queueIdle ( ) { set ( null ) ; return false ; }

Target:
public java.lang.Void answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Throwable { android.util.Log.d ( com.android.server.NetworkPolicyManagerServiceTest.TAG , ( "counting down on answer: " + invocation ) ) ; latch.countDown ( ) ; return null ; }
Source:
public void setClasspath ( java.lang.String classpath ) { this . classpath = classpath ; }

Target:
public void setMultiDexKind ( @ javax.annotation.Nonnull com.android.jack.Options.MultiDexKind multiDexKind ) { this . multiDexKind = multiDexKind ; }
Source:
public static native void SSL_interrupt ( int sslNativePointer ) ;

Target:
public static native void SSL_CTX_free ( long ssl_ctx ) ;
Source:
public void reset ( ) { mReceivedCalls.clear ( ) ; mHandler.removeCallbacksAndMessages ( null ) ; mAppCallback = null ; mErrorCodeOverride = android.telephony.mbms.MbmsErrors.SUCCESS ; }

Target:
public void reset ( ) { mReceivedCalls.clear ( ) ; mHandler.removeCallbacksAndMessages ( null ) ; mAppCallback = null ; mErrorCodeOverride = android.telephony.mbms.MbmsErrors.SUCCESS ; mReceivedRequests.clear ( ) ; mDownloadStateCallback = null ; }
Source:
public void onPostDialChar ( java.lang.String connectionId , char nextChar ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = connectionId ; args.argi1 = nextChar ; mHandler.obtainMessage ( android.telecom.ConnectionServiceAdapterServant.MSG_ON_POST_DIAL_CHAR , args ) . sendToTarget ( ) ; }

Target:
public void onPostDialChar ( java.lang.String connectionId , char nextChar , android.telecom.Logging.Session.Info sessionInfo ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = connectionId ; args.argi1 = nextChar ; mHandler.obtainMessage ( android.telecom.ConnectionServiceAdapterServant.MSG_ON_POST_DIAL_CHAR , args ) . sendToTarget ( ) ; }
Source:
public void shutdown ( ) { stop ( ) ; quit ( ) ; }

Target:
public void shutdown ( ) { stop ( ) ; mAvoidBadWifiTracker.shutdown ( ) ; quit ( ) ; }
Source:
private boolean delKey ( byte [ ] key ) { execute ( 'k' , key ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; }

Target:
public byte [ ] getPubkey ( java.lang.String key ) { try { return mBinder.get_pubkey ( key ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return null ; } }
Source:
public android.net.LinkQualityInfo [ ] getAllLinkQualityInfo ( ) { try { android.net.LinkQualityInfo [ ] li = mService.getAllLinkQualityInfo ( ) ; return li ; } catch ( android.os.RemoteException e ) { return null ; } }

Target:
public void releaseNetworkRequest ( android.app.PendingIntent operation ) { checkPendingIntent ( operation ) ; try { mService.releasePendingNetworkRequest ( operation ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public java.io.File call ( ) throws java.lang.Exception { return new java.io.File ( androidBuilder.getTarget ( ) . getPath ( IAndroidTarget.ANDROID_JAR ) ) ; }

Target:
public java.io.File call ( ) throws java.lang.Exception { com.google.common.base.Preconditions.checkNotNull ( androidBuilder.getTarget ( ) , "ensureTargetSetup not called" ) ; return new java.io.File ( androidBuilder.getTarget ( ) . getPath ( IAndroidTarget.ANDROID_JAR ) ) ; }
Source:
public final void setSequence ( int sequence ) { mSequence = sequence ; }

Target:
public final com.android.volley.Request < ? > setSequence ( int sequence ) { mSequence = sequence ; return this ; }
Source:
private boolean isPrimaryCallActive ( ) { return ( ( primary ) != null ) && ( ( primary.getState ( ) ) == ( com.android.incallui.call.DialerCall.State.ACTIVE ) ) ; }

Target:
private boolean isPrimaryCallActive ( ) { return ( ( primary ) != null ) && ( ( primary.getState ( ) ) == ( com.android.incallui.call.state.DialerCallState.ACTIVE ) ) ; }
Source:
private void unpackDistro ( byte [ ] content , java.io.File targetDir ) throws java.io.IOException { android.util.Slog.i ( logTag , ( "Unpacking update content to: " + targetDir ) ) ; libcore.tzdata.update2.TimeZoneDistro distro = new libcore.tzdata.update2.TimeZoneDistro ( content ) ; distro.extractTo ( targetDir ) ; }

Target:
private void unpackDistro ( byte [ ] content , java.io.File targetDir ) throws java.io.IOException { android.util.Slog.i ( logTag , ( "Unpacking update content to: " + targetDir ) ) ; libcore.tzdata.shared2.TimeZoneDistro distro = new libcore.tzdata.shared2.TimeZoneDistro ( content ) ; distro.extractTo ( targetDir ) ; }
Source:
public void doQuit ( ) { quitNow ( ) ; }

Target:
public void doQuit ( ) { if ( com.android.bluetooth.a2dp.A2dpStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( "doQuit for device " + ( mDevice ) ) ) ; } quitNow ( ) ; }
Source:
boolean doLaunchAction ( com.android.ide.eclipse.adt.internal.launch.DelayedLaunchInfo info , com.android.ddmlib.IDevice device ) ;

Target:
boolean doLaunchAction ( com.android.ide.eclipse.adt.internal.launch.DelayedLaunchInfo info , java.util.Collection < com.android.ddmlib.IDevice > devices ) ;
Source:
public void setVar ( int index , int v ) { mRS.nScriptSetVarI ( getID ( mRS ) , index , v ) ; }

Target:
public void setVar ( int index , int v ) { mRS.nScriptSetVarI ( getID ( mRS ) , index , v , mUseIncSupp ) ; }
Source:
public com.android.ide.eclipse.gltrace.TraceOptions getTraceOptions ( ) { return new com.android.ide.eclipse.gltrace.TraceOptions ( mSelectedDevice , mActivityToTrace.trim ( ) , mTraceFilePath , mCollectFbOnEglSwap , mCollectFbOnGlDraw , mCollectTextureData ) ; }

Target:
public com.android.ide.eclipse.gltrace.TraceOptions getTraceOptions ( ) { return new com.android.ide.eclipse.gltrace.TraceOptions ( mSelectedDevice , mAppPackageToTrace , mActivityToTrace , mTraceFilePath , mCollectFbOnEglSwap , mCollectFbOnGlDraw , mCollectTextureData ) ; }
Source:
protected void registerTabs ( ) { addFailuresTab ( ) ; addTab ( "Classes" , new org.gradle.api.Action < org.w3c.dom.Element > ( ) { @ java.lang.Override public void execute ( org.w3c.dom.Element element ) { renderClasses ( element ) ; } } ) ; }

Target:
protected void registerTabs ( ) { addFailuresTab ( ) ; addTab ( "Classes" , new org.gradle.api.Action < org.w3c.dom.Element > ( ) { @ java.lang.Override public void execute ( org.w3c.dom.Element element ) { renderClasses ( element ) ; } } ) ; addDeviceAndVariantTabs ( ) ; }
Source:
private boolean isWrongCancelPosition ( org.w3c.dom.Element element ) { return isWrongPosition ( element , true ) ; }

Target:
private boolean isWrongOkPosition ( org.w3c.dom.Element element ) { return com.android.tools.lint.checks.ButtonDetector.isWrongPosition ( element , false ) ; }
Source:
public void setInput ( android.renderscript.Allocation ain ) { mInput = ain ; setVar ( 1 , ain ) ; }

Target:
public void setInput ( android.renderscript.Allocation ain ) { if ( ( ain.getType ( ) . getY ( ) ) == 0 ) { throw new android.renderscript.RSIllegalArgumentException ( "Input set to a 1D Allocation" ) ; } mInput = ain ; setVar ( 1 , ain ) ; }
Source:
public void merge ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws com.android.jack.backend.dex.DexWritingException { try { mergeDex ( merger , type ) ; } catch ( com.android.jack.tools.merger.MergingOverflowException e ) { throw new com.android.jack.backend.dex.DexWritingException ( new com.android.jack.backend.dex.SingleDexOverflowException ( e ) ) ; } }

Target:
public void merge ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws com.android.jack.backend.dex.DexWritingException { com.android.sched.vfs.InputVFile vFile = getDexInputVFileOfType ( jackOutputLibrary , type ) ; try { mergeDex ( merger , vFile ) ; } catch ( com.android.jack.tools.merger.MergingOverflowException e ) { throw new com.android.jack.backend.dex.DexWritingException ( new com.android.jack.backend.dex.SingleDexOverflowException ( e ) ) ; } }
Source:
public void test_U8_2_SCALE20_20_inSqure ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inX , Element.DataType.UNSIGNED_8 , 2 , 2.0F , 2.0F ) ; checkError ( ) ; }

Target:
public void test_U8_2_SCALE20_20_inSquare ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inX , Element.DataType.UNSIGNED_8 , 2 , 2.0F , 2.0F ) ; checkError ( ) ; }
Source:
public static void computeMax ( android.renderscript.cts.TestMax.ArgumentsShortShortShort args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( short ) ( java.lang.StrictMath.max ( args.inV1 , args.inV2 ) ) ) ; }

Target:
public static void computeMax ( android.renderscript.cts.TestMax.ArgumentsShortShortShort args ) { args.out = android.renderscript.cts.CoreMathVerifier.maxI16 ( args.inV1 , args.inV2 ) ; }
Source:
public void setImportModuleNames ( java.util.Map < java.io.File , java.lang.String > moduleLocationToName ) { mSelectedModules = com.google.common.collect.ImmutableMap.copyOf ( moduleLocationToName ) ; }

Target:
public void setModulesToImport ( java.util.Map < java.lang.String , java.io.File > modules ) { mSelectedModules = com.google.common.collect.ImmutableSet.copyOf ( modules.keySet ( ) ) ; }
Source:
public java.lang.String toHuman ( ) { return toString ( ) ; }

Target:
public static boolean isInvocation ( int type ) { switch ( type ) { case com.android.dx.rop.cst.CstMethodHandle.METHOD_HANDLE_TYPE_INVOKE_STATIC : case com.android.dx.rop.cst.CstMethodHandle.METHOD_HANDLE_TYPE_INVOKE_INSTANCE : case com.android.dx.rop.cst.CstMethodHandle.METHOD_HANDLE_TYPE_INVOKE_CONSTRUCTOR : case com.android.dx.rop.cst.CstMethodHandle.METHOD_HANDLE_TYPE_INVOKE_DIRECT : case com.android.dx.rop.cst.CstMethodHandle.METHOD_HANDLE_TYPE_INVOKE_INTERFACE : return true ; default : return false ; } }
Source:
private java.lang.Integer retrieveFeatureStatus ( ) { if ( ( mBinder ) != null ) { try { return getServiceInterface ( mBinder ) . getFeatureStatus ( mSlotId , mSupportedFeature ) ; } catch ( android.os.RemoteException e ) { } } return null ; }

Target:
public boolean isConnected ( int callServiceType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . isConnected ( callServiceType , callType ) ; } }
Source:
public boolean p2pFind ( int timeout ) { return mSupplicantP2pIfaceHal.find ( timeout ) ; }

Target:
public boolean p2pFind ( int timeout ) { abortScan ( ) ; return mSupplicantP2pIfaceHal.find ( timeout ) ; }
Source:
private native void gattSetScanParametersNative ( int client_if , int scan_interval , int scan_window ) ;

Target:
private native void gattSetScanParametersNative ( int clientIf , int scanInterval , int scanWindow ) ;
Source:
public org.eclipse.swt.graphics.Image getImage ( java.lang.Object element ) { if ( element instanceof com.android.ddmlib.IDevice ) { if ( ( ( com.android.ddmlib.IDevice ) ( element ) ) . isEmulator ( ) ) { return mEmulatorImage ; } return mDeviceImage ; } return null ; }

Target:
public org.eclipse.swt.graphics.Image getImage ( java.lang.Object element ) { if ( element instanceof com.android.hierarchyviewerlib.device.IHvDevice ) { if ( ( ( com.android.hierarchyviewerlib.device.IHvDevice ) ( element ) ) . getDevice ( ) . isEmulator ( ) ) { return mEmulatorImage ; } return mDeviceImage ; } return null ; }
Source:
public void onLongClick ( java.lang.String number ) { }

Target:
public void openSmsConversation ( java.lang.String number ) { }
Source:
public boolean p2pFind ( ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.find ( ) ; } else { return doBooleanCommand ( "P2P_FIND" ) ; } }

Target:
public boolean setP2pGroupIdle ( java.lang.String iface , int time ) { return mSupplicantP2pIfaceHal.setGroupIdle ( iface , time ) ; }
Source:
public final java.lang.String getNamespace ( ) { if ( mXmlName.startsWith ( "android:" ) ) { return com.android.sdklib.SdkConstants.NS_RESOURCES ; } return "" ; }

Target:
public final java.lang.String getNamespace ( ) { if ( mXmlName.startsWith ( com.android.ide.common.layout.LayoutConstants.ANDROID_NS_NAME_PREFIX ) ) { return com.android.sdklib.SdkConstants.NS_RESOURCES ; } return "" ; }
Source:
native void rsnAllocationData3D ( long con , long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , float [ ] d , int sizeBytes ) ;

Target:
native void rsnScriptInvokeV ( long con , long id , int slot , byte [ ] params , boolean mUseInc ) ;
Source:
public void onCancel ( android.content.DialogInterface dialog ) { android.util.Log.d ( com.android.internal.telephony.SMSDispatcher.TAG , "dialog dismissed: don't send SMS" ) ; sendMessage ( obtainMessage ( com.android.internal.telephony.SMSDispatcher.EVENT_STOP_SENDING , mTracker ) ) ; }

Target:
public void onCancel ( android.content.DialogInterface dialog ) { android.telephony.Rlog.d ( com.android.internal.telephony.SMSDispatcher.TAG , "dialog dismissed: don't send SMS" ) ; sendMessage ( obtainMessage ( com.android.internal.telephony.SMSDispatcher.EVENT_STOP_SENDING , mTracker ) ) ; }
Source:
private static void assertArrayListContains ( java.util.ArrayList < java.lang.String > list , java.lang.String ... elems ) { for ( java.lang.String element : elems ) { org.junit.Assert.assertTrue ( list.contains ( element ) ) ; } }

Target:
private static void assertArrayListContains ( java.util.ArrayList < java.lang.String > list , java.lang.String ... elems ) { for ( java.lang.String element : elems ) { org.junit.Assert.assertTrue ( ( element + " not in list" ) , list.contains ( element ) ) ; } }
Source:
public java.lang.String getFlavorDimension ( ) { com.android.build.gradle.internal.LoggingUtil.displayDeprecationWarning ( logger , project , ( "'flavorDimension' will be removed by Android Gradle Plugin 2.0, " + "it has been replaced by 'dimension'." ) ) ; return getDimension ( ) ; }

Target:
public void setFlavorDimension ( java.lang.String dimension ) { com.android.build.gradle.internal.LoggingUtil.displayDeprecationWarning ( logger , project , ( "'flavorDimension' will be removed by Android Gradle Plugin 2.0, " + "it has been replaced by 'dimension'." ) ) ; setDimension ( dimension ) ; }
Source:
public java.lang.Void call ( android.app.UiAutomation uiAutomation ) { try { uiAutomation.waitForIdle ( io.appium.droiddriver.uiautomation.UiAutomationDriver.QUIET_TIME_TO_BE_CONSIDERD_IDLE_STATE , timeoutMillis ) ; return null ; } catch ( java.util.concurrent.TimeoutException e ) { throw new io.appium.droiddriver.exceptions.TimeoutException ( e ) ; } }

Target:
public java.lang.Void call ( android.app.UiAutomation uiAutomation ) { try { uiAutomation.waitForIdle ( io.appium.droiddriver.uiautomation.UiAutomationDriver.idleTimeoutMillis , timeoutMillis ) ; return null ; } catch ( java.util.concurrent.TimeoutException e ) { throw new io.appium.droiddriver.exceptions.TimeoutException ( e ) ; } }
Source:
public void windowClosing ( java.awt.event.WindowEvent e ) { doCancel ( ) ; }

Target:
public void perform ( ) { doPerform ( ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { Main.mul ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main.mul ( ) ; Main.neg ( ) ; }
Source:
public com.ibm.icu.util.CurrencyAmount parseCurrency ( java.lang.CharSequence text , java.text.ParsePosition pos ) { com.ibm.icu.util.Currency [ ] currency = new com.ibm.icu.util.Currency [ 1 ] ; return ( ( com.ibm.icu.util.CurrencyAmount ) ( parse ( text.toString ( ) , pos , currency ) ) ) ; }

Target:
public synchronized void setMinimumGroupingDigits ( int number ) { properties.setMinimumGroupingDigits ( number ) ; refreshFormatter ( ) ; }
Source:
public java.lang.String getClientName ( int pid ) { return mClientInfo.get ( pid ) ; }

Target:
public java.lang.String getClientName ( int pid ) { java.lang.String pkgName = mClientInfo.get ( pid ) ; return pkgName == null ? com.android.ddmlib.Device.UNKNOWN_PACKAGE : pkgName ; }