auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean setP2pGroupIdle ( java.lang.String iface , int time ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setGroupIdle ( iface , time ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " SET p2p_group_idle " ) + time ) ) ; } } }

Target:
public boolean p2pServDiscCancelReq ( java.lang.String id ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.cancelServiceDiscovery ( id ) ; } else { return doBooleanCommand ( ( "P2P_SERV_DISC_CANCEL_REQ " + id ) ) ; } }
Source:
void showDataDisconnectedRoaming ( ) { if ( com.android.phone.NotificationMgr.DBG ) log ( "showDataDisconnectedRoaming()..." ) ; android.content.Intent intent = new android.content.Intent ( mContext , android.provider.Settings.class ) ; android.app.Notification notification = new android.app.Notification ( mContext , android.R.drawable.stat_sys_warning , null , java.lang.System.currentTimeMillis ( ) , mContext.getString ( R.string.roaming ) , mContext.getString ( R.string.roaming_reenable_message ) , intent ) ; mNotificationMgr.notify ( com.android.phone.NotificationMgr.DATA_DISCONNECTED_ROAMING_NOTIFICATION , notification ) ; }

Target:
void showDataDisconnectedRoaming ( ) { if ( com.android.phone.NotificationMgr.DBG ) log ( "showDataDisconnectedRoaming()..." ) ; android.content.Intent intent = new android.content.Intent ( mContext , android.provider.Settings.class ) ; android.app.Notification notification = new android.app.Notification ( android.R.drawable.stat_sys_warning , null , java.lang.System.currentTimeMillis ( ) ) ; notification.setLatestEventInfo ( mContext , mContext.getString ( R.string.roaming ) , mContext.getString ( R.string.roaming_reenable_message ) , android.app.PendingIntent.getActivity ( mContext , 0 , intent , 0 ) ) ; mNotificationMgr.notify ( com.android.phone.NotificationMgr.DATA_DISCONNECTED_ROAMING_NOTIFICATION , notification ) ; }
Source:
public void test_SSL_check_private_key_cert_then_key ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getServerCertificates ( ) ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getServerPrivateKey ( ) . getPkeyContext ( ) ) ; org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_check_private_key_cert_then_key ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getServerCertificates ( ) ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getServerPrivateKey ( ) . getNativeRef ( ) ) ; org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public boolean matches ( @ com.android.annotations.NonNull java.lang.String name ) { int length = name.length ( ) ; char [ ] chars = mBinding.readableName ( ) ; if ( ( chars.length ) != length ) { return false ; } for ( int i = 0 ; i < length ; i ++ ) { if ( ( chars [ i ] ) != ( name.charAt ( i ) ) ) { return false ; } } return true ; }

Target:
public com.android.tools.lint.ResolvedField getField ( @ com.android.annotations.NonNull java.lang.String name ) { if ( ( mBinding ) instanceof org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding ) { org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding cls = ( ( org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding ) ( mBinding ) ) ; org.eclipse.jdt.internal.compiler.lookup.FieldBinding [ ] fields = cls.fields ( ) ; if ( fields != null ) { for ( org.eclipse.jdt.internal.compiler.lookup.FieldBinding field : fields ) { if ( com.android.tools.lint.EcjParser.sameChars ( name , field.name ) ) { return new com.android.tools.lint.EcjParser.EcjResolvedField ( field ) ; } } } } return null ; }
Source:
public static java.lang.String retrieveFieldValueName ( java.lang.String id , int field , int value , int style , java.util.Locale locale ) { sun.util.locale.provider.LocaleServiceProviderPool pool = sun.util.locale.provider.LocaleServiceProviderPool.getPool ( java.util.spi.CalendarNameProvider.class ) ; return pool.getLocalizedObject ( sun.util.locale.provider.CalendarDataUtility.CalendarFieldValueNameGetter.INSTANCE , locale , sun.util.locale.provider.CalendarDataUtility.normalizeCalendarType ( id ) , field , value , style , false ) ; }

Target:
public static java.util.Map < java.lang.String , java.lang.Integer > retrieveJavaTimeFieldValueNames ( java.lang.String id , int field , int style , java.util.Locale locale ) { return null ; }
Source:
void setCodecConfigPreference ( android.bluetooth.BluetoothCodecConfig codecConfig ) { setCodecConfigPreferenceNative ( codecConfig.getCodecType ( ) , codecConfig.getCodecPriority ( ) , codecConfig.getSampleRate ( ) , codecConfig.getBitsPerSample ( ) , codecConfig.getChannelMode ( ) , codecConfig.getCodecSpecific1 ( ) , codecConfig.getCodecSpecific2 ( ) , codecConfig.getCodecSpecific3 ( ) , codecConfig.getCodecSpecific4 ( ) ) ; }

Target:
void setCodecConfigPreference ( android.bluetooth.BluetoothCodecConfig codecConfig ) { android.bluetooth.BluetoothCodecConfig [ ] codecConfigArray = new android.bluetooth.BluetoothCodecConfig [ 1 ] ; codecConfigArray [ 0 ] = codecConfig ; setCodecConfigPreferenceNative ( codecConfigArray ) ; }
Source:
public boolean equals ( @ javax.annotation.CheckForNull java.lang.Object obj ) { if ( obj == ( this ) ) { return true ; } if ( obj instanceof com.android.sched.item.ItemSet < ? > ) { com.android.sched.item.ItemSet < T > set = ( ( com.android.sched.item.ItemSet < T > ) ( obj ) ) ; return equals ( set.bitmap ) ; } else { return false ; } }

Target:
public final boolean equals ( @ javax.annotation.CheckForNull java.lang.Object obj ) { if ( obj == ( this ) ) { return true ; } if ( obj instanceof com.android.sched.item.ItemSet < ? > ) { com.android.sched.item.ItemSet < T > set = ( ( com.android.sched.item.ItemSet < T > ) ( obj ) ) ; return bitmapEquals ( set.bitmap ) ; } else { return false ; } }
Source:
public void onStateUpdated ( android.telephony.mbms.DownloadRequest request , android.telephony.mbms.FileInfo fileInfo , @ android.telephony.MbmsDownloadSession.DownloadStatus int state ) { try { callback.onStateUpdated ( request , fileInfo , state ) ; } catch ( android.os.RemoteException e ) { onAppCallbackDied ( uid , downloadRequest.getSubscriptionId ( ) ) ; } }

Target:
public void onProgressUpdated ( android.telephony.mbms.DownloadRequest request , android.telephony.mbms.FileInfo fileInfo , int currentDownloadSize , int fullDownloadSize , int currentDecodedSize , int fullDecodedSize ) { if ( ! ( isFilterFlagSet ( android.telephony.mbms.vendor.PROGRESS_UPDATES ) ) ) { return ; } try { mCallback.onProgressUpdated ( request , fileInfo , currentDownloadSize , fullDownloadSize , currentDecodedSize , fullDecodedSize ) ; } catch ( android.os.RemoteException e ) { onRemoteException ( e ) ; } }
Source:
final void ensureBootCompleted ( ) { boolean booting ; boolean enableScreen ; synchronized ( this ) { booting = mBooting ; mBooting = false ; enableScreen = ! ( mBooted ) ; mBooted = true ; } if ( booting ) { finishBooting ( ) ; } if ( enableScreen ) { enableScreenAfterBoot ( ) ; } }

Target:
final void ensureBootCompleted ( ) { boolean booting ; boolean enableScreen ; synchronized ( this ) { booting = mBooting ; mBooting = false ; enableScreen = ! ( mBooted ) ; mBooted = true ; } if ( booting ) { android.os.Trace.traceBegin ( Trace.TRACE_TAG_ACTIVITY_MANAGER , "FinishBooting" ) ; finishBooting ( ) ; android.os.Trace.traceEnd ( Trace.TRACE_TAG_ACTIVITY_MANAGER ) ; } if ( enableScreen ) { enableScreenAfterBoot ( ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { for ( int i = 0 ; i < 20 ; ++ i ) { Main.checkRegisterNativeAllocation ( ) ; } synchronized ( Main.deadlockLock ) { Main.allocateDeadlockingFinalizer ( ) ; while ( ! ( Main.aboutToDeadlock ) ) { Main.checkRegisterNativeAllocation ( ) ; } Main.triggerBlockingRegisterNativeAllocation ( ) ; } java.lang.System.out.println ( "Test complete" ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { for ( int i = 0 ; i < 20 ; ++ i ) { Main.checkRegisterNativeAllocation ( ) ; } synchronized ( Main.deadlockLock ) { Main.allocateDeadlockingFinalizer ( ) ; while ( ! ( Main.aboutToDeadlock ) ) { java.lang.Runtime.getRuntime ( ) . gc ( ) ; } Main.triggerBlockingRegisterNativeAllocation ( ) ; } java.lang.System.out.println ( "Test complete" ) ; }
Source:
public void test_getKeyManagers ( ) throws java.lang.Exception { if ( ! ( tests.api.javax.net.ssl.KeyManagerFactory1Test.DEFSupported ) ) fail ( tests.api.javax.net.ssl.KeyManagerFactory1Test.NotSupportedMsg ) ; javax.net.ssl.KeyManagerFactory kmf = javax.net.ssl.KeyManagerFactory.getInstance ( tests.api.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm ) ; char [ ] pass = "password" . toCharArray ( ) ; kmf.init ( null , pass ) ; assertNotNull ( "Key manager array is null" , kmf.getKeyManagers ( ) ) ; assertEquals ( "Incorrect size of array" , 1 , kmf.getKeyManagers ( ) . length ) ; }

Target:
public void test_getKeyManagers ( ) throws java.lang.Exception { if ( ! ( org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.DEFSupported ) ) fail ( org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.NotSupportedMsg ) ; javax.net.ssl.KeyManagerFactory kmf = javax.net.ssl.KeyManagerFactory.getInstance ( org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory1Test.defaultAlgorithm ) ; char [ ] pass = "password" . toCharArray ( ) ; kmf.init ( null , pass ) ; assertNotNull ( "Key manager array is null" , kmf.getKeyManagers ( ) ) ; assertEquals ( "Incorrect size of array" , 1 , kmf.getKeyManagers ( ) . length ) ; }
Source:
public com.android.jack.test.toolchain.JackApiV01Toolchain setWithDebugInfos ( boolean withDebugInfos ) { try { apiV01Config.setDebugInfoLevel ( DebugInfoLevel.FULL ) ; 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.JackApiV01Toolchain setWithDebugInfos ( boolean withDebugInfos ) { try { if ( withDebugInfos ) { apiV01Config.setDebugInfoLevel ( DebugInfoLevel.FULL ) ; } else { apiV01Config.setDebugInfoLevel ( DebugInfoLevel.LINES ) ; } return this ; } catch ( com.android.jack.api.v01.ConfigurationException e ) { throw new com.android.jack.test.TestConfigurationException ( e ) ; } }
Source:
public void setPreferredVoicePrivacy ( boolean enable , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE , result ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( ( enable ? 1 : 0 ) ) ; send ( rr ) ; }

Target:
public void setPreferredVoicePrivacy ( boolean enable , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE , result , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( ( enable ? 1 : 0 ) ) ; send ( rr ) ; }
Source:
public void schedule ( java.util.TimerTask task , java.util.Date when , long period ) { if ( ( period <= 0 ) || ( ( when.getTime ( ) ) < 0 ) ) { throw new java.lang.IllegalArgumentException ( ) ; } long delay = ( when.getTime ( ) ) - ( java.lang.System.currentTimeMillis ( ) ) ; scheduleImpl ( task , ( delay < 0 ? 0 : delay ) , period , false ) ; }

Target:
public void scheduleAtFixedRate ( java.util.TimerTask task , java.util.Date when , long period ) { validateScheduling ( task , when , 1 , period ) ; doSchedule ( task , when.getTime ( ) , period , true ) ; }
Source:
public void clear ( ) { final java.util.concurrent.ConcurrentHashMap.Segment < K , V > [ ] segments = this . segments ; for ( int j = 0 ; j < ( segments.length ) ; ++ j ) { java.util.concurrent.ConcurrentHashMap.Segment < K , V > s = java.util.concurrent.ConcurrentHashMap.segmentAt ( segments , j ) ; if ( s != null ) s.clear ( ) ; } }

Target:
public java.util.Enumeration < K > keys ( ) { java.util.concurrent.ConcurrentHashMap.Node < K , V > [ ] t ; int f = ( ( t = table ) == null ) ? 0 : t.length ; return new java.util.concurrent.ConcurrentHashMap.KeyIterator < K , V > ( t , f , 0 , f , this ) ; }
Source:
public void visitConstant ( int opcode , int offset , int length , com.android.dx.rop.cst.Constant cst , int value ) { visitCommon ( offset , length , true ) ; if ( ( ( cst instanceof com.android.dx.rop.cst.CstMemberRef ) || ( cst instanceof com.android.dx.rop.cst.CstType ) ) || ( cst instanceof com.android.dx.rop.cst.CstString ) ) { visitThrowing ( offset , length , true ) ; } }

Target:
public void visitConstant ( int opcode , int offset , int length , com.android.dx.rop.cst.Constant cst , int value ) { visitCommon ( offset , length , true ) ; if ( ( ( ( cst instanceof com.android.dx.rop.cst.CstMemberRef ) || ( cst instanceof com.android.dx.rop.cst.CstType ) ) || ( cst instanceof com.android.dx.rop.cst.CstString ) ) || ( cst instanceof com.android.dx.rop.cst.CstCallSiteRef ) ) { visitThrowing ( offset , length , true ) ; } }
Source:
public synchronized void close ( ) throws com.android.sched.util.file.CannotCreateFileException , com.android.sched.util.file.WrongPermissionException , java.io.IOException { if ( ! ( closed ) ) { printDigest ( vfs.getRootDir ( ) . createVFile ( com.android.sched.vfs.MessageDigestFS.DIGEST_FILE_NAME ) . openWrite ( ) ) ; vfs.close ( ) ; closed = true ; } }

Target:
public synchronized void close ( ) throws com.android.sched.util.file.CannotCreateFileException , com.android.sched.util.file.WrongPermissionException , java.io.IOException { if ( ! ( closed ) ) { printDigest ( vfs.getRootDir ( ) . createVFile ( com.android.sched.vfs.MessageDigestFS.DIGEST_FILE_NAME ) . getOutputStream ( ) ) ; vfs.close ( ) ; closed = true ; } }
Source:
public void testUseless ( ) throws java.lang.Exception { assertEquals ( ( "useless.xml:13: Warning: This LinearLayout layout or its FrameLayout parent " + ( ( ( ( ( ( "is useless\n" + "useless.xml:47: Warning: This LinearLayout layout or its FrameLayout parent " ) + "is useless; transfer the background attribute to the other view\n" ) + "useless.xml:65: Warning: This LinearLayout layout or its FrameLayout parent " ) + "is useless; transfer the background attribute to the other view\n" ) + "useless.xml:85: Warning: This FrameLayout view is useless (no children, " ) + "no background, no id, no style)" ) ) , lintFiles ( "res/layout/useless.xml" ) ) ; }

Target:
public void testUseless ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/useless.xml:85: Warning: This FrameLayout view is useless (no children, no background, no id, no style) [UselessLeaf]\n" + ( ( ( ( ( ( ( ( ( ( ( ( " <FrameLayout\n" + " ^\n" ) + "res/layout/useless.xml:13: Warning: This LinearLayout layout or its FrameLayout parent is useless [UselessParent]\n" ) + " <LinearLayout\n" ) + " ^\n" ) + "res/layout/useless.xml:47: Warning: This LinearLayout layout or its FrameLayout parent is useless; transfer the background attribute to the other view [UselessParent]\n" ) + " <LinearLayout\n" ) + " ^\n" ) + "res/layout/useless.xml:65: Warning: This LinearLayout layout or its FrameLayout parent is useless; transfer the background attribute to the other view [UselessParent]\n" ) + " <LinearLayout\n" ) + " ^\n" ) + "0 errors, 4 warnings\n" ) + "" ) ) , lintFiles ( "res/layout/useless.xml" ) ) ; }
Source:
private void phoneStateChanged ( int numActive , int numHeld , int callState , java.lang.String number , int type ) { if ( ( ( numActive == 0 ) && ( numHeld == 0 ) ) && ( callState == ( HeadsetHalConstants.CALL_STATE_IDLE ) ) ) { setAnsweringDevice ( null ) ; } enforceCallingOrSelfPermission ( android.Manifest.permission.MODIFY_PHONE_STATE , null ) ; broadCastMessageToStateMachines ( HeadsetStateMachine.CALL_STATE_CHANGED , new com.android.bluetooth.hfp.HeadsetCallState ( numActive , numHeld , callState , number , type ) ) ; }

Target:
private void phoneStateChanged ( int numActive , int numHeld , int callState , java.lang.String number , int type ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.HeadsetService.MODIFY_PHONE_STATE , null ) ; android.os.Message msg = mStateMachine.obtainMessage ( HeadsetStateMachine.CALL_STATE_CHANGED ) ; msg.obj = new com.android.bluetooth.hfp.HeadsetCallState ( numActive , numHeld , callState , number , type ) ; msg.arg1 = 0 ; mStateMachine.sendMessage ( msg ) ; }
Source:
public void setDataEnabled ( boolean enable ) { setDataEnabled ( getSubId ( ) , enable ) ; }

Target:
public boolean isConcurrentVoiceAndDataAllowed ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; return telephony == null ? false : telephony.isConcurrentVoiceAndDataAllowed ( getSubId ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isConcurrentVoiceAndDataAllowed" , e ) ; } return false ; }
Source:
synchronized boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return reportErrorNative ( error ) ; }

Target:
synchronized boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.reportError ( error ) ) ; }
Source:
public char [ ] formatBigDecimal ( java.math.BigDecimal value , java.text.FieldPosition field ) { libcore.icu.NativeDecimalFormat.FieldPositionIterator fpi = libcore.icu.NativeDecimalFormat.FieldPositionIterator.forFieldPosition ( field ) ; char [ ] result = libcore.icu.NativeDecimalFormat.formatDigitList ( this . address , value.toString ( ) , fpi ) ; if ( fpi != null ) { libcore.icu.NativeDecimalFormat.FieldPositionIterator.setFieldPosition ( fpi , field ) ; } return result ; }

Target:
public char [ ] formatDouble ( double value , java.text.FieldPosition field ) { libcore.icu.NativeDecimalFormat.FieldPositionIterator fpi = libcore.icu.NativeDecimalFormat.FieldPositionIterator.forFieldPosition ( field ) ; char [ ] result = libcore.icu.NativeDecimalFormat.formatDouble ( this . address , value , fpi ) ; if ( ( fpi != null ) && ( field != null ) ) { libcore.icu.NativeDecimalFormat.updateFieldPosition ( field , fpi ) ; } return result ; }
Source:
public void hardwareConfigChanged ( int indicationType , java.util.ArrayList < com.android.internal.telephony.V1_0.HardwareConfig > var2 ) { }

Target:
public void voiceRadioTechChanged ( int indicationType , int rat ) { mRil.processIndication ( indicationType ) ; int [ ] response = new int [ 1 ] ; response [ 0 ] = rat ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_VOICE_RADIO_TECH_CHANGED , response ) ; mRil.mVoiceRadioTechChangedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; }
Source:
public void testVFE15 ( ) { try { java.lang.Class < ? > c = java.lang.Class.forName ( "dot.junit.opcodes.invoke_direct_range.d.T_invoke_direct_range_11" ) ; java.lang.Object o = c.newInstance ( ) ; java.lang.reflect.Method m = c.getDeclaredMethod ( "run" ) ; m.invoke ( o ) ; fail ( "expected an invocation target exception with an incompatible class change error" ) ; } catch ( java.lang.reflect.InvocationTargetException ite ) { if ( ! ( ( ite.getCause ( ) ) instanceof java.lang.IncompatibleClassChangeError ) ) { fail ( "expected an incompatible class change error" ) ; } } catch ( java.lang.Throwable t ) { throw new java.lang.RuntimeException ( t ) ; } }

Target:
public void testVFE15 ( ) { loadAndRun ( "dot.junit.opcodes.invoke_direct_range.d.T_invoke_direct_range_11" , java.lang.IncompatibleClassChangeError.class ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , byte [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , data.length ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , java.lang.Object array , android.support.v8.renderscript.Element.DataType dt , int arrayLen ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , array , ( arrayLen * ( dt.mSize ) ) , dt ) ; }
Source:
public void visitAnyClass ( proguard.optimize.info.Clazz clazz ) { if ( ( ( clazz.getAccessFlags ( ) ) & ( ClassConstants.INTERNAL_ACC_PUBLIC ) ) == 0 ) { proguard.optimize.info.PackageVisibleMemberContainingClassMarker.setPackageVisibleMembers ( clazz ) ; } else { clazz.fieldsAccept ( this ) ; clazz.methodsAccept ( this ) ; } }

Target:
public void visitAnyClass ( proguard.optimize.info.Clazz clazz ) { if ( ( ( clazz.getAccessFlags ( ) ) & ( ClassConstants.ACC_PUBLIC ) ) == 0 ) { proguard.optimize.info.PackageVisibleMemberContainingClassMarker.setPackageVisibleMembers ( clazz ) ; } else { clazz.fieldsAccept ( this ) ; clazz.methodsAccept ( this ) ; } }
Source:
public static void promptToLogIn ( final java.lang.String message ) { if ( ! ( com.google.gct.login.GoogleLogin.instance.isLoggedIn ( ) ) ) { com.intellij.openapi.application.Application application = com.intellij.openapi.application.ApplicationManager.getApplication ( ) ; java.lang.Runnable promptToLoginTask = new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.google.gct.login.GoogleLogin.getInstance ( ) . logIn ( message ) ; } } ; if ( application.isDispatchThread ( ) ) { promptToLoginTask.run ( ) ; } else { application.invokeAndWait ( promptToLoginTask , com.intellij.openapi.application.ModalityState.defaultModalityState ( ) ) ; } } }

Target:
public com.google.api.client.http.HttpRequestFactory createRequestFactory ( java.lang.String message ) { com.google.gct.login.CredentialedUser activeUser = users.getActiveUser ( ) ; if ( activeUser == null ) { return null ; } return activeUser.getGoogleLoginState ( ) . createRequestFactory ( message ) ; }
Source:
public com.google.common.collect.ImmutableMap.Builder < K , V > putAll ( java.util.Map < ? extends K , ? extends V > map ) { entries.ensureCapacity ( ( ( entries.size ( ) ) + ( map.size ( ) ) ) ) ; for ( java.util.Map.Entry < ? extends K , ? extends V > entry : map.entrySet ( ) ) { put ( entry.getKey ( ) , entry.getValue ( ) ) ; } return this ; }

Target:
public com.google.common.collect.ImmutableMap < K , V > build ( ) { switch ( size ) { case 0 : return com.google.common.collect.ImmutableMap.of ( ) ; case 1 : return com.google.common.collect.ImmutableMap.of ( entries [ 0 ] . getKey ( ) , entries [ 0 ] . getValue ( ) ) ; default : return new com.google.common.collect.RegularImmutableMap < K , V > ( size , entries ) ; } }
Source:
private void checkResultStatusAndThrow ( int status ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { switch ( status ) { case IpSecManager.Status.OK : return ; case IpSecManager.Status.RESOURCE_UNAVAILABLE : throw new android.net.IpSecManager.ResourceUnavailableException ( "Failed to allocate a new IpSecTransform" ) ; case IpSecManager.Status.SPI_UNAVAILABLE : android.util.Log.wtf ( android.net.IpSecTransform.TAG , "Attempting to use an SPI that was somehow not reserved" ) ; default : throw new java.lang.IllegalStateException ( ( "Failed to Create a Transform with status code " + status ) ) ; } }

Target:
private void checkResultStatus ( int status ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { switch ( status ) { case IpSecManager.Status.OK : return ; case IpSecManager.Status.RESOURCE_UNAVAILABLE : throw new android.net.IpSecManager.ResourceUnavailableException ( "Failed to allocate a new IpSecTransform" ) ; case IpSecManager.Status.SPI_UNAVAILABLE : android.util.Log.wtf ( android.net.IpSecTransform.TAG , "Attempting to use an SPI that was somehow not reserved" ) ; default : throw new java.lang.IllegalStateException ( ( "Failed to Create a Transform with status code " + status ) ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mContext = getInstrumentation ( ) . getTargetContext ( ) ; mOldVrListener = Settings.Secure.getString ( mContext.getContentResolver ( ) , android.vr.cts.VrSetFIFOThreadTest.ENABLED_VR_LISTENERS ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mContext = getInstrumentation ( ) . getTargetContext ( ) ; mOldVrListener = Settings.Secure.getString ( mContext.getContentResolver ( ) , android.vr.cts.VrSetFIFOThreadTest.ENABLED_VR_LISTENERS ) ; java.lang.String result = com.android.compatibility.common.util.SystemUtil.runShellCommand ( getInstrumentation ( ) , android.vr.cts.VrSetFIFOThreadTest.DUMP_VRMANAGER ) ; mDumpLines.clear ( ) ; java.util.Collections.addAll ( mDumpLines , result.split ( "\\n" ) ) ; if ( "enabled" . equals ( parseVrManagerDumpsys ( mDumpLines ) ) ) { mPersistentVrModeEnabled = true ; } }
Source:
public com.android.build.gradle.tasks.ProcessAndroidResources getProcessResources ( ) { return getVariantData ( ) . getOutputs ( ) . get ( 0 ) . processResourcesTask ; }

Target:
public com.android.build.gradle.tasks.ProcessAndroidResources getProcessResources ( ) { if ( ( outputs.size ( ) ) > 1 ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "More than one output on variant '%s', cannot call getProcessResources() on it. Call it on one of its outputs instead." , getName ( ) ) ) ; } plugin.displayDeprecationWarning ( "variant.getProcessResources() is deprecated. Call it on one of variant.getOutputs() instead." ) ; return outputs.get ( 0 ) . getProcessResources ( ) ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , short [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 2 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , int [ ] d ) { copy1DRangeFromUnchecked ( off , count , ( ( java.lang.Object ) ( d ) ) , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor getFqcnViewDescriptor ( java.lang.String fqcn ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor desc = null ; com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = getTargetData ( ) ; if ( data != null ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors layoutDesc = data.getLayoutDescriptors ( ) ; if ( layoutDesc != null ) { com.android.ide.eclipse.adt.internal.editors.descriptors.DocumentDescriptor docDesc = layoutDesc.getDescriptor ( ) ; if ( docDesc != null ) { desc = internalFindFqcnViewDescritor ( fqcn , docDesc.getChildren ( ) , null ) ; } } } if ( desc == null ) { desc = createUnknownDescriptor ( fqcn ) ; } return desc ; }

Target:
public com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor getFqcnViewDescriptor ( java.lang.String fqcn ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor desc = null ; com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = getTargetData ( ) ; if ( data != null ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors layoutDesc = data.getLayoutDescriptors ( ) ; if ( layoutDesc != null ) { com.android.ide.eclipse.adt.internal.editors.descriptors.DocumentDescriptor docDesc = layoutDesc.getDescriptor ( ) ; if ( docDesc != null ) { desc = internalFindFqcnViewDescriptor ( fqcn , docDesc.getChildren ( ) , null ) ; } } } if ( desc == null ) { desc = createUnknownDescriptor ( fqcn ) ; } return desc ; }
Source:
public void onRtlPropertiesChanged ( int layoutDirection ) { super . onRtlPropertiesChanged ( layoutDirection ) ; int max = getMax ( ) ; float scale = ( max > 0 ) ? ( ( float ) ( getProgress ( ) ) ) / ( ( float ) ( max ) ) : 0 ; android.graphics.drawable.Drawable thumb = mThumb ; if ( thumb != null ) { setThumbPos ( getWidth ( ) , thumb , scale , java.lang.Integer.MIN_VALUE ) ; invalidate ( ) ; } }

Target:
void animateSetProgress ( int progress ) { float curProgress = ( isAnimationRunning ( ) ) ? getAnimationPosition ( ) : getProgress ( ) ; if ( progress < 0 ) { progress = 0 ; } else if ( progress > ( getMax ( ) ) ) { progress = getMax ( ) ; } setProgressValueOnly ( progress ) ; mPositionAnimator = android.animation.ObjectAnimator.ofFloat ( this , "animationPosition" , curProgress , progress ) ; mPositionAnimator.setDuration ( android.widget.AbsSeekBar.PROGRESS_ANIMATION_DURATION ) ; mPositionAnimator.setAutoCancel ( true ) ; mPositionAnimator.start ( ) ; }
Source:
public final void readAnnotation ( ) { int typeIndex = com.android.dx.util.Leb128Utils.readUnsignedLeb128 ( in ) ; int size = com.android.dx.util.Leb128Utils.readUnsignedLeb128 ( in ) ; visitAnnotation ( typeIndex , size ) ; for ( int i = 0 ; i < size ; i ++ ) { visitAnnotationName ( com.android.dx.util.Leb128Utils.readUnsignedLeb128 ( in ) ) ; readValue ( ) ; } }

Target:
public int readAnnotation ( ) { checkType ( com.android.dx.io.EncodedValueReader.ENCODED_ANNOTATION ) ; type = com.android.dx.io.EncodedValueReader.MUST_READ ; annotationType = com.android.dx.util.Leb128Utils.readUnsignedLeb128 ( in ) ; return com.android.dx.util.Leb128Utils.readUnsignedLeb128 ( in ) ; }
Source:
public void writeToParcel ( android.os.Parcel out , int flags ) { out.writeParcelable ( mDevice , 0 ) ; out.writeInt ( mId ) ; out.writeString ( mUUID.toString ( ) ) ; out.writeInt ( mState ) ; out.writeString ( mNumber ) ; out.writeInt ( ( mMultiParty ? 1 : 0 ) ) ; out.writeInt ( ( mOutgoing ? 1 : 0 ) ) ; }

Target:
public void writeToParcel ( android.os.Parcel out , int flags ) { out.writeParcelable ( mDevice , 0 ) ; out.writeInt ( mId ) ; out.writeString ( mUUID.toString ( ) ) ; out.writeInt ( mState ) ; out.writeString ( mNumber ) ; out.writeInt ( ( mMultiParty ? 1 : 0 ) ) ; out.writeInt ( ( mOutgoing ? 1 : 0 ) ) ; out.writeInt ( ( mInBandRing ? 1 : 0 ) ) ; }
Source:
void waitForQueuedThreads ( java.util.concurrent.Semaphore s ) { long startTime = java.lang.System.nanoTime ( ) ; while ( ! ( s.hasQueuedThreads ( ) ) ) { if ( ( millisElapsedSince ( startTime ) ) > ( LONG_DELAY_MS ) ) throw new jsr166.AssertionFailedError ( "timed out" ) ; java.lang.Thread.yield ( ) ; } }

Target:
void waitForQueuedThreads ( java.util.concurrent.Semaphore s ) { long startTime = java.lang.System.nanoTime ( ) ; while ( ! ( s.hasQueuedThreads ( ) ) ) { if ( ( millisElapsedSince ( startTime ) ) > ( LONG_DELAY_MS ) ) throw new junit.framework.AssertionFailedError ( "timed out" ) ; java.lang.Thread.yield ( ) ; } }
Source:
public final boolean bool_literal ( ) throws org.jf.smali.RecognitionException { boolean value = false ; org.antlr.runtime.tree.CommonTree BOOL_LITERAL212 = null ; try { { BOOL_LITERAL212 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.BOOL_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_BOOL_LITERAL_in_bool_literal3562 ) ) ) ; value = java.lang.Boolean.parseBoolean ( ( BOOL_LITERAL212 != null ? BOOL_LITERAL212.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final int integer_literal ( ) throws org.jf.smali.RecognitionException { int value = 0 ; org.antlr.runtime.tree.CommonTree INTEGER_LITERAL209 = null ; try { { INTEGER_LITERAL209 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.INTEGER_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_INTEGER_LITERAL_in_integer_literal3495 ) ) ) ; value = org.jf.smali.LiteralTools.parseInt ( ( INTEGER_LITERAL209 != null ? INTEGER_LITERAL209.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
private com.android.jack.ir.ast.JExpression maybeUnbox ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { com.android.jack.ir.ast.JExpression unboxedExpr = expr ; if ( ! ( ( expr.getType ( ) ) instanceof com.android.jack.ir.ast.JPrimitiveType ) ) { unboxedExpr = unbox ( expr ) ; } return unboxedExpr ; }

Target:
private com.android.jack.ir.ast.JExpression maybeUnbox ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { com.android.jack.ir.ast.JExpression unboxedExpr = expr ; if ( ! ( ( expr.getType ( ) ) instanceof com.android.jack.ir.ast.JPrimitiveType ) ) { unboxedExpr = com.android.jack.transformations.ast.TypeLegalizer.unbox ( expr ) ; tr.append ( new com.android.jack.transformations.request.Replace ( expr , unboxedExpr ) ) ; } return unboxedExpr ; }
Source:
public static java.lang.String getTableString ( java.lang.String path , com.ibm.icu.util.ULocale locale , java.lang.String tableName , java.lang.String itemName ) { com.ibm.icu.impl.ICUResourceBundle bundle = ( ( com.ibm.icu.impl.ICUResourceBundle ) ( com.ibm.icu.util.UResourceBundle.getBundleInstance ( path , locale.getBaseName ( ) ) ) ) ; return com.ibm.icu.impl.ICUResourceTableAccess.getTableString ( bundle , tableName , null , itemName ) ; }

Target:
public static java.lang.String getTableString ( java.lang.String path , com.ibm.icu.util.ULocale locale , java.lang.String tableName , java.lang.String itemName , java.lang.String defaultValue ) { com.ibm.icu.impl.ICUResourceBundle bundle = ( ( com.ibm.icu.impl.ICUResourceBundle ) ( com.ibm.icu.util.UResourceBundle.getBundleInstance ( path , locale.getBaseName ( ) ) ) ) ; return com.ibm.icu.impl.ICUResourceTableAccess.getTableString ( bundle , tableName , null , itemName , defaultValue ) ; }
Source:
private android.content.Intent waitForIntent ( int timeoutMs , java.util.concurrent.BlockingQueue < android.content.Intent > queue ) { try { android.content.Intent intent = queue.poll ( timeoutMs , java.util.concurrent.TimeUnit.MILLISECONDS ) ; org.junit.Assert.assertNotNull ( intent ) ; return intent ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( ( "Cannot obtain an Intent from the queue: " + ( e.getMessage ( ) ) ) ) ; } return null ; }

Target:
private void verifyNoConnectionStateIntent ( int timeoutMs , android.bluetooth.BluetoothDevice device ) { android.content.Intent intent = com.android.bluetooth.TestUtils.waitForNoIntent ( timeoutMs , mDeviceQueueMap.get ( device ) ) ; org.junit.Assert.assertNull ( intent ) ; }
Source:
public static void printVersion ( @ javax.annotation.Nonnull java.io.PrintStream printStream , @ javax.annotation.Nonnull com.android.jack.plugin.Plugin plugin ) { printStream.println ( ( ( ( ( ( ( "Jack plugin: " + ( plugin.getFriendlyName ( ) ) ) + " (" ) + ( plugin.getName ( ) ) ) + ") " ) + ( plugin.getVersion ( ) . getVerboseVersion ( ) ) ) + '.' ) ) ; printStream.println ( ( ( " " + ( plugin.getDescription ( ) ) ) + '.' ) ) ; }

Target:
public static void printVersion ( @ javax.annotation.Nonnull java.io.PrintStream printStream , @ javax.annotation.Nonnull com.android.jack.plugin.v01.Plugin plugin ) { printStream.println ( ( ( ( ( ( ( "Jack plugin: " + ( plugin.getFriendlyName ( ) ) ) + " (" ) + ( plugin.getCanonicalName ( ) ) ) + ") " ) + ( plugin.getVersion ( ) . getVerboseVersion ( ) ) ) + '.' ) ) ; printStream.println ( ( ( " " + ( plugin.getDescription ( ) ) ) + '.' ) ) ; }
Source:
public boolean LoadVendorConfig ( com.android.tradefed.build.IBuildInfo buildInfo ) throws java.lang.RuntimeException { java.util.Map < java.lang.String , java.lang.String > attrs = buildInfo.getBuildAttributes ( ) ; mDefaultType = attrs.get ( com.android.tradefed.util.VtsVendorConfigFileUtil.KEY_VENDOR_TEST_CONFIG_DEFAULT_TYPE ) ; mVendorConfigFilePath = attrs.get ( com.android.tradefed.util.VtsVendorConfigFileUtil.KEY_VENDOR_TEST_CONFIG_FILE_PATH ) ; return LoadVendorConfig ( mDefaultType , mVendorConfigFilePath ) ; }

Target:
public boolean LoadVendorConfig ( com.android.tradefed.build.IBuildInfo buildInfo ) throws java.lang.RuntimeException { java.util.Map < java.lang.String , java.lang.String > attrs = buildInfo.getBuildAttributes ( ) ; if ( attrs.containsKey ( com.android.tradefed.util.VtsVendorConfigFileUtil.KEY_VENDOR_TEST_CONFIG_DEFAULT_TYPE ) ) { mDefaultType = attrs.get ( com.android.tradefed.util.VtsVendorConfigFileUtil.KEY_VENDOR_TEST_CONFIG_DEFAULT_TYPE ) ; } else { com.android.tradefed.log.LogUtil.CLog.i ( "No default vendor test configuration provided. Defaulting to prod." ) ; } mVendorConfigFilePath = attrs.get ( com.android.tradefed.util.VtsVendorConfigFileUtil.KEY_VENDOR_TEST_CONFIG_FILE_PATH ) ; return LoadVendorConfig ( mDefaultType , mVendorConfigFilePath ) ; }
Source:
public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel ( int subId , java.lang.String AID ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccOpenLogicalChannel ( subId , AID ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }

Target:
public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel ( java.lang.String AID ) { return iccOpenLogicalChannel ( getSubId ( ) , AID , ( - 1 ) ) ; }
Source:
public void TestSingular1Locales ( ) { java.lang.String localeIDs = "bem,da,de,el,en,eo,es,et,fi,fo,he,it,nb,nl,nn,no,pt_PT,sv,af,bg,ca,eu,fur,fy,ha,ku,lb,ml," + "nah,ne,om,or,pap,ps,so,sq,sw,ta,te,tk,ur,mn,gsw,rm" ; java.lang.String testPattern = "one{one} other{other}" ; java.util.Map changes = new java.util.HashMap ( ) ; changes.put ( new java.lang.Integer ( 0 ) , "other" ) ; changes.put ( new java.lang.Integer ( 1 ) , "one" ) ; changes.put ( new java.lang.Integer ( 2 ) , "other" ) ; helperTestRules ( localeIDs , testPattern , changes ) ; }

Target:
public void TestSingular1Locales ( ) { java.lang.String localeIDs = "bem,da,de,el,en,eo,es,et,fi,fo,he,it,nb,nl,nn,no,sv,af,bg,ca,eu,fur,fy,ha,ku,lb,ml," + "nah,ne,om,or,pap,ps,so,sq,sw,ta,te,tk,ur,mn,gsw,rm" ; java.lang.String testPattern = "one{one} other{other}" ; java.util.Map changes = new java.util.HashMap ( ) ; changes.put ( new java.lang.Integer ( 0 ) , "other" ) ; changes.put ( new java.lang.Integer ( 1 ) , "one" ) ; changes.put ( new java.lang.Integer ( 2 ) , "other" ) ; helperTestRules ( localeIDs , testPattern , changes ) ; }
Source:
protected java.util.Collection < ? extends com.android.jack.server.HasVersion > getVersionnedElements ( ) { final com.android.sched.util.Version version ; try { version = new com.android.sched.util.Version ( "jack-launcher" , jackServer.getLauncherHandle ( ) . getLauncherClassLoader ( ) ) ; } catch ( java.io.IOException e ) { com.android.jack.server.tasks.GetLauncherVersion.logger.log ( java.util.logging.Level.SEVERE , "Failed to read Jack-launcher version properties" , e ) ; throw new java.lang.AssertionError ( ) ; } return java.util.Collections.singleton ( new com.android.jack.server.HasVersion ( ) { @ java.lang.Override @ javax.annotation.Nonnull public com.android.sched.util.Version getVersion ( ) { return version ; } } ) ; }

Target:
protected java.util.Collection < ? extends com.android.jack.server.HasVersion > getVersionedElements ( ) { final com.android.sched.util.Version version ; try { version = new com.android.sched.util.Version ( "jack-launcher" , jackServer.getLauncherHandle ( ) . getLauncherClassLoader ( ) ) ; } catch ( java.io.IOException e ) { com.android.jack.server.tasks.GetLauncherVersion.logger.log ( java.util.logging.Level.SEVERE , "Failed to read Jack-launcher version properties" , e ) ; throw new java.lang.AssertionError ( ) ; } return java.util.Collections.singleton ( new com.android.jack.server.HasVersion ( ) { @ java.lang.Override @ javax.annotation.Nonnull public com.android.sched.util.Version getVersion ( ) { return version ; } } ) ; }
Source:
public void testDoNothing ( ) { com.android.manifmerger.ActionRecorder actionRecorder = mActionRecorderBuilder.build ( ) ; actionRecorder.log ( mLoggerMock ) ; org.mockito.Mockito.verify ( mLoggerMock ) . info ( ActionRecorder.HEADER ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mLoggerMock ) ; assertTrue ( actionRecorder.getAllRecords ( ) . isEmpty ( ) ) ; }

Target:
public void testDoNothing ( ) { com.android.manifmerger.Actions actions = mActionRecorderBuilder.build ( ) ; actions.log ( mLoggerMock ) ; org.mockito.Mockito.verify ( mLoggerMock ) . info ( Actions.HEADER ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mLoggerMock ) ; assertTrue ( actions.getNodeKeys ( ) . isEmpty ( ) ) ; }
Source:
static void blowup ( char [ ] [ ] holder ) { try { for ( int i = 0 ; i < ( holder.length ) ; ++ i ) { holder [ i ] = new char [ 1024 * 1024 ] ; } } catch ( java.lang.OutOfMemoryError oome ) { Main.ArrayMemEater.sawOome = true ; } }

Target:
static void blowup ( char [ ] [ ] holder ) { try { for ( int i = 0 ; i < ( holder.length ) ; ++ i ) { holder [ i ] = new char [ 1022 * 1024 ] ; } } catch ( java.lang.OutOfMemoryError oome ) { Main.ArrayMemEater.sawOome = true ; } }
Source:
private static void waitForIdleHandler ( android.os.HandlerThread handlerThread , int timeoutMs ) { final android.os.ConditionVariable cv = new android.os.ConditionVariable ( ) ; final android.os.Handler handler = new android.os.Handler ( handlerThread.getLooper ( ) ) ; handler.post ( ( ) -> cv.open ( ) ) ; if ( ! ( cv.block ( timeoutMs ) ) ) { fail ( ( ( ( ( "HandlerThread " + ( handlerThread.getName ( ) ) ) + " did not become idle after " ) + timeoutMs ) + " ms" ) ) ; } }

Target:
private static < T > void assertEmpty ( T [ ] ts ) { int length = ts.length ; assertEquals ( ( "expected empty array, but length was " + length ) , 0 , length ) ; }
Source:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { if ( ( mv ) != null ) { mv.visitMethodInsn ( opcode , owner , name , desc ) ; } }

Target:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { if ( ( api ) >= ( Opcodes.ASM5 ) ) { boolean itf = opcode == ( Opcodes.INVOKEINTERFACE ) ; visitMethodInsn ( opcode , owner , name , desc , itf ) ; return ; } if ( ( mv ) != null ) { mv.visitMethodInsn ( opcode , owner , name , desc ) ; } }
Source:
public boolean startDiscovery ( ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) return mService.startDiscovery ( ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean startDiscovery ( ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) return mService.startDiscovery ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return false ; }
Source:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.sdklib.resources.Navigation method = com.android.sdklib.resources.Navigation.getEnum ( value ) ; if ( method != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.NavigationMethodQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.NavigationMethodQualifier ( method ) ; config.setNavigationMethodQualifier ( qualifier ) ; return true ; } return false ; }

Target:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.resources.Navigation method = com.android.resources.Navigation.getEnum ( value ) ; if ( method != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.NavigationMethodQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.NavigationMethodQualifier ( method ) ; config.setNavigationMethodQualifier ( qualifier ) ; return true ; } return false ; }
Source:
public void testWriteSpecialCharactersInText ( ) throws java.lang.Exception { java.io.StringWriter stringWriter = new java.io.StringWriter ( ) ; org.xmlpull.v1.XmlSerializer serializer = new org.kxml2.io.KXmlSerializer ( ) ; serializer.setOutput ( stringWriter ) ; serializer.startDocument ( "UTF-8" , null ) ; serializer.startTag ( null , "foo" ) ; serializer.text ( "5\'8\", 5 < 6 & 7 > 3!" ) ; serializer.endTag ( null , "foo" ) ; serializer.endDocument ( ) ; assertXmlEquals ( "<foo>5\'8\", 5 &lt; 6 &amp; 7 &gt; 3!</foo>" , stringWriter.toString ( ) ) ; }

Target:
public void testWriteSpecialCharactersInText ( ) throws java.lang.Exception { java.io.StringWriter stringWriter = new java.io.StringWriter ( ) ; org.xmlpull.v1.XmlSerializer serializer = new org.kxml2.io.KXmlSerializer ( ) ; serializer.setOutput ( stringWriter ) ; serializer.startDocument ( "UTF-8" , null ) ; serializer.startTag ( libcore.xml.KxmlSerializerTest.NAMESPACE , "foo" ) ; serializer.text ( "5\'8\", 5 < 6 & 7 > 3!" ) ; serializer.endTag ( libcore.xml.KxmlSerializerTest.NAMESPACE , "foo" ) ; serializer.endDocument ( ) ; assertXmlEquals ( "<foo>5\'8\", 5 &lt; 6 &amp; 7 &gt; 3!</foo>" , stringWriter.toString ( ) ) ; }
Source:
private java.io.File getLoggingDir ( java.lang.String testClassName , java.lang.String testMethodName ) { java.io.File externalStorageLogDir = new java.io.File ( android.os.Environment.getExternalStorageDirectory ( ) . getPath ( ) , "Logs" ) ; if ( ! ( externalStorageLogDir.exists ( ) ) ) externalStorageLogDir.mkdir ( ) ; java.io.File loggingDir = new java.io.File ( new java.io.File ( externalStorageLogDir.getPath ( ) , testClassName ) , testMethodName ) ; loggingDir.mkdirs ( ) ; return loggingDir ; }

Target:
private java.io.File getLoggingDir ( java.lang.String testClassName , java.lang.String testMethodName ) { org.junit.Assert.assertTrue ( "Failed to write to external storage." , isExternalStorageWritable ( ) ) ; org.junit.Assert.assertTrue ( "Failed to acquire permission." , checkWriteExternalPermission ( ) ) ; java.io.File externalStorageLogDir = new java.io.File ( android.os.Environment.getExternalStorageDirectory ( ) . getPath ( ) , "Logs" ) ; if ( ! ( externalStorageLogDir.exists ( ) ) ) externalStorageLogDir.mkdir ( ) ; java.io.File loggingDir = new java.io.File ( new java.io.File ( externalStorageLogDir.getPath ( ) , testClassName ) , testMethodName ) ; loggingDir.mkdirs ( ) ; return loggingDir ; }