auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void getSigAlgName ( java.security.cert.CertificateFactory f ) throws java.lang.Exception { java.security.cert.X509CRL crlRsa = getCRL ( f , libcore.java.security.cert.X509CRLTest.CRL_RSA ) ; assertEquals ( "SHA1WITHRSA" , getCRL ( f , libcore.java.security.cert.X509CRLTest.CRL_RSA ) . getSigAlgName ( ) . toUpperCase ( java.util.Locale.US ) ) ; }

Target:
private void getSigAlgName ( java.security.cert.CertificateFactory f ) throws java.lang.Exception { java.security.cert.X509CRL crlRsa = getCRL ( f , libcore.java.security.cert.X509CRLTest.CRL_RSA ) ; assertEquals ( "SHA1WITHRSA" , getCRL ( f , libcore.java.security.cert.X509CRLTest.CRL_RSA ) . getSigAlgName ( ) . toUpperCase ( java.util.Locale.ROOT ) ) ; }
Source:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . setSourceLevel ( SourceLevel.JAVA_7 ) . compileAndRunTest ( ) ; }

Target:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . setSourceLevel ( SourceLevel.JAVA_7 ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , Options.ANDROID_MIN_API_LEVEL.getCodec ( ) . formatValue ( new com.android.jack.util.AndroidApiLevel ( com.android.jack.util.AndroidApiLevel.ProvisionalLevel.O_BETA1 ) ) ) . compileAndRunTest ( ) ; }
Source:
protected void loge ( java.lang.String s ) { android.util.Log.e ( LOG_TAG , ( "[GsmDCT] " + s ) ) ; }

Target:
protected void log ( java.lang.String s ) { android.telephony.Rlog.d ( LOG_TAG , ( "[GsmDCT] " + s ) ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { onManager ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent arg0 ) { refresh ( true ) ; }
Source:
public void test_U8_4_SCALE20_05_inSqure ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inX , Element.DataType.UNSIGNED_8 , 4 , 2.0F , 0.5F ) ; checkError ( ) ; }

Target:
public void test_U8_4_SCALE20_05_inSquare ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inX , Element.DataType.UNSIGNED_8 , 4 , 2.0F , 0.5F ) ; checkError ( ) ; }
Source:
public java.lang.String getProvisionedStringValue ( int item ) throws android.os.RemoteException { return null ; }

Target:
public java.lang.String getConfigString ( int item ) { return null ; }
Source:
private void assertRecorderNotCreated ( ) { if ( ( processRecorder ) != null ) { throw new java.lang.RuntimeException ( "ProcessRecorder already created." ) ; } }

Target:
private boolean isInitialized ( ) { return ( processRecorder ) != null ; }
Source:
public java.util.List < java.lang.String > getApplicableMethodNames ( ) { return java.util.Arrays.asList ( com.android.tools.lint.checks.StringFormatDetector.FORMAT_METHOD , com.android.tools.lint.checks.StringFormatDetector.GET_STRING_METHOD ) ; }

Target:
public java.util.List < java.lang.String > getApplicableMethodNames ( ) { return java.util.Arrays.asList ( com.android.tools.lint.detector.api.LintConstants.FORMAT_METHOD , com.android.tools.lint.detector.api.LintConstants.GET_STRING_METHOD ) ; }
Source:
public void testE2 ( ) { dot.junit.opcodes.aget_wide.d.T_aget_wide_1 t = new dot.junit.opcodes.aget_wide.d.T_aget_wide_1 ( ) ; try { t.run ( null , 2 ) ; fail ( "expected NullPointerException" ) ; } catch ( java.lang.NullPointerException np ) { } }

Target:
public void testVFE1 ( ) { load ( "dot.junit.opcodes.aget_wide.d.T_aget_wide_3" , java.lang.VerifyError.class ) ; }
Source:
public void testEscapeStringShouldEscapeAtSignAndQuestionMarkOnlyAtBeginning ( ) throws java.lang.Exception { assertEquals ( "\\@text" , com.android.ide.common.resources.ValueResourceParser.escapeResourceString ( "@text" ) ) ; assertEquals ( "a@text" , com.android.ide.common.resources.ValueResourceParser.escapeResourceString ( "a@text" ) ) ; assertEquals ( "\\?text" , com.android.ide.common.resources.ValueResourceParser.escapeResourceString ( "?text" ) ) ; assertEquals ( "a?text" , com.android.ide.common.resources.ValueResourceParser.escapeResourceString ( "a?text" ) ) ; assertEquals ( "\" ?text\"" , com.android.ide.common.resources.ValueResourceParser.escapeResourceString ( " ?text" ) ) ; }

Target:
public void testEscapeStringShouldEscapeAtSignAndQuestionMarkOnlyAtBeginning ( ) throws java.lang.Exception { assertEquals ( "\\@text" , com.android.ide.common.res2.ValueXmlHelper.escapeResourceString ( "@text" ) ) ; assertEquals ( "a@text" , com.android.ide.common.res2.ValueXmlHelper.escapeResourceString ( "a@text" ) ) ; assertEquals ( "\\?text" , com.android.ide.common.res2.ValueXmlHelper.escapeResourceString ( "?text" ) ) ; assertEquals ( "a?text" , com.android.ide.common.res2.ValueXmlHelper.escapeResourceString ( "a?text" ) ) ; assertEquals ( "\" ?text\"" , com.android.ide.common.res2.ValueXmlHelper.escapeResourceString ( " ?text" ) ) ; }
Source:
public java.net.InetAddress anyLocalAddress ( ) { return java.net.Inet6AddressImpl.ANY_LOCAL_ADDRESS ; }

Target:
public java.net.InetAddress anyLocalAddress ( ) { synchronized ( java.net.Inet6AddressImpl.class ) { if ( ( java.net.Inet6AddressImpl.anyLocalAddress ) == null ) { java.net.Inet6Address anyAddress = new java.net.Inet6Address ( ) ; anyAddress.holder ( ) . hostName = "::" ; java.net.Inet6AddressImpl.anyLocalAddress = anyAddress ; } return java.net.Inet6AddressImpl.anyLocalAddress ; } }
Source:
private void ensureDigestInitializedInContext ( ) { if ( ! ( digestInitializedInContext ) ) { final org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = ctx ; org.conscrypt.NativeCrypto.EVP_DigestInit ( ctxLocal , evp_md ) ; digestInitializedInContext = true ; } }

Target:
private void ensureDigestInitializedInContext ( ) { if ( ! ( digestInitializedInContext ) ) { final org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = ctx ; org.conscrypt.NativeCrypto.EVP_DigestInit_ex ( ctxLocal , evp_md ) ; digestInitializedInContext = true ; } }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setInfraLogPathBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 524288 ; infraLogPath_ = value ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setInfraLogPathBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 1048576 ; infraLogPath_ = value ; onChanged ( ) ; return this ; }
Source:
public static native void SSL_use_PrivateKey ( long ssl , byte [ ] pkcs8EncodedPrivateKey ) ;

Target:
public static native void SSL_use_PrivateKey ( long ssl , long pkey ) ;
Source:
public void update ( com.intellij.openapi.actionSystem.AnActionEvent e ) { if ( com.intellij.openapi.actionSystem.ActionPlaces.isPopupPlace ( e.getPlace ( ) ) ) { e.getPresentation ( ) . setVisible ( shouldDisplayAction ( e ) ) ; } }

Target:
public void update ( com.intellij.openapi.actionSystem.AnActionEvent e ) { if ( com.intellij.openapi.actionSystem.ActionPlaces.isPopupPlace ( e.getPlace ( ) ) ) { e.getPresentation ( ) . setVisible ( com.google.gct.idea.appengine.action.NewEndpointFromClassAction.shouldDisplayAction ( e ) ) ; } }
Source:
public boolean visitMethodInvocation ( lombok.ast.MethodInvocation node ) { mComplex = true ; return super . visitMethodInvocation ( node ) ; }

Target:
public void visitThrowStatement ( com.intellij.psi.PsiThrowStatement statement ) { super . visitThrowStatement ( statement ) ; mComplex = true ; }
Source:
public void onChange ( boolean selfChange ) { mUserWantsSuspendOpt.set ( ( ( Settings.Global.getInt ( mContext.getContentResolver ( ) , Settings.Global.WIFI_SUSPEND_OPTIMIZATIONS_ENABLED , 1 ) ) == 1 ) ) ; }

Target:
public void onChange ( boolean selfChange ) { mUserWantsSuspendOpt.set ( ( ( mFacade.getIntegerSetting ( mContext , Settings.Global.WIFI_SUSPEND_OPTIMIZATIONS_ENABLED , 1 ) ) == 1 ) ) ; }
Source:
private void simulateInstalledDistro ( libcore.tzdata.shared2.TimeZoneDistro timeZoneDistro ) throws java.lang.Exception { java.io.File currentTzDataDir = installer.getCurrentTzDataDir ( ) ; assertFalse ( currentTzDataDir.exists ( ) ) ; assertTrue ( currentTzDataDir.mkdir ( ) ) ; timeZoneDistro.extractTo ( currentTzDataDir ) ; }

Target:
private void simulateInstalledDistro ( com.android.timezone.distro.TimeZoneDistro timeZoneDistro ) throws java.lang.Exception { java.io.File currentTzDataDir = installer.getCurrentTzDataDir ( ) ; assertFalse ( currentTzDataDir.exists ( ) ) ; assertTrue ( currentTzDataDir.mkdir ( ) ) ; timeZoneDistro.extractTo ( currentTzDataDir ) ; }
Source:
public abstract com.android.jack.ir.ast.JAnnotation getAnnotation ( @ javax.annotation.Nonnull java.lang.String signature ) throws com.android.jack.ir.ast.JTypeLookupException ;

Target:
public abstract com.android.jack.ir.ast.JAnnotationType getAnnotationType ( @ javax.annotation.Nonnull java.lang.String signature ) throws com.android.jack.ir.ast.JTypeLookupException ;
Source:
public com.android.build.gradle.internal.core.NdkConfig getNdkConfig ( ) { return null ; }

Target:
public com.android.build.gradle.internal.dsl.CoreNdkOptions getNdkConfig ( ) { return new com.android.build.gradle.managed.adaptor.NdkOptionsAdaptor ( buildType.getNdk ( ) ) ; }
Source:
public void onDisconnect ( ) { com.android.dialer.common.LogUtil.enterBlock ( "SimulatorConnection.onDisconnect" ) ; setDisconnected ( new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.LOCAL ) ) ; destroy ( ) ; }

Target:
public void onAnswer ( ) { com.android.dialer.common.LogUtil.enterBlock ( "SimulatorConnection.onAnswer" ) ; onEvent ( new com.android.dialer.simulator.Simulator.Event ( com.android.dialer.simulator.Simulator.Event.ANSWER ) ) ; }
Source:
private static javax.xml.parsers.SAXParser getParser ( ) throws javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.sdklib.devices.DeviceParser.sParserFactory.setSchema ( com.android.dvlib.DeviceSchema.getSchema ( ) ) ; return com.android.sdklib.devices.DeviceParser.sParserFactory.newSAXParser ( ) ; }

Target:
private static javax.xml.parsers.SAXParser getParser ( ) throws javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { javax.xml.validation.Schema schema = com.android.dvlib.DeviceSchema.getSchema ( ) ; if ( schema != null ) { com.android.sdklib.devices.DeviceParser.sParserFactory.setSchema ( schema ) ; } return com.android.sdklib.devices.DeviceParser.sParserFactory.newSAXParser ( ) ; }
Source:
public void write ( byte [ ] b ) throws java.io.IOException { write ( b , 0 , b.length ) ; }

Target:
public void write ( byte [ ] b ) throws java.io.IOException { write ( java.nio.ByteBuffer.wrap ( b ) ) ; }
Source:
protected void engineUpdate ( byte [ ] input , int offset , int len ) { final org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = ctx ; org.conscrypt.NativeCrypto.EVP_DigestUpdate ( ctxLocal , input , offset , len ) ; }

Target:
protected byte [ ] engineDoFinal ( ) { final org.conscrypt.NativeRef.HMAC_CTX ctxLocal = ctx ; final byte [ ] output = org.conscrypt.NativeCrypto.HMAC_Final ( ctxLocal ) ; resetContext ( ) ; return output ; }
Source:
static android.content.Intent getActivityIntent ( android.content.pm.ActivityInfo activityInfo ) { android.content.Intent intent = new android.content.Intent ( ) ; intent.setClassName ( activityInfo.packageName , activityInfo.name ) ; return intent ; }

Target:
public boolean onCreateOptionsMenu ( android.view.Menu menu ) { android.view.MenuInflater inflater = getMenuInflater ( ) ; inflater.inflate ( R.menu.test_list_menu , menu ) ; return true ; }
Source:
public boolean hasDefault ( ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile file : mFiles ) { if ( file.getFolder ( ) . getConfiguration ( ) . isDefault ( ) ) { return true ; } } return ( mFiles.size ( ) ) == 0 ; }

Target:
public boolean hasDefault ( ) { for ( com.android.ide.common.resources.ResourceFile file : mFiles ) { if ( file.getFolder ( ) . getConfiguration ( ) . isDefault ( ) ) { return true ; } } return ( mFiles.size ( ) ) == 0 ; }
Source:
public void start ( ) { mRetryCounter = 0 ; mCurrentDelayMs = mStartDelayMs ; mHandler.removeCallbacks ( mRunnable ) ; mHandler.postDelayed ( mRunnable , mCurrentDelayMs ) ; }

Target:
public void removeCallbacks ( java.lang.Runnable runnable ) { mHandler.removeCallbacks ( runnable ) ; }
Source:
private void writeValue ( java.io.OutputStreamWriter writer , java.lang.String name , java.lang.String value ) throws java.io.IOException { writer.append ( name ) . append ( '=' ) . append ( value ) . append ( '\n' ) ; }

Target:
private void writeValue ( java.io.OutputStreamWriter writer , java.lang.String name , java.lang.String value ) throws java.io.IOException { writer.append ( name ) . append ( ':' ) . append ( value ) . append ( '\n' ) ; }
Source:
private void resolvePrivateDnsConfig ( ) { resolvePrivateDnsConfig ( com.android.server.connectivity.DnsManager.getPrivateDnsConfig ( mContext.getContentResolver ( ) ) ) ; }

Target:
public void forceReevaluation ( int responsibleUid ) { sendMessage ( com.android.server.connectivity.NetworkMonitor.CMD_FORCE_REEVALUATION , responsibleUid , 0 ) ; }
Source:
public void run ( ) { mTextView.setKeyListener ( digitsKeyListener ) ; mTextView.setText ( "" , BufferType.EDITABLE ) ; mTextView.setError ( errorText ) ; mTextView.requestFocus ( ) ; }

Target:
public void run ( ) { mTextView.setKeyListener ( android.text.method.DigitsKeyListener.getInstance ( ) ) ; mTextView.setText ( "" , BufferType.EDITABLE ) ; mTextView.setError ( errorText ) ; mTextView.requestFocus ( ) ; }
Source:
public void notifySuggestionPicked ( android.text.style.SuggestionSpan span , java.lang.String originalString , int index ) { try { mService.notifySuggestionPicked ( span , originalString , index ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void registerSuggestionSpansForNotification ( android.text.style.SuggestionSpan [ ] spans ) { try { mService.registerSuggestionSpansForNotification ( spans ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void createImsFeature ( int slotId , int feature , com.android.ims.internal.IImsFeatureStatusCallback c ) throws android.os.RemoteException { synchronized ( mFeatures ) { onCreateImsFeatureInternal ( slotId , feature , c ) ; } }

Target:
public void createImsFeature ( int slotId , int feature , com.android.ims.internal.IImsFeatureStatusCallback c ) throws android.os.RemoteException { synchronized ( mFeatures ) { enforceCallingOrSelfPermission ( android.Manifest.permission.MODIFY_PHONE_STATE , "createImsFeature" ) ; onCreateImsFeatureInternal ( slotId , feature , c ) ; } }
Source:
public int getDefaultVoiceSubId ( ) { return android.telephony.SubscriptionManager.getDefaultVoiceSubId ( ) ; }

Target:
public int getDefaultVoiceSubId ( ) { return android.telephony.SubscriptionManager.getDefaultVoiceSubscriptionId ( ) ; }
Source:
public android.animation.TimeInterpolator getInterpolator ( ) { return null ; }

Target:
public android.animation.TimeInterpolator getInterpolator ( ) { if ( mInterpolatorSet ) { return mInterpolator ; } else { if ( ( mTempValueAnimator ) == null ) { mTempValueAnimator = new android.animation.ValueAnimator ( ) ; } return mTempValueAnimator.getInterpolator ( ) ; } }
Source:
public java.text.CollationElementIterator getCollationElementIterator ( java.lang.String source ) { if ( source == null ) { throw new java.lang.NullPointerException ( "source == null" ) ; } return new java.text.CollationElementIterator ( collAsICU ( ) . getCollationElementIterator ( source ) ) ; }

Target:
public java.text.CollationElementIterator getCollationElementIterator ( java.lang.String source ) { if ( source == null ) { throw new java.lang.NullPointerException ( "source == null" ) ; } return new java.text.CollationElementIterator ( icuColl.getCollationElementIterator ( source ) ) ; }
Source:
private android.graphics.Bitmap loadBitmap ( int resource ) { final android.graphics.BitmapFactory.Options options = new android.graphics.BitmapFactory.Options ( ) ; options.inPreferredConfig = Bitmap.Config.ARGB_8888 ; return android.graphics.BitmapFactory.decodeResource ( getResources ( ) , resource , options ) ; }

Target:
com.android.rs.image2.TestBase changeTest ( int id , boolean setupUI ) { com.android.rs.image2.IPTestList.TestName t = IPTestList.TestName.values ( ) [ id ] ; return changeTest ( t , setupUI ) ; }
Source:
private void onCallHeld ( int callheld ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_CALLHELD ) ; event.valueInt = callheld ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }

Target:
private void onRespAndHold ( int resp_and_hold ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_RESP_AND_HOLD ) ; event.valueInt = resp_and_hold ; if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; } sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }
Source:
public java.io.File getResourceFolder ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Project project ) { return mDelegate.getResourceFolder ( project ) ; }

Target:
public java.util.List < java.io.File > getResourceFolders ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Project project ) { return mDelegate.getResourceFolders ( project ) ; }
Source:
public void setUserMobileDataEnabled ( boolean enable ) { setUserMobileDataEnabled ( getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) , enable ) ; }

Target:
public boolean isDataEnabled ( ) { return getDataEnabled ( getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) ) ; }
Source:
private void doRelease ( android.os.ConditionVariable conditionVariable ) { mIoHandler.removeCallbacksAndMessages ( null ) ; mFinished = true ; conditionVariable.open ( ) ; }

Target:
private void doRelease ( android.os.ConditionVariable conditionVariable ) { mIoHandler.removeCallbacksAndMessages ( null ) ; mFinished = true ; conditionVariable.open ( ) ; mSelectedTracks.clear ( ) ; }
Source:
private boolean hasVideoCallCapabilities ( com.android.incallui.call.DialerCall call ) { return call.getVideoTech ( ) . isAvailable ( context ) ; }

Target:
private boolean hasVideoCallCapabilities ( com.android.incallui.call.DialerCall call ) { return call.getVideoTech ( ) . isAvailable ( context , call.getAccountHandle ( ) ) ; }
Source:
public static void run ( ) throws java.lang.Exception { art.Test926.doTest ( new art.Test926.Transform ( ) , new art.Test926.Transform2 ( ) ) ; }

Target:
public static void run ( ) throws java.lang.Exception { art.Redefinition.setTestConfiguration ( Redefinition.Config.COMMON_REDEFINE ) ; art.Test926.doTest ( new art.Test926.Transform ( ) , new art.Test926.Transform2 ( ) ) ; }
Source:
static native boolean isMirroredImpl ( int codePoint ) ;

Target:
static native byte getDirectionalityImpl ( int codePoint ) ;
Source:
public com.android.internal.telephony.uicc.UiccCard getUiccCardForPhone ( int phoneId ) { synchronized ( com.android.internal.telephony.uicc.UiccController.mLock ) { com.android.internal.telephony.uicc.UiccSlot uiccSlot = getUiccSlotForPhone ( phoneId ) ; if ( uiccSlot != null ) { return uiccSlot.getUiccCard ( ) ; } return null ; } }

Target:
public com.android.internal.telephony.uicc.UiccCard getUiccCardForPhone ( int phoneId ) { synchronized ( com.android.internal.telephony.uicc.UiccController.mLock ) { if ( isValidPhoneIndex ( phoneId ) ) { com.android.internal.telephony.uicc.UiccSlot uiccSlot = getUiccSlotForPhone ( phoneId ) ; if ( uiccSlot != null ) { return uiccSlot.getUiccCard ( ) ; } } return null ; } }
Source:
public static native int EC_KEY_get_public_key ( int keyRef ) ;

Target:
public static native byte [ ] EC_GROUP_get_order ( long groupCtx ) ;
Source:
public android.net.ip.IpManager makeIpManager ( android.content.Context context , java.lang.String iface , android.net.ip.IpManager.Callback callback ) { return new android.net.ip.IpManager ( context , iface , callback ) ; }

Target:
public android.net.ip.IpClient makeIpClient ( android.content.Context context , java.lang.String iface , android.net.ip.IpClient.Callback callback ) { return new android.net.ip.IpClient ( context , iface , callback ) ; }
Source:
public java.lang.String getMinSdkName ( ) { sync ( ) ; return mMinSdkName ; }

Target:
public java.lang.String getMinSdkName ( ) { sync ( ) ; if ( ( ( mMinSdkName ) == null ) || ( mMinSdkName.isEmpty ( ) ) ) { mMinSdkName = "1" ; } return mMinSdkName ; }
Source:
public int getAttributeCount ( ) { if ( ( mCurrentEvent ) != ( com.android.apksigner.AndroidBinXmlParser.EVENT_START_ELEMENT ) ) { return - 1 ; } return mCurrentElementAttributeCount ; }

Target:
public int getAttributeCount ( ) { if ( ( mCurrentEvent ) != ( com.android.apksig.apk.AndroidBinXmlParser.EVENT_START_ELEMENT ) ) { return - 1 ; } return mCurrentElementAttributeCount ; }
Source:
public void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; if ( ( getMinPlatformToolsRevision ( ) ) != ( MIN_PLATFORM_TOOLS_REV_INVALID ) ) { props.setProperty ( PkgProps.MIN_PLATFORM_TOOLS_REV , java.lang.Integer.toString ( getMinPlatformToolsRevision ( ) ) ) ; } }

Target:
public void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; if ( ! ( getMinPlatformToolsRevision ( ) . equals ( com.android.sdklib.internal.repository.packages.MIN_PLATFORM_TOOLS_REV_INVALID ) ) ) { props.setProperty ( PkgProps.MIN_PLATFORM_TOOLS_REV , getMinPlatformToolsRevision ( ) . toShortString ( ) ) ; } }
Source:
public java.lang.String getPath ( ) { return ( ( com.android.sched.util.location.DirectoryLocation ) ( location ) ) . getPath ( ) ; }

Target:
public java.lang.String getPath ( ) { return file.getPath ( ) ; }
Source:
public long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , libcore.util.MutableLong inOffset , long byteCount ) throws android.system.ErrnoException ;

Target:
public long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , android.system.Int64Ref offset , long byteCount ) throws android.system.ErrnoException ;
Source:
com.android.jack.ir.ast.JAnnotationLiteral getAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotationType ) { return annotations.get ( annotationType ) ; }

Target:
java.util.List < com.android.jack.ir.ast.JAnnotationLiteral > getAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotationType ) { java.util.List < com.android.jack.ir.ast.JAnnotationLiteral > annotationLiterals = annotations.get ( annotationType ) ; if ( annotationLiterals == null ) { return java.util.Collections.emptyList ( ) ; } return annotationLiterals ; }
Source:
public void testConstructor_NullSubjectDN_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , null , android.security.KeyPairGeneratorSpecTest.SERIAL_1 , android.security.KeyPairGeneratorSpecTest.NOW , android.security.KeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , 0 ) ; fail ( "Should throw IllegalArgumentException when subjectDN is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testConstructor_NullSubjectDN_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , "RSA" , 1024 , null , null , android.security.KeyPairGeneratorSpecTest.SERIAL_1 , android.security.KeyPairGeneratorSpecTest.NOW , android.security.KeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , 0 ) ; fail ( "Should throw IllegalArgumentException when subjectDN is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }
Source:
public void schedule ( java.util.TimerTask task , long delay , long period ) { if ( ( delay < 0 ) || ( period <= 0 ) ) { throw new java.lang.IllegalArgumentException ( ) ; } scheduleImpl ( task , delay , period , false ) ; }

Target:
public void scheduleAtFixedRate ( java.util.TimerTask task , long delay , long period ) { validateScheduling ( task , java.util.Timer.VALID_DATE , delay , period ) ; doSchedule ( task , ( ( java.lang.System.currentTimeMillis ( ) ) + delay ) , period , true ) ; }
Source:
private boolean checkStop ( ) { android.renderscript.RenderScript rsCtx = getRenderScriptContext ( ) ; rsCtx.finish ( ) ; if ( getEnvironment ( ) . needsStop ( ) ) { return true ; } return false ; }

Target:
private boolean checkStop ( ) { android.support.v8.renderscript.RenderScript rsCtx = getRenderScriptContext ( ) ; rsCtx.finish ( ) ; if ( getEnvironment ( ) . needsStop ( ) ) { return true ; } return false ; }
Source:
public void callInner ( ) { mBlort.repaint ( ) ; }

Target:
public void callInner ( ) { try { mBlort.repaint ( ) ; throw new java.lang.RuntimeException ( "fail" ) ; } catch ( java.lang.NullPointerException npe ) { } }
Source:
public static com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator create ( boolean allowXmlExtension , java.util.Set < java.lang.String > existing ) { return new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator ( allowXmlExtension , existing ) ; }

Target:
public static com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator create ( boolean allowXmlExtension , java.util.Set < java.lang.String > existing , com.android.resources.ResourceType type ) { boolean isFileType = ! ( com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.isValueResource ( type ) ) ; return new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator ( allowXmlExtension , existing , isFileType ) ; }
Source:
private void addImageAsync ( final android.net.Uri uri , final boolean append ) { runAsyncWithDialog ( new java.lang.Runnable ( ) { public void run ( ) { addImage ( uri , append ) ; } } , R.string.adding_attachments_title ) ; }

Target:
private void addVideoAsync ( final android.net.Uri uri , final boolean append ) { getAsyncDialog ( ) . runAsync ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { addVideo ( uri , append ) ; } } , null , R.string.adding_attachments_title ) ; }
Source:
public void handleEvent ( org.eclipse.swt.widgets.Event event ) { if ( ( event.detail ) == ( org.eclipse.swt.SWT.ARROW ) ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.OrientationMenuAction.showMenu ( this , combo ) ; } else { flipOrientation ( ) ; } }

Target:
public void handleEvent ( org.eclipse.swt.widgets.Event event ) { if ( ( event.detail ) == ( org.eclipse.swt.SWT.ARROW ) ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.OrientationMenuAction.showMenu ( this , combo ) ; } else { gotoNextState ( ) ; } }
Source:
public K last ( ) { return map ( ) . lastKey ( ) ; }

Target:
java.util.NavigableMap < K , V > map ( ) { return ( ( java.util.NavigableMap < K , V > ) ( map ) ) ; }
Source:
public void mouseDragged ( java.awt.event.MouseEvent event ) { if ( ! ( checkLockedRegion ( event.getX ( ) , event.getY ( ) ) ) ) { paint ( event.getX ( ) , event.getY ( ) , currentButton ) ; } }

Target:
public void mouseDragged ( java.awt.event.MouseEvent event ) { if ( ! ( checkLockedRegion ( event.getX ( ) , event.getY ( ) ) ) ) { moveLine ( event.getX ( ) , event.getY ( ) ) ; } }
Source:
public void appendException ( @ javax.annotation.Nonnull T exceptions ) { for ( com.android.jack.api01.ChainedException exception : exceptions ) { head = ( ( T ) ( exception.putAsLastExceptionOf ( head ) ) ) ; } }

Target:
public void appendException ( @ javax.annotation.Nonnull T exceptions ) { for ( com.android.jack.api.v01.ChainedException exception : exceptions ) { head = ( ( T ) ( exception.putAsLastExceptionOf ( head ) ) ) ; } }
Source:
public void handshakeCompleted ( ) ;

Target:
public void onSSLStateChange ( long sslSessionNativePtr , int type , int val ) ;
Source:
protected void onNewIntent ( android.content.Intent intent ) { parseIntent ( intent ) ; }

Target:
public void onCreateOptionsMenu ( android.view.Menu menu , android.view.MenuInflater inflater ) { menu.add ( 0 , com.android.cellbroadcastreceiver.CellBroadcastListActivity.CursorLoaderListFragment.MENU_DELETE_ALL , 0 , R.string.menu_delete_all ) . setIcon ( android.R.drawable.ic_menu_delete ) ; menu.add ( 0 , com.android.cellbroadcastreceiver.CellBroadcastListActivity.CursorLoaderListFragment.MENU_PREFERENCES , 0 , R.string.menu_preferences ) . setIcon ( android.R.drawable.ic_menu_preferences ) ; }
Source:
public static java.util.LinkedHashSet < java.lang.String > collectRelativePaths ( java.io.File dir ) { java.util.LinkedHashSet < java.lang.String > result = new java.util.LinkedHashSet < java.lang.String > ( ) ; com.intellij.updater.Utils.collectRelativePaths ( dir , result , null ) ; return result ; }

Target:
public static java.util.LinkedHashSet < java.lang.String > collectRelativePaths ( java.io.File dir , boolean includeDirectories ) { java.util.LinkedHashSet < java.lang.String > result = new java.util.LinkedHashSet < java.lang.String > ( ) ; com.intellij.updater.Utils.collectRelativePaths ( dir , result , null , includeDirectories ) ; return result ; }
Source:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 2 , notificationWithNumbers ( 2 ) ) ; }

Target:
public void run ( ) { android.app.Notification n = new android.app.Notification ( R.drawable.icon2 , "tock tock tock" , java.lang.System.currentTimeMillis ( ) ) ; n.setLatestEventInfo ( this , "Persistent #3" , "Notify me!!!" , makeIntent ( ) ) ; mNM.notify ( 3 , n ) ; }
Source:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "connect(): not allowed for non-active user" ) ; return false ; } enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; return false ; }

Target:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_ADMIN_PERM ) ; return false ; }
Source:
public java.lang.String getKey ( ) { return mType.getKey ( this ) ; }

Target:
public java.lang.String getKey ( ) { return mType.getNodeKeyResolver ( ) . getKey ( this ) ; }
Source:
public void execute ( org.gradle.nativeplatform.SharedLibraryBinarySpec binary ) { if ( binary.getComponent ( ) . equals ( androidSpec.getNativeLibrary ( ) ) ) { com.android.build.gradle.ndk.internal.NdkConfiguration.createTasks ( tasks , binary , buildDir , ndkConfig , ndkHandler ) ; } }

Target:
public void execute ( com.android.build.gradle.model.DefaultAndroidBinary binary ) { for ( org.gradle.nativeplatform.NativeBinarySpec nativeBinary : binary.getNativeBinaries ( ) ) { com.android.build.gradle.ndk.internal.NdkConfiguration.createTasks ( tasks , ( ( org.gradle.nativeplatform.SharedLibraryBinarySpec ) ( nativeBinary ) ) , buildDir , binary.getMergedNdkConfig ( ) , ndkHandler ) ; } }
Source:
public java.io.OutputStream getOutput ( ) throws java.io.IOException { return encodingStream ( writerSupplier.getOutput ( ) ) ; }

Target:
public java.io.OutputStream openStream ( ) throws java.io.IOException { return encodingStream ( encodedSink.openStream ( ) ) ; }
Source:
public void test_minus_TemporalAmount_zero ( ) { java.time.temporal.TemporalAmount period = java.time.Period.ZERO ; java.time.LocalTime t = TEST_12_30_40_987654321.minus ( period ) ; org.testng.Assert.assertEquals ( t , TEST_12_30_40_987654321 ) ; }

Target:
public void test_minus_TemporalAmount_zero ( ) { java.time.temporal.TemporalAmount period = java.time.Period.ZERO ; java.time.LocalTime t = tck.java.time.TCKLocalTime.TEST_12_30_40_987654321.minus ( period ) ; org.testng.Assert.assertEquals ( t , tck.java.time.TCKLocalTime.TEST_12_30_40_987654321 ) ; }
Source:
private void enableDSASignatureNonceHardeningIfApplicable ( ) { final org.conscrypt.OpenSSLKey key = this . key ; switch ( engineType ) { case EC : org.conscrypt.NativeCrypto.EC_KEY_set_nonce_from_hash ( key.getPkeyContext ( ) , true ) ; break ; default : } }

Target:
private void enableDSASignatureNonceHardeningIfApplicable ( ) { final org.conscrypt.OpenSSLKey key = this . key ; switch ( engineType ) { case EC : org.conscrypt.NativeCrypto.EC_KEY_set_nonce_from_hash ( key.getNativeRef ( ) , true ) ; break ; default : } }
Source:
public com.android.ide.common.res2.MergingException addFilePosition ( @ com.android.annotations.NonNull com.android.ide.common.blame.FilePosition filePosition ) { mFilePositions.add ( filePosition ) ; return this ; }

Target:
public com.android.ide.common.res2.MergingException addFilePosition ( @ com.android.annotations.NonNull com.android.ide.common.blame.SourceFilePosition filePosition ) { mFilePositions.add ( filePosition ) ; return this ; }
Source:
protected java.lang.String getName ( ) { return com.android.bluetooth.a2dp.A2dpService.TAG ; }

Target:
protected void create ( ) { android.util.Log.i ( com.android.bluetooth.a2dp.A2dpService.TAG , "create()" ) ; }
Source:
private java.lang.String [ ] getTestZIDs ( ) { if ( ( getInclusion ( ) ) > 5 ) { return android.icu.util.TimeZone.getAvailableIDs ( ) ; } return android.icu.dev.test.timezone.TimeZoneRuleTest.TESTZIDS ; }

Target:
private java.lang.String [ ] getTestZIDs ( ) { if ( ( android.icu.dev.test.TestFmwk.getExhaustiveness ( ) ) > 5 ) { return android.icu.util.TimeZone.getAvailableIDs ( ) ; } return android.icu.dev.test.timezone.TimeZoneRuleTest.TESTZIDS ; }
Source:
public java.util.Map < java.lang.String , com.google.gct.login.CredentialedUser > getAllUsers ( ) { synchronized ( this ) { java.util.Map < java.lang.String , com.google.gct.login.CredentialedUser > clone = new java.util.HashMap < java.lang.String , com.google.gct.login.CredentialedUser > ( ) ; clone.putAll ( allUsers ) ; return clone ; } }

Target:
public java.util.LinkedHashMap < java.lang.String , com.google.gct.login.CredentialedUser > getAllUsers ( ) { synchronized ( this ) { java.util.LinkedHashMap < java.lang.String , com.google.gct.login.CredentialedUser > clone = new java.util.LinkedHashMap < java.lang.String , com.google.gct.login.CredentialedUser > ( ) ; clone.putAll ( allUsers ) ; return clone ; } }
Source:
public void testReplaceSdcard ( ) { sampleReplaceFromRawResource ( ( ( PackageManager.INSTALL_REPLACE_EXISTING ) | ( PackageManager.INSTALL_EXTERNAL ) ) ) ; }

Target:
public void testReplaceFwdLockedInternal ( ) { sampleReplaceFromRawResource ( ( ( android.content.pm.PackageManager.INSTALL_REPLACE_EXISTING ) | ( android.content.pm.PackageManager.INSTALL_FORWARD_LOCK ) ) ) ; }
Source:
public long getGlobalStartTime ( ) { return mGlobalStartTime ; }

Target:
void updateRootCallTimeBounds ( ) { if ( ! ( mIsEmpty ) ) { mRootCall.mGlobalStartTime = mGlobalStartTime ; mRootCall.mGlobalEndTime = mGlobalEndTime ; mRootCall.mThreadStartTime = mThreadStartTime ; mRootCall.mThreadEndTime = mThreadEndTime ; } }
Source:
public void run ( ) { textView.setVisibility ( View.GONE ) ; frameLayout.requestLayout ( ) ; }

Target:
public void run ( ) { textView.setVisibility ( View.GONE ) ; frameLayout.requestLayout ( ) ; drawWaiter.registerDrawCompleteCallback ( mFrameLayout ) ; }
Source:
public void testEmptyPlural ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "res/values/plurals4.xml:3: Error: There should be at least one quantity string in this <plural> definition [MissingQuantity]\n" + " <plurals name=\"minutes_until_num\">\n" ) + " ^\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "res/values/plurals4.xml" ) ) ; }

Target:
public void testEmptyPlural ( ) throws java.lang.Exception { mEnabled = com.google.common.collect.Sets.newHashSet ( PluralsDetector.MISSING , PluralsDetector.EXTRA ) ; assertEquals ( ( "" + ( ( ( "res/values/plurals4.xml:3: Error: There should be at least one quantity string in this <plural> definition [MissingQuantity]\n" + " <plurals name=\"minutes_until_num\">\n" ) + " ^\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "res/values/plurals4.xml" ) ) ; }
Source:
public static com.android.ddmlib.IDevice [ ] getDevices ( ) { if ( ( com.android.hierarchyviewerlib.device.DeviceBridge.bridge ) == null ) { return new com.android.ddmlib.IDevice [ 0 ] ; } return com.android.hierarchyviewerlib.device.DeviceBridge.bridge.getDevices ( ) ; }

Target:
public static com.android.ddmlib.IDevice [ ] getDevices ( ) { if ( ( com.android.hierarchyviewerlib.device.DeviceBridge.sBridge ) == null ) { return new com.android.ddmlib.IDevice [ 0 ] ; } return com.android.hierarchyviewerlib.device.DeviceBridge.sBridge.getDevices ( ) ; }
Source:
public java.lang.String getSysroot ( com.android.build.gradle.internal.core.Abi abi ) { return ( ( ( ( ndkDirectory ) + "/platforms/" ) + ( compileSdkVersion ) ) + "/arch-" ) + ( abi.getArchitecture ( ) ) ; }

Target:
public java.lang.String getSysroot ( com.android.build.gradle.internal.core.Abi abi ) { return ( ( ( ( ndkDirectory ) + "/platforms/" ) + ( getCompileSdkVersion ( ) ) ) + "/arch-" ) + ( abi.getArchitecture ( ) ) ; }
Source:
native void rsnScriptSetTimeZone ( long con , long script , byte [ ] timeZone ) ;

Target:
native void rsnScriptSetTimeZone ( long con , long script , byte [ ] timeZone , boolean mUseInc ) ;
Source:
protected com.android.sched.util.location.Location getVFSLocation ( ) { return baseVFS.getLocation ( ) ; }

Target:
protected com.android.sched.util.location.Location getVFSLocation ( ) { return vfs.getLocation ( ) ; }
Source:
public com.android.ide.common.rendering.api.ResourceValue getResourceValue ( com.android.resources.ResourceType type , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration referenceConfig , boolean isFramework ) { assert type == ( com.android.resources.ResourceType.ID ) ; if ( ( mValue ) == null ) { mValue = new com.android.ide.common.rendering.api.ResourceValue ( type , getName ( ) , isFramework ) ; } return mValue ; }

Target:
public com.android.ide.common.rendering.api.ResourceValue getResourceValue ( com.android.resources.ResourceType type , com.android.ide.common.resources.configuration.FolderConfiguration referenceConfig , boolean isFramework ) { assert type == ( com.android.resources.ResourceType.ID ) ; if ( ( mValue ) == null ) { mValue = new com.android.ide.common.rendering.api.ResourceValue ( type , getName ( ) , isFramework ) ; } return mValue ; }
Source:
public void testE5 ( ) { dot.junit.opcodes.invoke_interface_range.d.T_invoke_interface_range_12 t = new dot.junit.opcodes.invoke_interface_range.d.T_invoke_interface_range_12 ( ) ; dot.junit.opcodes.invoke_interface_range.ITestImpl impl = new dot.junit.opcodes.invoke_interface_range.ITestImpl ( ) ; try { t.run ( impl ) ; fail ( "expected UnsatisfiedLinkError" ) ; } catch ( java.lang.UnsatisfiedLinkError e ) { } }

Target:
public void testVFE2 ( ) { loadAndRun ( "dot.junit.opcodes.invoke_interface_range.d.T_invoke_interface_range_4" , java.lang.IncompatibleClassChangeError.class ) ; }
Source:
public void schedule ( java.util.TimerTask task , long delay , long period ) { if ( ( delay < 0 ) || ( period <= 0 ) ) { throw new java.lang.IllegalArgumentException ( ) ; } scheduleImpl ( task , delay , period , false ) ; }

Target:
private void validateScheduling ( java.util.TimerTask task , long delay , long period ) { validateScheduling ( task , new java.util.Date ( 1 ) , delay , period ) ; }
Source:
private native int sdpCreateOppOpsRecordNative ( java.lang.String serviceName , int rfcommChannel , int l2capPsm , int version , byte [ ] formats_list ) ;

Target:
private native int sdpCreateOppOpsRecordNative ( java.lang.String serviceName , int rfcommChannel , int l2capPsm , int version , byte [ ] formatsList ) ;
Source:
public void run ( ) { synchronized ( this ) { tree = model.getTree ( ) ; setBounds ( ) ; setTransform ( ) ; } }

Target:
public void run ( ) { synchronized ( this ) { tree = model.getTree ( ) ; selectedNode = model.getSelection ( ) ; setBounds ( ) ; setTransform ( ) ; } }
Source:
public void run ( ) { idleOptimization ( jobParams , pm , pkgs ) ; }

Target:
public void run ( ) { idleOptimization ( pm , pkgs , this ) ; if ( ! ( mAbortIdleOptimization.get ( ) ) ) { jobFinished ( jobParams , false ) ; } }
Source:
private void assertVerified ( java.lang.String apkFilenameInResources , java.lang.Integer minSdkVersionOverride ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerified ( verify ( apkFilenameInResources , minSdkVersionOverride ) ) ; }

Target:
private void assertVerified ( java.lang.String apkFilenameInResources , java.lang.Integer minSdkVersionOverride , java.lang.Integer maxSdkVersionOverride ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerified ( verify ( apkFilenameInResources , minSdkVersionOverride , maxSdkVersionOverride ) ) ; }
Source:
public void testHasClassNameDoesNotMatch ( ) { assertFalse ( android.support.test.espresso.intent.matcher.ComponentNameMatchers.hasClassName ( "not_there" ) . matches ( android.support.test.espresso.intent.matcher.ComponentNameMatchersTest.c ) ) ; assertFalse ( android.support.test.espresso.intent.matcher.ComponentNameMatchers.hasClassName ( org.hamcrest.Matchers.containsString ( "not there" ) ) . matches ( android.support.test.espresso.intent.matcher.ComponentNameMatchersTest.c ) ) ; }

Target:
public void hasClassNameDoesNotMatch ( ) { org.junit.Assert.assertFalse ( android.support.test.espresso.intent.matcher.ComponentNameMatchers.hasClassName ( "not_there" ) . matches ( android.support.test.espresso.intent.matcher.ComponentNameMatchersTest.c ) ) ; org.junit.Assert.assertFalse ( android.support.test.espresso.intent.matcher.ComponentNameMatchers.hasClassName ( org.hamcrest.Matchers.containsString ( "not there" ) ) . matches ( android.support.test.espresso.intent.matcher.ComponentNameMatchersTest.c ) ) ; }
Source:
public void traverse ( @ javax.annotation.Nonnull final com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.visit ( this ) ) { for ( com.android.jack.ir.ast.cfg.JBasicBlock block : getBlocksDepthFirst ( false ) ) { visitor.accept ( block ) ; } } visitor.endVisit ( this ) ; }

Target:
public void traverse ( @ javax.annotation.Nonnull final com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.visit ( this ) ) { for ( com.android.jack.ir.ast.cfg.JBasicBlock block : getAllBlocksUnordered ( ) ) { visitor.accept ( block ) ; } } visitor.endVisit ( this ) ; }
Source:
public void testImplFlush ( ) { tests.api.java.nio.charset.CharsetDecoderTest.decoder = new tests.api.java.nio.charset.CharsetDecoderTest.MockCharsetDecoder ( cs , 1 , 3 ) ; assertEquals ( java.nio.charset.CoderResult.UNDERFLOW , ( ( tests.api.java.nio.charset.CharsetDecoderTest.MockCharsetDecoder ) ( tests.api.java.nio.charset.CharsetDecoderTest.decoder ) ) . pubImplFlush ( null ) ) ; }

Target:
public void testImplFlush ( ) { org.apache.harmony.tests.java.nio.charset.CharsetDecoderTest.decoder = new org.apache.harmony.tests.java.nio.charset.CharsetDecoderTest.MockCharsetDecoder ( cs , 1 , 3 ) ; assertEquals ( java.nio.charset.CoderResult.UNDERFLOW , ( ( org.apache.harmony.tests.java.nio.charset.CharsetDecoderTest.MockCharsetDecoder ) ( org.apache.harmony.tests.java.nio.charset.CharsetDecoderTest.decoder ) ) . pubImplFlush ( null ) ) ; }
Source:
public void setVolume ( int volume ) { volume = ( ( volume * 512 ) / 100 ) - 128 ; }

Target:
public void setVolume ( int volume ) { com.android.bluetooth.hearingaid.HearingAidService service = getService ( ) ; if ( service == null ) { return ; } service.setVolume ( volume ) ; }
Source:
public long getLastModified ( ) { return file.getLastModified ( ) ; }

Target:
public java.nio.file.attribute.FileTime getLastModified ( ) throws com.android.sched.util.file.CannotGetModificationTimeException { return file.getLastModified ( ) ; }
Source:
public java.io.File getJavaOutputDir ( ) { return new java.io.File ( ( ( ( ( ( globalScope.getBuildDir ( ) ) + "/" ) + ( com.android.builder.model.AndroidProject.FD_INTERMEDIATES ) ) + "/classes/" ) + ( variantData.getVariantConfiguration ( ) . getDirName ( ) ) ) ) ; }

Target:
public java.io.File getJavaOutputDir ( ) { return new java.io.File ( globalScope.getIntermediatesDir ( ) , ( "/classes/" + ( variantData.getVariantConfiguration ( ) . getDirName ( ) ) ) ) ; }
Source:
public void testGetInputState ( ) throws java.lang.Exception { if ( ! ( android.media.tv.cts.Utils.hasTvInputFramework ( getContext ( ) ) ) ) { return ; } assertEquals ( mManager.getInputState ( mStubId ) , TvInputManager.INPUT_STATE_CONNECTED ) ; }

Target:
public void testGetInputState ( ) throws java.lang.Exception { if ( ! ( android.media.tv.cts.Utils.hasTvInputFramework ( getActivity ( ) ) ) ) { return ; } assertEquals ( mManager.getInputState ( mStubId ) , TvInputManager.INPUT_STATE_CONNECTED ) ; }
Source:
public byte [ ] toByteArray ( ) { return com.google.protobuf.nano.MessageNano.toByteArray ( mProto ) ; }

Target:
public synchronized byte [ ] toByteArray ( ) { try { return com.google.protobuf.nano.MessageNano.toByteArray ( mProto ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.tv.tuner.data.TunerChannel.TAG , "TunerChannel or its variables are modified in multiple thread without lock" , e ) ; return com.google.protobuf.nano.MessageNano.toByteArray ( mProto ) ; } }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( result ) ; dest.writeTypedObject ( this . subscription , flags ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( result ) ; dest.writeTypedObject ( this . mSubscription , flags ) ; }
Source:
public void addFailure ( java.lang.String message , java.lang.String stackTrace , java.lang.String deviceName , java.lang.String projectName , java.lang.String flavorName ) { classResults.failed ( this , deviceName , projectName , flavorName ) ; failures.add ( new org.gradle.api.internal.tasks.testing.junit.result.TestFailure ( message , stackTrace , null ) ) ; }

Target:
public void addFailure ( java.lang.String message , java.lang.String stackTrace , java.lang.String deviceName , java.lang.String projectName , java.lang.String flavorName ) { classResults.failed ( this , deviceName , projectName , flavorName ) ; failures.add ( new com.android.build.gradle.internal.test.report.TestResult.TestFailure ( message , stackTrace , null ) ) ; }
Source:
public android.net.NetworkStatsHistory getHistoryForNetwork ( android.net.NetworkTemplate template , int fields ) { return internalGetHistoryForNetwork ( template , fields ) ; }

Target:
public android.net.NetworkStats getSummaryForNetwork ( android.net.NetworkTemplate template , long start , long end ) { return internalGetSummaryForNetwork ( template , start , end ) ; }
Source:
public void testExistingEUserA ( ) { int userSetting = com.android.internal.content.PackageHelper.APP_INSTALL_AUTO ; int iFlags = PackageManager.INSTALL_EXTERNAL ; setExistingXUserX ( userSetting , iFlags , PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL ) ; }

Target:
public void testExistingEUserA ( ) { if ( android.os.Environment.isExternalStorageEmulated ( ) ) { return ; } int userSetting = com.android.internal.content.PackageHelper.APP_INSTALL_AUTO ; int iFlags = android.content.pm.PackageManager.INSTALL_EXTERNAL ; setExistingXUserX ( userSetting , iFlags , PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL ) ; }