auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void sort ( char [ ] a , int fromIndex , int toIndex ) { java.util.Arrays.rangeCheck ( a.length , fromIndex , toIndex ) ; java.util.DualPivotQuicksort.sort ( a , fromIndex , ( toIndex - 1 ) ) ; }

Target:
public static void sort ( short [ ] a , int fromIndex , int toIndex ) { java.util.Arrays.rangeCheck ( a.length , fromIndex , toIndex ) ; java.util.DualPivotQuicksort.sort ( a , fromIndex , ( toIndex - 1 ) , null , 0 , 0 ) ; }
Source:
private java.lang.String normalizeWord ( java.lang.String word ) { switch ( this ) { case LOWER_HYPHEN : return com.google.common.base.Ascii.toLowerCase ( word ) ; case LOWER_UNDERSCORE : return com.google.common.base.Ascii.toLowerCase ( word ) ; case LOWER_CAMEL : return com.google.common.base.CaseFormat.firstCharOnlyToUpper ( word ) ; case UPPER_CAMEL : return com.google.common.base.CaseFormat.firstCharOnlyToUpper ( word ) ; case UPPER_UNDERSCORE : return com.google.common.base.Ascii.toUpperCase ( word ) ; } throw new java.lang.RuntimeException ( ( "unknown case: " + ( this ) ) ) ; }

Target:
java.lang.String normalizeWord ( java.lang.String word ) { return com.google.common.base.Ascii.toUpperCase ( word ) ; }
Source:
public void merge ( @ javax.annotation.Nonnull com.android.sched.util.log.stats.Statistic statistic ) { com.android.sched.util.log.stats.ValueImpl value = ( ( com.android.sched.util.log.stats.ValueImpl ) ( statistic ) ) ; if ( ( value.value ) != null ) { assert ( this . value ) != null : ( ( "Wrong merge of value, target=" + ( this . value ) ) + ", source=" ) + ( value.value ) ; this . value = value.value ; } }

Target:
public void merge ( @ javax.annotation.Nonnull com.android.sched.util.log.stats.Statistic statistic ) { com.android.sched.util.log.stats.ValueImpl value = ( ( com.android.sched.util.log.stats.ValueImpl ) ( statistic ) ) ; if ( ( value.value ) != null ) { assert ( this . value ) == null : "Wrong merge of value, target=" + ( this . value ) ; this . value = value.value ; } }
Source:
public boolean addOrUpdatePasspointConfiguration ( android.net.wifi.hotspot2.PasspointConfiguration config ) { enforceChangePermission ( ) ; mLog.trace ( "addorUpdatePasspointConfiguration uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ! ( mContext.getResources ( ) . getBoolean ( com.android.internal.R.bool.config_wifi_hotspot2_enabled ) ) ) { throw new java.lang.UnsupportedOperationException ( "Passpoint not enabled" ) ; } return mWifiStateMachine.syncAddOrUpdatePasspointConfig ( mWifiStateMachineChannel , config ) ; }

Target:
public boolean addOrUpdatePasspointConfiguration ( android.net.wifi.hotspot2.PasspointConfiguration config ) { enforceChangePermission ( ) ; mLog.trace ( "addorUpdatePasspointConfiguration uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ! ( mContext.getResources ( ) . getBoolean ( com.android.internal.R.bool.config_wifi_hotspot2_enabled ) ) ) { throw new java.lang.UnsupportedOperationException ( "Passpoint not enabled" ) ; } return mWifiStateMachine.syncAddOrUpdatePasspointConfig ( mWifiStateMachineChannel , config , android.os.Binder.getCallingUid ( ) ) ; }
Source:
public boolean processMessage ( android.os.Message message ) { logStateAndMessage ( message , this ) ; switch ( message.what ) { case com.android.server.wifi.WifiStateMachine.CMD_AUTO_CONNECT : case com.android.server.wifi.WifiStateMachine.CMD_AUTO_ROAM : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DISCARD ; break ; case android.net.wifi.WifiManager.SAVE_NETWORK : case com.android.server.wifi.WifiStateMachine.CMD_AUTO_SAVE_NETWORK : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; case WifiMonitor.NETWORK_DISCONNECTION_EVENT : reportConnectionAttemptEnd ( WifiMetrics.ConnectionEvent.FAILURE_NETWORK_DISCONNECTION , WifiMetricsProto.ConnectionEvent.HLF_NONE ) ; return NOT_HANDLED ; case com.android.server.wifi.WifiStateMachine.CMD_SET_HIGH_PERF_MODE : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; case com.android.server.wifi.WifiStateMachine.CMD_START_SCAN : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; default : return NOT_HANDLED ; } return HANDLED ; }

Target:
public boolean processMessage ( android.os.Message message ) { logStateAndMessage ( message , this ) ; switch ( message.what ) { case com.android.server.wifi.WifiStateMachine.CMD_AUTO_CONNECT : case com.android.server.wifi.WifiStateMachine.CMD_AUTO_ROAM : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DISCARD ; break ; case android.net.wifi.WifiManager.SAVE_NETWORK : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; case WifiMonitor.NETWORK_DISCONNECTION_EVENT : reportConnectionAttemptEnd ( WifiMetrics.ConnectionEvent.FAILURE_NETWORK_DISCONNECTION , WifiMetricsProto.ConnectionEvent.HLF_NONE ) ; return NOT_HANDLED ; case com.android.server.wifi.WifiStateMachine.CMD_SET_HIGH_PERF_MODE : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; case com.android.server.wifi.WifiStateMachine.CMD_START_SCAN : messageHandlingStatus = com.android.server.wifi.WifiStateMachine.MESSAGE_HANDLING_STATUS_DEFERRED ; deferMessage ( message ) ; break ; default : return NOT_HANDLED ; } return HANDLED ; }
Source:
public static boolean getStoreTsStream ( android.content.Context context ) { com.android.tv.common.SoftPreconditions.checkState ( com.android.tv.tuner.TunerPreferences.sInitialized ) ; if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { return com.android.tv.tuner.TunerPreferences.sPreferenceValues.getBoolean ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_STORE_TS_STREAM , false ) ; } else { return com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . getBoolean ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_STORE_TS_STREAM , false ) ; } }

Target:
public static synchronized boolean getStoreTsStream ( android.content.Context context ) { com.android.tv.common.SoftPreconditions.checkState ( com.android.tv.tuner.TunerPreferences.sInitialized ) ; if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { return com.android.tv.tuner.TunerPreferences.sPreferenceValues.getBoolean ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_STORE_TS_STREAM , false ) ; } else { return com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . getBoolean ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_STORE_TS_STREAM , false ) ; } }
Source:
public java.awt.Rectangle layout ( javax.swing.JComponent c , java.awt.Rectangle bounds ) { if ( c instanceof com.intellij.execution.ui.layout.impl.Toolbar ) { bounds.height -= 5 ; return super . layout ( c , bounds ) ; } if ( c instanceof com.intellij.execution.ui.layout.impl.GridImpl ) { bounds.x -= 1 ; bounds.width += 1 ; if ( ! ( isHideTabs ( ) ) ) { bounds.y -= 1 ; bounds.height += 1 ; } } return super . layout ( c , bounds ) ; }

Target:
public java.awt.Rectangle layout ( javax.swing.JComponent c , java.awt.Rectangle bounds ) { if ( c instanceof com.intellij.execution.ui.layout.impl.Toolbar ) { bounds.height -= 5 ; return super . layout ( c , bounds ) ; } if ( c instanceof com.intellij.execution.ui.layout.impl.GridImpl ) { if ( ! ( isHideTabs ( ) ) ) { bounds.y -= 1 ; bounds.height += 1 ; } } return super . layout ( c , bounds ) ; }
Source:
private void setCallState ( android.bluetooth.BluetoothHeadsetClientCall c , int state ) { if ( state == ( c.getState ( ) ) ) { return ; } if ( state == ( android.bluetooth.BluetoothHeadsetClientCall.CALL_STATE_TERMINATED ) ) { if ( ( mAudioManager.getMode ( ) ) != ( android.media.AudioManager.MODE_NORMAL ) ) { mAudioManager.setMode ( AudioManager.MODE_NORMAL ) ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "abandonAudioFocus " ) ; mAudioManager.abandonAudioFocusForCall ( ) ; } } c.setState ( state ) ; sendCallChangedIntent ( c ) ; }

Target:
private void setCallState ( android.bluetooth.BluetoothHeadsetClientCall c , int state ) { if ( state == ( c.getState ( ) ) ) { return ; } c.setState ( state ) ; sendCallChangedIntent ( c ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.AllocationExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; java.util.List < com.android.jack.ir.ast.JExpression > arguments = popCallArgs ( info , x.arguments , x.binding ) ; pushNewExpression ( info , x , null , arguments , scope ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.AllocationExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; java.util.List < com.android.jack.ir.ast.JExpression > arguments = popCallArgs ( info , x.arguments , x.binding ) ; pushNewExpression ( info , x , null , arguments , scope ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public static com.android.tools.lint.detector.api.Issue create ( @ com.android.annotations.NonNull java.lang.String id , @ com.android.annotations.NonNull java.lang.String briefDescription , @ com.android.annotations.NonNull java.lang.String description , @ com.android.annotations.NonNull java.lang.String explanation , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Category category , int priority , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Severity severity , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Implementation implementation ) { return new com.android.tools.lint.detector.api.Issue ( id , briefDescription , description , explanation , category , priority , severity , implementation ) ; }

Target:
public static com.android.tools.lint.detector.api.Issue create ( @ com.android.annotations.NonNull java.lang.String id , @ com.android.annotations.NonNull java.lang.String briefDescription , @ java.lang.SuppressWarnings ( value = "UnusedParameters" ) java.lang.String description , @ com.android.annotations.NonNull java.lang.String explanation , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Category category , int priority , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Severity severity , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Implementation implementation ) { return new com.android.tools.lint.detector.api.Issue ( id , briefDescription , explanation , category , priority , severity , implementation ) ; }
Source:
private com.android.builder.VariantConfiguration getVariantWithManifestVersion ( final java.lang.String versionName ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override public java.lang.String getVersionNameFromManifest ( ) { return versionName ; } @ java.lang.Override protected void validate ( ) { } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }

Target:
private com.android.builder.VariantConfiguration getVariantWithManifestVersion ( final java.lang.String versionName ) { com.android.builder.VariantConfiguration variant = new com.android.builder.VariantConfiguration ( mDefaultConfig , new com.android.builder.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT ) { @ java.lang.Override public java.lang.String getVersionNameFromManifest ( ) { return versionName ; } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }
Source:
public void error ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable ) { java.lang.String description = describe ( message ) ; com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; if ( throwable != null ) { mHaveExceptions = true ; } addError ( tag , description ) ; }

Target:
public void error ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable , java.lang.Object data ) { java.lang.String description = describe ( message ) ; com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; if ( throwable != null ) { mHaveExceptions = true ; } addError ( tag , description ) ; }
Source:
public static void initLogging ( android.content.Context context ) { android.telecom.Log.setTag ( com.android.server.telecom.LogUtils.TAG ) ; android.telecom.Log.setSessionContext ( context ) ; android.telecom.Log.initMd5Sum ( ) ; for ( android.telecom.Logging.EventManager.TimedEventPair p : com.android.server.telecom.LogUtils.Events.Timings.sTimedEvents ) { android.telecom.Log.addRequestResponsePair ( p ) ; } android.telecom.Log.registerEventListener ( com.android.server.telecom.LogUtils :: eventRecordAdded ) ; android.telecom.Log.registerSessionListener ( Analytics :: addSessionTiming ) ; }

Target:
public static void initLogging ( android.content.Context context ) { android.telecom.Log.setTag ( com.android.server.telecom.LogUtils.TAG ) ; android.telecom.Log.setSessionContext ( context ) ; for ( android.telecom.Logging.EventManager.TimedEventPair p : com.android.server.telecom.LogUtils.Events.Timings.sTimedEvents ) { android.telecom.Log.addRequestResponsePair ( p ) ; } android.telecom.Log.registerEventListener ( com.android.server.telecom.LogUtils :: eventRecordAdded ) ; android.telecom.Log.registerSessionListener ( Analytics :: addSessionTiming ) ; }
Source:
private void setCurrentAppType ( boolean isGsm ) { if ( com.android.internal.telephony.uicc.UiccProfile.VDBG ) com.android.internal.telephony.uicc.UiccProfile.log ( "setCurrentAppType" ) ; synchronized ( mLock ) { boolean isLteOnCdmaMode = ( android.telephony.TelephonyManager.getLteOnCdmaModeStatic ( ) ) == ( com.android.internal.telephony.PhoneConstants.LTE_ON_CDMA_TRUE ) ; if ( isGsm || isLteOnCdmaMode ) { mCurrentAppType = UiccController.APP_FAM_3GPP ; } else { mCurrentAppType = UiccController.APP_FAM_3GPP2 ; } } }

Target:
private void setCurrentAppType ( boolean isGsm ) { if ( com.android.internal.telephony.uicc.UiccProfile.VDBG ) com.android.internal.telephony.uicc.UiccProfile.log ( "setCurrentAppType" ) ; synchronized ( mLock ) { if ( isGsm ) { mCurrentAppType = UiccController.APP_FAM_3GPP ; } else { mCurrentAppType = UiccController.APP_FAM_3GPP2 ; } } }
Source:
private void deleteOldFilesFromJavaFiles ( @ javax.annotation.Nonnull java.lang.String javaFileName ) throws com.android.jack.incremental.IncrementalException { assert ( fileDependencies ) != null ; java.util.List < java.lang.String > deletedTypes = new java.util.ArrayList < java.lang.String > ( ) ; for ( java.lang.String typeNameToRemove : fileDependencies.getTypeNames ( javaFileName ) ) { if ( ! ( deletedTypes.contains ( typeNameToRemove ) ) ) { deletedTypes.add ( typeNameToRemove ) ; com.android.sched.vfs.VPath vpath = new com.android.sched.vfs.VPath ( typeNameToRemove , '/' ) ; deleteFile ( FileType.JAYCE , vpath ) ; deleteFile ( FileType.DEX , vpath ) ; } } }

Target:
private void deleteOldFilesFromJavaFiles ( @ javax.annotation.Nonnull java.lang.String javaFileName ) throws com.android.jack.incremental.IncrementalException { java.util.List < java.lang.String > deletedTypes = new java.util.ArrayList < java.lang.String > ( ) ; for ( java.lang.String typeNameToRemove : fileDependencies.getTypeNames ( javaFileName ) ) { if ( ! ( deletedTypes.contains ( typeNameToRemove ) ) ) { deletedTypes.add ( typeNameToRemove ) ; com.android.sched.vfs.VPath vpath = new com.android.sched.vfs.VPath ( typeNameToRemove , '/' ) ; deleteFile ( FileType.JAYCE , vpath ) ; deleteFile ( FileType.DEX , vpath ) ; } } }
Source:
public synchronized com.android.sched.vfs.BaseVFile createVFile ( @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { try { return getVFile ( name ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { com.android.sched.vfs.BaseVFile file = vfs.createVFile ( this , name ) ; map.put ( name , file ) ; return file ; } catch ( com.android.sched.util.file.NotFileException e ) { throw new com.android.sched.util.file.CannotCreateFileException ( vfs.getVFileLocation ( this , name ) ) ; } }

Target:
public synchronized com.android.sched.vfs.BaseVFile createVFile ( @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { try { return getVFile ( name ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { com.android.sched.vfs.BaseVFile file = vfs.createVFile ( this , name ) ; map.put ( name , file ) ; return file ; } catch ( com.android.sched.util.file.NotFileException e ) { throw new com.android.sched.util.file.CannotCreateFileException ( vfs.getVFileLocation ( this , name ) , e ) ; } }
Source:
static int native_create ( int native_src_or_zero ) { android.graphics.Matrix_Delegate newDelegate = new android.graphics.Matrix_Delegate ( ) ; if ( native_src_or_zero > 0 ) { android.graphics.Matrix_Delegate oldDelegate = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_src_or_zero ) ; if ( oldDelegate != null ) { java.lang.System.arraycopy ( oldDelegate.mValues , 0 , newDelegate.mValues , 0 , android.graphics.Matrix_Delegate.MATRIX_SIZE ) ; } } return android.graphics.Matrix_Delegate.sManager.addNewDelegate ( newDelegate ) ; }

Target:
static long native_create ( long native_src_or_zero ) { android.graphics.Matrix_Delegate newDelegate = new android.graphics.Matrix_Delegate ( ) ; if ( native_src_or_zero > 0 ) { android.graphics.Matrix_Delegate oldDelegate = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_src_or_zero ) ; if ( oldDelegate != null ) { java.lang.System.arraycopy ( oldDelegate.mValues , 0 , newDelegate.mValues , 0 , android.graphics.Matrix_Delegate.MATRIX_SIZE ) ; } } return android.graphics.Matrix_Delegate.sManager.addNewDelegate ( newDelegate ) ; }
Source:
private com.android.ide.common.resources.platform.AttrsXmlParser getParser ( com.android.ide.common.resources.ResourceFile file ) { if ( ( mParserCache ) == null ) { mParserCache = new java.util.HashMap < com.android.ide.common.resources.ResourceFile , com.android.ide.common.resources.platform.AttrsXmlParser > ( ) ; } com.android.ide.common.resources.platform.AttrsXmlParser parser = mParserCache.get ( file ) ; if ( parser == null ) { parser = new com.android.ide.common.resources.platform.AttrsXmlParser ( file.getFile ( ) . getOsLocation ( ) , com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) ) ; parser.preload ( ) ; mParserCache.put ( file , parser ) ; } return parser ; }

Target:
private com.android.ide.common.resources.platform.AttrsXmlParser getParser ( com.android.ide.common.resources.ResourceFile file ) { if ( ( mParserCache ) == null ) { mParserCache = new java.util.HashMap < com.android.ide.common.resources.ResourceFile , com.android.ide.common.resources.platform.AttrsXmlParser > ( ) ; } com.android.ide.common.resources.platform.AttrsXmlParser parser = mParserCache.get ( file ) ; if ( parser == null ) { parser = new com.android.ide.common.resources.platform.AttrsXmlParser ( file.getFile ( ) . getOsLocation ( ) , com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) , 20 ) ; parser.preload ( ) ; mParserCache.put ( file , parser ) ; } return parser ; }
Source:
private void onSetInternalDataEnabled ( boolean enabled , android.os.Message onCompleteMsg ) { synchronized ( mDataEnabledSettings ) { if ( com.android.internal.telephony.dataconnection.DcTracker.DBG ) log ( ( "onSetInternalDataEnabled: enabled=" + enabled ) ) ; boolean sendOnComplete = true ; mDataEnabledSettings.setInternalDataEnabled ( enabled ) ; if ( enabled ) { log ( "onSetInternalDataEnabled: changed to enabled, try to setup data call" ) ; onTrySetupData ( Phone.REASON_DATA_ENABLED ) ; } else { sendOnComplete = false ; log ( "onSetInternalDataEnabled: changed to disabled, cleanUpAllConnections" ) ; cleanUpAllConnections ( Phone.REASON_DATA_DISABLED , onCompleteMsg ) ; } if ( sendOnComplete ) { if ( onCompleteMsg != null ) { onCompleteMsg.sendToTarget ( ) ; } } } }

Target:
private void onSetInternalDataEnabled ( boolean enabled , android.os.Message onCompleteMsg ) { if ( com.android.internal.telephony.dataconnection.DcTracker.DBG ) log ( ( "onSetInternalDataEnabled: enabled=" + enabled ) ) ; boolean sendOnComplete = true ; mDataEnabledSettings.setInternalDataEnabled ( enabled ) ; if ( enabled ) { log ( "onSetInternalDataEnabled: changed to enabled, try to setup data call" ) ; onTrySetupData ( Phone.REASON_DATA_ENABLED ) ; } else { sendOnComplete = false ; log ( "onSetInternalDataEnabled: changed to disabled, cleanUpAllConnections" ) ; cleanUpAllConnections ( Phone.REASON_DATA_DISABLED , onCompleteMsg ) ; } if ( sendOnComplete ) { if ( onCompleteMsg != null ) { onCompleteMsg.sendToTarget ( ) ; } } }
Source:
public static android.renderscript.ScriptIntrinsic3DLUT create ( android.renderscript.RenderScript rs , android.renderscript.Element e ) { int id = rs.nScriptIntrinsicCreate ( 8 , e.getID ( rs ) ) ; if ( ! ( e.isCompatible ( android.renderscript.Element.U8_4 ( rs ) ) ) ) { throw new android.renderscript.RSIllegalArgumentException ( "Element must be compatible with uchar4." ) ; } return new android.renderscript.ScriptIntrinsic3DLUT ( id , rs , e ) ; }

Target:
public static android.renderscript.ScriptIntrinsic3DLUT create ( android.renderscript.RenderScript rs , android.renderscript.Element e ) { long id = rs.nScriptIntrinsicCreate ( 8 , e.getID ( rs ) ) ; if ( ! ( e.isCompatible ( android.renderscript.Element.U8_4 ( rs ) ) ) ) { throw new android.renderscript.RSIllegalArgumentException ( "Element must be compatible with uchar4." ) ; } return new android.renderscript.ScriptIntrinsic3DLUT ( id , rs , e ) ; }
Source:
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive ( ) { org.bouncycastle.asn1.ASN1EncodableVector v = new org.bouncycastle.asn1.ASN1EncodableVector ( ) ; v.add ( new org.bouncycastle.asn1.DEROctetString ( nonce ) ) ; if ( ( icvLen ) != 16 ) { v.add ( new org.bouncycastle.asn1.ASN1Integer ( icvLen ) ) ; } return new org.bouncycastle.asn1.DERSequence ( v ) ; }

Target:
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive ( ) { org.bouncycastle.asn1.ASN1EncodableVector v = new org.bouncycastle.asn1.ASN1EncodableVector ( ) ; v.add ( new org.bouncycastle.asn1.DEROctetString ( nonce ) ) ; if ( ( icvLen ) != 12 ) { v.add ( new org.bouncycastle.asn1.ASN1Integer ( icvLen ) ) ; } return new org.bouncycastle.asn1.DERSequence ( v ) ; }
Source:
private java.util.Collection < com.android.jack.ir.ast.JFieldId > collectAllFieldIdsInHierarchy ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface referenceType ) { java.util.List < com.android.jack.ir.ast.JFieldId > collectedFields = new java.util.ArrayList < com.android.jack.ir.ast.JFieldId > ( ) ; assert ( allTypes ) != null ; for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : allTypes ) { if ( ( referenceType.canBeSafelyUpcast ( type ) ) || ( type.canBeSafelyUpcast ( referenceType ) ) ) { for ( com.android.jack.ir.ast.JField field : type.getFields ( ) ) { collectedFields.add ( field.getId ( ) ) ; } } } return collectedFields ; }

Target:
public static java.util.Collection < com.android.jack.ir.ast.JFieldId > collectAllFieldIdsInHierarchy ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface referenceType , @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JDefinedClassOrInterface > allTypes ) { java.util.List < com.android.jack.ir.ast.JFieldId > collectedFields = new java.util.ArrayList < com.android.jack.ir.ast.JFieldId > ( ) ; for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : allTypes ) { if ( ( referenceType.canBeSafelyUpcast ( type ) ) || ( type.canBeSafelyUpcast ( referenceType ) ) ) { for ( com.android.jack.ir.ast.JField field : type.getFields ( ) ) { collectedFields.add ( field.getId ( ) ) ; } } } return collectedFields ; }
Source:
synchronized android.telecom.Connection onCreateUnknownConnection ( android.bluetooth.BluetoothHeadsetClientCall call ) { android.net.Uri number = android.net.Uri.fromParts ( PhoneAccount.SCHEME_TEL , call.getNumber ( ) , null ) ; com.android.bluetooth.hfpclient.connserv.HfpClientConnection connection = connection = mConnections.get ( call.getUUID ( ) ) ; if ( connection != null ) { connection.onAdded ( ) ; updateConferenceableConnections ( ) ; return connection ; } else { android.util.Log.e ( mTAG , ( ( "Call " + call ) + " ignored: connection does not exist" ) ) ; return null ; } }

Target:
synchronized android.telecom.Connection onCreateUnknownConnection ( android.bluetooth.BluetoothHeadsetClientCall call ) { android.net.Uri number = android.net.Uri.fromParts ( PhoneAccount.SCHEME_TEL , call.getNumber ( ) , null ) ; com.android.bluetooth.hfpclient.connserv.HfpClientConnection connection = mConnections.get ( call.getUUID ( ) ) ; if ( connection != null ) { connection.onAdded ( ) ; return connection ; } else { android.util.Log.e ( mTAG , ( ( "Call " + call ) + " ignored: connection does not exist" ) ) ; return null ; } }
Source:
public void testConfigRequestBuilderDefaults ( ) { android.net.wifi.nan.ConfigRequest configRequest = new android.net.wifi.nan.ConfigRequest.Builder ( ) . build ( ) ; collector.checkThat ( "mClusterHigh" , ConfigRequest.CLUSTER_ID_MAX , org.hamcrest.core.IsEqual.equalTo ( configRequest.mClusterHigh ) ) ; collector.checkThat ( "mClusterLow" , ConfigRequest.CLUSTER_ID_MIN , org.hamcrest.core.IsEqual.equalTo ( configRequest.mClusterLow ) ) ; collector.checkThat ( "mMasterPreference" , 0 , org.hamcrest.core.IsEqual.equalTo ( configRequest.mMasterPreference ) ) ; collector.checkThat ( "mSupport5gBand" , false , org.hamcrest.core.IsEqual.equalTo ( configRequest.mSupport5gBand ) ) ; collector.checkThat ( "mEnableIdentityChangeCallback" , false , org.hamcrest.core.IsEqual.equalTo ( configRequest.mEnableIdentityChangeCallback ) ) ; }

Target:
public void testConfigRequestBuilderDefaults ( ) { android.net.wifi.nan.ConfigRequest configRequest = new android.net.wifi.nan.ConfigRequest.Builder ( ) . build ( ) ; collector.checkThat ( "mClusterHigh" , ConfigRequest.CLUSTER_ID_MAX , org.hamcrest.core.IsEqual.equalTo ( configRequest.mClusterHigh ) ) ; collector.checkThat ( "mClusterLow" , ConfigRequest.CLUSTER_ID_MIN , org.hamcrest.core.IsEqual.equalTo ( configRequest.mClusterLow ) ) ; collector.checkThat ( "mMasterPreference" , 0 , org.hamcrest.core.IsEqual.equalTo ( configRequest.mMasterPreference ) ) ; collector.checkThat ( "mSupport5gBand" , false , org.hamcrest.core.IsEqual.equalTo ( configRequest.mSupport5gBand ) ) ; }
Source:
final void freeTextLayoutCachesIfNeeded ( int configDiff ) { if ( configDiff != 0 ) { boolean hasLocaleConfigChange = ( configDiff & ( android.content.pm.ActivityInfo.CONFIG_LOCALE ) ) != 0 ; if ( hasLocaleConfigChange ) { android.graphics.Canvas.freeTextLayoutCaches ( ) ; if ( android.app.ActivityThread.DEBUG_CONFIGURATION ) android.util.Slog.v ( android.app.ActivityThread.TAG , "Cleared TextLayout Caches" ) ; } } }

Target:
static void freeTextLayoutCachesIfNeeded ( int configDiff ) { if ( configDiff != 0 ) { boolean hasLocaleConfigChange = ( configDiff & ( android.content.pm.ActivityInfo.CONFIG_LOCALE ) ) != 0 ; if ( hasLocaleConfigChange ) { android.graphics.Canvas.freeTextLayoutCaches ( ) ; if ( android.app.ActivityThread.DEBUG_CONFIGURATION ) android.util.Slog.v ( android.app.ActivityThread.TAG , "Cleared TextLayout Caches" ) ; } } }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JType type = getTypeMap ( ) . get ( x.targetType ) ; push ( new com.android.jack.ir.ast.JClassLiteral ( info , type , javaLangClass ) ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JType type = getTypeMap ( ) . get ( x.targetType ) ; push ( new com.android.jack.ir.ast.JClassLiteral ( info , type , javaLangClass ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public void onSdkLoaded ( ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.sdklib.IAndroidTarget target = currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; if ( target != null ) { mConfigComposite.onSdkLoaded ( target ) ; mConfigListener.onConfigurationChange ( ) ; } } }

Target:
public void onSdkLoaded ( ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( ( currentSdk != null ) && ( ( mEditedFile ) != null ) ) { com.android.sdklib.IAndroidTarget target = currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; if ( target != null ) { mConfigComposite.onSdkLoaded ( target ) ; mConfigListener.onConfigurationChange ( ) ; } } }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.LabeledStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.ast.JStatement statement = pop ( x.statement ) ; if ( statement == null ) { push ( null ) ; return ; } com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; push ( new com.android.jack.ir.ast.JLabeledStatement ( info , getOrCreateLabel ( info , x.label ) , statement ) ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.LabeledStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.ast.JStatement statement = pop ( x.statement ) ; if ( statement == null ) { push ( null ) ; return ; } com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; push ( new com.android.jack.ir.ast.JLabeledStatement ( info , getOrCreateLabel ( info , x.label ) , statement ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
private java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > createWpaSupplicantLoadData ( java.util.List < android.net.wifi.WifiConfiguration > configurations ) { java.util.List < android.net.wifi.WifiConfiguration > newConfigurations ; if ( WifiNative.HIDL_SUP_ENABLE ) { newConfigurations = configurations ; } else { newConfigurations = createMaskedWifiConfigurations ( configurations ) ; } java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > configurationMap = new java.util.HashMap < > ( ) ; for ( android.net.wifi.WifiConfiguration config : newConfigurations ) { configurationMap.put ( config.configKey ( true ) , config ) ; } return configurationMap ; }

Target:
private java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > createWpaSupplicantLoadData ( java.util.List < android.net.wifi.WifiConfiguration > configurations ) { java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > configurationMap = new java.util.HashMap < > ( ) ; for ( android.net.wifi.WifiConfiguration config : configurations ) { configurationMap.put ( config.configKey ( true ) , config ) ; } return configurationMap ; }
Source:
public void test_lockJJZ_NotShared ( ) throws java.lang.Exception { final long POSITION = 100 ; final long SIZE = 200 ; fileLock = writeOnlyFileChannel.lock ( POSITION , SIZE , false ) ; assertTrue ( fileLock.isValid ( ) ) ; assertFalse ( fileLock.isShared ( ) ) ; assertSame ( writeOnlyFileChannel , fileLock.channel ( ) ) ; assertSame ( writeOnlyFileChannel , fileLock.acquiredBy ( ) ) ; assertEquals ( POSITION , fileLock.position ( ) ) ; assertEquals ( SIZE , fileLock.size ( ) ) ; }

Target:
public void test_lockJJZ_NotShared ( ) throws java.lang.Exception { final long POSITION = 100 ; final long SIZE = 200 ; fileLock = writeOnlyFileChannel.lock ( POSITION , SIZE , false ) ; assertTrue ( fileLock.isValid ( ) ) ; assertFalse ( fileLock.isShared ( ) ) ; assertSame ( writeOnlyFileChannel , fileLock.channel ( ) ) ; assertEquals ( POSITION , fileLock.position ( ) ) ; assertEquals ( SIZE , fileLock.size ( ) ) ; }
Source:
public com.android.jack.test.toolchain.JackApiV02Toolchain setWithDebugInfos ( boolean withDebugInfos ) { try { if ( withDebugInfos ) { apiV02Config.setDebugInfoLevel ( DebugInfoLevel.FULL ) ; } else { apiV02Config.setDebugInfoLevel ( DebugInfoLevel.LINES ) ; } return this ; } catch ( com.android.jack.api.v01.ConfigurationException e ) { throw new com.android.jack.test.TestConfigurationException ( e ) ; } }

Target:
public com.android.jack.test.toolchain.JackApiV02Toolchain setWithDebugInfos ( boolean withDebugInfos ) { super . setWithDebugInfos ( withDebugInfos ) ; try { if ( withDebugInfos ) { apiV02Config.setDebugInfoLevel ( DebugInfoLevel.FULL ) ; } else { apiV02Config.setDebugInfoLevel ( DebugInfoLevel.LINES ) ; } return this ; } catch ( com.android.jack.api.v01.ConfigurationException e ) { throw new com.android.jack.test.TestConfigurationException ( e ) ; } }
Source:
public static java.io.File workspacePathToFile ( @ com.android.annotations.NonNull org.eclipse.core.runtime.IPath path ) { org.eclipse.core.resources.IWorkspaceRoot root = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) . getRoot ( ) ; org.eclipse.core.resources.IResource res = root.findMember ( path ) ; if ( res != null ) { return res.getLocation ( ) . toFile ( ) ; } return path.toFile ( ) ; }

Target:
public static java.io.File workspacePathToFile ( @ com.android.annotations.NonNull org.eclipse.core.runtime.IPath path ) { org.eclipse.core.resources.IWorkspaceRoot root = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) . getRoot ( ) ; org.eclipse.core.resources.IResource res = root.findMember ( path ) ; if ( res != null ) { org.eclipse.core.runtime.IPath location = res.getLocation ( ) ; if ( location != null ) { return location.toFile ( ) ; } return root.getLocation ( ) . append ( path ) . toFile ( ) ; } return path.toFile ( ) ; }
Source:
public int stopRssiMonitoring ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.stopRssiMonitoring ( ) ; } else { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "stopRssiMonitoring, cmdId " + ( com.android.server.wifi.WifiNative.sRssiMonitorCmdId ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { int ret = 0 ; if ( ( com.android.server.wifi.WifiNative.sRssiMonitorCmdId ) != 0 ) { ret = com.android.server.wifi.WifiNative.stopRssiMonitoringNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sRssiMonitorCmdId ) ; } com.android.server.wifi.WifiNative.sRssiMonitorCmdId = 0 ; return ret ; } else { return - 1 ; } } } }

Target:
public int stopRssiMonitoring ( ) { return mWifiVendorHal.stopRssiMonitoring ( ) ; }
Source:
public com.android.tools.r8.utils.AndroidApp.Builder addProgramDirectory ( java.nio.file.Path directory ) throws java.io.IOException { java.io.File [ ] resources = directory.toFile ( ) . listFiles ( ( file ) -> com.android.tools.r8.utils.FileUtils.isDexFile ( file.toPath ( ) ) ) ; for ( java.io.File source : resources ) { addFile ( source.toPath ( ) , ClassKind.PROGRAM ) ; } java.io.File mapFile = new java.io.File ( directory.toFile ( ) , com.android.tools.r8.utils.AndroidApp.DEFAULT_PROGUARD_MAP_FILE ) ; if ( mapFile.exists ( ) ) { setProguardMapFile ( mapFile.toPath ( ) ) ; } return this ; }

Target:
public com.android.tools.r8.utils.AndroidApp.Builder addProgramDirectory ( java.nio.file.Path directory ) throws java.io.IOException { java.io.File [ ] resources = directory.toFile ( ) . listFiles ( ( file ) -> com.android.tools.r8.utils.FileUtils.isDexFile ( file.toPath ( ) ) ) ; for ( java.io.File source : resources ) { addFile ( source.toPath ( ) , ClassKind.PROGRAM , false ) ; } java.io.File mapFile = new java.io.File ( directory.toFile ( ) , com.android.tools.r8.utils.AndroidApp.DEFAULT_PROGUARD_MAP_FILE ) ; if ( mapFile.exists ( ) ) { setProguardMapFile ( mapFile.toPath ( ) ) ; } return this ; }
Source:
public void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc ) { boolean itf = opcode == ( org.objectweb.asm.Opcodes.INVOKEINTERFACE ) ; cp.newMethod ( owner , name , desc , itf ) ; mv.visitMethodInsn ( opcode , owner , name , desc ) ; }

Target:
public void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc , final boolean itf ) { cp.newMethod ( owner , name , desc , itf ) ; mv.visitMethodInsn ( opcode , owner , name , desc , itf ) ; }
Source:
public void test_equalsLjava_lang_Object ( ) { assertTrue ( "Equality test failed" , new java.lang.Character ( 'A' ) . equals ( new java.lang.Character ( 'A' ) ) ) ; assertTrue ( "Equality test failed" , ( ! ( new java.lang.Character ( 'A' ) . equals ( new java.lang.Character ( 'a' ) ) ) ) ) ; }

Target:
public void test_equalsLjava_lang_Object ( ) { assertTrue ( "Equality test failed" , new java.lang.Character ( 'A' ) . equals ( new java.lang.Character ( 'A' ) ) ) ; assertFalse ( "Equality test failed" , new java.lang.Character ( 'A' ) . equals ( new java.lang.Character ( 'a' ) ) ) ; }
Source:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { com.google.common.base.Preconditions.checkArgument ( com.google.devtools.build.android.desugar.BitFlags.isSet ( access , Opcodes.ACC_INTERFACE ) ) ; com.google.common.base.Preconditions.checkState ( ( ( this . interfaces ) == null ) ) ; this . interfaces = com.google.common.collect.ImmutableList.copyOf ( interfaces ) ; interfaceName = name ; }

Target:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { com.google.common.base.Preconditions.checkArgument ( com.google.devtools.build.android.desugar.BitFlags.isSet ( access , Opcodes.ACC_INTERFACE ) ) ; com.google.common.base.Preconditions.checkState ( ( ( interfaceName ) == null ) ) ; interfaceName = name ; }
Source:
public static void setShouldShowSetupActivity ( android.content.Context context , boolean need ) { if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { com.android.tv.tuner.TunerPreferences.setPreference ( context , com.android.tv.tuner.TunerPreferences.PREFS_KEY_LAUNCH_SETUP , need ) ; } else { com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . edit ( ) . putBoolean ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_LAUNCH_SETUP , need ) . apply ( ) ; } }

Target:
public static synchronized void setShouldShowSetupActivity ( android.content.Context context , boolean need ) { if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { com.android.tv.tuner.TunerPreferences.setPreference ( context , com.android.tv.tuner.TunerPreferences.PREFS_KEY_LAUNCH_SETUP , need ) ; } else { com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . edit ( ) . putBoolean ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_LAUNCH_SETUP , need ) . apply ( ) ; } }
Source:
private static void checkStringReferences ( ) { for ( int i = 0 ; i < ( Deep.MAX_DEPTH ) ; i ++ ) { if ( ( Deep.strong [ i ] ) != ( Deep.weak [ i ] . get ( ) ) ) { java.lang.System.err.println ( ( ( ( ( ( "Deep: " + i ) + " strong=" ) + ( Deep.strong [ i ] ) ) + ", weak=" ) + ( Deep.weak [ i ] . get ( ) ) ) ) ; } } }

Target:
private static void checkStringReferences ( ) { for ( int i = 0 ; i < ( Deep.MAX_DEPTH ) ; i ++ ) { if ( ( Deep.strong [ i ] ) != ( Deep.weak [ i ] . get ( ) ) ) { java.lang.System.out.println ( ( ( ( ( ( "Deep: " + i ) + " strong=" ) + ( Deep.strong [ i ] ) ) + ", weak=" ) + ( Deep.weak [ i ] . get ( ) ) ) ) ; } } }
Source:
protected void onRoamingOff ( ) { if ( DBG ) log ( "onRoamingOff" ) ; if ( ( mUserDataEnabled ) == false ) return ; if ( ( getDataOnRoamingEnabled ( ) ) == false ) { notifyOffApnsOfAvailability ( Phone.REASON_ROAMING_OFF ) ; setupDataOnConnectableApns ( Phone.REASON_ROAMING_OFF ) ; } else { notifyDataConnection ( Phone.REASON_ROAMING_OFF ) ; } }

Target:
protected void onRoamingOff ( ) { if ( DBG ) log ( "onRoamingOff" ) ; if ( ! ( mUserDataEnabled ) ) return ; if ( ( getDataOnRoamingEnabled ( ) ) == false ) { notifyOffApnsOfAvailability ( Phone.REASON_ROAMING_OFF ) ; setupDataOnConnectableApns ( Phone.REASON_ROAMING_OFF ) ; } else { notifyDataConnection ( Phone.REASON_ROAMING_OFF ) ; } }
Source:
void logWindowList ( java.lang.String prefix ) { int N = mWindows.size ( ) ; while ( N > 0 ) { N -- ; android.util.Log.v ( com.android.server.WindowManagerService.TAG , ( ( ( ( prefix + "#" ) + N ) + ": " ) + ( mWindows.get ( N ) ) ) ) ; } }

Target:
void logWindowList ( java.lang.String prefix ) { int N = mWindows.size ( ) ; while ( N > 0 ) { N -- ; android.util.Slog.v ( com.android.server.WindowManagerService.TAG , ( ( ( ( prefix + "#" ) + N ) + ": " ) + ( mWindows.get ( N ) ) ) ) ; } }
Source:
public synchronized void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface declaredType ) throws java.lang.Exception { if ( ( declaredType.getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { return ; } com.android.jack.Jack.getSession ( ) . getFileDependencies ( ) . addMappingBetweenJavaFileAndType ( declaredType.getSourceInfo ( ) . getFileName ( ) , declaredType ) ; }

Target:
public synchronized void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface declaredType ) throws java.lang.Exception { if ( ( declaredType.getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { return ; } session.getFileDependencies ( ) . addMappingBetweenJavaFileAndType ( declaredType.getSourceInfo ( ) . getFileName ( ) , declaredType ) ; }
Source:
private void runStackResize ( ) throws java.lang.Exception { java.lang.String stackIdStr = nextArgRequired ( ) ; int stackId = java.lang.Integer.valueOf ( stackIdStr ) ; final android.graphics.Rect bounds = getBounds ( ) ; if ( bounds == null ) { java.lang.System.err.println ( "Error: invalid input bounds" ) ; return ; } try { mAm.resizeStack ( stackId , bounds ) ; } catch ( android.os.RemoteException e ) { } }

Target:
private void runStackResize ( ) throws java.lang.Exception { java.lang.String stackIdStr = nextArgRequired ( ) ; int stackId = java.lang.Integer.parseInt ( stackIdStr ) ; final android.graphics.Rect bounds = getBounds ( ) ; if ( bounds == null ) { java.lang.System.err.println ( "Error: invalid input bounds" ) ; return ; } try { mAm.resizeStack ( stackId , bounds ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testfindSpecial_invokeSuperBehaviour ( ) ; Main.testfindSpecial_invokeDirectBehaviour ( ) ; Main.testExceptionDetailMessages ( ) ; Main.testfindVirtual ( ) ; Main.testfindStatic ( ) ; Main.testUnreflects ( ) ; Main.testAsType ( ) ; Main.testConstructors ( ) ; Main.testStringConstructors ( ) ; Main.testReturnValueConversions ( ) ; Main.testVariableArity ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Throwable { Main.testfindSpecial_invokeSuperBehaviour ( ) ; Main.testfindSpecial_invokeDirectBehaviour ( ) ; Main.testExceptionDetailMessages ( ) ; Main.testfindVirtual ( ) ; Main.testfindStatic ( ) ; Main.testUnreflects ( ) ; Main.testAsType ( ) ; Main.testConstructors ( ) ; Main.testStringConstructors ( ) ; Main.testReturnValueConversions ( ) ; }
Source:
< T > T serialClone ( T o ) { try { java.io.ObjectInputStream ois = new java.io.ObjectInputStream ( new java.io.ByteArrayInputStream ( serialBytes ( o ) ) ) ; T clone = ( ( T ) ( ois.readObject ( ) ) ) ; assertSame ( o.getClass ( ) , clone.getClass ( ) ) ; return clone ; } catch ( java.lang.Throwable t ) { threadUnexpectedException ( t ) ; return null ; } }

Target:
< T > T serialClone ( T o ) { try { java.io.ObjectInputStream ois = new java.io.ObjectInputStream ( new java.io.ByteArrayInputStream ( serialBytes ( o ) ) ) ; T clone = ( ( T ) ( ois.readObject ( ) ) ) ; assertSame ( o.getClass ( ) , clone.getClass ( ) ) ; return clone ; } catch ( java.lang.Throwable fail ) { threadUnexpectedException ( fail ) ; return null ; } }
Source:
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 ) ; }

Target:
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 ) ; }
Source:
byte [ ] serialBytes ( java.lang.Object o ) { try { java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream ( ) ; java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream ( bos ) ; oos.writeObject ( o ) ; oos.flush ( ) ; oos.close ( ) ; return bos.toByteArray ( ) ; } catch ( java.lang.Throwable t ) { threadUnexpectedException ( t ) ; return new byte [ 0 ] ; } }

Target:
byte [ ] serialBytes ( java.lang.Object o ) { try { java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream ( ) ; java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream ( bos ) ; oos.writeObject ( o ) ; oos.flush ( ) ; oos.close ( ) ; return bos.toByteArray ( ) ; } catch ( java.lang.Throwable fail ) { threadUnexpectedException ( fail ) ; return new byte [ 0 ] ; } }