auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.Iterators.emptyIterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( vfs.getRootDir ( ) , fileType , inputVFiles ) ; return inputVFiles.iterator ( ) ; }

Target:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.Iterators.emptyIterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( vfs.getRootInputVDir ( ) , fileType , inputVFiles ) ; return inputVFiles.iterator ( ) ; }
Source:
void write ( java.io.PrintWriter writer ) { if ( ! ( isValid ( ) ) ) { return ; } writer.print ( " <item name=\"" ) ; writer.print ( getSignature ( ) ) ; writer.println ( "\">" ) ; for ( com.android.build.gradle.tasks.annotations.Extractor.AnnotationData annotation : annotations ) { annotation.write ( writer ) ; } writer.print ( " </item>" ) ; writer.println ( ) ; }

Target:
void write ( java.io.PrintWriter writer ) { if ( ( ! ( isValid ( ) ) ) || ( annotations.isEmpty ( ) ) ) { return ; } writer.print ( " <item name=\"" ) ; writer.print ( getSignature ( ) ) ; writer.println ( "\">" ) ; for ( com.android.build.gradle.tasks.annotations.Extractor.AnnotationData annotation : annotations ) { annotation.write ( writer ) ; } writer.print ( " </item>" ) ; writer.println ( ) ; }
Source:
public void enter ( ) { ( mRssiPollToken ) ++ ; if ( mEnableRssiPolling ) { sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_RSSI_POLL , mRssiPollToken , 0 ) ; } if ( ( mNetworkAgent ) != null ) { loge ( "Have NetworkAgent when entering L2Connected" ) ; setNetworkDetailedState ( DetailedState.DISCONNECTED ) ; } setNetworkDetailedState ( DetailedState.CONNECTING ) ; mNetworkAgent = new com.android.server.wifi.WifiStateMachine.WifiNetworkAgent ( getHandler ( ) . getLooper ( ) , mContext , "WifiNetworkAgent" , mNetworkInfo , mNetworkCapabilitiesFilter , mLinkProperties , 60 , mNetworkMisc ) ; clearCurrentConfigBSSID ( "L2ConnectedState" ) ; mCountryCode.setReadyForChange ( false ) ; mWifiMetrics.setWifiState ( WifiMetricsProto.WifiLog.WIFI_ASSOCIATED ) ; }

Target:
public void enter ( ) { ( mRssiPollToken ) ++ ; if ( mEnableRssiPolling ) { sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_RSSI_POLL , mRssiPollToken , 0 ) ; } if ( ( mNetworkAgent ) != null ) { loge ( "Have NetworkAgent when entering L2Connected" ) ; setNetworkDetailedState ( DetailedState.DISCONNECTED ) ; } setNetworkDetailedState ( DetailedState.CONNECTING ) ; mNetworkAgent = new com.android.server.wifi.WifiStateMachine.WifiNetworkAgent ( getHandler ( ) . getLooper ( ) , mContext , "WifiNetworkAgent" , mNetworkInfo , mNetworkCapabilitiesFilter , mLinkProperties , 60 , mNetworkMisc ) ; clearTargetBssid ( "L2ConnectedState" ) ; mCountryCode.setReadyForChange ( false ) ; mWifiMetrics.setWifiState ( WifiMetricsProto.WifiLog.WIFI_ASSOCIATED ) ; }
Source:
public void test_socket_accept_Blocking_NotBound ( ) throws java.io.IOException { java.net.ServerSocket gotSocket = serverChannel.socket ( ) ; serverChannel.configureBlocking ( true ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException e ) { } serverChannel.close ( ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException e ) { } }

Target:
public void test_socket_accept_Blocking_Bound ( ) throws java.io.IOException { serverChannel.configureBlocking ( true ) ; serverChannel.bind ( null ) ; serverChannel.close ( ) ; try { serverChannel.socket ( ) . accept ( ) ; fail ( "Should throw a ClosedChannelException" ) ; } catch ( java.nio.channels.ClosedChannelException expected ) { } }
Source:
private java.util.Set < vogar.ModeId > readModes ( com.google.caliper.internal.gson.stream.JsonReader reader ) throws java.io.IOException { java.util.Set < vogar.ModeId > result = new java.util.LinkedHashSet < vogar.ModeId > ( ) ; reader.beginArray ( ) ; while ( reader.hasNext ( ) ) { result.add ( vogar.ModeId.valueOf ( reader.nextString ( ) . toUpperCase ( ) ) ) ; } reader.endArray ( ) ; return result ; }

Target:
private java.util.Set < vogar.ModeId > readModes ( com.google.gson.stream.JsonReader reader ) throws java.io.IOException { java.util.Set < vogar.ModeId > result = java.util.EnumSet.noneOf ( vogar.ModeId.class ) ; reader.beginArray ( ) ; while ( reader.hasNext ( ) ) { result.add ( vogar.ModeId.valueOf ( reader.nextString ( ) . toUpperCase ( ) ) ) ; } reader.endArray ( ) ; return result ; }
Source:
private java.lang.String describe ( java.lang.String message ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; if ( message != null ) { if ( ( sb.length ( ) ) > 0 ) { sb.append ( ": " ) ; } sb.append ( message ) ; } return sb.toString ( ) ; }

Target:
private java.lang.String describe ( @ com.android.annotations.Nullable java.lang.String message ) { if ( message == null ) { return "" ; } else { return message ; } }
Source:
public java.lang.String getName ( ) { return new java.lang.String ( mBinding.readableName ( ) ) ; }

Target:
public java.lang.String getName ( ) { java.lang.String name = new java.lang.String ( mBinding.readableName ( ) ) ; if ( ( ( name.indexOf ( '.' ) ) == ( - 1 ) ) && ( ( mBinding.enclosingType ( ) ) != null ) ) { return ( ( new java.lang.String ( mBinding.enclosingType ( ) . readableName ( ) ) ) + '.' ) + name ; } return name ; }
Source:
public void testUnknownContentXml ( ) throws java.lang.Exception { java.lang.String document = ( ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.SdkRepositoryTest.OPEN_TAG ) ) + "<r:unknown />" ) + ( com.android.sdklib.repository.SdkRepositoryTest.CLOSE_TAG ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; javax.xml.validation.Validator validator = getValidator ( SdkRepoConstants.NS_LATEST_VERSION , null ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "cvc-complex-type.2.4.a: Invalid content was found.*" , e.getMessage ( ) ) ; return ; } fail ( ) ; }

Target:
public void testUnknownContentXml ( ) throws java.lang.Exception { java.lang.String document = ( ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.SdkRepositoryTest.OPEN_TAG ) ) + "<r:unknown />" ) + ( com.android.sdklib.repository.SdkRepositoryTest.CLOSE_TAG ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; javax.xml.validation.Validator validator = getRepoValidator ( SdkRepoConstants.NS_LATEST_VERSION , null ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "cvc-complex-type.2.4.a: Invalid content was found.*" , e.getMessage ( ) ) ; return ; } fail ( ) ; }
Source:
public void testPackageOverridePackageWithSuffixOnly ( ) { com.android.utils.StdLogger logger = new com.android.utils.StdLogger ( StdLogger.Level.ERROR ) ; com.android.builder.AndroidBuilder builder = new com.android.builder.AndroidBuilder ( new com.android.builder.DefaultSdkParser ( "" ) , new com.android.builder.AndroidBuilderTest.ManifestParserMock ( "fake.package.name" ) , new com.android.builder.CommandLineRunner ( logger ) , logger , false ) ; mDebug.setPackageNameSuffix ( "fortytwo" ) ; builder.setBuildVariant ( mMain , mFlavor , mDebug ) ; assertEquals ( "fake.package.name.fortytwo" , builder.getPackageOverride ( "" ) ) ; }

Target:
public void testPackageOverridePackageFromFlavorWithSuffix ( ) { com.android.builder.AndroidBuilder builder = new com.android.builder.AndroidBuilderTest.AndroidBuilderMock ( new com.android.builder.DefaultSdkParser ( "" ) , new com.android.utils.StdLogger ( StdLogger.Level.ERROR ) , false ) ; mFlavor.getProductFlavor ( ) . setPackageName ( "foo.bar" ) ; mDebug.getBuildType ( ) . setPackageNameSuffix ( ".fortytwo" ) ; builder.setBuildVariant ( mMain , mDebug ) ; builder.addProductFlavor ( mFlavor ) ; assertEquals ( "foo.bar.fortytwo" , builder.getPackageOverride ( "" ) ) ; }
Source:
private android.net.Uri getTempUri ( java.lang.String fileName ) { final java.io.File file = new java.io.File ( ( ( ( ( ( getFilesDir ( ) ) + ( java.io.File.separator ) ) + "images" ) + ( java.io.File.separator ) ) + fileName ) ) ; file.getParentFile ( ) . mkdirs ( ) ; mTempFiles.add ( file ) ; return android.support.v4.content.FileProvider.getUriForFile ( this , "com.android.cts.verifier.managedprovisioning.fileprovider" , file ) ; }

Target:
private android.support.v4.util.Pair < java.io.File , android.net.Uri > getTempUri ( java.lang.String fileName ) { final java.io.File file = new java.io.File ( ( ( ( ( ( getFilesDir ( ) ) + ( java.io.File.separator ) ) + "images" ) + ( java.io.File.separator ) ) + fileName ) ) ; file.getParentFile ( ) . mkdirs ( ) ; mTempFiles.add ( file ) ; return new android.support.v4.util.Pair ( file , android.support.v4.content.FileProvider.getUriForFile ( this , "com.android.cts.verifier.managedprovisioning.fileprovider" , file ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( mDeviceName , mDeviceAddress , mManufacturerId , mManufacturerData , mManufacturerDataMask , mServiceDataUuid , mServiceData , mServiceDataMask , mServiceUuid , mServiceUuidMask ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( mDeviceName , mDeviceAddress , mManufacturerId , java.util.Arrays.hashCode ( mManufacturerData ) , java.util.Arrays.hashCode ( mManufacturerDataMask ) , mServiceDataUuid , java.util.Arrays.hashCode ( mServiceData ) , java.util.Arrays.hashCode ( mServiceDataMask ) , mServiceUuid , mServiceUuidMask ) ; }
Source:
public void testNotifyChange2 ( ) { android.content.cts.ContentResolverTest.MockContentObserver mco = new android.content.cts.ContentResolverTest.MockContentObserver ( ) ; mContentResolver.registerContentObserver ( android.content.cts.ContentResolverTest.TABLE1_URI , true , mco ) ; assertFalse ( mco.hadOnChanged ( ) ) ; mContentResolver.notifyChange ( android.content.cts.ContentResolverTest.TABLE1_URI , mco , false ) ; assertTrue ( mco.hadOnChanged ( ) ) ; mContentResolver.unregisterContentObserver ( mco ) ; }

Target:
public void testNotifyChange2 ( ) { final android.content.cts.ContentResolverTest.MockContentObserver mco = new android.content.cts.ContentResolverTest.MockContentObserver ( ) ; mContentResolver.registerContentObserver ( android.content.cts.ContentResolverTest.TABLE1_URI , true , mco ) ; assertFalse ( mco.hadOnChanged ( ) ) ; mContentResolver.notifyChange ( android.content.cts.ContentResolverTest.TABLE1_URI , mco , false ) ; new android.view.animation.cts.DelayedCheck ( ) { @ java.lang.Override protected boolean check ( ) { return mco.hadOnChanged ( ) ; } } . run ( ) ; mContentResolver.unregisterContentObserver ( mco ) ; }
Source:
public void testGetmtime_Success ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to import key when unlocked" , mKeyStore.importKey ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.PRIVKEY_BYTES , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; long now = java.lang.System.currentTimeMillis ( ) ; long actual = mKeyStore.getmtime ( android.security.KeyStoreTest.TEST_KEYNAME ) ; long expectedAfter = now - ( android.security.KeyStoreTest.SLOP_TIME_MILLIS ) ; long expectedBefore = now + ( android.security.KeyStoreTest.SLOP_TIME_MILLIS ) ; android.security.KeyStoreTest.assertLessThan ( "Time should be close to current time" , expectedBefore , actual ) ; android.security.KeyStoreTest.assertGreaterThan ( "Time should be close to current time" , expectedAfter , actual ) ; }

Target:
public void testGetmtime_Success ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.onUserPasswordChanged ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to import key when unlocked" , mKeyStore.importKey ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.PRIVKEY_BYTES , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; long now = java.lang.System.currentTimeMillis ( ) ; long actual = mKeyStore.getmtime ( android.security.KeyStoreTest.TEST_KEYNAME ) ; long expectedAfter = now - ( android.security.KeyStoreTest.SLOP_TIME_MILLIS ) ; long expectedBefore = now + ( android.security.KeyStoreTest.SLOP_TIME_MILLIS ) ; android.security.KeyStoreTest.assertLessThan ( "Time should be close to current time" , expectedBefore , actual ) ; android.security.KeyStoreTest.assertGreaterThan ( "Time should be close to current time" , expectedAfter , actual ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( "arttest" ) ; Main.testFindClassOnAttachedNativeThread ( ) ; Main.testFindFieldOnAttachedNativeThread ( ) ; Main.testReflectFieldGetFromAttachedNativeThreadNative ( ) ; Main.testCallStaticVoidMethodOnSubClass ( ) ; Main.testGetMirandaMethod ( ) ; Main.testZeroLengthByteBuffers ( ) ; Main.testByteMethod ( ) ; Main.testShortMethod ( ) ; Main.testBooleanMethod ( ) ; Main.testCharMethod ( ) ; Main.testIsAssignableFromOnPrimitiveTypes ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( "arttest" ) ; Main.testFindClassOnAttachedNativeThread ( ) ; Main.testFindFieldOnAttachedNativeThread ( ) ; Main.testReflectFieldGetFromAttachedNativeThreadNative ( ) ; Main.testCallStaticVoidMethodOnSubClass ( ) ; Main.testGetMirandaMethod ( ) ; Main.testZeroLengthByteBuffers ( ) ; Main.testByteMethod ( ) ; Main.testShortMethod ( ) ; Main.testBooleanMethod ( ) ; Main.testCharMethod ( ) ; Main.testIsAssignableFromOnPrimitiveTypes ( ) ; Main.testShallowGetCallingClassLoader ( ) ; }
Source:
private static void checkArgsCount ( @ android.support.annotation.NonNull java.lang.String selection , @ android.support.annotation.Nullable java.lang.String ... args ) { int argsInSelection = 0 ; for ( int i = 0 ; i < ( selection.length ( ) ) ; i ++ ) { if ( ( selection.charAt ( i ) ) == '?' ) { argsInSelection ++ ; } } com.android.dialer.common.Assert.checkArgument ( ( argsInSelection == ( args == null ? 0 : args.length ) ) ) ; }

Target:
private static void checkArgsCount ( @ android.support.annotation.NonNull java.lang.String selection , java.util.Collection < java.lang.String > args ) { int argsInSelection = 0 ; for ( int i = 0 ; i < ( selection.length ( ) ) ; i ++ ) { if ( ( selection.charAt ( i ) ) == '?' ) { argsInSelection ++ ; } } com.android.dialer.common.Assert.checkArgument ( ( argsInSelection == ( args == null ? 0 : args.size ( ) ) ) ) ; }
Source:
protected void onAttachedToWindow ( ) { if ( ( ( mPrivateFlags ) & ( android.view.View.REQUEST_TRANSPARENT_REGIONS ) ) != 0 ) { mParent.requestTransparentRegion ( this ) ; } if ( ( ( mPrivateFlags ) & ( android.view.View.AWAKEN_SCROLL_BARS_ON_ATTACH ) ) != 0 ) { initialAwakenScrollBars ( ) ; mPrivateFlags &= ~ ( android.view.View.AWAKEN_SCROLL_BARS_ON_ATTACH ) ; } }

Target:
protected void onAttachedToWindow ( ) { if ( ( ( mPrivateFlags ) & ( android.view.View.REQUEST_TRANSPARENT_REGIONS ) ) != 0 ) { mParent.requestTransparentRegion ( this ) ; } if ( ( ( mPrivateFlags ) & ( android.view.View.AWAKEN_SCROLL_BARS_ON_ATTACH ) ) != 0 ) { initialAwakenScrollBars ( ) ; mPrivateFlags &= ~ ( android.view.View.AWAKEN_SCROLL_BARS_ON_ATTACH ) ; } jumpDrawablesToCurrentState ( ) ; resolveLayoutDirectionIfNeeded ( ) ; resolvePadding ( ) ; resolveTextDirection ( ) ; if ( isFocused ( ) ) { android.view.inputmethod.InputMethodManager imm = android.view.inputmethod.InputMethodManager.peekInstance ( ) ; imm.focusIn ( this ) ; } }
Source:
public void onPostDialCharWait ( java.lang.String callId , java.lang.String chars ) { if ( isActivityStarted ( ) ) { inCallActivity.showDialogForPostCharWait ( callId , chars ) ; } }

Target:
public void onPostDialCharWait ( java.lang.String callId , java.lang.String chars ) { if ( ( isActivityStarted ( ) ) && ( inCallActivity.isVisible ( ) ) ) { inCallActivity.showDialogForPostCharWait ( callId , chars ) ; } else { android.content.Intent intent = new android.content.Intent ( context , com.android.incallui.PostCharDialogActivity.class ) ; intent.setFlags ( ( ( android.content.Intent.FLAG_ACTIVITY_NEW_TASK ) | ( android.content.Intent.FLAG_ACTIVITY_MULTIPLE_TASK ) ) ) ; intent.putExtra ( PostCharDialogActivity.EXTRA_CALL_ID , callId ) ; intent.putExtra ( PostCharDialogActivity.EXTRA_POST_DIAL_STRING , chars ) ; context.startActivity ( intent ) ; } }
Source:
private void setFrequencyBand ( ) { int band = Settings.Global.getInt ( mContext.getContentResolver ( ) , Settings.Global.WIFI_FREQUENCY_BAND , WifiManager.WIFI_FREQUENCY_BAND_AUTO ) ; if ( mWifiNative.setBand ( band ) ) { mFrequencyBand.set ( band ) ; if ( com.android.server.wifi.WifiStateMachine.PDBG ) { logd ( ( "done set frequency band " + band ) ) ; } } else { loge ( ( "Failed to set frequency band " + band ) ) ; } }

Target:
private void setFrequencyBand ( ) { int band = android.net.wifi.WifiManager.WIFI_FREQUENCY_BAND_AUTO ; if ( mWifiNative.setBand ( band ) ) { mFrequencyBand.set ( band ) ; if ( ( mWifiConnectivityManager ) != null ) { mWifiConnectivityManager.setUserPreferredBand ( band ) ; } if ( mVerboseLoggingEnabled ) { logd ( ( "done set frequency band " + band ) ) ; } } else { loge ( ( "Failed to set frequency band " + band ) ) ; } }
Source:
protected java.security.AlgorithmParameters engineGetParameters ( ) { if ( ( engineParam ) == null ) { if ( ( engineParams ) != null ) { java.lang.String name = "IES" ; try { engineParam = java.security.AlgorithmParameters.getInstance ( name , BouncyCastleProvider.PROVIDER_NAME ) ; engineParam.init ( engineParams ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e.toString ( ) ) ; } } } return engineParam ; }

Target:
protected java.security.AlgorithmParameters engineGetParameters ( ) { if ( ( engineParam ) == null ) { if ( ( engineParams ) != null ) { java.lang.String name = "IES" ; try { engineParam = helper.createAlgorithmParameters ( name ) ; engineParam.init ( engineParams ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e.toString ( ) ) ; } } } return engineParam ; }
Source:
private synchronized void onVirtualCableUnplug ( ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , "onVirtualCableUnplug()" ) ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDeviceService.MESSAGE_VC_UNPLUG ) ; mHandler.sendMessage ( msg ) ; }

Target:
synchronized void onSetReportFromNative ( byte reportType , byte reportId , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "onSetReport(): reportType=" + reportType ) + " reportId=" ) + reportId ) ) ; } java.nio.ByteBuffer bb = java.nio.ByteBuffer.wrap ( data ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDeviceService.MESSAGE_SET_REPORT ) ; msg.arg1 = reportType ; msg.arg2 = reportId ; msg.obj = bb ; mHandler.sendMessage ( msg ) ; }
Source:
public void generateContainerLayout ( final com.intellij.uiDesigner.lw.LwContainer lwContainer , final org.jetbrains.asm4.commons.GeneratorAdapter generator , final int componentLocal ) { generator.loadLocal ( componentLocal ) ; generator.newInstance ( com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.ourGridBagLayoutType ) ; generator.dup ( ) ; generator.invokeConstructor ( com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.ourGridBagLayoutType , com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.ourDefaultConstructor ) ; generator.invokeVirtual ( ourContainerType , ourSetLayoutMethod ) ; }

Target:
public void generateContainerLayout ( final com.intellij.uiDesigner.lw.LwContainer lwContainer , final org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter generator , final int componentLocal ) { generator.loadLocal ( componentLocal ) ; generator.newInstance ( com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.ourGridBagLayoutType ) ; generator.dup ( ) ; generator.invokeConstructor ( com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.ourGridBagLayoutType , com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.ourDefaultConstructor ) ; generator.invokeVirtual ( ourContainerType , ourSetLayoutMethod ) ; }
Source:
public void waitForIdle ( int timeoutMs ) { com.android.server.ConnectivityServiceTest.waitForIdleHandler ( mService.mHandlerThread , timeoutMs ) ; waitForIdle ( mCellNetworkAgent , timeoutMs ) ; waitForIdle ( mWiFiNetworkAgent , timeoutMs ) ; waitForIdle ( mEthernetNetworkAgent , timeoutMs ) ; com.android.server.ConnectivityServiceTest.waitForIdleHandler ( mService.mHandlerThread , timeoutMs ) ; }

Target:
public void waitForIdle ( int timeoutMsAsInt ) { long timeoutMs = timeoutMsAsInt ; com.android.internal.util.TestUtils.waitForIdleHandler ( mService.mHandlerThread , timeoutMs ) ; waitForIdle ( mCellNetworkAgent , timeoutMs ) ; waitForIdle ( mWiFiNetworkAgent , timeoutMs ) ; waitForIdle ( mEthernetNetworkAgent , timeoutMs ) ; com.android.internal.util.TestUtils.waitForIdleHandler ( mService.mHandlerThread , timeoutMs ) ; }
Source:
public boolean retainAll ( final java.util.Collection < ? > collection ) { com.google.common.base.Preconditions.checkNotNull ( collection ) ; com.google.common.base.Predicate < E > combinedPredicate = new com.google.common.base.Predicate < E > ( ) { @ java.lang.Override public boolean apply ( E input ) { return ( predicate.apply ( input ) ) && ( ! ( collection.contains ( input ) ) ) ; } } ; return com.google.common.collect.Iterables.removeIf ( unfiltered , combinedPredicate ) ; }

Target:
public boolean removeAll ( final java.util.Collection < ? > collection ) { return com.google.common.collect.Iterables.removeIf ( unfiltered , com.google.common.base.Predicates.and ( predicate , com.google.common.base.Predicates.in ( collection ) ) ) ; }
Source:
public void catchException ( final org.objectweb.asm.Label start , final org.objectweb.asm.Label end , final org.objectweb.asm.Type exception ) { if ( exception == null ) { mv.visitTryCatchBlock ( start , end , mark ( ) , null ) ; } else { mv.visitTryCatchBlock ( start , end , mark ( ) , exception.getInternalName ( ) ) ; } }

Target:
public void catchException ( final org.objectweb.asm.Label start , final org.objectweb.asm.Label end , final org.objectweb.asm.Type exception ) { org.objectweb.asm.Label doCatch = new org.objectweb.asm.Label ( ) ; if ( exception == null ) { mv.visitTryCatchBlock ( start , end , doCatch , null ) ; } else { mv.visitTryCatchBlock ( start , end , doCatch , exception.getInternalName ( ) ) ; } mark ( doCatch ) ; }
Source:
protected void finalize ( ) throws java.lang.Throwable { if ( ! ( mDestroyed ) ) { if ( ( ( mID ) != 0 ) && ( mRS.isAlive ( ) ) ) { mRS.nObjDestroy ( mID ) ; } mRS = null ; mID = 0 ; mDestroyed = true ; } super . finalize ( ) ; }

Target:
protected void finalize ( ) throws java.lang.Throwable { helpDestroy ( ) ; super . finalize ( ) ; }
Source:
public static native java.lang.String getBestDateTimePattern ( java.lang.String skeleton , java.lang.String localeName ) ;

Target:
public static java.lang.String getBestDateTimePattern ( java.lang.String skeleton , java.lang.String localeName ) { java.lang.String key = ( skeleton + "\t" ) + localeName ; synchronized ( libcore.icu.ICU.CACHED_PATTERNS ) { java.lang.String pattern = libcore.icu.ICU.CACHED_PATTERNS.get ( key ) ; if ( pattern == null ) { pattern = libcore.icu.ICU.getBestDateTimePatternNative ( skeleton , localeName ) ; libcore.icu.ICU.CACHED_PATTERNS.put ( key , pattern ) ; } return pattern ; } }
Source:
public boolean checkForCondition ( ) { android.support.test.uiautomator.UiObject okButton = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( "OK" ) ) ; if ( okButton.exists ( ) ) { try { okButton.click ( ) ; return true ; } catch ( android.support.test.uiautomator.UiObjectNotFoundException e ) { throw new junit.framework.AssertionFailedError ( "Failed to dismiss the VPN popup dialog" ) ; } } return false ; }

Target:
public boolean checkForCondition ( ) { android.support.test.uiautomator.UiObject okButton = mDevice.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( "OK" ) ) ; if ( okButton.exists ( ) ) { try { okButton.click ( ) ; return true ; } catch ( android.support.test.uiautomator.UiObjectNotFoundException e ) { throw new java.lang.AssertionError ( "Failed to dismiss the VPN popup dialog" ) ; } } return false ; }
Source:
public boolean isSpam ( ) { return false ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < com.google.common.collect.ImmutableMap < com.android.dialer.DialerPhoneNumber , com.android.dialer.spam.SpamStatus > > batchCheckSpamStatus ( com.google.common.collect.ImmutableSet < com.android.dialer.DialerPhoneNumber > dialerPhoneNumbers ) { return backgroundExecutorService.submit ( ( ) -> { com.google.common.collect.ImmutableMap.Builder < com.android.dialer.DialerPhoneNumber , com.android.dialer.spam.SpamStatus > resultBuilder = new com.google.common.collect.ImmutableMap.Builder < > ( ) ; for ( com.android.dialer.DialerPhoneNumber dialerPhoneNumber : dialerPhoneNumbers ) { resultBuilder.put ( dialerPhoneNumber , com.android.dialer.spam.SimpleSpamStatus.notSpam ( ) ) ; } return resultBuilder.build ( ) ; } ) ; }
Source:
public void testConvertMarkup3 ( ) throws java.lang.Exception { java.lang.String explanation = ( ( ( ( ( "When using a custom view with custom attributes in a library project, the layout " + "must use the special namespace " ) + ( com.android.SdkConstants.AUTO_URI ) ) + " instead of a URI which includes " ) + "the library project's own package. This will be used to automatically adjust the " ) + "namespace of the attributes when the library resources are merged into the " ) + "application project." ; assertEquals ( ( "When using a custom view with custom attributes in a library project, the layout " + ( ( ( ( ( "must use the special namespace " + "<a href=\"http://schemas.android.com/apk/res-auto\">" ) + "http://schemas.android.com/apk/res-auto</a> " ) + "instead of a URI which includes the library project's own package. " ) + "This will be used to automatically adjust the namespace of the attributes when " ) + "the library resources are merged into the application project." ) ) , com.android.tools.lint.detector.api.Issue.convertMarkup ( explanation , true ) ) ; }

Target:
public void testIssueUrls ( ) { com.android.tools.lint.detector.api.Implementation implementation = new com.android.tools.lint.detector.api.Implementation ( com.android.tools.lint.checks.AccessibilityDetector.class , Scope.RESOURCE_FILE_SCOPE ) ; com.android.tools.lint.detector.api.Issue issue = com.android.tools.lint.detector.api.Issue.create ( "MyId" , "ShortDesc" , "Desc" , "Explanation" , Category.CORRECTNESS , 10 , Severity.ERROR , implementation ) ; assertTrue ( issue.getMoreInfo ( ) . isEmpty ( ) ) ; java.lang.String url1 = "http://tools.android.com" ; java.lang.String url2 = "http://tools.android.com/recent" ; issue.addMoreInfo ( url1 ) ; assertEquals ( java.util.Collections.singletonList ( url1 ) , issue.getMoreInfo ( ) ) ; issue.addMoreInfo ( url2 ) ; assertEquals ( java.util.Arrays.asList ( url1 , url2 ) , issue.getMoreInfo ( ) ) ; }
Source:
public void testOpenUdpEncapSocketRandomPort ( ) throws java.lang.Exception { try ( android.net.IpSecManager.UdpEncapsulationSocket encapSocket = mISM.openUdpEncapsulationSocket ( ) ) { assertTrue ( "Returned invalid port" , ( ( encapSocket.getPort ( ) ) != 0 ) ) ; } }

Target:
public void testInterfaceCountersUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1000 ) ; }
Source:
public void remove ( ) { com.google.common.base.Preconditions.checkState ( canRemove , "no calls to next() since the last call to remove()" ) ; int frequency = currentEntry.getValue ( ) . get ( ) ; if ( frequency <= 0 ) { throw new java.util.ConcurrentModificationException ( ) ; } if ( ( currentEntry.getValue ( ) . addAndGet ( ( - 1 ) ) ) == 0 ) { entryIterator.remove ( ) ; } ( size ) -- ; canRemove = false ; }

Target:
public void remove ( ) { com.google.common.collect.CollectPreconditions.checkRemove ( canRemove ) ; int frequency = currentEntry.getValue ( ) . get ( ) ; if ( frequency <= 0 ) { throw new java.util.ConcurrentModificationException ( ) ; } if ( ( currentEntry.getValue ( ) . addAndGet ( ( - 1 ) ) ) == 0 ) { entryIterator.remove ( ) ; } ( size ) -- ; canRemove = false ; }
Source:
public int beforeHandshake ( int c ) throws javax.net.ssl.SSLException { int s = super . beforeHandshake ( c ) ; if ( ( privateKey ) != null ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_PrivateKey ( s , privateKey ) ; } if ( ( certificates ) != null ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_certificate ( s , certificates ) ; } return s ; }

Target:
public int beforeHandshake ( int c ) throws javax.net.ssl.SSLException { int s = super . beforeHandshake ( c ) ; if ( ( privateKey ) != null ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_PrivateKey ( s , privateKey ) ; } if ( ( certificates ) != null ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_use_certificate ( s , certificates ) ; } if ( channelIdEnabled ) { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_enable_tls_channel_id ( s ) ; } return s ; }
Source:
public java.lang.invoke.MethodHandleInfo revealDirect ( java.lang.invoke.MethodHandle target ) { throw new java.lang.UnsupportedOperationException ( "MethodHandles.Lookup.revealDirect is not implemented" ) ; }

Target:
public java.lang.invoke.MethodHandleInfo revealDirect ( java.lang.invoke.MethodHandle target ) { java.lang.invoke.MethodHandleImpl directTarget = java.lang.invoke.MethodHandles.getMethodHandleImpl ( target ) ; java.lang.invoke.MethodHandleInfo info = directTarget.reveal ( ) ; try { checkAccess ( lookupClass ( ) , info.getDeclaringClass ( ) , info.getModifiers ( ) , info.getName ( ) ) ; } catch ( java.lang.IllegalAccessException exception ) { throw new java.lang.IllegalArgumentException ( "Unable to access memeber." , exception ) ; } return info ; }
Source:
private void initializeGlobals ( com.android.rs.test.RenderScript RS , com.android.rs.test.ScriptC_ctxt_default s ) { com.android.rs.test.Type.Builder typeBuilder = new com.android.rs.test.Type.Builder ( RS , com.android.rs.test.Element.I32 ( RS ) ) ; int X = 2 ; s.set_gDimX ( X ) ; typeBuilder.setX ( X ) ; A = com.android.rs.test.Allocation.createTyped ( RS , typeBuilder.create ( ) ) ; s.set_A ( A ) ; B = com.android.rs.test.Allocation.createTyped ( RS , typeBuilder.create ( ) ) ; s.set_B ( B ) ; return ; }

Target:
private void initializeGlobals ( android.renderscript.RenderScript RS , com.android.rs.test.ScriptC_ctxt_default s ) { android.renderscript.Type.Builder typeBuilder = new android.renderscript.Type.Builder ( RS , android.renderscript.Element.I32 ( RS ) ) ; int X = 2 ; s.set_gDimX ( X ) ; typeBuilder.setX ( X ) ; A = android.renderscript.Allocation.createTyped ( RS , typeBuilder.create ( ) ) ; s.set_A ( A ) ; B = android.renderscript.Allocation.createTyped ( RS , typeBuilder.create ( ) ) ; s.set_B ( B ) ; return ; }
Source:
public void fileChanged ( @ com.android.annotations.NonNull org.eclipse.core.resources.IFile file , @ com.android.annotations.NonNull org.eclipse.core.resources.IMarkerDelta [ ] markerDeltas , int kind , @ com.android.annotations.Nullable java.lang.String extension , int flags ) { if ( flags == ( org.eclipse.core.resources.IResourceDelta.MARKERS ) ) { return ; } if ( ( ( com.android.SdkConstants.EXT_JAVA.equals ( extension ) ) && ( ! ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.isAutoBuilding ( ) ) ) ) && ( com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . isLintOnSave ( ) ) ) { com.android.ide.eclipse.adt.internal.lint.LintDeltaProcessor.create ( ) . process ( file ) ; } }

Target:
public void fileChanged ( @ com.android.annotations.NonNull org.eclipse.core.resources.IFile file , @ com.android.annotations.NonNull org.eclipse.core.resources.IMarkerDelta [ ] markerDeltas , int kind , @ com.android.annotations.Nullable java.lang.String extension , int flags , boolean isAndroidProject ) { if ( ( ! isAndroidProject ) || ( flags == ( org.eclipse.core.resources.IResourceDelta.MARKERS ) ) ) { return ; } if ( ( ( com.android.SdkConstants.EXT_JAVA.equals ( extension ) ) && ( ! ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.isAutoBuilding ( ) ) ) ) && ( com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . isLintOnSave ( ) ) ) { com.android.ide.eclipse.adt.internal.lint.LintDeltaProcessor.create ( ) . process ( file ) ; } }
Source:
static long getSupportedProfilesBitMask ( ) { long mask = 0 ; for ( final java.lang.Class profileClass : com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ) { final int profileIndex = com.android.bluetooth.btservice.Config.getProfileIndex ( profileClass ) ; if ( profileIndex != ( - 1 ) ) { mask |= 1 << ( com.android.bluetooth.btservice.Config.getProfileIndex ( profileClass ) ) ; } } return mask ; }

Target:
static long getSupportedProfilesBitMask ( ) { long mask = 0 ; for ( final java.lang.Class profileClass : com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ) { mask |= com.android.bluetooth.btservice.Config.getProfileMask ( profileClass ) ; } return mask ; }
Source:
public void write ( java.io.DataOutput out ) throws java.io.IOException { LocalHistoryLog.LOG.assertTrue ( isLocked , "Changeset should be locked" ) ; com.intellij.util.io.DataInputOutputUtil.writeLONG ( out , myId ) ; com.intellij.history.core.StreamUtil.writeStringOrNull ( out , myName ) ; com.intellij.util.io.DataInputOutputUtil.writeTIME ( out , myTimestamp ) ; com.intellij.util.io.DataInputOutputUtil.writeINT ( out , myChanges.size ( ) ) ; for ( com.intellij.history.core.changes.Change c : myChanges ) { com.intellij.history.core.StreamUtil.writeChange ( out , c ) ; } }

Target:
public void write ( java.io.DataOutput out ) throws java.io.IOException { LocalHistoryLog.LOG.assertTrue ( isLocked , "Changeset should be locked" ) ; out.writeLong ( myId ) ; com.intellij.history.core.StreamUtil.writeStringOrNull ( out , myName ) ; out.writeLong ( myTimestamp ) ; out.writeInt ( myChanges.size ( ) ) ; for ( com.intellij.history.core.changes.Change c : myChanges ) { com.intellij.history.core.StreamUtil.writeChange ( out , c ) ; } }
Source:
public static int $noinline$returnInt ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 100000 ; ++ i ) { } while ( ! ( Main.ensureInOsrCode ( ) ) ) { } java.lang.System.out.println ( i ) ; return 53 ; }

Target:
public static int $noinline$returnInt ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 100000 ; ++ i ) { } while ( ! ( Main.isInOsrCode ( "$noinline$returnInt" ) ) ) { } java.lang.System.out.println ( i ) ; return 53 ; }
Source:
void onConnect ( java.net.InetSocketAddress address , int status , boolean updateSocketState ) { this . status = status ; connectAddress = address ; if ( ( ( status == ( java.nio.SocketChannelImpl.SOCKET_STATUS_CONNECTED ) ) && updateSocketState ) && ( ( socket ) != null ) ) { socket.onConnect ( connectAddress.getAddress ( ) , connectAddress.getPort ( ) ) ; } }

Target:
void onConnectStatusChanged ( java.net.InetSocketAddress address , int status , boolean updateSocketState ) { this . status = status ; connectAddress = address ; if ( ( ( status == ( java.nio.SocketChannelImpl.SOCKET_STATUS_CONNECTED ) ) && updateSocketState ) && ( ( socket ) != null ) ) { socket.onConnect ( connectAddress.getAddress ( ) , connectAddress.getPort ( ) ) ; } }
Source:
public void testSimpleManifestMerger ( ) throws java.io.IOException { java.io.File project = new java.io.File ( testDir , "simpleManifestMergingTask" ) ; runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_TEST_VERSION , project , java.util.Collections.< java.lang.String > emptyList ( ) , "clean" , "manifestMerger" ) ; }

Target:
public void testEmbedded ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "embedded" ) ; runTasksOn ( project , BasePlugin.GRADLE_TEST_VERSION , "clean" , ":main:assembleRelease" ) ; java.io.File mainApk = new java.io.File ( project , ( ( "main/build/" + ( com.android.builder.model.AndroidProject.FD_OUTPUTS ) ) + "/apk/main-release-unsigned.apk" ) ) ; com.android.build.gradle.ManualBuildTest.checkJar ( mainApk , java.util.Collections.< java.lang.String , java.lang.String > singletonMap ( ( ( ( ( ( ( com.android.SdkConstants.FD_RES ) + '/' ) + ( com.android.SdkConstants.FD_RES_RAW ) ) + '/' ) + ( com.android.builder.core.BuilderConstants.ANDROID_WEAR_MICRO_APK ) ) + ( com.android.SdkConstants.DOT_ANDROID_PACKAGE ) ) , null ) ) ; }
Source:
private void writeAndReadBack ( ) { try { java.io.StringWriter writer = new java.io.StringWriter ( ) ; mPackageDexUsage.write ( writer ) ; mPackageDexUsage = new com.android.server.pm.dex.PackageDexUsage ( ) ; mPackageDexUsage.read ( new java.io.StringReader ( writer.toString ( ) ) ) ; } catch ( java.io.IOException e ) { org.junit.Assert.fail ( ( "Unexpected IOException: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
private com.android.server.pm.dex.PackageDexUsage writeAndReadBack ( com.android.server.pm.dex.PackageDexUsage packageDexUsage ) { try { java.io.StringWriter writer = new java.io.StringWriter ( ) ; packageDexUsage.write ( writer ) ; com.android.server.pm.dex.PackageDexUsage newPackageDexUsage = new com.android.server.pm.dex.PackageDexUsage ( ) ; newPackageDexUsage.read ( new java.io.StringReader ( writer.toString ( ) ) ) ; return newPackageDexUsage ; } catch ( java.io.IOException e ) { org.junit.Assert.fail ( ( "Unexpected IOException: " + ( e.getMessage ( ) ) ) ) ; return null ; } }
Source:
public com.android.jack.ir.ast.JLocalRef exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.ExportSession exportSession ) { assert ( sourceInfo ) != null ; assert ( localId ) != null ; com.android.jack.ir.ast.JLocalRef jLocalRef = JLocalUnresolved.INSTANCE.makeRef ( sourceInfo ) ; exportSession.getVariableResolver ( ) . addLink ( localId , new com.android.jack.jayce.linker.VariableRefLinker ( jLocalRef ) ) ; for ( com.android.jack.jayce.v0004.nodes.NMarker marker : markers ) { jLocalRef.addMarker ( marker.exportAsJast ( exportSession ) ) ; } return jLocalRef ; }

Target:
public com.android.jack.ir.ast.JLocalRef exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.ExportSession exportSession ) { assert ( sourceInfo ) != null ; assert ( localId ) != null ; com.android.jack.ir.ast.JLocalRef jLocalRef = JLocalUnresolved.INSTANCE.makeRef ( sourceInfo ) ; exportSession.getVariableResolver ( ) . addLink ( localId , new com.android.jack.jayce.linker.VariableRefLinker ( jLocalRef ) ) ; for ( com.android.jack.jayce.v0004.nodes.NMarker nmarker : markers ) { com.android.sched.marker.Marker marker = nmarker.exportAsJast ( exportSession ) ; assert ( ! ( marker instanceof com.android.jack.debug.DebugVariableInfoMarker ) ) || ( marker != ( com.android.jack.debug.DebugVariableInfoMarker.NO_DEBUG_INFO ) ) ; jLocalRef.addMarker ( marker ) ; } return jLocalRef ; }
Source:
public void testGetPhoneCount ( ) { int phoneCount = mTelephonyManager.getPhoneCount ( ) ; int phoneType = mTelephonyManager.getPhoneType ( ) ; switch ( phoneType ) { case android.telephony.TelephonyManager.PHONE_TYPE_GSM : case android.telephony.TelephonyManager.PHONE_TYPE_CDMA : assertTrue ( "Phone count should be > 0" , ( phoneCount > 0 ) ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_NONE : assertTrue ( "Phone count should be 0" , ( ( phoneCount == 0 ) || ( phoneCount == 1 ) ) ) ; break ; default : throw new java.lang.IllegalArgumentException ( ( "Did you add a new phone type? " + phoneType ) ) ; } }

Target:
public void testGetPhoneCount ( ) { int phoneCount = mTelephonyManager.getPhoneCount ( ) ; int phoneType = mTelephonyManager.getPhoneType ( ) ; switch ( phoneType ) { case android.telephony.TelephonyManager.PHONE_TYPE_GSM : case android.telephony.TelephonyManager.PHONE_TYPE_CDMA : org.junit.Assert.assertTrue ( "Phone count should be > 0" , ( phoneCount > 0 ) ) ; break ; case android.telephony.TelephonyManager.PHONE_TYPE_NONE : org.junit.Assert.assertTrue ( "Phone count should be 0" , ( ( phoneCount == 0 ) || ( phoneCount == 1 ) ) ) ; break ; default : throw new java.lang.IllegalArgumentException ( ( "Did you add a new phone type? " + phoneType ) ) ; } }
Source:
public com.tonicsystems.jarjar.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return new com.tonicsystems.jarjar.AnnotationVisitor ( Opcodes.ASM4 ) { @ java.lang.Override public void visit ( java.lang.String name , java.lang.Object value ) { handleObject ( value ) ; } @ java.lang.Override public void visitEnum ( java.lang.String name , java.lang.String desc , java.lang.String value ) { handleObject ( value ) ; } @ java.lang.Override public com.tonicsystems.jarjar.AnnotationVisitor visitAnnotation ( java.lang.String name , java.lang.String desc ) { return this ; } } ; }

Target:
public com.tonicsystems.jarjar.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return new com.tonicsystems.jarjar.AnnotationVisitor ( Opcodes.ASM5 ) { @ java.lang.Override public void visit ( java.lang.String name , java.lang.Object value ) { handleObject ( value ) ; } @ java.lang.Override public void visitEnum ( java.lang.String name , java.lang.String desc , java.lang.String value ) { handleObject ( value ) ; } @ java.lang.Override public com.tonicsystems.jarjar.AnnotationVisitor visitAnnotation ( java.lang.String name , java.lang.String desc ) { return this ; } } ; }
Source:
public void testAesCbcHmacSha512Tcp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , true , 1 , false ) ; }

Target:
public void testAesCbcHmacSha512Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , android.net.cts.IpSecManagerTest.getKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }
Source:
public com.android.sched.vfs.InputVFile getFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { com.android.sched.vfs.InputVFS currentSectionVFS = getSectionVFS ( fileType ) ; return currentSectionVFS.getRootInputVDir ( ) . getInputVFile ( buildFileVPath ( fileType , typePath ) ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }

Target:
public com.android.sched.vfs.InputVDir getDir ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { com.android.sched.vfs.InputVFS currentSectionVFS = getSectionVFS ( fileType ) ; return currentSectionVFS.getRootInputVDir ( ) . getInputVDir ( typePath ) ; } catch ( com.android.sched.util.file.NotDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
public static java.lang.String floatToDoubleToIntPrint ( float value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }

Target:
public static java.lang.String $noinline$floatToDoubleToIntPrint ( float value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }
Source:
public java.lang.String formatValue ( @ javax.annotation.Nonnull java.util.Map < T , U > data ) { return codec.formatValue ( new java.util.ArrayList < java.util.Map.Entry < T , U > > ( data.entrySet ( ) ) ) ; }

Target:
protected java.util.List < com.android.sched.util.codec.PairCodec.Pair < T , U > > revert ( @ javax.annotation.Nonnull java.util.Map < T , U > data ) { java.util.List < com.android.sched.util.codec.PairCodec.Pair < T , U > > list = new java.util.ArrayList < com.android.sched.util.codec.PairCodec.Pair < T , U > > ( data.size ( ) ) ; for ( java.util.Map.Entry < T , U > entry : data.entrySet ( ) ) { list.add ( new com.android.sched.util.codec.PairCodec.Pair < T , U > ( entry.getKey ( ) , entry.getValue ( ) ) ) ; } return list ; }
Source:
private static java.util.List < java.lang.String > getAllDexCodeInstructionSets ( ) { java.util.List < java.lang.String > instructionSets = com.android.server.pm.PackageManagerService.getAllInstructionSets ( ) ; java.util.List < java.lang.String > dexCodeInstructionSets = new java.util.ArrayList < java.lang.String > ( instructionSets.size ( ) ) ; for ( java.lang.String instructionSet : instructionSets ) { dexCodeInstructionSets.add ( com.android.server.pm.PackageManagerService.getDexCodeInstructionSet ( instructionSet ) ) ; } return dexCodeInstructionSets ; }

Target:
private static java.lang.String [ ] getDexCodeInstructionSets ( java.lang.String [ ] instructionSets ) { java.util.HashSet < java.lang.String > dexCodeInstructionSets = new java.util.HashSet < java.lang.String > ( instructionSets.length ) ; for ( java.lang.String instructionSet : instructionSets ) { dexCodeInstructionSets.add ( com.android.server.pm.PackageManagerService.getDexCodeInstructionSet ( instructionSet ) ) ; } return dexCodeInstructionSets.toArray ( new java.lang.String [ dexCodeInstructionSets.size ( ) ] ) ; }