auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test_ConstructorI ( ) throws java.io.IOException { java.net.MulticastSocket orig = new java.net.MulticastSocket ( ) ; int port = orig.getLocalPort ( ) ; orig.close ( ) ; java.net.MulticastSocket dup = null ; try { dup = new java.net.MulticastSocket ( port ) ; assertTrue ( dup.getReuseAddress ( ) ) ; } catch ( java.io.IOException e ) { fail ( ( "duplicate binding not allowed: " + e ) ) ; } if ( dup != null ) { dup.close ( ) ; } }

Target:
public void test_ConstructorI ( ) throws java.io.IOException { java.net.MulticastSocket orig = new java.net.MulticastSocket ( ) ; int port = orig.getLocalPort ( ) ; orig.close ( ) ; java.net.MulticastSocket dup = new java.net.MulticastSocket ( port ) ; assertTrue ( dup.getReuseAddress ( ) ) ; dup.close ( ) ; }
Source:
static void native_mapPoints ( int native_object , float [ ] dst , int dstIndex , float [ ] src , int srcIndex , int ptCount , boolean isPts ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return ; } if ( isPts ) { d.mapPoints ( dst , dstIndex , src , srcIndex , ptCount ) ; } else { d.mapVectors ( dst , dstIndex , src , srcIndex , ptCount ) ; } }

Target:
static void native_mapPoints ( long native_object , float [ ] dst , int dstIndex , float [ ] src , int srcIndex , int ptCount , boolean isPts ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return ; } if ( isPts ) { d.mapPoints ( dst , dstIndex , src , srcIndex , ptCount ) ; } else { d.mapVectors ( dst , dstIndex , src , srcIndex , ptCount ) ; } }
Source:
private com.android.jill.frontend.java.Variable getStackVariable ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , int stackIdx ) { int stackHeight = ( frame.getStackSize ( ) ) + stackIdx ; org.objectweb.asm.tree.analysis.BasicValue bv = frame.getStack ( stackHeight ) ; assert bv != ( org.objectweb.asm.tree.analysis.BasicValue.UNINITIALIZED_VALUE ) ; java.lang.String id = ( ( "-s_" + stackHeight ) + "_" ) + ( typeToUntypedDesc ( bv.getType ( ) ) ) ; com.android.jill.frontend.java.Variable variable = getVariable ( id , id , typeToUntyped ( bv.getType ( ) ) , null ) ; variable.setSynthetic ( ) ; return variable ; }

Target:
private com.android.jill.frontend.java.Variable getStackVariable ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , int stackIdx ) { int stackHeight = ( frame.getStackSize ( ) ) + stackIdx ; org.objectweb.asm.tree.analysis.BasicValue bv = frame.getStack ( stackHeight ) ; assert bv != ( org.objectweb.asm.tree.analysis.BasicValue.UNINITIALIZED_VALUE ) ; java.lang.String id = ( ( "-s_" + stackHeight ) + "_" ) + ( typeToUntypedDesc ( bv.getType ( ) ) ) ; com.android.jill.frontend.java.Variable variable = getVariable ( id , id , typeToUntyped ( bv.getType ( ) ) , null ) ; return variable ; }
Source:
private void handleRadioProxyExceptionForRR ( com.android.internal.telephony.RILRequest rr , java.lang.String caller , java.lang.Exception e ) { riljLoge ( ( ( caller + ": " ) + e ) ) ; resetProxyAndRequestList ( ) ; mRilHandler.sendMessageDelayed ( mRilHandler.obtainMessage ( com.android.internal.telephony.RIL.EVENT_RADIO_PROXY_DEAD , mRadioProxyCookie.incrementAndGet ( ) ) , com.android.internal.telephony.RIL.IRADIO_GET_SERVICE_DELAY_MILLIS ) ; }

Target:
private void handleRadioProxyExceptionForRR ( com.android.internal.telephony.RILRequest rr , java.lang.String caller , java.lang.Exception e ) { riljLoge ( ( ( caller + ": " ) + e ) ) ; resetProxyAndRequestList ( ) ; }
Source:
private static void assertNotificationType ( int expected , java.lang.String actualTag ) { assertEquals ( ( ( "notification type mismatch for '" + actualTag ) + "'" ) , java.lang.Integer.toString ( expected ) , actualTag.substring ( ( ( actualTag.lastIndexOf ( ':' ) ) + 1 ) ) ) ; }

Target:
private static void assertNotificationType ( int expected , java.lang.String actualTag ) { org.junit.Assert.assertEquals ( ( ( "notification type mismatch for '" + actualTag ) + "'" ) , java.lang.Integer.toString ( expected ) , actualTag.substring ( ( ( actualTag.lastIndexOf ( ':' ) ) + 1 ) ) ) ; }
Source:
public void testWriteAndReadBlob ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceMerger merger = com.android.ide.common.res2.ResourceMergerTest.getResourceMerger ( ) ; java.io.File folder = com.google.common.io.Files.createTempDir ( ) ; merger.writeBlobTo ( folder , new com.android.ide.common.res2.MergedResourceWriter ( com.google.common.io.Files.createTempDir ( ) , mPngCruncher , false , false ) ) ; com.android.ide.common.res2.ResourceMerger loadedMerger = new com.android.ide.common.res2.ResourceMerger ( ) ; assertTrue ( loadedMerger.loadFromBlob ( folder , true ) ) ; }

Target:
public void testWriteAndReadBlob ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceMerger merger = com.android.ide.common.res2.ResourceMergerTest.getResourceMerger ( false ) ; java.io.File folder = com.google.common.io.Files.createTempDir ( ) ; merger.writeBlobTo ( folder , new com.android.ide.common.res2.MergedResourceWriter ( com.google.common.io.Files.createTempDir ( ) , mPngCruncher , false , false ) ) ; com.android.ide.common.res2.ResourceMerger loadedMerger = new com.android.ide.common.res2.ResourceMerger ( ) ; assertTrue ( loadedMerger.loadFromBlob ( folder , true ) ) ; }
Source:
public void testLogCallDirectionIncoming ( ) { org.mockito.Mockito.when ( mMockPhoneAccountRegistrar.getPhoneAccountUnchecked ( org.mockito.Matchers.any ( android.telecom.PhoneAccountHandle.class ) ) ) . thenReturn ( makeFakePhoneAccount ( mDefaultAccountHandle , com.android.server.telecom.tests.CallLogManagerTest.CURRENT_USER_ID ) ) ; com.android.server.telecom.Call fakeIncomingCall = makeFakeCall ( DisconnectCause.OTHER , false , true , 1L , 1000L , com.android.server.telecom.tests.CallLogManagerTest.TEL_PHONEHANDLE , mDefaultAccountHandle , com.android.server.telecom.tests.CallLogManagerTest.NO_VIDEO_STATE , com.android.server.telecom.tests.CallLogManagerTest.POST_DIAL_STRING , com.android.server.telecom.tests.CallLogManagerTest.VIA_NUMBER_STRING , null ) ; mCallLogManager.onCallStateChanged ( fakeIncomingCall , CallState.ACTIVE , CallState.DISCONNECTED ) ; android.content.ContentValues insertedValues = verifyInsertionWithCapture ( com.android.server.telecom.tests.CallLogManagerTest.CURRENT_USER_ID ) ; assertEquals ( insertedValues.getAsInteger ( CallLog.Calls.TYPE ) , java.lang.Integer.valueOf ( CallLog.Calls.INCOMING_TYPE ) ) ; }

Target:
public void testLogCallDirectionIncoming ( ) { org.mockito.Mockito.when ( mMockPhoneAccountRegistrar.getPhoneAccountUnchecked ( org.mockito.Matchers.any ( android.telecom.PhoneAccountHandle.class ) ) ) . thenReturn ( makeFakePhoneAccount ( mDefaultAccountHandle , com.android.server.telecom.tests.CallLogManagerTest.CURRENT_USER_ID ) ) ; com.android.server.telecom.Call fakeIncomingCall = makeFakeCall ( DisconnectCause.OTHER , false , true , 1L , 1000L , com.android.server.telecom.tests.CallLogManagerTest.TEL_PHONEHANDLE , mDefaultAccountHandle , com.android.server.telecom.tests.CallLogManagerTest.NO_VIDEO_STATE , com.android.server.telecom.tests.CallLogManagerTest.POST_DIAL_STRING , com.android.server.telecom.tests.CallLogManagerTest.VIA_NUMBER_STRING , null ) ; mCallLogManager.onCallStateChanged ( fakeIncomingCall , CallState.ACTIVE , CallState.DISCONNECTED ) ; android.content.ContentValues insertedValues = verifyInsertionWithCapture ( com.android.server.telecom.tests.CallLogManagerTest.CURRENT_USER_ID ) ; org.junit.Assert.assertEquals ( insertedValues.getAsInteger ( CallLog.Calls.TYPE ) , java.lang.Integer.valueOf ( CallLog.Calls.INCOMING_TYPE ) ) ; }
Source:
public void exit ( ) { if ( com.android.bluetooth.hearingaid.HearingAidStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hearingaid.HearingAidStateMachine.TAG , ( ( ( "Exit Disconnected(" + ( mDevice ) ) + "): " ) + ( com.android.bluetooth.hearingaid.HearingAidStateMachine.messageWhatToString ( getCurrentMessage ( ) . what ) ) ) ) ; } mLastConnectionState = android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; }

Target:
public void exit ( ) { log ( ( ( ( "Exit Disconnected(" + ( mDevice ) ) + "): " ) + ( com.android.bluetooth.hearingaid.HearingAidStateMachine.messageWhatToString ( getCurrentMessage ( ) . what ) ) ) ) ; mLastConnectionState = android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; }
Source:
public byte [ ] toDex ( java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { boolean annotate = humanOut != null ; com.android.dx.util.ByteArrayAnnotatedOutput result = toDex0 ( annotate , verbose ) ; if ( annotate ) { result.writeAnnotationsTo ( humanOut ) ; } return result.getArray ( ) ; }

Target:
public byte [ ] toDex ( java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { boolean annotate = humanOut != null ; com.android.dx.util.ByteArrayAnnotatedOutput result = toDex0 ( annotate , verbose , null ) ; if ( annotate ) { result.writeAnnotationsTo ( humanOut ) ; } return result.getArray ( ) ; }
Source:
public com.android.build.gradle.internal.test.report.ClassTestResults addClass ( java.lang.String className , java.lang.String device , java.lang.String project , java.lang.String flavor ) { java.lang.String key = ( ( ( ( ( device + "/" ) + project ) + "/" ) + flavor ) + "/" ) + className ; com.android.build.gradle.internal.test.report.ClassTestResults classResults = classes.get ( key ) ; if ( classResults == null ) { classResults = new com.android.build.gradle.internal.test.report.ClassTestResults ( className , this , device , project , flavor ) ; classes.put ( key , classResults ) ; } return classResults ; }

Target:
public com.android.build.gradle.internal.test.report.ClassTestResults addClass ( java.lang.String className ) { com.android.build.gradle.internal.test.report.ClassTestResults classResults = classes.get ( className ) ; if ( classResults == null ) { classResults = new com.android.build.gradle.internal.test.report.ClassTestResults ( className , this ) ; classes.put ( className , classResults ) ; } return classResults ; }
Source:
public void run ( ) { try { java.io.File output = java.io.File.createTempFile ( "predex" , ".jar" ) ; output.deleteOnExit ( ) ; outputFiles [ ii ] = output ; com.android.builder.internal.compiler.PreDexCache.getCache ( ) . preDexLibrary ( input , output , dexOptions , mBuildToolInfo , false , clr ) ; } catch ( java.lang.Exception ignored ) { } }

Target:
public void run ( ) { try { java.io.File output = java.io.File.createTempFile ( "predex" , ".jar" ) ; output.deleteOnExit ( ) ; outputFiles [ ii ] = output ; com.android.builder.internal.compiler.PreDexCache.getCache ( ) . preDexLibrary ( input , output , false , dexOptions , mBuildToolInfo , false , clr ) ; } catch ( java.lang.Exception ignored ) { } }
Source:
public void testGetPhoneAccountsForPackage ( ) throws android.os.RemoteException { java.util.List < android.telecom.PhoneAccountHandle > phoneAccountHandleList = new java.util.ArrayList < android.telecom.PhoneAccountHandle > ( ) { { add ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 ) ; add ( com.android.server.telecom.tests.TelecomServiceImplTest.SIP_PA_HANDLE_17 ) ; } } ; org.mockito.Mockito.when ( mFakePhoneAccountRegistrar.getPhoneAccountsForPackage ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.any ( android.os.UserHandle.class ) ) ) . thenReturn ( phoneAccountHandleList ) ; makeAccountsVisibleToAllUsers ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 , com.android.server.telecom.tests.TelecomServiceImplTest.SIP_PA_HANDLE_17 ) ; assertEquals ( phoneAccountHandleList , mTSIBinder.getPhoneAccountsForPackage ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16.getComponentName ( ) . getPackageName ( ) ) ) ; }

Target:
public void testGetPhoneAccountsForPackage ( ) throws android.os.RemoteException { java.util.List < android.telecom.PhoneAccountHandle > phoneAccountHandleList = new java.util.ArrayList < android.telecom.PhoneAccountHandle > ( ) { { add ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 ) ; add ( com.android.server.telecom.tests.TelecomServiceImplTest.SIP_PA_HANDLE_17 ) ; } } ; org.mockito.Mockito.when ( mFakePhoneAccountRegistrar.getPhoneAccountsForPackage ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.any ( android.os.UserHandle.class ) ) ) . thenReturn ( phoneAccountHandleList ) ; makeAccountsVisibleToAllUsers ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16 , com.android.server.telecom.tests.TelecomServiceImplTest.SIP_PA_HANDLE_17 ) ; org.junit.Assert.assertEquals ( phoneAccountHandleList , mTSIBinder.getPhoneAccountsForPackage ( com.android.server.telecom.tests.TelecomServiceImplTest.TEL_PA_HANDLE_16.getComponentName ( ) . getPackageName ( ) ) ) ; }
Source:
public void testGetCoreInterfaceRewritingTarget_staticInterfaceMethod ( ) 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 ( "" ) , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( "java/util/Comparator" ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKESTATIC , "java/util/Comparator" , "reverseOrder" , "()Ljava/util/Comparator;" , true ) ) . isEqualTo ( java.util.Comparator.class ) ; }

Target:
public void testGetCoreInterfaceRewritingTarget_staticInterfaceMethod ( ) 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 ( "" ) , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) , null , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( "java/util/Comparator" ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKESTATIC , "java/util/Comparator" , "reverseOrder" , "()Ljava/util/Comparator;" , true ) ) . isEqualTo ( java.util.Comparator.class ) ; }
Source:
public static java.lang.Class $noinline$inlineCache3 ( Main m , boolean isSecondInvocation ) { if ( ! ( Main.isInInterpreter ( "$noinline$inlineCache3" ) ) ) { return SubMain.class ; } Main.ensureHasProfilingInfo ( "$noinline$inlineCache3" ) ; if ( isSecondInvocation ) { Main.ensureHasOsrCode ( "$noinline$inlineCache3" ) ; } Main other = m.inlineCache3 ( ) ; if ( isSecondInvocation ) { while ( ! ( Main.isInOsrCode ( "$noinline$inlineCache3" ) ) ) { } } return other == null ? null : other.returnClass ( ) ; }

Target:
public static java.lang.Class $noinline$inlineCache3 ( Main m , boolean isSecondInvocation ) { if ( ! ( Main.isInInterpreter ( "$noinline$inlineCache3" ) ) ) { return null ; } Main.ensureHasProfilingInfo ( "$noinline$inlineCache3" ) ; if ( isSecondInvocation ) { Main.ensureHasOsrCode ( "$noinline$inlineCache3" ) ; } Main other = m.inlineCache3 ( ) ; if ( isSecondInvocation ) { while ( ! ( Main.isInOsrCode ( "$noinline$inlineCache3" ) ) ) { } } return other == null ? null : other.returnClass ( ) ; }
Source:
public void uncaughtException ( java.lang.Thread t , java.lang.Throwable e ) { com.android.ddmlib.Log.e ( "ddms" , "shutting down due to uncaught exception" ) ; java.io.StringWriter sw = new java.io.StringWriter ( ) ; java.io.PrintWriter pw = new java.io.PrintWriter ( sw ) ; e.printStackTrace ( pw ) ; com.android.ddmlib.Log.e ( "ddms" , sw.toString ( ) ) ; java.lang.System.exit ( 1 ) ; }

Target:
public void uncaughtException ( java.lang.Thread t , java.lang.Throwable e ) { com.android.ddmlib.Log.e ( "ddms" , "shutting down due to uncaught exception" ) ; com.android.ddmlib.Log.e ( "ddms" , e ) ; java.lang.System.exit ( 1 ) ; }
Source:
public void test_useLocale_LLocale ( ) { s = new java.util.Scanner ( "test" ) ; try { s.useLocale ( null ) ; fail ( "Should throw NullPointerException" ) ; } catch ( java.lang.NullPointerException e ) { } s.useLocale ( new java.util.Locale ( "test" , "test" ) ) ; assertEquals ( new java.util.Locale ( "test" , "test" ) , s.locale ( ) ) ; }

Target:
public void test_useLocale_LLocale ( ) { s = new java.util.Scanner ( "test" ) ; try { s.useLocale ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } s.useLocale ( new java.util.Locale ( "test" , "test" ) ) ; assertEquals ( new java.util.Locale ( "test" , "test" ) , s.locale ( ) ) ; }
Source:
public java.lang.Object clone ( ) { try { java.security.cert.X509CRLSelector copy = ( ( java.security.cert.X509CRLSelector ) ( super . clone ( ) ) ) ; if ( ( issuerNames ) != null ) { copy.issuerNames = new java.util.HashSet < java.lang.Object > ( issuerNames ) ; copy.issuerX500Principals = new java.util.HashSet < javax.security.auth.x500.X500Principal > ( issuerX500Principals ) ; } return copy ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( e.toString ( ) ) ; } }

Target:
public java.lang.Object clone ( ) { try { java.security.cert.X509CRLSelector copy = ( ( java.security.cert.X509CRLSelector ) ( super . clone ( ) ) ) ; if ( ( issuerNames ) != null ) { copy.issuerNames = new java.util.HashSet < java.lang.Object > ( issuerNames ) ; copy.issuerX500Principals = new java.util.HashSet < javax.security.auth.x500.X500Principal > ( issuerX500Principals ) ; } return copy ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( e.toString ( ) , e ) ; } }
Source:
public static void init ( android.content.Context context ) { if ( com.android.mms.util.RateController.LOCAL_LOGV ) { android.util.Log.v ( com.android.mms.util.RateController.TAG , "RateController.init()" ) ; } if ( ( com.android.mms.util.RateController.sInstance ) != null ) { android.util.Log.w ( com.android.mms.util.RateController.TAG , "Already initialized." ) ; } com.android.mms.util.RateController.sInstance = new com.android.mms.util.RateController ( context ) ; }

Target:
public static void init ( android.content.Context context ) { if ( com.android.mms.util.RateController.LOCAL_LOGV ) { android.util.Log.v ( com.android.mms.util.RateController.TAG , "RateController.init()" ) ; } if ( ( com.android.mms.util.RateController.sInstance ) != null ) { android.util.Log.w ( com.android.mms.util.RateController.TAG , "Already initialized." ) ; return ; } com.android.mms.util.RateController.sInstance = new com.android.mms.util.RateController ( context ) ; }
Source:
public < T extends com.android.jack.ir.ast.JNode > T getParent ( @ javax.annotation.Nonnull java.lang.Class < T > classToSearch ) { com.android.jack.ir.ast.JNode result = this ; while ( ! ( classToSearch.isAssignableFrom ( result.getClass ( ) ) ) ) { result = result.getParent ( ) ; if ( result == null ) { throw new java.util.NoSuchElementException ( ) ; } } return ( ( T ) ( result ) ) ; }

Target:
public < T extends com.android.jack.ir.ast.JNode > T getParent ( @ javax.annotation.Nonnull java.lang.Class < T > classToSearch ) { com.android.jack.ir.ast.JNode result = getParent ( ) ; while ( ( result != null ) && ( ! ( classToSearch.isAssignableFrom ( result.getClass ( ) ) ) ) ) { result = result.getParent ( ) ; } if ( result == null ) { throw new java.util.NoSuchElementException ( ) ; } return ( ( T ) ( result ) ) ; }
Source:
public boolean setName ( java.lang.String name ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "setName() - Not allowed for non-active user" ) ; return false ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return false ; return service.setName ( name ) ; }

Target:
public boolean setName ( java.lang.String name ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "setName() - Not allowed for non-active user" ) ; return false ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) { return false ; } return service.setName ( name ) ; }
Source:
public static java.util.SortedSet < java.lang.String > getStoredUsers ( ) { java.util.prefs.Preferences prefs = com.google.gct.login.GoogleLoginPrefs.getPrefs ( ) ; java.lang.String allUsersString = prefs.get ( com.google.gct.login.GoogleLoginPrefs.USERS , "" ) ; java.util.SortedSet < java.lang.String > allUsers = new java.util.TreeSet < java.lang.String > ( ) ; if ( allUsersString.isEmpty ( ) ) { return allUsers ; } com.google.common.base.Splitter splitter = com.google.common.base.Splitter.on ( com.google.gct.login.GoogleLoginPrefs.DELIMITER ) . omitEmptyStrings ( ) ; for ( java.lang.String aUser : splitter.split ( allUsersString ) ) { allUsers.add ( aUser ) ; } return allUsers ; }

Target:
public static java.util.List < java.lang.String > getStoredUsers ( ) { java.util.prefs.Preferences prefs = com.google.gct.login.GoogleLoginPrefs.getPrefs ( ) ; java.lang.String allUsersString = prefs.get ( com.google.gct.login.GoogleLoginPrefs.USERS , "" ) ; java.util.List < java.lang.String > allUsers = new java.util.ArrayList < java.lang.String > ( ) ; if ( allUsersString.isEmpty ( ) ) { return allUsers ; } com.google.common.base.Splitter splitter = com.google.common.base.Splitter.on ( com.google.gct.login.GoogleLoginPrefs.DELIMITER ) . omitEmptyStrings ( ) ; for ( java.lang.String aUser : splitter.split ( allUsersString ) ) { allUsers.add ( aUser ) ; } return allUsers ; }
Source:
public void setAudioState ( android.telecom.CallAudioState audioState ) { com.android.incallui.speakerbuttonlogic.SpeakerButtonInfo info = new com.android.incallui.speakerbuttonlogic.SpeakerButtonInfo ( audioState , com.android.incallui.speakerbuttonlogic.SpeakerButtonInfo.IconSize.SIZE_36_DP ) ; checkable = info.checkable ; isChecked = info.isChecked ; label = info.label ; icon = info.icon ; @ android.support.annotation.StringRes int contentDescriptionResId = info.contentDescription ; contentDescription = delegate.getContext ( ) . getText ( contentDescriptionResId ) ; checkedContentDescription = android.text.TextUtils.concat ( contentDescription , delegate.getContext ( ) . getText ( R.string.incall_talkback_speaker_on ) ) ; uncheckedContentDescription = android.text.TextUtils.concat ( contentDescription , delegate.getContext ( ) . getText ( R.string.incall_talkback_speaker_off ) ) ; setButton ( button ) ; }

Target:
public void setAudioState ( android.telecom.CallAudioState audioState ) { com.android.incallui.speakerbuttonlogic.SpeakerButtonInfo info = new com.android.incallui.speakerbuttonlogic.SpeakerButtonInfo ( audioState ) ; checkable = info.checkable ; isChecked = info.isChecked ; label = info.label ; icon = info.icon ; @ android.support.annotation.StringRes int contentDescriptionResId = info.contentDescription ; contentDescription = delegate.getContext ( ) . getText ( contentDescriptionResId ) ; checkedContentDescription = android.text.TextUtils.concat ( contentDescription , delegate.getContext ( ) . getText ( R.string.incall_talkback_speaker_on ) ) ; uncheckedContentDescription = android.text.TextUtils.concat ( contentDescription , delegate.getContext ( ) . getText ( R.string.incall_talkback_speaker_off ) ) ; setButton ( button ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ! ( obj instanceof com.android.ide.common.blame.SourceFile ) ) { return false ; } com.android.ide.common.blame.SourceFile other = ( ( com.android.ide.common.blame.SourceFile ) ( obj ) ) ; return ( com.google.common.base.Objects.equal ( mDescription , other.mDescription ) ) && ( com.google.common.base.Objects.equal ( mSourceFile , other.mSourceFile ) ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) { return true ; } if ( ! ( obj instanceof com.android.ide.common.blame.SourceFile ) ) { return false ; } com.android.ide.common.blame.SourceFile other = ( ( com.android.ide.common.blame.SourceFile ) ( obj ) ) ; return ( com.google.common.base.Objects.equal ( mDescription , other.mDescription ) ) && ( com.google.common.base.Objects.equal ( mSourceFile , other.mSourceFile ) ) ; }
Source:
private void fireEvent ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.LintListener.EventType type , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Context context ) { if ( ( mListeners ) != null ) { for ( int i = 0 , n = mListeners.size ( ) ; i < n ; i ++ ) { com.android.tools.lint.client.api.LintListener listener = mListeners.get ( i ) ; listener.update ( this , type , context ) ; } } }

Target:
private void fireEvent ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.LintListener.EventType type , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Context context ) { if ( ( mListeners ) != null ) { for ( com.android.tools.lint.client.api.LintListener listener : mListeners ) { listener.update ( this , type , context ) ; } } }
Source:
public static java.util.List < android.content.PeriodicSync > getPeriodicSyncs ( android.accounts.Account account , java.lang.String authority ) { try { return android.content.ContentResolver.getContentService ( ) . getPeriodicSyncs ( account , authority ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( "the ContentService should always be reachable" , e ) ; } }

Target:
public static java.util.List < android.content.PeriodicSync > getPeriodicSyncs ( android.accounts.Account account , java.lang.String authority ) { try { return android.content.ContentResolver.getContentService ( ) . getPeriodicSyncs ( account , authority , null ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( "the ContentService should always be reachable" , e ) ; } }
Source:
public void run ( ) { com.intellij.openapi.module.Module module = com.intellij.openapi.module.ModuleManager.getInstance ( project ) . findModuleByName ( moduleName ) ; com.google.gct.idea.appengine.wizard.Parameter appEngineVersionParam = template.getMetadata ( ) . getParameter ( "appEngineVersion" ) ; java.lang.String appEngineVersion = ( appEngineVersionParam == null ) ? "unknown" : appEngineVersionParam.initial ; com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.createRunConfiguration ( project , module , moduleRoot , appEngineVersion ) ; com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.addAppEngineGradleFacet ( ) ; }

Target:
public void run ( ) { com.intellij.openapi.module.Module module = com.intellij.openapi.module.ModuleManager.getInstance ( project ) . findModuleByName ( moduleName ) ; com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.createRunConfiguration ( project , module ) ; }
Source:
private boolean checkForClass ( @ com.android.annotations.NonNull java.lang.String expectedClassName ) throws com.android.ide.common.process.ProcessException , java.io.IOException { java.io.InputStream stream = getInputStream ( "classes.jar" ) ; java.util.zip.ZipInputStream zis = new java.util.zip.ZipInputStream ( stream ) ; try { java.util.zip.ZipEntry zipEntry ; while ( ( zipEntry = zis.getNextEntry ( ) ) != null ) { if ( expectedClassName.equals ( zipEntry.getName ( ) ) ) { return true ; } } return false ; } finally { zis.close ( ) ; } }

Target:
protected boolean checkForClass ( @ com.android.annotations.NonNull java.lang.String expectedClassName ) throws com.android.ide.common.process.ProcessException , java.io.IOException { java.io.InputStream stream = getInputStream ( "classes.jar" ) ; java.util.zip.ZipInputStream zis = new java.util.zip.ZipInputStream ( stream ) ; try { java.util.zip.ZipEntry zipEntry ; while ( ( zipEntry = zis.getNextEntry ( ) ) != null ) { if ( expectedClassName.equals ( zipEntry.getName ( ) ) ) { return true ; } } return false ; } finally { zis.close ( ) ; } }
Source:
public void testConfigurationUpdatesWhenResizedFromDockedStack ( ) throws java.lang.Exception { if ( ( ! ( supportsSplitScreenMultiWindow ( ) ) ) || ( ! ( supportsMultiWindowMode ( ) ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }

Target:
public void testConfigurationUpdatesWhenResizedFromDockedStack ( ) throws java.lang.Exception { if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }
Source:
private static void preloadOpenGL ( ) { java.lang.String driverPackageName = android.os.SystemProperties.get ( com.android.internal.os.ZygoteInit.PROPERTY_GFX_DRIVER ) ; if ( ( ( ! ( android.os.SystemProperties.getBoolean ( com.android.internal.os.ZygoteInit.PROPERTY_DISABLE_OPENGL_PRELOADING , false ) ) ) || ( driverPackageName == null ) ) || ( driverPackageName.isEmpty ( ) ) ) { android.opengl.EGL14.eglGetDisplay ( EGL14.EGL_DEFAULT_DISPLAY ) ; } }

Target:
private static void preloadOpenGL ( ) { java.lang.String driverPackageName = android.os.SystemProperties.get ( com.android.internal.os.ZygoteInit.PROPERTY_GFX_DRIVER ) ; if ( ( ! ( android.os.SystemProperties.getBoolean ( com.android.internal.os.ZygoteInit.PROPERTY_DISABLE_OPENGL_PRELOADING , false ) ) ) && ( ( driverPackageName == null ) || ( driverPackageName.isEmpty ( ) ) ) ) { android.opengl.EGL14.eglGetDisplay ( EGL14.EGL_DEFAULT_DISPLAY ) ; } }
Source:
public void run ( ) { try { java.io.File output = java.io.File.createTempFile ( "predex" , ".jar" ) ; output.deleteOnExit ( ) ; outputFiles [ ii ] = output ; com.android.builder.internal.compiler.PreDexCache.getCache ( ) . preDexLibrary ( input , output , dexOptions , mBuildToolInfo , false , ( ii == 0 ? clrWithError : clr ) ) ; } catch ( java.lang.Exception ignored ) { } threadDoneCount.incrementAndGet ( ) ; }

Target:
public void run ( ) { try { java.io.File output = java.io.File.createTempFile ( "predex" , ".jar" ) ; output.deleteOnExit ( ) ; outputFiles [ ii ] = output ; com.android.builder.internal.compiler.PreDexCache.getCache ( ) . preDexLibrary ( input , output , false , dexOptions , mBuildToolInfo , false , ( ii == 0 ? clrWithError : clr ) ) ; } catch ( java.lang.Exception ignored ) { } threadDoneCount.incrementAndGet ( ) ; }
Source:
protected void press ( java.lang.String keyName , com.android.monkeyrunner.adb.TouchPressType type ) { try { switch ( type ) { case DOWN_AND_UP : manager.press ( keyName ) ; break ; case DOWN : manager.keyDown ( keyName ) ; break ; case UP : manager.keyUp ( keyName ) ; break ; } } catch ( java.io.IOException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , ( ( ( "Error sending press event: " + keyName ) + " " ) + type ) , e ) ; } }

Target:
public void press ( java.lang.String keyName , com.android.monkeyrunner.adb.TouchPressType type ) { try { switch ( type ) { case DOWN_AND_UP : manager.press ( keyName ) ; break ; case DOWN : manager.keyDown ( keyName ) ; break ; case UP : manager.keyUp ( keyName ) ; break ; } } catch ( java.io.IOException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , ( ( ( "Error sending press event: " + keyName ) + " " ) + type ) , e ) ; } }
Source:
public org.bouncycastle.math.ec.SimpleBigDecimal adjustScale ( int newScale ) { if ( newScale < 0 ) { throw new java.lang.IllegalArgumentException ( "scale may not be negative" ) ; } if ( newScale == ( scale ) ) { return new org.bouncycastle.math.ec.SimpleBigDecimal ( this ) ; } return new org.bouncycastle.math.ec.SimpleBigDecimal ( bigInt.shiftLeft ( ( newScale - ( scale ) ) ) , newScale ) ; }

Target:
public org.bouncycastle.math.ec.SimpleBigDecimal adjustScale ( int newScale ) { if ( newScale < 0 ) { throw new java.lang.IllegalArgumentException ( "scale may not be negative" ) ; } if ( newScale == ( scale ) ) { return this ; } return new org.bouncycastle.math.ec.SimpleBigDecimal ( bigInt.shiftLeft ( ( newScale - ( scale ) ) ) , newScale ) ; }
Source:
public static void e ( final java.lang.String msg , java.lang.Exception e ) { com.android.cts.Log.log ( ( ( com.android.cts.Log.ERROR_PREFIX ) + msg ) ) ; if ( ! ( HostConfig.DEBUG ) ) { com.android.cts.CUIOutputStream.println ( ( ( com.android.cts.Log.ERROR_PREFIX ) + msg ) ) ; if ( e != null ) { com.android.cts.CUIOutputStream.println ( e.getMessage ( ) ) ; } return ; } com.android.cts.Log.mOut.println ( ( ( com.android.cts.Log.ERROR_PREFIX ) + msg ) ) ; if ( e != null ) { e.printStackTrace ( ) ; } }

Target:
public static void e ( final java.lang.String msg , java.lang.Exception e ) { com.android.cts.Log.log ( ( ( com.android.cts.Log.ERROR_PREFIX ) + msg ) ) ; if ( ! ( HostConfig.DEBUG ) ) { com.android.cts.CUIOutputStream.println ( ( ( com.android.cts.Log.ERROR_PREFIX ) + msg ) ) ; if ( e != null ) { com.android.cts.CUIOutputStream.println ( e.toString ( ) ) ; } return ; } com.android.cts.Log.mOut.println ( ( ( com.android.cts.Log.ERROR_PREFIX ) + msg ) ) ; if ( e != null ) { e.printStackTrace ( ) ; } }
Source:
public void verify ( java.security.PublicKey key ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , java.security.SignatureException , java.security.cert.CertificateException { if ( key instanceof org.conscrypt.OpenSSLKeyHolder ) { org.conscrypt.OpenSSLKey pkey = ( ( org.conscrypt.OpenSSLKeyHolder ) ( key ) ) . getOpenSSLKey ( ) ; verifyOpenSSL ( pkey ) ; return ; } verifyInternal ( key , null ) ; }

Target:
public void verify ( java.security.PublicKey key ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException , java.security.SignatureException , java.security.cert.CertificateException { if ( key instanceof org.conscrypt.OpenSSLKeyHolder ) { org.conscrypt.OpenSSLKey pkey = ( ( org.conscrypt.OpenSSLKeyHolder ) ( key ) ) . getOpenSSLKey ( ) ; verifyOpenSSL ( pkey ) ; return ; } verifyInternal ( key , ( ( java.lang.String ) ( null ) ) ) ; }
Source:
public void compareLibCoreStructure ( ) throws java.lang.Exception { com.android.jack.Options options = new com.android.jack.Options ( ) ; options.addProperty ( Options.JAVA_SOURCE_VERSION.getName ( ) , JavaVersion.JAVA_7.toString ( ) ) ; com.android.jack.TestTools.checkStructure ( options , null , null , null , null , com.android.jack.compile.androidtree.core.CoreCompilationTest.SOURCELIST , false , false , 0.1F , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }

Target:
public void compareLibCoreStructure ( ) throws java.lang.Exception { com.android.jack.Options options = new com.android.jack.Options ( ) ; options.addProperty ( Options.JAVA_SOURCE_VERSION.getName ( ) , JavaVersion.JAVA_7.toString ( ) ) ; com.android.jack.TestTools.checkStructure ( options , null , null , com.android.jack.compile.androidtree.core.CoreCompilationTest.SOURCELIST , false , false , 0.1F , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }
Source:
private com.android.ide.common.resources.ResourceFile findResourceFile ( @ com.android.annotations.NonNull java.io.File file ) { java.lang.String parentName = file.getParentFile ( ) . getName ( ) ; com.android.io.IAbstractFolder folder = getResFolder ( ) . getFolder ( parentName ) ; if ( folder != null ) { com.android.ide.common.resources.ResourceFolder resourceFolder = getResourceFolder ( folder ) ; if ( resourceFolder != null ) { com.android.ide.common.resources.ResourceFile resourceFile = resourceFolder.getFile ( file.getName ( ) ) ; if ( resourceFile != null ) { return resourceFile ; } } } return null ; }

Target:
protected com.android.ide.common.resources.ResourceFile findResourceFile ( @ com.android.annotations.NonNull java.io.File file ) { java.lang.String parentName = file.getParentFile ( ) . getName ( ) ; com.android.io.IAbstractFolder folder = getResFolder ( ) . getFolder ( parentName ) ; if ( folder != null ) { com.android.ide.common.resources.ResourceFolder resourceFolder = getResourceFolder ( folder ) ; if ( resourceFolder != null ) { com.android.ide.common.resources.ResourceFile resourceFile = resourceFolder.getFile ( file.getName ( ) ) ; if ( resourceFile != null ) { return resourceFile ; } } } return null ; }
Source:
public static void setEnabled ( boolean enabled ) { if ( enabled ) org.chromium.base.EarlyTraceEvent.disable ( ) ; if ( ( org.chromium.base.TraceEvent.sEnabled ) != enabled ) { org.chromium.base.TraceEvent.sEnabled = enabled ; if ( org.chromium.base.TraceEvent.sATraceEnabled ) return ; org.chromium.base.ThreadUtils.getUiThreadLooper ( ) . setMessageLogging ( ( enabled ? org.chromium.base.TraceEvent.LooperMonitorHolder.sInstance : null ) ) ; } }

Target:
public static void setEnabled ( boolean enabled ) { org.chromium.base.TraceEvent.sEnabled = enabled ; if ( org.chromium.base.TraceEvent.sATraceEnabled ) return ; org.chromium.base.ThreadUtils.getUiThreadLooper ( ) . setMessageLogging ( ( enabled ? org.chromium.base.TraceEvent.LooperMonitorHolder.sInstance : null ) ) ; }
Source:
public void put ( com.ibm.icu.impl.UResource.Key key , com.ibm.icu.impl.UResource.Value value ) { if ( key.contentEquals ( "dnam" ) ) { } else if ( key.contentEquals ( "per" ) ) { cacheData.setPerUnitFormatterIfAbsent ( unit , width , value ) ; } else { if ( ! ( hasPatterns ) ) { builder.add ( key.toString ( ) , value.getString ( ) ) ; } } }

Target:
public void put ( com.ibm.icu.impl.UResource.Key key , com.ibm.icu.impl.UResource.Value value ) { if ( key.contentEquals ( "dnam" ) ) { } else if ( key.contentEquals ( "per" ) ) { cacheData.setPerUnitFormatterIfAbsent ( unit , width , value ) ; } else { if ( ! ( hasPatterns ) ) { builder.add ( key , value.getString ( ) ) ; } } }
Source:
public static void loop ( ) { Main m = new Main ( ) ; for ( int i = 0 ; i < 5000 ; i ++ ) { Main.$noinline$doCall ( "foo" ) ; Main.$noinline$doCall ( m ) ; if ( ( Main.numberOfDeoptimizations ( ) ) != 0 ) { throw new java.lang.Error ( "Unexpected deoptimizations" ) ; } } }

Target:
public static void loop ( ) { Main m = new Main ( ) ; for ( int i = 0 ; i < 5000 ; i ++ ) { Main.$noinline$doCall ( "foo" ) ; Main.$noinline$doCall ( m ) ; } }
Source:
public void test_WantClientAuth ( ) throws java.security.NoSuchAlgorithmException { javax.net.ssl.SSLEngine sse = getEngine ( ) ; try { sse.setWantClientAuth ( false ) ; assertFalse ( sse.getWantClientAuth ( ) ) ; sse.setWantClientAuth ( true ) ; assertTrue ( sse.getWantClientAuth ( ) ) ; } catch ( java.lang.Exception ex ) { fail ( ( "Unexpected exception " + ex ) ) ; } }

Target:
public void test_WantClientAuth ( ) throws java.lang.Exception { javax.net.ssl.SSLEngine sse = getEngine ( ) ; sse.setWantClientAuth ( false ) ; assertFalse ( sse.getWantClientAuth ( ) ) ; sse.setWantClientAuth ( true ) ; assertTrue ( sse.getWantClientAuth ( ) ) ; }
Source:
private com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint getDropLocation ( org.eclipse.swt.dnd.DropTargetEvent event ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint p = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , event ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo dragInfo = com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo.getInstance ( ) ; if ( dragInfo != null ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint imageOffset = dragInfo.getImageOffset ( ) ; if ( imageOffset != null ) { p = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , ( ( p.x ) + ( imageOffset.x ) ) , ( ( p.y ) + ( imageOffset.y ) ) ) ; } } return p ; }

Target:
private com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint getDropLocation ( org.eclipse.swt.dnd.DropTargetEvent event ) { return com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , event ) ; }
Source:
public int getSimCarrierId ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getSubscriptionCarrierId ( getSubId ( ) ) ; } } catch ( android.os.RemoteException ex ) { ex.rethrowAsRuntimeException ( ) ; } return android.telephony.TelephonyManager.UNKNOWN_CARRIER_ID ; }

Target:
public int getSimCarrierId ( ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getSubscriptionCarrierId ( getSubId ( ) ) ; } } catch ( android.os.RemoteException ex ) { } return android.telephony.TelephonyManager.UNKNOWN_CARRIER_ID ; }
Source:
public void testConfigurationUpdatesWhenRotatingWhileFullscreen ( ) throws java.lang.Exception { if ( ! ( supportsScreenRotation ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no rotation support" ) ; return ; } setDeviceRotation ( 0 ) ; launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes initialSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; rotateAndCheckSizes ( initialSizes , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; }

Target:
public void testConfigurationUpdatesWhenRotatingWhileFullscreen ( ) throws java.lang.Exception { if ( ! ( supportsScreenRotation ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no rotation support" ) ; return ; } setDeviceRotation ( 0 ) ; launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes initialSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; rotateAndCheckSizes ( initialSizes ) ; }
Source:
private long pickBestMatchBasedOnData ( android.database.sqlite.SQLiteDatabase db , long rawContactId , com.android.providers.contacts.ContactAggregator.MatchCandidateList candidates , com.android.providers.contacts.ContactMatcher matcher ) { long bestMatch = updateMatchScoresBasedOnDataMatches ( db , rawContactId , candidates , matcher ) ; if ( bestMatch == ( ContactMatcher.MULTIPLE_MATCHES ) ) { return - 1 ; } else if ( bestMatch == ( - 1 ) ) { bestMatch = pickBestMatchBasedOnSecondaryData ( db , rawContactId , candidates , matcher ) ; if ( bestMatch == ( ContactMatcher.MULTIPLE_MATCHES ) ) { return - 1 ; } } return bestMatch ; }

Target:
private long pickBestMatchBasedOnData ( android.database.sqlite.SQLiteDatabase db , long rawContactId , com.android.providers.contacts.ContactAggregator.MatchCandidateList candidates , com.android.providers.contacts.ContactMatcher matcher ) { long bestMatch = updateMatchScoresBasedOnDataMatches ( db , rawContactId , matcher ) ; if ( bestMatch == ( ContactMatcher.MULTIPLE_MATCHES ) ) { return - 1 ; } else if ( bestMatch == ( - 1 ) ) { bestMatch = pickBestMatchBasedOnSecondaryData ( db , rawContactId , candidates , matcher ) ; if ( bestMatch == ( ContactMatcher.MULTIPLE_MATCHES ) ) { return - 1 ; } } return bestMatch ; }
Source:
private void addRemoteAddonSysImg ( com.android.sdklib.AndroidVersion version , com.android.sdklib.repository.MajorRevision revision , com.android.sdklib.repository.descriptors.IdDisplay vendor , com.android.sdklib.repository.descriptors.IdDisplay tag , java.lang.String abi ) { com.android.sdklib.repository.descriptors.IPkgDesc d = PkgDesc.Builder.newAddonSysImg ( version , vendor , tag , abi , 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 addRemoteAddonSysImg ( com.android.sdklib.AndroidVersion version , com.android.sdklib.repository.MajorRevision revision , com.android.sdklib.repository.descriptors.IdDisplay vendor , com.android.sdklib.repository.descriptors.IdDisplay tag , java.lang.String abi ) { com.android.sdklib.repository.descriptors.IPkgDesc d = PkgDesc.Builder.newAddonSysImg ( version , vendor , tag , abi , 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:
public int beforeHandshake ( int c ) throws javax.net.ssl.SSLException { int s = super . beforeHandshake ( c ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_set_client_CA_list ( s , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getCaPrincipals ( ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_set_verify ( s , ( ( NativeCrypto.SSL_VERIFY_PEER ) | ( NativeCrypto.SSL_VERIFY_FAIL_IF_NO_PEER_CERT ) ) ) ; return s ; }

Target:
public long beforeHandshake ( long c ) throws javax.net.ssl.SSLException { long s = super . beforeHandshake ( c ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_set_client_CA_list ( s , org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getCaPrincipals ( ) ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_set_verify ( s , ( ( NativeCrypto.SSL_VERIFY_PEER ) | ( NativeCrypto.SSL_VERIFY_FAIL_IF_NO_PEER_CERT ) ) ) ; return s ; }
Source:
public int getSupportedLoggerFeatureSet ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getSupportedLoggerFeatureSet ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getSupportedLoggerFeatureSetNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return 0 ; } } } }

Target:
public int getSupportedLoggerFeatureSet ( ) { return mWifiVendorHal.getSupportedLoggerFeatureSet ( ) ; }