auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String getAttributeStringValue ( int index ) throws com.android.apksigner.AndroidBinXmlParser.XmlParserException { return getAttribute ( index ) . getStringValue ( ) ; }

Target:
public java.lang.String getAttributeStringValue ( int index ) throws com.android.apksig.apk.AndroidBinXmlParser.XmlParserException { return getAttribute ( index ) . getStringValue ( ) ; }
Source:
public void onChange ( boolean selfChange ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , " onChange on contact uri " ) ; ( com.android.bluetooth.pbap.BluetoothPbapService.primaryVersionCounter ) ++ ; }

Target:
public void onChange ( boolean selfChange ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , " onChange on contact uri " ) ; if ( BluetoothPbapUtils.contactsLoaded ) { if ( ! ( mSessionStatusHandler.hasMessages ( com.android.bluetooth.pbap.BluetoothPbapService.CHECK_SECONDARY_VERSION_COUNTER ) ) ) { mSessionStatusHandler.sendMessage ( mSessionStatusHandler.obtainMessage ( com.android.bluetooth.pbap.BluetoothPbapService.CHECK_SECONDARY_VERSION_COUNTER ) ) ; } } }
Source:
protected void loge ( java.lang.String msg ) { android.telephony.Rlog.e ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.LOG_TAG , ( "[ImsPhoneCallTracker] " + msg ) ) ; }

Target:
protected void log ( java.lang.String msg ) { android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.LOG_TAG , ( ( ( "[" + ( mPhone.getPhoneId ( ) ) ) + "] " ) + msg ) ) ; }
Source:
public int del_key ( java.lang.String name ) throws android.os.RemoteException ;

Target:
public int generate ( java.lang.String name , int uid ) throws android.os.RemoteException ;
Source:
public boolean equals ( java.lang.Object obj ) { if ( ! ( obj instanceof org.junit.runner.Description ) ) return false ; org.junit.runner.Description d = ( ( org.junit.runner.Description ) ( obj ) ) ; return getDisplayName ( ) . equals ( d.getDisplayName ( ) ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ! ( obj instanceof org.junit.runner.Description ) ) { return false ; } org.junit.runner.Description d = ( ( org.junit.runner.Description ) ( obj ) ) ; return fUniqueId.equals ( d.fUniqueId ) ; }
Source:
public java.util.Map < java.lang.String , com.android.tools.layoutlib.create.InjectMethodRunnable > getInjectedMethodsMap ( ) { java.util.HashMap < java.lang.String , com.android.tools.layoutlib.create.InjectMethodRunnable > map = new java.util.HashMap < java.lang.String , com.android.tools.layoutlib.create.InjectMethodRunnable > ( 1 ) ; map.put ( "mock_android.util.EmptyArray" , InjectMethodRunnables.CONTEXT_GET_FRAMEWORK_CLASS_LOADER ) ; return map ; }

Target:
public java.util.Map < java.lang.String , com.android.tools.layoutlib.create.InjectMethodRunnable > getInjectedMethodsMap ( ) { return java.util.Collections.singletonMap ( "mock_android.util.EmptyArray" , InjectMethodRunnables.CONTEXT_GET_FRAMEWORK_CLASS_LOADER ) ; }
Source:
public void handleWpsTimeoutEvent ( java.lang.String iface ) { sendMessage ( iface , com.android.server.wifi.WifiMonitor.WPS_TIMEOUT_EVENT ) ; }

Target:
public void broadcastWpsTimeoutEvent ( java.lang.String iface ) { sendMessage ( iface , com.android.server.wifi.WifiMonitor.WPS_TIMEOUT_EVENT ) ; }
Source:
protected final int grabProcessOutput ( final java.lang.Process process , final java.util.ArrayList < java.lang.String > results ) throws java.lang.InterruptedException { return com.android.ide.eclipse.adt.internal.build.BuildHelper.grabProcessOutput ( getProject ( ) , process , results ) ; }

Target:
protected final int grabProcessOutput ( final java.lang.Process process , final java.util.ArrayList < java.lang.String > stdErr ) throws java.lang.InterruptedException { return com.android.ide.eclipse.adt.internal.build.BuildHelper.grabProcessOutput ( getProject ( ) , process , stdErr ) ; }
Source:
public static java.lang.Object getSocketOption ( java.io.FileDescriptor fd , int option ) throws java.net.SocketException { try { return libcore.io.IoBridge.getSocketOptionErrno ( fd , option ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }

Target:
public static java.lang.Object getSocketOption ( java.io.FileDescriptor fd , int option ) throws java.net.SocketException { try { return libcore.io.IoBridge.getSocketOptionErrno ( fd , option ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }
Source:
private boolean shouldInstallnewProgram ( ) { long expiry = ( mLastTimeInstalledProgram ) + ( mLastInstalledProgramMinLifetime ) ; return expiry < ( ( android.net.apf.ApfFilter.curTime ( ) ) + ( android.net.apf.ApfFilter.MAX_PROGRAM_LIFETIME_WORTH_REFRESHING ) ) ; }

Target:
private boolean shouldInstallnewProgram ( ) { long expiry = ( mLastTimeInstalledProgram ) + ( mLastInstalledProgramMinLifetime ) ; return expiry < ( ( currentTimeSeconds ( ) ) + ( android.net.apf.ApfFilter.MAX_PROGRAM_LIFETIME_WORTH_REFRESHING ) ) ; }
Source:
native void rsnAllocationRead ( int con , int id , short [ ] d ) ;

Target:
native void rsnAllocationRead1D ( int con , int id , int off , int mip , int count , java.lang.Object d , int sizeBytes , int dt ) ;
Source:
private void readObject ( java.io.ObjectInputStream ois ) throws java.io.IOException , java.lang.ClassNotFoundException { ois.defaultReadObject ( ) ; this . localeData = libcore.icu.LocaleData.get ( locale ) ; }

Target:
private void readObject ( java.io.ObjectInputStream ois ) throws java.io.IOException , java.lang.ClassNotFoundException { ois.defaultReadObject ( ) ; this . localeData = libcore.icu.LocaleData.get ( java.util.Locale.getDefault ( ) ) ; }
Source:
public void afterCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( context.getPhase ( ) ) == 1 ) { context.requestRepeat ( this , Scope.RESOURCE_FILE_SCOPE ) ; } }

Target:
public void afterCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( context.getPhase ( ) ) == 1 ) { checkSizeSetInTheme ( ) ; context.requestRepeat ( this , Scope.RESOURCE_FILE_SCOPE ) ; } }
Source:
public void loadUrl ( java.lang.String url ) { checkThread ( ) ; if ( DebugFlags.TRACE_API ) android.util.Log.d ( android.webkit.WebView.LOGTAG , ( "loadUrl=" + url ) ) ; mProvider.loadUrl ( url ) ; }

Target:
public void loadUrl ( java.lang.String url ) { checkThread ( ) ; if ( android.webkit.WebView.TRACE ) android.util.Log.d ( android.webkit.WebView.LOGTAG , ( "loadUrl=" + url ) ) ; mProvider.loadUrl ( url ) ; }
Source:
public boolean handleInCallMmiCommands ( java.lang.String dialString ) { android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "method handleInCallMmiCommands is NOT supported in CDMA!" ) ; return false ; }

Target:
public boolean handleInCallMmiCommands ( java.lang.String dialString ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "method handleInCallMmiCommands is NOT supported in CDMA!" ) ; return false ; }
Source:
public void test_dropSourceSpecific_twice_IPv6 ( ) throws java.lang.Exception { test_dropSourceSpecific_twice ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_1 ) ; }

Target:
public void test_block_filtersAsExpected_anyBind_IPv6 ( ) throws java.lang.Exception { for ( java.net.NetworkInterface networkInterface : ipv6networkInterfaces ) { java.net.InetAddress ipv6LocalAddress = libcore.java.nio.channels.DatagramChannelMulticastTest.getLocalIpv6Address ( networkInterface ) ; test_block_filtersAsExpected ( networkInterface , ipv6LocalAddress , libcore.java.nio.channels.DatagramChannelMulticastTest.WILDCARD_IPv6 , libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 ) ; } }
Source:
public void visitInvokeDynamicInsn ( java.lang.String name , java.lang.String desc , org.objectweb.asm.Handle bsm , java.lang.Object ... bsmArgs ) { printer.visitInvokeDynamicInsn ( name , desc , bsm , bsmArgs ) ; printTypeOfOperandStackTop ( ) ; super . visitInvokeDynamicInsn ( name , desc , bsm , bsmArgs ) ; }

Target:
public void visitInvokeDynamicInsn ( java.lang.String name , java.lang.String desc , org.objectweb.asm.Handle bsm , java.lang.Object ... bsmArgs ) { printer.visitInvokeDynamicInsn ( name , desc , bsm , bsmArgs ) ; printTypeOfOperandStack ( ) ; super . visitInvokeDynamicInsn ( name , desc , bsm , bsmArgs ) ; }
Source:
public void stkCallControlAlphaNotify ( int indicationType , java.lang.String var2 ) { }

Target:
public void exitEmergencyCallbackMode ( int indicationType ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE ) ; mRil.mExitEmergencyCallbackModeRegistrants.notifyRegistrants ( ) ; }
Source:
public boolean isAllowedToUseHiddenApi ( ) { return isSystemApp ( ) ; }

Target:
public boolean isAllowedToUseHiddenApi ( ) { boolean whitelisted = com.android.server.SystemConfig.getInstance ( ) . getHiddenApiWhitelistedApps ( ) . contains ( packageName ) ; return ( isSystemApp ( ) ) || ( whitelisted && ( ( isSystemApp ( ) ) || ( isUpdatedSystemApp ( ) ) ) ) ; }
Source:
public void startNattKeepalive ( int contextId , android.net.KeepalivePacketData packetData , int intervalMillis , android.os.Message result ) { }

Target:
public void startNattKeepalive ( int contextId , android.net.KeepalivePacketData packetData , int intervalMillis , android.os.Message result ) { com.android.internal.telephony.test.SimulatedCommandsVerifier.getInstance ( ) . startNattKeepalive ( contextId , packetData , intervalMillis , result ) ; }
Source:
public void removeParticipants ( java.lang.String [ ] participants ) throws android.os.RemoteException { }

Target:
public void startConference ( java.lang.String [ ] participants , android.telephony.ims.ImsCallProfile profile ) throws android.os.RemoteException { this . startConference ( participants , profile ) ; }
Source:
synchronized void nScriptSetVarF ( int id , int slot , float val ) { validate ( ) ; rsnScriptSetVarF ( mContext , id , slot , val ) ; }

Target:
synchronized void nAllocationResize1D ( long id , int dimX ) { validate ( ) ; rsnAllocationResize1D ( mContext , id , dimX ) ; }
Source:
public static MergingReport.Result validate ( @ com.android.annotations.NonNull com.android.manifmerger.XmlDocument xmlDocument , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) { return new com.android.manifmerger.PreValidator ( ) . validate ( xmlDocument.getRootNode ( ) , logger ) ; }

Target:
public static MergingReport.Result validate ( @ com.android.annotations.NonNull com.android.manifmerger.MergingReport.Builder mergingReport , @ com.android.annotations.NonNull com.android.manifmerger.XmlDocument xmlDocument ) { return com.android.manifmerger.PreValidator.validate ( mergingReport , xmlDocument.getRootNode ( ) ) ; }
Source:
public static com.android.ide.eclipse.adt.internal.editors.layout.configuration.Locale create ( @ com.android.annotations.NonNull com.android.ide.common.resources.configuration.LanguageQualifier language , @ com.android.annotations.NonNull com.android.ide.common.resources.configuration.RegionQualifier region ) { return new com.android.ide.eclipse.adt.internal.editors.layout.configuration.Locale ( language , region ) ; }

Target:
public static com.android.ide.eclipse.adt.internal.editors.layout.configuration.Locale create ( @ com.android.annotations.NonNull java.lang.String localeString ) { com.android.ide.common.resources.configuration.LocaleQualifier qualifier = com.android.ide.common.resources.configuration.LocaleQualifier.getQualifier ( localeString ) ; if ( qualifier != null ) { return new com.android.ide.eclipse.adt.internal.editors.layout.configuration.Locale ( qualifier ) ; } else { return com.android.ide.eclipse.adt.internal.editors.layout.configuration.Locale.ANY ; } }
Source:
public void onResume ( ) { super . onResume ( ) ; updateColors ( ) ; }

Target:
public void onResume ( ) { super . onResume ( ) ; updateColors ( ) ; endCallSpace.setVisibility ( ( shouldShowEndCallSpace ? android.view.View.VISIBLE : android.view.View.GONE ) ) ; }
Source:
public void linkToDeath ( android.os.IBinder.DeathRecipient recipient , int flags ) throws android.os.RemoteException ;

Target:
public boolean unlinkToDeath ( @ android.annotation.NonNull android.os.IBinder.DeathRecipient recipient , int flags ) ;
Source:
public void handleUserUnlock ( int userId ) { if ( userId == ( mCurrentUserId ) ) { loadFromStoreAndMigrateAfterUserSwitch ( mCurrentUserId ) ; } }

Target:
public void handleUserUnlock ( int userId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Handling user unlock for " + userId ) ) ; } if ( ( userId == ( mCurrentUserId ) ) && ( mPendingUnlockStoreRead ) ) { loadFromStoreAndMigrateAfterUserSwitch ( mCurrentUserId ) ; } }
Source:
public boolean isLocalClass ( ) { return ( ( ! ( classNameImpliesTopLevel ( ) ) ) && ( ( libcore.reflect.AnnotationAccess.getEnclosingMethodOrConstructor ( this ) ) != null ) ) && ( ! ( isAnonymousClass ( ) ) ) ; }

Target:
public boolean isLocalClass ( ) { return ( ( ! ( classNameImpliesTopLevel ( ) ) ) && ( ( ( getEnclosingMethod ( ) ) != null ) || ( ( getEnclosingConstructor ( ) ) != null ) ) ) && ( ! ( isAnonymousClass ( ) ) ) ; }
Source:
public void changeCapabilitiesConfiguration ( android.telephony.ims.internal.feature.CapabilityChangeRequest request , android.telephony.ims.internal.aidl.IImsCapabilityCallback c ) throws android.os.RemoteException { this . requestChangeEnabledCapabilities ( request , c ) ; }

Target:
public void changeCapabilitiesConfiguration ( android.telephony.ims.feature.CapabilityChangeRequest request , android.telephony.ims.aidl.IImsCapabilityCallback c ) throws android.os.RemoteException { this . requestChangeEnabledCapabilities ( request , c ) ; }
Source:
public abstract int getTimeout ( ) ;

Target:
public abstract int getTimeoutInMs ( ) ;
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( "styles.xml:9: Error: Style DetailsPage_EditorialBuyButton should not extend itself" , lintProject ( "res/values/styles.xml" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "res/values/styles.xml:9: Error: Style DetailsPage_EditorialBuyButton should not extend itself [StyleCycle]\n" + ( ( ( "<style name=\"DetailsPage_EditorialBuyButton\" parent=\"@style/DetailsPage_EditorialBuyButton\" />\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "res/values/styles.xml" ) ) ; }
Source:
public void testVFE3 ( ) { try { java.lang.Class.forName ( "dxc.junit.opcodes.array_length.jm.T_array_length_5" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testNPE1 ( ) { loadAndRun ( "dot.junit.opcodes.array_length.d.T_array_length_1" , java.lang.NullPointerException.class , new java.lang.Object [ ] { null } ) ; }
Source:
public void setup ( ) { mActivity = mActivityRule.getActivity ( ) ; android.jvmti.cts.JniBindings.waitFor ( ) ; }

Target:
public void setup ( ) { mActivity = mActivityRule.getActivity ( ) ; art.CtsMain.waitFor ( ) ; }
Source:
public void test_SingletonMap_compute ( ) { try { java.util.Collections.singletonMap ( 1 , 11.0 ) . compute ( 1 , ( k , v ) -> 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }

Target:
public void test_SingletonMap_computeIfAbsent ( ) { try { java.util.Collections.singletonMap ( 1 , 11.0 ) . computeIfAbsent ( 1 , ( k ) -> 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }
Source:
public static long abs ( long a ) { return a < 0 ? - a : a ; }

Target:
public static long abs ( long a ) { return java.lang.Math.abs ( a ) ; }
Source:
public final int getOutputSize ( int inputLen ) { if ( ( mode ) == 0 ) { throw new java.lang.IllegalStateException ( "Cipher has not yet been initialized" ) ; } return spiImpl.engineGetOutputSize ( inputLen ) ; }

Target:
public final int getOutputSize ( int inputLen ) { if ( ( mode ) == 0 ) { throw new java.lang.IllegalStateException ( "Cipher has not yet been initialized" ) ; } return getSpi ( ) . engineGetOutputSize ( inputLen ) ; }
Source:
public static java.lang.String formatAssertionMessage ( java.lang.String label , android.hardware.cts.helpers.TestSensorEnvironment environment , java.lang.String extras ) { return java.lang.String.format ( "%s | sensor='%s', samplingPeriodUs=%d, maxReportLatencyUs=%d | %s" , label , environment.getSensor ( ) . getName ( ) , environment.getRequestedSamplingPeriodUs ( ) , environment.getMaxReportLatencyUs ( ) , extras ) ; }

Target:
public static java.lang.String formatAssertionMessage ( java.lang.String label , android.hardware.cts.helpers.TestSensorEnvironment environment , java.lang.String extras ) { return java.lang.String.format ( "%s | sensor='%s', samplingPeriod=%dus, maxReportLatency=%dus | %s" , label , environment.getSensor ( ) . getName ( ) , environment.getRequestedSamplingPeriodUs ( ) , environment.getMaxReportLatencyUs ( ) , extras ) ; }
Source:
public void testWithR ( ) throws java.lang.Exception { assertEquals ( ( "encoding2.xml:1: Warning: iso-latin-1: Not using UTF-8 as the file encoding. " + "This can lead to subtle bugs with non-ascii characters" ) , lintProject ( "res/layout/encoding2.xml" ) ) ; }

Target:
public void testWithR ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/encoding2.xml:1: Warning: iso-latin-1: Not using UTF-8 as the file encoding. This can lead to subtle bugs with non-ascii characters [EnforceUTF8]\n" + ( ( ( "<?xml version=\"1.0\" encoding=\"iso-latin-1\"?>\n" + " ~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) + "" ) ) , lintProject ( "res/layout/encoding2.xml" ) ) ; }
Source:
native void rsnScriptSetVarF ( int con , int id , int slot , float val ) ;

Target:
native void rsnScriptSetVarVE ( long con , long id , int slot , byte [ ] val , long e , int [ ] dims ) ;
Source:
public java.util.ArrayList < org.junit.runner.Description > getChildren ( ) { return fChildren ; }

Target:
public void addChild ( org.junit.runner.Description description ) { fChildren.add ( description ) ; }
Source:
public void onClick ( android.view.View v ) { listener.onClick ( number , isVideoCall ) ; }

Target:
public void onClick ( android.view.View v ) { if ( hasDefaultNumber ) { listener.onClick ( number , isVideoCall ) ; } else { listener.onAmbiguousContactClicked ( lookupKey ) ; } }
Source:
public static java.lang.String normalize ( java.lang.CharSequence src , java.text.Normalizer.Form form ) { return libcore.icu.NativeNormalizer.normalize ( src , form ) ; }

Target:
public static boolean isNormalized ( java.lang.CharSequence src , java.text.Normalizer.Form form ) { return java.text.com.ibm.icu.text.Normalizer.isNormalized ( src.toString ( ) , form.getIcuForm ( ) , 0 ) ; }
Source:
public boolean hasFatalError ( ) { if ( ( status ) != null ) { return ( ( status.getCode ( ) ) != ( Status.Code.OK ) ) && ( ( status.getCode ( ) ) != ( Status.Code.UNAVAILABLE ) ) ; } return false ; }

Target:
public boolean isStatusAlreadyExists ( ) { if ( ( status ) != null ) { return ( status.getCode ( ) ) == ( io.grpc.Status.Code.ALREADY_EXISTS ) ; } return false ; }
Source:
public void onChange ( boolean selfChange ) { android.telephony.Rlog.i ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , "Auto time state changed" ) ; revertToNitzTime ( ) ; }

Target:
public void onTimeDetectionChange ( boolean enabled ) { if ( enabled ) { revertToNitzTime ( ) ; } }
Source:
public libcore.io.StructStatFs statfs ( java.lang.String path ) throws libcore.io.ErrnoException ;

Target:
public libcore.io.StructStatVfs statvfs ( java.lang.String path ) throws libcore.io.ErrnoException ;
Source:
public java.lang.String toPattern ( ) { if ( ( style ) == ( NumberFormat.PLURALCURRENCYSTYLE ) ) { return formatPattern ; } return toPattern ( false ) ; }

Target:
public java.lang.String toPattern ( ) { if ( ( style ) == ( com.ibm.icu.text.NumberFormat.PLURALCURRENCYSTYLE ) ) { return formatPattern ; } return toPattern ( false ) ; }
Source:
public void checkValidity ( ) { throw new java.lang.AssertionError ( ) ; }

Target:
public void checkValidity ( ) { throw new com.android.jack.ir.JNodeInternalError ( this , "Placeholder basic block is transient and should not exist during validation" ) ; }
Source:
public static native long DH_generate_parameters_ex ( int primeBits , long generator ) ;

Target:
public static native void EVP_PKEY_CTX_set_rsa_pss_saltlen ( long ctx , int len ) ;
Source:
public void cloneText ( ) { mText = new java.lang.String ( mText.toString ( ) ) ; }

Target:
public void cloneText ( ) { mText = new java.lang.String ( ( ( mText ) != null ? mText.toString ( ) : "" ) ) ; }
Source:
public void testCodeOverlay ( ) { assertEquals ( "FA" , mCodeOverlay2.getText ( ) ) ; }

Target:
public void testCodeOverlay ( ) { assertEquals ( "fa" , mCodeOverlay2.getText ( ) ) ; }
Source:
public void run ( ) { startAction ( intent , flags , startId ) ; }

Target:
public void run ( ) { android.content.Intent intent = new android.content.Intent ( this , com.googlecode.android_scripting.activity.ScriptingLayerService.class ) ; intent.setAction ( Constants.ACTION_KILL_PROCESS ) ; intent.putExtra ( Constants.EXTRA_PROXY_PORT , port ) ; startService ( intent ) ; }
Source:
public com.android.ide.common.res2.MergingException.Builder wrapException ( java.lang.Throwable cause ) { mCause = cause ; return this ; }

Target:
public com.android.ide.common.res2.MergingException.Builder wrapException ( java.lang.Throwable cause ) { mCause = cause ; mOriginalMessageText = com.google.common.base.Throwables.getStackTraceAsString ( cause ) ; return this ; }
Source:
public static org.junit.runner.Description createSuiteDescription ( java.lang.String name , java.lang.annotation.Annotation ... annotations ) { if ( ( name.length ( ) ) == 0 ) throw new java.lang.IllegalArgumentException ( "name must have non-zero length" ) ; return new org.junit.runner.Description ( name , annotations ) ; }

Target:
public static org.junit.runner.Description createTestDescription ( java.lang.String className , java.lang.String name , java.lang.annotation.Annotation ... annotations ) { return new org.junit.runner.Description ( null , org.junit.runner.Description.formatDisplayName ( name , className ) , annotations ) ; }
Source:
public void onServiceConnected ( android.content.ComponentName name , android.os.IBinder service ) { synchronized ( mLock ) { mPaymentServiceName = name ; mPaymentService = new android.os.Messenger ( service ) ; mPaymentServiceBound = true ; } }

Target:
public void onServiceConnected ( android.content.ComponentName name , android.os.IBinder service ) { synchronized ( mLock ) { if ( ! ( mLastBoundPaymentServiceName.equals ( name ) ) ) { return ; } mPaymentServiceName = name ; mPaymentService = new android.os.Messenger ( service ) ; mPaymentServiceBound = true ; } }
Source:
public java.util.List < java.lang.String > getApplicableMethodNames ( ) { return java.util.Arrays.asList ( com.android.tools.lint.checks.CleanupDetector.BEGIN_TRANSACTION , com.android.tools.lint.checks.CleanupDetector.OBTAIN , com.android.tools.lint.checks.CleanupDetector.OBTAIN_NO_HISTORY , com.android.tools.lint.checks.CleanupDetector.OBTAIN_STYLED_ATTRIBUTES , com.android.tools.lint.checks.CleanupDetector.OBTAIN_ATTRIBUTES , com.android.tools.lint.checks.CleanupDetector.OBTAIN_TYPED_ARRAY , com.android.tools.lint.checks.CleanupDetector.ACQUIRE_CPC ) ; }

Target:
public java.util.List < java.lang.String > getApplicableMethodNames ( ) { return java.util.Arrays.asList ( com.android.tools.lint.checks.CleanupDetector.BEGIN_TRANSACTION , com.android.tools.lint.checks.CleanupDetector.OBTAIN , com.android.tools.lint.checks.CleanupDetector.OBTAIN_NO_HISTORY , com.android.tools.lint.checks.CleanupDetector.OBTAIN_STYLED_ATTRIBUTES , com.android.tools.lint.checks.CleanupDetector.OBTAIN_ATTRIBUTES , com.android.tools.lint.checks.CleanupDetector.OBTAIN_TYPED_ARRAY , com.android.tools.lint.checks.CleanupDetector.ACQUIRE_CPC , com.android.tools.lint.checks.CleanupDetector.QUERY , com.android.tools.lint.checks.CleanupDetector.RAW_QUERY , com.android.tools.lint.checks.CleanupDetector.QUERY_WITH_FACTORY , com.android.tools.lint.checks.CleanupDetector.RAW_QUERY_WITH_FACTORY ) ; }
Source:
public void applyTransportModeTransform ( java.io.FileDescriptor socket , android.net.IpSecTransform transform ) throws java.io.IOException { try ( android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.dup ( socket ) ) { applyTransportModeTransform ( pfd , transform ) ; } }

Target:
public void removeTransportModeTransform ( java.net.Socket socket , android.net.IpSecTransform transform ) throws java.io.IOException { removeTransportModeTransform ( android.os.ParcelFileDescriptor.fromSocket ( socket ) , transform ) ; }
Source:
public void transform ( org.eclipse.jdt.core.dom.CompilationUnit cu , org.eclipse.jface.text.Document document ) { try { document.replace ( 0 , 0 , header ) ; } catch ( org.eclipse.jface.text.BadLocationException e ) { throw new java.lang.AssertionError ( e ) ; } }

Target:
public void process ( com.google.currysrc.api.process.Context context , org.eclipse.jdt.core.dom.CompilationUnit cu ) { org.eclipse.jface.text.Document document = context.document ( ) ; try { document.replace ( 0 , 0 , header ) ; } catch ( org.eclipse.jface.text.BadLocationException e ) { throw new java.lang.AssertionError ( e ) ; } }
Source:
public boolean isRecommended ( ) { return ( ( ( this ) != ( com.android.resources.Density.TV ) ) && ( ( this ) != ( com.android.resources.Density.DPI_400 ) ) ) && ( ( this ) != ( com.android.resources.Density.DPI_560 ) ) ; }

Target:
public java.lang.String getLegacyValue ( ) { if ( ( ( this ) != ( com.android.resources.Density.NODPI ) ) && ( ( this ) != ( com.android.resources.Density.ANYDPI ) ) ) { return java.lang.String.format ( "%1$ddpi" , getDpiValue ( ) ) ; } return "" ; }
Source:
public static java.lang.String setProperty ( java.lang.String prop , java.lang.String value ) { if ( prop.isEmpty ( ) ) { throw new java.lang.IllegalArgumentException ( ) ; } return ( ( java.lang.String ) ( java.lang.System.getProperties ( ) . setProperty ( prop , value ) ) ) ; }

Target:
public static java.lang.String setProperty ( java.lang.String name , java.lang.String value ) { java.lang.System.checkPropertyName ( name ) ; return ( ( java.lang.String ) ( java.lang.System.getProperties ( ) . setProperty ( name , value ) ) ) ; }
Source:
public void test4 ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( ( "src/test/pkg/SharedPrefsTest4.java.txt=>" + "src/test/pkg/SharedPrefsTest4.java" ) ) ) ; }

Target:
public void test4 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/pkg/SharedPrefsTest4.java:13: Warning: SharedPreferences.edit() without a corresponding commit() or apply() call [CommitPrefEdits]\n" + " Editor editor = preferences.edit();\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( ( "src/test/pkg/SharedPrefsTest4.java.txt=>" + "src/test/pkg/SharedPrefsTest4.java" ) ) ) ; }
Source:
public final android.telephony.ims.internal.feature.MmTelFeature.MmTelCapabilityConfiguration queryCapabilities ( ) { return new android.telephony.ims.internal.feature.MmTelFeature.MmTelCapabilityConfiguration ( super . queryCapabilities ( ) ) ; }

Target:
private void setSmsListener ( android.telephony.ims.internal.aidl.IImsSmsListener listener ) { getSmsImplementation ( ) . registerSmsListener ( listener ) ; }
Source:
public void registerMediaButtonEventReceiverForCalls ( android.content.ComponentName c ) { mMediaFocusControl.registerMediaButtonEventReceiverForCalls ( c ) ; }

Target:
public void startBluetoothScoVirtualCall ( android.os.IBinder cb ) { startBluetoothScoInt ( cb , android.media.AudioService.SCO_MODE_VIRTUAL_CALL ) ; }
Source:
void checkClass ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.ClassDeclaration node , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedClass resolvedClass ) ;

Target:
void checkClass ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.Nullable lombok.ast.ClassDeclaration declaration , @ com.android.annotations.NonNull lombok.ast.Node node , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedClass resolvedClass ) ;
Source:
public PhoneConstants.State getState ( ) { return mCT.state ; }

Target:
public PhoneConstants.State getState ( ) { return mCT.mState ; }
Source:
private static synchronized java.lang.invoke.MethodHandle setCachedMethodHandle ( java.lang.invoke.MethodHandle [ ] cache , int pos , java.lang.invoke.MethodHandle value ) { java.lang.invoke.MethodHandle prev = cache [ pos ] ; if ( prev != null ) return prev ; return cache [ pos ] = value ; }

Target:
public static double identity ( double val ) { return val ; }
Source:
void loadIcon ( int recordNumber , android.os.Message msg ) { if ( msg == null ) { return ; } mEndMsg = msg ; mState = com.android.internal.telephony.gsm.stk.IconLoader.STATE_SINGLE_ICON ; startLoadingIcon ( recordNumber ) ; }

Target:
void loadIcon ( int recordNumber , android.os.Message msg ) { if ( msg == null ) { return ; } mEndMsg = msg ; mState = com.android.internal.telephony.cat.IconLoader.STATE_SINGLE_ICON ; startLoadingIcon ( recordNumber ) ; }
Source:
java.lang.Class < ? > getReturnType ( ) { com.android.dex.Dex dex = declaringClass.getDex ( ) ; int returnTypeIndex = dex.returnTypeIndexFromMethodIndex ( dexMethodIndex ) ; return getDexCacheType ( dex , returnTypeIndex ) ; }

Target:
java.lang.Class < ? > getReturnType ( ) { java.lang.Class < ? > declClass = getDeclaringClass ( ) ; com.android.dex.Dex dex = declClass.getDex ( ) ; int returnTypeIndex = dex.returnTypeIndexFromMethodIndex ( dexMethodIndex ) ; return declClass.getDexCacheType ( dex , returnTypeIndex ) ; }
Source:
public void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; props.setProperty ( PkgProps.PKG_REVISION , mPreviewVersion.toString ( ) ) ; }

Target:
public void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; props.setProperty ( PkgProps.PKG_REVISION , mPreviewVersion.toShortString ( ) ) ; }
Source:
public void setCellBroadcastSmsConfig ( int [ ] configValuesArray , android.os.Message response ) { android.util.Log.e ( com.android.internal.telephony.sip.SipPhoneBase.LOG_TAG , "Error! This functionality is not implemented for SIP." ) ; }

Target:
public void getCellBroadcastSmsConfig ( android.os.Message response ) { android.telephony.Rlog.e ( com.android.internal.telephony.sip.SipPhoneBase.LOG_TAG , "Error! This functionality is not implemented for SIP." ) ; }
Source:
public void run ( ) { try { com.android.jack.TestTools.deleteTempDir ( tmp ) ; } catch ( java.io.IOException e ) { java.lang.System.err.println ( e.getMessage ( ) ) ; } }

Target:
public void run ( ) { try { com.android.jack.util.FileUtils.deleteDir ( tmp ) ; } catch ( java.io.IOException e ) { java.lang.System.err.println ( e.getMessage ( ) ) ; } }
Source:
public void testPocBug_34328139 ( ) throws java.lang.Exception { enableAdbRoot ( getDevice ( ) ) ; if ( containsDriver ( getDevice ( ) , "/dev/mdss_rotator" ) ) { android.security.cts.AdbUtils.runPocNoOutput ( "Bug-34328139" , getDevice ( ) , 60 ) ; } }

Target:
public void testPocBug_34328139 ( ) throws java.lang.Exception { enableAdbRoot ( getDevice ( ) ) ; if ( containsDriver ( getDevice ( ) , "/dev/mdss_rotator" ) ) { android.security.cts.AdbUtils.runPoc ( "Bug-34328139" , getDevice ( ) , 60 ) ; } }
Source:
protected abstract void releaseResources ( ) throws android.os.RemoteException ;

Target:
public abstract void freeUnderlyingResources ( ) throws android.os.RemoteException ;
Source:
public void handleNitzReceived ( com.android.internal.telephony.util.TimeStampedValue < com.android.internal.telephony.NitzData > nitzSignal ) { mLatestNitzSignal = nitzSignal ; handleTimeZoneFromNitz ( nitzSignal ) ; handleTimeFromNitz ( nitzSignal ) ; }

Target:
public void handleNitzReceived ( com.android.internal.telephony.util.TimeStampedValue < com.android.internal.telephony.NitzData > nitzSignal ) { mLatestNitzSignal = nitzSignal ; updateTimeZoneFromCountryAndNitz ( ) ; updateTimeFromNitz ( ) ; }
Source:
public static native long create_BIO_InputStream ( org.conscrypt.OpenSSLBIOInputStream is ) ;

Target:
public static native long create_BIO_InputStream ( org.conscrypt.OpenSSLBIOInputStream is , boolean isFinite ) ;
Source:
public java.util.Iterator < com.android.jack.ir.ast.JDefinedClassOrInterface > adapt ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) throws java.lang.Exception { com.android.jack.backend.dex.DexWritingTool writingTool = com.android.sched.util.config.ThreadConfig.get ( DexFileWriter.DEX_WRITING_POLICY ) ; return writingTool.sortAndNumber ( session.getTypesToEmit ( ) ) ; }

Target:
public java.util.Iterator < com.android.jack.ir.ast.JDefinedClassOrInterface > adapt ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) throws java.lang.Exception { com.android.jack.backend.dex.DexWritingTool writingTool = com.android.sched.util.config.ThreadConfig.get ( DexFileWriter.DEX_WRITING_POLICY ) ; return writingTool.sortAndPrepare ( session.getTypesToEmit ( ) ) ; }
Source:
public static native void attachAgent ( java.lang.String agent ) throws java.io.IOException ;

Target:
private static native void nativeAttachAgent ( java.lang.String agent , java.lang.ClassLoader classLoader ) throws java.io.IOException ;
Source:
public static < E > java.util.Set < E > newSetFromMap ( java.util.Map < E , java.lang.Boolean > map ) { return new com.google.common.collect.Sets.SetFromMap < E > ( map ) ; }

Target:
public static < E > java.util.Set < E > newConcurrentHashSet ( ) { return com.google.common.collect.Sets.newSetFromMap ( new java.util.concurrent.ConcurrentHashMap < E , java.lang.Boolean > ( ) ) ; }
Source:
public void testUninstall_noExistingDataBundle ( ) throws java.lang.Exception { assertFalse ( installer.uninstall ( ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testUninstall_noExistingDataDistro ( ) throws java.lang.Exception { assertFalse ( installer.uninstall ( ) ) ; assertNoContentInstalled ( ) ; }
Source:
boolean rejectIncomingConnect ( android.bluetooth.BluetoothDevice device ) { return false ; }

Target:
public boolean getLastVoiceTagNumber ( android.bluetooth.BluetoothDevice device ) { return false ; }
Source:
public org.hamcrest.Matcher < android.view.View > getConstraints ( ) { return android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom ( android.support.v4.widget.DrawerLayout.class ) ; }

Target:
protected org.hamcrest.Matcher < android.view.View > checkAction ( ) { return android.support.test.espresso.contrib.DrawerMatchers.isOpen ( gravity ) ; }
Source:
public void run ( ) { mCamera = android.hardware.Camera.open ( ) ; }

Target:
public void run ( ) { if ( hasRearCamera ) { mCamera = android.hardware.Camera.open ( ) ; } else if ( hasFrontCamera ) { mCamera = android.hardware.Camera.open ( 0 ) ; } else { mCamera = null ; } }
Source:
public void visitRuntimeInvisibleParameterAnnotationsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Method method , proguard.classfile.attribute.visitor.RuntimeInvisibleParameterAnnotationsAttribute runtimeInvisibleParameterAnnotationsAttribute ) { if ( ( optionalAttributeVisitor ) != null ) { runtimeInvisibleParameterAnnotationsAttribute.accept ( clazz , method , optionalAttributeVisitor ) ; } }

Target:
public void visitRuntimeInvisibleTypeAnnotationsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Method method , proguard.classfile.attribute.visitor.CodeAttribute codeAttribute , proguard.classfile.attribute.visitor.RuntimeInvisibleTypeAnnotationsAttribute runtimeInvisibleTypeAnnotationsAttribute ) { if ( ( optionalAttributeVisitor ) != null ) { optionalAttributeVisitor.visitRuntimeInvisibleTypeAnnotationsAttribute ( clazz , method , codeAttribute , runtimeInvisibleTypeAnnotationsAttribute ) ; } }
Source:
native void rsnScriptInvokeV ( long con , long id , int slot , byte [ ] params ) ;

Target:
native void rsnScriptInvokeV ( long con , long id , int slot , byte [ ] params , boolean mUseInc ) ;
Source:
public native void setFloat ( java.lang.Object object , float value ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;

Target:
private native void setFloat ( java.lang.Object object , float value , boolean accessible ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JEnumLiteral expr ) { performCommonChecks ( expr ) ; com.android.jack.ir.ast.JEnumLiteral other = otherOrMe ( expr ) ; ensure ( expr.getFieldId ( ) . equals ( other.getFieldId ( ) ) ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExceptionRuntimeValue expr ) { performCommonChecks ( expr ) ; otherOrMe ( expr ) ; }
Source:
public void setSupplicantLogLevel ( java.lang.String level ) { doStringCommand ( ( "LOG_LEVEL " + level ) ) ; }

Target:
public void setSupplicantLogLevel ( boolean turnOnVerbose ) { doStringCommand ( ( "LOG_LEVEL " + ( turnOnVerbose ? "DEBUG" : "INFO" ) ) ) ; }
Source:
public void onLightbringerStateChanged ( ) { listener.onVideoTechStateChanged ( ) ; }

Target:
public void onDuoStateChanged ( ) { listener.onVideoTechStateChanged ( ) ; }
Source:
public void enter ( ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "Enter Connecting: " + ( getCurrentMessage ( ) . what ) ) ) ; } }

Target:
public void enter ( ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "Enter Connecting: " + ( getCurrentMessage ( ) . what ) ) ) ; } sendMessageDelayed ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.CONNECTING_TIMEOUT , com.android.bluetooth.hfpclient.HeadsetClientStateMachine.CONNECTING_TIMEOUT_MS ) ; }
Source:
public static java.lang.String toUpperCase ( android.icu.util.ULocale locale , java.lang.String str ) { return android.icu.impl.CaseMap.toUpper ( locale , str ) ; }

Target:
private static int getCaseLocale ( java.util.Locale locale ) { if ( locale == null ) { locale = java.util.Locale.getDefault ( ) ; } return android.icu.impl.UCaseProps.getCaseLocale ( locale ) ; }
Source:
public void markDelivered ( ) { mResponseDelivered = true ; }

Target:
public void markDelivered ( ) { synchronized ( mLock ) { mResponseDelivered = true ; } }
Source:
public TestCaseBuilder addLayout ( int layoutId , @ android.support.annotation.Nullable android.uirendering.cts.testinfrastructure.ViewInitializer viewInitializer , boolean useHardware ) { }

Target:
public android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCaseBuilder addLayout ( int layoutId , @ android.support.annotation.Nullable android.uirendering.cts.testinfrastructure.ViewInitializer viewInitializer ) { return addLayout ( layoutId , viewInitializer , false ) . addLayout ( layoutId , viewInitializer , true ) ; }
Source:
public void testAnnotationProcessors ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "apicheck/minsdk14.xml=>AndroidManifest.xml" , "apicheck/layout.xml=>res/layout/layout.xml" , "apicheck/themes.xml=>res/values/themes.xml" , "apicheck/themes.xml=>res/color/colors.xml" , "bytecode/butterknife-2.0.1.jar.data=>libs/butterknife-2.0.1.jar" ) ) ; }

Target:
public void testAnnotationProcessors1 ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "apicheck/minsdk14.xml=>AndroidManifest.xml" , "apicheck/layout.xml=>res/layout/layout.xml" , "apicheck/themes.xml=>res/values/themes.xml" , "apicheck/themes.xml=>res/color/colors.xml" , "bytecode/butterknife-2.0.1.jar.data=>libs/butterknife-2.0.1.jar" ) ) ; }
Source:
private void createContextMenu ( ) { org.eclipse.jface.action.MenuManager mm = new org.eclipse.jface.action.MenuManager ( ) ; createMenuAction ( mm ) ; setMenu ( mm.createContextMenu ( this ) ) ; }

Target:
private void createContextMenu ( ) { mMenuManager = new org.eclipse.jface.action.MenuManager ( ) ; createMenuAction ( mMenuManager ) ; setMenu ( mMenuManager.createContextMenu ( this ) ) ; }
Source:
public boolean accept ( java.io.File dir , java.lang.String name ) { return name.toLowerCase ( ) . endsWith ( ".jar" ) ; }

Target:
public boolean accept ( java.io.File dir , java.lang.String name ) { return name.toLowerCase ( java.util.Locale.US ) . endsWith ( ".jar" ) ; }
Source:
public void setDate ( long date ) { this . date = date ; }

Target:
public void setDate ( long date ) { this . mDate = date ; }
Source:
public java.util.List < com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.NewCall > getNewVoicemails ( ) { return mNewCallsQuery.query ( Calls.VOICEMAIL_TYPE ) ; }

Target:
com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.NewCallsQuery getNewCallsQuery ( ) { return mNewCallsQuery ; }
Source:
synchronized void nAllocationRead ( int id , byte [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }

Target:
native void rsnAllocationRead ( long con , long id , byte [ ] d ) ;
Source:
public void setIsDebuggable ( java.lang.Boolean isDebuggable ) { this . isDebuggable = isDebuggable ; }

Target:
public void setDebuggable ( java.lang.Boolean isDebuggable ) { this . isDebuggable = isDebuggable ; }
Source:
public java.lang.String toString ( ) { return ( ( ( "HelloExtension{type: " + ( name ) ) + ", data: " ) + ( libcore.tlswire.util.HexEncoding.encode ( data ) ) ) + "}" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( "HelloExtension{type: " + ( name ) ) + ", data: " ) + ( libcore.util.HexEncoding.encode ( data ) ) ) + "}" ; }
Source:
public android.telephony.SignalStrength telephonyGetSignalStrength ( ) { return telephonyGetSignalStrengthForSubscription ( SubscriptionManager.DEFAULT_SUBSCRIPTION_ID ) ; }

Target:
public android.telephony.SignalStrength telephonyGetSignalStrength ( ) { return mTelephonyManager.getSignalStrength ( ) ; }
Source:
void addClient ( com.android.ddmlib.Client client ) { synchronized ( mClients ) { mClients.add ( client ) ; } }

Target:
private void updateClientInfo ( com.android.ddmlib.Client client , int changeMask ) { if ( ( changeMask & ( Client.CHANGE_NAME ) ) == ( Client.CHANGE_NAME ) ) { addClientInfo ( client ) ; } }
Source:
public void test63 ( ) throws java.lang.Exception { com.android.jack.test.runtime.RuntimeTestInfo runtimeTestInfo = new com.android.jack.test.runtime.RuntimeTestInfo ( new java.io.File ( com.android.jack.shrob.ObfuscationWithoutMappingTests.shrobTestsDir , "test063" ) , "com.android.jack.shrob.test063.dx.Tests" ) ; runtimeTestInfo.addProguardFlagsFileName ( "proguard.flags001" ) ; new com.android.jack.test.helper.RuntimeTestHelper ( runtimeTestInfo ) . compileAndRunTest ( false ) ; }

Target:
public void test63_001 ( ) throws java.lang.Exception { com.android.jack.test.runtime.RuntimeTestInfo runtimeTestInfo = new com.android.jack.test.runtime.RuntimeTestInfo ( new java.io.File ( com.android.jack.shrob.ObfuscationWithoutMappingTests.shrobTestsDir , "test063" ) , "com.android.jack.shrob.test063.dx.Tests" ) ; runtimeTestInfo.addProguardFlagsFileName ( "proguard.flags001" ) ; new com.android.jack.test.helper.RuntimeTestHelper ( runtimeTestInfo ) . compileAndRunTest ( false ) ; }
Source:
private boolean isHidUuid ( final java.util.UUID uuid ) { for ( java.util.UUID hid_uuid : com.android.bluetooth.gatt.GattService.HID_UUIDS ) { if ( hid_uuid.equals ( uuid ) ) return true ; } return false ; }

Target:
private boolean isHidUuid ( final java.util.UUID uuid ) { for ( java.util.UUID hidUuid : com.android.bluetooth.gatt.GattService.HID_UUIDS ) { if ( hidUuid.equals ( uuid ) ) return true ; } return false ; }
Source:
public void registerNetworkScoreCache ( int networkType , android.net.INetworkScoreCache scoreCache ) { try { mService.registerNetworkScoreCache ( networkType , scoreCache ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void registerNetworkScoreCache ( int networkType , android.net.INetworkScoreCache scoreCache , @ android.net.NetworkScoreManager.CacheUpdateFilter int filterType ) { try { mService.registerNetworkScoreCache ( networkType , scoreCache , filterType ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public org.objectweb.asm.tree.analysis.Value newValue ( final org.objectweb.asm.Type type ) { if ( ( type != null ) && ( ( type.getSort ( ) ) == ( org.objectweb.asm.Type.VOID ) ) ) { return null ; } else { return UNKNOWN ; } }

Target:
public org.objectweb.asm.tree.analysis.Value newValue ( final org.objectweb.asm.Type type ) { if ( ( type != null ) && ( ( type.getSort ( ) ) == ( org.objectweb.asm.Type.VOID ) ) ) { return null ; } else { return com.android.tools.lint.checks.RecycleDetector.RecycleTracker.UNKNOWN ; } }
Source:
public void run ( ) { mEventLog.add ( tag , threadId ) ; mEventLog.finish ( this . toString ( ) ) ; }

Target:
public Response.ErrorListener getErrorListener ( ) { synchronized ( mLock ) { return mErrorListener ; } }
Source:
public void testE3 ( ) { dot.junit.opcodes.invoke_direct.d.T_invoke_direct_8 t = new dot.junit.opcodes.invoke_direct.d.T_invoke_direct_8 ( ) ; try { assertEquals ( 5 , t.run ( ) ) ; fail ( "expected NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void testE3 ( ) { loadAndRun ( "dot.junit.opcodes.invoke_direct.d.T_invoke_direct_8" , java.lang.NullPointerException.class ) ; }
Source:
public void onBrEdrDown ( ) { mAdapterStateMachine.sendMessage ( AdapterState.USER_TURN_OFF ) ; }

Target:
private void enableNativeWithGuestFlag ( ) { boolean isGuest = android.os.UserManager.get ( this ) . isGuestUser ( ) ; if ( ! ( enableNative ( isGuest ) ) ) { android.util.Log.e ( com.android.bluetooth.btservice.AdapterService.TAG , "enableNative() returned false" ) ; } }
Source:
public void testVFE9 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.aput_object.d.T_aput_object_12" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aput_object.d.T_aput_object_1" , java.lang.ArrayIndexOutOfBoundsException.class , new java.lang.String [ 2 ] , 2 , "abc" ) ; }
Source:
private native < A extends java.lang.annotation.Annotation > A getDeclaredAnnotation ( java.lang.Class < A > annotationClass ) ;

Target:
public native < T extends java.lang.annotation.Annotation > T getDeclaredAnnotation ( java.lang.Class < T > annotationClass ) ;
Source:
public void onPageCommitVisible ( android.webkit.WebView view , java.lang.String url ) { assertEquals ( url , "about:blank" ) ; callbackLatch.countDown ( ) ; }

Target:
public void onLayoutFinished ( android.print.PrintDocumentInfo info , boolean changed ) { savePrintedPage ( adapter , descriptor , result ) ; }
Source:
public void onServiceDisconnected ( android.content.ComponentName name ) { mService.set ( null ) ; }

Target:
public void onServiceDisconnected ( android.content.ComponentName name ) { android.telephony.MbmsStreamingManager.sIsInitialized.set ( false ) ; mService.set ( null ) ; }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > sameInstance ( T object ) { return org.hamcrest.core.IsSame.sameInstance ( object ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < java.lang.Iterable < ? super T > > hasItem ( T item ) { return org.hamcrest.core.IsCollectionContaining.< T > hasItem ( item ) ; }