auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test_ConstructorLjava_net_InetAddressIZ ( ) throws java.io.IOException { int sport = startServer ( "Cons InetAddress,I,Z" ) ; s = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , sport , true ) ; assertTrue ( "Failed to create socket" , ( ( s.getPort ( ) ) == sport ) ) ; s = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , sport , false ) ; }

Target:
public void test_ConstructorLjava_net_InetAddressIZ ( ) throws java.io.IOException { int sport = startServer ( "Cons InetAddress,I,Z" ) ; try ( java.net.Socket s = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , sport , true ) ) { assertTrue ( "Failed to create socket" , ( ( s.getPort ( ) ) == sport ) ) ; } s = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , sport , false ) ; }
Source:
static void setString ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , java.lang.String value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }

Target:
static void setString ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , java.lang.String value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( expectFailure , exceptionThrown ) ; }
Source:
static java.lang.String getResourceForFirstArg ( org.w3c.dom.Node method , org.w3c.dom.Node call ) { assert ( call instanceof lombok.ast.MethodInvocation ) || ( call instanceof lombok.ast.ConstructorInvocation ) ; com.android.tools.lint.checks.StringFormatDetector.StringTracker tracker = new com.android.tools.lint.checks.StringFormatDetector.StringTracker ( method , call ) ; method.accept ( tracker ) ; java.lang.String name = tracker.getFormatStringName ( ) ; return name ; }

Target:
static java.lang.String getResourceForFirstArg ( org.w3c.dom.Node method , org.w3c.dom.Node call ) { assert ( call instanceof lombok.ast.MethodInvocation ) || ( call instanceof lombok.ast.ConstructorInvocation ) ; com.android.tools.lint.checks.StringFormatDetector.StringTracker tracker = new com.android.tools.lint.checks.StringFormatDetector.StringTracker ( method , call , 0 ) ; method.accept ( tracker ) ; java.lang.String name = tracker.getFormatStringName ( ) ; return name ; }
Source:
public static void check ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull com.android.sched.util.location.Location location ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { assert file != null ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( location ) ; } if ( file.isDirectory ( ) ) { throw new com.android.sched.util.file.NotFileException ( location ) ; } }

Target:
public static void check ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull com.android.sched.util.location.Location location ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( location ) ; } if ( file.isDirectory ( ) ) { throw new com.android.sched.util.file.NotFileException ( location ) ; } }
Source:
public android.accounts.AccountManagerFuture < android.os.Bundle > editProperties ( final java.lang.String accountType , final android.app.Activity activity , final android.accounts.AccountManagerCallback < android.os.Bundle > callback , final android.os.Handler handler ) { if ( accountType == null ) throw new java.lang.IllegalArgumentException ( "accountType is null" ) ; return new android.accounts.AccountManager.AmsTask ( activity , handler , callback ) { public void doWork ( ) throws android.os.RemoteException { mService.editProperties ( mResponse , accountType , ( activity != null ) ) ; } } . start ( ) ; }

Target:
public void doWork ( ) throws android.os.RemoteException { mService.editProperties ( mResponse , accountType , ( activity != null ) ) ; }
Source:
public void zoomChanged ( ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( this ) { if ( ( grid ) != null ) { grid.dispose ( ) ; grid = null ; zoom = model.getZoom ( ) ; } } } } ) ; doRedraw ( ) ; }

Target:
public void zoomChanged ( ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( this ) { if ( ( grid ) != null ) { grid.dispose ( ) ; grid = null ; } zoom = model.getZoom ( ) ; } } } ) ; doRedraw ( ) ; }
Source:
public void test_getInstanceLjava_lang_String ( ) { for ( int i = 0 ; i < ( keyfactAlgs.length ) ; i ++ ) { try { assertNotNull ( java.security.KeyFactory.getInstance ( keyfactAlgs [ i ] ) ) ; } catch ( java.security.NoSuchAlgorithmException e ) { fail ( ( "getInstance did not find algorithm " + ( keyfactAlgs [ i ] ) ) ) ; } } }

Target:
public void test_getInstanceLjava_lang_String ( ) throws java.lang.Exception { for ( int i = 0 ; i < ( keyfactAlgs.length ) ; i ++ ) { assertNotNull ( java.security.KeyFactory.getInstance ( keyfactAlgs [ i ] ) ) ; } }
Source:
public void compare ( ) throws java.lang.Exception { com.android.jack.test.comparator.ComparatorDex comparatorDex = new com.android.jack.test.comparator.ComparatorDex ( candidateDex , refDex ) ; comparatorDex.setWithDebugInfo ( false ) ; comparatorDex.setStrict ( true ) ; comparatorDex.setCompareDebugInfoBinary ( false ) ; comparatorDex.setCompareInstructionNumber ( true ) ; comparatorDex.setInstructionNumberTolerance ( 0 ) ; com.android.jack.test.comparator.ComparatorDexAnnotations comparatorAnnotations = new com.android.jack.test.comparator.ComparatorDexAnnotations ( candidateDex , refDex ) ; com.android.jack.test.comparator.ComparatorDiff comparatorDiff = new com.android.jack.test.comparator.ComparatorDiff ( candidateDex , refDex ) ; runTest ( new com.android.jack.test.comparator.ComparatorComposite ( comparatorDex , comparatorAnnotations , comparatorDiff ) ) ; }

Target:
public void compare ( ) throws java.lang.Exception { com.android.jack.test.comparator.ComparatorDex comparatorDex = new com.android.jack.test.comparator.ComparatorDex ( refDex , candidateDex ) ; comparatorDex.setWithDebugInfo ( false ) ; comparatorDex.setStrict ( true ) ; comparatorDex.setCompareDebugInfoBinary ( false ) ; comparatorDex.setCompareInstructionNumber ( true ) ; comparatorDex.setInstructionNumberTolerance ( 0 ) ; com.android.jack.test.comparator.ComparatorDexAnnotations comparatorAnnotations = new com.android.jack.test.comparator.ComparatorDexAnnotations ( refDex , candidateDex ) ; com.android.jack.test.comparator.ComparatorDiff comparatorDiff = new com.android.jack.test.comparator.ComparatorDiff ( refDex , candidateDex ) ; runTest ( new com.android.jack.test.comparator.ComparatorComposite ( comparatorDex , comparatorAnnotations , comparatorDiff ) ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; if ( ( ! ( supportsDragAndDrop ( ) ) ) || ( ! ( supportsMultiWindowMode ( ) ) ) ) { return ; } mDevice.executeShellCommand ( ( ( android.wm.cts.CrossAppDragAndDropTests.AM_FORCE_STOP ) + ( mSourcePackageName ) ) ) ; mDevice.executeShellCommand ( ( ( android.wm.cts.CrossAppDragAndDropTests.AM_FORCE_STOP ) + ( mTargetPackageName ) ) ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { super . tearDown ( ) ; if ( ! ( supportsDragAndDrop ( ) ) ) { return ; } mDevice.executeShellCommand ( ( ( android.wm.cts.CrossAppDragAndDropTests.AM_FORCE_STOP ) + ( mSourcePackageName ) ) ) ; mDevice.executeShellCommand ( ( ( android.wm.cts.CrossAppDragAndDropTests.AM_FORCE_STOP ) + ( mTargetPackageName ) ) ) ; }
Source:
public void add ( com.android.jack.dx.dex.file.ClassDefItem clazz ) { com.android.jack.dx.rop.type.Type type ; try { type = clazz.getThisClass ( ) . getClassType ( ) ; } catch ( java.lang.NullPointerException ex ) { throw new java.lang.NullPointerException ( "clazz == null" ) ; } throwIfPrepared ( ) ; if ( ( classDefs.get ( type ) ) != null ) { throw new java.lang.IllegalArgumentException ( ( "already added: " + type ) ) ; } classDefs.put ( type , clazz ) ; }

Target:
public void add ( com.android.jack.dx.dex.file.ClassDefItem clazz ) { assert clazz != null ; com.android.jack.dx.rop.type.Type type = clazz.getThisClass ( ) ; throwIfPrepared ( ) ; if ( ( classDefs.get ( type ) ) != null ) { throw new java.lang.IllegalArgumentException ( ( "already added: " + type ) ) ; } classDefs.put ( type , clazz ) ; }
Source:
private void loadPackages ( boolean useLocalCache , boolean overrideExisting ) { if ( ( mImpl.mSwtUpdaterData ) == null ) { return ; } boolean displaySortByApi = isSortByApi ( ) ; if ( mTreeColumnName.isDisposed ( ) ) { return ; } mTreeColumnName.setImage ( getImage ( ( displaySortByApi ? PackagesPageIcons.ICON_SORT_BY_API : PackagesPageIcons.ICON_SORT_BY_SOURCE ) ) ) ; mImpl.loadPackagesImpl ( useLocalCache , overrideExisting ) ; }

Target:
private void loadPackages ( boolean useLocalCache , boolean overrideExisting ) { if ( ( mImpl.mSwtUpdaterData ) == null ) { return ; } if ( mTreeColumnName.isDisposed ( ) ) { return ; } mTreeColumnName.setImage ( getImage ( PackagesPageIcons.ICON_SORT_BY_API ) ) ; mImpl.loadPackagesImpl ( useLocalCache , overrideExisting ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException { if ( ! ( util.build.BuildDalvikSuite.parseArgs ( args ) ) ) { util.build.BuildDalvikSuite.printUsage ( ) ; java.lang.System.exit ( ( - 1 ) ) ; } long start = java.lang.System.currentTimeMillis ( ) ; util.build.BuildDalvikSuite cat = new util.build.BuildDalvikSuite ( false ) ; cat.compose ( ) ; long end = java.lang.System.currentTimeMillis ( ) ; java.lang.System.out.println ( ( "elapsed seconds: " + ( ( end - start ) / 1000 ) ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException { if ( ! ( util.build.BuildDalvikSuite.parseArgs ( args ) ) ) { util.build.BuildDalvikSuite.printUsage ( ) ; java.lang.System.exit ( ( - 1 ) ) ; } long start = java.lang.System.currentTimeMillis ( ) ; util.build.BuildDalvikSuite cat = new util.build.BuildDalvikSuite ( ) ; cat.compose ( ) ; long end = java.lang.System.currentTimeMillis ( ) ; java.lang.System.out.println ( ( "elapsed seconds: " + ( ( end - start ) / 1000 ) ) ) ; }
Source:
public void testChangedIgnoredFile ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceSet res = com.android.ide.common.res2.ResourceSetTest.getBaseResourceSet ( ) ; com.android.ide.common.res2.ResourceMerger resourceMerger = new com.android.ide.common.res2.ResourceMerger ( ) ; resourceMerger.addDataSet ( res ) ; java.io.File root = com.android.testutils.TestUtils.getRoot ( "resources" , "baseSet" ) ; java.io.File changedCVSFoo = new java.io.File ( root , "CVS/foo.txt" ) ; com.android.ide.common.res2.FileValidity < com.android.ide.common.res2.ResourceSet > fileValidity = resourceMerger.findDataSetContaining ( changedCVSFoo ) ; assertEquals ( FileValidity.FileStatus.IGNORED_FILE , fileValidity.status ) ; }

Target:
public void testChangedIgnoredFile ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceSet res = com.android.ide.common.res2.ResourceSetTest.getBaseResourceSet ( false ) ; com.android.ide.common.res2.ResourceMerger resourceMerger = new com.android.ide.common.res2.ResourceMerger ( ) ; resourceMerger.addDataSet ( res ) ; java.io.File root = com.android.testutils.TestUtils.getRoot ( "resources" , "baseSet" ) ; java.io.File changedCVSFoo = new java.io.File ( root , "CVS/foo.txt" ) ; com.android.ide.common.res2.FileValidity < com.android.ide.common.res2.ResourceSet > fileValidity = resourceMerger.findDataSetContaining ( changedCVSFoo ) ; assertEquals ( FileValidity.FileStatus.IGNORED_FILE , fileValidity.status ) ; }
Source:
public static void markSingleNewVoicemailAsRead ( @ android.support.annotation.NonNull final android.content.Context context , final android.net.Uri voicemailUri ) { if ( voicemailUri == null ) { com.android.dialer.common.LogUtil.e ( "VoicemailQueryHandler.markSingleNewVoicemailAsRead" , "voicemail URI is null" ) ; return ; } com.android.dialer.common.concurrent.ThreadUtil.postOnUiThread ( ( ) -> { new com.android.dialer.app.calllog.VoicemailQueryHandler ( context.getContentResolver ( ) ) . markNewVoicemailsAsOld ( voicemailUri ) ; } ) ; }

Target:
public static void markSingleNewVoicemailAsRead ( @ android.support.annotation.NonNull final android.content.Context context , final android.net.Uri voicemailUri ) { if ( voicemailUri == null ) { com.android.dialer.common.LogUtil.e ( "VoicemailQueryHandler.markSingleNewVoicemailAsRead" , "voicemail URI is null" ) ; return ; } com.android.dialer.common.concurrent.ThreadUtil.postOnUiThread ( ( ) -> { new com.android.dialer.app.calllog.VoicemailQueryHandler ( context.getContentResolver ( ) ) . markNewVoicemailsAsOld ( context , voicemailUri ) ; } ) ; }
Source:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.NOT_FEASIBLE , method = "saveCacheFile" , args = { java.lang.String.class , android.webkit.CacheManager.CacheResult.class } ) } ) public void testCacheFile ( ) throws java.lang.Exception { mWebServer = new android.webkit.cts.CtsTestServer ( getActivity ( ) ) ; final java.lang.String url = mWebServer.getAssetUrl ( TestHtmlConstants.EMBEDDED_IMG_URL ) ; mWebView.clearCache ( true ) ; new android.view.animation.cts.DelayedCheck ( android.webkit.cts.CacheManagerTest.NETWORK_OPERATION_DELAY ) { @ java.lang.Override protected boolean check ( ) { android.webkit.CacheManager.CacheResult result = android.webkit.CacheManager.getCacheFile ( url , null ) ; return result == null ; } } . run ( ) ; loadUrl ( url ) ; android.webkit.CacheManager.CacheResult result = android.webkit.CacheManager.getCacheFile ( url , null ) ; assertNotNull ( result ) ; }

Target:
protected boolean check ( ) { android.webkit.CacheManager.CacheResult result = android.webkit.CacheManager.getCacheFile ( url , null ) ; return result != null ; }
Source:
protected com.android.internal.telephony.SmsTracker getNewSubmitPduTracker ( java.lang.String destinationAddress , java.lang.String scAddress , java.lang.String message , com.android.internal.telephony.SmsHeader smsHeader , int format , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent , boolean lastPart , java.util.concurrent.atomic.AtomicInteger unsentPartCount , java.util.concurrent.atomic.AtomicBoolean anyPartFailed , android.net.Uri messageUri , java.lang.String fullMessageText , int priority , boolean expectMore , int validityPeriod ) { android.telephony.Rlog.e ( com.android.internal.telephony.ImsSMSDispatcher.TAG , "Error! Not implemented for IMS." ) ; return null ; }

Target:
protected com.android.internal.telephony.SmsTracker getNewSubmitPduTracker ( java.lang.String destinationAddress , java.lang.String scAddress , java.lang.String message , com.android.internal.telephony.SmsHeader smsHeader , int format , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent , boolean lastPart , java.util.concurrent.atomic.AtomicInteger unsentPartCount , java.util.concurrent.atomic.AtomicBoolean anyPartFailed , android.net.Uri messageUri , java.lang.String fullMessageText ) { android.telephony.Rlog.e ( com.android.internal.telephony.ImsSMSDispatcher.TAG , "Error! Not implemented for IMS." ) ; return null ; }
Source:
protected void postInstall ( android.content.Context context , android.content.Intent intent ) { try { unpackBundle ( ) ; applyUpdate ( ) ; setEnforcingMode ( context ) ; } catch ( java.lang.IllegalArgumentException e ) { android.util.Slog.e ( com.android.server.updates.SELinuxPolicyInstallReceiver.TAG , "SELinux policy update malformed: " , e ) ; } catch ( java.io.IOException e ) { android.util.Slog.e ( com.android.server.updates.SELinuxPolicyInstallReceiver.TAG , "Could not update selinux policy: " , e ) ; } catch ( libcore.io.ErrnoException e ) { android.util.Slog.e ( com.android.server.updates.SELinuxPolicyInstallReceiver.TAG , "Could not update selinux policy: " , e ) ; } }

Target:
protected void postInstall ( android.content.Context context , android.content.Intent intent ) { try { unpackBundle ( ) ; applyUpdate ( ) ; } catch ( java.lang.IllegalArgumentException e ) { android.util.Slog.e ( com.android.server.updates.SELinuxPolicyInstallReceiver.TAG , "SELinux policy update malformed: " , e ) ; } catch ( java.io.IOException e ) { android.util.Slog.e ( com.android.server.updates.SELinuxPolicyInstallReceiver.TAG , "Could not update selinux policy: " , e ) ; } catch ( libcore.io.ErrnoException e ) { android.util.Slog.e ( com.android.server.updates.SELinuxPolicyInstallReceiver.TAG , "Could not update selinux policy: " , e ) ; } }
Source:
public static java.util.ArrayList < com.google.gct.testing.GoogleCloudTestingConfiguration > getCustomConfigurationsFromStorage ( org.jetbrains.android.facet.AndroidFacet facet ) { java.util.List < com.google.gct.testing.GoogleCloudTestingPersistentConfiguration > googleCloudTestingPersistentConfigurations = com.google.gct.testing.GoogleCloudTestingCustomPersistentConfigurations.getInstance ( facet.getModule ( ) . getProject ( ) ) . getState ( ) . myGoogleCloudTestingPersistentConfigurations ; return com.google.common.collect.Lists.newArrayList ( com.google.gct.testing.GoogleCloudTestingConfigurationFactory.deserializeConfigurations ( googleCloudTestingPersistentConfigurations , true , facet ) ) ; }

Target:
public static java.util.ArrayList < com.google.gct.testing.GoogleCloudTestingConfiguration > getCustomConfigurationsFromStorage ( org.jetbrains.android.facet.AndroidFacet facet ) { java.util.List < com.google.gct.testing.GoogleCloudTestingPersistentConfiguration > googleCloudTestingPersistentConfigurations = com.google.gct.testing.GoogleCloudTestingCustomPersistentConfigurations.getInstance ( facet.getModule ( ) ) . getState ( ) . myGoogleCloudTestingPersistentConfigurations ; return com.google.common.collect.Lists.newArrayList ( com.google.gct.testing.GoogleCloudTestingConfigurationFactory.deserializeConfigurations ( googleCloudTestingPersistentConfigurations , true , facet ) ) ; }
Source:
public android.os.ParcelUuid [ ] getRemoteUuids ( android.bluetooth.BluetoothDevice device ) { if ( ! ( com.android.bluetooth.Utils.checkCallerAllowManagedProfiles ( mService ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "getRemoteUuids() - Not allowed for non-active user" ) ; return new android.os.ParcelUuid [ 0 ] ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return new android.os.ParcelUuid [ 0 ] ; return service.getRemoteUuids ( device ) ; }

Target:
public android.os.ParcelUuid [ ] getRemoteUuids ( android.bluetooth.BluetoothDevice device ) { if ( ! ( com.android.bluetooth.Utils.checkCallerAllowManagedProfiles ( mService ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "getRemoteUuids() - Not allowed for non-active user" ) ; return new android.os.ParcelUuid [ 0 ] ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return new android.os.ParcelUuid [ 0 ] ; } return service.getRemoteUuids ( device ) ; }
Source:
public void registerContentObservers ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallLogFramework.registerContentObservers" ) ; if ( com.android.dialer.configprovider.ConfigProviderBindings.get ( appContext ) . getBoolean ( "is_nui_shortcut_enabled" , false ) ) { for ( com.android.dialer.calllog.datasources.CallLogDataSource dataSource : dataSources.getDataSourcesIncludingSystemCallLog ( ) ) { dataSource.registerContentObservers ( appContext ) ; } } else { com.android.dialer.common.LogUtil.i ( "CallLogFramework.registerContentObservers" , "not registering content observers" ) ; } }

Target:
public void registerContentObservers ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallLogFramework.registerContentObservers" ) ; if ( com.android.dialer.configprovider.ConfigProviderBindings.get ( appContext ) . getBoolean ( "is_nui_shortcut_enabled" , false ) ) { for ( com.android.dialer.calllog.datasources.CallLogDataSource dataSource : dataSources.getDataSourcesIncludingSystemCallLog ( ) ) { dataSource.registerContentObservers ( ) ; } } else { com.android.dialer.common.LogUtil.i ( "CallLogFramework.registerContentObservers" , "not registering content observers" ) ; } }
Source:
public com.android.builder.model.AndroidProject getSingleModel ( boolean emulateStudio_1_0 , boolean assertNoSyncIssues ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > modelMap = com.android.build.gradle.integration.common.fixture.GradleTestProject.buildModel ( connection , new com.android.build.gradle.integration.common.fixture.GetAndroidModelAction ( ) , emulateStudio_1_0 ) ; org.junit.Assert.assertEquals ( "Quering GradleTestProject.getModel() with multi-project settings" , 1 , modelMap.size ( ) ) ; com.android.builder.model.AndroidProject androidProject = modelMap.get ( ":" ) ; if ( assertNoSyncIssues ) { com.android.build.gradle.integration.common.fixture.GradleTestProject.assertNoSyncIssues ( androidProject ) ; } return androidProject ; } finally { connection.close ( ) ; } }

Target:
public com.android.builder.model.AndroidProject getSingleModel ( boolean emulateStudio_1_0 , boolean assertNoSyncIssues ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > modelMap = buildModel ( connection , new com.android.build.gradle.integration.common.fixture.GetAndroidModelAction ( ) , emulateStudio_1_0 ) ; org.junit.Assert.assertEquals ( "Quering GradleTestProject.getModel() with multi-project settings" , 1 , modelMap.size ( ) ) ; com.android.builder.model.AndroidProject androidProject = modelMap.get ( ":" ) ; if ( assertNoSyncIssues ) { com.android.build.gradle.integration.common.fixture.GradleTestProject.assertNoSyncIssues ( androidProject ) ; } return androidProject ; } finally { connection.close ( ) ; } }
Source:
private static boolean isDebugManifest ( com.android.tools.lint.detector.api.XmlContext context , java.io.File manifestFile ) { com.android.builder.model.AndroidProject model = context.getProject ( ) . getGradleProjectModel ( ) ; if ( model != null ) { for ( com.android.builder.model.BuildTypeContainer container : model.getBuildTypes ( ) . values ( ) ) { if ( container.getBuildType ( ) . isDebuggable ( ) ) { if ( manifestFile.equals ( container.getSourceProvider ( ) . getManifestFile ( ) ) ) { return true ; } } } } return false ; }

Target:
private static boolean isDebugManifest ( com.android.tools.lint.detector.api.XmlContext context , java.io.File manifestFile ) { com.android.builder.model.AndroidProject model = context.getProject ( ) . getGradleProjectModel ( ) ; if ( model != null ) { for ( com.android.builder.model.BuildTypeContainer container : model.getBuildTypes ( ) ) { if ( container.getBuildType ( ) . isDebuggable ( ) ) { if ( manifestFile.equals ( container.getSourceProvider ( ) . getManifestFile ( ) ) ) { return true ; } } } } return false ; }
Source:
public static boolean runLintOnExport ( org.eclipse.swt.widgets.Shell shell , org.eclipse.core.resources.IProject project ) { if ( com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . isLintOnExport ( ) ) { boolean fatal = com.android.ide.eclipse.adt.internal.lint.EclipseLintRunner.runLint ( java.util.Collections.singletonList ( project ) , null , true ) ; if ( fatal ) { org.eclipse.jface.dialogs.MessageDialog.openWarning ( shell , "Export Aborted" , ( "Export aborted because fatal lint errors were found. These " + ( ( ( "are listed in the Lint View. Either fix these before " + "running Export again, or turn off \"Run full error check " ) + "when exporting app\" in the Android > Lint Error Checking " ) + "preference page." ) ) ) ; return false ; } } return true ; }

Target:
public static boolean runLintOnExport ( org.eclipse.swt.widgets.Shell shell , org.eclipse.core.resources.IProject project ) { if ( com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . isLintOnExport ( ) ) { boolean fatal = com.android.ide.eclipse.adt.internal.lint.EclipseLintRunner.runLint ( java.util.Collections.singletonList ( project ) , null , null , true ) ; if ( fatal ) { org.eclipse.jface.dialogs.MessageDialog.openWarning ( shell , "Export Aborted" , ( "Export aborted because fatal lint errors were found. These " + ( ( ( "are listed in the Lint View. Either fix these before " + "running Export again, or turn off \"Run full error check " ) + "when exporting app\" in the Android > Lint Error Checking " ) + "preference page." ) ) ) ; return false ; } } return true ; }
Source:
void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVFile file ) throws com.android.sched.util.file.CannotDeleteFileException { assert ! ( isClosed ( ) ) ; assert capabilities.contains ( Capabilities.WRITE ) ; java.io.File path = getNativeFile ( file.getPath ( ) ) ; if ( ( ! ( path.delete ( ) ) ) || ( path.exists ( ) ) ) { throw new com.android.sched.util.file.CannotDeleteFileException ( file.getLocation ( ) ) ; } }

Target:
void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVFile file ) throws com.android.sched.util.file.CannotDeleteFileException { assert ! ( isClosed ( ) ) ; assert capabilities.contains ( Capabilities.WRITE ) ; java.io.File path = getNativeFile ( file.getPath ( ) ) ; if ( ( ! ( path.delete ( ) ) ) || ( path.exists ( ) ) ) { throw new com.android.sched.util.file.CannotDeleteFileException ( file ) ; } }
Source:
public static com.android.jack.dx.rop.cst.CstMethodRef createMethodRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall methodCall ) { com.android.jack.dx.rop.cst.CstType definingClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( methodCall.getReceiverType ( ) ) ; java.lang.String signatureWithoutName = com.android.jack.backend.dex.rop.RopHelper.getMethodSignatureWithoutName ( methodCall ) ; com.android.jack.dx.rop.cst.CstNat nat = new com.android.jack.dx.rop.cst.CstNat ( new com.android.jack.dx.rop.cst.CstString ( methodCall.getMethodName ( ) ) , new com.android.jack.dx.rop.cst.CstString ( signatureWithoutName ) ) ; com.android.jack.dx.rop.cst.CstMethodRef methodRef = new com.android.jack.dx.rop.cst.CstMethodRef ( definingClass , nat ) ; return methodRef ; }

Target:
public static com.android.jack.dx.rop.cst.CstMethodRef createMethodRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall methodCall ) { com.android.jack.dx.rop.cst.CstType definingClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( methodCall.getReceiverType ( ) ) ; java.lang.String signatureWithoutName = com.android.jack.backend.dex.rop.RopHelper.getMethodSignatureWithoutName ( methodCall ) ; com.android.jack.dx.rop.cst.CstNat nat = new com.android.jack.dx.rop.cst.CstNat ( new com.android.jack.dx.rop.cst.CstString ( signatureWithoutName ) ) ; com.android.jack.dx.rop.cst.CstMethodRef methodRef = new com.android.jack.dx.rop.cst.CstMethodRef ( definingClass , new com.android.jack.dx.rop.cst.CstString ( methodCall.getMethodName ( ) ) , nat ) ; return methodRef ; }
Source:
public void testWifiFeature ( ) throws java.lang.Exception { if ( ! ( mPackageManager.hasSystemFeature ( PackageManager.FEATURE_WIFI ) ) ) { return ; } boolean enabled = mWifiManager.isWifiEnabled ( ) ; try { assertTrue ( mWifiManager.setWifiEnabled ( true ) ) ; assertAvailable ( PackageManager.FEATURE_WIFI ) ; } finally { if ( ! enabled ) { mWifiManager.setWifiEnabled ( false ) ; } } }

Target:
public void testWifiFeature ( ) throws java.lang.Exception { if ( ! ( mPackageManager.hasSystemFeature ( PackageManager.FEATURE_WIFI ) ) ) { return ; } boolean enabled = mWifiManager.isWifiEnabled ( ) ; try { assertTrue ( mWifiManager.setWifiEnabled ( ( ! enabled ) ) ) ; } finally { mWifiManager.setWifiEnabled ( enabled ) ; } }
Source:
private void checkDslProperty ( java.lang.String parent , org.codehaus.groovy.ast.expr.MethodCallExpression c , java.lang.String parentParent ) { java.lang.String property = c.getMethodAsString ( ) ; if ( isInterestingProperty ( property , parent , getParentParent ( ) ) ) { java.lang.String value = getText ( c.getArguments ( ) ) ; checkDslPropertyAssignment ( context , property , value , parent , parentParent , c ) ; } }

Target:
private void checkDslProperty ( java.lang.String parent , org.codehaus.groovy.ast.expr.MethodCallExpression c , java.lang.String parentParent ) { java.lang.String property = c.getMethodAsString ( ) ; if ( isInterestingProperty ( property , parent , getParentParent ( ) ) ) { java.lang.String value = getText ( c.getArguments ( ) ) ; checkDslPropertyAssignment ( context , property , value , parent , parentParent , c , c ) ; } }
Source:
public boolean p2pReinvoke ( int netId , java.lang.String deviceAddress ) { if ( ( android.text.TextUtils.isEmpty ( deviceAddress ) ) || ( netId < 0 ) ) return false ; if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.reinvoke ( netId , deviceAddress ) ; } else { return doBooleanCommand ( ( ( ( "P2P_INVITE persistent=" + netId ) + " peer=" ) + deviceAddress ) ) ; } }

Target:
public boolean p2pReinvoke ( int netId , java.lang.String deviceAddress ) { return mSupplicantP2pIfaceHal.reinvoke ( netId , deviceAddress ) ; }
Source:
private static void setWfcRoamingSettingInternal ( android.content.Context context , boolean enabled ) { final com.android.ims.ImsManager imsManager = com.android.ims.ImsManager.getInstance ( context , android.telephony.SubscriptionManager.getDefaultVoicePhoneId ( ) ) ; if ( imsManager != null ) { final int value = ( enabled ) ? ImsConfig.FeatureValueConstants.ON : ImsConfig.FeatureValueConstants.OFF ; java.lang.Thread thread = new java.lang.Thread ( new java.lang.Runnable ( ) { public void run ( ) { try { imsManager.getConfigInterface ( ) . setProvisionedValue ( ImsConfig.ConfigConstants.VOICE_OVER_WIFI_ROAMING , value ) ; } catch ( com.android.ims.ImsException e ) { } } } ) ; thread.start ( ) ; } }

Target:
private void setWfcRoamingSettingInternal ( boolean enabled ) { final int value = ( enabled ) ? ImsConfig.FeatureValueConstants.ON : ImsConfig.FeatureValueConstants.OFF ; java.lang.Thread thread = new java.lang.Thread ( ( ) -> { try { getConfigInterface ( ) . setProvisionedValue ( ImsConfig.ConfigConstants.VOICE_OVER_WIFI_ROAMING , value ) ; } catch ( com.android.ims.ImsException e ) { } } ) ; thread.start ( ) ; }
Source:
public java.util.NavigableMap < K , V > descendingMap ( ) { com.google.common.collect.Maps.UnmodifiableNavigableMap < K , V > result = descendingMap ; if ( result == null ) { descendingMap = result = new com.google.common.collect.Maps.UnmodifiableNavigableMap < K , V > ( delegate.descendingMap ( ) ) ; result.descendingMap = this ; } return result ; }

Target:
public java.util.NavigableMap < K , V > descendingMap ( ) { com.google.common.collect.Maps.UnmodifiableNavigableMap < K , V > result = descendingMap ; return result == null ? descendingMap = new com.google.common.collect.Maps.UnmodifiableNavigableMap < K , V > ( delegate.descendingMap ( ) , this ) : result ; }
Source:
boolean setNearbyPlacesCursor ( @ android.support.annotation.Nullable com.android.dialer.searchfragment.common.SearchCursor cursor ) { if ( cursor == ( nearbyPlacesCursor ) ) { return false ; } if ( ( ( nearbyPlacesCursor ) != null ) && ( ! ( nearbyPlacesCursor.isClosed ( ) ) ) ) { nearbyPlacesCursor.close ( ) ; } if ( ( cursor != null ) && ( ( cursor.getCount ( ) ) > 0 ) ) { nearbyPlacesCursor = cursor ; } else { nearbyPlacesCursor = null ; } return true ; }

Target:
boolean setNearbyPlacesCursor ( @ android.support.annotation.Nullable com.android.dialer.searchfragment.common.SearchCursor cursor ) { if ( cursor == ( nearbyPlacesCursor ) ) { return false ; } if ( ( ( nearbyPlacesCursor ) != null ) && ( ! ( nearbyPlacesCursor.isClosed ( ) ) ) ) { nearbyPlacesCursor.close ( ) ; } if ( cursor != null ) { nearbyPlacesCursor = cursor ; } else { nearbyPlacesCursor = null ; } return true ; }
Source:
public static com.android.sched.scheduler.TagOrMarkerOrComponentSet getJavaSourceInitialTagSet ( ) { com.android.sched.scheduler.Scheduler scheduler = com.android.sched.scheduler.Scheduler.getScheduler ( ) ; com.android.sched.scheduler.TagOrMarkerOrComponentSet set = scheduler.createTagOrMarkerOrComponentSet ( ) ; set.add ( com.android.jack.ir.JavaSourceIr.class ) ; set.add ( com.android.jack.shrob.obfuscation.OriginalNames.class ) ; set.add ( com.android.jack.ir.sourceinfo.SourceInfoCreation.class ) ; return set ; }

Target:
public static com.android.sched.scheduler.TagOrMarkerOrComponentSet getJavaSourceInitialTagSet ( @ javax.annotation.Nonnull com.android.sched.scheduler.Scheduler scheduler ) { com.android.sched.scheduler.TagOrMarkerOrComponentSet set = scheduler.createTagOrMarkerOrComponentSet ( ) ; set.add ( com.android.jack.ir.JavaSourceIr.class ) ; set.add ( com.android.jack.shrob.obfuscation.OriginalNames.class ) ; set.add ( com.android.jack.ir.sourceinfo.SourceInfoCreation.class ) ; return set ; }
Source:
public void onStateChange ( boolean state ) { synchronized ( mLock ) { android.util.Log.i ( mTag , ( "OnStateChange:" + state ) ) ; mIsConnected = state ; if ( ! state ) { if ( ( mAccessControlEnforcer ) != null ) { mAccessControlEnforcer.reset ( ) ; } } else { initializeAccessControl ( ) ; synchronized ( mLock ) { mDefaultApplicationSelectedOnBasicChannel = true ; } } } }

Target:
public void onStateChange ( boolean state ) { synchronized ( mLock ) { android.util.Log.i ( mTag , ( "OnStateChange:" + state ) ) ; mIsConnected = state ; if ( ! state ) { if ( ( mAccessControlEnforcer ) != null ) { mAccessControlEnforcer.reset ( ) ; } } else { try { initializeAccessControl ( ) ; } catch ( java.lang.Exception e ) { } synchronized ( mLock ) { mDefaultApplicationSelectedOnBasicChannel = true ; } } } }
Source:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { mPropertyTable = new org.eclipse.wb.internal.core.model.property.table.PropertyTable ( parent , org.eclipse.swt.SWT.NONE ) ; mPropertyTable.setExceptionHandler ( new org.eclipse.wb.internal.core.model.property.table.IPropertyExceptionHandler ( ) { @ java.lang.Override public void handle ( java.lang.Throwable e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , null ) ; } } ) ; mPropertyTable.setDefaultCollapsedNames ( java.util.Arrays.asList ( "Deprecated" , "Layout Parameters|Margins" ) ) ; createActions ( ) ; setPropertyTableContextMenu ( ) ; }

Target:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { assert parent != null ; mPropertyTable = new org.eclipse.wb.internal.core.model.property.table.PropertyTable ( parent , org.eclipse.swt.SWT.NONE ) ; mPropertyTable.setExceptionHandler ( new org.eclipse.wb.internal.core.model.property.table.IPropertyExceptionHandler ( ) { @ java.lang.Override public void handle ( java.lang.Throwable e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , null ) ; } } ) ; mPropertyTable.setDefaultCollapsedNames ( java.util.Arrays.asList ( "Deprecated" , "Layout Parameters|Margins" ) ) ; createActions ( ) ; setPropertyTableContextMenu ( ) ; }
Source:
public java.lang.String getClassName ( ) { if ( ( className ) == null ) { if ( ! ( ( isReference ( ) ) || ( isClosure ( ) ) ) ) { throw new java.lang.IllegalArgumentException ( ( "not an object type: " + ( descriptor ) ) ) ; } if ( ( descriptor.charAt ( 0 ) ) == '[' ) { className = descriptor ; } else { className = descriptor.substring ( 1 , ( ( descriptor.length ( ) ) - 1 ) ) ; } } return className ; }

Target:
public java.lang.String getClassName ( ) { if ( ( className ) == null ) { if ( ! ( isReference ( ) ) ) { throw new java.lang.IllegalArgumentException ( ( "not an object type: " + ( descriptor ) ) ) ; } if ( ( descriptor.charAt ( 0 ) ) == '[' ) { className = descriptor ; } else { className = descriptor.substring ( 1 , ( ( descriptor.length ( ) ) - 1 ) ) ; } } return className ; }
Source:
public static java.lang.String toString ( android.hardware.tests.baz.V1_0.IBase.StringMatrix3x5 M ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; builder.append ( "[" ) ; for ( int i = 0 ; i < 3 ; ++ i ) { if ( i > 0 ) { builder.append ( ", " ) ; } builder.append ( com.android.commands.hidl_test_java.HidlTestJava.toString ( M.s [ i ] ) ) ; } builder.append ( "]" ) ; return builder.toString ( ) ; }

Target:
public static java.lang.String toString ( android.hardware.tests.baz.V1_0.IBase.StringMatrix3x5 M ) { return com.android.commands.hidl_test_java.HidlTestJava.toString ( M.s ) ; }
Source:
private javax.net.ssl.SSLEngine getEngine ( java.lang.String host , int port ) { javax.net.ssl.SSLContext context = null ; try { context = javax.net.ssl.SSLContext.getInstance ( "TLS" ) ; context.init ( null , null , null ) ; } catch ( java.security.KeyManagementException e ) { fail ( ( "Could not get SSLEngine: key management exception " + ( e.getMessage ( ) ) ) ) ; } catch ( java.security.NoSuchAlgorithmException e ) { fail ( ( "Could not get SSLEngine: no such algorithm " + ( e.getMessage ( ) ) ) ) ; } return context.createSSLEngine ( host , port ) ; }

Target:
private javax.net.ssl.SSLEngine getEngine ( java.lang.String host , int port ) throws java.lang.Exception { javax.net.ssl.SSLContext context = javax.net.ssl.SSLContext.getInstance ( "TLS" ) ; context.init ( null , null , null ) ; return context.createSSLEngine ( host , port ) ; }
Source:
public static boolean contains ( java.io.File dir , java.io.File file ) { if ( ( dir == null ) || ( file == null ) ) return false ; java.lang.String dirPath = dir.getAbsolutePath ( ) ; java.lang.String filePath = file.getAbsolutePath ( ) ; if ( dirPath.equals ( filePath ) ) { return true ; } if ( ! ( dirPath.endsWith ( "/" ) ) ) { dirPath += "/" ; } return filePath.startsWith ( dirPath ) ; }

Target:
public static boolean contains ( java.lang.String dirPath , java.lang.String filePath ) { if ( dirPath.equals ( filePath ) ) { return true ; } if ( ! ( dirPath.endsWith ( "/" ) ) ) { dirPath += "/" ; } return filePath.startsWith ( dirPath ) ; }
Source:
public int getLteOnCdmaModeForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getLteOnCdmaModeForSubscriber" ) ) ) { return com.android.internal.telephony.PhoneConstants.LTE_ON_CDMA_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone == null ) { return com.android.internal.telephony.PhoneConstants.LTE_ON_CDMA_UNKNOWN ; } else { return phone.getLteOnCdmaMode ( ) ; } }

Target:
public int getLteOnCdmaModeForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , subId , callingPackage , "getLteOnCdmaModeForSubscriber" ) ) ) { return com.android.internal.telephony.PhoneConstants.LTE_ON_CDMA_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone == null ) { return com.android.internal.telephony.PhoneConstants.LTE_ON_CDMA_UNKNOWN ; } else { return phone.getLteOnCdmaMode ( ) ; } }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.Initializer x , org.eclipse.jdt.internal.compiler.lookup.MethodScope scope ) { try { com.android.jack.ir.ast.JBlock block = pop ( x.block ) ; if ( block != null ) { curMethod.body.getBlock ( ) . addStmt ( block ) ; } popMethodInfo ( ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.Initializer x , org.eclipse.jdt.internal.compiler.lookup.MethodScope scope ) { try { com.android.jack.ir.ast.JBlock block = pop ( x.block ) ; if ( block != null ) { curMethod.body.getBlock ( ) . addStmt ( block ) ; } popMethodInfo ( ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public void sendMessage ( @ android.annotation.NonNull android.net.wifi.aware.PeerHandle peerHandle , int messageId , @ android.annotation.Nullable byte [ ] message , int retryCount ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "sendMessage: called on terminated session" ) ; return ; } else { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "sendMessage: called post GC on WifiAwareManager" ) ; return ; } mgr.sendMessage ( mClientId , mSessionId , peerHandle , message , messageId , retryCount ) ; } }

Target:
public void sendMessage ( @ android.annotation.NonNull android.net.wifi.aware.PeerHandle peerHandle , int messageId , @ android.annotation.Nullable byte [ ] message , int retryCount ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "sendMessage: called on terminated session" ) ; return ; } android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.DiscoverySession.TAG , "sendMessage: called post GC on WifiAwareManager" ) ; return ; } mgr.sendMessage ( mClientId , mSessionId , peerHandle , message , messageId , retryCount ) ; }
Source:
private boolean isOffsetVisible ( int offset ) { android.text.Layout layout = mTextView.getLayout ( ) ; final int line = layout.getLineForOffset ( offset ) ; final int lineBottom = layout.getLineBottom ( line ) ; final int primaryHorizontal = ( ( int ) ( layout.getPrimaryHorizontal ( offset ) ) ) ; return isPositionVisible ( ( primaryHorizontal + ( mTextView.viewportToContentHorizontalOffset ( ) ) ) , ( lineBottom + ( mTextView.viewportToContentVerticalOffset ( ) ) ) ) ; }

Target:
private boolean isOffsetVisible ( int offset ) { android.text.Layout layout = mTextView.getLayout ( ) ; if ( layout == null ) return false ; final int line = layout.getLineForOffset ( offset ) ; final int lineBottom = layout.getLineBottom ( line ) ; final int primaryHorizontal = ( ( int ) ( layout.getPrimaryHorizontal ( offset ) ) ) ; return isPositionVisible ( ( primaryHorizontal + ( mTextView.viewportToContentHorizontalOffset ( ) ) ) , ( lineBottom + ( mTextView.viewportToContentVerticalOffset ( ) ) ) ) ; }
Source:
private static void addEngine ( java.lang.String name , boolean sp , java.lang.String paramName ) { java.security.Provider.EngineDescription ed = new java.security.Provider.EngineDescription ( name , sp , paramName ) ; java.security.Provider.knownEngines.put ( name.toLowerCase ( java.util.Locale.ENGLISH ) , ed ) ; java.security.Provider.knownEngines.put ( name , ed ) ; }

Target:
private static void addEngine ( java.lang.String name , boolean sp , java.lang.String paramName ) { java.security.Provider.EngineDescription ed = new java.security.Provider.EngineDescription ( name , sp , paramName ) ; java.security.Provider.knownEngines.put ( name , ed ) ; }
Source:
public long getDiscoveryEndMillis ( ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "getDiscoveryEndMillis() - Not allowed for non-active user" ) ; return - 1 ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return - 1 ; return service.getDiscoveryEndMillis ( ) ; }

Target:
public long getDiscoveryEndMillis ( ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "getDiscoveryEndMillis() - Not allowed for non-active user" ) ; return - 1 ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return - 1 ; } return service.getDiscoveryEndMillis ( ) ; }
Source:
private static java.lang.CharSequence getLabelForIncomingVideo ( android.content.Context context , @ com.android.incallui.videotech.utils.SessionModificationState int sessionModificationState , boolean isWifi ) { if ( sessionModificationState == ( com.android.incallui.videotech.utils.SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST ) ) { if ( isWifi ) { return context.getString ( R.string.contact_grid_incoming_wifi_video_request ) ; } else { return context.getString ( R.string.contact_grid_incoming_video_request ) ; } } else { if ( isWifi ) { return context.getString ( R.string.contact_grid_incoming_wifi_video_call ) ; } else { return context.getString ( R.string.contact_grid_incoming_video_call ) ; } } }

Target:
private static java.lang.CharSequence getLabelForIncomingVideo ( android.content.Context context , @ com.android.incallui.videotech.utils.SessionModificationState int sessionModificationState , boolean isWifi ) { if ( sessionModificationState == ( com.android.incallui.videotech.utils.SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST ) ) { if ( isWifi ) { return context.getString ( R.string.contact_grid_incoming_wifi_video_call ) ; } else { return context.getString ( R.string.contact_grid_incoming_video_call ) ; } } else { if ( isWifi ) { return context.getString ( R.string.contact_grid_incoming_wifi_video_call ) ; } else { return context.getString ( R.string.contact_grid_incoming_video_call ) ; } } }
Source:
public java.lang.Object getValue ( ) { if ( allowMultiple ) { java.util.List result = com.google.common.collect.Lists.newArrayList ( ) ; com.google.common.collect.ListMultimap realValue = ( ( com.google.common.collect.ListMultimap ) ( value ) ) ; for ( com.google.devtools.common.options.OptionPriority priority : com.google.devtools.common.options.OptionPriority.values ( ) ) { if ( realValue.containsKey ( priority ) ) { result.addAll ( realValue.get ( priority ) ) ; } } return result ; } return value ; }

Target:
public java.lang.Object getValue ( ) { if ( allowMultiple ) { java.util.List result = new java.util.ArrayList < > ( ) ; com.google.common.collect.ListMultimap realValue = ( ( com.google.common.collect.ListMultimap ) ( value ) ) ; for ( com.google.devtools.common.options.OptionPriority priority : com.google.devtools.common.options.OptionPriority.values ( ) ) { if ( realValue.containsKey ( priority ) ) { result.addAll ( realValue.get ( priority ) ) ; } } return result ; } return value ; }
Source:
private java.lang.StringBuffer getPathFromDirInternal ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir baseDir , @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir currentDir ) { if ( baseDir == currentDir ) { return new java.lang.StringBuffer ( ) ; } com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir currentParent = ( ( com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir ) ( currentDir.getParent ( ) ) ) ; assert currentParent != null ; return getPathFromDirInternal ( baseDir , currentParent ) . append ( currentDir.getName ( ) ) . append ( '/' ) ; }

Target:
private java.lang.StringBuilder getPathFromDirInternal ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir baseDir , @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir currentDir ) { if ( baseDir == currentDir ) { return new java.lang.StringBuilder ( ) ; } com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir currentParent = ( ( com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVDir ) ( currentDir.getParent ( ) ) ) ; assert currentParent != null ; return getPathFromDirInternal ( baseDir , currentParent ) . append ( currentDir.getName ( ) ) . append ( '/' ) ; }