auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.android.layoutlib.api.SceneResult moveChild ( java.lang.Object parentView , java.lang.Object childView , int index , java.util.Map < java.lang.String , java.lang.String > layoutParams , com.android.layoutlib.api.LayoutScene.IAnimationListener listener ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }

Target:
public com.android.layoutlib.api.SceneResult moveChild ( java.lang.Object parentView , java.lang.Object childView , int index , java.util.Map < java.lang.String , java.lang.String > layoutParams , com.android.layoutlib.api.LayoutScene.IAnimationListener listener ) { return SceneStatus.NOT_IMPLEMENTED.createResult ( ) ; }
Source:
public void connectionEventSucceededDisablesTracing ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( BaseWifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; org.junit.Assert.assertEquals ( "0" , libcore.io.IoUtils.readFileAsString ( mTraceEnableFile.getPath ( ) ) ) ; }

Target:
public void connectionEventSucceededDisablesTracing ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; org.junit.Assert.assertEquals ( "0" , libcore.io.IoUtils.readFileAsString ( mTraceEnableFile.getPath ( ) ) ) ; }
Source:
java.net.InetAddress [ ] lookupAllHostAddr ( java.lang.String hostname ) throws java.net.UnknownHostException ;

Target:
public void clearAddressCache ( ) ;
Source:
public void testVFE8 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.aget_byte.d.T_aget_byte_8" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aget_byte.d.T_aget_byte_1" , java.lang.ArrayIndexOutOfBoundsException.class , new byte [ 2 ] , 2 ) ; }
Source:
public void setSystemAndNetworkId ( int systemId , int networkId ) { this . mSystemId = systemId ; this . mNetworkId = networkId ; }

Target:
public void setCdmaSystemAndNetworkId ( int systemId , int networkId ) { this . mSystemId = systemId ; this . mNetworkId = networkId ; }
Source:
public void addType ( com.google.gct.testing.dimension.GoogleCloudTestingType type ) { types.add ( type ) ; }

Target:
public void addType ( com.google.gct.testing.dimension.CloudTestingType type ) { types.add ( type ) ; }
Source:
public java.util.Map < com.android.resources.ResourceType , com.google.common.collect.ListMultimap < java.lang.String , com.android.ide.common.res2.ResourceItem > > getItems ( ) { return mItems ; }

Target:
protected java.util.Map < com.android.resources.ResourceType , com.google.common.collect.ListMultimap < java.lang.String , com.android.ide.common.res2.ResourceItem > > getMap ( ) { return mItems ; }
Source:
protected void setUp ( ) throws java.lang.Exception { if ( ! ( getContext ( ) . getResources ( ) . getBoolean ( R.bool.profile_supported_hfpclient ) ) ) { return ; } startServices ( ) ; }

Target:
public void testInitialize ( ) { android.util.Log.i ( com.android.bluetooth.hfpclient.HeadsetClientServiceTest.TAG , "testInitialize, test passed" ) ; }
Source:
private void writeBtHciSnoopLogOptions ( ) { android.bluetooth.BluetoothAdapter adapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; adapter.configHciSnoopLog ( mBtHciSnoopLog.isChecked ( ) ) ; Settings.Secure.putInt ( mContentResolver , Settings.Secure.BLUETOOTH_HCI_LOG , ( mBtHciSnoopLog.isChecked ( ) ? 1 : 0 ) ) ; }

Target:
private void writeBtHciSnoopLogOptions ( ) { android.bluetooth.BluetoothAdapter adapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; android.os.SystemProperties.set ( com.android.tv.settings.system.development.DevelopmentFragment.BTSNOOP_ENABLE_PROPERTY , java.lang.Boolean.toString ( mBtHciSnoopLog.isChecked ( ) ) ) ; }
Source:
public static void computeMin ( android.renderscript.cts.TestMin.ArgumentsUshortUshortUshort args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( short ) ( java.lang.StrictMath.min ( ( ( args.inV1 ) & 65535 ) , ( ( args.inV2 ) & 65535 ) ) ) ) ; }

Target:
public static void computeConvert ( android.renderscript.cts.TestConvert.ArgumentsCharUshort args ) { args.out = android.renderscript.cts.CoreMathVerifier.convertCharToUshort ( args.inV ) ; }
Source:
public static java.lang.invoke.MethodHandle varHandleExactInvoker ( java.lang.invoke.VarHandle.AccessMode accessMode , java.lang.invoke.MethodType type ) { java.lang.invoke.MethodHandles.unsupported ( "MethodHandles.varHandleExactInvoker()" ) ; return null ; }

Target:
public static java.lang.invoke.MethodHandle varHandleExactInvoker ( java.lang.invoke.VarHandle.AccessMode accessMode , java.lang.invoke.MethodType type ) { return java.lang.invoke.MethodHandles.methodHandleForVarHandleAccessor ( accessMode , type , true ) ; }
Source:
public static float FloatAddition ( ) { float a ; float b ; float c ; a = 1.0F ; b = 2.0F ; c = a + b ; return c ; }

Target:
public static float FloatRemainder ( ) { float a ; float b ; float c ; a = Main.$inline$float ( 8.0F ) ; b = Main.$inline$float ( 2.5F ) ; c = a % b ; return c ; }
Source:
public static int $opt$getIntField ( Main m ) { return m.intField ; }

Target:
public static int $opt$noinline$getIntField ( Main m ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return m.intField ; }
Source:
public java.lang.String [ ] getDefaultCipherSuites ( ) { return org.conscrypt.NativeCrypto.getDefaultCipherSuites ( ) ; }

Target:
public java.lang.String [ ] getDefaultCipherSuites ( ) { return sslParameters.getEnabledCipherSuites ( ) ; }
Source:
public TestCaseBuilder addCanvasClientWithoutUsingPicture ( android.uirendering.cts.testinfrastructure.CanvasClient canvasClient ) { }

Target:
public android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCaseBuilder addCanvasClientWithoutUsingPicture ( android.uirendering.cts.testinfrastructure.CanvasClient canvasClient ) { return addCanvasClientWithoutUsingPicture ( null , canvasClient ) ; }
Source:
private void log ( java.lang.String s ) { android.util.Log.d ( com.android.internal.telephony.IccCardProxy.LOG_TAG , s ) ; }

Target:
private void log ( java.lang.String s ) { android.telephony.Rlog.d ( com.android.internal.telephony.IccCardProxy.LOG_TAG , s ) ; }
Source:
public void flush ( ) { flushCookieStore ( ) ; }

Target:
public synchronized java.lang.String getCookie ( android.net.WebAddress uri ) { return getCookie ( uri.toString ( ) ) ; }
Source:
private com.android.tv.guide.ProgramManager.TableEntry getTableEntry ( com.android.tv.dvr.ScheduledRecording scheduledRecording ) { return getTableEntry ( scheduledRecording.getChannelId ( ) , scheduledRecording.getProgramId ( ) ) ; }

Target:
private com.android.tv.guide.ProgramManager.TableEntry getTableEntry ( com.android.tv.dvr.data.ScheduledRecording scheduledRecording ) { return getTableEntry ( scheduledRecording.getChannelId ( ) , scheduledRecording.getProgramId ( ) ) ; }
Source:
public void acknowledgeSms ( int messageRef , int result ) { synchronized ( mLock ) { this . acknowledgeSms ( messageRef , result ) ; } }

Target:
public void acknowledgeSms ( int token , int messageRef , int result ) { synchronized ( mLock ) { this . acknowledgeSms ( token , messageRef , result ) ; } }
Source:
public android.net.IpSecTransform.Builder setSpi ( @ android.net.IpSecTransform.TransformDirection int direction , android.net.IpSecManager.SecurityParameterIndex spi ) { mConfig.flow [ direction ] . spi = spi.getSpi ( ) ; return this ; }

Target:
public android.net.IpSecTransform.Builder setSpi ( @ android.net.IpSecTransform.TransformDirection int direction , android.net.IpSecManager.SecurityParameterIndex spi ) { mConfig.flow [ direction ] . spiResourceId = spi.getResourceId ( ) ; return this ; }
Source:
public com.android.internal.telephony.uicc.UiccCard getUiccCardForPhone ( int phoneId ) { synchronized ( com.android.internal.telephony.uicc.UiccController.mLock ) { int slotId = getSlotIdFromPhoneId ( phoneId ) ; return getUiccCardForSlot ( slotId ) ; } }

Target:
public com.android.internal.telephony.uicc.UiccCard getUiccCardForPhone ( int phoneId ) { synchronized ( com.android.internal.telephony.uicc.UiccController.mLock ) { com.android.internal.telephony.uicc.UiccSlot uiccSlot = getUiccSlotForPhone ( phoneId ) ; if ( uiccSlot != null ) { return uiccSlot.getUiccCard ( ) ; } return null ; } }
Source:
public void testRelease ( ) { com.android.builder.BuildType type = new com.android.builder.BuildType ( "release" ) ; assertFalse ( type.isDebuggable ( ) ) ; assertFalse ( type.isDebugJniBuild ( ) ) ; assertFalse ( type.isDebugSigningKey ( ) ) ; }

Target:
public void testRelease ( ) { com.android.builder.BuildType type = new com.android.builder.BuildType ( "release" ) ; assertFalse ( type.isDebuggable ( ) ) ; assertFalse ( type.isDebugJniBuild ( ) ) ; assertFalse ( type.isDebugSigned ( ) ) ; }
Source:
private com.android.ims.ImsException getImsManagerIsNullException ( ) { return new com.android.ims.ImsException ( "no ims manager" , com.android.ims.ImsReasonInfo.CODE_LOCAL_ILLEGAL_STATE ) ; }

Target:
private com.android.ims.ImsException getImsManagerIsNullException ( ) { return new com.android.ims.ImsException ( "no ims manager" , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_ILLEGAL_STATE ) ; }
Source:
public void invocationFailed ( java.lang.Throwable cause ) { com.android.compatibility.common.tradefed.result.ResultReporter.warn ( "Invocation failed: %s" , cause ) ; }

Target:
public void invocationFailed ( java.lang.Throwable cause ) { com.android.compatibility.common.tradefed.result.ResultReporter.warn ( "Invocation failed: %s" , cause ) ; com.android.compatibility.common.tradefed.result.InvocationFailureHandler.setFailed ( mBuildHelper , cause ) ; }
Source:
public java.lang.Boolean telephonyStopTrackingDataConnectionRTInfoChange ( ) { return telephonyStopTrackingDataConnectionRTInfoChangeForSubscription ( android.telephony.SubscriptionManager.getDefaultDataSubId ( ) ) ; }

Target:
public java.lang.Boolean telephonyStopTrackingDataConnectionRTInfoChange ( ) { return telephonyStopTrackingDataConnectionRTInfoChangeForSubscription ( SubscriptionManager.DEFAULT_SUBSCRIPTION_ID ) ; }
Source:
public void disableOptionalCodecs ( ) { com.android.bluetooth.a2dp.A2dpService service = getService ( ) ; if ( service == null ) { return ; } service.disableOptionalCodecs ( ) ; }

Target:
public boolean setActiveDevice ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.a2dp.A2dpService service = getService ( ) ; if ( service == null ) { return false ; } return service.setActiveDevice ( device ) ; }
Source:
public com.android.sdklib.internal.repository.ITaskMonitor createSubMonitor ( int tickCount ) { assert ( mIncCoef ) > 0 ; assert tickCount > 0 ; return new com.android.sdkuilib.internal.repository.UpdateNoWindow.ConsoleSubTaskMonitor ( this , null , mValue , ( tickCount * ( mIncCoef ) ) ) ; }

Target:
public com.android.sdklib.internal.repository.ITaskMonitor createSubMonitor ( int tickCount ) { assert ( mIncCoef ) > 0 ; assert tickCount > 0 ; return new com.android.sdkuilib.internal.repository.SdkUpdaterNoWindow.ConsoleSubTaskMonitor ( this , null , mValue , ( tickCount * ( mIncCoef ) ) ) ; }
Source:
public com.android.sdklib.repository.MajorRevision getMajorRevision ( ) { return revision ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newSysImg ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IdDisplay tag , @ com.android.annotations.NonNull java.lang.String abi , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_SYS_IMAGES ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mTag = tag ; p.mPath = abi ; return p ; }
Source:
public java.io.File getCacheDir ( ) { synchronized ( mSync ) { if ( ( mCacheDir ) == null ) { mCacheDir = new java.io.File ( getDataDir ( ) , "cache" ) ; } return android.app.ContextImpl.ensurePrivateDirExists ( mCacheDir ) ; } }

Target:
public java.io.File getCacheDir ( ) { synchronized ( mSync ) { if ( ( mCacheDir ) == null ) { mCacheDir = new java.io.File ( getDataDir ( ) , "cache" ) ; } return android.app.ContextImpl.ensurePrivateCacheDirExists ( mCacheDir ) ; } }
Source:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlockElement > elements ( boolean forward ) { return java.util.Collections.emptyList ( ) ; }

Target:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlockElement > getElements ( boolean forward ) { return java.util.Collections.emptyList ( ) ; }
Source:
private void launchSettingsAppAndFinish ( ) { android.content.Intent launchSettingsIntent = new android.content.Intent ( android.provider.Settings.ACTION_SECURITY_SETTINGS ) ; launchSettingsIntent.setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; startActivity ( launchSettingsIntent ) ; finish ( ) ; }

Target:
public void onActivityResult ( int request , int result , android.content.Intent data ) { if ( ( request == ( com.android.packageinstaller.PackageInstallerActivity.REQUEST_ENABLE_UNKNOWN_SOURCES ) ) && ( result == ( RESULT_OK ) ) ) { initiateInstall ( ) ; } else { finish ( ) ; } }
Source:
public void err ( java.lang.String message ) { mVerboseStream.println ( message ) ; }

Target:
public void err ( java.lang.String message ) { verboseStream.println ( message ) ; }
Source:
public com.android.manifmerger.ManifestMerger2.Invoker addLibraryManifests ( java.io.File ... files ) { mLibraryFilesBuilder.add ( files ) ; return this ; }

Target:
public com.android.manifmerger.ManifestMerger2.Invoker addLibraryManifests ( java.io.File ... files ) { for ( java.io.File file : files ) { addLibraryManifest ( file ) ; } return this ; }
Source:
private void enforceCarrierPrivilege ( int subId ) { if ( ( getCarrierPrivilegeStatus ( subId ) ) != ( android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS ) ) { com.android.phone.PhoneInterfaceManager.loge ( "No Carrier Privilege." ) ; throw new java.lang.SecurityException ( "No Carrier Privilege." ) ; } }

Target:
public boolean isEmergencyMmTelAvailable ( int slotId ) { enforceModifyPermission ( ) ; return com.android.internal.telephony.PhoneFactory.getImsResolver ( ) . isEmergencyMmTelAvailable ( slotId ) ; }
Source:
public java.lang.String [ ] saw ( java.lang.String prefix ) { try { return mBinder.saw ( prefix , ( - 1 ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return null ; } }

Target:
public boolean delete ( java.lang.String key ) { return delete ( key , ( - 1 ) ) ; }
Source:
public static int checkedCast ( long value ) { int result = ( ( int ) ( value ) ) ; com.google.common.base.Preconditions.checkArgument ( ( result == value ) , "Out of range: %s" , value ) ; return result ; }

Target:
public static int checkedCast ( long value ) { int result = ( ( int ) ( value ) ) ; if ( result != value ) { throw new java.lang.IllegalArgumentException ( ( "Out of range: " + value ) ) ; } return result ; }
Source:
private java.lang.String xmlFileName ( org.w3c.dom.Node node , java.lang.String defaultName ) { java.io.File f = com.android.manifmerger.XmlUtils.extractXmlFilename ( node ) ; if ( f != null ) { return f.getName ( ) ; } else { return defaultName ; } }

Target:
private com.android.manifmerger.IMergerLog.FileAndLine xmlFileAndLine ( @ com.android.annotations.NonNull org.w3c.dom.Node node ) { java.lang.String name = com.android.manifmerger.XmlUtils.extractXmlFilename ( node ) ; int line = com.android.manifmerger.XmlUtils.extractLineNumber ( node ) ; return new com.android.manifmerger.IMergerLog.FileAndLine ( name , line ) ; }
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" ) + "* 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\"" ) ) ) ; }

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" + "[x] Rename compilation unit \'MainActivity.java\' to \'NewActivityName.java\'\n" ) + "\n" ) + "[x] activity_main.xml - /testRefactor1/res/layout/activity_main.xml\n" ) + " @@ -5 +5\n" ) + " - tools:context=\".MainActivity\" >\n" ) + " + tools:context=\".NewActivityName\" >\n" ) + "\n" ) + "\n" ) + "[x] activity_main.xml - /testRefactor1/res/layout-land/activity_main.xml\n" ) + " @@ -5 +5\n" ) + " - tools:context=\".MainActivity\" >\n" ) + " + tools:context=\".NewActivityName\" >\n" ) + "\n" ) + "\n" ) + "[x] 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 setPreviousOffset ( int offset ) { }

Target:
public void visitInvalid ( int opcode , int offset , int length ) { observer.parsed ( bytes , offset , length , header ( offset ) ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( "Resource{" + "mName='" ) + ( mName ) ) + '\'' ) + ", mType=" ) + ( mType ) ) + '}' ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( "Resource{" + "mName='" ) + ( mName ) ) + '\'' ) + ", mType=" ) + ( mType ) ) + ", mStatus=" ) + ( mStatus ) ) + '}' ; }
Source:
public static java.lang.String readFirstLine ( java.io.File file , java.nio.charset.Charset charset ) throws java.io.IOException { return com.google.common.io.CharStreams.readFirstLine ( com.google.common.io.Files.newReaderSupplier ( file , charset ) ) ; }

Target:
public static java.lang.String toString ( java.io.File file , java.nio.charset.Charset charset ) throws java.io.IOException { return com.google.common.io.Files.asCharSource ( file , charset ) . read ( ) ; }
Source:
public java.lang.annotation.Annotation [ ] [ ] getParameterAnnotations ( ) { java.lang.annotation.Annotation [ ] [ ] parameterAnnotations = getParameterAnnotationsNative ( ) ; if ( parameterAnnotations == null ) { parameterAnnotations = new java.lang.annotation.Annotation [ getParameterTypes ( ) . length ] [ 0 ] ; } return parameterAnnotations ; }

Target:
public java.lang.annotation.Annotation [ ] getDeclaredAnnotations ( ) { return super . getDeclaredAnnotations ( ) ; }
Source:
public void testOrderOk ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "AndroidManifest.xml" , "res/values/strings.xml" ) ) ; }

Target:
public void testOrderOk ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( ManifestOrderDetector.ORDER ) ; assertEquals ( "No warnings." , lintProject ( "AndroidManifest.xml" , "res/values/strings.xml" ) ) ; }
Source:
public com.android.ide.common.rendering.api.ViewInfo getRootView ( ) { return mRootViewInfo ; }

Target:
public java.util.List < com.android.ide.common.rendering.api.ViewInfo > getRootViews ( ) { return mRootViewInfo ; }
Source:
public void testTypeTextActionPerform ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( org.hamcrest.Matchers.is ( R.id.send_data_to_call_edit_text ) ) ) . perform ( android.support.test.espresso.action.ViewActions.typeText ( "Hello!" ) ) ; }

Target:
public void typeTextActionPerform ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( org.hamcrest.Matchers.is ( R.id.send_data_to_call_edit_text ) ) ) . perform ( android.support.test.espresso.action.ViewActions.typeText ( "Hello!" ) ) ; }
Source:
public com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode findUiAttribute ( com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor attr_desc ) { return getInternalUiAttributes ( ) . get ( attr_desc ) ; }

Target:
public com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode findUiAttribute ( com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor attrDesc ) { return getInternalUiAttributes ( ) . get ( attrDesc ) ; }
Source:
public void testConstructor_IllegalCanonicalName_Middle ( ) { try { new tests.api.java.nio.charset.CharsetTest.MockCharset ( "1%%23" , new java.lang.String [ ] { "mock" } ) ; fail ( ) ; } catch ( java.nio.charset.IllegalCharsetNameException expected ) { } try { new tests.api.java.nio.charset.CharsetTest.MockCharset ( "1//23" , new java.lang.String [ ] { "mock" } ) ; fail ( ) ; } catch ( java.nio.charset.IllegalCharsetNameException expected ) { } }

Target:
public void testConstructor_IllegalCanonicalName_Middle ( ) { try { new org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset ( "1%%23" , new java.lang.String [ ] { "mock" } ) ; fail ( ) ; } catch ( java.nio.charset.IllegalCharsetNameException expected ) { } try { new org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset ( "1//23" , new java.lang.String [ ] { "mock" } ) ; fail ( ) ; } catch ( java.nio.charset.IllegalCharsetNameException expected ) { } }
Source:
public static int $noinline$intAddSubSimplifyArg2 ( int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int sum = x + y ; return sum - y ; }

Target:
public static int $noinline$intAddSubSimplifyArg1 ( int x , int y ) { int sum = x + y ; return sum - x ; }
Source:
public void periodicAdvertisingEnable ( int advertiserId , boolean enable ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; }

Target:
public void setPeriodicAdvertisingEnable ( int advertiserId , boolean enable ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.setPeriodicAdvertisingEnable ( advertiserId , enable ) ; }
Source:
private native void gattServerDisconnectNative ( int serverIf , java.lang.String address , int conn_id ) ;

Target:
private native void gattServerDisconnectNative ( int serverIf , java.lang.String address , int connId ) ;
Source:
public static double DoubleMultiplication ( ) { double a ; double b ; double c ; a = 7.0 ; b = 3.0 ; c = a * b ; return c ; }

Target:
public static double DoubleMultiplication ( ) { double a ; double b ; double c ; a = Main.$inline$double ( 7.0 ) ; b = Main.$inline$double ( 3.0 ) ; c = a * b ; return c ; }
Source:
private native void close ( int fd ) ;

Target:
private native void close ( long nativeData ) ;
Source:
public void testE8 ( ) { try { dot.junit.opcodes.invoke_interface.d.T_invoke_interface_17 t = new dot.junit.opcodes.invoke_interface.d.T_invoke_interface_17 ( ) ; t.run ( ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.IllegalAccessError e ) { } catch ( java.lang.VerifyError e ) { } }

Target:
public void testVFE2 ( ) { try { new dot.junit.opcodes.invoke_interface.d.T_invoke_interface_4 ( ) . run ( ) ; fail ( "expected NoSuchMethodError" ) ; } catch ( java.lang.NoSuchMethodError t ) { } }
Source:
private static void checkConstructorThrows ( int majorVersion , int minorVersion , java.lang.String rulesVersion , int revision ) { try { new libcore.tzdata.update2.DistroVersion ( majorVersion , minorVersion , rulesVersion , revision ) ; fail ( ) ; } catch ( libcore.tzdata.update2.DistroException expected ) { } }

Target:
private static void checkConstructorThrows ( int majorVersion , int minorVersion , java.lang.String rulesVersion , int revision ) { try { new libcore.tzdata.shared2.DistroVersion ( majorVersion , minorVersion , rulesVersion , revision ) ; fail ( ) ; } catch ( libcore.tzdata.shared2.DistroException expected ) { } }
Source:
public android.icu.impl.UResource.TableSink getOrCreateTableSink ( int index , int initialSize ) { return null ; }

Target:
public android.icu.impl.UResource.ArraySink getOrCreateArraySink ( int index ) { return null ; }
Source:
private static boolean videoCanPause ( com.android.incallui.call.DialerCall call ) { return ( ( call != null ) && ( call.isVideoCall ( ) ) ) && ( ( call.getState ( ) ) == ( com.android.incallui.call.DialerCall.State.ACTIVE ) ) ; }

Target:
private static boolean videoCanPause ( com.android.incallui.call.DialerCall call ) { return ( ( call != null ) && ( call.isVideoCall ( ) ) ) && ( ( call.getState ( ) ) == ( com.android.incallui.call.state.DialerCallState.ACTIVE ) ) ; }
Source:
public java.io.File getRenderscriptCompiler ( ) { return getTool ( SdkConstants.FN_RENDERSCRIPT ) ; }

Target:
public com.android.sdklib.IAndroidTarget getTarget ( ) { if ( ! ( mInitialized ) ) { throw new java.lang.IllegalStateException ( "SdkParser was not initialized." ) ; } return mTarget ; }
Source:
public java.lang.String toString ( ) { return "resource" ; }

Target:
public java.lang.String toString ( ) { return "dependencies" ; }
Source:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { switch ( item.getItemId ( ) ) { case R.id.clear : handleClearItemSelected ( ) ; return true ; default : return super . onOptionsItemSelected ( item ) ; } }

Target:
public boolean onOptionsItemSelected ( android.view.MenuItem item ) { switch ( item.getItemId ( ) ) { case R.id.clear : handleClearItemSelected ( ) ; return true ; case R.id.share : handleShareItemSelected ( ) ; return true ; default : return super . onOptionsItemSelected ( item ) ; } }
Source:
void setIsVoipAudioMode ( java.lang.String callId , boolean isVoip ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.setIsVoipAudioMode ( callId , isVoip ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
void addConferenceCall ( java.lang.String callId , android.telecom.ParcelableConference parcelableConference ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.addConferenceCall ( callId , parcelableConference , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { } } }
Source:
public boolean isUsedByOtherApps ( java.lang.String packageName ) { com.android.server.pm.dex.PackageDexUsage.PackageUseInfo useInfo = getPackageUseInfo ( packageName ) ; if ( useInfo == null ) { return false ; } return useInfo.isUsedByOtherApps ( ) ; }

Target:
public com.android.server.pm.dex.PackageDexUsage.PackageUseInfo getPackageUseInfoOrDefault ( java.lang.String packageName ) { com.android.server.pm.dex.PackageDexUsage.PackageUseInfo useInfo = mPackageDexUsage.getPackageUseInfo ( packageName ) ; return useInfo == null ? com.android.server.pm.dex.DexManager.DEFAULT_USE_INFO : useInfo ; }
Source:
public java.lang.reflect.Type getGenericReturnType ( ) { initGenericTypes ( ) ; return org.apache.harmony.luni.lang.reflect.Types.getType ( genericReturnType ) ; }

Target:
public java.lang.reflect.Type getGenericReturnType ( ) { initGenericTypes ( ) ; return libcore.reflect.Types.getType ( genericReturnType ) ; }
Source:
public void requestGC ( ) { synchronized ( this ) { notify ( ) ; } }

Target:
public void requestGC ( ) { if ( java.lang.Daemons.GCDaemon.atomicBoolean.getAndSet ( true ) ) { return ; } synchronized ( this ) { notify ( ) ; } java.lang.Daemons.GCDaemon.atomicBoolean.set ( false ) ; }
Source:
public java.lang.String GetVendorConfigFilePath ( ) { return mVendorConfigFilePath ; }

Target:
public java.lang.String GetVendorConfigFilePath ( ) { if ( ( mVendorConfigFilePath ) == null ) { if ( mDefaultType.toLowerCase ( ) . equals ( com.android.tradefed.util.VtsVendorConfigFileUtil.VENDOR_TEST_CONFIG_DEFAULT_TYPE ) ) { mVendorConfigFilePath = com.android.tradefed.util.VtsVendorConfigFileUtil.VENDOR_TEST_CONFIG_FILE_PATH_PROD ; } else { mVendorConfigFilePath = com.android.tradefed.util.VtsVendorConfigFileUtil.VENDOR_TEST_CONFIG_FILE_PATH_STAGING ; } } return mVendorConfigFilePath ; }
Source:
private void handleSendException ( java.lang.String exception ) { android.util.Log.e ( com.android.bluetooth.opp.BluetoothOppObexClientSession.TAG , ( "Error when sending file: " + exception ) ) ; mCallback.removeMessages ( BluetoothOppObexSession.MSG_CONNECT_TIMEOUT ) ; }

Target:
private void handleSendException ( java.lang.String exception ) { android.util.Log.e ( com.android.bluetooth.opp.BluetoothOppObexClientSession.TAG , ( "Error when sending file: " + exception ) ) ; com.android.bluetooth.opp.Constants.updateShareStatus ( mContext1 , mInfo.mId , BluetoothShare.STATUS_OBEX_DATA_ERROR ) ; mCallback.removeMessages ( BluetoothOppObexSession.MSG_CONNECT_TIMEOUT ) ; }
Source:
public java.lang.String getAlgorithmName ( ) { return "Poly1305-" + ( cipher.getAlgorithmName ( ) ) ; }

Target:
public java.lang.String getAlgorithmName ( ) { return ( cipher ) == null ? "Poly1305" : "Poly1305-" + ( cipher.getAlgorithmName ( ) ) ; }
Source:
public java.lang.String isValid ( java.lang.String newText ) { try { return filter.validate ( newText ) ; } catch ( java.lang.Exception e ) { logError ( "Custom validator failed: %s" , e.toString ( ) ) ; return "" ; } }

Target:
public java.lang.String isValid ( java.lang.String newText ) { try { return filter.validate ( newText ) ; } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Custom validator failed: %s" , e.toString ( ) ) ; return "" ; } }
Source:
int getModifiers ( ) { return java.lang.reflect.AbstractMethod.fixMethodFlags ( artMethod.getAccessFlags ( ) ) ; }

Target:
int getModifiers ( ) { return java.lang.reflect.AbstractMethod.fixMethodFlags ( accessFlags ) ; }
Source:
public org.bouncycastle.math.ec.ECCurve.Config configure ( ) { return new org.bouncycastle.math.ec.ECCurve.Config ( this . coord , this . multiplier ) ; }

Target:
public org.bouncycastle.math.ec.ECCurve.Config configure ( ) { return new org.bouncycastle.math.ec.ECCurve.Config ( this . coord , this . endomorphism , this . multiplier ) ; }
Source:
public long getID ( ) { return this . id ; }

Target:
public long getFieldID ( ) { return this . id ; }
Source:
public void setMiracastMode ( int mode ) { doBooleanCommand ( ( "DRIVER MIRACAST " + mode ) ) ; }

Target:
public void setMiracastMode ( int mode ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { mSupplicantP2pIfaceHal.setMiracastMode ( mode ) ; } else { doBooleanCommand ( ( "DRIVER MIRACAST " + mode ) ) ; } }
Source:
public java.security.interfaces.DSAParams getParams ( ) { ensureReadParams ( ) ; return params ; }

Target:
public java.security.interfaces.DSAParams getParams ( ) { ensureReadParams ( ) ; if ( ! ( params.hasParams ( ) ) ) { return null ; } return params ; }
Source:
static com.android.jack.shrob.spec.AnnotationSpecification annotation ( java.lang.String annotationName ) { return new com.android.jack.shrob.spec.AnnotationSpecification ( com.android.jack.shrob.proguard.GrammarActions.name ( annotationName ) ) ; }

Target:
static com.android.jack.shrob.spec.AnnotationSpecification annotation ( java.lang.String annotationName , boolean hasNameNegator ) { com.android.jack.shrob.spec.NameSpecification name = com.android.jack.shrob.proguard.GrammarActions.name ( annotationName ) ; name.setNegator ( hasNameNegator ) ; return new com.android.jack.shrob.spec.AnnotationSpecification ( name ) ; }
Source:
private static boolean isInfrastructureFailure ( java.lang.String progress ) { java.lang.String [ ] progressLines = progress.split ( "\n" ) ; return progressLines [ ( ( progressLines.length ) - 1 ) ] . startsWith ( com.google.gct.testing.CloudResultsLoader.INFRASTRUCTURE_FAILURE_PREFIX ) ; }

Target:
private static boolean isInfrastructureFailure ( java.util.List < java.lang.String > progressMessages ) { if ( progressMessages.isEmpty ( ) ) { return false ; } return progressMessages.get ( ( ( progressMessages.size ( ) ) - 1 ) ) . startsWith ( com.google.gct.testing.CloudResultsLoader.INFRASTRUCTURE_FAILURE_PREFIX ) ; }
Source:
private static native void native_drawOval ( int nativeCanvas , android.graphics.RectF oval , int paint ) ;

Target:
private static native void native_drawOval ( long nativeCanvas , android.graphics.RectF oval , long nativePaint ) ;
Source:
private void writeCharacteristic ( java.util.UUID uid , java.lang.String writeValue ) { android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( uid ) ; if ( characteristic != null ) { writeCharacteristic ( characteristic , writeValue ) ; } }

Target:
private void writeDescriptor ( java.lang.String writeValue ) { android.bluetooth.BluetoothGattDescriptor descriptor = getDescriptor ( ) ; if ( descriptor == null ) return ; descriptor.setValue ( writeValue.getBytes ( ) ) ; mBluetoothGatt.writeDescriptor ( descriptor ) ; }
Source:
protected void releaseNetworkFor ( android.net.NetworkRequest networkRequest ) { if ( DBG ) log ( ( "Cellular releasing Network for " + networkRequest ) ) ; com.android.internal.telephony.dataconnection.ApnContext apnContext = apnContextForNetworkRequest ( networkRequest ) ; if ( apnContext != null ) apnContext.decRefCount ( ) ; }

Target:
public int getApnPriority ( java.lang.String name ) { com.android.internal.telephony.dataconnection.ApnContext apnContext = mApnContexts.get ( name ) ; if ( apnContext == null ) { loge ( ( "Request for unsupported mobile name: " + name ) ) ; } return apnContext.priority ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws java.lang.Exception { com.android.jack.transformations.parent.TypeParentChecker.Visitor checker = new com.android.jack.transformations.parent.TypeParentChecker.Visitor ( ) ; checker.accept ( type ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws java.lang.Exception { com.android.jack.transformations.parent.TypeAstChecker.Visitor checker = new com.android.jack.transformations.parent.TypeAstChecker.Visitor ( ) ; checker.accept ( type ) ; }
Source:
public boolean hasFailedTests ( ) { return ( ( getNumErrorTests ( ) ) > 0 ) || ( ( getNumFailedTests ( ) ) > 0 ) ; }

Target:
private void addTestResult ( com.android.ddmlib.testrunner.TestIdentifier test , com.android.ddmlib.testrunner.TestResult testResult ) { mIsCountDirty = true ; mTestResults.put ( test , testResult ) ; }
Source:
public static native java.lang.String getDisplayCountryNative ( java.lang.String countryCode , java.lang.String locale ) ;

Target:
public static java.lang.String getDisplayVariant ( java.util.Locale targetLocale , java.util.Locale locale ) { return libcore.icu.ICU.getDisplayVariantNative ( targetLocale.toLanguageTag ( ) , locale.toLanguageTag ( ) ) ; }
Source:
private static long parseTime ( java.lang.String fmt , java.lang.String value ) { return libcore.java.text.SimpleDateFormatTest.parseDate ( java.util.Locale.ENGLISH , fmt , value ) . getTime ( ) . getTime ( ) ; }

Target:
private static long parseTimeUtc ( java.lang.String fmt , java.lang.String value ) { return libcore.java.text.SimpleDateFormatTest.parseDateUtc ( java.util.Locale.ENGLISH , fmt , value ) . getTime ( ) . getTime ( ) ; }
Source:
static native boolean initLocaleDataImpl ( java.lang.String locale , libcore.icu.LocaleData result ) ;

Target:
static native boolean initLocaleDataNative ( java.lang.String locale , libcore.icu.LocaleData result ) ;
Source:
protected void testCreatedMinToolsPackage ( com.android.sdklib.internal.repository.packages.MinToolsPackageTest.MockMinToolsPackage p ) { super . testCreatedPackage ( p ) ; assertEquals ( 3 , p.getMinToolsRevision ( ) ) ; }

Target:
protected void testCreatedMinToolsPackage ( com.android.sdklib.internal.repository.packages.MinToolsPackageTest.MockMinToolsPackage p ) { super . testCreatedPackage ( p ) ; assertEquals ( "3.0.1" , p.getMinToolsRevision ( ) . toShortString ( ) ) ; }
Source:
public com.android.incallui.call.DialerCall getIncomingCall ( ) { com.android.incallui.call.DialerCall call = getFirstCallWithState ( DialerCall.State.INCOMING ) ; if ( call == null ) { call = getFirstCallWithState ( DialerCall.State.CALL_WAITING ) ; } return call ; }

Target:
public com.android.incallui.call.DialerCall getIncomingCall ( ) { com.android.incallui.call.DialerCall call = getFirstCallWithState ( DialerCallState.INCOMING ) ; if ( call == null ) { call = getFirstCallWithState ( DialerCallState.CALL_WAITING ) ; } return call ; }
Source:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent event ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; if ( canvas != null ) { canvas.getDragSourceListener ( ) . dragFinished ( event ) ; } }

Target:
public void dragEnter ( org.eclipse.swt.dnd.DropTargetEvent event ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; if ( canvas != null ) { adjustEventCoordinates ( canvas , event ) ; canvas.getDropListener ( ) . dragEnter ( event ) ; } }
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/NonInternationalizedSmsDetectorTest.java:18: Warning: To make sure the SMS can be sent by all users, please start the SMS numberwith a + and a country code or restrict the code invocation to people in the country you are targeting. [UnlocalizedSms]\n" + ( ( ( " sms.sendMultipartTextMessage(\"001234567890\", null, null, null, null);\n" + " ~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) + "" ) ) , lintProject ( "src/test/pkg/NonInternationalizedSmsDetectorTest.java.txt=>src/test/pkg/NonInternationalizedSmsDetectorTest.java" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/NonInternationalizedSmsDetectorTest.java:18: Warning: To make sure the SMS can be sent by all users, please start the SMS number with a + and a country code or restrict the code invocation to people in the country you are targeting. [UnlocalizedSms]\n" + ( ( ( " sms.sendMultipartTextMessage(\"001234567890\", null, null, null, null);\n" + " ~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) + "" ) ) , lintProject ( "src/test/pkg/NonInternationalizedSmsDetectorTest.java.txt=>src/test/pkg/NonInternationalizedSmsDetectorTest.java" ) ) ; }
Source:
public void testVFE17 ( ) { try { new dot.junit.opcodes.invoke_direct_range.d.T_invoke_direct_range_13 ( ) . run ( ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testVFE17 ( ) { loadAndRun ( "dot.junit.opcodes.invoke_direct_range.d.T_invoke_direct_range_13" , java.lang.IncompatibleClassChangeError.class ) ; }
Source:
public org.gradle.language.c.CSourceSet create ( java.lang.String name ) { return instantiator.newInstance ( org.gradle.language.c.internal.DefaultCSourceSet.class , name , functionalSourceSet.getName ( ) , fileResolver ) ; }

Target:
public void execute ( final org.gradle.language.base.FunctionalSourceSet functionalSourceSet ) { functionalSourceSet.registerFactory ( languageRegistration.getSourceSetType ( ) , languageRegistration.getSourceSetFactory ( functionalSourceSet.getName ( ) ) ) ; }
Source:
private void setVoiceMailByCountry ( java.lang.String spn ) { if ( mVmConfig.containsCarrier ( spn ) ) { isVoiceMailFixed = true ; voiceMailNum = mVmConfig.getVoiceMailNumber ( spn ) ; voiceMailTag = mVmConfig.getVoiceMailTag ( spn ) ; } }

Target:
private void setVoiceMailByCountry ( java.lang.String spn ) { if ( mVmConfig.containsCarrier ( spn ) ) { mIsVoiceMailFixed = true ; mVoiceMailNum = mVmConfig.getVoiceMailNumber ( spn ) ; mVoiceMailTag = mVmConfig.getVoiceMailTag ( spn ) ; } }
Source:
void collectSuccessors ( @ javax.annotation.Nonnull java.util.ArrayList < com.android.jack.ir.ast.cfg.JBasicBlock > successors ) { super . collectSuccessors ( successors ) ; successors.addAll ( cases ) ; }

Target:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > getSuccessors ( ) { java.util.ArrayList < com.android.jack.ir.ast.cfg.JBasicBlock > successors = new java.util.ArrayList < > ( ) ; successors.add ( getPrimarySuccessor ( ) ) ; successors.addAll ( cases ) ; return successors ; }
Source:
public boolean sameItemAs ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.SourcePackage ) { com.android.sdklib.internal.repository.packages.SourcePackage newPkg = ( ( com.android.sdklib.internal.repository.packages.SourcePackage ) ( pkg ) ) ; return getVersion ( ) . equals ( newPkg.getVersion ( ) ) ; } return false ; }

Target:
public boolean sameItemAs ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.SourcePackage ) { com.android.sdklib.internal.repository.packages.SourcePackage newPkg = ( ( com.android.sdklib.internal.repository.packages.SourcePackage ) ( pkg ) ) ; return getAndroidVersion ( ) . equals ( newPkg.getAndroidVersion ( ) ) ; } return false ; }
Source:
public void addCallTechnology ( int callTechnology ) { com.android.server.telecom.Log.d ( com.android.server.telecom.Analytics.TAG , ( ( ( "adding callTechnology for call " + ( callId ) ) + ": " ) + callTechnology ) ) ; this . callTechnologies |= callTechnology ; }

Target:
public void addCallTechnology ( int callTechnology ) { android.telecom.Log.d ( com.android.server.telecom.Analytics.TAG , ( ( ( "adding callTechnology for call " + ( callId ) ) + ": " ) + callTechnology ) ) ; this . callTechnologies |= callTechnology ; }
Source:
public void connectionEventSucceededDisablesTracing ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( BaseWifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; org.junit.Assert.assertEquals ( "0" , libcore.io.IoUtils.readFileAsString ( mTraceEnableFile.getPath ( ) ) ) ; }

Target:
public void connectionEventStartedDoesNotCrashOnRepeatedCalls ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; }
Source:
public void setCookie ( java.lang.String url , java.lang.String value ) { throw new android.webkit.MustOverrideException ( ) ; }

Target:
public abstract void setCookie ( java.lang.String url , java.lang.String value , android.webkit.ValueCallback < java.lang.Boolean > callback ) ;
Source:
static com.android.dialer.common.PerAccountSharedPreferences getSharedPreferences ( android.content.Context context , android.telecom.PhoneAccountHandle phoneAccountHandle ) { return new com.android.dialer.common.PerAccountSharedPreferences ( context , phoneAccountHandle , com.android.dialer.util.DialerUtils.getDefaultSharedPreferenceForDeviceProtectedStorageContext ( context ) ) ; }

Target:
static com.android.dialer.common.PerAccountSharedPreferences getSharedPreferences ( android.content.Context context , android.telecom.PhoneAccountHandle phoneAccountHandle ) { return new com.android.dialer.common.PerAccountSharedPreferences ( context , phoneAccountHandle , com.android.dialer.storage.StorageComponent.get ( context ) . unencryptedSharedPrefs ( ) ) ; }
Source:
public void changeCapabilitiesConfiguration ( android.telephony.ims.feature.CapabilityChangeRequest request , android.telephony.ims.aidl.IImsCapabilityCallback c ) throws android.os.RemoteException { this . requestChangeEnabledCapabilities ( request , c ) ; }

Target:
public void changeCapabilitiesConfiguration ( android.telephony.ims.feature.CapabilityChangeRequest request , android.telephony.ims.aidl.IImsCapabilityCallback c ) throws android.os.RemoteException { synchronized ( mLock ) { this . requestChangeEnabledCapabilities ( request , c ) ; } }
Source:
public java.lang.String getAndroidData ( ) { return "ANDROID_DATA=" + ( dalvikCache ( ) . getParentFile ( ) ) ; }

Target:
public java.lang.String getAndroidDataPath ( ) { return dalvikCache ( ) . getParentFile ( ) . getPath ( ) ; }
Source:
public void testStringonstructorParseFail ( ) { try { new org.json.JSONObject ( "{" ) ; fail ( ) ; } catch ( org.json.JSONException e ) { } }

Target:
public void testStringConstructorParseFail ( ) { try { new org.json.JSONObject ( "{" ) ; fail ( ) ; } catch ( org.json.JSONException e ) { } }
Source:
public boolean processMessage ( android.os.Message message ) { switch ( message.what ) { case com.android.server.connectivity.NetworkMonitor.CMD_NETWORK_CONNECTED : transitionTo ( mValidatedState ) ; return HANDLED ; default : return NOT_HANDLED ; } }

Target:
public boolean processMessage ( android.os.Message message ) { switch ( message.what ) { case com.android.server.connectivity.NetworkMonitor.CMD_NETWORK_CONNECTED : transitionTo ( mValidatedState ) ; break ; case com.android.server.connectivity.NetworkMonitor.CMD_EVALUATE_PRIVATE_DNS : transitionTo ( mEvaluatingPrivateDnsState ) ; break ; default : return NOT_HANDLED ; } return HANDLED ; }
Source:
public boolean isValid ( ) { return ( address ) != 0 ; }

Target:
public boolean isFreed ( ) { return ( address ) == 0 ; }
Source:
public static double Div2 ( double arg ) { return arg / 2.0 ; }

Target:
public static double $noinline$Div2 ( double arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg / 2.0 ; }
Source:
public void stopStreaming ( ) { mStreamingService.stopStreaming ( ) ; }

Target:
public void stopStreaming ( ) { mStreamingService.close ( ) ; }
Source:
private static java.util.Properties createProps ( com.android.sdklib.internal.repository.packages.FullRevision min_tools_rev ) { java.util.Properties props = new java.util.Properties ( ) ; props.setProperty ( PkgProps.MIN_TOOLS_REV , min_tools_rev.toShortString ( ) ) ; return props ; }

Target:
private static java.util.Properties createProps ( com.android.sdklib.repository.FullRevision min_tools_rev ) { java.util.Properties props = new java.util.Properties ( ) ; props.setProperty ( PkgProps.MIN_TOOLS_REV , min_tools_rev.toShortString ( ) ) ; return props ; }
Source:
public com.android.sched.util.codec.ListCodec < T > setSeperator ( @ javax.annotation.Nonnull java.lang.String separator ) { this . separator = separator ; this . regexp = java.util.regex.Pattern.quote ( separator ) ; return this ; }

Target:
public com.android.sched.util.codec.ListCodec < T > setSeparator ( @ javax.annotation.Nonnull java.lang.String separator ) { this . separator = separator ; this . regexp = java.util.regex.Pattern.quote ( separator ) ; return this ; }
Source:
public static < T > T firstNonNull ( @ javax.annotation.Nullable T first , @ javax.annotation.Nullable T second ) { return first != null ? first : com.google.common.base.Preconditions.checkNotNull ( second ) ; }

Target:
public static < T > T firstNonNull ( @ javax.annotation.Nullable T first , @ javax.annotation.Nullable T second ) { return com.google.common.base.MoreObjects.firstNonNull ( first , second ) ; }
Source:
public void run ( ) { try { java.lang.Thread.sleep ( org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.TIME_UNIT ) ; channel2.close ( ) ; } catch ( java.lang.Exception e ) { } }

Target:
public void run ( ) { try { java.lang.Thread.sleep ( org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.TIME_UNIT ) ; } catch ( java.lang.InterruptedException ie ) { fail ( ) ; } libcore.io.IoUtils.closeQuietly ( channel2 ) ; }