auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void sendEmergencyCallbackModeChange ( ) { android.content.Intent intent = new android.content.Intent ( com.android.internal.telephony.TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED ) ; intent.putExtra ( PhoneConstants.PHONE_IN_ECM_STATE , isInEcm ( ) ) ; android.telephony.SubscriptionManager.putPhoneIdAndSubIdExtra ( intent , getPhoneId ( ) ) ; android.app.ActivityManagerNative.broadcastStickyIntent ( intent , null , UserHandle.USER_ALL ) ; if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , "sendEmergencyCallbackModeChange" ) ; }

Target:
private void sendEmergencyCallbackModeChange ( ) { android.content.Intent intent = new android.content.Intent ( com.android.internal.telephony.TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED ) ; intent.putExtra ( PhoneConstants.PHONE_IN_ECM_STATE , isInEcm ( ) ) ; android.telephony.SubscriptionManager.putPhoneIdAndSubIdExtra ( intent , getPhoneId ( ) ) ; android.app.ActivityManager.broadcastStickyIntent ( intent , UserHandle.USER_ALL ) ; if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "sendEmergencyCallbackModeChange: isInEcm=" + ( isInEcm ( ) ) ) ) ; }
Source:
private void loadTestProperties ( @ javax.annotation.Nonnull java.util.Properties properties ) throws java.io.FileNotFoundException , java.io.IOException { for ( com.android.jack.test.runtime.RuntimeTestInfo info : runtimeTestInfos ) { java.io.File propertyFile = new java.io.File ( info.directory , info.propertyFileName ) ; if ( propertyFile.exists ( ) ) { if ( ( runtimeTestInfos.length ) > 1 ) { throw new java.lang.AssertionError ( ( "Not a regression test: " + ( info.directory.getAbsolutePath ( ) ) ) ) ; } properties.load ( new java.io.FileInputStream ( propertyFile ) ) ; break ; } } }

Target:
private static void loadTestProperties ( @ javax.annotation.Nonnull java.io.File propertyFile , @ javax.annotation.Nonnull java.util.Properties properties ) throws java.io.FileNotFoundException , java.io.IOException { java.io.FileInputStream fis = new java.io.FileInputStream ( propertyFile ) ; try { properties.load ( fis ) ; } finally { fis.close ( ) ; } }
Source:
public void setTrafficClass ( int tc ) throws java.net.SocketException { if ( ( tc < 0 ) || ( tc > 255 ) ) throw new java.lang.IllegalArgumentException ( "tc is not in range 0 -- 255" ) ; if ( isClosed ( ) ) throw new java.net.SocketException ( "Socket is closed" ) ; getImpl ( ) . setOption ( java.net.SocketOptions.IP_TOS , new java.lang.Integer ( tc ) ) ; }

Target:
public void setTrafficClass ( int tc ) throws java.net.SocketException { if ( ( tc < 0 ) || ( tc > 255 ) ) throw new java.lang.IllegalArgumentException ( "tc is not in range 0 -- 255" ) ; if ( isClosed ( ) ) throw new java.net.SocketException ( "Socket is closed" ) ; try { getImpl ( ) . setOption ( java.net.SocketOptions.IP_TOS , tc ) ; } catch ( java.net.SocketException se ) { if ( ! ( isConnected ( ) ) ) throw se ; } }
Source:
protected abstract com.android.internal.telephony.SMSDispatcher.SmsTracker getNewSubmitPduTracker ( java.lang.String destinationAddress , java.lang.String scAddress , java.lang.String message , com.android.internal.telephony.SmsHeader smsHeader , int encoding , 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 ) ;

Target:
protected abstract com.android.internal.telephony.SMSDispatcher.SmsTracker getNewSubmitPduTracker ( java.lang.String destinationAddress , java.lang.String scAddress , java.lang.String message , com.android.internal.telephony.SmsHeader smsHeader , int encoding , 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 ) ;
Source:
private void verifySelectedResult ( android.net.wifi.ScanResult chosenScanResult , android.net.wifi.WifiConfiguration candidate ) { android.net.wifi.ScanResult candidateScan = candidate.getNetworkSelectionStatus ( ) . getCandidate ( ) ; org.junit.Assert.assertEquals ( "choose the wrong SSID" , chosenScanResult.SSID , candidate.SSID ) ; org.junit.Assert.assertEquals ( "choose the wrong BSSID" , chosenScanResult.BSSID , candidateScan.BSSID ) ; }

Target:
public boolean answer ( int netId , android.net.wifi.ScanResult scanResult , int score ) { if ( ( netId >= 0 ) && ( netId < ( configs.length ) ) ) { configs [ netId ] . getNetworkSelectionStatus ( ) . setCandidate ( scanResult ) ; configs [ netId ] . getNetworkSelectionStatus ( ) . setCandidateScore ( score ) ; configs [ netId ] . getNetworkSelectionStatus ( ) . setSeenInLastQualifiedNetworkSelection ( true ) ; return true ; } else { return false ; } }
Source:
protected com.android.jack.test.toolchain.JackBasedToolchain createToolchain ( @ javax.annotation.Nonnull java.util.List < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > excludeList ) throws org.junit.internal.AssumptionViolatedException { com.android.jack.test.toolchain.JackBasedToolchain jackToolchain = super . createToolchain ( excludeList ) ; jackToolchain.addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidCompatibilityChecker.N_API_LEVEL ) ) ; return jackToolchain ; }

Target:
protected com.android.jack.test.toolchain.JackBasedToolchain createToolchain ( @ javax.annotation.Nonnull java.util.List < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > excludeList ) throws org.junit.internal.AssumptionViolatedException { com.android.jack.test.toolchain.JackBasedToolchain jackToolchain = super . createToolchain ( excludeList ) ; jackToolchain.addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidApiLevel.ReleasedLevel.N.getLevel ( ) ) ) ; return jackToolchain ; }
Source:
void doneWithMeta ( ) { parsingMeta = false ; anyToVerify = ! ( sigFileSigners.isEmpty ( ) ) ; baos = null ; sigFileData = null ; pendingBlocks = null ; signerCache = null ; manDig = null ; if ( sigFileSigners.containsKey ( java.util.jar.JarFile.MANIFEST_NAME ) ) { verifiedSigners.put ( java.util.jar.JarFile.MANIFEST_NAME , sigFileSigners.remove ( java.util.jar.JarFile.MANIFEST_NAME ) ) ; } }

Target:
void doneWithMeta ( ) { parsingMeta = false ; anyToVerify = ! ( sigFileSigners.isEmpty ( ) ) ; baos = null ; sigFileData = null ; pendingBlocks = null ; signerCache = null ; manDig = null ; if ( sigFileSigners.containsKey ( java.util.jar.JarFile.MANIFEST_NAME ) ) { java.security.CodeSigner [ ] codeSigners = sigFileSigners.remove ( java.util.jar.JarFile.MANIFEST_NAME ) ; verifiedSigners.put ( java.util.jar.JarFile.MANIFEST_NAME , codeSigners ) ; } }
Source:
public void log ( java.util.logging.Level level , java.lang.String msg ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; doLog ( lr ) ; }

Target:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.util.function.Supplier < java.lang.String > msgSupplier ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msgSupplier.get ( ) ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; doLog ( lr ) ; }
Source:
public void test_bind_null ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = createReceiverChannel ( ) ; assertNotNull ( dc.getLocalAddress ( ) ) ; assertTrue ( dc.isOpen ( ) ) ; assertFalse ( dc.isConnected ( ) ) ; dc.close ( ) ; try { dc.getLocalAddress ( ) ; fail ( ) ; } catch ( java.nio.channels.ClosedChannelException expected ) { } assertFalse ( dc.isOpen ( ) ) ; assertFalse ( dc.isConnected ( ) ) ; }

Target:
public void test_bind_null ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = libcore.java.nio.channels.DatagramChannelMulticastTest.createReceiverChannel ( ) ; assertNotNull ( dc.getLocalAddress ( ) ) ; assertTrue ( dc.isOpen ( ) ) ; assertFalse ( dc.isConnected ( ) ) ; dc.close ( ) ; try { dc.getLocalAddress ( ) ; fail ( ) ; } catch ( java.nio.channels.ClosedChannelException expected ) { } assertFalse ( dc.isOpen ( ) ) ; assertFalse ( dc.isConnected ( ) ) ; }
Source:
public static void computeTanpi ( android.renderscript.cts.TestTanpi.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.tan ( ( ( args.in ) * ( ( float ) ( java.lang.Math.PI ) ) ) ) , 6 , 128 ) ; }

Target:
public static void computeTanpi ( android.renderscript.cts.TestTanpi.ArgumentsFloatFloat args ) { android.renderscript.cts.Floaty ip = new android.renderscript.cts.Floaty ( ( ( float ) ( ( ( double ) ( args.in ) ) * ( java.lang.Math.PI ) ) ) , 1 , 1 ) ; args.out = android.renderscript.cts.Floaty.FloatyFromRange ( ( ( float ) ( java.lang.Math.tan ( ip.getDoubleMin ( ) ) ) ) , ( ( float ) ( java.lang.Math.tan ( ip.getDoubleMax ( ) ) ) ) , 4 , 128 ) ; }
Source:
public void addSession ( com.android.server.wifi.nan.WifiNanSessionState session ) { int sessionId = session.getSessionId ( ) ; if ( ( mSessions.get ( sessionId ) ) != null ) { android.util.Log.w ( com.android.server.wifi.nan.WifiNanClientState.TAG , ( "createSession: sessionId already exists (replaced) - " + sessionId ) ) ; } mSessions.put ( sessionId , session ) ; }

Target:
public void addSession ( com.android.server.wifi.nan.WifiNanDiscoverySessionState session ) { int sessionId = session.getSessionId ( ) ; if ( ( mSessions.get ( sessionId ) ) != null ) { android.util.Log.w ( com.android.server.wifi.nan.WifiNanClientState.TAG , ( "createSession: sessionId already exists (replaced) - " + sessionId ) ) ; } mSessions.put ( sessionId , session ) ; }
Source:
private boolean complete ( @ javax.annotation.Nullable V v , @ javax.annotation.Nullable java.lang.Throwable t , int finalState ) { boolean doCompletion = compareAndSetState ( com.google.common.util.concurrent.AbstractFuture.Sync.RUNNING , com.google.common.util.concurrent.AbstractFuture.Sync.COMPLETING ) ; if ( doCompletion ) { this . value = v ; this . exception = t ; releaseShared ( finalState ) ; } else if ( ( getState ( ) ) == ( com.google.common.util.concurrent.AbstractFuture.Sync.COMPLETING ) ) { acquireShared ( ( - 1 ) ) ; } return doCompletion ; }

Target:
private boolean complete ( @ javax.annotation.Nullable V v , @ javax.annotation.Nullable java.lang.Throwable t , int finalState ) { boolean doCompletion = compareAndSetState ( com.google.common.util.concurrent.AbstractFuture.Sync.RUNNING , com.google.common.util.concurrent.AbstractFuture.Sync.COMPLETING ) ; if ( doCompletion ) { this . value = v ; this . exception = ( ( finalState & ( ( com.google.common.util.concurrent.AbstractFuture.Sync.CANCELLED ) | ( com.google.common.util.concurrent.AbstractFuture.Sync.INTERRUPTED ) ) ) != 0 ) ? new java.util.concurrent.CancellationException ( "Future.cancel() was called." ) : t ; releaseShared ( finalState ) ; } else if ( ( getState ( ) ) == ( com.google.common.util.concurrent.AbstractFuture.Sync.COMPLETING ) ) { acquireShared ( ( - 1 ) ) ; } return doCompletion ; }
Source:
private long writeLong ( java.io.OutputStream os , long i ) throws java.io.IOException { os.write ( ( ( int ) ( i & 255 ) ) ) ; os.write ( ( ( ( int ) ( i > > 8 ) ) & 255 ) ) ; os.write ( ( ( ( int ) ( i > > 16 ) ) & 255 ) ) ; os.write ( ( ( ( int ) ( i > > 24 ) ) & 255 ) ) ; return i ; }

Target:
static long writeLongAsUint32 ( java.io.OutputStream os , long i ) throws java.io.IOException { os.write ( ( ( int ) ( i & 255 ) ) ) ; os.write ( ( ( ( int ) ( i > > 8 ) ) & 255 ) ) ; os.write ( ( ( ( int ) ( i > > 16 ) ) & 255 ) ) ; os.write ( ( ( ( int ) ( i > > 24 ) ) & 255 ) ) ; return i ; }
Source:
private static boolean isIncomingVideoCall ( com.android.incallui.call.DialerCall call ) { if ( ! ( com.android.incallui.VideoCallPresenter.isVideoCall ( call ) ) ) { return false ; } final int state = call.getState ( ) ; return ( state == ( com.android.incallui.call.DialerCall.State.INCOMING ) ) || ( state == ( com.android.incallui.call.DialerCall.State.CALL_WAITING ) ) ; }

Target:
private static boolean isIncomingVideoCall ( com.android.incallui.call.DialerCall call ) { if ( ! ( com.android.incallui.VideoCallPresenter.isVideoCall ( call ) ) ) { return false ; } final int state = call.getState ( ) ; return ( state == ( com.android.incallui.call.state.DialerCallState.INCOMING ) ) || ( state == ( com.android.incallui.call.state.DialerCallState.CALL_WAITING ) ) ; }
Source:
public void testRedirect_type ( ) { java.io.File file = new java.io.File ( "/tmp/fake-file-for/java.lang.ProcessBuilderTest" ) ; libcore.java.lang.ProcessBuilderTest.assertRedirectType ( java.lang.ProcessBuilder.Redirect.Type.INHERIT , java.lang.ProcessBuilder.Redirect.INHERIT ) ; libcore.java.lang.ProcessBuilderTest.assertRedirectType ( java.lang.ProcessBuilder.Redirect.Type.PIPE , java.lang.ProcessBuilder.Redirect.PIPE ) ; libcore.java.lang.ProcessBuilderTest.assertRedirectType ( java.lang.ProcessBuilder.Redirect.Type.APPEND , java.lang.ProcessBuilder.Redirect.appendTo ( file ) ) ; libcore.java.lang.ProcessBuilderTest.assertRedirectType ( java.lang.ProcessBuilder.Redirect.Type.READ , java.lang.ProcessBuilder.Redirect.from ( file ) ) ; libcore.java.lang.ProcessBuilderTest.assertRedirectType ( java.lang.ProcessBuilder.Redirect.Type.WRITE , java.lang.ProcessBuilder.Redirect.to ( file ) ) ; }

Target:
public void testRedirect_fileAndType ( ) { java.io.File file = new java.io.File ( "/tmp/fake-file-for/java.lang.ProcessBuilderTest" ) ; libcore.java.lang.ProcessBuilderTest.assertRedirectFileAndType ( null , java.lang.ProcessBuilder.Redirect.Type.INHERIT , java.lang.ProcessBuilder.Redirect.INHERIT ) ; libcore.java.lang.ProcessBuilderTest.assertRedirectFileAndType ( null , java.lang.ProcessBuilder.Redirect.Type.PIPE , java.lang.ProcessBuilder.Redirect.PIPE ) ; libcore.java.lang.ProcessBuilderTest.assertRedirectFileAndType ( file , java.lang.ProcessBuilder.Redirect.Type.APPEND , java.lang.ProcessBuilder.Redirect.appendTo ( file ) ) ; libcore.java.lang.ProcessBuilderTest.assertRedirectFileAndType ( file , java.lang.ProcessBuilder.Redirect.Type.READ , java.lang.ProcessBuilder.Redirect.from ( file ) ) ; libcore.java.lang.ProcessBuilderTest.assertRedirectFileAndType ( file , java.lang.ProcessBuilder.Redirect.Type.WRITE , java.lang.ProcessBuilder.Redirect.to ( file ) ) ; }
Source:
public static void computeTrunc ( android.renderscript.cts.TestTrunc.ArgumentsFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; int sign = ( ( java.lang.Float.floatToIntBits ( args.in ) ) > > 31 ) & 1 ; float trunc = ( ( int ) ( args.in ) ) ; if ( ( sign == 1 ) && ( trunc == ( + 0.0F ) ) ) { trunc = - 0.0F ; } args.out = trunc ; }

Target:
public static void computeTrunc ( android.renderscript.cts.TestTrunc.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.trunc ( args.in ) , 0 , 0 ) ; }
Source:
private void deleteFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath vpath ) throws com.android.jack.incremental.IncrementalException { assert ( incrementalInputLibrary ) != null ; try { incrementalInputLibrary.getFile ( fileType , vpath ) ; incrementalInputLibrary.delete ( fileType , vpath ) ; } catch ( com.android.jack.library.FileTypeDoesNotExistException e ) { } catch ( com.android.sched.util.file.CannotDeleteFileException e ) { throw new com.android.jack.incremental.IncrementalException ( e ) ; } }

Target:
private void deleteFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath vpath ) throws com.android.jack.incremental.IncrementalException { assert ( incrementalInputLibrary ) != null ; try { incrementalInputLibrary.getFile ( fileType , vpath ) ; try { incrementalInputLibrary.delete ( fileType , vpath ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.sched.util.ConcurrentIOException ( e ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.sched.util.ConcurrentIOException ( e ) ; } } catch ( com.android.jack.library.FileTypeDoesNotExistException e ) { } catch ( com.android.sched.util.file.CannotDeleteFileException e ) { throw new com.android.jack.incremental.IncrementalException ( e ) ; } }
Source:
public void updateDate ( int year , int monthOfYear , int dayOfMonth ) { mYear = year ; mMonth = monthOfYear ; mDay = dayOfMonth ; updateSpinners ( ) ; reorderPickers ( new java.text.DateFormatSymbols ( ) . getShortMonths ( ) ) ; }

Target:
public void updateDate ( int year , int monthOfYear , int dayOfMonth ) { if ( ( ( ( mYear ) != year ) || ( ( mMonth ) != monthOfYear ) ) || ( ( mDay ) != dayOfMonth ) ) { mYear = year ; mMonth = monthOfYear ; mDay = dayOfMonth ; updateSpinners ( ) ; reorderPickers ( new java.text.DateFormatSymbols ( ) . getShortMonths ( ) ) ; notifyDateChanged ( ) ; } }
Source:
protected final void updateConnectionProperties ( ) { int newProperties = buildConnectionProperties ( ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_HIGH_DEF_AUDIO , hasHighDefAudioProperty ( ) ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_WIFI , mIsWifi ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_IS_EXTERNAL_CALL , isExternalConnection ( ) ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_HAS_CDMA_VOICE_PRIVACY , mIsCdmaVoicePrivacyEnabled ) ; if ( ( getConnectionProperties ( ) ) != newProperties ) { setConnectionProperties ( newProperties ) ; } }

Target:
protected final void updateConnectionProperties ( ) { int newProperties = buildConnectionProperties ( ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_HIGH_DEF_AUDIO , hasHighDefAudioProperty ( ) ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_WIFI , mIsWifi ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_IS_EXTERNAL_CALL , isExternalConnection ( ) ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_HAS_CDMA_VOICE_PRIVACY , mIsCdmaVoicePrivacyEnabled ) ; newProperties = changeBitmask ( newProperties , com.android.services.telephony.PROPERTY_ASSISTED_DIALING_USED , mIsUsingAssistedDialing ) ; if ( ( getConnectionProperties ( ) ) != newProperties ) { setConnectionProperties ( newProperties ) ; } }
Source:
public void saveClirSetting ( int commandInterfaceCLIRMode ) { android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( getContext ( ) ) ; android.content.SharedPreferences.Editor editor = sp.edit ( ) ; editor.putInt ( com.android.internal.telephony.gsm.CLIR_KEY , commandInterfaceCLIRMode ) ; if ( ! ( editor.commit ( ) ) ) { android.util.Log.e ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "failed to commit CLIR preference" ) ; } }

Target:
public void saveClirSetting ( int commandInterfaceCLIRMode ) { android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( getContext ( ) ) ; android.content.SharedPreferences.Editor editor = sp.edit ( ) ; editor.putInt ( com.android.internal.telephony.gsm.CLIR_KEY , commandInterfaceCLIRMode ) ; if ( ! ( editor.commit ( ) ) ) { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "failed to commit CLIR preference" ) ; } }
Source:
public static int ioctlInt ( java.io.FileDescriptor fd , int cmd , android.system.IoctlIntArg arg ) throws android.system.ErrnoException { android.util.MutableInt internalArg = new android.util.MutableInt ( arg.value ) ; try { return Libcore.os.ioctlInt ( fd , cmd , internalArg ) ; } finally { arg.value = internalArg.value ; } }

Target:
public static int [ ] getgroups ( ) throws android.system.ErrnoException { return Libcore.os.getgroups ( ) ; }
Source:
public java.util.Iterator < K > iterator ( ) { return new com.google.common.collect.TransformedIterator < com.google.common.collect.LinkedListMultimap.Node < K , V > , K > ( new NodeIterator ( ) ) { @ java.lang.Override K transform ( com.google.common.collect.LinkedListMultimap.Node < K , V > node ) { return node.key ; } } ; }

Target:
public java.util.List < V > get ( @ javax.annotation.Nullable final K key ) { return new java.util.AbstractSequentialList < V > ( ) { @ java.lang.Override public int size ( ) { com.google.common.collect.LinkedListMultimap.KeyList < K , V > keyList = keyToKeyList.get ( key ) ; return keyList == null ? 0 : keyList.count ; } @ java.lang.Override public java.util.ListIterator < V > listIterator ( int index ) { return new ValueForKeyIterator ( key , index ) ; } } ; }
Source:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedField field , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.FieldInfo f = findField ( field ) ; if ( f == null ) { return null ; } if ( ( f.annotations ) != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : f.annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }

Target:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedField field , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.FieldInfo f = findField ( field ) ; if ( f == null ) { return null ; } java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > annotations = f.getAnnotations ( ) ; if ( annotations != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }
Source:
static < T extends android.content.ContentProvider > T createProviderForTest ( android.content.Context context , java.lang.Class < T > providerClass , java.lang.String authority ) throws java.lang.IllegalAccessException , java.lang.InstantiationException { T instance = providerClass.newInstance ( ) ; android.content.pm.ProviderInfo providerInfo = new android.content.pm.ProviderInfo ( ) ; providerInfo.authority = authority ; instance.attachInfoForTesting ( context , providerInfo ) ; return instance ; }

Target:
static < T extends android.content.ContentProvider > T createProviderForTest ( android.content.Context context , java.lang.Class < T > providerClass , java.lang.String authority ) throws java.lang.IllegalAccessException , java.lang.InstantiationException { T instance = providerClass.newInstance ( ) ; android.content.pm.ProviderInfo providerInfo = new android.content.pm.ProviderInfo ( ) ; providerInfo.authority = authority ; android.test.mock.MockContentProvider.attachInfoForTesting ( instance , context , providerInfo ) ; return instance ; }
Source:
public static com.intellij.updater.DiffCalculator.Result calculate ( java.util.Map < java.lang.String , java.lang.Long > oldChecksums , java.util.Map < java.lang.String , java.lang.Long > newChecksums ) { com.intellij.updater.DiffCalculator.Result result = new com.intellij.updater.DiffCalculator.Result ( ) ; result.filesToDelete = com.intellij.updater.DiffCalculator.withAllRemoved ( oldChecksums , newChecksums ) ; result.filesToCreate = com.intellij.updater.DiffCalculator.withAllRemoved ( newChecksums , oldChecksums ) . keySet ( ) ; result.filesToUpdate = com.intellij.updater.DiffCalculator.collect ( oldChecksums , newChecksums , false ) ; return result ; }

Target:
public static com.intellij.updater.DiffCalculator.Result calculate ( java.util.Map < java.lang.String , java.lang.Long > oldChecksums , java.util.Map < java.lang.String , java.lang.Long > newChecksums ) { com.intellij.updater.DiffCalculator.Result result = new com.intellij.updater.DiffCalculator.Result ( ) ; result.filesToDelete = com.intellij.updater.DiffCalculator.withAllRemoved ( oldChecksums , newChecksums ) ; result.filesToCreate = com.intellij.updater.DiffCalculator.withAllRemoved ( newChecksums , oldChecksums ) . keySet ( ) ; result.filesToUpdate = com.intellij.updater.DiffCalculator.collect ( oldChecksums , newChecksums , false ) ; result.commonFiles = com.intellij.updater.DiffCalculator.collect ( oldChecksums , newChecksums , true ) ; return result ; }
Source:
private boolean isValid ( com.ibm.icu.impl.ValidIdentifiers.Datatype datatype , java.lang.String code , com.ibm.icu.impl.locale.LocaleValidityChecker.Where where ) { return code.isEmpty ( ) ? true : ( com.ibm.icu.impl.ValidIdentifiers.isValid ( datatype , datasubtypes , code ) ) != null ? true : where == null ? false : where.set ( datatype , code ) ; }

Target:
private boolean isValid ( com.ibm.icu.impl.ValidIdentifiers.Datatype datatype , java.lang.String code , com.ibm.icu.impl.locale.LocaleValidityChecker.Where where ) { if ( code.isEmpty ( ) ) { return true ; } if ( ( datatype == ( com.ibm.icu.impl.ValidIdentifiers.Datatype.variant ) ) && ( "posix" . equalsIgnoreCase ( code ) ) ) { return true ; } return ( com.ibm.icu.impl.ValidIdentifiers.isValid ( datatype , datasubtypes , code ) ) != null ? true : where == null ? false : where.set ( datatype , code ) ; }
Source:
public void testLoadTzData_duplicateId ( ) throws java.lang.Exception { libcore.util.ZoneInfoTestHelper.TzDataBuilder builder = new libcore.util.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) ; builder.clearZicData ( ) ; byte [ ] validZicData = new libcore.util.ZoneInfoTestHelper.ZoneInfoDataBuilder ( ) . initializeToValid ( ) . build ( ) ; builder.addZicData ( "Europe/London" , validZicData ) ; builder.addZicData ( "Europe/London" , validZicData ) ; libcore.util.ZoneInfoDBTest.checkInvalidDataDetected ( builder.build ( ) ) ; }

Target:
public void testLoadTzData_duplicateId ( ) throws java.lang.Exception { libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder builder = new libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) ; builder.clearZicData ( ) ; byte [ ] validZicData = new libcore.tzdata.testing.ZoneInfoTestHelper.ZoneInfoDataBuilder ( ) . initializeToValid ( ) . build ( ) ; builder.addZicData ( "Europe/London" , validZicData ) ; builder.addZicData ( "Europe/London" , validZicData ) ; libcore.util.ZoneInfoDBTest.checkInvalidDataDetected ( builder.build ( ) ) ; }
Source:
public void shouldDoNothingUntilRequested ( ) throws java.lang.Exception { initStateMachine ( ConnectivityManager.TETHERING_BLUETOOTH ) ; final int [ ] NOOP_COMMANDS = new int [ ] { TetherInterfaceStateMachine.CMD_TETHER_UNREQUESTED , TetherInterfaceStateMachine.CMD_IP_FORWARDING_ENABLE_ERROR , TetherInterfaceStateMachine.CMD_IP_FORWARDING_DISABLE_ERROR , TetherInterfaceStateMachine.CMD_START_TETHERING_ERROR , TetherInterfaceStateMachine.CMD_STOP_TETHERING_ERROR , TetherInterfaceStateMachine.CMD_SET_DNS_FORWARDERS_ERROR , TetherInterfaceStateMachine.CMD_TETHER_CONNECTION_CHANGED } ; for ( int command : NOOP_COMMANDS ) { dispatchCommand ( command ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNMService , mStatsService , mTetherHelper ) ; } }

Target:
public void shouldDoNothingUntilRequested ( ) throws java.lang.Exception { initStateMachine ( android.net.ConnectivityManager.TETHERING_BLUETOOTH ) ; final int [ ] NOOP_COMMANDS = new int [ ] { TetherInterfaceStateMachine.CMD_TETHER_UNREQUESTED , TetherInterfaceStateMachine.CMD_IP_FORWARDING_ENABLE_ERROR , TetherInterfaceStateMachine.CMD_IP_FORWARDING_DISABLE_ERROR , TetherInterfaceStateMachine.CMD_START_TETHERING_ERROR , TetherInterfaceStateMachine.CMD_STOP_TETHERING_ERROR , TetherInterfaceStateMachine.CMD_SET_DNS_FORWARDERS_ERROR , TetherInterfaceStateMachine.CMD_TETHER_CONNECTION_CHANGED } ; for ( int command : NOOP_COMMANDS ) { dispatchCommand ( command ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNMService , mStatsService , mTetherHelper ) ; } }
Source:
public void run ( com.android.sdklib.internal.repository.ITaskMonitor monitor ) { com.android.sdklib.internal.repository.RepoSource [ ] sources = mSources.getSources ( ) ; monitor.setProgressMax ( sources.length ) ; for ( com.android.sdklib.internal.repository.RepoSource source : sources ) { if ( ( forceFetching || ( ( source.getPackages ( ) ) != null ) ) || ( ( source.getFetchError ( ) ) != null ) ) { source.load ( monitor.createSubMonitor ( 1 ) , forceHttp ) ; } monitor.incProgress ( 1 ) ; } }

Target:
public void run ( com.android.sdklib.internal.repository.ITaskMonitor monitor ) { com.android.sdklib.internal.repository.SdkSource [ ] sources = mSources.getSources ( ) ; monitor.setProgressMax ( sources.length ) ; for ( com.android.sdklib.internal.repository.SdkSource source : sources ) { if ( ( forceFetching || ( ( source.getPackages ( ) ) != null ) ) || ( ( source.getFetchError ( ) ) != null ) ) { source.load ( monitor.createSubMonitor ( 1 ) , forceHttp ) ; } monitor.incProgress ( 1 ) ; } }
Source:
public void testRefactor1 ( ) throws java.lang.Exception { moveType ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT2 , "com.example.refactoringtest.CustomView1" , "src/com/example/refactoringtest/subpackage" , true , ( "CHANGES:\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( "-------\n" + "* Move resource \'testRefactor1/src/com/example/refactoringtest/CustomView1.java\' to \'subpackage\'\n" ) + "\n" ) + "* Move resource \'testRefactor1/src/com/example/refactoringtest/CustomView1.java\' to \'subpackage\'\n" ) + "\n" ) + "* customviews.xml - /testRefactor1/res/layout/customviews.xml\n" ) + " @@ -9 +9\n" ) + " - <com.example.refactoringtest.CustomView1\n" ) + " + <com.example.refactoringtest.subpackage.CustomView1\n" ) + "\n" ) + "\n" ) + "* customviews.xml - /testRefactor1/res/layout-land/customviews.xml\n" ) + " @@ -9 +9\n" ) + " - <com.example.refactoringtest.CustomView1\n" ) + " + <com.example.refactoringtest.subpackage.CustomView1" ) ) ) ; }

Target:
public void testRefactor1 ( ) throws java.lang.Exception { moveType ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT2 , "com.example.refactoringtest.CustomView1" , "src/com/example/refactoringtest/subpackage" , true , ( "CHANGES:\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( "-------\n" + "[x] Move resource \'testRefactor1/src/com/example/refactoringtest/CustomView1.java\' to \'subpackage\'\n" ) + "\n" ) + "[x] Move resource \'testRefactor1/src/com/example/refactoringtest/CustomView1.java\' to \'subpackage\'\n" ) + "\n" ) + "[x] customviews.xml - /testRefactor1/res/layout/customviews.xml\n" ) + " @@ -9 +9\n" ) + " - <com.example.refactoringtest.CustomView1\n" ) + " + <com.example.refactoringtest.subpackage.CustomView1\n" ) + "\n" ) + "\n" ) + "[x] customviews.xml - /testRefactor1/res/layout-land/customviews.xml\n" ) + " @@ -9 +9\n" ) + " - <com.example.refactoringtest.CustomView1\n" ) + " + <com.example.refactoringtest.subpackage.CustomView1" ) ) ) ; }
Source:
public java.lang.String getClientName ( int pid ) { synchronized ( mClients ) { for ( com.android.ddmlib.Client c : mClients ) { if ( ( c.getClientData ( ) . getPid ( ) ) == pid ) { return c.getClientData ( ) . getClientDescription ( ) ; } } } return null ; }

Target:
public com.android.ddmlib.Client [ ] getClients ( ) { synchronized ( mClients ) { return mClients.toArray ( new com.android.ddmlib.Client [ mClients.size ( ) ] ) ; } }
Source:
public void test_ConstructorLjava_io_FileZ ( ) { try { java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( new java.io.File ( "Wrong.file" ) , true ) ; fail ( "Should throw IOException" ) ; } catch ( java.io.IOException e ) { } try { tests.support.resource.Support_Resources.copyFile ( resources , null , jarName ) ; java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( new java.io.File ( resources , jarName ) , false ) ; } catch ( java.io.IOException e ) { fail ( "Should not throw IOException" ) ; } }

Target:
public void test_ConstructorLjava_io_FileZ ( ) { try { java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( new java.io.File ( "Wrong.file" ) , true ) ; fail ( "Should throw IOException" ) ; } catch ( java.io.IOException e ) { } try { java.io.File file = tests.support.resource.Support_Resources.copyFile ( resources , null , jarName ) ; java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( file , false ) ; jarFile.close ( ) ; } catch ( java.io.IOException e ) { fail ( "Should not throw IOException" ) ; } }
Source:
public java.util.List < java.lang.String > getAllProviders ( ) { try { synchronized ( mLock ) { return _getAllProvidersLocked ( ) ; } } catch ( java.lang.SecurityException se ) { throw se ; } catch ( java.lang.Exception e ) { android.util.Slog.e ( com.android.server.LocationManagerService.TAG , "getAllProviders got exception:" , e ) ; return null ; } }

Target:
private java.lang.String getResolutionPermission ( int resolutionLevel ) { switch ( resolutionLevel ) { case com.android.server.LocationManagerService.RESOLUTION_LEVEL_FINE : return android.Manifest.permission.ACCESS_FINE_LOCATION ; case com.android.server.LocationManagerService.RESOLUTION_LEVEL_COARSE : return android.Manifest.permission.ACCESS_COARSE_LOCATION ; default : return null ; } }
Source:
public int getLeState ( ) { try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) { int state = mService.getState ( ) ; if ( android.bluetooth.BluetoothAdapter.VDBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , ( "getLeState() returning " + state ) ) ; return state ; } } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return android.bluetooth.BluetoothAdapter.STATE_OFF ; }

Target:
public int getLeState ( ) { int state = android.bluetooth.BluetoothAdapter.STATE_OFF ; try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) { state = mService.getState ( ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } if ( android.bluetooth.BluetoothAdapter.VDBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , ( "getLeState() returning " + state ) ) ; return state ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode node ) { com.android.jack.ir.sourceinfo.SourceInfo info = node.getSourceInfo ( ) ; if ( info != ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { node.setSourceInfo ( sourceInfoFactory.create ( SourceInfo.UNKNOWN_COLUMN_NUMBER , SourceInfo.UNKNOWN_COLUMN_NUMBER , SourceInfo.UNKNOWN_LINE_NUMBER , SourceInfo.UNKNOWN_LINE_NUMBER , info.getFileName ( ) ) ) ; } return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode node ) { com.android.jack.ir.sourceinfo.SourceInfo info = node.getSourceInfo ( ) ; if ( info != ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { node.setSourceInfo ( info.getFileSourceInfo ( ) ) ; } return false ; }
Source:
public com.android.ims.internal.IImsMMTelFeature getImsMMTelFeatureAndListen ( int slotIndex , com.android.ims.internal.IImsServiceFeatureCallback callback ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getMMTelFeatureAndListen ( slotIndex , callback ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsMMTelFeatureAndListen, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }

Target:
public android.telephony.ims.aidl.IImsConfig getImsConfig ( int slotIndex , int feature ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getImsConfig ( slotIndex , feature ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsRegistration, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }
Source:
public android.graphics.Picture capturePicture ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.graphics.Picture ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.graphics.Picture > ( ) { @ java.lang.Override public android.graphics.Picture call ( ) { return capturePicture ( ) ; } } ) ; return ret ; } return mAwContents.capturePicture ( ) ; }

Target:
public boolean canGoBackOrForward ( final int steps ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return canGoBackOrForward ( steps ) ; } } ) ; return ret ; } return mAwContents.canGoBackOrForward ( steps ) ; }
Source:
public void test_ConstructorLjava_lang_String ( ) throws java.lang.Exception { java.io.File f = null ; try { f = new java.io.File ( java.lang.System.getProperty ( "user.dir" ) , "synfail.tst" ) ; java.io.FileOutputStream fos = new java.io.FileOutputStream ( f.getPath ( ) ) ; java.io.FileDescriptor fd = fos.getFD ( ) ; fos.close ( ) ; fd.sync ( ) ; } catch ( java.io.SyncFailedException e ) { f.delete ( ) ; return ; } fail ( "Failed to generate expected Exception" ) ; }

Target:
public void test_ConstructorLjava_lang_String ( ) throws java.lang.Exception { java.io.File f = null ; try { f = java.io.File.createTempFile ( "SyncFailedExceptionTest" , "tst" ) ; java.io.FileOutputStream fos = new java.io.FileOutputStream ( f.getAbsolutePath ( ) ) ; java.io.FileDescriptor fd = fos.getFD ( ) ; fos.close ( ) ; fd.sync ( ) ; } catch ( java.io.SyncFailedException e ) { f.delete ( ) ; return ; } fail ( "Failed to generate expected Exception" ) ; }
Source:
public void testLanguageLevelWhenSourceLanguageLevelIsNotSpecified ( ) throws java.lang.Exception { importProject ( ( "<groupId>test</groupId>" + ( ( ( ( ( ( ( ( ( ( ( "<artifactId>project</artifactId>" + "<version>1</version>" ) + "<build>" ) + " <plugins>" ) + " <plugin>" ) + " <groupId>org.apache.maven.plugins</groupId>" ) + " <artifactId>maven-compiler-plugin</artifactId>" ) + " <configuration>" ) + " </configuration>" ) + " </plugin>" ) + " </plugins>" ) + "</build>" ) ) ) ; assertModules ( "project" ) ; assertNull ( getLanguageLevelForModule ( ) ) ; }

Target:
public void testLanguageLevelWhenSourceLanguageLevelIsNotSpecified ( ) throws java.lang.Exception { importProject ( ( "<groupId>test</groupId>" + ( ( ( ( ( ( ( ( ( ( ( "<artifactId>project</artifactId>" + "<version>1</version>" ) + "<build>" ) + " <plugins>" ) + " <plugin>" ) + " <groupId>org.apache.maven.plugins</groupId>" ) + " <artifactId>maven-compiler-plugin</artifactId>" ) + " <configuration>" ) + " </configuration>" ) + " </plugin>" ) + " </plugins>" ) + "</build>" ) ) ) ; assertModules ( "project" ) ; assertEquals ( LanguageLevel.JDK_1_5 , getLanguageLevelForModule ( ) ) ; }
Source:
public void testAddAllAbsent ( ) { java.util.concurrent.CopyOnWriteArrayList full = jsr166.CopyOnWriteArrayListTest.populatedArray ( 3 ) ; java.util.Vector v = new java.util.Vector ( ) ; v.add ( three ) ; v.add ( four ) ; v.add ( one ) ; full.addAllAbsent ( v ) ; assertEquals ( 5 , full.size ( ) ) ; }

Target:
public void testAddAllAbsent ( ) { java.util.concurrent.CopyOnWriteArrayList full = jsr166.CopyOnWriteArrayListTest.populatedArray ( 3 ) ; assertEquals ( 2 , full.addAllAbsent ( java.util.Arrays.asList ( three , four , one ) ) ) ; assertEquals ( 5 , full.size ( ) ) ; assertEquals ( 0 , full.addAllAbsent ( java.util.Arrays.asList ( three , four , one ) ) ) ; assertEquals ( 5 , full.size ( ) ) ; }
Source:
public final java.nio.ByteBuffer asReadOnlyBuffer ( ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } return new java.nio.DirectByteBuffer ( memoryRef , this . markValue ( ) , this . position ( ) , this . limit ( ) , this . capacity ( ) , offset , true ) ; }

Target:
public final java.nio.ByteBuffer asReadOnlyBuffer ( ) { if ( memoryRef.isFreed ) { throw new java.lang.IllegalStateException ( "buffer has been freed" ) ; } return new java.nio.DirectByteBuffer ( memoryRef , this . markValue ( ) , this . position ( ) , this . limit ( ) , this . capacity ( ) , offset , true ) ; }
Source:
private void startFadeOut ( ) { mOverlay.animate ( ) . alpha ( 0 ) . setListener ( new android.animation.AnimatorListenerAdapter ( ) { @ java.lang.Override public void onAnimationEnd ( android.animation.Animator animation ) { deselect ( ) ; show ( false ) ; mOverlay.setAlpha ( 1 ) ; super . onAnimationEnd ( animation ) ; } } ) . setDuration ( com.android.dialer.callcomposer.camera.camerafocus.PieRenderer.PIE_SELECT_FADE_DURATION ) ; }

Target:
private void startFadeOut ( ) { overlay.animate ( ) . alpha ( 0 ) . setListener ( new android.animation.AnimatorListenerAdapter ( ) { @ java.lang.Override public void onAnimationEnd ( android.animation.Animator animation ) { deselect ( ) ; show ( false ) ; overlay.setAlpha ( 1 ) ; super . onAnimationEnd ( animation ) ; } } ) . setDuration ( com.android.dialer.callcomposer.camera.camerafocus.PieRenderer.PIE_SELECT_FADE_DURATION ) ; }
Source:
public ContactSource.Type getContactSource ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return ContactSource.Type.SOURCE_TYPE_DIRECTORY ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return ContactSource.Type.SOURCE_TYPE_EXTENDED ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : return getRefinedPeopleApiSource ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return ContactSource.Type.UNKNOWN_SOURCE_TYPE ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public ContactSource.Type getContactSource ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return ContactSource.Type.SOURCE_TYPE_DIRECTORY ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return ContactSource.Type.SOURCE_TYPE_EXTENDED ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : return getRefinedPeopleApiSource ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : return ContactSource.Type.SOURCE_TYPE_CNAP ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return ContactSource.Type.UNKNOWN_SOURCE_TYPE ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public static java.util.Locale getUpdatedLocaleForChromium ( java.util.Locale locale ) { java.lang.String languageForChrome = org.chromium.base.LocaleUtils.LANGUAGE_MAP_FOR_CHROMIUM.get ( locale.getLanguage ( ) ) ; if ( languageForChrome == null ) { return locale ; } return new java.util.Locale.Builder ( ) . setLocale ( locale ) . setLanguage ( languageForChrome ) . build ( ) ; }

Target:
public static java.lang.String getLocale ( java.util.Locale locale ) { java.lang.String language = locale.getLanguage ( ) ; java.lang.String country = locale.getCountry ( ) ; if ( "iw" . equals ( language ) ) { language = "he" ; } else if ( "in" . equals ( language ) ) { language = "id" ; } else if ( "tl" . equals ( language ) ) { language = "fil" ; } return country.isEmpty ( ) ? language : ( language + "-" ) + country ; }
Source:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , byte [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFrom" ) ; validateIsInt8 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , float [ ] data ) { validateIsFloat32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.FLOAT_32 , data.length ) ; }
Source:
public void writeTo ( com.google.protobuf.nano.CodedOutputByteBufferNano output ) throws java.io.IOException { int unknownFieldCount = ( ( unknownFieldData ) == null ) ? 0 : unknownFieldData.size ( ) ; for ( int i = 0 ; i < unknownFieldCount ; i ++ ) { com.google.protobuf.nano.UnknownFieldData unknownField = unknownFieldData.get ( i ) ; output.writeRawVarint32 ( unknownField.tag ) ; output.writeRawBytes ( unknownField.bytes ) ; } }

Target:
public final < T > T getExtension ( com.google.protobuf.nano.Extension < M , T > extension ) { if ( ( unknownFieldData ) == null ) { return null ; } com.google.protobuf.nano.FieldData field = unknownFieldData.get ( com.google.protobuf.nano.WireFormatNano.getTagFieldNumber ( extension.tag ) ) ; return field == null ? null : field.getValue ( extension ) ; }
Source:
public final int doFinal ( byte [ ] input , int inputOffset , int inputLen , byte [ ] output , int outputOffset ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } javax.crypto.Cipher.checkInputOffsetAndCount ( input.length , inputOffset , inputLen ) ; return spiImpl.engineDoFinal ( input , inputOffset , inputLen , output , outputOffset ) ; }

Target:
public final int doFinal ( byte [ ] input , int inputOffset , int inputLen , byte [ ] output , int outputOffset ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } javax.crypto.Cipher.checkInputOffsetAndCount ( input.length , inputOffset , inputLen ) ; return getSpi ( ) . engineDoFinal ( input , inputOffset , inputLen , output , outputOffset ) ; }
Source:
public void testAddNewIncomingCall_PhoneAccountNotEnabled ( ) throws java.lang.Exception { if ( ! ( mShouldTestTelecom ) ) { return ; } setupConnectionService ( null , android.telecom.cts.FLAG_REGISTER ) ; assertFalse ( mTelecomManager.getPhoneAccount ( android.telecom.cts.TEST_PHONE_ACCOUNT_HANDLE ) . isEnabled ( ) ) ; try { addAndVerifyNewIncomingCall ( createTestNumber ( ) , null ) ; fail ( ) ; } catch ( java.lang.SecurityException e ) { } assertFalse ( android.telecom.cts.CtsConnectionService.isServiceRegisteredToTelecom ( ) ) ; }

Target:
public void testAddNewIncomingCall_PhoneAccountNotEnabled ( ) throws java.lang.Exception { if ( ! ( mShouldTestTelecom ) ) { return ; } setupConnectionService ( null , android.telecom.cts.FLAG_REGISTER ) ; assertFalse ( mTelecomManager.getPhoneAccount ( TestUtils.TEST_PHONE_ACCOUNT_HANDLE ) . isEnabled ( ) ) ; try { addAndVerifyNewIncomingCall ( createTestNumber ( ) , null ) ; fail ( ) ; } catch ( java.lang.SecurityException e ) { } assertFalse ( android.telecom.cts.CtsConnectionService.isServiceRegisteredToTelecom ( ) ) ; }