auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public int getState ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getState = " + ( mService.getState ( ) ) ) ) ; com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) return android.bluetooth.BluetoothPbap.STATE_DISCONNECTED ; return service.getState ( ) ; }

Target:
public int getState ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getState = " + ( mService.getState ( ) ) ) ) ; com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; return service.getState ( ) ; }
Source:
public void onPageStarted ( android.webkit.WebView view , java.lang.String url , android.graphics.Bitmap favicon ) { if ( url.contains ( mBrowserBailOutToken ) ) { mLaunchBrowser = true ; done ( com.android.captiveportallogin.CaptivePortalLoginActivity.Result.WANTED_AS_IS ) ; return ; } if ( ( mPagesLoaded ) == 0 ) return ; if ( ! ( url.startsWith ( com.android.captiveportallogin.CaptivePortalLoginActivity.MyWebViewClient.INTERNAL_ASSETS ) ) ) { final android.widget.TextView myUrlBar = ( ( android.widget.TextView ) ( findViewById ( R.id.url_bar ) ) ) ; myUrlBar.setText ( url ) ; } testForCaptivePortal ( ) ; }

Target:
public void onPageStarted ( android.webkit.WebView view , java.lang.String url , android.graphics.Bitmap favicon ) { if ( url.contains ( mBrowserBailOutToken ) ) { mLaunchBrowser = true ; done ( com.android.captiveportallogin.CaptivePortalLoginActivity.Result.WANTED_AS_IS ) ; return ; } if ( ( mPagesLoaded ) == 0 ) return ; if ( ! ( url.startsWith ( com.android.captiveportallogin.CaptivePortalLoginActivity.MyWebViewClient.INTERNAL_ASSETS ) ) ) { getActionBar ( ) . setSubtitle ( getHeaderSubtitle ( url ) ) ; } getProgressBar ( ) . setVisibility ( View.VISIBLE ) ; testForCaptivePortal ( ) ; }
Source:
protected boolean stop ( ) { android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "stop()" ) ; if ( ( mContactChangeObserver ) == null ) { android.util.Log.i ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Avoid unregister when receiver it is not registered" ) ; return true ; } try { unregisterReceiver ( mPbapReceiver ) ; getContentResolver ( ) . unregisterContentObserver ( mContactChangeObserver ) ; mContactChangeObserver = null ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Unable to unregister pbap receiver" , e ) ; } mSessionStatusHandler.obtainMessage ( com.android.bluetooth.pbap.BluetoothPbapService.SHUTDOWN ) . sendToTarget ( ) ; setState ( BluetoothPbap.STATE_DISCONNECTED , BluetoothPbap.RESULT_CANCELED ) ; return true ; }

Target:
public synchronized void onAcceptFailed ( ) { cleanUpSdpRecord ( ) ; if ( ( mServerSockets ) != null ) { mServerSockets.shutdown ( false ) ; mServerSockets = null ; } if ( ( ( ! ( mInterrupted ) ) && ( ( mAdapter ) != null ) ) && ( mAdapter.isEnabled ( ) ) ) { startSocketListeners ( ) ; } }
Source:
private static com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection loadMetadataAndCloseInput ( java.io.ObjectInputStream source ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection metadataCollection = new com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection ( ) ; try { metadataCollection.readExternal ( source ) ; } catch ( java.io.IOException e ) { com.google.i18n.phonenumbers.MultiFileMetadataSourceImpl.logger.log ( java.util.logging.Level.WARNING , "error reading input (ignored)" , e ) ; } finally { try { source.close ( ) ; } catch ( java.io.IOException e ) { com.google.i18n.phonenumbers.MultiFileMetadataSourceImpl.logger.log ( java.util.logging.Level.WARNING , "error closing input stream (ignored)" , e ) ; } } return metadataCollection ; }

Target:
private static com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadataCollection loadMetadataAndCloseInput ( java.io.ObjectInputStream source ) { final int MULTI_FILE_BUFFER_SIZE = 16 * 1024 ; com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadataCollection metadataCollection = new com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadataCollection ( ) ; try { metadataCollection.mergeFrom ( com.google.i18n.phonenumbers.MetadataManager.convertStreamToByteBuffer ( source , MULTI_FILE_BUFFER_SIZE ) ) ; } catch ( java.io.IOException e ) { com.google.i18n.phonenumbers.MultiFileMetadataSourceImpl.logger.log ( java.util.logging.Level.WARNING , "error reading input (ignored)" , e ) ; } finally { try { source.close ( ) ; } catch ( java.io.IOException e ) { com.google.i18n.phonenumbers.MultiFileMetadataSourceImpl.logger.log ( java.util.logging.Level.WARNING , "error closing input stream (ignored)" , e ) ; } } return metadataCollection ; }
Source:
public int setProvisionedStringValue ( int item , java.lang.String value ) throws android.os.RemoteException { return ImsConfig.OperationStatusConstants.FAILED ; }

Target:
public synchronized int setProvisionedStringValue ( int item , java.lang.String value ) throws android.os.RemoteException { mProvisionedStringValue.remove ( item ) ; int retVal = getImsConfigImpl ( ) . setProvisionedStringValue ( item , value ) ; if ( retVal == ( ImsConfig.OperationStatusConstants.SUCCESS ) ) { updateCachedValue ( item , value , true ) ; } return retVal ; }
Source:
public void dispose ( ) { if ( com.android.internal.telephony.uicc.SIMRecords.DBG ) log ( ( "Disposing SIMRecords " + ( this ) ) ) ; mCi.unregisterForIccRefresh ( this ) ; mCi.unSetOnSmsOnSim ( this ) ; mParentApp.unregisterForReady ( this ) ; resetRecords ( ) ; super . dispose ( ) ; }

Target:
public void dispose ( ) { if ( DBG ) log ( ( "Disposing SIMRecords this=" + ( this ) ) ) ; mCi.unregisterForIccRefresh ( this ) ; mCi.unSetOnSmsOnSim ( this ) ; mParentApp.unregisterForReady ( this ) ; mParentApp.unregisterForLocked ( this ) ; resetRecords ( ) ; super . dispose ( ) ; }
Source:
private com.intellij.compiler.instrumentation.InstrumentationClassFinder.PseudoClass loadPseudoClass ( java.io.InputStream is ) throws java.io.IOException { final org.jetbrains.asm4.ClassReader reader = new org.jetbrains.asm4.ClassReader ( is ) ; final com.intellij.compiler.instrumentation.InstrumentationClassFinder.V visitor = new com.intellij.compiler.instrumentation.InstrumentationClassFinder.V ( ) ; reader.accept ( visitor , ( ( ( org.jetbrains.asm4.ClassReader.SKIP_CODE ) | ( org.jetbrains.asm4.ClassReader.SKIP_DEBUG ) ) | ( org.jetbrains.asm4.ClassReader.SKIP_FRAMES ) ) ) ; return new com.intellij.compiler.instrumentation.InstrumentationClassFinder.PseudoClass ( this , visitor.myName , visitor.mySuperclassName , visitor.myInterfaces , visitor.myModifiers , visitor.myMethods ) ; }

Target:
private com.intellij.compiler.instrumentation.InstrumentationClassFinder.PseudoClass loadPseudoClass ( java.io.InputStream is ) throws java.io.IOException { final org.jetbrains.org.objectweb.asm.ClassReader reader = new org.jetbrains.org.objectweb.asm.ClassReader ( is ) ; final com.intellij.compiler.instrumentation.InstrumentationClassFinder.V visitor = new com.intellij.compiler.instrumentation.InstrumentationClassFinder.V ( ) ; reader.accept ( visitor , ( ( ( org.jetbrains.org.objectweb.asm.ClassReader.SKIP_CODE ) | ( org.jetbrains.org.objectweb.asm.ClassReader.SKIP_DEBUG ) ) | ( org.jetbrains.org.objectweb.asm.ClassReader.SKIP_FRAMES ) ) ) ; return new com.intellij.compiler.instrumentation.InstrumentationClassFinder.PseudoClass ( this , visitor.myName , visitor.mySuperclassName , visitor.myInterfaces , visitor.myModifiers , visitor.myMethods ) ; }
Source:
public static void createTasks ( org.gradle.model.collection.CollectionBuilder < org.gradle.api.Task > tasks , org.gradle.nativeplatform.SharedLibraryBinarySpec binary , java.io.File buildDir , com.android.build.gradle.managed.NdkConfig ndkConfig , com.android.build.gradle.internal.NdkHandler ndkHandler ) { com.android.build.gradle.ndk.internal.StlConfiguration.createStlCopyTask ( ndkHandler , ndkConfig.getStl ( ) , tasks , buildDir , binary ) ; if ( binary.getBuildType ( ) . getName ( ) . equals ( BuilderConstants.DEBUG ) ) { com.android.build.gradle.ndk.internal.NdkConfiguration.setupNdkGdbDebug ( tasks , binary , buildDir , ndkConfig , ndkHandler ) ; } }

Target:
public static void createTasks ( org.gradle.model.ModelMap < org.gradle.api.Task > tasks , org.gradle.nativeplatform.SharedLibraryBinarySpec binary , java.io.File buildDir , com.android.build.gradle.managed.NdkConfig ndkConfig , com.android.build.gradle.internal.NdkHandler ndkHandler ) { com.android.build.gradle.ndk.internal.StlConfiguration.createStlCopyTask ( ndkHandler , ndkConfig.getStl ( ) , tasks , buildDir , binary ) ; if ( binary.getBuildType ( ) . getName ( ) . equals ( BuilderConstants.DEBUG ) ) { com.android.build.gradle.ndk.internal.NdkConfiguration.setupNdkGdbDebug ( tasks , binary , buildDir , ndkConfig , ndkHandler ) ; } com.android.build.gradle.ndk.internal.NdkConfiguration.createStripDebugTask ( tasks , binary , buildDir , ndkHandler ) ; }
Source:
public java.lang.String getImeiForSubscriber ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( checkReadPhoneState ( callingPackage , "getImei" ) ) ) { return null ; } return phone.getImei ( ) ; } else { loge ( ( "getDeviceId phone is null for Subscription:" + subId ) ) ; return null ; } }

Target:
public java.lang.String getImeiForSubscriber ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , "getImei" ) ) ) { return null ; } return phone.getImei ( ) ; } else { loge ( ( "getDeviceId phone is null for Subscription:" + subId ) ) ; return null ; } }
Source:
public static void sort ( java.lang.Object [ ] a , int fromIndex , int toIndex ) { if ( java.util.Arrays.LegacyMergeSort.userRequested ) java.util.Arrays.legacyMergeSort ( a , fromIndex , toIndex ) ; else java.util.ComparableTimSort.sort ( a , fromIndex , toIndex ) ; }

Target:
public static void sort ( java.lang.Object [ ] a , int fromIndex , int toIndex ) { java.util.Arrays.rangeCheck ( a.length , fromIndex , toIndex ) ; if ( java.util.Arrays.LegacyMergeSort.userRequested ) java.util.Arrays.legacyMergeSort ( a , fromIndex , toIndex ) ; else java.util.ComparableTimSort.sort ( a , fromIndex , toIndex , null , 0 , 0 ) ; }
Source:
public void clearOnDisconnect ( ) { for ( com.android.incallui.call.DialerCall call : callById.values ( ) ) { final int state = call.getState ( ) ; if ( ( ( state != ( com.android.incallui.call.DialerCall.State.IDLE ) ) && ( state != ( com.android.incallui.call.DialerCall.State.INVALID ) ) ) && ( state != ( com.android.incallui.call.DialerCall.State.DISCONNECTED ) ) ) { call.setState ( DialerCall.State.DISCONNECTED ) ; call.setDisconnectCause ( new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.UNKNOWN ) ) ; updateCallInMap ( call ) ; } } notifyGenericListeners ( ) ; }

Target:
public void clearOnDisconnect ( ) { for ( com.android.incallui.call.DialerCall call : callById.values ( ) ) { final int state = call.getState ( ) ; if ( ( ( state != ( com.android.incallui.call.state.DialerCallState.IDLE ) ) && ( state != ( com.android.incallui.call.state.DialerCallState.INVALID ) ) ) && ( state != ( com.android.incallui.call.state.DialerCallState.DISCONNECTED ) ) ) { call.setState ( DialerCallState.DISCONNECTED ) ; call.setDisconnectCause ( new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.UNKNOWN ) ) ; updateCallInMap ( call ) ; } } notifyGenericListeners ( ) ; }
Source:
int getCount ( ) { int count = 0 ; if ( ( contactsCursor ) != null ) { count += contactsCursor.getCount ( ) ; } if ( ( nearbyPlacesCursor ) != null ) { count += nearbyPlacesCursor.getCount ( ) ; } if ( ( corpDirectoryCursor ) != null ) { count += corpDirectoryCursor.getCount ( ) ; } return count + ( searchActions.size ( ) ) ; }

Target:
int getCount ( ) { int count = 0 ; if ( ( contactsCursor ) != null ) { count += contactsCursor.getCount ( ) ; } if ( showLocationPermissionRequest ) { count ++ ; } else if ( ( nearbyPlacesCursor ) != null ) { count += nearbyPlacesCursor.getCount ( ) ; } if ( ( corpDirectoryCursor ) != null ) { count += corpDirectoryCursor.getCount ( ) ; } return count + ( searchActions.size ( ) ) ; }
Source:
public static com.google.common.collect.ImmutableList < com.android.tools.perflib.heap.Instance > compute ( @ com.android.annotations.NonNull java.lang.Iterable < ? extends com.android.tools.perflib.heap.Instance > roots ) { com.android.tools.perflib.heap.analysis.TopologicalSort.TopologicalSortVisitor visitor = new com.android.tools.perflib.heap.analysis.TopologicalSort.TopologicalSortVisitor ( ) ; for ( com.android.tools.perflib.heap.Instance root : roots ) { root.accept ( visitor ) ; } com.google.common.collect.ImmutableList < com.android.tools.perflib.heap.Instance > instances = visitor.getOrderedInstances ( ) ; Snapshot.SENTINEL_ROOT.setTopologicalOrder ( 0 ) ; int currentIndex = 0 ; for ( com.android.tools.perflib.heap.Instance node : instances ) { node.setTopologicalOrder ( ( ++ currentIndex ) ) ; } return instances ; }

Target:
public static com.google.common.collect.ImmutableList < com.android.tools.perflib.heap.Instance > compute ( @ com.android.annotations.NonNull java.lang.Iterable < com.android.tools.perflib.heap.RootObj > roots ) { com.android.tools.perflib.heap.analysis.TopologicalSort.TopologicalSortVisitor visitor = new com.android.tools.perflib.heap.analysis.TopologicalSort.TopologicalSortVisitor ( ) ; visitor.doVisit ( roots ) ; com.google.common.collect.ImmutableList < com.android.tools.perflib.heap.Instance > instances = visitor.getOrderedInstances ( ) ; Snapshot.SENTINEL_ROOT.setTopologicalOrder ( 0 ) ; int currentIndex = 0 ; for ( com.android.tools.perflib.heap.Instance node : instances ) { node.setTopologicalOrder ( ( ++ currentIndex ) ) ; } return instances ; }
Source:
public void onAvailable ( android.net.Network network , android.net.NetworkCapabilities networkCapabilities , android.net.LinkProperties linkProperties , boolean suspended ) { onAvailable ( network , networkCapabilities , linkProperties ) ; }

Target:
public void onAvailable ( android.net.Network network , android.net.NetworkCapabilities networkCapabilities , android.net.LinkProperties linkProperties ) { onAvailable ( network ) ; if ( ! ( networkCapabilities.hasCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED ) ) ) { onNetworkSuspended ( network ) ; } onCapabilitiesChanged ( network , networkCapabilities ) ; onLinkPropertiesChanged ( network , linkProperties ) ; }
Source:
public boolean performAccessibilityAction ( final int action , final android.os.Bundle arguments ) { 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 performAccessibilityAction ( action , arguments ) ; } } ) ; return ret ; } if ( mAwContents.supportsAccessibilityAction ( action ) ) { return mAwContents.performAccessibilityAction ( action , arguments ) ; } return mWebViewPrivate.super_performAccessibilityAction ( action , arguments ) ; }

Target:
public void onInitializeAccessibilityEvent ( final android.view.accessibility.AccessibilityEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onInitializeAccessibilityEvent ( event ) ; } } ) ; return ; } mAwContents.onInitializeAccessibilityEvent ( event ) ; }
Source:
public final void testHashCode ( ) { com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r = new com.android.ide.eclipse.adt.editors.layout.gscripts.Rect ( 1 , 2 , 3 , 4 ) ; com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r1 = new com.android.ide.eclipse.adt.editors.layout.gscripts.Rect ( 3 , 4 , 20 , 30 ) ; com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r2 = new com.android.ide.eclipse.adt.editors.layout.gscripts.Rect ( 3 , 4 , 20 , 30 ) ; assertFalse ( ( ( r1.hashCode ( ) ) == ( r.hashCode ( ) ) ) ) ; assertEquals ( r2.hashCode ( ) , r1.hashCode ( ) ) ; }

Target:
public final void testHashCode ( ) { com.android.ide.common.api.Rect r = new com.android.ide.common.api.Rect ( 1 , 2 , 3 , 4 ) ; com.android.ide.common.api.Rect r1 = new com.android.ide.common.api.Rect ( 3 , 4 , 20 , 30 ) ; com.android.ide.common.api.Rect r2 = new com.android.ide.common.api.Rect ( 3 , 4 , 20 , 30 ) ; assertFalse ( ( ( r1.hashCode ( ) ) == ( r.hashCode ( ) ) ) ) ; assertEquals ( r2.hashCode ( ) , r1.hashCode ( ) ) ; }
Source:
public void testConfigurationUpdatesWhenResizedFromFullscreen ( ) throws java.lang.Exception { if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }

Target:
public void testConfigurationUpdatesWhenResizedFromFullscreen ( ) throws java.lang.Exception { if ( ( ! ( supportsSplitScreenMultiWindow ( ) ) ) || ( ! ( supportsMultiWindowMode ( ) ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }
Source:
public java.io.OutputStream getOutputStream ( ) { if ( ( file ) == null ) { return new com.android.sched.util.stream.UncloseableOutputStream ( java.lang.System.out ) ; } else { clearRemover ( ) ; try { return new java.io.FileOutputStream ( file , append ) ; } catch ( java.io.FileNotFoundException e ) { throw new com.android.sched.util.ConcurrentIOException ( e ) ; } } }

Target:
public java.io.OutputStream getOutputStream ( ) { if ( ( printer ) != null ) { return new com.android.sched.util.stream.UncloseableOutputStream ( printer ) ; } else { clearRemover ( ) ; try { return new java.io.FileOutputStream ( file , append ) ; } catch ( java.io.FileNotFoundException e ) { throw new com.android.sched.util.ConcurrentIOException ( e ) ; } } }
Source:
protected void onPreHandleMessage ( android.os.Message msg ) { if ( ( ( msg.obj ) != null ) && ( ( msg.obj ) instanceof android.telecom.Logging.Session ) ) { java.lang.String messageCodeName = com.android.server.telecom.CallAudioRouteStateMachine.MESSAGE_CODE_TO_NAME.get ( msg.what , "unknown" ) ; android.telecom.Log.continueSession ( ( ( android.telecom.Logging.Session ) ( msg.obj ) ) , ( "CARSM.pM_" + messageCodeName ) ) ; android.telecom.Log.i ( this , "Message received: %s=%d, arg1=%d" , messageCodeName , msg.what , msg.arg1 ) ; } }

Target:
protected void onPreHandleMessage ( android.os.Message msg ) { if ( ( ( msg.obj ) != null ) && ( ( msg.obj ) instanceof com.android.internal.os.SomeArgs ) ) { android.telecom.Logging.Session session = ( ( android.telecom.Logging.Session ) ( ( ( com.android.internal.os.SomeArgs ) ( msg.obj ) ) . arg1 ) ) ; java.lang.String messageCodeName = com.android.server.telecom.CallAudioRouteStateMachine.MESSAGE_CODE_TO_NAME.get ( msg.what , "unknown" ) ; android.telecom.Log.continueSession ( session , ( "CARSM.pM_" + messageCodeName ) ) ; android.telecom.Log.i ( this , "Message received: %s=%d, arg1=%d" , messageCodeName , msg.what , msg.arg1 ) ; } }
Source:
public void onClick ( android.view.View view ) { if ( view == ( callBackButton ) ) { com.android.dialer.logging.Logger.get ( view.getContext ( ) ) . logImpression ( DialerImpression.Type.CALL_DETAILS_CALL_BACK ) ; com.android.dialer.util.DialerUtils.startActivityWithErrorToast ( view.getContext ( ) , new com.android.dialer.callintent.CallIntentBuilder ( contact.getNumber ( ) , CallInitiationType.Type.CALL_DETAILS ) . build ( ) ) ; } else { throw com.android.dialer.common.Assert.createIllegalStateFailException ( ( "View OnClickListener not implemented: " + view ) ) ; } }

Target:
public void onClick ( android.view.View view ) { if ( view == ( callBackButton ) ) { com.android.dialer.logging.Logger.get ( view.getContext ( ) ) . logImpression ( DialerImpression.Type.CALL_DETAILS_CALL_BACK ) ; com.android.dialer.util.DialerUtils.startActivityWithErrorToast ( view.getContext ( ) , new com.android.dialer.callintent.CallIntentBuilder ( ( ( contact.getNumber ( ) ) + ( contact.getPostDialDigits ( ) ) ) , CallInitiationType.Type.CALL_DETAILS ) . build ( ) ) ; } else { throw com.android.dialer.common.Assert.createIllegalStateFailException ( ( "View OnClickListener not implemented: " + view ) ) ; } }
Source:
public synchronized com.android.ide.common.rendering.LayoutLibrary getLayoutLibrary ( ) { if ( ( ( mLayoutBridgeInit ) == false ) && ( ( mLayoutLibrary.getStatus ( ) ) == ( com.android.ide.common.sdk.LoadStatus.LOADED ) ) ) { mLayoutLibrary.init ( new java.io.File ( mTarget.getPath ( IAndroidTarget.FONTS ) ) , getEnumValueMap ( ) ) ; mLayoutBridgeInit = true ; } return mLayoutLibrary ; }

Target:
public void warning ( java.lang.String tag , java.lang.String message ) { com.android.ide.eclipse.adt.AdtPlugin.log ( IStatus.WARNING , message ) ; }
Source:
protected java.io.File getAapt ( ) { return getAapt ( com.android.sdklib.repository.FullRevision.parseRevision ( "21" ) ) ; }

Target:
private static com.android.ide.common.internal.PngCruncher getCruncher ( ) { com.android.utils.ILogger logger = new com.android.utils.StdLogger ( StdLogger.Level.VERBOSE ) ; com.android.ide.common.process.ProcessExecutor processExecutor = new com.android.ide.common.process.DefaultProcessExecutor ( logger ) ; com.android.ide.common.process.ProcessOutputHandler processOutputHandler = new com.android.ide.common.process.LoggedProcessOutputHandler ( logger ) ; java.io.File aapt = com.android.builder.png.NinePatchAaptProcessorTestUtils.getAapt ( com.android.sdklib.repository.FullRevision.parseRevision ( "21" ) ) ; return new com.android.ide.common.internal.AaptCruncher ( aapt.getAbsolutePath ( ) , processExecutor , processOutputHandler ) ; }
Source:
private static void addOffloadExemptPrefixes ( java.util.Set < android.net.IpPrefix > prefixSet , android.net.LinkProperties lp ) { if ( lp == null ) return ; for ( android.net.LinkAddress linkAddr : lp.getAllLinkAddresses ( ) ) { prefixSet.add ( new android.net.IpPrefix ( linkAddr.getAddress ( ) , linkAddr.getPrefixLength ( ) ) ) ; } }

Target:
private static java.util.HashSet < android.net.IpPrefix > allLocalPrefixes ( java.lang.Iterable < android.net.NetworkState > netStates ) { final java.util.HashSet < android.net.IpPrefix > prefixSet = new java.util.HashSet < > ( ) ; for ( android.net.NetworkState ns : netStates ) { final android.net.LinkProperties lp = ns.linkProperties ; if ( lp == null ) continue ; prefixSet.addAll ( android.net.util.PrefixUtils.localPrefixesFrom ( lp ) ) ; } return prefixSet ; }
Source:
private static void assertMeidDeviceId ( java.lang.String deviceId ) { android.telephony.cts.TelephonyManagerTest.assertHexadecimalMeidFormat ( deviceId ) ; android.telephony.cts.TelephonyManagerTest.assertReportingBodyIdentifier ( deviceId , false ) ; }

Target:
private static void assertCdmaDeviceId ( java.lang.String deviceId ) { if ( ( deviceId.length ( ) ) == 14 ) { android.telephony.cts.TelephonyManagerTest.assertMeidFormat ( deviceId ) ; } else if ( ( deviceId.length ( ) ) == 8 ) { android.telephony.cts.TelephonyManagerTest.assertHexadecimalEsnFormat ( deviceId ) ; } else { fail ( "device id on CDMA must be 14-digit hex MEID or 8-digit hex ESN." ) ; } }
Source:
public void createDefaultBuildTypes ( @ org.gradle.model.Path ( value = "android.buildTypes" ) org.gradle.model.collection.ManagedSet < com.android.build.gradle.managed.BuildType > buildTypes ) { buildTypes.create ( new org.gradle.api.Action < com.android.build.gradle.managed.BuildType > ( ) { @ java.lang.Override public void execute ( com.android.build.gradle.managed.BuildType buildType ) { buildType.setName ( BuilderConstants.DEBUG ) ; buildType.setIsDebuggable ( true ) ; buildType.setIsEmbedMicroApp ( false ) ; } } ) ; buildTypes.create ( new org.gradle.api.Action < com.android.build.gradle.managed.BuildType > ( ) { @ java.lang.Override public void execute ( com.android.build.gradle.managed.BuildType buildType ) { buildType.setName ( BuilderConstants.RELEASE ) ; } } ) ; }

Target:
public void createDefaultBuildTypes ( @ org.gradle.model.Path ( value = "android.buildTypes" ) org.gradle.model.ModelSet < com.android.build.gradle.managed.BuildType > buildTypes ) { buildTypes.create ( new org.gradle.api.Action < com.android.build.gradle.managed.BuildType > ( ) { @ java.lang.Override public void execute ( com.android.build.gradle.managed.BuildType buildType ) { buildType.setName ( BuilderConstants.DEBUG ) ; buildType.setIsDebuggable ( true ) ; buildType.setIsEmbedMicroApp ( false ) ; } } ) ; buildTypes.create ( new org.gradle.api.Action < com.android.build.gradle.managed.BuildType > ( ) { @ java.lang.Override public void execute ( com.android.build.gradle.managed.BuildType buildType ) { buildType.setName ( BuilderConstants.RELEASE ) ; } } ) ; }
Source:
public void writeContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.JayceInternalWriterImpl out ) throws java.io.IOException { assert ( parameters ) != null ; assert ( annotations ) != null ; out.writeNodes ( parameters ) ; out.writeInt ( modifier ) ; out.writeNodes ( annotations ) ; out.writeNode ( body ) ; out.writeNodes ( markers ) ; }

Target:
public void writeContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.JayceInternalWriterImpl out ) throws java.io.IOException { assert ( annotations ) != null ; out.writeNodes ( getParameters ( ) ) ; out.writeInt ( modifier ) ; out.writeNodes ( annotations ) ; out.writeNode ( body ) ; out.writeNodes ( markers ) ; }
Source:
private com.android.ddmlib.NativeStackCallInfo sourceForAddr ( long addr ) { com.android.ddmlib.NativeLibraryMapInfo library = getLibraryFor ( addr ) ; if ( library != null ) { com.android.ddmuilib.Addr2Line process = com.android.ddmuilib.Addr2Line.getProcess ( library ) ; if ( process != null ) { com.android.ddmlib.NativeStackCallInfo info = process.getAddress ( addr ) ; if ( info != null ) { return info ; } } } return new com.android.ddmlib.NativeStackCallInfo ( addr , ( library != null ? library.getLibraryName ( ) : null ) , java.lang.Long.toHexString ( addr ) , "" ) ; }

Target:
private com.android.ddmlib.NativeStackCallInfo sourceForAddr ( long addr ) { com.android.ddmlib.NativeLibraryMapInfo library = getLibraryFor ( addr ) ; if ( library != null ) { com.android.ddmuilib.Addr2Line process = com.android.ddmuilib.Addr2Line.getProcess ( library , mClientData.getAbi ( ) ) ; if ( process != null ) { com.android.ddmlib.NativeStackCallInfo info = process.getAddress ( addr ) ; if ( info != null ) { return info ; } } } return new com.android.ddmlib.NativeStackCallInfo ( addr , ( library != null ? library.getLibraryName ( ) : null ) , java.lang.Long.toHexString ( addr ) , "" ) ; }
Source:
public void testSetLinkPropertiesEmptyAddress ( ) throws java.lang.Exception { android.telephony.data.DataCallResponse response = new android.telephony.data.DataCallResponse ( 0 , ( - 1 ) , 1 , 2 , "IP" , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_IFNAME , null , java.util.Arrays.asList ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_DNS ) ) , java.util.Arrays.asList ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_GATEWAY ) ) , java.util.Arrays.asList ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_PCSCF_ADDRESS ) , 1440 ) ; android.net.LinkProperties linkProperties = new android.net.LinkProperties ( ) ; org.junit.Assert.assertEquals ( SetupResult.ERR_UnacceptableParameter , setLinkProperties ( response , linkProperties ) ) ; }

Target:
public void testSetLinkPropertiesEmptyAddress ( ) throws java.lang.Exception { android.telephony.data.DataCallResponse response = new android.telephony.data.DataCallResponse ( 0 , ( - 1 ) , 1 , 2 , "IP" , com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_IFNAME , null , java.util.Arrays.asList ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_DNS ) ) , java.util.Arrays.asList ( android.net.NetworkUtils.numericToInetAddress ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_GATEWAY ) ) , java.util.Arrays.asList ( com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_PCSCF_ADDRESS ) , 1440 ) ; android.net.LinkProperties linkProperties = new android.net.LinkProperties ( ) ; org.junit.Assert.assertEquals ( SetupResult.ERROR_INVALID_ARG , setLinkProperties ( response , linkProperties ) ) ; }
Source:
private void initVersion ( java.util.Properties properties ) { java.lang.String target = properties.getProperty ( "target" ) ; if ( target != null ) { mVersion = com.android.sdklib.AndroidTargetHash.getPlatformVersion ( target ) ; if ( ( ( mVersion ) != null ) && ( mVersion.isPreview ( ) ) ) { com.android.sdklib.AndroidVersion version = com.android.ide.common.sdk.SdkVersionInfo.getVersion ( mVersion.getCodename ( ) , null ) ; if ( version != null ) { mVersion = version ; } } } }

Target:
private void initVersion ( java.util.Properties properties ) { java.lang.String target = properties.getProperty ( "target" ) ; if ( target != null ) { mVersion = com.android.sdklib.AndroidTargetHash.getPlatformVersion ( target ) ; if ( ( ( mVersion ) != null ) && ( mVersion.isPreview ( ) ) ) { com.android.sdklib.AndroidVersion version = com.android.sdklib.SdkVersionInfo.getVersion ( mVersion.getCodename ( ) , null ) ; if ( version != null ) { mVersion = version ; } } } }
Source:
public void remove ( ) { com.google.common.base.Preconditions.checkState ( ( ( current ) != null ) ) ; if ( ( current ) != ( next ) ) { previous = current.previous ; ( nextIndex ) -- ; } else { next = current.next ; } removeNode ( current ) ; current = null ; }

Target:
public void remove ( ) { checkForConcurrentModification ( ) ; com.google.common.collect.CollectPreconditions.checkRemove ( ( ( current ) != null ) ) ; if ( ( current ) != ( next ) ) { previous = current.previous ; ( nextIndex ) -- ; } else { next = current.next ; } removeNode ( current ) ; current = null ; expectedModCount = modCount ; }
Source:
public boolean isDataConnectivityPossible ( ) { int subId = mSubscriptionController.getDefaultDataSubId ( ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.isDataConnectivityPossible ( ) ; } else { return false ; } }

Target:
public void setSimPowerStateForSlot ( int slotIndex , int state ) { enforceModifyPermission ( ) ; int [ ] subId = mSubscriptionController.getSubIdUsingSlotIndex ( slotIndex ) ; if ( ( subId == null ) || ( ( subId.length ) == 0 ) ) { return ; } final com.android.internal.telephony.Phone phone = getPhone ( subId [ 0 ] ) ; if ( phone != null ) { phone.setSimPowerState ( state ) ; } }
Source:
public void testCompile002AsJackThenDex ( ) throws java.lang.Exception { java.io.File outJackTmp = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.srcToLib ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( toolchain.getDefaultBootClasspath ( ) ) , outJackTmp , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.switchstatement.test002.jack" ) ) ; } { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.libToExe ( outJackTmp , com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false ) ; } }

Target:
public void testCompile002AsJackThenDex ( ) throws java.lang.Exception { java.io.File outJackTmp = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToLib ( outJackTmp , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.switchstatement.test002.jack" ) ) ; } { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.libToExe ( outJackTmp , com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false ) ; } }
Source:
public static double scalb ( double d , int scaleFactor ) { return sun.misc.FpUtils.scalb ( d , scaleFactor ) ; }

Target:
public static float scalb ( float f , int scaleFactor ) { final int MAX_SCALE = ( ( ( sun.misc.FloatConsts.MAX_EXPONENT ) + ( - ( sun.misc.FloatConsts.MIN_EXPONENT ) ) ) + ( sun.misc.FloatConsts.SIGNIFICAND_WIDTH ) ) + 1 ; scaleFactor = java.lang.Math.max ( java.lang.Math.min ( scaleFactor , MAX_SCALE ) , ( - MAX_SCALE ) ) ; return ( ( float ) ( ( ( double ) ( f ) ) * ( java.lang.Math.powerOfTwoD ( scaleFactor ) ) ) ) ; }
Source:
private android.telecom.Connection startCallWithPhone ( com.android.internal.telephony.sip.SipPhone phone , android.telecom.ConnectionRequest request ) { java.lang.String number = request.getAddress ( ) . getSchemeSpecificPart ( ) ; if ( com.android.services.telephony.sip.SipConnectionService.VERBOSE ) com.android.services.telephony.sip.SipConnectionService.log ( ( "startCallWithPhone, number: " + number ) ) ; try { android.telecom.Connection originalConnection = phone.dial ( number , request.getVideoState ( ) ) ; return originalConnection ; } catch ( com.android.internal.telephony.CallStateException e ) { com.android.services.telephony.sip.SipConnectionService.log ( ( "startCallWithPhone, exception: " + e ) ) ; return null ; } }

Target:
private android.telecom.Connection startCallWithPhone ( com.android.internal.telephony.sip.SipPhone phone , android.telecom.ConnectionRequest request ) { java.lang.String number = request.getAddress ( ) . getSchemeSpecificPart ( ) ; if ( com.android.services.telephony.sip.SipConnectionService.VERBOSE ) com.android.services.telephony.sip.SipConnectionService.log ( ( "startCallWithPhone, number: " + number ) ) ; try { android.telecom.Connection originalConnection = phone.dial ( number , new com.android.internal.telephony.PhoneInternalInterface.DialArgs.Builder < > ( ) . setVideoState ( request.getVideoState ( ) ) . build ( ) ) ; return originalConnection ; } catch ( com.android.internal.telephony.CallStateException e ) { com.android.services.telephony.sip.SipConnectionService.log ( ( "startCallWithPhone, exception: " + e ) ) ; return null ; } }
Source:
public static synchronized com.android.ahat.TestDump getTestDump ( ) throws java.io.IOException { if ( ( com.android.ahat.TestDump.mCachedTestDump ) == null ) { com.android.ahat.TestDump.mCachedTestDump = new com.android.ahat.TestDump ( ) ; } return com.android.ahat.TestDump.mCachedTestDump ; }

Target:
public static synchronized com.android.ahat.TestDump getTestDump ( ) throws java.io.IOException { if ( com.android.ahat.TestDump.mTestDumpFailed ) { throw new java.lang.RuntimeException ( "Test dump failed before, assuming it will again" ) ; } if ( ( com.android.ahat.TestDump.mCachedTestDump ) == null ) { com.android.ahat.TestDump.mTestDumpFailed = true ; com.android.ahat.TestDump.mCachedTestDump = new com.android.ahat.TestDump ( ) ; com.android.ahat.TestDump.mTestDumpFailed = false ; } return com.android.ahat.TestDump.mCachedTestDump ; }
Source:
public void test_nullLocale ( ) { assertEquals ( java.util.Calendar.getInstance ( java.util.Locale.getDefault ( ) ) , java.util.Calendar.getInstance ( ( ( java.util.Locale ) ( null ) ) ) ) ; assertEquals ( java.util.Calendar.getInstance ( java.util.TimeZone.getDefault ( ) , java.util.Locale.getDefault ( ) ) , java.util.Calendar.getInstance ( java.util.TimeZone.getDefault ( ) , null ) ) ; assertEquals ( new java.util.GregorianCalendar ( java.util.Locale.getDefault ( ) ) , new java.util.GregorianCalendar ( ( ( java.util.Locale ) ( null ) ) ) ) ; }

Target:
public void test_nullLocale ( ) { assertCalendarConfigEquals ( java.util.Calendar.getInstance ( java.util.Locale.getDefault ( ) ) , java.util.Calendar.getInstance ( ( ( java.util.Locale ) ( null ) ) ) ) ; assertCalendarConfigEquals ( java.util.Calendar.getInstance ( java.util.TimeZone.getDefault ( ) , java.util.Locale.getDefault ( ) ) , java.util.Calendar.getInstance ( java.util.TimeZone.getDefault ( ) , null ) ) ; assertCalendarConfigEquals ( new java.util.GregorianCalendar ( java.util.Locale.getDefault ( ) ) , new java.util.GregorianCalendar ( ( ( java.util.Locale ) ( null ) ) ) ) ; }
Source:
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 ( ) ) ; }

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 < com.android.build.OutputFile > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertEquals ( 0 , result.size ( ) ) ; }
Source:
public void run ( ) { org.eclipse.ui.IWorkbenchWindow window = workbench.getActiveWorkbenchWindow ( ) ; if ( window != null ) { com.android.ide.eclipse.adt.internal.welcome.WelcomeWizard wizard = new com.android.ide.eclipse.adt.internal.welcome.WelcomeWizard ( mStore ) ; org.eclipse.jface.wizard.WizardDialog dialog = new org.eclipse.jface.wizard.WizardDialog ( window.getShell ( ) , wizard ) ; dialog.open ( ) ; } mStore.setAdtUsed ( true ) ; if ( mStore.isPingOptIn ( ) ) { sendUsageStats ( ) ; } }

Target:
public void run ( ) { org.eclipse.ui.IWorkbenchWindow window = workbench.getActiveWorkbenchWindow ( ) ; if ( window != null ) { com.android.ide.eclipse.adt.internal.welcome.WelcomeWizard wizard = new com.android.ide.eclipse.adt.internal.welcome.WelcomeWizard ( mStore , showSdkInstallPage , showUsageOptInPage ) ; org.eclipse.jface.wizard.WizardDialog dialog = new org.eclipse.jface.wizard.WizardDialog ( window.getShell ( ) , wizard ) ; dialog.open ( ) ; } mStore.setAdtUsed ( true ) ; if ( mStore.isPingOptIn ( ) ) { sendUsageStats ( ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) { BadFinalizer bf = new BadFinalizer ( ) ; java.lang.System.out.println ( "Constructed object." ) ; bf = null ; java.lang.System.out.println ( "Nulled. Requestion gc." ) ; java.lang.Runtime.getRuntime ( ) . gc ( ) ; for ( int i = 0 ; i < 8 ; i ++ ) { BadFinalizer.snooze ( 4000 ) ; java.lang.System.out.println ( "Requesting another GC." ) ; java.lang.Runtime.getRuntime ( ) . gc ( ) ; } java.lang.System.out.println ( "Done waiting." ) ; java.lang.System.exit ( 0 ) ; }

Target:
protected void finalize ( ) { java.lang.System.out.println ( "Finalizer started and spinning..." ) ; int j = 0 ; long start ; long end ; start = java.lang.System.nanoTime ( ) ; for ( int i = 0 ; i < 1000000 ; i ++ ) { j ++ ; } end = java.lang.System.nanoTime ( ) ; java.lang.System.out.println ( "Finalizer done spinning." ) ; java.lang.System.out.println ( "Finalizer sleeping forever now." ) ; while ( true ) { Main.snooze ( 10000 ) ; } }
Source:
static android.renderscript.Element.DataKind convertKind ( android.support.v8.renderscript.DataKind cdk ) { switch ( cdk ) { case USER : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; case PIXEL_L : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; case PIXEL_A : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; case PIXEL_LA : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; case PIXEL_RGB : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; case PIXEL_RGBA : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; } return null ; }

Target:
static android.renderscript.Element.DataKind convertKind ( android.support.v8.renderscript.DataKind cdk ) { switch ( cdk ) { case USER : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; case PIXEL_L : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; case PIXEL_A : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; case PIXEL_LA : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; case PIXEL_RGB : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; case PIXEL_RGBA : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; case PIXEL_DEPTH : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; case PIXEL_YUV : return android.support.v8.renderscript.android.renderscript.Element.DataKind ; } return null ; }
Source:
private org.eclipse.swt.graphics.Color getStyleColor ( com.android.ide.eclipse.adt.editors.layout.gscripts.DrawingStyle style , org.eclipse.swt.graphics.RGB defaultColorDesc , java.util.Map < com.android.ide.eclipse.adt.editors.layout.gscripts.DrawingStyle , org.eclipse.swt.graphics.Color > map ) { org.eclipse.swt.graphics.Color color = map.get ( style ) ; if ( color == null ) { color = new org.eclipse.swt.graphics.Color ( getGc ( ) . getDevice ( ) , defaultColorDesc ) ; map.put ( style , color ) ; } return color ; }

Target:
private org.eclipse.swt.graphics.Color getStyleColor ( com.android.ide.common.api.DrawingStyle style , org.eclipse.swt.graphics.RGB defaultColorDesc , java.util.Map < com.android.ide.common.api.DrawingStyle , org.eclipse.swt.graphics.Color > map ) { org.eclipse.swt.graphics.Color color = map.get ( style ) ; if ( color == null ) { color = new org.eclipse.swt.graphics.Color ( getGc ( ) . getDevice ( ) , defaultColorDesc ) ; map.put ( style , color ) ; } return color ; }
Source:
public void dump ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { pw.println ( "Dump of WifiConfigManager" ) ; pw.println ( "WifiConfigManager - Log Begin ----" ) ; mLocalLog.dump ( fd , pw , args ) ; pw.println ( "WifiConfigManager - Log End ----" ) ; }

Target:
public void dump ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { pw.println ( "Dump of WifiConfigManager" ) ; pw.println ( "WifiConfigManager - Log Begin ----" ) ; mLocalLog.dump ( fd , pw , args ) ; pw.println ( "WifiConfigManager - Log End ----" ) ; pw.println ( "WifiConfigManager - Configured networks Begin ----" ) ; for ( android.net.wifi.WifiConfiguration network : getInternalConfiguredNetworks ( ) ) { pw.println ( network ) ; } pw.println ( "WifiConfigManager - Configured networks End ----" ) ; pw.println ( ( "WifiConfigManager - Next network ID to be allocated " + ( mNextNetworkId ) ) ) ; pw.println ( ( "WifiConfigManager - Last selected network ID " + ( mLastSelectedNetworkId ) ) ) ; }
Source:
private com.android.jack.ir.ast.JThisRef makeThisRef ( com.android.jack.ir.sourceinfo.SourceInfo info ) { if ( ( ( curMethod.method ) == null ) || ( curMethod.method.isStatic ( ) ) ) { return null ; } assert ! ( ( curMethod.method.isAbstract ( ) ) || ( curMethod.method.isNative ( ) ) ) ; com.android.jack.ir.ast.JThis jThis = curMethod.method.getThis ( ) ; assert jThis != null ; return new com.android.jack.ir.ast.JThisRef ( info , jThis ) ; }

Target:
private com.android.jack.ir.ast.JThisRef makeThisRef ( com.android.jack.ir.sourceinfo.SourceInfo info ) { if ( ( ( curMethod.method ) == null ) || ( curMethod.method.isStatic ( ) ) ) { return null ; } assert ! ( ( curMethod.method.isAbstract ( ) ) || ( curMethod.method.isNative ( ) ) ) ; com.android.jack.ir.ast.JThis jThis = curMethod.method.getThis ( ) ; assert jThis != null ; return jThis.makeRef ( info ) ; }
Source:
public boolean disableAllNetworks ( java.util.Collection < android.net.wifi.WifiConfiguration > configs ) { if ( mVerboseLoggingEnabled ) localLog ( "disableAllNetworks" ) ; boolean networkDisabled = false ; for ( android.net.wifi.WifiConfiguration enabled : configs ) { if ( disableNetwork ( enabled ) ) { networkDisabled = true ; } } saveConfig ( ) ; return networkDisabled ; }

Target:
public int getFrameworkNetworkId ( int supplicantNetworkId ) { if ( ( mSupplicantNetworkId ) == supplicantNetworkId ) { return mFrameworkNetworkId ; } else { android.util.Log.e ( com.android.server.wifi.WifiSupplicantControl.TAG , ( ( ( "Unknown wpa_supplicant network ID " + supplicantNetworkId ) + " Current wpa_supplicant network ID " ) + ( mSupplicantNetworkId ) ) ) ; return android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID ; } }
Source:
private boolean mergeManifest ( org.w3c.dom.Document currentManifest , org.w3c.dom.Document fragment ) { com.android.manifmerger.ManifestMerger merger = new com.android.manifmerger.ManifestMerger ( com.android.manifmerger.MergerLog.wrapSdkLog ( com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) ) ) ; return ( ( currentManifest != null ) && ( fragment != null ) ) && ( merger.process ( currentManifest , fragment ) ) ; }

Target:
private boolean mergeManifest ( org.w3c.dom.Document currentManifest , org.w3c.dom.Document fragment ) { com.android.manifmerger.ManifestMerger merger = new com.android.manifmerger.ManifestMerger ( com.android.manifmerger.MergerLog.wrapSdkLog ( com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) ) , new com.android.ide.eclipse.adt.internal.sdk.AdtManifestMergeCallback ( ) ) ; return ( ( currentManifest != null ) && ( fragment != null ) ) && ( merger.process ( currentManifest , fragment ) ) ; }