auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean isModified ( java.io.File toFile ) throws java.io.IOException { return ( ( myChecksum ) == ( - 1 ) ) || ( ( myChecksum ) != ( myPatch.digestFile ( toFile ) ) ) ; }

Target:
protected boolean isModified ( java.io.File toFile ) throws java.io.IOException { return ( ( myChecksum ) == ( Digester.INVALID ) ) || ( ( myChecksum ) != ( myPatch.digestFile ( toFile , myPatch.isNormalized ( ) ) ) ) ; }
Source:
public synchronized void setFixedFontFamily ( java.lang.String font ) { if ( android.webkit.DebugFlags.TRACE_API ) android.util.Log.d ( com.android.webview.chromium.ContentSettingsAdapter.LOGTAG , ( "setFixedFontFamily=" + font ) ) ; mAwSettings.setFixedFontFamily ( font ) ; }

Target:
public synchronized void setFixedFontFamily ( java.lang.String font ) { if ( com.android.webview.chromium.ContentSettingsAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.ContentSettingsAdapter.LOGTAG , ( "setFixedFontFamily=" + font ) ) ; mAwSettings.setFixedFontFamily ( font ) ; }
Source:
public boolean notifyDeviceStatus ( com.android.bluetooth.hfp.HeadsetDeviceState deviceState ) { return notifyDeviceStatusNative ( deviceState.mService , deviceState.mRoam , deviceState.mSignal , deviceState.mBatteryCharge ) ; }

Target:
public boolean notifyDeviceStatus ( android.bluetooth.BluetoothDevice device , com.android.bluetooth.hfp.HeadsetDeviceState deviceState ) { return notifyDeviceStatusNative ( deviceState.mService , deviceState.mRoam , deviceState.mSignal , deviceState.mBatteryCharge , com.android.bluetooth.Utils.getByteAddress ( device ) ) ; }
Source:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { if ( mIsInitMethod ) { mParentVisitor.visitMethodInsn ( opcode , owner , name , desc ) ; } }

Target:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc , boolean itf ) { if ( mIsInitMethod ) { mParentVisitor.visitMethodInsn ( opcode , owner , name , desc , itf ) ; } }
Source:
public java.util.ListIterator < E > listIterator ( ) { return new java.util.concurrent.CopyOnWriteArrayList.COWIterator < E > ( getArray ( ) , 0 ) ; }

Target:
public synchronized E remove ( int index ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) E removed = ( ( E ) ( elements [ index ] ) ) ; removeRange ( index , ( index + 1 ) ) ; return removed ; }
Source:
public void test_en ( ) throws java.lang.Exception { libcore.icu.ImmutableIndex en = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.ENGLISH ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( en , "Allen" , "A" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( en , "allen" , "A" ) ; }

Target:
public void test_en ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex en = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.ENGLISH ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( en , "Allen" , "A" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( en , "allen" , "A" ) ; }
Source:
public final int getSize ( ) { return mClass.getSize ( ) ; }

Target:
public final int getSize ( ) { return mClass.getInstanceSize ( ) ; }
Source:
protected void setServiceInterface ( android.os.IBinder binder ) { if ( binder == null ) { handleConnectionServiceDeath ( ) ; mCallsManager.handleConnectionServiceDeath ( this ) ; mServiceInterface = null ; } else { mServiceInterface = IConnectionService.Stub.asInterface ( binder ) ; addConnectionServiceAdapter ( mAdapter ) ; } }

Target:
protected void removeServiceInterface ( ) { android.telecom.Log.v ( this , "Removing Connection Service Adapter." ) ; removeConnectionServiceAdapter ( mAdapter ) ; handleConnectionServiceDeath ( ) ; mCallsManager.handleConnectionServiceDeath ( this ) ; mServiceInterface = null ; }
Source:
public com.android.sched.vfs.MessageDigestInputVFS.MessageDigestInputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileOrDirectoryException { return new com.android.sched.vfs.MessageDigestInputVFS.MessageDigestInputVFile ( dir.getInputVFile ( path ) , digests.get ( path ) ) ; }

Target:
public com.android.sched.vfs.MessageDigestInputVFS.MessageDigestInputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { com.android.sched.vfs.VPath filePathToRoot = pathToRoot.clone ( ) ; filePathToRoot.appendPath ( path ) ; return new com.android.sched.vfs.MessageDigestInputVFS.MessageDigestInputVFile ( dir.getInputVFile ( path ) , digests.get ( filePathToRoot ) ) ; }
Source:
public void testVFE15 ( ) { try { new dot.junit.opcodes.invoke_interface.d.T_invoke_interface_16 ( ) . run ( new dot.junit.opcodes.invoke_interface.ITestImpl ( ) ) ; fail ( "expected NoSuchMethodError" ) ; } catch ( java.lang.NoSuchMethodError t ) { } }

Target:
public void testE4_2 ( ) { loadAndRun ( "dot.junit.opcodes.invoke_interface.d.T_invoke_interface_11" , java.lang.IncompatibleClassChangeError.class ) ; loadAndRun ( "dot.junit.opcodes.invoke_interface.d.T_invoke_interface_11" , java.lang.IncompatibleClassChangeError.class ) ; }
Source:
java.util.Map < ? , ? > getDefaultAttributes ( ) ;

Target:
void onChildInserted ( com.android.ide.common.api.INode child , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) ;
Source:
public java.lang.String toString ( ) { return ( ( ( timeToLog ( mTimestamp ) ) + ( mEnable ? " Enabled " : " Disabled " ) ) + " by " ) + ( mPackageName ) ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( com.android.server.BluetoothManagerService.timeToLog ( mTimestamp ) ) + ( mEnable ? " Enabled " : " Disabled " ) ) + " due to " ) + ( com.android.server.BluetoothManagerService.getEnableDisableReasonString ( mReason ) ) ) + " by " ) + ( mPackageName ) ; }
Source:
public boolean onUnbind ( android.content.Intent intent ) { android.util.Log.i ( android.telecom.cts.CtsConnectionService.LOG_TAG , "Service has been unbound" ) ; org.junit.Assert.assertTrue ( android.telecom.cts.CtsConnectionService.mIsServiceBound ) ; android.telecom.cts.CtsConnectionService.mIsServiceBound = false ; return super . onUnbind ( intent ) ; }

Target:
public boolean onUnbind ( android.content.Intent intent ) { android.util.Log.i ( android.telecom.cts.CtsConnectionService.LOG_TAG , "Service has been unbound" ) ; android.telecom.cts.CtsConnectionService.sServiceUnBoundLatch.countDown ( ) ; android.telecom.cts.CtsConnectionService.sIsBound = false ; return super . onUnbind ( intent ) ; }
Source:
protected void needNetworkFor ( android.net.NetworkRequest networkRequest , int score ) { if ( DBG ) log ( ( "Cellular needs Network for " + networkRequest ) ) ; com.android.internal.telephony.dataconnection.ApnContext apnContext = apnContextForNetworkRequest ( networkRequest ) ; if ( apnContext != null ) apnContext.incRefCount ( ) ; }

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 static float scalb ( float f , int scaleFactor ) { return sun.misc.FpUtils.scalb ( f , scaleFactor ) ; }

Target:
public static double scalb ( double d , int scaleFactor ) { return java.lang.Math.scalb ( d , scaleFactor ) ; }
Source:
public void close ( ) throws java.io.IOException { if ( ( java.net.ResponseCache.getDefault ( ) ) == ( this ) ) { java.net.ResponseCache.setDefault ( null ) ; } delegate.getCache ( ) . close ( ) ; }

Target:
public void delete ( ) throws java.io.IOException { if ( ( java.net.ResponseCache.getDefault ( ) ) == ( this . delegate ) ) { java.net.ResponseCache.setDefault ( null ) ; } delegate.delete ( ) ; }
Source:
public void test_plusDays_overLeapYears ( ) { java.time.LocalDate t = TEST_2007_07_15.plusYears ( ( - 1 ) ) . plusDays ( ( 365 + 366 ) ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2008 , 7 , 15 ) ) ; }

Target:
public void test_plusDays_overLeapYears ( ) { java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.plusYears ( ( - 1 ) ) . plusDays ( ( 365 + 366 ) ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2008 , 7 , 15 ) ) ; }
Source:
java.io.File getNativeSource ( ) ;

Target:
com.android.build.gradle.AndroidSourceFile srcFile ( java.lang.Object o ) ;
Source:
public void testHasMyPackageNameDoesNotMatch ( ) { assertFalse ( android.support.test.espresso.intent.matcher.ComponentNameMatchers.hasMyPackageName ( ) . matches ( android.support.test.espresso.intent.matcher.ComponentNameMatchersTest.c ) ) ; }

Target:
public void hasMyPackageNameDoesNotMatch ( ) { org.junit.Assert.assertFalse ( android.support.test.espresso.intent.matcher.ComponentNameMatchers.hasMyPackageName ( ) . matches ( android.support.test.espresso.intent.matcher.ComponentNameMatchersTest.c ) ) ; }
Source:
public boolean checkCrossProfileIntentFilters ( int flag ) { boolean crossProfileIntentFiltersSet ; if ( flag == ( com.android.cts.verifier.managedprovisioning.IntentFiltersTestHelper.FLAG_INTENTS_FROM_PRIMARY ) ) { crossProfileIntentFiltersSet = checkForIntentsFromPrimary ( ) ; } else { crossProfileIntentFiltersSet = checkForIntentsFromManaged ( ) ; } return crossProfileIntentFiltersSet ; }

Target:
public boolean checkCrossProfileIntentFilters ( int flag ) { boolean crossProfileIntentFiltersSet ; if ( flag == ( com.android.cts.verifier.managedprovisioning.IntentFiltersTestHelper.FLAG_INTENTS_FROM_PRIMARY ) ) { crossProfileIntentFiltersSet = checkIntentForwardingFromPrimary ( ) ; } else { crossProfileIntentFiltersSet = ( checkIntentForwardingFromManaged ( ) ) && ( checkIntentsWithOptionalForwardingFromManagedAreHandled ( ) ) ; } return crossProfileIntentFiltersSet ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeString ( encodedActivationCode ) ; dest.writeString ( carrierName ) ; dest.writeTypedArray ( accessRules , flags ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeString ( encodedActivationCode ) ; dest.writeString ( confirmationCode ) ; dest.writeString ( carrierName ) ; dest.writeTypedArray ( accessRules , flags ) ; }
Source:
protected byte [ ] engineGetIV ( ) { return ( ivParam ) != null ? ivParam.getIV ( ) : null ; }

Target:
protected byte [ ] engineGetIV ( ) { if ( ( aeadParams ) != null ) { return aeadParams.getNonce ( ) ; } return ( ivParam ) != null ? ivParam.getIV ( ) : null ; }
Source:
public java.io.PrintStream getPrintStream ( ) { return java.lang.System.out ; }

Target:
public java.io.PrintStream getPrintStream ( ) { return new com.android.sched.util.stream.UncloseablePrintStream ( java.lang.System.out ) ; }
Source:
public boolean close ( ) { com.android.sdkuilib.internal.repository.UpdateChooserDialog.sLastSize = getShell ( ) . getSize ( ) ; return super . close ( ) ; }

Target:
public boolean close ( ) { com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.sLastSize = getShell ( ) . getSize ( ) ; return super . close ( ) ; }
Source:
public android.net.INetworkStatsSession openSession ( ) { return createSession ( null , false ) ; }

Target:
public android.net.INetworkStatsSession openSessionForUsageStats ( int flags , java.lang.String callingPackage ) { return openSessionInternal ( flags , callingPackage ) ; }
Source:
protected java.lang.String getOatFileName ( java.lang.String programName ) { return ( ( testLocation.replace ( "/" , "@" ) . substring ( 1 ) ) + "@" ) + programName ; }

Target:
public void prepareProgramForExecution ( java.lang.String programName ) { if ( ! ( dexfuzz.Options.executeOnHost ) ) { device.pushProgramToDevice ( programName , testLocation ) ; } if ( needsCleanCodeCache ) { device.cleanCodeCache ( architecture , testLocation , programName ) ; } }
Source:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; mCarQualifier = null ; mDeskQualifier = null ; mNoneQualifier = null ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; mCarQualifier = null ; mDeskQualifier = null ; mTVQualifier = null ; mNoneQualifier = null ; }
Source:
void registerSync ( android.bluetooth.le.ScanResult scanResult , int skip , int timeout , android.bluetooth.le.IPeriodicAdvertisingCallback callback ) { enforceAdminPermission ( ) ; }

Target:
void unregisterSync ( android.bluetooth.le.IPeriodicAdvertisingCallback callback ) { enforceAdminPermission ( ) ; mPeriodicScanManager.stopSync ( callback ) ; }
Source:
protected int peekData ( java.net.DatagramPacket arg0 ) throws java.io.IOException { return 0 ; }

Target:
protected byte getTTL ( ) throws java.io.IOException { return 0 ; }
Source:
public static com.android.internal.telephony.uicc.UiccController getInstance ( ) { return com.android.internal.telephony.uicc.UiccController.getInstance ( null ) ; }

Target:
public static com.android.internal.telephony.uicc.UiccController getInstance ( ) { synchronized ( com.android.internal.telephony.uicc.UiccController.mLock ) { if ( ( com.android.internal.telephony.uicc.UiccController.mInstance ) == null ) { throw new java.lang.RuntimeException ( "UiccController.getInstance can't be called before make()" ) ; } return com.android.internal.telephony.uicc.UiccController.mInstance ; } }
Source:
public void onChange ( boolean selfChange ) { reloadBlacklist ( ) ; }

Target:
public void onChange ( boolean selfChange ) { synchronized ( mLock ) { updateProvidersLocked ( ) ; } }
Source:
int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( ( ( mHidDevice ) != null ) && ( mHidDevice.equals ( device ) ) ) { return mHidDeviceState ; } return android.bluetooth.BluetoothInputHost.STATE_DISCONNECTED ; }

Target:
int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( ( ( mHidDevice ) != null ) && ( mHidDevice.equals ( device ) ) ) { return mHidDeviceState ; } return android.bluetooth.BluetoothHidDevice.STATE_DISCONNECTED ; }
Source:
public void resetSapProxy ( ) { mSapProxy = null ; }

Target:
public void resetSapProxy ( ) { synchronized ( mSapProxyLock ) { mSapProxy = null ; } }
Source:
public static int XorAllOnes ( int arg ) { return arg ^ ( - 1 ) ; }

Target:
public static int $noinline$XorAllOnes ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg ^ ( - 1 ) ; }
Source:
private native void nativeNotifyFocusSet ( boolean inEditingMode ) ;

Target:
private native android.graphics.Point nativeCursorPosition ( ) ;
Source:
native void rsnScriptForEachClipped ( int con , int id , int slot , int ain , int aout , int xstart , int xend , int ystart , int yend , int zstart , int zend ) ;

Target:
native void rsnScriptSetVarJ ( long con , long id , int slot , long val ) ;
Source:
boolean isIncluded ( ) { return ( ( mIncludedBy ) != null ) && ( ( mIncludedBy.size ( ) ) > 0 ) ; }

Target:
boolean isIncluded ( ) { return ( ( mIncludedBy ) != null ) && ( ! ( mIncludedBy.isEmpty ( ) ) ) ; }
Source:
static int hashCodeImpl ( java.util.Map < ? , ? > map ) { return com.google.common.collect.Sets.hashCodeImpl ( map.entrySet ( ) ) ; }

Target:
public java.util.Set < V > values ( ) { return inverse.keySet ( ) ; }
Source:
private void setExpectedLifecycle ( java.lang.String [ ] lifecycle ) { mExpectedLifecycle = lifecycle ; mNextLifecycle = 0 ; }

Target:
private void resetLifecycles ( ) { mNextLifecycle = 0 ; mExpectedLifecycle = null ; mOtherPossibleLifecycles.clear ( ) ; mLifecycleNames.clear ( ) ; }
Source:
public static int $noinline$intSubAddSimplifyRight ( int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int sub = x - y ; return y + sub ; }

Target:
public static float $noinline$floatSubAddSimplifyRight ( float x , float y ) { float sub = x - y ; return y + sub ; }
Source:
public com.android.dx.merge.SortableType adjust ( com.android.dx.merge.SortableType sortableType ) { return new com.android.dx.merge.SortableType ( sortableType.getBuffer ( ) , adjust ( sortableType.getClassDef ( ) ) ) ; }

Target:
public com.android.dx.merge.SortableType adjust ( com.android.dx.merge.SortableType sortableType ) { return new com.android.dx.merge.SortableType ( sortableType.getDex ( ) , adjust ( sortableType.getClassDef ( ) ) ) ; }
Source:
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 ; }

Target:
public static long LongRemainder ( ) { long a ; long b ; long c ; a = 8L ; b = 3L ; c = a % b ; return c ; }
Source:
public void addJavaSourceFoldersToModel ( @ com.android.annotations.NonNull java.io.File ... generatedSourceFolders ) { java.util.Collections.addAll ( extraGeneratedSourceFolders , generatedSourceFolders ) ; }

Target:
public void addJavaSourceFoldersToModel ( @ com.android.annotations.NonNull java.io.File ... generatedSourceFolders ) { if ( ( extraGeneratedSourceFolders ) == null ) { extraGeneratedSourceFolders = com.google.common.collect.Lists.newArrayList ( ) ; } java.util.Collections.addAll ( extraGeneratedSourceFolders , generatedSourceFolders ) ; }
Source:
public void callSessionMultipartyStateChanged ( com.android.ims.internal.IImsCallSession i , boolean isMultiparty ) throws android.os.RemoteException { mNewListener.callSessionMultipartyStateChanged ( isMultiparty ) ; }

Target:
public void callSessionRttModifyRequestReceived ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsCallProfile imsCallProfile ) throws android.os.RemoteException { mNewListener.callSessionRttModifyRequestReceived ( imsCallProfile ) ; }
Source:
public static boolean putString ( android.content.ContentResolver resolver , java.lang.String name , java.lang.String value ) { return android.provider.Settings.Global.putStringForUser ( resolver , name , value , android.os.UserHandle.myUserId ( ) ) ; }

Target:
public static boolean putStringForUser ( android.content.ContentResolver resolver , java.lang.String name , java.lang.String value , int userHandle ) { return android.provider.Settings.Global.putStringForUser ( resolver , name , value , null , false , userHandle ) ; }
Source:
public com.android.ahat.heapdump.Value getBaselineDumpedValue ( java.lang.String name ) { return getDumpedValue ( name , mBaseline ) ; }

Target:
public com.android.ahat.heapdump.Value getBaselineDumpedValue ( java.lang.String name ) { return com.android.ahat.TestDump.getDumpedValue ( name , mBaselineMain ) ; }
Source:
public boolean onTouch ( android.view.View v , android.view.MotionEvent event ) { return true ; }

Target:
private void releaseFocus ( ) { android.view.WindowManager.LayoutParams lp = ( ( android.view.WindowManager.LayoutParams ) ( mStatusBarWindow.getLayoutParams ( ) ) ) ; lp.flags |= android.view.ViewGroup.LayoutParams.FLAG_NOT_FOCUSABLE ; lp.flags &= ~ ( android.view.ViewGroup.LayoutParams.FLAG_ALT_FOCUSABLE_IM ) ; mWindowManager.updateViewLayout ( mStatusBarWindow , lp ) ; }
Source:
private void expectSetUidForeground ( int uid , boolean uidForeground ) throws java.lang.Exception { mStatsService.setUidForeground ( uid , uidForeground ) ; org.easymock.EasyMock.expectLastCall ( ) . atLeastOnce ( ) ; }

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 w ( java.lang.String prefix , java.lang.String format , java.lang.Object ... args ) { if ( android.telecom.Log.WARN ) { android.util.Log.w ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( prefix , format , args ) ) ; } }

Target:
public static void w ( java.lang.Object objectPrefix , java.lang.String format , java.lang.Object ... args ) { if ( android.telecom.Log.WARN ) { android.util.Slog.w ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( android.telecom.Log.getPrefixFromObject ( objectPrefix ) , format , args ) ) ; } }
Source:
public java.util.Iterator charsets ( ) { java.util.Vector v = new java.util.Vector ( ) ; v.add ( new tests.api.java.nio.charset.CharsetTest.MockCharset ( "US-ASCII" , new java.lang.String [ ] { "ASCII" } ) ) ; return v.iterator ( ) ; }

Target:
public java.util.Iterator charsets ( ) { java.util.Vector v = new java.util.Vector ( ) ; v.add ( new org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset ( "US-ASCII" , new java.lang.String [ ] { "ASCII" } ) ) ; return v.iterator ( ) ; }
Source:
public void switchToProfile ( java.lang.String callingPackage , java.lang.String iccid , boolean refresh , com.android.internal.telephony.euicc.ISwitchToProfileCallback callback ) { checkCallingPackage ( callingPackage ) ; }

Target:
public void onException ( java.lang.Throwable e ) { try { callback.onComplete ( getResultCode ( e ) , null ) ; } catch ( android.os.RemoteException exception ) { throw exception.rethrowFromSystemServer ( ) ; } }
Source:
public boolean processFile ( @ com.android.annotations.NonNull java.io.File dependencyFile ) { return true ; }

Target:
public com.android.builder.internal.incremental.DependencyData processFile ( @ com.android.annotations.NonNull java.io.File dependencyFile ) { return null ; }
Source:
public final void addRoot ( com.android.tools.perflib.heap.RootObj root ) { mCurrentHeap.addRoot ( root ) ; }

Target:
public final void addRoot ( com.android.tools.perflib.heap.RootObj root ) { mCurrentHeap.addRoot ( root ) ; root.setHeap ( mCurrentHeap ) ; }
Source:
void disconnectHeadset ( ) { synchronized ( mScoClients ) { if ( ( mBluetoothHeadsetDevice ) != null ) { setBtScoDeviceConnectionState ( mBluetoothHeadsetDevice , BluetoothProfile.STATE_DISCONNECTED ) ; } mBluetoothHeadset = null ; } }

Target:
void disconnectHeadset ( ) { synchronized ( mScoClients ) { setBtScoActiveDevice ( null ) ; mBluetoothHeadset = null ; } }
Source:
protected void onRadioAvailable ( ) { sendScreenState ( true ) ; }

Target:
private void decrementWakeLock ( ) { synchronized ( mWakeLock ) { if ( ( mWakeLockCount ) > 1 ) { ( mWakeLockCount ) -- ; } else { mWakeLockCount = 0 ; mWakeLock.release ( ) ; mSender.removeMessages ( com.android.internal.telephony.RIL.EVENT_WAKE_LOCK_TIMEOUT ) ; } } }
Source:
public void onPause ( ) { mSettingsContentObserver.unregister ( getContentResolver ( ) ) ; super . onPause ( ) ; }

Target:
public void onPause ( ) { mSettingsContentObserver.unregister ( getContentResolver ( ) ) ; if ( ( mSearchView ) != null ) { mSearchView.setOnQueryTextListener ( null ) ; } super . onPause ( ) ; }
Source:
public void testWildcardMatchingEmptySubstring ( ) { assertTrue ( verifier.verifyHostName ( "imap.google.com" , "imap*.google.com" ) ) ; }

Target:
public void testWildcardCannotMatchEmptyLabel ( ) { assertFalse ( verifyWithDomainNamePattern ( "example.com" , "*.example.com" ) ) ; assertFalse ( verifyWithDomainNamePattern ( ".example.com" , "*.example.com" ) ) ; }
Source:
public void setEnabledProtocols ( java.lang.String [ ] protocols ) { sslParameters.openSslEnabledProtocols = org.conscrypt.NativeCrypto.checkEnabledProtocols ( protocols ) ; }

Target:
public void setEnabledProtocols ( java.lang.String [ ] protocols ) { sslParameters.setEnabledProtocols ( protocols ) ; }
Source:
public void getCdmaRoamingPreferenceResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , int var2 ) { }

Target:
public void getCdmaRoamingPreferenceResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , int type ) { responseInts ( responseInfo , type ) ; }
Source:
public boolean hasChildren ( java.lang.Object element ) { return ( element instanceof com.android.sdklib.internal.repository.SdkSource ) || ( element instanceof java.lang.Package ) ; }

Target:
public boolean hasChildren ( java.lang.Object element ) { return ( ( element instanceof com.android.sdklib.internal.repository.SdkSourceCategory ) || ( element instanceof com.android.sdklib.internal.repository.SdkSource ) ) || ( element instanceof java.lang.Package ) ; }
Source:
public void render ( T model , org.gradle.api.internal.html.SimpleHtmlWriter writer ) { contentRenderer.execute ( writer ) ; }

Target:
public void render ( T model , com.android.build.gradle.internal.test.report.SimpleHtmlWriter writer ) { contentRenderer.execute ( writer ) ; }
Source:
public static native int EVP_DigestInit ( int evp_md ) ;

Target:
public static native void EVP_MD_CTX_destroy ( long ctx ) ;
Source:
final byte getByte ( int offset ) { return sun.nio.ch.NativeObject.unsafe.getByte ( ( offset + ( address ) ) ) ; }

Target:
final byte getByte ( int offset ) { return sun.nio.ch.NativeObject.unsafe.getByte$ ( ( offset + ( address ) ) ) ; }
Source:
public void onStartUser ( int userHandle ) { mMountService.onStartUser ( userHandle ) ; }

Target:
public void onBootPhase ( int phase ) { if ( phase == ( SystemService.PHASE_ACTIVITY_MANAGER_READY ) ) { mMountService.systemReady ( ) ; } else if ( phase == ( SystemService.PHASE_BOOT_COMPLETED ) ) { mMountService.bootCompleted ( ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { android.content.Context context = android.support.test.InstrumentationRegistry.getContext ( ) ; mPackageStatusStorage = new com.android.server.timezone.PackageStatusStorage ( context ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { android.content.Context context = android.support.test.InstrumentationRegistry.getContext ( ) ; java.io.File dataDir = context.getFilesDir ( ) ; mPackageStatusStorage = new com.android.server.timezone.PackageStatusStorage ( dataDir ) ; }
Source:
public void clientCertificateRequested ( long s ) { super . clientCertificateRequested ( s ) ; org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getClientPrivateKey ( ) . getPkeyContext ( ) ) ; org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getClientCertificates ( ) ) ; }

Target:
public void clientCertificateRequested ( long s ) { super . clientCertificateRequested ( s ) ; org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getClientPrivateKey ( ) . getNativeRef ( ) ) ; org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getClientCertificates ( ) ) ; }
Source:
public static int intConditionNotEqualOne ( int i ) { return ( i > 42 ) == true ? 13 : 54 ; }

Target:
public static int intConditionEqualZero ( int i ) { return ( i > 42 ) != ( Main.$inline$false ( ) ) ? 13 : 54 ; }
Source:
public void addEmergencyListener ( com.android.systemui.statusbar.policy.NetworkControllerImpl.EmergencyListener listener ) { mCallbackHandler.setListening ( listener , true ) ; mCallbackHandler.setEmergencyCallsOnly ( isEmergencyOnly ( ) ) ; }

Target:
public void addEmergencyListener ( com.android.systemui.statusbar.policy.EmergencyListener listener ) { mCallbackHandler.setListening ( listener , true ) ; mCallbackHandler.setEmergencyCallsOnly ( isEmergencyOnly ( ) ) ; }
Source:
public void warning ( org.xml.sax.SAXParseException e ) { log.printf ( "Warning when parsing %s: %s" , xmlFile.getName ( ) , e.toString ( ) ) ; }

Target:
public void warning ( org.xml.sax.SAXParseException e ) { log.error ( Severity.WARNING , new com.android.manifmerger.IMergerLog.FileAndLine ( xmlFile.getName ( ) , 0 ) , "Warning when parsing: %1$s" , e.toString ( ) ) ; }
Source:
public java.lang.Boolean call ( ) { return onKeyDown ( keyCode , event ) ; }

Target:
public java.lang.Boolean call ( ) { return onKeyMultiple ( keyCode , repeatCount , event ) ; }
Source:
public static void computeSinpi ( android.renderscript.cts.TestSinpi.ArgumentsFloatFloat args ) { args.ulf = 5 ; args.ulfRelaxed = 128 ; args.out = ( ( float ) ( java.lang.StrictMath.sin ( ( ( args.in ) * ( ( float ) ( java.lang.StrictMath.PI ) ) ) ) ) ) ; }

Target:
public static void computeConvert ( android.renderscript.cts.TestConvert.ArgumentsUshortFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.convertUshortToFloat ( args.inV ) , 0 , 0 ) ; }
Source:
boolean isEnabled ( ) ;

Target:
boolean isEnabled ( @ android.support.annotation.NonNull android.content.Context context ) ;
Source:
void setOnUnsolOemHookRaw ( android.os.Handler h , int what , java.lang.Object obj ) ;

Target:
void unregisterForModemReset ( android.os.Handler h ) ;
Source:
public void test_SSL_check_private_key_null ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_check_private_key ( org.conscrypt.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void test_SSL_check_private_key_null ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_check_private_key ( org.conscrypt.NativeCryptoTest.NULL ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public java.lang.String getClassName ( ) { java.util.regex.Matcher matcher = methodStringMatcher ( ) ; return matcher.matches ( ) ? matcher.group ( 2 ) : toString ( ) ; }

Target:
public org.junit.runner.Description childlessCopy ( ) { return new org.junit.runner.Description ( fTestClass , fDisplayName , fAnnotations ) ; }
Source:
private synchronized void writeObject ( java.io.ObjectOutputStream s ) throws java.io.IOException { s.defaultWriteObject ( ) ; s.writeChar ( this . separatorChar ) ; }

Target:
private synchronized void writeObject ( java.io.ObjectOutputStream s ) throws java.io.IOException { s.defaultWriteObject ( ) ; s.writeChar ( java.io.File.separatorChar ) ; }
Source:
public void visitBlock ( com.android.dx.cf.code.BasicBlock b ) { if ( isSubroutineCaller ( b ) ) { reachableSubroutineCallerLabels.add ( b.getLabel ( ) ) ; } }

Target:
public void visitBlock ( com.android.dx.rop.code.BasicBlock b ) { if ( isSubroutineCaller ( b ) ) { reachableSubroutineCallerLabels.add ( b.getLabel ( ) ) ; } }
Source:
public void onConnectFail ( @ android.net.wifi.nan.WifiNanEventCallback.EventReasonCodes int reason ) { }

Target:
public void onAttachFailed ( @ android.net.wifi.nan.WifiNanEventCallback.EventReasonCodes int reason ) { }
Source:
public void testAlternateFormatsContainsData ( ) throws java.lang.Exception { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata germanyAlternateFormats = com.google.i18n.phonenumbers.MetadataManager.getAlternateFormatsForCountry ( 49 ) ; assertNotNull ( germanyAlternateFormats ) ; assertTrue ( ( ( germanyAlternateFormats.numberFormats ( ) . size ( ) ) > 0 ) ) ; }

Target:
public void testAlternateFormatsLoadCorrectly ( ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata germanyMetadata = com.google.i18n.phonenumbers.MetadataManager.getAlternateFormatsForCountry ( 49 ) ; assertNotNull ( germanyMetadata ) ; assertTrue ( ( ( germanyMetadata.numberFormats ( ) . size ( ) ) > 0 ) ) ; }
Source:
public void plug ( long batteryUptime , long batteryRealtime ) { super . plug ( batteryUptime , batteryRealtime ) ; mInDischarge = false ; }

Target:
public void plug ( long elapsedRealtime , long batteryUptime , long batteryRealtime ) { super . plug ( elapsedRealtime , batteryUptime , batteryRealtime ) ; mInDischarge = false ; }
Source:
public static void computeClz ( android.renderscript.cts.TestClz.ArgumentsCharChar args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; int x = args.inValue ; args.out = ( ( byte ) ( ( java.lang.Integer.numberOfLeadingZeros ( ( x & 255 ) ) ) - 24 ) ) ; }

Target:
public static void computeClz ( android.renderscript.cts.TestClz.ArgumentsUcharUchar args ) { int x = args.inValue ; args.out = ( ( byte ) ( ( java.lang.Integer.numberOfLeadingZeros ( ( x & 255 ) ) ) - 24 ) ) ; }
Source:
public boolean isDefault ( ) { for ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier irq : mQualifiers ) { if ( irq != null ) { return false ; } } return true ; }

Target:
public boolean isDefault ( ) { for ( com.android.ide.common.resources.configuration.ResourceQualifier irq : mQualifiers ) { if ( irq != null ) { return false ; } } return true ; }
Source:
public com.android.sched.vfs.InputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileOrDirectoryException { assert ! ( closed ) ; return dir.getInputVFile ( path ) ; }

Target:
public com.android.sched.vfs.InputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileOrDirectoryException { assert ! ( isClosed ( ) ) ; return dir.getInputVFile ( path ) ; }
Source:
private static native int native_saveLayer ( int nativeCanvas , float l , float t , float r , float b , int paint , int layerFlags ) ;

Target:
private static native int native_saveLayer ( long nativeCanvas , float l , float t , float r , float b , long nativePaint , int layerFlags ) ;
Source:
public void cleanup ( ) { mRemoteDevices = null ; if ( ( mProfileConnectionState ) != null ) { mProfileConnectionState.clear ( ) ; mProfileConnectionState = null ; } mService = null ; mBondedDevices.clear ( ) ; }

Target:
public void cleanup ( ) { mRemoteDevices = null ; if ( ( mProfileConnectionState ) != null ) { mProfileConnectionState.clear ( ) ; mProfileConnectionState = null ; } mService.unregisterReceiver ( mReceiver ) ; mService = null ; mBondedDevices.clear ( ) ; }
Source:
com.android.sched.vfs.BaseVFile getVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { return vfs.getVFile ( parent , name ) ; }

Target:
com.android.sched.vfs.BaseVFile getVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { return changeVFS ( vfs.getVFile ( parent , name ) ) ; }
Source:
public java.io.File getJarJarRuleFile ( ) { return null ; }

Target:
public java.util.List < java.io.File > getJarJarRuleFiles ( ) { return com.google.common.collect.ImmutableList.of ( ) ; }
Source:
void unregAll ( ) { for ( com.android.bluetooth.gatt.ClientMap.App app : mClientMap.mApps ) { if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "unreg:" + ( app.id ) ) ) ; unregisterClient ( app.id ) ; } }

Target:
void unregAll ( ) { for ( java.lang.Integer appId : mClientMap.getAllAppsIds ( ) ) { if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "unreg:" + appId ) ) ; unregisterClient ( appId ) ; } }
Source:
public void visitLocalVariableTableAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Method method , proguard.classfile.attribute.visitor.CodeAttribute codeAttribute , proguard.classfile.attribute.visitor.LocalVariableTableAttribute localVariableTableAttribute ) { if ( accepted ( clazz , localVariableTableAttribute ) ) { localVariableTableAttribute.accept ( clazz , method , codeAttribute , attributeVisitor ) ; } }

Target:
public void visitRuntimeVisibleTypeAnnotationsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.RuntimeVisibleTypeAnnotationsAttribute runtimeVisibleTypeAnnotationsAttribute ) { if ( accepted ( clazz , runtimeVisibleTypeAnnotationsAttribute ) ) { attributeVisitor.visitRuntimeVisibleTypeAnnotationsAttribute ( clazz , runtimeVisibleTypeAnnotationsAttribute ) ; } }
Source:
public int getSize ( ) { return 1 ; }

Target:
public void afterVisitCast ( lombok.ast.Cast node ) { com.android.tools.lint.client.api.JavaParser.ResolvedClass resolvedClass = mTypes.get ( node ) ; if ( resolvedClass != null ) { mTypes.put ( node , resolvedClass ) ; } }
Source:
public boolean isServiceAvailable ( ) { if ( ( mImsServiceProxy ) == null ) { createImsService ( ) ; } return mImsServiceProxy.isBinderAlive ( ) ; }

Target:
public boolean isServiceAvailable ( ) { connectIfServiceIsAvailable ( ) ; return mImsServiceProxy.isBinderAlive ( ) ; }
Source:
public static native void doCommonClassRedefinition ( java.lang.Class < ? > target , byte [ ] classfile , byte [ ] dexfile ) throws java.lang.Exception ;

Target:
public static void doCommonClassRedefinition ( java.lang.Class < ? > target , byte [ ] classfile , byte [ ] dexfile ) throws java.lang.Exception { art.Redefinition.doCommonClassRedefinition ( target , classfile , dexfile ) ; }
Source:
public boolean getBooleanValue ( ) throws com.android.apksigner.AndroidBinXmlParser.XmlParserException { switch ( mValueType ) { case com.android.apksigner.AndroidBinXmlParser.Attribute.TYPE_INT_BOOLEAN : return ( mValueData ) != 0 ; default : throw new com.android.apksigner.AndroidBinXmlParser.XmlParserException ( ( "Cannot coerce to boolean: value type " + ( mValueType ) ) ) ; } }

Target:
public boolean getBooleanValue ( ) throws com.android.apksig.apk.AndroidBinXmlParser.XmlParserException { switch ( mValueType ) { case com.android.apksig.apk.AndroidBinXmlParser.Attribute.TYPE_INT_BOOLEAN : return ( mValueData ) != 0 ; default : throw new com.android.apksig.apk.AndroidBinXmlParser.XmlParserException ( ( "Cannot coerce to boolean: value type " + ( mValueType ) ) ) ; } }
Source:
public void clearNitzTimeZoneDetectionSuccessful ( ) { mNitzTimeZoneDetectionSuccessful = false ; }

Target:
public void handleNetworkAvailable ( ) { if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , ( ( "handleNetworkAvailable: mNitzTimeZoneDetectionSuccessful=" + ( mNitzTimeZoneDetectionSuccessful ) ) + ", Setting mNitzTimeZoneDetectionSuccessful=false" ) ) ; } mNitzTimeZoneDetectionSuccessful = false ; }
Source:
public float getAspectRatio ( ) { return ( mBaseWidth ) / ( mBaseHeight ) ; }

Target:
public float getBaseHeight ( ) { return mBaseHeight ; }
Source:
private void initInternal ( org.conscrypt.OpenSSLKey newKey ) throws java.security.InvalidKeyException { destroyContextIfExists ( ) ; checkEngineType ( newKey ) ; key = newKey ; }

Target:
private void initInternal ( org.conscrypt.OpenSSLKey newKey , boolean signing ) throws java.security.InvalidKeyException { checkEngineType ( newKey ) ; key = newKey ; this . signing = signing ; resetContext ( ) ; }
Source:
public com.android.jack.test.toolchain.JackApiV01Toolchain build ( ) { return new com.android.jack.test.toolchain.JackApiV01TwoStepsToolchain ( com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jack" ) ) ; }

Target:
public com.android.jack.test.toolchain.JackApiV02Toolchain build ( ) { java.io.File jackPrebuilt = ( com.android.jack.test.toolchain.AbstractTestTools.isPrebuiltAvailable ( "jack" ) ) ? com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jack" ) : null ; return new com.android.jack.test.toolchain.JackApiV02Toolchain ( jackPrebuilt ) ; }
Source:
final boolean cas ( long cmp , long val ) { return com.google.common.cache.Striped64.Cell.UNSAFE.compareAndSwapLong ( this , com.google.common.cache.Striped64.Cell.valueOffset , cmp , val ) ; }

Target:
final boolean cas ( long cmp , long val ) { return com.google.common.cache.Striped64.Cell.valueUpdater.compareAndSet ( this , cmp , val ) ; }
Source:
static void constantIndexing4 ( int [ ] array ) { array [ 0 ] = 1 ; }

Target:
static void constantIndexing2b ( int [ ] array ) { array [ 0 ] = 7 ; array [ 1 ] = 7 ; array [ 2 ] = 7 ; array [ 3 ] = 7 ; }
Source:
public int getDate ( ) { throw new java.lang.IllegalArgumentException ( ) ; }

Target:
public int getDate ( ) { throw new java.lang.IllegalArgumentException ( "unimplemented" ) ; }
Source:
public void tesAnswerToRestFailWithoutCheckByte ( ) { java.lang.String str = "3F979581B0FE0010428031A073BE2117" ; com.android.internal.telephony.uicc.AnswerToReset atr = com.android.internal.telephony.uicc.AnswerToReset.parseAtr ( str ) ; org.junit.Assert.assertNull ( atr ) ; }

Target:
public void testAnswerToRestFailWithoutCheckByte ( ) { java.lang.String str = "3F979581B0FE0010428031A073BE2117" ; com.android.internal.telephony.uicc.AnswerToReset atr = com.android.internal.telephony.uicc.AnswerToReset.parseAtr ( str ) ; org.junit.Assert.assertNull ( atr ) ; }
Source:
public void enableVideoCalling ( boolean enable ) { enforceModifyPermission ( ) ; com.android.ims.ImsManager.setVtSetting ( mPhone.getContext ( ) , enable ) ; }

Target:
public int getSubscriptionCarrierId ( int subId ) { final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; return phone == null ? android.telephony.TelephonyManager.UNKNOWN_CARRIER_ID : phone.getCarrierId ( ) ; }
Source:
public void add ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { for ( int i = 0 ; i < ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { if ( ( config.mQualifiers [ i ] ) != null ) { mQualifiers [ i ] = config.mQualifiers [ i ] ; } } }

Target:
public void add ( com.android.ide.common.resources.configuration.FolderConfiguration config ) { for ( int i = 0 ; i < ( com.android.ide.common.resources.configuration.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { if ( ( config.mQualifiers [ i ] ) != null ) { mQualifiers [ i ] = config.mQualifiers [ i ] ; } } }
Source:
public void testUnused ( ) throws java.lang.Exception { assertEquals ( ( "unused_namespace.xml:3: Warning: Unused namespace unused1\n" + "unused_namespace.xml:4: Warning: Unused namespace unused2" ) , lintProject ( "res/layout/unused_namespace.xml" ) ) ; }

Target:
public void testUnused ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/unused_namespace.xml:3: Warning: Unused namespace unused1 [UnusedNamespace]\n" + ( ( ( ( ( ( " xmlns:unused1=\"http://schemas.android.com/apk/res/unused1\"\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/unused_namespace.xml:4: Warning: Unused namespace unused2 [UnusedNamespace]\n" ) + " xmlns:unused2=\"http://schemas.android.com/apk/res/unused1\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 2 warnings\n" ) + "" ) ) , lintProject ( "res/layout/unused_namespace.xml" ) ) ; }
Source:
public static void register ( com.android.ddmlib.MonitorThread mt ) { }

Target:
public static void register ( com.android.ddmlib.MonitorThread mt ) { mt.registerChunkHandler ( com.android.ddmlib.HandleViewDebug.CHUNK_VUGL , com.android.ddmlib.HandleViewDebug.sInstance ) ; mt.registerChunkHandler ( com.android.ddmlib.HandleViewDebug.CHUNK_VULW , com.android.ddmlib.HandleViewDebug.sInstance ) ; mt.registerChunkHandler ( com.android.ddmlib.HandleViewDebug.CHUNK_VUOP , com.android.ddmlib.HandleViewDebug.sInstance ) ; mt.registerChunkHandler ( com.android.ddmlib.HandleViewDebug.CHUNK_VURT , com.android.ddmlib.HandleViewDebug.sInstance ) ; }
Source:
private com.android.sdklib.internal.repository.packages.AddonPackage.Lib parseLib ( org.w3c.dom.Node libNode ) { return new com.android.sdklib.internal.repository.packages.AddonPackage.Lib ( com.android.sdklib.internal.repository.XmlParserUtils.getXmlString ( libNode , SdkRepoConstants.NODE_NAME ) , com.android.sdklib.internal.repository.XmlParserUtils.getXmlString ( libNode , SdkRepoConstants.NODE_DESCRIPTION ) ) ; }

Target:
private com.android.sdklib.internal.repository.packages.AddonPackage.Lib parseLib ( org.w3c.dom.Node libNode ) { return new com.android.sdklib.internal.repository.packages.AddonPackage.Lib ( com.android.sdklib.internal.repository.packages.PackageParserUtils.getXmlString ( libNode , SdkRepoConstants.NODE_NAME ) , com.android.sdklib.internal.repository.packages.PackageParserUtils.getXmlString ( libNode , SdkRepoConstants.NODE_DESCRIPTION ) ) ; }
Source:
public java.lang.String telephonyGetServiceState ( ) { return telephonyGetServiceStateForSubscription ( android.telephony.SubscriptionManager.getDefaultSubId ( ) ) ; }

Target:
public android.telephony.SignalStrength telephonyGetSignalStrength ( ) { return telephonyGetSignalStrengthForSubscription ( SubscriptionManager.DEFAULT_SUBSCRIPTION_ID ) ; }
Source:
boolean isTtySupported ( ) { boolean isEnabled = mContext.getResources ( ) . getBoolean ( R.bool.tty_enabled ) ; com.android.server.telecom.Log.v ( this , "isTtySupported: %b" , isEnabled ) ; return isEnabled ; }

Target:
boolean isTtySupported ( ) { boolean isEnabled = mContext.getResources ( ) . getBoolean ( R.bool.tty_enabled ) ; android.telecom.Log.v ( this , "isTtySupported: %b" , isEnabled ) ; return isEnabled ; }
Source:
public boolean hasFailedTests ( ) { return ( ( getNumErrorTests ( ) ) > 0 ) || ( ( getNumFailedTests ( ) ) > 0 ) ; }

Target:
public int getNumAllFailedTests ( ) { return ( getNumTestsInState ( TestStatus.FAILURE ) ) + ( getNumTestsInState ( TestStatus.ASSUMPTION_FAILURE ) ) ; }
Source:
private void checkRefactoring ( @ com.android.annotations.NonNull java.lang.Object [ ] testData , @ com.android.annotations.NonNull java.lang.Object resource , boolean updateReferences , @ com.android.annotations.NonNull java.lang.String newName , @ com.android.annotations.NonNull java.lang.String expected ) throws java.lang.Exception { org.eclipse.core.resources.IProject project = createProject ( testData ) ; checkRefactoring ( project , resource , updateReferences , newName , expected ) ; }

Target:
protected void renameResource ( @ com.android.annotations.NonNull java.lang.Object [ ] testData , @ com.android.annotations.NonNull java.lang.Object resource , boolean updateReferences , @ com.android.annotations.NonNull java.lang.String newName , @ com.android.annotations.NonNull java.lang.String expected ) throws java.lang.Exception { org.eclipse.core.resources.IProject project = createProject ( testData ) ; renameResource ( project , resource , updateReferences , newName , expected ) ; }
Source:
public void simpleName002 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( com.android.jack.reflect.ReflectTests.TEST001_WITH_SHRINK_SCHEDULABLE ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.LegacyToolchain.class ) . compileAndRunTest ( ) ; }

Target:
public void simpleName002 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( com.android.jack.reflect.ReflectTests.TEST001_WITH_SHRINK_SCHEDULABLE ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.LegacyBasedToolchain.class ) . compileAndRunTest ( ) ; }
Source:
public void inputChanged ( org.eclipse.jface.viewers.Viewer viewer , java.lang.Object oldInput , java.lang.Object newInput ) { mInput = null ; if ( newInput instanceof com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration ) { mInput = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration ) ( newInput ) ) ; } }

Target:
public void inputChanged ( org.eclipse.jface.viewers.Viewer viewer , java.lang.Object oldInput , java.lang.Object newInput ) { mInput = null ; if ( newInput instanceof com.android.ide.common.resources.configuration.FolderConfiguration ) { mInput = ( ( com.android.ide.common.resources.configuration.FolderConfiguration ) ( newInput ) ) ; } }
Source:
public void enableSaveConfig ( ) { doBooleanCommand ( "SET update_config 1" ) ; }

Target:
public boolean disconnect ( ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( "DISCONNECT " ) ; if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.disconnect ( ) ; } else { return doBooleanCommand ( "DISCONNECT" ) ; } }
Source:
public static java.io.File getProfileSnapshotFile ( java.lang.String packageName , java.lang.String splitName ) { java.io.File profileDir = android.os.Environment.getDataRefProfilesDePackageDirectory ( packageName ) ; java.lang.String snapshotFile = ( android.content.pm.dex.ArtManager.getProfileName ( splitName ) ) + ".snapshot" ; return new java.io.File ( profileDir , snapshotFile ) ; }

Target:
public static java.io.File getProfileSnapshotFileForName ( java.lang.String packageName , java.lang.String profileName ) { java.io.File profileDir = android.os.Environment.getDataRefProfilesDePackageDirectory ( packageName ) ; return new java.io.File ( profileDir , ( profileName + ".snapshot" ) ) ; }