auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public ScriptGroup2.Closure prepInit ( android.renderscript.ScriptGroup2.Builder b ) { cInit = b.addInvoke ( s.getInvokeID_init_vignette ( ) , mInPixelsAllocation.getType ( ) . getX ( ) , mInPixelsAllocation.getType ( ) . getY ( ) , center_x , center_y , scale , shade , slope ) ; return cInit ; }

Target:
public ScriptGroup.Closure prepInit ( android.renderscript.ScriptGroup.Builder2 b ) { cInit = b.addInvoke ( s.getInvokeID_init_vignette ( ) , mInPixelsAllocation.getType ( ) . getX ( ) , mInPixelsAllocation.getType ( ) . getY ( ) , center_x , center_y , scale , shade , slope ) ; return cInit ; }
Source:
private java.lang.String describeButtons ( java.util.List < java.lang.String > labelList ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( java.lang.String label : labelList ) { if ( ( sb.length ( ) ) > 0 ) { sb.append ( " | " ) ; } sb.append ( label ) ; } return sb.toString ( ) ; }

Target:
private static java.lang.String describeButtons ( java.util.List < java.lang.String > labelList ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 80 ) ; for ( java.lang.String label : labelList ) { if ( ( sb.length ( ) ) > 0 ) { sb.append ( " | " ) ; } sb.append ( label ) ; } return sb.toString ( ) ; }
Source:
public android.bluetooth.BluetoothDevice getClient ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getClient = " + ( mService.getRemoteDevice ( ) ) ) ) ; com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) return null ; return service.getRemoteDevice ( ) ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "getConnectedDevices" ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( ) ; if ( service == null ) { return new java.util.ArrayList < > ( 0 ) ; } return service.getConnectedDevices ( ) ; }
Source:
private static boolean checkPlatformContent ( java.io.File platform , com.android.sdklib.ISdkLog log ) { for ( java.lang.String relativePath : com.android.sdklib.SdkManager.sPlatformContentList ) { java.io.File f = new java.io.File ( platform , relativePath ) ; if ( ! ( f.exists ( ) ) ) { log.warning ( "Ignoring platform '%1$s': %2$s is missing." , platform.getName ( ) , relativePath ) ; return false ; } } return true ; }

Target:
private static boolean checkPlatformContent ( java.io.File platform , com.android.utils.ILogger log ) { for ( java.lang.String relativePath : com.android.sdklib.SdkManager.sPlatformContentList ) { java.io.File f = new java.io.File ( platform , relativePath ) ; if ( ! ( f.exists ( ) ) ) { log.warning ( "Ignoring platform '%1$s': %2$s is missing." , platform.getName ( ) , relativePath ) ; return false ; } } return true ; }
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:
private void doSchedule ( java.util.TimerTask timerTask , java.lang.Long nextExecution , java.lang.Long period ) { doSchedule ( timerTask , nextExecution , period , false ) ; }
Source:
public void delete ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException , com.android.sched.util.file.CannotDeleteFileException { try { inputVFS.getRootInputVDir ( ) . getInputVFile ( fileType.buildFileVPath ( typePath ) ) . delete ( ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }

Target:
protected java.lang.String getPropertyPrefix ( @ javax.annotation.Nonnull com.android.jack.library.FileType type ) { switch ( type ) { case PREBUILT : return "dex" ; case JAYCE : return "jayce" ; case META : return "jpp" ; case LOG : return "logs" ; case DEPENDENCIES : return "dependencies" ; case RSC : return "rsc" ; default : throw new java.lang.AssertionError ( ) ; } }
Source:
public static boolean $noinline$doCall ( java.lang.Object foo ) { return foo.equals ( Main.class ) ; }

Target:
public static boolean $noinline$doCall ( java.lang.Object foo ) { boolean isCompiledAtEntry = ! ( Main.isInterpreted ( ) ) ; boolean result = foo.equals ( Main.class ) ; if ( isCompiledAtEntry ) { if ( Main.isInterpreted ( ) ) { throw new java.lang.Error ( "Unexpected deoptimization" ) ; } } return result ; }
Source:
private static boolean isPropertyWriteAllowed ( java.lang.String name ) { if ( name.equals ( "sun.font.fontmanager" ) ) { return true ; } if ( ( name.startsWith ( "sun.awt." ) ) || ( name.startsWith ( "apple.awt." ) ) ) { return true ; } return false ; }

Target:
private static boolean isPropertyWriteAllowed ( java.lang.String name ) { if ( name.equals ( "sun.font.fontmanager" ) ) { return true ; } if ( ( name.startsWith ( "sun.awt." ) ) || ( name.startsWith ( "apple.awt." ) ) ) { return true ; } if ( name.equals ( "user.timezone" ) ) { return true ; } return false ; }
Source:
private void notifyConnected ( ) { showMessage ( "BLE connected" ) ; android.content.Intent intent = new android.content.Intent ( com.android.cts.verifier.bluetooth.BleClientService.BLE_BLUETOOTH_CONNECTED ) ; sendBroadcast ( intent ) ; }

Target:
public void onCreate ( ) { super . onCreate ( ) ; registerReceiver ( mBondStatusReceiver , new android.content.IntentFilter ( android.bluetooth.BluetoothDevice.ACTION_BOND_STATE_CHANGED ) ) ; mBluetoothManager = ( ( android.bluetooth.BluetoothManager ) ( getSystemService ( Context.BLUETOOTH_SERVICE ) ) ) ; mBluetoothAdapter = mBluetoothManager.getAdapter ( ) ; mScanner = mBluetoothAdapter.getBluetoothLeScanner ( ) ; mHandler = new android.os.Handler ( ) ; mContext = this ; mNotifyCount = 0 ; mTaskQueue = new com.android.cts.verifier.bluetooth.TestTaskQueue ( ( ( getClass ( ) . getName ( ) ) + "_taskHandlerThread" ) ) ; }
Source:
public java.lang.String getTitle ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.String ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.String > ( ) { @ java.lang.Override public java.lang.String call ( ) { return getTitle ( ) ; } } ) ; return ret ; } return mAwContents.getTitle ( ) ; }

Target:
public android.graphics.Bitmap getFavicon ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.graphics.Bitmap ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.graphics.Bitmap > ( ) { @ java.lang.Override public android.graphics.Bitmap call ( ) { return getFavicon ( ) ; } } ) ; return ret ; } return mAwContents.getFavicon ( ) ; }
Source:
public void testColors1 ( ) throws java.lang.Exception { checkFormat ( com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences.create ( ) , "res/values/colors.xml" , ( "<resources>\n" + ( ( ( " <color name=\"enrollment_error\">#99e21f14</color>\n" + "\n" ) + " <color name=\"service_starting_up\">#99000000</color>\n" ) + "</resources>" ) ) , ( "<resources>\n" + ( ( ( ( "\n" + " <color name=\"enrollment_error\">#99e21f14</color>\n" ) + " <color name=\"service_starting_up\">#99000000</color>\n" ) + "\n" ) + "</resources>" ) ) ) ; }

Target:
public void testColors1 ( ) throws java.lang.Exception { checkFormat ( com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences.create ( ) , "res/values/colors.xml" , ( "<resources>\n" + ( ( ( " <color name=\"enrollment_error\">#99e21f14</color>\n" + "\n" ) + " <color name=\"service_starting_up\">#99000000</color>\n" ) + "</resources>" ) ) , ( "<resources>\n" + ( ( ( ( "\n" + " <color name=\"enrollment_error\">#99e21f14</color>\n" ) + " <color name=\"service_starting_up\">#99000000</color>\n" ) + "\n" ) + "</resources>" ) ) ) ; }
Source:
public boolean queryPhoneState ( ) throws android.os.RemoteException { synchronized ( mLock ) { enforceModifyPermission ( ) ; com.android.server.telecom.Log.startSession ( "BPSI.qPS" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { com.android.server.telecom.Log.i ( com.android.server.telecom.BluetoothPhoneServiceImpl.TAG , "queryPhoneState" ) ; updateHeadsetWithCallState ( true ) ; return true ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; com.android.server.telecom.Log.endSession ( ) ; } } }

Target:
public boolean queryPhoneState ( ) throws android.os.RemoteException { synchronized ( mLock ) { enforceModifyPermission ( ) ; android.telecom.Log.startSession ( "BPSI.qPS" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { android.telecom.Log.i ( com.android.server.telecom.BluetoothPhoneServiceImpl.TAG , "queryPhoneState" ) ; updateHeadsetWithCallState ( true ) ; return true ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } } }
Source:
public java.util.Set < java.lang.String > getCarrierVvmPackageNames ( ) { com.android.dialer.common.Assert.checkArgument ( isValid ( ) ) ; java.util.Set < java.lang.String > names = com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getCarrierVvmPackageNames ( mOverrideConfig ) ; if ( names != null ) { return names ; } names = com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getCarrierVvmPackageNames ( mCarrierConfig ) ; if ( names != null ) { return names ; } return com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getCarrierVvmPackageNames ( mTelephonyConfig ) ; }

Target:
private java.util.Set < java.lang.String > getCarrierVvmPackageNamesWithoutValidation ( ) { java.util.Set < java.lang.String > names = com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getCarrierVvmPackageNames ( mOverrideConfig ) ; if ( names != null ) { return names ; } names = com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getCarrierVvmPackageNames ( mCarrierConfig ) ; if ( names != null ) { return names ; } return com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getCarrierVvmPackageNames ( mTelephonyConfig ) ; }
Source:
public void testMissingTzDataFile ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneBundle installedBundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , "001" ) ; assertTrue ( installer.install ( installedBundle.getBytes ( ) ) ) ; assertBundleInstalled ( installedBundle ) ; libcore.tzdata.update2.TimeZoneBundle incompleteBundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundleBuilder ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEWER_RULES_VERSION , "001" ) . clearTzDataForTests ( ) . buildUnvalidated ( ) ; assertFalse ( installer.install ( incompleteBundle.getBytes ( ) ) ) ; assertBundleInstalled ( installedBundle ) ; }

Target:
public void testInstall_missingTzDataFile ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneBundle installedBundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , "001" ) ; assertTrue ( installer.install ( installedBundle.getBytes ( ) ) ) ; assertBundleInstalled ( installedBundle ) ; libcore.tzdata.update2.TimeZoneBundle incompleteBundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundleBuilder ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEWER_RULES_VERSION , "001" ) . clearTzDataForTests ( ) . buildUnvalidated ( ) ; assertFalse ( installer.install ( incompleteBundle.getBytes ( ) ) ) ; assertBundleInstalled ( installedBundle ) ; }
Source:
private void registerRecommendationSettingObserverIfNeeded ( ) { final java.util.List < java.lang.String > providerPackages = mNetworkScorerAppManager.getPotentialRecommendationProviderPackages ( ) ; if ( ! ( providerPackages.isEmpty ( ) ) ) { final android.content.ContentResolver resolver = mContext.getContentResolver ( ) ; final android.net.Uri uri = android.provider.Settings.Global.getUriFor ( Global.NETWORK_RECOMMENDATIONS_ENABLED ) ; resolver.registerContentObserver ( uri , false , new com.android.server.NetworkScoreService.SettingsObserver ( ) ) ; } }

Target:
private void registerRecommendationSettingsObserver ( ) { final java.util.List < java.lang.String > providerPackages = mNetworkScorerAppManager.getPotentialRecommendationProviderPackages ( ) ; if ( ! ( providerPackages.isEmpty ( ) ) ) { final android.net.Uri enabledUri = android.provider.Settings.Global.getUriFor ( Global.NETWORK_RECOMMENDATIONS_ENABLED ) ; mContentObserver.observe ( enabledUri , com.android.server.NetworkScoreService.ServiceHandler.MSG_RECOMMENDATIONS_ENABLED_CHANGED ) ; } final android.net.Uri timeoutUri = android.provider.Settings.Global.getUriFor ( Global.NETWORK_RECOMMENDATION_REQUEST_TIMEOUT_MS ) ; mContentObserver.observe ( timeoutUri , com.android.server.NetworkScoreService.ServiceHandler.MSG_RECOMMENDATION_REQUEST_TIMEOUT_CHANGED ) ; }
Source:
protected void computeLayerMatteInFrontOfFocalDepth ( ) { long startnow ; long endnow ; startnow = java.lang.System.nanoTime ( ) ; scriptC.forEach_MarkLayerMask ( buffers.inAllocation ) ; endnow = java.lang.System.nanoTime ( ) ; android.util.Log.d ( com.android.rs.test.f32.RefocusFilterF32.myTAG , ( ( "MarkLayerMask: " + ( endnow - startnow ) ) + " ns" ) ) ; startnow = java.lang.System.nanoTime ( ) ; scriptC.forEach_ComputeLayerMatteInFrontOfFocalDepth ( buffers.inAllocation ) ; endnow = java.lang.System.nanoTime ( ) ; android.util.Log.d ( com.android.rs.test.f32.RefocusFilterF32.myTAG , ( ( "ComputeLayerMatteInFrontOfFocalDepth: " + ( endnow - startnow ) ) + " ns" ) ) ; }

Target:
protected void computeLayerMatteInFrontOfFocalDepth ( ) { long startnow ; long endnow ; startnow = java.lang.System.nanoTime ( ) ; scriptC.forEach_MarkLayerMask ( buffers.inAllocation ) ; endnow = java.lang.System.nanoTime ( ) ; android.util.Log.d ( com.android.rs.refocus.f32.RefocusFilterF32.myTAG , ( ( "MarkLayerMask: " + ( endnow - startnow ) ) + " ns" ) ) ; startnow = java.lang.System.nanoTime ( ) ; scriptC.forEach_ComputeLayerMatteInFrontOfFocalDepth ( buffers.inAllocation ) ; endnow = java.lang.System.nanoTime ( ) ; android.util.Log.d ( com.android.rs.refocus.f32.RefocusFilterF32.myTAG , ( ( "ComputeLayerMatteInFrontOfFocalDepth: " + ( endnow - startnow ) ) + " ns" ) ) ; }
Source:
public synchronized void onDisconnect ( ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( "onDisconnect " + ( mCurrentCall ) ) ) ; if ( ( mHeadsetProfile ) != null ) { mHeadsetProfile.terminateCall ( mDevice , mCurrentCall ) ; mLocalDisconnect = true ; } else if ( ( mCurrentCall ) == null ) { android.util.Log.w ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , "Call disconnected but call handle not received." ) ; } }

Target:
public void updateCall ( android.bluetooth.BluetoothHeadsetClientCall call ) { if ( call == null ) { android.util.Log.e ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , "Updating call to a null value." ) ; return ; } mCurrentCall = call ; }
Source:
public android.hardware.cts.helpers.TestSensorEvent [ ] getEvents ( int count ) { if ( ( mTestSensorEventListener ) == null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "No listener registered, returning." ) ; return null ; } mTestSensorEventListener.waitForEvents ( count ) ; android.hardware.cts.helpers.TestSensorEvent [ ] events = mTestSensorEventListener.getEvents ( ) ; mTestSensorEventListener.clearEvents ( ) ; return events ; }

Target:
public void registerListener ( android.hardware.cts.helpers.TestSensorEventListener listener ) { if ( ( mTestSensorEventListener ) != null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "Listener already registered, returning." ) ; return ; } mTestSensorEventListener = ( listener != null ) ? listener : new android.hardware.cts.helpers.TestSensorEventListener ( ) ; mTestSensorEventListener.setSensorInfo ( mSensor , mRateUs , mMaxBatchReportLatencyUs ) ; java.lang.String message = android.hardware.cts.helpers.SensorCtsHelper.formatAssertionMessage ( mSensor , "registerListener" ) ; boolean result = mSensorManager.registerListener ( mTestSensorEventListener , mSensor , mRateUs , mMaxBatchReportLatencyUs ) ; junit.framework.Assert.assertTrue ( message , result ) ; }
Source:
public void test_toString ( ) throws java.lang.Exception { s = new java.net.ServerSocket ( 0 ) ; try { int portNumber = s.getLocalPort ( ) ; assertEquals ( ( ( "ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=" + portNumber ) + "]" ) , s.toString ( ) ) ; } finally { s.close ( ) ; } }

Target:
public void test_toString ( ) throws java.lang.Exception { s = new java.net.ServerSocket ( 0 ) ; try { int portNumber = s.getLocalPort ( ) ; assertEquals ( ( ( "ServerSocket[addr=::/::,port=0,localport=" + portNumber ) + "]" ) , s.toString ( ) ) ; } finally { s.close ( ) ; } }
Source:
public void run ( ) { for ( com.android.ide.common.api.MenuAction a2 : actions ) { if ( a2 instanceof com.android.ide.common.api.MenuAction.Action ) { com.android.ide.common.api.IMenuCallback c = ( ( com.android.ide.common.api.MenuAction.Action ) ( a2 ) ) . getCallback ( ) ; if ( c != null ) { try { c.action ( a2 , null , ( ! isChecked ) ) ; } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.internal.editors.layout.gre.RulesEngine gre = mCanvas.getRulesEngine ( ) ; gre.logError ( "XML edit operation failed: %s" , e.toString ( ) ) ; } } } } }

Target:
public void run ( ) { for ( com.android.ide.common.api.MenuAction a2 : actions ) { if ( a2 instanceof com.android.ide.common.api.MenuAction.Action ) { com.android.ide.common.api.IMenuCallback c = ( ( com.android.ide.common.api.MenuAction.Action ) ( a2 ) ) . getCallback ( ) ; if ( c != null ) { try { c.action ( a2 , null , ( ! isChecked ) ) ; } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "XML edit operation failed: %s" , e.toString ( ) ) ; } } } } }
Source:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID ) ; }

Target:
synchronized void nScriptSetVarObj ( long id , int slot , long val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarObj ( curCon , id , slot , val , mUseInc ) ; }
Source:
public boolean requestTime ( java.lang.String host , int timeout ) { java.net.InetAddress address = null ; try { address = java.net.InetAddress.getByName ( host ) ; } catch ( java.lang.Exception e ) { if ( android.net.SntpClient.DBG ) android.util.Log.d ( android.net.SntpClient.TAG , ( "request time failed: " + e ) ) ; return false ; } return requestTime ( address , android.net.SntpClient.NTP_PORT , timeout ) ; }

Target:
public boolean requestTime ( java.lang.String host , int timeout ) { java.net.InetAddress address = null ; try { address = java.net.InetAddress.getByName ( host ) ; } catch ( java.lang.Exception e ) { android.net.EventLogTags.writeNtpFailure ( host , e.toString ( ) ) ; if ( android.net.SntpClient.DBG ) android.util.Log.d ( android.net.SntpClient.TAG , ( "request time failed: " + e ) ) ; return false ; } return requestTime ( address , android.net.SntpClient.NTP_PORT , timeout ) ; }
Source:
public void destroyUserData ( java.lang.String uuid , int userId , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.destroyUserData ( uuid , userId , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void destroyUserData ( java.lang.String uuid , int userId , int flags ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.destroyUserData ( uuid , userId , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public java.nio.ByteBuffer putChar ( int index , char value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.CHAR ) ; this . block.pokeShort ( ( ( offset ) + index ) , ( ( short ) ( value ) ) , order ) ; return this ; }

Target:
public final char getChar ( int index ) { checkNotFreed ( ) ; checkIndex ( index , SizeOf.CHAR ) ; return ( ( char ) ( this . block.peekShort ( ( ( offset ) + index ) , order ) ) ) ; }
Source:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , float [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }
Source:
public void testSendToClient1 ( ) { outArray [ 0 ] = 0 ; int Id = android.renderscript.cts.SendToClient.random.nextInt ( 100 ) ; mRS.setMessageHandler ( mRsMessage ) ; android.renderscript.cts.ScriptC_send_to_client_1 mScript ; mScript = new android.renderscript.cts.ScriptC_send_to_client_1 ( mRS , mRes , R.raw.send_to_client_1 ) ; mScript.invoke_callback ( Id ) ; try { mRsMessage.waitForTest ( ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } assertEquals ( createErrorMsgF ( 1 , Id , outArray [ 0 ] ) , Id , outArray [ 0 ] ) ; }

Target:
public void testSendToClient1 ( ) { outArray [ 0 ] = 0 ; int Id = android.renderscript.cts.SendToClient.random.nextInt ( 100 ) ; mRS.setMessageHandler ( mRsMessage ) ; android.renderscript.cts.ScriptC_send_to_client_1 mScript ; mScript = new android.renderscript.cts.ScriptC_send_to_client_1 ( mRS ) ; mScript.invoke_callback ( Id ) ; try { android.renderscript.cts.SendToClient.mSync.acquire ( ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } assertEquals ( createErrorMsgF ( 1 , Id , outArray [ 0 ] ) , Id , outArray [ 0 ] ) ; }
Source:
public void modifyText ( org.eclipse.swt.events.ModifyEvent e ) { updateAppliedFilters ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( ( e.getSource ( ) ) == ( mCollapseAllToolItem ) ) { setTreeItemsExpanded ( false ) ; } else if ( ( e.getSource ( ) ) == ( mExpandAllToolItem ) ) { setTreeItemsExpanded ( true ) ; } else if ( ( e.getSource ( ) ) == ( mSaveAsToolItem ) ) { exportTrace ( ) ; } }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.unittest.ScriptC_check_dims s = new com.android.rs.unittest.ScriptC_check_dims ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.forEach_root ( mA ) ; s.invoke_check_dims_test ( ) ; pRS.finish ( ) ; mAFailed.destroy ( ) ; mA.destroy ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = createRenderScript ( true ) ; com.android.rs.unittest.ScriptC_check_dims s = new com.android.rs.unittest.ScriptC_check_dims ( pRS ) ; initializeGlobals ( pRS , s ) ; s.forEach_root ( mA ) ; s.invoke_check_dims_test ( ) ; pRS.finish ( ) ; mAFailed.destroy ( ) ; mA.destroy ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }
Source:
void startCleaningPackages ( ) { synchronized ( mPackages ) { if ( ! ( isExternalMediaAvailable ( ) ) ) { return ; } if ( ( mSettings.mPackagesToBeCleaned.size ( ) ) <= 0 ) { return ; } } android.content.Intent intent = new android.content.Intent ( android.content.pm.PackageManager.ACTION_CLEAN_EXTERNAL_STORAGE ) ; intent.setComponent ( com.android.server.pm.PackageManagerService.DEFAULT_CONTAINER_COMPONENT ) ; android.app.IActivityManager am = android.app.ActivityManagerNative.getDefault ( ) ; if ( am != null ) { try { am.startService ( null , intent , null ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
void startCleaningPackages ( ) { synchronized ( mPackages ) { if ( ! ( isExternalMediaAvailable ( ) ) ) { return ; } if ( mSettings.mPackagesToBeCleaned.isEmpty ( ) ) { return ; } } android.content.Intent intent = new android.content.Intent ( android.content.pm.PackageManager.ACTION_CLEAN_EXTERNAL_STORAGE ) ; intent.setComponent ( com.android.server.pm.PackageManagerService.DEFAULT_CONTAINER_COMPONENT ) ; android.app.IActivityManager am = android.app.ActivityManagerNative.getDefault ( ) ; if ( am != null ) { try { am.startService ( null , intent , null , UserHandle.USER_OWNER ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String a = org.conscrypt.NativeCrypto.SSL_SESSION_cipher ( session ) ; assertTrue ( NativeCrypto.OPENSSL_TO_STANDARD_CIPHER_SUITES.containsKey ( a ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] id = org.conscrypt.NativeCrypto.SSL_SESSION_session_id ( session ) ; assertNotNull ( id ) ; assertEquals ( 32 , id.length ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public void testAesCbcHmacSha384Tcp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , android.net.cts.IpSecManagerTest.getKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }

Target:
public void testAesCbcHmacSha512Udp4UdpEncap ( ) 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_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , true , 1 , false ) ; }
Source:
private void handlePackageModified ( java.lang.String packageName , boolean removed ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "packageName: " + packageName ) + " removed: " ) + removed ) ) ; if ( removed ) { if ( isBrowseSupported ( packageName ) ) { removePackageFromBrowseList ( packageName ) ; } } else { if ( isBrowsableListUpdated ( packageName ) ) { mBrowsableListBuilder.start ( ) ; } } }

Target:
private void handlePackageModified ( java.lang.String packageName , boolean removed ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "packageName: " + packageName ) + " removed: " ) + removed ) ) ; if ( removed ) { removeMediaPlayerInfo ( packageName ) ; if ( isBrowseSupported ( packageName ) ) { removePackageFromBrowseList ( packageName ) ; } } else { if ( isBrowsableListUpdated ( packageName ) ) { mBrowsableListBuilder.start ( ) ; } } }
Source:
public void start ( com.android.ims.internal.ImsCallSession session , java.lang.String [ ] participants ) throws com.android.ims.ImsException { logi ( ( "start(n) :: session=" + session ) ) ; synchronized ( mLockObj ) { mSession = session ; try { session.setListener ( createCallSessionListener ( ) ) ; session.start ( participants , mCallProfile ) ; } catch ( java.lang.Throwable t ) { loge ( "start(n) :: " , t ) ; throw new com.android.ims.ImsException ( "start(n)" , t , 0 ) ; } } }

Target:
public void start ( android.telephony.ims.ImsCallSession session , java.lang.String [ ] participants ) throws com.android.ims.ImsException { logi ( ( "start(n) :: session=" + session ) ) ; synchronized ( mLockObj ) { mSession = session ; try { session.setListener ( createCallSessionListener ( ) ) ; session.start ( participants , mCallProfile ) ; } catch ( java.lang.Throwable t ) { loge ( "start(n) :: " , t ) ; throw new com.android.ims.ImsException ( "start(n)" , t , 0 ) ; } } }
Source:
public static final java.text.DateFormat getDateTimeInstance ( int dateStyle , int timeStyle , java.util.Locale locale ) { java.text.DateFormat.checkTimeStyle ( timeStyle ) ; java.text.DateFormat.checkDateStyle ( dateStyle ) ; libcore.icu.LocaleData localeData = libcore.icu.LocaleData.get ( locale ) ; java.lang.String pattern = ( ( localeData.getDateFormat ( dateStyle ) ) + " " ) + ( localeData.getTimeFormat ( timeStyle ) ) ; return new java.text.SimpleDateFormat ( pattern , locale ) ; }

Target:
public static final java.text.DateFormat getDateTimeInstance ( int dateStyle , int timeStyle , java.util.Locale locale ) { java.text.DateFormat.checkTimeStyle ( timeStyle ) ; java.text.DateFormat.checkDateStyle ( dateStyle ) ; if ( locale == null ) { throw new java.lang.NullPointerException ( "locale == null" ) ; } libcore.icu.LocaleData localeData = libcore.icu.LocaleData.get ( locale ) ; java.lang.String pattern = ( ( localeData.getDateFormat ( dateStyle ) ) + " " ) + ( localeData.getTimeFormat ( timeStyle ) ) ; return new java.text.SimpleDateFormat ( pattern , locale ) ; }
Source:
public static com.android.incallui.incall.protocol.PrimaryCallState createEmptyPrimaryCallStateWithState ( int state , java.lang.String customLabel ) { return new com.android.incallui.incall.protocol.PrimaryCallState ( state , false , com.android.incallui.videotech.utils.SessionModificationState.NO_REQUEST , new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.UNKNOWN ) , null , null , null , null , null , false , false , false , false , false , false , false , 0 , false , false , false , true , com.android.incallui.incall.protocol.PrimaryCallState.ButtonState.NOT_SUPPORT , false , customLabel , null ) ; }

Target:
public abstract com.android.incallui.incall.protocol.PrimaryCallState.Builder setCustomLabel ( java.lang.String customLabel ) ;
Source:
public void reset ( boolean animate ) { if ( mTransformationAnimator.isRunning ( ) ) { mTransformationAnimator.cancel ( ) ; } mCurrentMagnificationSpec.clear ( ) ; if ( animate ) { animateMangificationSpec ( mSentMagnificationSpec , mCurrentMagnificationSpec ) ; } else { setMagnificationSpec ( mCurrentMagnificationSpec ) ; } android.graphics.Rect bounds = mTempRect ; bounds.setEmpty ( ) ; mAms.onMagnificationStateChanged ( ) ; }

Target:
public void cancelAnimation ( ) { if ( mTransformationAnimator.isRunning ( ) ) { mTransformationAnimator.cancel ( ) ; } }
Source:
public com.android.internal.telephony.uicc.IccFileHandler getIccFileHandler ( ) { synchronized ( mLock ) { if ( ( mUiccApplication ) != null ) { return mUiccApplication.getIccFileHandler ( ) ; } return null ; } }

Target:
private void setExternalStateOnReady ( ) { if ( areAllApplicationsReady ( ) ) { if ( ( areAllRecordsLoaded ( ) ) && ( areCarrierPriviligeRulesLoaded ( ) ) ) { setExternalState ( IccCardConstants.State.LOADED ) ; } else { setExternalState ( IccCardConstants.State.READY ) ; } } else { setExternalState ( IccCardConstants.State.NOT_READY ) ; } }
Source:
public java.lang.Object getTargetSdkVersion ( @ com.android.annotations.NonNull java.io.File manifestFile ) { try { return com.android.xml.AndroidManifest.getTargetSdkVersion ( new com.android.io.FileWrapper ( manifestFile ) ) ; } catch ( javax.xml.xpath.XPathExpressionException e ) { } catch ( com.android.io.StreamException e ) { throw new java.lang.RuntimeException ( e ) ; } return - 1 ; }

Target:
public java.lang.Object getTargetSdkVersion ( @ com.android.annotations.NonNull java.io.File manifestFile ) { if ( ( mTargetSdkVersion ) == null ) { try { mTargetSdkVersion = com.google.common.base.Optional.fromNullable ( com.android.xml.AndroidManifest.getTargetSdkVersion ( new com.android.io.FileWrapper ( manifestFile ) ) ) ; } catch ( javax.xml.xpath.XPathExpressionException e ) { return new java.lang.RuntimeException ( e ) ; } catch ( com.android.io.StreamException e ) { throw new java.lang.RuntimeException ( e ) ; } } return mTargetSdkVersion.or ( ( - 1 ) ) ; }
Source:
public boolean isPermissionsReviewRequired ( java.lang.String packageName , int userId ) { synchronized ( mPackages ) { if ( ! ( android.os.Build.PERMISSIONS_REVIEW_REQUIRED ) ) { return false ; } com.android.server.pm.PackageSetting packageSetting = mSettings.mPackages.get ( packageName ) ; if ( packageSetting == null ) { return false ; } if ( ( packageSetting.pkg.applicationInfo.targetSdkVersion ) >= ( Build.VERSION_CODES.M ) ) { return false ; } com.android.server.pm.PermissionsState permissionsState = packageSetting.getPermissionsState ( ) ; return permissionsState.isPermissionReviewRequired ( userId ) ; } }

Target:
public boolean isPermissionsReviewRequired ( java.lang.String packageName , int userId ) { synchronized ( mPackages ) { if ( ( ! ( mPermissionReviewRequired ) ) && ( ! ( android.os.Build.PERMISSIONS_REVIEW_REQUIRED ) ) ) { return false ; } com.android.server.pm.PackageSetting packageSetting = mSettings.mPackages.get ( packageName ) ; if ( packageSetting == null ) { return false ; } if ( ( packageSetting.pkg.applicationInfo.targetSdkVersion ) >= ( Build.VERSION_CODES.M ) ) { return false ; } com.android.server.pm.PermissionsState permissionsState = packageSetting.getPermissionsState ( ) ; return permissionsState.isPermissionReviewRequired ( userId ) ; } }
Source:
public void testLoadTzData_validTestData ( ) throws java.lang.Exception { byte [ ] data = new libcore.util.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) . build ( ) ; java.io.File testFile = libcore.util.ZoneInfoDBTest.makeTemporaryFile ( data ) ; try { assertNotNull ( ZoneInfoDB.TzData.loadTzData ( testFile.getPath ( ) ) ) ; } finally { testFile.delete ( ) ; } }

Target:
public void testLoadTzData_validTestData ( ) throws java.lang.Exception { byte [ ] data = new libcore.tzdata.testing.ZoneInfoTestHelper.TzDataBuilder ( ) . initializeToValid ( ) . build ( ) ; java.io.File testFile = libcore.util.ZoneInfoDBTest.makeTemporaryFile ( data ) ; try { assertNotNull ( ZoneInfoDB.TzData.loadTzData ( testFile.getPath ( ) ) ) ; } finally { testFile.delete ( ) ; } }
Source:
public void onClick ( android.view.View v ) { mDownloadingLabel.setVisibility ( View.VISIBLE ) ; mDownloadButton.setVisibility ( View.GONE ) ; android.content.Intent intent = new android.content.Intent ( mContext , com.android.mms.transaction.TransactionService.class ) ; intent.putExtra ( TransactionBundle.URI , mMessageItem.mMessageUri.toString ( ) ) ; intent.putExtra ( TransactionBundle.TRANSACTION_TYPE , Transaction.RETRIEVE_TRANSACTION ) ; mContext.startService ( intent ) ; }

Target:
public void onClick ( android.view.View v ) { mDownloadingLabel.setVisibility ( View.VISIBLE ) ; mDownloadButton.setVisibility ( View.GONE ) ; android.content.Intent intent = new android.content.Intent ( mContext , com.android.mms.transaction.TransactionService.class ) ; intent.putExtra ( TransactionBundle.URI , mMessageItem.mMessageUri.toString ( ) ) ; intent.putExtra ( TransactionBundle.TRANSACTION_TYPE , Transaction.RETRIEVE_TRANSACTION ) ; mContext.startService ( intent ) ; com.android.mms.util.DownloadManager.getInstance ( ) . markState ( mMessageItem.mMessageUri , DownloadManager.STATE_PRE_DOWNLOADING ) ; }
Source:
public static java.util.Map < java.lang.String , java.lang.Integer > retrieveFieldValueNames ( java.lang.String id , int field , 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.CalendarFieldValueNamesMapGetter.INSTANCE , locale , sun.util.locale.provider.CalendarDataUtility.normalizeCalendarType ( id ) , field , style , false ) ; }

Target:
public static java.lang.String retrieveJavaTimeFieldValueName ( java.lang.String id , int field , int value , int style , java.util.Locale locale ) { return null ; }
Source:
private void stubMissingDefaultMethods ( java.lang.String implemented ) { if ( bootclasspath.isKnown ( implemented ) ) { return ; } org.objectweb.asm.ClassReader bytecode = com.google.common.base.Preconditions.checkNotNull ( classpath.readIfKnown ( implemented ) , "Couldn't find interface %s implemented by %s" , implemented , internalName ) ; bytecode.accept ( new com.google.devtools.build.android.desugar.DefaultMethodClassFixer.DefaultMethodStubber ( ) , ( ( org.objectweb.asm.ClassReader.SKIP_CODE ) | ( org.objectweb.asm.ClassReader.SKIP_DEBUG ) ) ) ; }

Target:
private void stubMissingDefaultAndBridgeMethods ( java.lang.String implemented ) { if ( bootclasspath.isKnown ( implemented ) ) { return ; } org.objectweb.asm.ClassReader bytecode = com.google.common.base.Preconditions.checkNotNull ( classpath.readIfKnown ( implemented ) , "Couldn't find interface %s implemented by %s" , implemented , internalName ) ; bytecode.accept ( new com.google.devtools.build.android.desugar.DefaultMethodClassFixer.DefaultMethodStubber ( ) , ClassReader.SKIP_DEBUG ) ; }
Source:
public android.net.wifi.nan.ConfigRequest createFromParcel ( android.os.Parcel in ) { boolean support5gBand = ( in.readInt ( ) ) != 0 ; int masterPreference = in.readInt ( ) ; int clusterLow = in.readInt ( ) ; int clusterHigh = in.readInt ( ) ; return new android.net.wifi.nan.ConfigRequest ( support5gBand , masterPreference , clusterLow , clusterHigh ) ; }

Target:
public android.net.wifi.aware.ConfigRequest createFromParcel ( android.os.Parcel in ) { boolean support5gBand = ( in.readInt ( ) ) != 0 ; int masterPreference = in.readInt ( ) ; int clusterLow = in.readInt ( ) ; int clusterHigh = in.readInt ( ) ; return new android.net.wifi.aware.ConfigRequest ( support5gBand , masterPreference , clusterLow , clusterHigh ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { com.android.server.telecom.Log.startSession ( "TSStR.oR" ) ; try { synchronized ( mLock ) { int userHandleId = intent.getIntExtra ( Intent.EXTRA_USER_HANDLE , 0 ) ; android.os.UserHandle addingUserHandle = new android.os.UserHandle ( userHandleId ) ; mCallsManager.onUserStarting ( addingUserHandle ) ; } } finally { com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { android.telecom.Log.startSession ( "TSStR.oR" ) ; try { synchronized ( mLock ) { int userHandleId = intent.getIntExtra ( Intent.EXTRA_USER_HANDLE , 0 ) ; android.os.UserHandle addingUserHandle = new android.os.UserHandle ( userHandleId ) ; mCallsManager.onUserStarting ( addingUserHandle ) ; } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
private void readObject ( java.io.ObjectInputStream s ) throws java.io.IOException , java.lang.ClassNotFoundException { s.defaultReadObject ( ) ; resetLock ( ) ; int len = s.readInt ( ) ; java.lang.Object [ ] elements = new java.lang.Object [ len ] ; for ( int i = 0 ; i < len ; i ++ ) elements [ i ] = s.readObject ( ) ; setArray ( elements ) ; }

Target:
public E set ( int index , E object ) { synchronized ( this ) { slice.checkElementIndex ( index ) ; slice.checkConcurrentModification ( elements ) ; E result = this . set ( ( index + ( slice.from ) ) , object ) ; slice = new java.util.concurrent.CopyOnWriteArrayList.Slice ( elements , slice.from , slice.to ) ; return result ; } }
Source:
public void testSubList1_IndexOutOfBoundsException ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.subList ( ( - 1 ) , 100 ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testSubList1_IndexOutOfBoundsException ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.subList ( ( - 1 ) , list.size ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public void runWithAnimationVerifier ( android.uirendering.cts.bitmapverifiers.BitmapVerifier bitmapVerifier ) { }

Target:
public void runWithVerifier ( android.uirendering.cts.bitmapverifiers.BitmapVerifier bitmapVerifier ) { if ( ( mTestCases.size ( ) ) == 0 ) { throw new java.lang.IllegalStateException ( "Need at least one test to run" ) ; } for ( android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCase testCase : mTestCases ) { android.graphics.Bitmap testCaseBitmap = captureRenderSpec ( testCase ) ; mBitmapAsserter.assertBitmapIsVerified ( testCaseBitmap , bitmapVerifier , getName ( ) , testCase.getDebugString ( ) ) ; } getActivity ( ) . reset ( ) ; }
Source:
public void testGetCollationElementIteratorString ( ) throws java.lang.Exception { assertGetCollationElementIteratorString ( new java.util.Locale ( "es" , "" , "TRADITIONAL" ) , "cha" , 0 , 2 , 3 ) ; assertGetCollationElementIteratorString ( new java.util.Locale ( "es" , "" , "" ) , "cha" , 0 , 1 , 2 , 3 ) ; assertGetCollationElementIteratorString ( new java.util.Locale ( "de" , "DE" , "" ) , "æb" , 0 , 1 , 1 , 1 , 1 , 2 ) ; }

Target:
public void testGetCollationElementIteratorString_es ( ) throws java.lang.Exception { assertGetCollationElementIteratorString ( new java.util.Locale ( "es" , "" , "" ) , "cha" , 0 , 1 , 2 , 3 ) ; }
Source:
public int signum ( ) { for ( int a = - 20 ; ; a *= 2 ) { com.hp.creals.CR.check_prec ( a ) ; int result = signum ( a ) ; if ( 0 != result ) return result ; } }

Target:
public int signum ( ) { for ( int a = - 20 ; ; a *= 2 ) { com.hp.creals.CR.check_prec ( a ) ; int result = signum ( a ) ; if ( 0 != result ) return result ; if ( ( java.lang.Thread.interrupted ( ) ) || ( com.hp.creals.CR.please_stop ) ) { throw new com.hp.creals.CR.AbortedException ( ) ; } } }
Source:
private java.util.Properties getJdkSettingsProperties ( boolean mustExist ) throws java.io.IOException { java.io.File settings = getSettingsFile ( ) ; if ( ! ( settings.exists ( ) ) ) { if ( mustExist ) { reportError ( null , settings , "Settings file does not exist" ) ; } return null ; } return com.android.tools.gradle.eclipse.GradleImport.getProperties ( settings ) ; }

Target:
private java.util.Properties getJdtSettingsProperties ( boolean mustExist ) throws java.io.IOException { java.io.File settings = getJdtSettingsFile ( ) ; if ( ! ( settings.exists ( ) ) ) { if ( mustExist ) { reportError ( null , settings , "Settings file does not exist" ) ; } return null ; } return com.android.tools.gradle.eclipse.GradleImport.getProperties ( settings ) ; }
Source:
private void transformAnnotationDirectories ( com.android.dx.io.DexBuffer in , com.android.dx.merge.IndexMap indexMap ) { com.android.dx.dex.TableOfContents.Section section = in.getTableOfContents ( ) . annotationsDirectories ; if ( section.exists ( ) ) { com.android.dx.io.DexBuffer.Section directoryIn = in.open ( section.off ) ; for ( int i = 0 ; i < ( section.size ) ; i ++ ) { transformAnnotationDirectory ( in , directoryIn , indexMap ) ; } } }

Target:
private void transformAnnotationSetRefLists ( com.android.dx.io.DexBuffer in , com.android.dx.merge.IndexMap indexMap ) { com.android.dx.dex.TableOfContents.Section section = in.getTableOfContents ( ) . annotationSetRefLists ; if ( section.exists ( ) ) { com.android.dx.io.DexBuffer.Section setIn = in.open ( section.off ) ; for ( int i = 0 ; i < ( section.size ) ; i ++ ) { transformAnnotationSetRefList ( indexMap , setIn ) ; } } }
Source:
private com.android.jack.ir.ast.JDefinedClass getSwitchMapClass ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedEnum enumType , boolean createIfNotExist ) { for ( com.android.jack.ir.ast.JField field : enclosingClass.getFields ( ) ) { if ( ( supportUtil.isSyntheticSwitchMapField ( field ) ) && ( field.getName ( ) . equals ( com.android.jack.transformations.enums.OptimizationUtil.getSyntheticSwitchMapFieldName ( enumType ) ) ) ) { return enclosingClass ; } } return manager.getOrCreateSyntheticClass ( enumType , createIfNotExist ) ; }

Target:
private com.android.jack.ir.ast.JDefinedClass getSwitchMapClass ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedEnum enumType , boolean createIfNotExist ) { java.lang.String syntheticFieldName = com.android.jack.transformations.enums.opt.OptimizationUtil.getSyntheticSwitchMapFieldName ( enumType ) ; for ( com.android.jack.ir.ast.JField field : enclosingClass.getFields ( ) ) { if ( ( supportUtil.isSyntheticSwitchMapField ( field ) ) && ( syntheticFieldName.equals ( field.getName ( ) ) ) ) { return enclosingClass ; } } return manager.getOrCreateSyntheticClass ( enumType , createIfNotExist ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ( obj instanceof com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) && ( super . equals ( obj ) ) ) { com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action rhs = ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) ( obj ) ) ; return ( ( mGroupId ) == ( rhs.mGroupId ) ) || ( ( ( mGroupId ) != null ) && ( mGroupId.equals ( rhs.mGroupId ) ) ) ; } return false ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( obj instanceof com.android.ide.common.api.MenuAction.Action ) && ( super . equals ( obj ) ) ) { com.android.ide.common.api.MenuAction.Action rhs = ( ( com.android.ide.common.api.MenuAction.Action ) ( obj ) ) ; return ( ( mGroupId ) == ( rhs.mGroupId ) ) || ( ( ( mGroupId ) != null ) && ( mGroupId.equals ( rhs.mGroupId ) ) ) ; } return false ; }
Source:
public void loadPixelPerfectData ( final com.android.ddmlib.IDevice device ) { executeInBackground ( new java.lang.Runnable ( ) { public void run ( ) { org.eclipse.swt.graphics.Image screenshotImage = getScreenshotImage ( device ) ; if ( screenshotImage != null ) { com.android.hierarchyviewerlib.device.ViewNode viewNode = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindowData ( com.android.hierarchyviewerlib.device.Window.getFocusedWindow ( device ) ) ; com.android.hierarchyviewerlib.ComponentRegistry.getPixelPerfectModel ( ) . setData ( device , screenshotImage , viewNode ) ; } } } ) ; }

Target:
public void refreshPixelPerfectTree ( ) { final com.android.ddmlib.IDevice device = com.android.hierarchyviewerlib.models.PixelPerfectModel.getModel ( ) . getDevice ( ) ; if ( device != null ) { executeInBackground ( "Refreshing pixel perfect tree" , new java.lang.Runnable ( ) { public void run ( ) { com.android.hierarchyviewerlib.device.ViewNode viewNode = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindowData ( com.android.hierarchyviewerlib.device.Window.getFocusedWindow ( device ) ) ; if ( viewNode != null ) { com.android.hierarchyviewerlib.models.PixelPerfectModel.getModel ( ) . setTree ( viewNode ) ; } } } ) ; } }