auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.io.InputStream openRead ( ) throws java.io.IOException { java.io.InputStream inputStream = file.openRead ( ) ; if ( refinedEntries.isEmpty ( ) ) { return inputStream ; } return new com.android.jack.shrob.obfuscation.resource.RefinedVFile.RefinedInputStream ( inputStream ) ; }

Target:
public java.io.InputStream getInputStream ( ) throws com.android.sched.util.file.WrongPermissionException { java.io.InputStream inputStream = file.getInputStream ( ) ; if ( refinedEntries.isEmpty ( ) ) { return inputStream ; } return new com.android.jack.shrob.obfuscation.resource.RefinedVFile.RefinedInputStream ( inputStream ) ; }
Source:
public void onClick ( android.view.View v ) { final android.content.Intent intent = new android.content.Intent ( "com.android.settings.TRIGGER_CARRIER_PROVISIONING" ) ; final android.content.ComponentName serviceComponent = android.content.ComponentName.unflattenFromString ( "com.android.omadm.service/.DMIntentReceiver" ) ; intent.setComponent ( serviceComponent ) ; sendBroadcast ( intent ) ; }

Target:
public void onClick ( android.view.View v ) { final android.content.Intent intent = new android.content.Intent ( "com.android.settings.CARRIER_PROVISIONING" ) ; final android.content.ComponentName serviceComponent = android.content.ComponentName.unflattenFromString ( "com.android.omadm.service/.DMIntentReceiver" ) ; intent.setComponent ( serviceComponent ) ; sendBroadcast ( intent ) ; }
Source:
public static int XorAllOnes ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg ^ ( - 1 ) ; }

Target:
public static int $noinline$XorAllOnes ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg ^ ( - 1 ) ; }
Source:
public boolean isPrivateDnsInStrictMode ( ) { return ( ( ! ( android.text.TextUtils.isEmpty ( mPrivateDnsMode ) ) ) && ( mPrivateDnsMode.startsWith ( android.net.ConnectivityManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME ) ) ) && ( ! ( android.text.TextUtils.isEmpty ( mPrivateDnsSpecifier ) ) ) ; }

Target:
public boolean inStrictMode ( ) { return ( useTls ) && ( ! ( android.text.TextUtils.isEmpty ( hostname ) ) ) ; }
Source:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , short [ ] data ) { validateIsInt16 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_16 , data.length ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , short [ ] data ) { validateIsInt16OrFloat16 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_16 , data.length ) ; }
Source:
public void testGetRadioState ( ) { int state = mMockRilCtrl.getRadioState ( ) ; android.util.Log.v ( com.android.telephonymockriltests.functional.SimpleTestUsingMockRil.TAG , ( "testGetRadioState: " + state ) ) ; assertTrue ( ( ( state >= 0 ) && ( state <= 9 ) ) ) ; }

Target:
public void testGetRadioState ( ) { int state = mMockRilCtrl.getRadioState ( ) ; android.telephony.Rlog.v ( com.android.telephonymockriltests.functional.SimpleTestUsingMockRil.TAG , ( "testGetRadioState: " + state ) ) ; assertTrue ( ( ( state >= 0 ) && ( state <= 9 ) ) ) ; }
Source:
public java.lang.String getFullName ( ) { return variantData.getVariantConfiguration ( ) . computeFullNameWithSplits ( getFilterName ( ) ) ; }

Target:
public java.lang.String getFullName ( ) { if ( ! ( multiOutput ) ) { return variantData.getVariantConfiguration ( ) . getFullName ( ) ; } return variantData.getVariantConfiguration ( ) . computeFullNameWithSplits ( getFilterName ( ) ) ; }
Source:
public int queryCallBarring ( int cbType ) throws android.os.RemoteException { return - 1 ; }

Target:
public int queryClir ( ) { return - 1 ; }
Source:
public static int byteToDoubleToInt ( byte value ) { return ( ( int ) ( ( double ) ( value ) ) ) ; }

Target:
public static short $noinline$byteToDoubleToShort ( byte value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( short ) ( ( double ) ( value ) ) ) ; }
Source:
public void testCompareTo_Null ( ) { tests.api.java.nio.charset.CharsetTest.MockCharset c1 = new tests.api.java.nio.charset.CharsetTest.MockCharset ( "mock" , null ) ; try { c1.compareTo ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void testCompareTo_Null ( ) { org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset c1 = new org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset ( "mock" , null ) ; try { c1.compareTo ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public void testStyleToTheme ( ) throws java.lang.Exception { assertEquals ( "Foo" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( "Foo" ) ) ; assertEquals ( "Theme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( "@android:style/Theme" ) ) ; assertEquals ( "LocalTheme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( "@style/LocalTheme" ) ) ; }

Target:
public void testStyleToTheme ( ) throws java.lang.Exception { assertEquals ( "Foo" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( "Foo" ) ) ; assertEquals ( "Theme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( "@android:style/Theme" ) ) ; assertEquals ( "LocalTheme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( "@style/LocalTheme" ) ) ; assertEquals ( "LocalTheme" , com.android.ide.eclipse.adt.internal.resources.ResourceHelper.styleToTheme ( "@foo.bar/style/LocalTheme" ) ) ; }
Source:
public void testConstructor3 ( ) { try { new java.util.concurrent.ConcurrentHashMap ( ( - 1 ) ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testConstructor1 ( ) { try { new java.util.concurrent.ConcurrentHashMap ( ( - 1 ) ) ; shouldThrow ( ) ; } catch ( java.lang.IllegalArgumentException success ) { } }
Source:
private void addDefaultSpisAndRemoteAddrToIpSecConfig ( android.net.IpSecConfig config ) throws java.lang.Exception { config.setSpiResourceId ( getNewSpiResourceId ( mDestinationAddr , com.android.server.IpSecServiceParameterizedTest.TEST_SPI ) ) ; config.setDestinationAddress ( mDestinationAddr ) ; }

Target:
private void addDefaultSpisAndRemoteAddrToIpSecConfig ( android.net.IpSecConfig config ) throws java.lang.Exception { config.setSpiResourceId ( getNewSpiResourceId ( mDestinationAddr , com.android.server.IpSecServiceParameterizedTest.TEST_SPI ) ) ; config.setSourceAddress ( mSourceAddr ) ; config.setDestinationAddress ( mDestinationAddr ) ; }
Source:
public final int compareTo ( E o ) { return ( ordinal ) - ( o.ordinal ) ; }

Target:
public final int compareTo ( E o ) { return ( ordinal ) - ( o.ordinal ( ) ) ; }
Source:
public android.icu.impl.UResource.ArraySink getOrCreateArraySink ( int index , int size ) { return null ; }

Target:
public android.icu.impl.UResource.TableSink getOrCreateTableSink ( android.icu.impl.UResource.Key key ) { return null ; }
Source:
private int getDrmMimeMenuStringRsrc ( long msgId ) { java.lang.String mimeType = getDrmMimeType ( msgId ) ; if ( isAudioMimeType ( mimeType ) ) { return R.string.save_ringtone ; } return 0 ; }

Target:
private int getDrmMimeMenuStringRsrc ( long msgId ) { if ( isDrmRingtoneWithRights ( msgId ) ) { return R.string.save_ringtone ; } return 0 ; }
Source:
public static android.os.ZygoteProcess getProcess ( ) { android.webkit.WebViewZygote.connectToZygoteIfNeeded ( ) ; return android.webkit.WebViewZygote.sZygote ; }

Target:
public static android.os.ZygoteProcess getProcess ( ) { synchronized ( android.webkit.WebViewZygote.sLock ) { android.webkit.WebViewZygote.connectToZygoteIfNeededLocked ( ) ; return android.webkit.WebViewZygote.sZygote ; } }
Source:
public static com.android.server.wifi.aware.WifiAwareStateManager getInstance ( ) { if ( ( com.android.server.wifi.aware.WifiAwareStateManager.sAwareStateManagerSingleton ) == null ) { com.android.server.wifi.aware.WifiAwareStateManager.sAwareStateManagerSingleton = new com.android.server.wifi.aware.WifiAwareStateManager ( ) ; } return com.android.server.wifi.aware.WifiAwareStateManager.sAwareStateManagerSingleton ; }

Target:
public void setNative ( com.android.server.wifi.aware.WifiAwareNative awareNative ) { mWifiAwareNative = awareNative ; }
Source:
public void connectionEventFailedDoesNotCrashOnRepeatedCalls ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( BaseWifiDiagnostics.CONNECTION_EVENT_FAILED ) ; mLastMileLogger.reportConnectionEvent ( BaseWifiDiagnostics.CONNECTION_EVENT_FAILED ) ; }

Target:
public void connectionEventFailedDoesNotCrashOnRepeatedCalls ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_FAILED ) ; mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_FAILED ) ; }
Source:
public static final void set24HourTimePref ( boolean is24Hour ) { }

Target:
public static final void set24HourTimePref ( boolean is24Hour ) { java.text.DateFormat.is24Hour = is24Hour ; }
Source:
final int getIntUnchecked ( int i ) { return getInt ( ix ( i ) ) ; }

Target:
final int getIntUnchecked ( int i ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } return getInt ( ix ( i ) ) ; }
Source:
public void reset ( ) { cipher.reset ( ) ; }

Target:
protected abstract byte calculateByte ( byte b ) ;
Source:
public static void v ( java.lang.String prefix , java.lang.String format , java.lang.Object ... args ) { if ( com.android.services.telephony.Log.VERBOSE ) { android.util.Log.v ( com.android.services.telephony.Log.TAG , com.android.services.telephony.Log.buildMessage ( prefix , format , args ) ) ; } }

Target:
public static void w ( java.lang.String prefix , java.lang.String format , java.lang.Object ... args ) { android.telecom.Log.w ( prefix , format , args ) ; }
Source:
public void test_fr ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex fr = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.FRENCH ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( fr , "Øfer" , "O" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( fr , "Œster" , "O" ) ; }

Target:
public void test_fr ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex fr = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.FRENCH ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( fr , "Øfer" , "O" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( fr , "Œster" , "O" ) ; }
Source:
public void testDecodeMonoOgg ( ) throws java.lang.Exception { monoTest ( R.raw.monotestogg ) ; testTimeStampOrdering ( R.raw.monotestogg ) ; }

Target:
public void testDecodeMonoOgg ( ) throws java.lang.Exception { monoTest ( R.raw.monotestogg , 44100 ) ; testTimeStampOrdering ( R.raw.monotestogg ) ; }
Source:
public void rmPackageDir ( java.lang.String packageDir ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.rmPackageDir ( packageDir ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void clearAppProfiles ( java.lang.String packageName ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.clearAppProfiles ( packageName ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void callSessionHoldReceived ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsCallProfile imsCallProfile ) throws android.os.RemoteException { mNewListener.callSessionHoldReceived ( imsCallProfile ) ; }

Target:
public void callSessionResumeReceived ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsCallProfile imsCallProfile ) throws android.os.RemoteException { mNewListener.callSessionResumeReceived ( imsCallProfile ) ; }
Source:
public void testFocusedViewInNormalCase ( ) { mMenuHelper.showMenu ( ) ; mMenuHelper.assertNavigateToPlayControlsRow ( ) ; assertButtonHasFocus ( com.android.tv.tests.ui.PlayControlsRowViewTest.BUTTON_INDEX_PLAY_PAUSE ) ; mDevice.pressBack ( ) ; }

Target:
public void testFocusedViewInNormalCase ( ) { mMenuHelper.showMenu ( ) ; mMenuHelper.assertNavigateToPlayControlsRow ( ) ; assertButtonHasFocus ( com.android.tv.tests.ui.PlayControlsRowViewTest.BUTTON_ID_PLAY_PAUSE ) ; mDevice.pressBack ( ) ; }
Source:
public static int $noinline$intAddSubSimplifyArg1 ( int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int sum = x + y ; return sum - x ; }

Target:
public static int $noinline$intSubAddSimplifyRight ( int x , int y ) { int sub = x - y ; return y + sub ; }
Source:
public static void startMethodTracing ( java.lang.String traceName , java.io.FileDescriptor fd , int bufferSize , int flags ) { dalvik.system.VMDebug.startMethodTracing ( traceName , fd , bufferSize , flags , false , 0 ) ; }

Target:
public static void startMethodTracing ( java.lang.String traceName , java.io.FileDescriptor fd , int bufferSize , int flags , boolean streamOutput ) { dalvik.system.VMDebug.startMethodTracing ( traceName , fd , bufferSize , flags , false , 0 , streamOutput ) ; }
Source:
public void testAllowLocalMethodsImplementingInaccessible ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/ApiCallTest10.java:25: Error: Call requires API level 14 (current min is 4): android.view.View#onPopulateAccessibilityEvent [NewApi]\n" + ( ( ( ( ( ( ( ( " super.onPopulateAccessibilityEvent(event); // Valid lint warning\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/ApiCallTest10.java:31: Error: Call requires API level 14 (current min is 4): android.view.View#dispatchGenericFocusedEvent [NewApi]\n" ) + " return super.dispatchGenericFocusedEvent(event); // Should flag this\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/ApiCallTest10.java:40: Error: Call requires API level 14 (current min is 4): android.view.View#dispatchHoverEvent [NewApi]\n" ) + " dispatchHoverEvent(null);\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) + "3 errors, 0 warnings\n" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk4.xml=>AndroidManifest.xml" , "apicheck/ApiCallTest10.java.txt=>src/test/pkg/ApiCallTest10.java" , "apicheck/ApiCallTest10.class.data=>bin/classes/test/pkg/ApiCallTest10.class" ) ) ; }

Target:
public void testSuperCall ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( "src/test/pkg/SuperCallTest.java:20: Error: Call requires API level 21 (current min is 19): android.service.wallpaper.WallpaperService.Engine#onApplyWindowInsets [NewApi]\n" + " super.onApplyWindowInsets(insets); // Error\n" ) + " ~~~~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/SuperCallTest.java:27: Error: Call requires API level 21 (current min is 19): android.service.wallpaper.WallpaperService.Engine#onApplyWindowInsets [NewApi]\n" ) + " onApplyWindowInsets(insets); // Error: not overridden\n" ) + " ~~~~~~~~~~~~~~~~~~~\n" ) + "2 errors, 0 warnings\n" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk19.xml=>AndroidManifest.xml" , "apicheck/SuperCallTest.java.txt=>src/test/pkg/SuperCallTest.java" , "apicheck/SuperCallTest.class.data=>bin/classes/test/pkg/SuperCallTest.class" , "apicheck/SuperCallTest$MyEngine2.class.data=>bin/classes/test/pkg/SuperCallTest$MyEngine2.class" , "apicheck/SuperCallTest$MyEngine1.class.data=>bin/classes/test/pkg/SuperCallTest$MyEngine1.class" ) ) ; }
Source:
public void test2_findFirst2 ( ) { for ( int i = 0 ; i < 32 ; i ++ ) { assertEquals ( com.android.dx.util._tests.BitsTest.label ( i ) , i , com.android.dx.util.Bits.findFirst ( ( - 1 ) , i ) ) ; } }

Target:
public void test2_findFirst2 ( ) { for ( int i = 0 ; i < 32 ; i ++ ) { assertEquals ( com.android.dx.util.BitsTest.label ( i ) , i , com.android.dx.util.Bits.findFirst ( ( - 1 ) , i ) ) ; } }
Source:
public long getUniqueId ( ) { return ( getId ( ) ) & ( com.android.tools.perflib.heap.Type.getIdSizeMask ( ) ) ; }

Target:
public long getUniqueId ( ) { return ( getId ( ) ) & ( mHeap.mSnapshot.getIdSizeMask ( ) ) ; }
Source:
public void onPageCommitVisible ( android.webkit.WebView view , java.lang.String url ) { assertEquals ( url , "about:blank" ) ; callbackLatch.countDown ( ) ; }

Target:
public void onComplete ( long requestId ) { assertEquals ( kRequest , requestId ) ; callbackLatch.countDown ( ) ; }
Source:
void setBondingInitiatedLocally ( boolean isBondingInitiatedLocally ) { synchronized ( mObject ) { this . isBondingInitiatedLocally = isBondingInitiatedLocally ; } }

Target:
void setBondingInitiatedLocally ( boolean isBondingInitiatedLocally ) { synchronized ( mObject ) { this . mIsBondingInitiatedLocally = isBondingInitiatedLocally ; } }
Source:
private boolean generate ( byte [ ] key ) { execute ( 'a' , key ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; }

Target:
public boolean isEmpty ( ) { try { return ( mBinder.zero ( ) ) == ( android.security.KeyStore.KEY_NOT_FOUND ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
public final void testNormalizeId ( ) { assertEquals ( "foo" , new com.android.ide.common.layout.BaseLayout ( ) . normalizeId ( "foo" ) ) ; assertEquals ( "@+id/name" , new com.android.ide.common.layout.BaseLayout ( ) . normalizeId ( "@id/name" ) ) ; assertEquals ( "@+id/name" , new com.android.ide.common.layout.BaseLayout ( ) . normalizeId ( "@+id/name" ) ) ; }

Target:
public final void testNormalizeId ( ) { assertEquals ( "foo" , new com.android.ide.common.layout.BaseLayoutRule ( ) . normalizeId ( "foo" ) ) ; assertEquals ( "@+id/name" , new com.android.ide.common.layout.BaseLayoutRule ( ) . normalizeId ( "@id/name" ) ) ; assertEquals ( "@+id/name" , new com.android.ide.common.layout.BaseLayoutRule ( ) . normalizeId ( "@+id/name" ) ) ; }
Source:
public abstract lombok.ast.Node parseJava ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context ) ;

Target:
public com.android.tools.lint.detector.api.Location getLocation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.Node node ) { return com.android.tools.lint.detector.api.Location.NONE ; }
Source:
public void onMessageSendFail ( @ java.lang.SuppressWarnings ( value = "unused" ) int messageId , @ android.net.wifi.nan.WifiNanDiscoverySessionCallback.SessionReasonCodes int reason ) { }

Target:
public void onMessageSendFailed ( @ java.lang.SuppressWarnings ( value = "unused" ) int messageId , @ android.net.wifi.nan.WifiNanDiscoverySessionCallback.SessionReasonCodes int reason ) { }
Source:
private void setBackgroundRenderNodeProperties ( android.view.RenderNode renderNode ) { renderNode.setTranslationX ( mScrollX ) ; renderNode.setTranslationY ( mScrollY ) ; }

Target:
private void setBackgroundDisplayListProperties ( android.view.RenderNode displayList ) { displayList.setTranslationX ( mScrollX ) ; displayList.setTranslationY ( mScrollY ) ; }
Source:
public static boolean checkCallingOrSelfReadPhoneNumber ( android.content.Context context , java.lang.String callingPackage , java.lang.String message ) { return com.android.internal.telephony.TelephonyPermissions.checkReadPhoneNumber ( context , android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , callingPackage , message ) ; }

Target:
public static boolean checkReadPhoneState ( android.content.Context context , int subId , int pid , int uid , java.lang.String callingPackage , java.lang.String message ) { return com.android.internal.telephony.TelephonyPermissions.checkReadPhoneState ( context , com.android.internal.telephony.TelephonyPermissions.TELEPHONY_SUPPLIER , subId , pid , uid , callingPackage , message ) ; }
Source:
public void onTextChanged ( java.lang.CharSequence s , int start , int before , int count ) { mWorkingMessage.setSubject ( s , true ) ; }

Target:
public void onTextChanged ( java.lang.CharSequence s , int start , int before , int count ) { mWorkingMessage.setSubject ( s , true ) ; updateSendButtonState ( ) ; }
Source:
private native void gattClientDiscoverServiceByUuidNative ( int conn_id , long service_uuid_lsb , long service_uuid_msb ) ;

Target:
private native void gattClientDiscoverServiceByUuidNative ( int connId , long serviceUuidLsb , long serviceUuidMsb ) ;
Source:
void expectAvailableAndValidatedCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { expectAvailableCallbacks ( agent , false , com.android.server.ConnectivityServiceTest.TestNetworkCallback.TIMEOUT_MS ) ; expectCapabilitiesWith ( android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED , agent ) ; }

Target:
void expectAvailableThenValidatedCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { expectAvailableCallbacksUnvalidated ( agent ) ; expectCapabilitiesWith ( android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED , agent ) ; }
Source:
public long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , android.util.MutableLong inOffset , long byteCount ) throws android.system.ErrnoException { return os.sendfile ( outFd , inFd , inOffset , byteCount ) ; }

Target:
public long sendfile ( java.io.FileDescriptor outFd , java.io.FileDescriptor inFd , libcore.util.MutableLong inOffset , long byteCount ) throws android.system.ErrnoException { return os.sendfile ( outFd , inFd , inOffset , byteCount ) ; }
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.sdkman2.PackagesDiffLogic ( u ) ; }

Target:
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 ) ; }
Source:
public void waitForVideoProviderHandler ( android.telecom.RemoteConnection.VideoProvider remoteVideoProvider ) { mVideoProviderHandlerTracker = new android.telecom.cts.BaseTelecomTestWithMockServices.InvokeCounter ( "WaitForHandler" ) ; remoteVideoProvider.setZoom ( 0 ) ; mVideoProviderHandlerTracker.waitForCount ( 1 ) ; mVideoProviderHandlerTracker = null ; }

Target:
public void waitForVideoProviderHandler ( android.telecom.RemoteConnection.VideoProvider remoteVideoProvider ) { mVideoProviderHandlerTracker = new android.telecom.cts.TestUtils.InvokeCounter ( "WaitForHandler" ) ; remoteVideoProvider.setZoom ( 0 ) ; mVideoProviderHandlerTracker.waitForCount ( 1 ) ; mVideoProviderHandlerTracker = null ; }
Source:
public java.lang.Void answer ( ) { set ( null ) ; return null ; }

Target:
public java.lang.Void answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Throwable { @ java.lang.SuppressWarnings ( value = "unchecked" ) T captured = ( ( T ) ( invocation.getArguments ( ) [ index ] ) ) ; set ( captured ) ; return null ; }
Source:
public static void computeLog10 ( android.renderscript.cts.TestLog10.ArgumentsFloatFloat args ) { args.ulf = 3 ; args.ulfRelaxed = 16 ; args.out = ( ( float ) ( java.lang.StrictMath.log10 ( args.in ) ) ) ; }

Target:
public static void computeAsinh ( android.renderscript.cts.TestAsinh.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.asinh ( args.in ) , 4 , 128 ) ; }
Source:
private void notifyReliableWriteBadRespCompleted ( java.lang.String err ) { showMessage ( "Reliable write(bad response) compelte" ) ; android.content.Intent intent = new android.content.Intent ( com.android.cts.verifier.bluetooth.BleClientService.BLE_RELIABLE_WRITE_BAD_RESP_COMPLETED ) ; if ( err != null ) { intent.putExtra ( com.android.cts.verifier.bluetooth.BleClientService.EXTRA_ERROR_MESSAGE , err ) ; } sendBroadcast ( intent ) ; }

Target:
private void notifyReliableWriteBadRespCompleted ( java.lang.String err ) { showMessage ( "Reliable write(bad response) complete" ) ; android.content.Intent intent = new android.content.Intent ( com.android.cts.verifier.bluetooth.BleClientService.BLE_RELIABLE_WRITE_BAD_RESP_COMPLETED ) ; if ( err != null ) { intent.putExtra ( com.android.cts.verifier.bluetooth.BleClientService.EXTRA_ERROR_MESSAGE , err ) ; } sendBroadcast ( intent ) ; }
Source:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlockElement > getElements ( boolean forward ) { throw new java.lang.AssertionError ( ) ; }

Target:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlockElement > getElements ( boolean forward ) { return java.util.Collections.emptyList ( ) ; }
Source:
public native char getChar$ ( long address ) ;

Target:
public native char getChar ( long address ) ;
Source:
public java.lang.String getCookie ( java.lang.String url ) { throw new android.webkit.MustOverrideException ( ) ; }

Target:
public abstract void setCookie ( java.lang.String url , java.lang.String value ) ;
Source:
public static < E > java.util.ArrayList < E > newArrayListWithCapacity ( int initialArraySize ) { com.google.common.base.Preconditions.checkArgument ( ( initialArraySize >= 0 ) ) ; return new java.util.ArrayList < E > ( initialArraySize ) ; }

Target:
public static < E > java.util.ArrayList < E > newArrayListWithCapacity ( int initialArraySize ) { com.google.common.collect.CollectPreconditions.checkNonnegative ( initialArraySize , "initialArraySize" ) ; return new java.util.ArrayList < E > ( initialArraySize ) ; }
Source:
public void removePackageFromPreferred ( java.lang.String packageName ) { android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , "removePackageFromPreferred: this is now a no-op" ) ; }

Target:
public boolean isPackageDeviceAdminOnAnyUser ( java.lang.String packageName ) { return isPackageDeviceAdmin ( packageName , UserHandle.USER_ALL ) ; }
Source:
public static boolean hasAnySupportedNamedCurves ( ) { return ( org.bouncycastle.crypto.tls.TlsECCUtils.curveNames.length ) > 0 ; }

Target:
public static boolean hasAnySupportedNamedCurves ( ) { return ( org.bouncycastle.crypto.tls.TlsECCUtils.CURVE_NAMES.length ) > 0 ; }
Source:
public java.lang.reflect.Constructor < ? > [ ] getDeclaredConstructors ( ) { java.util.ArrayList < java.lang.reflect.Constructor < T > > constructors = new java.util.ArrayList ( ) ; getDeclaredConstructors ( false , constructors ) ; return constructors.toArray ( new java.lang.reflect.Constructor [ constructors.size ( ) ] ) ; }

Target:
public java.lang.reflect.Constructor < ? > [ ] getDeclaredConstructors ( ) { return getDeclaredConstructorsInternal ( false ) ; }
Source:
default < T extends java.lang.annotation.Annotation > java.lang.annotation.Annotation getDeclaredAnnotation ( java.lang.Class < T > annotationClass ) { return libcore.reflect.AnnotatedElements.getDeclaredAnnotation ( this , annotationClass ) ; }

Target:
default < T extends java.lang.annotation.Annotation > T [ ] getAnnotationsByType ( java.lang.Class < T > annotationClass ) { return libcore.reflect.AnnotatedElements.getDirectOrIndirectAnnotationsByType ( this , annotationClass ) ; }
Source:
private void assertDominates ( int nodeA , int nodeB ) { assertEquals ( mSnapshot.findReference ( nodeA ) , mSnapshot.findReference ( nodeB ) . getImmediateDominator ( ) ) ; }

Target:
private void assertDominates ( int nodeA , int nodeB ) { assertEquals ( mSnapshot.findInstance ( nodeA ) , mSnapshot.findInstance ( nodeB ) . getImmediateDominator ( ) ) ; }
Source:
public void test_getDisplayLanguageLjava_util_Locale ( ) { if ( tests.support.Support_Locale.isLocaleAvailable ( testLocale ) ) { assertEquals ( "anglais" , testLocale.getDisplayLanguage ( l ) ) ; } }

Target:
public void test_getDisplayName ( ) { assertEquals ( "English (Canada,WIN32)" , new java.util.Locale ( "en" , "CA" , "WIN32" ) . getDisplayName ( ) ) ; }
Source:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( vfs.getRootDir ( ) , fileType , inputVFiles ) ; return inputVFiles.listIterator ( ) ; }

Target:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( vfs.getRootInputOutputVDir ( ) , fileType , inputVFiles ) ; return inputVFiles.listIterator ( ) ; }
Source:
public java.lang.Object [ ] toArray ( ) { return com.google.common.collect.Lists.newArrayList ( iterator ( ) ) . toArray ( ) ; }

Target:
public boolean apply ( java.util.Map.Entry < V , K > input ) { return forwardPredicate.apply ( com.google.common.collect.Maps.immutableEntry ( input.getValue ( ) , input.getKey ( ) ) ) ; }
Source:
private boolean equalObjects ( java.lang.Object obj1 , java.lang.Object obj2 ) { if ( obj1 == null ) { return obj2 == null ? true : false ; } return obj1.equals ( obj2 ) ; }

Target:
final java.security.spec.AlgorithmParameterSpec getAlgorithmParameterSpec ( ) { return null ; }
Source:
public void testVersionResMatch ( ) { runConfigMatchTest ( "en-rUS-w600dp-h1024dp-large-port-mdpi-finger-nokeys-v12" , 2 , "" , "large" , "w540dp" ) ; }

Target:
public void testVersionResMatch ( ) { com.android.ide.common.resources.configuration.FolderConfigurationTest.runConfigMatchTest ( "en-rUS-w600dp-h1024dp-large-port-mdpi-finger-nokeys-v12" , 2 , "" , "large" , "w540dp" ) ; }
Source:
public static long getMobileTxPackets ( ) { long total = 0 ; for ( java.lang.String iface : android.net.TrafficStats.getMobileIfaces ( ) ) { total += android.net.TrafficStats.getTxPackets ( iface ) ; } return total ; }

Target:
public static long getMobileTxPackets ( ) { long total = 0 ; for ( java.lang.String iface : android.net.TrafficStats.getMobileIfaces ( ) ) { total += android.net.TrafficStats.addIfSupported ( android.net.TrafficStats.getTxPackets ( iface ) ) ; } return total ; }
Source:
public static void setUserInNanpRegion ( boolean userInNanpRegion ) { com.android.dialer.smartdial.util.SmartDialPrefix.sUserInNanpRegion = userInNanpRegion ; }

Target:
public static void setUserInNanpRegion ( boolean userInNanpRegion ) { com.android.dialer.smartdial.util.SmartDialPrefix.userInNanpRegion = userInNanpRegion ; }
Source:
public static void main ( java.lang.String [ ] args ) { Main.triggerArrayOOM ( ) ; Main.triggerInstanceOOM ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { if ( Main.triggerArrayOOM ( ) ) { java.lang.System.out.println ( "NEW_ARRAY correctly threw OOME" ) ; } if ( Main.triggerInstanceOOM ( ) ) { java.lang.System.out.println ( "NEW_INSTANCE correctly threw OOME" ) ; } }
Source:
protected java.lang.String getSoFilename ( ) { return "/system/lib/libttspico.so" ; }

Target:
protected java.lang.String getSoFilename ( ) { return "libttspico.so" ; }
Source:
native void rsnScriptSetVarObj ( long con , long id , int slot , long val ) ;

Target:
native void rsnIncObjDestroy ( long con , long id ) ;
Source:
public void activateCellBroadcastSms ( int activate , android.os.Message response ) { android.util.Log.e ( com.android.internal.telephony.sip.SipPhoneBase.LOG_TAG , "Error! This functionality is not implemented for SIP." ) ; }

Target:
public void activateCellBroadcastSms ( int activate , android.os.Message response ) { android.telephony.Rlog.e ( com.android.internal.telephony.sip.SipPhoneBase.LOG_TAG , "Error! This functionality is not implemented for SIP." ) ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariableRef expr ) { performCommonChecks ( expr ) ; com.android.jack.ir.ast.JVariableRef other = otherOrMe ( expr ) ; ensure ( equal ( expr.getTarget ( ) , other.getTarget ( ) ) ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JArrayRef expr ) { performCommonChecks ( expr ) ; otherOrMe ( expr ) ; }
Source:
public void test_sendfile_errno ( ) throws java.lang.Exception { try { android.util.MutableLong offset = new android.util.MutableLong ( 10 ) ; Libcore.os.sendfile ( java.io.FileDescriptor.out , java.io.FileDescriptor.out , offset , 10 ) ; fail ( ) ; } catch ( android.system.ErrnoException expected ) { } }

Target:
public void test_sendfile_errno ( ) throws java.lang.Exception { try { libcore.util.MutableLong offset = new libcore.util.MutableLong ( 10 ) ; Libcore.os.sendfile ( java.io.FileDescriptor.out , java.io.FileDescriptor.out , offset , 10 ) ; fail ( ) ; } catch ( android.system.ErrnoException expected ) { } }
Source:
public static void computePown ( android.renderscript.cts.TestPown.ArgumentsFloatIntFloat args ) { args.ulf = 16 ; args.ulfRelaxed = 128 ; args.out = ( ( float ) ( java.lang.StrictMath.pow ( args.inX , args.inY ) ) ) ; }

Target:
public static void computeRemainder ( android.renderscript.cts.TestRemainder.ArgumentsFloatFloatFloat args ) { args.ulf = 64 ; args.ulfRelaxed = 128 ; args.out = android.renderscript.cts.CoreMathVerifier.remainderAndQuotient ( args.inX , args.inY ) . remainder ; }
Source:
public void onServiceDisconnected ( android.content.ComponentName name ) { mWapPushMan = null ; if ( false ) android.util.Log.v ( com.android.internal.telephony.WapPushOverSms.LOG_TAG , "wappush manager disconnected." ) ; rebindWapPushManager ( ) ; }

Target:
public void onServiceDisconnected ( android.content.ComponentName name ) { mWapPushMan = null ; if ( false ) android.telephony.Rlog.v ( com.android.internal.telephony.WapPushOverSms.LOG_TAG , "wappush manager disconnected." ) ; mOwner.unbindService ( mWapConn ) ; rebindWapPushManager ( ) ; }
Source:
public com.android.ims.internal.IImsEcbm getEcbmInterface ( ) throws android.os.RemoteException { synchronized ( mLock ) { android.telephony.ims.stub.ImsEcbmImplBase ecbm = this . getEcbm ( ) ; return ecbm != null ? ecbm.getImsEcbm ( ) : null ; } }

Target:
public com.android.ims.internal.IImsUt getUtInterface ( ) throws android.os.RemoteException { synchronized ( mLock ) { return this . getUtInterface ( ) ; } }
Source:
public void setNeedInitialFocus ( boolean flag ) { throw new android.webkit.MustOverrideException ( ) ; }

Target:
public abstract void setLoadsImagesAutomatically ( boolean flag ) ;
Source:
public void testRefactor1 ( ) throws java.lang.Exception { renameType ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT , "com.example.refactoringtest.MainActivity" , true , "NewActivityName" , ( "CHANGES:\n" + ( ( ( ( ( ( ( ( "-------\n" + "* Rename compilation unit \'MainActivity.java\' to \'NewActivityName.java\'\n" ) + "\n" ) + "* Android Type Rename\n" ) + "\n" ) + " * AndroidManifest.xml - /testRefactor1/AndroidManifest.xml\n" ) + " @@ -16 +16\n" ) + " - android:name=\"com.example.refactoringtest.MainActivity\"\n" ) + " + android:name=\"com.example.refactoringtest.NewActivityName\"" ) ) ) ; }

Target:
public void testRefactor1 ( ) throws java.lang.Exception { renameType ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT , "com.example.refactoringtest.MainActivity" , true , "NewActivityName" , ( "CHANGES:\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "-------\n" + "* Rename compilation unit \'MainActivity.java\' to \'NewActivityName.java\'\n" ) + "\n" ) + "* activity_main.xml - /testRefactor1/res/layout/activity_main.xml\n" ) + " @@ -5 +5\n" ) + " - tools:context=\".MainActivity\" >\n" ) + " + tools:context=\".NewActivityName\" >\n" ) + "\n" ) + "\n" ) + "* activity_main.xml - /testRefactor1/res/layout-land/activity_main.xml\n" ) + " @@ -5 +5\n" ) + " - tools:context=\".MainActivity\" >\n" ) + " + tools:context=\".NewActivityName\" >\n" ) + "\n" ) + "\n" ) + "* AndroidManifest.xml - /testRefactor1/AndroidManifest.xml\n" ) + " @@ -16 +16\n" ) + " - android:name=\"com.example.refactoringtest.MainActivity\"\n" ) + " + android:name=\"com.example.refactoringtest.NewActivityName\"" ) ) ) ; }
Source:
public void doWork ( ) throws android.os.RemoteException { mService.removeAccount ( mResponse , account ) ; }

Target:
public void doWork ( ) throws android.os.RemoteException { mService.renameAccount ( mResponse , account , newName ) ; }
Source:
public java.lang.String getErrorString ( android.content.Context context , int errorCode ) { return android.net.http.ErrorStrings.getString ( errorCode , context ) ; }

Target:
public java.lang.String getErrorString ( android.content.Context context , int errorCode ) { return android.webkit.LegacyErrorStrings.getString ( errorCode , context ) ; }
Source:
public java.lang.String getDescription ( ) { return ( ( "resource " + ( path.getPathAsString ( '/' ) ) ) + " in " ) + ( inputLibLoc.getDescription ( ) ) ; }

Target:
public java.lang.String getDescription ( ) { return ( ( ( inputLibLoc.getDescription ( ) ) + ", resource '" ) + ( path.getPathAsString ( '/' ) ) ) + '\'' ; }
Source:
private static java.lang.String lookupLikelySubtags ( java.lang.String localeId ) { android.icu.util.UResourceBundle bundle = android.icu.util.UResourceBundle.getBundleInstance ( ICUResourceBundle.ICU_BASE_NAME , "likelySubtags" ) ; try { return bundle.getString ( localeId ) ; } catch ( java.util.MissingResourceException e ) { return null ; } }

Target:
private static java.lang.String lookupLikelySubtags ( java.lang.String localeId ) { android.icu.util.UResourceBundle bundle = android.icu.util.UResourceBundle.getBundleInstance ( ICUData.ICU_BASE_NAME , "likelySubtags" ) ; try { return bundle.getString ( localeId ) ; } catch ( java.util.MissingResourceException e ) { return null ; } }
Source:
static java.lang.String getFlagName ( java.lang.reflect.Field field ) { java.lang.String name = field.getAnnotation ( com.google.devtools.common.options.Option.class ) . name ( ) ; return com.google.devtools.common.options.OptionsParserImpl.isBooleanField ( field ) ? "[no]" + name : name ; }

Target:
static java.lang.String getFlagName ( java.lang.reflect.Field field ) { java.lang.String name = field.getAnnotation ( com.google.devtools.common.options.Option.class ) . name ( ) ; return com.google.devtools.common.options.OptionsData.isBooleanField ( field ) ? "[no]" + name : name ; }
Source:
private static native int nativeForkSystemServer ( int uid , int gid , int [ ] gids , int debugFlags , int [ ] [ ] rlimits , long permittedCapabilities , long effectiveCapabilities ) ;

Target:
private static native int nativeForkSystemServer ( int uid , int gid , int [ ] gids , int runtimeFlags , int [ ] [ ] rlimits , long permittedCapabilities , long effectiveCapabilities ) ;
Source:
private static org.eclipse.jdt.core.dom.TagElement createIcuUsageText ( org.eclipse.jdt.core.dom.AST ast ) { return com.google.currysrc.api.transform.ast.AstNodes.createTextTagElement ( ast , ( "&nbsp;Methods, fields, and other functionality specific to ICU are labeled" + " '<strong>[icu]</strong>'." ) ) ; }

Target:
private static org.eclipse.jdt.core.dom.TagElement createIcuUsageText ( org.eclipse.jdt.core.dom.AST ast ) { return com.google.currysrc.api.process.ast.AstNodes.createTextTagElement ( ast , ( "&nbsp;Methods, fields, and other functionality specific to ICU are labeled" + " '<strong>[icu]</strong>'." ) ) ; }
Source:
void startCoreServices ( ) { debugLog ( "startCoreServices()" ) ; java.lang.Class [ ] supportedProfileServices = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; setAllProfileServiceStates ( supportedProfileServices , BluetoothAdapter.STATE_ON ) ; }

Target:
void startProfileServices ( ) { debugLog ( "startCoreServices()" ) ; java.lang.Class [ ] supportedProfileServices = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; setAllProfileServiceStates ( supportedProfileServices , BluetoothAdapter.STATE_ON ) ; }
Source:
public boolean isVoicemailDonationAvailable ( android.content.Context context ) { return false ; }

Target:
public boolean isVoicemailTranscriptionEnabled ( android.content.Context context , android.telecom.PhoneAccountHandle account ) { return false ; }
Source:
public Connection.RttTextStream getRttTextStream ( ) { if ( isRequestingRtt ( ) ) { return new android.telecom.Connection.RttTextStream ( mRttPipeToInCall , mRttPipeFromInCall ) ; } else { return null ; } }

Target:
public Connection.RttTextStream getRttTextStream ( ) { if ( isRequestingRtt ( ) ) { if ( ( mRttTextStream ) == null ) { mRttTextStream = new android.telecom.Connection.RttTextStream ( mRttPipeToInCall , mRttPipeFromInCall ) ; } return mRttTextStream ; } else { return null ; } }
Source:
public void actionPerformed ( java.awt.event.ActionEvent actionEvent ) { for ( com.android.tools.chartlib.AnimatedComponent component : mComponents ) { component.setUpdateData ( update.isSelected ( ) ) ; } }

Target:
public void actionPerformed ( java.awt.event.ActionEvent actionEvent ) { for ( com.android.tools.chartlib.AnimatedComponent component : mComponents ) { component.setUpdateData ( update.isSelected ( ) ) ; } step.setEnabled ( ( ! ( update.isSelected ( ) ) ) ) ; }
Source:
static int computeArrayListCapacity ( int arraySize ) { com.google.common.base.Preconditions.checkArgument ( ( arraySize >= 0 ) ) ; return com.google.common.primitives.Ints.saturatedCast ( ( ( 5L + arraySize ) + ( arraySize / 10 ) ) ) ; }

Target:
static int computeArrayListCapacity ( int arraySize ) { com.google.common.collect.CollectPreconditions.checkNonnegative ( arraySize , "arraySize" ) ; return com.google.common.primitives.Ints.saturatedCast ( ( ( 5L + arraySize ) + ( arraySize / 10 ) ) ) ; }
Source:
private long getCtx ( ) { if ( ( ctx ) == 0 ) { ctx = org.conscrypt.NativeCrypto.EVP_DigestInit ( evp_md ) ; } return ctx ; }

Target:
protected void engineUpdate ( byte [ ] input , int offset , int len ) { org.conscrypt.NativeCrypto.EVP_DigestUpdate ( ctx , input , offset , len ) ; }
Source:
public void setInitialAttachApn ( java.lang.String apn , java.lang.String protocol , int authType , java.lang.String username , java.lang.String password , android.os.Message result ) { }

Target:
public void sendDeviceState ( int stateType , boolean state , android.os.Message result ) { com.android.internal.telephony.test.SimulatedCommandsVerifier.getInstance ( ) . sendDeviceState ( stateType , state , result ) ; resultSuccess ( result , null ) ; }
Source:
public boolean apply ( com.android.jack.ir.ast.JDefinedClassOrInterface clOrI ) { return ! ( clOrI.isLoadedFromJackFile ( ) ) ; }

Target:
public boolean apply ( com.android.jack.ir.ast.JDefinedClassOrInterface clOrI ) { return ! ( ( clOrI.getLocation ( ) ) instanceof com.android.jack.library.TypeInInputLibraryLocation ) ; }
Source:
public static int IntAddition1 ( ) { int a ; int b ; int c ; a = Main.$inline$int ( 1 ) ; b = Main.$inline$int ( 2 ) ; c = a + b ; return c ; }

Target:
public static long LongAddition ( ) { long a ; long b ; long c ; a = 1L ; b = 2L ; c = a + b ; return c ; }
Source:
public static void testInvalidInfoTypes ( ) throws java.lang.Exception { android.drm.cts.DrmInfoTest.checkInvalidInfoType ( ( ( android.drm.DrmInfoRequest.TYPE_REGISTRATION_INFO ) - 1 ) ) ; }

Target:
public static void testInvalidInfoTypes ( ) throws java.lang.Exception { android.drm.cts.DrmInfoTest.checkInvalidInfoType ( ( ( android.drm.DrmInfoRequest.TYPE_REGISTRATION_INFO ) - 1 ) ) ; android.drm.cts.DrmInfoTest.checkInvalidInfoType ( ( ( android.drm.DrmInfoRequest.TYPE_RIGHTS_ACQUISITION_PROGRESS_INFO ) + 1 ) ) ; }
Source:
public static long Div1 ( long arg ) { return arg / 1 ; }

Target:
public static long $noinline$Div1 ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg / 1 ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; getDevice ( ) . uninstallPackage ( android.content.cts.SyncAdapterAccountAccessHostTest.STUBS_APK ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; getDevice ( ) . uninstallPackage ( android.content.cts.SyncAdapterAccountAccessHostTest.STUBS_PKG ) ; }
Source:
public void testSingleFile ( ) throws java.lang.Exception { assertEquals ( ( "layout1.xml:14: Warning: The id \"button5\" is not referring to any views in this layout\n" + ( ( "layout1.xml:15: Warning: The id \"my_id2\" is not referring to any views in this layout\n" + "layout1.xml:17: Warning: The id \"my_id3\" is not referring to any views in this layout\n" ) + "layout1.xml:18: Warning: The id \"my_id1\" is not referring to any views in this layout" ) ) , lintFiles ( "wrongid/layout1.xml=>res/layout/layout1.xml" ) ) ; }

Target:
public void testSingleFile ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/layout1.xml:14: Warning: The id \"button5\" is not referring to any views in this layout [UnknownIdInLayout]\n" + ( ( ( ( ( ( ( ( ( ( ( ( " android:layout_alignBottom=\"@+id/button5\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/layout1.xml:15: Warning: The id \"my_id2\" is not referring to any views in this layout [UnknownIdInLayout]\n" ) + " android:layout_alignLeft=\"@+id/my_id2\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/layout1.xml:17: Warning: The id \"my_id3\" is not referring to any views in this layout [UnknownIdInLayout]\n" ) + " android:layout_alignRight=\"@+id/my_id3\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/layout1.xml:18: Warning: The id \"my_id1\" is not referring to any views in this layout [UnknownIdInLayout]\n" ) + " android:layout_alignTop=\"@+id/my_id1\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 4 warnings\n" ) + "" ) ) , lintFiles ( "wrongid/layout1.xml=>res/layout/layout1.xml" ) ) ; }
Source:
public void tearDown ( ) { mTestLooperManager.release ( ) ; mHandlerThread.quit ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { mTestLooperManager.release ( ) ; mHandlerThread.quit ( ) ; com.android.bluetooth.TestUtils.clearAdapterService ( mAdapterService ) ; }
Source:
public void broadcastAssociationSuccesfulEvent ( java.lang.String iface , java.lang.String bssid ) { sendMessage ( iface , WifiStateMachine.CMD_ASSOCIATED_BSSID , 0 , 0 , bssid ) ; }

Target:
public void broadcastAssociatedBssidEvent ( java.lang.String iface , java.lang.String bssid ) { sendMessage ( iface , WifiStateMachine.CMD_ASSOCIATED_BSSID , 0 , 0 , bssid ) ; }
Source:
public void setSlotId ( int slotId ) { mSlotId = slotId ; }

Target:
public final void initialize ( android.content.Context context , int slotId ) { mContext = context ; mSlotId = slotId ; }
Source:
public void setUp ( ) { com.android.sched.vfs.VFSTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; }

Target:
public void setUp ( ) throws com.android.sched.util.config.ConfigurationException { com.android.sched.vfs.VFSTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.sched.util.config.ThreadConfig.setConfig ( new com.android.sched.util.config.AsapConfigBuilder ( ) . build ( ) ) ; }
Source:
com.android.ide.common.api.Point canvasToControlPoint ( int canvasX , int canvasY ) { int x = mHScale.translate ( canvasX ) ; int y = mVScale.translate ( canvasY ) ; return new com.android.ide.common.api.Point ( x , y ) ; }

Target:
com.android.ide.common.api.Point layoutToControlPoint ( int canvasX , int canvasY ) { int x = mHScale.translate ( canvasX ) ; int y = mVScale.translate ( canvasY ) ; return new com.android.ide.common.api.Point ( x , y ) ; }
Source:
public void setUiTTYMode ( int uiTtyMode , android.os.Message onComplete ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; getServiceInterface ( mBinder ) . setUiTTYMode ( mSlotId , mSupportedFeature , uiTtyMode , onComplete ) ; } }

Target:
public com.android.ims.internal.IImsCallSession getPendingCallSession ( int sessionId , java.lang.String callId ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . getPendingCallSession ( sessionId , callId ) ; } }