auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
com.android.sched.util.location.Location getVFileLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return vfs.getVFileLocation ( parent , path ) ; }

Target:
com.android.sched.util.location.Location getVFileLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { return vfs.getVFileLocation ( parent.getWrappedDir ( ) , name ) ; }
Source:
private java.lang.String getStyleName ( java.lang.String xmlName ) { java.lang.String styleName = com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.capitalize ( xmlName ) ; final java.lang.String MENU_STYLE_BASE_NAME = "Menu" ; if ( ! ( styleName.equals ( MENU_STYLE_BASE_NAME ) ) ) { styleName = MENU_STYLE_BASE_NAME + styleName ; } return styleName ; }

Target:
private java.lang.String getStyleName ( java.lang.String xmlName ) { java.lang.String styleName = com.android.ide.eclipse.adt.AdtUtils.capitalize ( xmlName ) ; final java.lang.String MENU_STYLE_BASE_NAME = "Menu" ; if ( ! ( styleName.equals ( MENU_STYLE_BASE_NAME ) ) ) { styleName = MENU_STYLE_BASE_NAME + styleName ; } return styleName ; }
Source:
public void goForward ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { goForward ( ) ; } } ) ; return ; } mAwContents.goForward ( ) ; }

Target:
public void run ( ) { saveWebArchive ( basename , autoname , callback ) ; }
Source:
protected com.android.tools.lint.checks.TestLintClient createClient ( ) { return new com.android.tools.lint.checks.TestLintClient ( ) { @ com.android.annotations.Nullable @ java.lang.Override public java.io.File getSdkHome ( ) { return getMockSupportLibraryInstallation ( ) ; } } ; }

Target:
public boolean isGradleProject ( ) { return true ; }
Source:
public void stop ( org.osgi.framework.BundleContext context ) throws java.lang.Exception { super . stop ( context ) ; stopEditors ( ) ; mRed.dispose ( ) ; synchronized ( com.android.ide.eclipse.adt.AdtPlugin.class ) { com.android.ide.eclipse.adt.AdtPlugin.sPlugin = null ; } }

Target:
public void stop ( org.osgi.framework.BundleContext context ) throws java.lang.Exception { super . stop ( context ) ; stopEditors ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.IncludeFinder.stop ( ) ; mRed.dispose ( ) ; synchronized ( com.android.ide.eclipse.adt.AdtPlugin.class ) { com.android.ide.eclipse.adt.AdtPlugin.sPlugin = null ; } }
Source:
public int transact ( android.os.Bundle ssInfo ) throws android.os.RemoteException { return - 1 ; }

Target:
public int queryCallWaiting ( ) { return - 1 ; }
Source:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { return new org.objectweb.asm.MethodVisitor ( org.objectweb.asm.Opcodes.ASM4 ) { } ; }

Target:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { return new org.objectweb.asm.MethodVisitor ( org.objectweb.asm.Opcodes.ASM5 ) { } ; }
Source:
public void testSameTimestamp ( ) { android.hardware.cts.helpers.SensorStats stats = new android.hardware.cts.helpers.SensorStats ( ) ; android.hardware.cts.helpers.sensorverification.EventOrderingVerification verification = getVerification ( 0 , 0 , 0 , 0 , 0 ) ; verification.verify ( stats ) ; verifyStats ( stats , true , 0 ) ; }

Target:
public void testSameTimestamp ( ) { android.hardware.cts.helpers.SensorStats stats = new android.hardware.cts.helpers.SensorStats ( ) ; android.hardware.cts.helpers.sensorverification.EventOrderingVerification verification = android.hardware.cts.helpers.sensorverification.EventOrderingVerificationTest.getVerification ( 0 , 0 , 0 , 0 , 0 ) ; verification.verify ( stats ) ; verifyStats ( stats , true , 0 ) ; }
Source:
private static native void native_drawPosText ( int nativeCanvas , char [ ] text , int index , int count , float [ ] pos , int paint ) ;

Target:
private static native void native_drawPosText ( long nativeCanvas , char [ ] text , int index , int count , float [ ] pos , long nativePaint ) ;
Source:
public T get ( ) { return mDefaultValue ; }

Target:
public T get ( ) { return ( com.android.tv.experiments.ExperimentFlag.sAllowOverrides ) && ( mOverridden ) ? mOverrideValue : mDefaultValue ; }
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "local.properties:11: Error: Windows file separators (\\) must be escaped (\\\\); use C:\\\\my\\\\path\\\\to\\\\sdk [PropertyEscape]\n" + "windows.dir=C:\\my\\path\\to\\sdk\n" ) + " ~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "local.properties=>local.properties" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( "local.properties:11: Error: Windows file separators (\\) and drive letter separators (\':\') must be escaped (\\\\) in property files; use C\\:\\\\my\\\\path\\\\to\\\\sdk [PropertyEscape]\n" + "windows.dir=C:\\my\\path\\to\\sdk\n" ) + " ~~~~~~~~~~~~~~\n" ) + "local.properties:14: Error: Windows file separators (\\) and drive letter separators (\':\') must be escaped (\\\\) in property files; use C\\:\\\\Documents and Settings\\\\UserName\\\\Local Settings\\\\Application Data\\\\Android\\\\android-studio\\\\sdk [PropertyEscape]\n" ) + "ok.sdk.dir=C:\\\\Documents and Settings\\\\UserName\\\\Local Settings\\\\Application Data\\\\Android\\\\android-studio\\\\sdk\n" ) + " ~\n" ) + "2 errors, 0 warnings\n" ) ) , lintProject ( "local.properties=>local.properties" ) ) ; }
Source:
public boolean isTrue ( ) throws java.lang.Exception { return ( device.hasObject ( android.support.test.uiautomator.By.res ( com.android.devtools.systemimage.uitest.smoke.VpnTest.VPN_LOCK_ICON_RES ) ) ) || ( device.hasObject ( android.support.test.uiautomator.By.text ( com.android.devtools.systemimage.uitest.smoke.VpnTest.VPN_ACTIVATED_TEXT ) ) ) ; }

Target:
public boolean isTrue ( ) throws java.lang.Exception { return ( device.hasObject ( android.support.test.uiautomator.By.res ( Res.VPN_LOCK_ICON_RES ) ) ) || ( device.hasObject ( android.support.test.uiautomator.By.text ( com.android.devtools.systemimage.uitest.smoke.VpnTest.VPN_ACTIVATED_TEXT ) ) ) ; }
Source:
public static < TReference extends java.lang.Number > double getFrequencyInHz ( TReference samplingRateInUs ) { return 1000000000 / ( samplingRateInUs.doubleValue ( ) ) ; }

Target:
public static < TValue extends java.lang.Number > double getFrequency ( TValue period , java.util.concurrent.TimeUnit unit ) { return 1000000000 / ( ( java.util.concurrent.TimeUnit.NANOSECONDS.convert ( 1 , unit ) ) * ( period.doubleValue ( ) ) ) ; }
Source:
void sendEmergencyCallbackModeChange ( ) { android.content.Intent intent = new android.content.Intent ( com.android.internal.telephony.TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED ) ; intent.putExtra ( PhoneConstants.PHONE_IN_ECM_STATE , mIsPhoneInEcmState ) ; android.app.ActivityManagerNative.broadcastStickyIntent ( intent , null ) ; if ( com.android.internal.telephony.cdma.CDMAPhone.DBG ) android.util.Log.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "sendEmergencyCallbackModeChange" ) ; }

Target:
void sendEmergencyCallbackModeChange ( ) { android.content.Intent intent = new android.content.Intent ( com.android.internal.telephony.TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED ) ; intent.putExtra ( PhoneConstants.PHONE_IN_ECM_STATE , mIsPhoneInEcmState ) ; android.app.ActivityManagerNative.broadcastStickyIntent ( intent , null , UserHandle.USER_ALL ) ; if ( com.android.internal.telephony.cdma.CDMAPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "sendEmergencyCallbackModeChange" ) ; }
Source:
public static boolean runIdleOptimizationsNow ( com.android.server.pm.PackageManagerService pm , android.content.Context context ) { com.android.server.pm.BackgroundDexOptService bdos = new com.android.server.pm.BackgroundDexOptService ( ) ; return bdos.idleOptimization ( pm , pm.getOptimizablePackages ( ) , context ) ; }

Target:
public static boolean runIdleOptimizationsNow ( com.android.server.pm.PackageManagerService pm , android.content.Context context ) { com.android.server.pm.BackgroundDexOptService bdos = new com.android.server.pm.BackgroundDexOptService ( ) ; int result = bdos.idleOptimization ( pm , pm.getOptimizablePackages ( ) , context ) ; return result == ( com.android.server.pm.BackgroundDexOptService.OPTIMIZE_PROCESSED ) ; }
Source:
public void onSetProtocol ( byte protocol ) { android.util.Log.d ( android.bluetooth.BluetoothHidDeviceCallback.TAG , ( "onSetProtocol: protocol=" + protocol ) ) ; }

Target:
public void onVirtualCableUnplug ( android.bluetooth.BluetoothDevice device ) { android.util.Log.d ( android.bluetooth.BluetoothHidDeviceCallback.TAG , ( "onVirtualCableUnplug: device=" + device ) ) ; }
Source:
public java.lang.String installId ( ) { return ( com.android.sdklib.internal.repository.packages.BuildToolPackage.INSTALL_ID_BASE ) + ( getRevision ( ) . toString ( ) . replace ( ' ' , '_' ) ) ; }

Target:
public java.lang.String installId ( ) { return getPkgDesc ( ) . getInstallId ( ) ; }
Source:
public void testPerformanceSummaryNormal ( ) throws java.io.FileNotFoundException , java.io.IOException { setUp ( false ) ; java.lang.String output = com.android.vts.servlet.VtsPerformanceJobServlet.getPerformanceSummary ( "test" , dailySummaries , legendLabels ) ; com.android.vts.servlet.VtsPerformanceJobServletTest.compareToBaseline ( output , "performanceSummary1.html" ) ; }

Target:
public void testPerformanceSummaryNormal ( ) throws java.io.FileNotFoundException , java.io.IOException { setUp ( false ) ; java.lang.String output = com.android.vts.job.VtsPerformanceJobServlet.getPerformanceSummary ( "test" , dailySummaries , legendLabels ) ; com.android.vts.job.VtsPerformanceJobServletTest.compareToBaseline ( output , "performanceSummary1.html" ) ; }
Source:
public void onUserLeaveHint ( ) { if ( isInSearch ( ) ) { closeSearchOnPause = ! ( requestingPermission ) ; toolbar.hideKeyboard ( ) ; } }

Target:
public void onUserLeaveHint ( ) { if ( isInSearch ( ) ) { closeSearchOnPause = ! ( requestingPermission ) ; closeKeyboard ( ) ; } }
Source:
public void removeImsFeature ( int slotId , int feature ) throws android.os.RemoteException { synchronized ( mFeatures ) { enforceCallingOrSelfPermission ( android.Manifest.permission.MODIFY_PHONE_STATE , "removeImsFeature" ) ; onRemoveImsFeatureInternal ( slotId , feature ) ; } }

Target:
public void removeImsFeature ( int slotId , int feature , com.android.ims.internal.IImsFeatureStatusCallback c ) throws android.os.RemoteException { synchronized ( mFeatures ) { enforceCallingOrSelfPermission ( android.Manifest.permission.MODIFY_PHONE_STATE , "removeImsFeature" ) ; onRemoveImsFeatureInternal ( slotId , feature , c ) ; } }
Source:
static org.chromium.mojo.system.Watcher getWatcherForHandle ( org.chromium.mojo.system.Handle handle ) { if ( ( handle.getCore ( ) ) != null ) { return handle.getCore ( ) . getWatcher ( ) ; } else { return null ; } }

Target:
static org.chromium.mojo.system.AsyncWaiter getDefaultAsyncWaiterForHandle ( org.chromium.mojo.system.Handle handle ) { if ( ( handle.getCore ( ) ) != null ) { return handle.getCore ( ) . getDefaultAsyncWaiter ( ) ; } else { return null ; } }
Source:
public void getOutgoingCallerIdDisplay ( android.os.Message onComplete ) { android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "getOutgoingCallerIdDisplay: not possible in CDMA" ) ; }

Target:
public void getOutgoingCallerIdDisplay ( android.os.Message onComplete ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "getOutgoingCallerIdDisplay: not possible in CDMA" ) ; }
Source:
private com.android.documentsui.model.RootInfo getRootLocked ( java.lang.String authority , java.lang.String rootId ) { for ( com.android.documentsui.model.RootInfo root : mRoots.get ( authority ) ) { if ( com.android.internal.util.Objects.equal ( root.rootId , rootId ) ) { return root ; } } return null ; }

Target:
private com.android.documentsui.model.RootInfo getRootLocked ( java.lang.String authority , java.lang.String rootId ) { for ( com.android.documentsui.model.RootInfo root : mRoots.get ( authority ) ) { if ( java.util.Objects.equals ( root.rootId , rootId ) ) { return root ; } } return null ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; u = new com.android.sdkuilib.internal.repository.MockUpdaterData ( ) ; m = new com.android.sdkuilib.internal.repository.core.PackagesDiffLogic ( u ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; u = new com.android.sdkuilib.internal.repository.MockSwtUpdaterData ( ) ; m = new com.android.sdkuilib.internal.repository.core.PackagesDiffLogic ( u ) ; }
Source:
native void rsnAllocationElementData1D ( long con , long id , int xoff , int mip , int compIdx , byte [ ] d , int sizeBytes ) ;

Target:
native void rsnAllocationElementData ( long con , long id , int xoff , int yoff , int zoff , int mip , int compIdx , byte [ ] d , int sizeBytes ) ;
Source:
public synchronized void appendMessage ( final com.android.ddmuilib.logcat.LogCatMessage m ) { if ( ( mQ.remainingCapacity ( ) ) == 0 ) { mQ.poll ( ) ; } mQ.offer ( m ) ; }

Target:
public synchronized void appendMessages ( final java.util.List < com.android.ddmuilib.logcat.LogCatMessage > messages ) { ensureSpace ( messages.size ( ) ) ; for ( com.android.ddmuilib.logcat.LogCatMessage m : messages ) { mQ.offer ( m ) ; } }
Source:
private void initRelease ( ) { mDebuggable = false ; mDebugJniBuild = false ; mDebugSigned = false ; }

Target:
private void initRelease ( ) { mDebuggable = false ; mDebugJniBuild = false ; mDebugSigned = false ; mBuildConfigDebug = false ; }
Source:
public java.util.Collection < java.lang.String > getApplicableElements ( ) { return java.util.Collections.singletonList ( com.android.SdkConstants.TAG_APPLICATION ) ; }

Target:
public java.util.Collection < java.lang.String > getApplicableElements ( ) { return java.util.Arrays.asList ( com.android.SdkConstants.TAG_APPLICATION , com.android.SdkConstants.TAG_ACTIVITY , com.android.SdkConstants.TAG_SERVICE , com.android.SdkConstants.TAG_PROVIDER , com.android.SdkConstants.TAG_RECEIVER , com.android.SdkConstants.TAG_ITEM ) ; }
Source:
public static void startMethodTracing ( java.lang.String traceFileName , int bufferSize , int flags ) { if ( traceFileName == null ) { throw new java.lang.NullPointerException ( ) ; } dalvik.system.VMDebug.startMethodTracingNative ( traceFileName , null , bufferSize , flags ) ; }

Target:
public static void startMethodTracing ( java.lang.String traceFileName , int bufferSize , int flags ) { if ( traceFileName == null ) { throw new java.lang.NullPointerException ( "traceFileName == null" ) ; } dalvik.system.VMDebug.startMethodTracingNative ( traceFileName , null , bufferSize , flags ) ; }
Source:
public void testOriginalRefocus ( ) { refocus ( RenderScriptTask.script.f32 , java.lang.Double.POSITIVE_INFINITY ) ; }

Target:
public void testOriginalRefocus ( ) { refocus ( RenderScriptTask.script.f32 , 95 ) ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setBuildId ( java.lang.String value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 16 ; buildId_ = value ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setBranchBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 8 ; branch_ = value ; onChanged ( ) ; return this ; }
Source:
public void clearMatches ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { clearMatches ( ) ; } } ) ; return ; } mAwContents.clearMatches ( ) ; }

Target:
public void notifyFindDialogDismissed ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { notifyFindDialogDismissed ( ) ; } } ) ; return ; } clearMatches ( ) ; }
Source:
protected javax.swing.JComponent createCenterPanel ( ) { return myRootPanel ; }

Target:
protected javax.swing.JComponent createCenterPanel ( ) { populateTemplates ( ) ; return myRootPanel ; }
Source:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return finalVFS.getVDirLocation ( parent , path ) ; }

Target:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return workVFS.getVDirLocation ( parent , path ) ; }
Source:
boolean hasClient ( int pid ) { synchronized ( mClients ) { for ( com.android.ddmlib.Client client : mClients ) { if ( ( client.getClientData ( ) . getPid ( ) ) == pid ) { return true ; } } } return false ; }

Target:
private void setClientInfo ( int pid , java.lang.String pkgName ) { if ( pkgName == null ) { pkgName = com.android.ddmlib.Device.UNKNOWN_PACKAGE ; } mClientInfo.put ( java.lang.Integer.valueOf ( pid ) , pkgName ) ; }
Source:
public void visitDeprecatedAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.DeprecatedAttribute deprecatedAttribute ) { deprecatedAttribute.accept ( clazz , attributeVisitor ) ; }

Target:
public void visitLineNumberTableAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Method method , proguard.classfile.attribute.visitor.CodeAttribute codeAttribute , proguard.classfile.attribute.visitor.LineNumberTableAttribute lineNumberTableAttribute ) { if ( ( lineNumberTableAttribute.u2lineNumberTableLength ) > 0 ) { attributeVisitor.visitLineNumberTableAttribute ( clazz , method , codeAttribute , lineNumberTableAttribute ) ; } }
Source:
public boolean isPassed ( ) { return ( mDone ) && ( ( countResults ( TestStatus.FAIL ) ) == 0 ) ; }

Target:
public boolean isDone ( ) { return ( ( mDone ) && ( ! ( mInProgress ) ) ) && ( ( mActualTestRuns ) >= ( mExpectedTestRuns ) ) ; }
Source:
public void run ( ) { if ( ( mCallback ) != null ) { mCallback.onConnectionStateChange ( this , status , profileState ) ; } }

Target:
public void run ( ) { final android.bluetooth.BluetoothGattCallback callback = mCallback ; if ( callback != null ) { callback.onConnectionStateChange ( this , status , profileState ) ; } }
Source:
public com.android.manifmerger.XmlDocument reparse ( ) { return new com.android.manifmerger.XmlDocument ( mPositionXmlParser , mSourceLocation , mRootElement ) ; }

Target:
public com.android.manifmerger.XmlDocument reparse ( ) { return new com.android.manifmerger.XmlDocument ( mPositionXmlParser , mSourceLocation , mSelectors , mRootElement ) ; }
Source:
private void selfSeedIfNotSeeded ( ) { if ( mSeeded ) { return ; } org.conscrypt.OpenSSLRandom.seedOpenSSLPRNGFromLinuxRNG ( ) ; mSeeded = true ; }

Target:
private void selfSeedIfNotSeeded ( ) { if ( NativeCrypto.isBoringSSL ) { return ; } if ( mSeeded ) { return ; } org.conscrypt.OpenSSLRandom.seedOpenSSLPRNGFromLinuxRNG ( ) ; mSeeded = true ; }
Source:
public TestCaseBuilder addLayout ( int layoutId , @ android.support.annotation.Nullable android.uirendering.cts.testinfrastructure.ViewInitializer viewInitializer , boolean useHardware , java.util.concurrent.CountDownLatch readyFence ) { }

Target:
public android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCaseBuilder addLayout ( int layoutId , @ android.support.annotation.Nullable android.uirendering.cts.testinfrastructure.ViewInitializer viewInitializer , boolean useHardware , java.util.concurrent.CountDownLatch readyFence ) { android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCase test = new android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCase ( layoutId , viewInitializer , useHardware ) ; test.readyFence = readyFence ; mTestCases.add ( test ) ; return this ; }
Source:
public void setError ( java.lang.String msg , android.content.pm.PackageParser.PackageParserException e ) { returnCode = e.error ; returnMsg = android.util.ExceptionUtils.getCompleteMessage ( msg , e ) ; android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , msg , e ) ; }

Target:
public void setError ( int code , java.lang.String msg ) { setReturnCode ( code ) ; setReturnMessage ( msg ) ; android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , msg ) ; }
Source:
public android.print.PrintDocumentAdapter createPrintDocumentAdapter ( java.lang.String documentName ) { checkThread ( ) ; if ( DebugFlags.TRACE_API ) android.util.Log.d ( android.webkit.WebView.LOGTAG , "createPrintDocumentAdapter" ) ; return mProvider.createPrintDocumentAdapter ( documentName ) ; }

Target:
public android.print.PrintDocumentAdapter createPrintDocumentAdapter ( java.lang.String documentName ) { checkThread ( ) ; if ( android.webkit.WebView.TRACE ) android.util.Log.d ( android.webkit.WebView.LOGTAG , "createPrintDocumentAdapter" ) ; return mProvider.createPrintDocumentAdapter ( documentName ) ; }
Source:
public void testWithRowDouble_columnIndexAndValueMatcher ( ) { assertTrue ( android.support.test.espresso.matcher.CursorMatchers.withRowDouble ( 5 , android.support.test.espresso.matcher.CursorMatchersTest.DOUBLE_VALUE_MATCHER ) . matches ( cursor ) ) ; }

Target:
public void withRowDouble_columnIndexAndValueMatcher ( ) { org.junit.Assert.assertTrue ( android.support.test.espresso.matcher.CursorMatchers.withRowDouble ( 5 , android.support.test.espresso.matcher.CursorMatchersTest.DOUBLE_VALUE_MATCHER ) . matches ( cursor ) ) ; }
Source:
public void test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface_IPv6 ( ) throws java.lang.Exception { test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface ( org.apache.harmony.tests.java.net.MulticastSocketTest.GOOD_IPv6 , org.apache.harmony.tests.java.net.MulticastSocketTest.BAD_IPv6 ) ; }

Target:
public void test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins_IPv6 ( ) throws java.lang.Exception { test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins ( ipv6NetworkInterface , org.apache.harmony.tests.java.net.MulticastSocketTest.GOOD_IPv6 ) ; }
Source:
public static boolean isInCall ( android.content.Context context ) { return com.android.dialer.telecom.TelecomUtil.instance.isInCall ( context ) ; }

Target:
public static boolean isInManagedCall ( android.content.Context context ) { return com.android.dialer.telecom.TelecomUtil.instance.isInCall ( context ) ; }
Source:
public void timeRoundD ( int reps ) { for ( int rep = 0 ; rep < reps ; ++ rep ) { java.lang.Math.round ( d ) ; } }

Target:
public long timeRoundD ( int reps ) { long result = l ; for ( int rep = 0 ; rep < reps ; ++ rep ) { result = java.lang.Math.round ( d ) ; } return result ; }
Source:
public void callSessionHandover ( com.android.ims.internal.IImsCallSession i , int srcAccessTech , int targetAccessTech , android.telephony.ims.ImsReasonInfo reasonInfo ) throws android.os.RemoteException { mNewListener.callSessionHandover ( srcAccessTech , targetAccessTech , reasonInfo ) ; }

Target:
public void callSessionHandoverFailed ( com.android.ims.internal.IImsCallSession i , int srcAccessTech , int targetAccessTech , android.telephony.ims.ImsReasonInfo reasonInfo ) throws android.os.RemoteException { mNewListener.callSessionHandoverFailed ( srcAccessTech , targetAccessTech , reasonInfo ) ; }
Source:
public static int EqualFalseRhs ( boolean arg ) { return arg != false ? 3 : 5 ; }

Target:
public static java.lang.String floatToDoubleToIntPrint ( float value ) { double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }
Source:
public java.io.PrintWriter getErrorLogPrintWriter ( ) { return new java.io.PrintWriter ( new android.icu.dev.test.TestLogWriter ( this , TestLog.ERR ) ) ; }

Target:
protected static void msg ( java.lang.String message , int level , boolean incCount , boolean newln ) { if ( ( level == ( TestLog.WARN ) ) || ( level == ( TestLog.ERR ) ) ) { org.junit.Assert.fail ( message ) ; } }
Source:
public void err ( @ com.android.annotations.Nullable java.lang.String line ) { if ( line != null ) { mLogger.error ( null , line ) ; mFoundError = true ; } }

Target:
public void err ( @ com.android.annotations.Nullable java.lang.String line ) { if ( line != null ) { mLogger.error ( null , line ) ; mErrors.add ( line ) ; mFoundError = true ; } }
Source:
public synchronized java.lang.String getDigest ( ) { if ( ( digest ) == null ) { printDigest ( new com.google.common.io.NullOutputStream ( ) ) ; assert ( digest ) != null ; } return digest ; }

Target:
public synchronized java.lang.String getDigest ( ) { if ( ( digest ) == null ) { printDigest ( com.google.common.io.ByteStreams.nullOutputStream ( ) ) ; assert ( digest ) != null ; } return digest ; }
Source:
public void onItemSelected ( android.widget.AdapterView < ? > parent , android.view.View view , int pos , long id ) { changeTest ( com.android.rs.image2.ImageProcessingActivity2.TestName.values ( ) [ pos ] ) ; }

Target:
com.android.rs.image2.TestBase changeTest ( com.android.rs.image2.IPTestList.TestName t , boolean setupUI ) { com.android.rs.image2.TestBase tb = com.android.rs.image2.IPTestList.newTest ( t ) ; tb.createBaseTest ( this ) ; if ( setupUI ) { setupBars ( tb ) ; } return tb ; }
Source:
public native int getInt ( long address ) ;

Target:
public native int getInt$ ( long address ) ;
Source:
public static android.net.MacAddress.MacAddressType macAddressType ( byte [ ] addr ) { if ( ! ( android.net.MacAddress.isMacAddress ( addr ) ) ) { return null ; } return new android.net.MacAddress ( addr ) . addressType ( ) ; }

Target:
public static int macAddressType ( byte [ ] addr ) { if ( ! ( android.net.MacAddress.isMacAddress ( addr ) ) ) { return android.net.MacAddress.TYPE_UNKNOWN ; } return android.net.MacAddress.fromBytes ( addr ) . addressType ( ) ; }
Source:
private static native int nativeForkAndSpecialize ( int uid , int gid , int [ ] gids , int debugFlags , int [ ] [ ] rlimits , int mountExternal , java.lang.String seInfo , java.lang.String niceName , int [ ] fdsToClose ) ;

Target:
private static native int nativeForkAndSpecialize ( int uid , int gid , int [ ] gids , int debugFlags , int [ ] [ ] rlimits , int mountExternal , java.lang.String seInfo , java.lang.String niceName , int [ ] fdsToClose , java.lang.String instructionSet ) ;
Source:
public com.google.common.collect.UnmodifiableIterator < E > descendingIterator ( ) { return descendingSet ( ) . iterator ( ) ; }

Target:
com.google.common.collect.ImmutableSortedSet < E > createDescendingSet ( ) { return new com.google.common.collect.DescendingImmutableSortedSet < E > ( this ) ; }
Source:
public static com.android.sdklib.resources.KeyboardState getEnum ( java.lang.String value ) { for ( com.android.sdklib.resources.KeyboardState state : com.android.sdklib.resources.KeyboardState.values ( ) ) { if ( state.mValue.equals ( value ) ) { return state ; } } return null ; }

Target:
public static com.android.resources.KeyboardState getEnum ( java.lang.String value ) { for ( com.android.resources.KeyboardState state : com.android.resources.KeyboardState.values ( ) ) { if ( state.mValue.equals ( value ) ) { return state ; } } return null ; }
Source:
static < E > E cast ( java.lang.Object item ) { return ( ( E ) ( item ) ) ; }

Target:
final E itemAt ( int i ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) E x = ( ( E ) ( items [ i ] ) ) ; return x ; }
Source:
public void finishLinks ( ) { }

Target:
public void processNewLines ( java.lang.String [ ] lines ) { for ( java.lang.String line : lines ) { java.util.regex.Matcher m = com.android.ddmlib.FileListingService.LS_LD_PATTERN.matcher ( line ) ; if ( m.matches ( ) ) { ( nLines [ 0 ] ) ++ ; } } }
Source:
public java.util.List < ? extends com.android.internal.telephony.MmiCode > getPendingMmiCodes ( com.android.internal.telephony.Phone phone ) { android.util.Log.e ( com.android.internal.telephony.CallManager.LOG_TAG , "getPendingMmiCodes not implemented" ) ; return null ; }

Target:
public java.util.List < ? extends com.android.internal.telephony.MmiCode > getPendingMmiCodes ( com.android.internal.telephony.Phone phone ) { android.telephony.Rlog.e ( com.android.internal.telephony.CallManager.LOG_TAG , "getPendingMmiCodes not implemented" ) ; return null ; }
Source:
public static java.lang.String defaultLanguageForMcc ( int mcc ) { com.android.internal.telephony.MccTable.MccEntry entry ; entry = com.android.internal.telephony.MccTable.entryForMcc ( mcc ) ; if ( entry == null ) { return null ; } else { return entry.language ; } }

Target:
public static java.lang.String defaultLanguageForMcc ( int mcc ) { com.android.internal.telephony.MccTable.MccEntry entry ; entry = com.android.internal.telephony.MccTable.entryForMcc ( mcc ) ; if ( entry == null ) { return null ; } else { return entry.mLanguage ; } }
Source:
public static synchronized android.app.Activity getRunningActivity ( ) { return com.google.android.droiddriver.util.ActivityUtils.runningActivitySupplier.get ( ) ; }

Target:
public static synchronized android.app.Activity getRunningActivity ( ) { if ( ( com.google.android.droiddriver.util.ActivityUtils.runningActivitySupplier ) == null ) { throw new com.google.android.droiddriver.exceptions.UnrecoverableException ( ( "If you don't use DroidDriver TestRunner, you need to call" + " ActivityUtils.setRunningActivitySupplier appropriately" ) ) ; } return com.google.android.droiddriver.util.ActivityUtils.runningActivitySupplier.get ( ) ; }
Source:
public java.lang.String getSignature ( ) { return mBinding.toString ( ) ; }

Target:
public java.lang.String getSignature ( ) { return new java.lang.String ( mBinding.getAnnotationType ( ) . readableName ( ) ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { menuAction.getCallback ( ) . action ( menuAction , menuAction.getId ( ) , false ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { menuAction.getCallback ( ) . action ( menuAction , menuAction.getId ( ) , false ) ; updateSelection ( ) ; }
Source:
public void streamStateUpdated ( int state , int reason ) throws android.os.RemoteException { mHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { mAppCallback.onStreamStateUpdated ( state , reason ) ; } } ) ; }

Target:
public void onStreamStateUpdated ( int state , int reason ) throws android.os.RemoteException { if ( mIsStopped ) { return ; } mHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { mAppCallback.onStreamStateUpdated ( state , reason ) ; } } ) ; }
Source:
protected void engineSetParameter ( java.security.spec.AlgorithmParameterSpec arg0 ) throws java.security.InvalidAlgorithmParameterException { spiImpl.engineSetParameter ( arg0 ) ; }

Target:
protected void engineSetParameter ( java.security.spec.AlgorithmParameterSpec arg0 ) throws java.security.InvalidAlgorithmParameterException { getSpi ( ) . engineSetParameter ( arg0 ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { try { server.startHandshake ( ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } return null ; }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { server.setEnableSessionCreation ( false ) ; try { server.startHandshake ( ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } return null ; }
Source:
public java.lang.String getNetworkOperatorName ( ) { return getNetworkOperatorName ( android.telephony.TelephonyManager.getDefaultSubscription ( ) ) ; }

Target:
private int getPhoneTypeFromNetworkType ( ) { return getPhoneTypeFromNetworkType ( getPhoneId ( ) ) ; }
Source:
protected int engineGetOutputSize ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { return inputLen + ( modeBlockSize ) ; } }

Target:
protected int engineGetOutputSize ( int inputLen ) { return getOutputSize ( inputLen ) ; }
Source:
public static long Shr0 ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg > > 0 ; }

Target:
public static long $noinline$Shr0 ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg > > 0 ; }
Source:
public java.lang.invoke.MethodHandle asVarargsCollector ( java.lang.Class < ? > arrayType ) { arrayType.getClass ( ) ; boolean lastMatch = asCollectorChecks ( arrayType , 0 ) ; if ( ( isVarargsCollector ( ) ) && lastMatch ) return this ; throw new java.lang.UnsupportedOperationException ( "asVarargsCollector(Class<?>)" ) ; }

Target:
public java.lang.invoke.MethodHandle asVarargsCollector ( java.lang.Class < ? > arrayType ) { arrayType.getClass ( ) ; boolean lastMatch = asCollectorChecks ( arrayType , 0 ) ; if ( ( isVarargsCollector ( ) ) && lastMatch ) return this ; return new java.lang.invoke.Transformers.VarargsCollector ( this ) ; }
Source:
public void testVFE12 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.iput.d.T_iput_15" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testVFE12 ( ) { try { new dot.junit.opcodes.iput.d.T_iput_15 ( ) . run ( ) ; fail ( "expected IllegalAccessError" ) ; } catch ( java.lang.IllegalAccessError t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }
Source:
public void test_de ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex de = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.GERMAN ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( de , "ßind" , "S" ) ; }

Target:
public void test_de ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex de = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.GERMAN ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( de , "ßind" , "S" ) ; }
Source:
public void onReceive ( android.content.Context c , android.content.Intent intent ) { boolean isAvailable = mMgr.isAvailable ( ) ; if ( ! isAvailable ) { wifiNanDestroyAll ( ) ; } mEventFacade.postEvent ( ( isAvailable ? "WifiNanAvailable" : "WifiNanNotAvailable" ) , new android.os.Bundle ( ) ) ; }

Target:
public void onReceive ( android.content.Context c , android.content.Intent intent ) { boolean isAvailable = mMgr.isAvailable ( ) ; if ( ! isAvailable ) { wifiAwareDestroyAll ( ) ; } mEventFacade.postEvent ( ( isAvailable ? "WifiAwareAvailable" : "WifiAwareNotAvailable" ) , new android.os.Bundle ( ) ) ; }
Source:
public void fatalError ( org.xml.sax.SAXParseException e ) { log.printf ( "Fatal error when parsing %s: %s" , xmlFile.getName ( ) , e.toString ( ) ) ; }

Target:
public void warning ( org.xml.sax.SAXParseException e ) { log.error ( Severity.WARNING , new com.android.manifmerger.IMergerLog.FileAndLine ( xmlFile.getName ( ) , 0 ) , "Warning when parsing: %1$s" , e.toString ( ) ) ; }
Source:
public int getStrength ( ) { int value = icuColl.getStrength ( ) ; return value == java.text.com.ibm.icu.text.Collator ? java.text.Collator.IDENTICAL : value ; }

Target:
private int strength_Java_ICU ( int value ) { switch ( value ) { case java.text.Collator.PRIMARY : return libcore.icu.RuleBasedCollatorICU.VALUE_PRIMARY ; case java.text.Collator.SECONDARY : return libcore.icu.RuleBasedCollatorICU.VALUE_SECONDARY ; case java.text.Collator.TERTIARY : return libcore.icu.RuleBasedCollatorICU.VALUE_TERTIARY ; case java.text.Collator.IDENTICAL : return libcore.icu.RuleBasedCollatorICU.VALUE_IDENTICAL ; } throw new java.lang.IllegalArgumentException ( ( "Bad strength: " + value ) ) ; }
Source:
public void broadcastP2pDeviceFound ( java.lang.String iface , android.net.wifi.p2p.WifiP2pDevice device ) { if ( device != null ) { sendMessage ( iface , com.android.server.wifi.WifiMonitor.P2P_DEVICE_FOUND_EVENT , device ) ; } }

Target:
public void broadcastTargetBssidEvent ( java.lang.String iface , java.lang.String bssid ) { sendMessage ( iface , WifiStateMachine.CMD_TARGET_BSSID , 0 , 0 , bssid ) ; }
Source:
public void test_truncatedTo_null ( ) { TEST_12_30_40_987654321.truncatedTo ( null ) ; }

Target:
public void test_plus_TemporalAmount_null ( ) { tck.java.time.TCKLocalTime.TEST_12_30_40_987654321.plus ( ( ( java.time.temporal.TemporalAmount ) ( null ) ) ) ; }
Source:
private boolean checkBundleDataFilesExist ( java.io.File unpackedContentDir ) throws java.io.IOException { android.util.Slog.i ( logTag , "Verifying bundle contents" ) ; return libcore.tzdata.update2.FileUtils.filesExist ( unpackedContentDir , TimeZoneBundle.TZDATA_FILE_NAME , TimeZoneBundle.ICU_DATA_FILE_NAME ) ; }

Target:
private boolean checkDistroDataFilesExist ( java.io.File unpackedContentDir ) throws java.io.IOException { android.util.Slog.i ( logTag , "Verifying distro contents" ) ; return libcore.tzdata.update2.FileUtils.filesExist ( unpackedContentDir , TimeZoneDistro.TZDATA_FILE_NAME , TimeZoneDistro.ICU_DATA_FILE_NAME ) ; }
Source:
public int getApi ( ) { return ( mMainPkg ) instanceof com.android.sdklib.internal.repository.packages.IPackageVersion ? ( ( com.android.sdklib.internal.repository.packages.IPackageVersion ) ( mMainPkg ) ) . getVersion ( ) . getApiLevel ( ) : - 1 ; }

Target:
public int getApi ( ) { return ( mMainPkg ) instanceof com.android.sdklib.internal.repository.packages.IAndroidVersionProvider ? ( ( com.android.sdklib.internal.repository.packages.IAndroidVersionProvider ) ( mMainPkg ) ) . getAndroidVersion ( ) . getApiLevel ( ) : - 1 ; }
Source:
static char $opt$ByteToChar ( byte a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( char ) ( a ) ) ; }

Target:
static char $opt$noinline$ByteToChar ( byte a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( char ) ( a ) ) ; }
Source:
synchronized void nScriptSetVarJ ( int id , int slot , long val ) { validate ( ) ; rsnScriptSetVarJ ( mContext , id , slot , val ) ; }

Target:
native void rsnScriptSetVarJ ( long con , long id , int slot , long val ) ;
Source:
private void assertMacAddress ( java.lang.String macAddress ) { java.lang.String macPattern = "([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}" ; assertTrue ( ( ( ( "MAC Address " + macAddress ) + " does not match pattern " ) + macPattern ) , java.util.regex.Pattern.matches ( macPattern , macAddress ) ) ; }

Target:
private void assertMacAddress ( java.lang.String macAddress ) { java.lang.String macPattern = "([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}" ; org.junit.Assert.assertTrue ( ( ( ( "MAC Address " + macAddress ) + " does not match pattern " ) + macPattern ) , java.util.regex.Pattern.matches ( macPattern , macAddress ) ) ; }
Source:
public android.content.Intent getIntent ( android.content.Context context ) { return com.android.dialer.calldetails.CallDetailsActivity.newInstance ( context , callDetailsEntries , contact , canReportCallerId , canSupportAssistedDialing ) ; }

Target:
public android.content.Intent getIntent ( android.content.Context context ) { return com.android.dialer.calldetails.OldCallDetailsActivity.newInstance ( context , callDetailsEntries , contact , canReportCallerId , canSupportAssistedDialing ) ; }
Source:
public java.util.List < java.lang.String > targetProcessPrefix ( ) { return sshCommandPrefixList ; }

Target:
protected com.google.common.collect.ImmutableList < java.lang.String > targetProcessPrefix ( ) { return sshCommandPrefixList ; }
Source:
public void combineCapabilities ( android.net.NetworkCapabilities nc ) { combineNetCapabilities ( nc ) ; combineTransportTypes ( nc ) ; combineLinkBandwidths ( nc ) ; combineSpecifiers ( nc ) ; combineSignalStrength ( nc ) ; }

Target:
public void combineCapabilities ( android.net.NetworkCapabilities nc ) { combineNetCapabilities ( nc ) ; combineTransportTypes ( nc ) ; combineLinkBandwidths ( nc ) ; combineSpecifiers ( nc ) ; combineSignalStrength ( nc ) ; combineUids ( nc ) ; }
Source:
native void rsnScriptSetVarF ( long con , long id , int slot , float val ) ;

Target:
native void rsnScriptSetVarObj ( long con , long id , int slot , long val , boolean mUseInc ) ;
Source:
protected void readResponseHeaders ( javax.obex.HeaderSet headerset ) { android.util.Log.v ( android.bluetooth.client.pbap.BluetoothPbapRequestPullPhoneBook.TAG , "readResponse" ) ; android.bluetooth.client.pbap.utils.ObexAppParameters oap = android.bluetooth.client.pbap.utils.ObexAppParameters.fromHeaderSet ( headerset ) ; if ( oap.exists ( android.bluetooth.client.pbap.OAP_TAGID_NEW_MISSED_CALLS ) ) { mNewMissedCalls = oap.getByte ( android.bluetooth.client.pbap.OAP_TAGID_NEW_MISSED_CALLS ) ; } }

Target:
protected void readResponseHeaders ( javax.obex.HeaderSet headerset ) { android.util.Log.v ( android.bluetooth.client.pbap.BluetoothPbapRequestPullPhoneBook.TAG , "readResponseHeaders" ) ; android.bluetooth.client.pbap.utils.ObexAppParameters oap = android.bluetooth.client.pbap.utils.ObexAppParameters.fromHeaderSet ( headerset ) ; if ( oap.exists ( android.bluetooth.client.pbap.OAP_TAGID_NEW_MISSED_CALLS ) ) { mNewMissedCalls = oap.getByte ( android.bluetooth.client.pbap.OAP_TAGID_NEW_MISSED_CALLS ) ; } }
Source:
int force ( java.io.FileDescriptor fd , boolean metaData ) throws java.io.IOException { return sun.nio.ch.FileDispatcherImpl.force0 ( fd , metaData ) ; }

Target:
int force ( java.io.FileDescriptor fd , boolean metaData ) throws java.io.IOException { dalvik.system.BlockGuard.getThreadPolicy ( ) . onWriteToDisk ( ) ; return sun.nio.ch.FileDispatcherImpl.force0 ( fd , metaData ) ; }
Source:
native void rsnScriptForEachClipped ( int con , int id , int slot , int ain , int aout , byte [ ] params , int xstart , int xend , int ystart , int yend , int zstart , int zend ) ;

Target:
native void rsnScriptForEach ( long con , long id , int slot , long ain , long aout , byte [ ] params ) ;
Source:
public void testInnerClassPositions ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/ApiCallTest8.java:8: Error: Class requires API level 8 (current min is 4): android.text.style.LeadingMarginSpan.LeadingMarginSpan2 [NewApi]\n" + ( ( " LeadingMarginSpan.LeadingMarginSpan2 span = null; \n" + " ~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk4.xml=>AndroidManifest.xml" , "apicheck/ApiCallTest8.java.txt=>src/test/pkg/ApiCallTest8.java" , "apicheck/ApiCallTest8.class.data=>bin/classes/test/pkg/ApiCallTest8.class" ) ) ; }

Target:
public void testInnerClassPositions ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk4.xml=>AndroidManifest.xml" , "apicheck/ApiCallTest8.java.txt=>src/test/pkg/ApiCallTest8.java" , "apicheck/ApiCallTest8.class.data=>bin/classes/test/pkg/ApiCallTest8.class" ) ) ; }
Source:
public void onResolveFailed ( android.net.nsd.NsdServiceInfo serviceInfo , int errorCode ) { android.util.Log.w ( com.android.printservice.recommendation.plugin.mdnsFilter.MDNSFilterPlugin.LOG_TAG , ( ( ( "Service found: could not resolve " + serviceInfo ) + ": " ) + errorCode ) ) ; }

Target:
public boolean matchesCriteria ( android.net.nsd.NsdServiceInfo nsdServiceInfo ) { return com.android.printservice.recommendation.util.MDNSUtils.isVendorPrinter ( nsdServiceInfo , mMDNSNames ) ; }
Source:
public static double abs ( double a ) { return a <= 0.0 ? 0.0 - a : a ; }

Target:
public static double abs ( double a ) { return java.lang.Math.abs ( a ) ; }
Source:
protected void trace ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField f ) { if ( markIfNecessary ( f ) ) { trace ( f.getEnclosingType ( ) ) ; trace ( f.getType ( ) ) ; traceAnnotations ( f ) ; } }

Target:
protected void trace ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField f ) { if ( brush.startTrace ( f ) ) { trace ( f.getEnclosingType ( ) ) ; trace ( f.getType ( ) ) ; traceAnnotations ( f ) ; brush.endTrace ( f ) ; } }
Source:
public WifiScanner.ScanData [ ] getLatestBatchedScanResults ( boolean flush ) { return mWifiNative.getScanResults ( flush ) ; }

Target:
public WifiScanner.ScanData [ ] getLatestBatchedScanResults ( boolean flush ) { return mWifiNative.getBgScanResults ( ) ; }
Source:
public static void waitFor ( ) { try { if ( ! ( art.CtsMain.sStartWaiter.await ( 15 , java.util.concurrent.TimeUnit.SECONDS ) ) ) { throw new java.lang.RuntimeException ( "Timed out waiting for the agent" ) ; } } catch ( java.lang.InterruptedException e ) { throw new java.lang.RuntimeException ( "Got interrupted waiting for agent." ) ; } }

Target:
public static void waitFor ( ) { try { if ( ! ( art.CtsMain.sStartWaiter.await ( 30 , java.util.concurrent.TimeUnit.SECONDS ) ) ) { throw new java.lang.RuntimeException ( "Timed out waiting for the agent" ) ; } } catch ( java.lang.InterruptedException e ) { throw new java.lang.RuntimeException ( "Got interrupted waiting for agent." ) ; } }
Source:
public com.android.ims.internal.IImsCallSession createCallSession ( int sessionId , com.android.ims.ImsCallProfile profile , com.android.ims.internal.IImsCallSessionListener listener ) { return null ; }

Target:
public int startSession ( android.app.PendingIntent incomingCallIntent , com.android.ims.internal.IImsRegistrationListener listener ) { return 0 ; }
Source:
native void rsnScriptForEachClipped ( long con , long id , int slot , long ain , long aout , byte [ ] params , int xstart , int xend , int ystart , int yend , int zstart , int zend ) ;

Target:
native void rsnScriptSetTimeZone ( long con , long script , byte [ ] timeZone , boolean mUseInc ) ;
Source:
public com.ibm.icu.util.UResourceBundle getPluralBundle ( ) throws java.util.MissingResourceException { return com.ibm.icu.impl.ICUResourceBundle.getBundleInstance ( ICUResourceBundle.ICU_BASE_NAME , "plurals" , ICUResourceBundle.ICU_DATA_CLASS_LOADER , true ) ; }

Target:
public com.ibm.icu.util.UResourceBundle getPluralBundle ( ) throws java.util.MissingResourceException { return com.ibm.icu.impl.ICUResourceBundle.getBundleInstance ( ICUData.ICU_BASE_NAME , "plurals" , ICUResourceBundle.ICU_DATA_CLASS_LOADER , true ) ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.aget_wide.d.T_aget_wide_1 t = new dot.junit.opcodes.aget_wide.d.T_aget_wide_1 ( ) ; long [ ] arr = new long [ 2 ] ; try { t.run ( arr , 2 ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aget_wide.d.T_aget_wide_1" , java.lang.ArrayIndexOutOfBoundsException.class , new long [ 2 ] , 2 ) ; }
Source:
public boolean p2pServDiscCancelReq ( java.lang.String id ) { return doBooleanCommand ( ( "P2P_SERV_DISC_CANCEL_REQ " + id ) ) ; }

Target:
public boolean p2pServDiscCancelReq ( java.lang.String id ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.cancelServiceDiscovery ( id ) ; } else { return doBooleanCommand ( ( "P2P_SERV_DISC_CANCEL_REQ " + id ) ) ; } }
Source:
static com.android.dialer.simulator.portal.SimulatorPortalEntryGroup.Builder builder ( ) { return new com.android.dialer.simulator.portal.AutoValue_SimulatorPortalEntryGroup.Builder ( ) . setMethods ( java.util.Collections.emptyMap ( ) ) . setSubPortals ( java.util.Collections.emptyMap ( ) ) ; }

Target:
static com.android.dialer.simulator.impl.SimulatorPortalEntryGroup.Builder builder ( ) { return new com.android.dialer.simulator.impl.AutoValue_SimulatorPortalEntryGroup.Builder ( ) . setMethods ( java.util.Collections.emptyMap ( ) ) . setSubPortals ( java.util.Collections.emptyMap ( ) ) ; }
Source:
com.android.ahat.heapdump.Site add ( com.android.tools.perflib.heap.StackFrame [ ] frames , int depth , com.android.ahat.heapdump.AhatInstance inst ) { return com.android.ahat.heapdump.Site.add ( this , frames , depth , inst ) ; }

Target:
void addInstance ( com.android.ahat.heapdump.AhatInstance inst ) { mObjects.add ( inst ) ; }
Source:
public static void assertNull ( java.lang.Object object ) { if ( object != null ) throw new java.lang.RuntimeException ( "AssertionFailedError: object was not null" ) ; }

Target:
public static void assertNull ( java.lang.Object object ) { if ( object != null ) throw new dot.junit.AssertionFailedException ( "object was not null" ) ; }