auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void mergeChildren ( com.android.manifmerger.XmlElement lowerPriorityNode , com.android.manifmerger.MergingReport.Builder mergingReport ) { com.android.utils.ILogger logger = mergingReport.getLogger ( ) ; for ( com.android.manifmerger.XmlElement lowerPriorityChild : lowerPriorityNode.getMergeableElements ( ) ) { if ( shouldIgnore ( lowerPriorityChild , mergingReport ) ) { continue ; } mergeChild ( lowerPriorityChild , mergingReport ) ; } }

Target:
public void mergeChildren ( com.android.manifmerger.XmlElement lowerPriorityNode , com.android.manifmerger.MergingReport.Builder mergingReport ) { for ( com.android.manifmerger.XmlElement lowerPriorityChild : lowerPriorityNode.getMergeableElements ( ) ) { if ( shouldIgnore ( lowerPriorityChild , mergingReport ) ) { continue ; } mergeChild ( lowerPriorityChild , mergingReport ) ; } }
Source:
private void assertSocketClosed ( java.io.FileDescriptor fd , java.lang.String host ) throws java.lang.Exception { try { sendRequest ( fd , host ) ; fail ( "Socket opened before VPN connects should be closed when VPN connects" ) ; } catch ( android.system.ErrnoException expected ) { assertEquals ( com.android.cts.net.hostside.ECONNABORTED , expected.errno ) ; } finally { android.system.Os.close ( fd ) ; } }

Target:
private void assertSocketClosed ( java.io.FileDescriptor fd , java.lang.String host ) throws java.lang.Exception { try { assertTrue ( fd.valid ( ) ) ; sendRequest ( fd , host ) ; fail ( "Socket opened before VPN connects should be closed when VPN connects" ) ; } catch ( android.system.ErrnoException expected ) { assertEquals ( com.android.cts.net.hostside.ECONNABORTED , expected.errno ) ; assertTrue ( fd.valid ( ) ) ; } finally { android.system.Os.close ( fd ) ; } }
Source:
public static boolean isAssistedDialingEnabled ( @ android.support.annotation.NonNull com.android.dialer.configprovider.ConfigProvider configProvider ) { if ( configProvider == null ) { com.android.dialer.common.LogUtil.i ( "ConcreteCreator.isAssistedDialingEnabled" , "provided configProvider was null" ) ; throw new java.lang.NullPointerException ( "Provided configProvider was null" ) ; } return ( ( ( ( Build.VERSION.SDK_INT ) >= ( com.android.dialer.assisteddialing.ConcreteCreator.BUILD_CODE_FLOOR ) ) && ( ( Build.VERSION.SDK_INT ) <= ( com.android.dialer.assisteddialing.ConcreteCreator.BUILD_CODE_CEILING ) ) ) && ( ! ( android.support.v4.os.BuildCompat.isAtLeastP ( ) ) ) ) && ( configProvider.getBoolean ( "assisted_dialing_enabled" , false ) ) ; }

Target:
public static boolean isAssistedDialingEnabled ( @ android.support.annotation.NonNull com.android.dialer.configprovider.ConfigProvider configProvider ) { if ( configProvider == null ) { com.android.dialer.common.LogUtil.i ( "ConcreteCreator.isAssistedDialingEnabled" , "provided configProvider was null" ) ; throw new java.lang.NullPointerException ( "Provided configProvider was null" ) ; } return ( ( ( Build.VERSION.SDK_INT ) >= ( com.android.dialer.assisteddialing.ConcreteCreator.BUILD_CODE_FLOOR ) ) && ( ( Build.VERSION.SDK_INT ) <= ( com.android.dialer.assisteddialing.ConcreteCreator.BUILD_CODE_CEILING ) ) ) && ( configProvider.getBoolean ( "assisted_dialing_enabled" , false ) ) ; }
Source:
private synchronized void onIntrData ( byte reportId , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , ( "onIntrData(): reportId=" + reportId ) ) ; java.nio.ByteBuffer bb = java.nio.ByteBuffer.wrap ( data ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDevService.MESSAGE_INTR_DATA ) ; msg.arg1 = reportId ; msg.obj = bb ; mHandler.sendMessage ( msg ) ; }

Target:
private synchronized void onIntrData ( byte reportId , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.TAG , ( "onIntrData(): reportId=" + reportId ) ) ; } java.nio.ByteBuffer bb = java.nio.ByteBuffer.wrap ( data ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDevService.MESSAGE_INTR_DATA ) ; msg.arg1 = reportId ; msg.obj = bb ; mHandler.sendMessage ( msg ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.ir.ast.JDefinedClassOrInterface enclosingType = method.getEnclosingType ( ) ; assert enclosingType != null ; com.android.jack.transformations.request.TransformationRequest trRequest = new com.android.jack.transformations.request.TransformationRequest ( method ) ; com.android.jack.transformations.finallyblock.FinallyRemover.JTryStatementVisitor visitor = new com.android.jack.transformations.finallyblock.FinallyRemover.JTryStatementVisitor ( trRequest , method ) ; visitor.accept ( method ) ; trRequest.commit ( ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.request.TransformationRequest trRequest = new com.android.jack.transformations.request.TransformationRequest ( method ) ; com.android.jack.transformations.finallyblock.FinallyRemover.JTryStatementVisitor visitor = new com.android.jack.transformations.finallyblock.FinallyRemover.JTryStatementVisitor ( trRequest , method ) ; visitor.accept ( method ) ; trRequest.commit ( ) ; }
Source:
public boolean isSpeakEasyEligible ( ) { if ( ! ( com.android.incallui.speakeasy.runtime.Constraints.isAvailable ( context ) ) ) { return false ; } return ( ( ( ( ( ! ( isPotentialEmergencyCallback ( ) ) ) && ( ! ( isEmergencyCall ( ) ) ) ) && ( ! ( isActiveRttCall ( ) ) ) ) && ( ! ( isConferenceCall ( ) ) ) ) && ( ! ( isVideoCall ( ) ) ) ) && ( ! ( isVoiceMailNumber ( ) ) ) ; }

Target:
public boolean isSpeakEasyEligible ( ) { return ( ( ( ( ( ! ( isPotentialEmergencyCallback ( ) ) ) && ( ! ( isEmergencyCall ( ) ) ) ) && ( ! ( isActiveRttCall ( ) ) ) ) && ( ! ( isConferenceCall ( ) ) ) ) && ( ! ( isVideoCall ( ) ) ) ) && ( ! ( isVoiceMailNumber ( ) ) ) ; }
Source:
public void testRunSingleTestMethod ( ) throws java.lang.Exception { java.lang.String testMethodName = "testTwo" ; mAndroidTestRunner.setTestClassName ( android.test.AndroidTestRunnerTest.TwoTestTestCase.class . getName ( ) , testMethodName ) ; java.util.List < junit.framework.TestCase > testCases = mAndroidTestRunner.getTestCases ( ) ; java.util.List < java.lang.String > testNames = com.google.android.collect.Lists.newArrayList ( ) ; for ( junit.framework.TestCase testCase : testCases ) { testNames.add ( testCase.getName ( ) ) ; } assertEquals ( java.util.Arrays.asList ( testMethodName ) , testNames ) ; }

Target:
public void testRunSingleTestMethod ( ) throws java.lang.Exception { java.lang.String testMethodName = "testTwo" ; mAndroidTestRunner.setTestClassName ( android.test.AndroidTestRunnerTest.TwoTestTestCase.class . getName ( ) , testMethodName ) ; java.util.List < junit.framework.TestCase > testCases = mAndroidTestRunner.getTestCases ( ) ; java.util.List < java.lang.String > testNames = new java.util.ArrayList < > ( ) ; for ( junit.framework.TestCase testCase : testCases ) { testNames.add ( testCase.getName ( ) ) ; } assertEquals ( java.util.Arrays.asList ( testMethodName ) , testNames ) ; }
Source:
public java.util.Collection < java.lang.String > getLdLibs ( ) { return com.google.common.collect.Lists.newArrayList ( com.google.common.collect.Iterables.transform ( ndkConfig.getLdLibs ( ) , new com.google.common.base.Function < com.android.build.gradle.managed.ManagedString , java.lang.String > ( ) { @ java.lang.Override public java.lang.String apply ( @ com.android.annotations.Nullable com.android.build.gradle.managed.ManagedString managedString ) { return managedString == null ? null : managedString.getValue ( ) ; } } ) ) ; }

Target:
public java.util.List < java.lang.String > getLdLibs ( ) { return ndkConfig.getLdLibs ( ) ; }
Source:
private void changeHeadUpDisplayState ( ) { android.content.res.Configuration config = getResources ( ) . getConfiguration ( ) ; if ( ( ( ( config.orientation ) == ( android.content.res.Configuration.ORIENTATION_LANDSCAPE ) ) && ( ! ( mPausing ) ) ) && ( ( mGLRootView ) == null ) ) { attachHeadUpDisplay ( ) ; } else if ( ( mGLRootView ) != null ) { detachHeadUpDisplay ( ) ; } }

Target:
private void changeHeadUpDisplayState ( ) { android.content.res.Configuration config = getResources ( ) . getConfiguration ( ) ; if ( ( ( config.orientation ) == ( android.content.res.Configuration.ORIENTATION_LANDSCAPE ) ) && ( ! ( mPausing ) ) ) { if ( ( mGLRootView ) == null ) attachHeadUpDisplay ( ) ; } else if ( ( mGLRootView ) != null ) { detachHeadUpDisplay ( ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { final java.lang.Thread [ ] threads = new java.lang.Thread [ Main.numberOfThreads ] ; Main.test_getStackTraces ( ) ; for ( int t = 0 ; t < ( threads.length ) ; t ++ ) { threads [ t ] = new java.lang.Thread ( new Main ( ) ) ; threads [ t ] . start ( ) ; } for ( java.lang.Thread t : threads ) { t.join ( ) ; } java.lang.System.out.println ( "Finishing" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { final java.lang.Thread [ ] threads = new java.lang.Thread [ Main.numberOfThreads ] ; for ( int t = 0 ; t < ( threads.length ) ; t ++ ) { threads [ t ] = new java.lang.Thread ( new Main ( ) ) ; threads [ t ] . start ( ) ; } for ( java.lang.Thread t : threads ) { t.join ( ) ; } Main.test_getStackTraces ( ) ; java.lang.System.out.println ( "Finishing" ) ; }
Source:
static int native_saveLayerAlpha ( int nativeCanvas , android.graphics.RectF bounds , int alpha , int layerFlags ) { android.graphics.Canvas_Delegate canvasDelegate = android.graphics.Canvas_Delegate.sManager.getDelegate ( nativeCanvas ) ; if ( canvasDelegate == null ) { return 0 ; } return canvasDelegate.saveLayerAlpha ( bounds , alpha , layerFlags ) ; }

Target:
static long native_saveLayerAlpha ( long nativeCanvas , android.graphics.RectF bounds , int alpha , int layerFlags ) { android.graphics.Canvas_Delegate canvasDelegate = android.graphics.Canvas_Delegate.sManager.getDelegate ( nativeCanvas ) ; if ( canvasDelegate == null ) { return 0 ; } return canvasDelegate.saveLayerAlpha ( bounds , alpha , layerFlags ) ; }
Source:
public java.lang.Object clone ( ) throws java.lang.CloneNotSupportedException { if ( ( spiImpl ) instanceof java.lang.Cloneable ) { java.security.SignatureSpi spi = ( ( java.security.SignatureSpi ) ( spiImpl.clone ( ) ) ) ; return new java.security.Signature.SignatureImpl ( spi , getProvider ( ) , getAlgorithm ( ) ) ; } throw new java.lang.CloneNotSupportedException ( ) ; }

Target:
public java.lang.Object clone ( ) throws java.lang.CloneNotSupportedException { if ( ( spiImpl ) instanceof java.lang.Cloneable ) { java.security.SignatureSpi spi = ( ( java.security.SignatureSpi ) ( spiImpl.clone ( ) ) ) ; return new java.security.Signature.SignatureImpl ( getAlgorithm ( ) , getProvider ( ) , spiImpl ) ; } throw new java.lang.CloneNotSupportedException ( ) ; }
Source:
protected proguard.optimize.evaluation.Value getFieldClassValue ( proguard.optimize.evaluation.Clazz clazz , proguard.classfile.constant.RefConstant refConstant , java.lang.String type ) { if ( loadFieldValues ) { proguard.optimize.evaluation.Member referencedMember = refConstant.referencedMember ; if ( referencedMember != null ) { proguard.optimize.evaluation.ReferenceValue value = proguard.optimize.evaluation.StoringInvocationUnit.getFieldClassValue ( ( ( proguard.optimize.evaluation.Field ) ( referencedMember ) ) ) ; if ( ( value != null ) && ( value.isParticular ( ) ) ) { return value ; } } } return super . getFieldClassValue ( clazz , refConstant , type ) ; }

Target:
protected proguard.optimize.evaluation.Value getFieldClassValue ( proguard.optimize.evaluation.Clazz clazz , proguard.classfile.constant.RefConstant refConstant , java.lang.String type ) { if ( loadFieldValues ) { proguard.optimize.evaluation.Member referencedMember = refConstant.referencedMember ; if ( referencedMember != null ) { proguard.optimize.evaluation.ReferenceValue value = proguard.optimize.evaluation.StoringInvocationUnit.getFieldClassValue ( ( ( proguard.optimize.evaluation.Field ) ( referencedMember ) ) ) ; if ( value != null ) { return value ; } } } return super . getFieldClassValue ( clazz , refConstant , type ) ; }
Source:
public void testRegistrationConfigPermutationEqual ( ) { android.telephony.ims.stub.ImsFeatureConfiguration testConfig = new android.telephony.ims.stub.ImsFeatureConfiguration.Builder ( ) . addFeature ( ImsFeature.FEATURE_MMTEL ) . addFeature ( ImsFeature.FEATURE_RCS ) . build ( ) ; android.telephony.ims.stub.ImsFeatureConfiguration testConfig2 = new android.telephony.ims.stub.ImsFeatureConfiguration.Builder ( ) . addFeature ( ImsFeature.FEATURE_RCS ) . addFeature ( ImsFeature.FEATURE_MMTEL ) . build ( ) ; junit.framework.Assert.assertEquals ( testConfig , testConfig2 ) ; }

Target:
public void testRegistrationConfigPermutationEqual ( ) { android.telephony.ims.stub.ImsFeatureConfiguration testConfig = new android.telephony.ims.stub.ImsFeatureConfiguration.Builder ( ) . addFeature ( 0 , ImsFeature.FEATURE_MMTEL ) . addFeature ( 0 , ImsFeature.FEATURE_RCS ) . build ( ) ; android.telephony.ims.stub.ImsFeatureConfiguration testConfig2 = new android.telephony.ims.stub.ImsFeatureConfiguration.Builder ( ) . addFeature ( 0 , ImsFeature.FEATURE_RCS ) . addFeature ( 0 , ImsFeature.FEATURE_MMTEL ) . build ( ) ; junit.framework.Assert.assertEquals ( testConfig , testConfig2 ) ; }
Source:
public static void freeDirectBuffer ( java.nio.ByteBuffer buffer ) { if ( buffer == null ) { return ; } if ( buffer instanceof java.nio.DirectByteBuffer ) { ( ( java.nio.DirectByteBuffer ) ( buffer ) ) . free ( ) ; } else if ( buffer instanceof java.nio.MappedByteBuffer ) { ( ( java.nio.MappedByteBufferAdapter ) ( buffer ) ) . free ( ) ; } else { throw new java.lang.AssertionError ( ) ; } }

Target:
public static void freeDirectBuffer ( java.nio.ByteBuffer buffer ) { if ( buffer == null ) { return ; } ( ( java.nio.DirectByteBuffer ) ( buffer ) ) . free ( ) ; }
Source:
public void controlResized ( org.eclipse.swt.events.ControlEvent e ) { super . controlResized ( e ) ; mHScale.setClientSize ( getClientArea ( ) . width ) ; mVScale.setClientSize ( getClientArea ( ) . height ) ; org.eclipse.swt.graphics.Rectangle canvasBounds = this . getBounds ( ) ; getHorizontalBar ( ) . setPageIncrement ( canvasBounds.width ) ; getVerticalBar ( ) . setPageIncrement ( canvasBounds.height ) ; }

Target:
public void controlResized ( org.eclipse.swt.events.ControlEvent e ) { super . controlResized ( e ) ; mHScale.setClientSize ( getClientArea ( ) . width ) ; mVScale.setClientSize ( getClientArea ( ) . height ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { UnresolvedClass c = new UnresolvedClass ( ) ; Main.callInvokeUnresolvedStatic ( ) ; Main.callInvokeUnresolvedVirtual ( c ) ; Main.callInvokeUnresolvedInterface ( c ) ; Main.callInvokeUnresolvedSuper ( new Main ( ) ) ; Main.callUnresolvedStaticFieldAccess ( ) ; Main.callUnresolvedInstanceFieldAccess ( c ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { UnresolvedClass c = new UnresolvedClass ( ) ; Main.callInvokeUnresolvedStatic ( ) ; Main.callInvokeUnresolvedVirtual ( c ) ; Main.callInvokeUnresolvedInterface ( c ) ; Main.callInvokeUnresolvedSuper ( new Main ( ) ) ; }
Source:
public android.net.LinkProperties.CompareResult < android.net.LinkAddress > compareAddresses ( android.net.LinkProperties target ) { android.net.LinkProperties.CompareResult < android.net.LinkAddress > result = new android.net.LinkProperties.CompareResult < android.net.LinkAddress > ( ) ; result.removed = new java.util.ArrayList < android.net.LinkAddress > ( mLinkAddresses ) ; result.added.clear ( ) ; if ( target != null ) { for ( android.net.LinkAddress newAddress : target.getLinkAddresses ( ) ) { if ( ! ( result.removed.remove ( newAddress ) ) ) { result.added.add ( newAddress ) ; } } } return result ; }

Target:
public android.net.LinkProperties.CompareResult < android.net.LinkAddress > compareAddresses ( android.net.LinkProperties target ) { return new android.net.LinkProperties.CompareResult ( mLinkAddresses , ( target != null ? target.getLinkAddresses ( ) : null ) ) ; }
Source:
public java.lang.String getDexCacheString ( com.android.dex.Dex dex , int dexStringIndex ) { java.lang.String [ ] dexCacheStrings = dexCache.strings ; java.lang.String s = dexCacheStrings [ dexStringIndex ] ; if ( s == null ) { s = dex.strings ( ) . get ( dexStringIndex ) . intern ( ) ; dexCacheStrings [ dexStringIndex ] = s ; } return s ; }

Target:
public java.lang.String getDexCacheString ( com.android.dex.Dex dex , int dexStringIndex ) { java.lang.String s = dexCacheStrings [ dexStringIndex ] ; if ( s == null ) { s = dex.strings ( ) . get ( dexStringIndex ) . intern ( ) ; dexCacheStrings [ dexStringIndex ] = s ; } return s ; }
Source:
public void testJackArchiveToDexDir ( ) throws java.lang.Exception { java.io.File jackAr = createJackArchiveWithResources ( ) ; java.io.File dexDir = com.android.jack.TestTools.createTempDir ( "resourcetestdex" , "dir" ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.libToExe ( jackAr , dexDir , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE1_SHORTPATH , "Res1" , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE2_SHORTPATH , "Res2" , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE3_SHORTPATH , "Res3" , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE4_SHORTPATH , "Res4" , false ) ; }

Target:
public void testJackArchiveToDexDir ( ) throws java.lang.Exception { java.io.File jackAr = createJackArchiveWithResources ( ) ; java.io.File dexDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.libToExe ( jackAr , dexDir , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE1_SHORTPATH , "Res1" , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE2_SHORTPATH , "Res2" , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE3_SHORTPATH , "Res3" , false ) ; checkResourceContentFromDir ( dexDir , com.android.jack.resource.ResourceTests.RESOURCE4_SHORTPATH , "Res4" , false ) ; }
Source:
public void event ( android.telecom.Logging.EventManager.Loggable recordEntry , java.lang.String event , java.lang.String format , java.lang.Object ... args ) { java.lang.String msg ; try { msg = ( ( args == null ) || ( ( args.length ) == 0 ) ) ? format : java.lang.String.format ( java.util.Locale.US , format , args ) ; } catch ( java.util.IllegalFormatException ife ) { android.telecom.Log.e ( "Log" , ife , "IllegalFormatException: formatString='%s' numArgs=%d" , format , args.length ) ; msg = format + " (An error occurred while formatting the message.)" ; } event ( recordEntry , event , msg ) ; }

Target:
public void event ( android.telecom.Logging.EventManager.Loggable recordEntry , java.lang.String event , java.lang.String format , java.lang.Object ... args ) { java.lang.String msg ; try { msg = ( ( args == null ) || ( ( args.length ) == 0 ) ) ? format : java.lang.String.format ( java.util.Locale.US , format , args ) ; } catch ( java.util.IllegalFormatException ife ) { android.telecom.Log.e ( this , ife , "IllegalFormatException: formatString='%s' numArgs=%d" , format , args.length ) ; msg = format + " (An error occurred while formatting the message.)" ; } event ( recordEntry , event , msg ) ; }
Source:
private boolean validatePage ( ) { boolean ok = true ; int selectionIndex = mTypeCombo.getSelectionIndex ( ) ; java.lang.String type = ( selectionIndex != ( - 1 ) ) ? mClassNames.get ( selectionIndex ) : null ; if ( type == null ) { setErrorMessage ( "Select a widget type to convert to" ) ; ok = false ; } else { setErrorMessage ( null ) ; } com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ChangeViewRefactoring refactoring = ( ( com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ChangeViewRefactoring ) ( getRefactoring ( ) ) ) ; refactoring.setType ( type ) ; setPageComplete ( ok ) ; return ok ; }

Target:
protected boolean validatePage ( ) { boolean ok = true ; int selectionIndex = mTypeCombo.getSelectionIndex ( ) ; java.lang.String type = ( selectionIndex != ( - 1 ) ) ? mClassNames.get ( selectionIndex ) : null ; if ( type == null ) { setErrorMessage ( "Select a widget type to convert to" ) ; ok = false ; } else { setErrorMessage ( null ) ; } com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ChangeViewRefactoring refactoring = ( ( com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ChangeViewRefactoring ) ( getRefactoring ( ) ) ) ; refactoring.setType ( type ) ; setPageComplete ( ok ) ; return ok ; }
Source:
public static void setVoicemailDonationEnabled ( android.content.Context context , android.telecom.PhoneAccountHandle phoneAccount , boolean isEnabled ) { com.android.dialer.common.Assert.checkArgument ( com.android.voicemail.VoicemailComponent.get ( context ) . getVoicemailClient ( ) . isVoicemailTranscriptionAvailable ( context ) ) ; new com.android.voicemail.impl.VisualVoicemailPreferences ( context , phoneAccount ) . edit ( ) . putBoolean ( com.android.voicemail.impl.settings.VisualVoicemailSettingsUtil.DONATE_VOICEMAILS_KEY , isEnabled ) . apply ( ) ; }

Target:
public static void setVoicemailDonationEnabled ( android.content.Context context , android.telecom.PhoneAccountHandle phoneAccount , boolean isEnabled ) { com.android.dialer.common.Assert.checkArgument ( com.android.voicemail.VoicemailComponent.get ( context ) . getVoicemailClient ( ) . isVoicemailTranscriptionAvailable ( context , phoneAccount ) ) ; new com.android.voicemail.impl.VisualVoicemailPreferences ( context , phoneAccount ) . edit ( ) . putBoolean ( com.android.voicemail.impl.settings.VisualVoicemailSettingsUtil.DONATE_VOICEMAILS_KEY , isEnabled ) . apply ( ) ; }
Source:
protected void finalize ( ) { if ( com.android.internal.telephony.GsmCdmaPhone.DBG ) logd ( "GsmCdmaPhone finalized" ) ; if ( mWakeLock.isHeld ( ) ) { android.telephony.Rlog.e ( com.android.internal.telephony.GsmCdmaPhone.LOG_TAG , "UNEXPECTED; mWakeLock is held when finalizing." ) ; mWakeLock.release ( ) ; } }

Target:
protected void finalize ( ) { if ( com.android.internal.telephony.GsmCdmaPhone.DBG ) logd ( "GsmCdmaPhone finalized" ) ; if ( ( ( mWakeLock ) != null ) && ( mWakeLock.isHeld ( ) ) ) { android.telephony.Rlog.e ( com.android.internal.telephony.GsmCdmaPhone.LOG_TAG , "UNEXPECTED; mWakeLock is held when finalizing." ) ; mWakeLock.release ( ) ; } }
Source:
public com.android.ide.common.resources.configuration.FolderConfiguration getConfiguration ( ) { assert ( getSource ( ) ) != null : this ; java.lang.String qualifier = getSource ( ) . getQualifiers ( ) ; if ( qualifier.isEmpty ( ) ) { return new com.android.ide.common.resources.configuration.FolderConfiguration ( ) ; } return com.android.ide.common.resources.configuration.FolderConfiguration.getConfigFromQualifiers ( com.google.common.base.Splitter.on ( '-' ) . split ( qualifier ) ) ; }

Target:
public com.android.ide.common.resources.configuration.FolderConfiguration getConfiguration ( ) { assert ( getSource ( ) ) != null : this ; java.lang.String qualifier = getQualifiers ( ) ; if ( qualifier.isEmpty ( ) ) { return new com.android.ide.common.resources.configuration.FolderConfiguration ( ) ; } return com.android.ide.common.resources.configuration.FolderConfiguration.getConfigFromQualifiers ( com.google.common.base.Splitter.on ( '-' ) . split ( qualifier ) ) ; }
Source:
public boolean isSupported ( java.time.temporal.TemporalField field ) { if ( ( ( ( field == ( java.time.temporal.ChronoField.ALIGNED_DAY_OF_WEEK_IN_MONTH ) ) || ( field == ( java.time.temporal.ChronoField.ALIGNED_DAY_OF_WEEK_IN_YEAR ) ) ) || ( field == ( java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH ) ) ) || ( field == ( java.time.temporal.ChronoField.ALIGNED_WEEK_OF_YEAR ) ) ) { return false ; } return java.time.chrono.ChronoLocalDate.super . isSupported ( field ) ; }

Target:
public boolean isSupported ( java.time.temporal.TemporalField field ) { if ( ( ( ( field == ( java.time.temporal.ChronoField.ALIGNED_DAY_OF_WEEK_IN_MONTH ) ) || ( field == ( java.time.temporal.ChronoField.ALIGNED_DAY_OF_WEEK_IN_YEAR ) ) ) || ( field == ( java.time.temporal.ChronoField.ALIGNED_WEEK_OF_MONTH ) ) ) || ( field == ( java.time.temporal.ChronoField.ALIGNED_WEEK_OF_YEAR ) ) ) { return false ; } return super . isSupported ( field ) ; }
Source:
public void push ( final long value ) { if ( ( value == 0L ) || ( value == 1L ) ) { mv.visitInsn ( ( ( org.objectweb.asm.Opcodes.LCONST_0 ) + ( ( int ) ( value ) ) ) ) ; } else { mv.visitLdcInsn ( new java.lang.Long ( value ) ) ; } }

Target:
public void push ( final long value ) { if ( ( value == 0L ) || ( value == 1L ) ) { mv.visitInsn ( ( ( org.objectweb.asm.Opcodes.LCONST_0 ) + ( ( int ) ( value ) ) ) ) ; } else { mv.visitLdcInsn ( value ) ; } }
Source:
public void exit ( ) { mIPv6TetherSvc.stop ( ) ; cleanupUpstream ( ) ; try { mNMService.untetherInterface ( mIfaceName ) ; } catch ( java.lang.Exception ee ) { mLastError = android.net.ConnectivityManager.TETHER_ERROR_UNTETHER_IFACE_ERROR ; android.util.Log.e ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , ( "Failed to untether interface: " + ( ee.toString ( ) ) ) ) ; } configureIfaceIp ( false ) ; }

Target:
public void exit ( ) { mIPv6TetherSvc.stop ( ) ; try { mNMService.untetherInterface ( mIfaceName ) ; } catch ( java.lang.Exception ee ) { mLastError = android.net.ConnectivityManager.TETHER_ERROR_UNTETHER_IFACE_ERROR ; android.util.Log.e ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine.TAG , ( "Failed to untether interface: " + ( ee.toString ( ) ) ) ) ; } configureIfaceIp ( false ) ; }
Source:
private void testOutputPKCS1Padding ( byte expectedBlockType , java.security.Key encryptKey , java.security.Key decryptKey ) throws java.lang.Exception { javax.crypto.Cipher encryptCipher = javax.crypto.Cipher.getInstance ( "RSA/ECB/PKCS1Padding" ) ; encryptCipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , encryptKey ) ; byte [ ] cipherText = encryptCipher.doFinal ( libcore.javax.crypto.CipherTest.ORIGINAL_PLAIN_TEXT ) ; javax.crypto.Cipher decryptCipher = javax.crypto.Cipher.getInstance ( "RSA/ECB/NoPadding" ) ; decryptCipher.init ( javax.crypto.Cipher.DECRYPT_MODE , decryptKey ) ; byte [ ] plainText = decryptCipher.doFinal ( cipherText ) ; assertPadding ( expectedBlockType , libcore.javax.crypto.CipherTest.ORIGINAL_PLAIN_TEXT , plainText ) ; }

Target:
private void testOutputPKCS1Padding ( byte expectedBlockType , java.security.Key encryptKey , java.security.Key decryptKey ) throws java.lang.Exception { javax.crypto.Cipher encryptCipher = javax.crypto.Cipher.getInstance ( "RSA/ECB/PKCS1Padding" ) ; encryptCipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , encryptKey ) ; byte [ ] cipherText = encryptCipher.doFinal ( libcore.javax.crypto.CipherTest.ORIGINAL_PLAIN_TEXT ) ; javax.crypto.Cipher decryptCipher = javax.crypto.Cipher.getInstance ( "RSA/ECB/NoPadding" ) ; decryptCipher.init ( javax.crypto.Cipher.DECRYPT_MODE , decryptKey ) ; byte [ ] plainText = decryptCipher.doFinal ( cipherText ) ; assertPadding ( encryptKey , expectedBlockType , libcore.javax.crypto.CipherTest.ORIGINAL_PLAIN_TEXT , plainText ) ; }
Source:
public void rejectCall ( com.android.internal.telephony.Call ringingCall ) throws com.android.internal.telephony.CallStateException { if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , ( ( "rejectCall(" + ringingCall ) + ")" ) ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } com.android.internal.telephony.Phone ringingPhone = ringingCall.getPhone ( ) ; ringingPhone.rejectCall ( ) ; if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , ( ( "End rejectCall(" + ringingCall ) + ")" ) ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } }

Target:
public void rejectCall ( com.android.internal.telephony.Call ringingCall ) throws com.android.internal.telephony.CallStateException { if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , ( ( "rejectCall(" + ringingCall ) + ")" ) ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , toString ( ) ) ; } com.android.internal.telephony.Phone ringingPhone = ringingCall.getPhone ( ) ; ringingPhone.rejectCall ( ) ; if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , ( ( "End rejectCall(" + ringingCall ) + ")" ) ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , toString ( ) ) ; } }
Source:
protected void finalize ( ) throws java.io.IOException { if ( ( guard ) != null ) { if ( guard.isOpen ( ) ) { java.lang.System.logE ( ( ( ( "Open AbstractPlainSocketImpl: fd=" + ( fd.getInt$ ( ) ) ) + ", closed: " ) + ( socket.isClosed ( ) ) ) ) ; } guard.warnIfOpen ( ) ; } close ( ) ; }

Target:
protected void finalize ( ) throws java.io.IOException { if ( ( guard ) != null ) { guard.warnIfOpen ( ) ; } close ( ) ; }
Source:
public com.android.tools.perflib.heap.Heap getHeap ( java.lang.String name ) { for ( com.android.tools.perflib.heap.Heap heap : mHeaps.values ( ) ) { if ( heap.mName.equals ( name ) ) { return heap ; } } return null ; }

Target:
public com.android.tools.perflib.heap.Heap getHeap ( @ com.android.annotations.NonNull java.lang.String name ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { if ( name.equals ( mHeaps.get ( i ) . getName ( ) ) ) { return mHeaps.get ( i ) ; } } return null ; }
Source:
public boolean setDefaultForNextTap ( int userId , android.content.ComponentName service ) throws android.os.RemoteException { com.android.nfc.NfcPermissions.validateUserId ( userId ) ; com.android.nfc.NfcPermissions.enforceAdminPermissions ( mContext ) ; if ( ! ( isServiceRegistered ( userId , service ) ) ) { return false ; } return mPreferredServices.setDefaultForNextTap ( service ) ; }

Target:
public boolean setDefaultForNextTap ( int userId , android.content.ComponentName service ) throws android.os.RemoteException { com.android.nfc.NfcPermissions.validateUserId ( userId ) ; com.android.nfc.NfcPermissions.enforceAdminPermissions ( mContext ) ; if ( ( service != null ) && ( ! ( isServiceRegistered ( userId , service ) ) ) ) { return false ; } return mPreferredServices.setDefaultForNextTap ( service ) ; }
Source:
private static com.android.util.Pair < com.android.resources.ResourceType , java.lang.String > parseResource ( java.lang.String url ) { if ( ! ( url.startsWith ( "@" ) ) ) { return null ; } int typeEnd = url.indexOf ( '/' , 1 ) ; if ( typeEnd == ( - 1 ) ) { return null ; } int nameBegin = typeEnd + 1 ; int typeBegin = ( url.startsWith ( "@+" ) ) ? 2 : 1 ; int colon = url.lastIndexOf ( ':' , typeEnd ) ; if ( colon != ( - 1 ) ) { typeBegin = colon + 1 ; } java.lang.String typeName = url.substring ( typeBegin , typeEnd ) ; com.android.resources.ResourceType type = com.android.resources.ResourceType.getEnum ( typeName ) ; if ( type == null ) { return null ; } java.lang.String name = url.substring ( nameBegin ) ; return com.android.util.Pair.of ( type , name ) ; }

Target:
public static com.android.util.Pair < com.android.resources.ResourceType , java.lang.String > parseResource ( java.lang.String url ) { if ( ! ( url.startsWith ( "@" ) ) ) { return null ; } int typeEnd = url.indexOf ( '/' , 1 ) ; if ( typeEnd == ( - 1 ) ) { return null ; } int nameBegin = typeEnd + 1 ; int typeBegin = ( url.startsWith ( "@+" ) ) ? 2 : 1 ; int colon = url.lastIndexOf ( ':' , typeEnd ) ; if ( colon != ( - 1 ) ) { typeBegin = colon + 1 ; } java.lang.String typeName = url.substring ( typeBegin , typeEnd ) ; com.android.resources.ResourceType type = com.android.resources.ResourceType.getEnum ( typeName ) ; if ( type == null ) { return null ; } java.lang.String name = url.substring ( nameBegin ) ; return com.android.util.Pair.of ( type , name ) ; }
Source:
public void testRenameCoreLibrary_prefixedLoader ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "__/" ) , null , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.renameCoreLibrary ( "__/java/time/X" ) ) . isEqualTo ( "j$/time/X" ) ; com.google.common.truth.Truth.assertThat ( support.renameCoreLibrary ( "com/google/X" ) ) . isEqualTo ( "com/google/X" ) ; }

Target:
public void testRenameCoreLibrary_prefixedLoader ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "__/" ) , null , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.renameCoreLibrary ( "__/java/time/X" ) ) . isEqualTo ( "j$/time/X" ) ; com.google.common.truth.Truth.assertThat ( support.renameCoreLibrary ( "com/google/X" ) ) . isEqualTo ( "com/google/X" ) ; }
Source:
static void native_transform ( int nPath , int matrix , int dst_path ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } android.graphics.Matrix_Delegate matrixDelegate = android.graphics.Matrix_Delegate.getDelegate ( matrix ) ; if ( matrixDelegate == null ) { return ; } android.graphics.Path_Delegate dstDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( dst_path ) ; pathDelegate.transform ( matrixDelegate , dstDelegate ) ; }

Target:
static void native_transform ( long nPath , long matrix , long dst_path ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } android.graphics.Matrix_Delegate matrixDelegate = android.graphics.Matrix_Delegate.getDelegate ( matrix ) ; if ( matrixDelegate == null ) { return ; } android.graphics.Path_Delegate dstDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( dst_path ) ; pathDelegate.transform ( matrixDelegate , dstDelegate ) ; }
Source:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
public static int getScannedChannelCount ( android.content.Context context ) { com.android.tv.common.SoftPreconditions.checkState ( com.android.tv.tuner.TunerPreferences.sInitialized ) ; if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { return com.android.tv.tuner.TunerPreferences.sPreferenceValues.getInt ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_SCANNED_CHANNEL_COUNT ) ; } else { return com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . getInt ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_SCANNED_CHANNEL_COUNT , 0 ) ; } }

Target:
public static synchronized int getScannedChannelCount ( android.content.Context context ) { com.android.tv.common.SoftPreconditions.checkState ( com.android.tv.tuner.TunerPreferences.sInitialized ) ; if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { return com.android.tv.tuner.TunerPreferences.sPreferenceValues.getInt ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_SCANNED_CHANNEL_COUNT ) ; } else { return com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . getInt ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_SCANNED_CHANNEL_COUNT , 0 ) ; } }
Source:
public void connectionServiceFocusGained ( ) { com.android.server.telecom.BindCallback callback = new com.android.server.telecom.BindCallback ( ) { @ java.lang.Override public void onSuccess ( ) { try { mServiceInterface.connectionServiceFocusGained ( android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { android.telecom.Log.d ( this , "failed to inform the focus gained event" ) ; } } @ java.lang.Override public void onFailure ( ) { } } ; mBinder.bind ( callback , null ) ; }

Target:
public void connectionServiceFocusGained ( ) { }
Source:
void onTargetPackageRemoved ( @ android.annotation.NonNull final java.lang.String packageName , final int userId ) { if ( com.android.server.om.OverlayManagerService.DEBUG ) { android.util.Slog.d ( com.android.server.om.OverlayManagerService.TAG , ( ( ( "onTargetPackageRemoved packageName=" + packageName ) + " userId=" ) + userId ) ) ; } if ( updateAllOverlaysForTarget ( packageName , userId , null ) ) { mListener.onOverlaysChanged ( packageName , userId ) ; } }

Target:
void onTargetPackageRemoved ( @ android.annotation.NonNull final java.lang.String packageName , final int userId ) { if ( com.android.server.om.OverlayManagerService.DEBUG ) { android.util.Slog.d ( com.android.server.om.OverlayManagerService.TAG , ( ( ( "onTargetPackageRemoved packageName=" + packageName ) + " userId=" ) + userId ) ) ; } updateAllOverlaysForTarget ( packageName , userId , null ) ; }
Source:
public void testAlgorithmParameterGenerator ( ) { java.security.AlgorithmParameterGenerator generator = null ; try { generator = java.security.AlgorithmParameterGenerator.getInstance ( algorithmName ) ; } catch ( java.security.NoSuchAlgorithmException e ) { fail ( e.getMessage ( ) ) ; } generator.init ( 1024 ) ; java.security.AlgorithmParameters parameters = generator.generateParameters ( ) ; assertNotNull ( "generated parameters are null" , parameters ) ; helper.test ( parameters ) ; }

Target:
public void testAlgorithmParameterGenerator ( ) throws java.lang.Exception { java.security.AlgorithmParameterGenerator generator = java.security.AlgorithmParameterGenerator.getInstance ( algorithmName ) ; generator.init ( 1024 ) ; java.security.AlgorithmParameters parameters = generator.generateParameters ( ) ; assertNotNull ( "generated parameters are null" , parameters ) ; helper.test ( parameters ) ; }
Source:
public void testRenameCoreLibrary ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "" ) , null , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.renameCoreLibrary ( "java/time/X" ) ) . isEqualTo ( "j$/time/X" ) ; com.google.common.truth.Truth.assertThat ( support.renameCoreLibrary ( "com/google/X" ) ) . isEqualTo ( "com/google/X" ) ; }

Target:
public void testRenameCoreLibrary ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "" ) , null , null , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.renameCoreLibrary ( "java/time/X" ) ) . isEqualTo ( "j$/time/X" ) ; com.google.common.truth.Truth.assertThat ( support.renameCoreLibrary ( "com/google/X" ) ) . isEqualTo ( "com/google/X" ) ; }
Source:
private com.android.sdklib.IAndroidTarget getRenderingTarget ( ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk == null ) { return null ; } assert ( mConfigComposite.getDisplay ( ) . getThread ( ) ) == ( java.lang.Thread.currentThread ( ) ) ; com.android.sdklib.IAndroidTarget renderingTarget = mConfigComposite.getRenderingTarget ( ) ; if ( renderingTarget != null ) { return renderingTarget ; } if ( ( mEditedFile ) != null ) { return currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; } return null ; }

Target:
public com.android.sdklib.IAndroidTarget getRenderingTarget ( ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk == null ) { return null ; } assert ( mConfigComposite.getDisplay ( ) . getThread ( ) ) == ( java.lang.Thread.currentThread ( ) ) ; com.android.sdklib.IAndroidTarget renderingTarget = mConfigComposite.getRenderingTarget ( ) ; if ( renderingTarget != null ) { return renderingTarget ; } if ( ( mEditedFile ) != null ) { return currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; } return null ; }
Source:
private void sendUuidIntent ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.btservice.RemoteDevices.DeviceProperties prop = getDeviceProperties ( device ) ; android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_UUID ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothDevice.EXTRA_UUID , ( prop == null ? null : prop.mUuids ) ) ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.initProfilePriorities ( device , ( prop == null ? null : prop.mUuids ) ) ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.sendBroadcast ( intent , AdapterService.BLUETOOTH_ADMIN_PERM ) ; com.android.bluetooth.btservice.RemoteDevices.mSdpTracker.remove ( device ) ; }

Target:
private void sendUuidIntent ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.btservice.RemoteDevices.DeviceProperties prop = getDeviceProperties ( device ) ; android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothDevice.ACTION_UUID ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; intent.putExtra ( BluetoothDevice.EXTRA_UUID , ( prop == null ? null : prop.mUuids ) ) ; com.android.bluetooth.btservice.RemoteDevices.mAdapterService.sendBroadcast ( intent , AdapterService.BLUETOOTH_ADMIN_PERM ) ; com.android.bluetooth.btservice.RemoteDevices.mSdpTracker.remove ( device ) ; }
Source:
private boolean isShutdownRequest ( org.apache.http.HttpRequest request ) { org.apache.http.RequestLine requestLine = request.getRequestLine ( ) ; java.lang.String uriString = requestLine.getUri ( ) ; java.net.URI uri = java.net.URI.create ( uriString ) ; java.lang.String path = uri.getPath ( ) ; return path.equals ( android.webkit.cts.CtsTestServer.SHUTDOWN_PREFIX ) ; }

Target:
private static boolean isShutdownRequest ( org.apache.http.HttpRequest request ) { org.apache.http.RequestLine requestLine = request.getRequestLine ( ) ; java.lang.String uriString = requestLine.getUri ( ) ; java.net.URI uri = java.net.URI.create ( uriString ) ; java.lang.String path = uri.getPath ( ) ; return path.equals ( android.webkit.cts.CtsTestServer.SHUTDOWN_PREFIX ) ; }
Source:
public void testStateTransitionFromConnectingToConnected ( ) { if ( skipTest ( ) ) return ; android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testStateTransitionFromConnectingToConnected" ) ; setupSdpRecordReceipt ( ) ; android.os.Message msg = android.os.Message.obtain ( mHandler , MceStateMachine.MSG_MAS_CONNECTED ) ; mMceStateMachine.getCurrentState ( ) . processMessage ( msg ) ; try { mLock.await ( ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } org.junit.Assert.assertEquals ( BluetoothProfile.STATE_CONNECTED , mMceStateMachine.getState ( ) ) ; }

Target:
public void testStateTransitionFromConnectingToConnected ( ) { android.util.Log.i ( com.android.bluetooth.mapclient.MapClientStateMachineTest.TAG , "in testStateTransitionFromConnectingToConnected" ) ; setupSdpRecordReceipt ( ) ; android.os.Message msg = android.os.Message.obtain ( mHandler , MceStateMachine.MSG_MAS_CONNECTED ) ; mMceStateMachine.getCurrentState ( ) . processMessage ( msg ) ; try { mLock.await ( ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } org.junit.Assert.assertEquals ( BluetoothProfile.STATE_CONNECTED , mMceStateMachine.getState ( ) ) ; }
Source:
public void testNonFocusConnectionServiceReleased ( ) { requestFocus ( mActiveCall , null ) ; com.android.server.telecom.tests.ConnectionServiceFocusListener connSvrFocusListener = com.android.server.telecom.tests.ConnectionServiceFocusManagerTest.getConnectionServiceFocusListener ( mActiveConnectionService ) ; connSvrFocusListener.onConnectionServiceReleased ( mNewConnectionService ) ; assertEquals ( mActiveCall , mFocusManagerUT.getCurrentFocusCall ( ) ) ; assertEquals ( mActiveConnectionService , mFocusManagerUT.getCurrentFocusConnectionService ( ) ) ; }

Target:
public void testNonFocusConnectionServiceReleased ( ) { requestFocus ( mActiveCall , null ) ; com.android.server.telecom.tests.ConnectionServiceFocusListener connSvrFocusListener = com.android.server.telecom.tests.ConnectionServiceFocusManagerTest.getConnectionServiceFocusListener ( mActiveConnectionService ) ; connSvrFocusListener.onConnectionServiceReleased ( mNewConnectionService ) ; org.junit.Assert.assertEquals ( mActiveCall , mFocusManagerUT.getCurrentFocusCall ( ) ) ; org.junit.Assert.assertEquals ( mActiveConnectionService , mFocusManagerUT.getCurrentFocusConnectionService ( ) ) ; }
Source:
public static void addDebugBridgeChangeListener ( com.android.ddmlib.AndroidDebugBridge.IDebugBridgeChangeListener listener ) { synchronized ( com.android.ddmlib.AndroidDebugBridge.sLock ) { if ( ( com.android.ddmlib.AndroidDebugBridge.sBridgeListeners.contains ( listener ) ) == false ) { com.android.ddmlib.AndroidDebugBridge.sBridgeListeners.add ( listener ) ; if ( ( com.android.ddmlib.AndroidDebugBridge.sThis ) != null ) { try { listener.bridgeChanged ( com.android.ddmlib.AndroidDebugBridge.sThis ) ; } catch ( java.lang.Exception e ) { com.android.ddmlib.Log.e ( com.android.ddmlib.AndroidDebugBridge.DDMS , e ) ; } } } } }

Target:
public static void addDebugBridgeChangeListener ( com.android.ddmlib.AndroidDebugBridge.IDebugBridgeChangeListener listener ) { synchronized ( com.android.ddmlib.AndroidDebugBridge.sLock ) { if ( ! ( com.android.ddmlib.AndroidDebugBridge.sBridgeListeners.contains ( listener ) ) ) { com.android.ddmlib.AndroidDebugBridge.sBridgeListeners.add ( listener ) ; if ( ( com.android.ddmlib.AndroidDebugBridge.sThis ) != null ) { try { listener.bridgeChanged ( com.android.ddmlib.AndroidDebugBridge.sThis ) ; } catch ( java.lang.Exception e ) { com.android.ddmlib.Log.e ( com.android.ddmlib.AndroidDebugBridge.DDMS , e ) ; } } } } }