auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setUp ( ) throws java.lang.Exception { mLog = new com.android.sdklib.mock.MockLog ( ) ; mFakeSdk = makeFakeSdk ( ) ; mSdkManager = com.android.sdklib.SdkManager.createManager ( mFakeSdk.getAbsolutePath ( ) , mLog ) ; assertNotNull ( "SdkManager location was invalid" , mSdkManager ) ; mAvdManager = new com.android.sdklib.SdkManagerTestCase.TmpAvdManager ( mSdkManager , mLog ) ; }

Target:
public void setUp ( int repoXsdLevel ) throws java.lang.Exception { mRepoXsdLevel = repoXsdLevel ; mLog = new com.android.sdklib.mock.MockLog ( ) ; mFakeSdk = makeFakeSdk ( ) ; mSdkManager = com.android.sdklib.SdkManager.createManager ( mFakeSdk.getAbsolutePath ( ) , mLog ) ; assertNotNull ( "SdkManager location was invalid" , mSdkManager ) ; mAvdManager = new com.android.sdklib.SdkManagerTestCase.TmpAvdManager ( mSdkManager , mLog ) ; }
Source:
public void retrieveNotification ( int seqNumber , android.telephony.euicc.EuiccCardManager.ResultCallback < android.telephony.euicc.EuiccNotification > callback ) { try { getIEuiccCardController ( ) . retrieveNotification ( mContext.getOpPackageName ( ) , seqNumber , new com.android.internal.telephony.euicc.IRetrieveNotificationCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , android.telephony.euicc.EuiccNotification notification ) { callback.onComplete ( resultCode , notification ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling retrieveNotification" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void retrieveNotification ( java.lang.String cardId , int seqNumber , android.telephony.euicc.EuiccCardManager.ResultCallback < android.telephony.euicc.EuiccNotification > callback ) { try { getIEuiccCardController ( ) . retrieveNotification ( mContext.getOpPackageName ( ) , cardId , seqNumber , new com.android.internal.telephony.euicc.IRetrieveNotificationCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , android.telephony.euicc.EuiccNotification notification ) { callback.onComplete ( resultCode , notification ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling retrieveNotification" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void resendIncallMute ( int indicationType ) { }

Target:
public void lceData ( int indicationType , android.hardware.radio.V1_0.LceDataInfo lce ) { mRil.processIndication ( indicationType ) ; java.util.ArrayList < java.lang.Integer > response = com.android.internal.telephony.RIL.convertHalLceData ( lce , mRil ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_LCEDATA_RECV , response ) ; if ( ( mRil.mLceInfoRegistrant ) != null ) { mRil.mLceInfoRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , response , null ) ) ; } }
Source:
public void testIsNumberGeographical ( ) { assertFalse ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.BS_MOBILE ) ) ; assertTrue ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.AU_NUMBER ) ) ; assertFalse ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.INTERNATIONAL_TOLL_FREE ) ) ; }

Target:
public void testIsNumberGeographical ( ) { assertFalse ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.BS_MOBILE ) ) ; assertTrue ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.AU_NUMBER ) ) ; assertFalse ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.INTERNATIONAL_TOLL_FREE ) ) ; assertTrue ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.AR_MOBILE ) ) ; assertTrue ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.MX_MOBILE1 ) ) ; assertTrue ( phoneUtil.isNumberGeographical ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.MX_MOBILE2 ) ) ; }
Source:
private java.io.File createJackArchiveWithResources ( ) throws java.lang.Exception { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; java.io.File jackAr = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "resourcetestjack" , toolchain.getLibraryExtension ( ) ) ; toolchain.addResource ( new java.io.File ( com.android.jack.resource.ResourceTests.FILE , "rsc" ) ) ; toolchain.srcToLib ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( toolchain.getDefaultBootClasspath ( ) ) , jackAr , true , com.android.jack.resource.ResourceTests.FILE ) ; return jackAr ; }

Target:
private java.io.File createJackArchiveWithResources ( ) throws java.lang.Exception { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; java.io.File jackAr = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "resourcetestjack" , toolchain.getLibraryExtension ( ) ) ; toolchain.addResource ( new java.io.File ( com.android.jack.resource.ResourceTests.FILE , "rsc" ) ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToLib ( jackAr , true , com.android.jack.resource.ResourceTests.FILE ) ; return jackAr ; }
Source:
public com.android.tv.dvr.ScheduledRecording addScheduleWithHighestPriority ( com.android.tv.data.Program program ) { if ( ! ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) ) { return null ; } com.android.tv.dvr.SeriesRecording seriesRecording = getSeriesRecording ( program ) ; return addSchedule ( program , ( seriesRecording == null ? mScheduleManager.suggestNewPriority ( ) : mScheduleManager.suggestHighestPriority ( seriesRecording.getInputId ( ) , new android.util.Range ( program.getStartTimeUtcMillis ( ) , program.getEndTimeUtcMillis ( ) ) , seriesRecording.getPriority ( ) ) ) ) ; }

Target:
public com.android.tv.dvr.data.ScheduledRecording addScheduleWithHighestPriority ( com.android.tv.data.Program program ) { if ( ! ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) ) { return null ; } com.android.tv.dvr.data.SeriesRecording seriesRecording = getSeriesRecording ( program ) ; return addSchedule ( program , ( seriesRecording == null ? mScheduleManager.suggestNewPriority ( ) : mScheduleManager.suggestHighestPriority ( seriesRecording.getInputId ( ) , new android.util.Range ( program.getStartTimeUtcMillis ( ) , program.getEndTimeUtcMillis ( ) ) , seriesRecording.getPriority ( ) ) ) ) ; }
Source:
public boolean onKeyDown ( final int keyCode , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyDown ( keyCode , event ) ; } } ) ; return ret ; } com.android.webview.chromium.UnimplementedWebViewApi.invoke ( ) ; return false ; }

Target:
public boolean onKeyMultiple ( final int keyCode , final int repeatCount , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyMultiple ( keyCode , repeatCount , event ) ; } } ) ; return ret ; } com.android.webview.chromium.UnimplementedWebViewApi.invoke ( ) ; return false ; }
Source:
private void assertIsSameAddressAs ( android.net.LinkAddress l1 , android.net.LinkAddress l2 ) { assertTrue ( ( ( l1 + " unexpectedly does not have same address as " ) + l2 ) , l1.isSameAddressAs ( l2 ) ) ; assertTrue ( ( ( l2 + " unexpectedly does not have same address as " ) + l1 ) , l2.isSameAddressAs ( l1 ) ) ; }

Target:
private void assertIsSameAddressAs ( android.net.LinkAddress l1 , android.net.LinkAddress l2 ) { org.junit.Assert.assertTrue ( ( ( l1 + " unexpectedly does not have same address as " ) + l2 ) , l1.isSameAddressAs ( l2 ) ) ; org.junit.Assert.assertTrue ( ( ( l2 + " unexpectedly does not have same address as " ) + l1 ) , l2.isSameAddressAs ( l1 ) ) ; }
Source:
public boolean hasChildren ( java.lang.Object element ) { if ( element instanceof com.android.ide.eclipse.adt.internal.resources.ResourceType ) { return mResources.hasResources ( ( ( com.android.ide.eclipse.adt.internal.resources.ResourceType ) ( element ) ) ) ; } else if ( ( mFullLevels ) && ( element instanceof com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ) ) { return ( ( com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ) ( element ) ) . hasAlternates ( ) ; } return false ; }

Target:
public boolean hasChildren ( java.lang.Object element ) { if ( element instanceof com.android.resources.ResourceType ) { return mResources.hasResources ( ( ( com.android.resources.ResourceType ) ( element ) ) ) ; } else if ( ( mFullLevels ) && ( element instanceof com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ) ) { return ( ( com.android.ide.eclipse.adt.internal.resources.manager.ConfigurableResourceItem ) ( element ) ) . hasAlternates ( ) ; } return false ; }
Source:
private int getExplanationFromErrorCode ( int errCode ) { android.util.Log.d ( TAG , ( "Installation error code: " + errCode ) ) ; switch ( errCode ) { case android.content.pm.PackageManager.INSTALL_FAILED_INVALID_APK : return R.string.install_failed_invalid_apk ; case android.content.pm.PackageManager.INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES : return R.string.install_failed_inconsistent_certificates ; case android.content.pm.PackageManager.INSTALL_FAILED_OLDER_SDK : return R.string.install_failed_older_sdk ; case android.content.pm.PackageManager.INSTALL_FAILED_CPU_ABI_INCOMPATIBLE : return R.string.install_failed_cpu_abi_incompatible ; default : return - 1 ; } }

Target:
private int getExplanationFromErrorCode ( int errCode ) { android.util.Log.d ( TAG , ( "Installation error code: " + errCode ) ) ; switch ( errCode ) { case android.content.pm.PackageInstaller.STATUS_FAILURE_BLOCKED : return R.string.install_failed_blocked ; case android.content.pm.PackageInstaller.STATUS_FAILURE_CONFLICT : return R.string.install_failed_conflict ; case android.content.pm.PackageInstaller.STATUS_FAILURE_INCOMPATIBLE : return R.string.install_failed_incompatible ; case android.content.pm.PackageInstaller.STATUS_FAILURE_INVALID : return R.string.install_failed_invalid_apk ; default : return - 1 ; } }
Source:
public < E extends T > java.util.List < E > sortedCopy ( java.lang.Iterable < E > iterable ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) E [ ] array = ( ( E [ ] ) ( com.google.common.collect.Iterables.toArray ( iterable ) ) ) ; java.util.Arrays.sort ( array , this ) ; return com.google.common.collect.Lists.newArrayList ( java.util.Arrays.asList ( array ) ) ; }

Target:
public < E extends T > java.util.List < E > sortedCopy ( java.lang.Iterable < E > elements ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) E [ ] array = ( ( E [ ] ) ( com.google.common.collect.Iterables.toArray ( elements ) ) ) ; java.util.Arrays.sort ( array , this ) ; return com.google.common.collect.Lists.newArrayList ( java.util.Arrays.asList ( array ) ) ; }
Source:
public void generateContainerLayout ( final com.intellij.uiDesigner.lw.LwContainer lwContainer , final org.jetbrains.asm4.commons.GeneratorAdapter generator , final int componentLocal ) { generator.loadLocal ( componentLocal ) ; generator.newInstance ( myLayoutType ) ; generator.dup ( ) ; generator.push ( com.intellij.uiDesigner.compiler.Utils.getHGap ( lwContainer.getLayout ( ) ) ) ; generator.push ( com.intellij.uiDesigner.compiler.Utils.getVGap ( lwContainer.getLayout ( ) ) ) ; generator.invokeConstructor ( myLayoutType , com.intellij.uiDesigner.compiler.SimpleLayoutCodeGenerator.ourConstructor ) ; generator.invokeVirtual ( ourContainerType , ourSetLayoutMethod ) ; }

Target:
public void generateContainerLayout ( final com.intellij.uiDesigner.lw.LwContainer lwContainer , final org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter generator , final int componentLocal ) { generator.loadLocal ( componentLocal ) ; generator.newInstance ( myLayoutType ) ; generator.dup ( ) ; generator.push ( com.intellij.uiDesigner.compiler.Utils.getHGap ( lwContainer.getLayout ( ) ) ) ; generator.push ( com.intellij.uiDesigner.compiler.Utils.getVGap ( lwContainer.getLayout ( ) ) ) ; generator.invokeConstructor ( myLayoutType , com.intellij.uiDesigner.compiler.SimpleLayoutCodeGenerator.ourConstructor ) ; generator.invokeVirtual ( ourContainerType , ourSetLayoutMethod ) ; }
Source:
public void dump ( java.io.PrintWriter pw , java.lang.String prefix ) { pw.print ( prefix ) ; pw.print ( "type=" ) ; pw.print ( type ) ; pw.print ( " when=" ) ; pw.print ( when ) ; pw.print ( " repeatInterval=" ) ; pw.print ( repeatInterval ) ; pw.print ( " count=" ) ; pw.println ( count ) ; pw.print ( prefix ) ; pw.print ( "operation=" ) ; pw.println ( operation ) ; }

Target:
public void dump ( java.io.PrintWriter pw , java.lang.String prefix , long now ) { pw.print ( prefix ) ; pw.print ( "type=" ) ; pw.print ( type ) ; pw.print ( " when=" ) ; android.util.TimeUtils.formatDuration ( when , now , pw ) ; pw.print ( " repeatInterval=" ) ; pw.print ( repeatInterval ) ; pw.print ( " count=" ) ; pw.println ( count ) ; pw.print ( prefix ) ; pw.print ( "operation=" ) ; pw.println ( operation ) ; }
Source:
private void initAndroidProject ( ) throws java.io.IOException { org.w3c.dom.Document document = getProjectDocument ( ) ; if ( document == null ) { return ; } org.w3c.dom.NodeList natures = document.getElementsByTagName ( "nature" ) ; for ( int i = 0 ; i < ( natures.getLength ( ) ) ; i ++ ) { org.w3c.dom.Node nature = natures.item ( i ) ; java.lang.String value = com.android.tools.gradle.eclipse.EclipseProject.getStringValue ( ( ( org.w3c.dom.Element ) ( nature ) ) ) ; if ( "com.android.ide.eclipse.adt.AndroidNature" . equals ( value ) ) { mAndroidProject = true ; } } }

Target:
private void initAndroidProject ( ) throws java.io.IOException { mAndroidProject = hasNature ( "com.android.ide.eclipse.adt.AndroidNature" ) ; mNdkProject = ( mAndroidProject ) && ( ( ( hasNature ( "org.eclipse.cdt.core.cnature" ) ) || ( hasNature ( "org.eclipse.cdt.core.ccnature" ) ) ) || ( new java.io.File ( mDir , ( ( "jni" + ( java.io.File.separator ) ) + "Android.mk" ) ) . exists ( ) ) ) ; }
Source:
public void muteClicked ( boolean checked , boolean clickedByUser ) { com.android.dialer.common.LogUtil.i ( "CallButtonPresenter" , "turning on mute: %s, clicked by user: %s" , checked , clickedByUser ) ; if ( clickedByUser ) { com.android.dialer.logging.Logger.get ( mContext ) . logCallImpression ( ( checked ? DialerImpression.Type.IN_CALL_SCREEN_TURN_ON_MUTE : DialerImpression.Type.IN_CALL_SCREEN_TURN_OFF_MUTE ) , mCall.getUniqueCallId ( ) , mCall.getTimeAddedMs ( ) ) ; } com.android.incallui.call.TelecomAdapter.getInstance ( ) . mute ( checked ) ; }

Target:
public void muteClicked ( boolean checked , boolean clickedByUser ) { com.android.dialer.common.LogUtil.i ( "CallButtonPresenter" , "turning on mute: %s, clicked by user: %s" , checked , clickedByUser ) ; if ( clickedByUser ) { com.android.dialer.logging.Logger.get ( mContext ) . logCallImpression ( ( checked ? com.android.dialer.logging.DialerImpression.Type.IN_CALL_SCREEN_TURN_ON_MUTE : com.android.dialer.logging.DialerImpression.Type.IN_CALL_SCREEN_TURN_OFF_MUTE ) , mCall.getUniqueCallId ( ) , mCall.getTimeAddedMs ( ) ) ; } com.android.incallui.call.TelecomAdapter.getInstance ( ) . mute ( checked ) ; }
Source:
protected void printMethodHeader ( com.android.jack.ir.ast.JMethod x ) { printAnnotationLiterals ( x.getAnnotations ( ) ) ; print ( com.android.jack.ir.ast.JModifier.getStringMethodModifier ( x.getModifier ( ) ) ) ; printType ( x ) ; space ( ) ; printName ( x ) ; printParameterList ( x ) ; }

Target:
protected void printMethodHeader ( com.android.jack.ir.ast.JMethod x ) { print ( com.android.jack.ir.ast.JModifier.getStringMethodModifier ( x.getModifier ( ) ) ) ; print ( formatter.getName ( x ) ) ; }
Source:
public void selectConfiguration ( int hashCode ) { if ( ( customConfigurations ) != null ) { for ( com.google.gct.testing.GoogleCloudTestingConfiguration configuration : customConfigurations ) { if ( ( configuration.getHash ( ) ) == hashCode ) { getComboBox ( ) . setSelectedItem ( configuration ) ; return ; } } } if ( ( defaultConfigurations ) != null ) { for ( com.google.gct.testing.GoogleCloudTestingConfiguration configuration : defaultConfigurations ) { if ( ( configuration.getHash ( ) ) == hashCode ) { getComboBox ( ) . setSelectedItem ( configuration ) ; return ; } } } }

Target:
public void selectConfiguration ( int id ) { if ( ( customConfigurations ) != null ) { for ( com.google.gct.testing.GoogleCloudTestingConfiguration configuration : customConfigurations ) { if ( ( configuration.getId ( ) ) == id ) { getComboBox ( ) . setSelectedItem ( configuration ) ; return ; } } } if ( ( defaultConfigurations ) != null ) { for ( com.google.gct.testing.GoogleCloudTestingConfiguration configuration : defaultConfigurations ) { if ( ( configuration.getId ( ) ) == id ) { getComboBox ( ) . setSelectedItem ( configuration ) ; return ; } } } }
Source:
public void outcomeStarted ( vogar.target.Runner runner , java.lang.String outcomeName , java.lang.String actionName ) { com.google.caliper.internal.gson.JsonObject jsonObject = new com.google.caliper.internal.gson.JsonObject ( ) ; jsonObject.addProperty ( "outcome" , outcomeName ) ; if ( runner != null ) { jsonObject.addProperty ( "runner" , runner.getClass ( ) . getName ( ) ) ; } writer.print ( ( ( ( marker ) + ( gson.toJson ( jsonObject ) ) ) + "\n" ) ) ; }

Target:
public void outcomeStarted ( vogar.target.Runner runner , java.lang.String outcomeName , java.lang.String actionName ) { com.google.gson.JsonObject jsonObject = new com.google.gson.JsonObject ( ) ; jsonObject.addProperty ( "outcome" , outcomeName ) ; if ( runner != null ) { jsonObject.addProperty ( "runner" , runner.getClass ( ) . getName ( ) ) ; } writer.print ( ( ( ( marker ) + ( gson.toJson ( jsonObject ) ) ) + "\n" ) ) ; }
Source:
private boolean isWindowsExecutable ( org.eclipse.core.runtime.IPath commandPath ) { if ( com.android.ide.eclipse.ndk.internal.build.NdkCommandLauncher.WINDOWS_EXE.equalsIgnoreCase ( commandPath.getFileExtension ( ) ) ) { return true ; } java.io.File exeFile = commandPath.addFileExtension ( com.android.ide.eclipse.ndk.internal.build.NdkCommandLauncher.WINDOWS_EXE ) . toFile ( ) ; if ( exeFile.exists ( ) ) { return true ; } return false ; }

Target:
private org.eclipse.core.runtime.IPath appendExecutableExtension ( org.eclipse.core.runtime.IPath commandPath ) { if ( isWindowsExecutableExtension ( commandPath.getFileExtension ( ) ) ) { return commandPath ; } java.lang.String ext = findWindowsExecutableExtension ( commandPath ) ; if ( ext != null ) { return commandPath.addFileExtension ( ext ) ; } return commandPath ; }
Source:
private void assertSocketActionBeforeConnect ( java.net.DatagramSocket s ) throws java.io.IOException { s.connect ( datagramSocket2Address ) ; assertTrue ( this . channel1.isConnected ( ) ) ; assertTrue ( s.isConnected ( ) ) ; s.disconnect ( ) ; assertFalse ( this . channel1.isConnected ( ) ) ; assertFalse ( s.isConnected ( ) ) ; s.close ( ) ; assertTrue ( s.isClosed ( ) ) ; assertFalse ( this . channel1.isOpen ( ) ) ; }

Target:
public void test_bind_failure ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; try { dc.bind ( channel1Address ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } finally { dc.close ( ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; java.lang.System.setProperty ( "dexmaker.dexcache" , getContext ( ) . getCacheDir ( ) . toString ( ) ) ; com.android.internal.util.test.BroadcastInterceptingContext context = new com.android.internal.util.test.BroadcastInterceptingContext ( getContext ( ) ) ; mServerSocket = new android.net.LocalServerSocket ( com.android.server.NetworkManagementServiceTest.SOCKET_NAME ) ; mNMService = com.android.server.NetworkManagementService.create ( context , com.android.server.NetworkManagementServiceTest.SOCKET_NAME ) ; mSocket = mServerSocket.accept ( ) ; mOutputStream = mSocket.getOutputStream ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mServerSocket = new android.net.LocalServerSocket ( com.android.server.NetworkManagementServiceTest.SOCKET_NAME ) ; mNMService = com.android.server.NetworkManagementService.create ( mContext , com.android.server.NetworkManagementServiceTest.SOCKET_NAME , mServices ) ; mSocket = mServerSocket.accept ( ) ; mOutputStream = mSocket.getOutputStream ( ) ; }
Source:
public void testOverlappingNANPANumber ( ) { assertTrue ( shortInfo.isEmergencyNumber ( "211" , RegionCode.BB ) ) ; assertEquals ( ShortNumberInfo.ShortNumberCost.TOLL_FREE , shortInfo.getExpectedCostForRegion ( "211" , RegionCode.BB ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( "211" , RegionCode.US ) ) ; assertEquals ( ShortNumberInfo.ShortNumberCost.UNKNOWN_COST , shortInfo.getExpectedCostForRegion ( "211" , RegionCode.US ) ) ; assertFalse ( shortInfo.isEmergencyNumber ( "211" , RegionCode.CA ) ) ; assertEquals ( ShortNumberInfo.ShortNumberCost.UNKNOWN_COST , shortInfo.getExpectedCostForRegion ( "211" , RegionCode.CA ) ) ; }

Target:
public void testOverlappingNANPANumber ( ) { assertTrue ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "211" , RegionCode.BB ) ) ; assertEquals ( ShortNumberInfo.ShortNumberCost.TOLL_FREE , com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.getExpectedCostForRegion ( parse ( "211" , RegionCode.BB ) , RegionCode.BB ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "211" , RegionCode.US ) ) ; assertEquals ( ShortNumberInfo.ShortNumberCost.UNKNOWN_COST , com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.getExpectedCostForRegion ( parse ( "211" , RegionCode.US ) , RegionCode.US ) ) ; assertFalse ( com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.isEmergencyNumber ( "211" , RegionCode.CA ) ) ; assertEquals ( ShortNumberInfo.ShortNumberCost.UNKNOWN_COST , com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.getExpectedCostForRegion ( parse ( "211" , RegionCode.CA ) , RegionCode.CA ) ) ; }
Source:
public void onDestroy ( ) { com.android.music.MusicUtils.unbindFromService ( mToken ) ; unregisterReceiver ( mScanListener ) ; if ( ( ! ( mAdapterSent ) ) && ( ( mAdapter ) != null ) ) { mAdapter.changeCursor ( null ) ; } setListAdapter ( null ) ; mAdapter = null ; super . onDestroy ( ) ; }

Target:
public void onDestroy ( ) { com.android.music.MusicUtils.unbindFromService ( mToken ) ; unregisterReceiver ( mScanListener ) ; if ( ( ! ( mAdapterSent ) ) && ( ( mAdapter ) != null ) ) { mAdapter.changeCursor ( null ) ; } if ( ( getListView ( ) ) != null ) { setListAdapter ( null ) ; } mAdapter = null ; super . onDestroy ( ) ; }
Source:
public void srvccStateNotify ( int indicationType , int var2 ) { }

Target:
public void srvccStateNotify ( int indicationType , int state ) { mRil.processIndication ( indicationType ) ; int [ ] response = new int [ 1 ] ; response [ 0 ] = state ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_SRVCC_STATE_NOTIFY , response ) ; mRil.writeMetricsSrvcc ( state ) ; mRil.mSrvccStateRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; }
Source:
private void refillAvdList ( boolean reloadAvds ) { com.android.sdklib.internal.avd.AvdManager.AvdInfo selected = mPreferredAvdSelector.getSelected ( ) ; mDisableAvdSelectionChange = true ; mPreferredAvdSelector.refresh ( false ) ; if ( selected != null ) { if ( ( mPreferredAvdSelector.setSelection ( selected ) ) == false ) { mResponse.setAvdToLaunch ( null ) ; enableOkButton ( ) ; } } mDisableAvdSelectionChange = false ; }

Target:
private void refillAvdList ( boolean reloadAvds ) { com.android.sdklib.internal.avd.AvdInfo selected = mPreferredAvdSelector.getSelected ( ) ; mDisableAvdSelectionChange = true ; mPreferredAvdSelector.refresh ( false ) ; if ( selected != null ) { if ( ( mPreferredAvdSelector.setSelection ( selected ) ) == false ) { mResponse.setAvdToLaunch ( null ) ; enableOkButton ( ) ; } } mDisableAvdSelectionChange = false ; }
Source:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { com.google.common.base.Preconditions.checkArgument ( com.google.devtools.build.android.desugar.BitFlags.noneSet ( access , Opcodes.ACC_INTERFACE ) ) ; super . visit ( version , access , name , signature , superName , interfaces ) ; }

Target:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { com.google.common.base.Preconditions.checkArgument ( com.google.devtools.build.android.desugar.io.BitFlags.noneSet ( access , Opcodes.ACC_INTERFACE ) ) ; super . visit ( version , access , name , signature , superName , interfaces ) ; }
Source:
private static long posixCapabilitiesAsBits ( int ... capabilities ) { long result = 0 ; for ( int capability : capabilities ) { if ( ( capability < 0 ) || ( capability > ( libcore.io.OsConstants.CAP_LAST_CAP ) ) ) { throw new java.lang.IllegalArgumentException ( java.lang.String.valueOf ( capability ) ) ; } result |= 1L << capability ; } return result ; }

Target:
private static long posixCapabilitiesAsBits ( int ... capabilities ) { long result = 0 ; for ( int capability : capabilities ) { if ( ( capability < 0 ) || ( capability > ( android.system.OsConstants.CAP_LAST_CAP ) ) ) { throw new java.lang.IllegalArgumentException ( java.lang.String.valueOf ( capability ) ) ; } result |= 1L << capability ; } return result ; }
Source:
public java.lang.String toString ( ) { if ( ( ( mParentSession ) != null ) && ( mIsStartedFromActiveSession ) ) { return mParentSession.toString ( ) ; } else { java.lang.StringBuilder methodName = new java.lang.StringBuilder ( ) ; methodName.append ( mShortMethodName ) ; if ( ( ( mOwnerInfo ) != null ) && ( ! ( mOwnerInfo.isEmpty ( ) ) ) ) { methodName.append ( "(InCall package: " ) ; methodName.append ( mOwnerInfo ) ; methodName.append ( ")" ) ; } return ( ( methodName.toString ( ) ) + "@" ) + ( getFullSessionId ( ) ) ; } }

Target:
private synchronized void getFullMethodPath ( java.lang.StringBuilder sb ) { if ( ! ( android.text.TextUtils.isEmpty ( mFullMethodPathCache ) ) ) { sb.append ( mFullMethodPathCache ) ; return ; } android.telecom.Logging.Session parentSession = getParentSession ( ) ; boolean isSessionStarted = false ; if ( parentSession != null ) { isSessionStarted = ! ( mShortMethodName.equals ( parentSession.mShortMethodName ) ) ; parentSession.getFullMethodPath ( sb ) ; sb.append ( android.telecom.Logging.Session.SUBSESSION_SEPARATION_CHAR ) ; } sb.append ( mShortMethodName ) ; if ( isSessionStarted ) { mFullMethodPathCache = sb.toString ( ) ; } }
Source:
public boolean equals ( java.lang.Object qualifier ) { if ( qualifier instanceof com.android.ide.eclipse.adt.internal.resources.configurations.ScreenDimensionQualifier ) { com.android.ide.eclipse.adt.internal.resources.configurations.ScreenDimensionQualifier q = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.ScreenDimensionQualifier ) ( qualifier ) ) ; return ( ( mValue1 ) == ( q.mValue1 ) ) && ( ( mValue2 ) == ( q.mValue2 ) ) ; } return false ; }

Target:
public boolean equals ( java.lang.Object qualifier ) { if ( qualifier instanceof com.android.ide.common.resources.configuration.ScreenDimensionQualifier ) { com.android.ide.common.resources.configuration.ScreenDimensionQualifier q = ( ( com.android.ide.common.resources.configuration.ScreenDimensionQualifier ) ( qualifier ) ) ; return ( ( mValue1 ) == ( q.mValue1 ) ) && ( ( mValue2 ) == ( q.mValue2 ) ) ; } return false ; }
Source:
public void testIsEmulatedCoreLibraryInvocation ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "" ) , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( "java/util/Collection" ) ) ; com.google.common.truth.Truth.assertThat ( support.isEmulatedCoreLibraryInvocation ( Opcodes.INVOKEINTERFACE , "java/util/Collection" , "removeIf" , "(Ljava/util/function/Predicate;)Z" , true ) ) . isTrue ( ) ; com.google.common.truth.Truth.assertThat ( support.isEmulatedCoreLibraryInvocation ( Opcodes.INVOKEINTERFACE , "java/util/Collection" , "size" , "()I" , true ) ) . isFalse ( ) ; }

Target:
public void testGetCoreInterfaceRewritingTarget_abstractMethod ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "" ) , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( "java/util/Collection" ) ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKEINTERFACE , "java/util/Collection" , "size" , "()I" , true ) ) . isNull ( ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKEVIRTUAL , "java/util/ArrayList" , "size" , "()I" , false ) ) . isNull ( ) ; }
Source:
public void dump ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { pw.println ( ( ( ( ( " " + ( getComponent ( ) ) ) + " (Description: " ) + ( getDescription ( ) ) ) + ")" ) ) ; pw.println ( ( " System Code: " + ( getSystemCode ( ) ) ) ) ; pw.println ( ( " NFCID2: " + ( getNfcid2 ( ) ) ) ) ; }

Target:
public void dump ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { pw.println ( ( ( ( ( " " + ( getComponent ( ) ) ) + " (Description: " ) + ( getDescription ( ) ) ) + ")" ) ) ; pw.println ( ( " System Code: " + ( getSystemCode ( ) ) ) ) ; pw.println ( ( " NFCID2: " + ( getNfcid2 ( ) ) ) ) ; pw.println ( ( " T3tPmm: " + ( getT3tPmm ( ) ) ) ) ; }
Source:
com.android.server.ConnectivityServiceTest.CallbackInfo nextCallback ( int timeoutMs ) { com.android.server.ConnectivityServiceTest.CallbackInfo cb = null ; try { cb = mCallbacks.poll ( timeoutMs , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } catch ( java.lang.InterruptedException e ) { } if ( cb == null ) { fail ( ( ( "Did not receive callback after " + timeoutMs ) + "ms" ) ) ; } return cb ; }

Target:
com.android.server.ConnectivityServiceTest.CallbackInfo nextCallback ( int timeoutMs ) { com.android.server.ConnectivityServiceTest.CallbackInfo cb = null ; try { cb = mCallbacks.poll ( timeoutMs , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } catch ( java.lang.InterruptedException e ) { } if ( cb == null ) { org.junit.Assert.fail ( ( ( "Did not receive callback after " + timeoutMs ) + "ms" ) ) ; } return cb ; }
Source:
public static void getJavaBinaryFiles ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull java.util.List < java.io.File > binaryFiles ) throws com.android.sched.vfs.ListDirException { if ( file.isDirectory ( ) ) { java.io.File [ ] allFiles = file.listFiles ( ) ; if ( allFiles == null ) { throw new com.android.sched.vfs.ListDirException ( file ) ; } for ( java.io.File aFile : allFiles ) { com.android.jill.utils.FileUtils.getJavaBinaryFiles ( aFile , binaryFiles ) ; } } else if ( com.android.jill.utils.FileUtils.isJavaBinaryFile ( file ) ) { binaryFiles.add ( file.getAbsoluteFile ( ) ) ; } }

Target:
public static void getJavaBinaryFiles ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull java.util.List < java.io.File > binaryFiles ) throws com.android.sched.util.file.CannotListDirException { if ( file.isDirectory ( ) ) { java.io.File [ ] allFiles = file.listFiles ( ) ; if ( allFiles == null ) { throw new com.android.sched.util.file.CannotListDirException ( new com.android.sched.util.location.DirectoryLocation ( file ) ) ; } for ( java.io.File aFile : allFiles ) { com.android.jill.utils.FileUtils.getJavaBinaryFiles ( aFile , binaryFiles ) ; } } else if ( com.android.jill.utils.FileUtils.isJavaBinaryFile ( file ) ) { binaryFiles.add ( file.getAbsoluteFile ( ) ) ; } }
Source:
public void test_removeFirst ( ) { ll.removeFirst ( ) ; assertTrue ( "Failed to remove first element" , ( ( ll.getFirst ( ) ) != ( objArray [ 0 ] ) ) ) ; ll.clear ( ) ; try { ll.removeFirst ( ) ; fail ( "NoSuchElementException expected" ) ; } catch ( java.util.NoSuchElementException e ) { } }

Target:
public void test_removeFirst ( ) { ll.removeFirst ( ) ; assertTrue ( "Failed to remove first element" , ( ( ll.getFirst ( ) ) != ( objArray [ 0 ] ) ) ) ; java.util.LinkedList list = new java.util.LinkedList ( ) ; try { list.removeFirst ( ) ; fail ( "Should throw NoSuchElementException" ) ; } catch ( java.util.NoSuchElementException e ) { } }
Source:
private static synchronized com.google.devtools.common.options.OptionsData getOptionsData ( com.google.common.collect.ImmutableList < java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > optionsClasses ) { com.google.devtools.common.options.OptionsData result = com.google.devtools.common.options.OptionsParser.optionsData.get ( optionsClasses ) ; if ( result == null ) { result = com.google.devtools.common.options.OptionsData.of ( optionsClasses ) ; com.google.devtools.common.options.OptionsParser.optionsData.put ( optionsClasses , result ) ; } return result ; }

Target:
private static synchronized com.google.devtools.common.options.OptionsData getOptionsDataInternal ( com.google.common.collect.ImmutableList < java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > optionsClasses ) { com.google.devtools.common.options.OptionsData result = com.google.devtools.common.options.OptionsParser.optionsData.get ( optionsClasses ) ; if ( result == null ) { result = com.google.devtools.common.options.OptionsData.of ( optionsClasses ) ; com.google.devtools.common.options.OptionsParser.optionsData.put ( optionsClasses , result ) ; } return result ; }
Source:
public void registerMediaButtonEventReceiver ( android.content.ComponentName eventReceiver ) { if ( eventReceiver == null ) { return ; } if ( ! ( eventReceiver.getPackageName ( ) . equals ( mApplicationContext.getPackageName ( ) ) ) ) { android.util.Log.e ( android.media.AudioManager.TAG , ( "registerMediaButtonEventReceiver() error: " + "receiver and context package names don't match" ) ) ; return ; } android.content.Intent mediaButtonIntent = new android.content.Intent ( android.content.Intent.ACTION_MEDIA_BUTTON ) ; mediaButtonIntent.setComponent ( eventReceiver ) ; android.app.PendingIntent pi = android.app.PendingIntent.getBroadcast ( mApplicationContext , 0 , mediaButtonIntent , 0 ) ; registerMediaButtonIntent ( pi , eventReceiver ) ; }

Target:
public void registerMediaButtonEventReceiver ( android.content.ComponentName eventReceiver ) { if ( eventReceiver == null ) { return ; } if ( ! ( eventReceiver.getPackageName ( ) . equals ( getContext ( ) . getPackageName ( ) ) ) ) { android.util.Log.e ( android.media.AudioManager.TAG , ( "registerMediaButtonEventReceiver() error: " + "receiver and context package names don't match" ) ) ; return ; } android.content.Intent mediaButtonIntent = new android.content.Intent ( android.content.Intent.ACTION_MEDIA_BUTTON ) ; mediaButtonIntent.setComponent ( eventReceiver ) ; android.app.PendingIntent pi = android.app.PendingIntent.getBroadcast ( getContext ( ) , 0 , mediaButtonIntent , 0 ) ; registerMediaButtonIntent ( pi , eventReceiver ) ; }
Source:
public void test_SSL_check_private_key_key_then_cert ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getServerPrivateKey ( ) . getNativeRef ( ) ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getServerCertificates ( ) ) ; org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_check_private_key_no_key_no_cert ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.junit.Assert.fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public void run ( org.eclipse.jface.action.IAction action ) { final com.android.ide.eclipse.adt.internal.sdk.Sdk sdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( sdk != null ) { com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . refreshSdk ( ) ; com.android.sdkuilib.repository.AvdManagerWindow window = new com.android.sdkuilib.repository.AvdManagerWindow ( com.android.ide.eclipse.adt.AdtPlugin.getShell ( ) , new com.android.ide.eclipse.adt.internal.sdk.AdtConsoleSdkLog ( ) , sdk.getSdkLocation ( ) , com.android.sdkuilib.repository.AvdManagerWindow.AvdInvocationContext.IDE ) ; window.open ( ) ; } else { com.android.ide.eclipse.adt.AdtPlugin.displayError ( "Android SDK" , "Location of the Android SDK has not been setup in the preferences." ) ; } }

Target:
public void run ( org.eclipse.jface.action.IAction action ) { final com.android.ide.eclipse.adt.internal.sdk.Sdk sdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( sdk != null ) { com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . refreshSdk ( ) ; com.android.sdkuilib.repository.AvdManagerWindow window = new com.android.sdkuilib.repository.AvdManagerWindow ( com.android.ide.eclipse.adt.AdtPlugin.getShell ( ) , new com.android.ide.eclipse.adt.internal.sdk.AdtConsoleSdkLog ( ) , sdk.getSdkOsLocation ( ) , com.android.sdkuilib.repository.AvdManagerWindow.AvdInvocationContext.IDE ) ; window.open ( ) ; } else { com.android.ide.eclipse.adt.AdtPlugin.displayError ( "Android SDK" , "Location of the Android SDK has not been setup in the preferences." ) ; } }
Source:
void start ( ) { android.os.HandlerThread thread = new android.os.HandlerThread ( "BluetoothScanManager" ) ; thread.start ( ) ; mHandler = new com.android.bluetooth.gatt.ScanManager.ClientHandler ( thread.getLooper ( ) ) ; }

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 ) ; } }
Source:
public void testEncryption ( ) throws java.lang.Exception { if ( android.security.cts.EncryptionTest.deviceIsEncrypted ( ) ) { return ; } if ( hasLowRAM ( ) ) { android.util.Log.i ( android.security.cts.EncryptionTest.TAG , "hasLowRAM: true" ) ; return ; } assertFalse ( "Device encryption is required" , android.security.cts.EncryptionTest.aesIsFast ( ) ) ; }

Target:
public void testEncryption ( ) throws java.lang.Exception { if ( ( ! ( isRequired ( ) ) ) || ( android.security.cts.EncryptionTest.deviceIsEncrypted ( ) ) ) { return ; } assertFalse ( "Device encryption is required" , android.security.cts.EncryptionTest.aesIsFast ( ) ) ; }
Source:
synchronized boolean unregisterApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.TAG , "unregisterApp()" ) ; if ( ( ( ( mAppConfig ) == null ) || ( config == null ) ) || ( ! ( config.equals ( mAppConfig ) ) ) ) { return false ; } return unregisterAppNative ( ) ; }

Target:
synchronized boolean unregisterApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.TAG , "unregisterApp()" ) ; } if ( config == null ) { android.util.Log.w ( com.android.bluetooth.hid.HidDevService.TAG , "unregisterApp: failed. The config in parameter should not be null" ) ; return false ; } if ( ( ( mAppConfig ) == null ) || ( ! ( config.equals ( mAppConfig ) ) ) ) { android.util.Log.w ( com.android.bluetooth.hid.HidDevService.TAG , "unregisterApp: failed. The app configuration does not match the record" ) ; return false ; } return unregisterAppNative ( ) ; }
Source:
synchronized void nAllocationRead ( int id , short [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , float [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
public void fillOval ( int x1 , int y1 , int x2 , int y2 ) { checkGC ( ) ; int x = mHScale.translate ( x1 ) ; int y = mVScale.translate ( y1 ) ; int w = mHScale.scale ( ( x2 - x1 ) ) ; int h = mVScale.scale ( ( y2 - y1 ) ) ; getGc ( ) . fillOval ( x , y , w , h ) ; }

Target:
public void drawOval ( com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r ) { checkGC ( ) ; useStrokeAlpha ( ) ; int x = mHScale.translate ( r.x ) ; int y = mVScale.translate ( r.y ) ; int w = mHScale.scale ( r.w ) ; int h = mVScale.scale ( r.h ) ; getGc ( ) . drawOval ( x , y , w , h ) ; }
Source:
public java.lang.String getFolderName ( com.android.resources.ResourceFolderType folder ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( folder.getName ( ) ) ; for ( com.android.ide.common.resources.configuration.ResourceQualifier qualifier : mQualifiers ) { if ( qualifier != null ) { java.lang.String segment = qualifier.getFolderSegment ( ) ; if ( ( segment != null ) && ( ( segment.length ( ) ) > 0 ) ) { result.append ( SdkConstants.RES_QUALIFIER_SEP ) ; result.append ( segment ) ; } } } return result.toString ( ) ; }

Target:
public java.lang.String getFolderName ( com.android.resources.ResourceFolderType folder ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( folder.getName ( ) ) ; for ( com.android.ide.common.resources.configuration.ResourceQualifier qualifier : mQualifiers ) { if ( qualifier != null ) { java.lang.String segment = qualifier.getFolderSegment ( ) ; if ( ( segment != null ) && ( ! ( segment.isEmpty ( ) ) ) ) { result.append ( SdkConstants.RES_QUALIFIER_SEP ) ; result.append ( segment ) ; } } } return result.toString ( ) ; }
Source:
protected abstract void engineInitInternal ( int opmode , byte [ ] encodedKey , java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException ;

Target:
protected int updateInternal ( byte [ ] input , int inputOffset , int inputLen , byte [ ] output , int outputOffset , int maximumLen ) throws javax.crypto.ShortBufferException { if ( ( buf ) == null ) { throw new java.lang.IllegalStateException ( "Cipher not initialized" ) ; } org.conscrypt.util.ArrayUtils.checkOffsetAndCount ( input.length , inputOffset , inputLen ) ; if ( inputLen > 0 ) { expand ( inputLen ) ; java.lang.System.arraycopy ( input , inputOffset , buf , this . bufCount , inputLen ) ; this . bufCount += inputLen ; } return 0 ; }
Source:
private long startingTask ( @ javax.annotation.Nonnull com.android.jack.server.ServerInfo info ) throws com.android.jack.server.JackHttpServer.ServerClosedException { long id ; synchronized ( lock ) { if ( shuttingDown ) { throw new com.android.jack.server.JackHttpServer.ServerClosedException ( ) ; } id = info.totalLocal ; ( info.totalLocal ) ++ ; setServerMode ( ServerMode.WORK ) ; ( info.currentLocal ) ++ ; if ( ( info.currentLocal ) > ( info.maxLocal ) ) { info.maxLocal = info.currentLocal ; } } return id ; }

Target:
public long startingAdministrativeTask ( ) throws com.android.jack.server.JackHttpServer.ServerClosedException { synchronized ( lock ) { if ( shuttingDown ) { throw new com.android.jack.server.JackHttpServer.ServerClosedException ( ) ; } return startingTask ( adminInfo ) ; } }
Source:
public int computeHorizontalScrollRange ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { int ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Integer > ( ) { @ java.lang.Override public java.lang.Integer call ( ) { return computeHorizontalScrollRange ( ) ; } } ) ; return ret ; } return mAwContents.computeHorizontalScrollRange ( ) ; }

Target:
public boolean requestChildRectangleOnScreen ( final android.view.View child , final android.graphics.Rect rect , final boolean immediate ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return requestChildRectangleOnScreen ( child , rect , immediate ) ; } } ) ; return ret ; } return mAwContents.requestChildRectangleOnScreen ( child , rect , immediate ) ; }
Source:
public void handleCallSetupRequestFromSim ( boolean accept , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( RILConstants.RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; int [ ] param = new int [ 1 ] ; param [ 0 ] = ( accept ) ? 1 : 0 ; rr.mParcel.writeIntArray ( param ) ; send ( rr ) ; }

Target:
public void queryAvailableBandMode ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.getAvailableBandModes ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "queryAvailableBandMode" , e ) ; } } }
Source:
protected void tearDown ( ) throws java.lang.Exception { mMediaRecorder.release ( ) ; if ( ( ( mOutFile ) != null ) && ( mOutFile.exists ( ) ) ) { mOutFile.delete ( ) ; } if ( ( mCamera ) != null ) { mCamera.release ( ) ; } super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { mMediaRecorder.release ( ) ; if ( ( ( mOutFile ) != null ) && ( mOutFile.exists ( ) ) ) { mOutFile.delete ( ) ; } if ( ( ( mOutFile2 ) != null ) && ( mOutFile2.exists ( ) ) ) { mOutFile2.delete ( ) ; } if ( ( mCamera ) != null ) { mCamera.release ( ) ; } super . tearDown ( ) ; }