auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void handleMessage ( android.os.Message msg ) { synchronized ( com.android.internal.telephony.uicc.UiccController.mLock ) { switch ( msg.what ) { case com.android.internal.telephony.uicc.UiccController.EVENT_ICC_STATUS_CHANGED : if ( com.android.internal.telephony.uicc.UiccController.DBG ) log ( "Received EVENT_ICC_STATUS_CHANGED, calling getIccCardStatus" ) ; mCi.getIccCardStatus ( obtainMessage ( com.android.internal.telephony.uicc.UiccController.EVENT_GET_ICC_STATUS_DONE ) ) ; break ; case com.android.internal.telephony.uicc.UiccController.EVENT_GET_ICC_STATUS_DONE : if ( com.android.internal.telephony.uicc.UiccController.DBG ) log ( "Received EVENT_GET_ICC_STATUS_DONE" ) ; android.os.AsyncResult ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; onGetIccCardStatusDone ( ar ) ; break ; default : android.util.Log.e ( com.android.internal.telephony.uicc.UiccController.LOG_TAG , ( " Unknown Event " + ( msg.what ) ) ) ; } } }

Target:
public void handleMessage ( android.os.Message msg ) { synchronized ( com.android.internal.telephony.uicc.UiccController.mLock ) { switch ( msg.what ) { case com.android.internal.telephony.uicc.UiccController.EVENT_ICC_STATUS_CHANGED : if ( com.android.internal.telephony.uicc.UiccController.DBG ) log ( "Received EVENT_ICC_STATUS_CHANGED, calling getIccCardStatus" ) ; mCi.getIccCardStatus ( obtainMessage ( com.android.internal.telephony.uicc.UiccController.EVENT_GET_ICC_STATUS_DONE ) ) ; break ; case com.android.internal.telephony.uicc.UiccController.EVENT_GET_ICC_STATUS_DONE : if ( com.android.internal.telephony.uicc.UiccController.DBG ) log ( "Received EVENT_GET_ICC_STATUS_DONE" ) ; android.os.AsyncResult ar = ( ( android.os.AsyncResult ) ( msg.obj ) ) ; onGetIccCardStatusDone ( ar ) ; break ; default : android.telephony.Rlog.e ( com.android.internal.telephony.uicc.UiccController.LOG_TAG , ( " Unknown Event " + ( msg.what ) ) ) ; } } }
Source:
public void onSdkLoaded ( ) { com.android.sdklib.IAndroidTarget oldTarget = getRenderingTarget ( ) ; preRenderingTargetChangeCleanUp ( oldTarget ) ; com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.sdklib.IAndroidTarget target = currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; if ( target != null ) { mConfigComposite.onSdkLoaded ( target ) ; mConfigListener.onConfigurationChange ( ) ; } } }

Target:
public void onSdkLoaded ( ) { com.android.sdklib.IAndroidTarget oldTarget = getRenderingTarget ( ) ; preRenderingTargetChangeCleanUp ( oldTarget ) ; computeSdkVersion ( ) ; com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.sdklib.IAndroidTarget target = currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; if ( target != null ) { mConfigComposite.onSdkLoaded ( target ) ; mConfigListener.onConfigurationChange ( ) ; } } }
Source:
private java.lang.String runFlushTest ( int sensorType , int maxBatchReportLatencySec , int instructionsResId ) throws java.lang.Throwable { getTestLogger ( ) . logInstructions ( instructionsResId ) ; waitForUserToBegin ( ) ; int maxBatchReportLatencyUs = ( ( int ) ( java.util.concurrent.TimeUnit.SECONDS.toMicros ( maxBatchReportLatencySec ) ) ) ; android.hardware.cts.helpers.TestSensorEnvironment environment = new android.hardware.cts.helpers.TestSensorEnvironment ( getApplicationContext ( ) , sensorType , com.android.cts.verifier.sensors.BatchingTestActivity.SENSOR_BATCHING_RATE_US , maxBatchReportLatencyUs ) ; int flushDurationSec = maxBatchReportLatencySec / 2 ; android.hardware.cts.helpers.sensoroperations.TestSensorFlushOperation operation = new android.hardware.cts.helpers.sensoroperations.TestSensorFlushOperation ( environment , flushDurationSec , java.util.concurrent.TimeUnit.SECONDS ) ; return executeTest ( operation ) ; }

Target:
private java.lang.String runFlushTest ( int sensorType , int maxBatchReportLatencySec , int instructionsResId ) throws java.lang.Throwable { getTestLogger ( ) . logInstructions ( instructionsResId ) ; waitForUserToBegin ( ) ; int maxBatchReportLatencyUs = ( ( int ) ( java.util.concurrent.TimeUnit.SECONDS.toMicros ( maxBatchReportLatencySec ) ) ) ; android.hardware.cts.helpers.TestSensorEnvironment environment = new android.hardware.cts.helpers.TestSensorEnvironment ( getApplicationContext ( ) , sensorType , com.android.cts.verifier.sensors.BatchingTestActivity.SENSOR_BATCHING_RATE_US , maxBatchReportLatencyUs ) ; int flushDurationSec = maxBatchReportLatencySec / 2 ; android.hardware.cts.helpers.sensoroperations.TestSensorOperation operation = android.hardware.cts.helpers.sensoroperations.TestSensorOperation.createFlushOperation ( environment , flushDurationSec , java.util.concurrent.TimeUnit.SECONDS ) ; return executeTest ( operation ) ; }
Source:
public void testProviderService_supportsParameter_SupportedKeyFormats_Failure ( ) throws java.lang.Exception { java.security.Provider provider = new libcore.java.security.ProviderTest.MockProvider ( "MockProvider" ) { public void setup ( ) { put ( "Signature.FOO" , libcore.java.security.ProviderTest.MockSpi.class . getName ( ) ) ; put ( "Signature.FOO SupportedKeyFormats" , "Invalid" ) ; } } ; java.security.Security.addProvider ( provider ) ; try { java.security.Provider.Service service = provider.getService ( "Signature" , "FOO" ) ; assertFalse ( service.supportsParameter ( new libcore.javax.crypto.MockKey ( ) ) ) ; } finally { java.security.Security.removeProvider ( provider.getName ( ) ) ; } }

Target:
public void testProviderService_supportsParameter_SupportedKeyClasses_Failure ( ) throws java.lang.Exception { java.security.Provider provider = new libcore.java.security.ProviderTest.MockProvider ( "MockProvider" ) { public void setup ( ) { put ( "Signature.FOO" , libcore.java.security.ProviderTest.MockSpi.class . getName ( ) ) ; put ( "Signature.FOO SupportedKeyClasses" , java.security.interfaces.RSAPrivateKey.class . getName ( ) ) ; } } ; java.security.Security.addProvider ( provider ) ; try { java.security.Provider.Service service = provider.getService ( "Signature" , "FOO" ) ; assertFalse ( service.supportsParameter ( new libcore.javax.crypto.MockKey ( ) ) ) ; } finally { java.security.Security.removeProvider ( provider.getName ( ) ) ; } }
Source:
public void testWrongVariantLevelAbiFilter ( ) { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( 1 ) ) ; java.util.List < java.io.File > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , com.google.common.collect.Sets.newHashSet ( "bar" , "foo" ) , 160 , "zzz" ) ; assertEquals ( 0 , result.size ( ) ) ; }

Target:
public void testWrongVariantLevelAbiFilter ( ) { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( 1 ) ) ; java.util.List < com.android.build.OutputFile > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , com.google.common.collect.Sets.newHashSet ( "bar" , "foo" ) , 160 , "zzz" ) ; assertEquals ( 0 , result.size ( ) ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { assertTrue ( "Failed to clear owner" , removeAdmin ( ( ( ( com.android.cts.devicepolicy.UserRestrictionsTest.DEVICE_ADMIN_PKG ) + "/" ) + ( com.android.cts.devicepolicy.UserRestrictionsTest.ADMIN_RECEIVER_TEST_CLASS ) ) , mDeviceOwnerUserId ) ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { if ( mHasFeature ) { if ( mRemoveOwnerInTearDown ) { assertTrue ( "Failed to clear owner" , removeAdmin ( ( ( ( com.android.cts.devicepolicy.UserRestrictionsTest.DEVICE_ADMIN_PKG ) + "/" ) + ( com.android.cts.devicepolicy.UserRestrictionsTest.ADMIN_RECEIVER_TEST_CLASS ) ) , mDeviceOwnerUserId ) ) ; assertTrue ( "Some user restrictions are still set" , runTests ( "userrestrictions.CheckNoOwnerRestrictionsTest" , mDeviceOwnerUserId ) ) ; } removeTestUsers ( ) ; getDevice ( ) . uninstallPackage ( com.android.cts.devicepolicy.UserRestrictionsTest.DEVICE_ADMIN_PKG ) ; } super . tearDown ( ) ; }
Source:
private void assertByteBufferEquals ( java.nio.ByteBuffer buffer , java.nio.ByteBuffer buffer2 ) { assertTrue ( ( ( ( ( ( ( ( buffer.toString ( ) ) + " vs " ) + ( buffer2.toString ( ) ) ) + ", byte array: " ) + ( com.android.apksig.internal.util.HexEncoding.encode ( buffer.array ( ) ) ) ) + " vs " ) + ( com.android.apksig.internal.util.HexEncoding.encode ( buffer2.array ( ) ) ) ) , ( ( buffer.compareTo ( buffer2 ) ) == 0 ) ) ; }

Target:
private void assertByteBufferEquals ( java.nio.ByteBuffer buffer , java.nio.ByteBuffer buffer2 ) { org.junit.Assert.assertTrue ( ( ( ( ( ( ( ( buffer.toString ( ) ) + " vs " ) + ( buffer2.toString ( ) ) ) + ", byte array: " ) + ( com.android.apksig.internal.util.HexEncoding.encode ( buffer.array ( ) ) ) ) + " vs " ) + ( com.android.apksig.internal.util.HexEncoding.encode ( buffer2.array ( ) ) ) ) , ( ( buffer.compareTo ( buffer2 ) ) == 0 ) ) ; }
Source:
public void deleteOdex ( java.lang.String apkPath , java.lang.String instructionSet , java.lang.String outputPath ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.deleteOdex ( apkPath , instructionSet , outputPath ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void deleteOdex ( java.lang.String apkPath , java.lang.String instructionSet , java.lang.String outputPath ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.deleteOdex ( apkPath , instructionSet , outputPath ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public void createOatDir ( java.lang.String oatDir , java.lang.String dexInstructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.createOatDir ( oatDir , dexInstructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void markBootComplete ( java.lang.String instructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.markBootComplete ( instructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
static native void stackArgsSignExtendedMips64 ( int i1 , int i2 , int i3 , int i4 , int i5 , int i6 , int i7 , int i8 ) ;

Target:
native void forceStackParameters_Fast ( int i1 , int i2 , int i3 , int i4 , int i5 , int i6 , int i8 , int i9 , float f1 , float f2 , float f3 , float f4 , float f5 , float f6 , float f7 , float f8 , float f9 ) ;
Source:
private void resetMatcher ( ) { if ( ( matcher ) == null ) { matcher = delimiter.matcher ( buffer ) ; } else { matcher.reset ( buffer ) ; } matcher.useTransparentBounds ( true ) ; matcher.useAnchoringBounds ( false ) ; matcher.region ( findStartIndex , bufferLength ) ; }

Target:
private void initialize ( java.lang.Readable input ) { this . input = input ; matcher = delimiter.matcher ( "" ) ; matcher.useTransparentBounds ( true ) ; matcher.useAnchoringBounds ( false ) ; }
Source:
public void test_de ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex de = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.GERMAN ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( de , "ßind" , "S" ) ; }

Target:
public void test_de ( ) throws java.lang.Exception { libcore.icu.AlphabeticIndex.ImmutableIndex de = libcore.icu.AlphabeticIndexTest.createIndex ( java.util.Locale.GERMAN ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( de , "ßind" , "S" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( de , "Sacher" , "S" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( de , "Schiller" , "Sch" ) ; libcore.icu.AlphabeticIndexTest.assertHasLabel ( de , "Steiff" , "St" ) ; }
Source:
public void run ( ) { com.android.rs.test.RenderScript pRS = com.android.rs.test.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_single_source_script s = new com.android.rs.test.ScriptC_single_source_script ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.invoke_entrypoint ( testAllocation1 , testAllocation2 ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { com.android.rs.test.RenderScript pRS = com.android.rs.test.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_single_source_script s = new com.android.rs.test.ScriptC_single_source_script ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.invoke_entrypoint ( testAllocation1 , testAllocation2 ) ; s.forEach_oldFoo ( testAllocation2 , testAllocation2 ) ; s.forEach_oldGoo ( testAllocation2 , testAllocation2 ) ; s.invoke_validate ( testAllocation2 ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }
Source:
private static float getWeightSum ( com.android.ide.common.api.INode linearLayout ) { java.lang.String weightSum = linearLayout.getStringAttr ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_WEIGHT_SUM ) ; float sum = - 1.0F ; if ( weightSum != null ) { try { sum = java.lang.Float.parseFloat ( weightSum ) ; return sum ; } catch ( java.lang.NumberFormatException nfe ) { } } return com.android.ide.common.layout.LinearLayoutRule.getSumOfWeights ( linearLayout ) ; }

Target:
private static float getWeightSum ( com.android.ide.common.api.INode linearLayout ) { java.lang.String weightSum = linearLayout.getStringAttr ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_WEIGHT_SUM ) ; float sum = - 1.0F ; if ( weightSum != null ) { try { sum = java.lang.Float.parseFloat ( weightSum ) ; return sum ; } catch ( java.lang.NumberFormatException nfe ) { } } return com.android.ide.common.layout.LinearLayoutRule.getSumOfWeights ( linearLayout ) ; }
Source:
public static android.media.MediaFile.MediaFileType getFileType ( java.lang.String path ) { int lastDot = path.lastIndexOf ( "." ) ; if ( lastDot < 0 ) return null ; return android.media.MediaFile.sFileTypeMap.get ( path.substring ( ( lastDot + 1 ) ) . toUpperCase ( ) ) ; }

Target:
public static android.media.MediaFile.MediaFileType getFileType ( java.lang.String path ) { int lastDot = path.lastIndexOf ( '.' ) ; if ( lastDot < 0 ) return null ; return android.media.MediaFile.sFileTypeMap.get ( path.substring ( ( lastDot + 1 ) ) . toUpperCase ( java.util.Locale.ROOT ) ) ; }
Source:
public void enter ( ) { android.util.Log.i ( com.android.bluetooth.hearingaid.HearingAidStateMachine.TAG , ( ( ( "Enter Connected(" + ( mDevice ) ) + "): " ) + ( com.android.bluetooth.hearingaid.HearingAidStateMachine.messageWhatToString ( getCurrentMessage ( ) . what ) ) ) ) ; mConnectionState = android.bluetooth.BluetoothProfile.STATE_CONNECTED ; removeDeferredMessages ( com.android.bluetooth.hearingaid.HearingAidStateMachine.CONNECT ) ; broadcastConnectionState ( mConnectionState , mLastConnectionState ) ; broadcastAudioState ( BluetoothHearingAid.STATE_NOT_PLAYING , BluetoothHearingAid.STATE_PLAYING ) ; }

Target:
public void exit ( ) { log ( ( ( ( "Exit Connected(" + ( mDevice ) ) + "): " ) + ( com.android.bluetooth.hearingaid.HearingAidStateMachine.messageWhatToString ( getCurrentMessage ( ) . what ) ) ) ) ; mLastConnectionState = android.bluetooth.BluetoothProfile.STATE_CONNECTED ; }
Source:
public void onStop ( ) { endAnimation ( ) ; falsingManager.onScreenOff ( ) ; if ( getActivity ( ) . isFinishing ( ) ) { setAnimationState ( com.android.incallui.answer.impl.answermethod.FlingUpDownMethod.AnimationState.COMPLETED ) ; } super . onStop ( ) ; }

Target:
public void onStop ( ) { android.os.Trace.beginSection ( "FlingUpDownMethod.onStop" ) ; endAnimation ( ) ; falsingManager.onScreenOff ( ) ; if ( getActivity ( ) . isFinishing ( ) ) { setAnimationState ( com.android.incallui.answer.impl.answermethod.FlingUpDownMethod.AnimationState.COMPLETED ) ; } super . onStop ( ) ; android.os.Trace.endSection ( ) ; }
Source:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedPackage pkg , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findPackage ( pkg ) ; if ( c == null ) { return null ; } if ( ( c.annotations ) != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : c.annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }

Target:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedClass cls , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findClass ( cls ) ; if ( c == null ) { return null ; } java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > annotations = c.getAnnotations ( ) ; if ( annotations != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }
Source:
private boolean validatePage ( ) { boolean ok = true ; if ( mTypeCombo.getText ( ) . equals ( WrapInWizard.SEPARATOR_LABEL ) ) { setErrorMessage ( "Select a layout type" ) ; ok = false ; } if ( ok ) { setErrorMessage ( null ) ; com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ChangeLayoutRefactoring refactoring = ( ( com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ChangeLayoutRefactoring ) ( getRefactoring ( ) ) ) ; refactoring.setType ( mTypeCombo.getText ( ) ) ; } setPageComplete ( ok ) ; return ok ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { validatePage ( ) ; mFlatten.setVisible ( mTypeCombo.getText ( ) . equals ( com.android.ide.common.layout.LayoutConstants.FQCN_RELATIVE_LAYOUT ) ) ; }
Source:
public static com.android.tools.perflib.heap.Instance [ ] instancesOf ( com.android.tools.perflib.heap.State state , java.lang.String baseClassName ) { com.android.tools.perflib.heap.ClassObj theClass = state.findClass ( baseClassName ) ; if ( theClass == null ) { throw new java.lang.IllegalArgumentException ( ( "Class not found: " + baseClassName ) ) ; } com.android.tools.perflib.heap.Instance [ ] instances = new com.android.tools.perflib.heap.Instance [ theClass.mInstances.size ( ) ] ; return theClass.mInstances.toArray ( instances ) ; }

Target:
public static com.android.tools.perflib.heap.Instance [ ] instancesOf ( com.android.tools.perflib.heap.Snapshot snapshot , java.lang.String baseClassName ) { com.android.tools.perflib.heap.ClassObj theClass = snapshot.findClass ( baseClassName ) ; if ( theClass == null ) { throw new java.lang.IllegalArgumentException ( ( "Class not found: " + baseClassName ) ) ; } com.android.tools.perflib.heap.Instance [ ] instances = new com.android.tools.perflib.heap.Instance [ theClass.mInstances.size ( ) ] ; return theClass.mInstances.toArray ( instances ) ; }
Source:
protected void sendData ( java.lang.String destAddr , java.lang.String scAddr , int destPort , byte [ ] data , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent ) { com.android.internal.telephony.gsm.SmsMessage.SubmitPdu pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu ( scAddr , destAddr , destPort , data , ( deliveryIntent != null ) ) ; if ( pdu != null ) { sendRawPdu ( pdu.encodedScAddress , pdu.encodedMessage , sentIntent , deliveryIntent , destAddr ) ; } else { android.util.Log.e ( com.android.internal.telephony.gsm.GsmSMSDispatcher.TAG , "GsmSMSDispatcher.sendData(): getSubmitPdu() returned null" ) ; } }

Target:
protected void sendData ( java.lang.String destAddr , java.lang.String scAddr , int destPort , byte [ ] data , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent ) { com.android.internal.telephony.gsm.SmsMessage.SubmitPdu pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu ( scAddr , destAddr , destPort , data , ( deliveryIntent != null ) ) ; if ( pdu != null ) { sendRawPdu ( pdu.encodedScAddress , pdu.encodedMessage , sentIntent , deliveryIntent , destAddr ) ; } else { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.GsmSMSDispatcher.TAG , "GsmSMSDispatcher.sendData(): getSubmitPdu() returned null" ) ; } }
Source:
private static void addAltName ( java.util.Map < java.lang.String , libcore.tlswire.handshake.CipherSuite > byName , java.lang.String name , java.lang.String altName ) { libcore.tlswire.handshake.CipherSuite cipherSuite = byName.get ( name ) ; if ( cipherSuite == null ) { throw new java.lang.IllegalArgumentException ( ( "Cipher suite not found: " + name ) ) ; } byName.put ( altName , cipherSuite ) ; }

Target:
public java.lang.String getAndroidName ( ) { return ( androidName ) != null ? androidName : name ; }
Source:
public void disconnect ( ) { if ( ( ( mConnection ) != null ) && ( ( mSrcContext ) != null ) ) { mSrcContext.unbindService ( mConnection ) ; } if ( ( mSrcHandler ) != null ) { replyDisconnected ( com.android.internal.util.AsyncChannel.STATUS_SUCCESSFUL ) ; } }

Target:
public void disconnect ( ) { if ( ( ( mConnection ) != null ) && ( ( mSrcContext ) != null ) ) { mSrcContext.unbindService ( mConnection ) ; } if ( ( mSrcHandler ) != null ) { replyDisconnected ( com.android.internal.util.AsyncChannel.STATUS_SUCCESSFUL ) ; } if ( ( ( ( mConnection ) == null ) && ( ( mDstMessenger ) != null ) ) && ( ( mDeathMonitor ) != null ) ) { mDstMessenger.getBinder ( ) . unlinkToDeath ( mDeathMonitor , 0 ) ; } }
Source:
public static java.io.InputStream findEntryInputStream ( java.util.zip.ZipFile zipFile , java.lang.String entryPath ) throws java.io.IOException { java.util.zip.ZipEntry entry = zipFile.getEntry ( entryPath ) ; if ( ( entry == null ) || ( entry.isDirectory ( ) ) ) return null ; if ( ( ! ( entryPath.endsWith ( "/" ) ) ) && ( ( zipFile.getEntry ( ( entryPath + "/" ) ) ) != null ) ) return null ; return new java.io.BufferedInputStream ( zipFile.getInputStream ( entry ) ) ; }

Target:
public static java.io.InputStream findEntryInputStream ( java.util.zip.ZipFile zipFile , java.lang.String entryPath ) throws java.io.IOException { java.util.zip.ZipEntry entry = zipFile.getEntry ( entryPath ) ; if ( entry == null ) return null ; return com.intellij.updater.Utils.findEntryInputStreamForEntry ( zipFile , entry ) ; }
Source:
public org.gradle.tooling.model.DomainObjectSet < ? extends org.gradle.tooling.model.idea.IdeaSourceDirectory > getGeneratedSourceDirectories ( ) { HEAD ( 1507 ) ; org.jetbrains.plugins.gradle.tooling.internal.ab Merge ; }

Target:
public org.gradle.tooling.model.DomainObjectSet < ? extends org.gradle.tooling.model.idea.IdeaSourceDirectory > getGeneratedSourceDirectories ( ) { java.util.List < org.gradle.tooling.model.idea.IdeaSourceDirectory > generatedSourceDirectories = new java.util.ArrayList < org.gradle.tooling.model.idea.IdeaSourceDirectory > ( ) ; for ( org.gradle.tooling.model.idea.IdeaSourceDirectory sourceDirectory : mySourceDirectories ) { if ( sourceDirectory.isGenerated ( ) ) { generatedSourceDirectories.add ( sourceDirectory ) ; } } return org.gradle.tooling.model.internal.ImmutableDomainObjectSet.of ( generatedSourceDirectories ) ; }
Source:
public java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > getConfiguredFrameworkResources ( ) { if ( ( ( mConfiguredFrameworkRes ) == null ) && ( ( mConfigComposite ) != null ) ) { com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository frameworkRes = getFrameworkResources ( ) ; if ( frameworkRes == null ) { com.android.ide.eclipse.adt.AdtPlugin.log ( IStatus.ERROR , "Failed to get ProjectResource for the framework" ) ; } else { mConfiguredFrameworkRes = frameworkRes.getConfiguredResources ( mConfigComposite.getCurrentConfig ( ) ) ; } } return mConfiguredFrameworkRes ; }

Target:
public java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > getConfiguredFrameworkResources ( ) { if ( ( ( mConfiguredFrameworkRes ) == null ) && ( ( mConfigComposite ) != null ) ) { com.android.ide.common.resources.ResourceRepository frameworkRes = getFrameworkResources ( ) ; if ( frameworkRes == null ) { com.android.ide.eclipse.adt.AdtPlugin.log ( IStatus.ERROR , "Failed to get ProjectResource for the framework" ) ; } else { mConfiguredFrameworkRes = frameworkRes.getConfiguredResources ( mConfigComposite.getCurrentConfig ( ) ) ; } } return mConfiguredFrameworkRes ; }
Source:
void start ( ) { android.os.HandlerThread thread = new android.os.HandlerThread ( "BluetoothScanManager" ) ; thread.start ( ) ; mHandler = new com.android.bluetooth.gatt.ScanManager.ClientHandler ( thread.getLooper ( ) ) ; if ( ( mDm ) != null ) { mDm.registerDisplayListener ( mDisplayListener , null ) ; } }

Target:
void start ( ) { android.os.HandlerThread thread = new android.os.HandlerThread ( "BluetoothScanManager" ) ; thread.start ( ) ; mHandler = new com.android.bluetooth.gatt.ScanManager.ClientHandler ( thread.getLooper ( ) ) ; if ( ( mDm ) != null ) { mDm.registerDisplayListener ( mDisplayListener , null ) ; } if ( ( mActivityManager ) != null ) { mActivityManager.addOnUidImportanceListener ( mUidImportanceListener , com.android.bluetooth.gatt.ScanManager.FOREGROUND_IMPORTANCE_CUTOFF ) ; } }
Source:
public static void build ( org.eclipse.core.resources.IProject project , org.eclipse.core.runtime.IProgressMonitor monitor , boolean fullBuild ) throws org.eclipse.core.runtime.CoreException { project.build ( IncrementalProjectBuilder.INCREMENTAL_BUILD , monitor ) ; if ( fullBuild ) { java.util.Map < java.lang.String , java.lang.String > args = new java.util.TreeMap < java.lang.String , java.lang.String > ( ) ; args.put ( PostCompilerBuilder.POST_C_REQUESTED , "" ) ; project.build ( IncrementalProjectBuilder.FULL_BUILD , PostCompilerBuilder.ID , args , monitor ) ; } }

Target:
public static void build ( org.eclipse.core.resources.IProject project , org.eclipse.core.runtime.IProgressMonitor monitor , boolean fullBuild ) throws org.eclipse.core.runtime.CoreException { project.build ( IncrementalProjectBuilder.INCREMENTAL_BUILD , monitor ) ; if ( fullBuild && ( com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . getBuildSkipPostCompileOnFileSave ( ) ) ) { java.util.Map < java.lang.String , java.lang.String > args = new java.util.TreeMap < java.lang.String , java.lang.String > ( ) ; args.put ( PostCompilerBuilder.POST_C_REQUESTED , "" ) ; project.build ( IncrementalProjectBuilder.FULL_BUILD , PostCompilerBuilder.ID , args , monitor ) ; } }
Source:
public static < E > com.google.common.collect.ImmutableSortedSet < E > copyOfSorted ( java.util.SortedSet < E > sortedSet ) { java.util.Comparator < ? super E > comparator = com.google.common.collect.SortedIterables.comparator ( sortedSet ) ; E [ ] elements = ( ( E [ ] ) ( sortedSet.toArray ( ) ) ) ; if ( ( elements.length ) == 0 ) { return com.google.common.collect.ImmutableSortedSet.emptySet ( comparator ) ; } else { return new com.google.common.collect.RegularImmutableSortedSet < E > ( com.google.common.collect.ImmutableList.< E > asImmutableList ( elements ) , comparator ) ; } }

Target:
public static < E extends java.lang.Comparable < ? super E > > com.google.common.collect.ImmutableSortedSet < E > copyOf ( E [ ] elements ) { return com.google.common.collect.ImmutableSortedSet.construct ( com.google.common.collect.Ordering.natural ( ) , elements.length , elements.clone ( ) ) ; }
Source:
public java.lang.String flatten ( ) { java.lang.StringBuilder flattened = new java.lang.StringBuilder ( ) ; for ( java.lang.String k : mMap.keySet ( ) ) { flattened.append ( k ) ; flattened.append ( "=" ) ; flattened.append ( mMap.get ( k ) ) ; flattened.append ( ";" ) ; } flattened.deleteCharAt ( ( ( flattened.length ( ) ) - 1 ) ) ; return flattened.toString ( ) ; }

Target:
public java.lang.String flatten ( ) { java.lang.StringBuilder flattened = new java.lang.StringBuilder ( 128 ) ; for ( java.lang.String k : mMap.keySet ( ) ) { flattened.append ( k ) ; flattened.append ( "=" ) ; flattened.append ( mMap.get ( k ) ) ; flattened.append ( ";" ) ; } flattened.deleteCharAt ( ( ( flattened.length ( ) ) - 1 ) ) ; return flattened.toString ( ) ; }
Source:
public void test_getSystemClassLoader ( ) { java.lang.ClassLoader cl = java.lang.ClassLoader.getSystemClassLoader ( ) ; java.io.InputStream is = cl.getResourceAsStream ( "hyts_Foo.c" ) ; assertNotNull ( "Failed to find resource from system classpath" , is ) ; try { is.close ( ) ; } catch ( java.io.IOException e ) { } }

Target:
private static void assertGetResourceAsStreamNotNull ( java.lang.ClassLoader classLoader , java.lang.String resourceName ) throws java.io.IOException { java.io.InputStream is = null ; try { is = classLoader.getResourceAsStream ( resourceName ) ; assertNotNull ( is ) ; } finally { if ( is != null ) { is.close ( ) ; } } }
Source:
public static boolean isSupportedLocale ( java.util.Locale locale ) { java.util.Locale [ ] locales = java.util.Locale.getAvailableLocales ( ) ; for ( java.util.Locale availableLocale : locales ) { if ( locale.equals ( availableLocale ) ) { return true ; } } return false ; }

Target:
public static boolean isSupportedLocale ( android.content.Context context , java.util.Locale locale ) { java.lang.String [ ] locales = context.getAssets ( ) . getLocales ( ) ; for ( java.lang.String availableLocale : locales ) { if ( locale.toString ( ) . equals ( availableLocale ) ) { return true ; } } return false ; }
Source:
public boolean startWpsPbc ( java.lang.String iface , java.lang.String bssid ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPbc ( iface , bssid ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PBC" ) ) ; } else { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PBC " ) + bssid ) ) ; } } } }

Target:
public boolean startWpsPbc ( java.lang.String iface , java.lang.String bssid ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPbc ( iface , bssid ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PBC" ) ) ; } else { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PBC " ) + bssid ) ) ; } } } }
Source:
public void setVar ( int index , android.support.v8.renderscript.BaseObj o ) { mRS.nScriptSetVarObj ( getID ( mRS ) , index , ( o == null ? 0 : o.getID ( mRS ) ) ) ; }

Target:
public void setVar ( int index , android.support.v8.renderscript.BaseObj o ) { if ( mUseIncSupp ) { long oInc = getDummyAlloc ( ( ( android.support.v8.renderscript.Allocation ) ( o ) ) ) ; mRS.nScriptSetVarObj ( getID ( mRS ) , index , ( o == null ? 0 : oInc ) , mUseIncSupp ) ; } else { mRS.nScriptSetVarObj ( getID ( mRS ) , index , ( o == null ? 0 : o.getID ( mRS ) ) , mUseIncSupp ) ; } }
Source:
public void run ( com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws java.lang.Exception { if ( ! ( getFilter ( ) . accept ( this . getClass ( ) , type ) ) ) { return ; } com.android.jack.backend.dex.DexWritingTool writingTool = com.android.sched.util.config.ThreadConfig.get ( com.android.jack.backend.dex.DexFileWriter.DEX_WRITING_POLICY ) ; try { writingTool.merge ( type ) ; } catch ( com.android.jack.backend.dex.DexWritingException e ) { com.android.jack.Jack.getSession ( ) . getReporter ( ) . report ( Severity.FATAL , e ) ; throw new com.android.jack.JackAbortException ( e ) ; } }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) { com.android.jack.backend.dex.DexWritingTool writingTool = com.android.sched.util.config.ThreadConfig.get ( com.android.jack.backend.dex.DexFileWriter.DEX_WRITING_POLICY ) ; try { writingTool.write ( outputVDir ) ; } catch ( com.android.jack.backend.dex.DexWritingException e ) { session.getReporter ( ) . report ( Severity.FATAL , e ) ; throw new com.android.jack.JackAbortException ( e ) ; } }
Source:
public void onAvailable ( android.net.Network network ) { if ( com.android.carrierdefaultapp.CaptivePortalLoginActivity.DBG ) com.android.carrierdefaultapp.CaptivePortalLoginActivity.logd ( ( "Network available: " + network ) ) ; mCm.bindProcessToNetwork ( network ) ; mNetwork = network ; runOnUiThreadIfNotFinishing ( ( ) -> { if ( mReload ) { mWebView.reload ( ) ; } else { mWebView.loadData ( "" , "text/html" , null ) ; } } ) ; }

Target:
private void setNetwork ( android.net.Network network ) { if ( network != null ) { mCm.bindProcessToNetwork ( network ) ; mCm.setProcessDefaultNetworkForHostResolution ( android.net.dns.ResolvUtil.getNetworkWithUseLocalNameserversFlag ( network ) ) ; } mNetwork = network ; }
Source:
public boolean setRadioPower ( boolean turnOn ) { final com.android.internal.telephony.Phone defaultPhone = com.android.internal.telephony.PhoneFactory.getDefaultPhone ( ) ; if ( defaultPhone != null ) { defaultPhone.setRadioPower ( turnOn ) ; return true ; } else { com.android.phone.PhoneInterfaceManager.loge ( "There's no default phone." ) ; return false ; } }

Target:
public boolean setRadioPower ( boolean turnOn ) { enforceModifyPermission ( ) ; final com.android.internal.telephony.Phone defaultPhone = com.android.internal.telephony.PhoneFactory.getDefaultPhone ( ) ; if ( defaultPhone != null ) { defaultPhone.setRadioPower ( turnOn ) ; return true ; } else { com.android.phone.PhoneInterfaceManager.loge ( "There's no default phone." ) ; return false ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JThisRef jThisRef ) { com.android.jack.ir.ast.JThis jThis = targetMethod.getThis ( ) ; assert jThis != null ; assert jThis.getType ( ) . isSameType ( jThisRef.getType ( ) ) ; expression = new com.android.jack.ir.ast.JThisRef ( jThisRef.getSourceInfo ( ) , jThis ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JThisRef jThisRef ) { com.android.jack.ir.ast.JThis jThis = targetMethod.getThis ( ) ; assert jThis != null ; assert jThis.getType ( ) . isSameType ( jThisRef.getType ( ) ) ; expression = jThis.makeRef ( jThisRef.getSourceInfo ( ) ) ; return false ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( this . getClass ( ) . getSimpleName ( ) ) ; setupMockPackagePermissionChecks ( ) ; mCdmaSmsDispatcherTestHandler = new com.android.internal.telephony.cdma.CdmaSmsDispatcherTest.CdmaSmsDispatcherTestHandler ( TAG ) ; mCdmaSmsDispatcherTestHandler.start ( ) ; waitUntilReady ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( this . getClass ( ) . getSimpleName ( ) ) ; setupMockPackagePermissionChecks ( ) ; doReturn ( mSmsUsageMonitor ) . when ( mSmsDispatchersController ) . getUsageMonitor ( ) ; mCdmaSmsDispatcherTestHandler = new com.android.internal.telephony.cdma.CdmaSmsDispatcherTest.CdmaSmsDispatcherTestHandler ( TAG ) ; mCdmaSmsDispatcherTestHandler.start ( ) ; waitUntilReady ( ) ; }
Source:
public void onDestroyed ( android.telecom.Connection connection ) { disconnectConferenceParticipants ( ) ; }

Target:
public void onConnectionCapabilitiesChanged ( android.telecom.Connection c , int connectionCapabilities ) { android.telecom.Log.d ( this , ( "onConnectionCapabilitiesChanged: Connection: %s," + " connectionCapabilities: %s" ) , c , connectionCapabilities ) ; int capabilites = this . getConnectionCapabilities ( ) ; boolean isVideoConferencingSupported = ( ( mConferenceHost ) == null ) ? false : mConferenceHost.isCarrierVideoConferencingSupported ( ) ; setConnectionCapabilities ( applyHostCapabilities ( capabilites , connectionCapabilities , isVideoConferencingSupported ) ) ; }
Source:
static void add ( java.lang.ref.Reference < ? > list ) { synchronized ( java.lang.ref.ReferenceQueue.class ) { if ( ( java.lang.ref.ReferenceQueue.unenqueued ) == null ) { java.lang.ref.ReferenceQueue.unenqueued = list ; } else { java.lang.ref.Reference < ? > next = java.lang.ref.ReferenceQueue.unenqueued.pendingNext ; java.lang.ref.ReferenceQueue.unenqueued.pendingNext = list.pendingNext ; list.pendingNext = next ; } java.lang.ref.ReferenceQueue.class . notifyAll ( ) ; } }

Target:
static void add ( java.lang.ref.Reference < ? > list ) { synchronized ( java.lang.ref.ReferenceQueue.class ) { if ( ( java.lang.ref.ReferenceQueue.unenqueued ) == null ) { java.lang.ref.ReferenceQueue.unenqueued = list ; } else { java.lang.ref.Reference < ? > last = java.lang.ref.ReferenceQueue.unenqueued ; while ( ( last.pendingNext ) != ( java.lang.ref.ReferenceQueue.unenqueued ) ) { last = last.pendingNext ; } last.pendingNext = list ; last = list ; while ( ( last.pendingNext ) != list ) { last = last.pendingNext ; } last.pendingNext = java.lang.ref.ReferenceQueue.unenqueued ; } java.lang.ref.ReferenceQueue.class . notifyAll ( ) ; } }
Source:
public final void release ( ) throws android.os.RemoteException { synchronized ( this ) { if ( isReferenced ( ) ) { throw new java.lang.IllegalStateException ( "Cannot release a resource that has active references!" ) ; } if ( ( mResourceId ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { return ; } releaseResources ( ) ; getResourceTracker ( ) . give ( ) ; if ( ( mBinder ) != null ) { mBinder.unlinkToDeath ( this , 0 ) ; } mBinder = null ; mResourceId = android.net.IpSecManager.INVALID_RESOURCE_ID ; } }

Target:
public java.lang.String toString ( ) { return new java.lang.StringBuilder ( ) . append ( "{mResourceId=" ) . append ( mResourceId ) . append ( ", pid=" ) . append ( pid ) . append ( ", uid=" ) . append ( uid ) . append ( ", mReferenceCount=" ) . append ( mReferenceCount.get ( ) ) . append ( "}" ) . toString ( ) ; }
Source:
public android.security.KeyStore.State state ( ) { final int ret ; try { ret = mBinder.test ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; throw new java.lang.AssertionError ( e ) ; } switch ( ret ) { case android.security.KeyStore.NO_ERROR : return android.security.KeyStore.State.UNLOCKED ; case android.security.KeyStore.LOCKED : return android.security.KeyStore.State.LOCKED ; case android.security.KeyStore.UNINITIALIZED : return android.security.KeyStore.State.UNINITIALIZED ; default : throw new java.lang.AssertionError ( mError ) ; } }

Target:
public android.security.KeyStore.State state ( int userId ) { final int ret ; try { ret = mBinder.getState ( userId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; throw new java.lang.AssertionError ( e ) ; } switch ( ret ) { case android.security.KeyStore.NO_ERROR : return android.security.KeyStore.State.UNLOCKED ; case android.security.KeyStore.LOCKED : return android.security.KeyStore.State.LOCKED ; case android.security.KeyStore.UNINITIALIZED : return android.security.KeyStore.State.UNINITIALIZED ; default : throw new java.lang.AssertionError ( mError ) ; } }
Source:
public void resize ( int width , int height ) { super . resize ( width , height ) ; }

Target:
public void resize ( int width , int height ) { super . resize ( width , height ) ; mWorldScaleX = ( ( float ) ( mInitialWidth ) ) / width ; mWorldScaleY = ( ( float ) ( mInitialHeight ) ) / height ; mScript.set_gWorldScaleX ( mWorldScaleX ) ; mScript.set_gWorldScaleY ( mWorldScaleY ) ; }
Source:
public java.lang.String getAbiFilter ( ) { return abiFilter ; }

Target:
public java.lang.String getFilter ( java.lang.String filterType ) { if ( ( ( densityFilter ) != null ) && ( filterType.equals ( OutputFile.DENSITY ) ) ) { return densityFilter ; } else if ( ( ( abiFilter ) != null ) && ( filterType.equals ( OutputFile.ABI ) ) ) { return abiFilter ; } return null ; }
Source:
synchronized void nAllocationData1D ( long id , int off , int mip , int count , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData1D ( mContext , id , off , mip , count , d , sizeBytes ) ; }

Target:
synchronized void nAllocationRead1D ( long id , int off , int mip , int count , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt , int mSize , boolean usePadding ) { validate ( ) ; rsnAllocationRead1D ( mContext , id , off , mip , count , d , sizeBytes , dt.mID , mSize , usePadding ) ; }
Source:
public void removeCall ( android.telecom.Call call ) { if ( ! ( mCalls.contains ( call ) ) ) { android.util.Log.e ( com.android.server.telecom.testapps.TestCallList.TAG , "removeCall: Call cannot be removed -- doesn't exist." ) ; return ; } android.util.Log.i ( com.android.server.telecom.testapps.TestCallList.TAG , ( "removeCall: " + call ) ) ; mCalls.remove ( call ) ; call.removeListener ( this ) ; for ( com.android.server.telecom.testapps.TestCallList.Listener l : mListeners ) { l.onCallRemoved ( call ) ; } }

Target:
public void removeCall ( android.telecom.Call call ) { if ( ! ( mCalls.contains ( call ) ) ) { android.util.Log.e ( com.android.server.telecom.testapps.TestCallList.TAG , "removeCall: Call cannot be removed -- doesn't exist." ) ; return ; } android.util.Log.i ( com.android.server.telecom.testapps.TestCallList.TAG , ( "removeCall: " + call ) ) ; mCalls.remove ( call ) ; call.unregisterCallback ( this ) ; for ( com.android.server.telecom.testapps.TestCallList.Listener l : mListeners ) { l.onCallRemoved ( call ) ; } }
Source:
private static com.android.builder.resources.ResourceMerger getResourceMerger ( ) throws com.android.builder.resources.DuplicateResourceException , java.io.IOException { if ( ( com.android.builder.resources.ResourceMergerTest.sResourceMerger ) == null ) { java.io.File root = getRoot ( "baseMerge" ) ; com.android.builder.resources.ResourceSet res = com.android.builder.resources.ResourceSetTest.getBaseResourceSet ( ) ; com.android.builder.resources.ResourceSet overlay = new com.android.builder.resources.ResourceSet ( "overlay" ) ; overlay.addSource ( new java.io.File ( root , "overlay" ) ) ; overlay.loadFromFiles ( ) ; com.android.builder.resources.ResourceMergerTest.sResourceMerger = new com.android.builder.resources.ResourceMerger ( ) ; com.android.builder.resources.ResourceMergerTest.sResourceMerger.addResourceSet ( res ) ; com.android.builder.resources.ResourceMergerTest.sResourceMerger.addResourceSet ( overlay ) ; } return com.android.builder.resources.ResourceMergerTest.sResourceMerger ; }

Target:
private static com.android.builder.resources.ResourceMerger getResourceMerger ( ) throws com.android.builder.resources.DuplicateResourceException , java.io.IOException { if ( ( com.android.builder.resources.ResourceMergerTest.sResourceMerger ) == null ) { java.io.File root = com.android.builder.TestUtils.getRoot ( "baseMerge" ) ; com.android.builder.resources.ResourceSet res = com.android.builder.resources.ResourceSetTest.getBaseResourceSet ( ) ; com.android.builder.resources.ResourceSet overlay = new com.android.builder.resources.ResourceSet ( "overlay" ) ; overlay.addSource ( new java.io.File ( root , "overlay" ) ) ; overlay.loadFromFiles ( ) ; com.android.builder.resources.ResourceMergerTest.sResourceMerger = new com.android.builder.resources.ResourceMerger ( ) ; com.android.builder.resources.ResourceMergerTest.sResourceMerger.addResourceSet ( res ) ; com.android.builder.resources.ResourceMergerTest.sResourceMerger.addResourceSet ( overlay ) ; } return com.android.builder.resources.ResourceMergerTest.sResourceMerger ; }
Source:
private void assertInvalidPinned ( java.security.cert.X509Certificate [ ] chain , javax.net.ssl.X509TrustManager tm , java.lang.String hostname ) throws java.lang.Exception { assertTrue ( tm.getClass ( ) . getName ( ) , ( tm instanceof org.conscrypt.TrustManagerImpl ) ) ; try { org.conscrypt.TrustManagerImpl tmi = ( ( org.conscrypt.TrustManagerImpl ) ( tm ) ) ; tmi.checkServerTrusted ( chain , "RSA" , hostname ) ; fail ( ) ; } catch ( java.security.cert.CertificateException expected ) { } }

Target:
private void assertInvalidPinned ( java.security.cert.X509Certificate [ ] chain , javax.net.ssl.X509TrustManager tm , java.lang.String hostname ) throws java.lang.Exception { assertTrue ( tm.getClass ( ) . getName ( ) , ( tm instanceof org.conscrypt.TrustManagerImpl ) ) ; try { org.conscrypt.TrustManagerImpl tmi = ( ( org.conscrypt.TrustManagerImpl ) ( tm ) ) ; tmi.checkServerTrusted ( chain , "RSA" , new org.conscrypt.TrustManagerImplTest.MySSLSession ( hostname ) ) ; fail ( ) ; } catch ( java.security.cert.CertificateException expected ) { } }
Source:
private static java.lang.Object getSelectedTestProxy ( final com.intellij.openapi.actionSystem.AnActionEvent e ) { return AbstractTestProxy.DATA_KEY.getData ( e.getDataContext ( ) ) ; }

Target:
public void update ( com.intellij.openapi.actionSystem.AnActionEvent actionEvent ) { com.google.gct.testing.results.GoogleCloudTestTreeView sender = actionEvent.getData ( GoogleCloudTestTreeView.CLOUD_TEST_RUNNER_VIEW ) ; if ( sender == null ) { return ; } com.intellij.execution.testframework.AbstractTestProxy selectedNode = ( ( com.google.gct.testing.results.GoogleCloudTestingResultsForm ) ( sender.getResultsViewer ( ) ) ) . getTreeView ( ) . getSelectedTest ( ) ; if ( ( selectedNode == null ) || ( selectedNode instanceof com.google.gct.testing.results.GoogleCloudTestProxy.GoogleCloudRootTestProxy ) ) { actionEvent.getPresentation ( ) . setEnabled ( false ) ; } else { actionEvent.getPresentation ( ) . setEnabled ( true ) ; } }
Source:
boolean setProtocolMode ( android.bluetooth.BluetoothDevice device , int protocolMode ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; int state = this . getConnectionState ( device ) ; if ( state != ( android.bluetooth.BluetoothInputDevice.STATE_CONNECTED ) ) { return false ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_SET_PROTOCOL_MODE ) ; msg.obj = device ; msg.arg1 = protocolMode ; mHandler.sendMessage ( msg ) ; return true ; }

Target:
boolean setProtocolMode ( android.bluetooth.BluetoothDevice device , int protocolMode ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , ( "setProtocolMode: " + ( device.getAddress ( ) ) ) ) ; } int state = this . getConnectionState ( device ) ; if ( state != ( android.bluetooth.BluetoothInputDevice.STATE_CONNECTED ) ) { return false ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_SET_PROTOCOL_MODE ) ; msg.obj = device ; msg.arg1 = protocolMode ; mHandler.sendMessage ( msg ) ; return true ; }