auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setTelephonyCountryCodeAfterSupplicantStarts ( ) throws java.lang.Exception { mWifiCountryCode.setReadyForChange ( true ) ; org.junit.Assert.assertEquals ( mDefaultCountryCode , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; mWifiCountryCode.setCountryCode ( mTelephonyCountryCode , false ) ; mWifiCountryCode.setReadyForChange ( false ) ; org.mockito.Mockito.verify ( mWifiNative , org.mockito.Mockito.times ( 2 ) ) . setCountryCode ( org.mockito.Mockito.anyString ( ) ) ; org.junit.Assert.assertEquals ( mTelephonyCountryCode , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; }

Target:
public void setTelephonyCountryCodeAfterSupplicantStarts ( ) throws java.lang.Exception { mWifiCountryCode.setReadyForChange ( true ) ; org.junit.Assert.assertEquals ( mDefaultCountryCode , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; mWifiCountryCode.setCountryCode ( mTelephonyCountryCode ) ; mWifiCountryCode.setReadyForChange ( false ) ; org.mockito.Mockito.verify ( mWifiNative , org.mockito.Mockito.times ( 2 ) ) . setCountryCode ( org.mockito.Mockito.anyString ( ) ) ; org.junit.Assert.assertEquals ( mTelephonyCountryCode , mWifiCountryCode.getCountryCodeSentToDriver ( ) ) ; }
Source:
private static void rotateDexFile ( ) { if ( ( com.android.dx.command.dexer.Main.outputDex ) != null ) { if ( ( com.android.dx.command.dexer.Main.dexOutPool ) != null ) { com.android.dx.command.dexer.Main.dexOutputFutures.add ( com.android.dx.command.dexer.Main.dexOutPool.submit ( new com.android.dx.command.dexer.Main.DexWriter ( com.android.dx.command.dexer.Main.outputDex ) ) ) ; } else { com.android.dx.command.dexer.Main.dexOutputArrays.add ( com.android.dx.command.dexer.Main.writeDex ( com.android.dx.command.dexer.Main.outputDex ) ) ; } } com.android.dx.command.dexer.Main.createDexFile ( ) ; }

Target:
private static void rotateDexFile ( ) { if ( ( com.android.dx.command.dexer.Main.outputDex ) != null ) { com.android.dx.command.dexer.Main.dexOutputArrays.add ( com.android.dx.command.dexer.Main.writeDex ( ) ) ; } com.android.dx.command.dexer.Main.createDexFile ( ) ; }
Source:
public void test_getLocalPort ( ) throws java.io.IOException { java.net.ServerSocket server = new java.net.ServerSocket ( 0 ) ; java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , server.getLocalPort ( ) ) ; assertNotSame ( "Returned incorrect port" , 0 , client.getLocalPort ( ) ) ; client.close ( ) ; server.close ( ) ; }

Target:
public void test_getLocalPort ( ) throws java.io.IOException { try ( java.net.ServerSocket server = new java.net.ServerSocket ( 0 ) ; java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , server.getLocalPort ( ) ) ) { assertNotSame ( "Returned incorrect port" , 0 , client.getLocalPort ( ) ) ; } }
Source:
private void syncVPState ( int [ ] vpArray ) { android.util.Log.d ( com.android.phone.CallFeaturesSetting.LOG_TAG , ( "syncVPState: Setting UI state consistent with VP enable state of" + ( ( vpArray [ 0 ] ) != 0 ? "ENABLED" : "DISABLED" ) ) ) ; this . mButtonVoicePrivacy.setChecked ( ( ( vpArray [ 0 ] ) != 0 ) ) ; }

Target:
private void syncVPState ( int [ ] vpArray ) { android.util.Log.d ( com.android.phone.CallFeaturesSetting.LOG_TAG , ( "syncVPState: Setting UI state consistent with VP enable state of" + ( ( vpArray [ 0 ] ) != 0 ? "ENABLED" : "DISABLED" ) ) ) ; mButtonVoicePrivacy.setChecked ( ( ( vpArray [ 0 ] ) != 0 ) ) ; }
Source:
public void requestNetwork ( android.net.NetworkRequest request , int timeoutMs , android.net.ConnectivityManager.NetworkCallback networkCallback , android.os.Handler handler ) { android.net.ConnectivityManager.checkTimeout ( timeoutMs ) ; int legacyType = inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ; android.net.ConnectivityManager.CallbackHandler cbHandler = new android.net.ConnectivityManager.CallbackHandler ( handler ) ; requestNetwork ( request , networkCallback , timeoutMs , legacyType , cbHandler ) ; }

Target:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , android.os.Handler handler , int timeoutMs ) { android.net.ConnectivityManager.checkTimeout ( timeoutMs ) ; int legacyType = inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ; android.net.ConnectivityManager.CallbackHandler cbHandler = new android.net.ConnectivityManager.CallbackHandler ( handler ) ; requestNetwork ( request , networkCallback , timeoutMs , legacyType , cbHandler ) ; }
Source:
public void setMessageHandler ( android.support.v8.renderscript.RenderScript.RSMessageHandler msg ) { mMessageCallback = msg ; if ( android.support.v8.renderscript.RenderScript.isNative ) { android.support.v8.renderscript.RenderScriptThunker rst = ( ( android.support.v8.renderscript.RenderScriptThunker ) ( this ) ) ; android.support.v8.renderscript.RenderScript.RSMessageHandler newmsg = new android.support.v8.renderscript.RenderScript.RSMessageHandler ( ) { public void run ( ) { mMessageCallback.mData = mData ; mMessageCallback.mID = mID ; mMessageCallback.mLength = mLength ; mMessageCallback.run ( ) ; } } ; rst.mN.setMessageHandler ( newmsg ) ; } }

Target:
public void setMessageHandler ( android.support.v8.renderscript.RenderScript.RSMessageHandler msg ) { mMessageCallback = msg ; if ( android.support.v8.renderscript.RenderScript.isNative ) { android.support.v8.renderscript.RenderScriptThunker rst = ( ( android.support.v8.renderscript.RenderScriptThunker ) ( this ) ) ; rst.setMessageHandler ( msg ) ; } }
Source:
public void testNewInstanceString_ByteArrayIntIntStringConstructor ( ) { runTestNewInstanceString ( "([BIILjava/lang/String;)V" , "m" , new org.apache.harmony.jpda.tests.jdwp.ClassType.ConstructorArgumentsProvider ( ) { @ java.lang.Override public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value stringCharsetValue = getStaticFieldValue ( debuggeeClassId , "STRING_CHARSET" ) ; constructorArguments.add ( byteArrayValue ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 0 ) ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 1 ) ) ; constructorArguments.add ( stringCharsetValue ) ; } } ) ; }

Target:
public void testNewInstanceString_ByteArrayIntIntStringConstructor ( ) { runTestNewInstanceString ( "([BIILjava/lang/String;)V" , new org.apache.harmony.jpda.tests.jdwp.ClassType.ConstructorArgumentsProvider ( ) { @ java.lang.Override public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value stringCharsetValue = getStaticFieldValue ( debuggeeClassId , "STRING_CHARSET" ) ; constructorArguments.add ( byteArrayValue ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 0 ) ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 1 ) ) ; constructorArguments.add ( stringCharsetValue ) ; } } ) ; }
Source:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > getBlocksDepthFirst ( boolean forward ) { final java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > blocks = new java.util.ArrayList < > ( ) ; new com.android.jack.ir.ast.cfg.BasicBlockIterator ( ) { @ java.lang.Override public boolean process ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JBasicBlock block ) { blocks.add ( block ) ; return true ; } @ javax.annotation.Nonnull @ java.lang.Override public com.android.jack.ir.ast.cfg.JControlFlowGraph getCfg ( ) { return com.android.jack.ir.ast.cfg.JControlFlowGraph.this ; } } . iterateDepthFirst ( forward ) ; return blocks ; }

Target:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > getBlocksDepthFirst ( boolean forward ) { final java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > blocks = new java.util.ArrayList < > ( ) ; new com.android.jack.ir.ast.cfg.BasicBlockIterator ( this ) { @ java.lang.Override public boolean process ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JBasicBlock block ) { blocks.add ( block ) ; return true ; } } . iterateDepthFirst ( forward ) ; return blocks ; }
Source:
public void test_SSLEngine_beginHandshake_noClientCertificate ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLContext c = libcore.javax.net.ssl.TestSSLContext.create ( ) ; javax.net.ssl.SSLEngine [ ] engines = libcore.javax.net.ssl.TestSSLEnginePair.connect ( c , null ) ; assertConnected ( engines [ 0 ] , engines [ 1 ] ) ; c.close ( ) ; }

Target:
public void test_SSLEngine_beginHandshake_noClientCertificate ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLContext c = libcore.javax.net.ssl.TestSSLContext.create ( ) ; javax.net.ssl.SSLEngine [ ] engines = libcore.javax.net.ssl.TestSSLEnginePair.connect ( c , null ) ; assertConnected ( engines [ 0 ] , engines [ 1 ] ) ; c.close ( ) ; libcore.javax.net.ssl.TestSSLEnginePair.close ( engines ) ; }
Source:
protected org.eclipse.text.edits.TextEdit createTextEdit ( java.lang.String elementName , java.lang.String argumentName , java.lang.String oldName , java.lang.String newName ) { org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument xmlDoc = getDOMDocument ( ) ; java.lang.String name = null ; org.w3c.dom.Attr attr = findAttribute ( xmlDoc , elementName , argumentName , oldName ) ; if ( attr != null ) { name = attr.getValue ( ) ; } if ( ( name != null ) && ( newName != null ) ) { org.eclipse.text.edits.TextEdit edit = createTextEdit ( attr , newName ) ; return edit ; } return null ; }

Target:
private org.eclipse.text.edits.TextEdit createTextEdit ( java.lang.String elementName , java.lang.String argumentName , java.lang.String oldName , java.lang.String newName ) { org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument xmlDoc = getDOMDocument ( ) ; java.lang.String name = null ; org.w3c.dom.Attr attr = findAttribute ( xmlDoc , elementName , argumentName , oldName ) ; if ( attr != null ) { name = attr.getValue ( ) ; } if ( ( name != null ) && ( newName != null ) ) { org.eclipse.text.edits.TextEdit edit = createTextEdit ( attr , newName ) ; return edit ; } return null ; }
Source:
public java.lang.Object clone ( ) { if ( ! ( sizeIsSticky ) ) trimToSize ( ) ; try { java.util.BitSet result = ( ( java.util.BitSet ) ( super . clone ( ) ) ) ; result.words = words.clone ( ) ; result.checkInvariants ( ) ; return result ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( ) ; } }

Target:
public java.lang.Object clone ( ) { if ( ! ( sizeIsSticky ) ) trimToSize ( ) ; try { java.util.BitSet result = ( ( java.util.BitSet ) ( super . clone ( ) ) ) ; result.words = words.clone ( ) ; result.checkInvariants ( ) ; return result ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( e ) ; } }
Source:
private static void cache ( java.lang.String charsetName , java.nio.charset.Charset cs ) { synchronized ( java.nio.charset.Charset.cache2 ) { java.lang.String canonicalName = cs.name ( ) ; java.nio.charset.Charset.cache2.put ( canonicalName , cs ) ; for ( java.lang.String alias : cs.aliases ( ) ) { java.nio.charset.Charset.cache2.put ( alias , cs ) ; } } java.nio.charset.Charset.cache1 = new java.util.AbstractMap.SimpleImmutableEntry < > ( charsetName , java.nio.charset.Charset.cache2.get ( charsetName ) ) ; }

Target:
private static void cache ( java.lang.String charsetName , java.nio.charset.Charset cs ) { java.nio.charset.Charset.cache2 = java.nio.charset.Charset.cache1 ; java.nio.charset.Charset.cache1 = new java.lang.Object [ ] { charsetName , cs } ; }
Source:
protected void handleWarningMessage ( short description ) throws java.io.IOException { switch ( description ) { case AlertDescription.no_certificate : { if ( ( org.bouncycastle.crypto.tls.TlsUtils.isSSL ( getContext ( ) ) ) && ( ( certificateRequest ) != null ) ) { notifyClientCertificate ( Certificate.EMPTY_CHAIN ) ; } break ; } default : { super . handleWarningMessage ( description ) ; } } }

Target:
protected void handleWarningMessage ( short description ) throws java.io.IOException { switch ( description ) { case AlertDescription.no_certificate : { if ( ( org.bouncycastle.crypto.tls.TlsUtils.isSSL ( getContext ( ) ) ) && ( ( certificateRequest ) != null ) ) { notifyClientCertificate ( Certificate.EMPTY_CHAIN ) ; } break ; } default : { super . handleWarningMessage ( description ) ; break ; } } }
Source:
private boolean acquireWakeLock ( java.lang.String lockName ) { if ( ( mWakeLock ) != null ) { if ( ! ( lockName.equals ( mWakeLockName ) ) ) { errorLog ( ( "Multiple wake lock acquisition attempted; aborting: " + lockName ) ) ; return false ; } if ( mWakeLock.isHeld ( ) ) { return true ; } } mWakeLockName = lockName ; mWakeLock = mPowerManager.newWakeLock ( PowerManager.PARTIAL_WAKE_LOCK , lockName ) ; mWakeLock.acquire ( ) ; return true ; }

Target:
private boolean acquireWakeLock ( java.lang.String lockName ) { if ( ( mWakeLock ) == null ) { mWakeLockName = lockName ; mWakeLock = mPowerManager.newWakeLock ( PowerManager.PARTIAL_WAKE_LOCK , lockName ) ; } if ( ! ( mWakeLock.isHeld ( ) ) ) mWakeLock.acquire ( ) ; return true ; }
Source:
private boolean isExpectingError ( java.lang.String expectedOutput ) throws java.io.IOException { java.io.StringReader stringReader = new java.io.StringReader ( expectedOutput ) ; java.io.BufferedReader reader = new java.io.BufferedReader ( stringReader ) ; java.lang.String line ; while ( ( line = reader.readLine ( ) ) != null ) { if ( ( line.startsWith ( "SEVERE" ) ) || ( line.startsWith ( "ERROR" ) ) ) return true ; } return false ; }

Target:
private boolean isExpectingError ( java.lang.String expectedOutput ) throws java.io.IOException { java.io.StringReader stringReader = new java.io.StringReader ( expectedOutput ) ; java.io.BufferedReader reader = new java.io.BufferedReader ( stringReader ) ; java.lang.String line ; while ( ( line = reader.readLine ( ) ) != null ) { if ( line.startsWith ( "ERROR" ) ) return true ; } return false ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSynchronizedBlock jSyncBock ) { if ( ! ( jSyncBock.getLockExpr ( ) . getType ( ) . isSameType ( lockClass ) ) ) { return ; } tr.append ( new com.android.jack.transformations.request.PrependStatement ( jSyncBock.getSynchronizedBlock ( ) , makeRequestCall ( jSyncBock.getSourceInfo ( ) ) ) ) ; com.android.jack.ir.ast.JTryStatement tryStmt = makeTryStatement ( jSyncBock.getSourceInfo ( ) , jSyncBock ) ; tr.append ( new com.android.jack.transformations.request.Replace ( jSyncBock , tryStmt ) ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSynchronizedBlock jSyncBock ) { assert ( lockClass ) != null ; if ( ! ( jSyncBock.getLockExpr ( ) . getType ( ) . isSameType ( lockClass ) ) ) { return ; } tr.append ( new com.android.jack.transformations.request.PrependStatement ( jSyncBock.getSynchronizedBlock ( ) , makeRequestCall ( jSyncBock.getSourceInfo ( ) ) ) ) ; com.android.jack.ir.ast.JTryStatement tryStmt = makeTryStatement ( jSyncBock.getSourceInfo ( ) , jSyncBock ) ; tr.append ( new com.android.jack.transformations.request.Replace ( jSyncBock , tryStmt ) ) ; }
Source:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.ext.ExtCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack" ) } ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.REF_CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" ) } ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "ext" ) ; }

Target:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.ext.ExtCompilationTest.CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack" ) } ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.REF_CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" ) } ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "ext" ) ; }
Source:
final void internalReset ( long initialValue ) { com.google.common.cache.Striped64.Cell [ ] as = cells ; base = initialValue ; if ( as != null ) { for ( com.google.common.cache.Striped64.Cell a : as ) { if ( a != null ) a.value = initialValue ; } } }

Target:
final void internalReset ( long initialValue ) { com.google.common.cache.Striped64.Cell [ ] as = cells ; base = initialValue ; if ( as != null ) { int n = as.length ; for ( int i = 0 ; i < n ; ++ i ) { com.google.common.cache.Striped64.Cell a = as [ i ] ; if ( a != null ) a.value = initialValue ; } } }
Source:
public void testPut ( ) { java.util.concurrent.DelayQueue q = new java.util.concurrent.DelayQueue ( ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { jsr166.DelayQueueTest.PDelay I = new jsr166.DelayQueueTest.PDelay ( i ) ; q.put ( I ) ; assertTrue ( q.contains ( I ) ) ; } assertEquals ( jsr166.SIZE , q.size ( ) ) ; }

Target:
public void testPut ( ) { java.util.concurrent.DelayQueue q = new java.util.concurrent.DelayQueue ( ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { jsr166.DelayQueueTest.PDelay x = new jsr166.DelayQueueTest.PDelay ( i ) ; q.put ( x ) ; assertTrue ( q.contains ( x ) ) ; } assertEquals ( jsr166.SIZE , q.size ( ) ) ; }
Source:
public boolean onKeyPreIme ( int keyCode , android.view.KeyEvent event ) { if ( ( event.getKeyCode ( ) ) == ( android.view.KeyEvent.KEYCODE_BACK ) ) { if ( android.support.v17.leanback.widget.SearchEditText.DEBUG ) android.util.Log.v ( android.support.v17.leanback.widget.SearchEditText.TAG , "Keyboard being dismissed" ) ; mKeyboardDismissListener.onKeyboardDismiss ( ) ; return false ; } return super . onKeyPreIme ( keyCode , event ) ; }

Target:
public boolean onKeyPreIme ( int keyCode , android.view.KeyEvent event ) { if ( ( event.getKeyCode ( ) ) == ( android.view.KeyEvent.KEYCODE_BACK ) ) { if ( android.support.v17.leanback.widget.SearchEditText.DEBUG ) android.util.Log.v ( android.support.v17.leanback.widget.SearchEditText.TAG , "Keyboard being dismissed" ) ; if ( ( mKeyboardDismissListener ) != null ) { mKeyboardDismissListener.onKeyboardDismiss ( ) ; } return false ; } return super . onKeyPreIme ( keyCode , event ) ; }
Source:
protected T computeNext ( ) { if ( queue.isEmpty ( ) ) { return endOfData ( ) ; } com.google.common.collect.PeekingIterator < T > nextIter = queue.poll ( ) ; T next = nextIter.next ( ) ; if ( nextIter.hasNext ( ) ) { queue.add ( nextIter ) ; } return next ; }

Target:
public boolean hasNext ( ) { return ! ( queue.isEmpty ( ) ) ; }
Source:
private void addWakeupEvent ( java.lang.String iface , long timestampMs , int uid ) { android.net.metrics.WakeupEvent event = new android.net.metrics.WakeupEvent ( ) ; event.iface = iface ; event.timestampMs = timestampMs ; event.uid = uid ; mWakeupEvents.append ( event ) ; android.net.metrics.WakeupStats stats = mWakeupStats.get ( iface ) ; if ( stats == null ) { stats = new android.net.metrics.WakeupStats ( iface ) ; mWakeupStats.put ( iface , stats ) ; } stats.countEvent ( event ) ; }

Target:
private void addWakeupEvent ( android.net.metrics.WakeupEvent event ) { java.lang.String iface = event.iface ; mWakeupEvents.append ( event ) ; android.net.metrics.WakeupStats stats = mWakeupStats.get ( iface ) ; if ( stats == null ) { stats = new android.net.metrics.WakeupStats ( iface ) ; mWakeupStats.put ( iface , stats ) ; } stats.countEvent ( event ) ; }
Source:
public void copyTo ( android.graphics.Bitmap b ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyTo" ) ; mRS.validate ( ) ; validateBitmapFormat ( b ) ; validateBitmapSize ( b ) ; mRS.nAllocationCopyToBitmap ( getID ( mRS ) , b ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyTo ( android.graphics.Bitmap b ) { try { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyTo" ) ; mRS.validate ( ) ; validateBitmapFormat ( b ) ; validateBitmapSize ( b ) ; mRS.nAllocationCopyToBitmap ( getID ( mRS ) , b ) ; } finally { android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; } }
Source:
static < K , V > java.util.Map < K , V > asMap ( java.util.Set < K > set , com.google.common.base.Function < ? super K , V > function ) { if ( set instanceof java.util.SortedSet ) { return com.google.common.collect.Maps.asMap ( ( ( java.util.SortedSet < K > ) ( set ) ) , function ) ; } else { return new com.google.common.collect.Maps.AsMapView < K , V > ( set , function ) ; } }

Target:
public static < K , V > java.util.Map < K , V > asMap ( java.util.Set < K > set , com.google.common.base.Function < ? super K , V > function ) { if ( set instanceof java.util.SortedSet ) { return com.google.common.collect.Maps.asMap ( ( ( java.util.SortedSet < K > ) ( set ) ) , function ) ; } else { return new com.google.common.collect.Maps.AsMapView < K , V > ( set , function ) ; } }
Source:
public void setStackTrace ( java.lang.StackTraceElement [ ] trace ) { java.lang.StackTraceElement [ ] newTrace = trace.clone ( ) ; for ( int i = 0 ; i < ( newTrace.length ) ; i ++ ) { if ( ( newTrace [ i ] ) == null ) { throw new java.lang.NullPointerException ( ( ( "trace[" + i ) + "] == null" ) ) ; } } stackTrace = newTrace ; }

Target:
public void setStackTrace ( java.lang.StackTraceElement [ ] trace ) { if ( ( stackTrace ) == null ) { return ; } java.lang.StackTraceElement [ ] newTrace = trace.clone ( ) ; for ( int i = 0 ; i < ( newTrace.length ) ; i ++ ) { if ( ( newTrace [ i ] ) == null ) { throw new java.lang.NullPointerException ( ( ( "trace[" + i ) + "] == null" ) ) ; } } stackTrace = newTrace ; }
Source:
public static java.lang.String [ ] [ ] fixBootpathExt ( java.lang.String [ ] [ ] bootpath ) { for ( int i = 0 ; i < ( bootpath.length ) ; i ++ ) { if ( ( bootpath [ i ] ) != null ) { if ( bootpath [ i ] [ 0 ] . endsWith ( SdkConstants.FN_FRAMEWORK_LIBRARY ) ) { bootpath [ i ] = null ; } } } return bootpath ; }

Target:
public static java.lang.String [ ] [ ] fixBootpathExt ( java.lang.String [ ] [ ] bootpath ) { for ( int i = 0 ; i < ( bootpath.length ) ; i ++ ) { if ( ( ( bootpath [ i ] ) != null ) && ( ( bootpath [ i ] . length ) > 0 ) ) { if ( bootpath [ i ] [ 0 ] . endsWith ( SdkConstants.FN_FRAMEWORK_LIBRARY ) ) { bootpath [ i ] = null ; } } } return bootpath ; }
Source:
public com.android.ide.common.rendering.api.StyleResourceValue getTheme ( java.lang.String name , boolean frameworkTheme ) { com.android.ide.common.rendering.api.ResourceValue theme = null ; if ( frameworkTheme ) { java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > frameworkStyleMap = mFrameworkResources.get ( ResourceType.STYLE ) ; theme = frameworkStyleMap.get ( name ) ; } else { java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > projectStyleMap = mProjectResources.get ( ResourceType.STYLE ) ; theme = projectStyleMap.get ( name ) ; } if ( theme instanceof com.android.ide.common.rendering.api.StyleResourceValue ) { return ( ( com.android.ide.common.rendering.api.StyleResourceValue ) ( theme ) ) ; } return null ; }

Target:
public com.android.ide.common.rendering.api.StyleResourceValue getTheme ( java.lang.String name , boolean frameworkTheme ) { com.android.ide.common.rendering.api.ResourceValue theme ; if ( frameworkTheme ) { java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > frameworkStyleMap = mFrameworkResources.get ( ResourceType.STYLE ) ; theme = frameworkStyleMap.get ( name ) ; } else { java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > projectStyleMap = mProjectResources.get ( ResourceType.STYLE ) ; theme = projectStyleMap.get ( name ) ; } if ( theme instanceof com.android.ide.common.rendering.api.StyleResourceValue ) { return ( ( com.android.ide.common.rendering.api.StyleResourceValue ) ( theme ) ) ; } return null ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { if ( ( ! ( android.net.wifi.cts.WifiFeature.isWifiSupported ( getContext ( ) ) ) ) && ( ! ( android.net.wifi.cts.WifiFeature.isP2pSupported ( getContext ( ) ) ) ) ) { super . tearDown ( ) ; return ; } mContext.unregisterReceiver ( mReceiver ) ; if ( mWifiManager.isWifiEnabled ( ) ) { assertTrue ( mWifiManager.setWifiEnabled ( false ) ) ; java.lang.Thread.sleep ( android.net.wifi.cts.ConcurrencyTest.DURATION ) ; } super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { if ( ( ! ( android.net.wifi.cts.WifiFeature.isWifiSupported ( getContext ( ) ) ) ) && ( ! ( android.net.wifi.cts.WifiFeature.isP2pSupported ( getContext ( ) ) ) ) ) { super . tearDown ( ) ; return ; } mContext.unregisterReceiver ( mReceiver ) ; if ( ! ( mWifiManager.isWifiEnabled ( ) ) ) { assertTrue ( mWifiManager.setWifiEnabled ( true ) ) ; java.lang.Thread.sleep ( android.net.wifi.cts.ConcurrencyTest.DURATION ) ; } super . tearDown ( ) ; }
Source:
public static void create ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull com.android.sched.util.location.Location location ) throws com.android.sched.util.file.CannotCreateFileException , com.android.sched.util.file.FileAlreadyExistsException { try { if ( file.createNewFile ( ) ) { com.android.sched.util.file.AbstractStreamFile.logger.log ( java.util.logging.Level.FINE , "Create {0} (''{1}'')" , new java.lang.Object [ ] { location.getDescription ( ) , file.getAbsoluteFile ( ) } ) ; return ; } } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotCreateFileException ( location ) ; } throw new com.android.sched.util.file.FileAlreadyExistsException ( location ) ; }

Target:
public static void create ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull com.android.sched.util.location.Location location ) throws com.android.sched.util.file.CannotCreateFileException , com.android.sched.util.file.FileAlreadyExistsException { try { if ( file.createNewFile ( ) ) { com.android.sched.util.file.AbstractStreamFile.logger.log ( java.util.logging.Level.FINE , "Create {0} (''{1}'')" , new java.lang.Object [ ] { location.getDescription ( ) , file.getAbsoluteFile ( ) } ) ; return ; } } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotCreateFileException ( location , e ) ; } throw new com.android.sched.util.file.FileAlreadyExistsException ( location ) ; }
Source:
private static com.ibm.icu.text.RelativeDateTimeFormatter getFormatter ( java.lang.String localeName , libcore.icu.RelativeDateTimeFormatter.Style style , com.ibm.icu.text.DisplayContext capitalizationContext ) { java.lang.String key = ( ( ( localeName + "\t" ) + style ) + "\t" ) + capitalizationContext ; libcore.icu.RelativeDateTimeFormatter formatter = libcore.icu.RelativeDateTimeFormatter.CACHED_FORMATTERS.get ( key ) ; if ( formatter == null ) { formatter = libcore.icu.com.ibm.icu.text.RelativeDateTimeFormatter.getInstance ( new com.ibm.icu.util.ULocale ( localeName ) , null , style , capitalizationContext ) ; libcore.icu.RelativeDateTimeFormatter.CACHED_FORMATTERS.put ( key , formatter ) ; } return formatter ; }

Target:
private static com.ibm.icu.text.RelativeDateTimeFormatter getFormatter ( com.ibm.icu.util.ULocale locale , libcore.icu.RelativeDateTimeFormatter.Style style , com.ibm.icu.text.DisplayContext capitalizationContext ) { java.lang.String key = ( ( ( locale + "\t" ) + style ) + "\t" ) + capitalizationContext ; libcore.icu.RelativeDateTimeFormatter formatter = libcore.icu.RelativeDateTimeFormatter.CACHED_FORMATTERS.get ( key ) ; if ( formatter == null ) { formatter = libcore.icu.com.ibm.icu.text.RelativeDateTimeFormatter.getInstance ( locale , null , style , capitalizationContext ) ; libcore.icu.RelativeDateTimeFormatter.CACHED_FORMATTERS.put ( key , formatter ) ; } return formatter ; }
Source:
private android.view.DisplayList buildDisplayList ( android.view.View view , android.view.HardwareCanvas canvas ) { if ( ( mDrawDelta ) <= 0 ) { return view.mDisplayList ; } view.mRecreateDisplayList = ( ( view.mPrivateFlags ) & ( View.PFLAG_INVALIDATED ) ) == ( View.PFLAG_INVALIDATED ) ; view.mPrivateFlags &= ~ ( View.PFLAG_INVALIDATED ) ; long buildDisplayListStartTime = startBuildDisplayListProfiling ( ) ; canvas.clearLayerUpdates ( ) ; android.os.Trace.traceBegin ( Trace.TRACE_TAG_VIEW , "getDisplayList" ) ; android.view.DisplayList displayList = view.getDisplayList ( ) ; android.os.Trace.traceEnd ( Trace.TRACE_TAG_VIEW ) ; endBuildDisplayListProfiling ( buildDisplayListStartTime ) ; return displayList ; }

Target:
private android.view.DisplayList buildDisplayList ( android.view.View view , android.view.HardwareCanvas canvas ) { view.mRecreateDisplayList = ( ( view.mPrivateFlags ) & ( View.PFLAG_INVALIDATED ) ) == ( View.PFLAG_INVALIDATED ) ; view.mPrivateFlags &= ~ ( View.PFLAG_INVALIDATED ) ; long buildDisplayListStartTime = startBuildDisplayListProfiling ( ) ; canvas.clearLayerUpdates ( ) ; android.os.Trace.traceBegin ( Trace.TRACE_TAG_VIEW , "getDisplayList" ) ; android.view.DisplayList displayList = view.getDisplayList ( ) ; android.os.Trace.traceEnd ( Trace.TRACE_TAG_VIEW ) ; endBuildDisplayListProfiling ( buildDisplayListStartTime ) ; return displayList ; }
Source:
public void visitLabel ( final org.objectweb.asm.Label label ) { checkStartCode ( ) ; checkEndCode ( ) ; checkLabel ( label , false , "label" ) ; if ( ( labels.get ( label ) ) != null ) { throw new java.lang.IllegalArgumentException ( "Already visited label" ) ; } labels.put ( label , new java.lang.Integer ( insnCount ) ) ; super . visitLabel ( label ) ; }

Target:
public void visitLabel ( final org.objectweb.asm.Label label ) { checkStartCode ( ) ; checkEndCode ( ) ; checkLabel ( label , false , "label" ) ; if ( ( labels.get ( label ) ) != null ) { throw new java.lang.IllegalArgumentException ( "Already visited label" ) ; } labels.put ( label , insnCount ) ; super . visitLabel ( label ) ; }
Source:
public void testStyleables1 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "int[] styleable TiledView { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 }\n" + ( ( ( ( "int styleable TiledView_tileName 2\n" + "int styleable TiledView_tilingEnum 4\n" ) + "int styleable TiledView_tilingMode 3\n" ) + "int styleable TiledView_tilingProperty 0\n" ) + "int styleable TiledView_tilingResource 1\n" ) ) , ( "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " *\n" + " * This class was automatically generated by the\n" ) + " * aapt tool from the resource data it found. It\n" ) + " * should not be modified by hand.\n" ) + " */\n" ) + "package test.pkg;\n" ) + "\n" ) + "public final class R {\n" ) + " public static final class styleable {\n" ) + " public static final int[] TiledView = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 };\n" ) + " public static final int TiledView_tileName = 2;\n" ) + " public static final int TiledView_tilingEnum = 4;\n" ) + " public static final int TiledView_tilingMode = 3;\n" ) + " public static final int TiledView_tilingProperty = 0;\n" ) + " public static final int TiledView_tilingResource = 1;\n" ) + " }\n" ) + "}\n" ) ) ) ; }

Target:
public void testStyleables1 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " *\n" + " * This class was automatically generated by the\n" ) + " * aapt tool from the resource data it found. It\n" ) + " * should not be modified by hand.\n" ) + " */\n" ) + "package test.pkg;\n" ) + "\n" ) + "public final class R {\n" ) + " public static final class styleable {\n" ) + " public static final int[] TiledView = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 };\n" ) + " public static final int TiledView_tileName = 2;\n" ) + " public static final int TiledView_tilingEnum = 4;\n" ) + " public static final int TiledView_tilingMode = 3;\n" ) + " public static final int TiledView_tilingProperty = 0;\n" ) + " public static final int TiledView_tilingResource = 1;\n" ) + " }\n" ) + "}\n" ) ) , null , ( "int[] styleable TiledView { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 }\n" + ( ( ( ( "int styleable TiledView_tileName 2\n" + "int styleable TiledView_tilingEnum 4\n" ) + "int styleable TiledView_tilingMode 3\n" ) + "int styleable TiledView_tilingProperty 0\n" ) + "int styleable TiledView_tilingResource 1\n" ) ) ) ; }
Source:
private void runConfigMatchTest ( java.lang.String refConfig , int resultIndex , java.lang.String ... configs ) { com.android.ide.common.resources.configuration.FolderConfiguration reference = com.android.ide.common.resources.configuration.FolderConfiguration.getConfig ( com.android.ide.common.resources.configuration.FolderConfigurationTest.getFolderSegments ( refConfig ) ) ; assertNotNull ( reference ) ; java.util.List < ? extends com.android.ide.common.resources.configuration.Configurable > list = getConfigurable ( configs ) ; com.android.ide.common.resources.configuration.Configurable match = reference.findMatchingConfigurable ( list ) ; assertEquals ( resultIndex , list.indexOf ( match ) ) ; }

Target:
private static void runConfigMatchTest ( java.lang.String refConfig , int resultIndex , java.lang.String ... configs ) { com.android.ide.common.resources.configuration.FolderConfiguration reference = com.android.ide.common.resources.configuration.FolderConfiguration.getConfig ( com.android.ide.common.resources.configuration.FolderConfigurationTest.getFolderSegments ( refConfig ) ) ; assertNotNull ( reference ) ; java.util.List < ? extends com.android.ide.common.resources.configuration.Configurable > list = com.android.ide.common.resources.configuration.FolderConfigurationTest.getConfigurable ( configs ) ; com.android.ide.common.resources.configuration.Configurable match = reference.findMatchingConfigurable ( list ) ; assertEquals ( resultIndex , list.indexOf ( match ) ) ; }
Source:
private void enqueueConnectRetry ( ) { final boolean isLongDelay = ( mBindRetryCount ) > ( com.android.phone.CallHandlerServiceProxy.MAX_SHORT_DELAY_RETRY_COUNT ) ; final int delay = ( isLongDelay ) ? com.android.phone.CallHandlerServiceProxy.RETRY_DELAY_LONG_MILLIS : com.android.phone.CallHandlerServiceProxy.RETRY_DELAY_MILLIS ; android.util.Log.w ( com.android.phone.CallHandlerServiceProxy.TAG , ( ( ( ( ( "InCallUI Connection failed. Enqueuing delayed retry for " + delay ) + " ms." ) + " retries(" ) + ( mBindRetryCount ) ) + ")" ) ) ; sendEmptyMessageDelayed ( com.android.phone.CallHandlerServiceProxy.BIND_RETRY_MSG , delay ) ; }

Target:
private void enqueueConnectRetry ( int msg ) { final boolean isLongDelay = ( mBindRetryCount ) > ( com.android.phone.CallHandlerServiceProxy.MAX_SHORT_DELAY_RETRY_COUNT ) ; final int delay = ( isLongDelay ) ? com.android.phone.CallHandlerServiceProxy.RETRY_DELAY_LONG_MILLIS : com.android.phone.CallHandlerServiceProxy.RETRY_DELAY_MILLIS ; android.util.Log.w ( com.android.phone.CallHandlerServiceProxy.TAG , ( ( ( ( ( "InCallUI Connection failed. Enqueuing delayed retry for " + delay ) + " ms." ) + " retries(" ) + ( mBindRetryCount ) ) + ")" ) ) ; sendEmptyMessageDelayed ( msg , delay ) ; }
Source:
static void setLong ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , long value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertActualAndExpectedMatch ( exceptionThrown , expectFailure ) ; }

Target:
static void setLong ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , long value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }
Source:
private void reportConnectionAttemptEnd ( int level2FailureCode , int connectivityFailureCode ) { mWifiMetrics.endConnectionEvent ( level2FailureCode , connectivityFailureCode ) ; switch ( level2FailureCode ) { case WifiMetrics.ConnectionEvent.FAILURE_NONE : mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; break ; case WifiMetrics.ConnectionEvent.FAILURE_REDUNDANT_CONNECTION_ATTEMPT : case WifiMetrics.ConnectionEvent.FAILURE_CONNECT_NETWORK_FAILED : break ; default : mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; } }

Target:
private void reportConnectionAttemptEnd ( int level2FailureCode , int connectivityFailureCode ) { mWifiMetrics.endConnectionEvent ( level2FailureCode , connectivityFailureCode ) ; switch ( level2FailureCode ) { case WifiMetrics.ConnectionEvent.FAILURE_NONE : mWifiDiagnostics.reportConnectionEvent ( ( - 1 ) , WifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; break ; case WifiMetrics.ConnectionEvent.FAILURE_REDUNDANT_CONNECTION_ATTEMPT : case WifiMetrics.ConnectionEvent.FAILURE_CONNECT_NETWORK_FAILED : break ; default : mWifiDiagnostics.reportConnectionEvent ( ( - 1 ) , WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; } }
Source:
void downloadCallLog ( java.lang.String path , java.util.HashMap < java.lang.String , java.lang.Integer > callCounter ) { try { com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook request = new com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook ( path , mAccount , 0 , com.android.bluetooth.pbapclient.PbapClientConnectionHandler.VCARD_TYPE_30 , 0 , 0 ) ; request.execute ( mObexSession ) ; com.android.bluetooth.pbapclient.CallLogPullRequest processor = new com.android.bluetooth.pbapclient.CallLogPullRequest ( mPbapClientStateMachine.getContext ( ) , path , callCounter ) ; processor.setResults ( request.getList ( ) ) ; processor.onPullComplete ( ) ; } catch ( java.io.IOException e ) { android.util.Log.w ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.TAG , "Download call log failure" ) ; } }

Target:
void downloadCallLog ( java.lang.String path , java.util.HashMap < java.lang.String , java.lang.Integer > callCounter ) { try { com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook request = new com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook ( path , mAccount , 0 , com.android.bluetooth.pbapclient.PbapClientConnectionHandler.VCARD_TYPE_30 , 0 , 0 ) ; request.execute ( mObexSession ) ; com.android.bluetooth.pbapclient.CallLogPullRequest processor = new com.android.bluetooth.pbapclient.CallLogPullRequest ( mPbapClientStateMachine.getContext ( ) , path , callCounter , mAccount ) ; processor.setResults ( request.getList ( ) ) ; processor.onPullComplete ( ) ; } catch ( java.io.IOException e ) { android.util.Log.w ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.TAG , "Download call log failure" ) ; } }
Source:
protected proguard.optimize.evaluation.Value getMethodReturnValue ( proguard.optimize.evaluation.Clazz clazz , proguard.classfile.constant.RefConstant refConstant , java.lang.String type ) { if ( loadMethodReturnValues ) { proguard.optimize.evaluation.Member referencedMember = refConstant.referencedMember ; if ( referencedMember != null ) { proguard.optimize.evaluation.Value value = proguard.optimize.evaluation.StoringInvocationUnit.getMethodReturnValue ( ( ( proguard.optimize.evaluation.Method ) ( referencedMember ) ) ) ; if ( ( value != null ) && ( value.isParticular ( ) ) ) { return value ; } } } return super . getMethodReturnValue ( clazz , refConstant , type ) ; }

Target:
protected proguard.optimize.evaluation.Value getMethodReturnValue ( proguard.optimize.evaluation.Clazz clazz , proguard.classfile.constant.RefConstant refConstant , java.lang.String type ) { if ( loadMethodReturnValues ) { proguard.optimize.evaluation.Member referencedMember = refConstant.referencedMember ; if ( referencedMember != null ) { proguard.optimize.evaluation.Value value = proguard.optimize.evaluation.StoringInvocationUnit.getMethodReturnValue ( ( ( proguard.optimize.evaluation.Method ) ( referencedMember ) ) ) ; if ( value != null ) { return value ; } } } return super . getMethodReturnValue ( clazz , refConstant , type ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( ( method.getEnclosingType ( ) . isExternal ( ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.booleanoperators.ConditionalAndOrRemoverChecker.ConditionalAndOrRemoverCheckerVisitor bescv = new com.android.jack.transformations.booleanoperators.ConditionalAndOrRemoverChecker.ConditionalAndOrRemoverCheckerVisitor ( ) ; bescv.accept ( method ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.booleanoperators.ConditionalAndOrRemoverChecker.ConditionalAndOrRemoverCheckerVisitor bescv = new com.android.jack.transformations.booleanoperators.ConditionalAndOrRemoverChecker.ConditionalAndOrRemoverCheckerVisitor ( ) ; bescv.accept ( method ) ; }
Source:
public java.util.Set < java.lang.String > getApplicableFilters ( @ com.android.annotations.NonNull java.util.Set < java.lang.String > allFilters ) { java.util.LinkedHashSet < java.lang.String > filters = new java.util.LinkedHashSet < java.lang.String > ( ) ; if ( isEnable ( ) ) { filters.add ( com.android.build.OutputFile.NO_FILTER ) ; } filters.addAll ( super . getApplicableFilters ( allFilters ) ) ; return filters ; }

Target:
public java.util.Set < java.lang.String > getApplicableFilters ( ) { java.util.LinkedHashSet < java.lang.String > filters = new java.util.LinkedHashSet < java.lang.String > ( ) ; if ( isEnable ( ) ) { filters.add ( com.android.build.OutputFile.NO_FILTER ) ; } filters.addAll ( super . getApplicableFilters ( ) ) ; return filters ; }
Source:
public boolean setCountryCode ( java.lang.String countryCode ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.setCountryCode ( countryCode ) ; } else { if ( countryCode != null ) { return doBooleanCommand ( ( "DRIVER COUNTRY " + ( countryCode.toUpperCase ( java.util.Locale.ROOT ) ) ) ) ; } else { return doBooleanCommand ( "DRIVER COUNTRY" ) ; } } }

Target:
public boolean setCountryCode ( java.lang.String countryCode ) { return mSupplicantStaIfaceHal.setCountryCode ( countryCode ) ; }
Source:
public void Test4089106 ( ) { android.icu.util.TimeZone def = android.icu.util.TimeZone.getDefault ( ) ; try { android.icu.util.TimeZone z = new android.icu.util.SimpleTimeZone ( ( ( int ) ( 1.25 * 3600000 ) ) , "FAKEZONE" ) ; android.icu.util.TimeZone.setDefault ( z ) ; android.icu.text.SimpleDateFormat f = new android.icu.text.SimpleDateFormat ( ) ; if ( ! ( f.getTimeZone ( ) . equals ( z ) ) ) errln ( "Fail: SimpleTimeZone should use TimeZone.getDefault()" ) ; } finally { android.icu.util.TimeZone.setDefault ( def ) ; } }

Target:
public void Test4089106 ( ) { android.icu.util.TimeZone def = android.icu.util.TimeZone.getDefault ( ) ; try { android.icu.util.TimeZone z = new android.icu.util.SimpleTimeZone ( ( ( int ) ( 1.25 * 3600000 ) ) , "FAKEZONE" ) ; android.icu.util.TimeZone.setDefault ( z ) ; z = android.icu.util.TimeZone.getDefault ( ) ; android.icu.text.SimpleDateFormat f = new android.icu.text.SimpleDateFormat ( ) ; if ( ! ( f.getTimeZone ( ) . equals ( z ) ) ) errln ( "Fail: SimpleTimeZone should use TimeZone.getDefault()" ) ; } finally { android.icu.util.TimeZone.setDefault ( def ) ; } }
Source:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.Actions.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { com.android.manifmerger.XmlElement originElement = attribute.getOwnerElement ( ) ; java.util.List < com.android.manifmerger.Actions.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( actionType , new com.android.manifmerger.Actions.ActionLocation ( originElement.getDocument ( ) . getSourceLocation ( ) , attribute.getPosition ( ) ) , attribute.getId ( ) , attributeOperationType ) ; attributeRecords.add ( attributeRecord ) ; }

Target:
synchronized void recordAttributeAction ( @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull com.android.manifmerger.Actions.ActionType actionType , @ com.android.annotations.Nullable com.android.manifmerger.AttributeOperationType attributeOperationType ) { com.android.manifmerger.XmlElement originElement = attribute.getOwnerElement ( ) ; java.util.List < com.android.manifmerger.Actions.AttributeRecord > attributeRecords = getAttributeRecords ( attribute ) ; com.android.manifmerger.Actions.AttributeRecord attributeRecord = new com.android.manifmerger.Actions.AttributeRecord ( actionType , new com.android.manifmerger.Actions.ActionLocation ( originElement.getDocument ( ) . getSourceLocation ( ) , attribute.getPosition ( ) ) , attribute.getId ( ) , null , attributeOperationType ) ; attributeRecords.add ( attributeRecord ) ; }
Source:
private void setConvoRead ( com.android.bluetooth.map.BluetoothMapConvoListingElement e , android.database.Cursor c , com.android.bluetooth.map.BluetoothMapContent.FilterInfo fi , com.android.bluetooth.map.BluetoothMapAppParams ap ) { java.lang.String setread = null ; int read = 0 ; read = c.getInt ( fi.mConvoColRead ) ; if ( com.android.bluetooth.map.BluetoothMapContent.V ) android.util.Log.d ( com.android.bluetooth.map.BluetoothMapContent.TAG , ( "setRead: " + setread ) ) ; e.setRead ( ( read == 1 ? true : false ) , ( ( ( ap.getParameterMask ( ) ) & ( com.android.bluetooth.map.BluetoothMapContent.MASK_READ ) ) != 0 ) ) ; }

Target:
private void setConvoRead ( com.android.bluetooth.map.BluetoothMapConvoListingElement e , android.database.Cursor c , com.android.bluetooth.map.BluetoothMapContent.FilterInfo fi , com.android.bluetooth.map.BluetoothMapAppParams ap ) { java.lang.String setread = null ; int read = 0 ; read = c.getInt ( fi.mConvoColRead ) ; if ( com.android.bluetooth.map.BluetoothMapContent.V ) { android.util.Log.d ( com.android.bluetooth.map.BluetoothMapContent.TAG , ( "setRead: " + setread ) ) ; } e.setRead ( ( read == 1 ) , ( ( ( ap.getParameterMask ( ) ) & ( com.android.bluetooth.map.BluetoothMapContent.MASK_READ ) ) != 0 ) ) ; }