auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.Set < java.lang.String > getDensityFilters ( ) { com.android.resources.Density [ ] values = com.android.resources.Density.values ( ) ; java.util.Set < java.lang.String > fullList = com.google.common.collect.Sets.newHashSetWithExpectedSize ( ( ( values.length ) - 1 ) ) ; for ( com.android.resources.Density value : values ) { if ( ( ( value != ( com.android.resources.Density.NODPI ) ) && ( value != ( com.android.resources.Density.ANYDPI ) ) ) && ( value.isRecommended ( ) ) ) { fullList.add ( value.getResourceValue ( ) ) ; } } return density.getApplicableFilters ( fullList ) ; }

Target:
public java.util.Set < java.lang.String > getDensityFilters ( ) { return density.getApplicableFilters ( ) ; }
Source:
private com.android.jack.ir.ast.JDefinedClass initializeSyntheticClass ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull java.lang.String syntheticClassShortName ) { com.android.jack.ir.ast.JDefinedClass syntheticSwitchmapClass = new com.android.jack.ir.ast.JDefinedClass ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , syntheticClassShortName , ( ( ( com.android.jack.ir.ast.JModifier.PUBLIC ) | ( com.android.jack.ir.ast.JModifier.FINAL ) ) | ( com.android.jack.ir.ast.JModifier.SYNTHETIC ) ) , enclosingPackage , com.android.jack.load.NopClassOrInterfaceLoader.INSTANCE ) ; syntheticSwitchmapClass.setSuperClass ( session.getLookup ( ) . getClass ( CommonTypes.JAVA_LANG_OBJECT ) ) ; syntheticSwitchmapClass.setExternal ( false ) ; session.addTypeToEmit ( syntheticSwitchmapClass ) ; return syntheticSwitchmapClass ; }

Target:
private com.android.jack.ir.ast.JDefinedClass initializeSyntheticClass ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull java.lang.String syntheticClassShortName ) { com.android.jack.ir.ast.JDefinedClass syntheticSwitchmapClass = new com.android.jack.ir.ast.JDefinedClass ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , syntheticClassShortName , ( ( ( com.android.jack.ir.ast.JModifier.PUBLIC ) | ( com.android.jack.ir.ast.JModifier.FINAL ) ) | ( com.android.jack.ir.ast.JModifier.SYNTHETIC ) ) , enclosingPackage , com.android.jack.load.NopClassOrInterfaceLoader.INSTANCE ) ; syntheticSwitchmapClass.setSuperClass ( session.getLookup ( ) . getClass ( CommonTypes.JAVA_LANG_OBJECT ) ) ; session.addTypeToEmit ( syntheticSwitchmapClass ) ; return syntheticSwitchmapClass ; }
Source:
public boolean enterIf ( com.google.common.util.concurrent.Monitor.Guard guard ) { if ( ( guard.monitor ) != ( this ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lock ( ) ; boolean satisfied = false ; try { satisfied = guard.isSatisfied ( ) ; } finally { if ( ! satisfied ) { lock.unlock ( ) ; } } return satisfied ; }

Target:
public boolean enterIf ( com.google.common.util.concurrent.Monitor.Guard guard ) { if ( ( guard.monitor ) != ( this ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lock ( ) ; boolean satisfied = false ; try { return satisfied = guard.isSatisfied ( ) ; } finally { if ( ! satisfied ) { lock.unlock ( ) ; } } }
Source:
public com.android.jack.api.v01.Api01CompilationTask getTask ( ) throws com.android.jack.api.v01.ConfigurationException { com.android.sched.util.RunnableHooks configHooks = new com.android.sched.util.RunnableHooks ( ) ; try { com.android.jack.Jack.check ( options , configHooks ) ; } catch ( com.android.jack.api.v01.impl.com.android.sched e ) { throw new com.android.jack.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } catch ( com.android.jack.IllegalOptionsException e ) { throw new com.android.jack.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } return new com.android.jack.api.v01.impl.Api01ConfigImpl.Api01CompilationTaskImpl ( options ) ; }

Target:
public com.android.jack.api.v01.Api01CompilationTask getTask ( ) throws com.android.jack.api.v01.ConfigurationException { com.android.sched.util.RunnableHooks configHooks = new com.android.sched.util.RunnableHooks ( ) ; try { com.android.jack.Jack.check ( options , configHooks ) ; } catch ( com.android.jack.api.v01.impl.com.android.sched e ) { throw new com.android.jack.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } catch ( com.android.jack.IllegalOptionsException e ) { throw new com.android.jack.api.v01.ConfigurationException ( e.getMessage ( ) , e ) ; } return new com.android.jack.api.v01.impl.Api01ConfigImpl.Api01CompilationTaskImpl ( options , configHooks ) ; }
Source:
public java.util.Collection < ? extends com.intellij.ide.util.treeView.AbstractTreeNode > getChildren ( ) { com.intellij.ide.scratch.RootType rootType = getValue ( ) ; com.intellij.psi.PsiDirectory directory = getDirectory ( ) ; if ( directory == null ) return java.util.Collections.emptyList ( ) ; return new com.intellij.ide.scratch.ScratchProjectViewPane.MyPsiNode ( getProject ( ) , rootType , directory ) . getChildren ( ) ; }

Target:
public java.util.Collection < ? extends com.intellij.ide.util.treeView.AbstractTreeNode > getChildren ( ) { com.intellij.ide.scratch.RootType rootType = getValue ( ) ; com.intellij.psi.PsiDirectory directory = getDirectory ( ) ; if ( directory == null ) return java.util.Collections.emptyList ( ) ; return new com.intellij.ide.scratch.ScratchProjectViewPane.MyPsiNode ( directory.getProject ( ) , rootType , directory ) . getChildren ( ) ; }
Source:
public void printf ( java.lang.String msgFormat , java.lang.Object ... args ) { java.lang.String msg = java.lang.String.format ( msgFormat , args ) ; for ( java.lang.String s : msg.split ( "\n" ) ) { if ( ( s.trim ( ) . length ( ) ) > 0 ) { com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( com.android.ide.eclipse.adt.internal.sdk.AdtConsoleSdkLog.TAG , s ) ; } } }

Target:
public void info ( java.lang.String msgFormat , java.lang.Object ... args ) { java.lang.String msg = java.lang.String.format ( msgFormat , args ) ; for ( java.lang.String s : msg.split ( "\n" ) ) { if ( ( s.trim ( ) . length ( ) ) > 0 ) { com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( com.android.ide.eclipse.adt.internal.sdk.AdtConsoleSdkLog.TAG , s ) ; } } }
Source:
public boolean disconnect ( ) { boolean result = false ; com.android.nfc.dhimpl.NativeNfcTag.PresenceCheckWatchdog watchdog ; synchronized ( this ) { mIsPresent = false ; watchdog = mWatchdog ; } if ( watchdog != null ) { watchdog.end ( ) ; try { watchdog.join ( ) ; } catch ( java.lang.InterruptedException e ) { } synchronized ( this ) { mWatchdog = null ; } result = true ; } else { result = doDisconnect ( ) ; } mConnectedTechIndex = - 1 ; mConnectedHandle = - 1 ; return result ; }

Target:
public boolean disconnect ( ) { boolean result = false ; com.android.nfc.dhimpl.NativeNfcTag.PresenceCheckWatchdog watchdog ; synchronized ( this ) { mIsPresent = false ; watchdog = mWatchdog ; } if ( watchdog != null ) { watchdog.end ( false ) ; try { watchdog.join ( ) ; } catch ( java.lang.InterruptedException e ) { } synchronized ( this ) { mWatchdog = null ; } result = true ; } else { result = doDisconnect ( ) ; } mConnectedTechIndex = - 1 ; mConnectedHandle = - 1 ; return result ; }
Source:
public UResource.TableSink getOrCreateTableSink ( com.ibm.icu.impl.UResource.Key key , int initialSize ) { style = styleFromKey ( key ) ; int limit = ( key.length ( ) ) - ( com.ibm.icu.text.RelativeDateTimeFormatter.RelDateTimeFmtDataSink.styleSuffixLength ( style ) ) ; java.lang.String unitString = key.substring ( 0 , limit ) ; unit = com.ibm.icu.text.RelativeDateTimeFormatter.RelDateTimeFmtDataSink.DateTimeUnit.orNullFromString ( unitString ) ; if ( ( unit ) == null ) { return null ; } return unitSink ; }

Target:
public UResource.TableSink getOrCreateTableSink ( com.ibm.icu.impl.UResource.Key key ) { style = styleFromKey ( key ) ; int limit = ( key.length ( ) ) - ( com.ibm.icu.text.RelativeDateTimeFormatter.RelDateTimeFmtDataSink.styleSuffixLength ( style ) ) ; java.lang.String unitString = key.substring ( 0 , limit ) ; unit = com.ibm.icu.text.RelativeDateTimeFormatter.RelDateTimeFmtDataSink.DateTimeUnit.orNullFromString ( unitString ) ; if ( ( unit ) == null ) { return null ; } return unitSink ; }
Source:
public com.google.gct.testing.GoogleCloudTestingPersistentConfiguration getPersistentConfiguration ( ) { com.google.gct.testing.GoogleCloudTestingPersistentConfiguration persistentConfiguration = new com.google.gct.testing.GoogleCloudTestingPersistentConfiguration ( ) ; persistentConfiguration.name = name ; persistentConfiguration.devices = getEnabledTypes ( deviceDimension ) ; persistentConfiguration.apiLevels = getEnabledTypes ( apiDimension ) ; persistentConfiguration.languages = getEnabledTypes ( languageDimension ) ; persistentConfiguration.orientations = getEnabledTypes ( orientationDimension ) ; return persistentConfiguration ; }

Target:
public com.google.gct.testing.GoogleCloudTestingPersistentConfiguration getPersistentConfiguration ( ) { com.google.gct.testing.GoogleCloudTestingPersistentConfiguration persistentConfiguration = new com.google.gct.testing.GoogleCloudTestingPersistentConfiguration ( ) ; persistentConfiguration.id = id ; persistentConfiguration.name = name ; persistentConfiguration.devices = getEnabledTypes ( deviceDimension ) ; persistentConfiguration.apiLevels = getEnabledTypes ( apiDimension ) ; persistentConfiguration.languages = getEnabledTypes ( languageDimension ) ; persistentConfiguration.orientations = getEnabledTypes ( orientationDimension ) ; return persistentConfiguration ; }
Source:
public synchronized void add ( long time , int type , float ... values ) { assert ( values.length ) == ( myStreams ) ; float total = 0.0F ; for ( float value : values ) { total += value ; } mMaxTotal = java.lang.Math.max ( mMaxTotal , total ) ; mSamples.add ( new com.android.tools.chartlib.TimelineData.Sample ( ( ( time - ( mStart ) ) / 1000.0F ) , type , values ) ) ; }

Target:
public synchronized void add ( long time , int type , float ... values ) { add ( new com.android.tools.chartlib.TimelineData.Sample ( ( ( time - ( mStart ) ) / 1000.0F ) , type , values ) ) ; }
Source:
public void doHandshake ( ) throws java.lang.Exception { java.net.ServerSocket listener = new java.net.ServerSocket ( 0 ) ; java.util.concurrent.Future < org.conscrypt.OpenSSLSocketImpl > clientFuture = handshake ( listener , clientHooks ) ; java.util.concurrent.Future < org.conscrypt.OpenSSLSocketImpl > serverFuture = handshake ( listener , serverHooks ) ; org.conscrypt.OpenSSLSocketImpl client = clientFuture.get ( org.conscrypt.OpenSSLSocketImplTest.TIMEOUT_SECONDS , java.util.concurrent.TimeUnit.SECONDS ) ; org.conscrypt.OpenSSLSocketImpl server = serverFuture.get ( org.conscrypt.OpenSSLSocketImplTest.TIMEOUT_SECONDS , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
public void doHandshake ( ) throws java.lang.Exception { java.net.ServerSocket listener = new java.net.ServerSocket ( 0 ) ; java.util.concurrent.Future < org.conscrypt.OpenSSLSocketImpl > clientFuture = handshake ( listener , clientHooks ) ; java.util.concurrent.Future < org.conscrypt.OpenSSLSocketImpl > serverFuture = handshake ( listener , serverHooks ) ; client = clientFuture.get ( org.conscrypt.OpenSSLSocketImplTest.TIMEOUT_SECONDS , java.util.concurrent.TimeUnit.SECONDS ) ; server = serverFuture.get ( org.conscrypt.OpenSSLSocketImplTest.TIMEOUT_SECONDS , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
public void testVoiceSearchHandsFree ( ) { if ( com.android.compatibility.common.util.FeatureUtil.isLowRam ( ) ) { return ; } android.content.pm.PackageManager packageManager = mContext.getPackageManager ( ) ; if ( packageManager.hasSystemFeature ( PackageManager.FEATURE_MICROPHONE ) ) { android.content.Intent intent = new android.content.Intent ( android.speech.RecognizerIntent.ACTION_VOICE_SEARCH_HANDS_FREE ) ; assertCanBeHandled ( intent ) ; assertDefaultHandlerValidPriority ( intent ) ; } }

Target:
public void testVoiceSearchHandsFree ( ) { android.content.pm.PackageManager packageManager = mContext.getPackageManager ( ) ; if ( packageManager.hasSystemFeature ( PackageManager.FEATURE_MICROPHONE ) ) { android.content.Intent intent = new android.content.Intent ( android.speech.RecognizerIntent.ACTION_VOICE_SEARCH_HANDS_FREE ) ; assertCanBeHandled ( intent ) ; assertDefaultHandlerValidPriority ( intent ) ; } }
Source:
public java.lang.String getDescription ( android.content.Context context ) { java.lang.String host = path.getHost ( ) . replaceAll ( ":[0-9]+" , "" ) ; java.lang.String description ; if ( ! ( android.text.TextUtils.isEmpty ( location ) ) ) { description = context.getString ( R.string.printer_description , host , location ) ; } else { description = host ; } return description ; }

Target:
public java.lang.String getHost ( ) { return path.getHost ( ) . replaceAll ( ":[0-9]+" , "" ) ; }
Source:
private void addRemoteSource ( com.android.sdklib.AndroidVersion version , com.android.sdklib.repository.MajorRevision revision ) { com.android.sdklib.repository.descriptors.IPkgDesc d = PkgDesc.Builder.newSource ( version , revision ) . create ( ) ; com.android.sdklib.repository.remote.RemotePkgInfo r = new com.android.sdklib.repository.remote.RemotePkgInfo ( d , mSource ) ; mRemotePkgs.put ( d.getType ( ) , r ) ; }

Target:
private void addRemoteSource ( com.android.sdklib.AndroidVersion version , com.android.sdklib.repository.MajorRevision revision ) { com.android.sdklib.repository.descriptors.IPkgDesc d = PkgDesc.Builder.newSource ( version , revision ) . create ( ) ; com.android.sdklib.repository.remote.RemotePkgInfo r = new com.android.sdklib.repository.remote.RemotePkgInfo ( d , mSource , 0 ) ; mRemotePkgs.put ( d.getType ( ) , r ) ; }
Source:
private void validateSdk ( com.android.ide.eclipse.adt.internal.sdk.Sdk sdk ) { assertTrue ( "sdk has no targets" , ( ( sdk.getTargets ( ) . length ) > 0 ) ) ; for ( com.android.sdklib.IAndroidTarget target : sdk.getTargets ( ) ) { if ( ! ( validateSdk ( target ) ) ) { continue ; } org.eclipse.core.runtime.IStatus status = new com.android.ide.eclipse.adt.internal.sdk.AndroidTargetParser ( target ) . run ( new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; if ( ( status.getCode ( ) ) != ( org.eclipse.core.runtime.IStatus.OK ) ) { fail ( "Failed to parse targets data" ) ; } } }

Target:
private void validateSdk ( com.android.ide.eclipse.adt.internal.sdk.Sdk sdk ) { assertTrue ( "sdk has no targets" , ( ( sdk.getTargets ( ) . length ) > 0 ) ) ; for ( com.android.sdklib.IAndroidTarget target : sdk.getTargets ( ) ) { if ( ! ( validateSdk ( target ) ) ) { continue ; } if ( false ) { org.eclipse.core.runtime.IStatus status = new com.android.ide.eclipse.adt.internal.sdk.AndroidTargetParser ( target ) . run ( new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; if ( ( status.getCode ( ) ) != ( org.eclipse.core.runtime.IStatus.OK ) ) { fail ( "Failed to parse targets data" ) ; } } } }
Source:
public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value charsetValue = getStaticFieldValue ( debuggeeClassId , "CHARSET" ) ; constructorArguments.add ( byteArrayValue ) ; constructorArguments.add ( charsetValue ) ; }

Target:
public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; constructorArguments.add ( byteArrayValue ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { try { if ( ( zos ) != null ) { zos.close ( ) ; } if ( ( zis ) != null ) { zis.close ( ) ; } } catch ( java.lang.Exception e ) { } super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { try { if ( ( zis ) != null ) { zis.close ( ) ; } if ( ( zos ) != null ) { zos.close ( ) ; } } catch ( java.lang.Exception e ) { } super . tearDown ( ) ; }
Source:
protected < DST extends com.android.sched.item.Component > java.util.Iterator < DST > adaptWithLog ( @ javax.annotation.Nonnull com.android.sched.schedulable.AdapterSchedulable < T , DST > adapter , @ javax.annotation.Nonnull T data ) throws com.android.sched.scheduler.AdapterProcessException { com.android.sched.util.log.Event event = logAndTrace ( adapter , data ) ; try { return adapter.adapt ( data ) ; } catch ( java.lang.Throwable e ) { com.android.sched.scheduler.ManagedSchedulable managedSchedulable = scheduler.getSchedulableManager ( ) . getManagedSchedulable ( adapter.getClass ( ) ) ; throw new com.android.sched.scheduler.AdapterProcessException ( adapter , managedSchedulable , data , e ) ; } finally { event.end ( ) ; } }

Target:
protected < DST extends com.android.sched.item.Component > java.util.Iterator < DST > adaptWithLog ( @ javax.annotation.Nonnull com.android.sched.schedulable.AdapterSchedulable < T , DST > adapter , @ javax.annotation.Nonnull T data ) throws com.android.sched.scheduler.AdapterProcessException { try ( com.android.sched.util.log.Event event = logAndTrace ( adapter , data ) ) { return adapter.adapt ( data ) ; } catch ( java.lang.Throwable e ) { com.android.sched.scheduler.ManagedSchedulable managedSchedulable = scheduler.getSchedulableManager ( ) . getManagedSchedulable ( adapter.getClass ( ) ) ; throw new com.android.sched.scheduler.AdapterProcessException ( adapter , managedSchedulable , data , e ) ; } }
Source:
public static void initialize ( @ com.android.annotations.NonNull com.android.utils.ILogger logger , @ com.android.annotations.NonNull java.io.File out , @ com.android.annotations.NonNull java.util.List < com.android.builder.profile.Recorder.Property > properties ) throws java.io.IOException { synchronized ( com.android.builder.profile.ProcessRecorderFactory.LOCK ) { if ( ( com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.isInitialized ( ) ) || ( ! ( com.android.builder.profile.ProcessRecorderFactory.isEnabled ( ) ) ) ) { return ; } com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.setLogger ( logger ) ; com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.setOutputFile ( out ) ; com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.setRecordWriter ( new com.android.builder.profile.ProcessRecorder.JsonRecordWriter ( new java.io.FileWriter ( out ) ) ) ; com.android.builder.profile.ProcessRecorderFactory.publishInitialRecords ( properties ) ; } }

Target:
public static void initialize ( @ com.android.annotations.NonNull com.android.utils.ILogger logger , @ com.android.annotations.NonNull java.io.File out , @ com.android.annotations.NonNull java.util.List < com.android.builder.profile.Recorder.Property > properties ) throws java.io.IOException { synchronized ( com.android.builder.profile.ProcessRecorderFactory.LOCK ) { if ( ( com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.isInitialized ( ) ) || ( ! ( com.android.builder.profile.ProcessRecorderFactory.isEnabled ( ) ) ) ) { return ; } com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.setLogger ( logger ) ; com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.setOutputFile ( out ) ; com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.setRecordWriter ( new com.android.builder.profile.ProcessRecorder.JsonRecordWriter ( new java.io.FileWriter ( out ) ) ) ; com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.get ( ) ; com.android.builder.profile.ProcessRecorderFactory.publishInitialRecords ( properties ) ; } }
Source:
public void crunchPng ( @ com.android.annotations.NonNull java.io.File from , @ com.android.annotations.NonNull java.io.File to ) throws com.android.ide.common.internal.PngException { try { com.android.ide.common.process.ProcessInfo processInfo = new com.android.ide.common.process.ProcessInfoBuilder ( ) . setExecutable ( mAaptLocation ) . addArgs ( "s" , "-i" , from.getAbsolutePath ( ) , "-o" , to.getAbsolutePath ( ) ) . createProcess ( ) ; com.android.ide.common.process.ProcessResult result = mProcessExecutor.execute ( processInfo , mProcessOutputHandler ) ; result.rethrowFailure ( ) . assertNormalExitValue ( ) ; } catch ( com.android.ide.common.process.ProcessException e ) { throw new com.android.ide.common.internal.PngException ( e ) ; } }

Target:
public void crunchPng ( int key , @ com.android.annotations.NonNull java.io.File from , @ com.android.annotations.NonNull java.io.File to ) throws com.android.ide.common.internal.PngException { try { com.android.ide.common.process.ProcessInfo processInfo = new com.android.ide.common.process.ProcessInfoBuilder ( ) . setExecutable ( mAaptLocation ) . addArgs ( "s" , "-i" , from.getAbsolutePath ( ) , "-o" , to.getAbsolutePath ( ) ) . createProcess ( ) ; com.android.ide.common.process.ProcessResult result = mProcessExecutor.execute ( processInfo , mProcessOutputHandler ) ; result.rethrowFailure ( ) . assertNormalExitValue ( ) ; } catch ( com.android.ide.common.process.ProcessException e ) { throw new com.android.ide.common.internal.PngException ( e ) ; } }
Source:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , int duration , int maxExtendedAdvertisingEvents , android.bluetooth.le.AdvertisingSetCallback callback ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , duration , maxExtendedAdvertisingEvents , callback , new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) ) ; }

Target:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.AdvertisingSetCallback callback ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , 0 , callback , new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) ) ; }
Source:
public void testGetContent ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "A" ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; java.io.InputStream in = ( ( java.io.InputStream ) ( connection.getContent ( ) ) ) ; assertEquals ( "A" , readAscii ( in , java.lang.Integer.MAX_VALUE ) ) ; }

Target:
public void testGetContent ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "A" ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; java.io.InputStream in = ( ( java.io.InputStream ) ( connection.getContent ( ) ) ) ; org.junit.Assert.assertEquals ( "A" , readAscii ( in , java.lang.Integer.MAX_VALUE ) ) ; }
Source:
public com.android.jack.debug.DebugVariableInfoMarker exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.ExportSession exportSession ) { if ( ( ( name ) == null ) && ( ( type ) == null ) ) { return com.android.jack.debug.DebugVariableInfoMarker.NO_DEBUG_INFO ; } assert ( name ) != null ; assert ( type ) != null ; return new com.android.jack.debug.DebugVariableInfoMarker ( name , exportSession.getLookup ( ) . getType ( type ) , genericSignature ) ; }

Target:
public com.android.jack.debug.DebugVariableInfoMarker exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.ExportSession exportSession ) { assert ( name ) != null ; assert ( type ) != null ; return new com.android.jack.debug.DebugVariableInfoMarker ( name , exportSession.getLookup ( ) . getType ( type ) , genericSignature ) ; }
Source:
public void openModuleDependenciesSettings ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.module.Module module , @ org.jetbrains.annotations.Nullable final com.intellij.openapi.roots.OrderEntry orderEntry ) { warnIfGradleProject ( ) ; com.intellij.openapi.options.ShowSettingsUtil.getInstance ( ) . editConfigurable ( myProject , com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( myProject ) , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( myProject ) . selectOrderEntry ( module , orderEntry ) ; } } ) ; }

Target:
public void openModuleDependenciesSettings ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.module.Module module , @ org.jetbrains.annotations.Nullable final com.intellij.openapi.roots.OrderEntry orderEntry ) { com.intellij.openapi.options.ShowSettingsUtil.getInstance ( ) . editConfigurable ( myProject , com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( myProject ) , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( myProject ) . selectOrderEntry ( module , orderEntry ) ; } } ) ; }
Source:
public void close ( ) { synchronized ( this ) { if ( ! ( closing ) ) { closing = true ; try { if ( ( textOut ) != null ) { textOut.close ( ) ; } out.close ( ) ; } catch ( java.io.IOException x ) { trouble = true ; } textOut = null ; charOut = null ; out = null ; } } }

Target:
public void close ( ) { synchronized ( this ) { if ( ! ( closing ) ) { closing = true ; try { textOut.close ( ) ; out.close ( ) ; } catch ( java.io.IOException x ) { trouble = true ; } textOut = null ; charOut = null ; out = null ; } } }
Source:
public int deleteCacheFiles ( java.lang.String name ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( "rmcache" ) ; builder.append ( ' ' ) ; builder.append ( name ) ; return execute ( builder.toString ( ) ) ; }

Target:
public int deleteCacheFiles ( java.lang.String name , int userId ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( "rmcache" ) ; builder.append ( ' ' ) ; builder.append ( name ) ; builder.append ( ' ' ) ; builder.append ( userId ) ; return execute ( builder.toString ( ) ) ; }
Source:
public void testCountingProxy ( ) throws java.lang.Exception { libcore.java.net.FtpURLConnectionTest.CountingProxy countingProxy = libcore.java.net.FtpURLConnectionTest.CountingProxy.start ( ) ; try { java.net.Proxy proxy = countingProxy.asProxy ( ) ; assertEquals ( java.net.Proxy.Type.HTTP , proxy.type ( ) ) ; java.net.SocketAddress address = proxy.address ( ) ; java.net.Socket socket = new java.net.Socket ( ) ; socket.connect ( address , 10 ) ; socket.close ( ) ; } finally { int numConnections = countingProxy.shutdownAndGetConnectionCount ( ) ; assertEquals ( 1 , numConnections ) ; } }

Target:
public void testCountingProxy ( ) throws java.lang.Exception { libcore.java.net.FtpURLConnectionTest.CountingProxy countingProxy = libcore.java.net.FtpURLConnectionTest.CountingProxy.start ( ) ; java.net.Socket socket = new java.net.Socket ( ) ; try { try { java.net.Proxy proxy = countingProxy.asProxy ( ) ; assertEquals ( java.net.Proxy.Type.HTTP , proxy.type ( ) ) ; java.net.SocketAddress address = proxy.address ( ) ; socket.connect ( address , 10 ) ; } finally { int numConnections = countingProxy.shutdownAndGetConnectionCount ( ) ; assertEquals ( 1 , numConnections ) ; } } finally { socket.close ( ) ; } }
Source:
public void test002 ( ) throws java.lang.Exception { com.android.jack.java8.lambda.test034.jack.Tests.Condition < java.lang.String > c = java.lang.String :: isEmpty ; org.junit.Assert.assertEquals ( 2 , c.getClass ( ) . getDeclaredMethods ( ) . length ) ; java.lang.reflect.Method m = c.getClass ( ) . getMethod ( "check" , java.lang.Object.class ) ; org.junit.Assert.assertEquals ( boolean . class , m.getReturnType ( ) ) ; org.junit.Assert.assertFalse ( m.isSynthetic ( ) ) ; org.junit.Assert.assertFalse ( m.isBridge ( ) ) ; }

Target:
public void test002 ( ) throws java.lang.Exception { com.android.jack.java8.lambda.test034.jack.Tests.Condition < java.lang.String > c = java.lang.String :: isEmpty ; java.lang.reflect.Method m = c.getClass ( ) . getMethod ( "check" , java.lang.Object.class ) ; org.junit.Assert.assertEquals ( boolean . class , m.getReturnType ( ) ) ; org.junit.Assert.assertFalse ( m.isSynthetic ( ) ) ; org.junit.Assert.assertFalse ( m.isBridge ( ) ) ; }
Source:
protected void buildSourceFileList ( ) { mFiles.clear ( ) ; org.eclipse.core.resources.IWorkspaceRoot root = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) . getRoot ( ) ; java.util.List < org.eclipse.core.runtime.IPath > sourceFolderPathList = com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getSourceClasspaths ( mJavaProject ) ; for ( org.eclipse.core.runtime.IPath sourceFolderPath : sourceFolderPathList ) { org.eclipse.core.resources.IFolder sourceFolder = root.getFolder ( sourceFolderPath ) ; if ( ( sourceFolder.exists ( ) ) && ( ( sourceFolder.equals ( getGenFolder ( ) ) ) == false ) ) { scanFolderForSourceFiles ( sourceFolder , sourceFolder ) ; } } }

Target:
private final void buildSourceFileList ( ) { mFiles.clear ( ) ; org.eclipse.core.resources.IWorkspaceRoot root = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) . getRoot ( ) ; java.util.List < org.eclipse.core.runtime.IPath > sourceFolderPathList = com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getSourceClasspaths ( mJavaProject ) ; for ( org.eclipse.core.runtime.IPath sourceFolderPath : sourceFolderPathList ) { org.eclipse.core.resources.IFolder sourceFolder = root.getFolder ( sourceFolderPath ) ; if ( ( sourceFolder.exists ( ) ) && ( ( sourceFolder.equals ( getGenFolder ( ) ) ) == false ) ) { scanFolderForSourceFiles ( sourceFolder , sourceFolder ) ; } } }
Source:
public static void onApplicationCreate ( android.app.Application application ) { if ( com.android.dialer.strictmode.DialerStrictMode.isStrictModeAllowed ( ) ) { com.android.dialer.strictmode.DialerStrictMode.warmupSharedPrefs ( application ) ; com.android.dialer.strictmode.StrictModeUtils.setRecommendedMainThreadPolicy ( com.android.dialer.strictmode.DialerStrictMode.THREAD_DEATH_PENALTY ) ; com.android.dialer.strictmode.StrictModeUtils.setRecommendedVMPolicy ( com.android.dialer.strictmode.DialerStrictMode.VM_DEATH_PENALTY ) ; android.os.Handler handler = new android.os.Handler ( android.os.Looper.myLooper ( ) ) ; handler.postAtFrontOfQueue ( ( ) -> com.android.dialer.strictmode.StrictModeUtils.setRecommendedMainThreadPolicy ( com.android.dialer.strictmode.DialerStrictMode.THREAD_DEATH_PENALTY ) ) ; } }

Target:
void onApplicationCreate ( android.app.Application application ) ;
Source:
private static com.google.devtools.build.android.desugar.InputFileProvider toInputFileProvider ( com.google.common.io.Closer closer , java.nio.file.Path path ) throws java.io.IOException { if ( java.nio.file.Files.isDirectory ( path ) ) { return closer.register ( new com.google.devtools.build.android.desugar.DirectoryInputFileProvider ( path ) ) ; } else { return closer.register ( new com.google.devtools.build.android.desugar.ZipInputFileProvider ( path ) ) ; } }

Target:
private static com.google.devtools.build.android.desugar.InputFileProvider toInputFileProvider ( java.nio.file.Path path ) throws java.io.IOException { if ( java.nio.file.Files.isDirectory ( path ) ) { return new com.google.devtools.build.android.desugar.DirectoryInputFileProvider ( path ) ; } else { return new com.google.devtools.build.android.desugar.ZipInputFileProvider ( path ) ; } }
Source:
public static void force ( ) { try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; if ( ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myRecords ) != null ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.markClean ( ) ; } if ( ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myNames ) != null ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myNames.force ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myAttributes.force ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myContents.force ( ) ; if ( ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myContentHashesEnumerator ) != null ) com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myContentHashesEnumerator.force ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myRecords.force ( ) ; } } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }

Target:
public static void force ( ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; try { if ( ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myRecords ) != null ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.markClean ( ) ; } if ( ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myNames ) != null ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myNames.force ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myAttributes.force ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myContents.force ( ) ; if ( ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myContentHashesEnumerator ) != null ) com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myContentHashesEnumerator.force ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.myRecords.force ( ) ; } } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }
Source:
public void testRenameCoreLibrary_prefixedLoader ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "__/" ) , null , null , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.renameCoreLibrary ( "__/java/time/X" ) ) . isEqualTo ( "j$/time/X" ) ; com.google.common.truth.Truth.assertThat ( support.renameCoreLibrary ( "com/google/X" ) ) . isEqualTo ( "com/google/X" ) ; }

Target:
public void testRenameCoreLibrary_prefixedLoader ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "__/" ) , null , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.renameCoreLibrary ( "__/java/time/X" ) ) . isEqualTo ( "j$/time/X" ) ; com.google.common.truth.Truth.assertThat ( support.renameCoreLibrary ( "com/google/X" ) ) . isEqualTo ( "com/google/X" ) ; }
Source:
private static void registerDefaultProviders ( ) { java.security.Security.secprops.put ( "security.provider.1" , "com.android.org.conscrypt.OpenSSLProvider" ) ; java.security.Security.secprops.put ( "security.provider.2" , "org.apache.harmony.security.provider.cert.DRLCertFactory" ) ; java.security.Security.secprops.put ( "security.provider.3" , "com.android.org.bouncycastle.jce.provider.BouncyCastleProvider" ) ; java.security.Security.secprops.put ( "security.provider.4" , "org.apache.harmony.security.provider.crypto.CryptoProvider" ) ; java.security.Security.secprops.put ( "security.provider.5" , "com.android.org.conscrypt.JSSEProvider" ) ; }

Target:
private static void registerDefaultProviders ( ) { java.security.Security.secprops.put ( "security.provider.1" , "com.android.org.conscrypt.OpenSSLProvider" ) ; java.security.Security.secprops.put ( "security.provider.2" , "com.android.org.bouncycastle.jce.provider.BouncyCastleProvider" ) ; java.security.Security.secprops.put ( "security.provider.3" , "org.apache.harmony.security.provider.crypto.CryptoProvider" ) ; java.security.Security.secprops.put ( "security.provider.4" , "com.android.org.conscrypt.JSSEProvider" ) ; }
Source:
public static void onBatteryChargingChanged ( android.content.Intent intent ) { if ( ( org.chromium.base.PowerMonitor.sInstance ) == null ) { return ; } int chargePlug = intent.getIntExtra ( BatteryManager.EXTRA_PLUGGED , ( - 1 ) ) ; org.chromium.base.PowerMonitor.sInstance.mIsBatteryPower = ( chargePlug != ( android.os.BatteryManager.BATTERY_PLUGGED_USB ) ) && ( chargePlug != ( android.os.BatteryManager.BATTERY_PLUGGED_AC ) ) ; org.chromium.base.PowerMonitor.nativeOnBatteryChargingChanged ( ) ; }

Target:
private static void onBatteryChargingChanged ( android.content.Intent intent ) { assert ( org.chromium.base.PowerMonitor.sInstance ) != null ; int chargePlug = intent.getIntExtra ( BatteryManager.EXTRA_PLUGGED , ( - 1 ) ) ; org.chromium.base.PowerMonitor.sInstance.mIsBatteryPower = ( chargePlug != ( android.os.BatteryManager.BATTERY_PLUGGED_USB ) ) && ( chargePlug != ( android.os.BatteryManager.BATTERY_PLUGGED_AC ) ) ; org.chromium.base.PowerMonitor.nativeOnBatteryChargingChanged ( ) ; }
Source:
private java.security.cert.TrustAnchor findTrustAnchorBySubjectAndPublicKey ( java.security.cert.X509Certificate cert ) { java.security.cert.TrustAnchor trustAnchor = trustedCertificateIndex.findBySubjectAndPublicKey ( cert ) ; if ( trustAnchor != null ) { return trustAnchor ; } if ( ( trustedCertificateStore ) == null ) { return null ; } java.security.cert.X509Certificate systemCert = trustedCertificateStore.getTrustAnchor ( cert ) ; if ( systemCert != null ) { return trustedCertificateIndex.index ( systemCert ) ; } return null ; }

Target:
private java.security.cert.TrustAnchor findTrustAnchorBySubjectAndPublicKey ( java.security.cert.X509Certificate cert ) { java.security.cert.TrustAnchor trustAnchor = trustedCertificateIndex.findBySubjectAndPublicKey ( cert ) ; if ( trustAnchor != null ) { return trustAnchor ; } if ( ( trustedCertificateStore ) == null ) { return null ; } java.security.cert.X509Certificate systemCert = trustedCertificateStore.getTrustAnchor ( cert ) ; if ( systemCert != null ) { return new java.security.cert.TrustAnchor ( systemCert , null ) ; } return null ; }
Source:
static void printNonFinalized ( ) { for ( int i = 0 ; i < ( Main.FinalizeCounter.maxCount ) ; ++ i ) { if ( ! ( Main.FinalizeCounter.finalized [ i ] ) ) { java.lang.System.err.println ( ( ( "Element " + i ) + " was not finalized" ) ) ; } } }

Target:
static void printNonFinalized ( ) { for ( int i = 0 ; i < ( Main.FinalizeCounter.maxCount ) ; ++ i ) { if ( ! ( Main.FinalizeCounter.finalized [ i ] ) ) { java.lang.System.out.println ( ( ( "Element " + i ) + " was not finalized" ) ) ; } } }
Source:
public void testGetContentLengthConnects ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "ABC" ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; assertEquals ( 3 , connection.getContentLength ( ) ) ; connection.disconnect ( ) ; }

Target:
public void testGetContentLengthConnects ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "ABC" ) ) ; server.play ( ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; org.junit.Assert.assertEquals ( 3 , connection.getContentLength ( ) ) ; connection.disconnect ( ) ; }
Source:
public synchronized void setMax ( int max ) { if ( max < 0 ) { max = 0 ; } if ( max != ( mMax ) ) { mMax = max ; postInvalidate ( ) ; if ( ( mProgress ) > max ) { mProgress = max ; refreshProgress ( R.id.progress , mProgress , false ) ; } } }

Target:
public synchronized void setMax ( int max ) { if ( max < 0 ) { max = 0 ; } if ( max != ( mMax ) ) { mMax = max ; postInvalidate ( ) ; if ( ( mProgress ) > max ) { mProgress = max ; } refreshProgress ( R.id.progress , mProgress , false ) ; } }
Source:
public void test_SSL_get_servername_null ( ) throws java.lang.Exception { try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_servername ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } int c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; int s = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( c ) ; assertNull ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_servername ( s ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_get_servername_null ( ) throws java.lang.Exception { try { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_servername ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } long c = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_new ( ) ; long s = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_new ( c ) ; assertNull ( org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_servername ( s ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_free ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public void setIsConferenced ( java.lang.String callId , java.lang.String conferenceCallId ) { logIncoming ( "setIsConferenced %s %s" , callId , conferenceCallId ) ; if ( mCallIdMapper.isValidCallId ( callId ) ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = callId ; args.arg2 = conferenceCallId ; mHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceWrapper.MSG_SET_IS_CONFERENCED , args ) . sendToTarget ( ) ; } }

Target:
public void setIsConferenced ( java.lang.String callId , java.lang.String conferenceCallId ) { logIncoming ( "setIsConferenced %s %s" , callId , conferenceCallId ) ; com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = callId ; args.arg2 = conferenceCallId ; mHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceWrapper.MSG_SET_IS_CONFERENCED , args ) . sendToTarget ( ) ; }
Source:
public void testClientConfiguredCustomContentEncoding ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "ABCDE" ) . addHeader ( "Content-Encoding: custom" ) ) ; server.play ( ) ; java.net.URLConnection connection = server.getUrl ( "/" ) . openConnection ( ) ; connection.addRequestProperty ( "Accept-Encoding" , "custom" ) ; assertEquals ( "ABCDE" , readAscii ( connection.getInputStream ( ) , java.lang.Integer.MAX_VALUE ) ) ; com.google.mockwebserver.RecordedRequest request = server.takeRequest ( ) ; assertContains ( request.getHeaders ( ) , "Accept-Encoding: custom" ) ; }

Target:
public void testClientConfiguredCustomContentEncoding ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "ABCDE" ) . addHeader ( "Content-Encoding: custom" ) ) ; server.play ( ) ; java.net.URLConnection connection = server.getUrl ( "/" ) . openConnection ( ) ; connection.addRequestProperty ( "Accept-Encoding" , "custom" ) ; org.junit.Assert.assertEquals ( "ABCDE" , readAscii ( connection.getInputStream ( ) , java.lang.Integer.MAX_VALUE ) ) ; com.google.mockwebserver.RecordedRequest request = server.takeRequest ( ) ; assertContains ( request.getHeaders ( ) , "Accept-Encoding: custom" ) ; }
Source:
private void finishMerge ( @ javax.annotation.Nonnull com.android.jack.tools.merger.JackMerger merger , @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFile out ) throws com.android.jack.backend.dex.DexWritingException { java.io.OutputStream os = null ; try { try { os = new java.io.BufferedOutputStream ( out.getOutputStream ( ) ) ; merger.finish ( os ) ; } finally { if ( os != null ) { os.close ( ) ; } } } catch ( java.io.IOException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }

Target:
protected void finishMerge ( @ javax.annotation.Nonnull com.android.jack.tools.merger.JackMerger merger , @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFile out ) throws com.android.jack.backend.dex.DexWritingException { java.io.OutputStream os = null ; try { try { os = new java.io.BufferedOutputStream ( out.getOutputStream ( ) ) ; merger.finish ( os ) ; } finally { if ( os != null ) { os.close ( ) ; } } } catch ( java.io.IOException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }
Source:
public boolean put ( java.lang.String key , byte [ ] value ) { try { return ( mBinder.insert ( key , value , ( - 1 ) ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public boolean put ( java.lang.String key , byte [ ] value , int uid ) { try { return ( mBinder.insert ( key , value , uid ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
private void testConnectivityConstraintFailsImpl ( int requiredNetworkType , int jobId ) { android.app.job.JobInfo testJob = new android.app.job.JobInfo.Builder ( jobId , mMockComponent ) . setRequiredNetworkType ( requiredNetworkType ) . build ( ) ; mTestEnvironment.setUp ( ) ; mTestEnvironment.setExpectedExecutions ( 0 ) ; mJobScheduler.schedule ( testJob ) ; sendBroadcastAndBlockForResult ( com.android.cts.verifier.jobscheduler.EXPEDITE_STABLE_CHARGING ) ; boolean testPassed ; try { testPassed = mTestEnvironment.awaitTimeout ( ) ; } catch ( java.lang.InterruptedException e ) { testPassed = false ; } runOnUiThread ( new com.android.cts.verifier.jobscheduler.ConnectivityConstraintTestActivity.ConnectivityConstraintTestResultRunner ( jobId , testPassed ) ) ; }

Target:
private void testConnectivityConstraintFailsImpl ( int requiredNetworkType , int jobId ) { android.app.job.JobInfo testJob = new android.app.job.JobInfo.Builder ( jobId , mMockComponent ) . setRequiredNetworkType ( requiredNetworkType ) . build ( ) ; mTestEnvironment.setUp ( ) ; mTestEnvironment.setExpectedExecutions ( 0 ) ; mJobScheduler.schedule ( testJob ) ; boolean testPassed ; try { testPassed = mTestEnvironment.awaitTimeout ( ) ; } catch ( java.lang.InterruptedException e ) { testPassed = false ; } runOnUiThread ( new com.android.cts.verifier.jobscheduler.ConnectivityConstraintTestActivity.ConnectivityConstraintTestResultRunner ( jobId , testPassed ) ) ; }
Source:
public void test_reverseOrder ( ) { java.util.Comparator comp = java.util.Collections.reverseOrder ( ) ; java.util.LinkedList list2 = new java.util.LinkedList ( ll ) ; java.util.Collections.sort ( list2 , comp ) ; final int llSize = ll.size ( ) ; for ( int counter = 0 ; counter < llSize ; counter ++ ) assertTrue ( "New comparator does not reverse sorting order" , ( ( ll.get ( counter ) ) == ( list2.get ( ( ( llSize - counter ) - 1 ) ) ) ) ) ; }

Target:
public void test_reverseOrder ( ) { java.util.Comparator comp = java.util.Collections.reverseOrder ( ) ; java.util.LinkedList list2 = new java.util.LinkedList ( ll ) ; java.util.Collections.sort ( list2 , comp ) ; final int llSize = ll.size ( ) ; for ( int counter = 0 ; counter < llSize ; counter ++ ) assertEquals ( "New comparator does not reverse sorting order" , list2.get ( ( ( llSize - counter ) - 1 ) ) , ll.get ( counter ) ) ; }