auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onPhyRead ( android.bluetooth.BluetoothDevice device , int txPhy , int rxPhy , int status ) { }

Target:
public void onCharacteristicWriteRequest ( android.bluetooth.BluetoothDevice device , int requestId , android.bluetooth.BluetoothGattCharacteristic characteristic , boolean preparedWrite , boolean responseNeeded , int offset , byte [ ] value ) { }
Source:
public abstract java.io.InputStream newFileInputStream ( @ com.android.annotations.NonNull java.io.File file ) throws java.io.FileNotFoundException ;

Target:
java.io.OutputStream newFileOutputStream ( @ com.android.annotations.NonNull java.io.File file ) throws java.io.FileNotFoundException ;
Source:
com.android.build.gradle.model.List < com.android.build.gradle.internal.ProductFlavorCombo > createProductFlavorCombo ( @ org.gradle.model.Path ( value = "android.productFlavors" ) org.gradle.model.collection.ManagedSet < com.android.build.gradle.managed.ProductFlavor > productFlavors ) { com.android.build.gradle.model.List < java.lang.String > flavorDimensionList = productFlavors * ( dimension.unique ( ) . asList ( ) ) ; }

Target:
public com.android.build.gradle.managed.ProductFlavor apply ( com.android.build.gradle.managed.ProductFlavor productFlavor ) { return new com.android.build.gradle.managed.adaptor.ProductFlavorAdaptor ( productFlavor ) ; }
Source:
public static java.lang.String prettyPrint ( @ com.android.annotations.NonNull org.w3c.dom.Node node ) { return com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlPrettyPrinter.prettyPrint ( node , com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences.create ( ) , com.android.ide.common.xml.XmlFormatStyle.get ( node ) , com.android.utils.SdkUtils.getLineSeparator ( ) ) ; }

Target:
private static java.lang.String getDefaultLineSeparator ( ) { org.w3c.dom.Document blank = new org.w3c.dom.Document ( ) ; java.lang.String lineSeparator = org.eclipse.jface.text.TextUtilities.getDefaultLineDelimiter ( blank ) ; if ( lineSeparator == null ) { lineSeparator = com.android.utils.SdkUtils.getLineSeparator ( ) ; } return lineSeparator ; }
Source:
long getLastModified ( @ javax.annotation.Nonnull com.android.sched.vfs.WriteZipFS.ZipVFile file ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
java.nio.file.attribute.FileTime getLastModified ( @ javax.annotation.Nonnull com.android.sched.vfs.WriteZipFS.ZipVFile file ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public int onSetPath ( final javax.obex.HeaderSet request , javax.obex.HeaderSet reply , final boolean backup , final boolean create ) { if ( com.android.bluetooth.mapclient.MnsObexServer.VDBG ) android.util.Log.v ( com.android.bluetooth.mapclient.MnsObexServer.TAG , "onSetPath" ) ; return javax.obex.ResponseCodes.OBEX_HTTP_BAD_REQUEST ; }

Target:
public int onSetPath ( final javax.obex.HeaderSet request , javax.obex.HeaderSet reply , final boolean backup , final boolean create ) { if ( VDBG ) android.util.Log.v ( com.android.bluetooth.mapclient.MnsObexServer.TAG , "onSetPath" ) ; return javax.obex.ResponseCodes.OBEX_HTTP_BAD_REQUEST ; }
Source:
public void testWatchFaceVisibility ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/android/support/wearable/watchface/WatchFaceService.java:6: Warning: Overriding method should call super.onVisibilityChanged [MissingSuperCall]\n" + " public void onVisibilityChanged(boolean visible) {\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "src/test/pkg/WatchFaceTest.java.txt=>src/test/pkg/WatchFaceTest.java" , "stubs/WatchFaceService.java.txt=>src/android/support/wearable/watchface/WatchFaceService.java" ) ) ; }

Target:
public void testWatchFaceVisibility ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/pkg/WatchFaceTest.java:9: Warning: Overriding method should call super.onVisibilityChanged [MissingSuperCall]\n" + " public void onVisibilityChanged(boolean visible) { // ERROR: Missing super call\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "src/test/pkg/WatchFaceTest.java.txt=>src/test/pkg/WatchFaceTest.java" , "stubs/WatchFaceService.java.txt=>src/android/support/wearable/watchface/WatchFaceService.java" , "stubs/CanvasWatchFaceService.java.txt=>src/android/support/wearable/watchface/CanvasWatchFaceService.java" ) ) ; }
Source:
public com.android.monkeyrunner.MonkeyImage takeSnapshot ( ) { com.android.monkeyrunner.core.IMonkeyImage image = impl.takeSnapshot ( ) ; return new com.android.monkeyrunner.MonkeyImage ( image ) ; }

Target:
public com.android.monkeyrunner.MonkeyImage takeSnapshot ( ) { com.android.chimpchat.core.IChimpImage image = impl.takeSnapshot ( ) ; return new com.android.monkeyrunner.MonkeyImage ( image ) ; }
Source:
private void riljLog ( java.lang.String msg ) { android.util.Log.d ( com.android.internal.telephony.RIL.LOG_TAG , msg ) ; }

Target:
private void riljLog ( java.lang.String msg ) { android.telephony.Rlog.d ( com.android.internal.telephony.RIL.LOG_TAG , msg ) ; }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > any ( java.lang.Class < T > type ) { return org.hamcrest.core.IsAnything.any ( type ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > isA ( java.lang.Class < T > type ) { return org.hamcrest.core.Is.isA ( type ) ; }
Source:
public void setName ( @ javax.annotation.Nonnull java.lang.String name ) { this . name = name ; assert com.android.jack.Jack.getSession ( ) . getPhantomLookup ( ) . check ( this ) ; }

Target:
public void setName ( @ javax.annotation.Nonnull java.lang.String name ) { this . name = com.android.jack.ir.StringInterner.get ( ) . intern ( name ) ; assert com.android.jack.Jack.getSession ( ) . getPhantomLookup ( ) . check ( this ) ; }
Source:
public int getState ( ) { if ( ( ( telecomCall ) != null ) && ( ( telecomCall.getParent ( ) ) != null ) ) { return com.android.incallui.call.DialerCall.State.CONFERENCED ; } else { return state ; } }

Target:
public int getState ( ) { if ( ( ( telecomCall ) != null ) && ( ( telecomCall.getParent ( ) ) != null ) ) { return com.android.incallui.call.state.DialerCallState.CONFERENCED ; } else { return state ; } }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; com.example.android.multiproject.person.Person p = new com.example.android.multiproject.person.Person ( "foo" ) ; java.util.List < com.example.android.multiproject.person.Person > persons = com.google.common.collect.Lists.newArrayList ( ) ; persons.add ( p ) ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.opc_throw.d.T_opc_throw_4 t = new dot.junit.opcodes.opc_throw.d.T_opc_throw_4 ( ) ; try { t.run ( ) ; fail ( "expected NullPointerException" ) ; } catch ( java.lang.NullPointerException npe ) { } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.opc_throw.d.T_opc_throw_4" , java.lang.NullPointerException.class ) ; }
Source:
private boolean isActiveSubId ( int subId ) { return com.android.internal.telephony.SubscriptionController.getInstance ( ) . isActiveSubId ( subId ) ; }

Target:
public java.lang.String createAppSpecificSmsToken ( int subId , java.lang.String callingPkg , android.app.PendingIntent intent ) { return getPhone ( subId ) . getAppSmsManager ( ) . createAppSpecificSmsToken ( callingPkg , intent ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotationLiteral ) { print ( "@" ) ; printTypeName ( annotationLiteral.getType ( ) ) ; lparen ( ) ; java.util.List < com.android.jack.ir.ast.JNameValuePair > nameValuePairs = new java.util.ArrayList < com.android.jack.ir.ast.JNameValuePair > ( annotationLiteral.getNameValuePairs ( ) ) ; java.util.Collections.sort ( nameValuePairs , new java.util.Comparator < com.android.jack.ir.ast.JNameValuePair > ( ) { @ java.lang.Override public int compare ( com.android.jack.ir.ast.JNameValuePair nameValuePair1 , com.android.jack.ir.ast.JNameValuePair nameValuePair2 ) { return nameValuePair1.getName ( ) . compareTo ( nameValuePair2.getName ( ) ) ; } } ) ; visitCollectionWithCommas ( nameValuePairs.iterator ( ) ) ; rparen ( ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedInterface x ) { printTypeFlags ( x ) ; print ( com.android.jack.ir.impl.CHARS_INTERFACE ) ; printTypeName ( x ) ; return false ; }
Source:
private boolean unlock ( byte [ ] password ) { execute ( 'u' , password ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; }

Target:
public boolean lock ( ) { try { return ( mBinder.lock ( ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
private static int get16 ( byte [ ] b , int off ) { return ( ( b [ off ] ) & 255 ) | ( ( ( b [ ( off + 1 ) ] ) & 255 ) << 8 ) ; }

Target:
private static int get16 ( byte [ ] b , int off ) { return ( java.lang.Byte.toUnsignedInt ( b [ off ] ) ) | ( ( java.lang.Byte.toUnsignedInt ( b [ ( off + 1 ) ] ) ) << 8 ) ; }
Source:
public void onCallAdded ( android.telecom.Call call , int numCalls ) { android.util.Log.i ( android.telecom.cts.TAG , ( ( ( "onCallAdded, Call: " + call ) + ", Num Calls: " ) + numCalls ) ) ; this . lock.release ( ) ; }

Target:
public void onCallAdded ( android.telecom.Call call , int numCalls ) { android.util.Log.i ( android.telecom.cts.TestUtils.TAG , ( ( ( "onCallAdded, Call: " + call ) + ", Num Calls: " ) + numCalls ) ) ; this . lock.release ( ) ; }
Source:
public void onServiceDisconnected ( android.content.ComponentName className ) { if ( com.android.phone.MobileNetworkSettings.MobileNetworkFragment.DBG ) com.android.phone.MobileNetworkSettings.MobileNetworkFragment.log ( "connection disconnected, cleaning local binding." ) ; mNetworkQueryService = null ; setNetworkQueryService ( ) ; }

Target:
public void onSubscriptionsChanged ( ) { if ( com.android.phone.MobileNetworkSettings.MobileNetworkFragment.DBG ) com.android.phone.MobileNetworkSettings.MobileNetworkFragment.log ( "onSubscriptionsChanged:" ) ; initializeSubscriptions ( ) ; }
Source:
public void testAdd3 ( ) { java.util.concurrent.CopyOnWriteArraySet full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; full.add ( three ) ; assertTrue ( full.contains ( three ) ) ; }

Target:
public void testClear ( ) { java.util.Collection full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; full.clear ( ) ; assertEquals ( 0 , full.size ( ) ) ; assertTrue ( full.isEmpty ( ) ) ; }
Source:
public void doQuit ( ) { quitNow ( ) ; }

Target:
public void doQuit ( ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "doQuit" ) ; quitNow ( ) ; }
Source:
public abstract void uploadApks ( @ com.android.annotations.NonNull java.io.File testApk , @ com.android.annotations.Nullable java.io.File testedApk ) ;

Target:
public abstract void uploadApks ( @ com.android.annotations.NonNull java.lang.String variantName , @ com.android.annotations.NonNull java.io.File testApk , @ com.android.annotations.Nullable java.io.File testedApk ) ;
Source:
private com.android.rs.test.Int2 pack_i2 ( int [ ] val ) { assert ( val.length ) == 2 ; return new com.android.rs.test.Int2 ( val [ 0 ] , val [ 1 ] ) ; }

Target:
private android.renderscript.Int2 pack_i2 ( int [ ] val ) { assert ( val.length ) == 2 ; return new android.renderscript.Int2 ( val [ 0 ] , val [ 1 ] ) ; }
Source:
public void sendMessageWithSessionInfo ( int message , int arg ) { sendMessage ( message , arg , 0 , com.android.server.telecom.Log.createSubsession ( ) ) ; }

Target:
public void sendMessageWithSessionInfo ( int message , int arg ) { sendMessage ( message , arg , 0 , android.telecom.Log.createSubsession ( ) ) ; }
Source:
public void testVFE11 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.iput_boolean.d.T_iput_boolean_10" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testVFE12 ( ) { try { new dot.junit.opcodes.iput_boolean.d.T_iput_boolean_15 ( ) . run ( ) ; fail ( "expected IllegalAccessError" ) ; } catch ( java.lang.IllegalAccessError t ) { } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( getClass ( ) . getSimpleName ( ) ) ; mTestCallProfile = new com.android.ims.ImsCallProfile ( ) ; mBundle = mTestCallProfile.mCallExtras ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( getClass ( ) . getSimpleName ( ) ) ; mTestCallProfile = new android.telephony.ims.ImsCallProfile ( ) ; mBundle = mTestCallProfile.mCallExtras ; }
Source:
public boolean select ( org.eclipse.jface.viewers.Viewer viewer , java.lang.Object parentElement , java.lang.Object element ) { return filterViewerItem ( element ) ; }

Target:
protected void syncExec ( java.lang.Runnable runnable ) { if ( ! ( isUiDisposed ( ) ) ) { mGroupPackages.getDisplay ( ) . syncExec ( runnable ) ; } }
Source:
public javax.swing.JComponent createCustomComponent ( com.intellij.openapi.actionSystem.Presentation presentation ) { return new com.google.gct.login.ui.GoogleLoginActionButton ( this , presentation , presentation.getText ( ) , com.intellij.openapi.actionSystem.ActionToolbar.DEFAULT_MINIMUM_BUTTON_SIZE ) ; }

Target:
public javax.swing.JComponent createCustomComponent ( com.google.gct.login.ui.Presentation presentation ) { return new com.google.gct.login.ui.GoogleLoginActionButton ( this , presentation , presentation.getText ( ) , ActionToolbar.DEFAULT_MINIMUM_BUTTON_SIZE ) ; }
Source:
public void addListener ( com.android.sdkuilib.repository.ISdkChangeListener listener ) { mWindow.addListener ( listener ) ; }

Target:
public void addListener ( com.android.sdklib.repository.ISdkChangeListener listener ) { mWindow.addListener ( listener ) ; }
Source:
public static com.ibm.icu.text.DateTimePatternGenerator getEmptyInstance ( ) { return new com.ibm.icu.text.DateTimePatternGenerator ( ) ; }

Target:
public static com.ibm.icu.text.DateTimePatternGenerator getEmptyInstance ( ) { com.ibm.icu.text.DateTimePatternGenerator instance = new com.ibm.icu.text.DateTimePatternGenerator ( ) ; instance.addCanonicalItems ( ) ; instance.fillInMissing ( ) ; return instance ; }
Source:
private com.android.ddmuilib.logcat.LogCatFilter createTransientAppFilter ( java.lang.String appName ) { com.android.ddmuilib.logcat.LogCatFilter f = new com.android.ddmuilib.logcat.LogCatFilter ( ( appName + " (Session Filter)" ) , "" , "" , "" , appName , com.android.ddmlib.Log.LogLevel.VERBOSE ) ; f.setTransient ( ) ; return f ; }

Target:
private com.android.ddmlib.logcat.LogCatFilter createTransientAppFilter ( java.lang.String appName ) { com.android.ddmlib.logcat.LogCatFilter f = new com.android.ddmlib.logcat.LogCatFilter ( ( appName + " (Session Filter)" ) , "" , "" , "" , appName , com.android.ddmlib.Log.LogLevel.VERBOSE ) ; return f ; }
Source:
public static int ShrIntLong ( ) { int lhs = 7 ; long rhs = 2 ; return lhs > > rhs ; }

Target:
public static long ShrLongInt ( ) { long lhs = Main.$inline$long ( 9 ) ; int rhs = Main.$inline$int ( 2 ) ; return lhs > > rhs ; }
Source:
private static void writeValue ( java.io.OutputStreamWriter writer , int value ) throws java.io.IOException { com.android.sdklib.internal.export.ApkData.writeValue ( writer , java.lang.Integer.toString ( value ) ) ; }

Target:
private void write ( java.lang.StringBuilder sb , java.lang.String name , int value ) { sb.append ( ( name + "=" ) ) . append ( value ) . append ( ';' ) ; }
Source:
public java.lang.String getNewName ( @ javax.annotation.Nonnull java.lang.String oldName ) { if ( ( br ) != null ) { java.lang.String nameFromDict = getNameFromDictionary ( ) ; if ( ! ( nameFromDict.isEmpty ( ) ) ) { return nameFromDict ; } } return defaultNameProvider.getNewName ( oldName ) ; }

Target:
public java.lang.String getNewName ( @ javax.annotation.Nonnull com.android.jack.shrob.obfuscation.key.Key key ) { if ( ( br ) != null ) { java.lang.String nameFromDict = getNameFromDictionary ( ) ; if ( ! ( nameFromDict.isEmpty ( ) ) ) { return nameFromDict ; } } return defaultNameProvider.getNewName ( key ) ; }
Source:
private com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor getFqcnViewDescritor ( java.lang.String fqcn ) { com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor editor = mNode.getEditor ( ) ; if ( editor instanceof com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor ) { return ( ( com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor ) ( editor ) ) . getFqcnViewDescritor ( fqcn ) ; } return null ; }

Target:
private com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor getFqcnViewDescritor ( java.lang.String fqcn ) { com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor editor = mNode.getEditor ( ) ; if ( editor instanceof com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor ) { return ( ( com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor ) ( editor ) ) . getFqcnViewDescriptor ( fqcn ) ; } return null ; }
Source:
public void testEnded ( com.android.ddmlib.testrunner.TestIdentifier test , java.util.Map < java.lang.String , java.lang.String > testMetrics ) { mExecution.getListener ( ) . notifyTestEnded ( new com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestCaseReference ( test ) ) ; }

Target:
public void testEnded ( com.android.ddmlib.testrunner.TestIdentifier test , java.util.Map < java.lang.String , java.lang.String > ignoredTestMetrics ) { mExecution.getListener ( ) . notifyTestEnded ( new com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestCaseReference ( test ) ) ; }
Source:
public java.util.Map.Entry < K , V > next ( ) { K k = backingIterator.next ( ) ; return com.google.common.collect.Maps.immutableEntry ( k , function.apply ( k ) ) ; }

Target:
public java.util.Iterator < java.util.Map.Entry < K , V > > iterator ( ) { return com.google.common.collect.Maps.asMapEntryIterator ( backingSet ( ) , function ) ; }
Source:
public void run ( ) { android.content.Intent intent = new android.content.Intent ( this , com.googlecode.android_scripting.activity.ScriptingLayerService.class ) ; intent.setAction ( Constants.ACTION_KILL_PROCESS ) ; intent.putExtra ( Constants.EXTRA_PROXY_PORT , port ) ; startService ( intent ) ; }

Target:
public void run ( ) { startAction ( intent , flags , startId ) ; }
Source:
void onDropped ( com.android.ide.eclipse.adt.editors.layout.gscripts.INode targetNode , java.lang.String fqcn , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback , com.android.ide.eclipse.adt.editors.layout.gscripts.Point where ) ;

Target:
void onDropped ( com.android.ide.eclipse.adt.editors.layout.gscripts.INode targetNode , com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement [ ] elements , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback , com.android.ide.eclipse.adt.editors.layout.gscripts.Point where , boolean isCopy , boolean sameCanvas ) ;
Source:
public void onComplete ( int resultCode , byte [ ] challenge ) { callback.onComplete ( resultCode , challenge ) ; }

Target:
public void onComplete ( int resultCode , byte [ ] challenge ) { executor.execute ( ( ) -> callback.onComplete ( resultCode , challenge ) ) ; }
Source:
public void render ( T model , org.gradle.api.internal.html.SimpleHtmlWriter htmlWriter ) throws java.io.IOException { this . results = model ; tabsRenderer.clear ( ) ; registerTabs ( ) ; renderTabs ( htmlWriter ) ; }

Target:
public void render ( T model , com.android.build.gradle.internal.test.report.SimpleHtmlWriter htmlWriter ) throws java.io.IOException { this . results = model ; tabsRenderer.clear ( ) ; registerTabs ( ) ; renderTabs ( htmlWriter ) ; }
Source:
public com.android.internal.telephony.Connection dial ( java.lang.String dialString , int videoState ) throws com.android.internal.telephony.CallStateException { throw new java.lang.RuntimeException ( "not implemented" ) ; }

Target:
public void invokeOemRilRequestStrings ( java.lang.String [ ] strings , android.os.Message response ) { throw new java.lang.RuntimeException ( "not implemented" ) ; }
Source:
public com.android.ide.common.layout.TestNode id ( java.lang.String id ) { return set ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID , id ) ; }

Target:
public com.android.ide.common.layout.TestNode id ( java.lang.String id ) { return set ( com.android.tools.lint.detector.api.LintConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID , id ) ; }
Source:
public com.android.sched.vfs.MessageDigestFS.MessageDigestVDir getRootDir ( ) { return new com.android.sched.vfs.MessageDigestFS.MessageDigestVDir ( this , vfs.getRootDir ( ) ) ; }

Target:
public com.android.sched.vfs.MessageDigestFS.MessageDigestVDir getRootDir ( ) { return rootDir ; }
Source:
public void testVFE12 ( ) { try { new dot.junit.opcodes.iput.d.T_iput_15 ( ) . run ( ) ; fail ( "expected IllegalAccessError" ) ; } catch ( java.lang.IllegalAccessError t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testVFE12 ( ) { loadAndRun ( "dot.junit.opcodes.iput.d.T_iput_15" , java.lang.IllegalAccessError.class ) ; }
Source:
public static final void writeMapXml ( java.util.Map val , java.io.OutputStream out ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { org.xmlpull.v1.XmlSerializer serializer = new com.android.internal.util.FastXmlSerializer ( ) ; serializer.setOutput ( out , "utf-8" ) ; serializer.startDocument ( null , true ) ; serializer.setFeature ( "http://xmlpull.org/v1/doc/features.html#indent-output" , true ) ; com.android.internal.util.XmlUtils.writeMapXml ( val , null , serializer ) ; serializer.endDocument ( ) ; }

Target:
public static final void writeMapXml ( java.util.Map val , java.io.OutputStream out ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { org.xmlpull.v1.XmlSerializer serializer = new com.android.internal.util.FastXmlSerializer ( ) ; serializer.setOutput ( out , java.nio.charset.StandardCharsets.UTF_8.name ( ) ) ; serializer.startDocument ( null , true ) ; serializer.setFeature ( "http://xmlpull.org/v1/doc/features.html#indent-output" , true ) ; com.android.internal.util.XmlUtils.writeMapXml ( val , null , serializer ) ; serializer.endDocument ( ) ; }
Source:
public void openModuleLibrarySettings ( final com.intellij.openapi.module.Module module ) { com.intellij.openapi.roots.ui.configuration.ModulesConfigurator.showDialog ( myProject , module.getName ( ) , ClasspathEditor.NAME ) ; }

Target:
public void openModuleLibrarySettings ( final com.intellij.openapi.module.Module module ) { warnIfGradleProject ( ) ; com.intellij.openapi.roots.ui.configuration.ModulesConfigurator.showDialog ( myProject , module.getName ( ) , ClasspathEditor.NAME ) ; }
Source:
public void testConstructor_IllegalAliases_Initial ( ) { try { new tests.api.java.nio.charset.CharsetTest.MockCharset ( "mockChar" , new java.lang.String [ ] { "mock" , "-123" } ) ; fail ( ) ; } catch ( java.nio.charset.IllegalCharsetNameException e ) { } }

Target:
public void testConstructor_IllegalAliases_Initial ( ) { try { new org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset ( "mockChar" , new java.lang.String [ ] { "mock" , "-123" } ) ; fail ( ) ; } catch ( java.nio.charset.IllegalCharsetNameException e ) { } }
Source:
private void show ( ) { if ( ( bubble ) == null ) { bubble = startBubble ( ) ; } else { bubble.show ( ) ; } }

Target:
private void show ( ) { if ( ( bubble ) == null ) { bubble = startBubble ( ) ; } else { bubble.show ( ) ; } startContactInfoSearch ( ) ; }
Source:
public void sendRttModifyRequest ( com.android.ims.ImsCallProfile toProfile ) { }

Target:
public void sendRttModifyRequest ( android.telephony.ims.ImsCallProfile toProfile ) { this . sendRttModifyRequest ( toProfile ) ; }
Source:
public java.lang.Iterable < com.ibm.icu.text.UnicodeSet.EntryRange > ranges ( ) { return new com.ibm.icu.text.UnicodeSet.EntryRanges ( ) ; }

Target:
public java.lang.Iterable < com.ibm.icu.text.UnicodeSet.EntryRange > ranges ( ) { return new com.ibm.icu.text.UnicodeSet.EntryRangeIterable ( ) ; }
Source:
private void processAudioConfigEvent ( android.bluetooth.BluetoothAudioConfig audioConfig , android.bluetooth.BluetoothDevice device ) { mAudioConfigs.put ( device , audioConfig ) ; broadcastAudioConfig ( device , audioConfig ) ; }

Target:
private void processAudioConfigEvent ( android.bluetooth.BluetoothAudioConfig audioConfig , android.bluetooth.BluetoothDevice device ) { log ( ( "processAudioConfigEvent: " + device ) ) ; mAudioConfigs.put ( device , audioConfig ) ; broadcastAudioConfig ( device , audioConfig ) ; }
Source:
private int chooseInt ( int overlay , int base ) { return overlay != ( - 1 ) ? overlay : base ; }

Target:
private static < T > T chooseNotNull ( T overlay , T base ) { return overlay != null ? overlay : base ; }
Source:
public void encode ( @ org.jetbrains.annotations.NotNull com.android.tools.rpclib.binary.Encoder e ) throws java.io.IOException { com.android.tools.rpclib.rpccore.ObjectFactory.encode ( e , this ) ; }

Target:
public void encode ( @ org.jetbrains.annotations.NotNull com.android.tools.rpclib.binary.Encoder e , com.android.tools.rpclib.binary.BinaryObject obj ) throws java.io.IOException { com.android.tools.rpclib.rpccore.RpcError o = ( ( com.android.tools.rpclib.rpccore.RpcError ) ( obj ) ) ; e.string ( o.mMessage ) ; }
Source:
public android.os.StrictMode.ThreadPolicy.Builder permitCustomSlowCalls ( ) { return enable ( android.os.StrictMode.DETECT_CUSTOM ) ; }

Target:
public android.os.StrictMode.ThreadPolicy.Builder permitCustomSlowCalls ( ) { return disable ( android.os.StrictMode.DETECT_CUSTOM ) ; }
Source:
public boolean getDataEnabled ( ) { return getDataEnabled ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) ; }

Target:
public boolean getDataEnabled ( ) { return getDataEnabled ( getSubId ( ) ) ; }
Source:
public void test_SSLSocketFactory_defaultConfiguration ( ) throws java.lang.Exception { libcore.javax.net.ssl.SSLDefaultConfigurationAsserts.assertSSLSocketFactory ( ( ( javax.net.ssl.SSLSocketFactory ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) ) ) ) ; }

Target:
public void test_SSLSocketFactory_defaultConfiguration ( ) throws java.lang.Exception { libcore.javax.net.ssl.SSLConfigurationAsserts.assertSSLSocketFactoryDefaultConfiguration ( ( ( javax.net.ssl.SSLSocketFactory ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) ) ) ) ; }
Source:
public void scheduleCrash ( java.lang.String msg ) { queueOrSendMessage ( android.app.ActivityThread.H.SCHEDULE_CRASH , msg ) ; }

Target:
public void scheduleCrash ( java.lang.String msg ) { sendMessage ( android.app.ActivityThread.H.SCHEDULE_CRASH , msg ) ; }
Source:
public static native byte [ ] [ ] SSL_get_peer_cert_chain ( int sslNativePointer ) ;

Target:
public static native long SSL_get_mode ( long ssl ) ;
Source:
public com.android.sched.vfs.OutputVDir getOutputVDir ( ) ;

Target:
public boolean needsSequentialWriting ( ) ;
Source:
public com.google.common.collect.LinkedListMultimap.Node < K , V > previous ( ) { com.google.common.collect.LinkedListMultimap.checkElement ( previous ) ; next = current = previous ; previous = previous.previous ; ( nextIndex ) -- ; return current ; }

Target:
public com.google.common.collect.LinkedListMultimap.Node < K , V > previous ( ) { checkForConcurrentModification ( ) ; com.google.common.collect.LinkedListMultimap.checkElement ( previous ) ; next = current = previous ; previous = previous.previous ; ( nextIndex ) -- ; return current ; }
Source:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , byte [ ] data ) { validateIsInt8 ( ) ; copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , data ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , int [ ] data ) { validateIsInt32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_32 , data.length ) ; }
Source:
public com.android.internal.telephony.Connection dial ( java.lang.String dialString , com.android.internal.telephony.UUSInfo uusInfo , int videoState , android.os.Bundle intentExtras ) throws com.android.internal.telephony.CallStateException { return dialInternal ( dialString , videoState , intentExtras , null ) ; }

Target:
private boolean handleCcbsIncallSupplementaryService ( java.lang.String dialString ) { if ( ( dialString.length ( ) ) > 1 ) { return false ; } logi ( "MmiCode 5: CCBS not supported!" ) ; notifySuppServiceFailed ( Phone.SuppService.UNKNOWN ) ; return true ; }
Source:
void notifyInterfaceStateChange ( java.lang.String iface , com.android.server.connectivity.tethering.TetherInterfaceStateMachine who , int state , int lastError ) ;

Target:
public void updateInterfaceState ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine who , int state , int lastError ) { }
Source:
public void onRttConnectionFailure ( int reason ) { setRttStreams ( false ) ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onRttInitiationFailure ( this , reason ) ; } }

Target:
public void onRttConnectionFailure ( int reason ) { android.telecom.Log.i ( this , "Got RTT initiation failure with reason %d" , reason ) ; setRttStreams ( false ) ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onRttInitiationFailure ( this , reason ) ; } }
Source:
public static com.android.manifmerger.ManifestMerger2.Invoker newInvoker ( @ com.android.annotations.NonNull java.io.File mainManifestFile , @ com.android.annotations.NonNull com.android.utils.ILogger iLogger ) { return new com.android.manifmerger.ManifestMerger2.Invoker ( mainManifestFile , iLogger ) ; }

Target:
public static com.android.manifmerger.ManifestMerger2.Invoker newInvoker ( @ com.android.annotations.NonNull java.io.File mainManifestFile , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) { return new com.android.manifmerger.ManifestMerger2.Invoker ( mainManifestFile , logger ) ; }
Source:
com.android.build.gradle.internal.model.DefaultAndroidProject addVariant ( @ com.android.annotations.NonNull com.android.build.gradle.internal.model.VariantImpl variant ) { variants.put ( variant.getName ( ) , variant ) ; return this ; }

Target:
com.android.build.gradle.internal.model.DefaultAndroidProject addVariant ( @ com.android.annotations.NonNull com.android.build.gradle.internal.model.VariantImpl variant ) { variants.add ( variant ) ; return this ; }
Source:
public void onSharedPreferenceChanged ( android.content.SharedPreferences sharedPreferences , java.lang.String key ) { if ( key.equals ( com.android.calendar.CalendarPreferenceActivity.KEY_ALERTS_TYPE ) ) { updateChildPreferences ( ) ; } }

Target:
public void onSharedPreferenceChanged ( android.content.SharedPreferences sharedPreferences , java.lang.String key ) { if ( key.equals ( com.android.calendar.CalendarPreferenceActivity.KEY_ALERTS_TYPE ) ) { updateChildPreferences ( ) ; } android.app.backup.BackupManager.dataChanged ( this . getPackageName ( ) ) ; }
Source:
public void setSurface ( android.view.Surface s ) { synchronized ( this ) { mOutSurface = s ; notifyAll ( ) ; } }

Target:
public void setSurface ( android.view.Surface s ) { mOutSurface = s ; update ( ) ; }
Source:
public static int IntDivision ( ) { int a ; int b ; int c ; a = Main.$inline$int ( 8 ) ; b = Main.$inline$int ( 3 ) ; c = a / b ; return c ; }

Target:
public static int IntRemainder ( ) { int a ; int b ; int c ; a = 8 ; b = 3 ; c = a % b ; return c ; }
Source:
public boolean pingSupplicant ( ) { if ( ( mService ) == null ) return false ; try { return mService.pingSupplicant ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public boolean pingSupplicant ( ) { return isWifiEnabled ( ) ; }
Source:
public int onGet ( final javax.obex.Operation op ) { if ( VDBG ) android.util.Log.v ( com.android.bluetooth.mapclient.MnsObexServer.TAG , "onGet" ) ; return javax.obex.ResponseCodes.OBEX_HTTP_BAD_REQUEST ; }

Target:
public int onGet ( final javax.obex.Operation op ) { if ( com.android.bluetooth.mapclient.MnsObexServer.VDBG ) android.util.Log.v ( com.android.bluetooth.mapclient.MnsObexServer.TAG , "onGet" ) ; return javax.obex.ResponseCodes.OBEX_HTTP_BAD_REQUEST ; }
Source:
public void callSessionResumeFailed ( com.android.ims.internal.IImsCallSession i , com.android.ims.ImsReasonInfo imsReasonInfo ) throws android.os.RemoteException { mNewListener.callSessionResumeFailed ( imsReasonInfo ) ; }

Target:
public void callSessionResumeFailed ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsReasonInfo imsReasonInfo ) throws android.os.RemoteException { mNewListener.callSessionResumeFailed ( imsReasonInfo ) ; }
Source:
private native boolean isAnnotationPresentNative ( java.lang.Class < ? extends java.lang.annotation.Annotation > annotationType ) ;

Target:
private native java.lang.Class < ? > [ ] getExceptionTypesNative ( ) ;
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; generator = getKeyPairGenerator ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; generator = java.security.KeyPairGenerator.getInstance ( algorithmName ) ; }
Source:
public void testMisMatchedTrace ( ) throws java.io.IOException { java.lang.String expected = " -> com/test/android/traceview/MisMatched.foo: ()V -> com/test/android/traceview/MisMatched.bar: ()V -> android/os/Debug.startMethodTracing: (Ljava/lang/String;)V -> android/os/Debug.startMethodTracing: (Ljava/lang/String;II)V -> dalvik/system/VMDebug.startMethodTracing: (Ljava/lang/String;II)V\n" + ( " -> com/test/android/traceview/MisMatched.baz: ()I\n" + " -> android/os/Debug.stopMethodTracing: ()V -> dalvik/system/VMDebug.stopMethodTracing: ()V" ) ; testTrace ( "/mismatched.trace" , "AsyncTask #1" , expected ) ; }

Target:
public void testMisMatchedTrace ( ) throws java.io.IOException { java.lang.String expected = " -> AsyncTask #1.: -> com/test/android/traceview/MisMatched.foo: ()V -> com/test/android/traceview/MisMatched.bar: ()V -> android/os/Debug.startMethodTracing: (Ljava/lang/String;)V -> android/os/Debug.startMethodTracing: (Ljava/lang/String;II)V -> dalvik/system/VMDebug.startMethodTracing: (Ljava/lang/String;II)V\n" + ( " -> com/test/android/traceview/MisMatched.baz: ()I\n" + " -> android/os/Debug.stopMethodTracing: ()V -> dalvik/system/VMDebug.stopMethodTracing: ()V" ) ; testTrace ( "/mismatched.trace" , "AsyncTask #1" , expected ) ; }
Source:
public com.android.builder.ProductFlavor setTestInstrumentationRunner ( java.lang.String testInstrumentationRunner ) { mTestInstrumentationRunner = testInstrumentationRunner ; return this ; }

Target:
public com.android.builder.model.ProductFlavor setTestInstrumentationRunner ( java.lang.String testInstrumentationRunner ) { mTestInstrumentationRunner = testInstrumentationRunner ; return this ; }
Source:
public static void computeFrexp ( android.renderscript.cts.TestFrexp.ArgumentsFloatIntFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 0 , 0 , false ) ; android.renderscript.cts.CoreMathVerifier.FrexpResult result = android.renderscript.cts.CoreMathVerifier.frexp ( args.inV ) ; args.out = t.new32 ( result.significand ) ; args.outExpo = result.exponent ; }

Target:
public static void computeFrexp ( android.renderscript.cts.TestFrexp.ArgumentsFloatIntFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 0 , 0 , false ) ; android.renderscript.cts.CoreMathVerifier.FrexpResult result = android.renderscript.cts.CoreMathVerifier.frexp ( args.inV ) ; args.out = t.new32 ( result.significand ) ; args.outExponent = result.exponent ; }
Source:
public org.bouncycastle.math.ec.ECFieldElement divide ( org.bouncycastle.math.ec.ECFieldElement b ) { return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , modMult ( x , b.toBigInteger ( ) . modInverse ( q ) ) ) ; }

Target:
public org.bouncycastle.math.ec.ECFieldElement invert ( ) { return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , modInverse ( x ) ) ; }
Source:
public void setListener ( com.android.ims.internal.IImsCallSessionListener listener ) throws android.os.RemoteException { }

Target:
public final void setListener ( android.telephony.ims.aidl.IImsCallSessionListener listener ) throws android.os.RemoteException { setListener ( new android.telephony.ims.ImsCallSessionListener ( listener ) ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; myTaskManager = ( ( com.intellij.tasks.impl.TaskManagerImpl ) ( com.intellij.tasks.TaskManager.getManager ( getProject ( ) ) ) ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; myTaskManager = ( ( com.intellij.tasks.impl.TaskManagerImpl ) ( com.intellij.tasks.TaskManager.getManager ( getProject ( ) ) ) ) ; git4idea.config.GitVcsSettings.getInstance ( myProject ) . getAppSettings ( ) . setPathToGit ( GitExecutor.GIT_EXECUTABLE ) ; }
Source:
public void run ( ) { element.setAttributeValue ( attribute , com.android.ide.common.layout.LayoutConstants.ANDROID_URI , value , true ) ; element.commitDirtyAttributesToXml ( ) ; }

Target:
public void run ( ) { element.setAttributeValue ( attribute , com.android.util.XmlUtils.ANDROID_URI , value , true ) ; element.commitDirtyAttributesToXml ( ) ; }
Source:
private java.lang.String getDexCacheString ( com.android.dex.Dex dex , int dexStringIndex ) { return declaringClass.getDexCacheString ( dex , dexStringIndex ) ; }

Target:
java.lang.Class < ? > getReturnType ( ) { java.lang.Class < ? > declClass = getDeclaringClass ( ) ; com.android.dex.Dex dex = declClass.getDex ( ) ; int returnTypeIndex = dex.returnTypeIndexFromMethodIndex ( dexMethodIndex ) ; return declClass.getDexCacheType ( dex , returnTypeIndex ) ; }
Source:
public boolean isTrue ( ) throws java.lang.Exception { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( "Device cameras enabled" ) ) . exists ( ) ; }

Target:
public boolean isTrue ( ) throws java.lang.Exception { return enableCamerasCheckbox.exists ( ) ; }
Source:
private void setFieldIdentifier ( ) { if ( ( curve ) instanceof org.bouncycastle.math.ec.ECCurve.Fp ) { fieldIdentifier = prime_field ; } else if ( ( curve ) instanceof org.bouncycastle.math.ec.ECCurve.F2m ) { fieldIdentifier = characteristic_two_field ; } else { throw new java.lang.IllegalArgumentException ( "This type of ECCurve is not implemented" ) ; } }

Target:
private void setFieldIdentifier ( ) { if ( org.bouncycastle.math.ec.ECAlgorithms.isFpCurve ( curve ) ) { fieldIdentifier = prime_field ; } else if ( org.bouncycastle.math.ec.ECAlgorithms.isF2mCurve ( curve ) ) { fieldIdentifier = characteristic_two_field ; } else { throw new java.lang.IllegalArgumentException ( "This type of ECCurve is not implemented" ) ; } }
Source:
public void testE1 ( ) { dot.junit.opcodes.aget_boolean.d.T_aget_boolean_1 t = new dot.junit.opcodes.aget_boolean.d.T_aget_boolean_1 ( ) ; boolean [ ] arr = new boolean [ 2 ] ; try { t.run ( arr , 2 ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE2 ( ) { loadAndRun ( "dot.junit.opcodes.aget_boolean.d.T_aget_boolean_1" , java.lang.NullPointerException.class , null , 2 ) ; }
Source:
public void testRemove ( ) { java.util.concurrent.CopyOnWriteArraySet full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; full.remove ( one ) ; assertFalse ( full.contains ( one ) ) ; assertEquals ( 2 , full.size ( ) ) ; }

Target:
public void testRemove ( ) { java.util.Collection full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; full.remove ( one ) ; assertFalse ( full.contains ( one ) ) ; assertEquals ( 2 , full.size ( ) ) ; }
Source:
public void listen ( ) { com.android.phone.vvm.VvmSimStateTracker.getTelephonyManager ( mContext , mPhoneAccountHandle ) . listen ( this , PhoneStateListener.LISTEN_SERVICE_STATE ) ; }

Target:
public void unlisten ( ) { mContext.getSystemService ( android.telephony.TelephonyManager.class ) . listen ( this , PhoneStateListener.LISTEN_NONE ) ; com.android.phone.vvm.VvmSimStateTracker.sListeners.put ( mPhoneAccountHandle , null ) ; }
Source:
public void writeSmsToRuimResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , int var2 ) { }

Target:
public void getClipResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , int status ) { responseInts ( responseInfo , status ) ; }
Source:
public int getNetworkCount ( ) { return delegate.getNetworkCount ( ) ; }

Target:
public void flush ( ) { try { delegate.flush ( ) ; } catch ( java.io.IOException ignored ) { } }
Source:
public final android.content.ContentProviderClient acquireUnstableContentProviderClient ( android.net.Uri uri ) { android.content.IContentProvider provider = acquireUnstableProvider ( uri ) ; if ( provider != null ) { return new android.content.ContentProviderClient ( this , provider , false ) ; } return null ; }

Target:
public final android.content.ContentProviderClient acquireUnstableContentProviderClient ( @ android.annotation.NonNull android.net.Uri uri ) { com.android.internal.util.Preconditions.checkNotNull ( uri , "uri" ) ; android.content.IContentProvider provider = acquireUnstableProvider ( uri ) ; if ( provider != null ) { return new android.content.ContentProviderClient ( this , provider , false ) ; } return null ; }
Source:
public java.lang.String guessZoneIdByNitz ( com.android.internal.telephony.NitzData nitzData ) { java.util.TimeZone zone = com.android.internal.telephony.TimeZoneLookupHelper.guessZoneByNitzStatic ( nitzData ) ; return zone == null ? null : zone.getID ( ) ; }

Target:
static java.util.TimeZone guessZoneByNitzStatic ( com.android.internal.telephony.NitzData nitzData ) { com.android.internal.telephony.TimeZoneLookupHelper.OffsetResult result = com.android.internal.telephony.TimeZoneLookupHelper.lookupByNitzStatic ( nitzData ) ; return result != null ? java.util.TimeZone.getTimeZone ( result.zoneId ) : null ; }
Source:
public static final com.android.hierarchyviewer.HierarchyViewerApplication getApp ( ) { return com.android.hierarchyviewer.HierarchyViewerApplication.APP ; }

Target:
public static final com.android.hierarchyviewer.HierarchyViewerApplication getApp ( ) { return com.android.hierarchyviewer.HierarchyViewerApplication.mApp ; }
Source:
synchronized void nScriptSetVarJ ( long id , int slot , long val ) { validate ( ) ; rsnScriptSetVarJ ( mContext , id , slot , val ) ; }

Target:
synchronized long nScriptInvokeIDCreate ( long sid , int slot ) { validate ( ) ; return rsnScriptInvokeIDCreate ( mContext , sid , slot ) ; }
Source:
public void onClick ( android.view.View view ) { if ( mTimePicker.validateInput ( ) ) { this . onClick ( this , android.app.BUTTON_POSITIVE ) ; dismiss ( ) ; } }

Target:
public void onClick ( android.view.View view ) { if ( mTimePicker.validateInput ( ) ) { this . onClick ( this , android.app.BUTTON_POSITIVE ) ; mTimePicker.clearFocus ( ) ; dismiss ( ) ; } }
Source:
public com.android.sdkuilib.ui.GridLayoutBuilder spacing ( int s ) { com.android.sdkuilib.ui.GridLayoutBuilder.mGL.verticalSpacing = s ; com.android.sdkuilib.ui.GridLayoutBuilder.mGL.horizontalSpacing = s ; return this ; }

Target:
public com.android.sdkuilib.ui.GridLayoutBuilder spacing ( int s ) { mGL.verticalSpacing = s ; mGL.horizontalSpacing = s ; return this ; }
Source:
public int getDataState ( ) { com.android.internal.telephony.Phone phone = getPhone ( mSubscriptionController.getDefaultDataSubId ( ) ) ; if ( phone != null ) { return com.android.internal.telephony.DefaultPhoneNotifier.convertDataState ( phone.getDataConnectionState ( ) ) ; } else { return com.android.internal.telephony.DefaultPhoneNotifier.convertDataState ( PhoneConstants.DataState.DISCONNECTED ) ; } }

Target:
public int getDataState ( ) { com.android.internal.telephony.Phone phone = getPhone ( mSubscriptionController.getDefaultDataSubId ( ) ) ; if ( phone != null ) { return com.android.internal.telephony.PhoneConstantConversions.convertDataState ( phone.getDataConnectionState ( ) ) ; } else { return com.android.internal.telephony.PhoneConstantConversions.convertDataState ( PhoneConstants.DataState.DISCONNECTED ) ; } }
Source:
public android.os.Bundle addAccount ( android.accounts.AccountAuthenticatorResponse r , java.lang.String s , java.lang.String s2 , java.lang.String [ ] strings , android.os.Bundle bundle ) throws android.accounts.NetworkErrorException { android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public android.os.Bundle addAccount ( android.accounts.AccountAuthenticatorResponse r , java.lang.String s , java.lang.String s2 , java.lang.String [ ] strings , android.os.Bundle bundle ) throws android.accounts.NetworkErrorException { if ( com.android.bluetooth.pbapclient.Authenticator.DBG ) android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
com.android.rs.imagejb.TestBase changeTest ( int id ) { com.android.rs.imagejb.IPTestListJB.TestName t = IPTestListJB.TestName.values ( ) [ id ] ; com.android.rs.imagejb.TestBase tb = com.android.rs.imagejb.IPTestListJB.newTest ( t ) ; tb.createBaseTest ( this ) ; return tb ; }

Target:
com.android.rs.imagejb.TestBase changeTest ( com.android.rs.imagejb.IPTestListJB.TestName t , boolean setupUI ) { com.android.rs.imagejb.TestBase tb = com.android.rs.imagejb.IPTestListJB.newTest ( t ) ; tb.createBaseTest ( this ) ; if ( setupUI ) { setupBars ( tb ) ; } return tb ; }
Source:
private void test_isValid_OnDrop ( ) { assertTrue ( key.isValid ( ) ) ; key.drop ( ) ; assertFalse ( key.isValid ( ) ) ; }

Target:
private void check_isValid_OnDrop ( ) { assertTrue ( key.isValid ( ) ) ; key.drop ( ) ; assertFalse ( key.isValid ( ) ) ; }
Source:
public static int convertCallState ( com.android.internal.telephony.PhoneConstants.State state ) { switch ( state ) { case RINGING : return android.telephony.TelephonyManager.CALL_STATE_RINGING ; case OFFHOOK : return android.telephony.TelephonyManager.CALL_STATE_OFFHOOK ; default : return android.telephony.TelephonyManager.CALL_STATE_IDLE ; } }

Target:
public void notifyDataActivationStateChanged ( com.android.internal.telephony.Phone sender , int activationState ) { try { mRegistry.notifySimActivationStateChangedForPhoneId ( sender.getPhoneId ( ) , sender.getSubId ( ) , PhoneConstants.SIM_ACTIVATION_TYPE_DATA , activationState ) ; } catch ( android.os.RemoteException ex ) { } }
Source:
public static void main ( java.lang.String [ ] args ) { Main.doTest ( new Transform ( ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { art.Main.bindAgentJNIForClass ( Main.class ) ; Main.doTest ( new Transform ( ) ) ; }
Source:
public native void setLong ( java.lang.Object object , long value ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;

Target:
public void setLong ( java.lang.Object object , long value ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException { setLong ( object , value , isAccessible ( ) ) ; }
Source:
public void onExternalCallChanged ( com.android.server.telecom.Call call , boolean isExternalCall ) { com.android.server.telecom.Log.v ( this , "onConnectionPropertiesChanged: %b" , isExternalCall ) ; for ( com.android.server.telecom.CallsManager.CallsManagerListener listener : mListeners ) { listener.onExternalCallChanged ( call , isExternalCall ) ; } }

Target:
public void onExternalCallChanged ( com.android.server.telecom.Call call , boolean isExternalCall ) { android.telecom.Log.v ( this , "onConnectionPropertiesChanged: %b" , isExternalCall ) ; for ( com.android.server.telecom.CallsManager.CallsManagerListener listener : mListeners ) { listener.onExternalCallChanged ( call , isExternalCall ) ; } }