auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private java.util.List < java.lang.String > _getAllProvidersLocked ( ) { if ( com.android.server.LocationManagerService.LOCAL_LOGV ) { android.util.Log.v ( com.android.server.LocationManagerService.TAG , "getAllProviders" ) ; } java.util.List < android.location.LocationProviderImpl > providers = android.location.LocationProviderImpl.getProviders ( ) ; java.util.ArrayList < java.lang.String > out = new java.util.ArrayList < java.lang.String > ( providers.size ( ) ) ; for ( android.location.LocationProviderImpl p : providers ) { out.add ( p.getName ( ) ) ; } return out ; }

Target:
private java.util.List < java.lang.String > _getAllProvidersLocked ( ) { if ( com.android.server.LocationManagerService.LOCAL_LOGV ) { android.util.Log.v ( com.android.server.LocationManagerService.TAG , "getAllProviders" ) ; } java.util.ArrayList < java.lang.String > out = new java.util.ArrayList < java.lang.String > ( mProviders.size ( ) ) ; for ( int i = ( mProviders.size ( ) ) - 1 ; i >= 0 ; i -- ) { com.android.internal.location.LocationProviderProxy p = mProviders.get ( i ) ; out.add ( p.getName ( ) ) ; } return out ; }
Source:
public void addActiveDownstream ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine downstream ) { if ( ( mActiveDownstreams.indexOf ( downstream ) ) == ( - 1 ) ) { mActiveDownstreams.offer ( downstream ) ; updateIPv6TetheringInterfaces ( ) ; } }

Target:
public void addActiveDownstream ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine downstream , int mode ) { if ( ( findDownstream ( downstream ) ) == null ) { if ( mActiveDownstreams.offer ( new com.android.server.connectivity.tethering.IPv6TetheringCoordinator.Downstream ( downstream , mode , mNextSubnetId ) ) ) { mNextSubnetId = ( ( short ) ( java.lang.Math.max ( 0 , ( ( mNextSubnetId ) + 1 ) ) ) ) ; } updateIPv6TetheringInterfaces ( ) ; } }
Source:
public java.lang.String [ ] getProjectOutputs ( ) throws org.eclipse.core.runtime.CoreException { org.eclipse.core.resources.IFolder outputFolder = com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getOutputFolder ( mProject ) ; org.eclipse.core.resources.IProject [ ] javaProjects = com.android.ide.eclipse.adt.internal.project.ProjectHelper.getReferencedProjects ( mProject ) ; org.eclipse.jdt.core.IJavaProject [ ] referencedJavaProjects = com.android.ide.eclipse.adt.internal.build.BuildHelper.getJavaProjects ( javaProjects ) ; java.lang.String [ ] projectOutputs = getProjectOutputs ( referencedJavaProjects ) ; java.lang.String [ ] outputs = new java.lang.String [ 1 + ( projectOutputs.length ) ] ; outputs [ 0 ] = outputFolder.getLocation ( ) . toOSString ( ) ; return outputs ; }

Target:
public java.lang.String [ ] getProjectOutputs ( ) throws org.eclipse.core.runtime.CoreException { org.eclipse.core.resources.IFolder outputFolder = com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getOutputFolder ( mProject ) ; java.util.List < org.eclipse.core.resources.IProject > javaProjects = com.android.ide.eclipse.adt.internal.project.ProjectHelper.getReferencedProjects ( mProject ) ; java.util.List < org.eclipse.jdt.core.IJavaProject > referencedJavaProjects = com.android.ide.eclipse.adt.internal.build.BuildHelper.getJavaProjects ( javaProjects ) ; java.util.List < java.lang.String > projectOutputs = getProjectOutputs ( referencedJavaProjects ) ; projectOutputs.add ( 0 , outputFolder.getLocation ( ) . toOSString ( ) ) ; return projectOutputs.toArray ( new java.lang.String [ projectOutputs.size ( ) ] ) ; }
Source:
public java.util.List < ? extends com.android.tools.idea.run.CloudConfiguration > getAllCloudConfigurations ( @ org.jetbrains.annotations.NotNull org.jetbrains.android.facet.AndroidFacet facet ) { java.util.List < com.google.gct.testing.CloudPersistentConfiguration > cloudPersistentConfigurations = com.google.gct.testing.CloudCustomPersistentConfigurations.getInstance ( facet.getModule ( ) ) . getState ( ) . myCloudPersistentConfigurations ; return com.google.common.collect.Lists.newArrayList ( com.google.common.collect.Iterables.concat ( com.google.gct.testing.CloudConfigurationProviderImpl.deserializeConfigurations ( cloudPersistentConfigurations , true , facet ) , getDefaultConfigurations ( facet , com.android.tools.idea.run.CloudConfiguration.Kind.MATRIX ) , getDefaultConfigurations ( facet , com.android.tools.idea.run.CloudConfiguration.Kind.SINGLE_DEVICE ) ) ) ; }

Target:
public java.util.List < ? extends com.android.tools.idea.run.CloudConfiguration > getAllCloudConfigurations ( @ org.jetbrains.annotations.NotNull org.jetbrains.android.facet.AndroidFacet facet ) { try { com.google.gct.testing.launcher.CloudAuthenticator.prepareCredential ( ) ; } catch ( java.lang.Exception e ) { return com.google.common.collect.Lists.newArrayList ( ) ; } java.util.List < com.google.gct.testing.CloudPersistentConfiguration > cloudPersistentConfigurations = com.google.gct.testing.CloudCustomPersistentConfigurations.getInstance ( facet.getModule ( ) ) . getState ( ) . myCloudPersistentConfigurations ; return com.google.common.collect.Lists.newArrayList ( com.google.common.collect.Iterables.concat ( com.google.gct.testing.CloudConfigurationProviderImpl.deserializeConfigurations ( cloudPersistentConfigurations , true , facet ) , getDefaultConfigurations ( facet , com.android.tools.idea.run.CloudConfiguration.Kind.MATRIX ) , getDefaultConfigurations ( facet , com.android.tools.idea.run.CloudConfiguration.Kind.SINGLE_DEVICE ) ) ) ; }
Source:
public void notifyListeners ( final boolean init ) { if ( ( ( mWindowShell ) != null ) && ( ( mListeners.size ( ) ) > 0 ) ) { mWindowShell.getDisplay ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { for ( com.android.sdkuilib.repository.UpdaterWindow.ISdkListener listener : mListeners ) { try { listener.onSdkChange ( init ) ; } catch ( java.lang.Throwable t ) { mSdkLog.error ( t , null ) ; } } } } ) ; } }

Target:
void broadcastOnSdkLoaded ( ) { if ( ( ( mWindowShell ) != null ) && ( ( mListeners.size ( ) ) > 0 ) ) { mWindowShell.getDisplay ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { for ( com.android.sdkuilib.repository.ISdkChangeListener listener : mListeners ) { try { listener.onSdkLoaded ( ) ; } catch ( java.lang.Throwable t ) { mSdkLog.error ( t , null ) ; } } } } ) ; } }
Source:
public java.lang.String getMacAddress ( ) { java.lang.String ret = doStringCommand ( "DRIVER MACADDR" ) ; if ( ! ( android.text.TextUtils.isEmpty ( ret ) ) ) { java.lang.String [ ] tokens = ret.split ( " = " ) ; if ( ( tokens.length ) == 2 ) return tokens [ 1 ] ; } return null ; }

Target:
public java.lang.String getMacAddress ( ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.getMacAddress ( ) ; } else { java.lang.String ret = doStringCommand ( "DRIVER MACADDR" ) ; if ( ! ( android.text.TextUtils.isEmpty ( ret ) ) ) { java.lang.String [ ] tokens = ret.split ( " = " ) ; if ( ( tokens.length ) == 2 ) return tokens [ 1 ] ; } return null ; } }
Source:
public void onTargetChange ( ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData targetData = mConfigComposite.onXmlModelLoaded ( ) ; if ( targetData != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData.LayoutBridge bridge = targetData.getLayoutBridge ( ) ; setClippingSupport ( ( ( bridge.apiLevel ) >= 4 ) ) ; } mConfigListener.onConfigurationChange ( ) ; }

Target:
public void onTargetChange ( ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData targetData = mConfigComposite.onXmlModelLoaded ( ) ; if ( targetData != null ) { com.android.ide.common.layoutlib.LayoutLibrary layoutLib = targetData.getLayoutLibrary ( ) ; setClippingSupport ( ( ( layoutLib.getBridge ( ) . getApiLevel ( ) ) >= 4 ) ) ; } mConfigListener.onConfigurationChange ( ) ; }
Source:
public void getCdmaBroadcastConfig ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_GET_BROADCAST_CONFIG , response ) ; send ( rr ) ; }

Target:
public void getCDMASubscription ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_SUBSCRIPTION , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
static void log ( java.lang.String message ) { if ( com.android.rs.test.RSTest.LOG_ENABLED ) { android.util.Log.v ( com.android.rs.test.RSTest.LOG_TAG , message ) ; } }

Target:
public void testRSUnitTest ( ) throws java.lang.Exception { java.lang.String thisDeviceName = android.os.Build.DEVICE ; int thisApiVersion = android.os.Build.VERSION.SDK_INT ; android.util.Log.i ( com.android.rs.test.RSTest.TAG , java.lang.String.format ( ( "RenderScript testing (%s) " + "on device %s, API version %d" ) , mTest.toString ( ) , thisDeviceName , thisApiVersion ) ) ; mTest.runTest ( ) ; org.junit.Assert.assertTrue ( mTest.getSuccess ( ) ) ; }
Source:
private void assertNoContentInstalled ( ) throws java.lang.Exception { assertNull ( installer.getInstalledBundleVersion ( ) ) ; java.io.File currentTzDataDir = installer.getCurrentTzDataDir ( ) ; assertFalse ( currentTzDataDir.exists ( ) ) ; java.io.File workingDir = installer.getWorkingDir ( ) ; assertFalse ( workingDir.exists ( ) ) ; java.io.File oldDataDir = installer.getOldTzDataDir ( ) ; assertFalse ( oldDataDir.exists ( ) ) ; }

Target:
private void assertNoContentInstalled ( ) throws java.lang.Exception { assertNull ( installer.getInstalledDistroVersion ( ) ) ; java.io.File currentTzDataDir = installer.getCurrentTzDataDir ( ) ; assertFalse ( currentTzDataDir.exists ( ) ) ; java.io.File workingDir = installer.getWorkingDir ( ) ; assertFalse ( workingDir.exists ( ) ) ; java.io.File oldDataDir = installer.getOldTzDataDir ( ) ; assertFalse ( oldDataDir.exists ( ) ) ; }
Source:
public final int integer_literal ( ) throws org.jf.smali.RecognitionException { int value = 0 ; org.antlr.runtime.tree.CommonTree INTEGER_LITERAL209 = null ; try { { INTEGER_LITERAL209 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.INTEGER_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_INTEGER_LITERAL_in_integer_literal3495 ) ) ) ; value = org.jf.smali.LiteralTools.parseInt ( ( INTEGER_LITERAL209 != null ? INTEGER_LITERAL209.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final boolean bool_literal ( ) throws org.jf.smali.RecognitionException { boolean value = false ; org.antlr.runtime.tree.CommonTree BOOL_LITERAL212 = null ; try { { BOOL_LITERAL212 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.BOOL_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_BOOL_LITERAL_in_bool_literal3504 ) ) ) ; value = java.lang.Boolean.parseBoolean ( ( BOOL_LITERAL212 != null ? BOOL_LITERAL212.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
public static void setBlocking ( java.io.FileDescriptor fd , boolean blocking ) throws java.io.IOException { try { int flags = Libcore.os.fcntlVoid ( fd , libcore.io.F_GETFL ) ; if ( ! blocking ) { flags |= O_NONBLOCK ; } else { flags &= ~ ( O_NONBLOCK ) ; } Libcore.os.fcntlLong ( fd , libcore.io.F_SETFL , flags ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }

Target:
public static void setBlocking ( java.io.FileDescriptor fd , boolean blocking ) throws java.io.IOException { try { int flags = Libcore.os.fcntlVoid ( fd , libcore.io.F_GETFL ) ; if ( ! blocking ) { flags |= O_NONBLOCK ; } else { flags &= ~ ( O_NONBLOCK ) ; } Libcore.os.fcntlInt ( fd , libcore.io.F_SETFL , flags ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }
Source:
private java.lang.String getRClassName ( org.eclipse.core.resources.IProject project ) { org.eclipse.core.resources.IFile manifestFile = com.android.ide.eclipse.adt.internal.project.ProjectHelper.getManifest ( project ) ; if ( ( manifestFile != null ) && ( manifestFile.isSynchronized ( IResource.DEPTH_ZERO ) ) ) { com.android.sdklib.xml.AndroidManifestParser.ManifestData data = com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData ( manifestFile ) ; if ( data != null ) { java.lang.String javaPackage = data.getPackage ( ) ; return javaPackage + ".R" ; } } return null ; }

Target:
private java.lang.String getRClassName ( org.eclipse.core.resources.IProject project ) { org.eclipse.core.resources.IFile manifestFile = com.android.ide.eclipse.adt.internal.project.ProjectHelper.getManifest ( project ) ; if ( ( manifestFile != null ) && ( manifestFile.isSynchronized ( IResource.DEPTH_ZERO ) ) ) { com.android.sdklib.xml.ManifestData data = com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData ( manifestFile ) ; if ( data != null ) { java.lang.String javaPackage = data.getPackage ( ) ; return javaPackage + ".R" ; } } return null ; }
Source:
public void prepareToLeaveProcess ( ) { final int size = mItems.size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { final android.content.ClipData.Item item = mItems.get ( i ) ; if ( ( item.mIntent ) != null ) { item.mIntent.prepareToLeaveProcess ( ) ; } if ( ( ( item.mUri ) != null ) && ( android.os.StrictMode.vmFileUriExposureEnabled ( ) ) ) { item.mUri.checkFileUriExposed ( "ClipData.Item.getUri()" ) ; } } }

Target:
public void prepareToLeaveProcess ( boolean leavingPackage ) { final int size = mItems.size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { final android.content.ClipData.Item item = mItems.get ( i ) ; if ( ( item.mIntent ) != null ) { item.mIntent.prepareToLeaveProcess ( leavingPackage ) ; } if ( ( ( ( item.mUri ) != null ) && ( android.os.StrictMode.vmFileUriExposureEnabled ( ) ) ) && leavingPackage ) { item.mUri.checkFileUriExposed ( "ClipData.Item.getUri()" ) ; } } }
Source:
public void testLibsManifestMerging ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libsTest" ) ; java.io.File fileOutput = new java.io.File ( project , ( ( "libapp/build/" + ( com.android.build.gradle.BasePlugin.FD_INTERMEDIATES ) ) + "/bundles/release/AndroidManifest.xml" ) ) ; runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_MIN_VERSION , project , "clean" , "build" ) ; assertTrue ( fileOutput.exists ( ) ) ; }

Target:
public void testLibsManifestMerging ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libsTest" ) ; java.io.File fileOutput = new java.io.File ( project , ( ( "libapp/build/" + ( com.android.builder.model.AndroidProject.FD_INTERMEDIATES ) ) + "/bundles/release/AndroidManifest.xml" ) ) ; runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_MIN_VERSION , project , "clean" , "build" ) ; assertTrue ( fileOutput.exists ( ) ) ; }
Source:
public void onCreateActions ( java.util.List < android.support.v17.leanback.widget.GuidedAction > actions , android.os.Bundle savedInstanceState ) { int position = 0 ; for ( com.android.tv.dvr.SeriesRecording seriesRecording : mSeriesRecordings ) { actions.add ( new android.support.v17.leanback.widget.GuidedAction.Builder ( getActivity ( ) ) . id ( ( position ++ ) ) . title ( seriesRecording.getTitle ( ) ) . build ( ) ) ; } }

Target:
public void onCreateActions ( java.util.List < android.support.v17.leanback.widget.GuidedAction > actions , android.os.Bundle savedInstanceState ) { int position = 0 ; for ( com.android.tv.dvr.data.SeriesRecording seriesRecording : mSeriesRecordings ) { actions.add ( new android.support.v17.leanback.widget.GuidedAction.Builder ( getActivity ( ) ) . id ( ( position ++ ) ) . title ( seriesRecording.getTitle ( ) ) . build ( ) ) ; } }
Source:
public java.lang.String getDisplayLanguage ( java.util.Locale locale ) { if ( languageCode.isEmpty ( ) ) { return "" ; } if ( languageCode.equals ( "tl" ) ) { return "Filipino" ; } java.lang.String result = libcore.icu.ICU.getDisplayLanguageNative ( toString ( ) , locale.toString ( ) ) ; if ( result == null ) { result = libcore.icu.ICU.getDisplayLanguageNative ( toString ( ) , java.util.Locale.getDefault ( ) . toString ( ) ) ; } return result ; }

Target:
public java.lang.String getDisplayLanguage ( java.util.Locale locale ) { if ( languageCode.isEmpty ( ) ) { return "" ; } java.lang.String localeString = toString ( ) ; if ( languageCode.equals ( "tl" ) ) { localeString = java.util.Locale.toNewString ( "fil" , countryCode , variantCode ) ; } java.lang.String result = libcore.icu.ICU.getDisplayLanguageNative ( localeString , locale.toString ( ) ) ; if ( result == null ) { result = libcore.icu.ICU.getDisplayLanguageNative ( localeString , java.util.Locale.getDefault ( ) . toString ( ) ) ; } return result ; }
Source:
static boolean isLocalTone ( com.android.ims.ImsCall imsCall ) { if ( ( ( imsCall == null ) || ( ( imsCall.getCallProfile ( ) ) == null ) ) || ( ( imsCall.getCallProfile ( ) . mMediaProfile ) == null ) ) { return false ; } com.android.ims.ImsStreamMediaProfile mediaProfile = imsCall.getCallProfile ( ) . mMediaProfile ; return ( mediaProfile.mAudioDirection ) == ( com.android.ims.ImsStreamMediaProfile.DIRECTION_INACTIVE ) ? true : false ; }

Target:
static boolean isLocalTone ( com.android.ims.ImsCall imsCall ) { if ( ( ( imsCall == null ) || ( ( imsCall.getCallProfile ( ) ) == null ) ) || ( ( imsCall.getCallProfile ( ) . mMediaProfile ) == null ) ) { return false ; } android.telephony.ims.ImsStreamMediaProfile mediaProfile = imsCall.getCallProfile ( ) . mMediaProfile ; return ( mediaProfile.mAudioDirection ) == ( android.telephony.ims.ImsStreamMediaProfile.DIRECTION_INACTIVE ) ? true : false ; }
Source:
protected void registerTabs ( ) { addFailuresTab ( ) ; if ( ! ( getResults ( ) . getPackages ( ) . isEmpty ( ) ) ) { addTab ( "Packages" , new org.gradle.api.Action < org.w3c.dom.Element > ( ) { @ java.lang.Override public void execute ( org.w3c.dom.Element element ) { renderPackages ( element ) ; } } ) ; } addTab ( "Classes" , new org.gradle.api.Action < org.w3c.dom.Element > ( ) { @ java.lang.Override public void execute ( org.w3c.dom.Element element ) { renderClasses ( element ) ; } } ) ; addDeviceAndVariantTabs ( ) ; }

Target:
protected void registerTabs ( ) { addFailuresTab ( ) ; if ( ! ( getResults ( ) . getPackages ( ) . isEmpty ( ) ) ) { addTab ( "Packages" , new org.gradle.api.internal.ErroringAction < org.gradle.api.internal.html.SimpleHtmlWriter > ( ) { @ java.lang.Override protected void doExecute ( org.gradle.api.internal.html.SimpleHtmlWriter writer ) throws java.io.IOException { renderPackages ( writer ) ; } } ) ; } addTab ( "Classes" , new org.gradle.api.internal.ErroringAction < org.gradle.api.internal.html.SimpleHtmlWriter > ( ) { @ java.lang.Override public void doExecute ( org.gradle.api.internal.html.SimpleHtmlWriter htmlWriter ) throws java.io.IOException { renderClasses ( htmlWriter ) ; } } ) ; }
Source:
public static android.telecom.DisconnectCause toTelecomDisconnectCause ( int telephonyDisconnectCause , java.lang.String reason ) { android.content.Context context = com.android.phone.PhoneGlobals.getInstance ( ) ; return new android.telecom.DisconnectCause ( com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseCode ( telephonyDisconnectCause ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseLabel ( context , telephonyDisconnectCause ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseDescription ( context , telephonyDisconnectCause ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectReason ( telephonyDisconnectCause , reason ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseTone ( telephonyDisconnectCause ) ) ; }

Target:
public static android.telecom.DisconnectCause toTelecomDisconnectCause ( int telephonyDisconnectCause , int telephonyPerciseDisconnectCause , java.lang.String reason ) { android.content.Context context = com.android.phone.PhoneGlobals.getInstance ( ) ; return new android.telecom.DisconnectCause ( com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseCode ( telephonyDisconnectCause ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseLabel ( context , telephonyDisconnectCause , telephonyPerciseDisconnectCause ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseDescription ( context , telephonyDisconnectCause ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectReason ( context , telephonyDisconnectCause , reason ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseTone ( telephonyDisconnectCause ) ) ; }
Source:
public java.io.FileDescriptor openSocketFd ( java.lang.String host , int port , int timeoutMs ) throws android.os.RemoteException { return mService.openSocketFd ( host , port , timeoutMs ) . getFileDescriptor ( ) ; }

Target:
public java.io.FileDescriptor openSocketFd ( java.lang.String host , int port , int timeoutMs ) throws android.os.RemoteException , android.system.ErrnoException , java.io.IOException { android.os.ParcelFileDescriptor pfd = mService.openSocketFd ( host , port , timeoutMs ) ; java.io.FileDescriptor fd = android.system.Os.dup ( pfd.getFileDescriptor ( ) ) ; pfd.close ( ) ; return fd ; }
Source:
protected void mergeDex ( @ javax.annotation.Nonnull com.android.jack.tools.merger.JackMerger merger , com.android.sched.vfs.InputVFile inputDex ) throws com.android.jack.backend.dex.DexWritingException , com.android.jack.tools.merger.MergingOverflowException { try { merger.addDexFile ( new com.android.jack.dx.io.DexBuffer ( inputDex.openRead ( ) ) ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.backend.dex.DexWritingException ( new com.android.sched.util.file.CannotReadException ( inputDex , e ) ) ; } }

Target:
protected void mergeDex ( @ javax.annotation.Nonnull com.android.jack.tools.merger.JackMerger merger , com.android.sched.vfs.InputVFile inputDex ) throws com.android.jack.backend.dex.DexWritingException , com.android.jack.tools.merger.MergingOverflowException { try { merger.addDexFile ( new com.android.jack.dx.io.DexBuffer ( inputDex.getInputStream ( ) ) ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.backend.dex.DexWritingException ( new com.android.sched.util.file.CannotReadException ( inputDex , e ) ) ; } }
Source:
public void testEncode ( ) throws java.lang.Exception { assertEncoded ( "" ) ; assertEncoded ( "Eg==" , 18 ) ; assertEncoded ( "EjQ=" , 18 , 52 ) ; assertEncoded ( "EjRW" , 18 , 52 , 86 ) ; assertEncoded ( "EjRWeA==" , 18 , 52 , 86 , 120 ) ; assertEncoded ( "EjRWeJo=" , 18 , 52 , 86 , 120 , 154 ) ; assertEncoded ( "EjRWeJq8" , 18 , 52 , 86 , 120 , 154 , 188 ) ; }

Target:
public void testDecode_truncated ( ) throws java.lang.Exception { assertEquals ( "hello, world" , libcore.io.Base64Test.decodeToString ( "aGVsbG8sIHdvcmxk" ) ) ; assertEquals ( "hello, wo" , libcore.io.Base64Test.decodeToString ( "aGVsbG8sIHdvcmx" ) ) ; assertEquals ( "hello, wo" , libcore.io.Base64Test.decodeToString ( "aGVsbG8sIHdvcm" ) ) ; assertEquals ( "hello, wo" , libcore.io.Base64Test.decodeToString ( "aGVsbG8sIHdvc" ) ) ; assertEquals ( "hello, wo" , libcore.io.Base64Test.decodeToString ( "aGVsbG8sIHdv" ) ) ; }
Source:
public int interceptMotionBeforeQueueingWhenScreenOff ( int policyFlags ) { int result = 0 ; final boolean isWakeMotion = ( policyFlags & ( ( android.view.WindowManagerPolicy.FLAG_WAKE ) | ( android.view.WindowManagerPolicy.FLAG_WAKE_DROPPED ) ) ) != 0 ; if ( isWakeMotion ) { result |= ACTION_WAKE_UP ; } return result ; }

Target:
public int interceptMotionBeforeQueueingNonInteractive ( long whenNanos , int policyFlags ) { if ( ( policyFlags & ( FLAG_WAKE ) ) != 0 ) { mPowerManager.wakeUp ( ( whenNanos / 1000000 ) ) ; return 0 ; } if ( shouldDispatchInputWhenNonInteractive ( ) ) { return ACTION_PASS_TO_USER ; } return 0 ; }
Source:
protected java.util.List < com.android.tools.lint.detector.api.Issue > getIssues ( ) { java.util.List < com.android.tools.lint.detector.api.Issue > issues = new java.util.ArrayList < com.android.tools.lint.detector.api.Issue > ( ) ; java.lang.Class < ? extends com.android.tools.lint.detector.api.Detector > detectorClass = getDetectorInstance ( ) . getClass ( ) ; java.util.List < com.android.tools.lint.detector.api.Issue > candidates = new com.android.tools.lint.checks.BuiltinIssueRegistry ( ) . getIssues ( ) ; for ( com.android.tools.lint.detector.api.Issue issue : candidates ) { if ( ( issue.getDetectorClass ( ) ) == detectorClass ) { issues.add ( issue ) ; } } return issues ; }

Target:
protected java.util.List < com.android.tools.lint.detector.api.Issue > getIssues ( ) { java.util.List < com.android.tools.lint.detector.api.Issue > issues = new java.util.ArrayList < com.android.tools.lint.detector.api.Issue > ( ) ; java.lang.Class < ? extends com.android.tools.lint.detector.api.Detector > detectorClass = getDetectorInstance ( ) . getClass ( ) ; java.util.List < com.android.tools.lint.detector.api.Issue > candidates = new com.android.tools.lint.checks.BuiltinIssueRegistry ( ) . getIssues ( ) ; for ( com.android.tools.lint.detector.api.Issue issue : candidates ) { if ( ( issue.getImplementation ( ) . getDetectorClass ( ) ) == detectorClass ) { issues.add ( issue ) ; } } return issues ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , int [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 4 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize , Element.DataType.SIGNED_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFrom ( byte [ ] d ) { validateIsInt8 ( ) ; copyFromUnchecked ( d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
public void Test11739 ( ) { com.ibm.icu.text.NumberFormat nf = com.ibm.icu.text.NumberFormat.getCurrencyInstance ( new com.ibm.icu.util.ULocale ( "sr_BA" ) ) ; ( ( com.ibm.icu.text.DecimalFormat ) ( nf ) ) . applyPattern ( "0.0 ¤¤¤" ) ; java.text.ParsePosition ppos = new java.text.ParsePosition ( 0 ) ; com.ibm.icu.util.CurrencyAmount result = nf.parseCurrency ( "1.500 амерички долар" , ppos ) ; assertEquals ( "Should parse to 1500 USD" , new com.ibm.icu.util.CurrencyAmount ( 1500 , com.ibm.icu.util.Currency.getInstance ( "USD" ) ) , result ) ; }

Target:
public void Test11739 ( ) { com.ibm.icu.text.NumberFormat nf = com.ibm.icu.text.NumberFormat.getCurrencyInstance ( new com.ibm.icu.util.ULocale ( "sr_BA" ) ) ; ( ( com.ibm.icu.text.DecimalFormat ) ( nf ) ) . applyPattern ( "#,##0.0 ¤¤¤" ) ; java.text.ParsePosition ppos = new java.text.ParsePosition ( 0 ) ; com.ibm.icu.util.CurrencyAmount result = nf.parseCurrency ( "1.500 амерички долар" , ppos ) ; assertEquals ( "Should parse to 1500 USD" , new com.ibm.icu.util.CurrencyAmount ( 1500 , com.ibm.icu.util.Currency.getInstance ( "USD" ) ) , result ) ; }
Source:
private void onInputFormatChanged ( com.google.android.exoplayer.MediaFormatHolder formatHolder ) throws com.google.android.exoplayer.ExoPlaybackException { mFormat = formatHolder.format ; if ( com.android.tv.tuner.exoplayer.ac3.Ac3PassthroughTrackRenderer.DEBUG ) { android.util.Log.d ( com.android.tv.tuner.exoplayer.ac3.Ac3PassthroughTrackRenderer.TAG , ( "AudioTrack was configured to FORMAT: " + ( mFormat.toString ( ) ) ) ) ; } clearDecodeState ( ) ; com.android.tv.tuner.exoplayer.ac3.Ac3PassthroughTrackRenderer.AUDIO_TRACK.reconfigure ( mFormat.getFrameworkMediaFormatV16 ( ) ) ; }

Target:
private void onInputFormatChanged ( com.google.android.exoplayer.MediaFormatHolder formatHolder ) throws com.google.android.exoplayer.ExoPlaybackException { mFormat = formatHolder.format ; mFormatConfigured = true ; if ( com.android.tv.tuner.exoplayer.ac3.Ac3DefaultTrackRenderer.DEBUG ) { android.util.Log.d ( com.android.tv.tuner.exoplayer.ac3.Ac3DefaultTrackRenderer.TAG , ( "AudioTrack was configured to FORMAT: " + ( mFormat.toString ( ) ) ) ) ; } clearDecodeState ( ) ; com.android.tv.tuner.exoplayer.ac3.Ac3DefaultTrackRenderer.AUDIO_TRACK.reconfigure ( mFormat.getFrameworkMediaFormatV16 ( ) , 0 ) ; }
Source:
private static java.util.List < char [ ] > getPasswords ( byte [ ] encodedPwd , java.nio.charset.Charset ... encodings ) { java.util.List < char [ ] > passwords = new java.util.ArrayList < > ( 4 ) ; for ( java.nio.charset.Charset encoding : encodings ) { try { char [ ] pwd = com.android.apksigner.PasswordRetriever.decodePassword ( encodedPwd , encoding ) ; com.android.apksigner.PasswordRetriever.addPasswords ( passwords , pwd ) ; } catch ( java.io.IOException ignored ) { } } com.android.apksigner.PasswordRetriever.addPassword ( passwords , com.android.apksigner.PasswordRetriever.castBytesToChars ( encodedPwd ) ) ; return passwords ; }

Target:
private java.util.List < char [ ] > getPasswords ( byte [ ] encodedPwd , java.nio.charset.Charset encodingForDecoding , java.nio.charset.Charset ... additionalEncodings ) { java.util.List < char [ ] > passwords = new java.util.ArrayList < > ( 4 ) ; try { char [ ] pwd = com.android.apksigner.PasswordRetriever.decodePassword ( encodedPwd , encodingForDecoding ) ; addPasswords ( passwords , pwd , additionalEncodings ) ; } catch ( java.io.IOException ignored ) { } com.android.apksigner.PasswordRetriever.addPassword ( passwords , com.android.apksigner.PasswordRetriever.castBytesToChars ( encodedPwd ) ) ; return passwords ; }
Source:
public void setComment ( java.lang.String comment ) { if ( comment == null ) { this . commentBytes = null ; return ; } byte [ ] newCommentBytes = comment.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ; if ( ( newCommentBytes.length ) > 65535 ) { throw new java.lang.IllegalArgumentException ( ( ( "Comment too long: " + ( newCommentBytes.length ) ) + " bytes" ) ) ; } this . commentBytes = newCommentBytes ; }

Target:
public void setComment ( java.lang.String comment ) { if ( comment == null ) { this . commentBytes = libcore.util.EmptyArray.BYTE ; return ; } byte [ ] newCommentBytes = comment.getBytes ( charset ) ; checkSizeIsWithinShort ( "Comment" , newCommentBytes ) ; this . commentBytes = newCommentBytes ; }
Source:
public void testMultiFilterWithNoMatch ( ) { java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 320 , "zzz" , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 160 , "bar" , 2 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 320 , "foo" , 3 ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertNull ( result ) ; }

Target:
public void testMultiFilterWithNoMatch ( ) { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 320 , "zzz" , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 160 , "bar" , 2 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 320 , "foo" , 3 ) ) ; java.util.List < java.io.File > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertEquals ( 0 , result.size ( ) ) ; }
Source:
protected java.lang.String getDebuggeeClassSignature ( ) { java.lang.String debuggeeClassName = getDebuggeeClassName ( ) ; java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; builder.append ( 'L' ) ; builder.append ( debuggeeClassName.replace ( '.' , '/' ) ) ; builder.append ( ';' ) ; return builder.toString ( ) ; }

Target:
protected java.lang.String getDebuggeeClassSignature ( ) { java.lang.String debuggeeClassName = getDebuggeeClassName ( ) ; return org.apache.harmony.jpda.tests.jdwp.share.JDWPRawTestCase.getClassSignature ( debuggeeClassName ) ; }
Source:
private void responseString ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.lang.String str ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.lang.String ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = str ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseCellInfoList_1_2 ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.util.ArrayList < com.android.internal.telephony.V1_2.CellInfo > cellInfo ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.util.ArrayList < android.telephony.CellInfo > ret = com.android.internal.telephony.RIL.convertHalCellInfoList_1_2 ( cellInfo ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
public void run ( ) { boolean pipSupportDisabled = false ; try { mActivity.enterPictureInPictureMode ( ) ; } catch ( java.lang.IllegalStateException e ) { pipSupportDisabled = true ; } catch ( java.lang.IllegalArgumentException e ) { pipSupportDisabled = true ; } assertTrue ( pipSupportDisabled ) ; assertFalse ( mActivity.isInPictureInPictureMode ( ) ) ; }

Target:
public void run ( ) { boolean pipSupportDisabled = false ; try { pipSupportDisabled = ! ( mActivity.enterPictureInPictureMode ( new android.app.PictureInPictureParams.Builder ( ) . build ( ) ) ) ; } catch ( java.lang.IllegalStateException e ) { pipSupportDisabled = true ; } catch ( java.lang.IllegalArgumentException e ) { pipSupportDisabled = true ; } assertTrue ( pipSupportDisabled ) ; assertFalse ( mActivity.isInPictureInPictureMode ( ) ) ; }
Source:
public static com.ibm.icu.util.UResourceBundle getBundleInstance ( java.lang.String baseName , java.util.Locale locale , java.lang.ClassLoader loader ) { if ( baseName == null ) { baseName = com.ibm.icu.impl.ICUResourceBundle.ICU_BASE_NAME ; } com.ibm.icu.util.ULocale uloc = ( locale == null ) ? com.ibm.icu.util.ULocale.getDefault ( ) : com.ibm.icu.util.ULocale.forLocale ( locale ) ; return com.ibm.icu.util.UResourceBundle.getBundleInstance ( baseName , uloc.toString ( ) , loader , false ) ; }

Target:
public static com.ibm.icu.util.UResourceBundle getBundleInstance ( java.lang.String baseName , java.util.Locale locale , java.lang.ClassLoader loader ) { if ( baseName == null ) { baseName = com.ibm.icu.impl.ICUData.ICU_BASE_NAME ; } com.ibm.icu.util.ULocale uloc = ( locale == null ) ? com.ibm.icu.util.ULocale.getDefault ( ) : com.ibm.icu.util.ULocale.forLocale ( locale ) ; return com.ibm.icu.util.UResourceBundle.getBundleInstance ( baseName , uloc.getBaseName ( ) , loader , false ) ; }
Source:
public char [ ] formatDouble ( double value , java.text.FieldPosition field ) { libcore.icu.NativeDecimalFormat.FieldPositionIterator fpi = libcore.icu.NativeDecimalFormat.FieldPositionIterator.forFieldPosition ( field ) ; char [ ] result = libcore.icu.NativeDecimalFormat.formatDouble ( this . address , value , fpi ) ; if ( fpi != null ) { libcore.icu.NativeDecimalFormat.FieldPositionIterator.setFieldPosition ( fpi , field ) ; } return result ; }

Target:
public char [ ] formatDouble ( double value , java.text.FieldPosition field ) { libcore.icu.NativeDecimalFormat.FieldPositionIterator fpi = libcore.icu.NativeDecimalFormat.FieldPositionIterator.forFieldPosition ( field ) ; char [ ] result = libcore.icu.NativeDecimalFormat.formatDouble ( this . address , value , fpi ) ; if ( ( fpi != null ) && ( field != null ) ) { libcore.icu.NativeDecimalFormat.updateFieldPosition ( field , fpi ) ; } return result ; }
Source:
public void testSignalPoll ( ) throws java.lang.Exception { com.android.server.wifi.WificondControl wificondControl = org.mockito.Mockito.mock ( com.android.server.wifi.WificondControl.class ) ; org.mockito.Mockito.when ( wificondControl.signalPoll ( ) ) . thenReturn ( com.android.server.wifi.WifiNativeTest.SIGNAL_POLL_RESULT ) ; mWifiNative.setWificondControl ( wificondControl ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiNativeTest.SIGNAL_POLL_RESULT , mWifiNative.signalPoll ( ) ) ; org.mockito.Mockito.verify ( wificondControl ) . signalPoll ( ) ; }

Target:
public void testTearDown ( ) { org.mockito.Mockito.when ( mWificondControl.tearDownInterfaces ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( mWifiNative.tearDown ( ) ) ; org.mockito.Mockito.verify ( mWificondControl ) . tearDownInterfaces ( ) ; org.mockito.Mockito.verify ( mWifiVendorHal ) . stopVendorHal ( ) ; }
Source:
public com.android.test.common.fixture.app.TestSourceFile getFile ( java.lang.String filename , final java.lang.String path ) { java.util.Collection < com.android.test.common.fixture.app.TestSourceFile > files = sourceFiles.get ( filename ) ; return com.google.common.collect.Iterables.find ( files , new com.google.common.base.Predicate < com.android.test.common.fixture.app.TestSourceFile > ( ) { @ java.lang.Override public boolean apply ( com.android.test.common.fixture.app.TestSourceFile testSourceFile ) { return path.equals ( testSourceFile.getPath ( ) ) ; } } ) ; }

Target:
public com.android.build.gradle.integration.common.fixture.app.TestSourceFile getFile ( java.lang.String filename , final java.lang.String path ) { java.util.Collection < com.android.build.gradle.integration.common.fixture.app.TestSourceFile > files = sourceFiles.get ( filename ) ; return com.google.common.collect.Iterables.find ( files , new com.google.common.base.Predicate < com.android.build.gradle.integration.common.fixture.app.TestSourceFile > ( ) { @ java.lang.Override public boolean apply ( com.android.build.gradle.integration.common.fixture.app.TestSourceFile testSourceFile ) { return path.equals ( testSourceFile.getPath ( ) ) ; } } ) ; }
Source:
public static PhotoInfo.Builder toPhotoInfoBuilder ( com.android.dialer.NumberAttributes numberAttributes ) { return com.android.dialer.glidephotomanager.PhotoInfo.builder ( ) . setName ( numberAttributes.getName ( ) ) . setPhotoUri ( numberAttributes.getPhotoUri ( ) ) . setPhotoId ( numberAttributes.getPhotoId ( ) ) . setLookupUri ( numberAttributes.getLookupUri ( ) ) . setIsBusiness ( numberAttributes.getIsBusiness ( ) ) . setIsSpam ( numberAttributes.getIsSpam ( ) ) . setIsVoicemail ( numberAttributes.getIsVoicemail ( ) ) . setIsBlocked ( numberAttributes.getIsBlocked ( ) ) ; }

Target:
public static PhotoInfo.Builder toPhotoInfoBuilder ( com.android.dialer.NumberAttributes numberAttributes ) { return com.android.dialer.glidephotomanager.PhotoInfo.newBuilder ( ) . setName ( numberAttributes.getName ( ) ) . setPhotoUri ( numberAttributes.getPhotoUri ( ) ) . setPhotoId ( numberAttributes.getPhotoId ( ) ) . setLookupUri ( numberAttributes.getLookupUri ( ) ) . setIsBusiness ( numberAttributes.getIsBusiness ( ) ) . setIsSpam ( numberAttributes.getIsSpam ( ) ) . setIsVoicemail ( numberAttributes.getIsVoicemail ( ) ) . setIsBlocked ( numberAttributes.getIsBlocked ( ) ) ; }
Source:
public void test_readlink ( ) throws java.lang.Exception { java.lang.String xs = "" ; for ( int i = 0 ; i < ( 4096 - 1 ) ; ++ i ) xs += "x" ; java.lang.String path = ( java.lang.System.getProperty ( "java.io.tmpdir" ) ) + "/symlink" ; Libcore.os.symlink ( xs , path ) ; assertEquals ( xs , Libcore.os.readlink ( path ) ) ; }

Target:
public void test_readlink ( ) throws java.lang.Exception { java.lang.String tmpDir = java.lang.System.getProperty ( "java.io.tmpdir" ) ; java.lang.String path = tmpDir + "/symlink" ; try { java.lang.String xs = "" ; for ( int i = 0 ; i < ( 4096 - 1 ) ; ++ i ) xs += "x" ; Libcore.os.symlink ( xs , path ) ; assertEquals ( xs , Libcore.os.readlink ( path ) ) ; } finally { assertTrue ( ( "Could not delete symlink: " + path ) , new java.io.File ( path ) . delete ( ) ) ; } }
Source:
public boolean isImsRegistered ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) return false ; return telephony.isImsRegistered ( ) ; } catch ( android.os.RemoteException ex ) { return false ; } catch ( java.lang.NullPointerException ex ) { return false ; } }

Target:
public java.lang.String getNai ( int slotIndex ) { int [ ] subId = android.telephony.SubscriptionManager.getSubId ( slotIndex ) ; if ( subId == null ) { return null ; } return getNaiBySubscriberId ( subId [ 0 ] ) ; }
Source:
public org.bouncycastle.math.ec.ECFieldElement negate ( ) { java.math.BigInteger x2 ; if ( ( x.signum ( ) ) == 0 ) { x2 = x ; } else if ( org.bouncycastle.math.ec.ONE.equals ( r ) ) { x2 = q.xor ( x ) ; } else { x2 = q.subtract ( x ) ; } return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , x2 ) ; }

Target:
public org.bouncycastle.math.ec.ECFieldElement squarePlusProduct ( org.bouncycastle.math.ec.ECFieldElement x , org.bouncycastle.math.ec.ECFieldElement y ) { java.math.BigInteger ax = this . x ; java.math.BigInteger xx = x.toBigInteger ( ) ; java.math.BigInteger yx = y.toBigInteger ( ) ; java.math.BigInteger aa = ax.multiply ( ax ) ; java.math.BigInteger xy = xx.multiply ( yx ) ; return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , modReduce ( aa.add ( xy ) ) ) ; }
Source:
public int selectAnimationLw ( android.view.WindowManagerPolicy.WindowState win , int transit ) { if ( com.android.internal.policy.impl.PhoneWindowManager.PRINT_ANIM ) android.util.Log.i ( com.android.internal.policy.impl.PhoneWindowManager.TAG , ( ( ( "selectAnimation in " + win ) + ": transit=" ) + transit ) ) ; if ( transit == ( TRANSIT_PREVIEW_DONE ) ) { if ( win.hasAppShownWindows ( ) ) { if ( com.android.internal.policy.impl.PhoneWindowManager.PRINT_ANIM ) android.util.Log.i ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "**** STARTING EXIT" ) ; return com.android.internal.R.anim.app_starting_exit ; } } return 0 ; }

Target:
public int selectAnimationLw ( com.android.internal.policy.impl.WindowState win , int transit ) { if ( com.android.internal.policy.impl.PhoneWindowManager.PRINT_ANIM ) android.util.Log.i ( com.android.internal.policy.impl.PhoneWindowManager.TAG , ( ( ( "selectAnimation in " + win ) + ": transit=" ) + transit ) ) ; if ( transit == ( TRANSIT_PREVIEW_DONE ) ) { if ( win.hasAppShownWindows ( ) ) { if ( com.android.internal.policy.impl.PhoneWindowManager.PRINT_ANIM ) android.util.Log.i ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "**** STARTING EXIT" ) ; return com.android.internal.R.anim.app_starting_exit ; } } return 0 ; }
Source:
public int hashCode ( ) { return ( mName ) != null ? mName.hashCode ( ) : 0 ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( ( "LibraryBundle{" + "mBundle=" ) + ( mBundle ) ) + ", mBundleFolder=" ) + ( mBundleFolder ) ) + ", mName='" ) + ( mName ) ) + '\'' ) + ", mProjectPath='" ) + ( mProjectPath ) ) + '\'' ) + '}' ; }
Source:
private void stopRfcomm ( ) { android.util.Log.d ( android.bluetooth.client.pbap.BluetoothPbapSession.TAG , "stopRfcomm" ) ; if ( ( mConnectThread ) != null ) { try { mConnectThread.join ( ) ; } catch ( java.lang.InterruptedException e ) { } mConnectThread = null ; } if ( ( mTransport ) != null ) { try { mTransport.close ( ) ; } catch ( java.io.IOException e ) { } mTransport = null ; } }

Target:
private void stopRfcomm ( ) { android.util.Log.d ( android.bluetooth.client.pbap.BluetoothPbapSession.TAG , "stopRfcomm" ) ; if ( ( mConnectThread ) != null ) { try { mConnectThread.closeSocket ( ) ; mConnectThread.join ( ) ; } catch ( java.lang.InterruptedException e ) { } mConnectThread = null ; } if ( ( mTransport ) != null ) { try { mTransport.close ( ) ; } catch ( java.io.IOException e ) { } mTransport = null ; } }
Source:
private android.net.NetworkRequest makeSubSpecificDefaultRequest ( com.android.internal.telephony.mocks.ConnectivityServiceMock cs , int subId ) { android.net.NetworkCapabilities netCap = new android.net.NetworkCapabilities ( ) . addCapability ( NetworkCapabilities.NET_CAPABILITY_INTERNET ) . addCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED ) . addTransportType ( NetworkCapabilities.TRANSPORT_CELLULAR ) ; netCap.setNetworkSpecifier ( java.lang.Integer.toString ( subId ) ) ; return cs.requestNetwork ( netCap , null , 0 , new android.os.Binder ( ) , ( - 1 ) ) ; }

Target:
private android.net.NetworkRequest makeSubSpecificDefaultRequest ( com.android.internal.telephony.mocks.ConnectivityServiceMock cs , int subId ) { android.net.NetworkCapabilities netCap = new android.net.NetworkCapabilities ( ) . addCapability ( NetworkCapabilities.NET_CAPABILITY_INTERNET ) . addCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED ) . addTransportType ( NetworkCapabilities.TRANSPORT_CELLULAR ) ; netCap.setNetworkSpecifier ( new android.net.StringNetworkSpecifier ( java.lang.Integer.toString ( subId ) ) ) ; return cs.requestNetwork ( netCap , null , 0 , new android.os.Binder ( ) , ( - 1 ) ) ; }
Source:
public void onActivityDestroyed ( android.app.Activity activity ) { if ( BuildConfig.IS_DEBUG ) { assert ( ( java.lang.reflect.Proxy.isProxyClass ( activity.getWindow ( ) . getCallback ( ) . getClass ( ) ) ) || ( activity.getWindow ( ) . getCallback ( ) . getClass ( ) . getName ( ) . equals ( org.chromium.base.BaseChromiumApplication.TOOLBAR_CALLBACK_WRAPPER_CLASS ) ) ) || ( activity.getWindow ( ) . getCallback ( ) . getClass ( ) . getName ( ) . equals ( org.chromium.base.BaseChromiumApplication.TOOLBAR_CALLBACK_INTERNAL_WRAPPER_CLASS ) ) ; } }

Target:
public void onActivityStopped ( android.app.Activity activity ) { if ( BuildConfig.DCHECK_IS_ON ) { assert ( ( java.lang.reflect.Proxy.isProxyClass ( activity.getWindow ( ) . getCallback ( ) . getClass ( ) ) ) || ( activity.getWindow ( ) . getCallback ( ) . getClass ( ) . getName ( ) . equals ( org.chromium.base.BaseChromiumApplication.TOOLBAR_CALLBACK_WRAPPER_CLASS ) ) ) || ( activity.getWindow ( ) . getCallback ( ) . getClass ( ) . getName ( ) . equals ( org.chromium.base.BaseChromiumApplication.TOOLBAR_CALLBACK_INTERNAL_WRAPPER_CLASS ) ) ; } }
Source:
private static byte [ ] [ ] getArgsForKeyType ( int keyType , java.security.spec.AlgorithmParameterSpec spec ) { switch ( keyType ) { case com.android.org.conscrypt.NativeCrypto.EVP_PKEY_RSA : if ( spec instanceof java.security.spec.RSAKeyGenParameterSpec ) { java.security.spec.RSAKeyGenParameterSpec rsaSpec = ( ( java.security.spec.RSAKeyGenParameterSpec ) ( spec ) ) ; return new byte [ ] [ ] { rsaSpec.getPublicExponent ( ) . toByteArray ( ) } ; } break ; } return null ; }

Target:
private static byte [ ] [ ] getArgsForKeyType ( int keyType , java.security.spec.AlgorithmParameterSpec spec ) { switch ( keyType ) { case com.android.org.conscrypt.NativeConstants.EVP_PKEY_RSA : if ( spec instanceof java.security.spec.RSAKeyGenParameterSpec ) { java.security.spec.RSAKeyGenParameterSpec rsaSpec = ( ( java.security.spec.RSAKeyGenParameterSpec ) ( spec ) ) ; return new byte [ ] [ ] { rsaSpec.getPublicExponent ( ) . toByteArray ( ) } ; } break ; } return null ; }