auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private synchronized void addMediaPlayerController ( com.android.bluetooth.avrcp.MediaController controller ) { java.lang.String packageName = controller.getPackageName ( ) ; removeMediaPlayerInfo ( packageName ) ; com.android.bluetooth.avrcp.MediaPlayerInfo info = new com.android.bluetooth.avrcp.MediaPlayerInfo ( com.android.bluetooth.avrcp.MediaController.wrap ( controller ) , AvrcpConstants.PLAYER_TYPE_AUDIO , AvrcpConstants.PLAYER_SUBTYPE_NONE , getPlayStateBytes ( controller.getPlaybackState ( ) ) , getFeatureBitMask ( packageName ) , getAppLabel ( packageName ) ) ; addMediaPlayerInfo ( info ) ; }

Target:
private synchronized void addMediaPlayerController ( com.android.bluetooth.avrcp.MediaController controller ) { java.lang.String packageName = controller.getPackageName ( ) ; com.android.bluetooth.avrcp.MediaPlayerInfo info = new com.android.bluetooth.avrcp.MediaPlayerInfo ( com.android.bluetooth.avrcp.MediaController.wrap ( controller ) , AvrcpConstants.PLAYER_TYPE_AUDIO , AvrcpConstants.PLAYER_SUBTYPE_NONE , getPlayStateBytes ( controller.getPlaybackState ( ) ) , getFeatureBitMask ( packageName ) , controller.getPackageName ( ) , getAppLabel ( packageName ) ) ; addMediaPlayerInfo ( info ) ; }
Source:
public boolean installPacketFilter ( byte [ ] filter ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.installPacketFilter ( filter ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.installPacketFilterNative ( com.android.server.wifi.WifiNative.sWlan0Index , filter ) ; } else { return false ; } } } }

Target:
public boolean installPacketFilter ( byte [ ] filter ) { return mWifiVendorHal.installPacketFilter ( filter ) ; }
Source:
private com.android.timezone.distro.DistroVersion readDistroVersion ( java.io.File distroDir ) throws com.android.timezone.distro.DistroException , java.io.IOException { android.util.Slog.i ( logTag , ( "Reading distro format version: " + distroDir ) ) ; java.io.File distroVersionFile = new java.io.File ( distroDir , com.android.timezone.distro.TimeZoneDistro.DISTRO_VERSION_FILE_NAME ) ; if ( ! ( distroVersionFile.exists ( ) ) ) { throw new com.android.timezone.distro.DistroException ( ( "No distro version file found: " + distroVersionFile ) ) ; } byte [ ] versionBytes = com.android.timezone.distro.FileUtils.readBytes ( distroVersionFile , DistroVersion.DISTRO_VERSION_FILE_LENGTH ) ; return com.android.timezone.distro.DistroVersion.fromBytes ( versionBytes ) ; }

Target:
private com.android.timezone.distro.DistroVersion readDistroVersion ( java.io.File distroDir ) throws com.android.timezone.distro.DistroException , java.io.IOException { android.util.Slog.d ( logTag , ( "Reading distro format version: " + distroDir ) ) ; java.io.File distroVersionFile = new java.io.File ( distroDir , com.android.timezone.distro.TimeZoneDistro.DISTRO_VERSION_FILE_NAME ) ; if ( ! ( distroVersionFile.exists ( ) ) ) { throw new com.android.timezone.distro.DistroException ( ( "No distro version file found: " + distroVersionFile ) ) ; } byte [ ] versionBytes = com.android.timezone.distro.FileUtils.readBytes ( distroVersionFile , DistroVersion.DISTRO_VERSION_FILE_LENGTH ) ; return com.android.timezone.distro.DistroVersion.fromBytes ( versionBytes ) ; }
Source:
private void handleSupplicantConnectionLoss ( boolean killSupplicant ) { if ( killSupplicant ) { mWifiMonitor.stopAllMonitoring ( ) ; try { if ( ! ( mClientInterface.disableSupplicant ( ) ) ) { loge ( "Failed to disable supplicant after connection loss" ) ; } } catch ( android.os.RemoteException e ) { } } mWifiNative.closeSupplicantConnection ( ) ; sendSupplicantConnectionChangedBroadcast ( false ) ; setWifiState ( android.net.wifi.WifiManager.WIFI_STATE_DISABLED ) ; }

Target:
private void handleSupplicantConnectionLoss ( boolean killSupplicant ) { if ( killSupplicant ) { mWifiMonitor.stopAllMonitoring ( ) ; if ( ! ( mWifiNative.disableSupplicant ( ) ) ) { loge ( "Failed to disable supplicant after connection loss" ) ; } } mWifiNative.closeSupplicantConnection ( ) ; sendSupplicantConnectionChangedBroadcast ( false ) ; setWifiState ( android.net.wifi.WifiManager.WIFI_STATE_DISABLED ) ; }
Source:
public void enter ( ) { android.util.Log.i ( com.android.bluetooth.hearingaid.HearingAidStateMachine.TAG , ( ( ( "Enter Connected(" + ( mDevice ) ) + "): " ) + ( com.android.bluetooth.hearingaid.HearingAidStateMachine.messageWhatToString ( getCurrentMessage ( ) . what ) ) ) ) ; mConnectionState = android.bluetooth.BluetoothProfile.STATE_CONNECTED ; removeDeferredMessages ( com.android.bluetooth.hearingaid.HearingAidStateMachine.CONNECT ) ; broadcastConnectionState ( mConnectionState , mLastConnectionState ) ; broadcastAudioState ( BluetoothHearingAid.STATE_NOT_PLAYING , BluetoothHearingAid.STATE_PLAYING ) ; }

Target:
public void enter ( ) { android.util.Log.i ( com.android.bluetooth.hearingaid.HearingAidStateMachine.TAG , ( ( ( "Enter Connected(" + ( mDevice ) ) + "): " ) + ( com.android.bluetooth.hearingaid.HearingAidStateMachine.messageWhatToString ( getCurrentMessage ( ) . what ) ) ) ) ; mConnectionState = android.bluetooth.BluetoothProfile.STATE_CONNECTED ; removeDeferredMessages ( com.android.bluetooth.hearingaid.HearingAidStateMachine.CONNECT ) ; broadcastConnectionState ( mConnectionState , mLastConnectionState ) ; }
Source:
boolean setBounds ( android.graphics.Rect bounds ) { boolean oldFullscreen = mFullscreen ; if ( ( mDisplayContent ) != null ) { mDisplayContent.getLogicalDisplayRect ( mTmpRect ) ; mFullscreen = mTmpRect.equals ( bounds ) ; } if ( ( mBounds.equals ( bounds ) ) && ( oldFullscreen == ( mFullscreen ) ) ) { return false ; } mDimLayer.setBounds ( bounds ) ; mAnimationBackgroundSurface.setBounds ( bounds ) ; mBounds.set ( bounds ) ; return true ; }

Target:
boolean setBounds ( android.graphics.Rect bounds ) { boolean oldFullscreen = mFullscreen ; if ( ( mDisplayContent ) != null ) { mDisplayContent.getLogicalDisplayRect ( mTmpRect ) ; mFullscreen = mTmpRect.equals ( bounds ) ; } if ( ( mBounds.equals ( bounds ) ) && ( oldFullscreen == ( mFullscreen ) ) ) { return false ; } mDimLayer.setBounds ( bounds , false ) ; mAnimationBackgroundSurface.setBounds ( bounds , false ) ; mBounds.set ( bounds ) ; return true ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , float [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , int [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }
Source:
public boolean onKeyDown ( int keyCode , android.view.KeyEvent event ) { if ( keyCode == ( android.view.KeyEvent.KEYCODE_BACK ) ) { if ( com.android.bluetooth.opp.BluetoothOppIncomingFileConfirmActivity.D ) { android.util.Log.d ( com.android.bluetooth.opp.BluetoothOppIncomingFileConfirmActivity.TAG , "onKeyDown() called; Key: back key" ) ; } mUpdateValues = new android.content.ContentValues ( ) ; mUpdateValues.put ( BluetoothShare.VISIBILITY , BluetoothShare.VISIBILITY_HIDDEN ) ; this . getContentResolver ( ) . update ( mUri , mUpdateValues , null , null ) ; android.widget.Toast.makeText ( this , getString ( R.string.bt_toast_2 ) , Toast.LENGTH_SHORT ) . show ( ) ; finish ( ) ; return true ; } return false ; }

Target:
public boolean onKeyDown ( int keyCode , android.view.KeyEvent event ) { if ( keyCode == ( android.view.KeyEvent.KEYCODE_BACK ) ) { if ( com.android.bluetooth.opp.BluetoothOppIncomingFileConfirmActivity.D ) { android.util.Log.d ( com.android.bluetooth.opp.BluetoothOppIncomingFileConfirmActivity.TAG , "onKeyDown() called; Key: back key" ) ; } finish ( ) ; return true ; } return false ; }
Source:
public java.lang.String toString ( ) { java.lang.String spec = specTitle ; java.lang.String ver = specVersion ; if ( ( spec != null ) && ( ( spec.length ( ) ) > 0 ) ) spec = ", " + spec ; else spec = "" ; if ( ( ver != null ) && ( ( ver.length ( ) ) > 0 ) ) ver = ", version " + ver ; else ver = "" ; return ( ( "package " + ( pkgName ) ) + spec ) + ver ; }

Target:
public java.lang.String toString ( ) { return "package " + ( pkgName ) ; }
Source:
public void setSettingsPage ( com.android.sdkuilib.internal.repository.ISettingsPage settingsPage ) { mSettingsPage = settingsPage ; mSettingsPage.loadSettings ( mProperties ) ; settingsPage.setOnSettingsChanged ( new com.android.sdkuilib.internal.repository.ISettingsPage.SettingsChangedCallback ( ) { public void onSettingsChanged ( com.android.sdkuilib.internal.repository.ISettingsPage page ) { com.android.sdkuilib.internal.repository.SettingsController.this . onSettingsChanged ( ) ; } } ) ; }

Target:
public void setSettingsPage ( com.android.sdkuilib.internal.repository.ISettingsPage settingsPage ) { mSettingsPage = settingsPage ; if ( settingsPage != null ) { settingsPage.loadSettings ( mProperties ) ; settingsPage.setOnSettingsChanged ( new com.android.sdkuilib.internal.repository.ISettingsPage.SettingsChangedCallback ( ) { public void onSettingsChanged ( com.android.sdkuilib.internal.repository.ISettingsPage page ) { com.android.sdkuilib.internal.repository.SettingsController.this . onSettingsChanged ( ) ; } } ) ; } }
Source:
public void stopScan ( ) { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "Failed to get the ITelephony instance." ) ; throw new java.lang.RuntimeException ( "Failed to get the ITelephony instance." ) ; } try { telephony.stopNetworkScan ( mSubId , mScanId ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "stopNetworkScan RemoteException" , ex ) ; ex.rethrowAsRuntimeException ( ) ; } }

Target:
public void stopScan ( ) { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "Failed to get the ITelephony instance." ) ; } try { telephony.stopNetworkScan ( mSubId , mScanId ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "stopNetworkScan RemoteException" , ex ) ; } }
Source:
public void testKernelBasicTests ( ) { if ( ! ( android.os.cts.OSFeatures.needsSeccompSupport ( ) ) ) return ; if ( isRunningUnderEmulatedAbi ( ) ) { android.util.Log.d ( android.os.cts.SeccompTest.TAG , "Skipping test running under an emulated ABI" ) ; return ; } final java.lang.String [ ] tests = new java.lang.String [ ] { "global.mode_strict_support" , "global.mode_strict_cannot_call_prctl" , "global.no_new_privs_support" , "global.mode_filter_support" , "global.filter_size_limits" , "global.filter_chain_limits" , "global.mode_filter_cannot_move_to_strict" , "global.mode_filter_get_seccomp" , "global.ALLOW_all" , "global.empty_prog" , "global.unknown_ret_is_kill_inside" , "global.unknown_ret_is_kill_above_allow" , "global.KILL_all" , "global.KILL_one" , "global.KILL_one_arg_one" , "global.KILL_one_arg_six" , "global.arg_out_of_range" , "global.ERRNO_valid" , "global.ERRNO_zero" } ; runKernelUnitTestSuite ( tests ) ; }

Target:
public void testKernelBasicTests ( ) { if ( ! ( android.os.cts.OSFeatures.needsSeccompSupport ( ) ) ) return ; if ( isRunningUnderEmulatedAbi ( ) ) { android.util.Log.d ( android.os.cts.SeccompTest.TAG , "Skipping test running under an emulated ABI" ) ; return ; } final java.lang.String [ ] tests = new java.lang.String [ ] { "global.no_new_privs_support" , "global.mode_filter_support" , "global.filter_size_limits" , "global.filter_chain_limits" , "global.mode_filter_cannot_move_to_strict" , "global.ALLOW_all" , "global.empty_prog" , "global.unknown_ret_is_kill_inside" , "global.unknown_ret_is_kill_above_allow" , "global.KILL_all" , "global.KILL_one" , "global.KILL_one_arg_one" , "global.KILL_one_arg_six" , "global.arg_out_of_range" , "global.ERRNO_valid" , "global.ERRNO_zero" } ; runKernelUnitTestSuite ( tests ) ; }
Source:
public android.content.ContentValues getConstraints ( java.lang.String path , int action ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) || ( ! ( DrmStore.Action.isValid ( action ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Given usage or path is invalid/null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getConstraints ( mUniqueId , path , action ) ; }

Target:
public android.content.ContentValues getConstraints ( java.lang.String path , int action ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) || ( ! ( DrmStore.Action.isValid ( action ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Given usage or path is invalid/null" ) ; } return _getConstraints ( mUniqueId , path , action ) ; }
Source:
public void seek ( long offset ) throws java.io.IOException { if ( offset < 0 ) { throw new java.io.IOException ( ( "offset < 0: " + offset ) ) ; } try { Libcore.os.lseek ( fd , offset , java.io.SEEK_SET ) ; ioTracker.reset ( ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }

Target:
public void seek ( long pos ) throws java.io.IOException { if ( pos < 0 ) { throw new java.io.IOException ( ( "offset < 0: " + pos ) ) ; } else { try { Libcore.os.lseek ( fd , pos , java.io.SEEK_SET ) ; ioTracker.reset ( ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } } }
Source:
public void testsetNameFilter ( ) { android.bluetooth.le.ScanFilter filter = mFilterBuilder.setDeviceName ( android.bluetooth.cts.ScanFilterTest.LOCAL_NAME ) . build ( ) ; assertEquals ( android.bluetooth.cts.ScanFilterTest.LOCAL_NAME , filter.getDeviceName ( ) ) ; assertTrue ( "setName filter fails" , filter.matches ( mScanResult ) ) ; filter = mFilterBuilder.setDeviceName ( "Pem" ) . build ( ) ; assertFalse ( "setName filter fails" , filter.matches ( mScanResult ) ) ; }

Target:
public void testsetNameFilter ( ) { if ( ( mFilterBuilder ) == null ) return ; android.bluetooth.le.ScanFilter filter = mFilterBuilder.setDeviceName ( android.bluetooth.cts.ScanFilterTest.LOCAL_NAME ) . build ( ) ; assertEquals ( android.bluetooth.cts.ScanFilterTest.LOCAL_NAME , filter.getDeviceName ( ) ) ; assertTrue ( "setName filter fails" , filter.matches ( mScanResult ) ) ; filter = mFilterBuilder.setDeviceName ( "Pem" ) . build ( ) ; assertFalse ( "setName filter fails" , filter.matches ( mScanResult ) ) ; }
Source:
private java.lang.String regionDisplayName ( java.lang.String region , boolean skipAdjust ) { if ( ( nameLength ) == ( com.ibm.icu.text.DisplayContext.LENGTH_SHORT ) ) { java.lang.String regionName = regionData.get ( "Countries%short" , region ) ; if ( ! ( regionName.equals ( region ) ) ) { return skipAdjust ? regionName : adjustForUsageAndContext ( com.ibm.icu.impl.LocaleDisplayNamesImpl.CapitalizationContextUsage.TERRITORY , regionName ) ; } } java.lang.String regionName = regionData.get ( "Countries" , region ) ; return skipAdjust ? regionName : adjustForUsageAndContext ( com.ibm.icu.impl.LocaleDisplayNamesImpl.CapitalizationContextUsage.TERRITORY , regionName ) ; }

Target:
private java.lang.String regionDisplayName ( java.lang.String region , boolean skipAdjust ) { if ( ( nameLength ) == ( com.ibm.icu.text.DisplayContext.LENGTH_SHORT ) ) { java.lang.String regionName = regionData.get ( "Countries%short" , region ) ; if ( ( regionName != null ) && ( ! ( regionName.equals ( region ) ) ) ) { return skipAdjust ? regionName : adjustForUsageAndContext ( com.ibm.icu.impl.LocaleDisplayNamesImpl.CapitalizationContextUsage.TERRITORY , regionName ) ; } } java.lang.String regionName = regionData.get ( "Countries" , region ) ; return skipAdjust ? regionName : adjustForUsageAndContext ( com.ibm.icu.impl.LocaleDisplayNamesImpl.CapitalizationContextUsage.TERRITORY , regionName ) ; }
Source:
public void computeUsages ( final java.util.List < com.intellij.psi.PsiElement > targets ) { com.intellij.featureStatistics.FeatureUsageTracker.getInstance ( ) . triggerFeatureUsed ( ProductivityFeatureNames.CODEASSISTS_HIGHLIGHT_RETURN ) ; final com.intellij.psi.PsiElement parent = myTarget.getParent ( ) ; if ( ! ( parent instanceof com.jetbrains.python.codeInsight.highlighting.PyReturnStatement ) ) { return ; } final com.jetbrains.python.codeInsight.highlighting.PyFunction function = com.intellij.psi.util.PsiTreeUtil.getParentOfType ( myTarget , com.jetbrains.python.codeInsight.highlighting.PyFunction.class ) ; if ( function == null ) { return ; } highlightExitPoints ( ( ( com.jetbrains.python.codeInsight.highlighting.PyReturnStatement ) ( parent ) ) , function ) ; }

Target:
public void computeUsages ( final java.util.List < com.intellij.psi.PsiElement > targets ) { final com.intellij.psi.PsiElement parent = myTarget.getParent ( ) ; if ( ! ( parent instanceof com.jetbrains.python.codeInsight.highlighting.PyReturnStatement ) ) { return ; } final com.jetbrains.python.codeInsight.highlighting.PyFunction function = com.intellij.psi.util.PsiTreeUtil.getParentOfType ( myTarget , com.jetbrains.python.codeInsight.highlighting.PyFunction.class ) ; if ( function == null ) { return ; } highlightExitPoints ( ( ( com.jetbrains.python.codeInsight.highlighting.PyReturnStatement ) ( parent ) ) , function ) ; }
Source:
protected org.jetbrains.plugins.javaFX.fxml.refs.PsiReference [ ] getReferencesByElement ( @ org.jetbrains.annotations.NotNull final org.jetbrains.plugins.javaFX.fxml.refs.PsiClass aClass , final com.intellij.psi.xml.XmlAttributeValue xmlAttributeValue , com.intellij.util.ProcessingContext context ) { final org.jetbrains.plugins.javaFX.fxml.refs.PsiField field = aClass.findFieldByName ( xmlAttributeValue.getValue ( ) , false ) ; return new org.jetbrains.plugins.javaFX.fxml.refs.PsiReference [ ] { new org.jetbrains.plugins.javaFX.fxml.refs.JavaFxFieldIdReferenceProvider.JavaFxControllerFieldRef ( xmlAttributeValue , field , aClass ) } ; }

Target:
protected org.jetbrains.plugins.javaFX.fxml.refs.PsiReference [ ] getReferencesByElement ( @ org.jetbrains.annotations.NotNull final org.jetbrains.plugins.javaFX.fxml.refs.PsiClass aClass , final com.intellij.psi.xml.XmlAttributeValue xmlAttributeValue , com.intellij.util.ProcessingContext context ) { final org.jetbrains.plugins.javaFX.fxml.refs.PsiField field = aClass.findFieldByName ( xmlAttributeValue.getValue ( ) , true ) ; return new org.jetbrains.plugins.javaFX.fxml.refs.PsiReference [ ] { new org.jetbrains.plugins.javaFX.fxml.refs.JavaFxFieldIdReferenceProvider.JavaFxControllerFieldRef ( xmlAttributeValue , field , aClass ) } ; }
Source:
public void onDestroy ( ) { synchronized ( mServiceMap ) { for ( int i = 0 ; i < ( mServiceMap.size ( ) ) ; i ++ ) { android.telephony.data.DataService.DataServiceProvider serviceImpl = mServiceMap.get ( i ) ; if ( serviceImpl != null ) { serviceImpl.onDestroy ( ) ; } } mServiceMap.clear ( ) ; } mHandlerThread.quit ( ) ; }

Target:
public void onDestroy ( ) { mHandlerThread.quit ( ) ; }
Source:
private void read ( char expected ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { int c = peekCharacter ( ) ; if ( c != expected ) { checkRelaxed ( ( ( ( ( "expected: '" + expected ) + "' actual: '" ) + ( ( char ) ( c ) ) ) + "'" ) ) ; } ( position ) ++ ; }

Target:
private void read ( char expected ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { int c = peekCharacter ( ) ; if ( c != expected ) { checkRelaxed ( ( ( ( ( "expected: '" + expected ) + "' actual: '" ) + ( ( char ) ( c ) ) ) + "'" ) ) ; if ( c == ( - 1 ) ) { return ; } } ( position ) ++ ; }
Source:
private static boolean rangeIsValid ( com.android.jack.dx.rop.code.BasicBlock start , com.android.jack.dx.rop.code.BasicBlock end , com.android.jack.dx.dex.code.BlockAddresses addresses ) { if ( start == null ) { throw new java.lang.NullPointerException ( "start == null" ) ; } if ( end == null ) { throw new java.lang.NullPointerException ( "end == null" ) ; } int startAddress = addresses.getLast ( start ) . getAddress ( ) ; int endAddress = addresses.getEnd ( end ) . getAddress ( ) ; return ( endAddress - startAddress ) <= ( com.android.jack.dx.dex.code.StdCatchBuilder.MAX_CATCH_RANGE ) ; }

Target:
private static boolean rangeIsValid ( com.android.jack.dx.rop.code.BasicBlock start , com.android.jack.dx.rop.code.BasicBlock end , com.android.jack.dx.dex.code.BlockAddresses addresses ) { assert start != null ; assert end != null ; int startAddress = addresses.getLast ( start ) . getAddress ( ) ; int endAddress = addresses.getEnd ( end ) . getAddress ( ) ; return ( endAddress - startAddress ) <= ( com.android.jack.dx.dex.code.StdCatchBuilder.MAX_CATCH_RANGE ) ; }
Source:
private static void stressTest ( java.lang.reflect.Constructor constructor ) throws java.lang.Exception { for ( int i = 0 ; i <= 100 ; ++ i ) { Main.setUpUnloadLoader ( constructor ) ; if ( ( i % 10 ) == 0 ) { java.lang.Runtime.getRuntime ( ) . gc ( ) ; } } }

Target:
private static void stressTest ( java.lang.reflect.Constructor constructor ) throws java.lang.Exception { for ( int i = 0 ; i <= 100 ; ++ i ) { Main.setUpUnloadLoader ( constructor , false ) ; if ( ( i % 10 ) == 0 ) { java.lang.Runtime.getRuntime ( ) . gc ( ) ; } } }
Source:
public void testOfferNonComparable ( ) { try { java.util.concurrent.PriorityBlockingQueue q = new java.util.concurrent.PriorityBlockingQueue ( 1 ) ; q.offer ( new java.lang.Object ( ) ) ; q.offer ( new java.lang.Object ( ) ) ; q.offer ( new java.lang.Object ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.ClassCastException success ) { } }

Target:
public void testOfferNonComparable ( ) { java.util.concurrent.PriorityBlockingQueue q = new java.util.concurrent.PriorityBlockingQueue ( 1 ) ; try { q.offer ( new java.lang.Object ( ) ) ; q.offer ( new java.lang.Object ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.ClassCastException success ) { } }
Source:
private int getParameterWordCount ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { int wordCount = ( method.isStatic ( ) ) ? 0 : Type.OBJECT.getWordCount ( ) ; for ( com.android.jack.ir.ast.JParameter param : method.getParams ( ) ) { if ( ( param.getMarker ( com.android.jack.transformations.lambda.CapturedVariable.class ) ) != null ) { continue ; } wordCount += com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( param.getType ( ) , ( ( param.getMarker ( com.android.jack.transformations.lambda.ForceClosureMarker.class ) ) != null ) ) . getWordCount ( ) ; } return wordCount ; }

Target:
private int getParameterWordCount ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { int wordCount = ( method.isStatic ( ) ) ? 0 : Type.OBJECT.getWordCount ( ) ; for ( com.android.jack.ir.ast.JParameter param : method.getParams ( ) ) { wordCount += com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( param.getType ( ) ) . getWordCount ( ) ; } return wordCount ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { if ( ( sockets ) != null ) { sockets [ 0 ] . close ( ) ; sockets [ 1 ] . close ( ) ; } java.lang.Thread.interrupted ( ) ; super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { if ( ( sockets ) != null ) { sockets [ 0 ] . close ( ) ; sockets [ 1 ] . close ( ) ; sockets = null ; } java.lang.Thread.interrupted ( ) ; super . tearDown ( ) ; }
Source:
public void testAnonymousClassModifiers ( ) { int modifiers = libcore.java.lang.reflect.ReflectionTest.staticAnonymous.getClass ( ) . getModifiers ( ) ; assertFalse ( java.lang.reflect.Modifier.isPublic ( modifiers ) ) ; assertFalse ( java.lang.reflect.Modifier.isProtected ( modifiers ) ) ; assertFalse ( java.lang.reflect.Modifier.isPrivate ( modifiers ) ) ; assertFalse ( java.lang.reflect.Modifier.isAbstract ( modifiers ) ) ; assertTrue ( java.lang.reflect.Modifier.isStatic ( modifiers ) ) ; assertFalse ( java.lang.reflect.Modifier.isFinal ( modifiers ) ) ; assertFalse ( java.lang.reflect.Modifier.isStrict ( modifiers ) ) ; }

Target:
public void testAnonymousClassModifiers ( ) { int modifiers = libcore.java.lang.reflect.ReflectionTest.staticAnonymous.getClass ( ) . getModifiers ( ) ; assertFalse ( java.lang.reflect.Modifier.isPublic ( modifiers ) ) ; assertFalse ( java.lang.reflect.Modifier.isProtected ( modifiers ) ) ; assertFalse ( java.lang.reflect.Modifier.isPrivate ( modifiers ) ) ; assertFalse ( java.lang.reflect.Modifier.isAbstract ( modifiers ) ) ; java.lang.reflect.Modifier.isStatic ( modifiers ) ; assertFalse ( java.lang.reflect.Modifier.isFinal ( modifiers ) ) ; assertFalse ( java.lang.reflect.Modifier.isStrict ( modifiers ) ) ; }
Source:
public static < T extends java.lang.Enum < T > > com.android.sched.util.config.id.EnumPropertyId < T > create ( @ javax.annotation.Nonnull java.lang.String name , @ javax.annotation.Nonnull java.lang.String description , @ javax.annotation.Nonnull java.lang.Class < T > type , @ javax.annotation.Nonnull T [ ] values ) { return new com.android.sched.util.config.id.EnumPropertyId < T > ( name , description , new com.android.sched.util.codec.EnumCodec < T > ( type , values ) ) ; }

Target:
public static < T extends java.lang.Enum < T > > com.android.sched.util.config.id.EnumPropertyId < T > create ( @ javax.annotation.Nonnull java.lang.String name , @ javax.annotation.Nonnull java.lang.String description , @ javax.annotation.Nonnull java.lang.Class < T > type ) { return new com.android.sched.util.config.id.EnumPropertyId < T > ( name , description , new com.android.sched.util.codec.EnumCodec < T > ( type ) ) ; }
Source:
public void testAttachLayoutAnimationParameters ( ) { android.widget.cts.GridViewTest.MockGridView mockGridView = new android.widget.cts.GridViewTest.MockGridView ( mActivity ) ; android.view.ViewGroup.LayoutParams p = new android.view.ViewGroup.LayoutParams ( 320 , 480 ) ; mockGridView.attachLayoutAnimationParameters ( null , p , 1 , 2 ) ; android.view.animation.GridLayoutAnimationController.AnimationParameters animationParams = ( ( android.view.animation.GridLayoutAnimationController.AnimationParameters ) ( p.layoutAnimationParameters ) ) ; assertEquals ( 1 , animationParams.index ) ; assertEquals ( 2 , animationParams.count ) ; }

Target:
public void testAttachLayoutAnimationParameters ( ) { android.widget.cts.GridViewTest.MockGridView mockGridView = new android.widget.cts.GridViewTest.MockGridView ( mActivity ) ; android.view.ViewGroup.LayoutParams p = new android.view.ViewGroup.LayoutParams ( 320 , 480 ) ; mockGridView.attachLayoutAnimationParameters ( null , p , 1 , 2 ) ; android.view.animation.GridLayoutAnimationController.AnimationParameters animationParams = ( ( android.view.animation.GridLayoutAnimationController.AnimationParameters ) ( p.layoutAnimationParameters ) ) ; org.junit.Assert.assertEquals ( 1 , animationParams.index ) ; org.junit.Assert.assertEquals ( 2 , animationParams.count ) ; }
Source:
private void updateLteEarfcnLists ( ) { android.telephony.CarrierConfigManager configManager = ( ( android.telephony.CarrierConfigManager ) ( mPhone.getContext ( ) . getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; android.os.PersistableBundle b = configManager.getConfigForSubId ( mPhone.getSubId ( ) ) ; synchronized ( mLteRsrpBoostLock ) { mLteRsrpBoost = b.getInt ( CarrierConfigManager.KEY_LTE_EARFCNS_RSRP_BOOST_INT , 0 ) ; java.lang.String [ ] earfcnsStringArrayForRsrpBoost = b.getStringArray ( CarrierConfigManager.KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY ) ; mEarfcnPairListForRsrpBoost = convertEarfcnStringArrayToPairList ( earfcnsStringArrayForRsrpBoost ) ; } }

Target:
private void updateLteEarfcnLists ( android.os.PersistableBundle config ) { synchronized ( mLteRsrpBoostLock ) { mLteRsrpBoost = config.getInt ( CarrierConfigManager.KEY_LTE_EARFCNS_RSRP_BOOST_INT , 0 ) ; java.lang.String [ ] earfcnsStringArrayForRsrpBoost = config.getStringArray ( CarrierConfigManager.KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY ) ; mEarfcnPairListForRsrpBoost = convertEarfcnStringArrayToPairList ( earfcnsStringArrayForRsrpBoost ) ; } }
Source:
public java.util.NavigableSet < K > navigableKeySet ( ) { java.util.NavigableSet < K > result = navigableKeySet ; if ( result == null ) { result = navigableKeySet = new com.google.common.collect.Maps.NavigableKeySet < K , V > ( ) { @ java.lang.Override java.util.NavigableMap < K , V > map ( ) { return com.google.common.collect.Maps.DescendingMap.this ; } } ; } return result ; }

Target:
public java.util.NavigableSet < K > navigableKeySet ( ) { java.util.NavigableSet < K > result = navigableKeySet ; return result == null ? navigableKeySet = new com.google.common.collect.Maps.NavigableKeySet < K , V > ( this ) : result ; }
Source:
public void addI32 ( android.support.v8.renderscript.Int3 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addI32 ( new android.support.v8.renderscript.Int3 ( v.x , v.y , v.z ) ) ; return ; } addI32 ( v.x ) ; addI32 ( v.y ) ; addI32 ( v.z ) ; }

Target:
public void addI32 ( android.support.v8.renderscript.Int3 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addI32 ( v ) ; return ; } addI32 ( v.x ) ; addI32 ( v.y ) ; addI32 ( v.z ) ; }
Source:
private void verifyGsmInfo ( android.telephony.CellInfoGsm gsm ) { verifyRssiDbm ( gsm.getCellSignalStrength ( ) . getDbm ( ) ) ; if ( ! ( gsm.isRegistered ( ) ) ) { int lac = gsm.getCellIdentity ( ) . getLac ( ) ; assertTrue ( "getLac() out of range [0, 65535]" , ( ( lac >= 0 ) && ( lac <= 65535 ) ) ) ; int cid = gsm.getCellIdentity ( ) . getCid ( ) ; assertTrue ( "getCid() out range [0, 65535]" , ( ( cid >= 0 ) && ( cid <= 65535 ) ) ) ; } }

Target:
private void verifyGsmInfo ( android.telephony.CellInfoGsm gsm ) { verifyRssiDbm ( gsm.getCellSignalStrength ( ) . getDbm ( ) ) ; int lac = gsm.getCellIdentity ( ) . getLac ( ) ; assertTrue ( "getLac() out of range [0, 65535]" , ( ( lac >= 0 ) && ( lac <= 65535 ) ) ) ; int cid = gsm.getCellIdentity ( ) . getCid ( ) ; assertTrue ( "getCid() out range [0, 65535]" , ( ( cid >= 0 ) && ( cid <= 65535 ) ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; server = new com.google.mockwebserver.MockWebServer ( ) ; java.lang.String tmp = java.lang.System.getProperty ( "java.io.tmpdir" ) ; cacheDir = new java.io.File ( tmp , ( "HttpCache-" + ( java.util.UUID.randomUUID ( ) ) ) ) ; cacheDir.mkdirs ( ) ; android.cts.util.FileUtils.setPermissions ( cacheDir.getPath ( ) , 511 ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; java.lang.String tmp = java.lang.System.getProperty ( "java.io.tmpdir" ) ; cacheDir = new java.io.File ( tmp , ( "HttpCache-" + ( java.util.UUID.randomUUID ( ) ) ) ) ; cacheDir.mkdirs ( ) ; android.cts.util.FileUtils.setPermissions ( cacheDir.getPath ( ) , 511 ) ; }
Source:
public void run ( ) { mHandler.removeCallbacks ( this ) ; final int returnCode = deletePackageX ( packageName , uid , flags ) ; if ( observer != null ) { try { observer.packageDeleted ( packageName , returnCode ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }

Target:
public void run ( ) { mHandler.removeCallbacks ( this ) ; final int returnCode = deletePackageX ( packageName , userId , flags ) ; if ( observer != null ) { try { observer.packageDeleted ( packageName , returnCode ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( com.android.server.pm.PackageManagerService.TAG , "Observer no longer exists." ) ; } } }
Source:
public com.android.ide.common.resources.configuration.FolderConfiguration getConfiguration ( ) { assert ( getSource ( ) ) != null : this ; java.lang.String qualifier = getQualifiers ( ) ; if ( qualifier.isEmpty ( ) ) { return new com.android.ide.common.resources.configuration.FolderConfiguration ( ) ; } return com.android.ide.common.resources.configuration.FolderConfiguration.getConfigFromQualifiers ( com.google.common.base.Splitter.on ( '-' ) . split ( qualifier ) ) ; }

Target:
public com.android.ide.common.resources.configuration.FolderConfiguration getConfiguration ( ) { java.lang.String qualifier = getQualifiers ( ) ; if ( qualifier.isEmpty ( ) ) { return new com.android.ide.common.resources.configuration.FolderConfiguration ( ) ; } return com.android.ide.common.resources.configuration.FolderConfiguration.getConfigFromQualifiers ( com.google.common.base.Splitter.on ( '-' ) . split ( qualifier ) ) ; }
Source:
public void keyPressed ( org.eclipse.swt.events.KeyEvent e ) { if ( ( mCurrentGesture ) != null ) { mCurrentGesture.keyPressed ( e ) ; } else { if ( ( e.keyCode ) == ( org.eclipse.swt.SWT.ESC ) ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint controlPoint = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , mLastMouseX , mLastMouseY ) ; finishGesture ( controlPoint , true ) ; return ; } } }

Target:
public void keyPressed ( org.eclipse.swt.events.KeyEvent e ) { if ( ( e.keyCode ) == ( org.eclipse.swt.SWT.ESC ) ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint controlPoint = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , mLastMouseX , mLastMouseY ) ; finishGesture ( controlPoint , true ) ; return ; } if ( ( mCurrentGesture ) != null ) { mCurrentGesture.keyPressed ( e ) ; } }
Source:
private < T extends org.eclipse.jdt.core.dom.ASTNode > T findParentClass ( org.eclipse.jdt.core.dom.ASTNode node , java.lang.Class < T > clazz ) { for ( node = node.getParent ( ) ; node != null ; node = node.getParent ( ) ) { if ( node.getClass ( ) . equals ( clazz ) ) { return ( ( T ) ( node ) ) ; } } return null ; }

Target:
private < T extends org.eclipse.jdt.core.dom.ASTNode > T findParentClass ( org.eclipse.jdt.core.dom.ASTNode node , java.lang.Class < T > clazz ) { if ( node != null ) { for ( node = node.getParent ( ) ; node != null ; node = node.getParent ( ) ) { if ( node.getClass ( ) . equals ( clazz ) ) { return ( ( T ) ( node ) ) ; } } } return null ; }
Source:
public void testKernelDomain ( ) throws com.android.tradefed.device.DeviceNotAvailableException { java.lang.String domain = "u:r:kernel:s0" ; java.util.List < android.cts.security.SELinuxHostTest.ProcessDetails > procs = android.cts.security.SELinuxHostTest.ProcessDetails.getProcMap ( mDevice ) . get ( domain ) ; for ( android.cts.security.SELinuxHostTest.ProcessDetails p : procs ) { assertTrue ( ( ( "Non Kernel thread \"" + p ) + "\" found!" ) , p.isKernel ( ) ) ; } }

Target:
public void testKernelDomain ( ) throws com.android.tradefed.device.DeviceNotAvailableException { java.lang.String domain = "u:r:kernel:s0" ; java.util.List < android.cts.security.SELinuxHostTest.ProcessDetails > procs = android.cts.security.SELinuxHostTest.ProcessDetails.getProcMap ( mDevice ) . get ( domain ) ; if ( procs != null ) { for ( android.cts.security.SELinuxHostTest.ProcessDetails p : procs ) { assertTrue ( ( ( "Non Kernel thread \"" + p ) + "\" found!" ) , p.isKernel ( ) ) ; } } }
Source:
public void fconst ( final float cst ) { int bits = java.lang.Float.floatToIntBits ( cst ) ; if ( ( ( bits == 0L ) || ( bits == 1065353216 ) ) || ( bits == 1073741824 ) ) { mv.visitInsn ( ( ( org.objectweb.asm.Opcodes.FCONST_0 ) + ( ( int ) ( cst ) ) ) ) ; } else { mv.visitLdcInsn ( new java.lang.Float ( cst ) ) ; } }

Target:
public void fconst ( final float cst ) { int bits = java.lang.Float.floatToIntBits ( cst ) ; if ( ( ( bits == 0L ) || ( bits == 1065353216 ) ) || ( bits == 1073741824 ) ) { mv.visitInsn ( ( ( org.objectweb.asm.Opcodes.FCONST_0 ) + ( ( int ) ( cst ) ) ) ) ; } else { mv.visitLdcInsn ( cst ) ; } }
Source:
public void testGetCoreInterfaceRewritingTarget_staticInterfaceMethod ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "" ) , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( "java/util/Comparator" ) ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKESTATIC , "java/util/Comparator" , "reverseOrder" , "()Ljava/util/Comparator;" , true ) ) . isEqualTo ( java.util.Comparator.class ) ; }

Target:
public void testGetCoreInterfaceRewritingTarget_staticInterfaceMethod ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "" ) , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( "java/util/Comparator" ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKESTATIC , "java/util/Comparator" , "reverseOrder" , "()Ljava/util/Comparator;" , true ) ) . isEqualTo ( java.util.Comparator.class ) ; }
Source:
private com.android.jack.ir.ast.JExpression maybeCast ( com.android.jack.ir.ast.JType expected , com.android.jack.ir.ast.JExpression expression ) { if ( ! ( expected.isSameType ( expression.getType ( ) ) ) ) { com.android.jack.ir.ast.JReferenceType toType = ( ( com.android.jack.ir.ast.JReferenceType ) ( expected ) ) ; return new com.android.jack.ir.ast.JDynamicCastOperation ( expression.getSourceInfo ( ) , toType , expression ) ; } else { return expression ; } }

Target:
private com.android.jack.ir.ast.JExpression maybeCast ( com.android.jack.ir.ast.JType expected , com.android.jack.ir.ast.JExpression expression ) { if ( ! ( expected.isSameType ( expression.getType ( ) ) ) ) { com.android.jack.ir.ast.JReferenceType toType = ( ( com.android.jack.ir.ast.JReferenceType ) ( expected ) ) ; return new com.android.jack.ir.ast.JDynamicCastOperation ( expression.getSourceInfo ( ) , expression , toType ) ; } else { return expression ; } }
Source:
protected org.bouncycastle.asn1.x9.X9ECParameters createParameters ( ) { org.bouncycastle.math.ec.ECCurve curve = org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.configureCurve ( new org.bouncycastle.math.ec.ECCurve.Fp ( new java.math.BigInteger ( "8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A71874700133107EC53" , 16 ) , new java.math.BigInteger ( "8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A71874700133107EC50" , 16 ) , new java.math.BigInteger ( "7F519EADA7BDA81BD826DBA647910F8C4B9346ED8CCDC64E4B1ABD11756DCE1D2074AA263B88805CED70355A33B471EE" , 16 ) ) ) ; return new org.bouncycastle.asn1.x9.X9ECParameters ( curve , curve.decodePoint ( org.bouncycastle.util.encoders.Hex.decode ( "0418DE98B02DB9A306F2AFCD7235F72A819B80AB12EBD653172476FECD462AABFFC4FF191B946A5F54D8D0AA2F418808CC25AB056962D30651A114AFD2755AD336747F93475B7A1FCA3B88F2B6A208CCFE469408584DC2B2912675BF5B9E582928" ) ) , new java.math.BigInteger ( "8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC3103B883202E9046565" , 16 ) , new java.math.BigInteger ( "01" , 16 ) ) ; }

Target:
protected org.bouncycastle.asn1.x9.X9ECParameters createParameters ( ) { java.math.BigInteger n = new java.math.BigInteger ( "8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B31F166E6CAC0425A7CF3AB6AF6B7FC3103B883202E9046565" , 16 ) ; java.math.BigInteger h = new java.math.BigInteger ( "01" , 16 ) ; org.bouncycastle.math.ec.ECCurve curve = org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.configureCurve ( new org.bouncycastle.math.ec.ECCurve.Fp ( new java.math.BigInteger ( "8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A71874700133107EC53" , 16 ) , new java.math.BigInteger ( "8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123ACD3A729901D1A71874700133107EC50" , 16 ) , new java.math.BigInteger ( "7F519EADA7BDA81BD826DBA647910F8C4B9346ED8CCDC64E4B1ABD11756DCE1D2074AA263B88805CED70355A33B471EE" , 16 ) , n , h ) ) ; return new org.bouncycastle.asn1.x9.X9ECParameters ( curve , curve.decodePoint ( org.bouncycastle.util.encoders.Hex.decode ( "0418DE98B02DB9A306F2AFCD7235F72A819B80AB12EBD653172476FECD462AABFFC4FF191B946A5F54D8D0AA2F418808CC25AB056962D30651A114AFD2755AD336747F93475B7A1FCA3B88F2B6A208CCFE469408584DC2B2912675BF5B9E582928" ) ) , n , h ) ; }
Source:
private void computeCatchList ( @ javax.annotation.Nonnull org.objectweb.asm.tree.LabelNode labelNode ) { for ( org.objectweb.asm.tree.TryCatchBlockNode tryCatchNode : currentMethod.tryCatchBlocks ) { java.lang.String id = getCatchId ( tryCatchNode.handler ) ; if ( ( tryCatchNode.start ) == labelNode ) { assert ! ( currentCatchList.contains ( id ) ) ; currentCatchList.add ( id ) ; } else if ( ( tryCatchNode.end ) == labelNode ) { assert currentCatchList.contains ( id ) ; currentCatchList.remove ( id ) ; } } }

Target:
private void computeCatchList ( @ javax.annotation.Nonnull org.objectweb.asm.tree.LabelNode labelNode ) { for ( org.objectweb.asm.tree.TryCatchBlockNode tryCatchNode : currentMethod.tryCatchBlocks ) { java.lang.String id = getCatchId ( tryCatchNode.handler ) ; if ( ( tryCatchNode.start ) == labelNode ) { currentCatchList.add ( id ) ; } else if ( ( tryCatchNode.end ) == labelNode ) { currentCatchList.remove ( id ) ; } } }
Source:
public void test_enumerationLjava_util_Collection ( ) { java.util.TreeSet ts = new java.util.TreeSet ( ) ; ts.addAll ( s ) ; java.util.Enumeration e = java.util.Collections.enumeration ( ts ) ; int count = 0 ; while ( e.hasMoreElements ( ) ) assertTrue ( "Returned incorrect enumeration" , ( ( e.nextElement ( ) ) == ( objArray [ ( count ++ ) ] ) ) ) ; assertTrue ( ( "Enumeration missing elements: " + count ) , ( count == ( objArray.length ) ) ) ; }

Target:
public void test_enumerationLjava_util_Collection ( ) { java.util.TreeSet ts = new java.util.TreeSet ( ) ; ts.addAll ( s ) ; java.util.Enumeration e = java.util.Collections.enumeration ( ts ) ; int count = 0 ; while ( e.hasMoreElements ( ) ) { assertEquals ( "Returned incorrect enumeration" , e.nextElement ( ) , objArray [ ( count ++ ) ] ) ; } assertEquals ( ( "Enumeration missing elements: " + count ) , objArray.length , count ) ; }
Source:
public static java.lang.Class $noinline$inlineCache ( Main m , boolean isSecondInvocation ) { if ( ! ( Main.isInInterpreter ( "$noinline$inlineCache" ) ) ) { return SubMain.class ; } Main.ensureHasProfilingInfo ( ) ; if ( isSecondInvocation ) { Main.ensureHasOsrCode ( "$noinline$inlineCache" ) ; } Main other = m.inlineCache ( ) ; if ( isSecondInvocation ) { while ( ! ( Main.isInOsrCode ( "$noinline$inlineCache" ) ) ) { } } return other.returnClass ( ) ; }

Target:
public static java.lang.Class $noinline$inlineCache ( Main m , boolean isSecondInvocation ) { if ( ! ( Main.isInInterpreter ( "$noinline$inlineCache" ) ) ) { return SubMain.class ; } Main.ensureHasProfilingInfo ( "$noinline$inlineCache" ) ; if ( isSecondInvocation ) { Main.ensureHasOsrCode ( "$noinline$inlineCache" ) ; } Main other = m.inlineCache ( ) ; if ( isSecondInvocation ) { while ( ! ( Main.isInOsrCode ( "$noinline$inlineCache" ) ) ) { } } return other.returnClass ( ) ; }
Source:
public static boolean isCallerActiveScorer ( android.content.Context context , int callingUid ) { android.net.NetworkScorerAppManager.NetworkScorerAppData defaultApp = android.net.NetworkScorerAppManager.getActiveScorer ( context ) ; if ( defaultApp == null ) { return false ; } if ( callingUid != ( defaultApp.mPackageUid ) ) { return false ; } return ( context.checkCallingPermission ( Manifest.permission.SCORE_NETWORKS ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ; }

Target:
public boolean isCallerActiveScorer ( int callingUid ) { android.net.NetworkScorerAppManager.NetworkScorerAppData defaultApp = getActiveScorer ( ) ; if ( defaultApp == null ) { return false ; } if ( callingUid != ( defaultApp.mPackageUid ) ) { return false ; } return ( mContext.checkCallingPermission ( Manifest.permission.SCORE_NETWORKS ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ; }
Source:
private void handleCallStateChanged ( com.android.server.telecom.ConnectionServiceFocusManager.CallFocus call , int oldState , int newState ) { android.telecom.Log.d ( this , "handleCallStateChanged %s, oldState = %d, newState = %d" , call , oldState , newState ) ; if ( ( mCalls.contains ( call ) ) && ( java.util.Objects.equals ( mCurrentFocus , call.getConnectionServiceWrapper ( ) ) ) ) { updateCurrentFocusCall ( ) ; } }

Target:
private void handleCallStateChanged ( com.android.server.telecom.ConnectionServiceFocusManager.CallFocus call , int oldState , int newState ) { if ( ( mCalls.contains ( call ) ) && ( java.util.Objects.equals ( mCurrentFocus , call.getConnectionServiceWrapper ( ) ) ) ) { updateCurrentFocusCall ( ) ; } }
Source:
private long createTime ( android.icu.util.TimeZone timeZone , int year , int monthOfYear , int dayOfMonth , int hourOfDay , int minuteOfHour , int secondOfMinute ) { android.icu.util.Calendar cal = new android.icu.util.GregorianCalendar ( timeZone ) ; cal.clear ( ) ; cal.set ( year , ( monthOfYear - 1 ) , dayOfMonth , hourOfDay , minuteOfHour , secondOfMinute ) ; return cal.getTimeInMillis ( ) ; }

Target:
private static long createTime ( android.icu.util.TimeZone timeZone , int year , int monthOfYear , int dayOfMonth , int hourOfDay , int minuteOfHour , int secondOfMinute ) { android.icu.util.Calendar cal = new android.icu.util.GregorianCalendar ( timeZone ) ; cal.clear ( ) ; cal.set ( year , ( monthOfYear - 1 ) , dayOfMonth , hourOfDay , minuteOfHour , secondOfMinute ) ; return cal.getTimeInMillis ( ) ; }
Source:
private void checkEncryptedAndStartProvisioningService ( ) { if ( ( com.android.managedprovisioning.EncryptDeviceActivity.isDeviceEncrypted ( ) ) || ( android.os.SystemProperties.getBoolean ( "persist.sys.no_req_encrypt" , false ) ) ) { com.android.managedprovisioning.UserConsentDialog.newInstance ( UserConsentDialog.PROFILE_OWNER ) . show ( getFragmentManager ( ) , "UserConsentDialogFragment" ) ; } else { android.os.Bundle resumeExtras = getIntent ( ) . getExtras ( ) ; resumeExtras.putString ( com.android.managedprovisioning.EncryptDeviceActivity.EXTRA_RESUME_TARGET , com.android.managedprovisioning.EncryptDeviceActivity.TARGET_PROFILE_OWNER ) ; android.content.Intent encryptIntent = new android.content.Intent ( this , com.android.managedprovisioning.EncryptDeviceActivity.class ) . putExtra ( com.android.managedprovisioning.EncryptDeviceActivity.EXTRA_RESUME , resumeExtras ) ; startActivityForResult ( encryptIntent , com.android.managedprovisioning.ProfileOwnerPreProvisioningActivity.ENCRYPT_DEVICE_REQUEST_CODE ) ; } }

Target:
private void checkEncryptedAndStartProvisioningService ( ) { if ( ( com.android.managedprovisioning.EncryptDeviceActivity.isDeviceEncrypted ( ) ) || ( android.os.SystemProperties.getBoolean ( "persist.sys.no_req_encrypt" , false ) ) ) { com.android.managedprovisioning.UserConsentDialog.newInstance ( UserConsentDialog.PROFILE_OWNER , false ) . show ( getFragmentManager ( ) , "UserConsentDialogFragment" ) ; } else { android.os.Bundle resumeExtras = getIntent ( ) . getExtras ( ) ; resumeExtras.putString ( com.android.managedprovisioning.EncryptDeviceActivity.EXTRA_RESUME_TARGET , com.android.managedprovisioning.EncryptDeviceActivity.TARGET_PROFILE_OWNER ) ; android.content.Intent encryptIntent = new android.content.Intent ( this , com.android.managedprovisioning.EncryptDeviceActivity.class ) . putExtra ( com.android.managedprovisioning.EncryptDeviceActivity.EXTRA_RESUME , resumeExtras ) ; startActivityForResult ( encryptIntent , com.android.managedprovisioning.ProfileOwnerPreProvisioningActivity.ENCRYPT_DEVICE_REQUEST_CODE ) ; } }