auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static android.net.wifi.IClientInterface setupDriverForClientMode ( android.net.wifi.IWificond wificond ) { if ( wificond == null ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , "Failed to get reference to wificond" ) ; return null ; } android.net.wifi.IClientInterface clientInterface = null ; try { clientInterface = wificond.createClientInterface ( ) ; } catch ( android.os.RemoteException e1 ) { } if ( clientInterface == null ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , "Could not get IClientInterface instance from wificond" ) ; return null ; } else { android.os.Binder.allowBlocking ( clientInterface.asBinder ( ) ) ; } return clientInterface ; }

Target:
public boolean syncInitialize ( com.android.internal.util.AsyncChannel channel ) { android.os.Message resultMsg = channel.sendMessageSynchronously ( com.android.server.wifi.WifiStateMachine.CMD_INITIALIZE ) ; boolean result = ( resultMsg.arg1 ) != ( com.android.server.wifi.WifiStateMachine.FAILURE ) ; resultMsg.recycle ( ) ; return result ; }
Source:
public void setLength ( long newLength ) throws java.io.IOException { if ( newLength < 0 ) { throw new java.lang.IllegalArgumentException ( "newLength < 0" ) ; } try { Libcore.os.ftruncate ( fd , newLength ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } long filePointer = getFilePointer ( ) ; if ( filePointer > newLength ) { seek ( newLength ) ; } if ( syncMetadata ) { fd.sync ( ) ; } }

Target:
public void setLength ( long newLength ) throws java.io.IOException { if ( newLength < 0 ) { throw new java.lang.IllegalArgumentException ( "newLength < 0" ) ; } try { Libcore.os.ftruncate ( fd , newLength ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } long filePointer = getFilePointer ( ) ; if ( filePointer > newLength ) { seek ( newLength ) ; } if ( syncMetadata ) { fd.sync ( ) ; } }
Source:
public void onDialpadShown ( ) { com.android.dialer.common.LogUtil.enterBlock ( "MainSearchController.onDialpadShown" ) ; getDialpadFragment ( ) . slideUp ( true ) ; hideBottomNav ( ) ; }

Target:
public void onAnimationEnd ( android.view.animation.Animation animation ) { if ( ( activity.isSafeToCommitTransactions ( ) ) && ( ! ( ( activity.isFinishing ( ) ) || ( activity.isDestroyed ( ) ) ) ) ) { activity.getFragmentManager ( ) . beginTransaction ( ) . hide ( dialpadFragment ) . commit ( ) ; } }
Source:
public final void testPkgTypeTool ( ) { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_TOOLS ; assertFalse ( p.hasMajorRevision ( ) ) ; assertTrue ( p.hasFullRevision ( ) ) ; assertFalse ( p.hasAndroidVersion ( ) ) ; assertFalse ( p.hasPath ( ) ) ; assertFalse ( p.hasVendorId ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertTrue ( p.hasMinPlatformToolsRev ( ) ) ; }

Target:
public final void testPkgTypeTool ( ) { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_TOOLS ; assertFalse ( p.hasMajorRevision ( ) ) ; assertTrue ( p.hasFullRevision ( ) ) ; assertFalse ( p.hasAndroidVersion ( ) ) ; assertFalse ( p.hasPath ( ) ) ; assertFalse ( p.hasVendor ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertTrue ( p.hasMinPlatformToolsRev ( ) ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { if ( ( mDisplayedBitmap ) == 0 ) { mDisplayView.setImageBitmap ( mBitmapOut1 ) ; } else { mDisplayView.setImageBitmap ( mBitmapOut2 ) ; } mDisplayedBitmap ^= 1 ; mDisplayView.invalidate ( ) ; }

Target:
public void handleMessage ( android.os.Message msg ) { if ( mTestNameChanged ) { getActionBar ( ) . setTitle ( ( "IP-Compat test: " + ( mTestName ) ) ) ; } if ( ( mDisplayedBitmap ) == 0 ) { mDisplayView.setImageBitmap ( mBitmapOut1 ) ; } else { mDisplayView.setImageBitmap ( mBitmapOut2 ) ; } mDisplayedBitmap ^= 1 ; mDisplayView.invalidate ( ) ; }
Source:
public static java.security.AlgorithmParameters getInstance ( java.lang.String algorithm , java.security.Provider provider ) throws java.security.NoSuchAlgorithmException { if ( provider == null ) throw new java.lang.IllegalArgumentException ( "missing provider" ) ; java.lang.Object [ ] objs = java.security.Security.getImpl ( algorithm , "AlgorithmParameters" , provider ) ; return new java.security.AlgorithmParameters ( ( ( java.security.AlgorithmParametersSpi ) ( objs [ 0 ] ) ) , ( ( java.security.Provider ) ( objs [ 1 ] ) ) , algorithm ) ; }

Target:
public static java.security.AlgorithmParameters getInstance ( java.lang.String algorithm , java.security.Provider provider ) throws java.security.NoSuchAlgorithmException { if ( provider == null ) throw new java.lang.IllegalArgumentException ( "missing provider" ) ; sun.security.jca.Providers.checkBouncyCastleDeprecation ( provider , "AlgorithmParameters" , algorithm ) ; java.lang.Object [ ] objs = java.security.Security.getImpl ( algorithm , "AlgorithmParameters" , provider ) ; return new java.security.AlgorithmParameters ( ( ( java.security.AlgorithmParametersSpi ) ( objs [ 0 ] ) ) , ( ( java.security.Provider ) ( objs [ 1 ] ) ) , algorithm ) ; }
Source:
public java.lang.String toString ( ) { if ( ! ( exists ) ) { return "[MediaAttributes: none]" ; } return ( ( ( ( ( ( ( ( ( ( ( "[MediaAttributes: " + ( title ) ) + " - " ) + ( albumName ) ) + " by " ) + ( artistName ) ) + " (" ) + ( mediaNumber ) ) + "/" ) + ( mediaTotalNumber ) ) + ") " ) + ( genre ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { if ( ! ( exists ) ) { return "[MediaAttributes: none]" ; } return ( ( ( ( ( ( ( ( ( ( ( ( ( "[MediaAttributes: " + ( title ) ) + " - " ) + ( albumName ) ) + " by " ) + ( artistName ) ) + " (" ) + ( playingTimeMs ) ) + " " ) + ( mediaNumber ) ) + "/" ) + ( mediaTotalNumber ) ) + ") " ) + ( genre ) ) + "]" ; }
Source:
public void setCallWaiting ( boolean enable , android.os.Message onComplete ) { android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "method setCallWaiting is NOT supported in CDMA!" ) ; }

Target:
public java.lang.String getDeviceId ( ) { java.lang.String id = getMeid ( ) ; if ( ( id == null ) || ( id.matches ( "^0*$" ) ) ) { android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "getDeviceId(): MEID is not initialized use ESN" ) ; id = getEsn ( ) ; } return id ; }
Source:
native void rsnAllocationRead ( int con , int id , short [ ] d ) ;

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , float [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
public int setTempFileRootDirectory ( int subscriptionId , java.lang.String rootDirectoryPath ) { android.os.Bundle b = new android.os.Bundle ( ) ; b.putString ( android.telephony.cts.embmstestapp.CtsDownloadService.METHOD_NAME , android.telephony.cts.embmstestapp.CtsDownloadService.METHOD_SET_TEMP_FILE_ROOT ) ; b.putInt ( android.telephony.cts.embmstestapp.CtsDownloadService.ARGUMENT_SUBSCRIPTION_ID , subscriptionId ) ; b.putString ( android.telephony.cts.embmstestapp.CtsDownloadService.ARGUMENT_ROOT_DIRECTORY_PATH , rootDirectoryPath ) ; mReceivedCalls.add ( b ) ; mTempFileRootDirPath = rootDirectoryPath ; return 0 ; }

Target:
public int setTempFileRootDirectory ( int subscriptionId , java.lang.String rootDirectoryPath ) { if ( ( mErrorCodeOverride ) != ( android.telephony.mbms.MbmsErrors.SUCCESS ) ) { return mErrorCodeOverride ; } android.os.Bundle b = new android.os.Bundle ( ) ; b.putString ( android.telephony.cts.embmstestapp.CtsDownloadService.METHOD_NAME , android.telephony.cts.embmstestapp.CtsDownloadService.METHOD_SET_TEMP_FILE_ROOT ) ; b.putInt ( android.telephony.cts.embmstestapp.CtsDownloadService.ARGUMENT_SUBSCRIPTION_ID , subscriptionId ) ; b.putString ( android.telephony.cts.embmstestapp.CtsDownloadService.ARGUMENT_ROOT_DIRECTORY_PATH , rootDirectoryPath ) ; mReceivedCalls.add ( b ) ; mTempFileRootDirPath = rootDirectoryPath ; return 0 ; }
Source:
public java.lang.String toString ( ) { if ( ( buffer ) == null ) { return ( ( typeIndex ) + " " ) + ( supertypeIndex ) ; } java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; result.append ( buffer.typeNames ( ) . get ( typeIndex ) ) ; if ( ( supertypeIndex ) != ( com.android.jack.dx.io.ClassDef.NO_INDEX ) ) { result.append ( " extends " ) . append ( buffer.typeNames ( ) . get ( supertypeIndex ) ) ; } return result.toString ( ) ; }

Target:
public java.lang.String toString ( ) { if ( ( buffer ) == null ) { return ( ( typeIndex ) + " " ) + ( supertypeIndex ) ; } java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; result.append ( getTypeName ( ) ) ; if ( ( supertypeIndex ) != ( com.android.jack.dx.io.ClassDef.NO_INDEX ) ) { result.append ( " extends " ) . append ( buffer.typeNames ( ) . get ( supertypeIndex ) ) ; } return result.toString ( ) ; }
Source:
public boolean addAccountExplicitly ( android.accounts.Account account , java.lang.String password , android.os.Bundle userdata ) { if ( account == null ) throw new java.lang.IllegalArgumentException ( "account is null" ) ; try { return mService.addAccount ( account , password , userdata ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public android.accounts.Account [ ] getAccountsByTypeAsUser ( java.lang.String type , android.os.UserHandle userHandle ) { try { return mService.getAccountsAsUser ( type , userHandle.getIdentifier ( ) , mContext.getOpPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
android.bluetooth.BluetoothGattCharacteristic getCharacteristicById ( android.bluetooth.BluetoothDevice device , int instanceId ) { for ( android.bluetooth.BluetoothGattService svc : mServices ) { for ( android.bluetooth.BluetoothGattCharacteristic charac : svc.getCharacteristics ( ) ) { if ( ( charac.getInstanceId ( ) ) == instanceId ) return charac ; } } return null ; }

Target:
android.bluetooth.BluetoothGattCharacteristic getCharacteristicById ( android.bluetooth.BluetoothDevice device , int instanceId ) { for ( android.bluetooth.BluetoothGattService svc : mServices ) { for ( android.bluetooth.BluetoothGattCharacteristic charac : svc.getCharacteristics ( ) ) { android.util.Log.w ( android.bluetooth.BluetoothGatt.TAG , ( ( ( "getCharacteristicById() comparing " + ( charac.getInstanceId ( ) ) ) + " and " ) + instanceId ) ) ; if ( ( charac.getInstanceId ( ) ) == instanceId ) return charac ; } } return null ; }
Source:
void clientConnect ( int clientIf , java.lang.String address , boolean isDirect , int transport , int phy ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( ( ( "clientConnect() - address=" + address ) + ", isDirect=" ) + isDirect ) + ", phy= " ) + phy ) ) ; gattClientConnectNative ( clientIf , address , isDirect , transport , phy ) ; }

Target:
void clientConnect ( int clientIf , java.lang.String address , boolean isDirect , int transport , boolean opportunistic , int phy ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( ( ( ( ( "clientConnect() - address=" + address ) + ", isDirect=" ) + isDirect ) + ", opportunistic=" ) + opportunistic ) + ", phy=" ) + phy ) ) ; } gattClientConnectNative ( clientIf , address , isDirect , transport , opportunistic , phy ) ; }
Source:
public void testAesCbcHmacSha1Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA1 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacMd5Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public java.lang.String isValid ( java.lang.String newText ) { org.eclipse.core.runtime.IStatus status = com.android.ide.eclipse.adt.internal.wizards.newproject.ApplicationInfoPage.validateActivity ( newText.trim ( ) ) ; if ( ( status != null ) && ( ! ( status.isOK ( ) ) ) ) { return status.getMessage ( ) ; } return null ; }

Target:
public java.lang.String isValid ( java.lang.String newText ) { if ( ( newText.trim ( ) . isEmpty ( ) ) && ( ! ( constraints.contains ( com.android.ide.eclipse.adt.internal.wizards.templates.Parameter.Constraint.NONEMPTY ) ) ) ) { return null ; } org.eclipse.core.runtime.IStatus status = com.android.ide.eclipse.adt.internal.wizards.newproject.ApplicationInfoPage.validateActivity ( newText.trim ( ) ) ; if ( ( status != null ) && ( ! ( status.isOK ( ) ) ) ) { return status.getMessage ( ) ; } return null ; }
Source:
private static java.lang.String rsnCipherToString ( int cipher ) { switch ( cipher ) { case com.android.server.wifi.util.InformationElementUtil.Capabilities.RSN_CIPHER_NONE : return "NONE" ; case com.android.server.wifi.util.InformationElementUtil.Capabilities.RSN_CIPHER_TKIP : return "TKIP" ; case com.android.server.wifi.util.InformationElementUtil.Capabilities.RSN_CIPHER_CCMP : return "CCMP" ; case com.android.server.wifi.util.InformationElementUtil.Capabilities.RSN_CIPHER_NO_GROUP_ADDRESSED : return "GTK_NOT_USED" ; default : return "?" ; } }

Target:
private java.lang.String keyManagementToString ( int akm ) { switch ( akm ) { case android.net.wifi.ScanResult.KEY_MGMT_NONE : return "None" ; case android.net.wifi.ScanResult.KEY_MGMT_PSK : return "PSK" ; case android.net.wifi.ScanResult.KEY_MGMT_EAP : return "EAP" ; case android.net.wifi.ScanResult.KEY_MGMT_FT_EAP : return "FT/EAP" ; case android.net.wifi.ScanResult.KEY_MGMT_FT_PSK : return "FT/PSK" ; case android.net.wifi.ScanResult.KEY_MGMT_EAP_SHA256 : return "EAP-SHA256" ; case android.net.wifi.ScanResult.KEY_MGMT_PSK_SHA256 : return "PSK-SHA256" ; default : return "?" ; } }
Source:
public static void createIfNotExists ( @ javax.annotation.Nonnull java.io.File directory ) throws java.io.IOException { if ( ! ( directory.exists ( ) ) ) { if ( ! ( directory.mkdirs ( ) ) ) { throw new java.io.IOException ( ( ( "Could not create directory \"" + ( directory.getAbsolutePath ( ) ) ) + "\"" ) ) ; } } }

Target:
public static void createIfNotExists ( @ javax.annotation.Nonnull java.io.File directory ) throws java.io.IOException { if ( ! ( directory.exists ( ) ) ) { if ( ! ( directory.mkdirs ( ) ) ) { throw new java.io.IOException ( ( ( "Could not create directory \"" + ( directory.getPath ( ) ) ) + "\"" ) ) ; } } }
Source:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newAddon ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull java.lang.String addonVendor , @ com.android.annotations.NonNull java.lang.String addonName ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_ADDONS ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mAddonVendor = addonVendor ; p.mAddonName = addonName ; return p ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newAddon ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull java.lang.String addonVendor , @ com.android.annotations.NonNull java.lang.String addonNameId ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_ADDONS ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mVendor = new com.android.sdklib.repository.descriptors.IdDisplay ( addonVendor , addonVendor ) ; p.mNameId = addonNameId ; return p ; }
Source:
public boolean onCreate ( ) { android.util.Log.d ( com.android.providers.telephony.CarrierIdProvider.TAG , "onCreate" ) ; mDbHelper = new com.android.providers.telephony.CarrierIdProvider.CarrierIdDatabaseHelper ( getContext ( ) ) ; mDbHelper.getReadableDatabase ( ) ; com.android.providers.telephony.CarrierIdProvider.s_urlMatcher.addURI ( com.android.providers.telephony.CarrierIdProvider.AUTHORITY , "update_db" , com.android.providers.telephony.CarrierIdProvider.URL_UPDATE_FROM_PB ) ; com.android.providers.telephony.CarrierIdProvider.s_urlMatcher.addURI ( com.android.providers.telephony.CarrierIdProvider.AUTHORITY , "get_version" , com.android.providers.telephony.CarrierIdProvider.URL_GET_VERSION ) ; initDatabaseFromPb ( mDbHelper.getWritableDatabase ( ) ) ; return true ; }

Target:
public boolean onCreate ( ) { android.util.Log.d ( com.android.providers.telephony.CarrierIdProvider.TAG , "onCreate" ) ; mDbHelper = new com.android.providers.telephony.CarrierIdProvider.CarrierIdDatabaseHelper ( getContext ( ) ) ; mDbHelper.getReadableDatabase ( ) ; com.android.providers.telephony.CarrierIdProvider.s_urlMatcher.addURI ( com.android.providers.telephony.CarrierIdProvider.AUTHORITY , "update_db" , com.android.providers.telephony.CarrierIdProvider.URL_UPDATE_FROM_PB ) ; com.android.providers.telephony.CarrierIdProvider.s_urlMatcher.addURI ( com.android.providers.telephony.CarrierIdProvider.AUTHORITY , "get_version" , com.android.providers.telephony.CarrierIdProvider.URL_GET_VERSION ) ; updateDatabaseFromPb ( mDbHelper.getWritableDatabase ( ) ) ; return true ; }
Source:
public void run ( ) { if ( isDisposed ( ) ) { return ; } com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutWindowCoordinator coordinator = com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutWindowCoordinator.get ( ) ; if ( coordinator != null ) { java.lang.Boolean zoomed = coordinator.isEditorMaximized ( ) ; if ( ( mWasZoomed ) != zoomed ) { if ( ( mWasZoomed ) != null ) { setFitScale ( true ) ; } mWasZoomed = zoomed ; } } }

Target:
public void run ( ) { if ( isDisposed ( ) ) { return ; } com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutWindowCoordinator coordinator = com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutWindowCoordinator.get ( ) ; if ( coordinator != null ) { java.lang.Boolean zoomed = coordinator.isEditorMaximized ( ) ; if ( ( mWasZoomed ) != zoomed ) { if ( ( mWasZoomed ) != null ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutActionBar actionBar = mEditorDelegate.getGraphicalEditor ( ) . getLayoutActionBar ( ) ; if ( actionBar.isZoomingAllowed ( ) ) { setFitScale ( true ) ; } } mWasZoomed = zoomed ; } } }
Source:
public boolean startScreenSaver ( ) { synchronized ( mLock ) { if ( isScreenSaverEnabled ( ) ) { android.service.dreams.IDreamManager dm = getDreamManager ( ) ; if ( dm == null ) return false ; try { if ( com.android.internal.policy.impl.PhoneWindowManager.localLOGV ) android.util.Log.v ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "startScreenSaver: entering dreamland..." ) ; dm.dream ( ) ; return true ; } catch ( android.os.RemoteException ex ) { } } } return false ; }

Target:
public void setLockOptions ( android.os.Bundle options ) { this . options = options ; }
Source:
private void toggleRecentApps ( ) { mPreloadedRecentApps = false ; sendCloseSystemWindows ( com.android.internal.policy.impl.PhoneWindowManager.SYSTEM_DIALOG_REASON_RECENT_APPS ) ; try { com.android.internal.statusbar.IStatusBarService statusbar = getStatusBarService ( ) ; if ( statusbar != null ) { statusbar.toggleRecentApps ( ) ; } } catch ( android.os.RemoteException e ) { android.util.Slog.e ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "RemoteException when showing recent apps" , e ) ; mStatusBarService = null ; } }

Target:
private void toggleRecentApps ( ) { mPreloadedRecentApps = false ; try { com.android.internal.statusbar.IStatusBarService statusbar = getStatusBarService ( ) ; if ( statusbar != null ) { statusbar.toggleRecentApps ( ) ; } } catch ( android.os.RemoteException e ) { android.util.Slog.e ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "RemoteException when toggling recent apps" , e ) ; mStatusBarService = null ; } }
Source:
public void testInstall_unsuccessfulFollowOnUpdate_olderVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneDistro distro1 = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 2 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.installWithErrorCode ( distro1.getBytes ( ) ) ) ; assertDistroInstalled ( distro1 ) ; libcore.tzdata.update2.TimeZoneDistro distro2 = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.OLDER_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_RULES_TOO_OLD , installer.installWithErrorCode ( distro2.getBytes ( ) ) ) ; assertDistroInstalled ( distro1 ) ; }

Target:
public void testInstall_unsuccessfulFollowOnUpdate_olderVersion ( ) throws java.lang.Exception { libcore.tzdata.shared2.TimeZoneDistro distro1 = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 2 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.installWithErrorCode ( distro1.getBytes ( ) ) ) ; assertDistroInstalled ( distro1 ) ; libcore.tzdata.shared2.TimeZoneDistro distro2 = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.OLDER_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_RULES_TOO_OLD , installer.installWithErrorCode ( distro2.getBytes ( ) ) ) ; assertDistroInstalled ( distro1 ) ; }
Source:
public java.util.Set < java.lang.String > getApplicableFilters ( @ com.android.annotations.NonNull java.util.Set < java.lang.String > allFilters ) { java.util.Set < java.lang.String > list = super . getApplicableFilters ( allFilters ) ; if ( isEnable ( ) ) { list.add ( com.android.build.OutputFile.NO_FILTER ) ; } return list ; }

Target:
public java.util.Set < java.lang.String > getApplicableFilters ( @ com.android.annotations.NonNull java.util.Set < java.lang.String > allFilters ) { java.util.LinkedHashSet < java.lang.String > filters = new java.util.LinkedHashSet < java.lang.String > ( ) ; if ( isEnable ( ) ) { filters.add ( com.android.build.OutputFile.NO_FILTER ) ; } filters.addAll ( super . getApplicableFilters ( allFilters ) ) ; return filters ; }
Source:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , byte [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFrom" ) ; validateIsInt8 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFrom ( byte [ ] d ) { validateIsInt8 ( ) ; copyFromUnchecked ( d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
public boolean p2pGroupRemove ( java.lang.String iface ) { if ( android.text.TextUtils.isEmpty ( iface ) ) return false ; if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.groupRemove ( iface ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " P2P_GROUP_REMOVE " ) + iface ) ) ; } } }

Target:
public boolean p2pFlush ( ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.flush ( ) ; } else { return doBooleanCommand ( "P2P_FLUSH" ) ; } }
Source:
public void switchToProfile ( java.lang.String iccid , boolean refresh , android.telephony.euicc.EuiccCardManager.ResultCallback < android.service.euicc.EuiccProfileInfo > callback ) { try { getIEuiccCardController ( ) . switchToProfile ( mContext.getOpPackageName ( ) , iccid , refresh , new com.android.internal.telephony.euicc.ISwitchToProfileCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , android.service.euicc.EuiccProfileInfo profile ) { callback.onComplete ( resultCode , profile ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling switchToProfile" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void switchToProfile ( java.lang.String cardId , java.lang.String iccid , boolean refresh , android.telephony.euicc.EuiccCardManager.ResultCallback < android.service.euicc.EuiccProfileInfo > callback ) { try { getIEuiccCardController ( ) . switchToProfile ( mContext.getOpPackageName ( ) , cardId , iccid , refresh , new com.android.internal.telephony.euicc.ISwitchToProfileCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , android.service.euicc.EuiccProfileInfo profile ) { callback.onComplete ( resultCode , profile ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling switchToProfile" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
public com.android.tools.lint.detector.api.Location getLocation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Node node , int start , int end ) { com.android.tools.lint.LintCliXmlParser.OffsetPosition pos = ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( getPosition ( node , start , end ) ) ) ; if ( pos != null ) { return com.android.tools.lint.detector.api.Location.create ( context.file , pos , ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( pos.getEnd ( ) ) ) ) ; } return com.android.tools.lint.detector.api.Location.create ( context.file ) ; }

Target:
public com.android.tools.lint.detector.api.Location getLocation ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Node node , int start , int end ) { com.android.tools.lint.LintCliXmlParser.OffsetPosition pos = ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( mParser.getPosition ( node , start , end ) ) ) ; if ( pos != null ) { return com.android.tools.lint.detector.api.Location.create ( context.file , pos , ( ( com.android.tools.lint.LintCliXmlParser.OffsetPosition ) ( pos.getEnd ( ) ) ) ) ; } return com.android.tools.lint.detector.api.Location.create ( context.file ) ; }
Source:
public void cancelThumbnailLoading ( ) { if ( ( mItemLoadedFuture ) != null ) { if ( android.util.Log.isLoggable ( LogTag.APP , Log.DEBUG ) ) { android.util.Log.v ( com.android.mms.model.VideoModel.TAG , ( "cancelThumbnailLoading for: " + ( this ) ) ) ; } mItemLoadedFuture.cancel ( ) ; mItemLoadedFuture = null ; } }

Target:
public void cancelThumbnailLoading ( ) { if ( ( ( mItemLoadedFuture ) != null ) && ( ! ( mItemLoadedFuture.isDone ( ) ) ) ) { if ( android.util.Log.isLoggable ( LogTag.APP , Log.DEBUG ) ) { android.util.Log.v ( com.android.mms.model.VideoModel.TAG , ( "cancelThumbnailLoading for: " + ( this ) ) ) ; } mItemLoadedFuture.cancel ( getUri ( ) ) ; mItemLoadedFuture = null ; } }
Source:
public void onClick ( android.view.View v ) { cancelAlarm ( ) ; }

Target:
public void onClick ( android.view.View v ) { android.widget.ImageView view2 = ( ( android.widget.ImageView ) ( findViewById ( R.id.img2 ) ) ) ; android.widget.ImageView view3 = ( ( android.widget.ImageView ) ( findViewById ( R.id.img3 ) ) ) ; cancelAlarm ( ) ; view2.setImageResource ( R.drawable.fs_good ) ; view3.setImageResource ( R.drawable.fs_good ) ; }
Source:
public void dup2_x2 ( ) { super . dup2_x2 ( ) ; producerPop ( ) ; producerPop ( ) ; producerPop ( ) ; producerPop ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; }

Target:
private void producerPush ( ) { producerStack.push ( producerValue ) ; actualProducerStack.push ( producerValue ) ; }
Source:
public int getItemViewType ( int position ) { if ( ( ( todayHeaderPosition ) != null ) && ( position == ( todayHeaderPosition ) ) ) { return com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_TODAY ; } if ( ( ( olderHeaderPosition ) != null ) && ( position == ( olderHeaderPosition ) ) ) { return com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_OLDER ; } return com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.CALL_LOG_ENTRY ; }

Target:
public int getItemViewType ( int position ) { if ( ( ( todayHeaderPosition ) != null ) && ( position == ( todayHeaderPosition ) ) ) { return com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_TODAY ; } if ( ( ( yesterdayHeaderPosition ) != null ) && ( position == ( yesterdayHeaderPosition ) ) ) { return com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_YESTERDAY ; } if ( ( ( olderHeaderPosition ) != null ) && ( position == ( olderHeaderPosition ) ) ) { return com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_OLDER ; } return com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.CALL_LOG_ENTRY ; }
Source:
public void run ( ) { boolean allResultsArrived = false ; stopTime = ( java.lang.System.currentTimeMillis ( ) ) + ( com.google.gct.testing.CloudResultsAdapter.PollingTicker.INITIAL_TIMEOUT ) ; while ( ( java.lang.System.currentTimeMillis ( ) ) < ( stopTime ) ) { allResultsArrived = poll ( ) ; if ( allResultsArrived ) { break ; } try { java.lang.Thread.sleep ( com.google.gct.testing.CloudResultsAdapter.PollingTicker.POLLING_INTERVAL ) ; } catch ( java.lang.InterruptedException e ) { } } stopResultProcessing ( allResultsArrived ) ; }

Target:
public void run ( ) { boolean allResultsArrived = false ; stopTime = ( java.lang.System.currentTimeMillis ( ) ) + ( com.google.gct.testing.CloudResultsAdapter.PollingTicker.INITIAL_TIMEOUT ) ; while ( ( java.lang.System.currentTimeMillis ( ) ) < ( stopTime ) ) { allResultsArrived = poll ( ) ; if ( allResultsArrived ) { break ; } try { java.lang.Thread.sleep ( com.google.gct.testing.CloudResultsAdapter.PollingTicker.POLLING_INTERVAL ) ; } catch ( java.lang.InterruptedException e ) { } } timeoutResultProcessing ( allResultsArrived ) ; }
Source:
public void updateActivePhonesMwi ( ) { java.util.List < android.telephony.SubscriptionInfo > subInfos = mSubscriptionManager.getActiveSubscriptionInfoList ( ) ; if ( subInfos == null ) { return ; } for ( int i = 0 ; i < ( subInfos.size ( ) ) ; i ++ ) { int subId = subInfos.get ( i ) . getSubscriptionId ( ) ; refreshMwi ( subId ) ; } }

Target:
void updateMwi ( int subId , boolean visible ) { updateMwi ( subId , visible , false ) ; }
Source:
protected libcore.util.ZoneInfo create ( java.lang.String id ) { int index = java.util.Arrays.binarySearch ( ids , id ) ; if ( index < 0 ) { return null ; } libcore.io.BufferIterator it = mappedFile.bigEndianIterator ( ) ; it.skip ( byteOffsets [ index ] ) ; return libcore.util.ZoneInfo.makeTimeZone ( id , it ) ; }

Target:
public java.util.TimeZone makeTimeZone ( java.lang.String id ) throws java.io.IOException { int index = java.util.Arrays.binarySearch ( ids , id ) ; if ( index < 0 ) { return null ; } libcore.io.BufferIterator it = mappedFile.bigEndianIterator ( ) ; it.skip ( byteOffsets [ index ] ) ; return libcore.util.ZoneInfo.makeTimeZone ( id , it ) ; }
Source:
protected java.lang.Class < ? > findClass ( java.lang.String name ) throws java.lang.ClassNotFoundException { try { return webViewCl.loadClass ( name ) ; } catch ( java.lang.ClassNotFoundException e ) { return appCl.loadClass ( name ) ; } }

Target:
public void setHorizontalScrollbarOverlay ( final boolean overlay ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setHorizontalScrollbarOverlay ( overlay ) ; } } ) ; return ; } mAwContents.setHorizontalScrollbarOverlay ( overlay ) ; }
Source:
public static void check ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull com.android.sched.util.location.FileOrDirLocation location ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { assert file != null ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( location ) ; } if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileException ( ( ( com.android.sched.util.location.FileLocation ) ( location ) ) ) ; } }

Target:
public static void check ( @ javax.annotation.Nonnull java.io.File file , @ javax.annotation.Nonnull com.android.sched.util.location.Location location ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { assert file != null ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( location ) ; } if ( file.isDirectory ( ) ) { throw new com.android.sched.util.file.NotFileException ( location ) ; } }
Source:
public void simSlotsStatusChanged ( int indicationType , java.util.ArrayList < com.android.internal.telephony.V1_2.SimSlotStatus > slotsStatus ) { mRil.processIndication ( indicationType ) ; java.util.ArrayList < com.android.internal.telephony.uicc.IccSlotStatus > iccSlotStatus = com.android.internal.telephony.RIL.convertHalSlotsStatus ( slotsStatus ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_ICC_SLOT_STATUS , iccSlotStatus ) ; mRil.mIccStatusChangedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , iccSlotStatus , null ) ) ; }

Target:
public void simSlotsStatusChanged ( int indicationType , java.util.ArrayList < com.android.internal.telephony.V1_2.SimSlotStatus > slotsStatus ) { mRil.processIndication ( indicationType ) ; java.util.ArrayList < com.android.internal.telephony.uicc.IccSlotStatus > iccSlotStatus = com.android.internal.telephony.RIL.convertHalSlotsStatus ( slotsStatus ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_ICC_SLOT_STATUS , iccSlotStatus ) ; mRil.mIccSlotStatusChangedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , iccSlotStatus , null ) ) ; }
Source:
public boolean isPaused ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return isPaused ( ) ; } } ) ; return ret ; } return mAwContents.isPaused ( ) ; }

Target:
public void onResume ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onResume ( ) ; } } ) ; return ; } mAwContents.onResume ( ) ; }
Source:
protected void onStop ( ) { super . onStop ( ) ; if ( ( mAlert ) != null ) { mAlert.dismiss ( ) ; android.content.Intent denyIntent = new android.content.Intent ( BluetoothPeripheralHandover.ACTION_DENY_CONNECT ) ; denyIntent.putExtra ( BluetoothDevice.EXTRA_DEVICE , mDevice ) ; sendBroadcast ( denyIntent ) ; } }

Target:
protected void onDestroy ( ) { unregisterReceiver ( mReceiver ) ; if ( ( mAlert ) != null ) { mAlert.dismiss ( ) ; android.content.Intent denyIntent = new android.content.Intent ( BluetoothPeripheralHandover.ACTION_DENY_CONNECT ) ; denyIntent.putExtra ( BluetoothDevice.EXTRA_DEVICE , mDevice ) ; sendBroadcast ( denyIntent ) ; mAlert = null ; } super . onDestroy ( ) ; }
Source:
public void testInstallWithBadlyFormedAndroidRevision ( ) throws java.lang.Exception { java.lang.String invalidAndroidRevision = "A01" ; byte [ ] versionBytes = libcore.tzdata.update2.BundleVersion.getBytes ( BundleVersion.FULL_BUNDLE_FORMAT_VERSION , libcore.tzdata.update2.TzDataBundleInstallerTest.NEW_RULES_VERSION , invalidAndroidRevision ) ; libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TzDataBundleInstallerTest.createTimeZoneBundleWithVersionBytes ( versionBytes ) ; assertFalse ( installer.install ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstallWithBadlyFormedAndroidRevision ( ) throws java.lang.Exception { java.lang.String invalidAndroidRevision = "A01" ; byte [ ] versionBytes = libcore.tzdata.update2.BundleVersion.getBytes ( BundleVersion.FULL_BUNDLE_FORMAT_VERSION , libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , invalidAndroidRevision ) ; libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTimeZoneBundleWithVersionBytes ( versionBytes ) ; assertFalse ( installer.install ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
public com.ibm.icu.impl.SimplePatternFormatter getByVariant ( java.lang.CharSequence variant ) { assert isValid ( ) ; int idx = com.ibm.icu.text.QuantityFormatter.getPluralIndex ( variant ) ; com.ibm.icu.impl.SimplePatternFormatter template = templates [ ( idx < 0 ? 0 : idx ) ] ; return template == null ? templates [ 0 ] : template ; }

Target:
public com.ibm.icu.impl.SimplePatternFormatter getByVariant ( java.lang.CharSequence variant ) { assert isValid ( ) ; int idx = com.ibm.icu.text.PluralRules.StandardPluralCategories.getIndexOrOtherIndex ( variant ) ; com.ibm.icu.impl.SimplePatternFormatter template = templates [ idx ] ; return ( template == null ) && ( idx != ( com.ibm.icu.text.PluralRules.StandardPluralCategories.OTHER_INDEX ) ) ? templates [ com.ibm.icu.text.PluralRules.StandardPluralCategories.OTHER_INDEX ] : template ; }
Source:
public void testLibProguard ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libProguard" ) ; java.io.File fileOutput = new java.io.File ( project , "build/proguard/release" ) ; runGradleTasks ( sdkDir , BasePlugin.GRADLE_MIN_VERSION , project , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( fileOutput , "mapping.txt" , new java.lang.String [ ] { "int proguardInt -> a" } ) ; }

Target:
public void DISABLEDtestLibProguard ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libProguard" ) ; java.io.File fileOutput = new java.io.File ( project , "build/proguard/release" ) ; runGradleTasks ( sdkDir , BasePlugin.GRADLE_MIN_VERSION , project , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( fileOutput , "mapping.txt" , new java.lang.String [ ] { "int proguardInt -> a" } ) ; }
Source:
public boolean test ( com.google.doclava.MethodInfo test ) { if ( ( test.isHiddenOrRemoved ( ) ) || ( test.containingClass ( ) . isHiddenOrRemoved ( ) ) ) { return false ; } final java.lang.String testApi = com.google.doclava.Stubs.writeMethodApiWithoutDefault ( test ) ; return api.equals ( testApi ) ; }

Target:
public com.google.doclava.Stubs.ApiPredicate setIgnoreShown ( boolean ignoreShown ) { this . ignoreShown = ignoreShown ; return this ; }
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 schedule ( java.util.TimerTask task , java.util.Date when , long period ) { validateScheduling ( task , when , 1 , period ) ; doSchedule ( task , when.getTime ( ) , period ) ; }
Source:
public void onRegistering ( @ android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech int imsRadioTech ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onImsProgressing imsRadioTech=" + imsRadioTech ) ) ; mPhone.setServiceState ( ServiceState.STATE_OUT_OF_SERVICE ) ; mPhone.setImsRegistered ( false ) ; mMetrics.writeOnImsConnectionState ( mPhone.getPhoneId ( ) , ImsConnectionState.State.PROGRESSING , null ) ; }

Target:
public void onCapabilitiesStatusChanged ( android.telephony.ims.feature.ImsFeature.Capabilities config ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onCapabilitiesStatusChanged: " + config ) ) ; com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = config ; removeMessages ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.EVENT_ON_FEATURE_CAPABILITY_CHANGED ) ; obtainMessage ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.EVENT_ON_FEATURE_CAPABILITY_CHANGED , args ) . sendToTarget ( ) ; }
Source:
private org.apache.harmony.dalvik.ddmc.Chunk handleMPSS ( org.apache.harmony.dalvik.ddmc.Chunk request ) { java.nio.ByteBuffer in = wrapChunk ( request ) ; int bufferSize = in.getInt ( ) ; int flags = in.getInt ( ) ; if ( false ) { android.util.Log.v ( "ddm-heap" , ( ( ( "Method prof stream start: size=" + bufferSize ) + ", flags=" ) + flags ) ) ; } try { android.os.Debug.startMethodTracingDdms ( bufferSize , flags , false , 0 ) ; return null ; } catch ( java.lang.RuntimeException re ) { return createFailChunk ( 1 , re.getMessage ( ) ) ; } }

Target:
private org.apache.harmony.dalvik.ddmc.Chunk handleMPSS ( org.apache.harmony.dalvik.ddmc.Chunk request ) { java.nio.ByteBuffer in = wrapChunk ( request ) ; int bufferSize = in.getInt ( ) ; int flags = in.getInt ( ) ; if ( android.ddm.DdmHandleProfiling.DEBUG ) { android.util.Log.v ( "ddm-heap" , ( ( ( "Method prof stream start: size=" + bufferSize ) + ", flags=" ) + flags ) ) ; } try { android.os.Debug.startMethodTracingDdms ( bufferSize , flags , false , 0 ) ; return null ; } catch ( java.lang.RuntimeException re ) { return createFailChunk ( 1 , re.getMessage ( ) ) ; } }
Source:
public void test_getFirst ( ) { assertTrue ( "Returned incorrect first element" , ll.getFirst ( ) . equals ( objArray [ 0 ] ) ) ; ll.clear ( ) ; try { ll.getFirst ( ) ; fail ( "NoSuchElementException expected" ) ; } catch ( java.util.NoSuchElementException e ) { } }

Target:
public void test_getFirst ( ) { assertTrue ( "Returned incorrect first element" , ll.getFirst ( ) . equals ( objArray [ 0 ] ) ) ; java.util.LinkedList list = new java.util.LinkedList ( ) ; try { list.getFirst ( ) ; fail ( "Should throw NoSuchElementException" ) ; } catch ( java.util.NoSuchElementException e ) { } }
Source:
void acceptCall ( ) throws com.android.internal.telephony.CallStateException { if ( ( ringingCall.getState ( ) ) == ( GsmCall.State.INCOMING ) ) { android.util.Log.i ( "phone" , "acceptCall: incoming..." ) ; setMute ( false ) ; cm.acceptCall ( obtainCompleteMessage ( ) ) ; } else if ( ( ringingCall.getState ( ) ) == ( GsmCall.State.WAITING ) ) { setMute ( false ) ; switchWaitingOrHoldingAndActive ( ) ; } else { throw new com.android.internal.telephony.CallStateException ( "phone not ringing" ) ; } }

Target:
void acceptCall ( ) throws com.android.internal.telephony.CallStateException { if ( ( ringingCall.getState ( ) ) == ( GsmCall.State.INCOMING ) ) { android.telephony.Rlog.i ( "phone" , "acceptCall: incoming..." ) ; setMute ( false ) ; cm.acceptCall ( obtainCompleteMessage ( ) ) ; } else if ( ( ringingCall.getState ( ) ) == ( GsmCall.State.WAITING ) ) { setMute ( false ) ; switchWaitingOrHoldingAndActive ( ) ; } else { throw new com.android.internal.telephony.CallStateException ( "phone not ringing" ) ; } }
Source:
public byte [ ] getSubjectKeyIdentifier ( ) { byte [ ] subjectKeyId = null ; sun.security.x509.SubjectKeyIdentifierExtension ski = getSubjectKeyIdentifierExtension ( ) ; if ( ski != null ) { try { sun.security.x509.KeyIdentifier ki = ( ( sun.security.x509.KeyIdentifier ) ( ski.get ( sun.security.x509.SubjectKeyIdentifierExtension.KEY_ID ) ) ) ; if ( ki != null ) { subjectKeyId = ki.getIdentifier ( ) ; } } catch ( java.io.IOException e ) { } } return subjectKeyId ; }

Target:
public sun.security.x509.KeyIdentifier getSubjectKeyId ( ) { sun.security.x509.SubjectKeyIdentifierExtension ski = getSubjectKeyIdentifierExtension ( ) ; if ( ski != null ) { try { return ( ( sun.security.x509.KeyIdentifier ) ( ski.get ( sun.security.x509.SubjectKeyIdentifierExtension.KEY_ID ) ) ) ; } catch ( java.io.IOException ioe ) { } } return null ; }
Source:
private void assertNoContentInstalled ( ) { java.io.File currentTzDataDir = new java.io.File ( testInstallDir , TzDataBundleInstaller.CURRENT_TZ_DATA_DIR_NAME ) ; assertFalse ( currentTzDataDir.exists ( ) ) ; java.io.File workingDir = new java.io.File ( testInstallDir , TzDataBundleInstaller.WORKING_DIR_NAME ) ; assertFalse ( workingDir.exists ( ) ) ; java.io.File oldDataDir = new java.io.File ( testInstallDir , TzDataBundleInstaller.OLD_TZ_DATA_DIR_NAME ) ; assertFalse ( oldDataDir.exists ( ) ) ; }

Target:
public void testUninstall_existingDataBundle ( ) throws java.lang.Exception { java.io.File currentDataDir = installer.getCurrentTzDataDir ( ) ; assertTrue ( currentDataDir.mkdir ( ) ) ; assertTrue ( installer.uninstall ( ) ) ; assertNoContentInstalled ( ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { try { Main.doThrow ( new java.lang.Error ( ) ) ; } catch ( java.lang.Error e ) { e.printStackTrace ( ) ; } try { Main.doThrow ( null ) ; } catch ( java.lang.Throwable t ) { t.printStackTrace ( ) ; } }

Target:
public static void main ( java.lang.String [ ] args ) { try { Main.doThrow ( new java.lang.Error ( ) ) ; } catch ( java.lang.Error e ) { e.printStackTrace ( java.lang.System.out ) ; } try { Main.doThrow ( null ) ; } catch ( java.lang.Throwable t ) { t.printStackTrace ( java.lang.System.out ) ; } }
Source:
public void setParent ( java.util.logging.Logger parent ) { if ( parent == null ) { throw new java.lang.NullPointerException ( ) ; } manager.checkPermission ( ) ; doSetParent ( parent ) ; }

Target:
public void setParent ( java.util.logging.Logger parent ) { if ( parent == null ) { throw new java.lang.NullPointerException ( ) ; } if ( ( manager ) == null ) { manager = java.util.logging.LogManager.getLogManager ( ) ; } manager.checkPermission ( ) ; doSetParent ( parent ) ; }
Source:
public void testContainsAll ( ) { java.util.concurrent.CopyOnWriteArraySet full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; java.util.Vector v = new java.util.Vector ( ) ; v.add ( one ) ; v.add ( two ) ; assertTrue ( full.containsAll ( v ) ) ; v.add ( six ) ; assertFalse ( full.containsAll ( v ) ) ; }

Target:
public void testContains ( ) { java.util.Collection full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; assertTrue ( full.contains ( one ) ) ; assertFalse ( full.contains ( five ) ) ; }
Source:
public void run ( ) { synchronized ( this ) { if ( ( this . overlayImage ) != null ) { this . overlayImage.dispose ( ) ; } this . overlayImage = overlayImage ; } }

Target:
public void setOverlayImage ( final org.eclipse.swt.graphics.Image overlayImage ) { final org.eclipse.swt.graphics.Image toDispose = this . overlayImage ; org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( com.android.hierarchyviewerlib.models.PixelPerfectModel.this ) { com.android.hierarchyviewerlib.models.PixelPerfectModel.this . overlayImage = overlayImage ; } } } ) ; notifyOverlayChanged ( ) ; if ( toDispose != null ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { toDispose.dispose ( ) ; } } ) ; } }