auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
static com.google.devtools.common.options.OptionsParser.DocumentationLevel documentationLevel ( java.lang.String category ) { if ( "undocumented" . equals ( category ) ) { return com.google.devtools.common.options.OptionsParser.DocumentationLevel.UNDOCUMENTED ; } else if ( "hidden" . equals ( category ) ) { return com.google.devtools.common.options.OptionsParser.DocumentationLevel.HIDDEN ; } else if ( "internal" . equals ( category ) ) { return com.google.devtools.common.options.OptionsParser.DocumentationLevel.INTERNAL ; } else { return com.google.devtools.common.options.OptionsParser.DocumentationLevel.DOCUMENTED ; } }

Target:
public static com.google.devtools.common.options.OptionsParser.OptionUsageRestrictions documentationLevel ( com.google.devtools.common.options.Option option ) { if ( ( option.optionUsageRestrictions ( ) ) != ( com.google.devtools.common.options.OptionsParser.OptionUsageRestrictions.DOCUMENTED ) ) { return option.optionUsageRestrictions ( ) ; } java.lang.String category = option.category ( ) ; if ( "undocumented" . equals ( category ) ) { return com.google.devtools.common.options.OptionsParser.OptionUsageRestrictions.UNDOCUMENTED ; } else if ( "hidden" . equals ( category ) ) { return com.google.devtools.common.options.OptionsParser.OptionUsageRestrictions.HIDDEN ; } else if ( "internal" . equals ( category ) ) { return com.google.devtools.common.options.OptionsParser.OptionUsageRestrictions.INTERNAL ; } else { return com.google.devtools.common.options.OptionsParser.OptionUsageRestrictions.DOCUMENTED ; } }
Source:
private void confirmVarAsgValue ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr , @ javax.annotation.Nonnull java.lang.Class expectedParent ) { com.android.jack.ir.ast.JNode parent = expr.getParent ( ) ; if ( ( ! ( parent instanceof com.android.jack.ir.ast.JAsgOperation ) ) || ( ( ( ( com.android.jack.ir.ast.JAsgOperation ) ( parent ) ) . getRhs ( ) ) != expr ) ) { throw new com.android.jack.ir.JNodeInternalError ( expr , ( ( "Expression must be the value in the assignment inside variable " + "assignment block element: " ) + ( this . blockElement.toSource ( ) ) ) ) ; } confirmParent ( parent , expectedParent ) ; }

Target:
private void confirmVariableAssignmentRhs ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr , @ javax.annotation.Nonnull java.lang.Class expectedParent ) { com.android.jack.ir.ast.JNode parent = expr.getParent ( ) ; if ( ( ! ( parent instanceof com.android.jack.ir.ast.JAsgOperation ) ) || ( ( ( ( com.android.jack.ir.ast.JAsgOperation ) ( parent ) ) . getRhs ( ) ) != expr ) ) { throw new com.android.jack.ir.JNodeInternalError ( expr , ( ( "Expression must be the value in the assignment inside variable " + "assignment block element: " ) + ( this . blockElement.toSource ( ) ) ) ) ; } confirmParent ( parent , expectedParent ) ; }
Source:
void writeStrings ( @ javax.annotation.Nonnull java.lang.String prefixStr , @ javax.annotation.Nonnull java.util.Collection < java.lang.String > strings ) { ps.print ( prefixStr ) ; ps.print ( ": " ) ; ps.print ( com.google.common.base.Joiner.on ( "," ) . join ( strings ) ) ; ps.println ( ) ; }

Target:
void writeStrings ( @ javax.annotation.Nonnull java.lang.String prefixStr , @ javax.annotation.Nonnull java.util.Collection < java.lang.String > strings ) { ps.print ( prefixStr ) ; ps.print ( ": " ) ; ps.print ( com.google.common.base.Joiner.on ( "," ) . useForNull ( "" ) . join ( strings ) ) ; ps.println ( ) ; }
Source:
public void init ( org.eclipse.ui.IWorkbench workbench , org.eclipse.jface.viewers.IStructuredSelection selection ) { super . init ( workbench , selection ) ; setWindowTitle ( "New Android Application" ) ; mValues = new com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizardState ( ) ; mMainPage = new com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectPage ( mValues ) ; mContentsPage = new com.android.ide.eclipse.adt.internal.wizards.templates.ProjectContentsPage ( mValues ) ; mContentsPage.init ( selection , com.android.ide.eclipse.adt.AdtUtils.getActivePart ( ) ) ; mActivityPage = new com.android.ide.eclipse.adt.internal.wizards.templates.ActivityPage ( mValues , true , true ) ; }

Target:
public void init ( org.eclipse.ui.IWorkbench workbench , org.eclipse.jface.viewers.IStructuredSelection selection ) { super . init ( workbench , selection ) ; setWindowTitle ( "New Android Application" ) ; mValues = new com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizardState ( ) ; mMainPage = new com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectPage ( mValues ) ; mContentsPage = new com.android.ide.eclipse.adt.internal.wizards.templates.ProjectContentsPage ( mValues ) ; mContentsPage.init ( selection , com.android.ide.eclipse.adt.AdtUtils.getActivePart ( ) ) ; mActivityPage = new com.android.ide.eclipse.adt.internal.wizards.templates.ActivityPage ( mValues , true , true ) ; mActivityPage.setLauncherActivitiesOnly ( true ) ; }
Source:
public < T > com.intellij.openapi.externalSystem.model.DataNode < T > createOrReplaceChild ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.externalSystem.model.Key < T > key , @ org.jetbrains.annotations.NotNull T data ) { for ( java.util.Iterator < com.intellij.openapi.externalSystem.model.DataNode < ? > > iterator = myChildren.iterator ( ) ; iterator.hasNext ( ) ; ) { com.intellij.openapi.externalSystem.model.DataNode < ? > child = iterator.next ( ) ; if ( child.getKey ( ) . equals ( key ) ) { iterator.remove ( ) ; break ; } } return createChild ( key , data ) ; }

Target:
private static < T > com.intellij.openapi.externalSystem.model.DataNode < T > nodeCopy ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.externalSystem.model.DataNode < T > dataNode , @ org.jetbrains.annotations.Nullable com.intellij.openapi.externalSystem.model.DataNode < ? > newParent ) { com.intellij.openapi.externalSystem.model.DataNode < T > copy = new com.intellij.openapi.externalSystem.model.DataNode < T > ( dataNode.myKey , dataNode.myData , newParent ) ; copy.myRawData = dataNode.myRawData ; for ( com.intellij.openapi.externalSystem.model.DataNode < ? > child : dataNode.myChildren ) { copy.addChild ( com.intellij.openapi.externalSystem.model.DataNode.nodeCopy ( child , copy ) ) ; } return copy ; }
Source:
public boolean onError ( android.media.MediaPlayer mp , int what , int extra ) { com.android.dialer.common.Assert.checkArgument ( mediaPlayer.getMediaPlayer ( ) . equals ( mp ) , "there should always only be one instance of the media player" ) ; com.android.dialer.common.Assert.checkArgument ( mediaPlayer.getLastPlayedOrPlayingVoicemailUri ( ) . equals ( mediaPlayer.getLastPreparedOrPreparingToPlayVoicemailUri ( ) ) ) ; com.android.dialer.common.LogUtil.i ( "NewVoicemailAdapter.onErrorListener" , "error playing voicemailUri: %s" , mediaPlayer.getLastPlayedOrPlayingVoicemailUri ( ) . toString ( ) ) ; return false ; }

Target:
public boolean onError ( android.media.MediaPlayer mp , int what , int extra ) { com.android.dialer.common.LogUtil.e ( "NewVoicemailAdapter.onError" , "onError, what:%d, extra:%d" , what , extra ) ; com.android.dialer.common.Assert.checkArgument ( mediaPlayer.getMediaPlayer ( ) . equals ( mp ) , "there should always only be one instance of the media player" ) ; com.android.dialer.common.Assert.checkArgument ( mediaPlayer.getLastPlayedOrPlayingVoicemailUri ( ) . equals ( mediaPlayer.getLastPreparedOrPreparingToPlayVoicemailUri ( ) ) ) ; com.android.dialer.common.LogUtil.i ( "NewVoicemailAdapter.onErrorListener" , "error playing voicemailUri: %s" , mediaPlayer.getLastPlayedOrPlayingVoicemailUri ( ) . toString ( ) ) ; return false ; }
Source:
private void maybeAddDeprecationWarning ( java.lang.reflect.Field field ) { com.google.devtools.common.options.Option option = field.getAnnotation ( com.google.devtools.common.options.Option.class ) ; java.lang.String warning = option.deprecationWarning ( ) ; if ( ( ! ( warning.equals ( "" ) ) ) || ( ( field.getAnnotation ( java.lang.Deprecated.class ) ) != null ) ) { warnings.add ( ( ( ( "Option '" + ( option.name ( ) ) ) + "' is deprecated" ) + ( warning.equals ( "" ) ? "" : ": " + warning ) ) ) ; } }

Target:
private void addDeprecationWarning ( java.lang.String optionName , java.lang.String warning ) { warnings.add ( ( ( ( "Option '" + optionName ) + "' is deprecated" ) + ( warning.isEmpty ( ) ? "" : ": " + warning ) ) ) ; }
Source:
public final void init ( int opmode , java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { checkMode ( opmode ) ; getSpi ( key ) . engineInit ( opmode , key , random ) ; mode = opmode ; }

Target:
public final void init ( int opmode , java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { checkMode ( opmode ) ; try { getSpi ( new javax.crypto.Cipher.InitParams ( javax.crypto.Cipher.InitType.KEY , opmode , key , random , null , null ) ) ; } catch ( java.security.InvalidAlgorithmParameterException e ) { throw new java.security.ProviderException ( "Invalid parameters when params == null" , e ) ; } mode = opmode ; }
Source:
public void addProviderWithInvalidCredential ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = new android.net.wifi.hotspot2.pps.HomeSP ( ) ; config.homeSp.fqdn = com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_FQDN ; config.homeSp.friendlyName = com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_FRIENDLY_NAME ; config.credential = new android.net.wifi.hotspot2.pps.Credential ( ) ; config.credential.realm = com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_REALM ; config.credential.caCertificate = com.android.server.wifi.FakeKeys.CA_CERT0 ; config.credential.userCredential = new android.net.wifi.hotspot2.pps.Credential.UserCredential ( ) ; config.credential.userCredential.username = "username" ; config.credential.userCredential.password = "password" ; config.credential.userCredential.eapType = android.net.wifi.EAPConstants.EAP_TLS ; config.credential.userCredential.nonEapInnerMethod = "MS-CHAP" ; org.junit.Assert.assertFalse ( mManager.addProvider ( config ) ) ; }

Target:
public void addProviderWithInvalidCredential ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = new android.net.wifi.hotspot2.pps.HomeSP ( ) ; config.homeSp.fqdn = com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_FQDN ; config.homeSp.friendlyName = com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_FRIENDLY_NAME ; config.credential = new android.net.wifi.hotspot2.pps.Credential ( ) ; config.credential.realm = com.android.server.wifi.hotspot2.PasspointManagerTest.TEST_REALM ; config.credential.caCertificate = com.android.server.wifi.FakeKeys.CA_CERT0 ; config.credential.userCredential = new android.net.wifi.hotspot2.pps.Credential.UserCredential ( ) ; config.credential.userCredential.username = "username" ; config.credential.userCredential.password = "password" ; config.credential.userCredential.eapType = android.net.wifi.EAPConstants.EAP_TLS ; config.credential.userCredential.nonEapInnerMethod = "MS-CHAP" ; org.junit.Assert.assertFalse ( mManager.addOrUpdateProvider ( config ) ) ; }
Source:
private void setUpstreamNetworkState ( android.net.NetworkState ns ) { if ( ns == null ) { mUpstreamNetworkState = null ; } else { mUpstreamNetworkState = new android.net.NetworkState ( null , new android.net.LinkProperties ( ns.linkProperties ) , new android.net.NetworkCapabilities ( ns.networkCapabilities ) , new android.net.Network ( ns.network ) , null , null ) ; } if ( com.android.server.connectivity.tethering.IPv6TetheringCoordinator.DBG ) { android.util.Log.d ( com.android.server.connectivity.tethering.IPv6TetheringCoordinator.TAG , ( "setUpstreamNetworkState: " + ( com.android.server.connectivity.tethering.IPv6TetheringCoordinator.toDebugString ( mUpstreamNetworkState ) ) ) ) ; } }

Target:
private void setUpstreamNetworkState ( android.net.NetworkState ns ) { if ( ns == null ) { mUpstreamNetworkState = null ; } else { mUpstreamNetworkState = new android.net.NetworkState ( null , new android.net.LinkProperties ( ns.linkProperties ) , new android.net.NetworkCapabilities ( ns.networkCapabilities ) , new android.net.Network ( ns.network ) , null , null ) ; } mLog.log ( ( "setUpstreamNetworkState: " + ( com.android.server.connectivity.tethering.IPv6TetheringCoordinator.toDebugString ( mUpstreamNetworkState ) ) ) ) ; }
Source:
private static java.lang.String shell ( ) { java.lang.String deviceSh = ( java.lang.System.getenv ( "ANDROID_ROOT" ) ) + "/bin/sh" ; java.lang.String desktopSh = "/bin/sh" ; return new java.io.File ( deviceSh ) . exists ( ) ? deviceSh : desktopSh ; }

Target:
private static java.lang.String commandPath ( java.lang.String desktopPath ) { if ( ! ( desktopPath.startsWith ( "/bin/" ) ) ) { throw new java.lang.IllegalArgumentException ( desktopPath ) ; } java.lang.String devicePath = ( java.lang.System.getenv ( "ANDROID_ROOT" ) ) + desktopPath ; return new java.io.File ( devicePath ) . exists ( ) ? devicePath : desktopPath ; }
Source:
public void testReplaceFirstSharedMatchNoCerts ( ) { int apk1 = SHARED1_CERT1 ; int apk2 = SHARED2_CERT1 ; int rapk1 = SHARED1_CERT2 ; boolean fail = true ; int retCode = PackageManager.INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES ; checkSharedSignatures ( apk1 , apk2 , false , false , ( - 1 ) , PackageManager.SIGNATURE_MATCH ) ; installFromRawResource ( "install.apk" , rapk1 , PackageManager.INSTALL_REPLACE_EXISTING , true , fail , retCode , PackageInfo.INSTALL_LOCATION_UNSPECIFIED ) ; }

Target:
public void testReplaceFirstSharedMatchNoCerts ( ) { int apk1 = SHARED1_CERT1 ; int apk2 = SHARED2_CERT1 ; int rapk1 = SHARED1_CERT2 ; boolean fail = true ; int retCode = android.content.pm.PackageManager.INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES ; checkSharedSignatures ( apk1 , apk2 , false , false , ( - 1 ) , PackageManager.SIGNATURE_MATCH ) ; installFromRawResource ( "install.apk" , rapk1 , PackageManager.INSTALL_REPLACE_EXISTING , true , fail , retCode , PackageInfo.INSTALL_LOCATION_UNSPECIFIED ) ; }
Source:
public static java.lang.String getMethodSignatureWithoutName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall call ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( '(' ) ; for ( com.android.jack.ir.ast.JType p : call.getMethodIdWide ( ) . getParamTypes ( ) ) { sb.append ( com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( p ) ) ; } sb.append ( ')' ) ; sb.append ( com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( call.getType ( ) ) ) ; return sb.toString ( ) ; }

Target:
public static com.android.jack.dx.rop.type.Prototype getPrototypeFromPolymorphicCall ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPolymorphicMethodCall call ) { java.util.List < com.android.jack.ir.ast.JType > parameterTypes = call.getMethodIdWide ( ) . getParamTypes ( ) ; com.android.jack.dx.rop.type.StdTypeList stdTypeList = new com.android.jack.dx.rop.type.StdTypeList ( parameterTypes.size ( ) ) ; int idx = 0 ; for ( com.android.jack.ir.ast.JType parameterType : parameterTypes ) { stdTypeList.set ( ( idx ++ ) , com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( parameterType ) ) ; } return com.android.jack.dx.rop.type.Prototype.intern ( stdTypeList , com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( call.getReturnTypeOfPolymorphicMethod ( ) ) ) ; }
Source:
public void onActivityCreate ( android.os.Bundle saveInstanceState ) { mainActivity.setContentView ( R.layout.main_activity ) ; com.android.dialer.main.impl.NewMainActivityPeer.MainBottomNavBarBottomNavTabListener bottomNavBarBottomNavTabListener = new com.android.dialer.main.impl.NewMainActivityPeer.MainBottomNavBarBottomNavTabListener ( mainActivity.getSupportFragmentManager ( ) ) ; com.android.dialer.main.impl.BottomNavBar bottomNav = mainActivity.findViewById ( R.id.bottom_nav_bar ) ; bottomNav.addOnTabSelectedListener ( bottomNavBarBottomNavTabListener ) ; bottomNav.selectTab ( TabIndex.SPEED_DIAL ) ; }

Target:
public void onActivityCreate ( android.os.Bundle saveInstanceState ) { mainActivity.setContentView ( R.layout.main_activity ) ; com.android.dialer.main.impl.NewMainActivityPeer.MainBottomNavBarBottomNavTabListener bottomNavBarBottomNavTabListener = new com.android.dialer.main.impl.NewMainActivityPeer.MainBottomNavBarBottomNavTabListener ( mainActivity.getSupportFragmentManager ( ) ) ; com.android.dialer.main.impl.bottomnav.BottomNavBar bottomNav = mainActivity.findViewById ( R.id.bottom_nav_bar ) ; bottomNav.addOnTabSelectedListener ( bottomNavBarBottomNavTabListener ) ; bottomNav.selectTab ( TabIndex.SPEED_DIAL ) ; }
Source:
com.android.incallui.videotech.VideoTech findBestAvailableVideoTech ( ) { for ( com.android.incallui.videotech.VideoTech tech : videoTechs ) { if ( tech.isAvailable ( context ) ) { return tech ; } } return emptyVideoTech ; }

Target:
com.android.incallui.videotech.VideoTech getVideoTech ( ) { if ( ( savedTech ) != null ) { return savedTech ; } for ( com.android.incallui.videotech.VideoTech tech : videoTechs ) { if ( tech.isAvailable ( context ) ) { savedTech = tech ; savedTech.becomePrimary ( ) ; return savedTech ; } } return emptyVideoTech ; }
Source:
protected void runTest ( ) throws java.lang.Throwable { try { switch ( testType ) { case CHECK : runTasksOnProject ( projectName , gradleVersion , java.util.Collections.< java.lang.String > emptyList ( ) , "clean" , "connectedCheck" ) ; break ; case CHECK_AND_REPORT : runTasksOnProject ( projectName , gradleVersion , java.util.Collections.< java.lang.String > emptyList ( ) , "clean" , "connectedCheck" , "mergeAndroidReports" ) ; break ; case INSTALL : runTasksOnProject ( projectName , gradleVersion , java.util.Collections.< java.lang.String > emptyList ( ) , "clean" , "installDebug" , "uninstallAll" ) ; break ; } } finally { } }

Target:
protected void runTest ( ) throws java.lang.Throwable { try { switch ( testType ) { case CHECK : runTasksOn ( projectName , gradleVersion , "clean" , "connectedCheck" ) ; break ; case CHECK_AND_REPORT : runTasksOn ( projectName , gradleVersion , "clean" , "connectedCheck" , "mergeAndroidReports" ) ; break ; case INSTALL : runTasksOn ( projectName , gradleVersion , "clean" , "installDebug" , "uninstallAll" ) ; break ; } } finally { } }
Source:
public void testClusterStarted ( ) throws org.json.JSONException { final byte [ ] mac = libcore.util.HexEncoding.decode ( "0A0B0C0B0A00" . toCharArray ( ) , false ) ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "event_type" , WifiNanNative.NAN_EVENT_ID_STARTED_CLUSTER ) ; args.putByteArray ( "data" , mac ) ; com.android.server.wifi.nan.WifiNanHalMock.callDiscEngEvent ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mNanStateManager ) . onClusterChangeNotification ( WifiNanClientState.CLUSTER_CHANGE_EVENT_STARTED , mac ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNanStateManager ) ; }

Target:
public void testClusterStarted ( ) throws org.json.JSONException { final byte [ ] mac = libcore.util.HexEncoding.decode ( "0A0B0C0B0A00" . toCharArray ( ) , false ) ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "event_type" , WifiAwareNative.AWARE_EVENT_ID_STARTED_CLUSTER ) ; args.putByteArray ( "data" , mac ) ; com.android.server.wifi.aware.WifiAwareHalMock.callDiscEngEvent ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onClusterChangeNotification ( WifiAwareClientState.CLUSTER_CHANGE_EVENT_STARTED , mac ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }
Source:
public void setConnectionCapabilities ( java.lang.String callId , int connectionCapabilities ) { android.telecom.Log.startSession ( "CSW.sCC" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setConnectionCapabilities %s %d" , callId , connectionCapabilities ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.setConnectionCapabilities ( connectionCapabilities ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }

Target:
public void setConnectionCapabilities ( java.lang.String callId , int connectionCapabilities , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , "CSW.sCC" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setConnectionCapabilities %s %d" , callId , connectionCapabilities ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.setConnectionCapabilities ( connectionCapabilities ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
private static void searchForProject ( junit.framework.TestSuite suite , java.io.File folder , java.io.File sdkFolder , java.io.File ndkFolder ) { java.io.File buildGradle = new java.io.File ( folder , "build.gradle" ) ; if ( buildGradle.isFile ( ) ) { suite.addTest ( com.android.build.tests.ProjectTest.createTest ( folder , sdkFolder , ndkFolder ) ) ; } }

Target:
private static void searchForProject ( @ com.android.annotations.NonNull junit.framework.TestSuite suite , @ com.android.annotations.NonNull java.io.File folder , @ com.android.annotations.NonNull java.io.File sdkFolder , @ com.android.annotations.NonNull java.io.File ndkFolder , @ com.android.annotations.NonNull java.lang.String taskName ) { java.io.File buildGradle = new java.io.File ( folder , "build.gradle" ) ; if ( buildGradle.isFile ( ) ) { suite.addTest ( com.android.build.tests.ProjectTest.createTest ( folder , sdkFolder , ndkFolder , taskName ) ) ; } }
Source:
public void testUtf8Encoding ( ) throws java.io.IOException { byte [ ] orig = new byte [ ] { ( ( byte ) ( 237 ) ) , ( ( byte ) ( 160 ) ) , ( ( byte ) ( 128 ) ) } ; java.lang.String s = new java.lang.String ( orig , "UTF-8" ) ; assertEquals ( 1 , s.length ( ) ) ; assertEquals ( 55296 , s.charAt ( 0 ) ) ; java.nio.charset.Charset.forName ( "UTF-8" ) . encode ( java.nio.CharBuffer.wrap ( s ) ) ; }

Target:
public void testUtf8Encoding ( ) throws java.io.IOException { byte [ ] orig = new byte [ ] { ( ( byte ) ( 237 ) ) , ( ( byte ) ( 160 ) ) , ( ( byte ) ( 128 ) ) } ; java.lang.String s = new java.lang.String ( orig , "UTF-8" ) ; assertEquals ( 3 , s.length ( ) ) ; assertEquals ( "���" , s ) ; java.nio.charset.Charset.forName ( "UTF-8" ) . encode ( java.nio.CharBuffer.wrap ( s ) ) ; }
Source:
private void compileTest ( @ javax.annotation.Nonnull java.lang.String name ) throws java.lang.Exception { com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( toolchain.getDefaultBootClasspath ( ) ) , com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( ( ( "com.android.jack.cast." + name ) + ".jack" ) ) ) ; }

Target:
private void compileTest ( @ javax.annotation.Nonnull java.lang.String name ) throws java.lang.Exception { com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( ( ( "com.android.jack.cast." + name ) + ".jack" ) ) ) ; }
Source:
protected void makeBuffers ( int w , int h , android.renderscript.Element e ) { makeSource ( w , h , e ) ; if ( ( mAllocRef ) != null ) { mAllocRef.destroy ( ) ; } if ( ( mAllocDst ) != null ) { mAllocDst.destroy ( ) ; } mAllocRef = makeAllocation ( w , h , e ) ; mAllocDst = makeAllocation ( w , h , e ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { if ( ( mVerify ) != null ) { mVerify.destroy ( ) ; } if ( ( mAllocSrc ) != null ) { mAllocSrc.destroy ( ) ; } if ( ( mAllocRef ) != null ) { mAllocRef.destroy ( ) ; } if ( ( mAllocDst ) != null ) { mAllocDst.destroy ( ) ; } super . tearDown ( ) ; }
Source:
private static java.lang.Class < ? > findExpectedType ( java.lang.Class < ? > fromClass ) { for ( java.lang.Class < ? > c = fromClass ; c != ( java.lang.Object.class ) ; c = c.getSuperclass ( ) ) { for ( java.lang.reflect.Method method : c.getDeclaredMethods ( ) ) { if ( org.junit.internal.matchers.TypeSafeMatcher.isMatchesSafelyMethod ( method ) ) { return method.getParameterTypes ( ) [ 0 ] ; } } } throw new java.lang.Error ( "Cannot determine correct type for matchesSafely() method." ) ; }

Target:
private static java.lang.Class < ? > findExpectedType ( java.lang.Class < ? > fromClass ) { for ( java.lang.Class < ? > c = fromClass ; c != ( java.lang.Object.class ) ; c = c.getSuperclass ( ) ) { for ( java.lang.reflect.Method method : org.junit.internal.MethodSorter.getDeclaredMethods ( c ) ) { if ( org.junit.internal.matchers.TypeSafeMatcher.isMatchesSafelyMethod ( method ) ) { return method.getParameterTypes ( ) [ 0 ] ; } } } throw new java.lang.Error ( "Cannot determine correct type for matchesSafely() method." ) ; }
Source:
public com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder processFolder ( com.android.io.IAbstractFolder folder ) { java.lang.String [ ] folderSegments = folder.getName ( ) . split ( AndroidConstants.RES_QUALIFIER_SEP ) ; com.android.resources.ResourceFolderType type = com.android.resources.ResourceFolderType.getTypeByName ( folderSegments [ 0 ] ) ; if ( type != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config = com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.getConfig ( folderSegments ) ; if ( config != null ) { return add ( type , config , folder ) ; } } return null ; }

Target:
public com.android.ide.common.resources.ResourceFolder processFolder ( com.android.io.IAbstractFolder folder ) { java.lang.String [ ] folderSegments = folder.getName ( ) . split ( AndroidConstants.RES_QUALIFIER_SEP ) ; com.android.resources.ResourceFolderType type = com.android.resources.ResourceFolderType.getTypeByName ( folderSegments [ 0 ] ) ; if ( type != null ) { com.android.ide.common.resources.configuration.FolderConfiguration config = com.android.ide.common.resources.configuration.FolderConfiguration.getConfig ( folderSegments ) ; if ( config != null ) { return add ( type , config , folder ) ; } } return null ; }
Source:
public com.android.tools.lint.detector.api.Severity getSeverity ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue ) { ensureInitialized ( ) ; com.android.tools.lint.detector.api.Severity severity = mSeverity.get ( issue.getId ( ) ) ; if ( severity != null ) { return severity ; } if ( ( mParent ) != null ) { return mParent.getSeverity ( issue ) ; } return getDefaultSeverity ( issue ) ; }

Target:
public com.android.tools.lint.detector.api.Severity getSeverity ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue ) { ensureInitialized ( ) ; com.android.tools.lint.detector.api.Severity severity = mSeverity.get ( issue.getId ( ) ) ; if ( severity == null ) { severity = mSeverity.get ( com.android.tools.lint.client.api.DefaultConfiguration.VALUE_ALL ) ; } if ( severity != null ) { return severity ; } if ( ( mParent ) != null ) { return mParent.getSeverity ( issue ) ; } return getDefaultSeverity ( issue ) ; }
Source:
protected void createTestItems ( ) { mGoToSetupItem = createUserItem ( R.string.tv_input_discover_test_go_to_setup , R.string.tv_launch_tv_app , this ) ; setButtonEnabled ( mGoToSetupItem , true ) ; mVerifySetupItem = createAutoItem ( R.string.tv_input_discover_test_verify_setup ) ; mTuneToChannelItem = createUserItem ( R.string.tv_input_discover_test_tune_to_channel , R.string.tv_launch_tv_app , this ) ; mVerifyTuneItem = createAutoItem ( R.string.tv_input_discover_test_verify_tune ) ; mVerifyOverlayViewItem = createAutoItem ( R.string.tv_input_discover_test_verify_overlay_view ) ; mVerifyGlobalSearchItem = createAutoItem ( R.string.tv_input_discover_test_verify_global_search ) ; mGoToEpgItem = createUserItem ( R.string.tv_input_discover_test_go_to_epg , R.string.tv_launch_epg , this ) ; mVerifyEpgItem = createUserItem ( R.string.tv_input_discover_test_verify_epg , android.R.string.yes , this ) ; }

Target:
protected void createTestItems ( ) { mGoToSetupItem = createUserItem ( R.string.tv_input_discover_test_go_to_setup , R.string.tv_launch_tv_app , this ) ; setButtonEnabled ( mGoToSetupItem , true ) ; mVerifySetupItem = createAutoItem ( R.string.tv_input_discover_test_verify_setup ) ; mTuneToChannelItem = createUserItem ( R.string.tv_input_discover_test_tune_to_channel , R.string.tv_launch_tv_app , this ) ; mVerifyTuneItem = createAutoItem ( R.string.tv_input_discover_test_verify_tune ) ; mVerifyOverlayViewItem = createAutoItem ( R.string.tv_input_discover_test_verify_overlay_view ) ; mVerifyOverlayViewSizeChanged = createAutoItem ( R.string.tv_input_discover_test_verify_size_changed ) ; mVerifyGlobalSearchItem = createAutoItem ( R.string.tv_input_discover_test_verify_global_search ) ; mGoToEpgItem = createUserItem ( R.string.tv_input_discover_test_go_to_epg , R.string.tv_launch_epg , this ) ; mVerifyEpgItem = createUserItem ( R.string.tv_input_discover_test_verify_epg , android.R.string.yes , this ) ; }
Source:
public final int startActivities ( android.app.IApplicationThread caller , android.content.Intent [ ] intents , java.lang.String [ ] resolvedTypes , android.os.IBinder resultTo , android.os.Bundle options ) { enforceNotIsolatedCaller ( "startActivities" ) ; int ret = mMainStack.startActivities ( caller , ( - 1 ) , intents , resolvedTypes , resultTo , options , android.os.Binder.getOrigCallingUser ( ) ) ; return ret ; }

Target:
public final int startActivities ( android.app.IApplicationThread caller , android.content.Intent [ ] intents , java.lang.String [ ] resolvedTypes , android.os.IBinder resultTo , android.os.Bundle options , int userId ) { enforceNotIsolatedCaller ( "startActivities" ) ; userId = handleIncomingUser ( android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , userId , false , true , "startActivity" , null ) ; int ret = mMainStack.startActivities ( caller , ( - 1 ) , intents , resolvedTypes , resultTo , options , userId ) ; return ret ; }
Source:
void setAlias ( android.bluetooth.BluetoothDevice device , java.lang.String mAlias ) { synchronized ( mObject ) { this . mAlias = mAlias ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.setDevicePropertyNative ( mAddress , AbstractionLayer.BT_PROPERTY_REMOTE_FRIENDLY_NAME , mAlias.getBytes ( ) ) ; android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_ALIAS_CHANGED ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothDevice.EXTRA_NAME , mAlias ) ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.sendBroadcast ( intent , AdapterService.BLUETOOTH_PERM ) ; } }

Target:
void setAlias ( android.bluetooth.BluetoothDevice device , java.lang.String mAlias ) { synchronized ( mObject ) { this . mAlias = mAlias ; com.android.bluetooth.btservice.RemoteDevices.sAdapterService.setDevicePropertyNative ( mAddress , AbstractionLayer.BT_PROPERTY_REMOTE_FRIENDLY_NAME , mAlias.getBytes ( ) ) ; android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_ALIAS_CHANGED ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothDevice.EXTRA_NAME , mAlias ) ; com.android.bluetooth.btservice.RemoteDevices.sAdapterService.sendBroadcast ( intent , AdapterService.BLUETOOTH_PERM ) ; } }
Source:
private static java.lang.String toTelecomDisconnectReason ( int telephonyDisconnectCause , java.lang.String reason ) { java.lang.String causeAsString = android.telephony.DisconnectCause.toString ( telephonyDisconnectCause ) ; if ( reason == null ) { return causeAsString ; } else { return ( reason + ", " ) + causeAsString ; } }

Target:
private static java.lang.String toTelecomDisconnectReason ( android.content.Context context , int telephonyDisconnectCause , java.lang.String reason ) { if ( context == null ) { return "" ; } switch ( telephonyDisconnectCause ) { case android.telecom.DisconnectCause.POWER_OFF : case android.telecom.DisconnectCause.OUT_OF_SERVICE : if ( com.android.phone.ImsUtil.shouldPromoteWfc ( context ) ) { return android.telecom.DisconnectCause.REASON_WIFI_ON_BUT_WFC_OFF ; } break ; case android.telecom.DisconnectCause.IMS_ACCESS_BLOCKED : return android.telecom.DisconnectCause.REASON_IMS_ACCESS_BLOCKED ; } java.lang.String causeAsString = android.telephony.DisconnectCause.toString ( telephonyDisconnectCause ) ; if ( reason == null ) { return causeAsString ; } else { return ( reason + ", " ) + causeAsString ; } }
Source:
public boolean canGoBackOrForward ( final int steps ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return canGoBackOrForward ( steps ) ; } } ) ; return ret ; } return mAwContents.canGoBackOrForward ( steps ) ; }

Target:
public void goForward ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { goForward ( ) ; } } ) ; return ; } mAwContents.goForward ( ) ; }
Source:
public void onSetupDataCallComplete ( @ android.telephony.data.DataServiceCallback.Result int result , android.telephony.data.DataCallResponse response ) { android.telephony.data.IDataServiceCallback callback = mCallback.get ( ) ; if ( callback != null ) { try { callback.onSetupDataCallComplete ( result , response ) ; } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.data.DataServiceCallback.mTag , "Failed to onSetupDataCallComplete on the remote" ) ; } } }

Target:
public void onSetupDataCallComplete ( @ android.telephony.data.DataServiceCallback.Result int result , android.telephony.data.DataCallResponse response ) { android.telephony.data.IDataServiceCallback callback = mCallback.get ( ) ; if ( callback != null ) { try { callback.onSetupDataCallComplete ( result , response ) ; } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.data.DataServiceCallback.TAG , "Failed to onSetupDataCallComplete on the remote" ) ; } } }
Source:
public static org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext getCurveByName ( java.lang.String curveName ) { final int ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_new_by_curve_name ( curveName ) ; if ( ctx == 0 ) { return null ; } org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_set_point_conversion_form ( ctx , NativeCrypto.POINT_CONVERSION_UNCOMPRESSED ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_set_asn1_flag ( ctx , NativeCrypto.OPENSSL_EC_NAMED_CURVE ) ; return new org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext ( ctx ) ; }

Target:
public static org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext getCurveByName ( java.lang.String curveName ) { if ( "secp256r1" . equals ( curveName ) ) { curveName = "prime256v1" ; } else if ( "secp192r1" . equals ( curveName ) ) { curveName = "prime192v1" ; } final int ctx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_new_by_curve_name ( curveName ) ; if ( ctx == 0 ) { return null ; } org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_set_point_conversion_form ( ctx , NativeCrypto.POINT_CONVERSION_UNCOMPRESSED ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_set_asn1_flag ( ctx , NativeCrypto.OPENSSL_EC_NAMED_CURVE ) ; return new org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext ( ctx ) ; }
Source:
public void lookupTimeZonesByCountry_structuresAreImmutable ( ) throws java.lang.Exception { libcore.util.TimeZoneFinder finder = libcore.util.TimeZoneFinderTest.validate ( ( "<timezones>\n" + ( ( ( ( ( " <countryzones>\n" + " <country code=\"gb\">\n" ) + " <id>Europe/London</id>\n" ) + " </country>\n" ) + " </countryzones>\n" ) + "</timezones>\n" ) ) ) ; java.util.List < android.icu.util.TimeZone > gbList = finder.lookupTimeZonesByCountry ( "gb" ) ; org.junit.Assert.assertEquals ( 1 , gbList.size ( ) ) ; libcore.util.TimeZoneFinderTest.assertImmutableList ( gbList ) ; assertImmutableTimeZone ( gbList.get ( 0 ) ) ; org.junit.Assert.assertNull ( finder.lookupTimeZonesByCountry ( "unknown" ) ) ; }

Target:
public void lookupTimeZonesByCountry_structuresAreImmutable ( ) throws java.lang.Exception { libcore.util.TimeZoneFinder finder = libcore.util.TimeZoneFinderTest.validate ( ( "<timezones ianaversion=\"2017b\">\n" + ( ( ( ( ( " <countryzones>\n" + " <country code=\"gb\">\n" ) + " <id>Europe/London</id>\n" ) + " </country>\n" ) + " </countryzones>\n" ) + "</timezones>\n" ) ) ) ; java.util.List < android.icu.util.TimeZone > gbList = finder.lookupTimeZonesByCountry ( "gb" ) ; org.junit.Assert.assertEquals ( 1 , gbList.size ( ) ) ; libcore.util.TimeZoneFinderTest.assertImmutableList ( gbList ) ; assertImmutableTimeZone ( gbList.get ( 0 ) ) ; org.junit.Assert.assertNull ( finder.lookupTimeZonesByCountry ( "unknown" ) ) ; }
Source:
public void close ( ) throws com.android.jack.library.LibraryIOException { try { inputVFS.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } }

Target:
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.VPath clonedPath = typePath.clone ( ) ; clonedPath.addSuffix ( fileType.getFileExtension ( ) ) ; return inputVFS.getRootInputVDir ( ) . getInputVFile ( clonedPath ) ; } 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 ) ; } }
Source:
private void obfuscate ( ) throws java.io.IOException { if ( configuration.verbose ) { java.lang.System.out.println ( "Obfuscating..." ) ; if ( ( configuration.applyMapping ) != null ) { java.lang.System.out.println ( ( ( "Applying mapping [" + ( fileName ( configuration.applyMapping ) ) ) + "]" ) ) ; } if ( ( configuration.printMapping ) != null ) { java.lang.System.out.println ( ( ( "Printing mapping to [" + ( fileName ( configuration.printMapping ) ) ) + "]..." ) ) ; } } new proguard.obfuscate.Obfuscator ( configuration ) . execute ( programClassPool , libraryClassPool ) ; }

Target:
private boolean optimize ( ) throws java.io.IOException { if ( configuration.verbose ) { java.lang.System.out.println ( "Optimizing..." ) ; } return new proguard.optimize.Optimizer ( configuration ) . execute ( programClassPool , libraryClassPool ) ; }
Source:
private void responseByteArrayList ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.util.ArrayList < java.lang.Byte > var ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { byte [ ] ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = com.android.internal.telephony.RIL.arrayListToPrimitiveArray ( var ) ; sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
public void getDataRegistrationStateResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.DataRegStateResult dataRegResponse ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , dataRegResponse ) ; } mRil.processResponseDone ( rr , responseInfo , dataRegResponse ) ; } }
Source:
public static libcore.Repository openJdk9 ( java.nio.file.Path upstreamRoot , java.lang.String upstreamName ) { java.util.List < java.lang.String > sourceDirs = java.util.Arrays.asList ( "jdk/src/java.base/share/classes" , "jdk/src/java.logging/share/classes" , "jdk/src/java.prefs/share/classes" , "jdk/src/java.sql/share/classes" , "jdk/src/java.desktop/share/classes" , "jdk/src/java.base/solaris/classes" , "jdk/src/java.base/unix/classes" , "jdk/src/java.prefs/unix/classes" , "jdk/src/jdk.unsupported/share/classes" , "jdk/src/jdk.net/share/classes" , "jdk/src/java.base/linux/classes" , "build/linux-x86_64-normal-server-release/support/gensrc/java.base" ) ; return new libcore.Repository.OpenJdkRepository ( upstreamRoot , upstreamName , sourceDirs ) ; }

Target:
public static libcore.Repository openJdk9 ( java.nio.file.Path upstreamRoot , java.lang.String upstreamName ) { java.util.List < java.lang.String > sourceDirs = java.util.Arrays.asList ( "jdk/src/java.base/share/classes" , "jdk/src/java.logging/share/classes" , "jdk/src/java.prefs/share/classes" , "jdk/src/java.sql/share/classes" , "jdk/src/java.desktop/share/classes" , "jdk/src/java.base/solaris/classes" , "jdk/src/java.base/unix/classes" , "jdk/src/java.prefs/unix/classes" , "jdk/src/jdk.unsupported/share/classes" , "jdk/src/jdk.net/share/classes" , "jdk/src/java.base/linux/classes" , "build/linux-x86_64-normal-server-release/support/gensrc/java.base" , "jdk/src/java.base/unix/native/libjava" , "jdk/src/java.base/share/native/libjava" ) ; return new libcore.Repository.OpenJdkRepository ( upstreamRoot , upstreamName , sourceDirs ) ; }
Source:
public int dequeueSample ( com.google.android.exoplayer.SampleHolder sample ) { com.google.android.exoplayer.SampleHolder sampleFromQueue = mQueue.poll ( ) ; if ( sampleFromQueue == null ) { return com.google.android.exoplayer.SampleSource.NOTHING_READ ; } sample.size = sampleFromQueue.size ; sample.flags = sampleFromQueue.flags ; sample.timeUs = sampleFromQueue.timeUs ; sample.clearData ( ) ; sampleFromQueue.data.position ( 0 ) . limit ( sample.size ) ; sample.data.put ( sampleFromQueue.data ) ; mSamplePool.releaseSample ( sampleFromQueue ) ; return com.google.android.exoplayer.SampleSource.SAMPLE_READ ; }

Target:
public int dequeueSample ( com.google.android.exoplayer.SampleHolder sample ) { com.google.android.exoplayer.SampleHolder sampleFromQueue = mQueue.poll ( ) ; if ( sampleFromQueue == null ) { return com.google.android.exoplayer.SampleSource.NOTHING_READ ; } sample.ensureSpaceForWrite ( sampleFromQueue.size ) ; sample.size = sampleFromQueue.size ; sample.flags = sampleFromQueue.flags ; sample.timeUs = sampleFromQueue.timeUs ; sample.clearData ( ) ; sampleFromQueue.data.position ( 0 ) . limit ( sample.size ) ; sample.data.put ( sampleFromQueue.data ) ; mSamplePool.releaseSample ( sampleFromQueue ) ; return com.google.android.exoplayer.SampleSource.SAMPLE_READ ; }
Source:
private void registerUiccCardEvents ( ) { if ( ( mUiccApplication ) != null ) { mUiccApplication.registerForReady ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_APP_READY , null ) ; } if ( ( mIccRecords ) != null ) { mIccRecords.registerForRecordsLoaded ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_RECORDS_LOADED , null ) ; mIccRecords.registerForLockedRecordsLoaded ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_ICC_LOCKED , null ) ; mIccRecords.registerForNetworkLockedRecordsLoaded ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_NETWORK_LOCKED , null ) ; mIccRecords.registerForRecordsEvents ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_ICC_RECORD_EVENTS , null ) ; } }

Target:
private boolean areAllApplicationsReady ( ) { for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( ( ( app != null ) && ( isSupportedApplication ( app ) ) ) && ( ! ( app.isReady ( ) ) ) ) { return false ; } } return ( mUiccApplications [ 0 ] ) != null ; }
Source:
public void enter ( ) { mWifiConnectivityManager.setWifiEnabled ( true ) ; mWifiMetrics.setWifiState ( WifiMetricsProto.WifiLog.WIFI_DISCONNECTED ) ; }

Target:
public void enter ( ) { setWifiState ( android.net.wifi.WifiManager.WIFI_STATE_ENABLED ) ; mNetworkInfo.setIsAvailable ( true ) ; if ( ( mNetworkAgent ) != null ) mNetworkAgent.sendNetworkInfo ( mNetworkInfo ) ; setNetworkDetailedState ( DetailedState.DISCONNECTED ) ; mWifiConnectivityManager.setWifiEnabled ( true ) ; mWifiMetrics.setWifiState ( WifiMetricsProto.WifiLog.WIFI_DISCONNECTED ) ; }
Source:
private void loadMappingFileProvider ( ) { java.io.InputStream source = com.google.i18n.phonenumbers.prefixmapper.PrefixFileReader.class . getResourceAsStream ( ( ( phonePrefixDataDirectory ) + "config" ) ) ; java.io.ObjectInputStream in = null ; try { in = new java.io.ObjectInputStream ( source ) ; mappingFileProvider.readExternal ( in ) ; } catch ( java.io.IOException e ) { com.google.i18n.phonenumbers.prefixmapper.PrefixFileReader.LOGGER.log ( java.util.logging.Level.WARNING , e.toString ( ) ) ; } finally { com.google.i18n.phonenumbers.prefixmapper.PrefixFileReader.close ( in ) ; } }

Target:
private void loadMappingFileProvider ( ) { java.io.InputStream source = com.google.i18n.phonenumbers.prefixmapper.PrefixFileReader.class . getResourceAsStream ( ( ( phonePrefixDataDirectory ) + "config" ) ) ; java.io.ObjectInputStream in = null ; try { in = new java.io.ObjectInputStream ( source ) ; mappingFileProvider.readExternal ( in ) ; } catch ( java.io.IOException e ) { com.google.i18n.phonenumbers.prefixmapper.PrefixFileReader.logger.log ( java.util.logging.Level.WARNING , e.toString ( ) ) ; } finally { com.google.i18n.phonenumbers.prefixmapper.PrefixFileReader.close ( in ) ; } }
Source:
private void addCacheHeaders ( java.util.Map < java.lang.String , java.lang.String > headers , com.android.volley.Cache.Entry entry ) { if ( entry == null ) { return ; } if ( ( entry.etag ) != null ) { headers.put ( "If-None-Match" , entry.etag ) ; } if ( ( entry.lastModified ) > 0 ) { java.util.Date refTime = new java.util.Date ( entry.lastModified ) ; headers.put ( "If-Modified-Since" , org.apache.http.impl.cookie.DateUtils.formatDate ( refTime ) ) ; } }

Target:
private java.util.Map < java.lang.String , java.lang.String > getCacheHeaders ( com.android.volley.Cache.Entry entry ) { if ( entry == null ) { return java.util.Collections.emptyMap ( ) ; } java.util.Map < java.lang.String , java.lang.String > headers = new java.util.HashMap < > ( ) ; if ( ( entry.etag ) != null ) { headers.put ( "If-None-Match" , entry.etag ) ; } if ( ( entry.lastModified ) > 0 ) { headers.put ( "If-Modified-Since" , com.android.volley.toolbox.HttpHeaderParser.formatEpochAsRfc1123 ( entry.lastModified ) ) ; } return headers ; }
Source:
private void writeObject ( java.io.ObjectOutputStream stream ) throws java.io.IOException { if ( key.isEngineBased ( ) ) { throw new java.io.NotSerializableException ( "engine-based keys can not be serialized" ) ; } stream.defaultWriteObject ( ) ; stream.writeObject ( getParams ( ) ) ; stream.writeObject ( getPrivateKey ( ) ) ; }

Target:
private void readObject ( java.io.ObjectInputStream stream ) throws java.io.IOException , java.lang.ClassNotFoundException { stream.defaultReadObject ( ) ; byte [ ] encoded = ( ( byte [ ] ) ( stream.readObject ( ) ) ) ; key = new org.apache.harmony.xnet.provider.jsse.OpenSSLKey ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.d2i_PKCS8_PRIV_KEY_INFO ( encoded ) ) ; final int origGroup = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_KEY_get0_group ( key.getPkeyContext ( ) ) ; group = new org.apache.harmony.xnet.provider.jsse.OpenSSLECGroupContext ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.EC_GROUP_dup ( origGroup ) ) ; }